Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
const inquirer = require("inquirer");
function init(){ employeeData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEngineer() {\n\n inquirer \n .prompt([\n \n\n ])\n .then(answers =>{\n \n })\n\n}", "function getIntern() {\n\n inquirer \n .prompt([\n \n\n ])\n .then(answers =>{\n \n })\n\n}", "function mainApp() { //you are asking the questions\n // create a manager\n inquirer \n .prompt([\n \n ])\n .then(answers =>{\n \n })\n\n}", "inquire (...rest) {\n // inquirer loads slowly. Lazy load here.\n if (!inquirer) inquirer = require(\"inquirer\");\n\n _vlm.inquire = inquirer.createPromptModule();\n return this.inquire(...rest);\n }", "function init (){\n inquirer.prompt(questions).then((answers) => {\n console.log(answers);\n \n });\n}", "function promptUser(){\n return inquirer.prompt(questions);\n}", "function runInquirer(){\n const arrayPrompts = [{\n type: 'input',\n message: \"What's your name?\",\n name: 'name'\n },\n {\n type: 'input',\n message: \"Please enter your user ID.\",\n name: 'userID'\n },\n {\n type: 'input',\n message: 'Please enter your email address.',\n name: 'email'\n },\n {\n type:'list',\n message: 'What is your job title?',\n choices: employeeTypes,\n name: 'jobTitle'\n }\n\n];\n\n return inquirer.prompt(arrayPrompts);\n\n}", "function startApp() {\n\n //Take user input\n inquirer.prompt({\n type: \"list\",\n message: \"Enter your choice of liri search?\",\n choices: [\"concert-this\", \"spotify-this-song\", \"movie-this\", \"do-what-it-says\"],\n name: \"liriSearch\"\n })\n .then(function (inquirerResponse) {\n\n //Call function with user option to execute desired operation\n liriSearch(inquirerResponse.liriSearch, \"\");\n\n })\n .catch(function (err) {\n console.log(err);\n });\n\n\n}", "function init(){\n inquirer\n .prompt(opening)\n}", "async function userInput () { \n return inquirer.prompt([\n {\n type: \"input\",\n message: \"Title of the project?\",\n name: \"title\"\n },\n {\n type: \"input\",\n message: \"Description of Project:\",\n name: \"description\"\n },\n {\n type: \"input\",\n message: \"Installation Instructions for Application:\",\n name: \"installation\",\n },\n {\n type: \"input\",\n message: \"Instructions on how to use Application:\",\n name: \"usage\"\n },\n {\n type: \"list\",\n message: \"License:\",\n name: \"license\",\n choices: [\"MIT\", \"APACHE\"]\n },\n {\n type: \"input\",\n message: \"Contribution Guidelines for Application:\",\n name: \"contributions\"\n },\n {\n type: \"input\",\n message: \"Test Instructins for Application:\",\n name: \"tests\",\n },\n {\n type: \"input\",\n message: \"GitHub Username:\",\n name: \"username\"\n },\n {\n type: \"input\",\n message: \"Email Address:\",\n name: \"email\"\n }\n \n])\n}", "function init() {\n return inquirer.prompt(questions);\n}", "function init() {\n return inquirer.prompt(questions);\n}", "function inquirerInit() {\n console.log(\"Welcome to the CMS Employee Tracker!\")\n return inquirer\n .prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n name: \"action\",\n choices: [\n \"Add Employee\",\n \"View all Employees\",\n \"View all Employees by Department\",\n \"Add Department\",\n \"View all Departments\",\n \"Add Role\",\n \"View all Roles\",\n \"Update Employee Role\",\n \"Exit\"\n ]\n }\n ])\n .then((answer) => {\n\n // Switch case based off of user input\n switch (answer.action) {\n case \"Add Employee\":\n addEmployee();\n break;\n\n case \"View all Employees\":\n viewAllEmployees();\n break;\n\n case \"View all Employees by Department\":\n viewAllEmployeesByDept();\n break;\n\n case \"Add Department\":\n addDept();\n break;\n\n case \"View all Departments\":\n viewAllDept();\n break;\n\n case \"Add Role\":\n addRole();\n break;\n\n case \"View all Roles\":\n viewAllRoles();\n break;\n\n case \"Update Employee Role\":\n updateEmpRole();\n break;\n\n case \"Exit\":\n connection.end();\n break;\n }\n });\n}", "function init() {\n return inquirer.prompt(questions);\n}", "function userPrompt() {\n return inquirer.prompt(questions);\n}", "function ask() {\n return inquirer.prompt(questions);\n}", "function getUserInput() {\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"name\",\n message: \"Your name:\"\n },\n {\n type: \"input\",\n name: \"githubUsername\",\n message: \"Your GitHub username:\"\n },\n {\n type: \"input\",\n name: \"githubURL\",\n message: \"Your GitHub profile url:\"\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"Your email address:\"\n },\n {\n type: \"input\",\n name: \"title\",\n message: \"Project title:\"\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Project description:\"\n },\n {\n type: \"input\",\n name: \"installation\",\n message: \"Project installation information:\"\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"Project usage information:\"\n },\n {\n type: \"list\",\n name: \"license\",\n message: \"Project license:\",\n choices: [\"MIT\", \"GNU_GPLv3\", \"Apache\", \"BSD_3clause\", \"ISC\", \"Artistic\", \"GNU_LGPLv3\", \"Unlicense\"]\n },\n {\n type: \"input\",\n name: \"contributing\",\n message: \"Information about contributing to this project:\"\n },\n {\n type: \"input\",\n name: \"tests\",\n message: \"Information about testing for this project:\"\n }\n ]);\n}", "async function getUserInput(){\n try{\n const data = await inquirer.prompt([\n {\n type: \"input\",\n message:\"Please enter your project's title: \",\n name: \"title\"\n },\n {\n type: \"input\",\n message:\"Please describe your project: \",\n name: \"description\"\n },\n {\n type: \"input\",\n message:\"Please describe your installation command: \",\n name: \"installation\"\n },\n {\n type: \"input\",\n message:\"Please demonstrate your package's usage: \",\n name: \"usage\"\n },\n {\n type: \"list\",\n message:\"Please select the license you wish to use: \",\n choices: [\"Apache\",\"MIT\",\"IBM\",\"Mozilla\",\"Eclipse\"],\n name: \"license\"\n },\n {\n type: \"input\",\n message:\"Please write a message for potential contributors: \",\n name: \"contributing\"\n },\n {\n type: \"input\",\n message:\"Please provide test instructions: \",\n name: \"test\"\n },\n {\n type: \"input\",\n message:\"Please enter your GitHub username: \",\n name: \"github\"\n },\n {\n type: \"input\",\n message:\"Where can users reach you for question?: \",\n name: \"email\"\n },\n ])\n return data;\n } catch(error){\n console.log(error);\n } \n}", "function promptUser() {\n return inquirer.prompt(questions);\n}", "function questions() {\n return inquirer.prompt([\n {\n\n type: \"input\",\n name: \"title\",\n message: \"Hello there! What is the title of your Readme?\"\n },\n {\n\n type: \"input\",\n name: \"description\",\n message: \"Alright than, describe your project here =>\"\n },\n {\n\n type: \"input\",\n name: \"installation\",\n message: \"Any instructions for installation? Leave them here =>\"\n },\n {\n\n type: \"input\",\n name: \"usage\",\n message: \"How do you use your program?\"\n },\n {\n\n type: \"checkbox\",\n name: \"licenses\",\n message: \"What is this project licensed under?\",\n choices: [\n new inquirer.Separator(' = Licenses = '),\n {\n name: \"https://img.shields.io/npm/l/inquirer?style=plastic\"\n },\n {\n name: \"https://img.shields.io/npm/l/inquirer?style=plastic\"\n },\n {\n name: \"https://img.shields.io/npm/l/inquirer?style=plastic\"\n },\n {\n name: \"https://img.shields.io/npm/l/inquirer?style=plastic\"\n },\n\n ]\n },\n {\n\n type: \"input\",\n name: \"contributors\",\n message: \"Who all contributed to this project? List them here =>\"\n },\n {\n\n type: \"input\",\n name: \"tests\",\n message: \"How do you run your tests? If there are no tests, reply with 'none'.\"\n },\n {\n\n type: \"input\",\n name: \"username\",\n message: \"What is your gitHub username?\"\n },\n {\n\n type: \"input\",\n name: \"email\",\n message: \"What is your email address?\"\n },\n ]);\n}", "function init() {\n // use inquirer \n // get answers object\n // write that content to a file using a call to writeToFile\n}", "function init() {\n inquirer.prompt([\n {\n type: 'input',\n name: 'title',\n message: 'What is the title of your application?'\n },\n {\n type: 'input',\n name: 'email',\n message: 'Please enter your email address'\n },\n {\n type: 'input',\n name: 'github',\n message: 'Please enter your github user name.'\n },\n {\n type: 'input',\n name: 'description',\n message: 'Please enter a description of your application.'\n\n },\n {\n type: 'list',\n name: 'license',\n choices: ['MIT', 'Apache', 'OSC'],\n message: 'Pick your license:'\n }\n ])\n .then(answers => {\n \n \n })\n\n}", "function userChoice(){\n inquirer\n .prompt([\n { \n type: \"input\",\n message: \"Enter the product number of the item you want: \",\n name: \"product\"\n },\n { \n type: \"input\",\n message: \"Enter the quantity you would like to purchase: \",\n name: \"quantity\"\n }\n ])\n .then(function(inqRes){\n // console.log(\"PN: \" + inqRes.product + \"\\nQT: \" + inqRes.quantity);\n checkInventory(inqRes.product, inqRes.quantity);\n });\n}", "function promptUser() {\n return inquirer.prompt(userQuestions);\n}", "function sayHello() {\n //asks user their name\n inquirer.prompt([\n {\n type: \"input\",\n message: \"What is your name\",\n name: \"name\"\n }\n ]).then(function (inquirerResponse) {\n name = inquirerResponse.name\n console.log(`Hello, ${name}`)\n askQuestion();\n\n }).catch(function (error) {\n console.error(\"there was an error: \" + error);\n })\n}", "function askQuestion() {\n //confirms user wants to continue, if not program terminates\n inquirer.prompt([\n {\n type: \"confirm\",\n message: \"Do you want to use Liri-bot?\",\n name: \"confirm\"\n }\n ]).then(function (inquirerResponse) {\n\n if (inquirerResponse.confirm) {\n\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What do you want to ask Liri?\",\n choices: [\"concert-this\", \"movie-this\", \"spotify-this-song\", \"do-what-it-says\"],\n name: \"commands\"\n },\n ])\n .then(function (inquirerResponse) {\n //the choice the user makes is stored in command and then passed into the command function, to determine what happens next\n var command = inquirerResponse.commands;\n commands(command);\n });\n\n } else {\n console.log(`Ok Have a nice day!`)\n }\n })\n}", "function prompt() {\n let result = inquirer.prompt.apply(inquirer.prompt, arguments);\n result.ui.rl.on('SIGINT', ()=>{process.exit(1);});\n return result;\n}", "function init() {\n inquirer\n .prompt([...questions])\n .then(data => writeToFile(data))\n}", "function start() {\n\n connection.query(\"SELECT * FROM products\",function(err,response){\n console.table(response)\n\n inquirer\n .prompt({\n name: \"Inventory\",\n type: \"input\",\n message: \"Which item_id number would you like to purchase?\"\n \n })\n .then(function (answer) {\n console.log(answer.Inventory)\n connection.query(`SELECT * FROM products where item_id= ${answer.Inventory}`,function(err,response){\n console.table(response)\n }) \n });\n \n \n })\n\n\n \n\n\n}", "function init() {\n inquirer.prompt(questions)\n .then((data) => {\n writeToFile(data);\n });\n\n}", "function inquirerStart() { \n inquirer\n .prompt([\n {\n name: 'itemSelect',\n type: 'input',\n message: 'What is the Product ID of the item you would like to purchase?',\n // Validation to restrict user inputs to positive whole numbers only\n validate: function(value) {\n if (isNaN(value) === false && value >= 0 && value % 1 === 0 && value !== '') {\n return true;\n }\n return false;\n }\n },{\n name: 'qtySelect',\n type: 'input', \n message: 'How many items would you like to purchase? [Q to exit]',\n validate: function(value) {\n if (isNaN(value) === false && value >= 0 && value % 1 === 0 && value !== '' || value.toLowerCase() === 'q') {\n return true;\n } \n return false;\n }\n },\n ])\n .then(function(answer) {\n\n // Allowing user to quit\n if (answer.itemSelect.toLowerCase() === 'q' || answer.qtySelect.toLowerCase() === 'q') {\n console.log('\\nGoodbye!\\n');\n process.exit();\n }\n \n // If not quitting, then continue purchasing\n else {\n connection.query('SELECT * FROM products', function(err, res) {\n if (err) throw err; \n \n // Getting information regarding the selected item\n var chosenItem;\n for (var i = 0; i < res.length; i++) {\n if (res[i].item_id === parseInt(answer.itemSelect)) {\n chosenItem = res[i];\n }\n };\n \n // Console logging the selected order item and quantity\n console.log('\\n-----------------');\n console.log('You chose to buy ' + answer.qtySelect + ' ' + chosenItem.product_name + ' at $' + chosenItem.price + ' each.');\n \n // Determines if there is enough stock to fulfill order, if so then reduce the stock number by the order quantity amount\n if (chosenItem.stock_quantity >= parseInt(answer.qtySelect)) {\n connection.query('UPDATE products SET ? WHERE ?',\n [\n {\n stock_quantity: chosenItem.stock_quantity - parseInt(answer.qtySelect)\n },\n {\n item_id: chosenItem.item_id\n }\n ],\n\n // Console logging order information and success\n function(err) {\n if (err) throw err;\n console.log('-----------------');\n console.log('Your order was placed successfully!');\n console.log('Total cost: $' + answer.qtySelect * chosenItem.price);\n console.log('Would you like to place another order?');\n console.log('-----------------\\n');\n }\n )\n \n // Displaying updated table and asking for another order\n connection.query('SELECT * FROM products', function(err, res) {\n if (err) throw err;\n tablePrint(res);\n inquirerStart();\n\n });\n }\n\n // If there is not enough stock, the order is not placed and the user is promoted to put in another order or alter the quantity\n else {\n console.log('-----------------');\n console.log('There is not enough stock to fulfill your order. Would you like to change your quantity or order something else?');\n console.log('-----------------\\n');\n tablePrint(res);\n inquirerStart();\n }\n });\n };\n });\n}", "function init() {\n inquirer\n .prompt(questions)\n .then(data => writeToFile(fileName, data));\n\n}", "function init() {\n inquirer\n .prompt([\n /* Pass your questions in here */\n {\n type: \"input\",\n message: \"What is the title of your project?\",\n name: \"title\",\n },\n {\n type: \"input\",\n message: \"Create a description:\",\n name: \"description\",\n },\n {\n type: \"input\",\n message: \"Usage:\",\n name: \"usage\",\n },\n {\n type: \"list\",\n message: \"What is the name of the license you used?\",\n name: \"license\",\n choices: [\"MIT\", \"APACHE 2.0\", \"GPL 3.0\", \"BSD 3\", \"None\"]\n },\n {\n type: \"input\",\n message: \"Any contributors?\",\n name: \"contributing\",\n },\n {\n type: \"input\",\n message: \"Did you run a test?\",\n name: \"test\",\n default: \"npm test\"\n },\n {\n type: \"input\",\n message: \"How do you install this application?\",\n name: \"install\",\n default: \"npm i\"\n },\n {\n type: \"input\",\n message: \"Enter your GitHub Username:\",\n name: \"question1\",\n },\n {\n type: \"input\",\n message: \"Enter your email address:\",\n name: \"email\",\n },\n ])\n .then(answers => {\n // Use user feedback for... whatever!!\n console.log(\"Success!\")\n answers.license = encodeURI(answers.license)\n writeToFile(`${answers.title}.md`, answers)\n })\n \n}", "function init() {\n\n console.log(\"Start the process....\");\n\n inquirer.prompt(questions)\n .then( results => writeToFile(results) );\n}", "function promptUser()\n{\n return inquirer.prompt([\n {\n type: 'input',\n message: \"What is your GitHub username? (No @ needed)\",\n name: 'username',\n default: 'Bill Oberkirsch ',\n validate: function (answer) {\n if (answer.length < 1) {\n return console.log(\"A valid GitHub username is required.\");\n }\n return true;\n }\n },\n {\n type: 'input',\n message: \"What is the name of your GitHub repo?\",\n name: 'repo',\n default: 'readme-generator',\n validate: function (answer) {\n if (answer.length < 1) {\n return console.log(\"A valid GitHub repo is required for a badge.\");\n }\n return true;\n }\n },\n {\n type: 'input',\n message: \"What is the title of your project?\",\n name: 'title',\n default: 'Project Title',\n validate: function (answer) {\n if (answer.length < 1) {\n return console.log(\"A valid project title is required.\");\n }\n return true;\n }\n },\n {\n type: 'input',\n message: \"Write a description of your project.\",\n name: 'description',\n default: 'Project Description',\n validate: function (answer) {\n if (answer.length < 1) {\n return console.log(\"A valid project description is required.\");\n }\n return true;\n }\n },\n {\n type: 'list',\n message: \"What is the language it is written in?\",\n name: 'installation',\n default:'C#',\n choices:['C#', 'VB', 'Python', 'Java', 'Javascript', 'Node.js']\n },\n {\n type: 'input',\n message: \"Provide instructions and examples of your project in use for the Usage section.\",\n name: 'usage'\n },\n {\n type: 'input',\n message: \"If applicable, provide guidelines on how other developers can contribute to your project.\",\n name: 'contributing'\n },\n {\n type: 'input',\n message: \"If applicable, provide any tests written for your application and provide examples on how to run them.\",\n name: 'tests'\n },\n {\n type: 'list',\n message: \"Choose a license for your project.\",\n choices: ['GNU AGPLv3', 'GNU GPLv3', 'GNU LGPLv3', 'Mozilla Public License 2.0', 'Apache License 2.0', 'MIT License', 'Boost Software License 1.0', 'The Unlicense'],\n name: 'license'\n }\n ]);\n}", "function promptUser(){\n return inquirer.prompt(questions)\n }", "function promptUser() {\n return inquirer.prompt ([\n {\n type: \"input\",\n name: \"title\",\n message: \"What is the title of your project?\"\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Please describe the functionality of your project.\"\n },\n {\n type: \"input\",\n name: \"installation\",\n message: \"What command should be run to download independencies?\",\n default: \"npm install\"\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"How do you run this project?\"\n },\n {\n type: \"input\",\n name: \"contributing\",\n message: \"Listed who all contributed to this project\"\n },\n {\n type: \"checkbox\",\n name: \"license\",\n message: \"Select your license\",\n choices: [\n \"GNU GPLv3\",\n \"MIT\",\n \"ISC\",\n \"Apache\"\n ]\n },\n {\n type: \"input\",\n name: \"username\",\n message: \"What is your Github username?\",\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is your email address?\"\n }\n ])\n}", "function init() {\n inquirer\n .prompt(questions)\n\n .then((response) => {\n console.log(response);\n\n if (response.license === \"MIT\") {\n response.license =\n \"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) \\n * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\";\n } else if (response.license === \"GNU General Public License v2.0\") {\n response.license =\n \"[![License: GPLv2](https://img.shields.io/badge/License-GPLv2-yellow.svg)](https://opensource.org/licenses/GPL-2.0) \\n * This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The 'Program', below, refers to any such program or work, and a 'work based on the Program' means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term 'modification'.) Each licensee is addressed as 'you'.\";\n } else if (response.license === \"Apache\") {\n response.license =\n \"[![License: Apache](https://img.shields.io/badge/License-Apache-yellow.svg)](https://opensource.org/licenses/Apache-2.0) \\n * Licensed under the Apache License, Version 2.0 (the License');you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an 'AS IS' BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.\"\n } else if (response.license === \"GNU General Public License v3.0\") {\n response.license =\n \"[![License: GPLv3](https://img.shields.io/badge/License-GPLv3-yellow.svg)](https://opensource.org/licenses/GPL-3.0) \\n * The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.\";\n } else if (\n response.license === \"BSD 3-clause 'New' or 'Revised' license\"\n ) {\n response.license =\n \"[![License: BSD 3 Clause](https://img.shields.io/badge/License-BSD3Clause-yellow.svg)](https://opensource.org/licenses/BSD-3-Clause) \\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\";\n } else if (response.license === \"unlicense\") {\n response.license =\n \"[![License: Unlicense](https://img.shields.io/badge/License-Unlicense-yellow.svg)]\";\n }\n writeToFile(`${response.userFileName}`, generateMarkdown(response));\n });\n}", "function intro() {\n\n inquirer\n .prompt({\n name: \"game\",\n type: \"confirm\",\n message: \"\\nHello Constant Reader, I'm Steve King-- can you read my mind?\\n\"\n })\n .then(function(answer) {\n if (answer.game === true) {\n // if player wants start the game and guess the first word\n console.log(\"\\nUmm...guess book I'm thinking? requires proper capitalization!\\n\");\n playGame();\n } else {\n // otherwise, if they start the game, but don't want to play\n console.log(\"I'm Outta here..\");\n }\n });\n}", "function promptUser (){\n\nreturn inquirer\n .prompt([\n {\n message: \"Enter your GitHub username\",\n name: \"username\"\n },\n\n {\n message: \"Enter your favorite color\",\n name: \"color\"\n }\n ]);\n\n}", "function init() {\n return inquirer\n .prompt(questions)\n .then(readmeData => {\n return writeToFile('README.md',readmeData)\n})\n// catches failed / rejected promises\n.catch(err => {\n console.log(err);\n})\n\n}", "function promptUser() {\n return inquirer.prompt([\n // prompt object array\n {\n type: \"input\",\n name: \"title\",\n message: \"What is the title of your project? \",\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Write a short description about your project: \"\n },\n {\n type: \"input\",\n name: \"installation\",\n message: \"What are the installation instructions for your project, if any: \",\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"What is the intended usage guidance for this project? \"\n },\n {\n type: \"list\",\n name: \"license\",\n message: \"Choose a license for this project: \",\n choices: [\n \"Apache 2.0 License\",\n \"GNU GPL v3\",\n \"MIT\",\n \"Mozilla Public License 2.0\",\n \"None\"\n ]\n },\n {\n type: \"input\",\n name: \"contributing\",\n message: \"Include any additional contributors: \"\n },\n {\n type: \"input\",\n name: \"tests\",\n message: \"Are there any test instructions for this project: \"\n },\n {\n type: \"input\",\n name: \"questions\",\n message: \"What do I do if I have an issue? \"\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 type: \"input\",\n name: \"projectRepoLink\",\n message: \"Please include a link to your project repo: \"\n },\n {\n type: \"input\",\n name: \"projectWebPageLink\",\n message: \"Please include a link to your project deployed application: \"\n },\n ]);\n}", "function promptUser() {\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"projectName\", // Link to stored answer\n message: \"What is your project name ?\",\n },\n {\n type: \"input\",\n name: \"description\", // Link to stored answer\n message: \"Project description?\",\n },\n {\n type: \"input\",\n name: \"video\", // Link to stored answer\n message: \"location of screenshot or video ?\",\n },\n {\n type: \"input\",\n name: \"gettingStarted\", // Link to stored answer\n message: \"Enter instructions on how to deploy your site?\",\n },\n {\n type: \"input\",\n name: \"commandLine\", // Link to stored answer\n message: \"Enter command to install dependencies\",\n },\n {\n type: \"input\",\n name: \"commandLine2\", // Link to stored answer\n message: \"Enter command to start project\",\n },\n\n {\n type: \"input\",\n name: \"webpage\", // Link to stored answer\n message: \"Enter your webpage address.\",\n },\n {\n type: \"input\",\n name: \"linkedin\", // Link to stored answer\n message: \"Enter your LinkedIn URL.\",\n },\n {\n type: \"input\",\n name: \"twitter\", // Link to stored answer\n message: \"Enter your twitter handle.\",\n },\n {\n type: \"input\",\n name: \"email\", // Link to stored answer\n message: \"What is your email ?\",\n },\n {\n type: \"input\",\n name: \"github\", // Link to stored answer\n message: \"What is your github username?\",\n },\n {\n type: \"input\",\n name: \"license\", // Link to stored answer\n message: \"Enter in any license information here\",\n },\n {\n type: \"input\",\n name: \"contribute\", // Link to stored answer\n message: \"Enter information about Contributing to the success of this project\",\n },\n {\n type: \"input\",\n name: \"test\", // Link to stored answer\n message: \"Testing information goes here\",\n },\n \n ]);\n}", "function promptUser() {\n return inquirer.prompt([{\n type: \"input\",\n message: \"What is your name?\",\n name: \"name\"\n },\n {\n type: \"input\",\n message: \"Enter your email address.\",\n name: \"email\"\n },\n {\n type: \"input\",\n message: \"Enter your GitHub username.\",\n name: \"github\"\n },\n {\n type: \"input\",\n message: \"What is the title of your project?\",\n name: \"title\"\n },\n {\n type: \"input\",\n message: \"Please give a brief description of your project\",\n name: \"description\"\n },\n {\n type: \"input\",\n message: \"Enter your instructions on how to retrieve and install your project.\",\n name: \"installation\"\n },\n {\n type: \"input\",\n message: \"Enter a description on how to use your project.\",\n name: \"usage\"\n },\n {\n // list for license choices\n type: \"list\",\n message: \"Choose a License from the following list:\",\n choices: [\"MIT\", \"Apache\", \"Apache2\", \"GPL\", \"CPAN\", \"BSD\"],\n name: \"license\"\n },\n {\n type: \"input\",\n message: \"Enter information for project contributors.\",\n name: \"contributing\"\n },\n {\n type: \"input\",\n message: \"Enter testing information\",\n name: \"tests\"\n }\n ])\n}", "makeQuestion(question) {\n const readline = require('readline');\n return new Promise((resolve, reject) => {\n const rl = readline.createInterface({\n input: process.stdin,\n output: process.stdout,\n });\n\n rl.question(question, (answer) => {\n if (!answer) {\n reject('Answer cannot be undefined');\n } else {\n resolve(answer);\n }\n rl.close();\n });\n });\n }", "function startApp() {\n //ask user question of what they would like to do\n inquirer.prompt([\n // Here we create a list of choices\n {\n type: \"list\",\n message: \"What command would you like to run?\",\n choices: ['spotify-this-song', 'movie-this', 'concert-this', 'do-what-it-says'],\n name: \"command\"\n },\n\n ])\n .then(function(inqResponse) {\n\n var operator = inqResponse.command;\n // var querySearch = inqResponse.input;\n\n\n //Switch case to decide what to do based on the operator specifiec\n figureFunc(operator);\n\n });\n}", "function init() {\n inquirer\n .prompt([\n {\n type: 'input',\n message: ' What is your Github username?',\n name: 'username',\n \n },\n {\n type: 'input',\n message: 'What is your email?',\n name: 'email',\n \n },\n {\n type: 'input',\n message: 'What is the tittle of your project?',\n name: 'title',\n \n },\n {\n type: 'input',\n message: 'Please enter a description of your project:',\n name: 'description',\n \n },\n {\n type: 'input',\n message: 'Please enter a short note on the installation process of your project:',\n name: 'installation',\n \n },\n {\n type: 'input',\n message: 'Please submit a short discription of your application\\'s usage:',\n name: 'usage',\n },\n {\n type: 'list',\n message: 'Please select a license that best support your app:',\n choices: [\"MIT\", \"IBM\", \"Mozilla\", \"Other\"],\n name: 'license',\n \n },\n {\n type: 'input',\n message: 'Please note all contributiors to your project(if you are the only contributor please write your name):',\n \n name: 'contributors',\n \n },\n {\n type: 'input',\n message: 'Please input any test description to your application -- if you dont have any at the moment please write n/a:',\n name: 'test',\n },\n ])\n\n .then((response) => {\n let filename = `${response.title}` + \".md\"\n writeToFile(filename, response);\n });\n\n}", "function init() {\n inquirer\n .prompt([\n /* Pass your questions in here */\n {\n type: 'input',\n name: 'title',\n message: questions[0],\n },\n {\n type: 'input',\n name: 'description',\n message: questions[1],\n },\n {\n type: 'input',\n name: 'install',\n message: questions[2],\n },\n {\n type: 'input',\n name: 'usage',\n message: questions[3],\n },\n {\n type: 'input',\n name: 'contribution',\n message: questions[4],\n },\n {\n type: 'input',\n name: 'test',\n message: questions[5],\n },\n {\n type: 'list',\n name: 'license',\n message: questions[6],\n choices: ['Apache', 'MIT', 'GPL','None'],\n },\n {\n type: 'input',\n name: 'username',\n message: questions[7],\n },\n {\n type: 'input',\n name: 'email',\n message: questions[8],\n },\n ])\n .then((data) => {\n const fileName = 'Sample.md'\n writeToFile(fileName, data)\n })\n}", "function init() {\n return inquirer.prompt([\n {\n type: 'input',\n name:'github',\n message: github,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'email',\n message: email,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'title',\n message: title,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'description',\n message: description,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'installation',\n message: installation,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'usage',\n message: usage,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'list',\n name: 'license',\n message: license,\n choices: ['MIT', 'GNU GPLv3', 'Apache', 'GNU AGPLv3', 'None'] \n },\n {\n type: 'input',\n name: 'contribution',\n message: contribution,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n {\n type: 'input',\n name: 'test',\n message: test,\n validate: confirmVal => {\n if (confirmVal) {\n return true\n } else {\n console.log('Please enter a valid answer!')\n return false\n }\n }\n },\n ])\n}", "function inquire() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add to Inventory\", \"Add New Product\", \"Leave Store\"],\n name: \"askManager\"\n }\n ]).then(function(user) {\n var path = user.askManager;\n\n switch (path) {\n case \"View Products for Sale\":\n return createTable();\n \n case \"View Low Inventory\":\n return lowInv();\n\n case \"Add to Inventory\":\n return addInv();\n\n case \"Add New Product\":\n return newItem();\n \n case \"Close Program\":\n console.log(\"See you next time!\")\n console.log(\"\\n\")\n return connection.end();\n\n default:\n console.log(\"There seems to be an issue, try again.\")\n console.log(\"\\n\")\n return connection.end();\n }\n })\n }", "function init() {\n inquirer.prompt(questions)\n .then(writeToFile)\n}", "function promptUser() {\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"projectTitle\",\n message: \"What is the title of your Project?\"\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Please write a brief description of your project: \"\n },\n {\n type: \"input\",\n name: \"installation\",\n message: \"Please list what will need to be installed from npm: \"\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"Please describe what this project would be used for: \"\n },\n {\n type: \"list\",\n name: \"license\",\n message: \"Please choose the appropriate license for this project: \",\n choices: [\n \"Apache\",\n \"Academic\",\n \"GNU\",\n \"ISC\",\n \"MIT\",\n \"Mozilla\",\n \"Open\"\n ]\n },\n {\n type: \"input\",\n name: \"contributions\",\n message: \"Please list those who contributed to this project: \"\n },\n {\n type: \"input\",\n name: \"tests\",\n message: \"Is there a test included?\"\n },\n {\n type: \"input\",\n name: \"questions\",\n message: \"What should I do if I have any questions?\"\n },\n {\n type: \"input\",\n name: \"user\",\n message: \"What is your GitHub username?\"\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is your email?\"\n }\n ]);\n}", "function init() {\n return promptUser();\n // return inquirer.prompt(promptUser);\n}", "function init() {\n inquirer\n .prompt([\n {\n type: 'input',\n message: questions[0],\n name: 'title',\n },\n {\n type: 'input',\n message: questions[1],\n name: 'description',\n },\n {\n type: 'input',\n message: questions[2],\n name: 'installation',\n },\n {\n type: 'input',\n message: questions[3],\n name: 'usage',\n },\n {\n type: 'input',\n message: questions[4],\n name: 'contribution',\n },\n {\n type: 'input',\n message: questions[5],\n name: 'testing',\n },\n {\n type: 'input',\n message: questions[6],\n name: 'github',\n },\n {\n type: 'input',\n message: questions[7],\n name: 'email',\n },\n {\n type: 'list',\n message: questions[8],\n choices: ['MIT', 'Mozilla', 'Apache'],\n name: 'license',\n },\n ])\n .then((response) => \n writeToFile(\"README.md\", generateMarkdown(response))\n );\n}", "function init()\n{\n\n inquirer.prompt(questions)\n .then(inquirerResponses =>{\n console.log(\"inquirerResponses: \", inquirerResponses)\n writeToFile(\"README.md\", generateMarkdown ({...inquirerResponses}));\n\n });\n}", "function start() {\n inquirer\n .prompt({\n name: \"action\",\n type: \"rawlist\",\n message: \"What would you like to do?\",\n choices: [\n // \"View all employees\",\n // \"View all employees by department\",\n \"View all employees by manager\",\n \"Add employee\",\n // \"Remove employee\",\n \"Update employee role\",\n \"Update employee manager\",\n // \"View all roles\",\n \"Add role\",\n // \"Remove role\",\n // \"Exit\"\n ]\n })\n .then(function (answer) {\n switch (answer.action) {\n case \"View all employees\":\n // returns data\n viewEmploys();\n break;\n\n case \"View all employees by department\":\n // needs inquirer by which department\n inqViewDep();\n break;\n\n case \"View all employees by manager\":\n // needs inquirer by which manager\n inqViewMang();\n break;\n\n case \"Add employee\":\n // needs inquirer to ask info\n inqAddEmploy();\n break;\n\n case \"Remove employee\":\n // needs inquiere to ask info\n inqRemoveEmploy();\n break;\n\n case \"Update employee role\":\n // reutrns update message is a PUT\n inqUpdateEmployRole();\n break;\n\n case \"Update employee manager\":\n // returns update messge is a PUT\n inqUpdateEmployMang();\n break;\n\n case \"View all roles\":\n // returns data\n viewRoles();\n break;\n\n case \"Add role\":\n // needs inquirer to ask info\n inqAddRole();\n break;\n\n case \"Remove role\":\n // needs inquirer to ask info\n inqRemoveRole();\n break;\n\n case \"Exit\":\n // needs SQL to end connection\n exit();\n break;\n }\n });\n}", "function inititalizeInquirer(){\n inquirer.prompt([{\n name : \"mode\",\n type : \"list\",\n message : \"Which mode are you trying to use?\",\n choices : [\"User\", \"Manager\", \"Supervisor\"]\n }]).then(answers => {\n if (answers.mode === \"User\"){\n user()\n }\n else if(answers.mode === \"Manager\"){\n manager()\n }\n else if (answers.mode === \"Supervisor\" ){\n supervisor()\n }\n });\n}", "function promputUser() {\nreturn inquirer.prompt([\n {\n type: \"input\",\n name: \"title\",\n message: \"What is the title of your project?\"\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Please write a short description of your project.\"\n },\n {\n type: \"input\",\n name: \"installation\",\n message: \"How do you install the project?\"\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"How do you use this project?\"\n },\n {\n type: \"input\",\n name: \"license\",\n message: \"What license does your project have?\"\n },\n {\n type: \"input\",\n name: \"author\",\n message: \"Please list the author(s) of the project.\"\n },\n {\n type: \"input\",\n name: \"contributions\",\n message: \"If you would like to have others use this code or contribute it, please write your message here.\"\n },\n {\n type: \"input\",\n name: \"tests\",\n message: \"How can you test your application?\"\n },\n {\n type: \"input\",\n name: \"username\",\n message: \"Please eneter your GitHub username.\"\n },\n {\n type: \"input\",\n name: \"url\",\n message: \"Please enter your GitHub URL.\"\n },\n {\n type: \"input\",\n name: \"email\",\n message: \"Please enter your email.\"\n },\n {\n type: \"input\",\n name: \"questions\",\n message: \"How may we go about contacting you?\"\n },\n])}", "function init() {\ninquirer\n .prompt([\n {\n type: 'input',\n name: 'title',\n message: 'What is the title of your project?'\n // validate: titleInput => {\n // if (titleInput) {\n // return true;\n // } else {\n // console.log('What is the title of your project?');\n // return false;\n // }\n // }\n },\n {\n type: 'input',\n name: 'description',\n message: 'Enter a description of the project'\n },\n {\n type: 'input',\n name: 'installation',\n message: 'Provide installation instructions'\n },\n {\n type: 'input',\n name: 'usage',\n message: 'What is its usage?'\n },\n {\n type: 'input',\n name: 'contributing',\n message: 'Enter contributors to the project'\n },\n {\n type: 'checkbox',\n name: 'license',\n message: 'What license do you choose? (Check one)',\n choices: ['MIT', 'GPL', 'Common', 'GPL(>=2)'],\n }, \n {\n type: 'input',\n name: 'year',\n message: 'What year is it?'\n },\n {\n type: 'input',\n name: 'name',\n message: 'What is your full name?'\n },\n {\n type: 'input',\n name: 'email',\n message: 'What is your email address?'\n },\n {\n type: 'input',\n name: 'username',\n message: 'What is your GitHub username?'\n },\n {\n type: 'input',\n name: 'link',\n message: 'What is the link to your GitHub repository?'\n },\n {\n type: 'input',\n name: 'video',\n message: 'What is the video link for this project (if applicable)?'\n },\n {\n type: 'input',\n name: 'tests',\n message: 'Provide an explanation of testing performed'\n }]\n )\n .then(function(answers){\n // console.log(answers.title + ' is title')\n // console.log(answers.description + ' is description')\n // console.log(answers.installation + ' is installation')\n // console.log(answers.usage + ' is usage')\n // console.log(answers.contributing + ' is contributing')\n // console.log(answers.tests + ' is tests')\n // console.log(answers.link + ' is Github')\n // console.log(answers.email + ' is email')\n // console.log(answers.license + ' is license')\n // if(license =='GPL'){\n // license = 'GPL%20(%3E%3D%202)'\n // } else\n // console.log('license is the same');\n // });\n // console.log(answers.license);\n // chooseLicense(answers);\n writeToFile('README.md', answers);\n });\n }", "function init() {\n inquirer.prompt([\n {\n type: \"input\",\n name: \"title\",\n message: \"What is the title of this project?\"\n },\n {\n type: \"input\",\n name: \"description\",\n message: \"Provide a description for this project: \"\n },\n {\n type: \"list\",\n name: \"licenses\",\n message: \"Identify (if any) the license for this project: \",\n choices: licenseOptions \n },\n { type: \"input\",\n name: \"installation\",\n message: \"What are the installation instructions for this project?\"\n },\n {\n type: \"input\",\n name: \"usage\",\n message: \"What is the usage information for this project?\"\n },\n {\n type: \"input\",\n name: \"contributing\",\n message: \"What are the contributing guidelines for this project?\"\n },\n {\n type: \"input\",\n name: \"test\",\n message: \"What commands should be run to test this project?\"\n },\n {\n type: \"input\",\n name: \"github\",\n message: \"What is your GitHub user name?\" \n },\n {\n type: \"input\",\n name: \"email\",\n message: \"What is your email?\"\n }\n\n ]).then(function(res){\n writeToFile(res)\n })\n}", "async function question( prompt )\n{\n const [ p, resolve, reject ] = promiseRR();\n const rl = RL.createInterface( {\n input: process.stdin,\n output: process.stdout\n } );\n\n rl.question( prompt, ( answer ) => {\n resolve( answer );\n rl.close();\n } );\n return await p;\n}", "function start() {\n inquirer\n .prompt({\n name: \"navigate\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\n \"Add Department\",\n \"Add Role\",\n \"Add Employee\",\n \"View employees by department\",\n \"View employees by role\",\n \"View all employees\",\n \"Update existing employee roles\",\n \"Delete a department\",\n \"Delete a role\",\n \"Delete an employee\",\n \"Exit\"\n ]\n })\n .then(function(answer) {\n if(answer.navigate === \"Add Department\") {\n addDept();\n } else if(answer.navigate === \"Add Role\") {\n addRole();\n } else if(answer.navigate === \"Add Employee\") {\n addEmployee();\n } else if(answer.navigate === \"View employees by department\") {\n viewEmpByDept();\n } else if(answer.navigate === \"View employees by role\") {\n viewEmpByRole();\n } else if(answer.navigate === \"View all employees\") {\n viewAll();\n } else if(answer.navigate === \"Update existing employee roles\") {\n updateRole();\n } else if(answer.navigate === \"Delete a department\") {\n deleteDept();\n } else if(answer.navigate === \"Delete a role\") {\n deleteRole();\n } else if(answer.navigate === \"Delete an employee\") {\n deleteEmp();\n } else {\n connection.end();\n }\n });\n}", "function startApp() {\n inquirer\n .prompt({\n type: \"list\",\n name: \"choice\",\n message: \"What would you like to do?\",\n choices: userChoices,\n })\n .then((answer) => {\n require(\"./lib/databasePath\")(answer.choice);\n });\n}", "function promptUser() {\n return inquirer.prompt(\n [\n {\n type: 'input',\n name: 'title',\n message: 'What is your project title?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Requires title to continue' }}\n },\n\n {\n type: 'input',\n name: 'Description',\n message: 'Enter a brief description of the project',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Provide description to continue' }}\n }, \n \n \n {\n type: 'input',\n name: 'Installation',\n message: 'How do you install your app?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Steps needed' }}\n }, \n \n {\n type: 'input',\n name: 'Usage',\n message: 'How do you use your app?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Steps needed' }}\n }, \n\n {\n type: \"list\",\n message: \"What license should your project have?\",\n name: \"license\",\n choices: [\n \"MIT\",\n \"Unlicense\",\n \"Apache 2.0\",\n \"GNU v3\",\n \"BSD 3-Clause\",\n \"Mozilla Public License 2.0\"\n ],\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Choose a license' }}\n },\n \n {\n type: 'input',\n name: 'Contribution',\n message: 'How to contribute to the project?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Steps needed' }}\n }, \n\n {\n type: 'input',\n name: 'Link',\n message: 'Enter a deployed link?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Enter a deployable link' }}\n }, \n\n {\n type: 'input',\n name: 'Questions',\n message: 'Enter questions for future development',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Enter questions for future development' }}\n },\n\n {\n type: 'input',\n name: 'email',\n message: 'What is your email address?',\n // USE INQUIRER TO VALIDATE ANSWERS.\n validate: (value) => { if (value) { return true } else { return 'Enter questions for future development' }}\n },\n ]);\n}", "function anotherPurchase() {\n\n inquirer\n .prompt([\n {\n name: \"confirm\",\n type: \"confirm\",\n message: \"Would you like to make another purchase?\"\n }\n ])\n .then(function (answer) {\n if (answer.confirm == true) {\n readProducts();\n }\n else {\n console.log(\"Have a Nice Day\");\n connection.end();\n }\n\n });\n\n}", "function runProgram() {\n inquirer.prompt([\n {\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View Products for Sale\", \"View Low Inventory\", \"Add To Inventory\", \"Exit\"],\n name: \"userChoice\"\n }\n ]).then(function (inquirerResponse) {\n userChoice = inquirerResponse.userChoice;\n switchChoices(userChoice);\n })\n}", "function promptUser() {\n return inquirer.prompt([\n \n {\n type: \"input\",\n message: \"Project Title?\",\n name: \"title\"\n },\n {\n type: \"input\",\n message: `Description?`,\n name: \"description\"\n },\n {\n type: \"input\",\n message: \"Provide install instructions for this project.\",\n name: \"installation\"\n },\n {\n type: \"input\",\n message: \"How will this be used?\",\n name: \"usage\"\n },\n {\n type: \"confirm\",\n message: \"Test with ~npm test?\",\n name: \"test\"\n },\n {\n type: \"input\",\n message: \"Who would you like to credit?\",\n name: \"credit\"\n },\n {\n type: \"checkbox\",\n message: \"Please select a license.\",\n choices: [\n \"Apache\",\n \"MIT\",\n \"ISC\",\n \"GNU GPLv3\"\n ], \n name: \"license\"\n },\n {\n type: \"input\",\n message: \"Your email address:\",\n name: \"email\"\n },\n {\n type: \"input\",\n message: \"Your GitHub username:\",\n name: \"username\"\n },\n \n {\n type: \"emoji\",\n message: `How do you feel about this project?`,\n name: \"emoji\"\n },\n ]);\n}", "function init() {\n inquirer\n .prompt([\n {\n type: 'input',\n message: questions[0],\n name: 'name',\n validate :(value) => {if(value) return true; else return 'Please enter something to continiue' }\n },\n {\n type: 'input',\n message: questions[1],\n name: 'description',\n validate :(value) => {if(value) return true; else return 'Please enter something to continiue' }\n },\n {\n type: 'input',\n message: questions[2],\n name: 'install',\n validate :(value) => {if(value) return true; else return 'Please enter something to continiue' }\n },\n {\n type: 'input',\n message: questions[3],\n name: 'example',\n validate :(value) => {if(value) return true; else return 'Please enter something to continue' }\n\n },\n {\n type: 'list',\n message: questions[4],\n name: 'license',\n choices:['MIT','GNU','Mozilla','ISC'],\n validate :(value) => {if(value) return true; else return 'Please select something to continue' }\n },\n {\n type: 'input',\n message: questions[5],\n name: 'contibution',\n \n\n },\n {\n type: 'input',\n message: questions[6],\n name: 'testing',\n \n\n },\n {\n type: 'input',\n message: questions[7],\n name: 'username',\n validate :(value) => {if(value) return true; else return 'Please enter something to continue' }\n\n },\n {\n type: 'input',\n message: questions[8],\n name: 'contact',\n validate :(value) => {if(value) return true; else return 'Please enter something to continue' }\n\n }\n\n ])\n .then((response) =>\n //console.log(JSON.stringify(response));\n //console.log(JSON.stringify(response));\n fs.writeFile('README.md', writeToFile(JSON.stringify(response)), (err) =>\n err ? console.error(err) : console.log('you have successfully saved the info!')\n \n ));\n }", "function userInput(){\n\n inquirer\n .prompt([\n {\n type: \"input\",\n name: \"itemId\",\n message: \"Type the ID of the item you would like to purchase\"\n },\n {\n type: \"input\",\n name: \"itemQuantity\",\n message: \"How many?\"\n }\n ])\n .then(answer => {\n \n var id = answer.itemId;\n var quantity = answer.itemQuantity;\n\n getProductQuantity(id,quantity);\n\n })\n }", "function promptUser() {\n return inquirer.prompt([\n {\n type: \"input\",\n name: \"projectTitle\",\n message: \"What is the project title?\",\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 this project usage for?\",\n },\n {\n type: \"list\",\n name: \"license\",\n message: \"Chose the appropriate license for this project: \",\n choices: [\"Apache\", \"Academic\", \"GNU\", \"ISC\", \"MIT\", \"Mozilla\", \"Open\"],\n },\n {\n type: \"input\",\n name: \"contributing\",\n message: \"Who are the contributors of this projects?\",\n },\n {\n type: \"input\",\n name: \"tests\",\n message: \"Is there a test included?\",\n },\n {\n type: \"input\",\n name: \"questions\",\n message: \"What do I do if I have an issue? \",\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}", "function start(){\n inquirer\n .prompt([\n {\n name: \"commands\",\n type: \"list\",\n choices: ['View Products for Sale', 'View Low Inventory', 'Add to Inventory', 'Add New Product', 'Exit'],\n message: 'What would you like to do?'\n }\n ])\n .then(function(answer){\n switch(answer.commands) {\n case \"View Products for Sale\":\n viewProducts();\n break;\n case \"View Low Inventory\":\n viewInventory();\n break;\n case \"Add to Inventory\":\n addInventory();\n break;\n case \"Add New Product\":\n addProduct();\n break;\n case \"Exit\":\n connection.end();\n }\n })\n}", "function App()\r\n{\r\n\tconsole.log(\"===========================================\");\r\n\tconsole.log(\"\\t\\tWelcome to LIRI.\");\r\n\tconsole.log(\"===========================================\");\r\n\tinquirer.prompt(questions[0]).then(answer => {//promts the first question in our questions list object\r\n\t\tswitch(answer['MenuOption']) {//answer['MenuOption'] in order to get the users input result\r\n\t\t\tcase '1':\r\n\t\t\t\tinquirer.prompt(questions[1]).then(answer => {\r\n\t\t\t\t\tExecuteCommand('get-tweets', answer['TwitterUsername']);//runs the get latest tweets command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '2':\r\n\t\t\t\tinquirer.prompt(questions[2]).then(answer => {\r\n\t\t\t\t\tExecuteCommand('spotify-this-song', answer['SpotifySongSearch']);//runs the Spotify Song search command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '3':\r\n\t\t\t\tinquirer.prompt(questions[3]).then(answer => {\r\n\t\t\t\t ExecuteCommand('movie-this', answer['MovieName']);//runs the movie name search command\r\n\t\t\t\t});\r\n\t\t\t break;\r\n\t\t\tcase '4':\r\n\t\t\t\tExecuteCommand('do-what-it-says', null);//runs the command in the textfile \r\n\t\t\t break;\r\n\t\t\tcase '5':\r\n\t\t\t\tExecuteCommand('exit', null);//exits the application\r\n\t\t\t break;\r\n\t\t\tdefault:\r\n\t\t\t\tconsole.log(\"Command not recognized! Please try again.\");\r\n\t\t\t break;\r\n\t\t }\r\n\t})\r\n}", "function init() {\n inquirer\n .prompt([\n {\n type: 'input',\n name: 'title',\n message: questions[0],\n },\n {\n type: 'input',\n name: 'description',\n message: questions[1],\n },\n {\n type: 'input',\n name: 'installation',\n message: questions[2],\n },\n {\n type: 'input',\n name: 'usage',\n message: questions[3],\n },\n {\n type: 'input',\n name: 'contributing',\n message: questions[4],\n },\n {\n type: 'input',\n name: 'test',\n message: questions[5],\n },\n {\n type: 'list',\n name: 'license',\n message: questions[6],\n choices:['MIT', 'APACHE 2.0', 'GPL 3.0', 'BSD 3', 'None'],\n },\n {\n type: 'input',\n name: 'github',\n message: questions[7],\n \n },\n {\n type: 'input',\n name: 'email',\n message: questions[8],\n },\n ])\n .then((data) => {\n console.log('Responses:',data)\n const fileText = genMarkdown.generateMarkdown(data)\n writeToFile(`${data.title}README.md`, fileText)\n })\n}", "function promptUser() {\n return inquirer.prompt([\n {\n type: \"input\",\n message: \"Welcome to le Phare Corp's ReadMe Generator. What is your project name?\",\n name: \"name\",\n },\n {\n type: \"input\",\n message: \"Please provide a description of the project:\",\n name: \"desc\",\n },\n {\n type: \"input\",\n message: \"Please provide installation instructions for the project:\",\n name: \"install\",\n },\n {\n type: \"input\",\n message: \"Please provide usage information for the project:\",\n name: \"usage\",\n },\n {\n type: \"input\",\n message: \"Please provide testing information for the project:\",\n name: \"testing\",\n },\n {\n type: \"input\",\n message: \"Please provide credits for the project:\",\n name: \"credits\",\n },\n {\n type: \"list\",\n message: \"Please select a license type:\",\n name: \"license\",\n choices: [\n \"MIT\",\n \"ISC\",\n \"Apache\",\n \"GNU\"\n ]\n },\n {\n type: \"input\",\n message: \"What is your GitHub profile name?\",\n name: \"gitHub\"\n },\n {\n type: \"input\",\n message: \"What is your email address?\",\n name: \"email\",\n },\n ])\n}", "function init() {\n inquirer \n .prompt(questions) \n .then(answers => {\n writeToFile(generateReadMe(answers))\n }\n )}", "function promptUser() {\n return inquirer.prompt( \n [\n // Project Title\n {\n type: 'input',\n message: 'What is the title of this Project?',\n name: 'title'\n },\n\n // Description \n {\n type: 'input',\n message: 'Breif Description:',\n name: 'description'\n },\n\n // Installation Instructions\n {\n type: 'input',\n message: 'Installation Instructions:',\n name: 'installation'\n },\n\n // Usage Information\n {\n type: 'input',\n message: 'Usage Information:',\n name: 'usage'\n },\n\n // Contribution Guidelines\n {\n type: 'input',\n message: 'Contribution Guidelines:',\n name: 'guidelines'\n },\n \n // Test Instructions\n {\n type: 'input',\n message: 'Test Instructions:',\n name: 'testin'\n },\n\n // License Choice \n {\n type: \"checkbox\",\n message: \"Which license?\",\n name: \"license\",\n choices: [\n 'Photoshop',\n 'Premiere',\n 'Lightroom',\n 'Illustrator'\n ]},\n\n // GitHub Username\n {\n type: 'input',\n message: 'Github URL:',\n name: 'github'\n },\n\n // Email Address\n {\n type: 'input',\n message: 'Email Address:',\n name: 'email'\n }\n ] \n );\n}", "function promptUser(){\n return inquirer.prompt([\n {\n type: 'input',\n name: 'projName',\n message: 'What is the name of your project?'\n },\n {\n type: 'input',\n name: 'projDesc',\n message: 'Describe your project'\n },\n {\n type: 'input',\n name: 'inst',\n message: 'Explain the installation process.'\n },\n {\n type: 'input',\n name: 'usage',\n message: 'What do you use this project for?'\n },\n {\n type: 'list',\n name: 'lic',\n message: 'What are the licenses for this project?',\n choices: [\n \"Apache\",\n \"ISC\",\n \"MIT\",\n \"Mozilla\"\n ]\n },\n {\n type:'input',\n name:'contrib',\n message: 'Who contributed to this project?'\n },\n {\n type: 'input',\n name: 'gitUser',\n message: 'What is your Github username?'\n },\n {\n type: 'input',\n name: 'email',\n message: 'What is your email?'\n },\n ])\n}", "function confirmToOrder() {\n\n inquirer.prompt([\n\n {\n type: \"list\",\n name: \"confirm\",\n message: \"Would you like to place an order?\",\n choices: [\"Yes\", \"No\"]\n }\n\n]).then(function (answer) {\n\n if (answer.confirm === 'Yes'){\n orderItems();\n } else {\n console.log(\"Thank you for visiting Bamazon! Have a nice day!\");\n connection.end();\n }\n\n });\n\n} //CLOSE: Function to confirm if users would like to place an order", "function init() {\n inquirer\n .prompt(questions)\n .then(answers => {\n console.info(questions);\n console.info(answers);\n const titleText = `# ${answers.title}\\n\\n`\n const coolBadges = `![license is ${answers.license}](https://img.shields.io/badge/license-${answers.license}-blue)\\n\\n`\n const descriptionText = `## Description\\n\\n${answers.description}\\n\\n`\n const tableText = `* [Installation](#installation)\\n* [Usage](#Usage)\\n* [Credits](#Credits)\\n* [License](#License)\\n* [Contributing](#Contributing)\\n* [Tests](#Tests)\\n* [Questions?](#Questions?)\\n\\n`\n const installText = `## Installation\\n\\n${answers.installation}\\n\\n`\n const usageText = `## Usage\\n\\n${answers.usage}\\n\\n`\n const creditsText = `## Credits\\n\\n${answers.credits}\\n\\n`\n const licenseText = `## License\\n\\nThis Software is protected under the ${answers.license}\\n\\n`\n const contributingText = `## Contributing\\n\\n${answers.contributing}\\n\\n`\n const testText = `## Tests\\n\\n${answers.test}\\n\\n`\n const questionsText = `## Questions?\\n\\nmy github: https://github.com/${answers.githubUsername}\\n\\nmy email address: ${answers.email}\\n\\n${answers.questions}\\n\\n` \n const READMEText = titleText + coolBadges + descriptionText + tableText + installText + usageText + creditsText + licenseText + contributingText + testText + questionsText;\n writeToFile('README.md', READMEText);\n });\n \n}", "function liri() {\n inquirer\n .prompt([{\n type: \"list\",\n message: \"What can i do for you?\",\n choices: [\"my-tweets\", \"get-song-details\", \"get-movie-details\", \"do-what-it-says\", \"exit\"],\n name: \"command\"\n },\n {\n type: \"input\",\n message: \"Enter the song/album name:\",\n name: \"song\",\n default: \"The Sign\",\n when: function(userInput) {\n return userInput.command === \"get-song-details\"\n }\n },\n {\n type: \"input\",\n message: \"Enter the movie name:\",\n name: \"movie\",\n default: \"Mr. Nobody.\",\n when: function(userInput) {\n return userInput.command === \"get-movie-details\"\n }\n }\n ])\n .then(async function(userInput) {\n logger.info(\"User selected command is \" + userInput.command);\n if (userInput.command === \"my-tweets\") {\n console.log(\"\\n\\n--------------Tweets---------------\");\n try {\n var tweets = await myTweets();\n logger.info(\"Successfully retrived tweets\");\n logger.debug(tweets);\n tweets.forEach(function(tweet, index) {\n console.log((parseInt(index) + 1) + \". \" + tweet);\n });\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive your tweets\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (userInput.command === \"get-song-details\") {\n console.log(\"\\n\\n-----------Song Details------------\");\n try {\n var songDetails = await getSongDetails(userInput.song);\n logger.info(\"Successfully retrived song details\");\n logger.debug(JSON.stringify(songDetails));\n\n console.log(\"Name: \" + songDetails.name);\n console.log(\"Artist(s): \" + songDetails.artists);\n console.log(\"Preview URL: \" + songDetails.preview);\n console.log(\"Album: \" + songDetails.album);\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive song details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (userInput.command === \"get-movie-details\") {\n console.log(\"\\n\\n-----------Movie Details-----------\");\n try {\n var movieDetails = await getMovieDetails(userInput.movie);\n logger.info(\"Successfully retrived movie details\");\n logger.debug(JSON.stringify(movieDetails));\n\n console.log(\"Movie Title: \" + movieDetails.Title);\n console.log(\"Year: \" + movieDetails.Year);\n console.log(\"IMDB Rating: \" + movieDetails.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + movieDetails.Ratings.find(function (rating) { return rating.Source === \"Rotten Tomatoes\"; }).Value);\n console.log(\"Country produced in: \" + movieDetails.Country);\n console.log(\"Language: \" + movieDetails.Language);\n console.log(\"Plot: \" + movieDetails.Plot);\n console.log(\"Actors: \" + movieDetails.Actors);\n\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive movie details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (userInput.command === \"do-what-it-says\") {\n fs.readFile(\"random.txt\", \"utf8\", async function(error, data) {\n var fileCommand = data.split(\",\");\n if (fileCommand[0] === \"my-tweets\") {\n console.log(\"\\n\\n-----------Tweets------------\");\n try {\n var tweets = await myTweets();\n logger.info(\"Successfully retrived tweets\");\n logger.debug(tweets);\n tweets.forEach(function(tweet, index) {\n console.log((parseInt(index) + 1) + \". \" + tweet);\n });\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive your tweets\");\n }\n console.log(\"-----------------------------\\n\\n\");\n liri();\n } else if (fileCommand[0] === \"get-song-details\") {\n console.log(\"\\n\\n-----------Song Details------------\");\n try {\n var songDetails = await getSongDetails(fileCommand[1]);\n logger.info(\"Successfully retrived song details\");\n logger.debug(JSON.stringify(songDetails));\n\n console.log(\"Name: \" + songDetails.name);\n console.log(\"Artist(s): \" + songDetails.artists);\n console.log(\"Preview URL: \" + songDetails.preview);\n console.log(\"Album: \" + songDetails.album);\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive song details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else if (fileCommand[0] === \"get-movie-details\") {\n console.log(\"\\n\\n-----------Movie Details-----------\");\n try {\n var movieDetails = await getMovieDetails(fileCommand[1]);\n logger.info(\"Successfully retrived movie details\");\n logger.debug(JSON.stringify(movieDetails));\n\n console.log(\"Movie Title: \" + movieDetails.Title);\n console.log(\"Year: \" + movieDetails.Year);\n console.log(\"IMDB Rating: \" + movieDetails.imdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + movieDetails.Ratings.find(function (rating) { return rating.Source === \"Rotten Tomatoes\"; }).Value);\n console.log(\"Country produced in: \" + movieDetails.Country);\n console.log(\"Language: \" + movieDetails.Language);\n console.log(\"Plot: \" + movieDetails.Plot);\n console.log(\"Actors: \" + movieDetails.Actors);\n\n } catch (e) {\n logger.error(JSON.stringify(e));\n console.log(\"Error trying to retrive movie details\");\n }\n console.log(\"-----------------------------------\\n\\n\");\n liri();\n\n } else {\n liri();\n }\n\n });\n\n } else {\n \t//Exit the application\n \tlogger.info(\"Shutting down liri....\");\n process.exit();\n\n }\n });\n}", "function init() {\ninquirer.prompt(questions)\n.then(function(answers){\n console.log(\"this works\");\n const{title,description,installation,usage,contributing,tests,github,email}=answers;\n console.log(title);\n const markup=\n `# ${title}\n# Table of Contents\n1. [Description](#Description)\n2. [Installation](#Installation)\n3. [Usage](#Usage)\n4. [Contributing](#Contributing)\n5. [Tests](#Tests)\n6. [Questions](#Questions)\n\n## Description \n${description}\n\n## Installation \n${installation}\n\n## Usage \n${usage}\n\n## Contributing\n${contributing}\n\n## Tests \n${tests}\n\n## Questions\n github: https://github.com/${github}\n email: ${email}\n `\n fs.writeFile(\"README.md\", markup, function (err) {\n if (err) throw err;\n console.log(\"Success!\");\n })\n})\n}", "function init() {\n inquirer\n .prompt(questions)\n .then((userData) =>\n writeToFile(fileName, userData)\n )\n}", "function confirm() {\r\n\r\n //inquirer question objects for confirm function\r\n inquirer.prompt([\r\n {\r\n type: \"confirm\",\r\n message: \"Would you like to try a new search?\",\r\n name: \"confirm\",\r\n default: false\r\n }\r\n ])\r\n .then(answers => {\r\n if (answers.confirm) {\r\n liriAsk();\r\n }\r\n else {\r\n console.log(\"Thank you for using Liri Bot!\");\r\n }\r\n })\r\n .catch(errors => {\r\n console.log(`Error occurred: ${errors}`);\r\n });\r\n }", "function initializeApp() {\n inquire.prompt([{\n type: \"confirm\",\n message: \"Would you like to place an order ?\",\n name: \"confirm\",\n default: true\n }\n ]).then(function (inquirerResponse) {\n // console.log(inquirerResponse);\n // If customer confirms to placing an order as for input\n if (inquirerResponse.confirm) {\n askUserForOder();\n }\n else {\n console.log(\"\\nThat's okay, come again when you are more sure.\\n\");\n connection.end();\n }\n });\n}", "function start() {\n inquirer.prompt([{\n\n type: \"confirm\",\n name: \"confirm\",\n message: \"Welcome to Bamazon! Would you like to view our inventory?\",\n default: true\n\n }]).then(function(answer) {\n if (answer.confirm === true) {\n displayInventory();\n } else {\n console.log(\"Thank you! Come back soon!\");\n connection.end();\n }\n });\n}", "function userPrompts() {\n return inquirer.prompt([\n {\n type: \"input\",\n message: \"What is the title of your project?\",\n name: \"title\"\n },\n {\n type: \"input\",\n message: \"Please describe your project here.\",\n name: \"description\"\n },\n {\n type: \"input\",\n message: \"What are the installation instructions for this project? If there aren't any, simply write NONE.\",\n name: \"installation\"\n },\n {\n type: \"input\",\n message: \"What would you like your application to be used for?\",\n name: \"usage\"\n },\n {\n type: \"input\",\n message: \"Who contributed to this project?\",\n name: \"contribution\"\n },\n {\n type: \"input\",\n message: \"What are the test intructions for your project?\",\n name: \"test\"\n },\n {\n type: \"checkbox\",\n message: \"Please select a license to use.\",\n choices: [\n \"Apache\",\n \"MIT\",\n \"ISC\",\n \"GNJ GPLv3\",\n ],\n name: \"license\"\n },\n {\n type: \"input\",\n message: \"Who should be credited for this work?\",\n name: \"credit\"\n },\n {\n type: \"input\",\n message: \"What is the title of your project?\",\n name: \"title\"\n },\n {\n type: \"input\",\n message: \"What is your GitHub username?\",\n name: \"username\"\n },\n {\n type: \"input\",\n message: \"What is your email address?\",\n name: \"email\"\n },\n ]);\n}", "function go() {\n inquirer.prompt([\n {\n message: \"Enter the product id\",\n name: \"id_input\",\n type: \"input\",\n vaidate: validateNum\n },\n {\n message: \"How many units would you like to purchase\",\n name: \"amount_input\",\n type: \"input\",\n validate: validateNum\n }\n]).then(function(answers) {\n findID(answers);\n })\n}", "function init() {\n const [ title, description, instructions, usage, license, contribute, howToContribute, link, email, github ] = questions;\n\n return inquirer.prompt ([{\n type: 'input',\n name: 'title',\n message: title,\n validate: titleInput => {\n if(titleInput) {\n return true;\n } else {\n console.log('Please enter the name of your project!')\n };\n }\n },\n {\n type: 'input',\n name: 'description',\n message: description,\n validate: description => {\n if(description) {\n return true;\n } else {\n console.log('Please enter your project description!')\n };\n }\n },\n {\n type: 'input',\n name: 'installation',\n message: instructions,\n validate: installation => {\n if(installation) {\n return true;\n } else {\n console.log('Please provide installation instructions!')\n };\n }\n },\n {\n type: 'input',\n name: 'usage',\n message: usage,\n validate: usageInput => {\n if(usageInput) {\n return true;\n } else {\n console.log('Please provide the usage of your project!')\n };\n }\n },\n {\n type: 'list',\n name: 'license',\n message: license,\n choices: [\n \"apache-2.0\",\n \"lgpl-3.0\",\n \"mit\",\n \"mpl-2.0\",\n \"unlicense\"\n ]\n },\n {\n type: 'confirm',\n name: 'confirmContribute',\n message: contribute,\n default: true\n },\n {\n type: 'input',\n name: 'howToContribute',\n message: howToContribute,\n when: ({ confirmContribute }) => {\n if (confirmContribute) {\n return true;\n } else {\n return false;\n }\n }\n },\n {\n type: 'link',\n name: 'link',\n message: link,\n validate: linkInput => {\n if(linkInput) {\n return true;\n } else {\n console.log('Please provide a link to your project!')\n };\n }\n },\n {\n type: 'link',\n name: 'email',\n message: email,\n validate: emailInput => {\n if(emailInput) {\n return true;\n } else {\n console.log('Please provide your email!')\n };\n }\n\n },\n {\n type: 'input',\n name: 'github',\n message: github,\n validate: githubInput => {\n if(githubInput) {\n return true;\n } else {\n console.log('Please provide your github username!')\n };\n }\n }\n ]);\n}", "function init() {\n inquirer.prompt(questions).then((answers) => {\n writeToFile(answers);\n });\n}", "function superAsk(){\n\n inquirer\n .prompt([\n // Here we create a basic text prompt.\n {\n type: \"rawlist\",\n message: \"Greetings, what action would you like to perform today? (select by picking a #)\",\n choices: ['View Product Sales by Department', 'Create New Department', 'Exit'],\n name: \"action\", \n },\n\n ])\n .then(function(response) {\n\n switch (response.action) {\n case 'View Product Sales by Department':\n viewProdSales();\n break;\n case 'Create New Department':\n createDept();\n break;\n case 'Exit':\n process.exit();\n break;\n default:\n console.log('Whoops! Looks like something went wrong. Are you sure you picked a number 1-2?');\n }\n });\n}", "function startApp() {\n\n //Take user input\n inquirer.prompt({\n type: \"list\",\n message: \"Enter your choice of Bamazon-View?\",\n choices: [\"Customer\", \"Manager\", \"Supervisor\"],\n name: \"view\"\n })\n .then(function (inquirerResponse) {\n\n //Call function with user option to execute desired operation\n switch (inquirerResponse.view) {\n\n case 'Customer':\n\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"| CUSTOMER VIEW |\");\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"\\n\");\n\n // Include the bamazonCustomer.js file\n require('./bamazonCustomer');\n break;\n\n case 'Manager':\n\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"| MANAGER VIEW |\");\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"\\n\");\n\n // Include the bamazonManager.js file\n require('./bamazonManager');\n break;\n\n case 'Supervisor':\n\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"| SUPERVISOR VIEW |\");\n console.log(\"------------------------------------------------------------------------\");\n console.log(\"\\n\");\n\n // Include the bamazonSupervisor.js file\n require('./bamazonSupervisor');\n break;\n\n default:\n console.log(\"Incorrect user input!!\");\n startApp();\n }\n\n })\n .catch(function (err) {\n console.log(err);\n });\n\n\n} //End of startApp()", "async function addToInventoryPrompt() {\n\n return inquirer.prompt([{\n //Ask user the item ID of the product they would like to buy\n name: \"item_id\",\n type: \"input\",\n message: \"Item Id?\",\n validate: async function (itemIdInput) {\n //Check to see whether the Item id entered is a number and within the range\n if (!isNaN(itemIdInput)) {\n\n const inRange = await isItemInRange(itemIdInput);\n // console.log(\"\\n isItemInRange = \" + inRange);\n if(inRange)\n return true;\n\n } else {\n return \"Please provide a valid item id!\";\n }\n }\n },\n {\n // Ask how many units of the product manager would like to add\n name: \"noOfUnites\",\n message: \"How much quantity you would like to add?\",\n type: \"input\",\n validate: function (noOfUnites) {\n if (!isNaN(noOfUnites)) {\n return true;\n } else {\n return \"Please enter a valid quantity!\";\n }\n }\n }\n ]);\n\n}", "function askUser() {\n inquirer\n .prompt([\n {\n name: \"askFunction\",\n type: \"list\",\n message: \"What would you like to do?\",\n choices: [\"View products for sale\",\"View low inventory\", \"Add to Inventory\", \"Add new product\"]\n }\n\n ]).then(function(answer) {\n var job = answer.askFunction;\n if (job === \"View products for sale\"){\n showInventory(job);\n }\n else if (job === \"View low inventory\") {\n lowInventory();\n }\n else if (job === \"Add to Inventory\") {\n addInventory();\n }\n else if (job === \"Add new product\") {\n addNewProduct();\n }\n \n });\n\n}", "function firstPrompt(){\n return inquirer.prompt(firstQuestionsArray);\n}", "function whatIsNext(){\n\n inquirer\n .prompt([{\n type: 'list',\n name: 'whatNext',\n message: 'What would you like to do next?',\n choices: ['Quit', 'Do something else']\n }])\n .then(answer => {\n\n if (answer.whatNext === 'Quit'){\n process.exit();\n }\n else {\n startPrompt();\n }\n });\n}", "function start(){\npopulateData();\n// use inquirer\ninquirer\n// using inqirer's prompt method and feed in the the constant questions\n.prompt(questions)\n// use .then promise method with the answers parameter\n.then(function(answers){\n //use a switch case function and feed in the answer received from the start function\n switch(answers.task){\n case \"View departments\":\n viewDepartment();\n break\n\n case \"View roles\":\n viewRole();\n break\n\n case \"View employees\":\n viewEmployee();\n break\n\n case \"View all employees by department\":\n findAllEmployeesByDepartment();\n break\n\n case \"Add department\":\n addDepartment();\n break\n\n case \"Add role\":\n addRole();\n break\n\n case \"Add employee\":\n addEmployee();\n break\n\n case \"Update employee\":\n selectEmployeetoUpdate();\n break\n\n case \"Exit the program\":\n process.exit(-1);\n };\n});\n}", "function init() {\ninquirer\n .prompt(questions)\n .then(answers => {\n console.log('test')\n writeToFile(\"README.md\", build({...answers}))\n console.log('readme gen')\n })\n .catch(error => {\n if(error.isTtyError) {\n // Prompt couldn't be rendered in the current environment\n } else {\n // Something else when wrong\n console.log(error)\n }\n });\n }", "function ask() {\n \n inquirer\n .prompt([\n {\n name: \"chooseItemID\",\n type: \"input\",\n message: \"What is the ID number of the product you would like to buy?\",\n },\n {\n name: \"chooseItemQuantity\",\n type: \"input\",\n message: \"How many would you like to buy?\",\n }\n ]).then(function (answer) {\n chosenQuantity = answer.chooseItemQuantity;\n chosenID = answer.chooseItemID;\n checkInventory();\n });\n \n}", "function userinput() {\n const questions = [\n {\n name: \"title\",\n type: \"input\",\n message: \"Please enter the title of your README\",\n },\n {\n name: \"description\",\n type: \"input\",\n message: \"Please enter a description for your README\",\n },\n \n {\n name: \"installation\",\n type: \"input\",\n message: \"Please enter a method of installation\",\n },\n {\n name: \"usage\",\n type: \"input\",\n message: \"Please specify usage\",\n },\n {\n name: \"license\",\n type: \"list\",\n message: \"Please enter license\",\n choices: [\"ISC\", \"MIT\"],\n },\n {\n name: \"contributing\",\n type: \"input\",\n message: \"Please enter contributing members\",\n },\n {\n name: \"tests\",\n type: \"input\",\n message: \"Please enter tests\",\n },\n {\n name: \"questions\",\n type: \"input\",\n message: \"Please enter questions\",\n },\n {\n name: \"githuburl\",\n type: \"input\",\n message: \"Please enter github username\",\n },\n {\n name: \"email\",\n type: \"input\",\n message: \"Please enter email\",\n },\n ];\n return inquirer.prompt(questions);\n }", "function promptUser() {\n return inquirer\n .prompt([{\n type: \"input\",\n message: \"What is your First and Last Name?\",\n name: \"name\"\n },\n\n {\n type: \"input\",\n message: \"What is the title of your Project?\",\n name: \"title\"\n },\n\n {\n type: \"input\",\n message: \"Please describe your Project.\",\n name: \"description\"\n },\n {\n type: \"input\",\n message: \"How is this Project to be installed?\",\n name: \"installation\"\n },\n {\n type: \"input\",\n message: \"How is this Project to be used?\",\n name: \"usage\"\n },\n {\n type: \"list\",\n message: \"Please select a license.\",\n name: \"license\",\n choices: [\n \"mit\",\n \"gpl\",\n \"apache\",\n \"mozilla\",\n \"isc\",\n \"None\"\n ]\n },\n {\n type: \"input\",\n message: \"How can individuals contribute to your Project?\",\n name: \"contributing\"\n },\n {\n type: \"input\",\n message: \"Please enter any test instructions for this Project.\",\n name: \"tests\"\n },\n {\n type: \"input\",\n message: \"What is your GitHub username?\",\n name: \"github\"\n },\n {\n type: \"input\",\n message: \"What is your email address?\",\n name: \"email\"\n },\n ])\n}", "function customerPrompt() {\r\n inquirer\r\n .prompt([{\r\n name: \"item_id\",\r\n type: \"input\",\r\n message: \"What is the ID of the product you would like to purchase?\",\r\n },\r\n\r\n {\r\n name: \"quantity\",\r\n type: \"input\",\r\n message: \"How many of this product would you like to purchase?\",\r\n\r\n\r\n }]).then(function (answer) {\r\n connection.query(\"SELECT item_id, product_name, department_name, price, stock_quantity FROM products WHERE?\", { item_id: answer.item_id }, function (err, res) {\r\n for (var i = 0; i < res.length; i++)\r\n if (res[i].stock_quantity >= answer.quantity) {\r\n \r\n console.log(\"There is sufficient stock to fill this order\" );\r\n }\r\n else {\r\n console.log(\"Insufficient stock, order cannot be completed, please try again\");\r\n\r\n }\r\n \r\n connection.end();\r\n })\r\n })\r\n }" ]
[ "0.7869669", "0.76649946", "0.7618564", "0.75261885", "0.73980665", "0.72931045", "0.7265764", "0.71195155", "0.71069217", "0.71025544", "0.70956725", "0.70956725", "0.7090407", "0.70463085", "0.7024687", "0.70238453", "0.70059633", "0.6925302", "0.6917041", "0.68763286", "0.6859636", "0.68022454", "0.6795389", "0.67842317", "0.6780825", "0.67803913", "0.6772465", "0.67633337", "0.6745253", "0.6741027", "0.6711923", "0.67045444", "0.6699546", "0.6696753", "0.66929007", "0.66921884", "0.66903764", "0.668305", "0.6682928", "0.6664202", "0.6643034", "0.6635135", "0.6622701", "0.6619199", "0.6604999", "0.6597476", "0.6589874", "0.65854007", "0.6577874", "0.657536", "0.65700006", "0.6561456", "0.65596396", "0.65546906", "0.6551621", "0.6549777", "0.6547981", "0.6536665", "0.6536328", "0.6525509", "0.6519172", "0.65134156", "0.64950883", "0.6489539", "0.64757943", "0.64757174", "0.64699775", "0.64531744", "0.64518356", "0.64507145", "0.64486986", "0.64478964", "0.6442372", "0.6437549", "0.6427615", "0.64231604", "0.6419544", "0.6416077", "0.6408796", "0.639752", "0.6389231", "0.6386127", "0.63766414", "0.6369601", "0.6367826", "0.6367509", "0.63657886", "0.6361632", "0.6354242", "0.6339402", "0.63381875", "0.6335083", "0.6333098", "0.63328224", "0.63322073", "0.6327065", "0.632144", "0.63161755", "0.6309369", "0.63056374", "0.63039625" ]
0.0
-1
endregion region set controls state
_onSetIsLoading(status) { this.setState( update(this.state, { controls: { isLoading: { $set: status }, }, }) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setControlValues() {\n document.getElementById('highlight1').value = Common.Settings.Highlight1;\n document.getElementById('highlight2').value = Common.Settings.Highlight2;\n document.getElementById('highlight3').value = Common.Settings.Highlight3;\n setOption(document.getElementById('menuState'), Common.Settings.Menu);\n setOption(document.getElementById('zoom'), Common.Settings.Zoom);\n setOption(document.getElementById('theme'), Common.Settings.Theme);\n}", "function setThemeControlsState() {\n\t\t// set color switcher\n\t\t$colorOptionsColorBtns.each(function() {\n\t\t\tif($(this).data('theme') === themeSettings.themeName) {\n\t\t\t\t$(this).addClass('active');\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$(this).removeClass('active');\n\t\t\t}\n\t\t}); \n\t}", "setButtonState() {\n // this.view.setButtonState(this.runner.busy,this.synchronizing,this.synchronize_type)\n }", "function toggleControlButtons(state){\n $(\"#algorithmSpeed\").prop(\"disabled\",state);\n $(\"#generateBars\").prop(\"disabled\",state);\n $(\"#arraySize\").prop(\"disabled\",state);\n $(\"#selectAlgorithm\").prop(\"disabled\",state);\n if (state){\n $(\"#algorithmSpeedDiv\").addClass(\"disabled-div\");\n $(\"#arraySizeDiv\").addClass(\"disabled-div\")\n }else{\n $(\"#algorithmSpeedDiv\").removeClass(\"disabled-div\");\n $(\"#arraySizeDiv\").removeClass(\"disabled-div\")\n }\n}", "function setPlaybackControls(state){\n if (state === \"play\") {\n for (i= 0; i < inputArray.length; i++) {\n inputArray[i].disabled = false;\n }\n playButton.disabled = true;\n stopButton.disabled = false;\n } \n if (state === \"stop\") {\n for (i= 0; i < inputArray.length; i++) {\n inputArray[i].disabled = true;\n }\n playButton.disabled = false;\n stopButton.disabled = true;\n }\n}", "function toggleOptions(state) {\n\t\tif (state) {\n\t\t\telements.controls.cont.css(\"left\", \"0\");\n\t\t\telements.border.left.css(\"top\", \"0\");\n\t\t\telements.border.right.css(\"bottom\", \"0\");\n\t\t\telements.border.bottom.css(\"left\", \"0\");\n\t\t} else {\n\t\t\telements.controls.cont.css(\"left\", \"-1500px\");\n\t\t\telements.border.left.css(\"top\", \"-1500px\");\n\t\t\telements.border.right.css(\"bottom\", \"-1500px\");\n\t\t\telements.border.bottom.css(\"left\", \"-1500px\");\n\t\t}\n\t}", "function setUpdatingState() {\n status.innerText = 'Updating arrangements...';\n status.style.color = 'black';\n playButton.disabled = true;\n alphaSlider.disabled = true;\n sampleButton1.disabled = true;\n sampleButton2.disabled = true;\n saveButton.disabled = true;\n changeChordsButton.disabled = true;\n chordInputs.forEach(c => c.disabled = true);\n chordInputs.forEach(c => c.style.color = 'gray');\n}", "function toggleControls() {\n $(\"#selectAlgorithmDrop\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n $(\"#selectHeuristicsDrop\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n $(\"#selectObstaclesDrop\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n $(\"#controlButton\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n\n $(\"#clearCanvas\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n $(\"#pencil\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n $(\"#eraser\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n $(\"#diagonals\").prop(\"disabled\", function (i, v) {\n return !v;\n });\n}", "function setButtonStates() {\n var $scanButton = $(instancePage.onDemandScanBtn);\n var $butrButton = $(instancePage.onDemandButrBtn);\n var $saveButton = $('.save-btn');\n var tooltip = \"Save changes to enable\";\n\n $scanButton.removeClass('inactive').prop('disabled', false).removeAttr('title');\n $butrButton.removeClass('inactive').prop('disabled', false).removeAttr('title');\n $saveButton.addClass('inactive').prop('disabled', true);\n\n if (isOAuthPolling ||\n $(instancePage.hiddenIsRenameLocked).val() === \"true\" ||\n $(instancePage.oauthContainer).hasClass('prompting')) {\n $scanButton.addClass('inactive').prop('disabled', true);\n }\n\n if (isOAuthPolling ||\n $(instancePage.oauthContainer).hasClass('prompting')) {\n $butrButton.addClass('inactive').prop('disabled', true);\n }\n\n if (AlmCommon.getHasUnsavedChanges()) {\n $saveButton.removeClass('inactive').prop('disabled', false);\n\n if (getHasActiveJob(scanConfigProperties.container) != scanConfigProperties.previousToolState ||\n scanConfigProperties.hasUnsavedChanges) {\n $scanButton.addClass('inactive').prop('disabled', true).attr('title', tooltip);\n }\n\n if (getHasActiveJob(butrConfigProperties.container) != butrConfigProperties.previousToolState ||\n butrConfigProperties.hasUnsavedChanges) {\n $butrButton.addClass('inactive').prop('disabled', true).attr('title', tooltip);\n }\n }\n }", "setEnable(state) {\n this.enable = state;\n if (this.enable) {\n this.divHandle.style.backgroundColor = \"darkslategrey\";\n this.divBarL.style.backgroundColor = \"lightskyblue\";\n this.divBarR.style.backgroundColor = \"lightgray\";\n }\n else {\n this.divHandle.style.backgroundColor = \"lightgray\";\n this.divBarL.style.backgroundColor = \"gray\";\n this.divBarR.style.backgroundColor = \"gray\";\n }\n }", "setButtonState(){\n if (!this.visible) {\n this.button_connect.classList.add('hidden')\n this.button_settings.classList.add('hidden')\n this.setTitle('not connected')\n } else if(this.upySerial.serial.isOpen()) {\n this.button_connect.innerHTML = 'Disconnect'\n this.button_settings.classList = ['']\n this.setTitle('connected')\n } else {\n this.button_connect.classList = ['']\n this.button_connect.innerHTML = 'Connect'\n this.button_settings.classList = ['']\n this.setTitle('not connected')\n }\n }", "function setControls(){\n//unused: theedgelengthOutput.value=theedgelength.value;\n//unused: therotangleOutput.value=therotangle.value;\n thenodesizeOutput.value=thenodesize.value;\n thelinewidthOutput.value=thelinewidth.value;\n thecubegapOutput.value=thecubegap.value;\n thescaleOutput.value=thescale.value;\n}", "function setButtonStates(){\n // console.log('running setButtonStates');\n $('.btnFilt, .btnSort').removeClass('button-on');\n switch(STORE.fMode){\n case 'ch':\n $('#btnFiltChkd').addClass('button-on');\n break;\n case 'unCh':\n $('#btnFiltUnChkd').addClass('button-on');\n break;\n case 'all':\n $('#noFilter').addClass('button-on');\n }\n\n switch(STORE.sMode){\n case 'hiLo':\n $('#btnSrtHiLo').addClass('button-on');\n break;\n case 'loHi':\n $('#btnSrtLoHi').addClass('button-on');\n break;\n case 'alpha':\n $('#btnSrtAsc').addClass('button-on');\n break;\n case 'revAlpha':\n $('#btnSrtDesc').addClass('button-on');\n break;\n case 'off':\n $('#btnSrtClear').addClass('button-on');\n }\n\n if(STORE.searchTxt!==null){\n $('#js-sect-search .btnSave').addClass('button-on');\n }\n else{\n $('#js-sect-search .btnSave').removeClass('button-on'); \n }\n\n}", "function setPlayingState() {\n status.innerText = 'Move the slider to interpolate styles.';\n status.style.color = 'black';\n playButton.innerText = 'Stop';\n playButton.disabled = false;\n alphaSlider.disabled = false;\n sampleButton1.disabled = false;\n sampleButton2.disabled = false;\n saveButton.disabled = false;\n changeChordsButton.disabled = false;\n chordInputs.forEach(c => c.disabled = true);\n chordInputs.forEach(c => c.style.color = 'gray');\n}", "setButtons(start, copy){\n this.start = start || this.start;\n this.copy = copy || this.copy;\n\n}", "function setActiveControl(id) {\n\t\tcontrols.removeClass(controlClasses.active).addClass(controlClasses.inactive);\n\t\tcontrols.eq(id).removeClass(controlClasses.inactive).addClass(controlClasses.active);\n\t}", "function StatesOfControls() {\n var self = this;\n\n var input = document.querySelectorAll([\n '.js-text-input'\n ]);\n\n self.init = function() {\n if (input) {\n Array.prototype.slice.call(input).forEach(\n function(el) {\n var formGroup = el.parentNode;\n\n var isEmpty = function() {\n if (el.value.length === 0) {\n formGroup.classList.add('is-empty');\n } else {\n formGroup.classList.remove('is-empty');\n }\n };\n\n var isFocused = function() {\n isEmpty();\n\n formGroup.classList.add('is-focused');\n };\n\n var isBlured = function() {\n isEmpty();\n\n formGroup.classList.remove('is-focused');\n };\n\n isEmpty();\n el.addEventListener('focus', isFocused);\n el.addEventListener('blur', isBlured);\n }\n );\n }\n };\n\n\n }", "function updateControlsStatus () {\n if (!controls || rewind || loop) { return; }\n\n var prevDisabled = (prevIsButton) ? prevButton.disabled : isAriaDisabled(prevButton),\n nextDisabled = (nextIsButton) ? nextButton.disabled : isAriaDisabled(nextButton),\n disablePrev = (index <= indexMin) ? true : false,\n disableNext = (!rewind && index >= indexMax) ? true : false;\n\n if (disablePrev && !prevDisabled) {\n disEnableElement(prevIsButton, prevButton, true);\n }\n if (!disablePrev && prevDisabled) {\n disEnableElement(prevIsButton, prevButton, false);\n }\n if (disableNext && !nextDisabled) {\n disEnableElement(nextIsButton, nextButton, true);\n }\n if (!disableNext && nextDisabled) {\n disEnableElement(nextIsButton, nextButton, false);\n }\n }", "function setButton(state) {\n\tif(state) {\n\t\t$(sacIcon).removeClass('icon-square-fill').addClass('icon-check');\n\t} else {\n\t\t$(sacIcon).removeClass('icon-check').addClass('icon-square-fill');\n\t}\n}", "function setNavigationState() {\n if (selectedLevel == 1) {\n classie.add(levelDownCtrl, 'boxbutton--disabled');\n } else {\n classie.remove(levelDownCtrl, 'boxbutton--disabled');\n }\n\n if (selectedLevel == mallLevelsTotal) {\n classie.add(levelUpCtrl, 'boxbutton--disabled');\n } else {\n classie.remove(levelUpCtrl, 'boxbutton--disabled');\n }\n }", "function toggleControls() {\n $log.debug('toggleControls ' + $scope.controls);\n $scope.controls = $scope.controls ? false : true;\n }", "function setUIState(state)\n{\n\tif (admin_on != 0)\n\t{\n\t\tdocument.getElementById('layer_admin').style.display='block';\n\t}\n\telse\n\t{\n\t\tdocument.getElementById('layer_admin').style.display='none';\n\t}\n\t \n\tif(state == 10)\n\t{\n\t\t// keep state as is.\n\t\treturn;\n\t}\n\t\n\tif((state == 1) || (state == 2))\n\t// Display an all clan league.\n\t{\n\t\tdocument.getElementById('layer_main').style.display='block';\n\t\tdoAutoRefresh = 0;\n\t}\n\telse if(state == 3)\n\t// Display a 1v1 clan league.\n\t{\n\t\tdocument.getElementById('layer_main').style.display='none';\n\t}\n\telse if(state == 4)\n\t// Display a 1v1 clan league.\n\t{\n\t\tdocument.getElementById('layer_main').style.display='none';\n\t}\n\telse if(state == 5)\n\t// Display a 1v1 clan league.\n\t{\n\t\tdocument.getElementById('layer_main').style.display='none';\n\t}\n\telse\n\t// State unknown/daemon unreachable\n\t{\n\t\tdocument.getElementById('layer_main').style.display='none';\n\t}\n\tdoAutoRefresh = 0;\n}", "reset(controls) {\n $.each(controls, (i, v) => {\n this[i] = v;\n });\n\n if (!this.ready) {\n //enable flow buttons\n getBtnWrapperSize();\n fixBtns();\n window.onscroll = function() { fixBtns(); };\n //\n this.ready = true;\n }\n }", "useControls() {\n const triggers = [...galleryControlsContainer.childNodes];\n\n triggers.forEach(control => {\n control.addEventListener('click', e => {\n e.preventDefault();\n this.setCurrentState(control);\n\n });\n });\n }", "function setControlPoints(handles, value) {\n Object.keys(handles).forEach(function(name) {\n if (name !== 'textBox') {\n var handle = handles[name];\n handle.drawnIndependently = value;\n }\n });\n }", "function StatesOfControls() {\n var self = this;\n\n var input = document.querySelectorAll([\n '.o-pltz-text-input',\n '.o-pltz-textarea'\n ]);\n\n self.init = function() {\n if(input) {\n var inputsArr = Array.prototype.slice.call(input);\n\n inputsArr.forEach(\n function(el) {\n var formGroup = el.parentNode;\n\n var isEmpty = function() {\n if(el.value.length === 0) {\n formGroup.classList.add('is-empty');\n }\n else {\n formGroup.classList.remove('is-empty');\n }\n };\n\n var isFocused = function() {\n isEmpty();\n\n formGroup.classList.add('is-focused');\n };\n\n var isBlured = function() {\n isEmpty();\n\n formGroup.classList.remove('is-focused');\n };\n\n isEmpty();\n el.addEventListener('focus', isFocused);\n el.addEventListener('blur', isBlured);\n }\n );\n }\n };\n\n\n}", "setupControls() {\n [\"shape\", \"rows\", \"cols\", \"bombs\"].forEach((i) => {\n this.controls[i].addEventListener(\"change\", this.setupBoard.bind(this));\n });\n this.controls.outcome.hidden = true;\n }", "setStates(states) {\n this.states_ = states;\n }", "function setDefaultControlState() {\n defCtrlState = {};\n defCtrlState.hashFunct = 0;\n defCtrlState.collision = 0;\n defCtrlState.tableSize = 0;\n defCtrlState.keyrange = 0;\n defCtrlState.m = '';\n\n // Update the default control state based on the query parameters\n var params = JSAV.utils.getQueryParameter();\n\n // Set hash function\n if (params.hashFunct) {\n if (params.hashFunct > 0 && params.hashFunct <= 5) {\n defCtrlState.hashFunct = params.hashFunct;\n\n // Disable so user can't change the value set by parameter\n $('#function').attr('disabled', 'disabled');\n } else {\n console.error(\"Invalid URL parameter method: \" + params.hashFunct);\n }\n }\n\n // Set collision resolution policy\n if (params.collision) {\n if (params.collision > 0 && params.collision <= 7) {\n defCtrlState.collision = params.collision;\n\n // Disable so user can't change the value set by parameter\n $('#collision').attr('disabled', 'disabled');\n } else {\n console.error(\"Invalid URL parameter collision: \" + params.collision);\n }\n }\n\n // Set table size\n if (params.tableSize) {\n if (params.tableSize > 0 && params.tableSize <= 16) {\n defCtrlState.tableSize = params.tableSize;\n\n // Disable so user can't change the value set by parameter\n $('#tablesize').attr('disabled', 'disabled');\n } else {\n console.error(\"Invalid URL parameter tableSize: \" + params.tableSize);\n }\n }\n\n // Set keyrange\n if (params.keyrange) {\n if (params.keyrange > 0 && params.keyrange <= 2) {\n defCtrlState.keyrange = params.keyrange;\n\n // Disable so user can't change the value set by parameter\n $('#keyrange').attr('disabled', 'disabled');\n } else {\n console.error(\"Invalid URL parameter keyrange: \" + params.keyrange);\n }\n }\n\n // Set M-value\n if (params.m) {\n if (params.m > 0) {\n defCtrlState.m = params.m;\n\n // Disable so user can't change the value set by parameter\n $('#M').attr('disabled', 'disabled');\n } else {\n console.error(\"Invalid URL parameter m: \" + params.m);\n }\n }\n }", "function setButtonState(btn,state)\n {\n logDebug(\"setButtonState: \", btn.firstChild.data, \" := \", state) ;\n btn.state = state ;\n btn.className = \"button\"+state ;\n }", "function resetControls() {\n\t/* jshint validthis:true */\n\tvar len;\n\tlen = this.manipulate.length;\n\tthis.splice( 'manipulate', 0, len );\n} // end FUNCTION resetControls()", "toggleControls_() {\n if (this.controlsMode_ == LightboxControlsModes.HIDE_CONTROLS) {\n this.toggleDescriptionBox_(/* opt_display */true);\n this.toggleTopBar_(/* opt_display */true);\n this.controlsMode_ = LightboxControlsModes.SHOW_CONTROLS;\n } else {\n this.toggleDescriptionBox_(/* opt_display */false);\n this.toggleTopBar_(/* opt_display */false);\n this.controlsMode_ = LightboxControlsModes.HIDE_CONTROLS;\n }\n }", "function setTabState() {\n for (var i = 0; i <= tabObjects.length - 1; i++) {\n // for each tab\n\n var thisTab = tabObjects[i]; // create variable for current tab object\n\n if (thisTab.tabNumber === 1) {\n // if the first tab\n thisTab.state = \"active\"; // set state to \"active\"\n currentTab = thisTab; // set initial value for variable \"currentTab\"\n }\n // apply states to elements\n if (thisTab.state === \"active\") {\n // if state is active\n thisTab.current.setAttribute(attrTab, \"active\"); // set tab attribute to active\n thisTab.panelEl.setAttribute(attrPanel, \"active\"); // set panel attribute to active\n thisTab.icon = \"minus\"; // set icon status to expanded\n } else {\n thisTab.current.setAttribute(attrTab, \"\"); // set tab attribute to empty value\n thisTab.panelEl.setAttribute(attrPanel, \"\"); // set panel attribute to empty value\n thisTab.icon = \"plus\"; // set icon status to collapsed\n }\n setIcon(); // run function \"setIcon\" to update graphic for tab status\n }\n }", "enableItemControls(){\n this.enableMoveItemUpButtons();\n this.enableMoveItemDownButtons();\n this.enableDeleteItemButtons();\n this.setUpNameChangeForm();\n this.setUpDateChangeForm();\n this.setUpStatusForm();\n }", "function updateBtnCanada()\n{\n canadaBtnState = 1;\n}", "function set_view(self, state, level)\n {\n if (state === self.parameters.state_active || (\"active_map\" in self.parameters && self.parameters.active_map.includes(state)))\n {\n self.set_icon(self, \"icon\", self.icons.icon_on);\n self.set_field(self, \"icon_style\", self.css.icon_style_active)\n }\n else\n {\n self.set_icon(self, \"icon\", self.icons.icon_off);\n self.set_field(self, \"icon_style\", self.css.icon_style_inactive)\n }\n if (\"state_text\" in self.parameters && self.parameters.state_text === 1)\n {\n self.set_field(self, \"state_text\", self.map_state(self, state))\n }\n }", "async initStates() {\n\t\tobjects.viomiObjects.map(o => adapter.setObjectNotExistsAsync('control' + (o._id ? '.' + o._id : ''), o));\n\t}", "function setChordChangeState() {\n status.innerText = 'Change chords (triads only) then press Done.';\n status.style.color = 'black';\n playButton.disabled = true;\n alphaSlider.disabled = true;\n sampleButton1.disabled = true;\n sampleButton2.disabled = true;\n saveButton.disabled = true;\n changeChordsButton.innerText = 'Done';\n changeChordsButton.disabled = false;\n chordInputs.forEach(c => c.disabled = false);\n chordInputs.forEach(c => c.style.color = 'black');\n}", "function setStoppedState() {\n status.innerText = 'Ready to play!';\n status.style.color = 'black';\n playButton.innerText = 'Play';\n playButton.disabled = false;\n alphaSlider.disabled = false;\n sampleButton1.disabled = false;\n sampleButton2.disabled = false;\n saveButton.disabled = false;\n changeChordsButton.innerText = 'Change Chords';\n changeChordsButton.disabled = false;\n chordInputs.forEach(c => c.disabled = true);\n chordInputs.forEach(c => c.style.color = 'gray');\n}", "function setDiv(div, btn, state) {\n if (state.val() == \"false\") {\n $(div).addClass('in');\n $(btn).removeClass('collapsed');\n }\n}", "Set()\n {\n this.changed = true;\n this.indicator.style.backgroundColor = 'red';\n }", "function updateButtonStates() {\n // Less than three poitns are not lathe-able\n if (pointArray.length < 3) {\n $('#lathe').prop('disabled', true);\n } else {\n $('#lathe').prop('disabled', false);\n }\n\n // Preview mesh is required for an export\n if ( previewMesh ) {\n $('#exportstl').prop('disabled', false);\n } else {\n $('#exportstl').prop('disabled', true);\n }\n\n }", "function Control() {}", "function Control() {}", "function Control() {}", "function Control() {}", "function toggleControls(n){\r\n\t\tswitch(n){\r\n\t\t\tcase \"on\":\r\n\t\t\t\te('comicForm').style.display = \"none\";\r\n\t\t\t\te('clearData').style.display = \"inline\";\r\n\t\t\t\te('displayData').style.display = \"none\";\r\n\t\t\t\te('addNew').style.display = \"inline\";\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"off\":\r\n\t\t\t\te('comicForm').style.display = \"block\";\r\n\t\t\t\te('clearData').style.display = \"inline\";\r\n\t\t\t\te('displayData').style.display = \"inline\";\r\n\t\t\t\te('addNew').style.display = \"none\";\r\n\t\t\t\te('items').style.display = \"none\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t}", "function resetStates() {\n $(\"#connectBtn\").text(\"Connect\").prop('disabled',false);\n $(\"#publishBtn\").text(\"Start\").prop('disabled',true);\n $(\"#playBtn\").text(\"Start\").prop('disabled',true);\n $(\"#publishStatus\").text(\"\");\n $(\"#playStatus\").text(\"\");\n $(\"#publishStream\").prop('disabled',false);\n $(\"#playStream\").prop('disabled',false);\n}", "function resetControls() {\n $(\"#function\").val(defCtrlState.hashFunct);\n $(\"#collision\").val(defCtrlState.collision);\n $(\"#tablesize\").val(defCtrlState.tableSize);\n $(\"#keyrange\").val(defCtrlState.keyrange);\n $(\"#M\").val(defCtrlState.m);\n if (defCtrlState.m === '') {\n $('#mValue').hide();\n }\n setFunction();\n\n // Clear input textbox and disable next button\n $(\"#input\").val(\"\");\n $('#next').attr(\"disabled\", \"disabled\");\n }", "function disable_enable_controls(state) {\n if (!options.controls) return;\n options.controls.prop('disabled', state);\n }", "function manageControls(position) {\n $('#selected').removeAttr('id');\n $('.navItem').get(position).id = \"selected\";\n // Hide left arrow if position is first slide\n if (position == 0) { $('#leftControl').hide() }\n else { $('#leftControl').show() }\n // Hide right arrow if position is last slide\n if (position == numberOfSlides - 1) { $('#rightControl').hide() }\n else { $('#rightControl').show() }\n }", "function fnSetButtonVisibility(state) {\n fnConfigButtonVisibility(state);\n fnSaveConfigButtonVisibility(state);\n fnStartGameButtonVisibility(state);\n fnChooseFilesButtonVisibility(state);\n fnDownloadLinkVisibility(state);\n}", "function setButtonAttr() {\n btnPrev.disabled = carouselItemsActiveIndex === 0;\n btnNext.disabled = carouselItemsActiveIndex === carouselItemsLength - 1;\n}", "function initControls() {\n // Create html for basic structure:\n // top_controls -> stici_chart -> area_info -> botom_controls.\n var o = jQuery('<div/>').addClass('stici').addClass('stici_normhilite');\n self.container.append(o);\n self.chartDiv = jQuery('<div/>')\n .addClass('stici_chart')\n .addClass('chart_box');\n o.append(self.chartDiv);\n self.areaInfoDiv = jQuery('<div/>')\n .addClass('area_info');\n o.append(self.areaInfoDiv);\n var bottom = jQuery('<div/>').addClass('bottom_controls');\n o.append(bottom);\n\n // Area from input/slider.\n self.areaFrom = new SticiTextBar({\n label: 'Lower endpoint: ',\n step: 0.001,\n change: refreshSelectedAreaOverlay\n });\n\n // Area to input/slider.\n self.areaTo = new SticiTextBar({\n label: ' Upper endpoint: ',\n step: 0.001,\n change: refreshSelectedAreaOverlay\n });\n\n bottom.append(self.areaFrom, self.areaTo);\n\n if (self.options.distribution != 'normal') {\n var df = new SticiTextBar({\n label: ' Degrees of Freedom: ',\n step: 1,\n min: 1,\n max: 350,\n value: self.df,\n change: function(e, value) {\n self.df = value;\n redrawChart();\n refreshSelectedAreaOverlay();\n }\n });\n bottom.append(df);\n }\n // Set vertical positions based upon available controls.\n self.areaInfoDiv.css('bottom', (bottom.height() + 10) + 'px');\n self.chartDiv.css('margin-bottom', (bottom.height() + self.areaInfoDiv.height() + 15) + 'px');\n }", "function setupUI() {\n //Form controls\n createElement(\"frm\", \"US Census layer controls:\");\n createP(); // spacer\n uiBoss.radio = createRadio();\n\n uiBoss.radio.option(\"sex\", \"Sex\");\n uiBoss.radio.option(\"race\", \"Race / Ethnicity\");\n uiBoss.radio.option(\"incRace\", \"Median Income by Race\");\n\n uiBoss.radio.changed(updateViz);\n\n createP(); // spacer\n uiBoss.checkbox1 = createCheckbox(\"Show state name\");\n uiBoss.checkbox1.changed(updateViz);\n\n createP(); // spacer\n uiBoss.checkbox2 = createCheckbox(\"Show median housing value\");\n uiBoss.checkbox2.changed(updateViz);\n}", "after_init_control(){\n\n if(!this.properties.visible)\n this.hide();\n\n if(!this.properties.enabled)\n this.disable();\n\n if(this.properties.style)\n this.jquery().attr('style', this.properties.style);\n\n if(this.properties.field_style)\n this.jquery_place().attr('style', this.properties.field_style);\n\n if(this.properties.css)\n this.set_css(this.properties.css);\n\n if(this.properties.field_css)\n this.set_field_css(this.properties.field_css);\n\n if(this.properties.help)\n this.init_help();\n }", "_updateButtons() {\n var upButton = this.getChildControl(\"upbutton\");\n var downButton = this.getChildControl(\"downbutton\");\n var value = this.getValue();\n\n if (!this.getEnabled()) {\n // If Spinner is disabled -> disable buttons\n upButton.setEnabled(false);\n downButton.setEnabled(false);\n } else {\n if (this.getWrap()) {\n // If wraped -> always enable buttons\n upButton.setEnabled(true);\n downButton.setEnabled(true);\n } else {\n // check max value\n if (value !== null && value < this.getMaximum()) {\n upButton.setEnabled(true);\n } else {\n upButton.setEnabled(false);\n }\n\n // check min value\n if (value !== null && value > this.getMinimum()) {\n downButton.setEnabled(true);\n } else {\n downButton.setEnabled(false);\n }\n }\n }\n }", "function set_view(self, state, level)\n {\n if (\"icons\" in self.parameters)\n {\n if (state in self.parameters.icons)\n {\n self.set_icon(self, \"icon\", self.parameters.icons[state].icon);\n self.set_field(self, \"icon_style\", self.parameters.icons[state].style)\n }\n else if (\"default\" in self.parameters.icons)\n {\n self.set_icon(self, \"icon\", self.parameters.icons.default.icon);\n self.set_field(self, \"icon_style\", self.parameters.icons.default.style)\n }\n else\n {\n self.set_icon(self, \"icon\", \"fa-circle-thin\");\n self.set_field(self, \"icon_style\", \"color: white\")\n }\n\n }\n\n if (\"state_text\" in self.parameters && self.parameters.state_text == 1)\n {\n self.set_field(self, \"state_text\", self.map_state(self, state))\n }\n }", "function initButtonSets() {\n $(\".nav_view\").buttonset();\n $(\".rotate_through\").buttonset();\n $(\".subject_view\").buttonset();\n}", "function setState(state) {\r\n\t\tvar button = $(\"#connect\");\r\n\t\t\r\n\t\tswitch(state) {\r\n\t\t\tcase STATE.DISCONNECTED:\r\n\t\t\t\tbutton.button(\"reset\");\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\tbutton.prop('disabled', false);\r\n\t\t\t\t}, 100);\r\n\t\t\t\t$(\"#ports\").prop(\"disabled\", false);\r\n\t\t\t\t$(\"#baudrate\").prop(\"disabled\", false);\r\n\t\t\t\t$(\"#send\").prop(\"disabled\", true);\r\n\t\t\t\tstopTimeout();\r\n\t\t\t\tbreak;\r\n\t\t\tcase STATE.CONNECTING:\r\n\t\t\t\tbutton.button('connecting');\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\tbutton.prop('disabled', true);\r\n\t\t\t\t}, 100);\r\n\t\t\t\tbreak;\r\n\t\t\tcase STATE.CONNECTED:\r\n\t\t\t\tbutton.button(\"disconnect\");\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\tbutton.prop('disabled', false);\r\n\t\t\t\t}, 100);\r\n\t\t\t\t$(\"#ports\").prop(\"disabled\", true);\r\n\t\t\t\t$(\"#baudrate\").prop(\"disabled\", true);\r\n\t\t\t\t$(\"#send\").prop(\"disabled\", false);\r\n\t\t\t\tstopTimeout();\r\n\t\t\t\tbreak;\r\n\t\t\tcase STATE.DISCONNECTING:\r\n\t\t\t\tbutton.button(\"disconnecting\");\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\tbutton.prop('disabled', true);\r\n\t\t\t\t}, 100);\r\n\t\t\t\tbreak;\r\n\t\t\tcase STATE.SENDING:\r\n\t\t\t\t$(\"#send\").prop(\"disabled\", true);\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tcurrentState = state;\r\n\t}", "function NumRecButtons_updateUI(whichControl) \r\n{\r\n \r\n var textFieldObj = this.textFieldObj;\r\n \r\n if (whichControl == \"allButton\")\r\n {\r\n textFieldObj.setAttribute(\"disabled\",\"true\");\r\n }\r\n else if (whichControl == \"countButton\")\r\n {\r\n textFieldObj.setAttribute(\"disabled\",\"false\");\r\n }\r\n else if (whichControl == \"numRecField\")\r\n {\r\n this.numRecs = this.textFieldObj.value;\r\n }\r\n}", "function enableControls() {\r\n\tvar currentTab = tabs.getActiveTab();\r\n\tcurrentTab.getComponent(currentTab.title + 'inputField').enable();\r\n var btns = currentTab.getComponent(currentTab.title +'btns');\r\n btns.buttons[1].enable();\r\n btns.buttons[0].enable();\r\n}", "function setControlButtonsAccessibility(algorithmStatus)\n{\n runButton.disabled = algorithmStatus !== \"STOPPED\";\n pauseResumeButton.disabled = algorithmStatus === \"STOPPED\";\n stopButton.disabled = algorithmStatus === \"STOPPED\";\n\n\n if(algorithmStatus === \"PAUSED\")\n {\n pauseResumeButton.innerText = \"Resume\";\n }\n else\n {\n pauseResumeButton.innerText = \"Pause\";\n }\n}", "_setInitialState() {\n const that = this;\n\n that._currentIndex = 0;\n that._indicators = [];\n that._items = [];\n that._rotate = false;\n that._handleDefaultInnerHTML();\n }", "controlChange(control, value) {\n this.setState({\n [control]: value,\n });\n }", "function setPlaybackControlState(value) {\n if (value) {\n /* video is playing */\n playButton.style.display = NONE\n pauseButton.style.display = INLINE\n } else {\n /* video is paused */\n playButton.style.display = INLINE\n pauseButton.style.display = NONE\n }\n}", "function handleControls() {\n var hide = window.searchResultSlider.getSlideCount() <= config.slides;\n\n $(\".searchResults .sliderControls\").toggleClass(\"hidden\", hide);\n\n //Hide pager and refresh\n config.pager = !hide;\n window.searchResultSlider.reloadSlider(config);\n }", "set individualControls(array){\n\t\tthis.icShowerSelector = array[0];\n\t\tthis.icHiderSelector = array[1];\n\t\tthis.icDisplayType = array[2];\n\t}", "function resetControls() {\n controls.reset();\n if (!animating) {\n render();\n }\n}", "function setVisibility() {\n\n self.element.querySelector( '.captions_start' ).style.display = getInputElementByName( 'start_button' ).checked ? 'block' : 'none';\n self.element.querySelector( '.captions_submit' ).style.display = getInputElementByName( 'feedback' ).value !== 'none' ? 'block' : 'none';\n // self.element.querySelector( '.captions_cancel' ).style.display = getInputElementByName( 'cancel_button' ).checked ? 'block' : 'none';\n self.element.querySelector( '.captions_finish' ).style.display = getInputElementByName( 'onfinish.restart' ).checked ? 'block' : 'none';\n getInputElementByName( 'manually' ).style.display = getInputElementByName( 'keywords' ).value === 'manually' ? 'block' : 'none';\n function getInputElementByName( name ) { return self.element.querySelector( '[name=\"' + name + '\"]' ); }\n\n }", "function setControls(){\n \n $( \".pointer\" ).click(function() {\n var point = $(this).attr('data-sl');\n count = point;\n initSlider(slides);\n console.log(\"clicked point:\"+point);\n });\n\n }", "function setVisibles() {\n $scope.show_feeding_curves = false; //Wenn Daten vorhanden und nicht Objekt nicht leer, dann auf true\n $scope.show_error_text = false; //Wenn keine Daten vorhanden sind, dann auf true\n //$scope.selectedIndex = -1; //setzt die Klasse \"active\" auf die ausgewaehlte Tabellenzeile\n $scope.leftYLabel = '';\n }", "function set_view(self, state, level)\n {\n if (\"icons\" in self.parameters)\n {\n if (state in self.parameters.icons)\n {\n self.set_icon(self, \"icon\", self.parameters.icons[state].icon);\n self.set_field(self, \"icon_style\", self.parameters.icons[state].style);\n set_service_call(self, self.parameters.icons[state]);\n }\n else if (\"default\" in self.parameters.icons)\n {\n self.set_icon(self, \"icon\", self.parameters.icons.default.icon);\n self.set_field(self, \"icon_style\", self.parameters.icons.default.style);\n set_service_call(self, self.parameters.default);\n }\n else\n {\n self.set_icon(self, \"icon\", \"fa-circle-thin\");\n self.set_field(self, \"icon_style\", \"color: white\");\n set_service_call(self, {});\n }\n\n }\n\n if (\"state_text\" in self.parameters && self.parameters.state_text == 1)\n {\n self.set_field(self, \"state_text\", self.map_state(self, state))\n }\n }", "updateControl(){\n this._control.update();\n }", "function updateControls() {\n\n if (config.controls && dom.controls) {\n\n var routes = availableRoutes();\n var fragments = availableFragments();\n\n // Remove the 'enabled' class from all directions\n dom.controlsLeft.concat(dom.controlsRight)\n .concat(dom.controlsUp)\n .concat(dom.controlsDown)\n .concat(dom.controlsPrev)\n .concat(dom.controlsNext).forEach(function (node) {\n node.classList.remove('enabled');\n node.classList.remove('fragmented');\n });\n\n // Add the 'enabled' class to the available routes\n if (routes.left) dom.controlsLeft.forEach(function (el) {\n el.classList.add('enabled');\n });\n if (routes.right) dom.controlsRight.forEach(function (el) {\n el.classList.add('enabled');\n });\n if (routes.up) dom.controlsUp.forEach(function (el) {\n el.classList.add('enabled');\n });\n if (routes.down) dom.controlsDown.forEach(function (el) {\n el.classList.add('enabled');\n });\n\n // Prev/next buttons\n if (routes.left || routes.up) dom.controlsPrev.forEach(function (el) {\n el.classList.add('enabled');\n });\n if (routes.right || routes.down) dom.controlsNext.forEach(function (el) {\n el.classList.add('enabled');\n });\n\n // Highlight fragment directions\n if (currentSlide) {\n\n // Always apply fragment decorator to prev/next buttons\n if (fragments.prev) dom.controlsPrev.forEach(function (el) {\n el.classList.add('fragmented', 'enabled');\n });\n if (fragments.next) dom.controlsNext.forEach(function (el) {\n el.classList.add('fragmented', 'enabled');\n });\n\n // Apply fragment decorators to directional buttons based on\n // what slide axis they are in\n if (isVerticalSlide(currentSlide)) {\n if (fragments.prev) dom.controlsUp.forEach(function (el) {\n el.classList.add('fragmented', 'enabled');\n });\n if (fragments.next) dom.controlsDown.forEach(function (el) {\n el.classList.add('fragmented', 'enabled');\n });\n }\n else {\n if (fragments.prev) dom.controlsLeft.forEach(function (el) {\n el.classList.add('fragmented', 'enabled');\n });\n if (fragments.next) dom.controlsRight.forEach(function (el) {\n el.classList.add('fragmented', 'enabled');\n });\n }\n }\n\n }\n\n }", "function setButtonsState(isLoading) {\n if (isLoading) {\n geolocationAllowBtn.setAttribute(\"disabled\", isLoading);\n geolocationDeniedBtn.setAttribute(\"disabled\", isLoading);\n } else {\n geolocationAllowBtn.removeAttribute(\"disabled\");\n geolocationDeniedBtn.removeAttribute(\"disabled\");\n }\n }", "init_control(){\n if(this.properties.error) this.jquery_place().addClass('error'); else this.jquery_place().removeClass('error');\n }", "function setButtonsEnabled(val) {\n\trecordButton.disabled = !val;\n\tstopButton.disabled = !val;\n\tpauseButton.disabled = !val;\n}", "function enableAllControls() {\n enableKeyPress();\n enableMouseMove();\n enableMouseClick();\n enableKeyRelease();\n enableMouseRelease();\n }", "function setVisibility() {\n\n self.element.querySelector( '.captions_start' ).style.display = getInputElementByName( 'start_button' ).checked ? 'block' : 'none';\n self.element.querySelector( '.captions_submit' ).style.display = getInputElementByName( 'feedback' ).value !== 'none' ? 'block' : 'none';\n self.element.querySelector( '.captions_finish' ).style.display = getInputElementByName( 'onfinish.restart' ).checked ? 'block' : 'none';\n getInputElementByName( 'manually' ).style.display = getInputElementByName( 'keywords' ).value === 'manually' ? 'block' : 'none';\n function getInputElementByName( name ) { return self.element.querySelector( '[name=\"' + name + '\"]' ); }\n\n }", "function ButtonControl() {\n}", "_onChange() {\n super._onChange();\n this.__toggleSpinnerButtonsState();\n }", "function StateManager_SetInterpreterData()\n{\n\t//Tell the Interpreter to Load this State, display it at the end only if we arent advancing and dont reset\n\t__SIMULATOR.Interpreter.LoadState(this.CurrentState, this.AdvancingStates == 0, false);\n\t//update block variable\n\tthis.BlockUserInteraction = this.CurrentState.ControlSettings && Get_Bool(this.CurrentState.ControlSettings[__NEMESIS_ParamName_LessonBlockControl], false);\n}", "function changeButtonState() {\n\t\t\tif (auto === true) {\n\t\t\t\tbtnList.begin.prop(\"disabled\", auto);\n\t\t\t\tbtnList.backward.prop(\"disabled\", auto);\n\t\t\t\tbtnList.fastBackward.prop(\"disabled\", auto);\n\t\t\t\tbtnList.end.prop(\"disabled\", auto);\n\t\t\t\tbtnList.forward.prop(\"disabled\", auto);\n\t\t\t\tbtnList.fastForward.prop(\"disabled\", auto);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ((goMap.currentMoveIndex === 0) && (exGoMap.currentMoveIndex === 0)) { // Beginning\n\t\t\t\tbtnList.begin.prop(\"disabled\", true);\n\t\t\t\tbtnList.begin.tooltip(\"hide\");\n\t\t\t\tbtnList.backward.prop(\"disabled\", true);\n\t\t\t\tbtnList.backward.tooltip(\"hide\");\n\t\t\t\tbtnList.fastBackward.prop(\"disabled\", true);\n\t\t\t\tbtnList.fastBackward.tooltip(\"hide\");\n\n\t\t\t\tbtnList.end.prop(\"disabled\", false);\n\t\t\t\tbtnList.forward.prop(\"disabled\", false);\n\t\t\t\tbtnList.fastForward.prop(\"disabled\", false);\n\t\t\t\tbtnList.auto.prop(\"disabled\", false);\n\t\t\t} else if ((goMap.currentMoveIndex === goMap.totalMoveCount - 1) || (exGoMap.currentMoveIndex > 0)) {// If at the end or after user put stones\n\t\t\t\tbtnList.begin.prop(\"disabled\", false);\n\t\t\t\tbtnList.backward.prop(\"disabled\", false);\n\t\t\t\tbtnList.fastBackward.prop(\"disabled\", false);\n\n\t\t\t\tbtnList.end.prop(\"disabled\", true);\n\t\t\t\tbtnList.end.tooltip(\"hide\");\n\t\t\t\tbtnList.forward.prop(\"disabled\", true);\n\t\t\t\tbtnList.forward.tooltip(\"hide\");\n\t\t\t\tbtnList.fastForward.prop(\"disabled\", true);\n\t\t\t\tbtnList.fastForward.tooltip(\"hide\");\n\t\t\t\tbtnList.auto.prop(\"disabled\", true);\n\t\t\t\tbtnList.auto.tooltip(\"hide\");\n\t\t\t} else {\n\t\t\t\tbtnList.begin.prop(\"disabled\", false);\n\t\t\t\tbtnList.backward.prop(\"disabled\", false);\n\t\t\t\tbtnList.fastBackward.prop(\"disabled\", false);\n\t\t\t\tbtnList.end.prop(\"disabled\", false);\n\t\t\t\tbtnList.forward.prop(\"disabled\", false);\n\t\t\t\tbtnList.fastForward.prop(\"disabled\", false);\n\t\t\t\tbtnList.auto.prop(\"disabled\", false);\n\t\t\t\tbtnList.auto.tooltip(\"hide\");\n\t\t\t}\n\t\t}", "enableControl(){\n if(this._control){\n if(!this._control.enabled){\n this._control.enabled = true;\n }\n }\n }", "function resetControls(){\n $('.output b').text(0);\n}", "function initControls() {\n // set up textarea autosize\n $('textarea').autosize();\n // set up tooltips\n $('[data-toggle=\"tooltip\"]').tooltip();\n // set up checkbox/radiobox styles\n $(\"input:checkbox, input:radio\").uniform();\n $('.datatable').dataTable({});\n\n // set up select2\n $('.select2').select2();\n\n // Pie charts\n if ($('.pie-chart').length){\n $('.pie-chart').easyPieChart({\n barColor: \"#428bca\",\n lineWidth: 4,\n animate: 1000,\n onStart: function () {\n if (this.options.isInit) {\n return;\n }\n this.options.isInit = true;\n var color = $(this.el).data('barColor');\n if (color) {\n this.options.barColor = color;\n }\n },\n onStep: function (oldVal, newVal, crtVal) {\n $(this.el).find('span').text(Math.floor(crtVal) + '%');\n }\n });\n }\n }", "setControlsWithErrors() {\n for (let i = 0; i < this.controls.length; i++) {\n\n let target = this.controls[i].getTarget();\n\n for (let j = 0; j < this.panels.length; j++) {\n\n let panel = this.panels[j];\n if (panel.targets(target)) {\n if (panel.containsError()) {\n this.controls[i].setError();\n } else {\n this.controls[i].setNoError();\n }\n }\n }\n }\n }", "function toggleDojoControls (form, flag){\n \t \t\n \t \tvar elem = document.getElementById(form).elements;\n \t // var box = dijit.byId('box');\n \t for(var i = 0; i < elem.length; i++){\n \t var dijitElement = dijit.byId(elem[i].id);\n \t if (dijitElement != undefined){\n \t if ((dijitElement.declaredClass == 'dijit.form.ComboBox') || (dijitElement.declaredClass == 'dijit.form.FilteringSelect')){\n \t \t \tdijitElement.attr('disabled',flag);\n \t } else if (dijitElement.declaredClass == 'dijit.form.CheckBox'){\n \t \t\tdijitElement.attr('readOnly',flag);\n \t \t }\n \t }\n \t }\n \t \t\n \t }", "function setModifyEntryPageButtonStatus() {\n $('#btnSaveEntry').removeClass('ui-btn-active');\n $('#btnCancelEntryModification').removeClass('ui-btn-active');\n $('#btnPreview').removeClass('ui-btn-active');\n if (currentModifyEntry == 'title') {\n $('#btnModifyEntryContent').removeClass('ui-btn-active');\n $('#btnModifyEntryTitle').addClass('ui-btn-active'); \n }\n else if (currentModifyEntry == 'content') {\n $('#btnModifyEntryTitle').removeClass('ui-btn-active');\n $('#btnModifyEntryContent').addClass('ui-btn-active'); \n }\n }", "function set_button_state(b,state){\n\tif(state==-1 && b.length){\n\t\tb.addClass(\"button_deactivated\"); // avoids clickability\n\t} else if(b.length){\n\t\tb.removeClass(\"button_deactivated\");\n\t};\n}", "function updateGUI () {\r\n // First slide\r\n if ( presentSlideNumber == 1 ){\r\n $('.leftButton').prop('disabled', true);\r\n\r\n // We are somewhere in the middle\r\n } else if ( presentSlideNumber > 1 && presentSlideNumber < slidesSize ){\r\n $('.leftButton').add('.rightButton').prop('disabled', false);\r\n\r\n // Last slide\r\n } else if ( presentSlideNumber == slidesSize ){\r\n // We have more then one slide, so we can go back to one\r\n // and move forward to pop sharing div\r\n $('.leftButton').add('.rightButton').prop('disabled', false);\r\n\r\n // We shouldn't get here, but if we do enable control\r\n } else {\r\n $('.leftButton').add('.rightButton').prop('disabled', false);\r\n }\r\n\r\n }", "function defaultControls() {\n controls.reset();\n }", "setWindowState(state) {\n this.windowState = state;\n switch (state) {\n case 0:\n $(\"#user-input\").show();\n $(\"#details\").hide();\n $(\"#graphic\").hide();\n $(\".footer-row\").show();\n $(\"#user-input\").empty();\n $(\".nav-item[data-action='back-to-input']\").hide();\n var content = this.input.generateDetailsLabel();\n $(\"#user-input\").append(content.html);\n this.input.addListeners(content.id);\n if (this.input.isValid().value) {\n $(\"#send-input\").removeClass(\"disabled\");\n $(\"#ext-solution\").css(\"display\", \"inline-block\");\n } else {\n $(\"#send-input\").addClass(\"disabled\");\n $(\"#ext-solution\").css(\"display\", \"none\");\n }\n $(\"#solution-comparison\").hide();\n $(\".nav-item[data-action='leave']\").hide();\n break;\n case 1:\n $(\".nav-item[data-action='back-to-input']\").show();\n $(\"#user-input\").hide();\n $(\"#details\").show();\n $(\"#graphic\").show();\n $(\".footer-row\").hide();\n $(\"#solution-comparison\").hide();\n $(\".nav-item[data-action='leave']\").hide();\n break;\n case 2:\n $(\".nav-item[data-action='back-to-input']\").hide();\n $(\"#user-input\").hide();\n $(\"#details\").hide();\n $(\"#graphic\").hide();\n $(\".footer-row\").hide();\n $(\"#solution-comparison\").show();\n $(\".nav-item[data-action='leave']\").show();\n this.fillSolutionComparison();\n break;\n }\n }", "function setButtonState() {\n let shadowDOM = document.getElementById('gdx-bubble-host').shadowRoot;\n let nextButton = shadowDOM.querySelector(\"#gdx-bubble-next\");\n let backButton = shadowDOM.querySelector(\"#gdx-bubble-back\");\n backButton.style.display = 'inline';\n nextButton.style.display = 'inline';\n nextButton.disabled = false;\n backButton.disabled = false;\n if (currentIndex <= 0) {\n nextButton.disabled = false;\n backButton.disabled = true;\n }\n if (currentIndex >= data.length - 1) {\n nextButton.disabled = true;\n backButton.disabled = false;\n }\n}", "function setDialogInputState(newState) {\n if (typeof(newState) !== \"boolean\") return;\n var allInputs = $xp(\".//input|.//select\", dialogLayer);\n allInputs.forEach(function(i) {\n i.disabled = !newState;\n });\n }", "function update_controls_UI() {\r\n\r\n if (!error_state) {\r\n //Update UI.\r\n $(\"#track_time_position\").text(ms_to_string(local_track.position));\r\n $(\"#track_position_slider\").val(local_track.position);\r\n }\r\n\r\n }", "_updateStateOnClick() {\n const that = this;\n\n that._changeCheckState();\n that.focus();\n }", "function updateControls(){\n controls.number_of_rooms = NUMBER_OF_ROOMS;\n controls.epsilon = EPSILON;\n controls.beta = BETA;\n controls.beta_start = BETA_START;\n controls.beta_limit = BETA_LIMIT;\n controls.door_size = DOOR_SIZE;\n controls.ka = KA;\n controls.kd = KD;\n controls.ks = KS;\n controls.kr = KR;\n controls.ko = KO;\n controls.kt = KT;\n var elem = document.getElementById('pause');\n elem.innerHTML = grid.paused ? \"Continue\" : \"Pause\";\n}", "function changeVPSAuto(index) {\n logMessage('Control :' + vpsPerFrameControlList[index].controlName);\n var control = document.getElementById(vpsPerFrameControlList[index].control);\n var autoControl = document.getElementById(vpsPerFrameControlList[index].autoControl);\n if (index === 0) {\n frameControllers[lstFrames.selectedIndex].exposureControl.auto = autoControl.checked;\n var label = document.getElementById('lblExposure');\n if (autoControl.checked) {\n label.value = \"Exposure: Auto\";\n } else {\n control = document.getElementById(vpsPerFrameControlList[0].control);\n label.value = \"Exposure:\" + control.value;\n }\n } else {\n frameControllers[lstFrames.selectedIndex].isoSpeedControl.auto = autoControl.checked;\n var isoLabel = document.getElementById('lblIsoSpeed');\n if (autoControl.checked) {\n isoLabel.value = \"IsoSpeed: Auto\";\n } else {\n control = document.getElementById(vpsPerFrameControlList[1].control);\n isoLabel.value = \"IsoSpeed:\" + control.value;\n }\n }\n control.disabled = autoControl.checked;\n\n\n}", "_onChangeState() {\n\n\n }" ]
[ "0.68861496", "0.6846803", "0.6661408", "0.64162815", "0.63930637", "0.6381234", "0.62064946", "0.61888", "0.61865354", "0.6165685", "0.6138722", "0.6051992", "0.60489887", "0.6047675", "0.60473883", "0.6015784", "0.6002894", "0.5997569", "0.59690654", "0.596625", "0.5946049", "0.5935345", "0.59248626", "0.59204954", "0.591464", "0.5912674", "0.5910817", "0.5900575", "0.58928925", "0.58817273", "0.5868468", "0.5848776", "0.58479315", "0.5831292", "0.5827993", "0.5810884", "0.58106697", "0.5805471", "0.5801833", "0.5799392", "0.578448", "0.57832754", "0.57712483", "0.57712483", "0.57712483", "0.57712483", "0.57658273", "0.5762556", "0.57605815", "0.575821", "0.57572573", "0.5752977", "0.5748696", "0.5733093", "0.5731276", "0.5727947", "0.572427", "0.57228607", "0.5716595", "0.5710939", "0.5701497", "0.5699513", "0.5689398", "0.5682888", "0.56615883", "0.5659911", "0.5659203", "0.5658988", "0.5657818", "0.5656844", "0.5653648", "0.56431085", "0.56375736", "0.56372875", "0.5636106", "0.5622218", "0.56087255", "0.56073326", "0.56063825", "0.56036264", "0.5594999", "0.55910265", "0.5588115", "0.55731255", "0.55722314", "0.5570547", "0.5570319", "0.55677664", "0.5566226", "0.55645406", "0.55635077", "0.55633974", "0.5554405", "0.55368567", "0.5536821", "0.55316585", "0.5530242", "0.5526879", "0.55241615", "0.55173624", "0.5514895" ]
0.0
-1
Ajax action to api rest
function crear_planentrenamiento(){ $.ajax({ type : "POST", url : "api/planentrenamiento/crear", data : $('#crear_plan_form').serialize(), success : function(json) { alert(json.success); alert(json.message); if(json.success == 1) { setTimeout(function(){ location.reload(); },1000); } }, error : function(xhr, status) { alert('Ha ocurrido un problema.'); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function post_action(obj){\r\n$.ajax({\r\n type:\"post\",\r\n url:\"https://5ef88b09ae8ccb0016fd725b.mockapi.io/data_to_do\",\r\n data:obj\r\n})\r\n}", "function ajax() {\r\n return $.ajax({\r\n url: 'http://127.0.0.1:5000/send_url',\r\n data: {\r\n 'url': tabUrl.toString(),\r\n 'username': customerUserName\r\n },\r\n type: 'GET',\r\n dataType: 'json',\r\n success: function(data){ ajaxResults = data}\r\n })\r\n }", "function simpleIndex(){\n $.ajax({\n url: \"api/simple\",\n context: document.body,\n success: function(data){\n $('#IndexResult').html(data);\n }\n });\n}", "function ajax(query, functionName, method, payload) {\n var req = new XMLHttpRequest();\n req.onload = functionName;\n req.open(method, '/' + query, true);\n if (method == \"POST\") {\n req.setRequestHeader(\"Content-Type\", \"application/json;charset=UTF-8\");\n }\n req.send(JSON.stringify(payload));\n }", "function ajax_board(){\n \n $.ajax({\n\t type: \"POST\",\n\t url: \"/WebArenaGoupSI1-04-BE/Board/board\",\n dataType: \"json\",\n\t success: function(data){\n update(data);\n },\n\t error: function (error){\n\t }\n }); \n\n}", "function sendAjax(url, data) {\n\n $.ajax({\n type: \"POST\",\n url: url,\n data: data,\n contentType: \"JSON\",\n processData: false,\n contentType: false,\n dataType: \"json\",\n success: function (result, status) {\n\n console.log(result)\n }\n });\n }", "function button_click_fn() {\n\t//call ajax\n\tajax_handler.request({\n url: '/query/end_point',\n async: false,\n method: 'GET',\n response_type: 'json',\n data: { id_value = document.getElementById('el_id').value },\n on_success: function (data) { \n\t\t/*Do things with data*/ \n\t },\n\t on_error: function (status, error_msg) {\n\t if(console) console.log('status:' + status + ' || error msg:' + error_msg);\n\t }\n \t});\n}", "function AjaxCallSessionAPI(_user, state) {\n $.ajax({\n CrossDomain: true,\n headers: {\n 'Access-Control-Allow-Origin': '*',\n 'Access-Control-Allow-Methods': 'POST',\n 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept'\n }, type: 'POST', contentType: 'application/json; charset=utf-8',\n url: 'http://localhost:8085/api/session/post',\n data: { _u: btoa(_user) },\n dataType: 'jsonp',\n jsonpCallback: (state == 1 ? _gotoIndex() : window.location.href = 'http://localhost:85/login/logout'), //Go to index code on front-end\n success: function (data) { }\n });\n}", "function getUsuario(id,action)\n{\n $.ajax({\n type: \"POST\",\n url: action,\n data: {id},\n success: function (response) {\n mostrarUsuario(response);\n }\n\n });\n\n}", "function teacher_ajaxcall() {\n response = $.ajax({\n url: \"/teacher_refresh/\",\n });\n}", "function doAjax(formData, action){\n\t//TODO: doAjax callback function form showList/modifyList\n}", "function ActualizarFotos() { \n $.ajax({\n url: \"/listarFoto\",\n method: \"POST\",\n dataType: \"json\",\n contentType: \"application/json\",\n success: function(data) {\n Historial_Fotos(data);\n },\n error: function(data) {\n console.log(data);\n }\n });\n}", "function ajaxPostAdmin(funcao, array, action){\n jQuery(function(){\n jQuery.ajax({\n url: getUrlController()+\"/admin\"+action,\n dataType: \"json\",\n type: \"post\",\n data:array,\n beforeSend: function() {\n },\n success: function(json){\n funcao(json);\n }\n });\n });\n return false;\n}", "function getCars() {\n $.ajax({\n url: \"api/cars\",\n type: \"get\",\n data: \"action=all\",\n dataType: \"json\",\n success: function (data) {\n console.log(data);\n addCarsLikeDiv(data);\n }\n })\n}", "function ajax(a, d) {\n return $.ajax({\n type: 'POST',\n url: '/ajax',\n data: JSON.stringify({\n action: a,\n data: d\n }),\n contentType: 'application/json; charset=utf-8'\n });\n }", "function send(action) {\n console.log(\">>>\", JSON.stringify(action));\n $.ajax({\n method: \"POST\",\n url: \"/games/\"+gameId+\"/actions\",\n headers: {\n \"X-CSRF-TOKEN\": csrf\n },\n // The key needs to match your method's input parameter (case-sensitive).\n data: JSON.stringify(action),\n contentType: \"application/json; charset=utf-8\",\n success: function(){console.log(\"action succeeded\")},\n error: function(xhr, status, error) {\n console.log(\"action failed: \"+xhr.status+\" / \"+xhr.responseText, error);\n }\n });\n}", "function createResortAjax(c_json){\n $.ajax({\n url: resort_index,\n type: 'POST',\n dataType: 'json',\n data: c_json,\n headers: { Authorization: 'Token token=' + sessionStorage.getItem('powder-token')}\n })\n .done(function() {\n console.log(\"Created\");\n loadResortsAjax();\n })\n .fail(function() {\n console.log(\"error\");\n });\n }", "function ajaxCall() {\n var data = $('[data-api-url]').data();\n return $.getJSON('/api?url='+data.apiUrl).then(displayElements);\n }", "perform() {\r\n $.ajax(this.REQUEST)\r\n }", "function requestGetApi(url, jsonData) {\r\n var settings = {\r\n \"async\": true,\r\n \"crossDomain\": true,\r\n \"url\": BASE_URL_API + url,\r\n \"method\": \"GET\",\r\n \"data\": jsonData\r\n };\r\n return $.ajax(settings);\r\n}//FIN FUNCION requestGetApiRoute", "function sendAjax2({url_, method_, success_, data_}) {\n const csrftoken = document.querySelector('[name=csrfmiddlewaretoken]').value;\n $.ajax({\n async: true,\n method: method_,\n headers: {\"X-CSRFToken\": csrftoken},\n url: url_,\n data: data_,\n success:function(response){\n response = JSON.parse(response);\n success_(response);\n },\n error : function(){\n console.log('fail', url_, method_, data_)\n }\n });\n}", "function exportArticle(article_sn){\n $.ajax({\n url: \"/ajax/export\",\n type: \"GET\",\n dataType: \"json\",\n data: {\"article\": article_sn},\n success: function(data){\n alert(\"hahah\");\n }\n })\n}", "handleOnClickSubmit ( event ) {\n event.preventDefault();\n \n let content = { success: true };\n $.ajax({\n type: 'POST',\n url: '/api/survey',\n data: JSON.stringify(content),\n contentType: \"application/json; charset=utf-8\",\n traditional: true,\n success: this.handleResponse,\n error: this.handleResponse\n }); \n }", "function addCustomer() {\n actionUrl = \"/api/customer\"\n actiontype =\"POST\"\n actionDataType =\"json\"\n\n sendData = {\n \"firstName\":$(\"#FirstName\").val(),\n \"lastName\": $(\"#LastName\").val(),\n \"address\": $(\"#Address\").val(),\n \"email\": $(\"#Email\").val(),\n \"vatNumber\": $(\"#VatNumber\").val()\n }\n\n\n $.ajax({\n url:actionUrl,\n dataType:actionDataType,\n type: actiontype,\n data: JSON.stringify(sendData),\n contentType: 'application/json',\n processData: false,\n\n success: function (data, textStatus, jQxhr) {\n\n alert(JSON.stringify(data))\n },\n error: function (jqXhr, textStatus, errorThrown) {\n alert(errorThrown);\n }\n\n });\n\n}", "function save(data) {\n $.ajax({\n type : 'POST',\n url: product_api,\n contentType: 'application/json',\n data: data,\n success: () => {\n load_data_json();\n },\n error: (e) => {\n $('.msg.error.error.api').html('<h4>Erro ao acessar a api</h4>')\n }\n });\n}", "function ajax(e) {\n if (e) {\n e.preventDefault();\n }\n\n // gets the POST params\n var data = t.serialize();\n\n // adds the button field\n data += '&' + escape('action[subscribe]') + '=Send';\n\n // ajax request\n $.ajax({\n type: 'POST',\n url: opts.url,\n data: data,\n dataType: 'json',\n success: function (data) {\n if (!data.error && data['@attributes'] && data['@attributes'].result == 'success') {\n if (data['@attributes'].result) {\n\n if ($.isFunction(opts.complete)) {\n opts.complete.call(t, data);\n }\n }\n } else if ($.isFunction(opts.error)) {\n opts.error.call(t, data);\n }\n } ,\n error: function (data) {\n if ($.isFunction(opts.error)) {\n opts.error.call(t, data);\n }\n }\n });\n\n return false;\n }", "function detailsJSON(idF){\n console.log(BASE_URL);\n $.ajax({ \n url:BASE_URL+\"/apis/detailJSON?\",type:\"get\",dataType:\"json\",\n data: {idQuery:idF},\n beforeSend:function(){\n \n },\n success:function(dataRec){ \n alert(\"Make something with this object\"+JSON.stringify(dataRec)); \n },\n error:function(xhr,status,err){ \n console.log(err);\n } \n }); \n}", "function sendAjax(url,data){\n $.ajax({\n type: \"POST\",\n url: url,\n processData: false,\n contentType: false,\n data: data,\n dataType: \"json\",\n success: function(result){\n \n if (result.error != null) {\n alert(result.error);\n }\n console.log(result)\n }\n });\n }", "function getCategorias() {\r\n \r\n return $.ajax({\r\n \r\n url:\"http://localhost:8080/api/categorias/getCategorias\", //aqui va a ir las rutas que se obtuvieron del back, checa el ejemplo del login\r\n \r\n type: \"GET\",\r\n \r\n dataType: \"json\",\r\n \r\n contentType: \"application/json\"\r\n \r\n });\r\n \r\n }", "function requestApi() {\n $.ajax({\n dataType: \"json\",\n url:getUrl(),\n success: (data) => chooseRecipe(data.recipes),\n error: () => console.log(\"can't get url\"),\n });\n}", "function appelAjax2(url){\n\t\t$.ajax({\n\t\t\turl: url,\n\t\t\ttypeData:\"json\",\n\t\t\tbeforeSend: function(){\n\t\t\t\tconsole.log(\"request will be send soon\");\n\t\t\t},\n\t\t\tsuccess: function(result, status){\n\t\t\t\tconsole.log(\"request succeeds\" + result);//Add result in console.log when request is success\n\n\t\t\t\tfor (i=0; i < result['results'].length; i++) {\n\t\t\t\t\tfor (var key in result['results'][i]) {\n\t\t\t\t\t\t$('#result').append('<div>' +result['results'][i][key] + '</div>' + '</br>')\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// for (var key in result) {\n\t\t\t\t// \tobj = result[key]\n\t\t\t\t// \t$('#result').append('<div class=\"panel panel-default\">' + obj)\n\t\t\t\t// \tfor (var key in obj) {\n\t\t\t\t// \t\t$('#result').append('<li class=\"list-group-item\">' + obj[key]['title'] + ' ' + obj[key]['director'] + '<span class=\"badge\">' + obj[key]['episode_id'] + '</span>' + '</li>')\n\t\t\t\t// \t}\n\t\t\t\t// }\n\t\t\t},\n\t\t\terror : function(resultat, statut, erreur){\n\t\t\t\tconsole.log(\"the request fails\");\n\t\t\t},\n\t\t\tcomplete : function(resultat, statut){\n\t\t\t\tconsole.log(\"request finishes, whether in failure or success\");\n\t\t\t}\n\t\t});\n\t}", "function restPost(data) {\n var strData = JSON.stringify(data);\n return $.ajax({\n type: \"POST\",\n beforeSend: function (request) {\n if (AUTHORIZATION != undefined) {\n request.setRequestHeader(\"Authorization\", AUTHORIZATION);\n }\n },\n url: $(\"#protocolinput\").val() + \"://\" + $(\"#hostinput\").val() + \":\" + $(\"#portinput\").val() + \"/db/data/transaction/commit\",\n contentType: \"application/json\",\n data: strData\n });\n}", "function auth($username,$email, $password) {\n $.ajax({\n type: \"POST\",\n //SEND TO MY SERVER URL\n url: \"http://localhost:3000/users\",\n dataType: 'json',\n //async: false,\n data: { 'username': $username, 'email':$email,'password': $password ,'ent':-1,'lit':-1,'gk':-1,'tech':-1,'sports':-1},\n success: function (response) {\n $.session.set('username', $username);\n $(window).attr('location', '../html/user_dashboard.html');\n \n \n \n \n console.log(response);\n }\n })\n}", "useAjax( ajax ) {\n this._ajax = ajax;\n }", "useAjax( ajax ) {\n this._ajax = ajax;\n }", "function requestPostApi(url, jsonData, cabecera) {\r\n var cabecera = cabecera || false;\r\n\r\n var settings = {\r\n \"async\": true,\r\n \"crossDomain\": true,\r\n \"url\": BASE_URL_API + url,\r\n \"method\": \"POST\",\r\n \"data\": jsonData\r\n };\r\n\r\n if (cabecera) {\r\n settings.headers = {\"content-type\": \"application/json\"};\r\n }\r\n\r\n return $.ajax(settings);\r\n}//FIN FUNCION requestPostApiRoute", "function ajax_action(url, id, context, request_label, submit_label) {\n // send the ajax request\n $.ajax(url, {context: context\n\n }).done(function(data, textStatus, jqXHR) {\n//logger(\"ajax done called for \" + request_label);\n\n // when done attach the respnse html to the lightbox body\n $(this).empty().append(data);\n\n // do anything needed aftr the initial function response is loaded\n after_action_loaded(url)\n\n // bind the form for the update ajax return handling\n ajax_bind(featherlight_selector()+\" form\", \"\", submit_label+\" selected sample\", submit_success, submit_error, {flash_selector: flash_selector});\n\n }).fail(function(jqXHR, textStatus, errorThrown) {\n set_header_flash_messages(jqXHR, flash_selector());\n my_alert(request_label+\" request for \"+ id +\" failed: \"+ textStatus +\" responseText: \"+ jqXHR.responseText);\n });\n}", "function ajax(action, payload = null, cb = null, failcb = null) {\n\tvar data = Object.assign( {},\n\t\t\t{\n\t\t\t\t'action': action,\n\t\t\t}, payload\n\t\t);\n\n\t// Since Wordpress 2.8 ajaxurl is always defined in admin header and\n\t// points to admin-ajax.php\n\tjQuery.post(\n\t\tajaxurl,\n\t\tdata,\n\t\tfunction(response) {\n\t\t\tif (cb) {\n\t\t\t\tcb( response );\n\t\t\t}\n\t\t}\n\t).fail(\n\t\tfunction(errorResponse){\n\t\t\tif (failcb) {\n\t\t\t\tfailcb( errorResponse );\n\t\t\t}\n\t\t}\n\t);\n}", "function getAppMalType(){\r\n\t$.ajax({\r\n\t\t\turl: '/appmaltype',\r\n\t\t\tdataType: 'json',\r\n\t\t\ttype: 'POST',\r\n\t\t\tsuccess: getAppMalTypeSuccess\r\n\t\t});\t\r\n}", "function submitGet() {\n console.log('button clicked');\n $.ajax({\n method: 'GET',\n url: '/'\n }).then(function (response) {\n console.log('GET request response', response);\n // $(`.welcome`).append(`<p>${response}</p>`); \n }); //end ajax GET \n}", "async function ajaxCurrentManagement() {\n const result = await $.ajax({\n type: \"POST\",\n url: \"CurrentManagement.aspx/GetManagemetnDetails\",\n data: \"{}\",\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\"\n });\n return result;\n }", "function postClienteJuridico() {\n console.log('postCliente');\n $.ajax({\n type: 'POST',\n contentType: 'application/json',\n url: rootURL + \"/clientes/crearClientesJuridicos\",\n dataType: \"json\",\n data: clienteJuridicoToJSON(),\n success: function(data) {\n $('#h1').append(\"Consulta Realizada\");\n //renderClientes(data);\n }\n \n });\n}", "function start_game() {\n $.ajax({\n url : '/api/game/startGame',\n type : 'POST',\n dataType: 'json',\n contentType : \"application/json\",\n success : function(data) {\n }\n });\n}", "desativarProduto() {\n\n const { id } = this.props.match.params;\n\n const url = `${DOMINIO}/produto/status/${id}`;\n\n const token = localStorage.getItem(\"token\");\n\n $.ajax({\n url: url,\n type: 'PUT',\n headers: { 'token': token },\n success: function (data) {\n\n\n\n }\n });\n\n }", "function useapi(url, methodname) {\n $.ajax({\n url: url,\n type: \"GET\",\n dataType: \"json\",\n success: methodname,\n error: function (xhr, status) {\n console.log(\"Api request error.\");\n }\n });\n}", "function postClienteFisico() {\n console.log('postCliente');\n $.ajax({\n type: 'POST',\n contentType: 'application/json',\n url: rootURL + \"/cuentaAhorroAutomatico/crearCuentaAhorroAutomatico\",\n dataType: \"json\",\n data: clienteFisicoToJSON(),\n success: function(data) {\n $('#h1').append(\"Consulta Realizada\");\n //renderClientes(data);\n }\n \n });\n}", "function testGet(){\n // Ajax expects an object with configuration \n $.ajax({\n\n //This Url is where the server is AT/Located \n url: 'http://restclass.azurewebsites.net/api/test',\n // You must specifiy type\n type: 'GET',\n\n //Paramater is the 'response' from the server. \n // Success means you're getting info back from server!!\n //Conventionally it's a 'res'\n success: function(response){\n //Do this on success\n console.log(\"req success\", response);\n },\n\n //Parameter is the Error details!\n error: function(details){\n //Do this on Error\n console.log(\"Error :(\", details);\n }\n\n\n });\n\n}", "function agregarRegistro(registro) {\n $.ajax({\n type: 'POST',\n url: '/api/users/api-users.php?accion=agregar',\n data: registro,\n success: function(msg) {\n tabla1.ajax.reload();\n },\n error: function() {\n alert(\"Hay un problema\");\n }\n });\n}", "function sendAction() {\n $.ajax({\n url: \"/GEMP/some-action?msg=deletesalleattende&user=\"+Utilisateur.user,\n type: \"POST\"\n });\n}", "function request_inventory(){\n\tvar form = document.getElementById('req_inv');\n var jsonData = formToJson( form );\n\n //alert('in: req');\n\n $.ajax({\n type : \"POST\",\n url : \"/inv_mgt/inventory/create\",\n data : jsonData,\n contentType: \"application/json\",\n success:function(msg){\n \talert('success');\n }\n });\n\n //alert('out: req');\n}", "function servletPost(xx) {\r\n\t$.ajax({\r\n\t\ttype : \"POST\",\r\n\t\turl : \"/\" + xx\r\n\t});\r\n\treturn false;\r\n}", "_submitData(event) {\n\n // prevent submit form\n event.preventDefault();\n\n if( !this._controlDataBeforeSend() ) {\n document.body.scrollTop = document.documentElement.scrollTop = 0;\n return;\n }\n\n //let xhr = new XMLHttpRequest();\n let data = {\n name: this.options.title,\n description: this.options.describe,\n clients: this.options.data\n };\n\n var xhr = $.ajax({\n type: \"POST\",\n url: this._config.url,\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\",\n data: JSON.stringify(data)\n });\n\n var complete = false;\n\n xhr\n .done(function() {\n complete = true;\n\n })\n .fail(function() {\n complete = false;\n })\n .always(function() {\n if(complete) {\n window.location = \"/autodialer/tasks?saved\";\n } else {\n noty({\n text: 'К сожалению произошла ошибка, попробуйте ещё раз!'\n });\n }\n });\n }", "function alerta_restablecer(depto){\n $.ajax({\n url:\"models/alerta_restablecer.php\",\n type:\"POST\",\n dataType:\"html\",\n data:{depto:depto},\n success: function(datos){\n\n }\n })\n}", "function loadclasesbymodality(){\n\n //obtenemos el id de la modalidad seleccionada\n var modalidad = $(\"#modalities\").val();\n var token = $(\"#token\").val();\n \n $.ajax({\n\n url:'../../ajax/clasesbymodalityid',\n headers: token ,\n data: {modality_id:modalidad,_token:token},\n type:'POST',\n datatype:'json',\n success:function(data)\n {\n //console.log(response);\n $('#clases').html(data);\n },\n error: function (response) {\n console.log(response);\n }\n });\n \n\n}", "function ResgatarLocaisAgendamento(idcart) {\r\n $.ajax({\r\n //url: 'http://localhost:9617/agendamento/resgatarlocais',\r\n url: '/agendamento/resgatarlocais',\r\n type: 'POST',\r\n headers: { 'token': sessionStorage.getItem('token') },\r\n data: '=' + idcart,\r\n success: function (r) {\r\n locaisagendamento = r;\r\n PopularLocaisAgendamento(r);\r\n },\r\n error: function (err) {\r\n if (err.status === 400)\r\n alert(err.responseText);\r\n else\r\n alert('Erro ao conectar com o servidor');\r\n }\r\n });\r\n}", "function reg_id_submit(reg_id_value){\n\n console.log(url_push_save_reg_id);\n console.log(reg_id_value);\n\n $.ajax({\n type: 'GET',\n url: url_push_save_reg_id,\n contentType: \"application/json\",\n dataType: 'jsonp',\n data: { reg_id : reg_id_value, secretkey : '0'},\n crossDomain: true,\n beforeSend: function(){\n },\n success: function(res) {\n console.log(url_push_save_reg_id);\n console.log(reg_id_value);\n return false;\n },\n error: function(e) {\n console.log(\"Fehler\");\n },\n complete: function(data) {\n }\n });\n}", "_makeAjax(url, method, postObj) {\n let ajax = this.$.ajax;\n ajax.method = method;\n ajax.url = url;\n ajax.body = postObj ? JSON.stringify(postObj) : undefined;\n ajax.generateRequest();\n }", "_makeAjax(url, method, postObj) {\n let ajax = this.$.ajax;\n ajax.method = method;\n ajax.url = url;\n ajax.body = postObj ? JSON.stringify(postObj) : undefined;\n ajax.generateRequest();\n }", "function ajax_call(server_action,invoice_id)\n{\n\tpath = WEBROOT+'ajax/functionCall';\n\tvar jqxhr = $.ajax(\t{\n\t\t\ttype: 'POST',\n\t\t\t//dataType: 'text',\n\t\t\turl: path,\n\t\t\tdata: { sa : server_action , inv : invoice_id },\n\t\t\tasync: false,\t\t\t\t\n\t\t\tsuccess:\tajaxOK\t,\t\n\t\t\terror:\t\tajaxError\t\n\t\t\t});\t\n\treturn jqxhr;\n}", "function assetsAjaxRequest(action, data, funcSuccess){\r\n\t\t\r\n\t\tdata = modifyDataBeforeAjax(data);\r\n\t\t\r\n\t\tg_ucAdmin.ajaxRequest(action, data, funcSuccess);\r\n\t}", "function getStatus(){\n $.ajax({\n // la URL para la petición\n url: 'getStatus',\n // especifica si será una petición POST o GET\n type: 'POST',\n // la información a enviar\n data: {'_token': $('input[name=_token]').val() },\n // el tipo de información que se espera de respuesta\n dataType: 'json', \n before: function() {\n //\n }, \n success: function(data) {\n //envioDatos();\n \n var obj = { \n 'numero_tarjeta' : $('#numero-tarjeta').val(), \n 'cvv' : $('#cvv').val(),\n 'nombre_tarjetahabiente' : $('#tarjetahabiente').val(),\n 'fecha_vencimiento_mes' : $('#mes').val(),\n 'fecha_vencimiento_año' : $('#año').val(),\n 'identificacion' : $('#cedula').val(),\n 'monto' : data[0]['monto'],\n 'id_vendedor': 1,\n 'direccion_respuesta' : 'http://vendedor.seg/',\n 'id_transaccion' : data[0]['idTransaccion']\n };\n var myJSON = JSON.stringify(obj);\n\n envioDatos(myJSON);\n },\n error: function(jqXHR, textStatus, errorThrown) {\n console.log(textStatus, errorThrown);\n }\n });\n}", "function sendAjax(url, data) {\n\n $.ajax({\n type: \"POST\",\n url: url,\n data: data,\n contentType: \"JSON\",\n processData: false,\n contentType: false,\n dataType: \"json\",\n success: function (result, status) {\n\n }\n });\n}", "function add_language(data) {\n var json = JSON.stringify(data);\n //Show loader (spinner) while waiting for server response\n $(\".darken\").removeClass(\"hide\").show();\n $.ajax({\n url: '/add-language',\n type: \"POST\",\n data: json,\n contentType: \"json\",\n dataType: \"json\",\n statusCode: {\n 404: function () {\n $(\".darken\").hide(); //stop spinner\n },\n 400: function () {\n $(\"2.darken\").hide(); //stop spinner\n },\n 500: function () {\n $(\".darken\").hide(); //stop spinner\n alert(\"Sorry, there is some error in the server side =(\")\n }\n },\n success: function (response, message, jq) {\n console.log(response);\n $(\".darken\").hide(); //stop spinner\n TreatResponse(response); // treat response\n }\n });\n}", "function sesion_api(){\n\t\tvar x =$(\"#formulario\").serialize();\n\t\tvar usuario = $(\"#usuario\").val();\n\t\tvar pass = $(\"#pass\").val();\n $.ajax({\n url: 'http://localhost:5000/login',\n\t\t\tcrossDomain : \"true\",\n\t\t\tasync: false, \n\t\t\tdata: x,\n\t\t\ttype : 'POST',\n // Adjuntar los campos del formulario enviado.\n success: function(response)\n {\n // Mostrar la respuestas del script PHP.\n data=JSON.parse(response)\n\t\t\t\tif (data.error==false) {\n\t\t\t\t\tconsole.log(data);\n\t\t\t\t\t//$(\"#Formulario\")[0].reset();\n\t\t\t\t\tlimpiaForm($(\"#formulario\"));\n\t\t\t\t\t$.ajax({\n\t\t\t\t\t\turl: 'http://localhost:5000/datosregistro',\n\t\t\t\t\t\tcrossDomain : \"true\",\n\t\t\t\t\t\tasync: false, \n\t\t\t\t\t\tdata: x,\n\t\t\t\t\t\ttype : 'POST',\n\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\tx=JSON.parse(response);\n\t\t\t\t\t\t\tconsole.log(x);\n\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\turl: '/users/registroapi',\n\t\t\t\t\t\t\t\tasync: false, \n\t\t\t\t\t\t\t\tdata: x,\n\t\t\t\t\t\t\t\ttype : 'POST',\n\t\t\t\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terror: function(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\terror: function(error) {\n\t\t\t\t\t\t\tlimpiaForm($(\"#formulario\"));\n\t\t\t\t\t\t\talertify.error(\"No se han podido obtener los datos de el API para completar el registro.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlimpiaForm($(\"#formulario\"));\n\t\t\t\t\talertify.error(\"Usuario y/o contraseña inválidos.\");\n\t\t\t\t}\n },\n\t\t\terror: function(error) {\n\t\t\t\tvar i = false;\n\t\t\t\talertify.error(\"No se ha podido iniciar sesión con su cuenta en el API.\");\n\t\t\t}\n });\n\n \t//return i; // Evitar ejecutar el submit del formulario.\n \t}", "function callDummyAction_REP()\r\n{\r\n\t$.ajax({\r\n\t\t\turl: jQuery.contextPath+ \"/path/dummy/DummyAction\",\r\n\t \t\ttype:\"post\",\r\n\t \t\tdataType:\"json\",\r\n\t \t\tsuccess: function(data)\r\n\t \t\t{\r\n\t \t\t}\r\n\t});\r\n}", "function ajaxSubmit(submitUrl,param,callbackJSON) {\r\n $.ajax({\r\n type : \"GET\"\r\n , async : true\r\n , url : submitUrl\r\n , dataType : \"json\"\r\n , timeout : 30000\r\n , cache : false\r\n , data : param\r\n , contentType : \"application/x-www-form-urlencoded; charset=UTF-8\"\r\n , error : function(request, status, error) {\r\n alert(\"데이타 조회시 에러가 발생했습니다.\\n 시스템관리자에게 문의바랍니다.\");\r\n }\r\n , success : callbackJSON\r\n });\r\n}", "function __ajax(url, data){\nvar ajax= $.ajax({\n \"method\":\"POST\",\n \"url\":url,\n \"data\":data\n })\n return ajax\n}", "function PostJsonToApi(route, dataToPost) {\n var result = '';\n $.ajax({\n url: apiBaseUrl + route,\n headers: {\n 'ORSUS': getCookie('ORSUS')\n },\n type: \"POST\",\n data: dataToPost,\n dataType: \"json\",\n contentType: \"application/json\",\n async: false,\n success: function (data, textStatus, xhr) {\n result = data;\n //InsertedSuccessfullyAlert('Inserted Successfully');\n return 1;\n },\n error: function (xhr, textStatus, errorThrown) {\n //TransactionFailedAlert('Error while inserting record.');\n return 0;\n }\n });\n return result;\n}", "function testCurrentHyp() {\n var initialState = {\n \"predicates\" : toAspInitial(gridData1).concat(toAspInitialColours(gridData1)), //[\"one\", \"two\"],\n \"action\" : $('#action').val() + '.'\n }\n console.log(JSON.stringify(initialState));\n\n $.ajax({\n type: \"POST\",\n contentType : 'application/json; charset=utf-8',\n dataType : 'json',\n url: \"http://localhost:8080/test-curr-hyp\",\n data: JSON.stringify(initialState), // Note it is important\n success : function(result) {\n // do what ever you want with data\n console.log(result);\n updateTarget(result);\n }\n });\n}", "function ajax(method, url, data, success, error) {\n\t\t\t\tvar xhr = new XMLHttpRequest();\n\t\t\t\txhr.open(method, url);\n\t\t\t\txhr.setRequestHeader(\"Accept\", \"application/json\");\n\t\t\t\txhr.onreadystatechange = function () {\n\t\t\t\t\tif (xhr.readyState !== XMLHttpRequest.DONE) return;\n\t\t\t\t\tif (xhr.status === 200) {\n\t\t\t\t\t\tsuccess(xhr.response, xhr.responseType);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terror(xhr.status, xhr.response, xhr.responseType);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\txhr.send(data);\n\t\t\t}", "function searchOrder() {\n console.log ('search orders');\n $.ajax ({\n type: \"POST\",\n contentType: \"application/json\",\n url: rootURL + \"/search\",\n dataType: \"json\", // data type of response\n data: searchJsonData(),\n success: renderSearchTable,\n error: function (data, jqXHR, textStatus, errorThrown) {\n console.log (\"failed to search order\", data);\n }\n });\n}", "function api_call() {\n $('form').submit()\n }", "function testm2() {\n var id =$('#unique_id').val();\n $.ajax({\n type: \"Get\",\n\n url: '/test',\n data: { 'id':id }, \n dataType:'json', \n success:function(data)\n {\n if (!$.trim(data)){\n alert('المعرف الوحيد خاطئ');\n }\n /* else\n\n $('#f').submit();*/\n }\n });\n }", "function fnGrabarCategoria() {\n\n var postData = {\n ctcid: $(\"#Ctcid\").val(),\n categoria: $(\"#Categoria\").val()\n };\n $.ajax({\n type: 'POST',\n url: \"/Cartera/GrabarCategoria/\", // we are calling json method\n dataType: 'json',\n async: true,\n data: postData,\n success: function (data) {\n }\n\n });\n\n}", "editFuel() {\n\n // Create new data to send.\n let datas = {\n \"Id\": this.state.currentfuel.Id,\n \"Name\": this.state.newName\n };\n\n // API request to edit the fuel.\n $.ajax({\n url: 'https://localhost:5001/api/fuel',\n type: \"PUT\",\n data: JSON.stringify(datas),\n contentType: 'application/json; charset=utf-8'\n }).done((response) => {\n this.props.onHide();\n }).fail((response) => {\n console.log(response);\n });\n }", "function GetPriceMonthlyReRegisterTK() {\n var typeOfVehicle = $('#TypeOfVehicleRe').val();\n var parkingPlaceID = $('#ParkingPlaceIDRe').val();\n $.ajax({\n url: \"/ManageTicket/GetPriceMonthly\",\n type: \"POST\",\n data: JSON.stringify({ typeOfVehicle: typeOfVehicle, parkingPlaceID: parkingPlaceID }),\n contentType: \"application/json\",\n dataType: \"json\",\n success: function (result) {\n if (result == \"LoadFalse\") {\n alert(\"Lấy dữ liệu không thành công!\");\n } else {\n reloadModalReRegister(result.MonthlyPrice);\n }\n \n },\n error: function (errormessage) {\n alert(errormessage.responseText);\n }\n });\n}", "function createArticle() {\n $.ajax({\n type: \"POST\",\n url: URL_ARTICLES,\n data: JSON.stringify(getArticleRequestJson()),\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\",\n success: function (data) {\n window.location.href = URL_INDEX;\n },\n error: function(error) {\n processError(error);\n }\n });\n}", "function ResgatarTiposAgendamento(idcart) {\r\n $.ajax({\r\n //url: 'http://localhost:9617/agendamento/resgatartipos',\r\n url: '/agendamento/resgatartipos',\r\n type: 'POST',\r\n headers: { 'token': sessionStorage.getItem('token') },\r\n data: '=' + idcart,\r\n success: function (r) {\r\n tiposagendamento = r;\r\n PopularTiposAgendamento(r);\r\n },\r\n error: function (err) {\r\n if (err.status === 400)\r\n alert(err.responseText);\r\n else\r\n alert('Erro ao conectar com o servidor');\r\n }\r\n });\r\n}", "function ajax_note_action() {\n // avoid page reload after ajax call\n event.preventDefault();\n\n $.ajax({\n type: \"POST\",\n crossOrigin: true,\n url: \"/ajax/note_action/\",\n data: $('#note_form').serialize(),\n beforeSend: function() {\n $('.note_dialog').hide();\n $('#cmtlst_loading').show();\n },\n success: function(rsp_data, status) {\n $('#cmtlst_loading').hide();\n buildNoteList(rsp_data);\n },\n error: function(xhr, status, error) {\n $('#cmlst_loading').hide();\n $('#cmlst_loading span').text(error);\n },\n complete: function(xhr, status) {\n ;\n }\n });\n}", "function ResgatarAgendamentos(idcart) {\r\n $.ajax({\r\n //url: 'http://localhost:9617/agendamento/resgatar',\r\n url: '/agendamento/resgatar',\r\n type: 'POST',\r\n headers: { 'token': sessionStorage.getItem('token') },\r\n data: '=' + idcart,\r\n success: function (agendamentos) {\r\n PopularAgendamentos(agendamentos);\r\n ResgatarLocaisAgendamento(idcart);\r\n ResgatarTiposAgendamento(idcart);\r\n },\r\n error: function (err) {\r\n if (err.status === 400)\r\n alert(err.responseText);\r\n else\r\n alert('Erro ao conectar com o servidor');\r\n }\r\n });\r\n}", "function MostrarNombre() { \n var nombre = {\n nombre: nombre\n };\n \n $.ajax({ \n url: \"/nombreUsuario\",\n method: \"POST\",\n dataType: \"json\",\n contentType: \"application/json\",\n success: function(data) {\n console.log(data);\n console.log(\"Hola\");\n },\n error: function(data) {\n console.log(data);\n }\n });\n}", "ajaxMethod (data, callback, settings = this.settings) {\n $.ajax({\n type : 'POST',\n dataType : settings.dataType,\n url : settings.url,\n data : data,\n headers : {\n [settings.csrf.name]: settings.csrf.token\n },\n success (data) {\n if (data.success === true) {\n callback(data)\n if (settings.dev) {\n console.log('Success:', data)\n }\n } else {\n console.error('Error:', data)\n }\n return data;\n },\n error (data) {\n console.error('Template Error:', data.responseJSON.error)\n }\n })\n }", "function postCompanyandPosition() {\n console.log(\"posting\")\n $(\"form\").submit(function(e) {\n e.preventDefault();\n const values = $(this).serialize();\n console.log(values)\n\n // Rials.ajax works\n Rails.ajax({\n url: \"/positions.json\",\n type: \"POST\",\n data: values,\n success: function(data) {\n console.log(data)\n window.location.replace(`/companies/${data.company.id}/positions/${data.id}`)\n alert(\"Successfuly created!\")\n }\n })\n\n // $.post jquery also works\n // $.post('/positions.json', values)\n // .done((data) => {\n // console.log(data)\n // window.location.replace(`/companies/${data.company.id}/positions/${data.id}`)\n // alert(\"Successfuly created!\")\n // })\n\n // fetch - got error\n // fetch(\"/positions.json\", {\n // method: \"post\",\n // body: values,\n // headers: {\n // \"Content-Type\": \"application/json\",\n // \"Accept\": \"application/json\"\n // }\n // }).then(res => console.log(res.json()))\n })\n}", "function updateProductForm(id){\n $.ajax({\n url: \"/api/users/logIn\",\n contentType: \"application/json; charset=utf-8\",\n type: \"GET\",\n success: function (result) {\n if(result == 0){\n window.location.replace(\"/login\");\n }else{\n bringProduct(id);\n $(\"#productForm\").fadeToggle();\n }\n }\n })\n}", "function CreateBusiness() {\n var xmlhttp = new XMLHttpRequest();\n xmlhttp.open(\"POST\", \"/account/CreateBusiness\", true);\n xmlhttp.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n xmlhttp.send(\"Action=CreateBusiness\");\n\n xmlhttp.onreadystatechange = function () {\n if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {\n var tabResult = xmlhttp.responseText;\n //Action\n }\n }\n}", "function CalificacionServicio(nidsolicitud, vcodigo) {\n $.ajax({\n type: \"POST\",\n url: \"../Services/CalificacionServicio_MesaAyuda\",\n data: \"{nidsolicitud:'\" + nidsolicitud + \"',vcodigo:'\" + vcodigo + \"'}\",\n dataType: \"json\",\n async: false,\n contentType: \"application/json; charset=utf-8\",\n success: CalificacionServicioSuccess,\n failure: function (response) {\n alert(response.d);\n },\n error: OnError\n });\n}", "function ajax_post(val_dict){\n $.ajax({\n type:'POST',\n url:'/runatlas',\n contentType:'json',\n data: JSON.stringify(val_dict),\n success: function(data){\n react(val_dict,data);\n }\n })\n}", "function showVariations(p){ \n $.ajax({\n type:'POST',\n url: UrlHost_+\"/administrator/manage-products/variations-products\",\n data:{product : p},\n headers: {'X-CSRF-TOKEN': $('meta[name=\"csrf-token\"]').attr('content')},\n success: function(dataVariants){\n $(\"#listVariations_\"+p).css(\"display\",\"block\");\n $(\"#listVariations_\"+p).html(dataVariants); \n },\n error: function(xhr, type, exception, thrownError){\n if(xhr.status===419){\n location.reload(true);\n }else{\n alert(\"Ajax error type \"+type+ \" Status : \"+xhr.status+\"\\n \"+exception+\"\\n Mensaje :\"+xhr.responseText); \n }\n }\n });\n \n}", "function ajaxFeed() {\r\n $.ajax ({\r\n type: \"GET\",\r\n url: \"/feed\",\r\n success: data => {\r\n console.log(data);\r\n },\r\n error: data => {\r\n console.log(data);\r\n }\r\n });\r\n}", "function actions(action, id) {\n ajax_btn_action = $.ajax({\n url: window.location.href + '/' + action,\n type: \"post\",\n data: { id: id },\n success: function(data, textStatus, jqXHR) {\n $('#check-all').prop('checked', false);\n if (data.type == 'warning') {\n toastr.warning(data.message, data.title);\n } else {\n toastr.success(data.message, data.title);\n rows();\n }\n },\n error: function(error) {\n if (jqXhr.readyState == 0)\n return false;\n toastr.error(error.responseJSON.message);\n },\n });\n } // END FUNCTION TO SEND DATA TO CONTROLLER WHEN CLICK ON BUTTONS", "function ajax(method, url, data, success, error) {\n var xhr = new XMLHttpRequest();\n xhr.open(method, url);\n xhr.setRequestHeader(\"Accept\", \"application/json\");\n xhr.onreadystatechange = function() {\n if (xhr.readyState !== XMLHttpRequest.DONE) return;\n if (xhr.status === 200) {\n success(xhr.response, xhr.responseType);\n } else {\n error(xhr.status, xhr.response, xhr.responseType);\n }\n };\n xhr.send(data);\n }", "function submitform(){\n var username = $(\"#username\").val();\n var check = $(\"#check\").val();\n $.ajax({\n url: (\"http://localhost:8080/Food_Managment_System/api/student/submitForm/\"+username+\"/\"+check)\n }).then(function(result) {\n alertify.alert(\"Επιτυχία\",\"Η καταχώρηση της αίτησης είναι επιτυχής. Για περαιτέρω πληροφορίες, επικοινωνήστε με την γραμματεία της σχολής.\");\n });\n}", "function status()\n{\n $.ajax({url:\"/status\",type:\"get\",async:false}).done(function(r)\n {\n if(r!=\"\")\n {\n csrf_token=r;\n $(\"_csrf_token\").val(r);\n }\n })\n}", "function recuperarCentro(id) {\n $.ajax({\n type: \"POST\",\n url: \"/recuperarCentro\",\n data: {\n id: id\n },\n headers: {\n \"X-CSRF-TOKEN\": $('meta[name=\"csrf-token\"]').attr(\"content\"),\n },\n statusCode: {\n 401: function () {\n location.reload();\n },\n /*419: function () {\n location.reload();\n }*/\n },\n success: function (data) {\n limpiarCentro();\n $('#r_centrocmodal').modal('toggle');\n centroCostoOrganizacion();\n editarCentro(data);\n },\n error: function () { },\n });\n}", "function makeAnAjaxCall(form, callback){\n var data = getFormData(form);\n var xhr = new XMLHttpRequest();\n xhr.open('POST', '/reservation');\n xhr.setRequestHeader('Content-Type', 'application/json');\n xhr.addEventListener('readystatechange', function(){\n if (xhr.status === 200 && xhr.readyState === 4){\n callback(xhr.responseText);\n }\n });\n xhr.send(JSON.stringify(data));\n\n}", "function post(json) {\n \n let url = \"/api/FlightPlan\";\n $.post(url, json);\n}", "function checkOrders(){\n $.ajax({\n url: \"staffRequest.php?\",\n type: \"POST\",\n data: {\n \"action\" : \"orders\"\n },\n dataType : \"json\",\n success : handleResponse,\n error : ajaxFailed\n }\n\n );\n}", "function ajaxUsersList() {\n $.ajax({\n url: USER_LIST_URL,\n data: {\n action: \"userList\"\n },\n success: refreshUsersList,\n error: function(object) {\n console.log(\"Couldn't pull the users from the server. Sent: \");\n console.log(object);\n }\n });\n}", "function GetAllFacility() {\n\n return $.ajax({\n async: false,\n url: \"/api/TraineeProgram/allFacilities\",\n method: \"GET\",\n dataType: \"json\",\n contentType: \"application/json\"\n });\n}", "function ajax(method, url, data, success, error) {\n let xhr = new XMLHttpRequest();\n xhr.open(method, url);\n xhr.setRequestHeader(\"Accept\", \"application/json\");\n xhr.onreadystatechange = function() {\n if (xhr.readyState !== XMLHttpRequest.DONE) return;\n if (xhr.status === 200) {\n success(xhr.response, xhr.responseType);\n } else {\n error(xhr.status, xhr.response, xhr.responseType);\n }\n };\n xhr.send(data);\n }", "function login() {\n $.ajax({\n type: 'POST',\n url: '/login',\n data: JSON.stringify({\n Username: $('#Username').val(),\n Pass: $('#password').val()\n }),\n dataType: 'json',\n async: false,\n success: function(data) {\n console.log(\"Posted Data\");\n },\n error: function(xhr, textStatus, error) {\n console.log(xhr.statusText);\n console.log(textStatus);\n console.log(error);\n }\n });\n\n}" ]
[ "0.6569265", "0.65426135", "0.64396966", "0.6433782", "0.64160824", "0.6371046", "0.6358922", "0.6345635", "0.6319251", "0.62896657", "0.62871003", "0.628553", "0.62767214", "0.62507397", "0.6250644", "0.62480867", "0.62454826", "0.622256", "0.6203932", "0.6196932", "0.6195856", "0.6177034", "0.61741805", "0.6142459", "0.6135923", "0.61353266", "0.6130111", "0.61243904", "0.60925865", "0.60902643", "0.608236", "0.6067797", "0.60531706", "0.6050833", "0.6050833", "0.6040879", "0.6035581", "0.6033077", "0.60303926", "0.6029797", "0.6027384", "0.6024677", "0.60180783", "0.60116756", "0.59968066", "0.5973447", "0.5970321", "0.5967891", "0.5966592", "0.5964517", "0.5960748", "0.59600323", "0.59538275", "0.59471273", "0.59465414", "0.5944332", "0.593999", "0.593999", "0.59370834", "0.593457", "0.5934469", "0.5926864", "0.59165627", "0.59135896", "0.59123445", "0.5911242", "0.59092504", "0.59065276", "0.59028816", "0.590036", "0.5899325", "0.5897059", "0.58914554", "0.5891345", "0.5888385", "0.588799", "0.58864886", "0.5883902", "0.5883559", "0.58792603", "0.58778983", "0.5873861", "0.5873444", "0.58731765", "0.5865722", "0.5864839", "0.586132", "0.5858775", "0.5856417", "0.5854453", "0.585014", "0.58466727", "0.5844864", "0.5838903", "0.5838027", "0.58377653", "0.58374107", "0.58337724", "0.583367", "0.5830492", "0.58300614" ]
0.0
-1
Write a function named greaterNum that: takes 2 arguments, both numbers. returns whichever number is the greater (higher) number. Test the function 2 times with different number pairs
function greaterNum(int1, int2){ if (int1, int2){ alert(int1 + " is the greater number!") } else{ alert(int2 + " is the greater number!") } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function greaterNum(num1, num2) {\n if(num1 > num2){\n return num1;\n }\n else {\n return num2;\n }\n}", "function isBigger(firstNum, secondNum) {\r\n\treturn firstNum > secondNum;\r\n}", "function greaterThan (num1, num2) {\n // find out if second parameter is greater than first\n if (num2 > num1) {\n return \"true\";\n } else {\n return \"false\";\n }\n}", "function greaterThan(num1, num2){\n var num1= 5;\n var num2= 10;\n if (num2 > num1){\n return true;\n } else {\n return false;\n }\n}", "function largerNum(a, b) { \n if ( a > b ) { // if a > b then it returns a\n return a;\n } else { \n return b; // or else it returns b\n }\n}", "function greaterThan(num1, num2){\n if (num2 > num1){\n return true;\n } else {\n return false;\n }\n}", "function greaterThan(num1, num2) {\n if (num2 > num1) {\n return true;\n } else {\n return false;\n }\n}", "function largerNum(a,b) {\n if (a>b) \n return a;\n else\n return b;\n}", "function greaterThan(num1, num2) {\n if (num1 < num2) {\n return true;\n } else {\n return false;\n }\n}", "function largerNum(num1, num2) {\n if (num1 < num2) {\n return num2\n } else {\n return num1\n }\n}", "function largerNum(num1, num2) {\n let num = (num1 > num2) ? num1 : num2;\n return num;\n}", "function largerNubmer(num1,num2){\r\n if (num1 > num2){\r\n return num1;\r\n }else{\r\n return num2;\r\n }\r\n}", "function maxOf2(largerNum, smallerNum) {\n if (largerNum > smallerNum) {\n return largerNum; \n }\n else{\n return \"equal\";\n }\n }", "function max(firstNum, secondNum){\nif(firstNum > secondNum ){\nconsole.log(firstNum + \"is greater\");\n}\nelse if( secondNum > firstNum){\nconsole.log(secondNum + \" is greater\");\n}\nelse{\nconsole.log(\" The two numbers are the same\");\n}\n}", "function maxOfTwoNumbers(a, b) {\n if ( a > b){ //return either parameter if it is larger than the other. \n return a;\n }\n else return b;\n}", "function maxOfTwoNumbers(num1, num2) {\n if(num1 >= num2) {\n return num1;\n } else {\n return num2;\n }\n}", "function maxOfTwoNumbers(firstNum, secondNum){\r\n\r\n if (firstNum > secondNum) {\r\n console.log(firstNum + \" is larger than \" + secondNum);\r\n } else {\r\n console.log(firstNum + \" is less than \" + secondNum);\r\n }\r\nreturn;\r\n\r\n }", "function maxOfTwoNumbers(num1,num2){\n\n if (num1 > num2){\n\n return num1;\n\n } else{\n\n return num2;\n\n }\n\n\n}", "function maxOfTwoNumbers(a, b) {\n if (a > b){\n return a;\n } else {\n return b;\n }\n}", "function whoIsBigger(num1,num2) {\n if (num1 > num2) {\n console.log(`The bigger number is ${num1}`)\n } else {\n console.log(`The bigger number is ${num2}`)\n }\n}", "function maxOfTwoNumbers(a, b) {\n if ( a > b ) {\n return a\n } else {\n return b\n }\n}", "function maxOfTwoNumbers(a, b) {\n if (a > b) {\n return a;\n } else {\n return b;\n }\n}", "function maxOfTwoNumbers(a, b) {\n if (a > b) {\n return a;\n } else {\n return b;\n }\n}", "function maxOfTwoNumbers(first, second) {\n if (first > second){\n console.log(first + \" is the largest num\")\n }else console.log(second + \" is the largest num\");\n}", "function largestAmongTwo(num1,num2){\n if(num1>num2){\n return num1\n }\n else{\n return num2\n }\n }", "function maxOfTwoNumbers(num1, num2) {\n const first = num1;\n const second = num2;\n if (first > second) {\n return first;\n } else if (first < second) {\n return second;\n } else {\n return (`Numbers are the same: ${first}`);\n }\n}", "function maxOfTwoNumbers(a, b) {\n return a > b ? a : b;\n}", "function maxOfTwoNumbers(a, b) {\n return a > b ? a : b;\n}", "function myFunction(num1,num2){\n if (num1 > num2){\n console.log(\"nunber is greater than the other\")\n }\n else {\n console.log(\"number 1 is not greater then number 2\")\n }\n}", "function largerOfTwo(a, b) {\n return (a > b ? a : b);\n}", "function maxOfTwoNumbers(num1,num2){\n if(num1>num2){\n return num1;\n }else if (num2>num1){\n return num2;\n }\n}", "function maxOfTwoNUmbers (number1, number2) {\n\n if (number1 > number2) {\n \n console.log(number1);\n \n } else if (number2 > number1) {\n \n console.log(number2);\n\n } else {\n console.log(\"These numbers are equal\");\n }\n\n }", "function max(num1, num2) {\n //console.log(\"inside max: \", num1, \" and \", num2);\n if (num1 >= num2) {\n return num1;\n } else {\n return num2;\n }\n}", "function greater(x, y) {\r\n return !less_equal(x, y);\r\n}", "function CheckNums(num1,num2) { \n\n // code goes here \n \n var rtn = num2 > num1 ? true : num1 == num2 ? -1 : false; \n \n return rtn; \n \n}", "function max(num1, num2){\n var num1= 2;\n var num2= 1;\n if (num1 > num2 == true) {\n return num1;\n }\n}", "function CheckNums(num1, num2) {\n if (num2 > num1) {\n return true;\n }\n else if (num2 < num1) {\n return false;\n }\n else {\n return -1;\n }\n}", "function CheckNums(num1,num2) {\n\nif ( num2 > num1 ) {\n return true\n}\n\nelse if (num1 == num2 ){\n return -1\n}\nelse\n\nreturn false\n\n}", "function max(num1, num2){\n if (num1 > num2) {\n return num1;\n }\n else {\n return num2;\n }\n}", "function maxOfTwoNumbers(a,b){\n\treturn a > b ? a : b;\n}", "function max(num1, num2){\n if (num1 > num2) {\n \treturn num1;\n } else if (num2 > num1) {\n \treturn num2;\n }}", "function max(num1, num2){\nif (num1 > num2) {\n return num1;\n}\nelse if (num2 > num1) {\nreturn num2;\n}\n}", "function greater (lhs, rhs) {\n return number(lhs) && lhs > rhs;\n }", "function greaterThan(x,y){\n if (x < y) {\n return true\n } else {\n return false\n }\n}", "function max(num1, num2) {\n if (num1 > num2) {\n return num1;\n }\n else {\n return num2;\n }\n}", "function greaterNum() {\r\n var num1 = Number(document.projectOne.inputOne.value);\r\n var num2 = Number(document.projectOne.inputTwo.value);\r\n if (num1 > num2) {\r\n return \"The greater number is \" + num1 + \"!\";\r\n }\r\n else if (num2 > num1) {\r\n return \"The greater number is \" + num2 + \"!\";\r\n }\r\n else {\r\n return \"The numbers are equal!\";\r\n }\r\n}", "function myFunction( num1, num2){\n if (num1 > num2 ){\n console.log(num1)\n }\n else if (num1 < num2 ){\n console.log(num2)\n }\n }", "function getLargerNumber(arg1, arg2) {\n let largestNumber;\n if (arg1 >= arg2) {\n largestNumber = arg1;\n } else {\n largestNumber = arg2;\n }\n\n return largestNumber;\n}", "function greaterNum(num1, num2) {\n\n if(num1 > num2){\n window.alert(\"The greater number of \" +num1+ \" and \" +num2+ \" is \" +num1)\n }else if(num2 > num1){\n window.alert(\"The greater number of \" +num1+ \" and \" +num2+ \" is \" +num2)\n }else{\n window.alert(\"The number are the same\")\n }\n}", "function greaterThan(par1, par2) {\n \n if (par2 > par1) {\n true;\n } \n else {\n false;\n }\n}", "function isGreaterThan(first,second){\n if(first>second){\n return true;\n }else{\n return false;\n }\n}", "function isGreaterThan(first,second){\n if(first>second){\n return true;\n }else{\n return false;\n }\n}", "function isGreaterThan(first, second){\n if(first > second){\n return true;\n }\n}", "function maxOfTwoNumbers(x,y) {\n if (x > y) {\n return x;\n }\n else if (x < y) {\n return y;\n }\n}", "function maxOfTwoNumbers(x,y) {\n if (x > y) {\n return x;\n }\n else if (x < y) {\n return y;\n }\n}", "function max(num1, num2) {\n let result;\n if (num1 > num2) {\n result = num1;\n } else {\n (num1 < num2)\n result = num2;\n }\n return result;\n }", "function max(num1, num2) {\n if (num1 > num2) {\n return num1;\n } else if (num1 < num2) {\n return num2;\n } else {\n return 'Both numbers are equal!';\n }\n}", "function larger(a,b){\n if(a>b){\n return a\n }\n return b\n}", "function maxOfTwoNumbers(a, b) {\n //\n}", "function numberCompare(num1, num2) {\r\n if (num1 > num2) {\r\n return \"First is greater\"\r\n }\r\n if (num1 < num2) {\r\n return \"Second is greater\"\r\n }\r\n return \"Numbers are equal\"\r\n}", "function sc_greater(x, y) {\n for (var i = 1; i < arguments.length; i++) {\n\tif (x <= arguments[i])\n\t return false;\n\tx = arguments[i];\n }\n return true;\n}", "function myFunction( num1, num2){\n if (num1 < num2 ){\n console.log(num1)\n }\n else if (num1 > num2 ){\n console.log(num2)\n }\n }", "function maxOfTwoNumbers(x,y) {\n if (x>y) {\n return x;\n } else if (y>x){\n return y;\n } else {\n return x;\n }\n}", "function greaterThan(num1){\n\treturn function(num2){ return num2 > num1 };\n}", "function largerInteger(x,y) {\n if (x > y) {\n console.log(x + \" is larger than \" + y);\n } else {\n console.log(x + \" is less than \" + y);\n }\n return;\n}", "function getMax(num1, num2) {\n // your code here...\n if(num1>num2){\n return console.log(`${num1} is greater`);\n }\n else{return console.log(`${num2} is greater`)}\n}", "function max2(number1, number2) {\n return (number1 > number2) ? number1 : number2;\n}", "function findGreater(a, b) {\n if(a > b) {\n return \"a is greater\";\n }\n else {\n return \"b is greater\";\n }\n}", "function maxTwoNumbers(a, b) {\n if (a > b) {\n return a;\n } else if (a < b) {\n return b;\n } else {\n return \"Equals\";\n }\n}", "function CheckNums(num1, num2) {\n return num2 > num1 ? true : num2 === num1 ? -1 : false;\n}", "function CheckNums(num1,num2) { \r\n\r\n // code goes here \r\n if(num2>num1){\r\n return true;\r\n }else if(num2==num1){\r\n return -1;\r\n }else{\r\n return false;\r\n }\r\n \r\n}", "function greaterThan(a, b) {\n if (b > a) {\n return true\n }\n return false\n}", "function max(num1, num2){\n // Your answer here\n if (num1 > num2) {\n return num1;\n } else {\n return num2;\n }\n}", "function checkNums(num1, num2) {\n\tif (num2 === num1) {\n\t\treturn '-1';\n\t} else {\n\t\treturn num2 > num1;\n\t}\n}", "function greaterThan(n) {\n return m => m > n\n}", "function compareNumbers(x, y) {\n if (x < y) {\n return -1;\n }\n if (x > y) {\n return 1;\n }\n return 0;\n}", "function whichIsBigger(a, b) {\n if (a >= b) {\n console.log(`${a} is bigger than or equal to ${b}`)\n } else {\n console.log(`${b} is bigger than or equal to ${a}`)\n }\n}", "function maxOfTwoNumbers(a, b) { \n return Math.max (a,b) }", "function isGreater(a, b) {\n\tif (a == 0 && b == 2) {\n\t\treturn true;\n\t} else if (a == 1 && b == 0) {\n\t\treturn true;\n\t} else if (a == 2 && b == 1) {\n\t\treturn false;\n\t}\n\treturn false;\n}", "function greaterThan(n) {\n return (m) => n * 2;\n}", "function greaterThan(x, y) {\n if (x < y) {\n return true;\n }\n if (x >= y) {\n return false;\n }\n}", "function max(num1,num2){\n\tif(num1>num2){\n\t\treturn num1\n\t}\n\t return num2\n\n}", "function CheckNums(num1,num2) {\n\tif num1 < num2 {\n\t\treturn true;\n\t} else if num1 > num2 {\n\t\treturn false;\n\t} else {\n\t\treturn -1\n\t}\n}", "function greaterThan(n){\n return m => m > n;\n}", "function max(num1, num2){\n \"use strict\";\n\n if(num1 > num2){\n return(num1);\n } else{\n return(num2);\n }\n}", "function compareNumber(a, b) {\r\n return a - b;\r\n}", "function leastToGreater (a,b){\n return a-b;\n}", "function findGreater(a, b) {\n return a > b ? \"a is greater\" : \"b is greater\";\n}", "function testGreaterThan3(num,num3){\n\treturn num > num3;\n}", "function maxNum(n1, n2) {\n if (n1>n2) {\n return n1\n }else{\n return n2\n }\n }", "function findGreater(a, b) {\n return a > b ? \"a is greater\" : \"b is greater\";\n}", "function maxNumber(a, b) {\r\n if (typeof(a, b) === \"number\"){\r\n if(a > b){\r\n return a;\r\n }else if (a === b){\r\n return \"They are equal\";\r\n }else {\r\n return b;\r\n }\r\n }else {\r\n return \"Not a number\"\r\n }\r\n}", "function maxNum(n1,n2) {\n if (n1>n2) {\n return n1\n }else{\n return n2\n }\n }", "function compareNumbers(a, b)\n{\n return a - b;\n}", "function compareNumbers(a, b) {\n return a - b;\n}", "function greaterThan(n) {\n return m => m > n;\n}", "function maxOfTwoNumbers(a, b) {\n return Math.max(a, b);\n //\n}", "function numberCompare(num1, num2){\n return num1 - num2\n}", "function compareNumbers(a, b) {\n return a - b;\n}", "function compareNumbers(a, b) {\n return a - b;\n}" ]
[ "0.84525466", "0.8178372", "0.80397034", "0.78884226", "0.78743947", "0.7868445", "0.78683835", "0.7860759", "0.78140056", "0.78120476", "0.7779457", "0.77123344", "0.7577041", "0.75673634", "0.7559307", "0.75285834", "0.7483568", "0.74729633", "0.74680114", "0.74516636", "0.7403293", "0.7403185", "0.7403185", "0.7381414", "0.7335368", "0.7332115", "0.7321838", "0.7321838", "0.7317974", "0.7317016", "0.7297288", "0.7270489", "0.7269156", "0.7253869", "0.7249262", "0.724725", "0.7242648", "0.7240477", "0.7234837", "0.7229257", "0.7222259", "0.72059554", "0.71792877", "0.7175567", "0.71678126", "0.715955", "0.71577525", "0.71549207", "0.71548665", "0.71457976", "0.7141272", "0.7141272", "0.71406037", "0.71402127", "0.71402127", "0.7133704", "0.7130473", "0.71277046", "0.71247125", "0.7123587", "0.71050143", "0.71018267", "0.7093591", "0.70849293", "0.7083776", "0.70818716", "0.7068315", "0.7044559", "0.7042536", "0.70385575", "0.70337844", "0.7004374", "0.6995501", "0.6992757", "0.6970214", "0.69619423", "0.69461554", "0.6944709", "0.6943838", "0.69381046", "0.6934943", "0.6920873", "0.69143355", "0.6909569", "0.6901044", "0.6897082", "0.6894536", "0.68911684", "0.6885332", "0.6874409", "0.68682444", "0.68665135", "0.68575466", "0.68523324", "0.6848089", "0.68431884", "0.68424803", "0.6837813", "0.6831769", "0.6831769" ]
0.76139
12
Hook para utilizar os metodos de ciclo de vida dos componentes: useEffect: Usado para DidMount DidUptade WillUnMount
function App() { /** useState() * [state, setState] = useState(estado inicial); */ const [repositorio, setRepositorio] = useState([]); //Equivale ao ComponentDidMount - executado apenas uma vez, na criação do componente //Muito utilizado para carregar dados de uma api useEffect(() => { const fetchData = async () => { const response = await fetch('https://api.github.com/users/Iann-rst/repos'); const data = await response.json(); setRepositorio(data); } fetchData(); }, []); //Equivale ao ComponentDidUpdate - disparar toda vez que a variável 'repositorio' mudar useEffect(()=>{ const filtered = repositorio.filter(repo => repo.favorite); document.title = `Você tem ${filtered.length} favoritos`; }, [repositorio]); function handleFavorite(id){ const novoRepositorio = repositorio.map(repo => { return repo.id === id ? {...repo, favorite: !repo.favorite} : repo }) setRepositorio(novoRepositorio); } return ( <> <ul> {repositorio.map(repo => ( <li key = {repo.id}>{repo.name} {repo.favorite && <span> (Favorito) </span>} <button onClick={() => handleFavorite(repo.id)}>Tornar Favorito</button> </li> ))} </ul> </> ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function useDidUpdateEffect(fn, inputs) {\n const didMountRef = React.useRef(false);\n React.useEffect(() => {\n if (didMountRef.current) fn();else didMountRef.current = true;\n }, inputs);\n}", "function useComponentDidMountWithLayout(callback) {\n useLayoutEffect(callback, []);\n}", "onComponentMount() {\n\n }", "componenetDidMount() { }", "function ForageablesContainer() {\n const [forageables, setForageables] = useState([]);\n const [forageablesCount, setForageablesCount] = useState(-1);\n \n\n //useEffect hook to setForageables and setForageablesCount whenever forageables or forageablesCount changes\n useEffect(() => {\n if (forageables.length === forageablesCount) return;\n fetch(\"http://localhost:3004/forageables\")\n .then (r => r.json())\n .then (data => setForageables(data))\n setForageablesCount(forageables.length);\n },[forageables, forageablesCount]);\n \n //returns a div with the ForageablesCollection component. \n //Passes down props and callback functions to ForageablesCollection \n return (\n <div>\n <ForageablesCollection onChange={setForageables} setForageables={setForageables} forageables={forageables} forageablesCount={forageablesCount} setForageablesCount={setForageablesCount} />\n </div>\n )\n}", "componentDidMount(){\n this.setupEffectController();\n this.initView();\n this.display();\n }", "function Home() {\n\n /**\n * GOOGLE ANALYTICS TESTING\n */\n // const eventTracker = useGAEventsTracker(\"Choice of Plan\");\n // useEffect( () => {\n // ReactGa.pageview( window.location.pathname + window.location.search );\n // });\n\n // GLOBAL STATE\n const { plan } = useContext(store);\n\n // animation\n const planPriceVariantsControl = useAnimation();\n const anyDoubtControl = useAnimation();\n\n useEffect( () => {\n\n const scrollHandle = () => {\n const totalScroll = (document.documentElement.scrollHeight - document.documentElement.clientHeight);\n const currentScroll = document.documentElement.scrollTop;\n const scrollPercentage = (currentScroll * 100) / totalScroll;\n \n if ( scrollPercentage >= 42 ) {\n anyDoubtControl.start(\"animate\");\n window.removeEventListener('scroll', scrollHandle);\n }\n }\n\n window.addEventListener('scroll', scrollHandle);\n }, [anyDoubtControl] );\n\n useEffect(() => {\n const animatePlanPrice = async () => {\n await planPriceVariantsControl.start(\"animate\");\n await planPriceVariantsControl.start(\"initial\");\n }\n animatePlanPrice();\n }, [plan, planPriceVariantsControl]);\n\n return (\n <motion.div // this motion.div apply animation on render this component\n initial={{ opacity: 0, y: -100 }}\n animate={{ opacity: 1, y: 0 }} \n >\n\n <div className=\"Home\">\n <Header>\n <img src={logo} alt=\"logo\" />\n <h2>Você assina Netflix, mas nunca pensou em assinar refeições??</h2>\n <p>Essa é a melhor forma de garantir e ESTOCAR as refeições da sua família durante a <em>QUARENTENA</em>, sem tirar de quem precisa!</p>\n <div></div>\n <div></div>\n </Header>\n\n <main>\n <MealStyle>\n <MealStyleText>\n <h2>COMIDA CASEIRA DE VERDADE ULTRA RÁPIDA E PRÁTICA<span>TRADICIONAL</span> &amp; <span>FIT</span></h2>\n <p>em breve teremos refeições Low Carb e Funcionais.</p>\n </MealStyleText>\n <MealStyleBg />\n </MealStyle>\n\n <HowItWorks width=\"100%\" xs_flexContainer xs_ff=\"row wrap\" xs_jc=\"center\" textAlignCenter >\n <H1 width=\"100%\" fontSize=\"2\" >Como funciona?</H1>\n\n <HowItWorksItem width=\"100%\" l_width=\"50%\" xl_width=\"30%\">\n <img src={chooseMealImg} alt=\"escolha suas refeições favoritas\" />\n <h3>Escolha Suas Refeições Favoritas!</h3>\n <p>diversas refeições congeladas e muitas ainda por vir. Tanto Linha Tradicional quanto pratos Fit</p>\n </HowItWorksItem>\n\n <HowItWorksItem width=\"100%\" l_width=\"50%\" xl_width=\"30%\">\n <img src={chefWomanImg} alt=\"cozinheira\" />\n <h3>A Gente Cozinha e Entrega</h3>\n <p>Cozinhamos com todo o carinho e capricho que tu já conhece e te entregamos toda semana.</p>\n </HowItWorksItem>\n\n <HowItWorksItem width=\"100%\" l_width=\"50%\" xl_width=\"30%\">\n <img src={tiaDriveImg} alt=\"cozinheira\" />\n <h3>Tia Drive</h3>\n <p>O drive-thru da Tia Leila. É só passar e retirar suas refeições <br/><b>SEM DESCER DO CARRO!</b><br/>se preferir entregamos na porta da sua casa.</p>\n </HowItWorksItem>\n\n <HowItWorksItem width=\"100%\" l_width=\"50%\" xl_width=\"30%\">\n <img src={hungryAndHourglassImg} alt=\"cozinheira\" />\n <h3>Apitou, ta pronto!</h3>\n <p>Pronto pra comer de 3 a 7min</p>\n </HowItWorksItem>\n\n <HowItWorksItem width=\"100%\" l_width=\"50%\" xl_width=\"30%\">\n <img src={womanRelaxImg} alt=\"cozinheira\" />\n <h3>Relax!</h3>\n <ul>\n <li><p><b>#</b> Sem ir as compras, sem cozinhar, sem precisar limpar</p></li>\n <li><p><b>#</b> pule uma semana</p></li>\n <li><p><b>#</b> mude a quantidade de refeições</p></li>\n <li><p><b>#</b> cancele a qualquer momento</p></li>\n <li><p><b>#</b> escolha outras refeições. Você é quem manda!</p></li>\n </ul>\n </HowItWorksItem>\n </HowItWorks>\n\n <Div xs_width=\"100%\" xs_cssStyle=\"text-align: center;\">\n <GoToMealChoice\n to=\"/order\"\n >\n VER OS PRATOS DISPONÍVEIS\n </GoToMealChoice>\n </Div>\n </main>\n\n <AnyDoubt\n href=\"https://wa.me/555198150292?text=Oii%20%F0%9F%99%82%20tenho%20a%20seguinte%20d%C3%BAvida%3A\"\n target=\"_blank\"\n\n variants={anyDoubtVariants}\n initial=\"initial\"\n animate={anyDoubtControl}\n >\n <p>Alguma dúvida?</p>\n <WppLogoIcon />\n </AnyDoubt>\n \n <HomeFooter>\n <CopyRightHome>&copy; TiaLeila.com todos os direitos reservados</CopyRightHome>\n </HomeFooter>\n </div>\n\n </motion.div>\n );\n}", "function App() {\n const [classifieds,\n setClassifieds] = React.useState([])\n\n React.useEffect(() => {\n\n async function getClassifieds() {\n let classifieds\n try {\n classifieds = await get(url.classifiedsUrl)\n console.log(\"app classsifieds\", classifieds)\n setClassifieds(classifieds)\n } catch (e) {\n console.log(e)\n }\n }\n getClassifieds()\n }, [])\n\n const [images,\n setImages] = React.useState([])\n React.useEffect(() => {\n async function getImages() {\n let images\n try {\n images = await get(url.imagesUrl)\n setImages(images)\n } catch (e) {\n console.log(e)\n }\n }\n\n getImages()\n }, [])\n\n return (\n <div >\n <CustomNavbar/>\n\n \n <div className=\"uk-container\">\n <ClassifiedsPanel title=\"Marketplace\" classifieds={classifieds}></ClassifiedsPanel>\n <GalleryPanel title=\"Local Pictures\" images={images}/>\n </div>\n <CustomFooter/>\n </div>\n\n );\n}", "function App() {\n // const [count, setCount] = useState(0);\n // const [languge, setLanguge] = useState('THAI');\n // const [users, setUsers] = useState([\n // {\n // id: 0,\n // name: 'John',\n // username: 'johndoe',\n // phone: 1234567890,\n // },\n // ]);\n // Don't Have Dependency\n // useEffect(() => {\n // console.log(i);\n // console.log('Effect Call');\n // i++;\n // document.title = `You Click ${count} time`;\n // });\n // // ถ้าไม่ใส่ Dependency Array ทุกครั้งที่มีการ rerender จะเรียกใช้ useEffect ที่ไม่ใส่ Dependency Array\n // For Watch Dependency\n // useEffect(() => {\n // console.log(i);\n // console.log('Effect Call');\n // i++;\n // document.title = languge === 'THAI' ? 'สวัสดี รีแอค' : 'Hello React ';\n // // const getPost = async url =>{\n // // try{\n // // const res = await axios.get(url)\n // // console.log(res.data)\n // // }catch (err){\n // // console.log(err)\n // // }\n // // }\n // // getPost('https://jsonplaceholder.typicode.com/posts')\n // }, [count, languge]); // ถ้าใส่ dependency List เป็น Array เปล่า Effect จะทำงานแค่ครั้งแรกครั้งเดียว ที่ render Component\n // // ถ้าใส่เป็น Count เมื่อ Count เกิดการเปลี่ยนแปลง Effect จะทำงาน ค่า ที่อยู่ใน Depemdency Array จะเป็นตัวที่ useEffect สังเกตุว่า ตัวไหนเปลี่ยนแปลงปล้วจะทำงาน\n // // For Call API\n // useEffect(() => {\n // const fetchUsers = async () => {\n // try {\n // const res = await axios.get(\n // 'https://jsonplaceholder.typicode.com/users'\n // );\n // setUsers(res.data);\n // // console.log(res.data);\n // } catch (err) {\n // console.log(err);\n // }\n // };\n // fetchUsers();\n // }, []);\n // return (\n // <div>\n // {/* <h1>Hello useEffect</h1>\n // <button onClick={() => setCount(current => current + 1)}>Click</button>\n // <button\n // onClick={() =>\n // setLanguge(current => (current === 'THAI' ? 'ENG' : 'THAI'))\n // }\n // >\n // Change Languge\n // </button> */}\n // <ul>\n // {users.map(item => (\n // <li key={item.id}>\n // <p>{item.name}</p>\n // <p>{item.username}</p>\n // <p>{item.phone}</p>\n // </li>\n // ))}\n // </ul>\n // </div>\n // );\n\n // const [secound, setSecound] = useState(0);\n\n // useEffect(() => {\n // setInterval(() => {\n // setSecound(current => current + 1);\n // }, 1000);\n // });\n\n const [show, setShow] = useState(true);\n\n return (\n <>\n <button onClick={() => setShow(current => !current)}>\n Toggle Counter\n </button>\n {show && <Counter />}\n </>\n );\n}", "function NavItemContainer(){\n \n // 게시판 목록 상태저장중\n const [boardList, setBoardList] = useState([]);\n\n //axios 게시판 목록 get\n const onRequestBoardList = async() => {\n try{\n console.log(\"ononReq\");\n\n const response = await axios(axiosOptions.get('/board', {}));\n let tempBoardLists = [];\n \n // console.log(response.data);\n //response.data boardNo boardName boardDesc boardProposer boardStatus\n response.data.map((boardInfo, index) =>{\n // console.log(boardInfo, index);\n const data = {\n boardNo : boardInfo.boardNo,\n boardName : boardInfo.boardName,\n boardDesc : boardInfo.boardDesc\n }\n tempBoardLists.push(data);\n });\n setBoardList(tempBoardLists);\n \n \n }catch(e){\n console.log(e);\n }\n }\n\n \n // variables in [] means \"hey run only if variables is changed\"\n\n // run this code only 1 time\n useEffect( () => {\n onRequestBoardList();\n }, []);\n\n\n\n\n return(\n <NavItem \n boardList = {boardList}\n />\n );\n\n}", "componentDidMount(){\n const Loader = document.querySelector('.Loader')\n Loader.style.display = 'block';\n const Shadow = document.querySelector('.Loader-Shadow-Box')\n Shadow.className= \"Loader-Shadow-Box\"\n Shadow.style.display = 'block';\n Shadow.style.zIndex = '1998';\n const ShadowScroll = document.querySelector('html');\n ShadowScroll.style.overflowY = 'hidden';\n this.refresh()\n }", "_didRender(_props, _changedProps, _prevProps) { }", "componentDidMount() {\n this.inicio();\n this.mostraralergias();\n this.eliminaralergias();\n this.mostrarhabitos();\n this.eliminarhabitos();\n this.mostrarpatologicos();\n this.eliminarpatologicos();\n this.mostrarquirurgicos();\n this.eliminarquirurgico();\n this.mostrarvacunas();\n this.eliminarvacunas();\n }", "componentDidMount() { this.props.events.on('update', this.forceUpdate); }", "function Home() {\n\n const [dadosIniciais, setDadosIniciais] = useState([])\n //categorias: [],\n//});\n\n useEffect(() => {\n\n categoriasRepository.getAllWithVideos()\n .then((categoriasComVideos) => {\n console.log(categoriasComVideos);\n setDadosIniciais(categoriasComVideos);\n \n \n })\n .catch((err) => {\n console.log(err.message);\n });\n\n /*const URL_TOP = window.location.hostname.includes('localhost')\n ? 'http://localhost:8080/categorias'\n : 'https://flix-me-up.herokuapp.com/categorias';\n //'http://localhost:8080/categorias';*/\n\n //fetch(URL_TOP)\n // fetch(URL_BACKEND_TOP)\n // .then(async(respostaDoServidor) => {\n // const resposta = await respostaDoServidor.json();\n // setCategorias([\n // ...resposta,\n // ]);\n // });\n }, []);\n // http://localhost:8080/categorias?_embed=videos\n\n return (\n //<div style={{ background: \"#141414\" }}>\n <PageDefault paddingAll = {0}>\n {/* <Menu /> */}\n\n {dadosIniciais.length === 0 && (<div>Loadin....!</div>)}\n\n {dadosIniciais.map((categoria, indice) => {\n if (indice === 0) {\n return (\n <div key={categoria.id}>\n <BannerMain\n videoTitle={dadosIniciais[0].videos[0].titulo}\n url={dadosIniciais[0].videos[0].url}\n videoDescription=\"O que é front-end? Trabalhando na área os termos HTML, CSS e Java Script\"\n />\n <Carousel\n ignoreFirstVideo\n category={dadosIniciais[0]}\n />\n </div>\n );\n }\n\n return (\n <Carousel\n key={categoria.id}\n category={categoria}\n />\n );\n })}\n\n\n </PageDefault>\n\n );\n}", "componentDidMount(){\n console.log(\"metodo de react que se ejecuta despues de renderizar el conponente\")\n this.cargarCursos();\n }", "componentDidMount(){ //Cuando un compoennte se monta y se muestra en pantalla se llama este método\n console.log(\"did Mount\");\n }", "function Loader2({ set }) {\n useEffect(() => {\n setTimeout(() => {\n // console.log(\"set interval fires\");\n set();\n }, 3800);\n }, []);\n return (\n <div className=\"bg-black/80 text-white flex flex-col items-center justify-center inset-auto top-[10px] fixed h-[100vh] z-[10000] w-[100%] \">\n <div className=\"mb-[20px] \">\n <Image\n src=\"/images/logo.svg\"\n alt=\"loading. \"\n height={105}\n width={150}\n loading=\"eager\"\n />\n <h2 className=\" text-3xl text-center \">Loading...</h2>\n {/* <RingLoader /> */}\n </div>\n <Image\n src=\"/spinner.svg\"\n width={60}\n height={60}\n alt=\"spinner\"\n className=\"my-4\"\n />\n {/* <p className=\" mt-[200px] font-bold\">\n <p className=\"text-white/60 font-medium\">Developed By</p> Jestor\n Nogueiro\n </p> */}\n </div>\n );\n}", "componentDidMount(){\n this.updateEventCards().then( () => {\n this.componentMounted = true;\n });\n }", "componentDidMount() {\n setTimeout(() => {\n\n document.querySelector('.loader-container').style.transition = 'opacity 5s';\n document.querySelector('.loader-container').style.opacity = '0';\n\n setTimeout(() => {\n document.querySelector('.loader-container').remove();\n }, 2000);\n\n }, 100);\n }", "componentDidMount() {\n window.addEventListener(\"scroll\", this.onScrollHandler);\n this.onChangeOfPageHandler();\n this.showSocialIconsDesktopHandler();\n }", "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}", "componenetWillMount() { }", "componentDidMount(){\n console.log(\"El componente se ha montado\")\n }", "componentDidMount(){\n \n }", "componentDidMount() {\n this.props.onIngredientsInit();\n }", "render() {\n\t\tlet backDrop;\n\t\tif (this.props.sideDrawerOpen || this.props.authPending) {\n\t\t\tbackDrop = <Backdrop />;\n\t\t}\n\n\t\t/////////////////// CODE FOR LOADABLE COMPONENT ///////////\n\t\t// const style = {\n\t\t// \tposition: \"absolute\",\n\t\t// \ttop: \"50%\",\n\t\t// \tleft: \"50%\",\n\t\t// \ttransform: \"translate(-50%, -50%)\",\n\t\t// };\n\t\t// const HomePage = loadable(() => import(\"./pages/home/home\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const AboutPage = loadable(() => import(\"./pages/about/about\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const ServicePage = loadable(() => import(\"./pages/service/service\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const Contact = loadable(() => import(\"./pages/contact/contact\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const BookingPage = loadable(() => import(\"./pages/booking/booking\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const Login = loadable(() => import(\"./pages/auth/login\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const Signup = loadable(() => import(\"./pages/auth/signup\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const SelectVehicle = loadable(\n\t\t// \t() => import(\"./pages/booking/select-vehicle\"),\n\t\t// \t{\n\t\t// \t\tfallback: (\n\t\t// \t\t\t<Loader\n\t\t// \t\t\t\ttype=\"Rings\"\n\t\t// \t\t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\t\theight={100}\n\t\t// \t\t\t\twidth={100}\n\t\t// \t\t\t\tstyle={style}\n\t\t// \t\t\t/>\n\t\t// \t\t),\n\t\t// \t}\n\t\t// );\n\n\t\t// const Options = loadable(() => import(\"./pages/booking/options\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const Checkout = loadable(() => import(\"./pages/checkout/checkout\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const Orders = loadable(() => import(\"./pages/orders/orders\"), {\n\t\t// \tfallback: (\n\t\t// \t\t<Loader\n\t\t// \t\t\ttype=\"Rings\"\n\t\t// \t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\theight={100}\n\t\t// \t\t\twidth={100}\n\t\t// \t\t\tstyle={style}\n\t\t// \t\t/>\n\t\t// \t),\n\t\t// });\n\n\t\t// const SingleOrder = loadable(\n\t\t// \t() => import(\"./pages/orders/singleOrder/singleOrder\"),\n\t\t// \t{\n\t\t// \t\tfallback: (\n\t\t// \t\t\t<Loader\n\t\t// \t\t\t\ttype=\"Rings\"\n\t\t// \t\t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\t\theight={100}\n\t\t// \t\t\t\twidth={100}\n\t\t// \t\t\t\tstyle={style}\n\t\t// \t\t\t/>\n\t\t// \t\t),\n\t\t// \t}\n\t\t// );\n\n\t\t// const ForgotPassword = loadable(\n\t\t// \t() => import(\"./pages/auth/forgot-password\"),\n\t\t// \t{\n\t\t// \t\tfallback: (\n\t\t// \t\t\t<Loader\n\t\t// \t\t\t\ttype=\"Rings\"\n\t\t// \t\t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\t\theight={100}\n\t\t// \t\t\t\twidth={100}\n\t\t// \t\t\t\tstyle={style}\n\t\t// \t\t\t/>\n\t\t// \t\t),\n\t\t// \t}\n\t\t// );\n\n\t\t// const ResetPassword = loadable(\n\t\t// \t() => import(\"./pages/auth/reset-password\"),\n\t\t// \t{\n\t\t// \t\tfallback: (\n\t\t// \t\t\t<Loader\n\t\t// \t\t\t\ttype=\"Rings\"\n\t\t// \t\t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\t\theight={100}\n\t\t// \t\t\t\twidth={100}\n\t\t// \t\t\t\tstyle={style}\n\t\t// \t\t\t/>\n\t\t// \t\t),\n\t\t// \t}\n\t\t// );\n\n\t\t// const BookingSuccess = loadable(\n\t\t// \t() => import(\"./pages/booking/booking-successful\"),\n\t\t// \t{\n\t\t// \t\tfallback: (\n\t\t// \t\t\t<Loader\n\t\t// \t\t\t\ttype=\"Rings\"\n\t\t// \t\t\t\tcolor=\"#3f80e5\"\n\t\t// \t\t\t\theight={100}\n\t\t// \t\t\t\twidth={100}\n\t\t// \t\t\t\tstyle={style}\n\t\t// \t\t\t/>\n\t\t// \t\t),\n\t\t// \t}\n\t\t// );\n\n\t\t// const HomePage = loadable(() => import(\"./pages/home/home\"));\n\n\t\t// const AboutPage = loadable(() => import(\"./pages/about/about\"));\n\n\t\t// const ServicePage = loadable(() => import(\"./pages/service/service\"));\n\n\t\t// const Contact = loadable(() => import(\"./pages/contact/contact\"));\n\n\t\t// const BookingPage = loadable(() => import(\"./pages/booking/booking\"));\n\n\t\t// const Login = loadable(() => import(\"./pages/auth/login\"));\n\n\t\t// const Signup = loadable(() => import(\"./pages/auth/signup\"));\n\n\t\t// const SelectVehicle = loadable(() =>\n\t\t// \timport(\"./pages/booking/select-vehicle\")\n\t\t// );\n\n\t\t// const Options = loadable(() => import(\"./pages/booking/options\"));\n\n\t\t// const Checkout = loadable(() => import(\"./pages/checkout/checkout\"));\n\n\t\t// const Orders = loadable(() => import(\"./pages/orders/orders\"));\n\n\t\t// const SingleOrder = loadable(() =>\n\t\t// \timport(\"./pages/orders/singleOrder/singleOrder\")\n\t\t// );\n\n\t\t// const ForgotPassword = loadable(() =>\n\t\t// \timport(\"./pages/auth/forgot-password\")\n\t\t// );\n\n\t\t// const ResetPassword = loadable(() => import(\"./pages/auth/reset-password\"));\n\n\t\t// const BookingSuccess = loadable(() =>\n\t\t// \timport(\"./pages/booking/booking-successful\")\n\t\t// );\n\n\t\t// let routes = (\n\t\t// \t<RouteComponent\n\t\t// \t\tsubmitLocationHandler={this.submitLocationHandler}\n\t\t// \t\tHomePage={HomePage}\n\t\t// \t\tAboutPage={AboutPage}\n\t\t// \t\tServicePage={ServicePage}\n\t\t// \t\tContact={Contact}\n\t\t// \t\tOrders={Orders}\n\t\t// \t\tBookingPage={BookingPage}\n\t\t// \t\tOptions={Options}\n\t\t// \t\tSelectVehicle={SelectVehicle}\n\t\t// \t\tBookingSuccess={BookingSuccess}\n\t\t// \t\tLogin={Login}\n\t\t// \t\tSignup={Signup}\n\t\t// \t\tSingleOrder={SingleOrder}\n\t\t// \t\tCheckout={Checkout}\n\t\t// \t\tForgotPassword={ForgotPassword}\n\t\t// \t\tResetPassword={ResetPassword}\n\t\t// \t/>\n\t\t// );\n\n\t\tlet routes = (\n\t\t\t<RouteComponent submitLocationHandler={this.submitLocationHandler} />\n\t\t);\n\n\t\treturn (\n\t\t\t<div className=\"App\">\n\t\t\t\t<Fragment>\n\t\t\t\t\t{routes}\n\t\t\t\t\t{this.props.sideDrawerOpen && <SideDrawer />}\n\n\t\t\t\t\t{this.props.locationError ? (\n\t\t\t\t\t\t<div className=\"booking-error\">\n\t\t\t\t\t\t\t<Backdrop click={this.props.closeModal} />\n\t\t\t\t\t\t\t<div className=\"booking-error__content\">\n\t\t\t\t\t\t\t\t<p className=\"booking-error__content--text\">\n\t\t\t\t\t\t\t\t\tNetwork error occured when trying to establish connection with\n\t\t\t\t\t\t\t\t\tthe database\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\t\tclassName=\"booking-error__content--btn\"\n\t\t\t\t\t\t\t\t\tonClick={this.props.closeModal}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tClose\n\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t) : null}\n\t\t\t\t\t{backDrop}\n\t\t\t\t\t{this.props.showModal ? <Modal /> : null}\n\t\t\t\t</Fragment>\n\t\t\t</div>\n\t\t);\n\t}", "componentWillUnmount(){\n window.addEventListener(\"scroll\",this.scrollEffect); \n}", "componentDidMount() {\n \n }", "componentDidMount() {\n \n }", "function App() {\n const [flag,setFlag] = useState(true);\n const [id,setId] = useState(1);\n \n return (\n <div className=\"App\">\n {/* <button onClick={()=>{setFlag(false)}}>显示/隐藏</button> */}\n {/* <DragDemo></DragDemo> */}\n {/* <DragOrder></DragOrder> */}\n {/* <CrossArea /> */}\n {/* 拖拽排序 */}\n {/* <CanvasSignature /> */}\n\n {/* 企业签章 */}\n {/* <Signature /> */}\n {/* redux demo */}\n {/* <ReduxDemo></ReduxDemo> */}\n {/* <AsyncRedux></AsyncRedux> */}\n {/* <ClickCount></ClickCount> */}\n {\n // flag && <LifeCycles />\n }\n {/* <FriendStatusClass /> */}\n\n\n {/* <div>\n <button onClick={()=>{setFlag(false)}}>flag = false</button>\n <button onClick={()=>{setId(id+1)}}>id++</button>\n </div> */}\n {/* {\n flag && <FriendStatusFn friendId={id} />\n }\n <FriendStatusFn /> */}\n\n {/* <UseRefDemo /> */}\n {/* <UseContextDemo /> */}\n {/* <UseReducerDemo /> */}\n {/* <UseMemoDemo /> */}\n <CustomHookUse />\n {/* <UseStateTrap /> */}\n {/* <UseEffectChangeState /> */}\n </div>\n );\n}", "UNSAFE_componentWillMount(){\n this.getDocentes()\n\n\n }", "function Foo() {\n if (condition) {\n useEffect(() => {});\n }\n}", "componentDidMount(){\n const { navigation } = this.props;\n this.focusListener = navigation.addListener(\"focus\", () => {\n this.resetCards();\n this.forceUpdate();\n });\n }", "componentDidMount() {\n this._unsubscribe = this.props.navigation.addListener('focus', () => {\n this.forceUpdate();\n });\n }", "function App(props) {\n // useState allows you to have a state variable into a functional component\n // useEffect will mimic componentDidMount, componentDidUpdate, componentWillUnmount\n\n const [name, setName] = useState('Stefano')\n const [counter, setCounter] = useState(100)\n\n // this is the componentDidMount shape\n useEffect(\n () => {\n console.log('just like componentDidMount')\n // you want to do here fetches, expensive operations\n },\n []\n // every value you put in the dependency array will be checked\n // every time one of the values you put here changes, the function will be re-executed\n )\n\n // this is the componentDidUpdate shape\n useEffect(() => {\n console.log('re-executed every time the name changes')\n setCounter(counter + 1)\n }, [name, props.murilo])\n // this will execute every time name changes\n\n useEffect(() => {\n console.log('this will be called EVERY time a change is detected, in the state or in the props')\n })\n\n // this is the componentWillUnmount shape\n useEffect(() => {\n // for launching some code just on component unmounting, return a function\n return () => {\n // this is like componentWillUnmount\n console.log('about to be unmounted')\n }\n }, [])\n\n // const strivers = ['Raissa', 'Magdalena', 'Luna']\n\n // const [name1, name2, name3] = strivers\n\n // console.log(name1)\n\n // useState is a function returning an array with two elements:\n // 1st -> the state variable you can use in your code\n // 2nd -> the function in charge of UPDATING this state variable\n\n // const arrayOfUseState = useState(100)\n // useState returns an array!\n // arrayOfUseState[0] --> this is the state variable\n // arrayOfUseState[1] --> this is the function in charge of updating the first element\n\n // state = {\n // name: 'Stefano'\n // }\n\n //\n\n return (\n <div className=\"App\">\n <header className=\"App-header\">\n {/* <h1 onClick={() => this.setState({name: 'Marcelo'})}>{name}</h1> */}\n {/* <h1 onClick={() => setName((oldName) => oldName + '_new')}>{name}</h1> */}\n <h1 onClick={() => setName('Sarath')}>{name}</h1>\n {name === 'Stefano' && <Unmount />}\n </header>\n </div>\n )\n}", "componentDidMount() {\n this.loadLiquor();\n }", "componentDidMount() {\n console.log('sss');\n this.setProducts();\n this.setCategories();\n this.setDepartments();\n this.setColors();\n\n }", "function Home() {\n const dispatch = useDispatch();\n const allevents = useSelector((state) => state.events.allEvents);\n const history = useHistory();\n \n useEffect(() => {\n if (localStorage.token) {\n dispatch(getCurrentUser());\n }\n }, []);\n useEffect(() => {\n dispatch({\n type: GET_ERRORS,\n payload: {},\n });\n M.Modal.init(document.querySelectorAll(\".modal\"));\n }, []);\n useEffect(() => {\n M.Parallax.init(document.querySelectorAll(\".parallax\"));\n\n // M.Slider.init(document.querySelectorAll(\".slider\"), { height: 500 });\n\n // window.addEventListener(\"resize\",()=>{\n // let w=document.querySelector(\".App_center\").style.width-document.querySelector(\".parallax-container\").style.width\n // console.log(w)\n // })\n });\n\n // useEffect(()=>{\n // M.Slider.init(document.querySelectorAll(\".slider\"), { height: 500 });\n // },[])\n\n //check if events ended\n useEffect(() => {\n dispatch(getEvent());\n for (let i = 0; i < allevents.length; i++) {\n if (new Date(allevents[i].end) < new Date())\n dispatch(endEvent(allevents[i]._id));\n }\n }, []);\n\n return (\n <>\n <Navbar />\n <div className=\"use-bootstrap\">\n <div >\n {allevents && allevents\n .filter((el) => el.state === \"Available\").length!==0&&(\n <div className=\"slider\">\n <ul className=\"slides\">\n {allevents &&\n allevents\n .filter((el) => el.state === \"Available\")\n .slice(-6)\n .reverse()\n .map((el) => {\n return (\n <li key={el._id}>\n <img\n src={el.image}\n style={{\n filter: \"blur(0.5px)\",\n backgroundPosition: \"center\",\n }}\n width=\"100%\"\n height=\"100%\"\n />\n <div\n className=\"caption left-align\"\n style={{\n left: \"10%\",\n position: \"absolute\",\n // background:\"rgba(214, 211, 211,0.5)\",\n // opacity:0.03\n textShadow: \"0 2px black\",\n }}\n >\n <h3>{el.title}</h3>\n <p\n style={{\n lineHeight: \"38px\",\n paddingRight: \"50%\",\n textAlign: \"left\",\n }}\n >\n <ReactReadMoreReadLess\n className=\"light white-text text-lighten-3\"\n charLimit={200}\n ellipsis={\"...\"}\n readMoreText={\"Read more ▼\"}\n readLessText={\"Read less ▲\"}\n readMoreStyle={{\n whiteSpace: \"nowrap\",\n textDecoration: \"none\",\n fontSize: 20,\n borderBottom: \"1px solid white\",\n cursor: \"pointer\",\n }}\n readLessStyle={{\n whiteSpace: \"nowrap\",\n textDecoration: \"none\",\n fontSize: 20,\n borderBottom: \"1px solid white\",\n cursor: \"pointer\",\n }}\n >\n {el.description}\n </ReactReadMoreReadLess>\n </p>\n <button\n className=\"btn-small grey lighten-5 black-text\"\n style={{\n display: \"flex\",\n alignItems: \"center\",\n opacity: 0.7,\n\n borderRadius: 5,\n marginTop: 20,\n }}\n onClick={() => history.push(\"/events\")}\n >\n Show all{\" \"}\n <i\n className=\"material-icons\"\n style={{ paddingLeft: 4 }}\n >\n forward\n </i>\n </button>\n </div>\n\n {/* <span\n className={\n el.state === \"Available\"\n ? \" green-text\"\n : \" gray-text text-darken-3\"\n }\n style={{\n position: \"absolute\",\n right: \"40px\",\n top: \"30px\",\n fontSize: \"30px\",\n textShadow: \"0 2px black\",\n }}\n >\n {el.state}\n </span> */}\n </li>\n );\n })}\n </ul>\n </div>\n )}\n {/* <div className=\"parallax\">\n <img src=\"festival_home.jpg\" alt=\"Home\" className=\"responsive-img\" />\n </div> */}\n </div>\n <div className=\"more-about-us\">\n <div className=\"container\">\n <div style={{ width: \"80%\",height:\"100%\" }}>\n <div className=\"content\">\n <h2 className=\"header\">COCO Event</h2>\n <span className=\"span-home\"># BLACK LIVES MATTER</span>\n <p className=\"p-home\">\n Welcome to the number 1 event website in the WORLD <br /> We\n consider our self as a family, and as a family we welcome you\n to be part of our universe.\n <br />\n </p>\n <div className=\"simple-btn\">\n <Link\n className=\"a-home\"\n to=\"/events\"\n style={{ textDecoration: \"none\", color: \"#fff\" }}\n >\n You can check our last available events here {\"->\"}\n </Link>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n {/* <ContactModel/> */}\n </>\n );\n}", "function proxiedComponentDidMount(){mountedInstances.push(this);if(typeof current.componentDidMount==='function'){return current.componentDidMount.apply(this,arguments);}}", "function proxiedComponentDidMount(){mountedInstances.push(this);if(typeof current.componentDidMount==='function'){return current.componentDidMount.apply(this,arguments);}}", "componentDidMount() {\n this.onLoad();\n }", "componentDidMount() {\n this.props.onLoad();\n }", "componentDidMount() {\n this.props.onMount();\n }", "function useKeeper(arg, refresh) {\n if (refresh === void 0) {\n refresh = false;\n }\n\n var ref = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(arg);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function () {\n if (refresh) ref.current = arg;\n });\n return ref.current;\n}", "componentDidMount() {\n document.body.style.overflow = \"hidden\";\n //this.props.initLoadData();\n }", "function HeroSlider ({ trans, lang }) {\n // get slides from LS OR Server\n const { loading, error, data: slides } = useFetch({\n requestId: 'hero_slider',\n request: ['get', '/photos?filters=approved|=|1,enabled|=|1,albumId|=|1'],\n errorToast: ['error', 'something went wrong'],\n localStorageKey: 'hero_slides'\n })\n\n React.useEffect(() => {\n if(slides && slides.length) {\n initSlider()\n heroSlider = getSlider('hero-slider');\n }\n }, [slides])\n\n if(loading)\n return <Loading />\n\n else if (error)\n return <div className=\"card-panel red lighten-4\">{error}</div>\n\n else if (slides)\n return (\n <div id='hero-slider' className='slider'>\n <Slides className='slides'>\n {renderSlides(lang, slides)}\n </Slides>\n <SliderArrows>\n <SliderArrow className='material-icons backward' onClick={moveSlider(lang, 'backward')}>\n arrow_back_ios\n </SliderArrow>\n <SliderArrow className='material-icons forward' onClick={moveSlider(lang, 'forward')}>\n arrow_forward_ios\n </SliderArrow>\n </SliderArrows>\n </div>\n )\n\n return null;\n}", "function Info(props) {\n const [waitTimeInfo, setWaitTimeInfo] = useState({});\n const [update, forceUpdate] = useReducer((x) => x + 1, 0);\n\n const refreshWaitTimeInfo = useCallback(() => {\n // Fetch the wait time data from the API when this Info component is mounted\n fetch('/waittime?' + new URLSearchParams({\n address: props.selectedClinic.properties.address\n }))\n .then(res => res.text())\n .then(text => {\n try {\n const data = JSON.parse(text);\n setWaitTimeInfo(data);\n forceUpdate();\n } catch (err) { }\n })\n .catch(err => console.log(err));\n }, [props.selectedClinic.properties.address]);\n\n // This hook should run once after the initial render\n useEffect(() => {\n refreshWaitTimeInfo();\n\n // Set the app's selected clinic to `null` on unmount\n return () => {\n // console.log(`unmounting: ${props.selectedClinic.properties.address}`);\n props.resetClinic();\n };\n }, [props, refreshWaitTimeInfo, props.resetClinic]);\n\n return (\n <InfoWindow\n position={props.position}\n onCloseClick={props.resetClinic} >\n <div>\n <h2>{props.selectedClinic.properties.locationName }</h2>\n <h3>{props.selectedClinic.properties.address}</h3>\n <p>{props.selectedClinic.properties.info}</p>\n <h3>Shortest Wait Time: { formatMin(waitTimeInfo.min) }</h3>\n <h3>Average Wait Time: { formatMin(waitTimeInfo.avg) }</h3>\n <h3>Longest Wait Time: { formatMin(waitTimeInfo.max) }</h3>\n <div className=\"flex\">\n <AddReview\n clinic={props.selectedClinic}\n refreshWaitTimeInfo={refreshWaitTimeInfo}\n />\n <div className='margin-right'></div>\n <ListReviews\n clinic={props.selectedClinic}\n update={update} // Allow ListReviews to rerender when we add a new review\n />\n </div>\n </div>\n </InfoWindow>\n );\n}", "componentDidMount() {\n this.componentLoaded = true;\n }", "function useMounted(ref) {\n\tconst mounted = useRef(false);\n\n\tuseEffect(() => {\n\t\tif (typeof ref === 'undefined' || ref.current) {\n\t\t\tmounted.current = true;\n\t\t}\n\t\treturn () => (mounted.current = false);\n\t}, [ref]);\n\n\treturn mounted.current;\n}", "componentWillMount(){\n this.loadVegetables();\n }", "componentDidMount() {\n this.props.loadingActions.removeLoader()\n }", "componentDidMount() {\n this._updateInventory();\n this._calculatePlayerArmor();\n //console.log(\"component mounted!!!\");\n \n }", "componentDidMount() {\n this.loadWeapon();\n }", "function useUpdateEffect(effect, deps) {\n var mounted = Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"useRef\"])(false);\n Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"useEffect\"])(function () {\n if (mounted.current) {\n effect();\n } else {\n mounted.current = true;\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, deps);\n}", "componentDidMount() {\n this.forceUpdate();\n }", "function App({ loading, dispatchFetchCountries }) {\n\n const [theme, setTheme] = useLocalStorage('countries-theme', 'light');\n\n // fetch all countries from API and format for state\n useEffect(() => {\n dispatchFetchCountries();\n }, [dispatchFetchCountries]);\n\n // handle theme switching\n useEffect(() => {\n const currentTheme = THEME[theme];\n\n Object.keys(currentTheme).forEach(k => {\n const key = `--${k}`;\n const value = currentTheme[k];\n document.body.style.setProperty(key, value);\n });\n }, [theme]);\n\n return (\n <div className=\"App\">\n <Header theme={theme} setTheme={setTheme} />\n\n <div className=\"App-container\">\n {loading ?\n <LoadingSpinner /> :\n <Routes />\n }\n </div>\n </div>\n );\n}", "componentDidMount() {\r\n console.log(\"El componente se renderizó\");\r\n }", "function useKeeper(arg, refresh) {\n if (refresh === void 0) {\n refresh = false;\n }\n\n var ref = Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"useRef\"])(arg);\n Object(__WEBPACK_IMPORTED_MODULE_0_react__[\"useEffect\"])(function () {\n if (refresh) ref.current = arg;\n });\n return ref.current;\n}", "componentDidMount() {\n this.forceUpdate()\n }", "function withLazyLoading(WrappedComponent, selectData) {\n // ...and returns another component...\n return class extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n contentLoading: true\n };\n }\n \n componentDidMount() {\n window.addEventListener('load',()=>{\n console.log('in')\n this.setState({\n contentLoading: false\n })\n })\n }\n \n\n render() {\n\n return( \n this.state.contentLoading == true ?\n <div style={{display:'flex', justifyContent:'center', alignItems:'center'}}><Spin/></div>\n :\n <WrappedComponent {...this.props} />)\n }\n };\n }", "function Container() {\n\n const [allDatas, setAllDatas] = useState([]);\n const [error, setError] = useState();\n const idParams = parseInt(useParams().id);\n\n useEffect(() => {\n let mounted = true;\n fetchURLs(idParams)\n .then(items => {\n if (mounted) {\n setAllDatas(items);\n }\n })\n .catch(items => {\n if (mounted) {\n setError(items.message);\n }\n })\n return () => mounted = false;\n }, [idParams, error]);\n\n if (idParams !== 12 && idParams !== 18) { return <FourOFour /> }\n\n if(allDatas === \"error\") { return <ErrorPage /> }\n\n if(allDatas.length < 1) { return <LoadingPage /> }\n \n return (\n <UserPage data={allDatas} /> \n )\n}", "function App() {\n\n // useUpdatedConsoleLog(name)\n\n return (\n <>\n {/* <UseLocalStorageComp /> */}\n {/* < UseToggleComp /> */}\n {/* < UpdatedEffectComp /> */}\n <UseArrayComp />\n </>\n ); \n}", "componentDidMount() {\n if (this.props.loadOnMount) this.load()\n }", "function AsEffect(props) {\n const [derived, setDerived] = useState(null);\n useEffect(() => {\n setDerived(makeList(props.counter));\n }, [props.counter]);\n\n return (\n <div className=\"container\">\n <div>Created Derived Data in a useEffect</div>\n <div>List Length: {derived && derived.length}</div>\n {!!props.speed && <SlowComponent name=\"AsEffect\" ms={props.speed} />}\n <RenderCounter />\n </div>\n )\n}", "componentDidMount() {\n // InteractionManager.runAfterInteractions(() => this._loadData() ); \n}", "componentDidMount() {\n //this.assignPhotos();\n this.noFocusElements();\n }", "componentDidMount() {\n const { dispatch } = this.props\n dispatch(fetchDeputiesIfNeeded())\n }", "function useUpdateEffect(effect, deps) {\n var mounted = React.useRef(false);\n React.useEffect(function () {\n if (mounted.current) {\n effect();\n } else {\n mounted.current = true;\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, deps);\n}", "componentWillMount() {\n // this.pullData(); // Initial data fetch\n this.setEventImpact(App.IMPACTS[0])\n }", "componentDidMount() {\n window.AddCampaigns = this.addCampaigns;\n this.setState({\n campaigns: this.modifyData(this.props.campaigns)\n })\n }", "componentDidMount() {\n //AppStore.addChangeListener(this._onChange);\n\n // load categories & technologies\n this.loadcategories();\n this.loadtechnologies(); \n\n // Function to locations of events available\n this.loadLocations(); \n\n }", "componentDidMount() {\n // this.fadeIn()\n this.idToState()\n this.fullnameToState()\n this.emailToState()\n this.phoneToState()\n this.roleToState()\n }", "componentDidMount() {\n window.addEventListener('resize', () => this.updateDimensions(1)); //if size of screen changes then call upcdateDimensions\n this.setMarginLeft();\n }", "componentDidMount(){ \n addNavigationListeners() \n }", "function Today() {\n const Todos = useSelector(state => state.Todos.filter(todo => todo.category === 'Today'))\n useEffect(() => {\n document.querySelector(\"#today\").addEventListener('scroll', () => {\n let x = document.querySelector(\"#today\").scrollTop;\n let height =document.querySelector(\"#today\").scrollHeight \n document.body.style.setProperty('--todayscroll',(10*x)/height);\n });\n });\n\n return (\n <div>\n <InboxHeader title=\"Today\" />\n <div className=\"Project\">\n <div className=\"ProjectTabs\" id=\"today\">\n {Todos.map((value,index) => {\n return <TodoTab key={index} self_id={value.self_id} description={value.description} date={value.date} isCompleted={value.isCompleted} />\n })}\n </div>\n <div className=\"TodayScroll\"></div>\n </div>\n \n\n </div>\n )\n}", "function App() {\n const dispatch = useDispatch()\n\n\n\n useEffect(()=>{\n console.log('andandos')\n dispatch(actions.getAllChamp())\n\n\n },[])\n\n return (\n <div className=\"App\">\n\n <Route path=\"/\" component={NavBar} />\n <Route exact path=\"/\" component={Container} />\n <Route exact path=\"/battleground\" component={BattleGround} />\n\n\n {/* <Route exact path=\"/\" component={} />\n <Route path=\"/\" component={} /> */}\n </div>\n );\n}", "componentDidMount(){\n\n\n\n\n}", "componentDidMount() {\n this.windowOnLoadOverride()\n this.listenToScrollEvent()\n }", "componentDidMount() {\n this.setEngine()\n this.setScene()\n this.setCamera()\n this.loadLogo()\n /* \n * the loader we return has a load method \n * attached that will initiate everything.\n */\n this.loadModels().load() \n window.addEventListener('resize', this.onResizeWindow)\n // We can add our custom events just like any other DOM event\n window.addEventListener('move-camera', this.moveCamera) \n window.addEventListener('change-color', this.changeColor) \n }", "componentDidMount() {\n const { navigation } = this.props;\n this.setState({\n isMounted: true\n }, () => {\n const { isMounted } = this.state;\n this.navFocusListener = navigation.addListener('willFocus', () => {\n isMounted && this.loadHistory();\n });\n });\n }", "didMount() {\n }", "componentDidMount() {\n\t\tthis.props.onLoad();\n\t}", "function fixGestureHandler() {\n const [, set] = (0, _react.useState)(0);\n (0, _react.useEffect)(() => {\n set(v => v + 1);\n }, []);\n}", "componentDidMount() {\n this.updateWindowDimensions()\n window.addEventListener('resize', this.updateWindowDimensions);\n this.getFishInfo();\n }", "function App() {\n return (\n <>\n <UseState />\n {/* <PreviousState /> */}\n {/* <UseEffect /> */}\n {/* <CleanupUnmount /> */}\n {/* <Cleanup /> */}\n {/* <IssueForm /> */}\n </>\n );\n}", "function home(str) {\r\n const [state, setState] = useState({ left: 0, top: 0, width: 100, height: 100 });\r\n const [dataList, getList] = useState([]);\r\n const [videoCategoryList, getVideo] = useState([]);\r\n const [num, setNum] = useState(10);\r\n const store = useContext(AppContext);\r\n useEffect(() => {\r\n let obj = { page: 2, count: 2, type: 'video' };\r\n loadData(obj);\r\n }, []);\r\n useEffect(() => {\r\n videoData();\r\n }, []);\r\n const position = useWindowPosition();\r\n const [size, setSize] = useState({ width: 100, height: 100 });\r\n useEffect(()=>{\r\n \r\n },[])\r\n // useEffect(() => { \r\n // // 注意:这是个简化版的实现\r\n // window.addEventListener('mousemove', handleWindowMouseMove);\r\n // return () => window.removeEventListener('mousemove', handleWindowMouseMove);\r\n // }, [state]);\r\n const loadData = async (obj)=> {\r\n let res = await Api.getJoke(obj);\r\n getList(res.result);\r\n store.saveObj(res)\r\n }\r\n const handleWindowMouseMove =(e)=> {\r\n console.log(state)\r\n // 展开 「...state」 以确保我们没有 「丢失」 width 和 height\r\n setState(state => ({ ...state, left: e.pageX, top: e.pageY }));\r\n }\r\n const videoData = async ()=> {\r\n let res = await Api.videoCategory();\r\n getVideo(res.result);\r\n }\r\n return (\r\n <>\r\n <Carousel autoplay>\r\n {\r\n dataList.map((item, index) => {\r\n let sectionStyle = {\r\n width: \"100%\",\r\n height: \"300px\",\r\n background: `url(${item.thumbnail})`\r\n };\r\n return (\r\n <div\r\n key={index}\r\n >\r\n <div style={sectionStyle}></div>\r\n </div>\r\n )\r\n })\r\n }\r\n </Carousel>\r\n <li><Link to=\"/my\">34545</Link></li>\r\n <p>num: {num}</p>\r\n <button onClick={() => setNum(num + 1)}>set num</button>\r\n\r\n {/* 深度监听 store 变化并进行重渲染,导致下面两行结果相同 */}\r\n <p>Count: {store.getCount}</p>\r\n <Observer>{() => <p>Count2: {store.getCount}</p>}</Observer>\r\n <button onClick={() => store.handleCount()}>Counter Add</button>\r\n </>\r\n );\r\n}", "componentDidMount() {\n let card = this.props.card\n this.onGetSpecies(card)\n this.onGetHomeWorld(card)\n this.onGetFilms(card)\n this.onGetVehicles(card)\n this.onSetHeight(card.height)\n this.onSetHair(card.hair_color)\n }", "componentDidMount() { \n \n }", "componentDidMount() {\n document.lazyLoadInstance.update();\n }", "function HomePage(props) {\n useTitle(\"Trang chủ\");\n const isDesktop = useMedia(\"(min-width:992px)\");\n // const news= useFetchData(newsApi.getNewsPost,'news')\n // const reviews = useFetchData(newsApi.getReviewPost,'post') ;\n\n const {\n loadingTheater,\n loadingListMovie,\n\n fetchListMovie,\n fetchListHeThongRap,\n fetchListHeThongLichChieu,\n } = props;\n\n useEffect(() => {\n fetchListMovie();\n fetchListHeThongRap();\n fetchListHeThongLichChieu();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (loadingTheater || loadingListMovie) return <Loading />;\n\n return (\n <>\n <Carousel />\n {isDesktop && <Search />}\n\n {/* <Search /> */}\n\n <ShowTime />\n\n <SeperateSection />\n <TheaterList />\n\n <SeperateSection />\n <News />\n\n <SeperateSection />\n <Ads />\n\n <ModalPopup />\n </>\n );\n}", "componentWillMount() {\n if (injected === true) {\n return;\n }\n\n if (reducers && Object.keys(reducers).length > 0) {\n invariant(\n this.context.store && this.context.store.injectReducers,\n 'No store or no injectReducers function on store. Make sure the store is enhanced with the injector enhancer',\n );\n\n this.context.store.injectReducers(reducers);\n }\n\n if (sagas && (typeof sagas === 'function' || sagas.length > 0)) {\n invariant(\n this.context.store && this.context.store.injectSagas,\n 'No store or no injectSagas function on store. Make sure the store is enhanced with the injector enhancer',\n );\n\n this.context.store.injectSagas(sagas);\n }\n\n injected = true;\n }", "componentDidMount() {\n // alert(\"se acaba de cargar el componente\")\n }", "function fixGestureHandler() {\n const [, set] = useState(0);\n\n useEffect(() => {\n set((v) => v + 1);\n }, []);\n}", "componentDidMount() {\n this._buscarDadosDoStorage();\n }", "function useWillUnmount(fn) {\n var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(fn);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n return function () {\n return onUnmount.current();\n };\n }, []);\n}", "function useWillUnmount(fn) {\n var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(fn);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n return function () {\n return onUnmount.current();\n };\n }, []);\n}", "function useWillUnmount(fn) {\n var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(fn);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n return function () {\n return onUnmount.current();\n };\n }, []);\n}", "function useWillUnmount(fn) {\n var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(fn);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n return function () {\n return onUnmount.current();\n };\n }, []);\n}", "function useWillUnmount(fn) {\n var onUnmount = Object(_useUpdatedRef__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(fn);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(function () {\n return function () {\n return onUnmount.current();\n };\n }, []);\n}" ]
[ "0.6134732", "0.6007351", "0.5890993", "0.58902526", "0.58073825", "0.5802395", "0.57612795", "0.57495606", "0.5726307", "0.57191217", "0.57180566", "0.5708187", "0.5704507", "0.56997055", "0.5693707", "0.5691038", "0.5678815", "0.56785023", "0.567761", "0.5657456", "0.56382316", "0.5632354", "0.5621918", "0.562132", "0.56090885", "0.56041104", "0.56000674", "0.5590425", "0.5588882", "0.5588882", "0.55880684", "0.55803555", "0.557671", "0.55760396", "0.55709887", "0.55577844", "0.5553437", "0.5550346", "0.55346984", "0.5532104", "0.5532104", "0.5519458", "0.55185944", "0.55164975", "0.55075866", "0.5499565", "0.549185", "0.54884183", "0.5480118", "0.5476689", "0.5475141", "0.54748386", "0.5470405", "0.5457701", "0.54537934", "0.54531664", "0.54531205", "0.545024", "0.54425454", "0.543634", "0.5431641", "0.54312706", "0.54308397", "0.5418687", "0.5418263", "0.54178834", "0.54135394", "0.5409588", "0.54060894", "0.54048073", "0.54035705", "0.5401572", "0.53985953", "0.5392454", "0.53906226", "0.53887266", "0.5386928", "0.53863454", "0.53799355", "0.53753567", "0.5373266", "0.5371942", "0.5370556", "0.5360744", "0.53604317", "0.53583115", "0.5356614", "0.5355902", "0.53552777", "0.5352332", "0.535213", "0.5352106", "0.5348893", "0.53482187", "0.5347156", "0.53443164", "0.53443164", "0.53443164", "0.53443164", "0.53443164" ]
0.5883528
4
Wrapper around core.getInput for inputs that always have a value. Also see getOptionalInput. This allows us to get stronger type checking of required/optional inputs and make behaviour more consistent between actions and the runner.
function getRequiredInput(name) { return core.getInput(name, { required: true }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOptionalInput(name) {\n const value = core.getInput(name);\n return value.length > 0 ? value : undefined;\n}", "getInputVal(inp) {\r\n return inp.value;\r\n }", "function getInput(){\n let userInput = inputField.value\n return userInput\n}", "__getBypassedInput(input) {\n if (input.bypass === true) {\n // loop through inputs of chain until one is found\n // that is not being bypassed\n\n let found = false;\n\n while (input.input !== 'undefined' && found === false) {\n if (typeof input.input.bypass !== 'undefined') {\n input = input.input;\n if (input.bypass === false) found = true;\n } else {\n input = input.input;\n found = true;\n }\n }\n }\n\n return input;\n }", "function getInput(el) {\n\t\treturn firstValue(firstValue(el.gm_bindings_.input), function(key, value) {\n\t\t\treturn is(value, 'HTMLInputElement');\n\t\t});\n\t}", "function input(type) {\n const value = typeof type;\n return value;\n}", "function getInputValue() {\n return dom.getElement('input-container.input').value;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "get inputValue() {\n if (this.getAsElem(0).getIf(\"value\").isPresent()) {\n return new ValueEmbedder(this.getAsElem(0).value);\n }\n else {\n return ValueEmbedder.absent;\n }\n }", "function getInput(name, options) {\n const val =\n process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n }", "function Input() {}", "function _getInputValue (elem, n) {\r\n\treturn elem.value;\r\n}", "function getInputValue() {\n const input = ui.getElement('input-container.input'),\n checked = input.checked;\n\n if (checked) {\n return input.value;\n }\n // Bad -- checkboxes do not let us represent a \"positive\" false\n // state. We should explore a better control.\n return 'false';\n }", "getInput() {\n return this.input;\n }", "function getInput(name, options) {\r\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\r\n if (options && options.required && !val) {\r\n throw new Error(`Input required and not supplied: ${name}`);\r\n }\r\n return val.trim();\r\n}", "function getInput(name, options) {\r\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\r\n if (options && options.required && !val) {\r\n throw new Error(`Input required and not supplied: ${name}`);\r\n }\r\n return val.trim();\r\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "get input() {\n\t\treturn this.__input;\n\t}", "function input(aType, updateF, attribs) {\n aType = aType.toLowerCase();\n var dispatchTable = { text : text_input,\n password: text_input,\n checkbox: checkbox_input\n //button: button_input,\n //radio: radio_input \n };\n\n if (dispatchTable[aType]) {\n return (dispatchTable[aType])(aType, updateF, attribs);\n }\n else {\n throw new Error(\"js-input: does not currently support type \" + aType);\n }\n }", "function input(aType, updateF, attribs) {\n aType = aType.toLowerCase();\n var dispatchTable = { text : text_input,\n password: text_input,\n checkbox: checkbox_input\n //button: button_input,\n //radio: radio_input \n };\n\n if (dispatchTable[aType]) {\n return (dispatchTable[aType])(aType, updateF, attribs);\n }\n else {\n throw new Error(\"js-input: does not currently support type \" + aType);\n }\n }", "get inputType() {\n return this._inputType;\n }", "get inputType() {\n return this._inputType;\n }", "function singleInput(block) {\n var input = false;\n for (var x = 0; x < block.inputList.length; x++) {\n if (block.inputList[x].type == Blockly.INPUT_VALUE) {\n if (input) {\n return null; // More than one input.\n }\n input = block.inputList[x];\n }\n }\n return input;\n }", "function Input(workflow, id, type, default_value) {\n\tthis.workflow = workflow ;\n\tthis.id = id ;\n\tthis.type = type ;\n\tthis.options = {} ;\n\tthis.is_linked = false ;\n\tthis.value = '' ; //final value\n\tthis.doc = '' ;\n\tthis.selected_id = '' ;\n\tthis.previous_text_value = '' ;\n\tthis.default_value = default_value ;\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "get value() { return this._inputValueAccessor.value; }", "need_input_evaler(input_name) {\n if (this.need_inputs === undefined || this.need_inputs === null)\n return null\n let ev = this.need_inputs[input_name]\n if (ev === undefined)\n return null\n return ev\n }", "function getInputValue(inputElement) {\n if (inputElement.type) {\n if (inputElement.type.toUpperCase() == 'CHECKBOX' ||\n inputElement.type.toUpperCase() == 'RADIO')\n {\n return (inputElement.checked ? 'on' : 'off');\n }\n }\n if (inputElement.value == null) {\n throw new SeleniumError(\"This element has no value; is it really a form field?\");\n }\n return inputElement.value;\n}", "getUserInput() {\n return null;\n }", "function getInput(idInput) {\n let inputValue_1 = Number(document.getElementById(idInput).value);\n return inputValue_1;\n}", "function input() {\n const inp = ifmt.selectedOptions[0].label\n const txt = itxt.value\n switch (inp) {\n case 'JSON':\n return cbor.encodeOne(JSON.parse(txt), {canonical: true})\n case 'hex':\n case 'base64':\n return Buffer.from(txt, inp)\n default:\n throw new Error(`Unknown input: \"${inp}\"`)\n }\n}", "function getInput(prompt) {\n return readlineSync.question(`${prompt}: `);\n}", "function getInput(name){\n var input = $('input[name=' + name + ']');/*seleciona os inputs*/\n if(input[0]){\n return input;/*retorna todos os inputs */\n }\n return null\n }", "function getInput() {\n inputTemp = Number(document.querySelector(\"section.converter-container input[type='text']\").value, \"\");\n // console.log(typeof(inputTemp) + \" initial input is \" + inputTemp);\n return inputTemp;\n}", "get(input){\n var t = this.match(input)\n if(t.isError()) {\n input.setError(t)\n throw JSON.stringify(input.error.json())\n }\n return t.value \n }", "get inputValue() {\n if (this.getAsElem(0).getIf(\"value\").isPresent()) {\n return new Monad_1.ValueEmbedder(this.getAsElem(0).value);\n }\n else {\n return Monad_1.ValueEmbedder.absent;\n }\n }", "function getInputVal ($name) {\n return $('input[name='+$name+']').val()\n }", "isRequiredProvided(input) {\n if (this.isOptional === true) {\n return true;\n }\n if (input === '') {\n return false;\n }\n return true;\n }", "function getInputValue(inputID) {\n if ($(\"#\" + inputID).attr('type') == \"radio\" || $(\"#\" + inputID).attr('type') == \"checkbox\") {\n var inputParent = $(\"#\" + inputID).parent().parent();\n var inputsValues = [];\n inputParent.children(\"div\").children(\":checked\").each(function (i) {\n inputsValues[i] = $(this).val();\n });\n return inputsValues;\n }\n\n return $(\"#\" + inputID).val();\n}", "function getInputValue(id) {\n return document.getElementById(id).value;\n}", "function getInputValue(id) {\n return document.getElementById(id).value;\n}", "get_and_process_inputs()\n {\n // thiks is to be increased.\n let input_id = document.getElementById(\"inputId\");\n let input = input_id.value;\n input = input.toLowerCase(); //this is a testing line , to be executed later.\n\n\n // console.error(input)\n\n\n return input;\n\n }", "input() {\n return this.input;\n }", "getInputs(input){ \n return this.inputs[input];\n }", "function getInputVal(id){\n return document.getElementById(id).value\n}", "get Input() {\n return this._input;\n }", "function getParam (inputVal) {\n let typeVal = typeof(inputVal); \n if (typeVal === \"object\") {\n console.log (`The input value is of type Object`)\n }\n else if (typeVal === \"boolean\") {\n console.log (`The input value is of type Boolean`)\n }\n else if (typeVal === \"number\") {\n console.log (`The input value is of type Number`)\n }\n else if (typeVal === \"string\") {\n console.log (`The input value is of type String`)\n } \n else if (typeVal === \"undefined\") {\n console.log (`The input value is of type undefined`)\n }\n else {\n console.log (\"Can`t tell!\")\n }\n}", "function getInputValue(element) {\n return document.getElementById(element).value;\n}", "getFilterInputValue(input) {\n return input.value;\n }", "getFilterInputValue(input) {\n return input.value;\n }", "function getInputVal(id) {\n return document.getElementById(id).value\n}" ]
[ "0.63989705", "0.62055576", "0.61045855", "0.60059166", "0.59358", "0.59203", "0.5895129", "0.58578235", "0.58578235", "0.58578235", "0.58578235", "0.5847491", "0.5783075", "0.57829684", "0.5690116", "0.56746393", "0.56380635", "0.5625583", "0.5625583", "0.5623084", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5614383", "0.5544855", "0.5534776", "0.5534776", "0.5519983", "0.5519983", "0.5513918", "0.5489363", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.5471452", "0.54626566", "0.5459121", "0.5445585", "0.5439264", "0.54272157", "0.541084", "0.5393948", "0.53829175", "0.5377966", "0.5354158", "0.5343559", "0.53321767", "0.53309697", "0.5324658", "0.5324514", "0.5324514", "0.5312948", "0.5309045", "0.530019", "0.529429", "0.52899176", "0.5288875", "0.52858186", "0.5281733", "0.5281733", "0.52694637" ]
0.588398
7
Wrapper around core.getInput that converts empty inputs to undefined. Also see getRequiredInput. This allows us to get stronger type checking of required/optional inputs and make behaviour more consistent between actions and the runner.
function getOptionalInput(name) { const value = core.getInput(name); return value.length > 0 ? value : undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "filterInput(input) {\n if (!input) {\n return this.opt.default == null ? '' : this.opt.default;\n }\n\n return input;\n }", "__getBypassedInput(input) {\n if (input.bypass === true) {\n // loop through inputs of chain until one is found\n // that is not being bypassed\n\n let found = false;\n\n while (input.input !== 'undefined' && found === false) {\n if (typeof input.input.bypass !== 'undefined') {\n input = input.input;\n if (input.bypass === false) found = true;\n } else {\n input = input.input;\n found = true;\n }\n }\n }\n\n return input;\n }", "getUserInput() {\n return null;\n }", "function getInput(name, options) {\n const val =\n process.env[`INPUT_${name.replace(/ /g, \"_\").toUpperCase()}`] || \"\";\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n }", "function getInput(){\n let userInput = inputField.value\n return userInput\n}", "function getRequiredInput(name) {\n return core.getInput(name, { required: true });\n}", "function Input() {}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n if (options && options.trimWhitespace === false) {\n return val;\n }\n return val.trim();\n}", "function getInput(name, options) {\r\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\r\n if (options && options.required && !val) {\r\n throw new Error(`Input required and not supplied: ${name}`);\r\n }\r\n return val.trim();\r\n}", "function getInput(name, options) {\r\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\r\n if (options && options.required && !val) {\r\n throw new Error(`Input required and not supplied: ${name}`);\r\n }\r\n return val.trim();\r\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "function getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}", "isRequiredProvided(input) {\n if (this.isOptional === true) {\n return true;\n }\n if (input === '') {\n return false;\n }\n return true;\n }", "getInputVal(inp) {\r\n return inp.value;\r\n }", "function Input() {\n throw new Error('Input should not be instantiated!');\n}", "function getDefault() {\n getData(getInputs);\n}", "get input() {\n\t\treturn this.__input;\n\t}", "getInput() {\n return this.input;\n }", "function UserInputs(action, input) {\n switch (action) {\n case \"concert-this\":\n runBandsInTown(input);\n fixString(input)\n break;\n case \"spotify-this-song\":\n runSpotify(input);\n fixString(input)\n break;\n case \"movie-this\":\n runOmdb(input);\n fixString(input)\n break;\n case \"do-what-it-says\":\n runRandom(input);\n break;\n default:\n console.log(\"\\n--------------------------------------------------------\");\n console.log(\n \"Please enter a valid argument, such as:\\n\\nnode liri.js movie-this [MOVIE TITLE]\\n\\nnode liri.js spotify-this-song [SONG TITLE]\\n\\nnode liri.js concert-this [ARTIST NAME]\\n\\nnode liri.js do-what-it-says\"\n );\n console.log(\n \"--------------------------------------------------------\\n\\n\"\n );\n }\n}", "need_input_evaler(input_name) {\n if (this.need_inputs === undefined || this.need_inputs === null)\n return null\n let ev = this.need_inputs[input_name]\n if (ev === undefined)\n return null\n return ev\n }", "function noempty(input_value, default_value)\n{\n if (!input_value)\n {\n return default_value;\n }\n if (input_value.length==0)\n {\n return default_value;\n }\n return input_value;\n}", "function getInput(el) {\n\t\treturn firstValue(firstValue(el.gm_bindings_.input), function(key, value) {\n\t\t\treturn is(value, 'HTMLInputElement');\n\t\t});\n\t}", "get_and_process_inputs()\n {\n // thiks is to be increased.\n let input_id = document.getElementById(\"inputId\");\n let input = input_id.value;\n input = input.toLowerCase(); //this is a testing line , to be executed later.\n\n\n // console.error(input)\n\n\n return input;\n\n }", "function get_validated_input(input) {\n if (input !== null) {\n \ttry {\n \t input = JSON.parse(input);\n\t if (Array.isArray(input) && input.length > 1)\n\t return input\n\t} catch (exp) {}\n }\n\n return null;\n}", "function getInput() {\n inputTemp = Number(document.querySelector(\"section.converter-container input[type='text']\").value, \"\");\n // console.log(typeof(inputTemp) + \" initial input is \" + inputTemp);\n return inputTemp;\n}", "function input(type) {\n const value = typeof type;\n return value;\n}", "function getPlayerMove(move) {\n if (move === undefined||null){\n return getInput();\n \n }\n return move;\n}", "input() {\n return this.input;\n }", "function Input(workflow, id, type, default_value) {\n\tthis.workflow = workflow ;\n\tthis.id = id ;\n\tthis.type = type ;\n\tthis.options = {} ;\n\tthis.is_linked = false ;\n\tthis.value = '' ; //final value\n\tthis.doc = '' ;\n\tthis.selected_id = '' ;\n\tthis.previous_text_value = '' ;\n\tthis.default_value = default_value ;\n}", "input() { return (this.tokens.length>0)?this.tokens[0].input:null }", "get Input() {\n return this._input;\n }", "function getInput(prompt) {\n return readlineSync.question(`${prompt}: `);\n}", "function getInputValue() {\n return dom.getElement('input-container.input').value;\n }", "function getInputValue() {\n const input = ui.getElement('input-container.input'),\n checked = input.checked;\n\n if (checked) {\n return input.value;\n }\n // Bad -- checkboxes do not let us represent a \"positive\" false\n // state. We should explore a better control.\n return 'false';\n }", "function oreq () {\n var truthy = function truthy(v) {\n return v !== null && v !== undefined && v !== false;\n };\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var val = args.filter(truthy)[0];\n return truthy(val) ? val : undefined;\n}", "get inputValue() {\n if (this.getAsElem(0).getIf(\"value\").isPresent()) {\n return new ValueEmbedder(this.getAsElem(0).value);\n }\n else {\n return ValueEmbedder.absent;\n }\n }", "function getInput(name){\n var input = $('input[name=' + name + ']');/*seleciona os inputs*/\n if(input[0]){\n return input;/*retorna todos os inputs */\n }\n return null\n }", "function getCommandInput() {\n prompt.get(['command'], function (err, input) {\n if (err) {\n console.log(err);\n return 1;\n }\n\n console.log();\n processCmd(input.command);\n });\n }", "function userInput() {\n debugger;\n userChoice = process.argv[2];\n userSearch = process.argv.splice(3).join(\" \");\n\n if (userChoice === undefined) {\n toDo();\n } else {\n checkingToDo();\n }\n}", "get inputType() {\n return this._inputType;\n }", "get inputType() {\n return this._inputType;\n }", "function nonEmptyInput(input, id) \n\t\t{\n\t\t\tvar isValid = false;\n\t\t\t\n\t\t\tif (input !== \"\")\n\t\t\t\tisValid = true;\n\t\t\telse \n\t\t\t\tisValid = false;\n\t\t\t\n\t\t\treturn changeInputField(isValid, id);\n\t\t}", "function getInput() {\n const input = process.argv.slice(2).sort((a,b) => {\n if(a[0] !== '-') return -1;\n if(b[0] !== '-') return 1;\n });\n return { input, command: input.shift() };\n}", "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\");\n return prompt();\n}", "function getInput() {\n console.log(\"Please choose either 'rock', 'paper', or 'scissors'.\");\n return prompt();\n}", "function throwIfUndefined(input, options = {}) {\n var _a;\n if (input === undefined) {\n throw new Error((_a = options.errorMessage) !== null && _a !== void 0 ? _a : \"undefined variable\");\n }\n return input;\n}", "getInputs(input){ \n return this.inputs[input];\n }", "constructor(inp = null) {\n this.input = inp;\n }", "function customValidation(input){\n return input;\n \n}", "function askData(str, required) {\n while (true) {\n var result = prompt(str, '');\n if (result === null) continue;\n if (!required) break;\n if (!result.length) continue;\n break;\n }\n return result;\n }", "function cleanInput(input){\n let output = input;\n if (flags.trimInput) {\n output = output.trim()\n }\n if (!flags.caseSensitive) {\n output = output.toLowerCase()\n }\n return output;\n}", "getFallbackInputDefinition() {\n return new InputDefinition([new InputOption('--custom', '-c', InputOption.VALUE_NONE, 'Set the custom input definition.')]);\n }" ]
[ "0.6222355", "0.6222355", "0.6222355", "0.6222355", "0.60148025", "0.596077", "0.5873272", "0.5797735", "0.5786374", "0.57449204", "0.57005686", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.56924444", "0.5680312", "0.5680312", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.5677128", "0.564295", "0.5630576", "0.55972743", "0.55842435", "0.55746734", "0.55648947", "0.5522715", "0.5518335", "0.5457436", "0.54541206", "0.54261386", "0.53832364", "0.5356976", "0.5353805", "0.5323331", "0.53227943", "0.5314555", "0.5309282", "0.5308887", "0.53018785", "0.52584445", "0.52490234", "0.5213769", "0.52126896", "0.5203737", "0.5193475", "0.51854604", "0.5182037", "0.5182037", "0.5179088", "0.5173995", "0.5164973", "0.5164973", "0.51536644", "0.51372147", "0.51253134", "0.51249003", "0.5120893", "0.5110936", "0.51105964" ]
0.664813
0
Get an environment parameter, but throw an error if it is not set.
function getRequiredEnvParam(paramName) { const value = process.env[paramName]; if (value === undefined || value.length === 0) { throw new Error(`${paramName} environment variable must be set`); } core.debug(`${paramName}=${value}`); return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getEnvVariable(params){\n let service;\n try{\n\n return process.env[params] || config[params];\n }\n catch(error){\n console.log(`getEnvVariable Could not get environment variable ${params} error- ${error}`);\n return null;\n }\n}", "function getparameter (param) // string\n{\n if (typeof (param) === 'undefined' || param === null) { return ''; }\n \n var value = parameters[param];\n \n if (typeof (webphone_api.plhandler) !== 'undefined' && webphone_api.plhandler !== null)\n {\n return webphone_api.plhandler.GetParameter(param);\n }else\n {\n var err_msg = 'ERROR, Webphone settings not loaded just yet';\n if (typeof (console) !== 'undefined' && console !== null)\n {\n if (typeof (console.error) !== 'undefined' && console.error !== null) { console.error(err_msg); }\n else if (typeof (console.log) !== 'undefined' && console.log !== null) { console.log(err_msg); }\n }\n }\n \n if (typeof (value) === 'undefined' || value === null) { return ''; }\n \n return value;\n}", "function getEnv(name, type, defaultValue) {\n let value = process.env[name]\n if (value === undefined) {\n if (defaultValue !== undefined) return defaultValue\n throw new Error(`Missing environment variable ${name}`)\n }\n switch (type) {\n case 'bool':\n case 'boolean':\n value = value.toLowerCase() === 'true' || value === '1'\n break\n case 'int':\n value = parseInt(value, 10)\n if (isNaN(value)) throw new Error(`Invalid environment variable ${name}: must be an integer`)\n break\n case 'float':\n value = parseFloat(value)\n if (isNaN(value)) throw new Error(`Invalid environment variable ${name}: must be a float`)\n break\n case 'array':\n value = value === '' ? [] : value.split(',')\n break\n }\n return value\n}", "function required(param) {\n if (param === required) {\n throw Error(\"Missing property\");\n } else {\n return param;\n }\n}", "function get(name) {\n const value = config.get(name)\n console.assert(value != null && value != undefined, \"Missing config param \" + name)\n return value\n}", "function get(name) {\n const value = config.get(name)\n console.assert(value != null && value != undefined, \"Missing config param \" + name)\n return value\n}", "function getParameterValue(key, url) {\r\n ERROR = 'ERROR';\r\n \r\n String.prototype.get = function(p){\r\n return (match = this.match(new RegExp(\"[?|&]?\" + p + \"=([^&]*)\"))) ? match[1] : ERROR;\r\n };\r\n \r\n var value = window.location.search.get(key);\r\n if (value == ERROR) {\r\n return null;\r\n }\r\n \r\n return value;\r\n}", "function throwIfMissing() {\n throw new Error(\"Missing parameter\");\n}", "function getOption(optionName, environmentName) {\n const option = (() => {\n if (ext[optionName]) {\n return ext[optionName];\n } else if (process.env[environmentName]) {\n console.log(STRINGS[optionName + 'Env']);\n return process.env[environmentName];\n }\n console.log(STRINGS[optionName + 'Missing']);\n process.exit(1);\n })();\n console.log(`Using \"${option}\" for ${optionName}`);\n return option;\n}", "function getConfigParam(paramName) {\n var configParams = jq(document).data(\"ConfigParameters\");\n if (configParams) {\n return configParams[paramName];\n }\n return \"\";\n}", "function checkConfig (setting) {\n if (!nconf.get(setting)) {\n throw \"You must set \" + setting + \" as an environment variable or in config.json!\";\n }\n}", "function getenv(key) {\n return process.env[key];\n }", "function getEnv(variable){\n if (process.env[variable] === undefined){\n throw new Error('You must create an environment variable for ' + variable);\n }\n return process.env[variable];\n}", "checkSetEnvironmentVariable(variableName) {\n let variable = process.env[variableName];\n \n if(! variable || variable == null || variable === \"\")\n throw new Error(`Environment variable ${variableName} not set`);\n }", "function getEnv (name) {\n return String(java.lang.System.getProperty(name));\n}", "getEnvironmentParameterValues(){}", "function validateEnv() {\n winston.info('Validating Environment');\n var fail = false;\n var v = {};\n var envVariables = \n ['MONGO_USER', 'MONGO_PASS','MONGO_HOST', 'MONGO_PORT',\n 'LOGGLY_INPUT_TOKEN', 'LOGGLY_INPUT_NAME', 'LOGGLY_SUB_DOMAIN',\n 'LOGGLY_USERNAME', 'LOGGLY_PASSWORD', 'NODE_ENV','LOCATION','API_PORT'];\n for (i in envVariables) {\n var item = envVariables[i];\n winston.info('Reading env variable ',item);\n if (!fail && app.config.env().get(item) === undefined) {\n fail = true;\n winston.error(item,' undefined');\n } else {\n v[item] = app.config.get(item);\n };\n };\n if (fail) {\n winston.error('Environment improperly defined',process.env);\n return process.exit(1);\n } else {\n winston.info('Environment validated successfully');\n }\n return v;\n}", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n return injector.invoke(config.$$fn);\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n return injector.invoke(config.$$fn);\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n return injector.invoke(config.$$fn);\n }", "function getRequiredEnvironmentVariables () {\n let msg = '';\n const ev = {};\n for (const req of requiredEnvironmentVariables.entries()) {\n if (!process.env[req[1]]) {\n msg += 'Not set; required environment variable: ' + req[1] + '\\n';\n } else {\n ev[req[1]] = process.env[req[1]];\n }\n }\n if (msg !== '') {\n throw msg;\n } else {\n return ev;\n }\n}", "function $$getDefaultValue() {\n\t if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n\t return injector.invoke(config.$$fn);\n\t }", "function argumentOrDefault(key) {\n var args = customizations;\n\n if (typeof args[key] !== 'undefined') {\n return args[key];\n } else {\n return defaultParams[key];\n }\n }", "async loadEnvironmentParameterValues(){}", "function env(e, d = '') {\n if (typeof process.env[e] === 'undefined' || process.env[e] === '') return d;\n return process.env[e];\n}", "function parseEnvNumber(key) {\n const value = Number(process.env[key]);\n if (Number.isNaN(value) || value < 0) {\n return undefined;\n }\n return value;\n}", "function parseEnvNumber(key) {\n const value = Number(process.env[key]);\n if (Number.isNaN(value) || value < 0) {\n return undefined;\n }\n return value;\n}", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n return injector.invoke(config.$$fn);\n }", "function getParameter(weatherObj, paramName){\r\n\tvar parameter = weatherObj.parameters.filter(function(v){ return v.name === paramName});\r\n\tif(parameter && parameter.length > 0){\r\n\t\treturn parameter[0].values[0];\r\n\t}\r\n\r\n\treturn undefined;\r\n}", "function getOrElse(paramName, settings) {\n return paramName in settings ? settings[paramName] : Qajax.defaults[paramName];\n }", "setVar(key, defaultValue, providerConfig) {\n let value = defaultValue;\n if (process.env[`npm_config_${key}`]) {\n value = process.env[`npm_config_${key}`];\n }\n if (providerConfig && providerConfig[key]) {\n value = providerConfig[key];\n }\n return value;\n }", "function get(key) {\n return compilerSettings.hasOwnProperty(key) ? compilerSettings[key] : 'undefined';\n }", "get(name, default_value) {\n\t\tlet return_value = null;\n\n\t\ttry {\n\t\t\treturn_value = this._config.get(name);\n\t\t} catch (err) {\n\t\t\treturn_value = default_value;\n\t\t}\n\n\t\tif (return_value === null || return_value === undefined) {\n\t\t\treturn_value = default_value;\n\t\t}\n\n\t\treturn return_value;\n\t}", "function require_param(key, req, res) {\n var val = req.param(key);\n if (val === undefined) {\n res.statusCode = 400;\n var r = {\n status: \"error\",\n errors: [\"you must supply parameter \" + key]\n };\n return res.end(JSON.stringify(r), null, '\\t');\n }\n return val;\n}", "function getAppEnv(){\n //If not initialized then do that.\n if (!appEnv){\n init();\n }\n console.log(\"application environment variable\");\n console.log(appEnv);\n return appEnv;\n}", "function get(option, defaultValue) {\n return option === undefined ? defaultValue : option;\n}", "function get(option, defaultValue) {\n return option === undefined ? defaultValue : option;\n}", "function getUrlParam(parameter, defaultvalue){\n var urlparameter = defaultvalue;\n if(window.location.href.indexOf(parameter) > -1){\n urlparameter = getUrlVars()[parameter];\n }\n return urlparameter;\n }", "checkConfig () {\n try {\n const requiredEnvs = ['networkURL', 'network', 'WIF', 'tokenID']\n const missingEnvs = requiredEnvs.filter(\n item =>\n typeof _this.config[item] === 'undefined' ||\n _this.config[item] === null\n )\n if (missingEnvs.length) {\n const message = missingEnvs.join(', ')\n throw new Error(`Missing environment variables (${message})`)\n }\n } catch (err) {\n console.log('Error in bch.js/checkConfig()', err.message)\n throw err\n }\n }", "function readArgument(name, required = false) {\n if (runningAsModule) {\n if (!options || typeof options !== \"object\")\n throw new Error(\"Options object must be passed to this function.\");\n return options[name];\n }\n const processArgs = process.argv;\n const prefix = `--${name}=`;\n const fullArgumentText = processArgs.find(arg => arg.startsWith(prefix));\n if (fullArgumentText) {\n const outValue = fullArgumentText.slice(prefix.length).trim();\n if (outValue)\n return outValue;\n throw new Error(`Argument ${prefix} cannot be empty`);\n }\n if (required)\n throw new Error(`Missing required argument ${prefix}).`);\n }", "getEnv(): any {\n return this.env;\n }", "function fromEnv() {\n return function () {\n var accessKeyId = process.env[exports.ENV_KEY];\n var secretAccessKey = process.env[exports.ENV_SECRET];\n var expiry = process.env[exports.ENV_EXPIRATION];\n if (accessKeyId && secretAccessKey) {\n return Promise.resolve({\n accessKeyId: accessKeyId,\n secretAccessKey: secretAccessKey,\n sessionToken: process.env[exports.ENV_SESSION],\n expiration: expiry ? protocol_timestamp_1.epoch(expiry) : undefined\n });\n }\n return Promise.reject(new property_provider_1.ProviderError(\"Unable to find environment variable credentials.\"));\n };\n}", "function getParameterPolyfill(gl, originalGetParameter, pname) {\n\n // Return mock limits (usually 0) for WebGL2 constants to ensure these\n // can be queries without error\n var limit = WEBGL_PARAMETERS[pname];\n var value = typeof limit === 'function' ? limit(gl, originalGetParameter, pname) : limit;\n var result = value !== undefined ? value : originalGetParameter(pname);\n return result;\n}", "function useParameter(parameterKey, defaultValue) {\n var _useStoryContext = useStoryContext(),\n parameters = _useStoryContext.parameters;\n\n if (parameterKey) {\n return parameters[parameterKey] || defaultValue;\n }\n\n return undefined;\n}", "function useParameter(parameterKey, defaultValue) {\n var _useStoryContext = useStoryContext(),\n parameters = _useStoryContext.parameters;\n\n if (parameterKey) {\n return parameters[parameterKey] || defaultValue;\n }\n\n return undefined;\n}", "function getSetting() {\n /* eslint-disable dot-notation,@typescript-eslint/dot-notation */\n return (0, plink_1.config)()['@wfh/express-app'];\n}", "function $$getDefaultValue() {\n if (!injector) {\n throw new Error(\"Injectable functions cannot be called at configuration time\");\n }\n\n var defaultValue = injector.invoke(config.$$fn);\n\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue)) {\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n }\n\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function $$getDefaultValue() {\n if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n var defaultValue = injector.invoke(config.$$fn);\n if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n return defaultValue;\n }", "function _getEnvironment(env){\n var environments = ['prod','dev','test'];\n var defaultEnv = 'dev';\n\n if(typeof env === 'undefined' || !env){\n env = defaultEnv;\n }\n\n var currentEnv = process.env.NODE_ENV || env;\n\n //try to recognize what we have at the moment\n var possibleEnv = _.find(environments, function(env){\n return currentEnv.indexOf(env) != -1;\n });\n\n return possibleEnv || defaultEnv;\n}", "function getGlobalParamFromStorage(globalParamName) {\n return localStorage.getItem(globalParamName);\n }", "function getConfigSetting(keyName) {\n return ppsc().getConfigValue(keyName);\n}", "function $$getDefaultValue() {\n\t if (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n\t var defaultValue = injector.invoke(config.$$fn);\n\t if (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n\t throw new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n\t return defaultValue;\n\t }", "function argumentOrDefault(key) {\n var args = customizations;\n return args[key] === undefined ? _defaultParams2['default'][key] : args[key];\n }", "function argumentOrDefault(key) {\n var args = customizations;\n return args[key] === undefined ? _defaultParams2['default'][key] : args[key];\n }", "function argumentOrDefault(key) {\n var args = customizations;\n return args[key] === undefined ? _defaultParams2['default'][key] : args[key];\n }", "function argumentOrDefault(key) {\n var args = customizations;\n return args[key] === undefined ? _defaultParams2['default'][key] : args[key];\n }", "function argumentOrDefault(key) {\r\n var args = customizations;\r\n return args[key] === undefined ? _defaultParams2['default'][key] : args[key];\r\n }", "function getParamValue(paramName) {\n\tvar cmdRe=RegExp( '[&?]' + paramName + '=([^&]*)' );\n\tvar h = document.location.href;\n\tvar m=cmdRe.exec(h);\n\tif (m) {\n\t\ttry {\n\t\t\treturn decodeURIComponent(m[1]);\n\t\t} catch (someError) {}\n\t}\n\treturn null;\n}", "function argumentOrDefault(key){var args=customizations; return args[key]===undefined ? _defaultParams2.default[key] : args[key];}", "function getParameter(gl, key) {\n var getter = GL_PARAMETER_GETTERS[key];\n return getter ? getter(gl, Number(key)) : gl.getParameter(Number(key));\n}", "function argumentOrDefault(key) {\n\t var args = customizations;\n\t return args[key] === undefined ? _defaultParams2['default'][key] : args[key];\n\t }", "function initEnvironment() {\n if (env === \"dev\") {\n }\n else if (env === \"production\") {\n\n }\n else {\n throw \"ERROR: Unidentified env variable (from initEnvironment method)\";\n }\n }", "function loadEnv (envVar) {\n if (!process.env[envVar]) throw new Error(`Environment variable '${envVar}' not found`)\n return process.env[envVar]\n}", "function getPreference(string, def) {\n var pref = nova.config.get(string)\n if (pref == null) {\n console.log(`${string}: ${pref} is null. Returning ${def}`)\n return def\n } else {\n console.log(`${string}: ${pref}`)\n return pref\n }\n}", "function $$getDefaultValue() {\n\t\t\t\tif (!injector) throw new Error(\"Injectable functions cannot be called at configuration time\");\n\t\t\t\tvar defaultValue = injector.invoke(config.$$fn);\n\t\t\t\tif (defaultValue !== null && defaultValue !== undefined && !self.type.is(defaultValue))\n\t\t\t\t\tthrow new Error(\"Default value (\" + defaultValue + \") for parameter '\" + self.id + \"' is not an instance of Type (\" + self.type.name + \")\");\n\t\t\t\treturn defaultValue;\n\t\t\t}", "function string(name: string, defaultVal: string): string {\n return process.env[name] || defaultVal;\n}", "function fromEnv() {\n return function () {\n var accessKeyId = process.env[ENV_KEY];\n var secretAccessKey = process.env[ENV_SECRET];\n var expiry = process.env[ENV_EXPIRATION];\n if (accessKeyId && secretAccessKey) {\n return Promise.resolve({\n accessKeyId: accessKeyId,\n secretAccessKey: secretAccessKey,\n sessionToken: process.env[ENV_SESSION],\n expiration: expiry ? new Date(expiry) : undefined,\n });\n }\n return Promise.reject(new ProviderError(\"Unable to find environment variable credentials.\"));\n };\n}", "function mandatory() {\n throw new Error('Missing parameter');\n}", "function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs){return aArgs[aName];}else if(arguments.length===3){return aDefaultValue;}else{throw new Error('\"'+aName+'\" is a required argument.');}}", "function getTHREEParam(val, options, defaultVal) {\n if (!val)\n return defaultVal;\n if (options.indexOf(val) < 0) {\n Util.reportError(\"Bad Value for THREE \" + val )\n }\n return THREE[val];\n}", "async function getParam(context, key) {\n const THIS_APPLICATION_NAME = 'patient-appointment-management';\n const CONSTANTS = {\n APPLICATION_NAME: THIS_APPLICATION_NAME,\n FILENAME_APPOINTMENT:\n 'appointment{appointment_id}-patient{patient_id}.json',\n _S3_BUCKET_BASE: `twilio-${THIS_APPLICATION_NAME}`,\n _CF_STACK_DEPLOYER_BASE: `twilio-${THIS_APPLICATION_NAME}-deployer`,\n _CF_STACK_BUCKET_BASE: `twilio-${THIS_APPLICATION_NAME}-bucket`,\n _CF_STACK_APPLICATION_BASE: `twilio-${THIS_APPLICATION_NAME}-application`,\n _GLUE_DATABASE_BASE: 'patient_appointments',\n };\n\n // first return context non-null context value\n if (context[key]) return context[key];\n\n // second return CONSTANTS value\n if (CONSTANTS[key]) {\n context[key] = CONSTANTS[key];\n return context[key];\n }\n\n const account_sid = context.ACCOUNT_SID\n ? context.ACCOUNT_SID\n : process.env.ACCOUNT_SID;\n const auth_token = context.AUTH_TOKEN\n ? context.AUTH_TOKEN\n : process.env.AUTH_TOKEN;\n const client = context.getTwilioClient();\n\n const AWS = require('aws-sdk');\n const options = {\n accessKeyId: context.DEPLOYER_AWS_ACCESS_KEY_ID,\n secretAccessKey: context.DEPLOYER_AWS_SECRET_ACCESS_KEY,\n region: context.AWS_REGION,\n };\n const SSM = new AWS.SSM(options);\n // ----------------------------------------------------------------------\n try {\n switch (key) {\n case 'DEPLOYER_AWS_ROLE_ARN': {\n const name = '/twilio/patient-appointment-management/deployer/role-arn';\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_ACCESS_KEY_ID': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/aws-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n const secretName = data.Parameter.Value;\n\n const SM = new AWS.SecretsManager(options);\n const sdata = await SM.getSecretValue({\n SecretId: secretName,\n }).promise();\n const secret = JSON.parse(sdata.SecretString);\n return secret.AWS_ACCESS_KEY_ID;\n }\n case 'AWS_SECRET_ACCESS_KEY': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/aws-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n const secretName = data.Parameter.Value;\n\n const SM = new AWS.SecretsManager(options);\n const sdata = await SM.getSecretValue({\n SecretId: secretName,\n }).promise();\n const secret = JSON.parse(sdata.SecretString);\n return secret.AWS_SECRET_ACCESS_KEY;\n }\n case 'AWS_ATHENA_WORKGROUP': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/athena-workgroup`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_CF_STACK_APPLICATION': {\n return `${CONSTANTS._CF_STACK_APPLICATION_BASE}-${context.CUSTOMER_CODE}`;\n }\n case 'AWS_CF_STACK_BUCKET': {\n return `${CONSTANTS._CF_STACK_BUCKET_BASE}-${context.CUSTOMER_CODE}`;\n }\n case 'AWS_CF_STACK_DEPLOYER': {\n return `${CONSTANTS._CF_STACK_DEPLOYER_BASE}`;\n }\n case 'AWS_GLUE_CRAWLER': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/crawler`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_GLUE_DATABASE': {\n return `${CONSTANTS._GLUE_DATABASE_BASE}_${context.CUSTOMER_CODE}`;\n }\n case 'AWS_LAMBDA_SEND_REMINDERS': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/lambda-send-reminders`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_LAMBDA_QUERY_STATE': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/lambda-query-state`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_LAMBDA_QUERY_HISTORY': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/lambda-query-history`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_S3_BUCKET': {\n return `${CONSTANTS._S3_BUCKET_BASE}-${context.CUSTOMER_CODE}`;\n }\n case 'AWS_SECRET_AWS_ARN': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/aws-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_SECRET_TWILIO_ARN': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/twilio-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_SFN_QUERY_STATE': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/sfn-query-state`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_SFN_QUERY_HISTORY': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/sfn-query-history`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'TWILIO_ACCOUNT_SID': {\n return getParam(context, 'ACCOUNT_SID');\n }\n case 'TWILIO_AUTH_TOKEN': {\n return getParam(context, 'AUTH_TOKEN');\n }\n case 'TWILIO_ENVIRONMENT_SID': {\n const service_sid = await getParam(context, 'TWILIO_SERVICE_SID');\n if (service_sid === null) {\n return null; // service not yet deployed\n }\n const environments = await client.serverless\n .services(service_sid)\n .environments.list();\n return environments[0].sid;\n }\n case 'TWILIO_ENVIRONMENT_DOMAIN_NAME': {\n const service_sid = await getParam(context, 'TWILIO_SERVICE_SID');\n if (service_sid === null) {\n return null; // service not yet deployed\n }\n const environments = await client.serverless\n .services(service_sid)\n .environments.list();\n return environments[0].domainName;\n }\n case 'TWILIO_FLOW_SID': {\n let flow_sid = null;\n await client.studio.flows.list({ limit: 100 }).then((flows) =>\n flows.forEach((f) => {\n if (f.friendlyName === THIS_APPLICATION_NAME) {\n flow_sid = f.sid;\n }\n })\n );\n if (flow_sid !== null) {\n return flow_sid;\n }\n return null;\n }\n case 'TWILIO_SERVICE_SID': {\n let service_sid = null;\n await client.serverless.services.list({ limit: 100 }).then((services) =>\n services.forEach((s) => {\n if (s.friendlyName === THIS_APPLICATION_NAME) {\n service_sid = s.sid;\n }\n })\n );\n if (service_sid !== null) {\n return service_sid;\n }\n console.log(\n 'Developer note: YOU MUST DEPLOY THE SERVICE FIRST!!! ABORTING!!!'\n );\n return null;\n }\n default:\n throw new Error(`Undefined variable ${key} !!!`);\n }\n } catch (err) {\n console.log(`Unexpected error in getParam for ${key} ... returning null`);\n return null;\n }\n}", "function readENV(varName, defaultValue) {\n //for some reason Azure uses this prefix, maybe there is a good reason\n var value = process.env['CUSTOMCONNSTR_' + varName]\n || process.env['CUSTOMCONNSTR_' + varName.toLowerCase()]\n || process.env[varName]\n || process.env[varName.toLowerCase()];\n\n return value || defaultValue;\n}", "function retrieveBaseConfig() {\n // check that environment variables are set\n ensureEnvVariablesSet([\n 'ALGOD_TOKEN',\n 'ALGOD_SERVER',\n 'ALGOD_PORT'\n ])\n}", "function getUrlParameter(paramName) {\n\t\tvar url = decodeURIComponent(window.location.search.substring(1)),\n\t\t\t\t URLVars = url.split('&'),\n\t\t\t\t param,\n\t\t\t\t i;\n\n\t\tfor (i = 0; i < URLVars.length; i++) {\n\t\t\tparam = URLVars[i].split('=');\n\n\t\t\tif (param[0] === paramName)\n\t\t\t\treturn param[1] === undefined ? true : param[1];\n\t\t}\n\t}", "async retrieveEnvironmentParameterValues(reload=false){\n\t\tconst loaded = this.getEnvironmentParameterValues();\n\t\tif(loaded === null || reload){\n\t\t\treturn await this.loadEnvironmentParameterValues(reload);\n\t\t}\n\t\telse{\n\t\t\treturn loaded;\n\t\t}\n\t}", "function _validateEnvironmentVariables() {\n var envs = [];\n if (!process.env['AZURE_SUBSCRIPTION_ID']) envs.push('AZURE_SUBSCRIPTION_ID');\n if (!process.env['AZURE_TENANT_ID']) envs.push('AZURE_TENANT_ID');\n if (!process.env['AZURE_CLIENT_ID']) envs.push('AZURE_CLIENT_ID');\n if (!process.env['AZURE_CLIENT_OID']) envs.push('AZURE_CLIENT_OID');\n if (!process.env['AZURE_CLIENT_SECRET']) envs.push('AZURE_CLIENT_SECRET');\n\n if (envs.length > 0) {\n throw new Error(util.format('please set/export the following environment variables: %s', envs.toString()));\n }\n}", "function getJsonEnvVar (envVar) {\n const envVal = process.env[envVar]\n if (envVal == null) {\n error(`env var ${envVar} was unexpectedly not set, using {}`)\n return {}\n }\n\n try {\n return JSON.parse(envVal)\n } catch (err) {\n error(`env var ${envVar} was not valid JSON, using {}: ${envVal}`)\n return {}\n }\n}", "function checkForParameter(parameter, defaultparameter) {\r\n try {\r\n if (parameter !== null && parameter !== undefined\r\n && parameter !== \"null\" && parameter !== \"NaN\"\r\n && parameter !== \"undefined\"\r\n && parameter != \"\"\r\n && parameter != \" \") {\r\n return parameter;\r\n } else {\r\n\r\n return defaultparameter;\r\n }\r\n } catch (e) {\r\n log.error(\"Err@ FN checkForParameter\", e);\r\n }\r\n }", "function getOption (option) {\n if (!option) {\n return false;\n }\n\n let index = process.argv.indexOf(option);\n\n return index !== -1 ? {\n value: process.argv[index + 1]\n } : false;\n}", "function grab(param) {\n const i = proc.indexOf(param);\n return (i === -1 ? null : process.argv[i + 1]);\n}", "function getenv(variable) {\n\n const decrypt = decipher(CRYPTO_SECRET);\n const encrypt = cipher(CRYPTO_SECRET);\n\n return new Promise((resolve, reject) => {\n\n let context = {}\n // Wait for response from 'Environment' macro\n context.stop = xapi.event.on(\"Message Send Text\", function (msg) {\n\n let parsed;\n\n // Decrypt message\n if (encrypted) {\n msg = decrypt(msg);\n }\n\n try {\n parsed = JSON.parse(msg);\n }\n catch (err) {\n console.error(`cannot JSON parse \"MessageSent\" event: ${msg}: it's ok, simply ignoring this event`);\n if (encrypted) {\n console.warn('CHECK the Crypto secret match in the \"environment\" and macros embedding the \"getenv\" function');\n }\n return;\n }\n\n let data = parsed;\n if (data.operation && (data.operation == \"get_response\")) {\n console.debug(`received value: \"${data.value}\" for env variable: \"${data.env}\"`);\n\n // Check this is the variable we have requested\n if (variable != data.env) {\n console.debug(`received incorrect variable, ${data.env} instead of ${variable}, ignoring...`);\n return;\n }\n\n // If found, stop listening\n if (context.stop) {\n console.debug(`unsubscribe from \"Message Send\" events, for variable: ${variable}`);\n context.stop();\n delete context.stop;\n }\n\n resolve(data.value);\n\n return;\n }\n\n console.debug(`ignoring \"Message Sent\" event, not a get_response: ${msg}`);\n });\n\n // Send request to get the value for the variable\n let data = {\n 'operation': 'get',\n 'env': variable\n };\n\n let requestMsg = JSON.stringify(data);\n\n // Encrypt\n if (encrypted) {\n requestMsg = encrypt(requestMsg);\n }\n\n xapi.command('Message Send', { Text: requestMsg }).then(() => {\n\n // The Environment macro should respond before TIMEOUT\n setTimeout(() => {\n if (context.stop) {\n console.debug(`unsubscribe from Message send for: ${variable}`);\n context.stop();\n delete context.stop;\n }\n\n let error = new Error('Environment Timeout');\n error.code = \"TIMEOUT\";\n return reject(error);\n }, ENV_TIMEOUT);\n });\n\n });\n}", "function url_env(environment){\n\tif(environment == 'dev'){\n\treturn cy.visit('https://example.cypress.io')\n\t}\n\tif(environment == 'uat'){\n\treturn cy.visit('https://google.com')\n\t}\n\tconsole.log('No existe la variable de entorno' + environment)\n}", "function parseIntEnv (name, defaultValue) {\n if (typeof name !== 'string') {\n throw new Error(`invalid key ${name}`);\n }\n\n const value = env[name]; // eslint-disable-line security/detect-object-injection\n if (value === undefined) {\n return defaultValue;\n }\n\n const parsed = parseInt(value);\n\n if (isNaN(parsed)) {\n throw new Error(`invalid value ${name}=${value}`);\n }\n\n return parsed;\n}", "function getEnvironmentVariable(name, isSystem) {\n let regKey = (isSystem ? systemEnvRegKey : userEnvRegKey);\n let regLabel = (isSystem ? 'system' : 'user');\n let child = childProcess.spawnSync(\n 'reg.exe',\n [ 'QUERY', regKey, '/V', name ],\n { stdio: 'pipe' });\n if (child.error) {\n throw new Error('Failed to read from ' + regLabel + ' registry.', child.error);\n } else if (child.status) {\n let message = child.stderr.toString().trim().replace(/^ERROR: */, '') ||\n 'Reg.exe exited with code: ' + child.status;\n let code = (/denied/.test(message) ? Error.EPERM : undefined);\n throw new Error('Failed to read from ' + regLabel + ' registry.',\n new Error(message, code));\n }\n\n let output = child.stdout.toString().trim().split(/\\r?\\n/);\n\n let match = queryRegex.exec(output[1]);\n if (!match) {\n throw new Error('Registry query returned unexpected data.');\n }\n\n let value = match[2];\n return value;\n}", "function resolve(env, text) {\n if (text in env)\n return env[text];\n else\n throw ReferenceError(\"Undefined variable: '\"+text+\"'.\");\n}" ]
[ "0.6720966", "0.5845765", "0.5814944", "0.57505673", "0.5702291", "0.5702291", "0.560473", "0.55321205", "0.55314416", "0.5511907", "0.5448415", "0.5433357", "0.5411888", "0.5387748", "0.5352416", "0.53373533", "0.53338695", "0.52976185", "0.52976185", "0.52976185", "0.5290321", "0.52840906", "0.5279851", "0.5258133", "0.52574426", "0.52120197", "0.52120197", "0.51821125", "0.5169878", "0.51660526", "0.514281", "0.51337445", "0.5128424", "0.5087861", "0.50613207", "0.5059939", "0.5059939", "0.50086325", "0.5007686", "0.500029", "0.4987019", "0.4972407", "0.496465", "0.49566385", "0.49566385", "0.49446633", "0.49404493", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.4939042", "0.49351016", "0.49307054", "0.49223226", "0.49104768", "0.49096286", "0.49082494", "0.49082494", "0.49082494", "0.49082494", "0.4891673", "0.489017", "0.4888045", "0.48776877", "0.48689896", "0.48624966", "0.48620296", "0.48605078", "0.485891", "0.48587355", "0.4858193", "0.48470134", "0.48257932", "0.48232883", "0.48193863", "0.48155838", "0.4798047", "0.47967118", "0.47842464", "0.4782927", "0.47808537", "0.4778007", "0.47711354", "0.47584862", "0.47531143", "0.47492832", "0.47411785", "0.47343972", "0.4730478" ]
0.7499047
0
Ensures all required environment variables are set in the context of a local run.
function prepareLocalRunEnvironment() { if (!util_1.isLocalRun()) { return; } core.debug("Action is running locally."); if (!process.env.GITHUB_JOB) { core.exportVariable("GITHUB_JOB", "UNKNOWN-JOB"); } if (!process.env.CODEQL_ACTION_ANALYSIS_KEY) { core.exportVariable("CODEQL_ACTION_ANALYSIS_KEY", `LOCAL-RUN:${process.env.GITHUB_JOB}`); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateRequiredEnvVars (){\n\tvar environmentReady = true;\n\tif (!process.env.REDIS_HOST){\n\t\tconsole.error(\"Redis host is missing!\");\n\t\tenvironmentReady = false;\n\t}\n\tif (!process.env.REDIS_PORT){\n console.error(\"Redis port is missing!\");\n\t\tenvironmentReady = false;\n\t}\n\tif (!process.env.SERVER_PORT){\n console.error(\"Server port is missing!\");\n\t\tenvironmentReady = false;\n\t}\n\tif (!process.env.CASSANDRA_HOST){\n console.error(\"Cassandra host is missing!\");\n environmentReady = false;\n }\n\n\t/*\n\t * After checking all environment variables stop the process if\n\t * any of the required are missing.\n\t */\n\tif (environmentReady === false){\n console.error(\"Process can not be started due to missing environment variables\");\n\t\tprocess.exit();\n\t}\n}", "loadEnvVarsForLocal() {\n const defaultEnvVars = {\n IS_LOCAL: 'true',\n };\n\n _.merge(process.env, defaultEnvVars);\n\n // in some circumstances, setting these provider-independent environment variables is not enough\n // eg. in case of local 'docker' invocation, which relies on this module,\n // these provider-independent environment variables have to be propagated to the container\n this.serverless.service.provider.environment =\n this.serverless.service.provider.environment || {};\n const providerEnv = this.serverless.service.provider.environment;\n for (const [envVariableKey, envVariableValue] of Object.entries(defaultEnvVars)) {\n if (!Object.prototype.hasOwnProperty.call(providerEnv, envVariableKey)) {\n providerEnv[envVariableKey] = envVariableValue;\n }\n }\n\n // Turn zero or more --env options into an array\n // ...then split --env NAME=value and put into process.env.\n [].concat(this.options.env || []).forEach((itm) => {\n const splitItm = itm.split(/=(.+)/);\n process.env[splitItm[0]] = splitItm[1] || '';\n });\n }", "function _validateEnvironmentVariables() {\n var envs = [];\n if (!process.env['AZURE_SUBSCRIPTION_ID']) envs.push('AZURE_SUBSCRIPTION_ID');\n if (!process.env['AZURE_TENANT_ID']) envs.push('AZURE_TENANT_ID');\n if (!process.env['AZURE_CLIENT_ID']) envs.push('AZURE_CLIENT_ID');\n if (!process.env['AZURE_CLIENT_OID']) envs.push('AZURE_CLIENT_OID');\n if (!process.env['AZURE_CLIENT_SECRET']) envs.push('AZURE_CLIENT_SECRET');\n\n if (envs.length > 0) {\n throw new Error(util.format('please set/export the following environment variables: %s', envs.toString()));\n }\n}", "setupEnvironment() {}", "function validateEnv() {\n winston.info('Validating Environment');\n var fail = false;\n var v = {};\n var envVariables = \n ['MONGO_USER', 'MONGO_PASS','MONGO_HOST', 'MONGO_PORT',\n 'LOGGLY_INPUT_TOKEN', 'LOGGLY_INPUT_NAME', 'LOGGLY_SUB_DOMAIN',\n 'LOGGLY_USERNAME', 'LOGGLY_PASSWORD', 'NODE_ENV','LOCATION','API_PORT'];\n for (i in envVariables) {\n var item = envVariables[i];\n winston.info('Reading env variable ',item);\n if (!fail && app.config.env().get(item) === undefined) {\n fail = true;\n winston.error(item,' undefined');\n } else {\n v[item] = app.config.get(item);\n };\n };\n if (fail) {\n winston.error('Environment improperly defined',process.env);\n return process.exit(1);\n } else {\n winston.info('Environment validated successfully');\n }\n return v;\n}", "function initEnvironmentVariables() {\n node_modules_shelljs_shell.env.SECHUB_USERID = user;\n node_modules_shelljs_shell.env.SECHUB_APITOKEN = apiToken;\n node_modules_shelljs_shell.env.SECHUB_SERVER = url;\n node_modules_shelljs_shell.env.SECHUB_PROJECT = projectName;\n node_modules_shelljs_shell.env.SECHUB_DEBUG = debug;\n}", "function checkCredentials () {\n\n var keys = ['OSTORE_AUTH_URI', 'OSTORE_AUTH_UN', 'OSTORE_AUTH_PW'];\n var okay = keys.every( function ( key ) { return process.env[key]; });\n\n if ( ! okay ) {\n console.log( 'Failed to find required environment variables', keys );\n process.exit( 1 );\n }\n}", "function setEnvironment(local) {\n let config;\n if (local) {\n config = localConfig;\n REGISTRY = config.registryAddress;\n } else {\n config = publicConfig;\n }\n\n etherPrivateKey = config.privateKey;\n jsonRpcUrl = config.rpcUrl;\n}", "checkConfig () {\n try {\n const requiredEnvs = ['networkURL', 'network', 'WIF', 'tokenID']\n const missingEnvs = requiredEnvs.filter(\n item =>\n typeof _this.config[item] === 'undefined' ||\n _this.config[item] === null\n )\n if (missingEnvs.length) {\n const message = missingEnvs.join(', ')\n throw new Error(`Missing environment variables (${message})`)\n }\n } catch (err) {\n console.log('Error in bch.js/checkConfig()', err.message)\n throw err\n }\n }", "function loadDevEnvVariables() {\n // eslint-disable-next-line @typescript-eslint/no-var-requires\n const dotenv = require('dotenv');\n const filePath = path_1.default.join(__dirname, '..', '..', '.env');\n const env = dotenv.config({ path: filePath }).parsed;\n forceEnvVar(env, 'ALGOLIA_API_KEY');\n forceEnvVar(env, 'ALGOLIA_BASE_URL');\n}", "function env() {\n var e;\n try {\n e = fs.readFileSync('.env', { encoding: 'utf-8' }).split('\\n');\n } catch (b) {\n return;\n }\n for (var i = 0; i < e.length; i++) {\n process.env[e[i].split('=')[0].trim()] = e[i].split('=')[1].trim();\n }\n}", "function gatherEnv() {\n addSetting('Processors', os.cpus().length)\n addSetting('OS', os.type())\n addSetting('OS version', os.release())\n addSetting('Node.js version', process.version)\n addSetting('Architecture', process.arch)\n\n if ('NODE_ENV' in process.env) {\n addSetting('NODE_ENV', process.env.NODE_ENV)\n }\n}", "checkSetEnvironmentVariable(variableName) {\n let variable = process.env[variableName];\n \n if(! variable || variable == null || variable === \"\")\n throw new Error(`Environment variable ${variableName} not set`);\n }", "function initEnvironment() {\n if (env === \"dev\") {\n }\n else if (env === \"production\") {\n\n }\n else {\n throw \"ERROR: Unidentified env variable (from initEnvironment method)\";\n }\n }", "function getRequiredEnvironmentVariables () {\n let msg = '';\n const ev = {};\n for (const req of requiredEnvironmentVariables.entries()) {\n if (!process.env[req[1]]) {\n msg += 'Not set; required environment variable: ' + req[1] + '\\n';\n } else {\n ev[req[1]] = process.env[req[1]];\n }\n }\n if (msg !== '') {\n throw msg;\n } else {\n return ev;\n }\n}", "function processEnv() {\n process.env.NODE_ENV = env.NODE_ENV || 'dev';\n console.log(`Running the application with '${env.NODE_ENV}' environment`);\n Object.entries(options).forEach(([key,val]) => process.env[`aat_${key}`] = val);\n modifyModulePaths();\n}", "function initializeAppEnv() {\n appEnv = cfenv.getAppEnv(appEnvOpts);\n if (appEnv.isLocal) {\n require('dotenv').load();\n }\n if (appEnv.services.cloudantNoSQLDB) {\n initCloudant();\n } else {\n console.error(\"No Cloudant service exists.\");\n }\n}", "async function setupAllRubyEnvironments() {\n core.startGroup(\"Setup for all Ruby Environments\")\n\n // http://blog.headius.com/2019/09/jruby-startup-time-exploration.html\n core.exportVariable('JRUBY_OPTS', '--dev')\n\n core.endGroup()\n}", "function loadEnvVariables() {\r\n const fs = require('fs');\r\n const envFile = path.join(__dirname, 'ENV.json');\r\n\r\n let env = {};\r\n\r\n if (fs.existsSync(envFile)) {\r\n env = fs.readFileSync(envFile, 'utf-8');\r\n env = JSON.parse(env);\r\n Object.keys(env).forEach(key => process.env[key] = env[key]);\r\n }\r\n}", "function setupGlobals(secrets) {\n SECRET_KEY = secrets.secretKey;\n CLIENT_ID = secrets.clientId;\n REDIRECT_URI = secrets.redirectUri;\n}", "function clear() {\n const env = getEmptySlateEnv();\n SLATE_ENV_VARS.forEach(key => process.env[key] = '');\n}", "_loadEnvironment() {\n this.envname = process.env.NODE_ENV;\n this.env = require('./env/' + this.envname + '.env.js');\n }", "async function setupEnvironment() {\n if (!existsSync(SOURCE_REPO)) {\n const errorMessage = `Source directory ${SOURCE_REPO} does not exist. Please clone the repo.`\n throw new Error(errorMessage)\n }\n const isPandoc = execSync('pandoc --version', { encoding: 'utf8' })\n if (!isPandoc.startsWith('pandoc')) {\n throw new Error(\n 'You must install pandoc to run this script. See https://pandoc.org/installing.html.',\n )\n }\n\n // refresh the temp directory\n rimraf.sync(TEMP_DIRECTORY)\n await mkdirp(TEMP_DIRECTORY)\n}", "function processEnvVars(supportedEnvVars) {\n return supportedEnvVars.reduce((acc, envVariable) => {\n if (process.env[envVariable]) {\n acc.assigned.push(envVariable);\n }\n else {\n acc.missing.push(envVariable);\n }\n return acc;\n }, { missing: [], assigned: [] });\n}", "function commonSetup(env) {\n remoteStorage.caching.enable('/');\n // email module\n env.email = remoteStorage.email;\n // email scope (to test if stuff was stored correctly)\n env.emailScope = remoteStorage.scope('/email/');\n }", "initialize(env) {\n return true;\n }", "function setGlobals() {\n const env = (global || window);\n if (!env.hasOwnProperty(\"FormData\")) {\n env.FormData = require(\"form-data\");\n }\n if (!env.hasOwnProperty(\"fetch\")) {\n env.fetch = require(\"node-fetch\");\n }\n}", "function maybeAddMissingProcessVars() {\n if (semver.gte(process.version, '19.0.0')) {\n addSetting(remapping.node_use_dtrace, 'no')\n addSetting(remapping.node_use_etw, 'no')\n }\n}", "function sanityCheck() {\n const errors = [];\n // Webworkers\n if (!window.Worker) errors.push(\"WebWorkers\");\n // IndexedDB\n if (!window.indexedDB) errors.push(\"IndexedDB\");\n // Notifications\n if (!window.Notification) errors.push(\"Notifications\");\n\n errors.length > 0 ? showErrors(errors) : setUp();\n}", "cleanupEnvironment() {}", "function initializeAppEnv() {\n appEnv = cfenv.getAppEnv(appEnvOpts);\n if (appEnv.isLocal) {\n require('dotenv').load();\n }\n if (appEnv.services.cloudantNoSQLDB) {\n initCloudant();\n } else {\n console.error(\"No Cloudant service exists.\");\n }\n\n if(appEnv.services.conversation){\n console.log(\"Services\");\n initConversation();\n }else{\n console.error(\"No Conversation service exists\");\n }\n}", "function readEnv() {\n const env = process.env.ORIGIN;\n if (env) {\n\tlet origins = env.split(',');\n\tvalid_origins.push(...origins);\n }\n console.log('valid origins:', valid_origins);\n}", "function setDefault() {\n var environment = SUPPORTED.LOCAL;\n\n if (grunt.option('env')) {\n environment = grunt.option('env');\n } else if (grunt.option('browserstack')) {\n environment = SUPPORTED.LOCAL_BS;\n if (!grunt.file.exists('browserstack.env')) {\n utils.fatal('Expected browserstack.env file to exist.');\n } else {\n require('dotenv').config({ path: 'browserstack.env' });\n }\n } else if (process.env.TRAVIS) {\n if (process.env.TRAVIS_SECURE_ENV_VARS === 'true') {\n if (process.env.TRAVIS_PULL_REQUEST === 'false' && process.env.TRAVIS_REPO_SLUG === 'blackbaud/skyux') {\n environment = SUPPORTED.CI_PUSH;\n } else {\n environment = SUPPORTED.CI_PR_BRANCH;\n }\n } else {\n environment = SUPPORTED.CI_PR_FORK;\n }\n }\n set(environment);\n }", "function setupEnvironment() {\n\tconsole.log(\"Setting up Suspend Application\");\n\thideTemplates();\n\tstartClock();\n\tsetupStorage();\n\trender();\n\tattachListeners();\n\tcheckFileAPI();\n}", "function ensure() {\n let platform = _os.platform();\n\n if (0 > SUPPORTED_PLATFORMS.indexOf(platform)) {\n throw _dev.createError('Environment PHP does not support the ' + platform.toUpperCase() + ' platform.');\n }\n }", "function hardhatTearDownEnv() {\n resetHardhatContext();\n process.chdir(previousCWD); // remove?\n}", "function setupTestingEnv(){\n\tif (!fs.existsSync(path.resolve(__dirname, \"database\"))){\n\t\tfs.mkdirSync(path.resolve(__dirname, \"database\"));\n\t}\n\tif (!fs.existsSync(path.resolve(__dirname, \"test\"))){\n\t\tfs.mkdirSync(path.resolve(__dirname, \"test\"));\n\t}\n\tif (!fs.existsSync(path.resolve(__dirname, \"test/folder\"))){\n\t\tfs.mkdirSync(path.resolve(__dirname, \"test/folder\"));\n\t}\n\tif (!fs.existsSync(path.resolve(__dirname, \"test/another folder\"))){\n\t\tfs.mkdirSync(path.resolve(__dirname, \"test/another folder\"));\n\t}\n\tif (!fs.existsSync(path.resolve(__dirname, \"test/file.txt\"))){\n\t\tfs.writeFileSync(path.resolve(__dirname, \"test/file.txt\"), \"contents\");\n\t}\n\tif (!fs.existsSync(path.resolve(__dirname, \"test/another file.txt\"))){\n\t\tfs.writeFileSync(path.resolve(__dirname, \"test/another file.txt\"), \"more contents\");\n\t}\n\t// we need this xfile to test a branch in fileOps.getNewestFile()s propagation\n\tif (!fs.existsSync(path.resolve(__dirname, \"test/xfile.txt\"))){\n\t\tfs.writeFileSync(path.resolve(__dirname, \"test/xfile.txt\"), \"contents\");\n\t}\n}", "function envData() {\n\tvar envData;\n\ttry {\n\t\tenvData = require('../YumBarrio_local/env.json') \n\t}catch (e) {\n\t\tenvData = process.env }\n\treturn envData;\n}", "function retrieveBaseConfig() {\n // check that environment variables are set\n ensureEnvVariablesSet([\n 'ALGOD_TOKEN',\n 'ALGOD_SERVER',\n 'ALGOD_PORT'\n ])\n}", "static checkConfig () {\n // Checking if necessary env vars were set\n try {\n // Checking if all necessary variables where set\n checkVariable(config.polkadotName, 'Polkadot Name');\n checkVariable(config.polkadotImage, 'Polkadot Image');\n checkVariable(config.polkadotPrefix, 'Polkadot Prefix');\n checkVariable(config.polkadotKeyGran, 'Polkadot Key Gran');\n checkVariable(config.polkadotKeyBabe, 'Polkadot Key Babe');\n checkVariable(config.polkadotKeyPara, 'Polkadot Key Para');\n checkVariable(config.polkadotKeyImon, 'Polkadot Key Imon');\n checkVariable(config.polkadotKeyAudi, 'Polkadot Key Audi');\n\n // Check if polkadot node key file exists\n if (fs.existsSync('/service') && isEmptyString(config.polkadotNodeKeyFile)) {\n throw Error('Polkadot Service needs polkadotNodeKeyFile variable set.');\n }\n } catch (error) {\n debug('checkConfig', error);\n throw error;\n }\n }", "function checkScope() {\n var myVars = 'local'; // Declare a local variable\n console.log(myVars);\n}", "getEnv() {\r\n const env = Object.assign({}, this._userEnv);\r\n if (!env.RUST_SRC_PATH) {\r\n const rustSourcePath = this._rustSource.getPath();\r\n if (rustSourcePath) {\r\n env.RUST_SRC_PATH = rustSourcePath;\r\n }\r\n }\r\n return env;\r\n }", "function set(requested) {\n if (!validate(requested)) {\n utils.log('Error setting current environment: ' + requested);\n } else {\n utils.log('Setting current environment: ' + requested);\n current = requested;\n }\n }", "function testEnvironment() {\n var currentEnvironment = environment;\n windowWidth = viewport().width;\n if (windowWidth <= breakpoint_large && windowWidth > breakpoint_small) {\n environment = 'tablette';\n } else if (windowWidth <= breakpoint_small) {\n environment = 'mobile';\n } else {\n environment = 'desktop';\n }\n if (currentEnvironment != environment) {\n environmentChanged = true;\n } else {\n environmentChanged = false;\n }\n }", "function fixUnixEnvironment(cb) {\n var didReturn = false;\n var done = function () {\n if (didReturn) {\n return;\n }\n didReturn = true;\n cb();\n };\n var child = cp.spawn(process.env.SHELL, ['-ilc', 'env'], {\n detached: true,\n stdio: ['ignore', 'pipe', process.stderr],\n });\n child.stdout.setEncoding('utf8');\n child.on('error', done);\n var buffer = '';\n child.stdout.on('data', function (d) {\n buffer += d;\n });\n child.on('close', function (code, signal) {\n if (code !== 0) {\n return done();\n }\n var hash = Object.create(null);\n buffer.split('\\n').forEach(function (line) {\n var p = line.split('=', 2);\n var key = p[0];\n var value = p[1];\n if (!key || hash[key]) {\n return;\n }\n hash[key] = true;\n process.env[key] = value;\n });\n done();\n });\n}", "static isEnvJs() {\n try {\n const filePath = path.join(__dirname, '../../.env');\n fs.accessSync(filePath);\n } catch (err) {\n const errEnv = new Error(`Can not find '.env' file! <br>Please create a file '/.env', see the example '/.env.example'`);\n errEnv.code = 500;\n throw errEnv;\n }\n }", "static isEnvJs() {\n try {\n const filePath = path.join(__dirname, '../.env');\n fs.accessSync(filePath);\n } catch (err) {\n const errEnv = new Error(`Can not find '.env' file! <br>Please create a file '/.env', see the example '/.env.example'`);\n errEnv.code = 500;\n throw errEnv;\n }\n }", "function _getRuntimeEnv () {\n\n return http.get(endpoints.uiconfig, {}, function (err, results) {\n if (err) {\n Mojo.publishException(_component, err.message);\n }\n else {\n\n CONFIG.isProd = (results.env == 'production');\n CONFIG.env = results.env;\n CONFIG.appVersion = results.version;\n\n // TODO - set any 'supports' variables here that your server configuration sets up\n\n Mojo.setDataVal('configModel', \"isProd\", CONFIG.isProd);\n Mojo.setDataVal(\"configModel\", \"appVersion\", CONFIG.appVersion);\n Mojo.setDataVal(\"configModel\", \"env\", CONFIG.env);\n\n if (!CONFIG.isProd) {\n setTimeout(CONFIG.enableQA, 500);\n }\n\n // Let every one else know that were ready to roll.\n Mojo.publish(config.events.init, results);\n\n }\n });\n}", "async function setupRubyEnvironment(rubyVersion) {\n\n // LANG environment must be set or Ruby will default external_encoding to US-ASCII i\n // instead of UTF-8 and this will fail many tests.\n core.exportVariable('LANG', 'C.UTF-8')\n\n // https://github.com/actions/virtual-environments/issues/267\n core.exportVariable('CPPFLAGS', '-DENABLE_PATH_CHECK=0')\n\n // Ensures Bundler retries failed attempts before giving up\n core.exportVariable('BUNDLE_RETRY', 1)\n\n // Number of jobs in parallel\n core.exportVariable('BUNDLE_JOBS', 4)\n\n // Where to keep the gem files\n core.exportVariable('BUNDLE_PATH', gemspecFilePath(rubyVersion))\n\n // enable-shared prevents native extension gems from breaking if they're cached\n // independently of the ruby binaries\n core.exportVariable('RUBY_CONFIGURE_OPTS', '--enable-shared --disable-install-doc')\n\n // many multiverse suite tests end up in resource contention when run in parallel\n core.exportVariable('SERIALIZE', 1)\n}", "function init_environ() {\n //my_log(\"Here here: initing environ\");\n var pw = page_worker.Page({\n\t contentScriptFile: [\n\t\t\t\tdata.url(\"thirdparty/voodoo1/voodoo.js\"),\n\t\t\t\tdata.url(\"get_environ.js\")\n\t\t\t\t]\n\t});\n \n pw.port.on(\"got_environ\", function(rc) {\n\t environ = object.extend(environ, rc);\n\t my_log(\"Here here: callback for pg worker, voodoo: \" + JSON.stringify(environ), new Error);\n\t pw.destroy();\n\t \n\t // BIG EXECUTION START\n\t vault_read();\n\t vault_init();\n\t});\n}", "function fixConfig() {\n if (typeof Cypress === 'undefined') {\n throw new Error('Please use from within Cypress.io');\n }\n\n if (typeof Cypress.env(CONFIG_KEY) === 'string') {\n Cypress.env(CONFIG_KEY, JSON.parse(Cypress.env(CONFIG_KEY)));\n }\n}", "function globalize(env){\n\tif( !env){\n\t\tenv= require( \".\")\n\t}\n\tfor( var i in env){\n\t\tglobal[ i]= env[i]\n\t}\n\treturn global\n}", "function getAppEnv(){\n //If not initialized then do that.\n if (!appEnv){\n init();\n }\n console.log(\"application environment variable\");\n console.log(appEnv);\n return appEnv;\n}", "enter () {\n [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '!', '#', '@' ].forEach(variable => environmentService.set(variable, undefined))\n }", "function fixConfig() {\n if (typeof Cypress.env(CONFIG_KEY) === 'string') {\n Cypress.env(CONFIG_KEY, JSON.parse(Cypress.env(CONFIG_KEY)));\n }\n}", "async function setupRubyEnvironment(rubyVersion) {\n\n // LANG environment must be set or Ruby will default external_encoding to US-ASCII i\n // instead of UTF-8 and this will fail many tests.\n core.exportVariable('LANG', 'C.UTF-8')\n\n // https://github.com/actions/virtual-environments/issues/267\n core.exportVariable('CPPFLAGS', '-DENABLE_PATH_CHECK=0')\n\n // Ensures Bundler retries failed attempts before giving up\n core.exportVariable('BUNDLE_RETRY', 1)\n\n // Number of jobs in parallel \n core.exportVariable('BUNDLE_JOBS', 4)\n\n // enable-shared prevents native extension gems from breaking if they're cached\n // independently of the ruby binaries\n core.exportVariable('RUBY_CONFIGURE_OPTS', '--enable-shared --disable-install-doc')\n\n core.exportVariable('SERIALIZE', 1)\n}", "async loadEnvironmentParameterValues(){}", "async loadEnvFile() {\n\t\tif (this.flags.env || this.flags.envfile) {\n\t\t\ttry {\n\t\t\t\tconst dotenv = await import(\"dotenv\");\n\n\t\t\t\tif (this.flags.envfile) dotenv.config({ path: this.flags.envfile });\n\t\t\t\telse dotenv.config();\n\t\t\t} catch (err) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\"The 'dotenv' package is missing! Please install it with 'npm install dotenv --save' command.\"\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "function getEmptySlateEnv() {\n const env = {};\n\n SLATE_ENV_VARS.forEach(key => {\n env[key] = '';\n });\n\n return env;\n}", "function installEnvironment() {\n\tconsole.log('\\nInstalling Environment');\n\tconst command = `npm install node@${requiredNodeVersion} --no-package-lock`;\n\n\t// Pre-clean\n\treturn resetEnvironment()\n\t\t.then(() => {\n\t\t\t// Execute\n\t\t\tverbose(`Current Node Version: ${getCurrentNodeVersion()}`);\n\t\t\tverbose(`Executing: ${command}`);\n\n\t\t\texecSync(command, { stdio: [0, 1, 2] });\n\t\t})\n\t\t.then(copyEnvironmentFiles)\n\t\t.then(() => {\n\t\t\tconst nodeReady = !!fs.existsSync(ENV_NODE);\n\n\t\t\tif (nodeReady) {\n\t\t\t\tverbose(`Verified Node at ${ENV_NODE}`);\n\t\t\t} else {\n\t\t\t\tthrow new Error(`Node is missing at ${ENV_NODE}`);\n\t\t\t}\n\n\t\t\tverbose('Environment ready.');\n\t\t});\n}", "checkRequiredFiles() {\n if (!checkRequiredFiles([\n paths.appServer,\n paths.appPublic,\n paths.appClient,\n paths.appClientPages,\n paths.appNodeModules,\n paths.appLocales,\n paths.appConfig,\n ])) {\n if (process.env.NODE_ENV === 'test') return false;\n process.exit(1);\n }\n return true;\n }", "setEnvironmentVariables() {\n process.env.apiKey = this.configuration.apiKey;\n }", "static init(e) {\n if (process.env.NODE_ENV) {\n if (environment.indexOf(process.env.NODE_ENV) >= 0) {\n console.log(chalk.bold.green(`\\n[NODE_ENV] Application loaded using the ${process.env.NODE_ENV} environment configuration.\\n`));\n } else {\n console.error(chalk.red(`\\n[Warning] Configuration not found for ${process.env.NODE_ENV} environment using [development, test, production] instead.\\n`));\n process.exit(0);\n }\n } else if (environment.indexOf(e) >= 0) {\n console.log(chalk.bold.green(`\\n[Initialize] Application loaded using the ${e} environment configuration.\\n`));\n\n } else {\n console.error(chalk.red(`\\n[Default] NODE_ENV is not defined! Using default product environment.\\n`));\n }\n env.checkEnv(process.env.NODE_ENV || e || 'production');\n }", "env(envName, cb){\n if(!this.hasEB) return cb(false);\n //Cache env vars during execution to save or reuse by multiple tasks\n if(typeof this.storedEnvs[envName] !== 'undefined') return cb(this.storedEnvs[envName]);\n mess.load(\"Retrieving EB Environment vars\");\n perf.start(\"Retrieving EB Environment vars\");\n run('eb printenv ' + envName, (results) => {\n mess.stopLoad(true);\n perf.end(\"Retrieving EB Environment vars\");\n if(!results.success) return cb(false);\n else{\n var envs = results.stdout.trim();\n var envList = envs.split(\"\\n\");\n var envVars = {};\n envList.forEach(function(item){\n item = item.trim();\n var kv = item.split(\"=\");\n if(kv.length > 1 && kv.length < 3){\n envVars[kv[0].trim()] = kv[1].trim(); //Set environment variable\n }\n })\n this.storedEnvs[envName] = envVars;\n return cb(envVars);\n }\n })\n }", "function genEnv() {\n\n\n}", "get env() {\n return {\n ...this._env,\n };\n }", "static spawn() {\n const env = new Environment();\n const chat = require('./chat').spawn({ code: 'Global' });\n\n env.set('code', 'Global');\n env.set('games', 1);\n\n env.set('onMaintenance', false);\n\n env.set('discordWebhookURL', '/');\n\n env.set('ipBlacklist', require('../security/databases/untrusted-ips'));\n env.set('emailWhitelist', require('../security/databases/trusted-emails'));\n\n env.set('chat', chat);\n\n return env;\n }", "setEnvironment(env) {\n const INPUT_SETTINGS = global.settings.input;\n if(['*', 'gui'].indexOf(env) === -1 && this.environments.indexOf(env) !== -1) \n {\n INPUT_SETTINGS.I_ENVIRONMENT = this.environment = env;\n }\n }", "function checkEnvInfo(envFile) {\n if (envFile === undefined || envFile === '' || envFile === ' ' || typeof(envFile) !== 'string') {\n return console.log(\"Please enter a valid key!\");\n } else {\n return true;\n }\n}", "function cleanContextForImports () {\n __define = global.define\n try {\n global.define = undefined\n } catch (_) {\n console.warn('IXO Keysafe - global.define could not be deleted.')\n }\n}", "async function setupEnvironment(rubyVersion, dependencyList) {\n const systemDependencyList = \"libcurl4-nss-dev build-essential libsasl2-dev libxslt1-dev libxml2-dev\"\n\n await installDependencies('system', systemDependencyList)\n await installDependencies('workflow', dependencyList)\n await setupRubyEnvironment(rubyVersion)\n await addRubyToPath(rubyVersion)\n}", "function isLocal() {\n return process.env.LAYER0_LOCAL === 'true';\n}", "function restoreContextAfterImports () {\n try {\n global.define = __define\n } catch (_) {\n console.warn('IXO Keysafe - global.define could not be overwritten.')\n }\n}", "function overrideByEnv() {\n const localmoduleOverride = window.Cypress.env('LOCALMODULE');\n\n cy.window().then(function(win) {\n win.sessionStorage.setItem('automation-no-analytics', true);\n if (localmoduleOverride) {\n win.localStorage.localmodule = localmoduleOverride;\n };\n });\n}", "function getEnv(vars) {\n let buildenv = {}\n for (let i = 0, len = vars.length; i < len; i++) {\n buildenv[vars[i].name] = vars[i].value\n }\n return buildenv\n}", "function parseEnvVarsAndArgs () {\n if (!CREATOR_NODE_ENDPOINT || !PRIVATE_KEY) {\n let errorMsg = `creatorNodeEndpoint [${CREATOR_NODE_ENDPOINT}] or delegatePrivateKey [${PRIVATE_KEY}] have not been exported. `\n errorMsg += \"Please export environment variables 'delegatePrivateKey' (without leading 0x) and 'creatorNodeEndpoint' with https.\"\n throw new Error(errorMsg)\n }\n}", "function hardhatSetupEnv(mocha) {\n const mockwd = path.join(process.cwd(), temp);\n previousCWD = process.cwd();\n process.chdir(mockwd);\n mocha.env = require(\"hardhat\");\n mocha.env.config.logger = testLogger\n mocha.logger = testLogger\n}", "function checkEnv(cb) {\n\tif (process.env.CONTAINER && runtime_list.indexOf(process.env.CONTAINER) !== -1) {\n\t\treturn cb(null, process.env.CONTAINER);\n\t}\n\n\tif (process.env.container && runtime_list.indexOf(process.env.container) !== -1) {\n\t\treturn cb(null, process.env.container);\n\t}\n\n\treturn cb(\"unknown\");\n}", "function setUp(){\n return app.env.IS_TESTING = true;\n}", "ensureGlobalRemoteScope() {\n if (_fsExtra().default.existsSync(this.scopes.globalRemotePath)) return;\n const scopeFile = path().join(this.getFixturesDir(), 'scopes', 'global-remote.tgz');\n\n _tar().default.extract({\n sync: true,\n file: scopeFile,\n cwd: this.scopes.e2eDir\n });\n }", "function env(data) {\n //create key pairs\n let privateKeyPath = path.join(__dirname, \"..\", \"keys\", \"private.key\");\n let publicKeyPath = path.join(__dirname, \"..\", \"keys\", \"public.key\");\n let envPath = path.join(__dirname, \"..\", \".env\");\n\n var pair = keypair();\n try {\n if (!fs.existsSync(\"key\")) {\n fs.mkdirSync(\"keys\");\n fs.writeFileSync(privateKeyPath, pair.private);\n fs.writeFileSync(publicKeyPath, pair.public);\n //add mongodb user to env file\n fs.appendFileSync(envPath, '\\nDB_USER=' + data.user + '\\nDB_PASSWORD=' + data.password + '\\nDB_PORT=' + data.port + '\\nDB_ADDRESS=' + data.address);\n initializeDatabase(data);\n } else {\n log(chalk.yellow(\"Keys folder exists. If this is a new install, delete the key folder\"));\n }\n } catch (e) {\n\n log(chalk.red(\"Error occured writing/creating to 'keys' folder: \" + e))\n }\n\n\n }", "function wlEnvInit(){\n wlCommonInit();\n // Environment initialization code goes here\n}", "function detectEnv(host) {\n\t host = host || location.host;\n\t var env = {\n\t local: false,\n\t dev: false,\n\t uat: false,\n\t pro: false\n\t };\n\n\t if (host.indexOf('local') > -1 || host.indexOf('192.168.') > -1 || host.indexOf('127.0.') > -1 || host.indexOf('172.16.') > -1) {\n\t env.local = true;\n\t } else if (host.indexOf('dev') > -1) {\n\t env.dev = true;\n\t } else if (host.indexOf('uat') > -1) {\n\t env.uat = true;\n\t } else {\n\t env.pro = true;\n\t }\n\n\t return env;\n\t}", "function detectEnv(host) {\n\t host = host || location.host;\n\t var env = {\n\t local: false,\n\t dev: false,\n\t uat: false,\n\t pro: false\n\t };\n\n\t if (host.indexOf('local') > -1 || host.indexOf('192.168.') > -1 || host.indexOf('127.0.') > -1 || host.indexOf('172.16.') > -1) {\n\t env.local = true;\n\t } else if (host.indexOf('dev') > -1) {\n\t env.dev = true;\n\t } else if (host.indexOf('uat') > -1) {\n\t env.uat = true;\n\t } else {\n\t env.pro = true;\n\t }\n\n\t return env;\n\t}", "async function initialize_vital_local_keys()\n {\n if (invoked_vital_local_key_initialization) { return; }\n\n invoked_vital_local_key_initialization = true;\n\n // Maps with their initializer methods.\n const vital_local_keys = {};\n vital_local_keys[Key.Configuration] = configuration.create;\n\n const initializing = [];\n for (const key in vital_local_keys)\n {\n if ((await local.load(key)) === null)\n {\n const initial_value = vital_local_keys[key]();\n initializing.push(local.save(key, initial_value));\n }\n }\n return Promise.all(initializing);\n }", "function init(){\n let vcap = {};\n vcap.services = config.VCAP_SERVICES;\n vcap.name = config.processname;\n vcap.port = process.env.PORT || (config.server && config.server.port);\n //vcap.protocol = config.server.protocol;\n //vcap.bind = config.server.host;\n vcap.env = process.env.NODE_ENV || config.env;\n\n //API doc says that if the environment is local then the vcap in options is used.\n appEnv = cfenv.getAppEnv(vcap);\n console.log(\"application environment is \");\n console.log(appEnv);\n\n if (!appEnv.env){\n appEnv.env = \"development\";\n }\n}", "function wlEnvInit(){\r\n wlCommonInit();\r\n // Environment initialization code goes here\r\n}", "function wlEnvInit(){\r\n wlCommonInit();\r\n // Environment initialization code goes here\r\n}", "function wlEnvInit(){\r\n wlCommonInit();\r\n // Environment initialization code goes here\r\n}", "function getEnv() {\r\n var ua = navigator.userAgent;\r\n\r\n env = {\r\n // True if this browser supports disabling async mode on dynamically\r\n // created script nodes. See\r\n // http://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order\r\n async: doc.createElement('script').async === true\r\n };\r\n\r\n (env.webkit = /AppleWebKit\\//.test(ua))\r\n || (env.ie = /MSIE/.test(ua))\r\n || (env.opera = /Opera/.test(ua))\r\n || (env.gecko = /Gecko\\//.test(ua))\r\n || (env.unknown = true);\r\n }", "_isEnv(envArray) {\n\t\treturn envArray.indexOf(process.env['NODE_ENV']) >= 0 || this._hasFlag(...envArray)\n\t}", "function getEnv() {\n var ua = navigator.userAgent;\n\n env = {\n // True if this browser supports disabling async mode on dynamically\n // created script nodes. See\n // http://wiki.whatwg.org/wiki/Dynamic_Script_Execution_Order\n async: doc.createElement('script').async === true\n };\n\n (env.webkit = /AppleWebKit\\//.test(ua))\n || (env.ie = /MSIE|Trident/.test(ua))\n || (env.opera = /Opera/.test(ua))\n || (env.gecko = /Gecko\\//.test(ua))\n || (env.unknown = true);\n }", "function createFreshEnv() {\n return {\n isReboundEnv: true,\n cid: _.uniqueId('env'),\n root: null,\n helpers: _helpers2.default,\n hooks: this,\n dom: new DOMHelper(),\n revalidateQueue: {},\n observers: {}\n };\n}", "function checkNeed() {\n const env = process.env.NODE_ENV\n if (isString(needErrorLog)) {\n return env === needErrorLog\n }\n if (isArray(needErrorLog)) {\n return needErrorLog.includes(env)\n }\n return false\n}", "function filterEnv(anEnv) {\n var out = {};\n var cnt = 0;\n //console.log('len of process.env:' + Object.keys(process.env).length)\n for(var sysEnv in process.env) {\n cnt += 1;\n //console.log('testing ' + sysEnv);\n if(sysEnv.indexOf(anEnv) >= 0) {\n out[sysEnv] = process.env[sysEnv];\n }\n }\n //console.log('looked at envs cnt:' + cnt);\n return out;\n}", "function setup() {\n\t\t\tconsole.log('3pccTest: before: Mosca server is up and running');\n\t\t\tdone();\n\t\t}", "function pullDevEnv() {\n tools.pullDevEnv();\n}", "function generateEnvironment(opts, cb){\n opts = opts || {}\n\n if (process.browser) {\n var initJs = meowserify(__dirname + '/exec-init.js')\n var wrapperJs = meowserify(__dirname + '/exec-wrapper.js')\n finalizeEnv(opts, initJs, wrapperJs, cb)\n } else {\n var initB = browserify([__dirname + '/exec-init.js'])\n var wrapperB = browserify([__dirname + '/exec-wrapper.js'])\n async.parallel([\n initB.bundle.bind(initB),\n wrapperB.bundle.bind(wrapperB),\n ], function(err, results){\n if (err) return cb(err)\n var initJs = results[0].toString()\n var wrapperJs = results[1].toString()\n finalizeEnv(opts, initJs, wrapperJs, cb)\n })\n }\n\n}", "function checkSetup() {\n if (!window.firebase || !(firebase.app instanceof Function) || !firebase.app().options) {\n window.alert('You have not configured and imported the Firebase SDK. ' +\n 'Make sure you go through the codelab setup instructions and make ' +\n 'sure you are running the codelab using `firebase serve`');\n }\n}", "function checkSetup() {\n if (!window.firebase || !(firebase.app instanceof Function) || !firebase.app().options) {\n window.alert('You have not configured and imported the Firebase SDK. ' +\n 'Make sure you go through the codelab setup instructions and make ' +\n 'sure you are running the codelab using `firebase serve`');\n }\n}" ]
[ "0.6784639", "0.6693313", "0.6602451", "0.6415556", "0.6273212", "0.6230218", "0.61898756", "0.60927814", "0.6089256", "0.6065677", "0.6041769", "0.603773", "0.6032633", "0.5871561", "0.5837289", "0.58201385", "0.5727231", "0.5724322", "0.5688387", "0.5627412", "0.5597465", "0.5597278", "0.55648935", "0.55307466", "0.5503986", "0.5496172", "0.54446286", "0.5430612", "0.5425715", "0.5419082", "0.5398934", "0.5384545", "0.5370303", "0.5360694", "0.53422904", "0.5298657", "0.52978903", "0.52792627", "0.52766967", "0.52719104", "0.5270722", "0.5264163", "0.5245638", "0.5227654", "0.5225196", "0.5199393", "0.51964307", "0.51852596", "0.5183667", "0.51792747", "0.516486", "0.5147033", "0.5145344", "0.514529", "0.5144975", "0.5135014", "0.51332414", "0.5127039", "0.5102657", "0.50891364", "0.5083902", "0.508202", "0.5073491", "0.5071938", "0.5060477", "0.5053418", "0.50487053", "0.50316155", "0.50257933", "0.501072", "0.5001771", "0.49973503", "0.49911505", "0.49905148", "0.49851626", "0.4985067", "0.49660146", "0.49623954", "0.4960451", "0.4954813", "0.49474993", "0.49308378", "0.4920757", "0.4920757", "0.49122795", "0.49119872", "0.49097747", "0.49097747", "0.49097747", "0.490253", "0.48927817", "0.48851475", "0.48732176", "0.48722282", "0.4868191", "0.48657355", "0.4856035", "0.48450962", "0.48407787", "0.48407787" ]
0.7160864
0
Get the path of the currently executing workflow.
async function getWorkflowPath() { const repo_nwo = getRequiredEnvParam("GITHUB_REPOSITORY").split("/"); const owner = repo_nwo[0]; const repo = repo_nwo[1]; const run_id = Number(getRequiredEnvParam("GITHUB_RUN_ID")); const apiClient = api.getActionsApiClient(); const runsResponse = await apiClient.request("GET /repos/:owner/:repo/actions/runs/:run_id", { owner, repo, run_id, }); const workflowUrl = runsResponse.data.workflow_url; const workflowResponse = await apiClient.request(`GET ${workflowUrl}`); return workflowResponse.data.path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scriptPath() {\n try {\n return app.activeScript;\n }\n catch (e) {\n return File(e.fileName);\n }\n}", "function getCurrentPathName() {\n pathName = window.location.pathname;\n return pathName;\n }", "get path() {\n return (this.parent || this).fullpath();\n }", "function getWorkspaceParentDir() {\n return external_path_.dirname(getWorkspaceDir());\n}", "function callerPath () {\n return callsites()[2].getFileName()\n}", "GetCurrentRelativePath() {\n return decodeURI(window.location.pathname.substr(1));\n }", "function currentDir() {\n var s = WScript.scriptFullName\n s = s.substring(0, s.lastIndexOf(\"\\\\\") + 1)\n return s\n}", "getCWD() {\n let cwd = this.state.cursor().get( 'cwd' )\n\n return cwd || null\n }", "async _getToolPath () {\r\n const localPath = this.getLocalPath()\r\n if (localPath) {\r\n let local = false\r\n try {\r\n await fs.promises.access(localPath, fs.constants.X_OK)\r\n local = true\r\n } catch (e) { }\r\n if (local) {\r\n return localPath\r\n }\r\n }\r\n\r\n const global = await new ProcessSpawner('op').checkCommandExists()\r\n\r\n if (global) {\r\n return 'op'\r\n }\r\n\r\n return null\r\n }", "function getPath() {\n\t\tvar path = window.location.href;\n\t\treturn path.substring(0, path.lastIndexOf(\"/\")) + \"/\";\n\t}", "getRootPath()\n {\n return process.cwd();\n }", "get localPath() {\n return this._manager.contents.localPath(this._path);\n }", "function getPath() {\n return currentPathQuery.split('?')[0];\n }", "cwd () {\n return process.cwd();\n }", "projectPath() {\n return atom.project.getPaths()[0];\n }", "getCurrentDirectory(fileName, insertedPath) {\r\n var currentDir = path.parse(fileName).dir || '/';\r\n var workspacePath = vs.workspace.rootPath;\r\n // based on the project root\r\n if (insertedPath.startsWith('/') && workspacePath) {\r\n currentDir = vs.workspace.rootPath;\r\n }\r\n return path.resolve(currentDir);\r\n }", "async _getToolPath () {\r\n const localPath = this.getLocalPath()\r\n if (localPath) {\r\n let local = false\r\n try {\r\n await fs.promises.access(localPath, fs.constants.X_OK)\r\n local = true\r\n } catch (e) { }\r\n if (local) {\r\n return localPath\r\n }\r\n }\r\n\r\n const global = await new ProcessSpawner('bw').checkCommandExists()\r\n\r\n if (global) {\r\n return 'bw'\r\n }\r\n\r\n return null\r\n }", "function getPath(){\n\t\treturn this.path;\n\t}", "static _getSpaceRoot(){\n return process.cwd(); //path.dirname(module.parent.paths[0])\n }", "function scriptPath()\n {\n // obtain plugin path from the script element\n var src;\n if (document.currentScript) {\n src = document.currentScript.src;\n } else {\n var sel = document.querySelector('script[src$=\"/whiteboard.js\"]')\n if (sel) {\n src = sel.src;\n }\n }\n\n var path = typeof src === undefined ? src\n : src.slice(0, src.lastIndexOf(\"/\") + 1);\n return path;\n }", "fullpath() {\n if (this.#fullpath !== undefined) {\n return this.#fullpath;\n }\n const name = this.name;\n const p = this.parent;\n if (!p) {\n return (this.#fullpath = this.name);\n }\n const pv = p.fullpath();\n const fp = pv + (!p.parent ? '' : this.sep) + name;\n return (this.#fullpath = fp);\n }", "function getBuildPath() {\r\n return config.build.path;\r\n}", "function getPath() {\n var path;\n if (BST.DEBUG) {\n path = \"../php/bst.php\";\n }\n else {\n path = \"../../../php/bst/bst.php\";\n }\n return path;\n }", "function getCurrentFileOrDefault() {\n var pFile = LaunchBar.executeAppleScript('if application \"TaskPaper\" is running then',\n 'tell application id (id of application \"TaskPaper\")',\n ' set a to file of the front document',\n ' return POSIX path of a',\n 'end tell',\n 'else',\n ' return \"\"',\n 'end if').trim();\n if (pFile == \"\") {\n if(File.exists(LaunchBar.homeDirectory + \"/.tpProjectFile\"))\n pFile = File.readText(LaunchBar.homeDirectory + \"/.tpProjectFile\");\n } else {\n //\n // Save the path to the ~/.tpProjectFile location.\n //\n File.writeText(pFile, LaunchBar.homeDirectory + \"/.tpProjectFile\");\n }\n\n //\n // Return the project file location.\n //\n return (pFile);\n}", "function getWindowPath() {\n return Path.decode(\n window.location.pathname + window.location.search\n );\n}", "function getPath (stateName) {\n\t\tvar path = '';\n\t\tvar state = getState(stateName);\n\n\t\tgetParents(state.name).forEach(function (stateName) {\n\t\t\tvar parent = getState(stateName);\n\n\t\t\tpath += parent.url;\n\t\t});\n\n\t\treturn path;\n\t}", "executablePath() {\r\n return this.pptr.executablePath();\r\n }", "function get_current_code_path(){\n\tvar id = $(\"#file_name_nav\").find(\"span.selected\").attr(\"id\");\n\tid = id.replace(\"t_\", \"\");\n\treturn full_path($(\"#\"+id));\n}", "getPath() {\n if (this.props.root) {\n return this.props.instance.path;\n }\n return this.props.getPath(this.props.instance.uniqueId);\n }", "function getActiveDirectory() {\n var dir = path.dirname(getActiveFile());\n\n if(!dir || dir === '.') {\n dir = '~';\n }\n return dir + path.sep;\n }", "function getActiveScriptPath(extension) {\n const center = atom.workspace.getCenter ? atom.workspace.getCenter() : atom.workspace;\n const activeEditor = center.getActiveTextEditor();\n\n if (activeEditor == null || !activeEditor.getPath() || !(0, _nullthrows.default)(activeEditor.getPath()).endsWith(extension)) {\n return '';\n }\n\n return _nuclideUri.default.getPath((0, _nullthrows.default)(activeEditor.getPath()));\n}", "function scriptPath() {\n\t\t// obtain plugin path from the script element\n\t\tvar path;\n\t\tif (document.currentScript) {\n\t\t\tpath = document.currentScript.src.slice(0, -20);\n\t\t} else {\n\t\t\tvar sel = document.querySelector('script[src$=\"scrollable_slides.js\"]');\n\t\t\tif (sel) {\n\t\t\t\tpath = sel.src.slice(0, -20);\n\t\t\t}\n }\n\n\t\treturn path;\n\t}", "function getScriptPath() {\n var scripts = document.getElementsByTagName('script');\n return scripts.length ? scripts[scripts.length - 1].src : '';\n }", "static get path() {\n let url = _PROPERTIES_.get(this).path;\n if (!!!url) {\n // Reverse-Engineer the path from the <script> element.\n let a = document.createElement('a'),\n href = _PROPERTIES_.get(this).script.src + '/../';\n a.href = href;\n // Store path locally to avoid external tampering\n url = _PROPERTIES_.get(this).path = a.href;\n\n /** @todo Insecure. Used for electron compatibility.\n * Add support for custom protocols.\n */\n // Support Electron file: protocol\n if ('file:' === a.protocol\n && 'function' === typeof require\n && 'object' === typeof require('electron')) {\n let {webFrame} = require('electron');\n webFrame.registerURLSchemeAsPrivileged('file');\n }\n }\n return url;\n }", "getAppPath()\n {\n return path.join(this.getRootPath(), 'app');\n }", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "function getScriptPath()\n\t{\n\t\tvar scripts = document.getElementsByTagName('script');\n\t\treturn scripts.length ? scripts[scripts.length - 1].src : '';\n\t}", "get stackPath() {\n return this.ancestors(this.stack).map(c => c.id).join(construct_1.PATH_SEP);\n }", "getElixirPath() {\n return this.quotePath(this.getElixirExecutableSetting());\n }", "get stackPath() {\n return this.node.ancestors(this.node.stack).map(c => c.node.id).join(construct_1.PATH_SEP);\n }", "function getWorkspaceDir() {\n return shelljs_shell.env.GITHUB_WORKSPACE || '';\n}", "getMatlabPath () {\n return atom.config.get('atom-matlab-editor.matlabRootPath')\n }", "function getWorkflowRun(p) {\r\n return t.domain.getWorkflowRun(p);\r\n }", "function getPSAppPath() {\r\n const kexecutablePathStr = stringIDToTypeID(\"executablePath\");\r\n\r\n var desc = new ActionDescriptor();\r\n var ref = new ActionReference();\r\n ref.putProperty(charIDToTypeID('Prpr'), kexecutablePathStr);\r\n ref.putEnumerated(charIDToTypeID('capp'), charIDToTypeID('Ordn'),\r\n charIDToTypeID('Trgt'));\r\n desc.putReference(charIDToTypeID('null'), ref);\r\n var result = executeAction(charIDToTypeID('getd'), desc, DialogModes.NO);\r\n return File.decode(result.getPath(kexecutablePathStr));\r\n}", "get path() {\n return this.constructor.buildPath(\n this._org,\n this._type,\n this._name,\n this._version,\n this._extra,\n );\n }", "getBasePath() {\n const currentJob = this.currentJob;\n var basePath = (currentJob.payload.private) ? `https://${process.env.GITHUB_BOT_USERNAME}:${process.env.GITHUB_BOT_PASSWORD}@github.com`:\"https://github.com\";\n return basePath;\n }", "cwd () {\n return cwd;\n }", "getPath (opts) {\n return BaseFS.getWorkingDir(opts) + this.getFolderName() + path.sep;\n }", "function currentTarget(repo){\n return path.resolve(homepath,repo).replace('C:','').replace('D:','').split('\\\\').join('/')\n}", "getPath() {\n if (this.parent === null) {\n return [this.action];\n } else {\n return this.parent.getPath().concat(this.action);\n }\n }", "get currentStep() {\n if (this.hasStep(this.currentStepIndex)) {\n return this.wizardSteps[this.currentStepIndex];\n }\n else {\n return null;\n }\n }", "function getContextPath() {\n\treturn window.location.pathname.substring(0, window.location.pathname.indexOf(\"/\", 2));\n}", "get fullPath() {\n return path.join(this.assembly.directory, this.directoryName);\n }", "function getCurrentScriptSrc() {\n if (document.currentScript) return document.currentScript.src;\n\n // this is unreliable if the script is loaded asynchronously\n var scripts = document.getElementsByTagName('script');\n return scripts[scripts.length - 1].src;\n}", "currentUrl() {\n return window.location.origin;\n }", "function getPathForCopyMove(){\r\n\t\tvar path = g_activePath;\r\n\t\tvar objDirs = getObjChildDirs();\r\n\t\tvar numDirs = objDirs.length;\r\n\t\tif(objDirs.length == 0)\r\n\t\t\tpath = getParentFolder(path);\r\n\t\t\r\n\t\treturn(path);\r\n\t}", "function getWindowPath() {\n return window.location.pathname + window.location.search;\n}", "get_current_command() {\n return global.frostybot.command.module + ':' + global.frostybot.command.method;\n }", "function getWorkDir(cid) {\n return path.join(getRootPath(cid), config.docker.workDir);\n}", "function getNowPath() {\n if (process.platform === 'win32') {\n const { LOCALAPPDATA, USERPROFILE, HOMEPATH } = process.env;\n const home = homedir() || USERPROFILE || HOMEPATH;\n let path;\n if (LOCALAPPDATA) {\n path = join(LOCALAPPDATA, 'now-cli', 'now.exe');\n } else if (home) {\n path = join(home, 'AppData', 'Local', 'now-cli', 'now.exe');\n } else {\n path = '';\n }\n return fs.existsSync(path) ? path : null;\n }\n\n const pathEnv = (process.env.PATH || '').split(delimiter);\n\n const paths = [\n join(process.env.HOME || '/', 'bin'),\n '/usr/local/bin',\n '/usr/bin',\n ];\n\n for (const basePath of paths) {\n if (!pathEnv.includes(basePath)) {\n continue;\n }\n\n const nowPath = join(basePath, 'now');\n\n if (fs.existsSync(nowPath)) {\n return nowPath;\n }\n }\n\n return null;\n}", "resolvePath() {\n return this.resolve().resolvedPath;\n }", "function getworkdir(callback)\n{\n if ( !callback || typeof (callback) !== 'function' ) { return; }\n if (typeof (webphone_api.plhandler) !== 'undefined' && webphone_api.plhandler !== null)\n return webphone_api.plhandler.GetWorkDir(callback);\n else\n return 'ERROR, getworkdir webphone_api.plhandler is not defined';\n}", "function getSstCliRootPath() {\n const filePath = __dirname;\n const packageName = \"resources\";\n const packagePath = filePath.slice(0, filePath.lastIndexOf(packageName) + packageName.length);\n return path.join(packagePath, \"../cli\");\n}", "resolveActiveRootDirectory() {\r\n const projectPaths = atom.project.getPaths();\r\n let activeTextEditor = atom.workspace.getActiveTextEditor();\r\n let activeProject = null;\r\n\r\n if (_.isEmpty(projectPaths) || _.isEmpty(activeTextEditor))\r\n return null;\r\n\r\n activeTextEditor = activeTextEditor.buffer.file.path;\r\n\r\n projectPaths.forEach(p => {\r\n if (activeTextEditor.startsWith(p))\r\n activeProject = p;\r\n });\r\n\r\n return activeProject;\r\n }", "function getCurrentURI()\n{\n var focusedWindow = document.commandDispatcher.focusedWindow;\n var contentFrame = isContentFrame(focusedWindow) ? focusedWindow : window.content;\n\n var nav = contentFrame.QueryInterface(Ci.nsIInterfaceRequestor)\n .getInterface(Ci.nsIWebNavigation);\n return nav.currentURI;\n}", "get path () {\n return __dirname\n }", "function getContextPath() {\n\treturn window.location.pathname.substring(0, window.location.pathname.indexOf(\"/\",2));\n}", "static getCurrentJobId(){\n let jobId = localStorage.getItem('JOB_VIEW_ID');\n return jobId;\n }", "function getPath() {\n\t\tvar basePath = '';\n\t\tvar httpProto = window.location.protocol;\n\t\tvar domains = determineHost();\n\t\tbasePath = httpProto + '//' + domains.secure + domains.environment + domains.topLevel;\n\t\treturn basePath;\n\t}", "parent(path) {\n if (path.length === 0) {\n throw new Error(\"Cannot get the parent path of the root path [\".concat(path, \"].\"));\n }\n\n return path.slice(0, -1);\n }", "parent(path) {\n if (path.length === 0) {\n throw new Error(\"Cannot get the parent path of the root path [\".concat(path, \"].\"));\n }\n\n return path.slice(0, -1);\n }", "getPath() {\n return this._path;\n }", "getPath() {\n return this._path;\n }", "function get_current_page_filename()\n{\n let path = window.location.pathname;\n let page = path.split(\"/\").pop();\n return page;\n}", "getCurrentEnvPath() {\r\n let TestDataPath = \"\\\\Resources\\\\\" + env + \"_TestData\";\r\n let absolutePath = __basedir + TestDataPath;\r\n return absolutePath;\r\n }", "function getActiveFile() {\n var active = getActiveTab();\n if(!active) {\n return false;\n }\n return lt.objs.tabs.__GT_path(active);\n }", "function extractCurrentPath(path){\r\n\tvar result = \"\";\r\n\tvar parts = path.split(\"/\");\r\n\tif(path.charAt(path.length - 1) == \"/\"){\r\n\t\tfor (var i = 0; i < parts.length-2; i++) {\r\n\t\t\tresult += parts[i] + \"/\";\r\n\t\t}\r\n\t}else{\r\n\t\tfor (var i = 0; i < parts.length-1; i++) {\r\n\t\t\tresult += parts[i] + \"/\";\r\n\t\t}\r\n\t}\r\n\treturn result;\r\n}", "getSrcPath()\n {\n return path.join(this.getRootPath(), 'src');\n }", "function getDir() {\n if (process.pkg) {\n return path.resolve(process.execPath + \"/..\");\n } else {\n return path.join(require.main ? require.main.path : process.cwd());\n }\n}", "get pathname() {\n return this.constructor.buildPathname(\n this._org,\n this._type,\n this._name,\n this._version,\n this._extra,\n );\n }", "get pathname() {\n return this.constructor.buildPathname(\n this._org,\n this._type,\n this._name,\n this._version,\n );\n }", "function getCurrentImage() {\n\t\treturn this.options.folder ?\n\t\t\t\tthis.options.folder + \"/\" + this.options.images[this.current] :\n\t\t\t\tthis.options.images[this.current];\n\t}", "function getEnginePath()\n{\n var enginePath = air.EncryptedLocalStore.getItem(\"enginePath\");\n return enginePath;\n}", "getExecutablePath() {\r\n if (this._executableUserPath) {\r\n return this._executableUserPath;\r\n }\r\n if (this._rustup && this._rustup.isRlsInstalled()) {\r\n return 'rustup';\r\n }\r\n return undefined;\r\n }", "getCurrentTabURL() {\n return this._queryCurrentTab().then(tab => tab.url);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }", "get pathFromRoot() {\n return this._routerState.pathFromRoot(this);\n }" ]
[ "0.64717853", "0.6244076", "0.61718434", "0.6170338", "0.6152112", "0.61512804", "0.6040975", "0.602712", "0.59697455", "0.59402", "0.59074104", "0.5905882", "0.5879443", "0.5869277", "0.5846465", "0.58364797", "0.57940483", "0.5781402", "0.5766695", "0.5747943", "0.5744659", "0.5740609", "0.57312226", "0.57124203", "0.57100236", "0.56972086", "0.5695712", "0.56742775", "0.5642275", "0.5641908", "0.5562063", "0.5555296", "0.555165", "0.5542934", "0.5532836", "0.5529664", "0.5529664", "0.5529664", "0.5529664", "0.5529664", "0.5529664", "0.5529664", "0.5526929", "0.5504708", "0.55039126", "0.5490537", "0.54690784", "0.54286176", "0.5409255", "0.54024047", "0.53907716", "0.5375934", "0.5372527", "0.5362247", "0.535575", "0.5351474", "0.53467655", "0.5345772", "0.5342993", "0.53386736", "0.532334", "0.53188133", "0.5306331", "0.53027403", "0.5297645", "0.5294603", "0.5291734", "0.52897644", "0.5280202", "0.5276391", "0.5275775", "0.5275079", "0.5272536", "0.52657133", "0.5253549", "0.5253549", "0.52463204", "0.52463204", "0.52458286", "0.5232223", "0.52184653", "0.52078235", "0.52037597", "0.52026576", "0.518089", "0.51549345", "0.5151363", "0.51482123", "0.5146947", "0.5144233", "0.5137926", "0.5137926", "0.5137926", "0.5137926", "0.5137926", "0.5137926", "0.5137926", "0.5137926", "0.5137926", "0.5137926" ]
0.7490412
0
Get the workflow run ID.
function getWorkflowRunID() { const workflowRunID = parseInt(getRequiredEnvParam("GITHUB_RUN_ID"), 10); if (Number.isNaN(workflowRunID)) { throw new Error("GITHUB_RUN_ID must define a non NaN workflow run ID"); } return workflowRunID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkRunId() {\n const ret = db.runCommand({find: \"c\", filter: {_id: 'block_test'}});\n assert.commandWorked(ret);\n\n const doc = ret[\"cursor\"][\"firstBatch\"][0];\n return doc[\"run_id\"];\n}", "function workflow_key(wf_id) {\n return `workflows:${wf_id}`;\n}", "getId() {\n return this._executeAfterInitialWait(() => this.currently.getAttribute('id'));\n }", "function getWorkflowRun(p) {\r\n return t.domain.getWorkflowRun(p);\r\n }", "function getRunner(runner_id, callback) {\n client.hget('wf_runners', runner_id, function (err, runner) {\n if (err) {\n log.error({err: err});\n return callback(new wf.BackendInternalError(err));\n }\n return callback(null, new Date(runner));\n });\n }", "async function getWorkflowPath() {\n const repo_nwo = getRequiredEnvParam(\"GITHUB_REPOSITORY\").split(\"/\");\n const owner = repo_nwo[0];\n const repo = repo_nwo[1];\n const run_id = Number(getRequiredEnvParam(\"GITHUB_RUN_ID\"));\n const apiClient = api.getActionsApiClient();\n const runsResponse = await apiClient.request(\"GET /repos/:owner/:repo/actions/runs/:run_id\", {\n owner,\n repo,\n run_id,\n });\n const workflowUrl = runsResponse.data.workflow_url;\n const workflowResponse = await apiClient.request(`GET ${workflowUrl}`);\n return workflowResponse.data.path;\n}", "get id() {\n\t\tif (!this._id) {\n\t\t\tthis._id = 'Scheduler' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t\t}\n\n\t\treturn this._id;\n\t}", "function getPayloadId() {\n return intGenerator.next().value;\n}", "getId() {\n\t\treturn this.props.id || this.generatedId;\n\t}", "getId() {\n\t\treturn this.props.id || this.generatedId;\n\t}", "function getJobUUID() {\n const fileName = node_modules_shelljs_shell.exec(`ls ${getWorkspaceDir()} | grep sechub_report`).trim();\n lib_core.debug('File name: ' + fileName);\n const filePath = `${getWorkspaceDir()}/${fileName}`;\n const json = JSON.parse(external_fs_.readFileSync(filePath, 'utf8'));\n const jobUUID = json.jobUUID;\n lib_core.debug('JobUUID: ' + jobUUID);\n return jobUUID;\n}", "function getSavedTaskID(row)\n{\n const nameBox = getNameBox(row);\n const taskIDSpan = $(nameBox.children().filter(\".taskid\")[0]);\n const taskID = $(taskIDSpan.children()[0]).val();\n return taskID;\n}", "function getId() {\n return RTG_VCF_RECORD.getId();\n }", "function GetID(event) {\n let id;\n try {\n id = (window.opener)? window.opener.curID : curID;\n } catch (error) { id = null; }\n\n while (!id || id === \"\") {\n id = (IsOnTurk())? GetAssignmentId() : prompt('Please enter your mTurk ID:','');\n }\n return id;\n}", "resumeWorkflow(workflowName, customId) {\n return this.updateInstance(workflowName, customId, WORKFLOW_RUN);\n }", "static getCurrentJobId(){\n let jobId = localStorage.getItem('JOB_VIEW_ID');\n return jobId;\n }", "get invokeId() {\n const id = this.getHeaderValue(Common_1.INVOKE_HEADER.AWSRequestId);\n assert_1.strict.ok(id, \"invocation id is missing or invalid\");\n return id;\n }", "function getRecipeId(recipeTitle) {\n let savedData = getStoredQuery();\n let recipe = savedData.find(recipe => {\n return recipe.title == recipeTitle;\n })\n\n let recipeId = recipe.id;\n\n return recipeId;\n}", "_getTargetId (settings) {\n var _this = this;\n\n var targetId = settings.deployed.Arn + \"---\" + settings.cronjob.name;\n targetId = targetId.replace(/:/g, '_');\n targetId = \"ID\" + _this._hashed(targetId);\n\n return targetId;\n }", "function getUniqueRunDependency(id) {\n return id;\n }", "get id() {\n if (this.state == ANONYMOUS) return undefined;\n return this.get(this.store.id);\n }", "function getUniqueRunDependency(id) {\n return id;\n}", "function getUniqueRunDependency(id) {\n return id;\n}", "function getUniqueRunDependency(id) {\n return id;\n}", "function getUniqueRunDependency(id) {\n return id;\n}", "function getUniqueRunDependency(id) {\n return id;\n}", "function getUniqueRunDependency(id) {\n return id;\n}", "function getUniqueRunDependency(id) {\n return id;\n}", "function get_wf(wf_id) {\n return decode(store.getItem(workflow_key(wf_id)));\n}", "function assignTaskID() {\n const data = $(\"body\").data();\n const taskID = data.taskID + 1;\n data.taskID++;\n return taskID;\n}", "activityId()\n {\n return (this.activityId_) ? this.activityId_ : '<anon-activity>';\n }", "getAuthenticatedId() {\n try {\n return this.getServerInstance().stitch_actual_client.auth.user.id;\n } catch (e) {\n return \"ID missing\";\n }\n }", "getId() {\n const parent = this.getParent();\n return parent ? `${parent.getId()}/${this.getInternalId()}` : this.getInternalId();\n }", "get id() {\n\t\tif (!this._id) {\n\t\t\tthis._id = 'ProgressWindow' + Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n\t\t}\n\n\t\treturn this._id;\n\t}", "findWorkflow(workflowName, customId) {\n const url = this.getInstanceWebsiteUrl();\n\n const params = Object.assign(\n {\n [ATTR_ID]: customId,\n [ATTR_NAME]: workflowName,\n [ATTR_PROG]: PROG,\n [API_TOKEN]: credentials.apiToken,\n },\n this.getAppEnv(),\n );\n\n return http\n .get(url, { params })\n .then((body) =>\n workflowManager.getWorkflow(workflowName, body.data.properties),\n );\n }", "startWorkflow(flow) {\n // custom id management\n let customId = null;\n if (typeof flow.id === \"function\") {\n // customId can be a value or a function\n customId = flow.id();\n // customId should be a string or a number\n if (typeof customId !== \"string\" && typeof customId !== \"number\") {\n throw new InvalidArgumentError(\n `Provided id must be a string or a number - current type: ${typeof customId}`,\n );\n }\n // at the end, it's a string\n customId = customId.toString();\n // should be not more than 256 bytes;\n if (customId.length >= MAX_ID_SIZE) {\n throw new ExternalZenatonError(\n `Provided id must not exceed ${MAX_ID_SIZE} bytes`,\n );\n }\n }\n\n const url = this.getInstanceWorkerUrl();\n\n // start workflow\n const body = {\n [ATTR_PROG]: PROG,\n [ATTR_CANONICAL]: flow._getCanonical(),\n [ATTR_NAME]: flow.name,\n [ATTR_DATA]: serializer.encode(flow.data),\n [ATTR_ID]: customId,\n };\n\n const params = this.getAppEnv();\n\n return http.post(url, body, { params });\n }", "id() {\n const model = internal(this).model;\n return internal(model).entities.id(this);\n }", "get id() {\n if (!this._id) {\n this._id = Util.GUID();\n }\n return this._id;\n }", "function getScheduledInterviewId() {\n return new URLSearchParams(window.location.search).get('interview'); \n}", "getProjectID() {\n\n console.log(\"TCL: getProjectID -> this.props.locationData\", this.props.locationData)\n\n const {projectID} = this.props.locationData.match.params;\n \n const requestID = projectID.substr(projectID.indexOf('GSD')+3,projectID.length);\n\n return requestID\n }", "function getThreadID() {\n if (!window.threadID) {\n let metadataEl = document.head.querySelector(\"[name~=postid][content]\");\n if (metadataEl) window.threadID = metadataEl.content;\n }\n return window.threadID;\n}", "get id() {\n return this._frame.contentWindow.QueryInterface(Ci.nsIInterfaceRequestor)\n .getInterface(Ci.nsIDOMWindowUtils).outerWindowID;\n }", "function getResourceId() {\n let currentResource = JSON.parse(localStorage.getItem(\"currentResource\"));\n let resourceTitle = currentResource.title;\n let resourceId = toKebabCase(resourceTitle);\n return resourceId\n}", "async function getFolderId() {\n var data = await getData();\n var folderId = data.galleries[0].folderid;\n return folderId;\n }", "getId() {\n return this.user ? this.user[this.config.identifierKey] : null;\n }", "function extractTeamId(team_data){\n return team_data.id\n}", "function getUniqueRunDependency(id) {\nreturn id;\n}", "function getId() {\n\t\t\treturn NewsService.leng();\n\t\t}", "function getId() {\n\t\t\treturn NewsService.leng();\n\t\t}", "function getId() {\n\t\t\treturn NewsService.leng();\n\t\t}", "GetCheckpointID() {\n return this.GetPrivateUUID().then(ID => CouchbaseChannel.GenerateCheckpointID(ID));\n }", "function getId() {\n return ++lastId;\n }", "function getId() {\n return ++lastId;\n }", "function getId() {\n return ++lastId;\n }", "function getId() {\n return ++lastId;\n }", "function getId() {\n return ++lastId;\n }", "function getId() {\n return ++lastId;\n }", "function getId() {\n return ++lastId;\n }", "getId() {\n if (!this.id) {\n if (this.packet && this.packet.clientId) this.id = this.packet.clientId;\n }\n return this.id;\n }", "function id(dataset) {\n return dataset.id;\n }", "function getId(e) {\n if (e.id) {\n return e.id;\n } else if (e.__data__) {\n return e.__data__.id;\n }\n return null;\n }", "function getID() {\n var id = 'bzm' + (new Date()).getTime();\n\n return id;\n }", "function getAuthTokenId() {\n\t return _store2.default.getState().login.getIn(['keystoneAccess', 'token', 'id']);\n\t}", "getId() {\n uniqueId++\n return uniqueId;\n }", "async function getProjectId(project, session) {\r\n const id = project.split('/')[project.split('/').length -2]\r\n return id\r\n}", "function getId() {\n return ++lastId;\n }", "_getSetBatchId() {\n // TODO\n // we need the Configuration to check for default values like getEnvValue('BATCH_ID') instead of\n // it creating new Objects (with defaults) on demand, see Configuration#getBatch().\n return (\n (this._configuration._batch && this._configuration._batch.getId()) ||\n GeneralUtils.getEnvValue('BATCH_ID')\n )\n }", "async getCommitteeId(req_id) {\n let response = await axios.get(`${API_URL}/requests/${req_id}`);\n return response.data.RecieverComiteeId;\n }", "getId() {\n return this._data.Id;\n }", "function getEntryId(tabEntryId) {\n var entryId = tabEntryId.substring(tabEntryId.lastIndexOf('-')+1);\n if (entryId == 'null') {\n var firstTabEntryId = $('#' + getNotebookFileName(tabEntryId) + 'Tab .entry:first').attr('id');\n entryId = firstTabEntryId.substring(firstTabEntryId.lastIndexOf('-')+1);\n }\n return entryId;\n }", "getId()\n\t{\n\t\treturn this.id;\n\t}", "getId()\n\t{\n\t\treturn this.id;\n\t}", "_getRunValue(options) {\n const mods = allModules();\n const applyWorkingDirectoryToken = (runSegment) => {\n if (runSegment.includes(':') || runSegment.startsWith(workingDirectoryToken) || mods.apps.includes(`ui-${runSegment}`) || mods.platforms.includes(runSegment)) {\n return runSegment;\n }\n return `${workingDirectoryToken}:${runSegment}`;\n };\n\n if (options.uiTest && options.uiTest.run) {\n return options.uiTest.run; // Pass a raw --run value to ui-testing\n } else if (options.run) {\n return options.run.split('/').map(applyWorkingDirectoryToken).join('/'); // Parse --run and apply token as needed\n } else {\n return workingDirectoryToken; // No --run specified, apply token\n }\n }", "id() {\n return Router.current().params._id;\n }", "function getStoppedBreakpointId() {\n var stepNode = null;\n var stepNodes = $scope.suspendedBreakpoints;\n if (stepNodes && stepNodes.length) {\n stepNode = stepNodes[0];\n if (stepNodes.length > 1 && isSuspendedAt($scope.selectedDiagramNodeId)) {\n // TODO should consider we stepping from different nodes based on the call thread or selection?\n stepNode = $scope.selectedDiagramNodeId;\n }\n }\n return stepNode;\n }", "getId() {\n\t\treturn this.id;\n\t}", "function GetRoleDefinitionId()\n {\n var url = _spPageContextInfo.siteAbsoluteUrl + \"/_api/web/roledefinitions/getByName('Read')/Id\";\n jQuery.ajax({\n url: url,\n type: \"GET\",\n headers: {\n \"accept\": \"application/json;odata=verbose\",\n \"content-type\": \"application/json;odata=verbose\",\n },\n success: function (data) {\n roleDefinitionId = data.d.Id;\n SetPermissionsForGroup();\n },\n error: function (jqxr, errorCode, errorThrown) {\n $scope.$apply(function () {\n $scope.statusMessages += jqxr.responseText + \"<br />\";\n });\n }\n });\n }", "function getPlaylistID() {\n const url = window.location.search;\n if (url.indexOf(\"?playlist_id=\") !== -1) {\n let currentPlaylist = url.split(\"=\")[1];\n return currentPlaylist;\n }\n }", "function getId() {\n return ++lastId;\n }", "getId() {\n \n return this.id; \n }", "function getLatestBuildId(callback) {\n let options = {\n url: 'https://ci.javacord.org/app/rest/builds/buildType:(id:Javacord_PublishSnapshots),status:SUCCESS,branch:development?guest=1',\n headers: { 'Accept': 'application/json' }\n };\n request(options, function (error, response, body) {\n if (error) {\n return callback(error);\n }\n try {\n return callback(null, JSON.parse(body).id);\n } catch (e) {\n return callback(e);\n }\n });\n}", "function getNeededId(self){\n var manipulator = $(self);\n var neededId = manipulator.attr('id').split('_')[1];//getting unique general value of id\n return neededId;\n}", "function getId() {\n\t return ++lastId;\n\t }", "function getId() {\n\t return ++lastId;\n\t }", "function getId() {\n\t return ++lastId;\n\t }", "async getId () {\n let response = await fetch (\"https://test-ancil-overlay.herokuapp.com/v1.2/funnel/cache.js?agent_id=test&flight_string=SFO*2019-10-15T07:20*CQ*123*JFK*2019-10-15T08:45&adults=1\");\n let body = await response.text();\n return JSON.parse(body.slice(22,-2)).session_id\n }", "function getDocumentID() {\n return location.href.match(\"((https?:\\/\\/)?docs\\.google\\.com\\/(.*?\\/)*document\\/d\\/(.*?))\\/edit\")[4];\n }", "function getBuildIDForBetaAppReviewSubmission(api, id) {\n return api_1.GET(api, `/betaAppReviewSubmissions/${id}/relationships/build`)\n}", "function getId () {\n return ++lastId\n }", "function findId(id) {\n\tfor(var i=0; i<tasks.length; i++) {\n\t\tif(tasks[i] == id) return i;\n\t}\n\treturn -1;\n}", "function getItemId() {\r\n var item_id = 0;\r\n item_id = urlParams.getUrlVar('id');\r\n if(item_id == undefined) {\r\n item_id = 0;\r\n }\r\n return item_id;\r\n }", "function thisToDoId(id) {\n return id;\n}", "function getById(id) {\n const requestOptions = {\n method: \"GET\",\n headers: authHeader.get(),\n credentials: \"include\"\n };\n\n return fetch(baseUrl + \"workflows/\" + id + \"/\", requestOptions).then(\n handleResponse\n );\n}", "function getById(id) {\n const requestOptions = {\n method: \"GET\",\n headers: authHeader.get(),\n credentials: \"include\"\n };\n\n return fetch(baseUrl + \"workflows/\" + id + \"/\", requestOptions).then(\n handleResponse\n );\n}", "function getId(e) {\n return e._private.data.id;\n}", "get id(){\n let id = this.data.id;\n if (id === undefined){\n id = this._id = (this._id || ++idCounter);\n }\n return id;\n }", "function rtvTaskId()\n{\n\tvar frame = getFrameCurrent();\n\tvar obj = frame.document.getElementById(OBJ_TASKID);\n\treturn (obj == null) ? '' : obj.value;\n}", "function getBetaAppReviewSubmissionIDForBuild(api, id) {\n return api_1.GET(api, `/builds/${id}/relationships/betaAppReviewSubmission`)\n}", "getSiteDesignRunStatus(runId) {\r\n return new SiteDesigns(this, \"\").getSiteDesignRunStatus(undefined, runId);\r\n }", "function getMainLaunchActivityIndex(activities) {\n let launchActivityIndex = -1;\n\n for (let i = 0; i < activities.length; i++) {\n const activity = activities[i];\n if (isLaunchActivity(activity)) {\n launchActivityIndex = i;\n break;\n }\n }\n\n return launchActivityIndex;\n }" ]
[ "0.611608", "0.59667814", "0.59479725", "0.5905249", "0.57958996", "0.5742932", "0.54829866", "0.5449128", "0.54331094", "0.54331094", "0.5351629", "0.53217244", "0.53162134", "0.53141344", "0.5281783", "0.528088", "0.526071", "0.5259906", "0.52409977", "0.5163769", "0.51574093", "0.5151334", "0.5151334", "0.5151334", "0.5151334", "0.5151334", "0.5151334", "0.5151334", "0.5147006", "0.51424766", "0.51167434", "0.5102464", "0.50991124", "0.50988364", "0.5087723", "0.5067548", "0.5064964", "0.50506514", "0.5049815", "0.50469166", "0.50351924", "0.5035191", "0.5022734", "0.50100845", "0.49955693", "0.4988638", "0.49647015", "0.49414852", "0.49414852", "0.49414852", "0.4936979", "0.49351496", "0.49351496", "0.49351496", "0.49351496", "0.49351496", "0.49351496", "0.49351496", "0.4934089", "0.49283084", "0.4916103", "0.4907011", "0.48938856", "0.4891676", "0.48540184", "0.48358315", "0.4828263", "0.48279047", "0.4817256", "0.48144788", "0.48098254", "0.48098254", "0.48089582", "0.4805802", "0.48046225", "0.48035395", "0.48032954", "0.47998485", "0.47941792", "0.47907904", "0.4779195", "0.47783065", "0.47648942", "0.47648942", "0.47648942", "0.4755649", "0.4753429", "0.47530794", "0.47524568", "0.47475728", "0.47378334", "0.47340244", "0.47288", "0.47288", "0.4726676", "0.47246927", "0.47232956", "0.47109124", "0.4707062", "0.4700982" ]
0.8112037
0
Get the analysis key paramter for the current job. This will combine the workflow path and current job name. Computing this the first time requires making requests to the github API, but after that the result will be cached.
async function getAnalysisKey() { const analysisKeyEnvVar = "CODEQL_ACTION_ANALYSIS_KEY"; let analysisKey = process.env[analysisKeyEnvVar]; if (analysisKey !== undefined) { return analysisKey; } const workflowPath = await getWorkflowPath(); const jobName = getRequiredEnvParam("GITHUB_JOB"); analysisKey = `${workflowPath}:${jobName}`; core.exportVariable(analysisKeyEnvVar, analysisKey); return analysisKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static getCurrentJobId(){\n let jobId = localStorage.getItem('JOB_VIEW_ID');\n return jobId;\n }", "function workflow_key(wf_id) {\n return `workflows:${wf_id}`;\n}", "function getKey() {\r\n\treturn (window.location.search.substr(1).split(\"=\")[1]);\r\n}", "function getKey() {\r\n\treturn (window.location.search.substr(1).split(\"=\")[1]);\r\n}", "function getCacheKey(ctx) { return ctx.url }", "getProjectID() {\n\n console.log(\"TCL: getProjectID -> this.props.locationData\", this.props.locationData)\n\n const {projectID} = this.props.locationData.match.params;\n \n const requestID = projectID.substr(projectID.indexOf('GSD')+3,projectID.length);\n\n return requestID\n }", "getStorageKey(context) {\n const activity = context.activity;\n const channelId = activity.channelId;\n const conversationId = activity && activity.conversation && activity.conversation.id ? activity.conversation.id : undefined;\n if (!channelId) {\n throw new Error('missing activity.channelId');\n }\n if (!conversationId) {\n throw new Error('missing activity.conversation.id');\n }\n return `${channelId}/conversations/${conversationId}/${this.namespace}`;\n }", "getParam(jsonFile, keyName) {\n return artifactGetParam(this, jsonFile, keyName);\n }", "async function getWorkflowPath() {\n const repo_nwo = getRequiredEnvParam(\"GITHUB_REPOSITORY\").split(\"/\");\n const owner = repo_nwo[0];\n const repo = repo_nwo[1];\n const run_id = Number(getRequiredEnvParam(\"GITHUB_RUN_ID\"));\n const apiClient = api.getActionsApiClient();\n const runsResponse = await apiClient.request(\"GET /repos/:owner/:repo/actions/runs/:run_id\", {\n owner,\n repo,\n run_id,\n });\n const workflowUrl = runsResponse.data.workflow_url;\n const workflowResponse = await apiClient.request(`GET ${workflowUrl}`);\n return workflowResponse.data.path;\n}", "function getAPIKey(){\n\n}", "async function getParam(context, key) {\n const THIS_APPLICATION_NAME = 'patient-appointment-management';\n const CONSTANTS = {\n APPLICATION_NAME: THIS_APPLICATION_NAME,\n FILENAME_APPOINTMENT:\n 'appointment{appointment_id}-patient{patient_id}.json',\n _S3_BUCKET_BASE: `twilio-${THIS_APPLICATION_NAME}`,\n _CF_STACK_DEPLOYER_BASE: `twilio-${THIS_APPLICATION_NAME}-deployer`,\n _CF_STACK_BUCKET_BASE: `twilio-${THIS_APPLICATION_NAME}-bucket`,\n _CF_STACK_APPLICATION_BASE: `twilio-${THIS_APPLICATION_NAME}-application`,\n _GLUE_DATABASE_BASE: 'patient_appointments',\n };\n\n // first return context non-null context value\n if (context[key]) return context[key];\n\n // second return CONSTANTS value\n if (CONSTANTS[key]) {\n context[key] = CONSTANTS[key];\n return context[key];\n }\n\n const account_sid = context.ACCOUNT_SID\n ? context.ACCOUNT_SID\n : process.env.ACCOUNT_SID;\n const auth_token = context.AUTH_TOKEN\n ? context.AUTH_TOKEN\n : process.env.AUTH_TOKEN;\n const client = context.getTwilioClient();\n\n const AWS = require('aws-sdk');\n const options = {\n accessKeyId: context.DEPLOYER_AWS_ACCESS_KEY_ID,\n secretAccessKey: context.DEPLOYER_AWS_SECRET_ACCESS_KEY,\n region: context.AWS_REGION,\n };\n const SSM = new AWS.SSM(options);\n // ----------------------------------------------------------------------\n try {\n switch (key) {\n case 'DEPLOYER_AWS_ROLE_ARN': {\n const name = '/twilio/patient-appointment-management/deployer/role-arn';\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_ACCESS_KEY_ID': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/aws-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n const secretName = data.Parameter.Value;\n\n const SM = new AWS.SecretsManager(options);\n const sdata = await SM.getSecretValue({\n SecretId: secretName,\n }).promise();\n const secret = JSON.parse(sdata.SecretString);\n return secret.AWS_ACCESS_KEY_ID;\n }\n case 'AWS_SECRET_ACCESS_KEY': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/aws-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n const secretName = data.Parameter.Value;\n\n const SM = new AWS.SecretsManager(options);\n const sdata = await SM.getSecretValue({\n SecretId: secretName,\n }).promise();\n const secret = JSON.parse(sdata.SecretString);\n return secret.AWS_SECRET_ACCESS_KEY;\n }\n case 'AWS_ATHENA_WORKGROUP': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/athena-workgroup`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_CF_STACK_APPLICATION': {\n return `${CONSTANTS._CF_STACK_APPLICATION_BASE}-${context.CUSTOMER_CODE}`;\n }\n case 'AWS_CF_STACK_BUCKET': {\n return `${CONSTANTS._CF_STACK_BUCKET_BASE}-${context.CUSTOMER_CODE}`;\n }\n case 'AWS_CF_STACK_DEPLOYER': {\n return `${CONSTANTS._CF_STACK_DEPLOYER_BASE}`;\n }\n case 'AWS_GLUE_CRAWLER': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/crawler`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_GLUE_DATABASE': {\n return `${CONSTANTS._GLUE_DATABASE_BASE}_${context.CUSTOMER_CODE}`;\n }\n case 'AWS_LAMBDA_SEND_REMINDERS': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/lambda-send-reminders`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_LAMBDA_QUERY_STATE': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/lambda-query-state`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_LAMBDA_QUERY_HISTORY': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/lambda-query-history`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_S3_BUCKET': {\n return `${CONSTANTS._S3_BUCKET_BASE}-${context.CUSTOMER_CODE}`;\n }\n case 'AWS_SECRET_AWS_ARN': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/aws-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_SECRET_TWILIO_ARN': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/twilio-secret`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_SFN_QUERY_STATE': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/sfn-query-state`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'AWS_SFN_QUERY_HISTORY': {\n const name = `/twilio/patient-appointment-management-${context.CUSTOMER_CODE}/application/sfn-query-history`;\n const data = await SSM.getParameter({ Name: name }).promise();\n return data.Parameter.Value;\n }\n case 'TWILIO_ACCOUNT_SID': {\n return getParam(context, 'ACCOUNT_SID');\n }\n case 'TWILIO_AUTH_TOKEN': {\n return getParam(context, 'AUTH_TOKEN');\n }\n case 'TWILIO_ENVIRONMENT_SID': {\n const service_sid = await getParam(context, 'TWILIO_SERVICE_SID');\n if (service_sid === null) {\n return null; // service not yet deployed\n }\n const environments = await client.serverless\n .services(service_sid)\n .environments.list();\n return environments[0].sid;\n }\n case 'TWILIO_ENVIRONMENT_DOMAIN_NAME': {\n const service_sid = await getParam(context, 'TWILIO_SERVICE_SID');\n if (service_sid === null) {\n return null; // service not yet deployed\n }\n const environments = await client.serverless\n .services(service_sid)\n .environments.list();\n return environments[0].domainName;\n }\n case 'TWILIO_FLOW_SID': {\n let flow_sid = null;\n await client.studio.flows.list({ limit: 100 }).then((flows) =>\n flows.forEach((f) => {\n if (f.friendlyName === THIS_APPLICATION_NAME) {\n flow_sid = f.sid;\n }\n })\n );\n if (flow_sid !== null) {\n return flow_sid;\n }\n return null;\n }\n case 'TWILIO_SERVICE_SID': {\n let service_sid = null;\n await client.serverless.services.list({ limit: 100 }).then((services) =>\n services.forEach((s) => {\n if (s.friendlyName === THIS_APPLICATION_NAME) {\n service_sid = s.sid;\n }\n })\n );\n if (service_sid !== null) {\n return service_sid;\n }\n console.log(\n 'Developer note: YOU MUST DEPLOY THE SERVICE FIRST!!! ABORTING!!!'\n );\n return null;\n }\n default:\n throw new Error(`Undefined variable ${key} !!!`);\n }\n } catch (err) {\n console.log(`Unexpected error in getParam for ${key} ... returning null`);\n return null;\n }\n}", "getStorageKey(_request) {\n\t\tconst storageName = this.strings.storageName;\n\t\tconst key = storageName + '-' + _request;\n\t\treturn key;\n\t}", "function getAPIKey() {\n return ss.getRange(API_KEY).getValue();\n}", "function get_key(NpolarApiSecurity,path) {\n let system = NpolarApiSecurity.getSystem('read', path);\n console.log(system.key);\n if (system.key) {\n return system.key;\n }\n}", "function getKeyForRequest(req) {\n var key = cm.ckey(req.host, req.path);\n return key;\n}", "function getPath() {\n return currentPathQuery.split('?')[0];\n }", "workspacesWorkspaceProjectsProjectKeyGet(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n let defaultClient = Bitbucket.ApiClient.instance;\n // Configure API key authorization: api_key\n let api_key = defaultClient.authentications['api_key'];\n api_key.apiKey = incomingOptions.apiKey;\n // Uncomment the following line to set a prefix for the API key, e.g. \"Token\" (defaults to null)\n api_key.apiKeyPrefix = incomingOptions.apiKeyPrefix || 'Token';\n // Configure HTTP basic authorization: basic\n let basic = defaultClient.authentications['basic'];\n basic.username = 'YOUR USERNAME';\n basic.password = 'YOUR PASSWORD';\n // Configure OAuth2 access token for authorization: oauth2\n let oauth2 = defaultClient.authentications['oauth2'];\n oauth2.accessToken = incomingOptions.accessToken;\n\n let apiInstance = new Bitbucket.ProjectsApi(); // String | The project in question. This is the actual `key` assigned to the project. // String | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`.\n /*let projectKey = \"projectKey_example\";*/ /*let workspace = \"workspace_example\";*/ apiInstance.workspacesWorkspaceProjectsProjectKeyGet(\n incomingOptions.projectKey,\n incomingOptions.workspace,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getPipelineIdField(){\n // TODO: use Jira API user/key toget project metadata and custom field, ex:\n //curl -H \"Authorization: Basic ${JIRA_API_AUTH}\" -X GET -H \"Content-Type: application/json\" \\\n // 'https://<JIRA_DOMAIN>.atlassian.net/rest/api/latest/issue/createmeta?projectKeys=<PROJECT_KEY>&expand=projects.issuetypes.fields'\n\n const promise = new Promise(function(resolve, reject) {\n if (config.jira.api.resolveFields) {\n let username = config.jira.api.username.trim();\n let token = config.jira.api.token.trim()\n let encodedAuth = new Buffer.from(username + ':' + token).toString('base64');\n\n // TODO: parse the base url from the issue body\n if (!config.jira.api.baseUrl) {\n }\n\n // Prepare a request to get Jira custom field\n let req = {\n host: config.jira.api.baseUrl.trim(),\n port: config.jira.api.port,\n path: '/rest/api/3/field',\n\n // authentication headers\n headers: {\n 'Authorization': 'Basic ' + encodedAuth\n }\n };\n\n console.log(\"Resolving Jira custom field ID from name\");\n // Request all fields from Jira\n https.get(req, (res) => {\n // Construct the returned body\n let body = '';\n res.on('data', function(chunk) {\n body += chunk;\n });\n // When whole response is available\n res.on('end', function() {\n // Turn the body string into JSON\n const data = JSON.parse(body);\n let keyFound = false;\n // Search for our custom field in the field names\n for (const field of data){\n if (cleanInput(field.name) == config.jira.customField.name) {\n keyFound = true;\n console.log(\"Resolved custom field name %s to key %s\", config.jira.customField.defaultId, field.key);\n console.debug(field);\n resolve(field.key);\n }\n }\n // If we didn't find the key, resolve with the default key\n if (!keyFound) {\n console.log(\"Custom field name not resolved, trying the default (%s)\", config.jira.customField.defaultId);\n resolve(config.jira.customField.defaultId);\n }\n });\n }).on('error', (e) => {\n console.error(e);\n reject(Error(e));\n });\n // If we are not using the API to resolve the field, return the one the user sent in\n } else {\n resolve(config.jira.customField.defaultId);\n }\n });\n\n // return the promise to get the Jira field\n return promise;\n}", "function readBlobKeyFromURl() {\n var blobKey = getParameterByName(\"blob-key\");\n console.log(\"Parameter blobKey: \" + blobKey);\n return blobKey;\n}", "getBasePath() {\n const currentJob = this.currentJob;\n var basePath = (currentJob.payload.private) ? `https://${process.env.GITHUB_BOT_USERNAME}:${process.env.GITHUB_BOT_PASSWORD}@github.com`:\"https://github.com\";\n return basePath;\n }", "function getCacheKey (req) {\n return `${req.url}`\n}", "function getCacheKey(req) {\n return `${req.path}`\n}", "getPathParameter(key) {\n return key != null ? this.pathParams[key.toLowerCase()] : null;\n }", "static get key () {\r\n return 'NewBetMail-job'\r\n }", "function getQuery() {\n return currentPathQuery.split('?')[1];\n }", "workspacesWorkspaceProjectsProjectKeyGet(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n let defaultClient = Bitbucket.ApiClient.instance;\n // Configure API key authorization: api_key\n let api_key = defaultClient.authentications['api_key'];\n api_key.apiKey = incomingOptions.apiKey;\n // Uncomment the following line to set a prefix for the API key, e.g. \"Token\" (defaults to null)\n api_key.apiKeyPrefix = incomingOptions.apiKeyPrefix || 'Token';\n // Configure HTTP basic authorization: basic\n let basic = defaultClient.authentications['basic'];\n basic.username = 'YOUR USERNAME';\n basic.password = 'YOUR PASSWORD';\n // Configure OAuth2 access token for authorization: oauth2\n let oauth2 = defaultClient.authentications['oauth2'];\n oauth2.accessToken = incomingOptions.accessToken;\n\n let apiInstance = new Bitbucket.WorkspacesApi(); // String | The project in question. This is the actual `key` assigned to the project. // String | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`.\n /*let projectKey = \"projectKey_example\";*/ /*let workspace = \"workspace_example\";*/ apiInstance.workspacesWorkspaceProjectsProjectKeyGet(\n incomingOptions.projectKey,\n incomingOptions.workspace,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getAPIKey(){\n\treturn $('#api-key-input').val();\n}", "function getCacheKey(req) {\n return `${req.url}`;\n}", "get ({commit}, {flow, buildNumber}) {\n commit('setJob', {flow, buildNumber})\n\n let url = 'jobs/' + flow + '/' + buildNumber + '/steps'\n\n http.get(url, (steps) => {\n commit('setSteps', steps)\n })\n }", "getApiKey() {\n let apiKey;\n if(this.props.config.app && this.props.config.app.apiKey) {\n apiKey = this.props.config.app.apiKey\n }\n return this.props.apiKey || apiKey;\n }", "getCurrentQuestion() {\r\n return Object.keys(this.curr.val)[0];\r\n }", "getCacheKey(inputFile) {\n\t\tvar pathInPackage = inputFile.getPathInPackage();\n\t\tvar packageName = inputFile.getPackageName();\n\t\tvar fullPath = pathInPackage;\n\t\tif (packageName) {\n\t\t\tpackageName = packageName.replace('local-test:', '');\n\t\t\tfullPath = path.join(packagesPath, packageName, fullPath);\n\t\t}\n\n\t\tif (pathInPackage.indexOf('node_modules/') !== -1) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (pathInPackage.indexOf('typings/') !== -1) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (pathInPackage.substr(-5) === '.d.ts') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (\n\t\t\tpackageName &&\n\t\t\ttypescriptPackages[packageName].client.files.indexOf(pathInPackage) === -1 &&\n\t\t\ttypescriptPackages[packageName].server.files.indexOf(pathInPackage) === -1\n\t\t) {\n\t\t\treturn '';\n\t\t}\n\t\treturn fullPath + fs.statSync(fullPath).mtime;\n\t}", "getPipelineVariablesForTeam(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.PipelinesApi(); // String | The account.\n /*let username = \"username_example\";*/ apiInstance.getPipelineVariablesForTeam(\n incomingOptions.username,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getTaskKey(task) {\n if (viewMode === 'agenda') {\n return getTaskId(task) + ' ' + getIndentClass(task);\n } else if (viewMode === 'project') {\n return getTaskId(task);\n } else {\n error('Unexpected viewMode:', viewMode);\n return null;\n }\n }", "get keyPairNameInput() {\n return this._keyPairName;\n }", "get nextStepKey() {\n return self.step.nextStepKey(self.annotations)\n }", "get objectKey() {\n return artifactAttribute(this, 'ObjectKey');\n }", "publicKeyParam(){\n return `api_key=${this.publicKey}`\n }", "static get key() {\n return 'ExpireMatch-job'\n }", "getQueryParam(key) {\n return readQueryParam(this.win.location.href, key);\n }", "getPipelineVariablesForUser(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.PipelinesApi(); // String | The account.\n /*let username = \"username_example\";*/ apiInstance.getPipelineVariablesForUser(\n incomingOptions.username,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "get_currentJob()\n {\n return this.liveFunc._currentJob;\n }", "function getArgumentValue(key){\n\t\tvar a=this.getArgumentValues();\n\t\tif(a.length<1) return '';\n\t\tfor(i=0;i<a.length;i++){\n\t\t\tif(a[i][0]==key) return a[i][1];\n\t\t}\n\t\treturn '';\n\t}", "graphDataKeywordFirst (state, getters) {\n const graphData = state.data.graph\n return graphData[getters.keywordIdFirst]\n }", "function getURLParameter(key) {\n var result = new RegExp(key + '=([^&]*)', 'i').exec(window.location.search);\n return result && result[1] || '';\n}", "static async getJob({ id }) {\n let apiResponse = await JoblyApi.request(`jobs/${id}`);\n return apiResponse.job;\n }", "teamsUsernameProjectsProjectKeyGet(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n let defaultClient = Bitbucket.ApiClient.instance;\n // Configure API key authorization: api_key\n let api_key = defaultClient.authentications['api_key'];\n api_key.apiKey = incomingOptions.apiKey;\n // Uncomment the following line to set a prefix for the API key, e.g. \"Token\" (defaults to null)\n api_key.apiKeyPrefix = incomingOptions.apiKeyPrefix || 'Token';\n // Configure HTTP basic authorization: basic\n let basic = defaultClient.authentications['basic'];\n basic.username = 'YOUR USERNAME';\n basic.password = 'YOUR PASSWORD';\n // Configure OAuth2 access token for authorization: oauth2\n let oauth2 = defaultClient.authentications['oauth2'];\n oauth2.accessToken = incomingOptions.accessToken;\n\n let apiInstance = new Bitbucket.ProjectsApi(); // String | This can either be the username or the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`. An account is either a team or user. // String | The project in question. This can either be the actual `key` assigned to the project or the `UUID` (surrounded by curly-braces (`{}`)).\n /*let username = \"username_example\";*/ /*let projectKey = \"projectKey_example\";*/ apiInstance.teamsUsernameProjectsProjectKeyGet(\n incomingOptions.username,\n incomingOptions.projectKey,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getJobUUID() {\n const fileName = node_modules_shelljs_shell.exec(`ls ${getWorkspaceDir()} | grep sechub_report`).trim();\n lib_core.debug('File name: ' + fileName);\n const filePath = `${getWorkspaceDir()}/${fileName}`;\n const json = JSON.parse(external_fs_.readFileSync(filePath, 'utf8'));\n const jobUUID = json.jobUUID;\n lib_core.debug('JobUUID: ' + jobUUID);\n return jobUUID;\n}", "function cacheBusterKey(buildInfo, developMode) {\n // NB developMode not implemented yet, so always defaults\n // to the gitCommitHash\n if (developMode) {\n return String(new Date().getTime());\n } else {\n return buildInfo.gitCommitHash;\n }\n }", "function getWorkParam(cookies, uid, paramName) {\n return new Promise((resolve, reject) => {\n get(cookies, uid).then((getResponse) => {\n let jsonObject;\n parseString(getResponse, (err, result) => {\n jsonObject = JSON.parse(JSON.stringify(result));\n });\n\n if (jsonObject.xwhep.work === undefined) {\n reject(new Error(`getWorkParam(): Not a work : ${uid}`));\n return;\n }\n\n const paramValue = jsonObject.xwhep.work[0][paramName];\n if (paramValue === undefined) {\n reject(new Error(`getWorkParam() : Invalid work parameter : ${paramName}`));\n return;\n }\n\n resolve(paramValue);\n }).catch((e) => {\n reject(new Error(`getWorkParam(): Work not found (${uid}) : ${e}`));\n });\n });\n }", "getKey(){\n\t\tlet $config = this.getConfig();\n\t\tif(!$config || $config.key === undefined){\n\t\t\tthrow new Error(\"Model key property is not configured\")\n\t\t}\n\t\tlet className = this.getModelClass();\n\t\tlet $properties = className.$properties();\n\t\tif(!_.isString($config.key)){\n\t\t\tthrow new Error(\"Invalid model key property\")\t\n\t\t}\n\t\tif($properties[$config.key] === undefined){\n\t\t\tthrow new Error(\"Model key does not exists in properties list\")\t\n\t\t}\n\t\treturn $config.key\n\n\t}", "get info() {\n switch (this.ci) {\n case 'github':\n return this.vars.PERCY_GITHUB_ACTION ? `github/${this.vars.PERCY_GITHUB_ACTION}` : this.ci;\n case 'gitlab':\n return `gitlab/${this.vars.CI_SERVER_VERSION}`;\n case 'semaphore':\n return this.vars.SEMAPHORE_GIT_SHA ? 'semaphore/2.0' : 'semaphore';\n default:\n return this.ci;\n }\n }", "get accessTokenKey() {\n return this.API\n ? `Vssue.${this.API.platform.name.toLowerCase()}.access_token`\n : '';\n }", "get keyIdInput() {\n return this._keyId;\n }", "getQueryParameter(key) {\n if (key) {\n const value = this.queryParams[key.toLowerCase()];\n if (typeof value == 'string') {\n return value;\n }\n else if (Array.isArray(value)) {\n return String(value[0]);\n }\n }\n return null;\n }", "get currentReqtag() {\n return this.totalsCache.filter(this.model.queryParams.reqtags).toString();\n }", "function getFlowCacheKey(node) {\n if (node.kind === 69 /* Identifier */) {\n var symbol = getResolvedSymbol(node);\n return symbol !== unknownSymbol ? \"\" + getSymbolId(symbol) : undefined;\n }\n if (node.kind === 97 /* ThisKeyword */) {\n return \"0\";\n }\n if (node.kind === 172 /* PropertyAccessExpression */) {\n var key = getFlowCacheKey(node.expression);\n return key && key + \".\" + node.name.text;\n }\n return undefined;\n }", "getPipelineVariableForTeam(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.PipelinesApi(); // String | The account // String | The UUID of the variable to retrieve.\n /*let username = \"username_example\";*/ /*let variableUuid = \"variableUuid_example\";*/ apiInstance.getPipelineVariableForTeam(\n incomingOptions.username,\n incomingOptions.variableUuid,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "getArg(key)\n {\n return this.args[key] || null;\n }", "static get key() {\n return 'Sms-job'\n }", "function getScheduledInterviewId() {\n return new URLSearchParams(window.location.search).get('interview'); \n}", "repositoriesWorkspaceRepoSlugCommitNodeStatusesBuildKeyGet(\n incomingOptions,\n cb\n ) {\n const Bitbucket = require('./dist');\n let defaultClient = Bitbucket.ApiClient.instance;\n // Configure API key authorization: api_key\n let api_key = defaultClient.authentications['api_key'];\n api_key.apiKey = incomingOptions.apiKey;\n // Uncomment the following line to set a prefix for the API key, e.g. \"Token\" (defaults to null)\n api_key.apiKeyPrefix = incomingOptions.apiKeyPrefix || 'Token';\n // Configure HTTP basic authorization: basic\n let basic = defaultClient.authentications['basic'];\n basic.username = 'YOUR USERNAME';\n basic.password = 'YOUR PASSWORD';\n // Configure OAuth2 access token for authorization: oauth2\n let oauth2 = defaultClient.authentications['oauth2'];\n oauth2.accessToken = incomingOptions.accessToken;\n\n let apiInstance = new Bitbucket.RepositoriesApi(); // String | The commit's SHA1 // String | The build status' unique ke // String | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. // String | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.\n /*let node = \"node_example\";*/ /*let key = \"key_example\";*/ /*let workspace = \"workspace_example\";*/ /*let repoSlug = \"repoSlug_example\";*/ apiInstance.repositoriesWorkspaceRepoSlugCommitNodeStatusesBuildKeyGet(\n incomingOptions.node,\n incomingOptions.key,\n incomingOptions.workspace,\n incomingOptions.repoSlug,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getWorkflowRunID() {\n const workflowRunID = parseInt(getRequiredEnvParam(\"GITHUB_RUN_ID\"), 10);\n if (Number.isNaN(workflowRunID)) {\n throw new Error(\"GITHUB_RUN_ID must define a non NaN workflow run ID\");\n }\n return workflowRunID;\n}", "function getAPIKeyRequest() {\n console.log(\"MarvelAPIURL \", marvelApiURL().marvelApiKey);\n return $.ajax ({\n url: marvelApiURL().marvelApiKey,\n method: \"GET\"\n }).done((marvelData) => {\n return marvelData;\n });\n}", "async getIdentityProviderKey(keyId, _options) {\n let _config = _options || this.configuration;\n // verify required parameter 'keyId' is not null or undefined\n if (keyId === null || keyId === undefined) {\n throw new baseapi_1.RequiredError('IdentityProviderApi', 'getIdentityProviderKey', 'keyId');\n }\n // Path Params\n const path = '/api/v1/idps/credentials/keys/{keyId}';\n const vars = {\n ['keyId']: String(keyId),\n };\n // Make Request Context\n const requestContext = _config.baseServer.makeRequestContext(path, http_1.HttpMethodEnum.GET, vars);\n requestContext.setHeaderParam('Accept', 'application/json, */*;q=0.8');\n let authMethod;\n // Apply auth methods\n authMethod = _config.authMethods['apiToken'];\n if (authMethod?.applySecurityAuthentication) {\n await authMethod?.applySecurityAuthentication(requestContext);\n }\n // Apply auth methods\n authMethod = _config.authMethods['oauth2'];\n if (authMethod?.applySecurityAuthentication) {\n await authMethod?.applySecurityAuthentication(requestContext);\n }\n const defaultAuth = _options?.authMethods?.default || this.configuration?.authMethods?.default;\n if (defaultAuth?.applySecurityAuthentication) {\n await defaultAuth?.applySecurityAuthentication(requestContext);\n }\n return requestContext;\n }", "function getProjectName() {\n\n //splitting the current url for getting the project name\n var path = $(location).attr('href');\n var splitted = path.split('/');\n return splitted[6];\n}", "getURL() {\n const urlParams = new URLSearchParams(window.location.search);\n this.myParam = urlParams.get(\"gp\");\n return this.myParam;\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs.constants.R_OK | fs.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "get stageNameInput() {\n return this._stageName;\n }", "get externalKey() {\n return this._externalKey;\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "filePath() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._filePath) {\n return this._filePath;\n }\n const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR];\n if (!pathFromEnv) {\n throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);\n }\n try {\n yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK);\n }\n catch (_a) {\n throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`);\n }\n this._filePath = pathFromEnv;\n return this._filePath;\n });\n }", "persistKey () {\n\t\t\treturn this.$options.name\n\t\t}", "repositoriesWorkspaceRepoSlugCommitNodeStatusesBuildKeyGet(\n incomingOptions,\n cb\n ) {\n const Bitbucket = require('./dist');\n let defaultClient = Bitbucket.ApiClient.instance;\n // Configure API key authorization: api_key\n let api_key = defaultClient.authentications['api_key'];\n api_key.apiKey = incomingOptions.apiKey;\n // Uncomment the following line to set a prefix for the API key, e.g. \"Token\" (defaults to null)\n api_key.apiKeyPrefix = incomingOptions.apiKeyPrefix || 'Token';\n // Configure HTTP basic authorization: basic\n let basic = defaultClient.authentications['basic'];\n basic.username = 'YOUR USERNAME';\n basic.password = 'YOUR PASSWORD';\n // Configure OAuth2 access token for authorization: oauth2\n let oauth2 = defaultClient.authentications['oauth2'];\n oauth2.accessToken = incomingOptions.accessToken;\n\n let apiInstance = new Bitbucket.CommitstatusesApi(); // String | The commit's SHA1 // String | The build status' unique ke // String | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. // String | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`.\n /*let node = \"node_example\";*/ /*let key = \"key_example\";*/ /*let workspace = \"workspace_example\";*/ /*let repoSlug = \"repoSlug_example\";*/ apiInstance.repositoriesWorkspaceRepoSlugCommitNodeStatusesBuildKeyGet(\n incomingOptions.node,\n incomingOptions.key,\n incomingOptions.workspace,\n incomingOptions.repoSlug,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getCurrentRevocationKeyAlias(aliasName) {\n return _getCurrentAlias(aliasName, REVOCATIONKEY_ALIASES_FILENAME)\n}", "getPipelineVariableForUser(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.PipelinesApi(); // String | The account // String | The UUID of the variable to retrieve.\n /*let username = \"username_example\";*/ /*let variableUuid = \"variableUuid_example\";*/ apiInstance.getPipelineVariableForUser(\n incomingOptions.username,\n incomingOptions.variableUuid,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "getKey() {\n return this.key;\n }", "get signingAlgorithmInput() {\n return this._signingAlgorithm;\n }", "getRepositoryPipelineVariables(incomingOptions, cb) {\n const Bitbucket = require('./dist');\n\n let apiInstance = new Bitbucket.PipelinesApi(); // String | The account // String | The repository.\n /*let username = \"username_example\";*/ /*let repoSlug = \"repoSlug_example\";*/ apiInstance.getRepositoryPipelineVariables(\n incomingOptions.username,\n incomingOptions.repoSlug,\n (error, data, response) => {\n if (error) {\n cb(error, null, response);\n } else {\n cb(null, data, response);\n }\n }\n );\n }", "function getStorageKey(field, variables) {\n if (field.storageKey) {\n // TODO T23663664: Handle nodes do not yet define a static storageKey.\n return field.storageKey;\n }\n\n var args = field.args,\n name = field.name;\n return args && args.length !== 0 ? formatStorageKey(name, getArgumentValues(args, variables)) : name;\n}", "function getMapBoxAPIKey() {\n \n var mapboxAPIKey = \"\";\n\n mapboxAPIKey = C_MAPBOX_API_KEY;\n \n // Later = Replace API key fetch from DB \n // mapboxAPIKey = d3.request(apiUrlMapboxKey).get({retrun});\n\n return mapboxAPIKey;\n\n}", "get kmsKeyIdInput() {\n return this._kmsKeyId;\n }", "get kmsKeyIdInput() {\n return this._kmsKeyId;\n }", "get kmsKeyIdInput() {\n return this._kmsKeyId;\n }", "function gatherStorage(result) { \r\n API_KEY = result.api_key; //Save in memory\r\n}", "get storedKey() {\n return this.store[this.storedKeyString]\n }", "getMatlabPath () {\n return atom.config.get('atom-matlab-editor.matlabRootPath')\n }", "get keyInput() {\n return this._key;\n }", "function getSelfParams() {\n var scripts = document.getElementsByTagName('script');\n scripts = scripts[scripts.length-1];\n var pa = scripts.src.split(\"?\").pop().split(\"&\");\n var p = {};\n for(var j=0; j<pa.length; j++) {\n var kv = pa[j].split(\"=\");\n p[kv[0]] = kv[1];\n }\n return p;\n }", "_buildFilePath(filename){\n\t\t/*\n\t\tBuilds the file path for where the key/store JSON file is stored.\n\t\t@param {string} filename: The name of the file.\n\t\t@return {string} The full path of the key/store file.\n\t\t*/\n\t\tvar dirPath = process.env.KEY_STORE_PATH;\n\t\tif (!dirPath){\n\t\t\tthrow new Error(\"Set the KEY_STORE_PATH environment variable.\");\n\t\t}\n\t\treturn path.join(dirPath, filename);\n\t}", "static async getJob(id) {\n const res = await this.request(`jobs/${id}`);\n return res.job;\n }", "function getKey(_, ctx) {\n var k = 'k:' + _.$key + '_' + (!!_.$flat);\n return ctx.fn[k] || (ctx.fn[k] = vegaUtil.key(_.$key, _.$flat));\n }", "async getIssueByKey(key) {\n if (typeof key !== 'string') {\n console.log('Invalid Jira Issue Key: ' + key);\n return null;\n }\n \n try {\n let response = await this.client.get(`issue/${key}`);\n let data = response.data\n return data;\n } catch (err) {\n console.log(err);\n return null;\n }\n }" ]
[ "0.5378238", "0.5286659", "0.5176701", "0.5176701", "0.51040924", "0.5077268", "0.49129438", "0.49118406", "0.48445395", "0.48075265", "0.48023075", "0.47947207", "0.4781693", "0.47514236", "0.47403872", "0.47290963", "0.47226033", "0.46845457", "0.46732897", "0.46472365", "0.46307132", "0.46299845", "0.46298882", "0.46281043", "0.46093437", "0.46063074", "0.46053067", "0.4569379", "0.45439085", "0.4529945", "0.45211664", "0.45136997", "0.44988853", "0.44909564", "0.44897565", "0.44892964", "0.4486367", "0.44789082", "0.44778714", "0.44685146", "0.44570532", "0.4453442", "0.44488582", "0.4447133", "0.44414544", "0.44388968", "0.44351915", "0.44298977", "0.44289565", "0.44084495", "0.4404025", "0.44031534", "0.44029525", "0.43907797", "0.4376912", "0.4372544", "0.43447766", "0.43324596", "0.4327048", "0.43244594", "0.43200126", "0.4317429", "0.43142834", "0.43057385", "0.42961368", "0.42919922", "0.4285068", "0.42797443", "0.42727697", "0.42724928", "0.42712805", "0.42712805", "0.42712805", "0.42712805", "0.42712805", "0.42712805", "0.42712805", "0.42712805", "0.42712805", "0.42677343", "0.42546064", "0.42519358", "0.42508346", "0.4247499", "0.4207774", "0.4198341", "0.4191641", "0.419103", "0.41910198", "0.41910198", "0.41910198", "0.4185464", "0.4185312", "0.41744614", "0.41725633", "0.41600278", "0.41514137", "0.41495162", "0.41489762", "0.41437915" ]
0.7351301
0
Get the ref currently being analyzed.
async function getRef() { // Will be in the form "refs/heads/master" on a push event // or in the form "refs/pull/N/merge" on a pull_request event const ref = getRequiredEnvParam("GITHUB_REF"); // For pull request refs we want to detect whether the workflow // has run `git checkout HEAD^2` to analyze the 'head' ref rather // than the 'merge' ref. If so, we want to convert the ref that // we report back. const pull_ref_regex = /refs\/pull\/(\d+)\/merge/; const checkoutSha = await exports.getCommitOid(); if (pull_ref_regex.test(ref) && checkoutSha !== getRequiredEnvParam("GITHUB_SHA")) { return ref.replace(pull_ref_regex, "refs/pull/$1/head"); } else { return ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ref() {\n return RTG_VCF_RECORD.getRefCall();\n }", "function getReference(){\n\t\treturn this.reference;\n\t}", "get reference() {\n\t\treturn this.__reference;\n\t}", "get localReference() {\n return this.localRef;\n }", "get reference () {\n\t\treturn this._reference;\n\t}", "get reference () {\n\t\treturn this._reference;\n\t}", "get reference () {\r\n\t\treturn this._reference;\r\n\t}", "getReference() {\n return this.reference;\n }", "get references() {\n return getLocalRefs(this.nativeNode);\n }", "get callerReference() {\n return this.getStringAttribute('caller_reference');\n }", "function _getCurrent(){\n return current || null;\n }", "function getEventListenersTarget() {\n return instance.props.triggerTarget || reference;\n }", "async peekReference(){\n\n }", "function getEventListenersTarget() {\n return instance.props.triggerTarget || reference;\n }", "track() {\n return this.reference('href');\n }", "get objectReferenceValue() {}", "getRef() {\n if (this.objectRef) {\n return this.objectRef;\n }\n const featureType = this.object.data.feature_type;\n const featureId = this.object.data.id;\n // e.g. https://ci.kbase.us/#dataview/29768/2?sub=Feature&subid=b0001\n const {\n workspace_id: workspaceId,\n object_id: objectId,\n object_version: version\n } = this.object;\n const objectRef = [workspaceId, objectId, version].join('/');\n const subObjectRef = `${objectRef}?sub=${featureType}&subid=${featureId}`;\n // TODO: fix this\n this.objectRef = {\n workspaceId: this.object.access_group,\n objectId: this.object.obj_id,\n version: this.object.version,\n objectRef: objectRef,\n subObjectRef: subObjectRef,\n featureType: featureType,\n feature: featureId,\n featureId: featureId,\n dataviewId: subObjectRef\n };\n return this.objectRef;\n }", "function Fay$$readRef(ref,x){\n return ref.value;\n}", "getReference(id) {\n for (let ref of this.refs) {\n if (ref.id === id)\n return ref;\n }\n return undefined;\n }", "get pReference() {\n\t\treturn this.__pReference;\n\t}", "function getCurrentBranch() {\n return exec$1(`git symbolic-ref --short HEAD`);\n}", "async _current() {\n Logger.info(\"Looking for the current PR...\");\n const stagedBranchSha = await GH.getReference(Config.stagingBranchPath());\n const stagedBranchCommit = await GH.getCommit(stagedBranchSha);\n Logger.info(\"Staged branch head sha: \" + stagedBranchCommit.sha);\n const prNum = Util.ParsePrNumber(stagedBranchCommit.message);\n if (prNum === null) {\n Logger.info(\"Could not track a PR by the staged branch.\");\n } else {\n const pr = await GH.getPR(prNum, false);\n if (pr.state === 'open') {\n Logger.info(\"PR\" + prNum + \" is the current\");\n return pr;\n }\n Logger.info(\"Tracked PR\" + prNum + \" by the staged branch but it is already closed.\");\n }\n Logger.info(\"No current PR found.\");\n return null;\n }", "target() {\n return internal(this).target;\n }", "get _openedSnackBarRef() {\n const parent = this._parentSnackBar;\n return parent ? parent._openedSnackBarRef : this._snackBarRefAtThisLevel;\n }", "get referenceAllele() {\n\t\treturn this.__referenceAllele;\n\t}", "get() {\n return this.filePointer.get();\n }", "get() {\n return this.filePointer.get();\n }", "readlinkCached() {\n return this.#linkTarget;\n }", "get whoReference () {\r\n\t\treturn this._whoReference;\r\n\t}", "_current() {\n return this._history[this.index];\n }", "resolved (stack = []) {\n if (stack.indexOf(this) !== -1) {\n throw (new ParserError('References can not be circular!', {}))\n }\n var refPath = this.refName.split('.')\n var reference = this.resolve(this.parent, refPath)\n if (reference) {\n if (reference['refName']) {\n return reference.resolved(stack.concat([this]))\n } else {\n return reference\n }\n }\n return null\n }", "get references() {\n if (this._references === undefined) {\n this.findReferences();\n }\n return this._references;\n }", "getCurrent() \r\n\t{\r\n\t\treturn this.current;\r\n\t}", "getCurrent(){\n\t\treturn this.currentFeature;\n\t}", "get references() {\n //build the references object if it's missing.\n if (!this._references) {\n this.findReferences();\n }\n return this._references;\n }", "get_currentJob()\n {\n return this.liveFunc._currentJob;\n }", "get valueReference () {\r\n\t\treturn this.__valueReference;\r\n\t}", "makeRef(){\n let newRef = this.ref + 1\n if(newRef === this.ref){ this.ref = 0 } else { this.ref = newRef }\n\n return this.ref.toString()\n }", "get attachedRef() {\n return this._attachedRef;\n }", "get currentTrack() {\n // XXX: no logging here for performance reasons.\n return this._currentTrack;\n }", "get currentFrame() {\n const [frameId] = store.get('activeFrameIds')\n\n return this.frames[frameId || this.frameIds[0]]\n }", "getCurrentFromState(state) {\n return this._getSubState(state).current || null;\n }", "function refObjectToPath(ref) {\n if (typeof ref.$ref === 'string') {\n return ref.$ref/*.substring(1)*/;\n } else {\n return null;\n }\n }", "function getCurrentDocument() {\n return service.currentBook.currentDocument;\n }", "function getCurrentSha() {\n return exec$1(`git rev-parse HEAD`);\n}", "get rootRef() {\n return this._db.ref();\n }", "get innerRef() {\n return this.#innerRef\n }", "getReference(){\n var x = Date.now();\n var y = Math.random().toString().substring(2);\n y = parseInt(y);\n var reference = (x*y).toString().substring(2, 6);\n return reference;\n }", "function $Ref () {\n /**\n * The file path or URL of the referenced file.\n * This path is relative to the path of the main JSON schema file.\n *\n * This path does NOT contain document fragments (JSON pointers). It always references an ENTIRE file.\n * Use methods such as {@link $Ref#get}, {@link $Ref#resolve}, and {@link $Ref#exists} to get\n * specific JSON pointers within the file.\n *\n * @type {string}\n */\n this.path = undefined;\n\n /**\n * The resolved value of the JSON reference.\n * Can be any JSON type, not just objects. Unknown file types are represented as Buffers (byte arrays).\n * @type {?*}\n */\n this.value = undefined;\n\n /**\n * The {@link $Refs} object that contains this {@link $Ref} object.\n * @type {$Refs}\n */\n this.$refs = undefined;\n\n /**\n * Indicates the type of {@link $Ref#path} (e.g. \"file\", \"http\", etc.)\n * @type {?string}\n */\n this.pathType = undefined;\n}", "function ref(name) {\n return builder => {\n if (name === \"this\") {\n return _create_node__WEBPACK_IMPORTED_MODULE_0__[\"thisReference\"](builder.token(_read_token_builder__WEBPACK_IMPORTED_MODULE_1__[\"id\"](\"this\")));\n } else if (name.startsWith(\"@\")) {\n return _create_node__WEBPACK_IMPORTED_MODULE_0__[\"argReference\"](builder.token(_read_token_builder__WEBPACK_IMPORTED_MODULE_1__[\"arg\"](name)));\n } else {\n return _create_node__WEBPACK_IMPORTED_MODULE_0__[\"varReference\"](builder.token(_read_token_builder__WEBPACK_IMPORTED_MODULE_1__[\"id\"](name)));\n }\n };\n}", "current() {\n return this._currentToken;\n }", "current() {\n return this._currentToken;\n }", "get referenceRange () {\r\n\t\treturn this._referenceRange;\r\n\t}", "getReferenceValue() {\n return (this.refs || []).map((ref) => ref.value);\n }", "get currentWidget() {\n return this._tracker.currentWidget;\n }", "function ɵɵgetCurrentView() {\n return getLView();\n }", "function createRef(){var refObject={current:null};{Object.seal(refObject);}return refObject;}", "function createRef(){var refObject={current:null};{Object.seal(refObject);}return refObject;}", "function $Ref () {\n /**\n * The file path or URL of the referenced file.\n * This path is relative to the path of the main JSON schema file.\n *\n * This path does NOT contain document fragments (JSON pointers). It always references an ENTIRE file.\n * Use methods such as {@link $Ref#get}, {@link $Ref#resolve}, and {@link $Ref#exists} to get\n * specific JSON pointers within the file.\n *\n * @type {string}\n */\n this.path = undefined;\n\n /**\n * The resolved value of the JSON reference.\n * Can be any JSON type, not just objects. Unknown file types are represented as Buffers (byte arrays).\n *\n * @type {?*}\n */\n this.value = undefined;\n\n /**\n * The {@link $Refs} object that contains this {@link $Ref} object.\n *\n * @type {$Refs}\n */\n this.$refs = undefined;\n\n /**\n * Indicates the type of {@link $Ref#path} (e.g. \"file\", \"http\", etc.)\n *\n * @type {?string}\n */\n this.pathType = undefined;\n\n /**\n * List of all errors. Undefined if no errors.\n *\n * @type {Array<JSONParserError | ResolverError | ParserError | MissingPointerError>}\n */\n this.errors = undefined;\n}", "function GetTypeFromRef(_ref) {\n _ref = String(_ref);\n return _ref[0] === \"#\" ? _ref.slice(_ref.lastIndexOf(\"/\") + 1) : _ref;\n}", "function createRef() {\n var refObject = {\n current: null\n };\n Object.seal(refObject);\n return refObject;\n }", "function getLocalRefs(target){var context=loadLContext(target);if(context.localRefs===undefined){context.localRefs=discoverLocalRefs(context.lView,context.nodeIndex);}return context.localRefs||{};}", "get currentFrame() {\n return this._currentFrame\n }", "_getStartRefLineNumber(referenceNumber) {\n var refRef = PassageMarkdown.START_REF_PREFIX + referenceNumber;\n var ref = this.refs[refRef];\n\n if (!ref) {\n return null;\n }\n\n var $ref = $$1(ReactDOM$c.findDOMNode(ref)); // We really care about the first text after the ref, not the\n // ref element itself:\n\n var $refText = $ref.next();\n\n if ($refText.length === 0) {\n // But if there are no elements after the ref, just\n // use the ref itself.\n $refText = $ref;\n }\n\n var vPos = $refText.offset().top;\n return this.state.startLineNumbersAfter + 1 + this._convertPosToLineNumber(vPos);\n }", "function getFrmRef(srcFrm,tgetFrm) {\r\n\tvar rtnVal = ''\r\n\r\n\tif (tgetFrm != srcFrm) {\r\n\t\tvar tFrm = frmDepth(top.frames,tgetFrm)\r\n\t\tvar sFrm = frmDepth(top.frames,srcFrm)\r\n\t\tif (sFrm.length == tFrm.length) {\r\n\t\t\tl = tFrm.lastIndexOf('[')\r\n\t\t\t\r\n\t\t\tif (l) {\r\n\t\t\t\twhile ( sFrm.substring(0,l) != tFrm.substring(0,l) )\r\n\t\t\t\tl = tFrm.lastIndexOf('[',l-1)\r\n\t\t\t\ttFrm = tFrm.substr(l)\r\n\t\t\t\tsFrm = sFrm.substr(l)\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tvar cnt = 0, p = '',str = tFrm\r\n\t\twhile ((k = str.lastIndexOf('[')) != -1) {\r\n\t\t\tcnt++ \r\n\t\t\tstr = str.substring(0,k)\r\n\t\t}\r\n\r\n\t\tfor (var i = 0; i<cnt; i++) p = p + 'parent.'\r\n\t\trtnVal = p + 'frames' + sFrm + '.'\r\n\t}\r\n \r\n\treturn rtnVal\r\n}", "get defaultValueReference() {\n\t\treturn this.__defaultValueReference;\n\t}", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "source() {\n return internal(this).source;\n }", "get _openedKeyboardRef() {\n const parent = this._parentKeyboard;\n return parent ? parent._openedKeyboardRef : this._keyboardRefAtThisLevel;\n }", "getCurrentTestInfo() {\n if (!this.currentTest) {\n throw new Error(\"Can't obtain TestInfo if not actively in a test!\");\n }\n return this.currentTest;\n }", "function createRef() {\n var refObject = {\n current: null,\n };\n\n {\n Object.seal(refObject);\n }\n\n return refObject;\n }", "function ReferenceCounter() {\r\n}", "chartInstance() {\n if (this.chartMounted) {\n if (!this.$refs[ref]) {\n console.warn(`${this.displayName}[withChart]: ref '${ref}' should be supplied`);\n }\n\n return this.$refs[ref];\n }\n\n return null;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function createRef() {\n var refObject = {\n current: null\n };\n {\n Object.seal(refObject);\n }\n return refObject;\n }", "function getStateRef(objectType, objectId, view) {\n return objectType + view + \"({id:\" + objectId + \"})\"\n }", "function getCurrentURI()\n{\n var focusedWindow = document.commandDispatcher.focusedWindow;\n var contentFrame = isContentFrame(focusedWindow) ? focusedWindow : window.content;\n\n var nav = contentFrame.QueryInterface(Ci.nsIInterfaceRequestor)\n .getInterface(Ci.nsIWebNavigation);\n return nav.currentURI;\n}" ]
[ "0.72656727", "0.70406306", "0.6600375", "0.6491458", "0.6458944", "0.6458944", "0.6454647", "0.6428868", "0.59080625", "0.5801541", "0.5779713", "0.5757195", "0.57558364", "0.57345825", "0.57246715", "0.5719484", "0.57193244", "0.56946814", "0.5646858", "0.5618602", "0.56006527", "0.5593982", "0.555606", "0.55380994", "0.553698", "0.5536975", "0.5536975", "0.5525743", "0.55166364", "0.5513863", "0.5498179", "0.54534197", "0.53956085", "0.5385825", "0.53785", "0.5373277", "0.5353865", "0.5347577", "0.53468883", "0.5346203", "0.53386074", "0.53248596", "0.53145856", "0.5304666", "0.5288644", "0.52792794", "0.52503693", "0.5245805", "0.5236432", "0.52006143", "0.5193892", "0.5193892", "0.51890236", "0.518012", "0.5157672", "0.51491433", "0.51458037", "0.51458037", "0.5138931", "0.51341397", "0.5131235", "0.5104901", "0.5104322", "0.50933975", "0.5092601", "0.5087705", "0.5085731", "0.5085731", "0.5083052", "0.5073729", "0.50719464", "0.5071673", "0.5053432", "0.5050912", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.5041289", "0.50405353", "0.5037626" ]
0.64211315
8
Send a status report to the code_scanning/analysis/status endpoint. Optionally checks the response from the API endpoint and sets the action as failed if the status report failed. This is only expected to be used when sending a 'starting' report. Returns whether sending the status report was successful of not.
async function sendStatusReport(statusReport, ignoreFailures) { if (getRequiredEnvParam("GITHUB_SERVER_URL") !== util_1.GITHUB_DOTCOM_URL) { core.debug("Not sending status report to GitHub Enterprise"); return true; } if (util_1.isLocalRun()) { core.debug("Not sending status report because this is a local run"); return true; } const statusReportJSON = JSON.stringify(statusReport); core.debug(`Sending status report: ${statusReportJSON}`); const nwo = getRequiredEnvParam("GITHUB_REPOSITORY"); const [owner, repo] = nwo.split("/"); const client = api.getActionsApiClient(); const statusResponse = await client.request("PUT /repos/:owner/:repo/code-scanning/analysis/status", { owner, repo, data: statusReportJSON, }); if (!ignoreFailures) { // If the status report request fails with a 403 or a 404, then this is a deliberate // message from the endpoint that the SARIF upload can be expected to fail too, // so the action should fail to avoid wasting actions minutes. // // Other failure responses (or lack thereof) could be transitory and should not // cause the action to fail. if (statusResponse.status === 403) { core.setFailed("The repo on which this action is running is not opted-in to CodeQL code scanning."); return false; } if (statusResponse.status === 404) { core.setFailed("Not authorized to used the CodeQL code scanning feature on this repo."); return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function statusCheck() {\n var statusLog = document.querySelector(\".status\");\n var status = response.status;\n console.log(status);\n\n statusLog.innerHTML += status;\n }", "function sendJobStatusRequest() {\n axios_1.default\n .get(options.importServiceUrl + \"/status?appName=\" + options.appName + \"&jobName=\" + taskName + \"&after=\" + logOffset, requestBaseOptions)\n .then(function (response) {\n var body = response.data;\n try {\n var state = body.state, messages = body.messages;\n messages.forEach(function (entry) {\n logOffset++;\n var entryBits = /^(\\[([A-Z]+)\\] )?(.+)/.exec(entry);\n var entryLevel = 'INFO';\n var message = entry;\n if (entryBits && entryBits[2]) {\n entryLevel = entryBits[2];\n // 3 = '[] ' in say [INFO] My log message\n // we're not using the capture group as the message might be multi-line\n message = entry.substring(entryLevel.length + 3);\n }\n if (message.startsWith('[JSS] - ')) {\n message = message.substring(8);\n }\n logJobStatus({ message: message, entryLevel: entryLevel, warnings: warnings, errors: errors });\n });\n if (state === 'Finished') {\n finishWatchJobStatusTask({ warnings: warnings, errors: errors, resolve: resolve, reject: reject });\n return;\n }\n setTimeout(sendJobStatusRequest, 1000);\n }\n catch (error) {\n console.error(chalk_1.default.red(\"Unexpected error processing reply from import status service: \" + error));\n console.error(chalk_1.default.red(\"Response: \" + body));\n console.error(chalk_1.default.red('Consult the Sitecore logs for details.'));\n reject(error);\n }\n })\n .catch(function (error) {\n console.error(chalk_1.default.red('Unexpected response from import status service. The import task is probably still running; check the Sitecore logs for details.'));\n if (error.response) {\n console.error(chalk_1.default.red(\"Status message: \" + error.response.statusText));\n console.error(chalk_1.default.red(\"Status: \" + error.response.status));\n }\n else {\n console.error(chalk_1.default.red(error.message));\n }\n reject();\n });\n }", "function checkStatus() {\n var checkUrl = Routing.generate(\"openview_export_api_v1_check\");\n $.ajax({\n 'url': checkUrl\n }).done(function(data){\n var jobStatus = JSON.parse(data);\n // if no job is active\n if (jobStatus.activejob == 0) {\n // sho start button\n $('.box-start-process').removeClass('hidden');\n $('.box-process-status').addClass('hidden');\n // if no job is active, but at previous check there was some job active, it means that it has just finished.\n // so show the finished export panel\n if (exporting) {\n exporting = false;\n $('.box-process-finished').removeClass('hidden');\n }\n } \n // if a job is active\n else {\n // remember a job is currently in progress\n exporting = true;\n // show statusbar and hides everithing else\n $('.box-start-process').addClass('hidden');\n $('.box-process-status').removeClass('hidden');\n updateStatus(jobStatus.job);\n }\n $('.box-waiting').addClass('hidden');\n }).fail(function(){\n $('.box-waiting').addClass('hidden');\n });\n}", "function statusAction (type, status, data) {\n return {\n type: LP_API_ACTION_NAMESPACE + type,\n payload: { type, status, data }\n }\n}", "function checkstatus() {\n\n var errfmt = ' '; // --json';\n\n var child = spawn(flowbin, ['status'], {\n cwd: path.resolve(__dirname),\n env: process.env\n });\n\n child.on('exit', function(code) {\n console.log('flow status: query finished.');\n });\n\n child.stdout.on('data', function(data){\n\n if(errfmt == '--json') {\n var errdata;\n try {\n errdata = JSON.parse(data);\n }\n catch(e) {\n errdata = data.toString();\n }\n\n // TODO: customize error message to make it more readable.\n console.log(errdata);\n\n } else {\n // remove dirname from long path names.\n var regex = new RegExp(path.resolve(__dirname), \"g\");\n var errmsg = data.toString().replace(regex, '');\n console.log(errmsg);\n }\n\n });\n\n}", "function buildISSFullStatusResponse(satData) {\n\t//var imageRequestID = generateImageRequestID();\n\tvar cardTitle = \"ISS Status\";\n\tvar speechOutput = \"\";\n\tvar repromptText = \" \";\n\tvar shouldEndSession = true;\n\n\tspeechOutput += \"At a latitude of \" + Math.round(satData.latitudeDeg) + \" and longitude of \" + Math.round(satData.longitudeDeg) + \", ISS is currently \";\n\t\n\tif(satData.water !== ' ' || satData.city !== ' ' || satData.state !== ' ' || satData.country !== ' ') {\n\t\tspeechOutput += \"over \";\n\t}\n\n\tif(satData.water !== ' ') {\n\t\tspeechOutput += \"the \" + satData.water + \", \";\n\t}\n\t\n\tif(satData.city !== ' ') {\n\t\tspeechOutput += satData.city + \", \";\n\t}\n\t\n\tif(satData.state !== ' ' && satData.state !== satData.country) {\n\t\tspeechOutput += satData.state + \", \";\n\t}\n\t\n\tif(satData.country !== ' ') {\n\t\tspeechOutput += satData.country + \", \";\n\t}\n\t\n\tspeechOutput += \"traveling at \" + formatNumber(satData.speed) + \" kilometers per hour at an altitude of \" + formatNumber(satData.height) + \" kilometers. \";\n\tspeechOutput += \"That's \" + formatNumber(kilometersToMiles(satData.speed)) + \" miles per hour at an altitude of \" + formatNumber(kilometersToMiles(satData.height)) + \" miles.\";\n\n\treturn buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession);\n}", "function handleStatusResponse(obj) {\n // obj.data contains a JSON element\n var statusData = gadgets.json.parse(obj.data);\n var responseLength = 0;\n\n if (statusData != null) {\n responseLength = statusData.length;\n }\n\n // Loop through all of the active statuses\n for (var i = 0; i < responseLength; i++) {\n statusList[statusIndex] = new Array(4);\n statusList[statusIndex][0] = statusData[i].id;\n if (statusData[i].is_system === false) {\n customStatusCount++;\n statusList[statusIndex][1] = \"custom_status\" + String(customStatusCount);\n } else {\n statusList[statusIndex][1] = statusData[i].name;\n }\n statusList[statusIndex][2] = statusData[i].label;\n statusList[statusIndex][3] = statusData[i].color_dark;\n\n statusIndex++;\n }\n\n // This should never happen if everything is configured correctly, but just in case\n if (statusIndex == 0) {\n document.getElementById('projectsAllCaption').innerHTML = \"Unable to retrieve the list of statuses\";\n msg.dismissMessage(loadMessage);\n gadgets.window.adjustHeight();\n } else {\n fetchProjectInfo();\n }\n}", "function updateStatus(errorOccured) {\n // show the deployment id\n let deploymentId = tableau.extensions.settings.get(DEPLOYMENT_ID_KEY);\n let workbookName = getWorkbookName();\n\n console.log(\"UPDATESTATUS() -- \" + deploymentId + \" \" + workbookName);\n\n $('#deployment-id-readout').text(deploymentId);\n\n let statusText = \"Running\"\n $('#statusCircle').removeClass('orange red');\n $('#statusCircle').addClass('green');\n $('#configureButton').addClass('hidden');\n\n if (!deploymentId || !workbookName || errorOccured) {\n statusText = \"Action required!\"\n $('#statusCircle').removeClass('green red');\n $('#statusCircle').addClass('orange');\n $('#configureButton').removeClass('hidden');\n }\n // $('#extension-status').html(status);\n $('#statusText').html(statusText);\n }", "function handleStatusResponse(obj) {\n // obj.data contains a JSON element\n var statusData = gadgets.json.parse(obj.data);\n var responseLength = 0;\n\n if (statusData != null) {\n responseLength = statusData.length;\n }\n\n // Loop through all of the active statuses\n for (var i = 0; i < responseLength; i++) {\n statusList[statusIndex] = new Array(4);\n statusList[statusIndex][0] = statusData[i].id;\n if (statusData[i].is_system === false) {\n customStatusCount++;\n statusList[statusIndex][1] = \"custom_status\" + String(customStatusCount);\n } else {\n statusList[statusIndex][1] = statusData[i].name;\n }\n statusList[statusIndex][2] = statusData[i].label;\n statusList[statusIndex][3] = statusData[i].color_dark;\n\n statusIndex++;\n }\n\n // This should never happen if everything is configured correctly, but just in case\n if (statusIndex == 0) {\n document.getElementById('milestoneCaption').innerHTML = \"Unable to retrieve the list of statuses\";\n msg.dismissMessage(loadMessage);\n gadgets.window.adjustHeight();\n } else {\n fetchProjectInfo();\n }\n}", "static checkSuccessStatus(commandOut) {\n expect(commandOut.output).not.toMatch(UserInteractor.ERRORS.ACCESS_FAILED);\n expect(commandOut.code).toEqual(0);\n }", "submitStatusReport (statusReportId) {\n console.log('submitStatusReport:', statusReportId);\n let user = Auth.requireAuthentication();\n \n // Validate the data is complete\n check(statusReportId, String);\n \n // Load the statusReport to authorize the edit\n let statusReport = StatusReports.findOne(statusReportId);\n \n // Validate that the current user is an administrator\n if (user.managesContributor(statusReport.contributorId) || user.isAdmin() || user.contributorId() === statusReport.contributorId) {\n // Mark the report submitted\n StatusReports.update(statusReportId, {\n $set: {\n state : StatusReportStates.submitted,\n submitDate: Date.now()\n }\n });\n \n // Find any settings for this context and make sure they get updated\n let setting = StatusReportSettings.findOne({});\n if(setting){\n \n }\n } else {\n console.error('Non-authorized user tried to submit a statusReport:', user.username, statusReportId);\n throw new Meteor.Error(403);\n }\n }", "function sendStatusUpdate() {\n var queryParamString = \"type=heartbeat\";\n queryParamString += \"&username=\" + AccountServices.username;\n queryParamString += \"&displayName=\" + MyAvatar.displayName;\n queryParamString += \"&status=\";\n queryParamString += currentStatus;\n\n var uri = REQUEST_URL + \"?\" + queryParamString;\n\n if (DEBUG) {\n console.log(\"sendStatusUpdate: \" + uri);\n }\n\n request({\n uri: uri\n }, function (error, response) {\n startHeartbeatTimer();\n\n if (error || !response || response.status !== \"success\") {\n console.error(\"Error with updateStatus: \" + JSON.stringify(response));\n return;\n }\n });\n }", "function check_status(json) {\n if (json[\"status\"] == \"OK\") return true;\n return false;\n }", "function checkStatus() {\n $.ajax({\n type: 'GET',\n url: url,\n success: function (html) {\n let status = parseStatusHTML(html);\n if (typeof status !== 'undefined' && status !== 'QUE') {\n browser.runtime.sendMessage({\n action: 'displayStatusNotification',\n submitID: submitID,\n problemCode: problemCode,\n problemStatus: status,\n });\n location.reload();\n } else {\n setTimeout(checkStatus, REFRESH_INTERVAL);\n }\n },\n error: function () {\n setTimeout(checkStatus, REFRESH_INTERVAL);\n },\n });\n }", "function GetReportStatus()\n{\n\t'use strict';\n\n\ttry {\n\t\t// statements\n\t\t$.ajax({\n\t\t\turl: 'http://sanoh-mx/api/services/status.php',\n\t\t\ttype: 'get',\n\t\t\tdataType: 'json',\n\t\t\tcontentType:'application/json; charset=utf-8',\n\t\t\tsuccess:function(response){\n\t\t\t\t\n\t\t\t\tvar _i = JSON.parse(response.payload);\n\t\t\t\t$.each(_i, function(i, index){\n\t\t\t\t\t$(\"#filter-report-select\").append('<option value=\"'+index.idStatus+'\">'+index.statusName+'</option>');\n\t\t\t\t});\n\n\t\t\t\t_statusLoaded = true;\n\t\t\t},\n\t\t\terror:function(xhr, j, q){\n\t\t\t\tconsole.log(xhr.responseText);\n\t\t\t}\n\t\t});\n\t}catch(e) {\n\t\t// statements\n\t\tconsole.log(e);\n\t}\n}", "function checkStatus() {\n\n }", "function buildISSSpeedStatusResponse(satData) {\n\tvar cardTitle = \"ISS Status: Speed\";\n\tvar repromptText = \" \";\n\tvar shouldEndSession = true;\n\tvar speechOutput = \"ISS is currently traveling at \" + formatNumber(satData.speed) + \" kilometers per hour. That's \" + formatNumber(kilometersToMiles(satData.speed)) + \" miles per hour.\";\n\n\treturn buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession);\n}", "evaluateStatus() {\n const oldStatus = this._jvb121;\n const newStatus = !this._conference.isP2PActive() && this._conference.getParticipantCount() <= 2;\n\n if (oldStatus !== newStatus) {\n this._jvb121 = newStatus;\n logger.debug(`JVB121 status ${oldStatus} => ${newStatus}`);\n\n this._conference.eventEmitter.emit(_JitsiConferenceEvents__WEBPACK_IMPORTED_MODULE_1__[\"JVB121_STATUS\"], oldStatus, newStatus);\n }\n }", "isSuccess(status, _headers, _payload) {\n return (0, _errors.isSuccess)(status);\n }", "function checkJobStatus(href, clientId, token) {\n /* Prepare the options for the HTTPS request call to get the status of our job */\n let imsAuth = href + '?response_type=code&client_id' + clientId + '/scope=AdobeID%2Copenid%2Ccreative_sdk'\n let options = {\n uri: href,\n headers: {},\n json: true\n }\n /* Send a GET request for the status */\n return request(options)\n}", "function check_and_report() {\n \n }", "function check_status() {\n YUI().use(\"io-base\", function(Y) {\n var url = M.cfg.wwwroot+'/local/rlsiteadmin/mass/addonstatus.php?addoncommand='+$response.file+'&hash='+$response.hash;\n var cfg = {\n method: 'GET',\n on: {\n success: function(id, o) {\n var $status = null;\n YUI().use('json-parse', function (Y) {\n try {\n $status = Y.JSON.parse(o.responseText);\n var status = \"waiting\";\n if ($status.running) {\n status = \"running\";\n } else if (!$status.running && $status.fileexists === false && $status.results) {\n status = \"completed\";\n }\n if (status != \"completed\") {\n update_modal(status);\n setTimeout(function() {\n check_status();\n }, 2000);\n } else {\n $response.results = $status.results;\n complete_feedback();\n }\n }\n catch (e) {\n Y.log(\"Parsing failed.\");\n }\n });\n },\n failure: function(c, o) {\n if (o.status == '503') {\n // Ignore failures caused by this site is upgrading messages.\n setTimeout(function() {\n check_status();\n }, 2000);\n return;\n }\n try {\n $status = Y.JSON.parse(o.responseText);\n complete_feedback();\n } catch (e) {\n // Some other error has occured. The progress bar will now stop moving.\n Y.log(\"Parsing failed.\");\n }\n }\n }\n };\n $addons = Y.io(url, cfg);\n });\n }", "function sendReport() {\r\n\t\r\n\ttry {\r\n\t\t// Step 1. Get Report Model by ReportName\r\n\t\tvar reportInfoResult = aa.reportManager.getReportInfoModelByName(reportName);\r\n\t\tif(reportInfoResult.getSuccess() == false) {\r\n\t\t\t// Notify adimistrator via Email, for example\r\n\t\t\tlogError(\"Could not found this report \" + reportName);\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Step 2. Initialize report\r\n\t\treport = reportInfoResult.getOutput();\r\n\t\treport.setModule(module);\r\n\t\treport.setCapId(capId1 + \"-\" + capId2 + \"-\" + capId3 );\r\n\t\treport.setReportParameters(reportParamters);\r\n\t\treport.getEDMSEntityIdModel().setAltId(capIDString);\r\n\t\t\r\n\t\t// Step 3. Check permission on report\r\n\t\tvar permissionResult = aa.reportManager.hasPermission(reportName,reportUser);\r\n\t\tif(permissionResult.getSuccess() == false || permissionResult.getOutput().booleanValue() == false) {\r\n\t\t\t// Notify adimistrator via Email, for example\r\n\t\t\tlogError(\"The user \" + reportUser + \" does not have perssion on this report \" + reportName);\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Step 4. Run report\r\n\t\tvar reportResult = aa.reportManager.getReportResult(report);\r\n\t\tif(reportResult.getSuccess() == false){\r\n\t\t\t// Notify adimistrator via Email, for example\r\n\t\t\tlogError(\"Could not get report from report manager normally, error message please refer to: \" + reportResult.getErrorMessage());\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Step 5, Store Report File to harddisk\r\n\t\treportResult = reportResult.getOutput();\r\n\t var reportFileResult = aa.reportManager.storeReportToDisk(reportResult);\r\n\t\tif(reportFileResult.getSuccess() == false) {\r\n\t\t\t// Notify adimistrator via Email, for example\r\n\t\t\tlogError(\"The appliation does not have permission to store this temporary report \" + reportName + \", error message please refer to:\" + reportResult.getErrorMessage());\t\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Step 6. Send Report via Email\r\n\t var reportFile = reportFileResult.getOutput();\r\n\t\tvar sendResult = aa.sendEmail(emailFrom, emailTo, emailCC, emailSubject, emailContent, reportFile);\r\n\t\tif(sendResult.getSuccess()) {\r\n\t\t\tlogDebug(\"A copy of this report has been sent to the valid email addresses.\"); \r\n\t }\r\n\t else {\r\n\t\t\tlogError(\"System failed send report to selected email addresses because mail server is broken or report file size is great than 5M.\");\r\n\t }\r\n\t}\r\n\tcatch(err){\r\n\t\tlogError(\"One error occurs. Error description: \" + err.description );\r\n\t\treturn false;\r\n\t}\t\r\n}", "function userVisitStatus(){\n dataservice.postData(USER_VISIT_API, {}, config).then(function(data, status) {\n if (data) {\n if (data.status) {\n }\n }\n\n }, function() {});\n }", "function ApiStatus() {\n this.message = {\n 'status': {}\n };\n}", "function check_status() {\n var open, ptotal, sample, pid, pname, line, match, tmp, i;\n\n // Handle operation disabled\n if (!controller.settings.en) {\n change_status(0,\"red\",\"<p class='running-text center'>\"+_(\"System Disabled\")+\"</p>\",function(){\n areYouSure(_(\"Do you want to re-enable system operation?\"),\"\",function(){\n showLoading(\"#footer-running\");\n send_to_os(\"/cv?pw=&en=1\").done(function(){\n update_controller(check_status);\n });\n });\n });\n return;\n }\n\n // Handle open stations\n open = {};\n for (i=0; i<controller.status.length; i++) {\n if (controller.status[i]) {\n open[i] = controller.status[i];\n }\n }\n\n if (controller.options.mas) {\n delete open[controller.options.mas-1];\n }\n\n // Handle more than 1 open station\n if (Object.keys(open).length >= 2) {\n ptotal = 0;\n\n for (i in open) {\n if (open.hasOwnProperty(i)) {\n tmp = controller.settings.ps[i][1];\n if (tmp > ptotal) {\n ptotal = tmp;\n }\n }\n }\n\n sample = Object.keys(open)[0];\n pid = controller.settings.ps[sample][0];\n pname = pidname(pid);\n line = \"<div><div class='running-icon'></div><div class='running-text'>\";\n\n line += pname+\" \"+_(\"is running on\")+\" \"+Object.keys(open).length+\" \"+_(\"stations\")+\" \";\n if (ptotal > 0) {\n line += \"<span id='countdown' class='nobr'>(\"+sec2hms(ptotal)+\" \"+_(\"remaining\")+\")</span>\";\n }\n line += \"</div></div>\";\n change_status(ptotal,\"green\",line,function(){\n changePage(\"#status\");\n });\n return;\n }\n\n // Handle a single station open\n match = false;\n for (i=0; i<controller.stations.snames.length; i++) {\n if (controller.settings.ps[i][0] && controller.status[i] && controller.options.mas !== i+1) {\n match = true;\n pid = controller.settings.ps[i][0];\n pname = pidname(pid);\n line = \"<div><div class='running-icon'></div><div class='running-text'>\";\n line += pname+\" \"+_(\"is running on station\")+\" <span class='nobr'>\"+controller.stations.snames[i]+\"</span> \";\n if (controller.settings.ps[i][1] > 0) {\n line += \"<span id='countdown' class='nobr'>(\"+sec2hms(controller.settings.ps[i][1])+\" \"+_(\"remaining\")+\")</span>\";\n }\n line += \"</div></div>\";\n break;\n }\n }\n\n if (match) {\n change_status(controller.settings.ps[i][1],\"green\",line,function(){\n changePage(\"#status\");\n });\n return;\n }\n\n // Handle rain delay enabled\n if (controller.settings.rd) {\n change_status(0,\"red\",\"<p class='running-text center'>\"+_(\"Rain delay until\")+\" \"+dateToString(new Date(controller.settings.rdst*1000))+\"</p>\",function(){\n areYouSure(_(\"Do you want to turn off rain delay?\"),\"\",function(){\n showLoading(\"#footer-running\");\n send_to_os(\"/cv?pw=&rd=0\").done(function(){\n update_controller(check_status);\n });\n });\n });\n return;\n }\n\n // Handle rain sensor triggered\n if (controller.options.urs === 1 && controller.settings.rs === 1) {\n change_status(0,\"red\",\"<p class='running-text center'>\"+_(\"Rain detected\")+\"</p>\");\n return;\n }\n\n // Handle manual mode enabled\n if (controller.settings.mm === 1) {\n change_status(0,\"red\",\"<p class='running-text center'>\"+_(\"Manual mode enabled\")+\"</p>\",function(){\n areYouSure(_(\"Do you want to turn off manual mode?\"),\"\",function(){\n showLoading(\"#footer-running\");\n send_to_os(\"/cv?pw=&mm=0\").done(function(){\n update_controller(check_status);\n });\n });\n });\n return;\n }\n\n $(\"#footer-running\").slideUp();\n}", "function getStatus(res, successCallback) {\n const status = spawn('python',[\"pollingStatusMessage.py\"]);\n status.stdout.setEncoding(\"utf8\");\n status.stdout.on('data', statusData => {\n console.log('Received status from coffee maker');\n request(\"https://maker.ifttt.com/trigger/status/with/key/XXXXXXXXXX\", { form: { value1: statusData } }, function(error, response, body) {\n if (error) {\n console.log('Unable to send request to IFTTT', error);\n res.status(500).end();\n }\n console.log('Successfully triggered push to IFTTT!');\n if (successCallback) successCallback(statusData);\n });\n });\n}", "function isSuccess(status) { return status >= 200 && status < 300; }", "function getStatus() {\n\tapi({ data: \"cmd=getstatus\" },syncStatus);\n}", "function getStatus(res) {\n let status = 0\n res.every(r => {\n const e = r.error\n if (!e) {\n return false\n }\n if (e.code !== undefined && e.code !== 0) {\n status = e.code\n return false\n }\n return true\n })\n return status\n}", "updateStatus() {\n if (isReadWriteCommand(this.currentCommand)) {\n // Don't modify status.\n return;\n }\n const drive = this.drives[this.currentDrive];\n if (drive.floppyDisk === undefined) {\n this.status |= STATUS_INDEX;\n }\n else {\n // See if we're over the index hole.\n if (this.angle() < HOLE_WIDTH) {\n this.status |= STATUS_INDEX;\n }\n else {\n this.status &= ~STATUS_INDEX;\n }\n // See if the diskette is write protected.\n if (drive.writeProtected || !SUPPORT_WRITING) {\n this.status |= STATUS_WRITE_PROTECTED;\n }\n else {\n this.status &= ~STATUS_WRITE_PROTECTED;\n }\n }\n // See if we're on track 0, which for some reason has a special bit.\n if (drive.physicalTrack === 0) {\n this.status |= STATUS_TRACK_ZERO;\n }\n else {\n this.status &= ~STATUS_TRACK_ZERO;\n }\n // RDY and HLT inputs are wired together on TRS-80 I/III/4/4P.\n if ((this.status & STATUS_NOT_READY) !== 0) {\n this.status &= ~STATUS_HEAD_ENGAGED;\n }\n else {\n this.status |= STATUS_HEAD_ENGAGED;\n }\n }", "function getStatusServer() {\r\n _doGet('/status');\r\n }", "isStatusAPICall(isLoading, serverResponse, resetDataInStore) {\n const APIStatus = {\n SUCCESS: 1,\n FAILED: 0,\n LOADING: -1,\n };\n let apiStatus = APIStatus.LOADING;\n if (!isLoading\n && serverResponse\n && serverResponse.response\n && serverResponse.status\n && serverResponse.status >= 200\n && serverResponse.status <= 300) {\n apiStatus = APIStatus.SUCCESS;\n }\n if (!isLoading\n && serverResponse\n && serverResponse.response\n && serverResponse.status\n && serverResponse.status >= 400) {\n if (serverResponse.response.message\n && typeof serverResponse.response.message === 'string') {\n showPopupAlert(serverResponse.response.message);\n if (resetDataInStore !== undefined) {\n resetDataInStore();\n }\n apiStatus = APIStatus.FAILED;\n } else {\n if (resetDataInStore !== undefined) {\n resetDataInStore();\n }\n apiStatus = APIStatus.FAILED;\n }\n }\n return apiStatus;\n }", "function status(res, expected) {\n\n deepEqual(res.status, expected,\n `Expected status to be ${expected}, but was ${res.status}`);\n\n}", "async function checkPaymentStatus(agent) {\n const pollUrl = agent.context.get(\"capture_payment_status_information\")\n .parameters.pollUrl;\n const amount = agent.context.get(\"capture_payment_status_information\")\n .parameters.amount;\n const ticketID = agent.context.get(\"capture_payment_status_information\")\n .parameters.ticketID;\n const trip = agent.context.get(\"capture_payment_status_information\")\n .parameters.trip;\n const date = agent.context.get(\"capture_payment_status_information\")\n .parameters.date;\n const time = agent.context.get(\"capture_payment_status_information\")\n .parameters.time;\n const phone = agent.context.get(\"capture_payment_status_information\")\n .parameters.phone;\n const docID = agent.context.get(\"capture_payment_status_information\")\n .parameters.docID;\n\n let paynow = new Paynow(\n process.env.PAYNOW_INTEGRATION_ID,\n process.env.PAYNOW_INTEGRATION_KEY\n );\n\n let response = await paynow.pollTransaction(pollUrl);\n let status = await response.status;\n /*if (\n status === \"paid\" ||\n status == \"awaiting delivery\" ||\n status == \"delivered\"\n )*/ if (\n true\n ) {\n var link = req.headers.host + \"/downloads/\" + encodeURIComponent(ticketID) + \"/pdf\";\n //create pdf and send link\n agent.add(\n `You have successfully booked your ticket! \\r\\n` +\n `Poll URL: ${pollUrl} \\r\\n` +\n `TICKET ID: ${ticketID} \\r\\n` +\n `AMOUNT: ZWL${amount} \\r\\n` +\n `TRIP: ${trip} \\r\\n` +\n `DATE: ${date} \\r\\n` +\n `TIME: ${time} \\r\\n` +\n `PHONE: ${phone} \\r\\n` +\n `\\r\\n To download your ticket, click the link below \\r\\n ` +\n link +\n \" \\r\\n\" +\n `File password is ${phone}`\n );\n // agent.add(new Payload({\n // 'attachment': link,\n // 'type': 'application/pdf'\n // }));\n\n db.collection(\"reservations\")\n .doc(docID)\n .update({\n status: \"paid\",\n })\n .then((e) => {\n console.log(\"success\");\n });\n } else {\n if (\n status == \"cancelled\" ||\n status == \"refunded\" ||\n status == \"disputed\"\n ) {\n agent.add(\"Booking transaction cancelled!\");\n } else if (\n status == \"sent\" ||\n status == \"pending\" ||\n status == \"created\"\n ) {\n agent.add(\"You have not completed your payment!\");\n }\n }\n }", "function buildISSMassStatusResponse(satData) {\n\tvar cardTitle = \"ISS Status: Mass\";\n\tvar repromptText = \" \";\n\tvar shouldEndSession = true;\n\tvar speechOutput = \"The mass of ISS is approximately 419,455 kilograms, or 924,740 pounds.\";\n\n\treturn buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession);\n}", "setStatus(status)\n\t{\n\t\tconst response = {\n\t\t\torigin: \"ServerManager.setStatus\",\n\t\t\tcontext: \"when changing the status of the server manager to: \" + util.toString(status),\n\t\t};\n\n\t\t// check status:\n\t\tconst statusKey = (typeof status === \"symbol\") ? Symbol.keyFor(status) : null;\n\t\tif (!statusKey)\n\t\t{ // throw { ...response, error: 'status must be a symbol' };\n\t\t\tthrow Object.assign(response, { error: \"status must be a symbol\" });\n\t\t}\n\t\tif (!ServerManager.Status.hasOwnProperty(statusKey))\n\t\t{ // throw { ...response, error: 'unknown status' };\n\t\t\tthrow Object.assign(response, { error: \"unknown status\" });\n\t\t}\n\n\t\tthis._status = status;\n\n\t\t// inform status listeners:\n\t\tthis.emit(ServerManager.Event.STATUS, this._status);\n\n\t\treturn this._status;\n\t}", "function wdCall() {\n this.requestStatus();\n }", "static async checkStatusAndStartOrStop() {\n const status = await this.checkStatus();\n\n const { canTrack, isRunning } = status;\n\n if (canTrack && !isRunning) {\n this.start();\n }\n\n if (!canTrack && isRunning) {\n this.stop();\n }\n return status;\n }", "static async checkStatusAndStartOrStop() {\n const status = await this.checkStatus();\n\n const { canTrack, isRunning } = status;\n\n if (canTrack && !isRunning) {\n this.start();\n }\n\n if (!canTrack && isRunning) {\n this.stop();\n }\n return status;\n }", "async function parseStatus() {\n let trackingInfo = {};\n let status, sender, receiver, eta;\n let additionalFilesInfo = [];\n\n // Iterate over every tracking number\n for (let elem of trackingNumArray) {\n for (let s of surnameArray) {\n try {\n let results = await databases.findStatusInfo(elem, s);\n trackingInfo[elem] = results[\"containerLine\"][0];\n trackingInfo[elem].overseasAccess = results[\"overseasAccess\"];\n\n // console.log(trackingInfo[elem]); // for testing\n\n sender = trackingInfo[elem].sender.firstName + \" \" \n + trackingInfo[elem].sender.middleName + \" \"\n + trackingInfo[elem].sender.lastName;\n\n receiver = trackingInfo[elem].receiver.firstName + \" \" \n + trackingInfo[elem].receiver.middleName + \" \"\n + trackingInfo[elem].receiver.lastName;\n\n status = trackingInfo[elem].status.stage;\n eta = trackingInfo[elem].status.estPortArrivalDate;\n\n const additionalFilesArray = trackingInfo[elem].status.additionalFiles;\n\n for (let file of additionalFilesArray) {\n additionalFilesInfo.push({\n containerId : results._id.toString(),\n fileId: file._id.toString(),\n fileName: file.name\n });\n }\n\n break; // breaks out pf surnameArray loop to move on searching with next tracking number\n\n } catch(err) {\n trackingInfo[elem] = err;\n continue;\n }\n }\n }\n\n res.render(\"tracking/cargoflex-results\", {\n trackingInfo: trackingInfo, \n trackingNumber: req.body.trackingNumber,\n trackingSurname: req.body.surname,\n additionalFilesInfo: additionalFilesInfo,\n sender: sender,\n receiver: receiver,\n status: status,\n eta: eta,\n user: user\n });\n }", "function processStatus(data) {\n if (typeof (data.portopen) != 'undefined') {\n if (data.portopen) {\n connected = true;\n streaming = data.streaming;\n recording = data.recording;\n } else {\n connected = false;\n streaming = data.streaming;\n recording = data.recording;\n }\n }\n // Tell anyone who would be listening that status is updated\n self.trigger('status', data);\n }", "function requestDevStatus() {\n if(mConnectedToDev) {\n return;\n }\n\n mNbReqStatusRetry++;\n if(mNbReqStatusRetry >= 6) {\n logger.warn('[ctrl-test] Request device status without response. Stop!');\n return;\n }\n\n devComm.sendStatusReportReq(SelectedGW);\n\n setTimeout(requestDevStatus, 5*1000);\n\n }", "function updateStatusData() {\n requestStatusDataAll(function(response) {\n if (response == 'error') {\n statusCodesDataDiv.innerHTML = '<p class=\"error-message\">Status Codes Unavailable. Try refreshing the page.</p>';\n } else {\n let data = JSON.parse(response);\n statusCodesDataDiv.innerHTML = buildStatusDataTable(data);\n }\n });\n}", "function acceptStat(reportId, reportType, statName) {\n if (reportType == \"googCandidatePair\" && statName == \"googChannelId\")\n return false;\n\n if (reportType == \"ssrc\") {\n if (statName == \"googTrackId\" ||\n statName == \"transportId\" ||\n statName == \"ssrc\")\n return false;\n }\n\n return true;\n}", "async checkStatus(temp_page){\r\n try{\r\n let tempStatus = await gamestop.checkStatus(this.url, temp_page);\r\n this.checkNewStatus(tempStatus); // checks if status changed\r\n }catch (error){\r\n throw error;\r\n }\r\n }", "function Status(req, res) {\n\t\tres.json({\n\t\t\tstatus: true\n\t\t});\n}", "_reportResponse() {\n this._removeSocketListeners();\n if (this.aborted) {\n return;\n }\n this.stats.lastReceivedTime = performance.now();\n const status = this._response.status;\n if (status >= 300 && status < 400) {\n if (this.followRedirects && this._reportRedirect(status)) {\n return;\n }\n } else if (status === 401 && this.auth) {\n switch (this.auth.method) {\n case 'ntlm':\n this.handleNtlmResponse();\n return;\n }\n }\n this._endRequest();\n }", "function getStatus(req, res) {\n\tres.sendStatus(200);\n}", "reopenStatusReport (statusReportId) {\n console.log('reopenStatusReport:', statusReportId);\n let user = Auth.requireAuthentication();\n \n // Validate the data is complete\n check(statusReportId, String);\n \n // Load the statusReport to authorize the edit\n let statusReport = StatusReports.findOne(statusReportId);\n \n // Validate that the current user is an administrator\n if (user.managesContributor(statusReport.contributorId) || user.isAdmin() || statusReport.contributorId === user.contributor()._id) {\n // Delete the statusReport\n StatusReports.update(statusReportId, {\n $set : {\n state: StatusReportStates.inProgress\n },\n $unset: {\n submitDate: true\n }\n });\n } else {\n console.error('Non-authorized user tried to reopen a statusReport:', user.username, statusReportId);\n throw new Meteor.Error(403);\n }\n }", "status(message) {\n return this.sendMessage(MessageType.Status, message);\n }", "async function postScan(reportFormats, exitCode) {\n downloadReports(reportFormats.slice(1));\n await uploadArtifact(src_settings_namespaceObject_0.vz, getFiles(src_settings_namespaceObject_0.nl));\n if (exitCode !== 0 && failJobOnFindings === 'true') {\n failAction(exitCode);\n }\n}", "function isSuccess(status) {\n let s = status;\n if (typeof status === 'string') {\n s = parseInt(status, 10);\n }\n return s >= 200 && s < 300 || s === 304;\n }", "function checkStatus(txid, channel) {\n request({\n url: blockchainURL + restproxy + resource + '?channel=' + channel + '&txid=' + txid,\n method: \"GET\",\n auth: {\n user: username,\n pass: password\n },\n json: true \n }, function (error, response, body) {\n if(error){\n console.error(error);\n return error;\n }\n else{ \n if (body.returnCode === \"InProgress\"){\n return checkStatus(txid, channel);\n }\n else{\n console.log(\"transaction succesfull\");\n return body;\n }\n }\n });\n}", "function fetchReport(myLink, scan_id){\n \n if (scan_id !== 'undefined' && scan_id !== null){\n alert(\"scan id not null\")\n alert(scan_id);\n var xhrobj1 = new XMLHttpRequest();\n xhrobj1.open(\"POST\", 'https://www.virustotal.com/vtapi/v2/url/report');\n var formData2 = new FormData();\n formData2.append(\"resource\",scan_id);\n formData2.append(\"format\",'json');\n formData2.append(\"apikey\",'e2d16d1525fc8e9cf957d858b79d5a11196135d9b664330db4c25eb5b1ec7051');\n xhrobj1.onreadystatechange = function() {\n if(xhrobj1.readyState == XMLHttpRequest.DONE && xhrobj1.status == 200) {\n alert(\"2 response received ....\");\n var myresponsejson2 = JSON.parse(this.responseText);\n var detected = \"\";\n alert(JSON.stringify(myresponsejson2));\n //myresponse = xhr.responseText;\n // Use 'this' keyword everywhere if this doesnt work correctly\n //alert(this.responseText);\n scans = myresponsejson2.scans;\n positives = myresponsejson2.positives;\n total = myresponsejson2.total;\n for (var key in scans){\n alert(key + \" -> \" + scans[key]['detected']);\n if (scans[key]['detected'] == true){\n detected += key \n detected += \" \"\n }\n }\n if (detected !== \"\") {\n var opt3 = {\n type: \"basic\",\n title: \"URL Analyzer - Found Suspicios URL\",\n message: \"The URL- '\"+myLink+\"' was found malicious by - \" + detected,\n iconUrl: \"icons/url-48.png\"\n };\n browser.notifications.create(opt3);\n } else{\n var opt5 = {\n type: \"basic\",\n title: \"URL Analyzer: This URL is benign!\",\n message: \"Found \"+ positives+\" positives in \"+total+\" antivirus engines\",\n iconUrl: \"icons/url-48.png\"\n };\n browser.notifications.create(opt5);\n }\n }\n }\n xhrobj1.send(formData2); \n alert(\"2 request sent\") \n }\n \n}", "function callbackStatusOK(methodName, status) {\r\n if (window.sdkPtr.ResponseStatus.OK == status) {\r\n return true;\r\n }\r\n else {\r\n print(methodName + \" error: \" + status);\r\n return false;\r\n }\r\n }", "success(msg, options){\n if(!atom.config.get('verilog-tools.silent'))\n report(msg, options, \"success\");\n }", "validateStatus (status) {\r\n return status >= 200 && status < 300; // default\r\n }", "parseStatus(res) {\n let newStateAttr;\n\n if (res[\"msg_ver\"] !== undefined && !this.fanSpeeds) {\n this.detectFanSpeeds(res[\"msg_ver\"]);\n }\n\n if (res[\"state\"] !== undefined && STATUS_MAP[res[\"state\"]]) {\n let statusValue = STATUS_MAP[res[\"state\"]].value;\n let statusFlag = STATUS_MAP[res[\"state\"]].flag;\n let statusMetaData = {};\n\n if (\n res[\"in_cleaning\"] !== 0 &&\n (\n statusValue === stateAttrs.StatusStateAttribute.VALUE.PAUSED ||\n statusValue === stateAttrs.StatusStateAttribute.VALUE.RETURNING ||\n statusValue === stateAttrs.StatusStateAttribute.VALUE.DOCKED\n )\n ) {\n statusFlag = stateAttrs.StatusStateAttribute.FLAG.RESUMABLE;\n\n if (res[\"in_cleaning\"] === 2) {\n //Since this is some roborock-related weirdness, we're using the metaData to store this\n statusMetaData.zoned = true;\n } else if (res[\"in_cleaning\"] === 3) {\n statusMetaData.segment_cleaning = true;\n }\n } else if (statusValue === stateAttrs.StatusStateAttribute.VALUE.ERROR) {\n statusMetaData.error_code = res[\"error_code\"];\n statusMetaData.error_description = GET_ERROR_CODE_DESCRIPTION(res[\"error_code\"]);\n }\n\n newStateAttr = new stateAttrs.StatusStateAttribute({\n value: statusValue,\n flag: statusFlag,\n metaData: statusMetaData\n });\n\n this.robotState.upsertFirstMatchingAttribute(newStateAttr);\n }\n\n if (res[\"fan_power\"] !== undefined) {\n let matchingFanSpeed = Object.keys(this.fanSpeeds).find(key => this.fanSpeeds[key] === res[\"fan_power\"]);\n if (!matchingFanSpeed) {\n matchingFanSpeed = stateAttrs.FanSpeedStateAttribute.VALUE.CUSTOM;\n }\n\n this.robotState.upsertFirstMatchingAttribute(new stateAttrs.FanSpeedStateAttribute({\n value: matchingFanSpeed,\n customValue: matchingFanSpeed === stateAttrs.FanSpeedStateAttribute.VALUE.CUSTOM ? res[\"fan_power\"] : undefined\n }));\n }\n\n if (res[\"battery\"] !== undefined) {\n let previousBatteryAttr = this.robotState.getFirstMatchingAttributeByConstructor(stateAttrs.BatteryStateAttribute);\n let flag = stateAttrs.BatteryStateAttribute.FLAG.NONE;\n let level = res[\"battery\"] || 0;\n\n\n if (newStateAttr) {\n if (newStateAttr.value === stateAttrs.StatusStateAttribute.VALUE.DOCKED) {\n if (level === 100) {\n flag = stateAttrs.BatteryStateAttribute.FLAG.CHARGED;\n } else {\n flag = stateAttrs.BatteryStateAttribute.FLAG.CHARGING;\n }\n } else {\n flag = stateAttrs.BatteryStateAttribute.FLAG.DISCHARGING;\n }\n } else if (previousBatteryAttr) {\n flag = previousBatteryAttr.flag;\n }\n\n this.robotState.upsertFirstMatchingAttribute(new stateAttrs.BatteryStateAttribute({\n level: level,\n flag: flag\n }));\n }\n\n if (res[\"clean_area\"]) { //TODO: actually not an attribute. Use Job\n this.robotState.upsertFirstMatchingAttribute(new stateAttrs.LatestCleanupStatisticsAttribute({\n type: stateAttrs.LatestCleanupStatisticsAttribute.TYPE.AREA,\n value: Math.round(parseInt(res[\"clean_area\"]) / 100)\n }));\n }\n\n if (res[\"clean_time\"]) {\n this.robotState.upsertFirstMatchingAttribute(new stateAttrs.LatestCleanupStatisticsAttribute({\n type: stateAttrs.LatestCleanupStatisticsAttribute.TYPE.DURATION,\n value: res[\"clean_time\"]\n }));\n }\n\n let persistentMapSetting = stateAttrs.PersistentMapSettingStateAttribute.VALUE.DISABLED;\n if (res[\"lab_status\"] === 1) {\n persistentMapSetting = stateAttrs.PersistentMapSettingStateAttribute.VALUE.ENABLED;\n }\n\n this.robotState.upsertFirstMatchingAttribute(new stateAttrs.PersistentMapSettingStateAttribute({\n value: persistentMapSetting\n }));\n\n //res[\"dnd_enabled\"]\n //res[\"map_present\"]\n }", "function updateStatus () {\n var status = ''\n\n var moveColor = 'White'\n if (game.turn() === 'b') {\n moveColor = 'Black'\n }\n\n // checkmate?\n if (game.in_checkmate()) {\n status = 'Game over, ' + moveColor + ' is in checkmate.'\n }\n\n // draw?\n else if (game.in_draw()) {\n status = 'Game over, drawn position'\n }\n\n // game still on\n else {\n status = moveColor + ' to move'\n\n // check?\n if (game.in_check()) {\n status += ', ' + moveColor + ' is in check'\n }\n }\n\n $status.html(status)\n $pgn.html(game.pgn())\n}", "function updateStatus () {\n var status = ''\n\n var moveColor = 'White'\n if (game.turn() === 'b') {\n moveColor = 'Black'\n }\n\n // checkmate?\n if (game.in_checkmate()) {\n status = 'Game over, ' + moveColor + ' is in checkmate.'\n }\n\n // draw?\n else if (game.in_draw()) {\n status = 'Game over, drawn position'\n }\n\n // game still on\n else {\n status = moveColor + ' to move'\n\n // check?\n if (game.in_check()) {\n status += ', ' + moveColor + ' is in check'\n }\n }\n\n $status.html(status)\n $pgn.html(game.pgn())\n}", "static getGameStatus() {\n return new Promise(\n async (resolve) => {\n try {\n resolve(Service.successResponse(''));\n } catch (e) {\n resolve(Service.rejectResponse(\n e.message || 'Invalid input',\n e.status || 405,\n ));\n }\n },\n );\n }", "status() {\n return __awaiter(this, void 0, void 0, function* () {\n return {\n status: 'OK',\n };\n });\n }", "finalReport() {\n console.log(`\n==============================\n`);\n ok(`${this.successCount} passed`);\n if (this.failureCount !== 0) {\n error(`${this.failureCount} failed`);\n }\n console.log('==============================');\n this.erroredTask.forEach((task) => {\n error(`>>> In ${task.taskName}:`);\n if (task.error && task.error.stack) {\n error(task.error.stack);\n }\n });\n }", "_checkStatus(response) {\n // raises an error in case response status is not a success\n if (response.status >= 200 && response.status < 300) { // Success status lies between 200 to 300\n return response\n } else {\n var error = new Error(response.statusText)\n error.response = response\n throw error\n }\n }", "queryStatus( cb = false ) {\n PythonShell.run( './Python/modules/status.py', ( err, results ) => {\n if ( err )\n throw err\n // FIXME: Log this result, but quieted for now:\n // electronicDebug(`rcvd (pyShellUserStatus): ${results}`);\n if ( cb )\n cb( results )\n } )\n }", "updateReport({ commit, rootState }, report) {\n return axios.patch(\n `${constant.api.enframe}apps/${rootState.application.id}/reports/${report._id}`,\n report,\n ).then(() => {\n commit('updateReport', report);\n }).catch(({ response }) => {\n this.dispatch('snackbar/show', {\n type: constant.snackbarTypes.error,\n title: message.visualization.errorUpdatingReport,\n message: response.data.message,\n });\n });\n }", "function assignStatusResponse(statusResponse) {\n $(\"#divStatus\").show(function () {\n $(\"#lblResponseCode\").html(statusResponse.responseCode);\n $(\"#lblResponseText\").html(statusResponse.responseText);\n $(\"#lblPinPadVersion\").html(statusResponse.pinPadVersion);\n $(\"#lblPinPadSerialNumber\").html(statusResponse.pinPadSerialNumber);\n });\n }", "function check_status(url, loop) {\n\t\t$.ajax({\n\t\t\turl : url,\n\t\t\tdata : { \"measurement_number\": measurement_number, \"measurement_last\": measurement_last },\n\t\t\tsuccess : function(data) {\n\t\t\t\t$(\"#demo_arduino\").removeClass(\"btn-danger\").addClass(\n\t\t\t\t\t\t\"btn-light\");\n\t\t\t\tset_status(\"demo_led1\", data.led1);\n\t\t\t\tset_status(\"demo_led2\", data.led2);\n\t\t\t\tset_status(\"demo_button1\", data.button);\n\t\t\t\tset_status(\"demo_modus\", data.modus);\t\n\t\t\t\tset_sensor(\"demo_sensor1\", \"sensor1\", data.measurements.last);\n\t\t\t\t$(\"button.demo_manual\").prop(\"disabled\", (data.modus == \"AUTOMATIC\"));\t\t\t\t\n\t\t\t\tset_measurement(data.measurements);\n\t\t\t\tset_storage(data.storage);\n\t\t\t\tset_program(data.program);\n\t\t\t\tif (loop) {\n\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\tcheck_status(url, true);\n\t\t\t\t\t}, 1000);\n\t\t\t\t}\n\t\t\t},\n\t\t\terror : function(error) {\n\t\t\t\t$(\"#demo_arduino\").removeClass(\"btn-light\").addClass(\n\t\t\t\t\t\t\"btn-danger\");\n\t\t\t\t$(\"#demo_led1 span.status\").text(\"???\");\n\t\t\t\t$(\"#demo_led2 span.status\").text(\"???\");\n\t\t\t\t$(\"#demo_button1 span.status\").text(\"???\");\n\t\t\t\t$(\"#demo_modus span.status\").text(\"???\");\n\t\t\t\t$(\"#demo_sensor1 span.value\").text(\"???\");\n\t\t\t\t$(\"#demo_sensor1 span.time\").text(\"???\");\n\t\t\t\tif (loop) {\n\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\tcheck_status(url, true);\n\t\t\t\t\t}, 1000);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "updateOnboardingStatus ({ commit }, status) {\n commit('SET_ONBOARDING_STATUS', status)\n }", "function updateStatus(newStatus) {\n console.log(\"PX: UPDATE STATUS:\" + newStatus + \"\\n\");\n }", "function reportUser() {\n xhr = new XMLHttpRequest();\n var url = document.URL + 'report';\n xhr.open(\"POST\", url, true);\n xhr.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n xhr.onreadystatechange = function () {\n if (xhr.readyState == 4 && xhr.status == 200) {\n console.log('User reported with success!');\n }\n }\n xhr.send();\n }", "static Status () {\n return {\n \"Status-Code\": 200,\n \"Content-Type\": \"application/json\"\n }\n }", "function getStatus() {\n // TODO: perhaps remove this if no other status added\n return status;\n }", "function update_status(){\r\n\tset('V[z_vaxx_overallStatus]','');\r\n\tset('V[z_vaxx_rejectionStatus]','');\r\n\tset('V[z_vaxx_deliveryStatus]','');\r\n\tset('V[z_vaxx_creditStatus]','');\r\n\tonscreen 'SAPMV45A.4001'\r\n\t\tgoto SAPMV45A_4008;\r\n\tonscreen 'SAPMV45A.4008'\r\n\t\tSAPMV45A_4008:;\r\n\t\tenter('KRPL');\r\n\tonscreen 'SAPLV60F.4001'\r\n\t\tset('V[z_vaxx_total]','&F[FPLAA-ENDWR]');\r\n\t\tenter('T\\\\06');\r\n\tonscreen 'SAPMV45A.5002'\r\n\t\tset('V[z_vaxx_tax]','&F[KOMP-MWSBP]');\r\n\t\tenter('KSTA');\r\n\tonscreen 'SAPMV45A.4002'\r\n\t\t//Overall status\r\n\t\tif(<'F[VBUK-GBSTK]'>.isValid) set('V[z_vaxx_overallStatus]','&F[VBUK-GBSTK]');\r\n\t\t//Rejection status\r\n\t\tif(<'F[VBUK-ABSTK]'>.isValid) set('V[z_vaxx_rejectionStatus]','&F[VBUK-ABSTK]');\r\n\t\t//Delivery status\r\n\t\tif(<'F[VBUK-LFSTK]'>.isValid) set('V[z_vaxx_deliveryStatus]','&F[VBUK-LFSTK]');\r\n\t\t//Credit status\r\n\t\tif(<'F[VBUK-CMGST]'>.isValid) set('V[z_vaxx_creditStatus]','&F[VBUK-CMGST]');\r\n\t\tenter('/3');\t\r\n}", "function analysis_bugreport() {\n var server = net.createServer().listen(3000);//Create a server to listen to the port 3000.\n\n //It means that the WebSVF frontend server has been started successfully if the port 3000 has already been eaddrinused.\n server.on('error', function (err) {\n let flag = err.message.split(\" \")[1];\n flag = flag.substring(0, flag.length - 1);\n\n if (flag === 'EADDRINUSE') { // The port has been occupied\n utils.setStatusBar(\"Bug Analysis Tool: Running\", \"Red\");//Update the status bar.\n //utils.open_internal_browser(\"http://localhost:3000/\");//Open a internal webview in the right side inside the vscode if eaddrinused.\n vscode.commands.executeCommand('browser-preview.openPreview', 'http://localhost:3000');//// Call another extension 'Browser Preview' and listen to localhost with port 3000.\n }\n });\n\n server.on('listening', function () { // Execution of this code indicates that the port is not occupied\n server.close(); // Close the service\n utils.setStatusBar(\"Bug Analysis Tool: Running\", \"Red\");\n new Promise(function (resolve, reject) {\n utils.bug_report();//Send command via terminal to start the node app (WebSVF frontend server).\n resolve(1);\n }).then(function () {\n timeInterval = setInterval(function () { portIsOccupied(3000); }, 1000);//Check if the port 3000 has been started every one second.\n });\n });\n }", "function setStatus(args) {\n console.log(\"setStatus : \" + args)\n}", "function determineWorkflowStatus() {\r\n $.ajax({\r\n method: 'POST',\r\n url: WORKSPACES_CONTROL_URL,\r\n headers: {\r\n Authorization: authToken\r\n },\r\n beforeSend: function () {},\r\n complete: function () {},\r\n data: JSON.stringify({\r\n action: 'details'\r\n }),\r\n contentType: 'text/plain',\r\n error: function () {\r\n\r\n },\r\n success: function (data) {\r\n\r\n for (var i = 0; i < data.length; i++) {\r\n if (data[i].WS_Status.S == \"Requested\") {\r\n $(\"#methodStatus\").append('<div class=\"alert alert-warning\"><div class=\"row\"><div class=\"col-sm-6 ml-right\"><div class=\"methodMessage\">WorkSpace approval pending for user: <b>' + data[i].Username.S + '</b></div></div><div class=\"col-sm-3 ml-auto\"><div class=\"methodCommand\"></div></div></div></div>');\r\n\r\n $(\"#methodStatus\").show();\r\n } else if (data[i].WS_Status.S == \"Rejected\") {\r\n $(\"#methodStatus\").append('<div class=\"alert alert-danger alert-dismissible fade show\"><button id=\"acknowledgeReject-' + data[i].Username.S + '\" class=\"close\" data-dismiss=\"alert\" type=\"button\"><span>&times;</span></button>WorkSpace request rejected for user: <strong>' + data[i].Username.S + '</strong></div>');\r\n\r\n $(\"#acknowledgeReject-\" + data[i].Username.S).on('click', function () {\r\n $.ajax({\r\n method: 'POST',\r\n url: WORKSPACES_CONTROL_URL,\r\n headers: {\r\n Authorization: authToken\r\n },\r\n beforeSend: function () {},\r\n complete: function () {},\r\n data: JSON.stringify({\r\n action: 'acknowledge',\r\n username: this.id.split(\"-\")[1]\r\n }),\r\n contentType: 'text/plain',\r\n error: function () {},\r\n success: function (data) {\r\n location.reload();\r\n }\r\n });\r\n });\r\n\r\n $(\"#methodStatus\").show();\r\n }\r\n }\r\n }\r\n });\r\n }", "function check_status() {\n if (!window.controller.settings.en) {\n change_status(0,window.controller.options.sdt,\"red\",\"<p id='running-text' style='text-align:center'>\"+_(\"System Disabled\")+\"</p>\");\n return;\n }\n\n if (window.controller.settings.rd) {\n change_status(0,window.controller.options.sdt,\"red\",\"<p id='running-text' style='text-align:center'>\"+_(\"Rain delay until\")+\" \"+(new Date(window.controller.settings.rdst*1000).toUTCString().slice(0,-4))+\"</p>\");\n return;\n }\n\n if (window.controller.settings.urs && window.controller.settings.rs) {\n change_status(0,window.controller.options.sdt,\"red\",\"<p id='running-text' style='text-align:center'>\"+_(\"Rain detected\")+\"</p>\");\n return;\n }\n\n // Handle open stations\n var open = {};\n $.each(window.controller.status, function (i, stn) {\n if (stn) open[i] = stn;\n });\n\n if (window.controller.options.mas) delete open[window.controller.options.mas-1];\n\n // Handle more than 1 open station\n if (Object.keys(open).length >= 2) {\n var ptotal = 0;\n $.each(open,function (key){\n var tmp = window.controller.settings.ps[key][1];\n if (tmp > ptotal) ptotal = tmp;\n });\n\n var sample = Object.keys(open)[0],\n pid = window.controller.settings.ps[sample][0],\n pname = pidname(pid),\n line = \"<img id='running-icon' width='11px' height='11px' src='img/running.png' /><p id='running-text'>\";\n\n line += pname+\" \"+_(\"is running on\")+\" \"+Object.keys(open).length+\" \"+_(\"stations\")+\" \";\n if (pid!=255&&pid!=99) line += \"<span id='countdown' class='nobr'>(\"+sec2hms(ptotal)+\" \"+_(\"remaining\")+\")</span>\";\n line += \"</p>\";\n change_status(ptotal,window.controller.options.sdt,\"green\",line);\n return;\n }\n\n // Handle a single station open\n var match = false,\n i = 0;\n $.each(window.controller.stations.snames,function (station,name){\n if (window.controller.settings.ps[i][0] && window.controller.status[i] && window.controller.options.mas != i+1) {\n match = true;\n var pid = window.controller.settings.ps[i][0],\n pname = pidname(pid),\n line = \"<img id='running-icon' width='11px' height='11px' src='img/running.png' /><p id='running-text'>\";\n line += pname+\" \"+_(\"is running on station\")+\" <span class='nobr'>\"+name+\"</span> \";\n if (pid!=255&&pid!=99) line += \"<span id='countdown' class='nobr'>(\"+sec2hms(window.controller.settings.ps[i][1])+\" \"+_(\"remaining\")+\")</span>\";\n line += \"</p>\";\n change_status(window.controller.settings.ps[i][1],window.controller.options.sdt,\"green\",line);\n return false;\n }\n i++;\n });\n\n if (match) return;\n\n if (window.controller.settings.mm) {\n change_status(0,window.controller.options.sdt,\"red\",\"<p id='running-text' style='text-align:center'>\"+_(\"Manual mode enabled\")+\"</p>\");\n return;\n }\n\n $(\"#footer-running\").slideUp();\n}", "setStatus(statusText, hasError) {\n this.controlOptions.chartStatus = statusText;\n this.controlOptions.hasError = hasError;\n this._showStatus();\n }", "function buildISSPeriodStatusResponse(satData) {\n\tvar cardTitle = \"ISS Status: Orbital Period\";\n\tvar repromptText = \" \";\n\tvar shouldEndSession = true;\n\tvar speechOutput = \"ISS orbits the Earth every 92.69 minutes. That's approximately 15.55 orbits around the Earth per day.\";\n\n\treturn buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession);\n}", "reportHealthCheck(appConfig, req, res, serviceResults, supplementalInfo = null)\n {\n const serviceStatuses = { };\n const errorFields = { };\n let errorCount = 0;\n let isHealthy = true;\n\n Object.keys(serviceResults).forEach(name =>\n {\n const { url, success, error } = serviceResults[name];\n\n if (error)\n {\n isHealthy = false;\n\n let cause = error;\n if (cause != null)\n {\n if ((typeof cause === 'object') && ('message' in error))\n {\n cause = error.message;\n }\n if (typeof cause !== 'string')\n {\n cause = String(cause);\n }\n }\n\n const prefix = `SERVICE ${errorCount += 1}`;\n errorFields[prefix] = name;\n errorFields[`${prefix} URL`] = url;\n errorFields[`${prefix} CAUSE`] =\n (cause || 'An unreported error occurred');\n }\n\n if (!success)\n {\n isHealthy = false;\n }\n\n serviceStatuses[name] = success ? 'success' : 'failed';\n });\n\n const status = { status: (isHealthy ? 'success' : 'failed') };\n\n if (supplementalInfo)\n {\n status.info = (typeof supplementalInfo === 'object' &&\n supplementalInfo.constructor.name !== 'Array')\n ? supplementalInfo\n : JSON.stringify(supplementalInfo);\n }\n\n if (Object.keys(serviceStatuses).length)\n {\n status.services = { ...serviceStatuses };\n }\n\n res.status(isHealthy ? 200 : 500).json(status);\n\n /* Propagate the errors so that they can be logged by subsequent Express\n * middleware error handlers. */\n if (errorCount)\n {\n throw new AppRequestError([\n 'Errors occurred while performing health checks for system',\n 'dependencies' ].join(' '))\n .request(req).addFields(errorFields).useStack(false);\n }\n }", "function resolveStatus(data){\n\t\t\tif(data == true){\n\t\t\t}else{\n\t\t\t}\n\t\t}", "createReport({ commit, rootState }, report) {\n return axios.post(\n `${constant.api.enframe}apps/${rootState.application.id}/reports`,\n report,\n ).then(({ data }) => {\n report._id = data.result.id;\n commit('updateReport', report);\n }).catch(({ response }) => {\n this.dispatch('snackbar/show', {\n type: constant.snackbarTypes.error,\n title: message.visualization.errorCreatingReport,\n message: response.data.message,\n });\n });\n }", "function setStatus(x,y){\n status.text(\"\"); // Clear current status message\n status.text(x); // Set new status string\n var sa = $(\"#stat-area\"); // Status container\n if(y == 0){ // Status only (not an error)\n sa.removeClass(\"red\");\n sa.removeClass(\"grn\");\n sic.removeClass(\"fa-exclamation-circle\");\n sic.removeClass(\"fa-check-circle\");\n status.removeClass(\"err\"); // Remove past error class\n } else if(y == 1){ // Error code\n status.addClass(\"err\"); // Add error class\n sa.addClass(\"red\");\n sa.removeClass(\"grn\");\n sic.addClass(\"fa-exclamation-circle\");\n sic.removeClass(\"fa-check-circle\");\n } else if(y == 2){ // Good status (success)\n sa.removeClass(\"red\")\n sa.addClass(\"grn\");\n sic.removeClass(\"fa-exclamation-circle\");\n status.removeClass(\"err\");\n sic.addClass(\"fa-check-circle\");\n }\n}", "function handleStatusCallback(msg) {\n IALOG.debug(\"Enter - handleStatusCallback\");\n\n var incidentId = msg.additionalTokens.incident_id;\n var xmStatus = msg.status;\n\n // Create an annotation for xMatters Event status updates.\n var annotation = \"\";\n annotation = \"xMatters incident for BPPM event: \" + incidentId + \" | \" + xmStatus;\n\n IALOG.debug(\"Starting call to management system for status annotation for BPPM event: [\" + incidentId + \"]\");\n\n try {\n var bppmws = new BPPMWS();\n\n var result = bppmws.updateEvent(incidentId, bppmws.IMWS_STATUS_NONE, NO_ASSIGNEE, CALLOUT_USER, NO_LOGS, NOTE_PREFIX + annotation, false);\n\n IALOG.debug(\"Finished call to management system for status annotation for BPPM event: [\" + incidentId + \"] with result \" + result);\n } catch (e) {\n IALOG.error(\"Caught exception processing status annotation for BPPM event: [\" + incidentId + \"] Exception:\" + e);\n throw e;\n }\n IALOG.debug(\"Exit - handleStatusCallback\");\n}", "getStatus ({ commit }) {\n return api.getStatus()\n .then(response => {\n commit('SET_STATUS', `${response}`)\n })\n }", "validateStatus(status) {\n return status >= 200 && status < 300; // default\n }", "function buildISSVelocityStatusResponse(satData) {\n\tvar cardTitle = \"ISS Status: Velocity\";\n\tvar repromptText = \" \";\n\tvar shouldEndSession = true;\n\tvar speechOutput = \"ISS is currently traveling at an x velocity of \" + (Math.round(satData.velocityEci.x * 1000) / 1000) + \" kilometers per second, a y velocity of \" + (Math.round(satData.velocityEci.y * 1000) / 1000) + \" kilometers per second and a z velocity of \" + (Math.round(satData.velocityEci.z * 1000) / 1000) + \" kilometers per second. That's a speed of \" + formatNumber(satData.speed) + \" kilometers per hour, or \" + formatNumber(kilometersToMiles(satData.speed)) + \" miles per hour.\";\n\n\treturn buildSpeechletResponse(cardTitle, speechOutput, repromptText, shouldEndSession);\n}", "function StatusReporter(iLogger, iResults) {\r\n this.logger = iLogger;\r\n this.results = iResults;\r\n this.torrentActions = {};\r\n}", "function check (call, callback) {\n callback(null, { status: 'SERVING' });\n}", "function getStatus() {\n return status;\n }", "status() {\r\n return this.request('GET', 'status/config');\r\n }", "function checkETLStatus(req, config, callback){\n var event = {\n 'stage-vars': {\n env: req['stage-vars']['env']\n },\n skip_sso: true,\n basic_auth: true,\n params: {\n querystring: {\n selection: \"RD998\",\n esb_path: \"RD300_NonSSO\"\n }\n }\n };\n ContentService.get(event, config, function(err, response, etl_status){\n if (err){\n console.log(\"err\", JSON.stringify(err));\n callback(err);\n } else {\n console.log(etl_status);\n var first_row = etl_status.rows[0];\n var last_update_time = first_row['LAST_UPDATE_TIME'];\n switch(first_row['BUILD_INDICATOR_DESCR']){\n case \"Complete\":\n callback(null, null, { \"success\":true, last_update_time:last_update_time, });\n break;\n default:\n callback(\"ETL Check status error:\" + JSON.stringify(etl_status));\n break;\n }\n }\n })\n}", "function callStatusByStatusCode(userId, data, output, item, size, count, resolve, status) {\n request(\n {\n url : workOrderMaster_statusByStatusCode + item,\n headers : { \"Content-Type\" : \"application/json\" }\n },\n function (error, response, body) {\n if(body != undefined) {\n var getStatus = JSON.parse(body);\n output[count].workorderstatus = getStatus.data.desc;\n }\n if(size != count) {\n fetchWorkOrdersByUserId(userId, data, output, (count + 1), resolve, STATUS.STEP2_COMPLETED);\n } else {\n fetchWorkOrdersByUserId(userId, data, output, 0, resolve, STATUS.STEP3_COMPLETED);\n }\n }\n );\n}", "function ultratools_scan(url, button, output_loc){\n var process_status = $(\"#process_status\");\n $.ajax({\n url: ajaxurl,\n type: 'post',\n data: {\n q: 'ultratools_scan', url: url\n },\n assync: false,\n beforeSend: function (){\n process_status.text(\"Cheking if \"+url+\" is listed on any Spam Blackist...\");\n disableButton(button);\n },\n success: function (data){\n process_status.html(\"\");\n output_loc.append( \"<br/>\"+data+\"<hr>\" );\n enableButton(button);\n console.log(data);\n },\n error: function (data){\n enableButton(button);\n }\n });\n }", "function setStatus(text) {\n\t\tstatus.innerHTML = String(text)\n\t}", "getStatus () {\r\n const timeElapsed = this._getTime()\r\n\r\n return new Status(this._dna[this._getSegIndex(timeElapsed)].pace, \"good\", this._getDistance(timeElapsed), timeElapsed)\r\n }", "function checkStatus(status) {\n if (status === \"updated\") {\n return \"green\";\n } else if (status === \"inactive\") {\n return \"gray\";\n } else if (status === \"needs update\") {\n return \"#FC6A03\";\n }\n }", "status(transactionId) {\n this.apiUrl = this.parent.apiConfig.getCoreApiBaseUrl() + '/' + transactionId + '/status';\n return this.parent.httpClient.request({\n requestUrl: this.apiUrl,\n httpMethod: 'get',\n serverKey: this.parent.apiConfig.get().serverKey,\n requestPayload: null\n });\n }" ]
[ "0.5334401", "0.5138639", "0.49841937", "0.48747033", "0.48105115", "0.4808223", "0.48045853", "0.47958702", "0.4774266", "0.47694856", "0.47673264", "0.47513995", "0.46961942", "0.46381515", "0.46285498", "0.46240294", "0.4610947", "0.4603394", "0.4595314", "0.4593442", "0.45879167", "0.4577344", "0.45711496", "0.45649424", "0.45351976", "0.45290664", "0.45144963", "0.4475533", "0.4465892", "0.44629154", "0.446074", "0.44528598", "0.44521043", "0.44513357", "0.44408607", "0.44219717", "0.4417406", "0.44000092", "0.43943593", "0.43943593", "0.43934816", "0.43872744", "0.43852073", "0.4382137", "0.43792766", "0.43752846", "0.43744266", "0.43741503", "0.43722904", "0.437151", "0.43678975", "0.43667886", "0.43654755", "0.43647358", "0.43586457", "0.4350855", "0.43491456", "0.43389934", "0.43379384", "0.43279234", "0.43279234", "0.43255287", "0.4321714", "0.43149132", "0.43094987", "0.43084925", "0.43038818", "0.42995125", "0.42985564", "0.42952108", "0.4293217", "0.42874557", "0.42813978", "0.4281315", "0.42796126", "0.42786232", "0.4277963", "0.42765784", "0.42722693", "0.42613778", "0.42601788", "0.4259992", "0.42563733", "0.42520314", "0.42498314", "0.42457968", "0.42406908", "0.42406178", "0.42383072", "0.4238287", "0.42381254", "0.42337817", "0.42295408", "0.42286012", "0.42279088", "0.42222956", "0.42152336", "0.4203313", "0.4201096", "0.418663" ]
0.749072
0
delete all nonletters symbols from text using regexes
function textTrim(str) { var cleanedText = str.replace(/[,.:;\-\!?<>"@#$%^&*|/'=]/gi, '').replace(/\n/ig, ' '); return cleanedText; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function scrub(txt){\r\n return txt.replace(/[^a-zA-Z ]/g, \"\")\r\n }", "function cleanUp(text) {\n var i;\n var textLength = text.length;\n var char;\n var ALPHABETS = 'abcdefghijklmnopqrstuvwxyz';\n var cleanText = '';\n\n for (i = 0; i < textLength; i += 1) {\n char = text[i];\n\n if (ALPHABETS.includes(char.toLowerCase())) {\n cleanText += char;\n } else {\n if (i === 0 || ALPHABETS.includes(text[i - 1].toLowerCase())) {\n cleanText += ' ';\n }\n }\n }\n\n return cleanText;\n}", "function remove_wletter(phrase, letter) {\n letter += \"[a-z]*\";\n letter = \" \" + letter;\n var temp = new RegExp(letter, \"g\");\n return phrase.replace(temp, \" \");\n}", "function lettersOnly(input) {\n //let regex = /[^a-z]/gi //\n let regex = /[^a-z\\s]/gi\n // let regex = /^[a-z ,.'-]+$/i //\n input.value = input.value.replace(regex, \"\");\n}", "function onlyLetters(str) {\n return str.toLowerCase().replace(/[^a-z]/g, \"\");\n}", "function onlyLetters (string){\n return string.replace(/[0-9]/g,'')\n}", "function solve(s, i) {\n s.replace(/[^a-zA-Z ]/g, \"\")\n}", "function cleanUp(text) {\n let cleanText = '';\n\n for (let idx = 0; idx < text.length; idx += 1) {\n if (isLowerCaseLetter(text[idx]) || isUpperCaseLetter(text[idx])) {\n cleanText += text[idx];\n } else if (cleanText[cleanText.length - 1] !== ' ') {\n cleanText += ' ';\n }\n }\n\n return cleanText;\n}", "function letterinputFunction(inputletter){\n var ltrinput= /[^a-z ]/gi\n inputletter.value = inputletter.value.replace(ltrinput, '');\n }", "function noLettersOrNums(str) {\n let noLetterRegex = /\\W/gi;\n return str.match(noLetterRegex);\n}", "function replaceAllNonAlphaNumeric(text,substitute){\n\tif(substitute==undefined){\n\t\tsubstitute = \"\";\n\t}\n\treturn text.replace(/\\W/g, substitute);\n}", "function removeTildes(texto) {\r\r\n // ACUTE\r\r\n texto = texto.replace(/\\u00c1/g,\"A\");\r\r\n texto = texto.replace(/\\u00c9/g,\"E\");\r\r\n texto = texto.replace(/\\u00cd/g,\"I\");\r\r\n texto = texto.replace(/\\u00d3/g,\"O\");\r\r\n texto = texto.replace(/\\u00da/g,\"U\");\r\r\n // DIAERESIS\r\r\n texto = texto.replace(/\\u00c4/g,\"A\");\r\r\n texto = texto.replace(/\\u00cb/g,\"E\");\r\r\n texto = texto.replace(/\\u00cf/g,\"I\");\r\r\n texto = texto.replace(/\\u00d6/g,\"O\");\r\r\n texto = texto.replace(/\\u00dc/g,\"U\");\r\r\n return texto;\r\r\n}", "function removeCharacters(str){\n let newStr = '';\n newStr = str.replace(/a|e|i|o|u/gi, '');\n console.log(newStr)\n}", "function cleanText(text) {\n let cleanText = \"\";\n \n // Transform text in lowercase\n cleanText = text.toLowerCase();\n\n // Clean whitespaces\n cleanText = cleanText.trim();\n\n // Delete all useless character\n cleanText = cleanText.replace(/[\\.,:;!?()\"]+/g, '');\n\n return cleanText;\n}", "function stripSpecialChars(original) {\n return original.replace(/[^\\w]/gi, '');\n}", "function cleanUp(str) {\n let regex = /[^a-z]/gi;\n let words = str.replace(regex, ' ').split(' ');\n words = words.filter(word => word !== '');\n return words.join(' ');\n}", "function cleanText(text) {\n return text.split(/\\r\\n|\\r|\\n/)[0].replace(/[^a-zA-Z]/g, '')\n .substring(0, 50).toLowerCase();\n }", "function onlyCharacters(input) {\n var regex = /[^a-zA-z\\s]/;\n\n input.value = input.value.replace(regex, \"\");\n}", "function clearWord(strWord)\n{\n strWord = strWord.replace(/[á|ã|â|à|ä]/gi, 'a');\n strWord = strWord.replace(/[Á|Ã|Â|À|Ä]/gi, 'A');\n strWord = strWord.replace(/[é|ê|è|ë]/gi, 'e');\n strWord = strWord.replace(/[É|Ê|È|Ë]/gi, 'E');\n strWord = strWord.replace(/[í|ì|î|ï]/gi, 'i');\n strWord = strWord.replace(/[Í|Ì|Î|Ï]/gi, 'I');\n strWord = strWord.replace(/[õ|ò|ó|ô|ö]/gi, 'o');\n strWord = strWord.replace(/[Õ|Ò|Ó|Ô|Ö]/gi, 'O');\n strWord = strWord.replace(/[ú|ù|û|ü]/gi, 'u');\n strWord = strWord.replace(/[Ú|Ù|Û|Ü]/gi, 'U');\n strWord = strWord.replace(/[ç]/gi, 'c');\n strWord = strWord.replace(/[Ç]/gi, 'Ç');\n strWord = strWord.replace(/[ñ]/gi, 'n');\n strWord = strWord.replace(/[Ñ]/gi, 'N');\n return strWord;\n}", "function cleanAlpha(inputStr) {\n return inputStr.replace(/[^0-9a-zA-Z \\'()]/g, '')\n}", "function letterinputFunction(inputletter){\n var ltrinput = /[^a-z ]/gi;\n inputletter.value = inputletter.value.replace(ltrinput, '');\n}", "function removePunctuation(sentence){\n return sentence.replace(/[^\\w\\s]/g,'');\n}", "function removeSymbols(x){\n return x.replace(/[^a-zA-Z ]/g, \"\");\n }", "function lettersOnly() {\n var textInput = document.getElementById('letter').value;\n textInput = textInput.replace(/[^A-Za-z]/g, '');\n document.getElementById('letter').value = textInput;\n}", "formatText(text) {\n return text.replace(/[^a-z0-9\\.'\"\\/:?=!+]+/gi, ' ');\n }", "function cleanspace(str){return str.replace(/[^\\w\\s]/gi, ' '); }", "function cleanWord(word) {\n return word.replace(/[^0-9a-z'-]/gi, '').toLowerCase()\n}", "function onlyLettersNums(str) {\n return str.toLowerCase().replace(/[^a-z,0-9,-]/g, \"\");\n}", "function onlyLettersNums(str) {\n return str.toLowerCase().replace(/[^a-z,0-9,-]/g, \"\");\n}", "function preprocessItemText(txt) {\n let result = '';\n for (const char of txt) {\n const lowerChar = char.toLowerCase();\n if (lowercaseCharIsAlphanum(lowerChar)) {\n result += lowerChar;\n }\n }\n return result;\n }", "function desaccentuation() {\n newinput = newinput.replace(/[éèêë]/gi, \"e\");\n\tnewinput = newinput.replace(/[àâä]/gi, \"a\");\n\tnewinput = newinput.replace(/[ïî]/gi, \"i\");\n\tnewinput = newinput.replace(/[üûù]/gi, \"u\");\n\tnewinput = newinput.replace(/[öô]/gi, \"o\");\n newinput = newinput.replace(/[ç]/gi, \"c\");\n newinput = newinput.replace(/[']/gi, \" \");\n newinput = newinput.replace(/[-]/gi, \" \");\n //newinput = newinput.replace(/[?]/gi, \" \");\n //newinput = newinput.replace(/[!]/gi, \" \");\n newinput = newinput.replace(/[\\s]{2,}/g,\" \"); // Enlève les espaces doubles, triples, etc.\n newinput = newinput.trim();\n text = newinput;\n // on remplace les accents avec repalce\n // on suprime les espaces blanc en debut de ligne et en fin de ligne avec trim()\n // on remplit la variable text avec newinput pour la suite du programe.\n\n}", "function cleanUp(words) {\n const result = words.match(/[a-z]/g);\n console.log(result);\n}", "function cleanTitle(text) {\n // NOTE: Regex is from https://stackoverflow.com/a/11598864\n const clean_non_printable_chars_re = /[\\0-\\x1F\\x7F-\\x9F\\xAD\\u0378\\u0379\\u037F-\\u0383\\u038B\\u038D\\u03A2\\u0528-\\u0530\\u0557\\u0558\\u0560\\u0588\\u058B-\\u058E\\u0590\\u05C8-\\u05CF\\u05EB-\\u05EF\\u05F5-\\u0605\\u061C\\u061D\\u06DD\\u070E\\u070F\\u074B\\u074C\\u07B2-\\u07BF\\u07FB-\\u07FF\\u082E\\u082F\\u083F\\u085C\\u085D\\u085F-\\u089F\\u08A1\\u08AD-\\u08E3\\u08FF\\u0978\\u0980\\u0984\\u098D\\u098E\\u0991\\u0992\\u09A9\\u09B1\\u09B3-\\u09B5\\u09BA\\u09BB\\u09C5\\u09C6\\u09C9\\u09CA\\u09CF-\\u09D6\\u09D8-\\u09DB\\u09DE\\u09E4\\u09E5\\u09FC-\\u0A00\\u0A04\\u0A0B-\\u0A0E\\u0A11\\u0A12\\u0A29\\u0A31\\u0A34\\u0A37\\u0A3A\\u0A3B\\u0A3D\\u0A43-\\u0A46\\u0A49\\u0A4A\\u0A4E-\\u0A50\\u0A52-\\u0A58\\u0A5D\\u0A5F-\\u0A65\\u0A76-\\u0A80\\u0A84\\u0A8E\\u0A92\\u0AA9\\u0AB1\\u0AB4\\u0ABA\\u0ABB\\u0AC6\\u0ACA\\u0ACE\\u0ACF\\u0AD1-\\u0ADF\\u0AE4\\u0AE5\\u0AF2-\\u0B00\\u0B04\\u0B0D\\u0B0E\\u0B11\\u0B12\\u0B29\\u0B31\\u0B34\\u0B3A\\u0B3B\\u0B45\\u0B46\\u0B49\\u0B4A\\u0B4E-\\u0B55\\u0B58-\\u0B5B\\u0B5E\\u0B64\\u0B65\\u0B78-\\u0B81\\u0B84\\u0B8B-\\u0B8D\\u0B91\\u0B96-\\u0B98\\u0B9B\\u0B9D\\u0BA0-\\u0BA2\\u0BA5-\\u0BA7\\u0BAB-\\u0BAD\\u0BBA-\\u0BBD\\u0BC3-\\u0BC5\\u0BC9\\u0BCE\\u0BCF\\u0BD1-\\u0BD6\\u0BD8-\\u0BE5\\u0BFB-\\u0C00\\u0C04\\u0C0D\\u0C11\\u0C29\\u0C34\\u0C3A-\\u0C3C\\u0C45\\u0C49\\u0C4E-\\u0C54\\u0C57\\u0C5A-\\u0C5F\\u0C64\\u0C65\\u0C70-\\u0C77\\u0C80\\u0C81\\u0C84\\u0C8D\\u0C91\\u0CA9\\u0CB4\\u0CBA\\u0CBB\\u0CC5\\u0CC9\\u0CCE-\\u0CD4\\u0CD7-\\u0CDD\\u0CDF\\u0CE4\\u0CE5\\u0CF0\\u0CF3-\\u0D01\\u0D04\\u0D0D\\u0D11\\u0D3B\\u0D3C\\u0D45\\u0D49\\u0D4F-\\u0D56\\u0D58-\\u0D5F\\u0D64\\u0D65\\u0D76-\\u0D78\\u0D80\\u0D81\\u0D84\\u0D97-\\u0D99\\u0DB2\\u0DBC\\u0DBE\\u0DBF\\u0DC7-\\u0DC9\\u0DCB-\\u0DCE\\u0DD5\\u0DD7\\u0DE0-\\u0DF1\\u0DF5-\\u0E00\\u0E3B-\\u0E3E\\u0E5C-\\u0E80\\u0E83\\u0E85\\u0E86\\u0E89\\u0E8B\\u0E8C\\u0E8E-\\u0E93\\u0E98\\u0EA0\\u0EA4\\u0EA6\\u0EA8\\u0EA9\\u0EAC\\u0EBA\\u0EBE\\u0EBF\\u0EC5\\u0EC7\\u0ECE\\u0ECF\\u0EDA\\u0EDB\\u0EE0-\\u0EFF\\u0F48\\u0F6D-\\u0F70\\u0F98\\u0FBD\\u0FCD\\u0FDB-\\u0FFF\\u10C6\\u10C8-\\u10CC\\u10CE\\u10CF\\u1249\\u124E\\u124F\\u1257\\u1259\\u125E\\u125F\\u1289\\u128E\\u128F\\u12B1\\u12B6\\u12B7\\u12BF\\u12C1\\u12C6\\u12C7\\u12D7\\u1311\\u1316\\u1317\\u135B\\u135C\\u137D-\\u137F\\u139A-\\u139F\\u13F5-\\u13FF\\u169D-\\u169F\\u16F1-\\u16FF\\u170D\\u1715-\\u171F\\u1737-\\u173F\\u1754-\\u175F\\u176D\\u1771\\u1774-\\u177F\\u17DE\\u17DF\\u17EA-\\u17EF\\u17FA-\\u17FF\\u180F\\u181A-\\u181F\\u1878-\\u187F\\u18AB-\\u18AF\\u18F6-\\u18FF\\u191D-\\u191F\\u192C-\\u192F\\u193C-\\u193F\\u1941-\\u1943\\u196E\\u196F\\u1975-\\u197F\\u19AC-\\u19AF\\u19CA-\\u19CF\\u19DB-\\u19DD\\u1A1C\\u1A1D\\u1A5F\\u1A7D\\u1A7E\\u1A8A-\\u1A8F\\u1A9A-\\u1A9F\\u1AAE-\\u1AFF\\u1B4C-\\u1B4F\\u1B7D-\\u1B7F\\u1BF4-\\u1BFB\\u1C38-\\u1C3A\\u1C4A-\\u1C4C\\u1C80-\\u1CBF\\u1CC8-\\u1CCF\\u1CF7-\\u1CFF\\u1DE7-\\u1DFB\\u1F16\\u1F17\\u1F1E\\u1F1F\\u1F46\\u1F47\\u1F4E\\u1F4F\\u1F58\\u1F5A\\u1F5C\\u1F5E\\u1F7E\\u1F7F\\u1FB5\\u1FC5\\u1FD4\\u1FD5\\u1FDC\\u1FF0\\u1FF1\\u1FF5\\u1FFF\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u206F\\u2072\\u2073\\u208F\\u209D-\\u209F\\u20BB-\\u20CF\\u20F1-\\u20FF\\u218A-\\u218F\\u23F4-\\u23FF\\u2427-\\u243F\\u244B-\\u245F\\u2700\\u2B4D-\\u2B4F\\u2B5A-\\u2BFF\\u2C2F\\u2C5F\\u2CF4-\\u2CF8\\u2D26\\u2D28-\\u2D2C\\u2D2E\\u2D2F\\u2D68-\\u2D6E\\u2D71-\\u2D7E\\u2D97-\\u2D9F\\u2DA7\\u2DAF\\u2DB7\\u2DBF\\u2DC7\\u2DCF\\u2DD7\\u2DDF\\u2E3C-\\u2E7F\\u2E9A\\u2EF4-\\u2EFF\\u2FD6-\\u2FEF\\u2FFC-\\u2FFF\\u3040\\u3097\\u3098\\u3100-\\u3104\\u312E-\\u3130\\u318F\\u31BB-\\u31BF\\u31E4-\\u31EF\\u321F\\u32FF\\u4DB6-\\u4DBF\\u9FCD-\\u9FFF\\uA48D-\\uA48F\\uA4C7-\\uA4CF\\uA62C-\\uA63F\\uA698-\\uA69E\\uA6F8-\\uA6FF\\uA78F\\uA794-\\uA79F\\uA7AB-\\uA7F7\\uA82C-\\uA82F\\uA83A-\\uA83F\\uA878-\\uA87F\\uA8C5-\\uA8CD\\uA8DA-\\uA8DF\\uA8FC-\\uA8FF\\uA954-\\uA95E\\uA97D-\\uA97F\\uA9CE\\uA9DA-\\uA9DD\\uA9E0-\\uA9FF\\uAA37-\\uAA3F\\uAA4E\\uAA4F\\uAA5A\\uAA5B\\uAA7C-\\uAA7F\\uAAC3-\\uAADA\\uAAF7-\\uAB00\\uAB07\\uAB08\\uAB0F\\uAB10\\uAB17-\\uAB1F\\uAB27\\uAB2F-\\uABBF\\uABEE\\uABEF\\uABFA-\\uABFF\\uD7A4-\\uD7AF\\uD7C7-\\uD7CA\\uD7FC-\\uF8FF\\uFA6E\\uFA6F\\uFADA-\\uFAFF\\uFB07-\\uFB12\\uFB18-\\uFB1C\\uFB37\\uFB3D\\uFB3F\\uFB42\\uFB45\\uFBC2-\\uFBD2\\uFD40-\\uFD4F\\uFD90\\uFD91\\uFDC8-\\uFDEF\\uFDFE\\uFDFF\\uFE1A-\\uFE1F\\uFE27-\\uFE2F\\uFE53\\uFE67\\uFE6C-\\uFE6F\\uFE75\\uFEFD-\\uFF00\\uFFBF-\\uFFC1\\uFFC8\\uFFC9\\uFFD0\\uFFD1\\uFFD8\\uFFD9\\uFFDD-\\uFFDF\\uFFE7\\uFFEF-\\uFFFB\\uFFFE\\uFFFF]/g;\n // clean page title text of things that can screw up BT. Currently [] and non printable chars\n return text.replace(\"[\", '').replace(\"]\", '').replace(clean_non_printable_chars_re, '');\n}", "function clean_string_no_special(input_object) {\n var input_string = input_object.value;\n\n // remove all non alpha numeric\n var first_pass = input_string.replace(/[^a-zA-Z0-9_\\ \\.\\\\\\#\\-_\\/]/g, \"\");\n\n input_object.value = first_pass;\n}", "function validateText(text) {\n\n if (text.length === 0) {\n return null;\n }\n let firstTextDraft = text.trim();\n\n let secondTextDraft = firstTextDraft.toLowerCase();\n\n for (let i = 0; i < secondTextDraft.length; i++) {\n let code = secondTextDraft.charCodeAt(i);\n\n if ((code < 97 || code > 122) && (code != 46 && code != 44 && code != 32)) {\n console.log(secondTextDraft.charAt(i) + \" \" + code);\n secondTextDraft = secondTextDraft.replace(secondTextDraft.charAt(i), \"\");\n i--;\n }\n }\n if (secondTextDraft.length > 200) {\n secondTextDraft = secondTextDraft.slice(0, 200);\n }\n\n return secondTextDraft;\n}", "function removeSpecial(s) {\n return s.replace(/[^a-z0-9]/ig, '');\n }", "function removeSpecials(str) {\n let brokenStr = str.match(/[\\w ]/g);\n return brokenStr != null ? brokenStr.join('') : null;\n}", "function cleanText(message) {\n message = message.toUpperCase();\n return Array\n .from(message)\n .filter(char => validCharacters.has(char))\n .join('');\n}", "function limpiar_nombres(text) {\n var text = text.toLowerCase(); // a minusculas\n text = text.replace(/[áàäâå]/, 'a');\n text = text.replace(/[éèëê]/, 'e');\n text = text.replace(/[íìïî]/, 'i');\n text = text.replace(/[óòöô]/, 'o');\n text = text.replace(/[úùüû]/, 'u');\n text = text.replace(/[ýÿ]/, 'y');\n text = text.replace(/[^a-zA-ZñÑ\\s]/g, '');\n text = text.replace(/\\s{2,}/, ' ');\n text = text.toUpperCase();\n return text;\n}", "function cleanString(str) {\n //withe the help of regex we R going to replace any character that is not a number or lowerCase, upperCase letter with no thing or an empty string\n return str.replace(/[^\\w]/g, \"\").toLowerCase().split(\"\").sort().join(\"\");\n}", "function removeSpecialChars(str){\n\treturn str.replace(/[^a-z0-9A-Z ]+/gi, '').replace(/^-*|-*$/g, '').toLowerCase();\t\n}", "function removePunctuation(strInput){ \n let puncRemove = strInput.filter(char => arrayPunc.indexOf(char) === -1);\n return puncRemove;\n}", "function replaceWordChars(text) {\n var s = text;\n // smart single quotes and apostrophe\n s = s.replace(/[\\u2018|\\u2019|\\u201A]/g, \"\\'\");\n // smart double quotes\n s = s.replace(/[\\u201C|\\u201D|\\u201E]/g, \"\\\"\");\n // ellipsis\n s = s.replace(/\\u2026/g, \"...\");\n // dashes\n s = s.replace(/[\\u2013|\\u2014]/g, \"-\");\n // circumflex\n s = s.replace(/\\u02C6/g, \"^\");\n // open angle bracket\n s = s.replace(/\\u2039/g, \"\");\n // spaces\n s = s.replace(/[\\u02DC|\\u00A0]/g, \" \");\n return s;\n}", "function cleanStr(str) {\n return str.replace(/[^\\w]/g, '').toLowerCase()\n}", "function sanitizeString(str){\n str = str.replace(/[^a-z0-9áéíóúñü \\.,_-]/gim,\"\");\n return str.trim();\n}", "function cleanDocumentText(text) {\n var cleanedText = text.replace(/\\u200B\\u200c/g, '');\n var nonBreakingSpaces = String.fromCharCode(160);\n var regex = new RegExp(nonBreakingSpaces, 'g');\n cleanedText = cleanedText.replace(regex, ' ');\n return cleanedText;\n }", "function strip3(e) {\n\t\tvar Textf=document.getElementById(e);\n\t\tvar repl= /[^0-9a-z.@_]/gi;\n\t\tTextf.value=Textf.value.replace(repl,\"\");\t\n\t\t}", "function punctuation(text){\n\n // Dashes\n text = text.replace(/--/g, '\\u2014');\n text = text.replace(/\\s*\\u2014\\s*/g,'\\u2009\\u2014\\u2009'); //this has thin spaces\n\n // Elipses\n text = text.replace(/\\.\\.\\./g,'…');\n\n // Nbsp for punc with spaces\n var NBSP = '\\u00a0';\n var NBSP_PUNCTUATION_START = /([«¿¡]) /g;\n var NBSP_PUNCTUATION_END = / ([!?:;.,‽»])/g;\n\n text = text.replace(NBSP_PUNCTUATION_START, '$1' + NBSP);\n text = text.replace(NBSP_PUNCTUATION_END, NBSP + '$1');\n\n return text;\n}", "function clean(text) {\n let cleaned = text.replace(/[^a-zA-Z0-9.,:\\s*]/g, \"\");\n return cleaned.replace(/[:]/g,\": \");\n}", "function withoutVowels(text) {\n let remplazar = text.replace([\"a\",\"e\",\"i\",\"o\",\"u\"], \" \");\n return remplazar;\n}", "function removeProblematicChars(text) {\n var result = trimString(text);\n var result = result.replace(/&amp;/,'and').replace(/\\s\\(\\d+\\)/,'').replace(/\\(\\sst\\s\\)\\s/,'');\n return result;\n }", "function simplePigLatin(str) {\r\n var words = str.split(' ');\r\n var patt = /[ `!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?~]/;\r\n for (let i = 0; i < words.length; i++) {\r\n if (patt.test(words[i])) continue;\r\n words[i] = `${words[i]}${words[i][0]}ay`\r\n words[i] = words[i].replace(words[i][0], '')\r\n }\r\n return words.join(' ');\r\n}", "function removeSpacesb(string) {\nstringfixed = string.split(' ').join('-');\nstringfixed = stringfixed.toLowerCase();\nvar r = stringfixed;\nr = r.replace(new RegExp(\"[àáâãäå]\", 'g'),\"a\");\nr = r.replace(new RegExp(\"æ\", 'g'),\"ae\");\nr = r.replace(new RegExp(\"ç\", 'g'),\"c\");\nr = r.replace(new RegExp(\"[èéêë]\", 'g'),\"e\");\nr = r.replace(new RegExp(\"[ìíîï]\", 'g'),\"i\");\nr = r.replace(new RegExp(\"ñ\", 'g'),\"n\"); \nr = r.replace(new RegExp(\"[òóôõö]\", 'g'),\"o\");\nr = r.replace(new RegExp(\"œ\", 'g'),\"oe\");\nr = r.replace(new RegExp(\"[ùúûü]\", 'g'),\"u\");\nr = r.replace(new RegExp(\"[ýÿ]\", 'g'),\"y\");\nr = r.replace(new RegExp(\"[!¡¿?]\", 'g'),\"\");\nreturn r;\n\n }", "function clean_string_no_special(input_object) {\n var input_string = input_object.value;\n\n // remove all non alpha numeric\n var first_pass = input_string.replace(/[^a-zA-Z0-9_\\ \\.\\\\\\#\\-_\\/]/g, \"\");\n var second_pass = first_pass.replace(/\\./g, \"-\");\n input_object.value = second_pass;\n }", "function clean( w ){\n\treturn w.replace(/[^\\d\\w\\s,().\\?\\/\\\\n\\\\t{}<>=\\\"\\\":%-]/gi, '') // remove special chars\n\t\t\t.replace(/\\s+/g, \" \") // remove extra spaces\n\t\t\t.trim(); // remove trailing chars\n}", "function stripAccent(str)\r\n{\r\n var s=str;\r\n\r\n var rExps=[ \r\n /[\\xC0-\\xC2]/g, /[\\xE0-\\xE2]/g,\r\n /[\\xC8-\\xCA]/g, /[\\xE8-\\xEB]/g,\r\n /[\\xCC-\\xCE]/g, /[\\xEC-\\xEE]/g,\r\n /[\\xD2-\\xD4]/g, /[\\xF2-\\xF4]/g,\r\n /[\\xD9-\\xDB]/g, /[\\xF9-\\xFB]/g, \r\n /[\\xD1]/g, /[\\xF1]/g ];\r\n\r\n var repChar=['A','a','E','e','I','i','O','o','U','u','N','n'];\r\n\r\n for(var i=0; i<rExps.length; i++)\r\n s=s.replace(rExps[i],repChar[i]);\r\n\r\n return s;\r\n}", "function punctuation(text){\n\n // Dashes\n text = text.replace(/--/g, '\\u2014');\n text = text.replace(/ \\u2014 /g,\"\\u2009\\u2014\\u2009\"); //this has thin spaces\n\n // The following are temporary commented out because incompatibility\n // with katex\n\n // Elipses\n // text = text.replace(/\\.\\.\\./g,'…');\n\n // Nbsp for punc with spaces\n // var NBSP = \"\\u00a0\";\n // var NBSP_PUNCTUATION_START = /([«¿¡]) /g;\n // var NBSP_PUNCTUATION_END = / ([\\!\\?:;\\.,‽»])/g;\n\n // text = text.replace(NBSP_PUNCTUATION_START, '$1' + NBSP);\n // text = text.replace(NBSP_PUNCTUATION_END, NBSP + '$1');\n\n return text;\n}", "function stripNonAscii(str) {\n return str.replace(/[^\\x00-\\x7F]/ig, ' ');\n }", "function containsOnlyLetters(input)\n{\n\treturn /^[a-zA-Z]/.test(input.replace(/\\s/g, ''));\n}", "function parseWord(word) {\n let re = new RegExp(`[^${ALLOWEDCHARACTERS}]`, 'gi');\n\n cleaned = word\n // .toLowerCase()\n .replace(/[\\u2018\\u2019]/g, \"'\")\n .replace(/[\\u201c\\u201d]/g, '\"')\n .replace(re, '');\n\n return cleaned;\n}", "function cleanString(input) {\n let output = \"\";\n for (var i=0; i<input.length; i++) {\n if (input.charCodeAt(i) <= 127) {\n output += input.charAt(i);\n } else {\n output += ' '; // invilid char will replaced with an empty string\n }\n }\n return output;\n}", "function clean(string) {\n string = string\n .toLowerCase()\n .replace(/[^a-zA-Z0-9 ]/g, \"\")\n .replace(\n /([\\uE000-\\uF8FF]|\\uD83C[\\uDC00-\\uDFFF]|\\uD83D[\\uDC00-\\uDFFF]|[\\u2011-\\u26FF]|\\uD83E[\\uDD10-\\uDDFF])/g,\n \"\"\n )\n .replace(\" \", \"\")\n .trim();\n return string;\n }", "function safeConvert(Text) {\r\n return Text.toLowerCase()\r\n .replace(/ /g, \"-\")\r\n .replace(/[^\\w-]+/g, \"\");\r\n}", "function cleanstringSpecial(str) {\n\tif(str){\n\tvar newStr = str.trim().toLowerCase();\n\tnewStr = newStr.replace(\"é\",\"e\");\n\tnewStr = newStr.replace(\"è\",\"e\");\n\tnewStr = newStr.replace(\"ç\",\"c\");\n\tnewStr = newStr.replace(\"-\",\" \");\n\tnewStr = newStr.replace(\"ë\",\"e\");\n\tnewStr = newStr.replace(\".\",\"\");\n\tnewStr = newStr.replace(/é/g , \"e\");\n\tnewStr = newStr.replace(/è/g , \"e\");\n\tnewStr = newStr.replace(/ç/g , \"c\");\n\tnewStr = newStr.replace(/_/g , \" \");\n\tnewStr = newStr.replace(/ë/g , \"e\");\n\tnewStr = newStr.replace(/\\./g , \"\");\n\tnewStr = newStr.replace(\" \",\" \");\n\treturn newStr;\n\t}\n}", "function filterStr(str) {\n var alphaNums = \"abcdefghijklmnopqrstuvwxyz1234567890\"\n return str.split(\"\").filter(function(char) {\n return alphaNums.includes(char.toLowerCase())\n })\n .join(\"\")\n}", "function removeNonASCII(str){\n\t str = toString(str);\n\n\t // Matches non-printable ASCII chars -\n\t // http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters\n\t return str.replace(/[^\\x20-\\x7E]/g, '');\n\t }", "function remove_non_ascii(str) {\n if ((str === null) || (str === ''))\n return false;\n else\n str = str.toString();\n return str.replace(/[^\\x20-\\x7E\\uC00-\\u0C7F]/g, '');\n}", "function onlyLetters( string ) {\n\tfor ( var i = 0; i < string.length; i++ ) {\n\t\tif ( !isLetter( string[ i ] ) ) {\n\t\t\tstring = string.substr( 0, i ) + string.substr( i + 1, string.length - i );\n\t\t\ti--;\n\t\t}\n\t}\n\treturn string;\n}", "function isLetter(str, pos) {\n if (pos < 0 || pos >= str.length) { return false; }\n return !PUNCT_RE.test(str[pos]);\n }", "function cleanText(text) {\n const clean = text\n .replace(/\\s+/g, \"\") // remove spaces\n .replace(/,+/g, \",\") // `,,,` -> `,`\n .replace(/-+/g, \"-\") // `---` -> `-`\n .replace(/[^\\d,-.]/g, \"\") // filter out chars not allowed\n .replace(/[.]+/g, \",\"); // `...` -> `,`\n // TODO: why ^\n return clean;\n}", "function stripText(text) {\n return text.replace(/<[^>]+>|[!.?,;:'\"-]/g,'').replace(/\\r?\\n|\\r|\\s+|\\t/g, ' ').trim();\n }", "function removeSpecialCharStringArray(text) {\n const token = tokenizer.tokenize(text);\n token.forEach(() => {\n text = text.replace('ç', 'c').replace('ê', 'e')\n .replace('é', 'e').replace('á', 'a')\n .replace('ã', 'a').replace('â', 'a').replace('õ', 'o');\n })\n return text;\n}", "function text_filter(text) {\n return text.replace(/(?:\\[|\\])/g, '');\n }", "function clearText(strText, strChars, booAcceptChar)\n{\n if (empty(strText))\n return false;\n if (!isBoolean(booAcceptChar))\n booAcceptChar = true;\n var strSymbol = (booAcceptChar === true) ? '!=' : '==';\n var strResult = '';\n for (var intCount = 0; intCount < strText.length; ++intCount)\n eval('if (strChars.indexOf(strText.charAt(intCount)) ' + strSymbol + ' -1) strResult += strText.charAt(intCount);');\n return strResult;\n}", "function stripDiacritics(string) {\n return typeof string.normalize !== 'undefined' ? string.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '') : string;\n}", "function clean(text) {\n return ('' + text).replace(/[<>]/g, '');\n }", "function slugify(text) {\n\ttext = text.replace(/[^-a-zA-Z0-9\\s]+/ig, '');\n\ttext = text.replace(/-/gi, \"_\");\n\ttext = text.replace(/\\s/gi, \"-\");\n\treturn text;\n}", "function removeCaracEspeciais(str) {\r\n\treturn str.normalize('NFD').replace(/[\\u0300-\\u036f]/g, '');\r\n}", "function sentensify(str) {\n \nreturn str.split(/\\W/).join(\" \");\n\n \n}", "function isLetter(str, pos) {\n\t if (pos < 0 || pos >= str.length) { return false; }\n\t return !PUNCT_RE.test(str[pos]);\n\t}", "function isLetter(str, pos) {\n\t if (pos < 0 || pos >= str.length) { return false; }\n\t return !PUNCT_RE.test(str[pos]);\n\t}", "function isLetter(str, pos) {\n\t if (pos < 0 || pos >= str.length) { return false; }\n\t return !PUNCT_RE.test(str[pos]);\n\t}", "function trimAlphaNum(inputString, settings) {\n\n\t\tif (typeof inputString != \"string\")\n\t\t\treturn inputString;\n\n\t\tvar inChars = inputString.split(\"\");\n\t\tvar outChars = [];\n\t\tvar i = 0;\n\t\tvar Char;\n\n\t\tfor (i = 0; i < inChars.length; i++) {\n\t\t\tChar = inChars[i];\n\t\t\tvar validatedStringFragment = outChars.join(\"\");\n\t\t\tif (alphanum_allowChar(validatedStringFragment, Char, settings))\n\t\t\t\toutChars.push(Char);\n\t\t}\n\n\t\treturn outChars.join(\"\");\n\t}", "function omitirAcentos(text) {\n var acentos = 'ÃÀÁÄÂÈÉËÊÌÍÏÎÒÓÖÔÙÚÜÛãàáäâèéëêìíïîòóöôùúüûÑñÇç';\n var original = 'AAAAAEEEEIIIIOOOOUUUUaaaaaeeeeiiiioooouuuunncc';\n for (var i = 0; i < acentos.length; i++) {\n text = text.replace(acentos.charAt(i), original.charAt(i));\n }\n return text;\n}", "function autoEdUnicodeControlChars(str) { //MAIN FUNCTION describes list of fixes\n \n //Removes unneeded Unicode control characters\n str = str.replace(new RegExp('\\u200E|\\uFEFF|\\u200B', 'gi'), '');\n \n return str;\n}", "function reomveChar(str){\n let result = ''\n for(let i = 0; i < str.length; i++){\n if (str[i] !== 'a' && str[i] !== 'e' && str[i] !== 'i' && str[i] !== 'o' && str[i] !== 'u' ){\n\n result += str[i]\n }\n }\n return result;\n}", "function cleanTextInput(string) {\r\n return string.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\r\n}", "function stripAccents(str)\n{\n var rExps=[\n {\n re:/\\xC7/g,\n ch:'C'\n },\n\n {\n re:/\\xE7/g,\n ch:'c'\n },\n\n {\n re:/[\\xC0-\\xC6]/g,\n ch:'A'\n },\n\n {\n re:/[\\xE0-\\xE6]/g,\n ch:'a'\n },\n\n {\n re:/[\\xC8-\\xCB]/g,\n ch:'E'\n },\n\n {\n re:/[\\xE8-\\xEB]/g,\n ch:'e'\n },\n\n {\n re:/[\\xCC-\\xCF]/g,\n ch:'I'\n },\n\n {\n re:/[\\xEC-\\xEF]/g,\n ch:'i'\n },\n\n {\n re:/[\\xD2-\\xD6]/g,\n ch:'O'\n },\n\n {\n re:/[\\xF2-\\xF6]/g,\n ch:'o'\n },\n\n {\n re:/[\\xD9-\\xDC]/g,\n ch:'U'\n },\n\n {\n re:/[\\xF9-\\xFC]/g,\n ch:'u'\n },\n\n {\n re:/[\\xD1]/g,\n ch:'N'\n },\n\n {\n re:/[\\xF1]/g,\n ch:'n'\n } ];\n\n for(var i=0, len=rExps.length; i<len; i++)\n str=str.replace(rExps[i].re, rExps[i].ch);\n\n return str;\n}", "function unaccent(str) {\n let re = null,\n i = null,\n newStr = new String(str)\n\n for (i in UNACCENT_REGEXES) {\n newStr = newStr.replace(UNACCENT_REGEXES[i][0], UNACCENT_REGEXES[i][1])\n }\n\n return newStr\n}", "function isLetter(str, pos) {\n if (pos < 0 || pos >= str.length) { return false; }\n return !PUNCT_RE.test(str[pos]);\n}", "function isLetter(str, pos) {\n if (pos < 0 || pos >= str.length) { return false; }\n return !PUNCT_RE.test(str[pos]);\n}", "function purgeWord(str) {\n str = str.replace(\" \", \"\");\n str = str.replace(\",\", \"\");\n str = str.toLowerCase();\n return str\n}", "function clean_string_first_alpha(input_object) {\n var input_string = input_object.value;\n\n // remove all non alpha numeric\n var first_pass = input_string.replace(/[^a-zA-Z0-9_\\ \\.\\\\\\#\\-_\\/]/g, \"\");\n var second_pass = first_pass.replace(/\\./g, \"-\");\n var third_pass = second_pass.replace(/^([0-9])/, 'z$1')\n input_object.value = third_pass;\n }", "function getNotAlphabet(chars){\n\tvar newAlpha = \"\";\n\tfor(var i=0; i<alphabet.length; i++){\n\t\tif(chars.indexOf(alphabet[i]) == -1){\n\t\t\tnewAlpha += alphabet[i];\n\t\t}\n\t}\n if(chars.indexOf('_') == -1){\n\t\tnewAlpha += \"_\";\n }\n\treturn newAlpha;\n}", "function regexEscape(text) {\n return text.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, \"\\\\$&\");\n }", "function cleanWord (word) {\n if (!word) return ''\n var cleanWord = word.replace(/[()!,;:.\"]+/, '')\n return cleanWord\n}", "function cleanStr (str) {\n return str.trim().toLowerCase().normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n}", "function removeExclamationMarks(s) {\n\treturn s.replace(/[^\\w\\s]/gi, '');\n}", "function cleanText(kabobString){\n let words = kabobString.split('-')\n words.forEach((word, index) => {\n let newWord = word[0].toUpperCase() + word.slice(1)\n //if statements to compensate for irregular apostrophes and capitalization\n if(newWord.endsWith('s')){\n newWord = newWord.slice(0, newWord.length - 1) + \"'\" + newWord[newWord.length -1]\n }\n if(newWord.endsWith('n')){\n newWord = newWord + \"'\"\n }\n if(newWord.charAt(2) === 'd'){\n newWord = newWord.slice(0,2) + newWord[2].toUpperCase() + newWord.slice(3)\n }\n words[index] = newWord;\n });\n return words.join(' ')\n }", "function slugify(text) {\n text = text.replace(/[^-a-zA-Z0-9,&\\s]+/ig, '');\n text = text.replace(/-/gi, \"_\");\n text = text.replace(/\\s/gi, \"-\");\n return text;\n }" ]
[ "0.7798223", "0.7383775", "0.7277069", "0.70950717", "0.6939008", "0.69011164", "0.6868809", "0.6863614", "0.6786827", "0.6784168", "0.6726024", "0.67174125", "0.66825104", "0.6614816", "0.6602294", "0.65963924", "0.6559598", "0.65533686", "0.6538364", "0.65031105", "0.6491785", "0.64697564", "0.64487314", "0.64291364", "0.6424953", "0.6397038", "0.6394107", "0.6336208", "0.6336208", "0.6329341", "0.6321415", "0.6293089", "0.6274401", "0.62718415", "0.6255848", "0.6230052", "0.62162024", "0.6177446", "0.6157739", "0.6148544", "0.6133155", "0.6120312", "0.6107338", "0.6105072", "0.60852045", "0.60728467", "0.6068438", "0.60598373", "0.60595804", "0.6053458", "0.60499233", "0.6009836", "0.6007166", "0.5992526", "0.5985894", "0.5984031", "0.59836304", "0.59746563", "0.59718657", "0.5966328", "0.5941082", "0.59308404", "0.59258866", "0.59170747", "0.59078825", "0.58971184", "0.5891352", "0.5890926", "0.587669", "0.5875783", "0.5869383", "0.58582425", "0.5850081", "0.5843181", "0.58409214", "0.5839807", "0.5805793", "0.57985675", "0.5796132", "0.5792998", "0.5792998", "0.5792998", "0.57847434", "0.5777017", "0.57424134", "0.57370704", "0.57321906", "0.5724886", "0.5723978", "0.57158357", "0.57158357", "0.5713439", "0.570532", "0.5703673", "0.57036203", "0.56990033", "0.5697554", "0.5695881", "0.5690357", "0.56861955" ]
0.5949461
60
share globals vars with lichess
function injectScript(file, node) { var element = document.getElementsByTagName(node)[0]; var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.setAttribute('src', file); element.appendChild(script); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _____SHARED_functions_____(){}", "set UseGlobal(value) {}", "get UseGlobal() {}", "function sharingIsCaring() {\n console.log(globalVar)\n}", "function setupGlobals(secrets) {\n SECRET_KEY = secrets.secretKey;\n CLIENT_ID = secrets.clientId;\n REDIRECT_URI = secrets.redirectUri;\n}", "function __loadGlobals(){\n if($rootScope.globals === void 0 || typeof $rootScope.globals == 'undefined'){\n //@todo test if we can get globals from localStorage\n $http({url:'config/server_api.json', method:'GET'})\n .then(function successCallback(response) {\n $rootScope.server_api = response.data;\n });\n }\n }", "function setGlobals() {\n const env = (global || window);\n if (!env.hasOwnProperty(\"FormData\")) {\n env.FormData = require(\"form-data\");\n }\n if (!env.hasOwnProperty(\"fetch\")) {\n env.fetch = require(\"node-fetch\");\n }\n}", "function globals() {\n\t\textend(window, {\n\t\t\tconsole: {\n\t\t\t\tlog: function() {},\n\t\t\t\tdebug: function() {},\n\t\t\t\twarn: function() {},\n\t\t\t\terror: function() {}\n\t\t\t}\n\t\t});\n\t}", "shareGlobalVars() {\r\n this.addGlobal('appDiskRoot', electron_1.remote.getGlobal('appDiskRoot'));\r\n this.addGlobal('appCodeRoot', electron_1.remote.getGlobal('appCodeRoot'));\r\n this.addGlobal('webRoot', electron_1.remote.getGlobal('webRoot'));\r\n this.addGlobal('packMode', this._mainApp.options.packMode);\r\n this.addGlobal('isDebug', this._mainApp.isDebug);\r\n this.addGlobal('windowName', this._parentWindow.name);\r\n return this;\r\n }", "function setGlobal(parameters) {\n\twindow[parameters.name] = parameters.value;\n}", "function _BindGlobals(){\r\n\t\t\r\n\t\tif(typeof window.$$ !== \"undefined\"){\r\n\t\t\t_Original$$ = window.$$;\r\n\t\t}\r\n\t\t\r\n\t\twindow.$$ = _Penguin;\r\n\t\twindow.Penguin = _Penguin;\r\n\t\t\r\n\t}", "global(name, value) {\n this.GLOBALS[name] = value;\n return this;\n }", "function _updateGlobals() {\n let globalVars = last(globalsToUseStack);\n for (let obj of allGlobalsRequested) {\n for (let key of Object.keys(obj)) {\n obj[key] = globalVars[key];\n }\n }\n}", "get global() {\n return globals;\n }", "function getGlobal(e){if(!e)return e;var t=global;return each(e.split(\".\"),function(e){t=t[e]}),t}", "function AccessVariableGlobally() {\n globalName=\"Block360\"\n var localVariable=\"CIE-NUST\"\n}", "function setGlobalVariables() {\n officeName = officeLoc[beach].name;\n beachID = officeLoc[beach].beachID;\n weatherID = officeLoc[beach].weatherID;\n officeLatCoord = officeLoc[beach].lat;\n officeLonCoord = officeLoc[beach].lon;\n transit = officeLoc[beach].transit;\n videoLetterboxed = officeLoc[beach].videoLetterboxed;\n measurements = homeOfficeInfo[0].measurements;\n\n if (measurements === english) {\n heightUnit = 'ft';\n surflineVar = 'e';\n tempUnit = 'f';\n } else if (measurements === metric) {\n heightUnit = 'm';\n surflineVar = 'm';\n tempUnit = 'c';\n }\n}", "Global(varName){\n // return gameState.globals[varName];\n }", "function _set_common(stack_name, thing){\n\tvar ret = null;\n\tif( stack_name == 'css_libs' ||\n\t stack_name == 'js_libs' ||\n\t stack_name == 'js_vars' ){\n\t _add_permanently_to(stack_name, thing);\n\t ret = thing;\n\t}\n\t//console.log('added ' + thing.length + ' to ' + stack_name);\n\n\treturn ret;\n }", "_setGlobal() {\n if (this.config.setGlobal) {\n window.__ = this.__.bind(this);\n }\n }", "_filterGlobals() {\n\t\tif (!global.RocketGlobals)\n\t\t\treturn;\n\n\t\tconst {defineGlobals} = new Function(`return {${global.RocketGlobals}}`)();\n\t\t\n\t\tconst globals = Object.assign([], globalList, defineGlobals !== undefined ? defineGlobals() : []);\n\t\t\n\t\tvar fileData = global.RocketFunction;\n\n\t\tglobals.forEach(glob => {\n\t\t\tfileData = fileData.replace(new RegExp(`:\\\\s*${glob}`), `: \"${glob}\"`);\n\t\t});\n\n\t\tglobal.RocketFunction = fileData;\n\t}", "function setupSomeGlobals() {\n // Local variable that ends up within closure\n var num = 666;\n // Store some references to functions as global variables\n gAlertNumber = function() { alert(num); }\n gIncreaseNumber = function() { num++; }\n gSetNumber = function(x) { num = x; }\n}", "function globalize(env){\n\tif( !env){\n\t\tenv= require( \".\")\n\t}\n\tfor( var i in env){\n\t\tglobal[ i]= env[i]\n\t}\n\treturn global\n}", "function getGlobal() {\n var moduleGlobal = {};\n\n for (var g in jspm.global) {\n if (jspm.global.hasOwnProperty(g) && g != 'window' && globalObj[g] != jspm.global[g])\n moduleGlobal[g] = jspm.global[g];\n }\n return moduleGlobal;\n }", "function useGlobals() {\n var channel = _index__WEBPACK_IMPORTED_MODULE_22__[/* addons */ \"a\"].getChannel();\n\n var _useStoryContext3 = useStoryContext(),\n globals = _useStoryContext3.globals;\n\n var updateGlobals = useCallback(function (newGlobals) {\n return channel.emit(_storybook_core_events__WEBPACK_IMPORTED_MODULE_21__[/* UPDATE_GLOBALS */ \"h\"], {\n globals: newGlobals\n });\n }, [channel]);\n return [globals, updateGlobals];\n}", "function createGlobals() {\n\tvar keys,\n\t\ti;\n\tkeys = Object.keys( compute );\n\tfor ( i = 0; i < keys.length; i++ ) {\n\t\twindow[ keys[i] ] = compute[ keys[i] ];\n\t}\n}", "function initGlobals(){\n\tclicked=false;\n\ttimer_3sec = 0;\n\ttimer_8sec = 0;\n\tmouse_over=false;\n\twaited_8sec_over=false;\n\twaited_8sec=false;\n\tstarted_wait_8sec = false;\n\tstarted_wait_3sec = false;\n\twaited_3sec=false;\n\tmouse_clicked = false;\n}", "function _main() {\n window.tools = {} || window.tools;\n window.tools.log = _log;\n }", "getGlobals(...args){\n\n let [allBugs,\n allGems,\n allRocks,\n allKeys,\n life,\n gemCounter,\n keyCounter,\n player] = args;\n\n return {allBugs, allGems, allRocks, allKeys, life, gemCounter, keyCounter, player};\n }", "function useGlobals() {\n var channel = dist$3.addons.getChannel();\n\n var _useStoryContext3 = useStoryContext(),\n globals = _useStoryContext3.globals;\n\n var updateGlobals = useCallback(function (newGlobals) {\n return channel.emit(dist$4.UPDATE_GLOBALS, {\n globals: newGlobals\n });\n }, [channel]);\n return [globals, updateGlobals];\n}", "function setGlobalVars() {\n\t\t\t/**\n\t\t\t * Is the mobile view being displayed\n\t\t\t */\n\t\t if( $( '#mobile-nav-icon' ).css( \"display\" ) == 'none' ) {\n\t\t \t\tmobileView = false;\n\t\t \t} else {\n\t\t\t \tmobileView = true;\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Toggle the mobile menu depending on whether the mobile view is being displayed.\n\t\t\t */\n\t\t\tif( mobileView ) {\n\t\t\t\t$( '#mobile-nav-dropdown' ).hide();\t\n\t\t\t} else {\n\t\t\t\t$( '#mobile-nav-dropdown' ).show();\n\t\t\t}\n\t\t}", "function addToGlobal(name, value) {\n globalData[name] = value;\n }", "function globals() {\n return {\n range: function range(start, stop, step) {\n if (typeof stop === 'undefined') {\n stop = start;\n start = 0;\n step = 1;\n } else if (!step) {\n step = 1;\n }\n\n var arr = [];\n\n if (step > 0) {\n for (var i = start; i < stop; i += step) {\n arr.push(i);\n }\n } else {\n for (var _i = start; _i > stop; _i += step) {\n // eslint-disable-line for-direction\n arr.push(_i);\n }\n }\n\n return arr;\n },\n cycler: function cycler() {\n return _cycler(Array.prototype.slice.call(arguments));\n },\n joiner: function joiner(sep) {\n return _joiner(sep);\n }\n };\n}", "function fun1(){\n // Note: Can be set without var, since within a function scoped with the function, since var is not included it is set as global scope, wont work in scrimba, but will work in browsers\n oopsGlobal = 5;\n}", "_makeGlobal() {\n try{\n if(window && !window.Filteredlist) {window['Filteredlist'] = {};}\n if(window && window.Filteredlist && !window.Filteredlist.instance) {window.Filteredlist.instance = {};}\n\n window.Filteredlist.instance[this.options.id || Math.random()*10000] = this;\n }catch(e){}\n }", "function globals() {\n\t return {\n\t range: function(start, stop, step) {\n\t if(typeof stop === 'undefined') {\n\t stop = start;\n\t start = 0;\n\t step = 1;\n\t }\n\t else if(!step) {\n\t step = 1;\n\t }\n\n\t var arr = [];\n\t var i;\n\t if (step > 0) {\n\t for (i=start; i<stop; i+=step) {\n\t arr.push(i);\n\t }\n\t } else {\n\t for (i=start; i>stop; i+=step) {\n\t arr.push(i);\n\t }\n\t }\n\t return arr;\n\t },\n\n\t // lipsum: function(n, html, min, max) {\n\t // },\n\n\t cycler: function() {\n\t return cycler(Array.prototype.slice.call(arguments));\n\t },\n\n\t joiner: function(sep) {\n\t return joiner(sep);\n\t }\n\t };\n\t}", "function clearGlobalsVariables(){\n\tglobalFileName = null;\n\tglobalFileContent = null;\n\tglobalFileMimeType = null;\n\tglobalFilePath = null;\n\tglobalFileExtension = null;\n}", "function setGlobal(n, v) {\n globals[n] = v;\n}", "function globalize (e, just) {\n // determine the global context\n var _global\n if (typeof window !== 'undefined') {\n _global = window\n } else {\n _global = (typeof global === 'undefined')\n ? GLOBAL\n : global\n }\n\n // parse wsv just array, if needed\n if (just && (typeof just === 'string')) {\n just = just.trim().split(/\\s+/)\n }\n\n // put each key of the given export object into the\n // global context (optionally limited by just)\n Object.keys(e).forEach(function (k) {\n if (!just || (just.indexOf(k) >= 0)) {\n _global[k] = e[k]\n }\n })\n}", "function mockGlobalScope() {\n Object.assign(global, { __STATIC_CONTENT_MANIFEST: (0, exports.mockManifest)() });\n Object.assign(global, { __STATIC_CONTENT: (0, exports.mockKV)(store) });\n}", "function addToGlobalScope() {\n var shell = require('./shell');\n for (var i in shell) {\n if (shell.hasOwnProperty(i)) {\n global[i] = shell[i];\n }\n }\n}", "function loadGlobals() {\n this.task('Load globals', () => {\n this.global = parseDataDir(this.internal.paths.globals).keyed();\n });\n}", "function arkGlobal() {\n $.get(\"/arkGlobal\", function(data) {\n wishes = data;\n getGlobal();\n });\n }", "function fun1() {\n // Assign 5 to oopsGlobal Here\n oopsGlobal = 5;\n}", "function refresh_globals() {\n widget_data.global_div.innerHTML = '<h3 style=\"text-align:center;\">Global Variables</h3>';\n if(widget_data.globals !== undefined) {\n var details_div = document.createElement(\"div\");\n details_div.style.padding = \"5px\";\n Object.keys(widget_data.globals).forEach(function(key, index) {\n var p = document.createElement('p');\n p.innerHTML = `<b>${key}:</b> ${widget_data.globals[key]}`;\n details_div.appendChild(p);\n });\n widget_data.global_div.appendChild(details_div);\n }\n }", "function _cache() {\n $window = $(window);\n $body = $('body');\n $html = $('html');\n $header = $('.site-header');\n $banner = $('.banner');\n headerHeight = 55;\n subnavOffsetTop = 360;\n $subnav = $('.sub-nav');\n }", "function h$getGlobal(that) {\n if(typeof global !== 'undefined') return global;\n return that;\n}", "function getglobalsettings() {\r\r\n // get these/set from local storage when loading the any page\r\r\n coinpricearray = getitem('coinpricearray', []); // TES coinlist. refreshed on successful api call\r\r\n global_num = getitem('global_num', \"100\"); // how many in total to load?\r\r\n global_smallnum = getitem('global_smallnum', \"10\"); // load top '10's\r\r\n global_interval = getitem('global_interval', \"300000\"); //5mins in miliseconds\r\r\n global_icons = getitem('global_icons', \"1\"); // show icons in (use -1 for false)\r\r\n global_allicons = getitem('global_allicons', \"1\"); // show icons everywhere\r\r\n global_numindex = getitem('global_numindex', \"10\"); // index, how many coins to count in summary\r\r\n global_tickerurl = getitem('global_tickerurl', \"https://api.coinmarketcap.com/v1/ticker/?limit=\"); + global_num; // watchlist\r\r\n\r\r\n // defaultwatchlist = [\"BTC\", \"ETH\", \"BCH\", \"XRP\", \"LTC\"] // top 5 by market cap\r\r\n global_coinlist = getitem('global_coinlist', [\"BTC\", \"ETH\", \"BCH\", \"XRP\", \"LTC\"]); // default watchlist (note: Object) \r\r\n\r\r\n global_currency = getitem('global_currency', \"USD\"); // not used yet.\r\r\n\r\r\n}", "function use(...names) {\n let globalVars = last(globalsToUseStack);\n var obj = {};\n for (let key of names) {\n obj[key] = globalVars[key];\n }\n allGlobalsRequested.push(obj);\n return obj;\n}", "function restoreContextAfterImports () {\n try {\n global.define = __define\n } catch (_) {\n console.warn('IXO Keysafe - global.define could not be overwritten.')\n }\n}", "function initGlobal(){\n\n\t//\n\t// START TIMER\n\tif($('message_time_wrapper')) {\n\t\tstartCount();\n\t}\n}", "function _main() {\n try {\n // the modules own main routine\n //_logCalls();\n\n // enable a global accessability from window\n window.tools = {} || window.tools;\n window.tools._log = _log;\n window.tools._addNavigation = _addNavigation;\n } catch (error) {\n console.log(error);\n }\n\n }", "function q3() {\n window.a = \"hello\";\n}", "function main() {\n new Thread(function() {\n while (1) {\n Thread.sleep(1);\n console.log('sharedGlobal = ' + sharedGlobal);\n }\n }).start();\n new Thread(function() {\n while (1) {\n Thread.sleep(1);\n sharedGlobal++;\n }\n }).start();\n}", "async function setGlobal(script) {\n !!script.hasAttribute('use-global') && (global.Cogizmo = Cogizmo);\n return (!!(global.Cogizmo));\n}", "function changeGlobal() {\n\n // global still = 1\n\n a = 2;\n\n // global now = 2 because you are not creating a new variable\n // just redefining a\n // a instead of var a\n\n return a;\n}", "function cleanContextForImports () {\n __define = global.define\n try {\n global.define = undefined\n } catch (_) {\n console.warn('IXO Keysafe - global.define could not be deleted.')\n }\n}", "function global(map){\n Object.keys(map).forEach(function(key){\n var file = map[key],\n arr = file.split('#'),\n mdl = require('./lib/'+arr[0]+'.js');\n // for util/logger#Logger\n if (!!arr[1]){\n // for util/logger#level,logger\n var brr = arr[1].split(',');\n if (brr.length>1){\n var ret = {};\n brr.forEach(function(name){\n ret[name] = mdl[name];\n });\n mdl = ret;\n }else{\n mdl = mdl[brr[0]];\n }\n }\n exports[key] = mdl;\n });\n}", "function initializeGlobalVariables() {\n selectedElements = [];\n totalMoves = 0;\n totalMatchFound = 0;\n starRating = 0;\n}", "function secret() {\n\t\tvar unused1;\n\t}", "function pushGlobals(globals) {\n globalsToUseStack.push(globals);\n _updateGlobals();\n}", "function assignLibs(g) {\n g.assert = require('assert');\n g.bluebird = require('bluebird');\n g.bunyan = require('bunyan');\n g.crypto = require('crypto');\n g.fs = require('fs');\n g.http = require('http');\n g.lodash = require('lodash');\n g.os = require('os');\n g.redisLib = require('redis');\n}", "_initCommon() {\n // common.js initialization\n if (typeof Common !== 'undefined') {\n let common = new Common();\n }\n }", "function Common(){}", "function initGlobals() {\n docHeight = document.body.clientHeight;\n docWidth = document.body.clientWidth;\n images = getImages();\n flapNoise = new Audio(\"src/flap.mp3\");\n birdImage = images.bird;\n}", "function fun1() {\n // Assign 5 to oopsGlobal Here\n oopsGlobal = 5; // this is a global variable b/c no var definition\n}", "function globalFunction(){\n console.log(globalVariable);\n}", "get mutableGlobal() { return check(mutableGlobalWasm); }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobal(value) {\n if (!value) {\n return value;\n }\n var g = global;\n each(value.split('.'), function (part) {\n g = g[part];\n });\n return g;\n }", "function getGlobalSettings() {\n return global_settings;\n}", "function Utils() {}", "function Utils() {}", "function genEnv() {\n\n\n}", "function Common() {\n\n}", "function Common() {}", "function privateFunction(){\n\t// That will be used only on this file\n}", "function setGlobalDir(dir){globalDir=dir;}", "function Utils(){}", "function Constants() {}", "function Constants() {}", "function initGlobals() {\n\tvar ptReg = /^page-type-/;\n\tpageType = $(document.body).classNames().find(function(className) {\n\t\treturn ptReg.test(className);\n\t}).replace(ptReg, \"\");\n\n\t$A([\"content\", \"header\"]).each(function(zoneId) {\n\t\ttry {\n\t\t\tvar _zone = $(zoneId + \"-zone\");\n\t\t\tif (!_zone) {\n\t\t\t\tthrow (\"Implementation Exception: Zone \" + zoneId + \" is missing.\");\n\t\t\t}\n\t\t\tzone[zoneId] = _zone;\n\t\t} catch (e) {\n\t\t\talert(e);\n\t\t\treturn false;\n\t\t}\n\t});\n\treturn true;\n}" ]
[ "0.6976374", "0.68955857", "0.67717063", "0.6611052", "0.6594208", "0.65863484", "0.65420514", "0.65121293", "0.6459385", "0.6412006", "0.6410895", "0.63933814", "0.63559383", "0.632651", "0.6317099", "0.62995976", "0.62937015", "0.6271817", "0.62130845", "0.6212552", "0.62011755", "0.61844176", "0.6163488", "0.613249", "0.61219984", "0.6116322", "0.6104518", "0.60775167", "0.6076523", "0.6072297", "0.60429096", "0.6028707", "0.60215276", "0.60005975", "0.5991449", "0.597863", "0.59351397", "0.5934867", "0.59114957", "0.58900666", "0.58880085", "0.5884434", "0.5871158", "0.58554256", "0.58316207", "0.5818944", "0.5810605", "0.5789809", "0.5776048", "0.5772569", "0.57701993", "0.5761455", "0.5752669", "0.5735246", "0.5734498", "0.572971", "0.5711039", "0.57018286", "0.5698442", "0.56979424", "0.5681093", "0.5634028", "0.5629262", "0.5623153", "0.56007063", "0.5595301", "0.55926734", "0.5590358", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.557484", "0.55547416", "0.55463177", "0.55463177", "0.55407834", "0.55395776", "0.552979", "0.55294865", "0.55192256", "0.5512704", "0.55113494", "0.55113494", "0.5509893" ]
0.0
-1
Loads images from the specified provider. Arguably, not terribly secure at all...
function loadImageSource(provider) { return new Promise(function(resolve, reject) { // Temporarily grab images from redditbooru require('./js/service-connectors/' + provider + '.js', function(provider) { provider().then(function(data) { images = data; lightbox.setData(data); imageGrid.render(images); }); }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "loadImages() {\n if (this._queue.length > 0) {\n let img = new Image();\n let src = this._queue.pop();\n\n let name = src.slice(src.lastIndexOf('/') + 1);\n img.src = src;\n img.onload = (function() {\n this.loadImages();\n }).bind(this);\n this.images[name] = img;\n } else {\n this._callback();\n }\n }", "loadImages(): void {\n let self = this;\n let items = this.getState().items;\n for (let i = 0; i < items.length; i++) {\n let item: ItemType = items[i];\n // Copy item config\n let config: ImageViewerConfigType = {...item.viewerConfig};\n if (_.isEmpty(config)) {\n config = makeImageViewerConfig();\n }\n let url = item.url;\n let image = new Image();\n image.crossOrigin = 'Anonymous';\n self.images.push(image);\n image.onload = function() {\n config.imageHeight = this.height;\n config.imageWidth = this.width;\n self.store.dispatch({type: types.LOAD_ITEM, index: item.index,\n config: config});\n };\n image.onerror = function() {\n alert(sprintf('Image %s was not found.', url));\n };\n image.src = url;\n }\n }", "function loadImages(sources, callback) {\n \tvar images = {};\n\n for(var src in sources) {\n \timages[src] = new Image();\n \timages[src].onload = callback;\n \timages[src].src = sources[src];\n }\n return images;\n }", "function loadImages(sources, callback) {    \n\t\tfor(var src in sources) {         \t// get num of sources\n        numImages++;\n        }\n    for(var src in sources) {\n        images[src] = new Image();\n\t\t\timages[src].onload = function() {\n\t\t\t\tif(++loadedImages >= numImages) {\n\t\t\t\tcallback(images);\n\t\t\t\t}\n\t\t\t};\n        images[src].src = sources[src];\n        }\n    }", "function _loadImages() {\n if (!vm.user) {\n vm.imagePreview = defaultImageUrl\n } else {\n vm.imagePreview = vm.user.imageUrl\n }\n }", "function loadImages(map, url, token, callback) {\n var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random()),\n script = document.createElement('script');\n url = updateURL(url, 'count', 50);\n url = updateURL(url, 'access_token', token);\n url = updateURL(url, 'callback', callbackName);\n script.src = url;\n script.onerror = scriptError;\n document.body.appendChild(script);\n\n window[callbackName] = function (photos) {\n\n // Cleanup the current callback\n delete window[callbackName];\n document.body.removeChild(script);\n\n // Process the images\n var i = 0;\n\n for (i = 0; i < photos.data.length; i += 1) {\n if (photos.data[i].location) {\n createMarker(photos.data[i], map);\n }\n }\n if (photos.pagination && photos.pagination.next_url) {\n loadImages(map, photos.pagination.next_url, token, callback);\n } else {\n return callback();\n }\n };\n\n }", "function start_loadImages()\n {\n methods.loadImages(\n function() {\n methods.getDataURI();\n run_app();\n },\n imagesRack.imgList\n );\n }", "function loadImages (){\n var img = [\n 'src/Barba Garcia, Francisco.jpg',\n 'src/Barba Rodriguez, Arturo.jpg',\n 'src/Caro Bernal, Miguel Angel.jpg',\n 'src/Castillo Peña, José Luis.jpg',\n 'src/Cruz Vidal, Alejandro.jpg',\n 'src/Gallego Martel, Jose Maria.jpg',\n 'src/Garci Peña, José Joaquín.jpg',\n 'src/Vazquez Rodriguez, Maria del Mar.jpg',\n ];\n\n setImgs(shuffle(initImgs(img)));\n}", "function loadImages(sources, callback){\n\tvar images = {};\n\tvar loadedImages = 0;\n\tvar numImages = 0;\n\t//get num of sources\n\tfor(var src in sources) {\n\t\tnumImages++;\n\t}\n\tfor(var src in sources){\n\t\timages[src] = new Image();\n\t\timages[src].onload = function(){\n\t\t\tif(++loadedImages >= numImages){\n\t\t\t\tconsole.log(\"images loaded\");\n\t\t\t\tcallback(images);\n\n\t\t\t}\n\t\t};\n\t\timages[src].src = sources[src];\n\n\t}\n\t//callback(images);\n}", "function ImageProvider() {\r\n var _this = _super.call(this) || this;\r\n _this.imageDatas = new Map();\r\n // Preload images at the initialization \r\n // Images for common topics\r\n _this.loadSvg(\"../app/widgets/common/style/images/disconnected.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/busy.svg\");\r\n // Images for tree grids\r\n _this.loadSvg(\"../app/widgets/common/style/images/tree/timeSeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/tree/xySeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/tree/fftSeries.svg\");\r\n // Images for signal manager drag drop\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/dropNotPossible.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/ytSeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/xySeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/fftSeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/addNewScale.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/assignToScale.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/addNewXYChart.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/addNewYTChart.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/addNewFFTChart.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/assignToChart.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/severalYTSeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/severalXYSeries.svg\");\r\n _this.loadSvg(\"../app/widgets/common/style/images/dragDrop/severalFFTSeries.svg\");\r\n //watchable icons\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/axis_disabled.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/axis_standstill.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/axis_homing.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/axis_motion.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/axis_synchronized_motion.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/axis_error.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/communicationNotReady.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/controller_off.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/controller_on.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/homed.svg\");\r\n _this.loadSvg(\"../app/widgets/watchablesWidget/style/images/toolbar/notHomed.svg\");\r\n //quick commands\r\n _this.loadSvg(\"../app/widgets/methodListWidget/style/images/toolbar/On.svg\");\r\n _this.loadSvg(\"../app/widgets/methodListWidget/style/images/toolbar/Off.svg\");\r\n _this.loadSvg(\"../app/widgets/methodListWidget/style/images/toolbar/Stop.svg\");\r\n _this.loadSvg(\"../app/widgets/methodListWidget/style/images/toolbar/Reset.svg\");\r\n return _this;\r\n }", "loadImages(input_files) {\n this.stateMap.images_still_loading += input_files.length;\n for (let file of input_files) {\n const reader = new FileReader();\n reader.onload = () => {\n let image = new Image();\n image.onload = () => {\n spa.imagelistmodel.addImagebox(file.name,file.lastModified,image);\n this.imageLoadEnded();\n };\n image.onerror = () => {\n this.imageLoadEnded();\n };\n image.src = reader.result;\n };\n reader.onabort = () => {this.imageLoadEnded();};\n reader.onerror = () => {this.imageLoadEnded();};\n reader.readAsDataURL(file);\n }\n\n // tell loaderbox that images are being loaded\n spa.loaderbox.handleLoad();\n \n return true;\n }", "loadImages() {\n let loadCount = 0;\n let loadTotal = this.images.length;\n\n if (WP.shuffle) {\n this.images = this.shuffle(this.images);\n }\n\n const imageLoaded = (() => {\n loadCount++;\n\n if (loadCount >= loadTotal) {\n // All images loaded!\n this.setupCanvases();\n this.bindShake();\n this.loadingComplete();\n }\n }).bind(this);\n\n for (let image of this.images) {\n // Create img elements for each image\n // and save it on the object\n const size = this.getBestImageSize(image.src);\n image.img = document.createElement('img'); // image is global\n image.img.addEventListener('load', imageLoaded, false);\n image.img.src = image.src[size][0];\n }\n }", "createSingleImageProvider(ol_lyr) {\n var src = ol_lyr.getSource();\n var params = src.getParams();\n params.VERSION = params.VERSION || '1.1.1';\n if (params.VERSION.indexOf('1.1.') == 0) params.CRS = 'EPSG:4326';\n if (params.VERSION.indexOf('1.3.') == 0) params.SRS = 'EPSG:4326';\n params.FROMCRS = 'EPSG:4326';\n var prm_cache = {\n url: src.getUrl(),\n layers: src.getParams().LAYERS,\n dimensions: ol_lyr.get('dimensions'),\n getFeatureInfoFormats: [new Cesium.GetFeatureInfoFormat('text', 'text/plain')],\n enablePickFeatures: true,\n parameters: params,\n getFeatureInfoParameters: { VERSION: params.VERSION, CRS: 'EPSG:4326', FROMCRS: 'EPSG:4326' },\n minimumTerrainLevel: params.minimumTerrainLevel || 12,\n tileWidth: 1024,\n tileHeight: 1024,\n proxy: new MyProxy('/cgi-bin/hsproxy.cgi?url=', ol_lyr.getMaxResolution())\n };\n \n var tmp = new Cesium.ImageryLayer(new Cesium.WebMapServiceImageryProvider(me.removeUnwantedParams(prm_cache, src)), {\n alpha: 0.7,\n show: ol_lyr.getVisible()\n });\n tmp.prm_cache = prm_cache;\n return tmp;\n }", "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 }", "LoadImage(){\n var images=[]\n // hard coded for convenienceproxy to a static serving end point\n if(this.state.images!=undefined){\n this.state.images.map(i =>{\n images.push(\n this.request.getStamp()+'-' + i\n )\n })\n return images; \n }\n else{\n \n return null\n }\n }", "function loadImages() {\n\t\t const button = document.querySelector('#loadImages');\n\t\t const container = document.querySelector('#image-container');\n\n\t\t button.addEventListener(\"click\", (event) => {\n\n\t\t const images = imageNames();\n\t\t images.forEach((image) => {\n\t\t requestFor(image, container).then(imageData => {\n\t\t const imageElement = imageData.imageElement;\n\t\t const imageSrc = imageData.objectURL;\n\t\t imageElement.src = imageSrc;\n\t\t });\n\t\t });\n\t\t });\n\t\t}", "function loadImages(sources, callback, x, y, width, height) {\n\n let images = {};\n let loadedImages = 0;\n let numImages = 0;\n let canvas = document.getElementById('GameCanvas');\n let context = canvas.getContext('2d');\n \n // get num of sources\n for(let src in sources) {\n numImages++;\n }\n for(let src in sources) {\n images[src] = new Image();\n images[src].onload = function() {\n if(++loadedImages >= numImages) {\n callback(context, images, x, y, width, height);\n }\n };\n images[src].src = sources[src];\n }\n}", "function getImage(key, done) {\n var image = self.images[key];\n if (typeof image == \"string\" || image instanceof String) {\n // image is a filename, load from disk\n File.readFile(image, function(error, buffer) {\n if (!error)\n self.images[key] = buffer;\n done(error, buffer);\n });\n } else if (image instanceof Buffer) {\n done(null, image);\n } else if (typeof image == \"function\") {\n // image is a function, call it to obtain image\n try {\n image(function(error, buffer) {\n if (!error)\n self.images[key] = buffer;\n done(error, buffer);\n });\n } catch (error) {\n done(error);\n }\n } else if (image) {\n // image is not a supported type\n done(new Error(\"Cannot load image \" + key + \", must be String (filename), Buffer or function\"));\n } else\n done();\n }", "load(imageSources) {\n return __awaiter(this, void 0, void 0, function* () {\n for (const imageName in imageSources) {\n this.images.set(imageName, yield loadImage(imageSources[imageName]));\n }\n });\n }", "loadAllImages (props = this.props) {\n const generateLoadDoneCallback = (srcType, imageSrc) => (err) => {\n // Give up showing image on error\n if (err) {\n return\n }\n\n // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n if (this.props[srcType] !== imageSrc || !this.mounted) {\n return\n }\n\n // Force rerender with the new image\n this.forceUpdate()\n }\n\n // Load the images\n this.getSrcTypes().forEach((srcType) => {\n const type = srcType.name\n\n // Load unloaded images\n if (props[type] && !this.isImageLoaded(props[type])) {\n this.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]))\n }\n })\n }", "function load_images() {\n data.each(function(frame) {\n var imgs = []\n frame.images.each(function(imgstr) {\n var img = new Image(IMG_WIDTH, IMG_HEIGHT);\n img.src = \"/img/\" + imgstr;\n img.style.float = \"left\";\n imgs.push(img); \n });\n frame['imageobjs'] = imgs;\n }) \n }", "loadAllImages(props = this.props) {\n const generateLoadDoneCallback = (srcType, imageSrc) => err => {\n // Give up showing image on error\n if (err) {\n return;\n }\n\n // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n if (this.props[srcType] !== imageSrc || this.didUnmount) {\n return;\n }\n\n // Force rerender with the new image\n this.forceUpdate();\n };\n\n // Load the images\n this.getSrcTypes().forEach(srcType => {\n const type = srcType.name;\n\n // there is no error when we try to load it initially\n if (props[type] && this.state.loadErrorStatus[type]) {\n this.setState(prevState => ({\n loadErrorStatus: { ...prevState.loadErrorStatus, [type]: false },\n }));\n }\n\n // Load unloaded images\n if (props[type] && !this.isImageLoaded(props[type])) {\n this.loadImage(\n type,\n props[type],\n generateLoadDoneCallback(type, props[type])\n );\n }\n });\n }", "load(onFinish = noop) {\n if (this.attempt > this.options.attempt - 1 && this.state.error) {\n if (process.env.NODE_ENV !== 'production' && !this.options.silent) {\n console.log(\"[@vant/lazyload] \" + this.src + \" tried too more than \" + this.options.attempt + \" times\");\n }\n\n onFinish();\n return;\n }\n\n if (this.state.rendered && this.state.loaded) return;\n\n if (this._imageCache.has(this.src)) {\n this.state.loaded = true;\n this.render('loaded', true);\n this.state.rendered = true;\n return onFinish();\n }\n\n this.renderLoading(() => {\n var _this$options$adapter, _this$options$adapter2;\n\n this.attempt++;\n (_this$options$adapter = (_this$options$adapter2 = this.options.adapter).beforeLoad) == null ? void 0 : _this$options$adapter.call(_this$options$adapter2, this, this.options);\n this.record('loadStart');\n loadImageAsync({\n src: this.src,\n cors: this.cors\n }, data => {\n this.naturalHeight = data.naturalHeight;\n this.naturalWidth = data.naturalWidth;\n this.state.loaded = true;\n this.state.error = false;\n this.record('loadEnd');\n this.render('loaded', false);\n this.state.rendered = true;\n\n this._imageCache.add(this.src);\n\n onFinish();\n }, err => {\n !this.options.silent && console.error(err);\n this.state.error = true;\n this.state.loaded = false;\n this.render('error', false);\n });\n });\n }", "function loadImages(imgSources, callback) {\n\tvar images = {};\n\tvar loadedImages = 0;\n\tvar numImages = 0;\n\t\n\tfor(var src in imgSources) {\n\t\tnumImages++;\n\t}\n\t\n\tfor(src in imgSources) {\n\t\timages[src] = new Image();\n\t\timages[src].src = imgSources[src];\n\t\timages[src].onload = function() {\n\t\t\tif(++loadedImages >= numImages) {\n\t\t\t\tconsole.log('images loaded');\n\t\t\t\tcallback(images);\n\t\t\t}\n\t\t};\n\t}\n}", "function preLoadImages( callback){\n var imagesLoaded=0;\n for(var i=0;i<gameConfig.sources.length;i++){\n var image = new Image();\n image.src= gameConfig.sources[i].url;\n images[gameConfig.sources[i].name]= image;\n image.onload=function(){ \n imagesLoaded+=1;\n if(imagesLoaded===gameConfig.sources.length){\n model.setPreLoadedImages(images);\n callback();\n }\n }\n } \n }", "function load_images(){\n enemy_img = new Image();\n enemy_img.src = \"assets/virus.png\"\n\n fighter_girl = new Image()\n fighter_girl.src = \"assets/girl.png\"\n\n fighter_boy = new Image()\n fighter_boy.src = \"assets/man.png\"\n\n mask_img = new Image();\n mask_img.src = \"assets/mask.png\"\n\n heart_img = new Image();\n heart_img.src = \"assets/heart.png\"\n}", "function Images() {\n\n var imageDict = [];\n console.log(\"Initializing Images module.\");\n\n for (var i = 0, len = fileNames.length; i < len; i++) {\n\n // Cuts up the path to extract the image name, and adds it in the dict\n var splitArray = fileNames[i].split(\"/\");\n var imgName = splitArray[splitArray.length - 1].split(\".\")[0];\n\n var img = document.createElement(\"img\");\n imageDict[imgName] = img; //the spot is being kept by a dummy image; we will load it later\n }\n\n Images.loadImages = function () {\n console.log(\"\");\n for (var i = 0, len = fileNames.length; i < len; i++) {\n\n // We did this already above, but this time we are loading the images\n // (ie giving all placeholder images their .src)\n var splitArray = fileNames[i].split(\"/\");\n var imgName = splitArray[splitArray.length - 1].split(\".\")[0];\n\n imageDict[imgName].src = fileNames[i];\n\n //console.log(\"Added '\" + imgName + \"' with path: \" + fileNames[i]); // uncomment for debug\n\n // The ordering of these lines might cause problems(?)\n img.onload = countLoadedImagesAndLaunchIfReady();\n\n }\n }\n\n Images.getImage = function (name) {\n\n try {\n var image = imageDict[name];\n if (typeof image === \"undefined\") {\n throw \"Error: Did not find image with name '\" + name + \"'. Check Images module fileNames\";\n }\n }\n catch (err) {\n console.log(err);\n }\n return imageDict[name];\n }\n\n}", "function loadImageForEntry(aEntry) {\n\tvar info = {\n\t\tok: undefined // `undefined` when loading, `false` when error, `true` when loaded and ready\n\t\t// reason: undefined // this is populated when `ok` is set to `false`\n\t\t// height: // set when `ok` is set to true\n\t\t// width: // set when `ok` is set to true\n\t\t// src: // set when `ok` is set to true\n\t};\n\n\tvar image = new Image();\n\n\t// start async-proc94833\n\tvar prelims = function() {\n\t\tif (aEntry.src.startsWith('file')) {\n\t\t\tcallInBootstrap('makeResourceURI', aEntry.src, aResourceURI => {\n\t\t\t\tinfo.src = aResourceURI;\n\t\t\t\tloadit();\n\t\t\t});\n\t\t} else {\n\t\t\tinfo.src = aEntry.src;\n\t\t\tloadit();\n\t\t}\n\t};\n\n\tvar loadit = function() {\n\t\timage.src = info.src;\n\t};\n\n\timage.onerror = function() {\n\t\tinfo.reason = formatStringFromNameCore('imgerror_load', 'main', [aEntry.path || aEntry.src]); // TODO\n\t\tinfo.ok = false;\n\t\tinjectInfoIntoState();\n\t};\n\timage.onabort = function() {\n\t\tinfo.reason = 'ERROR: loading somehow aborted'; // TODO\n\t\tinfo.ok = false;\n\t\tinjectInfoIntoState();\n\t};\n\timage.onload = function() {\n\t\tinfo.height = image.naturalHeight;\n\t\tinfo.width = image.naturalWidth;\n\t\tinfo.ok = true;\n\t\tinjectInfoIntoState();\n\t};\n\n\tvar injectInfoIntoState = function() {\n\t\tstore.dispatch(injectGalleryImageInfo(aEntry.src, info));\n\t};\n\n\tprelims();\n\t// end async-proc94833\n\n}", "loadImageFromURL(newImageURL) {\n if (newImageURL === undefined) {\n return;\n }\n\n // get canvas elements\n var imageCanvas = this.refs[\"image-canvas\"];\n var imageCanvasContext = imageCanvas.getContext(\"2d\");\n\n // clear previous image\n imageCanvasContext.clearRect(0, 0, imageCanvas.width, imageCanvas.height);\n\n if (newImageURL.constructor === String) {\n\n // load new image from URL\n var image = new Image();\n image.crossOrigin = '';\n\n image.src = newImageURL;\n\n image.onload = function() {\n \n // draw new image onto canvas\n imageCanvas.width = image.width;\n imageCanvas.height = image.height;\n imageCanvasContext.drawImage(image, 0, 0, image.width, image.height,\n 0, 0, imageCanvas.width, imageCanvas.height);\n\n this.state.imageChangedFromHint(image);\n\n // update canvas data in Caman\n window.Caman(\"#image-canvas\", function() {\n this.reloadCanvasData();\n });\n\n }.bind(this);\n }\n }", "function loadImage(url, callback) {\n\t var image = new Image();\n\t image.crossOrigin = \"anonymous\";\n\t image.src = url;\t \n\t image.onload = callback;\n\t return image;\n}", "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 }", "function refreshImages() {\n var images = document.querySelectorAll('img[data-src]');\n\n for (var i = 0; i < images.length; i++) {\n ImageLoader.load(images[i]);\n }\n }", "function loadImage(name) {\n images[name] = new Image();\n images[name].onload = resourceLoaded;\n images[name].src = imagesPath + name + '.png';\n}", "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 }", "function fetchImages(key, value, assetObj, resolve, reject) {\n assetObj[key] = new Image();\n assetObj[key].src = value;\n\n assetObj[key].onload = function() {\n resolve();\n }\n\n assetObj[key].onerror = function() {\n reject();\n }\n }", "function fetchImages() {\n $.getJSON(\"/images.php\", function(data) {\n preloadImages(data);\n }); \n }", "loadImage(srcType, imageSrc, done) {\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(() => {\n done();\n }, 1);\n return;\n }\n\n const inMemoryImage = new global.Image();\n\n if (this.props.imageCrossOrigin) {\n inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n }\n\n inMemoryImage.onerror = errorEvent => {\n this.props.onImageLoadError(imageSrc, srcType, errorEvent);\n\n // failed to load so set the state loadErrorStatus\n this.setState(prevState => ({\n loadErrorStatus: { ...prevState.loadErrorStatus, [srcType]: true },\n }));\n\n done(errorEvent);\n };\n\n inMemoryImage.onload = () => {\n this.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n\n this.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height,\n };\n\n done();\n };\n\n inMemoryImage.src = imageSrc;\n }", "function loadMemberPhoto(){\n var canvas = document.getElementById('headPhoto'),\n \n context = canvas.getContext('2d');\n var base_image = new Image();\n\n // var memberid=$(\"#h3memberID\")[0].innerHTML;\n memberid=$(\"#memberID\")[0].value;\n\n base_image.onload=function(){\n // context.drawImage(base_image,75,0);\n context.drawImage(this,0,0,this.width,this.height,\n 0,0,canvas.width,canvas.height);\n // context.drawImage(this,0,0,640,640*(this.height/this.width));\n };\n \n $.get('/static/photo/'+memberid+'.png')\n .done(function() { \n // Do something now you know the image exists.\n base_image.src = '/static/photo/'+memberid+'.png';\n }).fail(function() { \n // Image doesn't exist - do something else.\n base_image.src = '/static/photo/eagle.png';\n })\n\n \n}", "function loadImageUrls() {\n fetch(\"https://api.imgflip.com/get_memes\")\n .then((result) => result.json())\n .then(({ data: { memes: loadedMemes } = {} }) => {\n memes = loadedMemes;\n showImage(0);\n });\n }", "function cacheImages(path) {\n var img = new Image();\n img.onload = function () {\n if(loadDone()) {\n game.callBack.forEach(function(func) {\n func();\n });\n }\n };\n img.src = path;\n return img;\n }", "async function loadImages() {\n let data = arg.splice(1, arg.length - 1);\n let promise = [];\n data.forEach(img => {\n if(typeof img === \"string\") {\n let image = Canva2D.API.Preloader(\"singleImageOnly\", img);\n promise.push(image);\n } else if(img.hasOwnProperty(\"img\") && img.hasOwnProperty(\"src\")) {\n let image = Canva2D.API.Preloader(\"singleImageOnly\", img[\"img\"], img[\"src\"]);\n promise.push(image);\n } else {\n let image = Canva2D.API.Preloader(\"singleImageOnly\", img);\n promise.push(image);\n }\n });\n return await Promise.all(promise).then(e => {\n for(const img of e) \n _IMAGES_STACK.push(img);\n return _IMAGES_STACK;\n }).then(e => getImage);\n }", "function McDeferredLoadImages() {\n var items = {};\n\n this.addImage = function (idx, hash, src, href) {\n if (!items.hasOwnProperty(idx)) {\n items[idx] = [hash, src, href];\n }\n };\n\n this.load = function (cb) {\n var count = Object.keys(items).length;\n var currentIdx = 0;\n\n Object.keys(items).forEach(function (idx) {\n var hash = items[idx][0];\n var imgSrc = items[idx][1];\n var lnkHref = items[idx][2];\n\n var _link = document.getElementById('link_' + hash + idx);\n var _img = document.getElementById('img_' + hash + idx);\n\n if (_img && _img.src && _link && _link.href){\n _img.src = imgSrc;\n _link.href = lnkHref;\n\n console.log('loadAll: ' + imgSrc);\n\n _img.onload = function () {\n currentIdx ++;\n delete items[idx];\n\n if (currentIdx === count && cb){\n cb();\n }\n };\n\n _img.onerror =_img.onabort = function (err) {\n console.warn(err);\n }\n }\n });\n };\n}", "function load(paths) {\n\tfunction loadImage(path, callback) {\n\t\tvar img = document.createElement('img');\n\t\timg.addEventListener('load', callback, false);\n\t\timg.src = path;\n\t}\n\tfunction loadResource(path, callback) {\n\t\tvar req = new XMLHttpRequest();\n\t\treq.open('GET', path, true);\n\t\treq.onreadystatechange = function () {\n\t\t\tif (req.readyState === 4)\n\t\t\t\tcallback({\n\t\t\t\t\ttext: req.responseText,\n\t\t\t\t\tstatus: req.status\n\t\t\t\t});\n\t\t};\n\t\treq.send(null);\n\t}\n\treturn ({ then: function (callback) {\n\t\treturn new Async(callback.accumulate(paths.length), function (callback) {\n\t\t\tpaths.forEach(function (path, i) {\n\t\t\t\t(/\\.(png|jpg|gif)$/.test(path) ? loadImage : loadResource)\n\t\t\t\t\t(path, callback.curry(i));\n\t\t\t});\n\t\t})\n\t}})\n}", "function loadImg(src){\n var deferred = $.Deferred();\n var img = new Image();\n img.onload = function(){\n deferred.resolve();\n };\n img.crossOrigin = \"anonymous\";\n img.src = src;\n coverImgs.push(img);\n return deferred.promise();\n}", "function simpleLoad(config){\n for (var i = 1; i < config.imgTotal + 1; i++){\n $('<img>').attr({\n id: \"image\" + i,\n src: config.imgDir + i + config.imgFormat,\n title: \"Image\" + i\n }).appendTo(\"#\" + config.imgContainer);\n }\n }", "function findImagesToLoad() {\n\tsetLazyImagePositions.call(this);\n\tconst imagesToLoad = getImagesInView(this.images);\n\tloadImages.call(this, imagesToLoad);\n}", "function getImageUrl(authData) {\n switch (authData.provider) {\n // case 'password':\n // return authData.password.email.replace(/@.*/, '');\n case 'twitter':\n /* jshint -W106 */\n return authData.twitter.cachedUserProfile.profile_image_url;\n // case 'facebook':\n // return authData.facebook.displayName;\n }\n }", "function loadImages() {\r\n\t\tremoveUnseenImages();\r\n\t\tvar sets = $['mapsettings'];\r\n\t\tvar range = getPixelRange();\r\n\t\tfor(var i=range.start.x; i<range.end.x && i<sets.resolutions[sets.zoom-1].width; i+=addi(i)) {\r\n\t\t\tfor(var j=range.start.y; j<range.end.y && j<sets.resolutions[sets.zoom-1].height; j+=256) {\r\n\t\t\t\tvar col = getColumn(i);\r\n\t\t\t\tif(!isLoaded(col,i,j)) { // Prevent already loaded images from being reloaded\r\n\t\t\t\t\tvar imgurl = sets.image_name.replace(/%Z/, sets.zoom );\r\n\t\t\t\t\timgurl = imgurl.replace(/%L/, sets.level);\r\n\t\t\t\t\timgurl = imgurl.replace(/%C/, col);\r\n\t\t\t\t\timgurl = imgurl.replace(/%X/, (i-firstInColumnLocation(col-1)));\r\n\t\t\t\t\timgurl = imgurl.replace(/%Y/, j);\r\n\t\t\t\t\timgurl = sets.image_dir + imgurl;\r\n\t\t\t\t\t$['mapsettings'].loaded[sets.zoom+\"-\"+col+\"-\"+i+\"-\"+j] = true;\r\n\t\t\t\t\tvar style = \"top: \" + j + \"px; left: \" + i + \"px;\"\r\n\t\t\t\t\tvar theClass = \"file\" + sets.zoom + \"-\" + col +\"-\" + i + \"-\" + j;\r\n\t\t\t\t\t$(\"<img/>\").attr(\"style\", style).attr('class',theClass).appendTo(\"#images\").hide();\r\n\t\t\t\t\t$(\"img.\" + theClass).load(function(e){ $(this).show(); }); // Only show the image once it is fully loaded\r\n\t\t\t\t\t$(\"img.\" + theClass).attr(\"src\", imgurl);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function loadImages(imagesToLoad) {\n\timagesToLoad.forEach(lazyImage => {\n\t\tthis.fireLazyEvent(lazyImage.image);\n\t\tlazyImage.resolved = true;\n\t});\n}", "async preloadImages(data) {\n const urls = data.map(imageData => {\n const uri = this.returnImageUrl(imageData);\n return CacheManager.get(uri).getPath();\n });\n this.setState({imagesLoaded: true});\n }", "function loadImage (src, callback) {\n\t\tvar img = new Image(\"images/house.png\");\n\t\timg.src = src;\n\t\timg.onload = function() {\n\t\t\tcallback(null, img);\n\t\t};\n\t}", "loadRemoteImage(url) {\n return new Promise((res, rej) => {\n const img = new Image();\n img.onload = () => {\n this.loadImage(img);\n res();\n };\n img.onerror = err => rej(err);\n img.src = url;\n });\n }", "function loadImage() {\n var baseUrl = 'https://source.unsplash.com/category';\n var category = 'nature';\n var size = '1920x1080';\n\n var source = baseUrl + '/' + category + '/' + size;\n\n buildElement(source)\n .then(render);\n }", "function allModulesLoaded() {\n this.flexipRef.imageLoadSource(config.image);\n}", "loadImage (srcType, imageSrc, done) {\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(() => {\n done()\n }, 1)\n return\n }\n\n const that = this\n const inMemoryImage = new Image()\n\n inMemoryImage.onerror = (errorEvent) => {\n this.props.onImageLoadError(imageSrc, srcType, errorEvent)\n done(errorEvent)\n }\n\n inMemoryImage.onload = function onLoad () {\n that.imageCache[imageSrc] = {\n loaded: true\n , width: this.width\n , height: this.height\n }\n\n done()\n }\n\n inMemoryImage.src = imageSrc\n }", "function load(opts){\n // convert opts.source to an array of strings\n var src = (typeof opts.source === 'string') ? [opts.source] : opts.source;\n var i, count = 0, img, images = [], targetCount = (opts.preloadCount || src.length);\n var completed = false, firstLoaded = false;\n var tick = function(){\n count += 1;\n if (typeof opts.progress === 'function'){\n opts.progress({\n index: $.inArray(this, images),\n loaded: count,\n total: src.length,\n percent: Math.round((count / src.length) * 100)\n });\n }\n firstLoaded = firstLoaded || (this === images[0]);\n if (!completed && (count >= targetCount) && firstLoaded && (typeof opts.complete === 'function')) {\n completed = true;\n opts.complete(images);\n }\n };\n for (i = 0; i < src.length; i += 1 ) {\n img = new Image();\n images.push(img);\n // currently no care about error or aborting transfers\n img.onload = img.onabort = img.onerror = tick;\n img.src = src[i];\n }\n if (typeof opts.initiated === 'function'){\n opts.initiated(images);\n }\n }", "function existingImages() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var self = this;\n var callback = obj.callback,\n images = obj.images,\n options = obj.options;\n\n var imagesLength = obj.imagesLength;\n var skipObj = {\n getUserMedia: true,\n 'window.URL': true,\n };\n var errorObj = error.validate(skipObj);\n var loadedImages = [];\n var loadedImagesLength = 0;\n var tempImage = void 0;\n var ag = void 0;\n\n if (errorObj.error) {\n return callback(errorObj);\n }\n\n // change workerPath to point to where Animated_GIF.worker.js is\n ag = new AnimatedGIF(options);\n\n utils.each(images, function (index, image) {\n var currentImage = image;\n\n if (image.src) {\n currentImage = currentImage.src;\n }\n if (utils.isElement(currentImage)) {\n if (options.crossOrigin) {\n currentImage.crossOrigin = options.crossOrigin;\n }\n\n loadedImages[index] = currentImage;\n loadedImagesLength += 1;\n\n if (loadedImagesLength === imagesLength) {\n addLoadedImagesToGif();\n }\n } else if (utils.isString(currentImage)) {\n tempImage = new Image();\n\n if (options.crossOrigin) {\n tempImage.crossOrigin = options.crossOrigin;\n }\n\n (function (tempImage) {\n if (image.text) {\n tempImage.text = image.text;\n }\n\n tempImage.onerror = function (e) {\n var obj = void 0;\n\n --imagesLength; // skips over images that error out\n\n if (imagesLength === 0) {\n obj = {};\n obj.error = 'None of the requested images was capable of being retrieved';\n\n return callback(obj);\n }\n };\n\n tempImage.onload = function (e) {\n if (image.text) {\n loadedImages[index] = {\n img: tempImage,\n text: tempImage.text,\n };\n } else {\n loadedImages[index] = tempImage;\n }\n\n loadedImagesLength += 1;\n\n if (loadedImagesLength === imagesLength) {\n addLoadedImagesToGif();\n }\n\n utils.removeElement(tempImage);\n };\n\n tempImage.src = currentImage;\n })(tempImage);\n\n utils.setCSSAttr(tempImage, {\n position: 'fixed',\n opacity: '0',\n });\n\n document.body.appendChild(tempImage);\n }\n });\n\n function addLoadedImagesToGif() {\n utils.each(loadedImages, function (index, loadedImage) {\n if (loadedImage) {\n if (loadedImage.text) {\n ag.addFrame(loadedImage.img, options, loadedImage.text);\n } else {\n ag.addFrame(loadedImage, options);\n }\n }\n });\n\n getBase64GIF(ag, callback);\n }\n }", "function loadImages() {\n floor = new Image();\n background = new Image();\n ring = new Image();\n platform = new Image();\n\n floor.src = './tile-images/floorpath.png';\n background.src = './tile-images/plainbackgroundtile.png';\n ring.src = './tile-images/ring.png';\n platform.src = './tile-images/platform.png';\n}", "function initImg(callback) {\n\n function setImg(obj, url) {\n var img = new Image();\n img.src = url;\n\n if (img.complete) {\n obj.setAttribute('src', url);\n obj.style.display = '';\n } else {\n img.onload = function () {\n obj.setAttribute('src', url);\n obj.style.display = '';\n\n\n };\n img.onerror = function () {\n setDefaultImg(obj, url);\n };\n }\n }\n\n function setDefaultImg(obj, url) {\n if (!url) return;\n\n var img = new Image();\n img.src = url;\n\n if (img.complete) {\n obj.setAttribute('src', url);\n obj.style.display = '';\n } else {\n img.onload = function () {\n obj.setAttribute('src', url);\n obj.style.display = '';\n };\n }\n }\n\n var imgs = document.getElementsByTagName('img');\n\n for (var i = 0; i < imgs.length; i++) {\n setImg(imgs[i], imgs[i].getAttribute('src'));\n }\n\n if (callback) {\n callback();\n }\n\n}", "function loadImg(cSym){\n this.good = function(){\n imgChecker.good(cSym);\n }\n this.bad = function(){\n imgChecker.bad(cSym);\n }\n var limg = new Image();\n limg.onload=this.good;\n limg.onerror=this.bad;\n limg.src = imgSrc(cSym);\n}", "function getImageSources() {\n var ids = [\n '0001', '0002', '0003', '0004', '0005', '0006', '0007',\n '0008', '0009', '0010', '0011', '0012', '0013', '0014'\n ];\n return ids.map(function(name){\n return 'http://localhost:8000/images/' + name + '.JPG';\n })\n}", "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 }", "load(callback) {\n // Try to get paper.js to cache the image src.\n var img = new Image();\n img.src = this.src;\n\n img.onload = () => {\n var raster = new paper.Raster(img);\n raster.remove();\n callback();\n };\n }", "function fetchImages() {\n const numPhotos = 18;\n const graphicPromises = [];\n const baseUrl =\n \"https://arcgis.github.io/arcgis-samples-javascript/sample-data/featurelayer-collection/photo-\";\n\n for (let i = 1; i <= numPhotos; i++) {\n const url = baseUrl + i.toString() + \".jpg\";\n const graphicPromise = exifToGraphic(url, i);\n graphicPromises.push(graphicPromise);\n }\n\n return promiseUtils.eachAlways(graphicPromises);\n}", "function getLoadedImages() {\r\n return images;\r\n }", "function load360Image() {\n var img = new Image();\n img.src = imgList[loaded];\n img.onload = img360Loaded;\n images[loaded] = img;\n }", "function _load(url) {\n if (resourceCache[url]) {\n /*\n * If this URL has been previously loaded it will exist within our\n * resourceCache array. Just return that image rather re-loading the\n * image.\n */\n return resourceCache[url];\n } else {\n /*\n * This URL has not been previously loaded and is not present within our\n * cache; we'll need to load this image.\n */\n var img = new Image();\n img.onload = function() {\n /*\n * Once our image has properly loaded, add it to our cache so that we\n * can simply return this image if the developer attempts to load this\n * file in the future.\n */\n resourceCache[url] = img;\n\n /*\n * Once the image is actually loaded and properly cached, call all of\n * the onReady() callbacks we have defined.\n */\n if (isReady()) {\n readyCallbacks.forEach(function(func) {\n func();\n });\n }\n };\n\n /*\n * Set the initial cache value to false, this will change when the image's\n * onload event handler is called. Finally, point the images src attribute\n * to the passed in URL.\n */\n resourceCache[url] = false;\n img.src = url;\n }\n }", "function getDefaultLoaderImage()\n {\n\nvar loader = 'R0lGODlhGAAYAPYAAAAAAP///wwMDFZWVq6urtTU1Ozs7FpaWgICAnR0dOrq6v///xgYGMbGxsjIyBQUFN7e3uDg4BoaGgYGBnh4eA4ODmZmZmhoaLCwsMzMzPj4+PLy8tLS0iYmJkJCQuTk5JaWlhISErS0tNra2qqqqlRUVPb29mJiYh4eHiwsLPDw8IyMjHp6ekpKSn5+fm5ubpycnAgICM7OzjIyMlBQUFxcXJCQkLq6ury8vNjY2MDAwDg4OLa2toCAgKSkpJiYmE5OTubm5iAgIIqKikhISAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBQAAACwAAAAAGAAYAAAHmoAAgoOEhYaHgxUWBA4aCxwkJwKIhBMJBguZmpkqLBOUDw2bo5kKEogMEKSkLYgIoqubK5QJsZsNCIgCCraZBiiUA72ZJZQABMMgxgAFvRyfxpixGx3LANKxHtbNth8hy8i9IssHwwsXxgLYsSYpxrXDz5QIDubKlAwR5q2UErC2poxNoLBukwoX0IxVuIAhQ6YRBC5MskaxUCAAIfkECQUAAAAsAAAAABgAGAAAB6GAAIKDhIWGh4MVFgQOGhsOGAcxiIQTCQYLmZqZGwkIlA8Nm6OaMgyHDBCkqwsjEoUIoqykNxWFCbOkNoYCCrmaJjWHA7+ZHzOIBMUND5QFvzATlACYsy/TgtWsIpPTz7kyr5TKv8eUB8ULGzSIAtq/CYi46Qswn7AO9As4toUMEfRcHZIgC9wpRBMovNvU6d60ChcwZFigwYGIAwKwaUQUCAAh+QQJBQAAACwAAAAAGAAYAAAHooAAgoOEhYaHgxUWBA4aCzkkJwKIhBMJBguZmpkqLAiUDw2bo5oyEocMEKSrCxCnhAiirKs3hQmzsy+DAgq4pBogKIMDvpvAwoQExQvHhwW+zYiYrNGU06wNHpSCz746O5TKyzwzhwfLmgQphQLX6D4dhLfomgmwDvQLOoYMEegRyApJkIWLQ0BDEyi426Six4RtgipcwJAhUwQCFypA3IgoEAAh+QQJBQAAACwAAAAAGAAYAAAHrYAAgoOEhYaHgxUWBA4aCxwkJzGIhBMJBguZmpkGLAiUDw2bo5oZEocMEKSrCxCnhAiirKsZn4MJs7MJgwIKuawqFYIDv7MnggTFozlDLZMABcpBPjUMhpisJiIJKZQA2KwfP0DPh9HFGjwJQobJypoQK0S2B++kF4IC4PbBt/aaPWA5+CdjQiEGEd5FQHFIgqxcHF4dmkBh3yYVLmx5q3ABQ4ZMBUhYEOCtpLdAACH5BAkFAAAALAAAAAAYABgAAAeegACCg4SFhoeDFRYEDhoaDgQWFYiEEwkGC5mamQYJE5QPDZujmg0PhwwQpKsLEAyFCKKsqw0IhAmzswmDAgq5rAoCggO/sxaCBMWsBIIFyqsRgpjPoybS1KMqzdibBcjcmswAB+CZxwAC09gGwoK43LuDCA7YDp+EDBHPEa+GErK5GkigNIGCulEGKNyjBKDCBQwZMmXAcGESw4uUAgEAIfkECQUAAAAsAAAAABgAGAAAB62AAIKDhIWGh4MVFgQOGgscJCcxiIQTCQYLmZqZBiwIlA8Nm6OaGRKHDBCkqwsQp4QIoqyrGZ+DCbOzCYMCCrmsKhWCA7+zJ4IExaM5Qy2TAAXKQT41DIaYrCYiCSmUANisHz9Az4fRxRo8CUKGycqaECtEtgfvpBeCAuD2wbf2mj1gOfgnY0IhBhHeRUBxSIKsXBxeHZpAYd8mFS5seatwAUOGTAVIWBDgraS3QAAh+QQJBQAAACwAAAAAGAAYAAAHooAAgoOEhYaHgxUWBA4aCzkkJwKIhBMJBguZmpkqLAiUDw2bo5oyEocMEKSrCxCnhAiirKs3hQmzsy+DAgq4pBogKIMDvpvAwoQExQvHhwW+zYiYrNGU06wNHpSCz746O5TKyzwzhwfLmgQphQLX6D4dhLfomgmwDvQLOoYMEegRyApJkIWLQ0BDEyi426Six4RtgipcwJAhUwQCFypA3IgoEAAh+QQJBQAAACwAAAAAGAAYAAAHoYAAgoOEhYaHgxUWBA4aGw4YBzGIhBMJBguZmpkbCQiUDw2bo5oyDIcMEKSrCyMShQiirKQ3FYUJs6Q2hgIKuZomNYcDv5kfM4gExQ0PlAW/MBOUAJizL9OC1awik9PPuTKvlMq/x5QHxQsbNIgC2r8JiLjpCzCfsA70Czi2hQwR9FwdkiAL3ClEEyi829Tp3rQKFzBkWKDBgYgDArBpRBQIADsAAAAAAAAAAAA=';\n return loader;\n }", "function loadImages() {\r\n\r\n let blocks = ['black_concrete', 'black_terracotta', 'netherrack', 'nether_wart_block', 'red_concrete_powder', 'dark_oak_log', 'green_terracotta', 'brown_concrete', 'melon_top', 'orange_concrete', 'green_concrete', 'green_wool', 'green_concrete_powder', 'oak_log', 'orange_concrete_powder', 'lime_concrete', 'lime_concrete', 'lime_concrete_powder', 'hay_block_top', 'yellow_concrete', 'lime_wool', 'lime_concrete', 'lime_concrete_powder', 'melon_top', 'yellow_concrete', 'black_wool', 'gravel', 'spruce_planks', 'pink_terracotta', 'red_concrete_powder', 'cyan_terracotta', 'coarse_dirt', 'bricks', 'light_gray_terracotta', 'red_concrete_powder', 'brown_concrete_powder', 'dark_prismarine', 'acacia_log', 'acacia_planks', 'acacia_planks', 'dark_prismarine', 'lime_terracotta', 'lime_terracotta', 'oak_planks', 'yellow_concrete_powder', 'slime_block', 'slime_block', 'lime_wool', 'melon_top', 'yellow_concrete', 'blue_concrete', 'mycelium_top', 'mycelium_top', 'pink_terracotta', 'red_concrete_powder', 'lapis_block', 'blue_terracotta', 'magenta_terracotta', 'magenta_terracotta', 'magenta_concrete', 'cyan_concrete', 'cracked_stone_bricks', 'andesite', 'granite', 'jungle_planks', 'dark_prismarine', 'green_concrete', 'green_concrete_powder', 'hay_block_top', 'birch_planks', 'slime_block', 'slime_block', 'slime_block', 'slime_block', 'yellow_concrete_powder', 'blue_concrete', 'blue_wool', 'magenta_concrete', 'magenta_concrete', 'pink_concrete', 'blue_wool', 'blue_concrete_powder', 'purple_concrete', 'magenta_concrete_powder', 'magenta_concrete_powder', 'light_blue_concrete', 'blue_concrete_powder', 'purpur_block', 'pink_concrete', 'pink_wool', 'cyan_concrete_powder', 'cobblestone', 'clay', 'birch_log', 'diorite', 'prismarine_bricks', 'prismarine_bricks', 'prismarine_bricks', 'end_stone', 'end_stone', 'blue_concrete', 'blue_concrete', 'purple_concrete', 'purple_concrete_powder', 'pink_concrete', 'blue_concrete_powder', 'blue_concrete_powder', 'purple_concrete', 'purple_wool', 'pink_concrete', 'light_blue_concrete', 'light_blue_wool', 'lapis_block', 'purpur_block', 'pink_concrete', 'light_blue_concrete_powder', 'light_blue_concrete_powder', 'blue_ice', 'packed_ice', 'white_concrete', 'light_blue_concrete_powder', 'light_blue_concrete_powder', 'light_blue_concrete_powder', 'packed_ice', 'bone_block_side'];\r\n\r\n for (let block of blocks) {\r\n blockImages[block] = new Image();\r\n blockImages[block].src = block + \".png\";\r\n blockImages[block].onload = function() {\r\n console.log(\"Loaded \" + block + \".png\");\r\n }\r\n }\r\n}", "function load(urlOrArr, callback) {\n if (urlOrArr instanceof Array) {\n /*\n * If the developer passed in an array of images loop through each value\n * and call our image loader on that image file\n */\n urlOrArr.forEach(function(url) {\n _load(url, callback);\n });\n } else {\n if (callback) {\n readyCallbacks.push(callback);\n }\n /*\n * The developer did not pass an array to this function, assume the value\n * is a string and call our image loader directly.\n */\n var image = _load(urlOrArr);\n if (image && callback) {\n readyCallbacks.pop();\n callback();\n }\n }\n }", "function parseImageUrls(params){\n\t\tif(opts.verbose !== 0 || !opts.hideErrors){\n\t\t\tconsole.info('[Embedding data URIs to] -> %s', params.path);\n\t\t}\n\t\tvar fileAbsPath = sysPath.resolve(sysPath.dirname(params.path));\n\t\tvar data = params.data;\n\t\tvar result = data.match(pattern); \n\t\tvar base64Data = data;\n\n\t\tresult.forEach(function(item){\n\t\t\t// Assuming image path is system path, not \"http/https path\"\n\t\t\tvar raw_path = item.replace(/url(?:\\s*)\\((?:\\s*)[\\'\\\"]?([^\\)\\'\\\"]*)[\\'\\\"]?(?:\\s*)\\)/, '$1');\n\t\t\tvar path = clean_url_value(raw_path); // '../assets/images/clock.svg'\n\t\t\tvar ext = sysPath.extname(path);\n\t\t\t// Don't convert when path is already a data-uri \n\t\t\tif(/^data:image/.test(path) || (imgsExtns.indexOf(ext) == -1)){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif(/^(http|https):\\/\\//.test(path)){\n\t\t\t\tif(opts.verbose == 2 || opts.verbose == MAX_VERBOSE_VAL){\n\t\t\t\t\tconsole.info('Skipped data-uri as path has http/https %s', path);\n\t\t\t\t} \n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Find absolute path in relation to the \"*.less\" file path \n\t\t\tvar absPath = sysPath.resolve(fileAbsPath, path); \n\n\t\t\tif(!fs.existsSync(absPath)){\n\t\t\t\tvar newpath = sysPath.resolve(opts.altImageDir, path);\n\t\t\t\tif(fs.existsSync(newpath)){\n\t\t\t\t\tabsPath = newpath;\n\t\t\t\t}else{\n\t\t\t\t\tif(!opts.hideErrors){\n\t\t\t\t\t\tconsole.info('[Warn] Skipped, the file is missing at: %s',absPath);\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(typeof imagesDataMap[absPath] === 'undefined'){\n\t\t\t\tvar mimeType = mime.lookup(path);\n\n\t\t\t\timagesDataMap[absPath] = {};\n\t\t\t\timagesDataMap[absPath].path = path;\n\t\t\t\timagesDataMap[absPath].absPath = absPath;\n\t\t\t\timagesDataMap[absPath].mimeType = mimeType;\n\t\t\t\timagesDataMap[absPath].toSkipped = false; // Also upadted in getDataUri()\n\t\t\t\timagesDataMap[absPath].dataUri = getDataUri(mimeType, absPath);\n\t\t\t}\n\t\t\t// Don't replace url with base64 when it is marked to skipped.\n\t\t\tif(!imagesDataMap[absPath].toSkipped){\n\t\t\t\tvar quote = ('image/svg+xml' === imagesDataMap[absPath].mimeType || opts.urlQuotes) ? '\\\"' : '';\n\t\t\t\tbase64Data = base64Data.replace(item, \"url(\"+ quote + imagesDataMap[absPath].dataUri + quote + \")\");\n\t\t\t\tif(opts.verbose == 3) {\n\t\t\t\t\tconsole.info('Successfully converted %s', absPath);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\treturn base64Data;\n\t}", "function loadImages() {\r\n var files = document.getElementById('images').files, i, file, reader;\r\n for (i = 0; i < files.length; i = i + 1) {\r\n file = files[i];\r\n if (file.name.endsWith(\".jpg\") || file.name.endsWith(\".gif\") || file.name.endsWith(\".png\")) {\r\n images.push(file);\r\n }\r\n }\r\n if (images.length > 0) {\r\n showLoadedImages(\"list\");\r\n } else {\r\n alert(\"No images found. Try another directory.\");\r\n }\r\n }", "function renderImage(file) {\n images.push(file);\n// generate a new FileReader object\n var reader = new FileReader();\n// inject an image with the src url\n reader.onload = function(event) {\n the_url = event.target.result\n $('#preview').html(\"<img src='\" + the_url + \"' />\")\n}// when the file is read it triggers the onload event above.\n reader.readAsDataURL(file);\n}", "function handleFiles(files) {\n var reader = new FileReader();\n reader.onload = function(event){\n var img = new Image();\n img.onload = function(){\n loadImage(img);\n }\n img.src = event.target.result;\n }\n reader.readAsDataURL(files[0]);\n}", "function loadImages(images, callback) {\n if (!images[0].complete) {\n if (!images[0].imageReloadTries) {\n images[0].imageReloadTries = 0;\n setTimeout(function(){\n images[0].imageReloadTries += 1;\n loadImages(images, callback);\n },\n 50);\n } else if (images[0].imageReloadTries < IMG_RELOAD_RETRY_MAX) {\n setTimeout(function() {\n images[0].imageReloadTries += 1;\n loadImages(images, callback);\n },\n 250);\n } else {\n // failed so ignore\n widgets.log(\"failed to load \" + images[0].src + \" retries=\" + images[0].imageReloadTries);\n images.shift();\n if (images.length == 0) {\n callback();\n } else {\n loadImages(images, callback);\n }\n }\n } else {\n // remove the first item\n images.shift();\n if (images.length == 0) {\n callback();\n } else {\n loadImages(images, callback);\n }\n }\n }", "function loadImages() {\n var files = [ 'outer_light.png', 'layer_down_light.png',\n 'layer_up_light.png', 'angle_prev_light.png',\n 'angle_next_light.png', 'linked_data_light.png',\n 'raw_scan_light.png', 'dig_positive_light.png',\n 'text_view_light.png', 'vector_view_light.png',\n 'overlays_light.png', 'thumbnails_light.png',\n '3d_view_light.png', 'step_back_light.png',\n 'step_fwd_light.png', 'minimize_light.png' ];\n\n var i = 0;\n for (i = 0; i < files.length; i++) {\n btnImages[i] = new Image(); btnImages[i].src = files[i];\n }\n}", "function imageLoader(icallback){\n\tthis.grasssheet = new Image();\n\tthis.gplantsheet = new Image();\n\tthis.buildsheet = new Image();\n\tthis.fxsheet = new Image();\n\t\n\ttry{\n\t\t\n\t\tthis.grasssheet.onerror = function(){ alert(\"img.onerror: Images failed to load properly!\"); };\n\t\tthis.gplantsheet.onerror = function(){ alert(\"img.onerror: Images failed to load properly!\"); };\n\t\tthis.buildsheet.onerror = function(){ alert(\"img.onerror: Images failed to load properly!\"); };\n\t\tthis.fxsheet.onerror = function(){ alert(\"img.onerror: Images failed to load properly!\"); };\n\t\t\n\t\tthis.grasssheet.onload = function(){loadedCheck(icallback);};\n\t\tthis.gplantsheet.onload = function(){loadedCheck(icallback);};\n\t\tthis.buildsheet.onload = function(){loadedCheck(icallback);};\n\t\tthis.fxsheet.onload = function(){loadedCheck(icallback);};\n\t\t\n\t}catch(e){ alert(\"Error (imageLoader): Images failed to load properly!\"); console.log(e.stack); }\n\tthis.grasssheet.src = \"imgs/grass1.png\";\n\tthis.gplantsheet.src =\"imgs/shrubs1.png\";\n\tthis.buildsheet.src = \"imgs/blocktiles.png\";\n\tthis.buildsheet.src = \"imgs/fx.png\";\n\t\n}", "function loadAllImages() {\n var images = document.querySelectorAll('img[data-src]');\n\n for (var i = 0; i < images.length; i++) {\n ImageLoader.load(images[i]);\n }\n }", "function loadImage (file, callback, options) {\n var img = document.createElement('img')\n var url\n img.onerror = function (event) {\n return loadImage.onerror(img, event, file, callback, options)\n }\n img.onload = function (event) {\n return loadImage.onload(img, event, file, callback, options)\n }\n if (typeof file === 'string') {\n loadImage.fetchBlob(\n file,\n function (blob) {\n if (blob) {\n file = blob\n url = loadImage.createObjectURL(file)\n } else {\n url = file\n if (options && options.crossOrigin) {\n img.crossOrigin = options.crossOrigin\n }\n }\n img.src = url\n },\n options\n )\n return img\n } else if (\n loadImage.isInstanceOf('Blob', file) ||\n // Files are also Blob instances, but some browsers\n // (Firefox 3.6) support the File API but not Blobs:\n loadImage.isInstanceOf('File', file)\n ) {\n url = img._objectURL = loadImage.createObjectURL(file)\n if (url) {\n img.src = url\n return img\n }\n return loadImage.readFile(file, function (e) {\n var target = e.target\n if (target && target.result) {\n img.src = target.result\n } else if (callback) {\n callback(e)\n }\n })\n }\n }", "function loadImages(elem) {\n if (!elem) {\n return;\n }\n\n var images = elem.getElementsByTagName('img');\n\n var n = images.length;\n for (var i = 0; i < n; i++) {\n var image = images[i];\n\n if (image.getAttribute('data-src')) {\n image.src = image.getAttribute('data-src');\n image.removeAttribute('data-src');\n }\n }\n }", "function loadImages() {\n var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var urls = opts.urls,\n _opts$onProgress3 = opts.onProgress,\n onProgress = _opts$onProgress3 === undefined ? noop : _opts$onProgress3;\n\n (0, _assert2.default)(urls.every(function (url) {\n return typeof url === 'string';\n }), 'loadImages: {urls} must be array of strings');\n var count = 0;\n return Promise.all(urls.map(function (url) {\n var promise = (0, _browserLoad.loadImage)(url, opts);\n promise.then(function (file) {\n return onProgress({\n progress: ++count / urls.length,\n count: count,\n total: urls.length,\n url: url\n });\n });\n return promise;\n }));\n}", "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}", "function getImages(){\n hideContents();\n showLoading();\n clearContent();\n //Check we have tags available before making an API request\n if (getTagsUri().length > 0) {\n $.getJSON(\"flickr.php\", { tagUri: getTagsUri()}, function(response) {\n console.log(response);\n // Response status of 1 means the api request was successful\n if (response.status == 1) {\n $.each(response.data, function(i, item){\n constructCard(item);\n });\n hideContents();\n showContent();\n } else {\n // if my php script detects an error the response status will be set to 0, meaning we show no results\n hideContents();\n showNoResults();\n }\n\n });\n } else {\n hideContents();\n showNoResults();\n }\n}", "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 }", "function load() {\n var buf = new XMLHttpRequest();\n buf.open(\"GET\", uri, true);\n buf.responseType = 'arraybuffer'\n //buf.onload = end\n buf.onreadystatechange = function () {\n if (buf.readyState === 4) {\n if (buf.status === 200) {\n var gcan = document.createElement(\"canvas\");\n gcan.height = 255;\n gcan.width = 255;\n if (buf.response === null) {\n //end();\n return;\n } else {\n var gsrc = uncollect(buf.response, gcan).toDataURL();\n var image = new Image();\n image.src = gsrc;\n callback(image);\n end();\n }\n }\n }\n }\n buf.onerror = error;\n buf.send(null)\n }", "_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 }", "function loadImages( lastCb, imgList )\n {\n //:both these arrays contain completionItems\n var completionList = [];\n var completionCount = 0;\n\n function checkCompletion()\n {\n if( completionCount === imgList.length ) {\n lastCb( completionList );\n }\n }\n imgList.forEach( function( listItem, ix ) {\n var img = new Image();\n var completionItem = { img:img, listItem:listItem };\n\n completionList.push( completionItem );\n imagesRack.loadedImages[ listItem.id ] = completionItem;\n\n img.onload = function() {\n completionCount++;\n listItem.cb && listItem.cb( img, ix );\n checkCompletion();\n }\n img.src = listItem.src;\n });\n }", "function preloadImages(loadedCallback){\n var srcData = SpriteImage.sourcesData;\n \n // the human readable nicknames of the images we will be preloading\n var imageNames = srcData[\"nicknames\"];\n var totalToPreload = imageNames.length;\n var numLoadedSoFar = 0;\n var imgObj, imgNickname;\n \n for (var i = 0; i < imageNames.length; i++){\n imgNickname = imageNames[i];\n assert(srcData[imgNickname] !== undefined, \n \"invalid nickname '\" + imgNickname + \"' in preloader, \"+\n \"check that your nicknames is in the source data's keys\");\n assert(srcData[imgNickname].srcPath !== undefined, \n \"srcPath not set for\" + imgNickname);\n \n imgObj = new Image();\n imgObj.onload = function(){\n numLoadedSoFar++;\n console.log(\"loaded\", this);\n // if all images are loaded, call the callback\n if(numLoadedSoFar >= totalToPreload){\n // make sure every source has a stored Image object\n imageNames.forEach(function(imgName){\n assert(srcData[imgName][\"imgObj\"] !== undefined, \n \"preloader problem, missing Image object for \"+\n imgName\n );\n });\n \n loadedCallback();\n }\n }\n imgObj.src = srcData[imgNickname].srcPath;\n \n // save the Image object back in the srcData to avoid having \n // to repeatedly construct Images when creating SpriteImages\n // will be fully loaded by the time the loadedCallback finally fires\n srcData[imgNickname][\"imgObj\"] = imgObj;\n }\n}", "function preloadImages(images, callback)\n{\n\n var imagesLoading = images.slice();\n function imageLoaded(image)\n {\n var idx = imagesLoading.indexOf(image);\n if (idx != -1)\n {\n imagesLoading.splice(idx, 1);\n if (imagesLoading.length == 0) callback();\n }\n }\n for (var i = 0; i < images.length; i++)\n {\n var url = images[i];\n var image = new Image();\n image.onload = function (img)\n {\n return function ()\n {\n imageLoaded(img);\n };\n }(images[i]);\n image.src = url;\n }\n}", "async function loadImagesOntoPage() {\n try {\n dtImageLoadStart = moment(new Date());\n var username = document.getElementById(\"txtUsername\").value;\n var imageDiv = document.getElementById(\"grid\");\n var buttonFeedType = document.getElementById(\"btnFeedLibrary\");\n\n // Add Spinner to button\n // Disable the button to prevent extra load cycles\n var btnLoad = document.getElementById(\"btnLoad\");\n if (btnLoad) {\n var loadingSpinner = document.getElementById(\"loadingSpinner\");\n if (btnLoad.innerText == \"Load Images\") {\n var loadingSpinner = document.createElement(\"span\");\n loadingSpinner.classList.add(\"spinner-border\");\n loadingSpinner.classList.add(\"spinner-border-sm\");\n loadingSpinner.setAttribute(\"id\", \"loadingSpinner\");\n loadingSpinner.setAttribute(\"role\", \"status\");\n loadingSpinner.setAttribute(\"aria-hidden\", \"true\");\n\n btnLoad.disabled = true;\n btnLoad.innerText = \"\";\n btnLoad.appendChild(loadingSpinner);\n }\n }\n\n if (username == \"\" && buttonFeedType.value != 2) {\n console.log('Clearing out images..');\n while (imageDiv.firstChild) {\n imageDiv.removeChild(imageDiv.firstChild);\n }\n\n if (btnLoad) {\n var loadingSpinner = document.getElementById(\"loadingSpinner\");\n btnLoad.removeChild(loadingSpinner);\n btnLoad.innerText = \"Load Images\";\n btnLoad.disabled = false;\n }\n return;\n }\n\n var userId = 0;\n if (buttonFeedType.value != 2) {\n userId = await getUserId(username);\n }\n\n var userPhotoLibrary = await getUserPublicPhotoLibrary(userId);\n\n // Apply Filters\n var filterValues = await swapFilterValuesWithIds();\n var newFilteredUserPhotoLibrary = [];\n\n // for each image\n if (filterValues.length != 0) {\n userPhotoLibrary.forEach(image => {\n // for each filter item (verify image has the corret criteria)\n var imageMustMatchAllFilters = true; // TO DO MAKE THIS TOGGLEABLE ON THE UI\n var imageMatchesAllFilterCriteria = true;\n\n var imageMatchedAtleastOneCriteria = false;\n filterValues.forEach(filter => {\n var filterParts = filter.split(\"|\");\n\n switch (filterParts[0]) {\n case 'A':\n // Activity\n // Example Value: A|GoldenTrophy\n if (image.RoomId == filterParts[1]) {\n imageMatchedAtleastOneCriteria = true;\n } else if (imageMustMatchAllFilters) {\n imageMatchesAllFilterCriteria = false;\n }\n break;\n\n case '!A':\n // Not Activity\n // Example Value: !A|GoldenTrophy\n if (image.RoomId != filterParts[1]) {\n imageMatchedAtleastOneCriteria = true;\n } else if (imageMustMatchAllFilters) {\n imageMatchesAllFilterCriteria = false;\n }\n break;\n\n case 'P':\n // Person\n // Example Value: P|Boethiah\n //console.log(image.TaggedPlayerIds.length);\n if (image.TaggedPlayerIds.length === 0) {\n imageMatchesAllFilterCriteria = false;\n break;\n }\n\n var taggedPlayers = [];\n image.TaggedPlayerIds.forEach(player => { taggedPlayers.push(player) });\n if ((taggedPlayers.findIndex((player) => player == filterParts[1]) > -1) && imageMatchesAllFilterCriteria) {\n imageMatchedAtleastOneCriteria = true;\n } else if (imageMustMatchAllFilters) {\n imageMatchesAllFilterCriteria = false;\n }\n break;\n\n case '!P':\n // Not Person\n // Example Value: !P|Boethiah\n if (image.TaggedPlayerIds.length === 0) {\n imageMatchesAllFilterCriteria = false;\n break;\n }\n\n var taggedPlayers = [];\n image.TaggedPlayerIds.forEach(player => { taggedPlayers.push(player) });\n if (!(taggedPlayers.findIndex((player) => player == filterParts[1]) > -1) && imageMatchesAllFilterCriteria) {\n imageMatchedAtleastOneCriteria = true;\n } else if (imageMustMatchAllFilters) {\n imageMatchesAllFilterCriteria = false;\n }\n break;\n\n default:\n //error occured log to console\n console.log(\"An error occured parsing filter type: \" + filterType);\n }\n });\n if (imageMustMatchAllFilters && imageMatchesAllFilterCriteria) {\n newFilteredUserPhotoLibrary.push(image);\n } else if (!(imageMustMatchAllFilters) && imageMatchedAtleastOneCriteria) {\n newFilteredUserPhotoLibrary.push(image);\n }\n });\n };\n\n if (filterValues.length > 0) {\n userPhotoLibrary = newFilteredUserPhotoLibrary;\n }\n\n const imageResults = document.getElementById('imageResultNumber');\n if (imageResults) {\n if (userPhotoLibrary.length === 0) {\n imageResults.innerText = 'No Images Found!';\n } else {\n imageResults.innerText = 'Image Results: ' + userPhotoLibrary.length;\n }\n }\n\n var dateOrder = document.getElementById(\"btnOldestToNewest\");\n if (dateOrder.value == \"1\") { // Oldest to Newest\n userPhotoLibrary = userPhotoLibrary.reverse();\n }\n\n while (imageDiv.firstChild) {\n imageDiv.removeChild(imageDiv.firstChild);\n }\n\n // Generate Master Lists\n getMasterLists(userPhotoLibrary);\n\n // Generate image HTML\n loadImagesIntoPage(userPhotoLibrary);\n\n if (!username == '') {\n var NewestFirst = false;\n var button = document.getElementById(\"btnOldestToNewest\");\n if (button) {\n if (button.value == \"0\") {\n NewestFirst = true;\n } else {\n NewestFirst = false;\n }\n }\n\n var filterCriteriaString\n if (filterValues.length == 0) {\n filterCriteriaString = 'No filters applied'\n } else { filterCriteriaString = filterValues };\n\n dtImageLoadEnd = moment(new Date());\n\n var duration = moment.duration(dtImageLoadEnd.diff(dtImageLoadStart));\n var seconds = duration.asSeconds();\n var feedType = '';\n if (buttonFeedType.value == 0) {\n feedType = 'Feed';\n } else if (buttonFeedType.value == 1) {\n feedType = 'Library';\n } else if (buttonFeedType.value == 2) {\n feedType = 'Global'\n }\n\n // Log analytics event\n Nucleus.track(\"Button Clicked: Load_Images\", {\n FilterCriteriaString: filterCriteriaString,\n ImageResultCount: userPhotoLibrary.length,\n NewestFirst: NewestFirst,\n LoadDuration: seconds,\n FeedType: feedType\n })\n }\n } catch (error) {\n // Remove Spinner on load button\n // Disable the button to prevent extra load cycles\n console.log(error);\n var btnLoad = document.getElementById(\"btnLoad\");\n if (btnLoad) {\n var loadingSpinner = document.getElementById(\"loadingSpinner\");\n btnLoad.removeChild(loadingSpinner);\n btnLoad.innerText = \"Load Images\";\n btnLoad.disabled = false;\n }\n\n var errorText = document.getElementById('filterErrorText');\n var filterContainer = document.getElementById('filterCategoryContainer');\n\n if (errorText && filterContainer) {\n if (!filterContainer.classList.contains('displayNone')) {\n errorText.classList.remove('displayNone');\n errorText.innerText = \"Failed to load images. Filter criteria may contain invalid values. Check/remove values and try again.\";\n }\n }\n console.log('Error occured loading images onto page: ');\n console.log(error);\n }\n}", "function fetchImgs() {\n const imgUrl = \"https://dog.ceo/api/breeds/image/random/4\";\n fetch(imgUrl)\n .then(resp => resp.json())\n .then(results => insertImgs(results)) \n}", "function loadImageData() {\n // loads through each link/file in manifest\n for (let data_id in manifest_images) {\n let file_name = manifest_images[data_id]; // e.g. \"1540-2.json\" or \"1540@https://i.imgur.com/2p3NEQB.png\"\n // if there is an \"@\" in the name (i.e. if from the world wide web)\n if (file_name.split(\"@\").length > 1) {\n // splits by \"@\" symbol, splitting into \"1540\" and \"https://i.imgur.com/2p3NEQB.png\"\n let split = file_name.split(\"@\");\n if (image_data[split[0]] === undefined) { image_data[split[0]] = []; }\n image_data[split[0]].push(split[1]);\n // else, it is a local file\n } else if (fs.existsSync(\"./data/images/\" + file_name)) {\n let team_name = file_name.split(\".\")[0].split(\"-\")[0];\n // if this is first data point recorded for this team\n if (image_data[team_name] === undefined) { image_data[team_name] = []; }\n image_data[team_name].push(\"./data/images/\" + file_name);\n }\n }\n}", "getImg(){\n if(this.displayImgFile) {\n var fileName = __dirname + '/displayImages' + this.displayImgFile;\n var imgData = fs.readFileSync(fileName);\n return imgData;\n }\n else {\n return null;\n }\n }", "function loadImages (loader, assetNames, groupName) {\n for (var i=0; i<assetNames.length; i++) {\n var assetName = assetNames[i]\n , img = new Image();\n\n img.src = assetName;\n\n //load callback\n img.onload = function () {\n //cache the image asset\n loader.cache.cache(Kane.Utils.stripFilePath(assetName), img);\n\n //decrease this groups assetCount\n loader.assetCounters[groupName]--;\n\n //check if group is done loading\n checkIfGroupIsDone(loader, groupName);\n };\n\n //error callback\n img.onerror = function () {\n //push assetName onto errors array\n loader.errors[groupName].push(assetName);\n \n //decrease this groups assetCount\n loader.assetCounters[groupName]--;\n\n //check if this group is done loading\n checkIfGroupIsDone(loader, groupName);\n };\n }\n}", "loadRemoteData(modelBBox, callback) {\n var img = new Image();\n var height = Math.floor(modelBBox.pixelHeight() * this.width/modelBBox.pixelWidth());\n\n\n this.canvas.width = this.width;\n this.canvas.height = height;\n\n this._getCachedData(modelBBox.bbox, (data) => {\n /* cached data was found */\n\n var imageData = this.ctx.createImageData(this.canvas.width, this.canvas.height);\n\n _.each(data, function(d, idx) {\n imageData.data[idx] = d;\n });\n\n this.imageData = data;\n this.ctx.putImageData(imageData, 0, 0);\n\n if (typeof callback === 'function') {\n callback();\n }\n }, () => {\n /* cached data was not found. We have to hit the server. */\n\n img.crossOrigin = '';\n\n img.onload = () => {\n this.ctx.drawImage(img, 0, 0);\n\n this.imageData = this.ctx.getImageData(0, 0, this.width, height).data;\n\n /* cache the image data */\n this._putCachedData(modelBBox.bbox, this.imageData);\n\n if (typeof callback === 'function') {\n callback();\n }\n };\n\n img.src = this.url.namedFormat({\n s : modelBBox.bbox.getSouth(),\n w : modelBBox.bbox.getWest(),\n n : modelBBox.bbox.getNorth(),\n e : modelBBox.bbox.getEast(),\n width: this.width,\n height: height\n });\n });\n }", "function internalizeImages($html, callback) {\n var $images = $html.filter('img');\n $images.each(function(index) {\n var $image = $(this);\n var imageSource = $image.attr('src');\n // add support for GIFs\n var filetype = imageSource.split('.').pop();\n convertImgToBase64(imageSource, filetype, function(dataURL) {\n $image.attr('src', dataURL); // replaced with Base64\n // when finish iterating images, do callback\n if (index === $images.length-1) callback($html);\n });\n });\n}", "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 }", "function loadInitials(name, index, email){\n var initials = name.replace(/\\W*(\\w)\\w*/g, '$1').toUpperCase();\n var url = \"http://profileimages.azurewebsites.net/Image/300/\" + initials;\n var xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'blob';\n xhr.onload = function(e) {\n var img = document.createElement('img');\n img.setAttribute(\"id\", \"realImageContainer\");\n img.src = window.URL.createObjectURL(this.response);\n \n var divName = \"#g\" + index;\n $(divName).empty();\n $(divName).prepend(img);\n $(divName).append('<p id=\"gravatarName\">' + name + '</p>');\n\n var srcClone = img.src;\n $scope.trelloImages.push({\"Name\": name, \"Image\" :srcClone, \"Email\" : email});\n $scope.completedXMLRequests++;\n \n //Check if all xml requests are done and send\n if($scope.completedXMLRequests == 28){\n Service.updateGravatars($scope.trelloImages);\n }\n };\n xhr.send();\n }", "function _loadVisibleImages() {\n // do not load anything if currently in forced scrolling\n if (scrolling) return;\n _computeFirstAndLastVisible();\n var $canvas = $(\"#canvas\");\n var maxWidth = $canvas.width()-16;\n // iterate over images visible in viewport\n var uuid = firstVisibleUUID;\n while (uuid) {\n var fingerprint = fpCache.getFingerprint(uuid);\n var $item = fpCache.getDOMElement(uuid);\n // Check if item is still visible\n var viewTop = $(\"#canvas\").scrollTop();\n var viewBottom = viewTop + $(\"#canvas\").height();\n var canvasTop = $(\"#canvas\").position().top;\n var offsetTop = viewTop - canvasTop;\n var top = $item.position().top + offsetTop;\n var bottom = top + $item.height();\n var visible = (bottom >= viewTop && top <= viewBottom);\n if (visible) {\n // Update 'src' attribute to reload\n var $img = $('img', $item);\n var size = computeThumbsize(maxWidth, uuid);\n $img.css(size);\n var $play = $('.canvas-image-item-play', $item);\n $play.css(size);\n\n if (fingerprint.image && fingerprint.image.dominantColor && fingerprint.image.dominantColor.length>0)\n $img.css('backgroundColor', fingerprint.image.dominantColor);\n var src = $img.attr('src');\n if (!src) {\n $img.attr(\"src\", \"/photos/thumb/\" + flavor + \"/\" + fingerprint.uuid);\n }\n }\n if (uuid === lastVisibleUUID) break;\n uuid = fpCache.getNextUUID(uuid);\n } \n}", "function buildImageResource(imageryProvider, info, x, y, level, request) {\n const quadKey = GoogleEarthEnterpriseMetadata.tileXYToQuadKey(x, y, level);\n let version = info.imageryVersion;\n version = defined(version) && version > 0 ? version : 1;\n\n return imageryProvider._metadata.resource.getDerivedResource({\n url: `flatfile?f1-0${quadKey}-i.${version.toString()}`,\n request: request,\n });\n}" ]
[ "0.61578953", "0.6154271", "0.6081619", "0.59264785", "0.58892906", "0.58532465", "0.58039707", "0.5798871", "0.57924664", "0.5780348", "0.5766889", "0.5754581", "0.5739024", "0.5737186", "0.5735025", "0.5702074", "0.5700421", "0.5667828", "0.5638439", "0.56173474", "0.56124014", "0.5609069", "0.5576988", "0.55322826", "0.5528451", "0.5520664", "0.55077034", "0.5503547", "0.5488504", "0.5486832", "0.5483694", "0.5475775", "0.54719025", "0.54470605", "0.5434501", "0.5431905", "0.54310757", "0.54265034", "0.54120785", "0.5411416", "0.53998226", "0.5392965", "0.5377762", "0.53771234", "0.53741527", "0.53723615", "0.5370759", "0.5345606", "0.53417295", "0.5336495", "0.5320649", "0.5320219", "0.5318198", "0.5317848", "0.5316186", "0.5315931", "0.53147775", "0.5313883", "0.53054225", "0.5300897", "0.52977306", "0.52956563", "0.5295131", "0.5287396", "0.528537", "0.5281872", "0.5280504", "0.52733797", "0.5265795", "0.525859", "0.5256592", "0.5247664", "0.52473485", "0.5244218", "0.52424985", "0.52423596", "0.5242316", "0.52409315", "0.5237294", "0.5228184", "0.5227413", "0.52247614", "0.52214307", "0.5214158", "0.5207463", "0.5206384", "0.52035785", "0.51989144", "0.51975995", "0.51974285", "0.5190508", "0.51833725", "0.5182438", "0.51821923", "0.5178864", "0.51785964", "0.51734185", "0.5172876", "0.51727664", "0.51699835" ]
0.7778581
0
index page article scroll In 20180127
function initArticleScroll(){ // get window params var wH = $(window).height(); var wScrollTop = $(window).scrollTop(); // get article var obj = $('.article'); var objH = $('.article').outerHeight(); // check (is null) if(obj.length <= 0 ) return ; // get top of article var num = []; for(var i = 0 ; i < obj.length ; i++ ){ num.push( obj.eq(i).offset().top + ( objH/3 )); } // the frist articles if( obj.eq(0) ){ obj.eq(0).addClass('scrollIn'); } // check (is visible in window ? ) function judgeScroll(){ for(var j= 1 ; j < num.length ; j++ ){ if ( num[j] < (wScrollTop + wH) ) { for ( var k = 0 ; k <= j ; k++){ obj.eq(k).addClass('scrollIn'); } } } }; // init judgeScroll(); // update window params $( window ).scroll( function() { wH = $(window).height(); wScrollTop = $(window).scrollTop(); judgeScroll(); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showAndScrollToLatestArticles() {\n shownArticlesCount = 0;\n $(\"#articleKeywordCategoryId\").val(\"\"); //get all articles of all categories\n $(\"#latestArticles\").hide(1000);\n $(\"#latestArticles\").html(\"\");\n showLatestArticles();\n $([document.documentElement, document.body]).animate({\n scrollTop: $(\"#latestArticlesSection\").offset().top\n }, 1000);\n}", "function cust_PageScroll(ref) {\n\n}", "function ScrollPosition() {}", "function qodeOnWindowScroll() {\n\t qodeInitNewsShortcodesPagination().scroll();\n }", "scrollToTitle() {\n let $self = $(`#${this.idDOM}`);\n\n $('html, body').animate({\n scrollTop: $self.find('.article-big-category').offset().top\n }, 1000);\n }", "function ViewportScrollPosition() { }", "function ViewportScrollPosition() { }", "function gotoPage(){\n\t\t//checks for hashes\n\t\t\tif(window.location.hash) {\n\t\t\t\tvar hash\t\t=\twindow.location.hash.substring(1).split('/');\n\t\t\t\tpageNumber\t=\t(hash[1] == undefined)?1:parseInt(hash[1]);\n\t\t\t\tarticle\t\t\t=\tparseInt(hash[0]);\n\t\t\t\tupdatePageInfo();\n\t\t\t}\n\t\t\t\n\t\t\t$(\".page\").hide();\n\t\t\tif(!$(\".page-\"+pageNumber+\"#article_\"+article).is(':hidden'))\n\t\t\t{\n\t\t\t\t$(\".page.last#article_\"+article).show();\n\t\t\t\tpageNumber\t=\tparseInt($(\".page.last#article_\"+article).attr(\"data-pageNumber\"));\n\t\t\t\tupdatePageInfo();\n\t\t\t}else{\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).show();\n\t\t\t}\n\t\t}", "function nextPage(){\n\t\t\tif($(\".page-\"+(pageNumber+1)+\"#article_\"+article).is(':hidden'))\n\t\t\t{\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).hide();\n\t\t\t\tpageNumber++;\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).stop(true, true).fadeIn(300);\n\t\t\t\tupdateAfterNav();\n\t\t\t}else if($(\".page.first#article_\"+(article+1)).is(':hidden')){\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).hide();\n\t\t\t\tarticle++;\n\t\t\t\tupdateMenu();\n\t\t\t\tpageNumber = 1;\n\t\t\t\t$(\".page.first#article_\"+article).stop(true, true).fadeIn(300);\n\t\t\t\tupdateAfterNav();\n\t\t\t}\n\t\t}", "function load(){\r\n\t// window.location.hash=\"#third\";\r\n\tv = document.getElementById('scrollBody');\r\n\tv.scrollLeft = (pageWidth*2/5);\r\n}", "function setPages(){\n\t\t\t// Foreach all articles\n\t\t\t$.each(articles, function(key, value){\n\t\t\t\tvar totalCounted\t\t=\t0;\n\t\t\t\tvar elements\t\t\t=\tvalue[\"article\"];\n\t\t\t\tvar marge\t\t\t\t=\t0;\n\t\t\t\tarticleTitles[key]\t\t=\tvalue[\"title\"];\n\t\t\t\t\n\t\t\t\t// Current values\n\t\t\t\tvar current\t\t\t\t=\t[];\n\t\t\t\tcurrent[\"column\"] \t=\t1;\n\t\t\t\tcurrent[\"page\"]\t\t=\t0;\n\t\t\t\tcurrent[\"element\"]\t=\t-1;\n\t\t\t\t\n\t\t\t\t// Height of page\n\t\t\t\tvar HM\t=\t(getDocHeight()-120)%lineHeight;\n\t\t\t\tvar heightOfPage\t=\t(HM < lineHeight/2)\n\t\t\t\t\t?(getDocHeight()-120)-HM\n\t\t\t\t\t:(getDocHeight()-120)+(lineHeight-HM);\t\n\n\t\t\t\tvar done = false;\n\t\t\t\tvar marginTop = 0;\n\t\t\t\tvar lastItemHeight;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// If determined number of columns does not fit onto the page it will recalculate the number of columns\n\t\t\t\tif(value[\"data-cols\"]*(widthOfColumn+space+10) > getDocWidth())\n\t\t\t\t{\n\t\t\t\t\tvar cols\t=\tMath.floor(getDocWidth()/(widthOfColumn+space+10));\n\t\t\t\t\tif(cols == 1){\n\t\t\t\t\t\t$(\".sideMenu\").hide();\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tvar cols\t=\tvalue[\"data-cols\"];\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\t// This makes the first page of an article\n\t\t\t\t\tif(current[\"page\"] == 0){\n\t\t\t\t\t\tcurrent[\"page\"]++;\n\t\t\t\t\t\t$(\".viewer\", thisElement).append('<div class=\"page page-'+current[\"page\"]+' theme-'+value[\"data-theme\"]+' first\" id=\"article_'+key+'\" data-pageNumber=\"'+current[\"page\"]+'\" data-articleNumber=\"'+key+'\" style=\"width: '+(widthOfColumn+space)+'px; height: '+heightOfPage+'px\"><div class=\"column column_'+current[\"column\"]+'\" style=\"height: '+heightOfPage+'px\"></div></div>');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If needed it makes a new page\t\t\t\t\t\n\t\t\t\t\tif(marge == 0){\n\t\t\t\t\t\tcurrent[\"element\"]++;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmarginTop = lastItemHeight-marge;\n\t\t\t\t\t\tmarge = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Removes headers if its shown half on a page (#1)\n\t\t\t\t\tvar remove = false;\n\t\t\t\t\tif((heightOfPage-totalCounted) < (5*lineHeight) && heightOfPage-totalCounted > 0 && heightOfPage > 7*lineHeight){\n\t\t\t\t\t\tif(typeof(elements[current[\"element\"]]) != 'undefined'){\n\t\t\t\t\t\t\tif(elements[current[\"element\"]][\"node\"] == \"H2\"){\n\t\t\t\t\t\t\t\ttotalCounted += heightOfPage-totalCounted;\n\t\t\t\t\t\t\t\tremove = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t// Check if all elements are done\n\t\t\t\t\tif(typeof(elements[current[\"element\"]]) == 'undefined'){\n\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\t$(\".page\").hide();\n\t\t\t\t\t\t$(\".first#article_0\").show();\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key).addClass(\"last\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(elements[current[\"element\"]][\"node\"] != \"FIGURE\"){\n\t\t\t\t\t\t// Place the content into the current pages/columns\n\t\t\t\t\t\tvar iden = key+\"_\"+current[\"page\"]+\"_\"+current[\"column\"];\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key+\" .column_\"+current[\"column\"]).append('<'+elements[current[\"element\"]][\"node\"]+' id=\"'+iden+'\">'+elements[current[\"element\"]][\"value\"]+'</'+elements[current[\"element\"]][\"node\"]+'>');\n\t\t\t\t\t\ttotalCounted += $(\"#\"+iden).outerHeight(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//figure\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key+\" .column_\"+current[\"column\"]).append('<'+elements[current[\"element\"]][\"node\"]+'>'+elements[current[\"element\"]][\"value\"]+'</'+elements[current[\"element\"]][\"node\"]+'>');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Checks if item has to be removed (#1)\n\t\t\t\t\tif(remove){\n\t\t\t\t\t\t$(\"#\"+iden).hide();\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Use the margin on a element if there is any\n\t\t\t\t\tif(marginTop != 0){\n\t\t\t\t\t\tif(marginTop < 0){\n\t\t\t\t\t\t\tmarginTop = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(current[\"column\"] == (value[\"data-cols\"]-1)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttotalCounted -= marginTop;\n\t\t\t\t\t\t$(\"#\"+iden).css(\"marginTop\", -marginTop+\"px\");\n\t\t\t\t\t\tmarginTop = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Gets the height of the last placed element And removes the id attribute\n\t\t\t\t\tlastItemHeight\t=\t$(\"#\"+iden).outerHeight();\n\t\t\t\t\t$(\"#\"+iden).removeAttr(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Makes a new column\n\t\t\t\t\tif(totalCounted > heightOfPage){\n\t\t\t\t\t\tif(current[\"column\"] >= cols){\n\t\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key+\" .column_\"+current[\"column\"]).addClass(\"last_column\");\n\t\t\t\t\t\t\tcurrent[\"page\"]++;\n\t\t\t\t\t\t\tcurrent[\"column\"]\t\t=\t1;\n\t\t\t\t\t\t\t$(\".viewer\", thisElement).append('<div class=\"page page-'+current[\"page\"]+' theme-'+value[\"data-theme\"]+'\" id=\"article_'+key+'\" data-pageNumber=\"'+current[\"page\"]+'\" data-articleNumber=\"'+key+'\" style=\"width: '+(widthOfColumn+space)+'px; height: '+heightOfPage+'px\"></div>');\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tcurrent[\"column\"]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key).append('<div class=\"column column_'+current[\"column\"]+'\" style=\"height: '+heightOfPage+'px\"></div>');\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key).width((widthOfColumn+space)*current[\"column\"]);\n\t\t\t\t\t\tmarge = (totalCounted-heightOfPage);\n\t\t\t\t\t\ttotalCounted = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\twhile(done != true);\n\t\t\t\t\n\t\t\t});\n\t\t\tafterLoading();\n\t\t}", "nextPost(array, index, nextId) {\n this.closePost();\n let posts = this.state.posts,\n newPost = toggleElement(\n array,\n index,\n 'articleClass',\n 'post__article',\n true,\n false\n );\n newPost = toggleElement(\n array,\n index,\n 'titleClass',\n 'post__title-container',\n true,\n false\n );\n newPost = toggleElement(\n array,\n index,\n 'controlsClass',\n 'post__controls',\n true,\n false\n );\n posts[this.state.pagination] = newPost;\n this.setState({ posts });\n // Browser window scrolls to top of article\n smoothScroll(nextId);\n }", "jump() {\n const env = this;\n const container = this['$container']['$node'];\n container.parentNode.addEventListener( 'scroll', function( e ) {\n env['$content'].scrollTop = container.parentNode.scrollTop;\n env['$content'].scrollLeft = container.parentNode.scrollLeft;\n env.setPage();\n });\n }", "function showNextArticles() {\n showLatestArticles();\n}", "function showAndScrollToArticlesByCategory(articleKeywordCategoryId) {\n shownArticlesCount = 0;\n showArticlesByCategory(articleKeywordCategoryId);\n $([document.documentElement, document.body]).animate({\n scrollTop: $(\"#latestArticlesSection\").offset().top\n }, 1000);\n}", "function ViewportScrollPosition() {}", "function ViewportScrollPosition() {}", "function ViewportScrollPosition() {}", "function ViewportScrollPosition() {}", "function scrollFunc(event) { allSections[index].scrollIntoView({ behavior: \"smooth\", block: \"end\", inline: \"nearest\" }); }", "function simpleBlogInfiniteScroll() {\n \"use strict\";\n var container = '#posts_container';\n var behavior = '';\n if ($('#blogmasonry').length > 0) {\n container = '#blogmasonry .filterable';\n behavior = 'masonry_blog';\n } else\n container = '#posts_container';\n\n $(container).infinitescroll({\n\n navSelector: \"div.p_pagination\",\n // selector for the paged navigation (it will be hidden)\n nextSelector: \"div.p_pagination a.next_link\",\n // selector for the NEXT link (to page 2)\n itemSelector: \"#posts_container article.post\",\n // selector for all items you'll retrieve\n animate: true,\n\n loading: {\n img: '',\n msgText: ''\n },\n\n behavior: behavior\n });\n\n simple_blogmasonry();\n\n\n }", "function counterUpOne(){\n\t\t\t_scrollPrevLimit = _scrollNextLimit;\n\t\t\t_scrollCounter++;\n\t\t\t_scrollNextLimit = _scrollCounter === _scrollCounterMax ? 100000 : $('.article[data-id=\"' + _scrollCounter + '\"]').offset().top;\n}", "function onIndexPageScroll() {\n var clientHeight = $(this).height();\n var scrollTop = Math.ceil($(this).scrollTop());\n var scrollHeight = $(document).height();\n if(scrollTop + clientHeight === scrollHeight){\n // Get the first then items from the grid, clone them, and add them to the bottom of the grid\n var $container = $(\"#waterfall\");\n var $items = $('div.item', $container);\n var $itemCount = $items.length;\n if ($itemCount < 100) {\n getIndexPicture(appendItemToWaterFall);\n }\n }\n}", "scroll() {\n const env = this;\n const container = this['$container']['$node'];\n container.parentNode.addEventListener( 'scroll', function( e ) {\n env['$content'].scrollTop = container.parentNode.scrollTop;\n env['$content'].scrollLeft = container.parentNode.scrollLeft;\n env.setPage();\n });\n }", "function indexRenderNotes() {\n if($('body').is('.index')){\n renderNotes();\n }\n}", "function getScroll(praUrl, appendList) {\r\n $(window).scroll(function () {\r\n var windowScrollTop = $(window).scrollTop();\r\n if (windowScrollTop == $(document).height() - $(window).height() && windowScrollTop != 0 && isScrollNews) {\r\n initTitle(praUrl, appendList);\r\n isScrollNews = false;\r\n }\r\n });\r\n}", "function nav(arg) {\n\t \t\tmovielVm.curPage = ((movielVm.curPage + movielVm.pageRound + arg) % movielVm.pageRound);\n\t \t\tmovielVm.startIndex = (movielVm.curPage * movielVm.moviesPerPage);\n\t \t\tconsole.log(\"startindex: \" + movielVm.startIndex)\n\t \t}", "showIndex() {\n\t\tif (document.getElementById('label_container')) {\n\t\t\tthis.smoothScroll(document.getElementById('label_container'));\n\t\t}\n\t}", "function readMore() {\n $('html, body').animate({\n scrollTop: $(\".project\").offset().top\n }, 800);\n }", "function scrollPage(e,el,o) {\n\t// get the element we're basing the scroll on (the target)\n\tvar el = Ext.get(this.dom.hash.replace(/#/,''));\n\t// get the container\n\tvar ct = Ext.query(\"#bodypanel .x-panel-body\")[0];\n\tct = Ext.get(ct);\n\t// calculate y position of target element; this is how far we need to scroll\n\tvar yoffset = el.getOffsetsTo(ct)[1];\n\t// do the scroll\n\tct.scrollTo(\"top\",yoffset,true);\n\t// call preventDefault on the original click event to prevent anchor jump\n\te.preventDefault();\n}", "scrollToPage(pageIndex) {\n let top = 0;\n for (let i = 0; i < this.pages.length; i++) {\n top = this.pages[i].boundingRectangle.y - (this.pageGap / 2);\n if (i === pageIndex) {\n break;\n }\n }\n this.viewerContainer.scrollTop = top;\n this.updateScrollBars();\n }", "function getArticlesForPage() {\n var mainContentArea = document.getElementById(\"main-content\");\n mainContentArea.innerHTML = '';\n\n var start = (currentPage - 1) * itemsPerPage;\n var end = start + itemsPerPage;\n var articlesToDisplay = getGamingArticles().slice(start, end);\n\n // This sets the HTML for this article inside the main content area DOM element.\n articlesToDisplay.forEach(function(article) {\n mainContentArea.innerHTML += `\n <section class=\"gaming-article-section\">\n <img class=\"gaming-article-image\" src=\"${article.bigImage}\" />\n \n <article class=\"gaming-article\">\n <header>\n <h2>${article.title}</h2>\n </header>\n <p class=\"gaming-article-summary\">\n ${article.summary}\n </p>\n <p class=\"read-more\">\n <a href=\"article.html?articleId=${article.id}\">Read More</a>\n </p>\n </article>\n </section>\n `;\n });\n\n // Sets the HTML at the bottom after all the articles, for paging articles.\n mainContentArea.innerHTML += `\n <section class=\"paging-buttons\">\n <button class=\"${currentPage === 1 ? 'disabled' : ''}\" type=\"button\" onclick=\"previousPage()\">Previous Page</button>\n\n <button class=\"${currentPage === getTotalPages() ? 'disabled' : ''}\" type=\"button\" onclick=\"nextPage()\">Next Page</button>\n </section>\n `;\n}", "function scrollToNextPage() {\n gallery_scroller.scrollBy({\n left: gallery_item_size,\n top: 0,\n behavior: 'smooth'\n });\n// updateBtns()\n}", "goTo( index ) {\n this.pageIndex = index;\n this.getEntries();\n }", "function learnMoreFunction() {\n document.querySelector('#about').scrollIntoView({ \n behavior: 'smooth',\n block: 'center'\n });\n}", "function showIndex(data) {\n\t\t\t// Save away initial data, stripping off the 'entries' element in the HuffPo feed\n\t\t\tDemo.items = new Demo.Collections.Items(data['entries']);\n\t\t\tDemo.currPage = 0;\n\t\t\t\n\t\t\t// Set up Backbone\n\t\t\tDemo.router = new Demo.Router();\n\t\t\tBackbone.history.start();\n\t\t}", "function scrollToNextPage() {\n card_scroller.scrollBy(card_item_size, 0);\n }", "function loadNextDetails(articleIndex) {\n\n\t//if articleIndex is undefined, set to 0 (first call)\n\tif (articleIndex == undefined) articleIndex = 0;\n\n\t//contine to call the next if index is lower than the total\n\tif (articleIndex < dataset.length) {\n\t\tconst article = dataset[articleIndex];\n\t\trpOptions.uri = `${targetWebsite.baseUrl}article/view/${article.articleID}`;\n\t\tloadURL('internal', article.articleID);\n\t} else {\n\t\tfinish();\n\t}\n\n}", "pageScrollTo(){\n let element = document.getElementById( App.current_page );\n \n //scroll to the particular section of the page.\n if( element ){\n element.scrollIntoView({behavior: 'smooth'});\n }\n }", "function updateScroll(){if(!elements.li[0])return;var height=elements.li[0].offsetHeight,top=height*ctrl.index,bot=top+height,hgt=elements.scroller.clientHeight,scrollTop=elements.scroller.scrollTop;if(top<scrollTop){scrollTo(top);}else if(bot>scrollTop+hgt){scrollTo(bot-hgt);}}", "function goToArticles(update) {\n var json = getAllArticlesBrief();\n\n document.getElementsByTagName('h2')[0].innerHTML = 'Bitte waehlen Sie Ihre Bestellung';\n\n var container = document.getElementsByTagName('article')[0];\n\n while (container.firstChild) {\n container.removeChild(container.firstChild);\n }\n\n for (var i = 0; i < json.articles.length; i++) {\n var img = document.createElement('IMG');\n img.setAttribute('src', json.articles[i].thumb_img_url);\n img.setAttribute('onclick', 'changeToScreen(2, false,' + json.articles[i].id + ')');\n\n var section = document.createElement('SECTION');\n section.setAttribute('id', json.articles[i].id);\n section.setAttribute('class', 'tooltip');\n\n var tooltip = document.createElement('SPAN');\n tooltip.setAttribute('class', 'tooltiptext');\n tooltip.innerHTML = json.articles[i].name;\n section.appendChild(tooltip);\n\n section.appendChild(img);\n container.appendChild(section);\n }\n\n if (update) {\n return;\n }\n\n setNewUrl('/articles', 'articles');\n}", "function scroller(){\n\t\t\t\t\t$('.scrollPage').click(function(){\n\t\t\t\t\t\tvar elementClicked = $(this).attr(\"href\");\n\t\t\t\t\t\tvar destination = $(elementClicked).offset().top;\n\t\t\t\t\t\t$(\"html:not(:animated),body:not(:animated)\").animate({\n\t\t\t\t\t\t\tscrollTop: destination - 1 //Number being the pixel distance from destination.\n\t\t\t\t\t\t}, 1000, 'easeInOutQuint');\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t}", "function hsClickScroll()\n {\n var imageOffset = self.getOffsetRect(this).top; \n var clientOffset = (docElement.clientHeight-hs.maxHeight) / 2;\n window.scrollTo(0,imageOffset-clientOffset);\n }", "function setPageIndex(){\n $('#left').html(window.middlePage - 1);\n $('#left').data('pagenumber', window.middlePage - 1);\n $('#middle').html(window.middlePage);\n $('#middle').data('pagenumber', window.middlePage);\n $('#right').html(window.middlePage + 1);\n $('#right').data('pagenumber', window.middlePage + 1);\n}", "function look_ruby_scroll_update_url() {\r\n var single = $('.single');\r\n if (single.length > 0) {\r\n var post_outer = single.find('.single-post-outer');\r\n if (post_outer.length > 1) {\r\n post_outer.each(function() {\r\n var post_outer_el = $(this);\r\n var url = post_outer_el.data('post_url');\r\n var title = post_outer_el.data('post_title');\r\n\r\n new Waypoint.Inview({\r\n element: post_outer_el,\r\n enter: function() {\r\n look_ruby_update_url(url, title);\r\n }\r\n });\r\n })\r\n }\r\n }\r\n }", "scroll() {\r\n window.onscroll = () => {\r\n let bottomOfWindow = document.documentElement.scrollTop + window.innerHeight >= (document.documentElement.offsetHeight - 200);\r\n if (bottomOfWindow) {\r\n this.page++\r\n if(this.searchedTitle === \"\"){\r\n this.searchPopular()\r\n } else if(this.genreSelected === \"All\"){\r\n this.searchFilm()\r\n this.searchTv()\r\n } else if(this.genreSelected === \"Films\") {\r\n this.searchFilm()\r\n } else {\r\n this.searchTv()\r\n }\r\n }\r\n };\r\n }", "function showArticle(i) {\n\n currentArticle = i;\n var article = articles[i];\n\n if (article) {\n $('.article .title h1 a').html(article.title);\n $('.article .title h1 a').attr('href', article.alternate[0].href);\n $('.article .title h2 a').attr('href', article.origin.htmlUrl);\n\n // Show human date\n var date = new Date(0);\n date.setUTCSeconds(article.published);\n $('.article .title h2 .date').html(humaneDate(date));\n\n var faviconURL = article.origin.htmlUrl.replace(\"http://\", \"\");\n\n if (faviconURL !== lastFaviconURL) {\n $('.article .title h2 a').css(\"background\", 'url(http://getfavicon.org/?url='+encodeURIComponent(faviconURL)+') 0 0 no-repeat');\n lastFaviconURL = faviconURL;\n }\n\n $('.article .title h2 a').html(article.origin.title);\n $('.article .content').text(\"\");\n\n if (article.content) {\n $('.article .content').append(article.content.content);\n } else if (article.summary) {\n $('.article .content').append('<p>'+article.summary.content+'</p><p><a href=\"'+article.alternate[0].href+'\">Read more</a></p>');\n }\n cleanArticle();\n }\n}", "function prevPage(){\n\t\t\tif(article == 0 && pageNumber == 1)\n\t\t\t{\n\t\t\t\t\n\t\t\t}else if(article == 0){\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).hide();\n\t\t\t\tpageNumber--;\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).stop(true, true).fadeIn(300);\n\t\t\t\tupdateAfterNav();\n\t\t\t}else if(article > 0 && pageNumber == 1){\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).hide();\n\t\t\t\tarticle--;\n\t\t\t\tupdateMenu();\n\t\t\t\t$(\".page.last#article_\"+article).stop(true, true).fadeIn(500);\n\t\t\t\tpageNumber = $(\".page.last#article_\"+article).attr(\"data-pagenumber\");\n\t\t\t\tupdateAfterNav();\n\t\t\t}else if(article > 0){\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).hide();\n\t\t\t\tpageNumber--;\n\t\t\t\t$(\".page-\"+pageNumber+\"#article_\"+article).stop(true, true).fadeIn(300);\n\t\t\t\tupdateAfterNav();\n\t\t\t}\n\t\t}", "function showNextElement(){\n var currentArticle = sections.eq(counter).find('article');\n counter++;\n var amountToScroll = -distance*(counter);\n console.log(counter);\n container.animate({top: amountToScroll}, 800, function(){\n currentArticle.find('h2').fadeIn(1000, function(){\n currentArticle.find('div').fadeIn(1000, function(){\n nextButton.appendTo(currentArticle).fadeIn(1000);\n\n });\n });\n if (counter === 1) {\n animateFirstFrame();\n }\n });\n }", "pageIndex(itemIndex) {\n return this.pages.findIndex(page =>\n page.element.find(element => element.originalIndex === itemIndex)\n )\n }", "function scrollToBlog() {\n $('html, body').animate({\n scrollTop: $('#blog-container').offset().top\n }, 250);\n}", "function init_pagescroll()\n {\n $('a.page-scroll').on('click', function (e)\n {\n if (location.pathname.replace(/^\\//, '') === this.pathname.replace(/^\\//, '') && location.hostname === this.hostname)\n {\n var target = $(this.hash);\n target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');\n if (target.length)\n {\n $('html,body').animate(\n {\n scrollTop: target.offset().top\n }, 1000);\n return false;\n }\n }\n });\n }", "function showArticle(articleId) {\n if (history.pushState) {\n var articleParameter = {articleId: articleId};\n window.history.pushState(articleParameter, LABEL_PAGE_TITLE, \"?\" + $.param(articleParameter));\n $(\"#page-content\").hide(1000, function () {\n $.get(URL_ARTICLES + articleId, function (articleData) {\n var articleHTML = \"\";\n articleHTML += \"<div class='wrap-container zerogrid'>\";\n articleHTML += \"\t<div class='crumbs'>\";\n articleHTML += \"\t\t<ul>\";\n articleHTML += \"\t\t\t<li><a href=\\\"\"+URL_INDEX+\"\\\">\" + LABEL_MAIN_PAGE + \"</a></li>\"\n articleHTML += \"\t\t\t<li><a href=\\\"javascript:showAbout()\\\">\" + LABEL_ABOUT + \"</a></li>\"\n articleHTML += \"\t\t</ul>\";\n articleHTML += \" </div>\";\n articleHTML += \" <div id='about-us'>\";\n articleHTML += \"\t <article class='post-entry single-post'>\";\n articleHTML += \"\t\t <div class='wrap-post'>\";\n articleHTML += \"\t\t\t <div class='entry-header'>\";\n articleHTML += \"\t\t\t\t <h1 id='articleTitle' class='entry-title'>\" + articleData.title + \"</h1>\";\n articleHTML += \"\t\t\t\t <h3 id='articleAuthorNickname' class='entry-title'><p>\" + articleData.author_nickname + \"</p></h2>\";\n articleHTML += \"\t\t\t\t\t<div class='entry-meta'>\";\n articleHTML += \"\t\t\t\t\t\t<i class='fa fa-calendar' alt='\" + LABEL_SHOW_ARTICLE_DATE + \"' title='\" + LABEL_SHOW_ARTICLE_DATE + \"'> \" + articleData.creation_date + \" </i>\";\n articleHTML += \"\t\t\t\t\t\t<i class='fa fa-eye' alt='\" + LABEL_SHOW_ARTICLE_VIEWS + \"' title='\" + LABEL_SHOW_ARTICLE_VIEWS + \"'> \" + articleData.total_views + \" </i>\";\n articleHTML += \"\t\t\t\t\t\t<!--<a><i class='fa fa-comments'></i> 0 Comments</a>-->\";\n articleHTML += \"\t\t\t\t\t\t<!--<a><i class='fa fa-tag'></i> Event, New</a>-->\";\n articleHTML += \"\t\t\t\t\t</div>\";\n articleHTML += \"\t\t\t\t</div>\";\n articleHTML += \"\t\t\t\t<div id='articleMainText' class='entry-content'>\" + articleData.main_text + \"</div>\";\n articleHTML += \"\t\t\t <div class='entry-header' style='margin:0;padding:0;'>\";\n articleHTML += \"\t\t\t\t <div class='entry-meta'>\";\n articleHTML += \"\t\t\t\t \t\" + getArticleOriginalSourceOptionalURL(articleData);\n articleHTML += \"\t\t\t\t </div>\";\n articleHTML += \"\t\t\t\t</div>\";\n articleHTML += \"\t\t\t</div>\";\n articleHTML += \"\t </article>\";\n articleHTML += \" </div>\";\n articleHTML += \"</div>\";\n $(\"#page-content\").html(articleHTML).show(1000);\n $([document.documentElement, document.body]).animate({\n scrollTop: $(\"#page-content\").offset().top\n }, 2000);\n });\n\n });\n } else {\n document.location.href = generateShowArticleURL(articleId);\n }\n}", "onListScroll() {\n\t\t\tvar n = Util.$('results-container');\n\t\t\tif ( (n.clientHeight + n.scrollTop) >= (n.scrollHeight -50) ) {\n\t\t\t\tthis._pageHandler.nextPage()\n\t\t\t\t\t.then(response => {\n\t\t\t\t\t\tif (response) {\n\t\t\t\t\t\t\tthis.showNextPage(response);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t}\n\t\t}", "function _doSequentialScroll() {\r\n\t\t\t\tvar time0 = new Date().getTime(), i = 0, $currPage, $firstPage, $nextPage, $prevPage, //\r\n\t\t\t\t$firstPages, //\r\n\t\t\t\t// scrollTop = $tree.scrollTop(), treeHeight = $oh($tree) + 10, //\r\n\t\t\t\tfirstTop, firstHeight, maxPageIndex, //\r\n\t\t\t\tcurrPageIndex, prevHiddenSize;//\r\n\r\n\t\t\t\t$firstPages = $f(\">div.TrN-P:first\", $f(\"UL:visible\", $tree));\r\n\r\n\t\t\t\tfor (; i < $firstPages.length; i++) {\r\n\t\t\t\t\t$firstPage = $($firstPages[i]);\r\n\r\n\t\t\t\t\tfirstTop = $firstPage.position().top;\r\n\t\t\t\t\tfirstHeight = $c(\"li\", $firstPage).length * opts.rowHeight;\r\n\r\n\t\t\t\t\tmaxPageIndex = $f(\">div.TrN-P\", $firstPage.parent()).length - 1;\r\n\r\n\t\t\t\t\t// eval current page index\r\n\t\t\t\t\tcurrPageIndex = parseInt((-firstTop) / firstHeight);\r\n\t\t\t\t\tif (currPageIndex >= 0) {\r\n\t\t\t\t\t\tif (currPageIndex > maxPageIndex)\r\n\t\t\t\t\t\t\tcurrPageIndex = maxPageIndex;\r\n\t\t\t\t\t\t$currPage = $f(\">div.TrN-P:eq(\" + currPageIndex + \")\", $firstPage.parent());\r\n\r\n\t\t\t\t\t\tif ($currPage.length) {\r\n\t\t\t\t\t\t\tprevHiddenSize = $currPage.prevAll(\"div.TrN-P:hidden\").show().length;\r\n\t\t\t\t\t\t\t$currPage.show();\r\n\t\t\t\t\t\t\t$currPage.next(\"div.TrN-P\").show();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// $log(\"ui.tree:scroll: firstPage={node:[{1}], top:[{2}], height:[{3}]}, currPageIndex=[{4}], prevHiddenSize=[{5}], currPageSize=[{6}], nextHiddenSize=[{7}]\", time0, $firstPage.find(\">li:first>div.TrN>span.TrT\").text(), firstTop, firstHeight, currPageIndex, prevHiddenSize,\r\n\t\t\t\t\t\t// $currPage.length, $currPage.nextAll(\"div.TrN-P:hidden\").length);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "showPost(array, index, id) {\n this.closePost();\n let posts = this.state.posts,\n newPost = toggleElement(array, index, 'articleClass', 'post__article');\n if (this.props.title === 'Blog') {\n newPost = toggleElement(\n array,\n index,\n 'titleClass',\n 'blog-post__title-container'\n );\n } else {\n newPost = toggleElement(\n array,\n index,\n 'titleClass',\n 'post__title-container'\n );\n }\n newPost = toggleElement(array, index, 'controlsClass', 'post__controls');\n posts[this.state.pagination] = newPost;\n this.setState({\n posts,\n });\n // Browser window scrolls to top of article\n smoothScroll(id);\n }", "function autoScroll() {\n $('a[href*=\"#\"]').not('[href=\"#\"]').not('[href=\"#0\"]').on(\"click\", scroll);\n }", "listNext() {\n document.body.scroll({ top: 0, left: 0, behavior: 'smooth' });\n this.listPage++;\n if (this.searchInput) {\n var input = document.getElementById(\"searchInput\").value;\n if (input.length != 0) {\n this.main.class().filter(input, this.listPage, this.listOrder, this.listDesc);\n return;\n }\n }\n this.main.class().list(this.listPage, this.listOrder, this.listDesc);\n }", "function updateScroll () {\n if (!elements.li[0]) return;\n if (mode === MODE_STANDARD) {\n updateStandardScroll();\n } else {\n updateVirtualScroll();\n }\n }", "function simplePortfolioInfiniteScroll() {\n \"use strict\";\n var container = '.masonry';\n var behavior = '';\n\n\n $(container).infinitescroll({\n\n navSelector: \"div.p_pagination\",\n // selector for the paged navigation (it will be hidden)\n nextSelector: \"div.p_pagination a.next_link\",\n // selector for the NEXT link (to page 2)\n itemSelector: \"#portfolio-preview-items .portfolio-item\",\n // selector for all items you'll retrieve\n animate: true,\n\n loading: {\n img: '',\n msgText: ''\n },\n\n behavior: behavior\n },\n\n function(arrayOfNewElems) {\n simplePortfolioInGrid();\n\n }\n\n );\n simplePortfolioPageIsotope();\n\n //s();\n\n\n }", "function showSynopsis(){\n window.scrollTo(0, document.getElementById('Synopsis').offsetTop);\n}", "function scrollHandler() { \n\t\tif ( isNextSceneReached(true) ) {\n runNextScene();\n\t\t} else if ( isPrevSceneReached(true) ) {\n runPrevScene();\n\t\t}\n }", "scrollDown() {\n if (this.currentOffset < this.items.length - 1) {\n this.currentOffset++\n this.goToThePage()\n }\n }", "function scrollToAnchor(){\n\n //getting the anchor link in the URL and deleting the `#`\n var value = window.location.hash.replace('#', '').split('/');\n var section = decodeURIComponent(value[0]);\n var slide = decodeURIComponent(value[1]);\n /* nectar addition */ \n if(section && $('.vc_row[data-fullscreen-anchor-id=\"'+section+'\"]').length > 0){ //if theres any #\n /* nectar addition end */ \n if(options.animateAnchor){\n scrollPageAndSlide(section, slide);\n }else{\n FP.silentMoveTo(section, slide);\n }\n }\n }", "function findArticles() {}", "function scrollDown() \n{\n console.log(\"hello\")\n document.querySelector(`.journalHTML`).scrollIntoView({\n behavior: \"auto\",\n block: \"center\",\n inline: \"center\"\n });\n}", "index() {\n new IndexView({ el: '.pages-wrapper' });\n }", "handleScroll() {\n var e = document.getElementsByClassName(\"main-body\")[0];\n if ((e.scrollTop + e.clientHeight)/(e.scrollHeight) >= BOTTOM_INDICATOR) {\n if (this.state.articles != null && this.state.shouldUpdate) {\n this.requestNewArticles();\n }\n }\n }", "function journalEvent(obj, index) {\n var value = document.querySelector(\"#publication-title > a\");\n window.ScraperExt.push(value.innerHTML);\n nextSearchItem(obj, index + 1);\n}", "function OCM_scrolling() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$offCanvasEl.mousewheel(function (event, delta) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.scrollTop -= (delta * 30);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tevent.preventDefault();\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t}", "function scrollWin() {\r\n var url = window.location.href;\r\n if (url==\"http://localhost/Final-Blog/index.php\")\r\n {window.scrollTo(0, 550)}\r\n else {\r\n window.location.href = \"index.php\" ;\r\n }\r\n}", "function aboutScroll () {\n\tvar aboutNavScroll = document.getElementById('about');\n\taboutNavScroll.scrollTop = 50;\n}", "function scrollni(n) {\r\n let faktor;\r\n //faktor korektnutia scrollu tak, aby bolo v obraze co ma byt\r\n //korekcie pre pc verziu\r\n if (mobilos == false) {\r\n faktor = 0.04;\r\n\r\n //korekcia pre pagee 2, 4, 5\r\n if (n == \"#page2\" || n == \"#page4\" || n == \"#page5\") {\r\n faktor = 0.1;\r\n }\r\n } else {\r\n faktor = -0.04;\r\n\r\n if (n == \"#page5\") faktor = 0.04;\r\n if (n == \"#page2\") faktor = 0.11;\r\n }\r\n\r\n $(window).scrollTop( $(n).offset().top - faktor*$(window).height() );\r\n $(zatvorOverlay());\r\n}", "function setIndexes() {\n pageStartIndex = currentPage * itemsPerPage;\n pageEndIndex = pageStartIndex + itemsPerPage - 1;\n}", "function tinyScroll() {\n window.scrollBy(0, 1);\n}", "function mkdOnWindowScroll() {\n \n }", "function displayNews(newsArr) {\n const htmlString = getAllHtmlContent(newsArr); //generate html encoded string with needed values\n $('#newsContent').html(htmlString) //set as news content\n $(\"html, body\").animate({ scrollTop: 0 }); //scroll to top of page\n successMsg(\"Number of records: \" + newsArr.length); //display number of records\n}", "function scrollOver(){\n var current = $galleryDoc.docById();\n var scrollAmount;\n if (current.length){\n scrollAmount = current.position().left - current.parent().width()/2 + current.innerWidth()/2;\n }else{\n return;\n }\n\n current.addClass('current-document');\n $galleryDoc.embedViewport.find('.gallery').animate({\n scrollLeft: scrollAmount\n }, 200);\n }", "function scrollTop() {\n\n}", "function onDocumentLoadSuccess() {\n setPageNumber(1);\n }", "function pageSlide(arg){\n if(isReachBoundary(arg)){\n return false;\n }\n var page_height = $(\".fullPage\").eq(0).height();\n var pre_top = parseInt($(\".fullPage-Container\").css(\"top\"));\n _index -= arg;\n var callback = $(\".fullPage\").eq(_index).attr(\"inView\");\n return $(\".fullPage-Container\").animate({top:pre_top+arg*page_height+\"px\"},400,\"swing\",function(){\n strTofunc(callback);\n location.hash=$(\".fullPage\").eq(_index).attr(\"page-id\");\n });\n }", "function checkScroll() {\n const root = document.querySelector('#root'); \n const rootOffset = root.offsetTop + root.clientHeight; \n var pageOffset = window.pageYOffset + window.innerHeight; \n //if current offset of page spills over the root dimensions, append feed with the next 1 post\n if (pageOffset > rootOffset - ARBITRARY_SCROLL_HEIGHT_DIFF) {\n var postsDisplayed = sessionStorage.getItem('postsDisplayed');\n //store count of posts displayed\n sessionStorage.setItem('postsDisplayed', parseInt(postsDisplayed) + POSTS_TO_ADD);\n posts.appendPosts(parseInt(postsDisplayed), POSTS_TO_ADD);\n }\n}", "function CallAboutPage(){\n\tshowElementAbove(DOMPageContentList[1]);\n\tDIV_SgvHolder.style.overflow = \"scroll\";\n}", "function VirtualScrollStrategy() {}", "function VirtualScrollStrategy() {}", "function VirtualScrollStrategy() {}", "function VirtualScrollStrategy() {}", "function scrollSuave() {\n var $doc = $('html, body');\n $('.menu-principal-lista a, .footer-menu a').click(function () {\n $doc.animate({\n scrollTop: $($.attr(this, 'href')).offset().top\n }, 1700);\n return false;\n });\n}", "function onPageBeforeShow() {\r\n pageHelper.resetScroll(page);\r\n }", "function onPageBeforeShow() {\r\n pageHelper.resetScroll(page);\r\n }", "function pageScroll() {\n if(document.body.style.overflowY != \"hidden\") {\n window.scrollBy(0,2);\n }\n }", "function changePageWindow(windowName, index) {\n var page = document.getElementById(windowName).getElementsByClassName(\"page\");\n if (index == 1) {\n page[0].style.left = \"-100%\";\n page[1].style.display = \"block\";\n setTimeout(function () {\n page[1].style.left = \"0\";\n }, 300);\n setTimeout(function () {\n page[0].style.display = \"none\";\n }, 1000);\n }\n else {\n page[1].style.left = \"100%\";\n page[0].style.display = \"block\";\n setTimeout(function () {\n page[0].style.left = \"0\";\n }, 300);\n setTimeout(function () {\n page[1].style.display = \"none\";\n }, 1000);\n }\n $(page[index]).scrollTop(0);\n}", "function in_page_scroll(el) {\n\t\tif(el.hasClass('no-scroll'))\n\t\t\treturn;\n\t\tvar scroll_anchor = el.attr('href');\n\t\tif(!scroll_anchor || scroll_anchor === \"#\")\n\t\t\tscroll_anchor = 0;\n\t\tel.on('click', function(e) {\n\t\t\t$.scrollTo(scroll_anchor, 800, { axis:'y', offset: scroll_top_offset });\n\t\t});\n\t}", "function scrollToAnchor(){\n \t\t\t//getting the anchor link in the URL and deleting the `#`\n \t\t\tvar value = window.location.hash.replace('#', '').split('/');\n \t\t\tvar section = value[0];\n \t\t\tvar slide = value[1];\n\n \t\t\tif(section){ //if theres any #\n \t\t\t\tscrollPageAndSlide(section, slide);\n \t\t\t}\n \t\t}", "function dateEvent(obj, index) {\n var value = document.querySelector(\"#mathjax-container > div.article-wrapper.u-padding-s-top.grid.row > article > div.Copyright > span\");\n window.ScraperExt.push(value.innerHTML);\n nextSearchItem(obj, index + 1);\n}", "next () {\n\t\tconsole.log(this.currentItem)\n\t\tthis.gotoItem(this.currentItem + this.slidesToScroll) // Appel de la methode gotoItem et parametres : index de l'item + nombres de slide a defiler\n\t}", "function scrollToStory()\n {\n storyText.scrollIntoView();\n }", "function infinite_scroll_init() {\r\n\t//console.log($('#page-nav-index').html());\r\n //var displayed_div = '#offer_ajax, #food_ajax_list, #product_ajax, #srch_list, #travel_ajax';\r\n\tvar displayed_div = '#product_ajax';\r\n\tvar nav_selector = 'div#page-nav-index';\r\n //var nav_row_selector = 'div.product_box:last';\r\n\tvar nav_row_selector = 'div.product_box:last';\r\n\t\r\n\t\r\n\t//// setting up the infinite-scroll part...\r\n\t$(displayed_div).infinitescroll({\r\n\t\t\r\n\t\tnavRowSelector : nav_row_selector,\r\n\t\tnavSelector : nav_selector, \r\n\t\t\t\t\t // selector for the paged navigation (it will be hidden)\r\n\t\tnextSelector : nav_selector +\" a:first\", \r\n\t\t\t\t\t // selector for the NEXT link (to page 2)\r\n //itemSelector : \"div.product_box\",\r\n\t\titemSelector : \"div.product_box\",\r\n\t\t\t\t\t // selector for all items you'll retrieve\r\n\t\tloading : {\r\n\t\t\t\t\t\t\tfinishedMsg: \"End\",\r\n\t\t\t\t\t\t\timg: base_url +'images/scrolling_content_loader.gif',\r\n\t\t\t\t\t\t\tmsgText: \"Loading\"\r\n\t\t\t\t\t }\r\n\t\t},function(arrayOfNewElems) {\r\n\t\t\t\r\n\t\t\t//// For HOVER [BEGIN]\r\n\t\t\t\t_call_hover_Product();\r\n\t\t\t//// For HOVER [END]\r\n\t\t\t//// scroll-to-top...\r\n\t\t\t//$().UItoTop({ easingType: 'easeOutQuart' });\r\n\t\t\t\r\n\t});\r\n}", "function enablePageScroll() {\n var scrollTop = parseInt(jQuery('html').css('top'));\n jQuery('html').removeClass('noscroll');\n jQuery('html,body').scrollTop(-scrollTop);\n }", "function monitorScroll() {\n SidebarActions.monitorScroll()\n}" ]
[ "0.6580148", "0.63732487", "0.6282553", "0.6266647", "0.6240119", "0.6212699", "0.6212699", "0.6198874", "0.6145166", "0.61352193", "0.6129691", "0.60798967", "0.6063895", "0.6057074", "0.6051181", "0.6038307", "0.6038307", "0.6038307", "0.6038307", "0.6036092", "0.60206586", "0.59998703", "0.5995227", "0.5990703", "0.5981041", "0.5975189", "0.59678906", "0.5953057", "0.5929498", "0.59206384", "0.5905004", "0.5901881", "0.5892334", "0.58915794", "0.58850276", "0.586585", "0.58381057", "0.5826428", "0.582449", "0.5819887", "0.58172816", "0.5805407", "0.57944274", "0.5790917", "0.5785847", "0.5781735", "0.5781466", "0.5780242", "0.5773168", "0.576489", "0.5759508", "0.5748553", "0.57356876", "0.5731423", "0.57272255", "0.5715508", "0.5697393", "0.56971854", "0.56895846", "0.5687897", "0.5687356", "0.5685134", "0.56664145", "0.56621957", "0.5657895", "0.5656512", "0.5656402", "0.56549424", "0.5651758", "0.56505674", "0.5647315", "0.5646449", "0.56451267", "0.5641232", "0.5635382", "0.56335115", "0.563251", "0.5624349", "0.56218624", "0.5616468", "0.5613084", "0.56107503", "0.56090295", "0.56032956", "0.56032956", "0.56032956", "0.56032956", "0.559939", "0.55967396", "0.55967396", "0.5588186", "0.5585183", "0.5583627", "0.5582809", "0.5580301", "0.55802834", "0.557576", "0.55756754", "0.5573667", "0.55712974" ]
0.62903506
2
check (is visible in window ? )
function judgeScroll(){ for(var j= 1 ; j < num.length ; j++ ){ if ( num[j] < (wScrollTop + wH) ) { for ( var k = 0 ; k <= j ; k++){ obj.eq(k).addClass('scrollIn'); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function checkWindowActive() {\n if (\"hidden\" in document) {\n return !document.hidden;\n } else if (\"webkitHidden\" in document) {\n return !document.webkitHidden;\n } else if (\"mozHidden\" in document) {\n return !document.mozHidden;\n }\n return true;\n}", "function isVisibleOnScreen()/*:Boolean*/ {\n var result/*:Boolean*/ = true;\n var current/*:Component*/ = this;\n while (current) {\n com.coremedia.ui.data.dependencies.DependencyTracker.dependOnObservable(current, \"hide\");\n com.coremedia.ui.data.dependencies.DependencyTracker.dependOnObservable(current, \"show\");\n com.coremedia.ui.data.dependencies.DependencyTracker.dependOnObservable(current, \"render\");\n com.coremedia.ui.data.dependencies.DependencyTracker.dependOnObservable(current, \"layout\");\n com.coremedia.ui.data.dependencies.DependencyTracker.dependOnObservable(current, \"resize\");\n if (AS3.is(current, Ext.tab.Panel)) {\n com.coremedia.ui.data.dependencies.DependencyTracker.dependOnObservable(current, \"tabchange\");\n }\n if (!current.isVisible(true)) {\n result = false;\n }\n if (!current.getEl() || current.getEl().getWidth() <= 0) {\n result = false;\n }\n current =AS3.as( current.up(), Ext.Component);\n }\n\n return result;\n }", "function checkVisible(elm) {\n var rect = elm.getBoundingClientRect();\n var viewHeight = Math.max(document.documentElement.clientHeight, window.innerHeight);\n return !(rect.bottom < 0 || rect.top + 20 - viewHeight >= 0);\n}", "function wpsc_element_is_visible( el ) {\n\tvar top = jQuery( window ).scrollTop(),\n\tbottom = top + jQuery( window ).height(),\n\telTop = el.offset().top;\n\n\treturn ( (elTop >= top ) && ( elTop <= bottom ) && ( elTop <= bottom ) && ( elTop >= top ) ) && el.is( ':visible' );\n}", "function isVisible(elt) {\n const pos = elt.getBoundingClientRect();\n if (pos.bottom < 0) {\n return false\n }\n let windowH = getViewportHeight()\n if (!windowH || windowH <= 0) {\n return false\n }\n if (pos.top >= windowH) {\n return false\n }\n return true\n}", "isVisible(robot) {\n return ('x' in robot);\n }", "function elemIsVisible(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document. documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document. documentElement.clientWidth)\n );\n}", "function isVisible(elem){var coords=elem.getBoundingClientRect();var windowHeight=document.documentElement.clientHeight;var extendedTop=-windowHeight;var extendedBottom=2*windowHeight;// верхняя граница elem в пределах видимости ИЛИ нижняя граница видима\nvar topVisible=coords.top>extendedTop&&coords.top<extendedBottom;var bottomVisible=coords.bottom<extendedBottom&&coords.bottom>extendedTop;return topVisible||bottomVisible;}", "isVisible(robot) {\n return ('unit' in robot);\n }", "get _visible() {\n\n try {\n return (\n _WinRT.Windows.UI.ViewManagement.InputPane &&\n _WinRT.Windows.UI.ViewManagement.InputPane.getForCurrentView().occludedRect.height > 0\n );\n } catch (e) {\n return false;\n }\n\n }", "isVisible() {\n return UIUtil.isVisible(\n document.getElementById(CHAT_CONTAINER_ID));\n }", "isVisible(element) {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }", "isVisible(element) {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }", "isVisible(element) {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }", "isVisible(element) {\n return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';\n }", "function checkVisible()\n{\n\tcheckElementRunThough(\"slide-card\");\n\tcheckElementRunThough(\"cardSec\");\n}", "isPanelVisible()\n\t{\n\t\treturn this.modalPanel.isVisible();\n\t}", "function check_if_in_view() {\n //get current window information\n var window_height = web_window.height();\n var window_top_position = web_window.scrollTop();\n var window_bottom_position = (window_top_position + window_height);\n\n //iterate through elements to see if its in view\n $.each(animation_elements, function() {\n\n //get the elements information\n var element = $(this);\n var element_height = $(element).outerHeight();\n var element_top_position = $(element).offset().top;\n var element_bottom_position = (element_top_position + element_height);\n\n //check to see if this current container is visible (its viewable if it exists between the viewable space of the viewport)\n if ((element_bottom_position >= window_top_position) && (element_top_position <= window_bottom_position)) {\n element.addClass('in-view');\n } else {\n element.removeClass('in-view');\n }\n });\n }", "function scrolledVisibleView(elem) {\n var docViewTop = $(window).scrollTop(); //top of browser window\n var docViewBottom = docViewTop + $(window).height(); //bottom of browser window\n var elemTop = $(elem).offset().top; //top of element\n var elemBottom = elemTop + $(elem).height(); //bottom of element\n return ((elemBottom <= docViewBottom) || (elemTop >= docViewTop)); //return the value when element is outside browser window\n }", "function scrolledVisibleView(elem) {\n var docViewTop = $(window).scrollTop(); //top of browser window\n var docViewBottom = docViewTop + $(window).height(); //bottom of browser window\n var elemTop = $(elem).offset().top; //top of element\n var elemBottom = elemTop + $(elem).height(); //bottom of element\n return ((elemBottom <= docViewBottom) || (elemTop >= docViewTop)); //return the value when element is outside browser window\n }", "function isVisibleOnPage(elem) {\n var docViewTop = $(window).scrollTop();\n var elemTop = $(elem).offset().top;\n var windowHeight = $(window).height();\n return (elemTop <= docViewTop + 100);\n}", "function isVisible() {\n return visible;\n }", "function isVisible() {\n return visible;\n }", "function check_if_in_view() {\n //get current window information\n var window_height = web_window.height();\n var window_top_position = web_window.scrollTop();\n var window_bottom_position = (window_top_position + window_height);\n \n //iterate through elements to see if its in view\n $.each(animation_elements, function() {\n //get the element sinformation\n var element = $(this);\n var element_height = $(element).outerHeight();\n var element_top_position = $(element).offset().top;\n var element_bottom_position = (element_top_position + element_height);\n \n //check to see if this current container is visible (its viewable if it exists between the viewable space of the viewport)\n if ((element_bottom_position >= (window_top_position + 50)) && (element_top_position <= (window_bottom_position - 50))) {\n element.addClass('in-view');\n } else {\n // element.removeClass('in-view');\n }\n });\n }", "function isVisible(element) {\n const elementDiv = element.getBoundingClientRect();\n let distanceFromTop = -300;\n return elementDiv.top - window.innerHeight < distanceFromTop ? true : false;\n}", "function check_if_in_view() {\n //get current window information\n var window_height = web_window.height();\n var window_top_position = web_window.scrollTop();\n var window_bottom_position = (window_top_position + window_height);\n\n //iterate through elements to see if its in view\n $.each(animation_elements, function() {\n\n //get the element sinformation\n var element = $(this);\n var element_height = $(element).outerHeight();\n var element_top_position = $(element).offset().top;\n var element_bottom_position = (element_top_position + element_height);\n\n //check to see if this current container is visible (its viewable if it exists between the viewable space of the viewport)\n if ((element_bottom_position >= window_top_position) && (element_top_position <= window_bottom_position)) {\n element.addClass('in-view');\n } else {\n element.removeClass('in-view');\n }\n });\n\n }", "_isVisible() {\n const that = this;\n\n return !!(that.offsetWidth || that.offsetHeight || that.getClientRects().length);\n }", "_isVisible() {\n const that = this;\n\n return !!(that.offsetWidth || that.offsetHeight || that.getClientRects().length);\n }", "function trk_get_visible() {\n var hidden = false;\n if (typeof document.hidden !== \"undefined\") {\n\thidden = document.hidden;\n } else if (typeof document.msHidden !== \"undefined\") {\n\thidden = document.msHidden;\n } else if (typeof document.webkitHidden !== \"undefined\") {\n\thidden = document.webkitHidden;\n }\n return hidden ? 0 : 1;\n}", "static isOnTopScreen() {\n const eicas = document.getElementsByTagName(\"a320-neo-eicas-element\");\n if (!eicas.length) {\n return false;\n }\n return eicas[0].isTopScreen;\n }", "function isVisible(elem) {\n return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\n}", "function onScreen (el) {\n var rect = el.getBoundingClientRect()\n //off the top of the screen\n if(rect.bottom <= 0) return false\n if(rect.top > window.innerHeight) return false\n return true\n}", "function isVisible(element) {\n // Get the size of the element and position in the viewport\n const size = element.getBoundingClientRect();\n\n return size.top >= 0 && size.left >= 0 &&\n size.right <= (window.innerWidth || document.documentElement.clientWidth) &&\n size.bottom <= (window.innerHeight || document.documentElement.clientHeight);\n}", "isVisible() {\n return this.element.isVisible();\n }", "function visible(element) {\r\n if(getComputedStyle(element).getPropertyValue(\"visibility\") == \"hidden\") {\r\n return false;\r\n } else {\r\n if(element.parentNode != document) {\r\n return visible(element.parentNode);\r\n } else {\r\n return true;\r\n }\r\n }\r\n}", "function isVisible(element){\n\treturn ((element.offsetWidth > 0) && (element.offsetHeight > 0));\n}", "function checkVisible() {\r\n var $items = ['registration', 'messages', 'sponsors'];\r\n $('.ipWidget').find('.myl-module-game').each(function(){\r\n var $name = $(this).attr('data-module-name');\r\n var $active = $(this).children('div').data('module-visible');\r\n\r\n if(($.inArray($name, $items) !== -1) && $active == 'no') {\r\n $(this).parent().css('display', 'none');\r\n }\r\n });\r\n }", "function onScreen(elem){\n\t\tvar docViewTop = $(window).scrollTop();\n\t var docViewBottom = docViewTop + $(window).height();\n\n\t var elemTop = $(elem).offset().top;\n\t var elemBottom = elemTop + $(elem).height();\n\n\t return ((elemBottom <= docViewBottom + 200) && (elemTop >= docViewTop - 200));\n\t}", "function visible(element) {\n return _jquery2.default.css(element, 'visibility') === 'visible';\n }", "function inDisplay(elem) {\n var coords = elem.getBoundingClientRect();\n var topArea = elem.offsetHeight/5,\n bottomArea = (document.documentElement.clientHeight - elem.offsetHeight/5),\n height = document.documentElement.clientHeight;\n\n if (document.documentElement.clientWidth < 992) {\n return coords.top >= 0 && coords.bottom <= height;\n } else if ((coords.top > topArea || coords.bottom > topArea) && (coords.top < bottomArea )) {\n return true;\n } else if (height < elem.offsetHeight && coords.top < 0 && coords.bottom > height) {\n return true;\n } else {\n return false;\n }\n }", "function isElementOnScreen(id) {\r\n var element = document.getElementById(id); \r\n var bounds = element.getBoundingClientRect(); \r\n return bounds.top < window.innerHeight && bounds.bottom > 0;\r\n }", "function isElementVisible(elementToBeChecked)\n{\n var TopView = $(window).scrollTop();\n var BotView = TopView + $(window).height();\n var TopElement = $(elementToBeChecked).offset().top;\n var BotElement = TopElement + $(elementToBeChecked).height()-150;\n return ((BotElement <= BotView) && (TopElement >= TopView));\n}", "checkForWin() {\n let condition = false;\n let letterElements = document.getElementsByClassName('hide');\n if (letterElements.length == 0) {\n condition = true;\n }\n return condition;\n }", "function checkTopMostWindow(){\n\tif(window.top != window.self){\n\t\treturn false;\n\t}else{\n\t\treturn true;\n\t}\n}", "function checkMostlyVisible(elm) {\n var rect = elm.getBoundingClientRect();\n var viewHeight = Math.max(document.documentElement.clientHeight, window.innerHeight);\n return !(rect.bottom < viewHeight/2 || rect.top - viewHeight/2 >= 0);\n}", "function isVisible() {\n\t\t\treturn visible;\n\t\t}", "inView() {\n let page = $(\"#NutritionPage\")[0];\n let offset = $(\"#LandingPage\")[0].getBoundingClientRect().height;\n const top = page.getBoundingClientRect().top;\n return (top + offset) >= 0 && (top - offset) <= window.innerHeight;\n }", "function visible(element){var visibility=element.css(\"visibility\");while(visibility === \"inherit\") {element = element.parent();visibility = element.css(\"visibility\");}return visibility !== \"hidden\";}", "safeIsVisible(locator,friendlyName){\n try{\n this.domStatus();\n const ele = $(locator);\n const isDisplayed = ele.isDisplayed();\n if(isDisplayed)\n logger.info(friendlyName+\" is visible\");\n else\n logger.info(friendlyName+\" is not visible\");\n return isDisplayed\n }\n catch (e){\n logger.error(friendlyName+\" was not visible in DOM \"+e);\n assert.fail(friendlyName + \"' was not found in DOM \" + e);\n }\n }", "isVisible() {\n return this._visibility === 'visible';\n }", "checkForWin() {\n return !document.querySelectorAll(\".hide\").length;\n }", "function isOnScreen(element) {\r\n\tlet rect = element.getBoundingClientRect();\r\n\treturn (rect.top < window.innerHeight &&\r\n\t\t\trect.bottom > 0 &&\r\n\t\t\trect.left < window.innerWidth &&\r\n\t\t\trect.right > 0);\r\n}", "function visible(dimension) {return !('visible' in dimension) || dimension.visible;}", "function visible(dimension) {return !('visible' in dimension) || dimension.visible;}", "function check_win(type=false, size=1000){\n\tvar curent_size=(type)?window.innerHeight:window.innerWidth;\n\treturn (curent_size <= size)?true:false\n}", "function insideDesktop() {\n return document.body.contains(getDesktop());\n }", "function check() {\n if (inViewport()) {\n unbind();\n $elem.addClass('fadeVisible-visible');\n if (typeof opt.callback === 'function') {\n opt.callback.call($elem);\n }\n }\n }", "function hasVisibleBoundingBox() { const rect = element.getBoundingClientRect(); return !!(rect.top || rect.bottom || rect.width || rect.height); }", "function hasVisibleBoundingBox() { const rect = element.getBoundingClientRect(); return !!(rect.top || rect.bottom || rect.width || rect.height); }", "function inView() {\n $.fn.visible = function (partial) {\n \n var $t = $(this),\n $w = $(window),\n viewTop = $w.scrollTop(),\n viewBottom = viewTop + $w.height(),\n _top = $t.offset().top,\n _bottom = _top + $t.height(),\n compareTop = partial === true ? _bottom : _top,\n compareBottom = partial === true ? _top : _bottom;\n \n return ((compareBottom <= viewBottom) && (compareTop >= viewTop));\n \n };\n \n var win = $(window);\n \n var $animated = $(\".animated\");\n \n $animated.each(function (i, el) {\n var el = $(el);\n if (el.visible(true)) {\n el.addClass(\"already-visible\");\n }\n });\n \n win.scroll(function (event) {\n $animated.each(function (i, el) {\n var el = $(el);\n if (el.visible(true)) {\n el.addClass(\"come-in\");\n }\n });\n });\n }", "function _visible(name, c) {\n\t\treturn c.isWatchable_ && c.isWatchable_(name); //in future, c might not be a widget\n\t}", "function checkVisible(){\n\t\tif (firedAnimation){\n\t\t\t// animation has already fired, detach the event listeners\n\t\t\tdocument.removeEventListener(\"scroll\", checkVisible, false);\n\t\t\twindow.removeEventListener(\"resize\", checkVisible, false);\n\t\t\treturn;\n\t\t}\n\t\tvar rect = chart.getBoundingClientRect();\n\t\tvar top = window.pageYOffset || document.documentElement.scrollTop;\n\t\tvar left = window.pageXOffset || document.documentElement.scrollLeft;\n\n\t\tif ((rect.top>=0)&&(rect.top <window.innerHeight) && \n\t\t\t(rect.left>=0)&&(rect.left <window.innerWidth)){\n\t\t\t// this means that we partly see the chart\n\t\t\t// fire the animation (only once)\n\t\t\tfiredAnimation = true;\n\t\t\tsetAnimate(startValue, endValue, (500/animationSpeed));\t\t\t\t\t\n\t\t}\n\t}", "function checkIfVisible(elem, offset) {\n var docViewBottom = $(window).scrollTop() + $(window).height();\n var elemTop = $(elem).offset().top;\n var offset = offset | 0;\n return( (elemTop + offset) <= docViewBottom );\n}", "checkForWin(){\n \t\tconst remainingHiddenLetters = document.querySelectorAll(\".hide\").length\n \t\tif (remainingHiddenLetters === 0){\n \t\t\treturn true;\n \t\t} else {\n \t\t\treturn false; \n \t\t}\n \t}", "isOpen() { return this._windowRef != null; }", "isOpen() { return this._windowRef != null; }", "function isPopupWindow(aWindow) {\r\n return !(aWindow.menubar && aWindow.menubar.visible);\r\n}", "function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}return visibility!==\"hidden\";}", "function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}return visibility!==\"hidden\";}", "function visible(element){var visibility=element.css(\"visibility\");while(visibility===\"inherit\"){element=element.parent();visibility=element.css(\"visibility\");}return visibility!==\"hidden\";}", "function isVisible(e) {\n\tif (e == null) return false;\n\treturn !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length);\n}", "visible() {\n let numberOfPoints = this.props.kernelElement.requiredPointCount()\n return this.points().filter((p) => p.initialized).length == numberOfPoints\n }", "function IsElementVisible(element)\n{\n var isVisible = true;\n \n if (element)\n {\n while(element.parentNode)\n {\n if (element.style && element.style.display && element.style.display == 'none')\n {\n isVisible = false;\n break;\n } \n\t element = element.parentNode;\t \n\t }\n } \n\treturn isVisible;\n}", "function ifVisible(pos) {\n var bottomLine = html.clientHeight + html.scrollTop;\n\n if (pos < bottomLine) {\n return true;\n }\n }", "isShown() { return (Handler.activeInstances[this.handler.label]) ? true : false; }", "function inViewport() {\n return $elem.offset().top + $elem.outerHeight() >= $window.scrollTop() && $elem.offset().top <= $window.scrollTop() + $window.height();\n }", "function isVisible( $el ) {\n\t\t\t\t// If has visibility : hidden or display : none, or opacity : 0 -> return false ( not visible )\n\t\t\t\tif( $el.css( 'visibility') === 'hidden' || $el.css( 'display' ) === 'none' || $el.css( 'opacity' ) === '0' ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}", "function is_shown(element){\n\tif (element.css('display')!='none'){\n\t\treturn true;\n\t};\n}", "function CheckWinFocus() {\n if (document.hasFocus()) return true;\n else return false;\n\n}", "get _isVisible() {\n return Boolean(this.offsetWidth || this.offsetHeight);\n }", "isVisible() {\n return this.editorNode.style.visibility == \"visible\";\n }", "isVisible() {\n\t\tlet y = this.getY();\n\t\treturn y >= -100 && y <= dh + 100;\n\t}", "function isVisible(elem) {\n if (!(elem instanceof Element)) throw Error('DomUtil: elem is not an element.');\n var style = getComputedStyle(elem);\n var rect = elem.getBoundingClientRect();\n if (style.display === 'none') return false;\n if (style.visibility !== 'visible') return false;\n if (parseFloat(style.opacity) < 0.1) return false;\n if (elem.offsetWidth + elem.offsetHeight + rect.height + rect.width === 0) {\n return false;\n }\n return true;\n }", "function isVisible(el) {\n if (el == document) {\n return true;\n }\n if (!el) {\n return false;\n }\n if (!el.parentNode) {\n return false;\n }\n if (el.style) {\n if (el.style.display == 'none') {\n return false;\n }\n if (el.style.visibility == 'hidden') {\n return false;\n }\n }\n return isVisible(el.parentNode);\n}", "checkForWin() {\n //Returns false if there are any hidden letter, returns true if there are none\n return ($('#phrase ul .hide').length === 0);\n }", "static isHidden()\n {\n return document.visibilityState === \"hidden\";\n }", "function desktopSite() {\n // Uses an element only visable on desktop site\n return $(\"#aboutBack\").is(\":visible\");\n}", "function visibility(){\n\t\tvar window_top = $(window).scrollTop();\n\t\tvar window_height = $(window).height();\n\t\tvar start_visibility = window_top + window_height;\n\t\t\n\t\t$(\".visibility\").each(function(){\n\t\t\t\n\t\t\tvar block_position = $(this).offset().top;\n\t\t\t\n\t\t\tif(start_visibility >= block_position){\n\t\t\t\t$(this).addClass('is-visible');\n\t\t\t}\n\t\t});\n\t}", "static waitForIsShown(isShown = true) {\n const selector = browser.isAndroid ? SELECTORS.ANDROID.ALERT_TITLE : SELECTORS.IOS.ALERT;\n $(selector).waitForExist(11000, !isShown);\n }", "function visible(element) {\n var visibility = element.css('visibility');\n while (visibility === 'inherit') {\n element = element.parent();\n visibility = element.css('visibility');\n }\n return visibility !== 'hidden';\n }", "isPartiallyVisible() {\n\t\treturn !this.isVisible() && !this.isHidden();\n\t}", "function isVisibleIndicator() {\n // visibleIndicator\n // if() return false\n // return true;\n }", "function isIpodShown(){\n\treturn $('#fond_splayer').css('display') == 'block';\n}", "function visible( element ) {\n\t\t// check if one of the parents (until it's position parent) is invisible\n\t\t// prevent that elements in static area are always checked as invisible\n\t\t\n\t\t// list all items until the offsetParent item (with jQuery >1.6 you can use parentsUntil)\n\t\tvar oOffsetParent = jQuery(element).offsetParent();\n\t\tvar bOffsetParentFound = false;\n\t\tvar $refs = jQuery(element).parents().filter(function() {\n\t\t\tif (this === oOffsetParent) {\n\t\t\t\tbOffsetParentFound = true;\n\t\t\t}\n\t\t\treturn bOffsetParentFound;\n\t\t});\n\t\t\n\t\t// check for at least one item to be visible\n\t\treturn !jQuery(element).add($refs).filter(function() {\n\t\t\treturn jQuery.css( this, \"visibility\" ) === \"hidden\" || jQuery.expr.filters.hidden( this );\n\t\t}).length;\n\t}", "function inView() {\n // get window height\n var windowHeight = window.innerHeight;\n // get number of pixels that the document is scrolled\n var scrollY = window.scrollY || window.pageYOffset;\n\n // get current scroll position (distance from the top of the page to the bottom of the current viewport)\n var scrollPosition = scrollY + windowHeight;\n // get element position (distance from the top of the page to the bottom of the element)\n var elementPosition =\n element.getBoundingClientRect().top + scrollY + elementHeight;\n\n // is scroll position greater than element position? (is element in view?)\n if (scrollPosition > elementPosition) {\n return true;\n }\n\n return false;\n}", "function checkDesktop() {\n if ($('#page0').css('display') != 'none') {\n console.log('true');\n return true;\n }\n console.log('false');\n return false;\n}", "get isShown() { return hasClass(this.element, showClass); }", "function isVisible(element, clientRect) {\r\n // Exclude links which have just a few pixels on screen, because the link hints won't show for them anyway.\r\n var zoomFactor = currentZoomLevel / 100.0;\r\n if (!clientRect || clientRect.top < 0 || clientRect.top * zoomFactor >= window.innerHeight - 4 ||\r\n clientRect.left < 0 || clientRect.left * zoomFactor >= window.innerWidth - 4)\r\n return false;\r\n \r\n if (clientRect.width < 3 || clientRect.height < 3)\r\n return false;\r\n \r\n // eliminate invisible elements (see test_harnesses/visibility_test.html)\r\n var computedStyle = window.getComputedStyle(element, null);\r\n if (computedStyle.getPropertyValue('visibility') != 'visible' ||\r\n computedStyle.getPropertyValue('display') == 'none')\r\n return false;\r\n \r\n return true;\r\n }", "function isVisible(elem) {\n let element = elem;\n let visibility = element.css('visibility');\n while (visibility === 'inherit') {\n element = element.parent();\n visibility = element.css('visibility');\n }\n return visibility !== 'hidden';\n }", "get _isVisible() {\n return !this.panelElem.hasClass(\"hidden\");\n }", "checkIfVisibleFallback_() {\n const elTop = this.element_./*OK*/ getBoundingClientRect().top;\n const winInnerHeight = this.win_./*OK*/ innerHeight;\n\n if (winInnerHeight > elTop) {\n this.cb_();\n this.win_.removeEventListener('scroll', this.scrollHandler_);\n }\n }" ]
[ "0.7707192", "0.7617363", "0.746016", "0.74079585", "0.7309219", "0.72982377", "0.7254965", "0.72014606", "0.7101818", "0.7091399", "0.70676905", "0.7013765", "0.6951067", "0.6951067", "0.6951067", "0.69314635", "0.6921177", "0.6910527", "0.68992394", "0.68992394", "0.68979466", "0.68743604", "0.68743604", "0.68663675", "0.68614274", "0.6851038", "0.6845082", "0.6845082", "0.68434256", "0.6823834", "0.68193126", "0.68175334", "0.6795089", "0.67908216", "0.6784341", "0.67748433", "0.6756562", "0.67561966", "0.67332554", "0.672854", "0.6722186", "0.67164165", "0.67123854", "0.6711378", "0.67043066", "0.670129", "0.6699811", "0.66853863", "0.6669319", "0.66550004", "0.66502106", "0.6637107", "0.6626049", "0.6626049", "0.66229534", "0.66228485", "0.6608562", "0.6607322", "0.6607322", "0.66065705", "0.6600074", "0.65984446", "0.6590148", "0.6584829", "0.6582936", "0.6582936", "0.6577249", "0.6575518", "0.6575518", "0.6575518", "0.6566855", "0.656496", "0.6523322", "0.6520965", "0.6519079", "0.65040725", "0.64998734", "0.64997333", "0.64976454", "0.64866585", "0.6486465", "0.6480563", "0.6477276", "0.64735305", "0.64630675", "0.6462395", "0.64593834", "0.6443181", "0.64417654", "0.6440011", "0.6439349", "0.643858", "0.6433546", "0.6429944", "0.64284337", "0.6419923", "0.641504", "0.6413417", "0.6413353", "0.6406636", "0.6401437" ]
0.0
-1
INITIALIZE Tests if smooth scrolling is allowed. Shuts down everything if not.
function initTest() { var disableKeyboard = false; // disable keyboard support if anything above requested it if (disableKeyboard) { removeEvent("keydown", keydown); } if (options.keyboardSupport && !disableKeyboard) { addEvent("keydown", keydown); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init(){\n\tnew SmoothScroll(document,200,2)\n}", "function smoothScrollInit() {\r\n\r\n\t \t\t\t\t// Smooth scroll\r\n\t\t $('a[href^=\"#\"]').bind('click.smoothscroll',function (e) {\r\n\t\t e.preventDefault();\r\n\r\n\t\t var target = this.hash,\r\n\t\t $target = $(target);\r\n\r\n\t\t if($target.offset() == undefined) return;\r\n\r\n\t\t $('html, body').stop().animate({\r\n\t\t 'scrollTop': $target.offset().top-110\r\n\t\t }, 900, 'swing', function () {\r\n\t\t if($('body').hasClass('auto-close-menu') && $('.menu-open').length > 0){\r\n\t\t $('#menuToggle, #menuToggleLeft').click();\r\n\t\t }\r\n\t\t \r\n\t\t });\r\n\t\t });\r\n}", "_initScrollTracking() {\n let timeoutHandle = null;\n let lastActiveSection = null;\n window.addEventListener('scroll', (ev) => {\n clearTimeout(timeoutHandle);\n\n timeoutHandle = setTimeout(() => {\n const sections = document.getElementsByTagName('section');\n for (const section of sections) {\n // Finds the first section within the viewport, then breaks\n if (this._isInViewPort(section)) {\n if (section != lastActiveSection) {\n this._clearNavbarSelectedItems(this._navbar);\n\n const sectionName = section.getAttribute('data-name');\n\n this._selectItemForSection(navbar, sectionName);\n }\n \n lastActiveSection = section;\n break;\n }\n }\n }, 300);\n })\n }", "function initialize() {\n\t\tscanAnimates();\n\t\t$(window).on('scroll', checkScroll);\n\t}", "function initializeScrollspy() {\n console.log('initializeScrollspy')\n document.scrollspy = {\n disabled: false\n }\n /* cache all headline elements */\n document.headingsSelector = ['div#content h4', 'div#content h5', 'div#content h6']\n document.headingsElementsArray = [];\n document.querySelectorAll(document.headingsSelector.join(', ')).forEach(element => {\n document.headingsElementsArray.push(element);\n });\n\n /* remove existing eventlistener (for pageswitch) before adding it again */\n window.removeEventListener('scroll', handleScrollEvent, { scrollspy: true });\n window.addEventListener('scroll', handleScrollEvent, { scrollspy: true });\n}", "function smoothScrollInit(){\n $(function() {\n $('a[href*=\"#\"]:not([href=\"#\"])').click(function() {\n if (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\n var target = $(this.hash);\n target = target.length ? target : $('[name=' + this.hash.slice(1) +']');\n if (target.length) {\n $('html, body').animate({\n scrollTop: target.offset().top\n }, 1000);\n return false;\n }\n }\n });\n });\n }", "function initAnchors() {\r\n\tnew SmoothScroll({\r\n\t\tanchorLinks: 'a.anchor-link',\r\n\t\textraOffset: 0,\r\n\t\twheelBehavior: 'none'\r\n\t});\r\n}", "function initAnchors() {\n\tnew SmoothScroll({\n\t\tanchorLinks: 'a[href^=\"#\"]:not([href=\"#\"])',\n\t\textraOffset: 0,\n\t\twheelBehavior: 'none'\n\t});\n}", "function enableScrolling(){\n window.onscroll=function(){};\n}", "function initialise(){\n\t\t\t$('html,body').animate({ scrollTop: 0 }, 'slow');\n\t\t}", "_init() {\n const id = this.$element[0].id || GetYoDigits(6, 'smooth-scroll-with-links');\n this.$element.attr({ id });\n\n this._events();\n }", "_preventUserScrollForDefaultBehavior() {\n return;\n }", "function init() {\n tooltips();\n onePageScroll();\n scrollAnchor();\n}", "function initAnchors() {\n\tnew SmoothScroll({\n\t\tanchorLinks: 'a.smooth[href^=\"#\"]:not([href=\"#\"])',\n\t\textraOffset: 68,\n\t\tactiveClasses: 'parent'\n\t});\n}", "initScrollSmooth() {\n const internalLinks = document.querySelectorAll('.menu a[href^=\"#\"]')\n\n function scrollToSection(e) {\n e.preventDefault()\n const href = this.getAttribute('href')\n const section = document.querySelector(href)\n const sectionTop = section.offsetTop\n\n window.scrollTo({\n top: sectionTop,\n behavior: 'smooth'\n })\n }\n\n internalLinks.forEach(link => {\n link.addEventListener('click', scrollToSection)\n })\n }", "function smoothScroll()\n{\n $(document).ready(function(){\n $('a[href^=\"#\"]').on('click',function (e)\n {\n /* Surpresses usual behaviour */\n e.preventDefault();\n\n var target = this.hash;\n\n if(target == \"#prevent\")\n return;\n \n console.log(target);\n smoothScrolls( target );\n });\n });\n}", "function initScroll() {\n this.leftButton.onmousedown = handleScrollClick;\n this.leftButton.onmouseup = handleScrollStop;\n\n this.rightButton.onmousedown = handleScrollClick;\n this.rightButton.onmouseup = handleScrollStop;\n disableNavigation(0,0);\n disableNavigation(0,1);\n var isIEMac = (navigator.appName.indexOf(\"Explorer\") != -1 && navigator.userAgent.indexOf(\"Mac\") != -1);\n if (!isIEMac) {\n document.getElementById(\"theInnerContainer\").style.overflow = \"hidden\";\n }\n}", "function initialize() {\n\t // prevent scrolling via browser\n\t window.addEventListener('touchmove', function(event) {\n\t event.preventDefault();\n\t }, true);\n\n\t addRootClasses();\n\t }", "checkScrollPos() {\n let fromTop = window.scrollY;\n this.links.forEach(link => {\n let section = document.querySelector(`#${link.el.dataset.section}`);\n if (section.offsetTop <= fromTop && section.offsetTop + section.offsetHeight > fromTop) {\n link.setCurrent();\n } else {\n link.setCurrent(false);\n }\n })\n }", "canScroll() {\n return typeof window !== 'undefined';\n }", "canScroll() {\n return typeof window !== 'undefined';\n }", "function scroll_init() {\n setupStickyfill();\n\n\t// call a resize on load to update width/height/position of elements\n\thandleResize();\n\n\t// setup the scrollama instance and bind scrollama event handlers\n\tscroller\n\t\t.setup({\n\t\t\tcontainer: document.querySelector('#scroll'), // our outermost scrollytelling element\n\t\t\tgraphic: '.scroll__graphic', // the graphic\n\t\t\ttext: '.scroll__text', // the step container\n\t\t\tstep: '.scroll__text .step', // the step elements\n\t\t\toffset: 0.5, // set the trigger to be 2/3 way down screen\n\t\t\tdebug: false, // display the trigger offset for testing\n\t\t})\n\t\t.onStepEnter(handleStepEnter);\n\n\t// setup resize event\n\twindow.addEventListener('resize', handleResize);\n}", "function handleScrollStop() {\n scrollEngaged = false;\n}", "function initAnchors() {\n\n\t\t\"use strict\"; \n\n\t\tnew SmoothScroll({\n\t\t\tanchorLinks: 'a.smooth[href^=\"#\"]:not([href=\"#\"])',\n\t\t\textraOffset: 0,\n\t\t\twheelBehavior: 'none'\n\t\t});\n\n\t\tnew SmoothScroll({\n\t\t\tanchorLinks: '.anchorNavigationList a[href^=\"#\"]:not([href=\"#\"])',\n\t\t\textraOffset: function() {\n\t\t\t\tvar totalHeight = 0;\n\t\t\t\tjQuery('.anchorNav').each(function() {\n\t\t\t\t\tvar $box = jQuery(this);\n\t\t\t\t\tvar stickyInstance = $box.data('StickyScrollBlock');\n\t\t\t\t\tif (stickyInstance) {\n\t\t\t\t\t\tstickyInstance.stickyFlag = false;\n\t\t\t\t\t\tstickyInstance.stickyOn();\n\t\t\t\t\t\ttotalHeight += $box.outerHeight();\n\t\t\t\t\t\tstickyInstance.onResize();\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttotalHeight += $box.css('position') === 'fixed' ? $box.outerHeight() : 0;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\treturn totalHeight += 25;\n\t\t\t},\n\t\t\tactiveClasses: 'parent',\n\t\t\tanchorActiveClass: 'active',\n\t\t\twheelBehavior: 'none'\n\t\t});\n\t}", "function topFunction() {\n // smoothscroll.polyfill();\n document.body.scroll({ top: 0, left: 0, behavior: 'smooth' });\n document.documentElement.scroll({ top: 0, left: 0, behavior: 'smooth' });\n}", "function updateScroll () {\n if (!elements.li[0]) return;\n if (mode === MODE_STANDARD) {\n updateStandardScroll();\n } else {\n updateVirtualScroll();\n }\n }", "function init(){\n height = $(window).height();\n frame.css({\"overflow\":\"hidden\", \"height\": height + \"px\"});\n sections.css({\"height\": height + \"px\"});\n didScroll = true;\n isFocused = true;\n end = - height * ( totalSections ); \n container.stop().animate({marginTop : 0}, 0, easing, function(){\n num = 0;\n didScroll = true;\n });\n }", "function init() {\n \n if (!document.body) return;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n initDone = true;\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n /* html.style.height = 'auto'; */\n\n // clearfix\n if (root.offsetHeight <= windowHeight) {\n var underlay = document.createElement(\"div\"); \t\n underlay.style.clear = \"both\";\n body.appendChild(underlay);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = \"scroll\";\n html.style.backgroundAttachment = \"scroll\";\n }\n}", "_checkScrollingControls() {\n if (this.disablePagination) {\n this._disableScrollAfter = this._disableScrollBefore = true;\n }\n else {\n // Check if the pagination arrows should be activated.\n this._disableScrollBefore = this.scrollDistance == 0;\n this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();\n this._changeDetectorRef.markForCheck();\n }\n }", "function initAnchors() {\n\tnew SmoothScroll({\n\t\tanchorLinks: 'a[href^=\"#\"]:not([href=\"#\"])'\n\t});\n\tnew SmoothScroll({\n\t\tanchorLinks: 'a[href^=\"#\"]:not([href=\"#\"])',\n\t\textraOffset: 30,\n\t\tactiveClasses: 'link'\n\t});\n\tnew SmoothScroll({\n\t\tanchorLinks: 'a[href^=\"#\"]:not([href=\"#\"])',\n\t\teasing: 'linear'\n\t});\n}", "function init() {\n \n if (!document.body) return;\n \n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n initDone = true;\n \n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n \n /**\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n \n html.style.height = 'auto';\n setTimeout(function(){}, 10);\n \n // clearfix\n if (root.offsetHeight <= windowHeight) {\n var underlay = document.createElement(\"div\"); \n underlay.style.clear = \"both\";\n body.appendChild(underlay);\n }\n }\n \n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = \"scroll\";\n html.style.backgroundAttachment = \"scroll\";\n }\n}", "function initTest() {\n var disableKeyboard = false;\n // disable keys for google reader (spacebar conflict)\n if (document.URL.indexOf(\"google.com/reader/view\") > -1) {\n disableKeyboard = true;\n }\n // disable everything if the page is blacklisted\n if (options.excluded) {\n var domains = options.excluded.split(/[,\\n] ?/);\n domains.push(\"mail.google.com\"); // exclude Gmail for now\n for (var i = domains.length; i--;) {\n if (document.URL.indexOf(domains[i]) > -1) {\n observer && observer.disconnect();\n removeEvent(\"mousewheel\", wheel);\n disableKeyboard = true;\n isExcluded = true;\n break;\n }\n }\n }\n // disable keyboard support if anything above requested it\n if (disableKeyboard) {\n removeEvent(\"keydown\", keydown);\n }\n if (options.keyboardSupport && !disableKeyboard) {\n addEvent(\"keydown\", keydown);\n }\n }", "function CameraCommand_Scroll_Initialise()\n{\n\t//remember camera state to restore it later\n\tthis.IsShowingCamera = this.Camera && this.Camera.CameraUI.IsShowing;\n\t//ensure that the target's form is active\n\tForm_SetFocusOnParentWindow(this.TargetHTML);\n\t//loop through all the parents of the html target\n\tfor (var current = Get_ParentForScrollCrop(this.TargetHTML); current; current = Get_ParentForScrollCrop(current))\n\t{\n\t\t//is this scrollable?\n\t\tif (this.IsScrollable(current))\n\t\t{\n\t\t\t//add this to our list of scrollables\n\t\t\tthis.Scrollables.push(current);\n\t\t}\n\t\t//found the display panel?\n\t\tif (current == __SIMULATOR.Interpreter.DisplayPanel)\n\t\t{\n\t\t\t//end loop;\n\t\t\tbreak;\n\t\t}\n\t}\n\t//advance to processing scrollables\n\tthis.State = __CAMERA_CMD_STATE_PROCESS_SCROLLABLES;\n}", "function initTest() {\r\n\r\n var disableKeyboard = false; \r\n\r\n // disable keys for google reader (spacebar conflict)\r\n if (document.URL.indexOf(\"google.com/reader/view\") > -1) {\r\n disableKeyboard = true;\r\n }\r\n\r\n // disable everything if the page is blacklisted\r\n if (options.excluded) {\r\n var domains = options.excluded.split(/[,\\n] ?/);\r\n domains.push(\"mail.google.com\"); // exclude Gmail for now\r\n for (var i = domains.length; i--;) {\r\n if (document.URL.indexOf(domains[i]) > -1) {\r\n observer && observer.disconnect();\r\n removeEvent(\"mousewheel\", wheel);\r\n disableKeyboard = true;\r\n isExcluded = true;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n // disable keyboard support if anything above requested it\r\n if (disableKeyboard) {\r\n removeEvent(\"keydown\", keydown);\r\n }\r\n\r\n if (options.keyboardSupport && !disableKeyboard) {\r\n addEvent(\"keydown\", keydown);\r\n }\r\n}", "function initAnchors() {\n // simple case:\n new SmoothScroll({\n anchorLinks: \"a.back-to-top\"\n });\n // custom case:\n new SmoothScroll({\n anchorLinks: \".inner-links a\",\n container: \".inner-container\",\n activeClasses: \"parent\"\n });\n // hash case:\n var hashOption = new SmoothScroll({\n anchorLinks: \".anchor-nav a\",\n // extraOffset: jQuery(\".anchor-nav\").outerHeight() || 0,\n activeClasses: \"link\"\n });\n \n var hash;\n \n //scrollto when click to link\n jQuery(hashOption.options.anchorLinks).on(\"click\", function() {\n var url = jQuery(this).attr(\"href\");\n hash = url.substring(url.indexOf(\"#\"));\n jQuery(\"body\").removeClass(\"nav-active\");\n });\n \n //scrollto when click to other link with hash\n hash = window.location.hash.replace(\"#\", \"\");\n \n if (hash != \"\") {\n hash = \"#\" + hash;\n // scrollToWithHash(hash);\n return scrollToWithHash(hash);\n }\n \n function scrollToWithHash(hash) {\n if (jQuery(hash).length) {\n jQuery(\"html, body\").animate(\n {\n scrollTop: jQuery(hash).offset().top - hashOption.options.extraOffset\n },\n 600\n );\n return false;\n }\n }\n }", "function initializeExample() {\n\tconst ss = new ScrollSwipe({\n\t\ttarget: document.body, // can be a div, or anything else you want to track scroll/touch events on\n\t\tscrollSensitivity: 0, // the lower the number, the more sensitive\n\t\ttouchSensitivity: 0, // the lower the number, the more senitive,\n\t\tscrollPreventDefault: true, // prevent default option for scroll events, manually handle scrolls with scrollCb\n\t\ttouchPreventDefault: true, // prevent default option for touch events, manually handle scrolls with touchCb\n\t\tscrollCb,\n\t\ttouchCb\n\t});\n\n\tfunction scrollCb(data) {\n\t\tconst { direction, mappedIntent } = data;\n\t\tconsole.log('scroll data', data);\n\t\tconsole.log('the user scrolled ', direction);\n\t\tconsole.log('with an intent of ', mappedIntent);\n\n\t\t//perform actions such as animations/transitions or just plain funciton calls, then set the scrollPending back to false to listen for the next event\n\t\tss.listen();\n\t}\n\n\tfunction touchCb(data) {\n\t\tconsole.log('touch data', data);\n\t\tconst { direction, mappedIntent } = data;\n\t\tconsole.log('the user scrolled ', direction);\n\t\tconsole.log('with an intent of ', mappedIntent);\n\n\t\t//perform actions such as animations/transitions or just plain funciton calls, then set the scrollPending back to false to listen for the next event\n\t\tss.listen();\n\t}\n\n\tconst k = document.getElementById('kill');\n\tk.addEventListener('click', function(e) {\n\t\t//remove all event listeners\n\t\tss.killAll();\n\t});\n}", "init() {\n /**\n * The gesture of document.Used by the event-action of Viewer.\n *\n * @private\n * @type {Gesture}\n */\n this._gesture = new Gesture(document, {\n preventX: false\n });\n\n this.setupEventAction();\n // handle preregistered extensions\n this.handlePreregisteredExtensions();\n\n // add normal scroll class to body. except ios in iframe.\n // Patch for ios+iframe is default in mip.css\n if (!platform.needSpecialScroll) {\n document.documentElement.classList.add('mip-i-android-scroll');\n document.body.classList.add('mip-i-android-scroll');\n }\n\n if (this.isIframed) {\n this.patchForIframe();\n // proxy links\n // this._proxyLink();\n this._viewportScroll();\n // Tell parent page the current page is loaded.\n this.sendMessage('mippageload', {\n time: Date.now(),\n title: encodeURIComponent(document.title)\n });\n }\n }", "function initScrollAnimation() {\n const sections = document.querySelectorAll('.js-scroll')\n const windowHalf = window.innerHeight / 2\n\n if(sections.length) {\n function animationScroll() {\n sections.forEach(section => {\n const sectionTop = section.getBoundingClientRect().top\n const isSectionVisible = (sectionTop - windowHalf) < 0\n \n if (isSectionVisible) {\n section.classList.add('active')\n } else {\n section.classList.remove('active')\n }\n })\n }\n animationScroll()\n \n window.addEventListener('scroll', animationScroll)\n }\n}", "function initScrollTracking() {\n var atTop = true;\n var debounce = null;\n var doc = document.documentElement;\n var body = document.body;\n var threshold = 100;\n document.addEventListener('scroll', function(event) {\n if (!debounce) {\n debounce = setTimeout(function() {\n checkLocation();\n debounce = null;\n }, 100);\n }\n });\n\n function checkLocation() {\n var top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n if (top < threshold && !atTop) {\n // We were away, and now we're back\n body.classList.remove('scrolled');\n atTop = true;\n } else if (top >= threshold && atTop) {\n // We've scrolled away\n body.classList.add('scrolled');\n atTop = false;\n }\n }\n}", "function init() {\n \n if (!document.body) return;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n initDone = true;\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n // DOMChange (throttle): fix height\n var pending = false;\n var refresh = function () {\n if (!pending && html.scrollHeight != document.height) {\n pending = true; // add a new pending action\n setTimeout(function () {\n html.style.height = document.height + 'px';\n pending = false;\n }, 500); // act rarely to stay fast\n }\n };\n html.style.height = 'auto';\n setTimeout(refresh, 10);\n\n // clearfix\n if (root.offsetHeight <= windowHeight) {\n var underlay = document.createElement(\"div\"); \t\n underlay.style.clear = \"both\";\n body.appendChild(underlay);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = \"scroll\";\n html.style.backgroundAttachment = \"scroll\";\n }\n}", "function init() {\n \n if (!document.body) return;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n initDone = true;\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n // DOMChange (throttle): fix height\n var pending = false;\n var refresh = function () {\n if (!pending && html.scrollHeight != document.height) {\n pending = true; // add a new pending action\n setTimeout(function () {\n html.style.height = document.height + 'px';\n pending = false;\n }, 500); // act rarely to stay fast\n }\n };\n html.style.height = 'auto';\n setTimeout(refresh, 10);\n\n // clearfix\n if (root.offsetHeight <= windowHeight) {\n var underlay = document.createElement(\"div\"); \t\n underlay.style.clear = \"both\";\n body.appendChild(underlay);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = \"scroll\";\n html.style.backgroundAttachment = \"scroll\";\n }\n}", "createInObFallback_() {\n this.scrollHandler_ = throttle(\n this.win_,\n this.checkIfVisibleFallback_.bind(this),\n SCROLL_THROTTLE_MS\n );\n\n this.win_.addEventListener('scroll', this.scrollHandler_);\n\n this.checkIfVisibleFallback_(this.element_);\n }", "function setHorizontalScroll() {\n if ($('html').hasClass('no-csstransitions')) {\n fancyScroll = new IScroll('#portfolio', { //commentary for default values\n scrollX: true, //false\n scrollY: true, //true\n mouseWheel: true, //false\n bounceTime: 1000, //600\n deceleration: 0.006, //0.0006\n snap: 'li', //false (not a string)\n tap: true, //false : allows to click on mobile\n useTransform: false, //true \n useTransition: false, //true \n bindToWrapper: false //should be false, but is true\n });\n }\n else {\n fancyScroll = new IScroll('#portfolio', { //commentary for default values\n scrollX: true, //false\n scrollY: false, //true\n mouseWheel: true, //false\n bounceTime: 1000, //600\n deceleration: 0.006, //0.0006\n snap: 'li', //false (not a string)\n tap: true, //false : allows to click on mobile\n bindToWrapper: false //should be false, but is true\n });\n }\n}", "_scrollHandler () {}", "function shouldLockDocumentScroll(options) {\n\n //if (supportsOverscrollBehavior) {\n // return false;\n //}\n\n return true;\n }", "_togglePageScrollability() {\n const pageContainer = document.querySelector('html');\n\n pageContainer.classList.toggle(CLASS_NAME.unscrollable);\n\n if (pageContainer.classList.contains(CLASS_NAME.unscrollable)) {\n disableBodyScroll(this.elementRef);\n } else {\n enableBodyScroll(this.elementRef);\n }\n }", "function initTest() {\r\n\r\n\t\t\t\tvar disableKeyboard = false;\r\n\r\n\t\t\t\t// disable keys for google reader (spacebar conflict)\r\n\t\t\t\tif (document.URL.indexOf(\"google.com/reader/view\") > -1) {\r\n\t\t\t\t\tdisableKeyboard = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// disable everything if the page is blacklisted\r\n\t\t\t\tif (options.excluded) {\r\n\t\t\t\t\tvar domains = options.excluded.split(/[,\\n] ?/);\r\n\t\t\t\t\tdomains.push(\"mail.google.com\"); // exclude Gmail for now\r\n\t\t\t\t\tfor (var i = domains.length; i--;) {\r\n\t\t\t\t\t\tif (document.URL.indexOf(domains[i]) > -1) {\r\n\t\t\t\t\t\t\tobserver && observer.disconnect();\r\n\t\t\t\t\t\t\tremoveEvent(\"mousewheel\", wheel);\r\n\t\t\t\t\t\t\tdisableKeyboard = true;\r\n\t\t\t\t\t\t\tisExcluded = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// disable keyboard support if anything above requested it\r\n\t\t\t\tif (disableKeyboard) {\r\n\t\t\t\t\tremoveEvent(\"keydown\", keydown);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (options.keyboardSupport && !disableKeyboard) {\r\n\t\t\t\t\taddEvent(\"keydown\", keydown);\r\n\t\t\t\t}\r\n\t\t\t}", "function noScroll() {\r\n $(\"body\").addClass(\"no-scroll\");\r\n}", "function initSmoothScroll() {\n $('a[href^=\"#\"]').on('click',function (e) {\n e.preventDefault();\n\n var target = this.hash;\n var $target = $(target);\n\n $('html, body').stop().animate({\n 'scrollTop': $target.offset().top\n }, 900, 'swing', function () {\n window.location.hash = target;\n });\n });\n }", "SmoothScroll() {\n $('a.smooth-scroll').on('click', function(event) {\n const $anchor = $(this);\n let offsetTop = '';\n\n if (window.Response.band(768)) {\n offsetTop = parseInt($($anchor.attr('href')).offset().top - 70, 0);\n } else {\n offsetTop = parseInt($($anchor.attr('href')).offset().top, 0);\n }\n\n $('html, body').stop().animate(\n {\n scrollTop: offsetTop,\n },\n 1500,\n 'easeInOutExpo',\n );\n\n event.preventDefault();\n });\n }", "function loadScroll() {\n\n\t\tvar hasErrors = false;\n\t\tif ($('.global_errors').size() > 0) {\n\t\t\thasErrors = true;\n\t\t\tvar div = $($('.global_errors')[0]);\n\t\t\tvar top = Math.max(0, div.offset().top - 100);\n\t\t\t// $(document).animate({ scrollTop: top }, { duration: 'slow',\n\t\t\t// easing: 'swing'});\n\t\t\t$(document).scrollTop(top);\n\t\t}\n\n\t\tvar cookie = $.cookie(\"scrollPosition\");\n\t\tif (cookie) {\n\t\t\tif (!hasErrors) {\n\t\t\t\tvar values = cookie.split(',');\n\t\t\t\twindow.scrollTo(values[0], values[1]);\n\t\t\t}\n\t\t\t// delete cookie\n\t\t\t$.cookie(\"scrollPosition\", null, {\n\t\t\t\tpath : '/'\n\t\t\t});\n\t\t}\n\t}", "function doScrollCheck() {\n\t\t\t\tif (omesnapCart.isReady) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\t// If IE is used, use the trick by Diego Perini\n\t\t\t\t\t// http://javascript.nwbox.com/IEContentLoaded/\n\t\t\t\t\tdocument.documentElement.doScroll(\"left\");\n\t\t\t\t} catch (e) {\n\t\t\t\t\tsetTimeout(doScrollCheck, 1);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// and execute any waiting functions\n\t\t\t\tomesnapCart.init();\n\t\t\t}", "function scrollEffects() {\n\t// initialize smooth scrolling on same-page links\n\t$('a[href*=\\\\#]:not([href=\\\\#])').click(function() {\n\t\tif (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\n\t\t\tvar target = $(this.hash);\n\t\t\ttarget = target.length ? target : $('[name=' + this.hash.slice(1) +']');\n\t\t\tif (target.length) {\n\t\t\t\t$('html,body').animate({\n\t\t\t\t\tscrollTop: (target.offset().top - 100)\n\t\t\t\t}, 1000);\n\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t});\n}", "function init_pagescroll()\n {\n $('a.page-scroll').on('click', function (e)\n {\n if (location.pathname.replace(/^\\//, '') === this.pathname.replace(/^\\//, '') && location.hostname === this.hostname)\n {\n var target = $(this.hash);\n target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');\n if (target.length)\n {\n $('html,body').animate(\n {\n scrollTop: target.offset().top\n }, 1000);\n return false;\n }\n }\n });\n }", "function checkScroll() {\n if (hasScrolled) {\n checkNavPosition();\n hasScrolled = false;\n }\n\n // TODO stop this when a page isn't active\n return setTimeout(checkScroll, 100);\n }", "function initSideAreaScroll(){\n\t\"use strict\";\n\n\tif($j('.side_menu').length){\t\n\t\t$j(\".side_menu\").niceScroll({ \n\t\t\tscrollspeed: 60,\n\t\t\tmousescrollstep: 40,\n\t\t\tcursorwidth: 0, \n\t\t\tcursorborder: 0,\n\t\t\tcursorborderradius: 0,\n\t\t\tcursorcolor: \"transparent\",\n\t\t\tautohidemode: false, \n\t\t\thorizrailenabled: false \n\t\t});\n\t}\n}", "function init() {\r\n \r\n if (!document.body) return;\r\n\r\n var body = document.body;\r\n var html = document.documentElement;\r\n var windowHeight = window.innerHeight; \r\n var scrollHeight = body.scrollHeight;\r\n \r\n // check compat mode for root element\r\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\r\n activeElement = body;\r\n \r\n initTest();\r\n initDone = true;\r\n\r\n // Checks if this script is running in a frame\r\n if (top != self) {\r\n isFrame = true;\r\n }\r\n\r\n /**\r\n * This fixes a bug where the areas left and right to \r\n * the content does not trigger the onmousewheel event\r\n * on some pages. e.g.: html, body { height: 100% }\r\n */\r\n else if (scrollHeight > windowHeight &&\r\n (body.offsetHeight <= windowHeight || \r\n html.offsetHeight <= windowHeight)) {\r\n\r\n // DOMChange (throttle): fix height\r\n var pending = false;\r\n var refresh = function () {\r\n if (!pending && html.scrollHeight != document.height) {\r\n pending = true; // add a new pending action\r\n setTimeout(function () {\r\n html.style.height = document.height + 'px';\r\n pending = false;\r\n }, 500); // act rarely to stay fast\r\n }\r\n };\r\n html.style.height = 'auto';\r\n setTimeout(refresh, 10);\r\n\r\n // clearfix\r\n if (root.offsetHeight <= windowHeight) {\r\n var underlay = document.createElement(\"div\"); \t\r\n underlay.style.clear = \"both\";\r\n body.appendChild(underlay);\r\n }\r\n }\r\n\r\n // disable fixed background\r\n if (!options.fixedBackground && !isExcluded) {\r\n body.style.backgroundAttachment = \"scroll\";\r\n html.style.backgroundAttachment = \"scroll\";\r\n }\r\n}", "function smoothy()\n{\n anchors = document.querySelectorAll('a');\n for(anchor of anchors)\n {\n anchor.addEventListener('click', function eventHandler(event)\n { \n event.preventDefault();\n for(let section of sections){\n if(section.id == this.id){\n section.scrollIntoView({behavior: \"smooth\" , block: \"start\"});\n window.addEventListener('scroll', activeClass);\n }\n }\n }) \n }\n}", "function initAnchors() {\n\tnew SmoothScroll({\n\t\tanchorLinks: '.nav > li > a',\n\t\textraOffset: function() {\n\t\t\tvar totalHeight = 0;\n\t\t\tjQuery('.navbar-fixed-top').each(function(){\n\t\t\t\ttotalHeight += jQuery(this).outerHeight();\n\t\t\t});\n\t\t\treturn totalHeight;\n\t\t},\n\t\tactiveClasses: 'link'\n\t});\n}", "function init() {\n \n if (!document.body) return;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n initDone = true;\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n html.style.height = 'auto';\n setTimeout(refresh, 10);\n\n // clearfix\n if (root.offsetHeight <= windowHeight) {\n var underlay = document.createElement(\"div\"); \t\n underlay.style.clear = \"both\";\n body.appendChild(underlay);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = \"scroll\";\n html.style.backgroundAttachment = \"scroll\";\n }\n}", "function FirstLoad() {\t\r\n\t\t\r\n\t\t\r\n\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\tvar elem = document.querySelector(\"#content-scroll\");\r\n\t\t\tvar scrollbar = Scrollbar.init(elem,\r\n\t\t\t{\r\n\t\t\t\trenderByPixels: true,\r\n\t\t\t\tdamping:0.05\r\n\t\t\t});\r\n\t\t}\r\n\t\t\r\n\t\t$(\"html,body\").animate({scrollTop: 0}, 1);\r\n\t\t\r\n\t\tif ($(\"#page-content\").hasClass(\"light-content\")) {\r\n\t\t\t$(\"main, nav\").css('background-color', '#111');\r\n\t\t\t$('#magic-cursor').addClass('light-content');\r\n\t\t\tif( $('#hero').length > 0 ){\t\t\t\t\t\t\r\n\t\t\t\tif( $('#hero').hasClass(\"has-image\")) {\t\r\n\t\t\t\t\t$(\"header\").css('background-color', 'transparent');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(\"header\").css('background-color', 'transparent');\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$(\"header\").css('background-color', 'transparent');\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$(\"main\").css('background-color', '#fff');\r\n\t\t\t$(\"nav\").css('background-color', '#0f1010');\r\n\t\t\t$('#magic-cursor').removeClass('light-content');\r\n\t\t\tif( $('#hero').length > 0 ){\t\r\n\t\t\t\tif( $('#hero').hasClass(\"has-image\")) {\t\r\n\t\t\t\t\t$(\"header\").css('background-color', 'transparent');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$(\"header\").css('background-color', 'transparent');\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$(\"header\").css('background-color', 'transparent');\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$('.section-image').each(function() {\r\n\t\t\tvar image = $(this).data('src');\t\r\n\t\t\t$(this).css({'background-image': 'url(' + image + ')'});\r\n\t\t});\r\n\t\t\r\n\t\t$('.item').each(function() {\r\n\t\t\tvar image = $(this).find('.item-image').data('src');\t\r\n\t\t\t$(this).find('.item-image').css({'background-image': 'url(' + image + ')'});\r\n\t\t});\r\n\t\t\r\n\t\t$('.thumb-page').each(function() {\r\n\t\t\tvar image = $(this).data('src');\t\r\n\t\t\t$(this).css({'background-image': 'url(' + image + ')'});\r\n\t\t});\r\n\t\t\r\n\t\t$('.video-cover').each(function() {\r\n\t\t\tvar image = $(this).data('src');\t\r\n\t\t\t$(this).css({'background-image': 'url(' + image + ')'});\r\n\t\t});\r\n\t\t\r\n\t\t//Load Default Page\r\n\t\t$('a.ajax-link').on('click', function() {\r\n\t\t\t$(\"body\").addClass(\"show-loader\");\t\r\n\t\t\t$(\".flexnav\").removeClass(\"flexnav-show\");\r\n\t\t\t$('#menu-burger').removeClass(\"open\");\r\n\t\t\tvar tlMenu = new TimelineLite();\r\n\t\t\t$(\".fullscreen-menu .menu-timeline\").each(function(index, element) {\r\n\t\t\t\ttlMenu.to(element, 0.25, {y:-30, opacity:0, ease:Power2.easeIn}, index * 0.03)\r\n\t\t\t});\t\r\n\t\t\tTweenMax.to('#ball', 0.3,{borderWidth:\"2px\",scale:1,backgroundColor:\"rgba(0, 0, 0, 0)\",opacity:1});\r\n\t\t\tif( $('#showcase-holder').length > 0 ){\r\n\t\t\t\tTweenMax.to($(\".swiper-pagination-bullet-active .subtitle\"), 0.4, {force3D:true, opacity:0, delay:0.1, ease:Power2.easeOut});\r\n\t\t\t\tTweenMax.to($(\".swiper-pagination-bullet-active .title\"), 0.4, {force3D:true, opacity:0, delay:0.1, ease:Power2.easeOut});\r\n\t\t\t\tTweenMax.to($(\".footer-button-wrap\"), 0.4, {force3D:true, opacity:0, delay:0.1, ease:Power2.easeOut});\r\n\t\t\t\tTweenMax.to($(\".showcase-counter, .swiper-pagination-bullet-active .counter, .arrows-wrap\"), 0.3, {force3D:true, opacity:0, delay:0.1, ease:Power2.easeOut});\r\n\t\t\t\tTweenMax.to($(\"#main\"), 0.3, {opacity:0, delay:0.4, ease:Power0.ease});\r\n\t\t\t} else {\r\n\t\t\t\tTweenMax.to($(\"#main\"), 0.3, {opacity:0, delay:0.1, ease:Power0.ease});\r\n\t\t\t}\t\t\r\n\t\t\tTweenMax.to($(\"#footer-container\"), 0.3, {opacity:0, ease:Power0.ease});\r\n\t\t\tTweenMax.to($(\"#showcase-carousel .swiper-slide-active\"), 0.4, {force3D:true, x:-250, opacity:0, delay:0.05, ease:Power3.easeIn });\r\n\t\t\tTweenMax.to($(\"#showcase-carousel .swiper-slide-active\").next(), 0.4, {force3D:true, x:-250, opacity:0, delay:0.1, ease:Power3.easeIn });\r\n\t\t\tTweenMax.to($(\"#showcase-carousel .swiper-slide-active\").next().next(), 0.4, {force3D:true, x:-250, opacity:0, delay:0.15, ease:Power3.easeIn });\r\n\t\t\tTweenMax.to($(\"#showcase-carousel\"), 0.5, {force3D:true, opacity:0, delay:0.1, ease:Power1.easeInOut });\r\n\t\t\t\r\n\t\t\tTweenMax.to($(\"#large-showcase-carousel .swiper-slide-active\").prev(), 0.4, {force3D:true, x:-250, opacity:0, delay:0.05, ease:Power3.easeIn });\r\n\t\t\tTweenMax.to($(\"#large-showcase-carousel .swiper-slide-active\"), 0.4, {force3D:true, x:-250, opacity:0, delay:0.1, ease:Power3.easeIn });\r\n\t\t\tTweenMax.to($(\"#large-showcase-carousel .swiper-slide-active\").next(), 0.4, {force3D:true, x:-250, opacity:0, delay:0.15, ease:Power3.easeIn });\r\n\t\t\tTweenMax.to($(\"#large-showcase-carousel\"), 0.5, {force3D:true, opacity:0, delay:0.1, ease:Power1.easeInOut });\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t//Load Page From Menu\r\n\t\t$('nav .ajax-link').on('click', function() {\r\n\t\t\tvar tl = new TimelineLite();\r\n\t\t\t$(\".menu-timeline\").each(function(index, element) {\r\n\t\t\t\ttl.to(element, 0.25, {y:-80, opacity:0, ease:Power1.easeIn }, index * 0.05)\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\t$('#burger-wrapper').on('click', function() {\r\n\t\t\t$('#menu-burger, nav').toggleClass('open');\t\t\t\r\n\t\t\tsetTimeout( function(){\t\t\t\r\n\t\t\t\tif ($('#menu-burger').hasClass(\"open\")) {\r\n\t\t\t\t\t$('header').addClass('over-sidebar');\r\n\t\t\t\t\tif (!$('#page-content').hasClass(\"light-content\")) {\t\r\n\t\t\t\t\t\t$('#magic-cursor').addClass('light-content');\r\n\t\t\t\t\t\t$('#header-container').addClass('light-content');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//Fade In Navigation Lists\r\n\t\t\t\t\tvar tlMenu = new TimelineLite();\r\n\t\t\t\t\ttlMenu.set($(\".menu-timeline\"), {y: 80, opacity:0});\r\n\t\t\t\t\t$(\".menu-timeline\").each(function(index, element) {\r\n\t\t\t\t\t\ttlMenu.to(element, 0.5, {y:0, opacity:1, delay:0.4, ease:Power2.easeOut}, index * 0.1)\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t} else {\t\r\n\t\t\t\t\t//Fade Out Navigation Lists\t\t\t\t\t\r\n\t\t\t\t\tvar tlMenu = new TimelineLite();\r\n\t\t\t\t\t$(\".menu-timeline\").each(function(index, element) {\r\n\t\t\t\t\t\ttlMenu.to(element, 0.25, {y:-80, opacity:0, ease:Power2.easeIn}, index * 0.05)\r\n\t\t\t\t\t});\r\n\t\t\t\t\tif (!$('#page-content').hasClass(\"light-content\")) {\t\r\n\t\t\t\t\t\tsetTimeout( function(){\r\n\t\t\t\t\t\t\t$('#magic-cursor').removeClass('light-content');\r\n\t\t\t\t\t\t\t$('#header-container').removeClass('light-content');\r\n\t\t\t\t\t\t} , 500 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsetTimeout( function(){\r\n\t\t\t\t\t\t$(\".touch-button.active\").trigger(\"click\");\r\n\t\t\t\t\t\t$('header').removeClass('over-sidebar');\r\n\t\t\t\t\t} , 500 );\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t} , 20 );\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t$(\".button-wrap.left\").on('click', function() {\r\n\t\t\tvar audio = document.getElementById(\"audio\");\r\n\t\t\t$('body').toggleClass(\"mute\");\r\n\t\t\t$(this).toggleClass(\"disabled\");\t\t\t \r\n\t\t\tif ($(this).hasClass('disabled')) {\r\n\t\t\t\t$('.button-text span').text($('.button-text span').data('off'));\r\n\t\t\t\t$('.button-text span').attr(\"data-off\", $('.button-text span').data('on'));\r\n\t\t\t\t$('.button-text span').attr(\"data-on\", $('.button-text span').text());\r\n\t\t\t\taudio.volume = 0;\r\n\t\t\t\taudio.pause();\r\n\t\t\t} else {\r\n\t\t\t\t$('.button-text span').text($('.button-text span').data('on'));\r\n\t\t\t\t$('.button-text span').attr(\"data-on\", $('.button-text span').data('on'));\r\n\t\t\t\t$('.button-text span').attr(\"data-off\", $('.button-text span').data('off'));\r\n\t\t\t\taudio.volume = 0.2;\r\n\t\t\t\taudio.play();\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Page Navigation Events\r\n\t\t$('.next-ajax-link-page').on('click', function() {\t\t\t\t\t\r\n\t\t\t$(\"body\").addClass(\"load-next-page\");\r\n\t\t\t$(\"body\").addClass(\"show-loader\");\r\n\t\t\tvar pageheight = $(\".scroll-content\").height()\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tTweenMax.to(scrollbar, 0.5, {scrollTop :pageheight, ease:Power4.easeIn});\r\n\t\t\t} else { \r\n TweenMax.to(window, 0.5, {scrollTo :$(\"footer\").offset().top, ease:Power4.easeIn}); \r\n }\t\r\n\t\t\tTweenMax.to('#ball', 0.3,{borderWidth:\"2px\",scale:1,backgroundColor:\"rgba(0, 0, 0, 0)\",opacity:1});\r\n\t\t\tif ($('#project-nav').hasClass(\"light-content\")) {\t\t\t\t\r\n\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t$('body').addClass('light-content');\t\t\t\t\t\t\t\t\r\n\t\t\t\t} , 300 );\r\n\t\t\t}\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tif ($(window).width() >= 1466) {\r\n\t\t\t\t var navmove = $(\"#content-scroll\").height() - $(\"#hero\").height() - 92 - $(\"footer\").height()\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t var navmove = $(\"#content-scroll\").height() - $(\"#hero\").height() - 72 - $(\"footer\").height()\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif ($(window).width() >= 1466) {\r\n\t\t\t\t var navmove = window.innerHeight - $(\"#hero\").height() - 92 - $(\"footer\").height()\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t var navmove = window.innerHeight - $(\"#hero\").height() - 72 - $(\"footer\").height()\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tvar navtitleheight = $(\".page-title\").height()\r\n\t\t\tvar navsubtitlemove = $(\".page-subtitle\").height() + navtitleheight\r\n\t\t\tvar navsubtitleheight = $(\".page-subtitle\").height()\r\n\t\t\t\t\r\n\t\t\tTweenMax.to($(\".next-page-title\"), 0.6, {force3D:true, yPercent:-10,delay:0, ease:Power2.easeInOut});\r\n\t\t\tif ($('.next-page-title .inner').hasClass(\"text-align-center\")) {\r\n\t\t\t\tTweenMax.to($(\".page-subtitle\"), 0.3, {force3D:true, opacity:0, scale:0.5, delay:0, ease:Power2.easeOut});\r\n\t\t\t} else {\r\n\t\t\t\tTweenMax.to($(\".page-subtitle\"), 0.3, {force3D:true, opacity:0, scale:1, delay:0, ease:Power2.easeOut});\r\n\t\t\t}\r\n\t\t\tTweenMax.to($(\".page-title\"), 0.6, {force3D:true, y: -navtitleheight, delay:0.1, ease:Power2.easeInOut});\r\n\t\t\tTweenMax.set($(\".page-subtitle\"), {opacity:0, scale:1, y: navsubtitlemove, delay:0.4});\r\n\t\t\tTweenMax.set($(\".subtitle-info\"), {opacity:0, delay:0.4});\r\n\t\t\tTweenMax.set($(\".subtitle-name\"), {opacity:1, delay:0.4});\r\n\t\t\tTweenMax.to($(\".page-subtitle\"), 0.3, {force3D:true, opacity:1, scale:1, y:navsubtitleheight, delay:0.4, ease:Power2.easeOut});\r\n\t\t\tTweenMax.to($(\"#main-page-content, #hero\"), 0.3, {opacity:0});\t\t\r\n\t\t\tTweenMax.to($(\"#page-nav\"), 0.6, {y: - navmove, ease:Power2.easeInOut});\r\n\t\t\tTweenMax.to($(\"footer\"), 0.3, {opacity:0, delay:0.2, ease:Power2.easeInOut});\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t// Project Navigation Events\r\n\t\t$('.next-ajax-link-project').on('click', function() {\t\t\t\t\t\r\n\t\t\t$(\"body\").addClass(\"load-next-project\");\r\n\t\t\t$(\"body\").addClass(\"show-loader\");\r\n\t\t\tvar pageheight = $(\".scroll-content\").height()\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tTweenMax.to(scrollbar, 0.5, {scrollTop :pageheight, ease:Power4.easeIn});\r\n\t\t\t} else { \r\n TweenMax.to(window, 0.5, {scrollTo :$(\"footer\").offset().top, ease:Power4.easeIn}); \r\n }\t\t\r\n\t\t\tTweenMax.to('#ball', 0.3,{borderWidth:\"2px\",scale:1,backgroundColor:\"rgba(0, 0, 0, 0)\",opacity:1});\r\n\t\t\tif ($('#project-nav').hasClass(\"light-content\")) {\t\t\t\t\r\n\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t$('body').addClass('light-content');\t\t\t\t\t\t\t\t\r\n\t\t\t\t} , 300 );\r\n\t\t\t}\t\r\n\t\t\tvar navtitleheight = $(\".hero-title\").height()\r\n\t\t\tvar navsubtitleheight = $(\".hero-subtitle\").height()\r\n\t\t\tTweenMax.to($(\".next-project-title\"), 0.6, {force3D:true, yPercent:-10,delay:0, ease:Power2.easeInOut});\r\n\t\t\tTweenMax.to($(\".main-subtitle\"), 0.3, {force3D:true, opacity:0, scale:0.5, delay:0, ease:Power2.easeOut});\r\n\t\t\tTweenMax.to($(\".main-title\"), 0.6, {force3D:true, y:-navtitleheight, delay:0.1, ease:Power2.easeInOut});\r\n\t\t\tTweenMax.set($(\".main-subtitle\"), {opacity:0, scale:1, y: 150, delay:0.4});\r\n\t\t\tTweenMax.set($(\".subtitle-info\"), {opacity:0, delay:0.4});\r\n\t\t\tTweenMax.set($(\".subtitle-name\"), {opacity:1, delay:0.4});\r\n\t\t\tTweenMax.to($(\".main-subtitle\"), 0.3, {force3D:true, opacity:1, scale:1, y:navsubtitleheight, delay:0.4, ease:Power2.easeOut});\r\n\t\t\tTweenMax.to($(\"#main-page-content\"), 0.3, {opacity:0});\t\t\t\r\n\t\t\tsetTimeout(function(){\r\n\t\t\t\tTweenMax.to($(\"#project-nav\"), 0.6, {height:\"100vh\", ease:Power2.easeInOut});\r\n\t\t\t\tTweenMax.to($(\".next-project-image\"), 0.6, {top:\"0\", y: 0, ease:Power2.easeInOut});\r\n\t\t\t\tTweenMax.to($(\"footer\"), 0.3, {opacity:0, ease:Power2.easeInOut});\r\n\t\t\t} , 50 );\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tif( $('#project-nav').length > 0 ){\r\n\t\t\t$('#main-page-content').addClass('project-page');\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( $('#portfolio').length > 0 ){\r\n\t\t\t$('#main-page-content').addClass('portfolio-page');\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t// Slider Center on click\r\n\t\t$('.slider').on('click', function() {\r\n\t\t\tvar $window = $(window),\r\n\t\t\t\t$element = $(this),\r\n\t\t\t\telementTop = $element.offset().top,\r\n\t\t\t\telementHeight = $element.height(),\r\n\t\t\t\tviewportHeight = $window.height(),\r\n\t\t\t\tscrollIt = elementTop - ((viewportHeight - elementHeight) / 2);\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\t\t\t\t\r\n\t\t\t\tvar scrollOffset = scrollbar.offset.y + (elementTop - scrollbar.getSize().container.height/2);\t\t\t\t\r\n\t\t\t\tTweenLite.to(scrollbar, 0.8, {scrollTo:scrollOffset + elementHeight/2, ease:Power4.easeInOut});\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\t\t\t\t\r\n\t\t\t\t$(\"html, body\").animate({ scrollTop: scrollIt }, 350); \r\n\t\t\t}\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t// Carousel Center on click\r\n\t\t$('.carousel').on('click', function() {\t\t\t\t\r\n\t\t\tvar $window = $(window),\r\n\t\t\t\t$element = $(this),\r\n\t\t\t\telementTop = $element.offset().top,\r\n\t\t\t\telementHeight = $element.height(),\r\n\t\t\t\tviewportHeight = $window.height(),\r\n\t\t\t\tscrollIt = elementTop - ((viewportHeight - elementHeight) / 2);\t\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\t\t\t\t\t\r\n\t\t\t\tvar scrollOffset = scrollbar.offset.y + (elementTop - scrollbar.getSize().container.height/2); \r\n\t\t\t\tTweenLite.to(scrollbar, 0.8, {scrollTo:scrollOffset + elementHeight/2, ease:Power4.easeInOut}); \r\n\t\t\t}\r\n\t\t\telse{ \r\n\t\t\t\t$(\"html, body\").animate({ scrollTop: scrollIt }, 350); \r\n\t\t\t}\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t// Video Center on click\r\n\t\t$('.video-wrapper').on('click', function() {\t\t\t\t\r\n\t\t\tvar $window = $(window),\r\n\t\t\t\t$element = $(this),\r\n\t\t\t\telementTop = $element.offset().top,\r\n\t\t\t\telementHeight = $element.height(),\r\n\t\t\t\tviewportHeight = $window.height(),\r\n\t\t\t\t\tscrollIt = elementTop - ((viewportHeight - elementHeight) / 2);\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\t\t\t\t\t\r\n\t\t\t\tvar scrollOffset = scrollbar.offset.y + (elementTop - scrollbar.getSize().container.height/2); \r\n\t\t\t\tTweenLite.to(scrollbar, 0.8, {scrollTo:scrollOffset + elementHeight/2, ease:Power4.easeInOut}); \r\n\t\t\t}\r\n\t\t\telse{ \r\n\t\t\t\t$(\"html, body\").animate({ scrollTop: scrollIt }, 350); \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar audio = document.getElementById(\"audio\");\r\n\t\t\t$('body').toggleClass(\"mute\");\r\n\t\t\t$(\".icon-wrap\").toggleClass(\"disabled\");\t\t\t \r\n\t\t\tif ($(\".icon-wrap\").hasClass('disabled')) {\r\n\t\t\t\t$('.button-text span').text($('.button-text span').data('off'));\r\n\t\t\t\t$('.button-text span').attr(\"data-off\", $('.button-text span').data('on'));\r\n\t\t\t\t$('.button-text span').attr(\"data-on\", $('.button-text span').text());\r\n\t\t\t\taudio.volume = 0;\r\n\t\t\t\taudio.pause();\r\n\t\t\t} else {\r\n\t\t\t\t$('.button-text span').text($('.button-text span').data('on'));\r\n\t\t\t\t$('.button-text span').attr(\"data-on\", $('.button-text span').data('on'));\r\n\t\t\t\t$('.button-text span').attr(\"data-off\", $('.button-text span').data('off'));\r\n\t\t\t\taudio.volume = 0.2;\r\n\t\t\t\taudio.play();\r\n\t\t\t}\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tvar viewportWidth = $(window).width();\r\n\t\tif (viewportWidth < 1024) {\t\t\t\t\r\n\t\t\t$('.hero-video-wrapper').remove();\t\t\t\t\t\t\t \r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Tilt Showcase Wrapper\r\n\t\tif( $('#hero').hasClass(\"has-image\")) {\t\t\t\t\r\n\t\t\tvar timeout;\r\n\t\t\t$(window).resize(changePersective);\t\t\t\t\r\n\t\t\tchangePersective();\t\t\t\t\r\n\t\t\tfunction changePersective(){\r\n\t\t\t\tTweenMax.set('#hero-bg-wrapper', {perspective: $('body').width()});\r\n\t\t\t}\r\n\t\t\t$('#hero').mousemove(function(e){\r\n\t\t\t\tif(timeout) clearTimeout(timeout);\r\n\t\t\t\tsetTimeout(callParallaxHero.bind(null, e));\t\t\t\r\n\t\t\t});\t\t\t\t\r\n\t\t\tfunction callParallaxHero(e){\r\n\t\t\t\tparallaxItHero(e, '#hero-bg-image', 0); //5\r\n\t\t\t\tmoveItHero(e, '#hero-bg-image', - 30); //80\r\n\t\t\t}\t\t\t\t\r\n\t\t\tfunction parallaxItHero(e, target, movement){\r\n\t\t\t\tvar $this = $('#hero-bg-wrapper');\r\n\t\t\t\tvar relX = e.pageX - $this.offset().left;\r\n\t\t\t\tvar relY = e.pageY - $this.offset().top;\t\t\t\t\t\r\n\t\t\t\tTweenMax.to(target, 1, {\r\n\t\t\t\t\trotationY: (relX - $this.width()/1.5) / $this.width() * movement,\r\n\t\t\t\t\trotationX: (relY - $this.height()/2) / $this.height() * movement,\r\n\t\t\t\t})\r\n\t\t\t}\t\t\t\t\r\n\t\t\tfunction moveItHero(e, target, movement){\r\n\t\t\t\tvar $this = $('#hero-bg-wrapper');\r\n\t\t\t\tvar relX = e.pageX - $this.offset().left;\r\n\t\t\t\tvar relY = e.pageY - $this.offset().top;\t\t\t\t\t\r\n\t\t\t\tTweenMax.to(target, 1, {\r\n\t\t\t\t\tx: (relX - $this.width()/2) / $this.width() * movement,\r\n\t\t\t\t\ty: (relY - $this.height()/2) / $this.height() * movement,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tvar heroparallax = TweenMax.to('#hero-image-parallax', 1, {top:\"20%\", ease:Linear.easeNone});\r\n\t\tvar captionParallax = TweenMax.to('.has-image #hero-caption', 0.5, {top:\"25%\", ease:Linear.easeNone});\r\n\t\t\r\n\t\tvar controller = new ScrollMagic.Controller();\r\n\t\t\r\n\t\tvar heroScene = new ScrollMagic.Scene({\r\n\t\t\ttriggerElement: '#hero',\r\n\t\t\ttriggerHook: 0,\r\n\t\t\tduration:'100%'\r\n\t\t})\r\n\t\t.setTween(heroparallax)\r\n\t\t.addTo(controller);\r\n\t\t \r\n\t\tvar captionScene = new ScrollMagic.Scene({\r\n\t\t\ttriggerElement: '#hero',\r\n\t\t\ttriggerHook: 0,\r\n\t\t\tduration:'100%'\r\n\t\t})\r\n\t\t.setTween(captionParallax)\r\n\t\t.addTo(controller);\r\n\t\t\r\n\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\tscrollbar.addListener(() => {\r\n\t\t\t\theroScene.refresh()\r\n\t\t\t\tcaptionScene.refresh()\r\n\t\t\t});\r\n\t\t}\r\n\t\t\r\n\t\t// \tparallax image \r\n\t\t$(\".has-parallax\").each( function () {\r\n\t\t\tvar $this = $(this);\r\n\t\t\tvar $thisHeight = $(this).height();\r\n\t\t\tvar bg = $this.find(\"img\");\r\n\t\t\t\r\n\t\t\t// Add tweenmax for backgroundParallax\r\n\t\t\tvar parallax = TweenMax.fromTo( bg, 1, {y: '-20%'}, {y: '10%',ease:Linear.easeNone});\r\n\t\t\t\r\n\t\t\t// Create scrollmagic scene\r\n\t\t\tvar parallaxScene = new ScrollMagic.Scene({\r\n\t\t\t\ttriggerElement: this, // <-- Use this to select current element\r\n\t\t\t\ttriggerHook: 1,\r\n\t\t\t\tduration:'300%'\r\n\t\t\t})\r\n\t\t\t.setTween(parallax)\r\n\t\t\t.addTo(controller);\r\n\t\t\t\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tscrollbar.addListener(() => {\r\n\t\t\t\t\tparallaxScene.refresh()\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t// animate each\r\n\t\t$('.has-animation').each(function(){\r\n\t\t\tvar $this = $(this);\r\n\t\t\tvar $thisHeight = $(this).height();\r\n\t\t\t\r\n\t\t\tvar scene = new ScrollMagic.Scene({triggerElement:$this[0],duration: $thisHeight})\r\n\t\t\t\t.addTo(controller);\r\n\t\t\t\r\n\t\t\tscene.triggerHook(1)\r\n\t\t\t\r\n\t\t\tscene.on('enter', function(){\r\n\t\t\t\t$this.delay($this.attr('data-delay')).queue(function(next){\r\n\t\t\t\t\tTweenMax.to($this, 0.6, {force3D:true, opacity:1, y:0, scale:1, delay:0.1, ease:Power2.easeOut});\r\n\t\t\t\t\tnext();\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tscene.on('leave', function(event){\r\n\t\t\t\t$this.removeClass('active');\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tscrollbar.addListener(() => {\r\n\t\t\t\t\tscene.refresh()\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t})\r\n\t\t\r\n\t\t$('.has-mask').each(function(){\r\n\t\t\tvar words = $(this).text().split(\" \");\r\n\t\t\tvar total = words.length;\r\n\t\t\t$(this).empty();\r\n\t\t\tfor (index = 0; index < total; index ++){\r\n\t\t\t\t$(this).append($(\"<span /> \").text(words[index]));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t$('.has-mask span').each(function(){\r\n\t\t\tvar words = $(this).text().split(\" \");\r\n\t\t\tvar total = words.length;\r\n\t\t\t$(this).empty();\r\n\t\t\tfor (index = 0; index < total; index ++){\r\n\t\t\t\t$(this).append($(\"<span /> \").text(words[index]));\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t$('.has-mask').each(function(){\r\n\t\t\tvar $this = $(this);\r\n\t\t\tvar $thisHeight = $(this).height();\r\n\t\t\t\r\n\t\t\tvar scene = new ScrollMagic.Scene({triggerElement:$this[0],duration: $thisHeight})\r\n\t\t\t\t.addTo(controller);\r\n\t\t\t\r\n\t\t\tscene.triggerHook(1)\r\n\t\t\t\r\n\t\t\tscene.on('enter', function(){\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tvar tl = new TimelineLite();\r\n\t\t\t\t\t\t\r\n\t\t\t\t$this.find('span > span').each(function(index, element) {\r\n\t\t\t\t\ttl.to(element, 0.6, {y:0, opacity:1, delay:0.1, ease:Power2.easeOut}, index * 0.03)\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tscene.on('leave', function(event){\r\n\t\t\t\t$this.removeClass('active');\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tscrollbar.addListener(() => {\r\n\t\t\t\t\tscene.refresh()\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t})\r\n\t\t\r\n\t\t$('.item-appear').each(function(){\r\n\t\t\tvar $this = $(this);\r\n\t\t\tvar $thisHeight = $(this).height();\r\n\t\t\t\r\n\t\t\tvar scene = new ScrollMagic.Scene({triggerElement:$this[0],duration: $thisHeight})\r\n\t\t\t\t.addTo(controller);\r\n\t\t\t\r\n\t\t\tscene.triggerHook(1)\r\n\t\t\t\r\n\t\t\tscene.on('enter', function(){\t\t\t\t\r\n\t\t\t\t$this.addClass('active');\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tif ($(\"body\").hasClass(\"smooth-scroll\")) {\r\n\t\t\t\tscrollbar.addListener(() => {\r\n\t\t\t\t\tscene.refresh()\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t})\r\n\t\t\r\n\t\t\r\n\t}", "initScroll() {\n const me = this;\n let frameCount = 0;\n super.initScroll(); // Fixes scroll freezing bug on iPad by putting scheduler scroller in its own layer\n\n if (BrowserHelper.isMobileSafari) {\n me.scrollable.element.style.transform = 'translate3d(0, 0, 0)';\n }\n\n me.on('horizontalscroll', ({\n subGrid,\n scrollLeft\n }) => {\n if (me.isPainted && subGrid === me.timeAxisSubGrid && !me.isDestroying && !me.refreshSuspended) {\n me.onSchedulerHorizontalScroll(subGrid, scrollLeft);\n }\n\n frameCount++;\n });\n\n if (me.testPerformance === 'horizontal') {\n me.setTimeout(() => {\n let start = performance.now(),\n // eslint-disable-line no-undef\n scrollSpeed = 5,\n direction = 1;\n const scrollInterval = me.setInterval(() => {\n scrollSpeed = scrollSpeed + 5;\n me.scrollLeft += (10 + Math.floor(scrollSpeed)) * direction;\n\n if (direction === 1 && me.scrollLeft > 5500) {\n direction = -1;\n scrollSpeed = 5;\n }\n\n if (direction === -1 && me.scrollLeft <= 0) {\n const done = performance.now(),\n // eslint-disable-line no-undef\n elapsed = done - start;\n let timePerFrame = elapsed / frameCount,\n fps = 1000 / timePerFrame;\n fps = Math.round(fps * 10) / 10;\n clearInterval(scrollInterval);\n console.log(me.eventPositionMode, me.eventScrollMode, fps + 'fps');\n }\n }, 0);\n }, 500);\n }\n }", "function init() {\n \n if (initDone || !document.body) return;\n\n initDone = true;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * Please duplicate this radar for a Safari fix! \n * rdar://22376037\n * https://openradar.appspot.com/radar?id=4965070979203072\n * \n * Only applies to Safari now, Chrome fixed it in v45:\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n var fullPageElem = document.createElement('div');\n fullPageElem.style.cssText = 'position:absolute; z-index:-10000; ' +\n 'top:0; left:0; right:0; height:' + \n root.scrollHeight + 'px';\n document.body.appendChild(fullPageElem);\n \n // DOM changed (throttled) to fix height\n var pendingRefresh;\n refreshSize = function () {\n if (pendingRefresh) return; // could also be: clearTimeout(pendingRefresh);\n pendingRefresh = setTimeout(function () {\n if (isExcluded) return; // could be running after cleanup\n fullPageElem.style.height = '0';\n fullPageElem.style.height = root.scrollHeight + 'px';\n pendingRefresh = null;\n }, 500); // act rarely to stay fast\n };\n \n setTimeout(refreshSize, 10);\n\n addEvent('resize', refreshSize);\n\n // TODO: attributeFilter?\n var config = {\n attributes: true, \n childList: true, \n characterData: false \n // subtree: true\n };\n\n observer = new MutationObserver(refreshSize);\n observer.observe(body, config);\n\n if (root.offsetHeight <= windowHeight) {\n var clearfix = document.createElement('div'); \n clearfix.style.clear = 'both';\n body.appendChild(clearfix);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = 'scroll';\n html.style.backgroundAttachment = 'scroll';\n }\n}", "function checkScrollNecessary(window_hd,link) {\n if (document.layers || (!document.all && document.getElementById)) {\n var coords = getAnchorPosition(window_hd,link.hash.substring(1));\n eval(window_hd).scrollTo(coords.x,coords.y);\n return false;\n }\n return true;\n}", "function setScrollingArguments0() {\n elem_position = \"0\";\n elem_name = 'body'\n }", "function bindScrollPreventionEvents() {\n document.documentElement.addEventListener('touchmove', eventFilter(\n\n /**\n * Filter for only events on the curtain.\n * @param {Object} event - The event.\n * @returns {Boolean} A value indicating if this is a curtain event.\n */\n function filterTouchMove(event) {\n const isBurgerMenu = closest(event.target, getBurgerMenu(), 25) >= 0;\n return isActiveMenuState() && !isBurgerMenu;\n },\n\n /**\n * Cancel touchstart\n * @param {Object} event - The event.\n * @returns {Boolean} Returns false.\n */\n function touchStartOnCurtain(event) {\n event.preventDefault();\n return false;\n }\n ));\n}", "function doScrollCheck() {\n if (isReady) return;\n try {\n document.documentElement.doScroll(\"left\");\n }\n catch(error) {\n setTimeout(doScrollCheck, 1);\n return;\n }\n ready();\n }", "function enableScroll() {\n $(window).off(\"scroll\", cancelScroll);\n $(window).off(\"wheel\", checkScroll);\n}", "function scrollToStartHandler() {\n scrollTo({top: 0, behavior: 'smooth'});\n}", "function setScrollable()\r\n{\r\n //Added document readiness to set classes if the link toggles\r\n $(document).ready(function()\r\n {\r\n //Event to auto-position next/previous arrowheads\r\n document.scrollableOnResizeListener = function(e)\r\n {\r\n //Exit if the body height has not changed since it's unlikely that the arrowheads need to be repositioned\r\n if (isDefined(document.scrollableBodyHeight))\r\n if (document.scrollableBodyHeight == $(\"body\").height())\r\n return false;\r\n document.scrollableBodyHeight = $(\"body\").height();\r\n \r\n $(\".scrollable\").each(function()\r\n {\r\n var currentElement = $(this);\r\n var buttonTop = (currentElement.offset().top + currentElement.outerHeight() / 2);\r\n var previous = currentElement.children(\".previous:first\");\r\n var next = currentElement.children(\".next:first\");\r\n var previousLeft = previous.hasClass(\"autoPosition\") ? (currentElement.offset().left - previous.outerWidth()) : previous.offset().left;\r\n var nextLeft = next.hasClass(\"autoPosition\") ? (currentElement.offset().left + currentElement.outerWidth()) : next.offset().left;\r\n var nextWidth = next.outerWidth();\r\n\r\n //Position and show scroll buttons only if they're within the visible area of the screen\r\n if ((previousLeft >= 0) && ((nextLeft + nextWidth) < document.body.clientWidth))\r\n {\r\n if (previous.hasClass(\"autoPosition\"))\r\n previous.css({position:\"absolute\", left: previousLeft, top: buttonTop});\r\n if (next.hasClass(\"autoPosition\"))\r\n next.css({position:\"absolute\", left: nextLeft, top: buttonTop});\r\n previous.show();\r\n next.show();\r\n }\r\n else\r\n {\r\n previous.hide();\r\n next.hide();\r\n }\r\n });\r\n };\r\n\r\n //Initialize tinyCarousel\r\n $(\".scrollable\").each(function()\r\n {\r\n var currentElement = $(this);\r\n var classes = currentElement.attr(\"class\");\r\n var millisecondsInASecond = 1000;\r\n var scrollItems = 1;\r\n var scrollTime = 1000;\r\n var animationTime = 150;\r\n var previous = currentElement.children(\".previous:first\");\r\n var next = currentElement.children(\".next:first\");\r\n\r\n //Read custom parameters from the CSS class value\r\n if ((isDefined(document.isMobileOptimized)) && (classes.indexOf(\"mobileScrollItems\") >= 0))\r\n scrollItems = parseInt(classes.split(\"mobileScrollItems\")[1].split(\" \")[0]);\r\n else if (classes.indexOf(\"scrollItems\") >= 0)\r\n scrollItems = parseInt(classes.split(\"scrollItems\")[1].split(\" \")[0]);\r\n if (classes.indexOf(\"scrollTime\") >= 0)\r\n scrollTime = parseInt(classes.split(\"scrollTime\")[1].split(\" \")[0]) * millisecondsInASecond;\r\n \r\n //Assign swipe functionality\r\n currentElement.bind(\"swipeleft\", function(e)\r\n {\r\n $(this).find(\".next:not(.hidden):first\").trigger(\"click\");\r\n });\r\n currentElement.bind(\"swiperight\", function(e)\r\n {\r\n $(this).find(\".previous:not(.hidden):first\").trigger(\"click\");\r\n });\r\n \r\n currentElement.tinycarousel({interval:true, display:scrollItems, intervaltime:scrollTime, duration:animationTime, callback:document.scrollableOnResizeListener});\r\n });\r\n \r\n //Auto-position next/previous arrowheads\r\n document.scrollableOnResizeListener();\r\n $(window).resize(document.scrollableOnResizeListener);\r\n });\r\n}", "function evokeScrollFunction(){\r\n\t\t\tif (movieModeImg.classList.contains(\"a\")){\r\n\t\t\t\tScrollFunction();\r\n\t\t\t}\r\n\t\t}", "function init() {\r\n \r\n if (!document.body) return;\r\n\r\n var body = document.body;\r\n var html = document.documentElement;\r\n var windowHeight = window.innerHeight; \r\n var scrollHeight = body.scrollHeight;\r\n \r\n // check compat mode for root element\r\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\r\n activeElement = body;\r\n \r\n initTest();\r\n initDone = true;\r\n\r\n // Checks if this script is running in a frame\r\n if (top != self) {\r\n isFrame = true;\r\n }\r\n\r\n /**\r\n * This fixes a bug where the areas left and right to \r\n * the content does not trigger the onmousewheel event\r\n * on some pages. e.g.: html, body { height: 100% }\r\n */\r\n else if (scrollHeight > windowHeight &&\r\n (body.offsetHeight <= windowHeight || \r\n html.offsetHeight <= windowHeight)) {\r\n\r\n // DOMChange (throttle): fix height\r\n var pending = false;\r\n var refresh = function () {\r\n if (!pending && html.scrollHeight != document.height) {\r\n pending = true; // add a new pending action\r\n setTimeout(function () {\r\n html.style.height = document.height + 'px';\r\n pending = false;\r\n }, 500); // act rarely to stay fast\r\n }\r\n };\r\n html.style.height = 'auto';\r\n setTimeout(refresh, 10);\r\n\r\n var config = {\r\n attributes: true, \r\n childList: true, \r\n characterData: false \r\n };\r\n\r\n observer = new MutationObserver(refresh);\r\n observer.observe(body, config);\r\n\r\n // clearfix\r\n if (root.offsetHeight <= windowHeight) {\r\n var underlay = document.createElement(\"div\"); \r\n underlay.style.clear = \"both\";\r\n body.appendChild(underlay);\r\n }\r\n }\r\n \r\n // gmail performance fix\r\n if (document.URL.indexOf(\"mail.google.com\") > -1) {\r\n var s = document.createElement(\"style\");\r\n s.innerHTML = \".iu { visibility: hidden }\";\r\n (document.getElementsByTagName(\"head\")[0] || html).appendChild(s);\r\n }\r\n // facebook better home timeline performance\r\n // all the HTML resized images make rendering CPU intensive\r\n else if (document.URL.indexOf(\"www.facebook.com\") > -1) {\r\n var home_stream = document.getElementById(\"home_stream\");\r\n home_stream && (home_stream.style.webkitTransform = \"translateZ(0)\");\r\n } \r\n // disable fixed background\r\n if (!options.fixedBackground && !isExcluded) {\r\n body.style.backgroundAttachment = \"scroll\";\r\n html.style.backgroundAttachment = \"scroll\";\r\n }\r\n}", "_stopScrolling(event) {\n return false;\n }", "_attachScrollSpy() {\n this._scrollCarrier.addEventListener('scroll', this._scrollSpy);\n this._scrollCarrier.addEventListener('resize', this._scrollSpy);\n }", "function startP() {\n\tparallaxSetup();\n\ts = skrollr.init({\n\t\tsmoothScrolling: true,\n\t\tforceHeight: false,\n\t\tskrollrBody: 'main-container',\n\t});\n\tdocument.body.style.overflow = \"inherit\"; // unlock scrolling\n}", "function on_page_load() {\n // Initialize On-scroll Animations\n AOS.init({\n anchorPlacement: 'top-left',\n duration: 600,\n easing: \"ease-in-out\",\n once: true,\n mirror: false,\n disable: 'mobile'\n });\n }", "function lazyLoadOthers() {\n var hasAutoHeightSections = $(AUTO_HEIGHT_SEL)[0] || isResponsiveMode() && $(AUTO_HEIGHT_RESPONSIVE_SEL)[0]; //quitting when it doesn't apply\n\n if (!options.lazyLoading || !hasAutoHeightSections) {\n return;\n } //making sure to lazy load auto-height sections that are in the viewport\n\n\n $(SECTION_SEL + ':not(' + ACTIVE_SEL + ')').forEach(function (section) {\n if (isSectionInViewport(section)) {\n lazyLoad(section);\n }\n });\n }", "function init() {\n \n if (initDone || !document.body) return;\n\n initDone = true;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * Safari 10 fixed it, Chrome fixed it in v45:\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (isOldSafari &&\n scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n var fullPageElem = document.createElement('div');\n fullPageElem.style.cssText = 'position:absolute; z-index:-10000; ' +\n 'top:0; left:0; right:0; height:' + \n root.scrollHeight + 'px';\n document.body.appendChild(fullPageElem);\n \n // DOM changed (throttled) to fix height\n var pendingRefresh;\n refreshSize = function () {\n if (pendingRefresh) return; // could also be: clearTimeout(pendingRefresh);\n pendingRefresh = setTimeout(function () {\n if (isExcluded) return; // could be running after cleanup\n fullPageElem.style.height = '0';\n fullPageElem.style.height = root.scrollHeight + 'px';\n pendingRefresh = null;\n }, 500); // act rarely to stay fast\n };\n \n setTimeout(refreshSize, 10);\n\n addEvent('resize', refreshSize);\n\n // TODO: attributeFilter?\n var config = {\n attributes: true, \n childList: true, \n characterData: false \n // subtree: true\n };\n\n observer = new MutationObserver(refreshSize);\n observer.observe(body, config);\n\n if (root.offsetHeight <= windowHeight) {\n var clearfix = document.createElement('div'); \n clearfix.style.clear = 'both';\n body.appendChild(clearfix);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = 'scroll';\n html.style.backgroundAttachment = 'scroll';\n }\n}", "function onScroll() {\n\t\tlogTrace('invoking onScroll()');\n\n\t\tif (pageLoads === true) {\n\n\t\t\tlogWarn('Cancelled emitted scroll event, because page load is in progress.');\n\t\t\treturn false;\n\t\t}\n\n\t\tlet remainingItems;\n\n\t\tif (\n\t\t\t(currentPageType !== 'following') ||\n\t\t\t(hideFollowing === true)\n\t\t) {\n\n\t\t\tremainingItems = filterDirectory('unprocessed');\n\n\t\t} else {\n\n\t\t\t// invoke directory filter for recommended section\n\t\t\tremainingItems = filterDirectory('recommended');\n\n\t\t\t// mark remaining items as being processed\n\t\t\tfilterDirectory('unprocessed', false);\n\t\t}\n\n\t\tattachHideButtons(remainingItems);\n\t\treturn true;\n\t}", "function enableScroll() { \n window.onscroll = function() {fix_navbar()}; \n}", "function setupAugmentedScrollEvents(element){var SCROLL_END_DELAY=200;var isScrolling;var lastScrollTime;element.on('scroll touchmove',function(){if(!isScrolling){isScrolling=true;$$rAF.throttle(loopScrollEvent);element.triggerHandler('$scrollstart');}element.triggerHandler('$scroll');lastScrollTime=+$mdUtil.now();});function loopScrollEvent(){if(+$mdUtil.now()-lastScrollTime>SCROLL_END_DELAY){isScrolling=false;element.triggerHandler('$scrollend');}else{element.triggerHandler('$scroll');$$rAF.throttle(loopScrollEvent);}}}", "function ScheduleClass_ScrollHandler() {\n\tvar DEBUG_ScheduleClass_ScrollHandler = true;\n\tif ( DEBUG_ScheduleClass_ScrollHandler ) { console.warn('ScheduleClass_ScrollHandler[]'); }\n\tScheduleClass_Open(CurrentSchedule.scheduleId, CurrentSchedule.departmentId);\n} // END ScheduleClass_ScrollHandler", "initScroll() {\n const me = this; // This method may be called early, before render calls it, so ensure that it's\n // only executed once.\n\n if (!me.scrollInitialized) {\n let scrollTop;\n const onScroll = me.createOnFrame(() => {\n scrollTop = me.scrollable.y; // Was getting scroll events in FF where scrollTop was unchanged, ignore those\n\n if (scrollTop !== me._scrollTop) {\n me._scrollTop = scrollTop;\n\n if (!me.scrolling) {\n me.scrolling = true;\n me.eachSubGrid(s => s.suspendResizeMonitor = true);\n }\n\n me.rowManager.updateRenderedRows(scrollTop);\n /**\n * Grid has scrolled vertically\n * @event scroll\n * @param {Grid.view.Grid} grid\n * @param {Number} scrollTop\n */\n\n me.trigger('scroll', {\n scrollTop\n });\n }\n });\n me.scrollInitialized = true;\n me.scrollable.on({\n scroll: onScroll,\n\n scrollend() {\n me.scrolling = false;\n me.eachSubGrid(s => s.suspendResizeMonitor = false);\n }\n\n });\n me.callEachSubGrid('initScroll');\n }\n }", "function polyfill() {\n // return when scrollBehavior interface is supported\n if ('scrollBehavior' in d.documentElement.style) {\n return;\n }\n\n /*\n * globals\n */\n var Element = w.HTMLElement || w.Element;\n var SCROLL_TIME = 400;\n\n /*\n * object gathering original scroll methods\n */\n var original = {\n scroll: w.scroll || w.scrollTo,\n scrollBy: w.scrollBy,\n elScroll: Element.prototype.scroll || scrollElement,\n scrollIntoView: Element.prototype.scrollIntoView\n };\n\n /**\n * changes scroll position inside an element\n * @method scrollElement\n * @param {Number} x\n * @param {Number} y\n */\n function scrollElement(x, y) {\n this.scrollLeft = x;\n this.scrollTop = y;\n }\n\n /**\n * returns result of applying ease math function to a number\n * @method ease\n * @param {Number} k\n * @returns {Number}\n */\n function ease(k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n }\n\n /**\n * indicates if a smooth behavior should be applied\n * @method shouldBailOut\n * @param {Number|Object} x\n * @returns {Boolean}\n */\n function shouldBailOut(x) {\n if (typeof x !== 'object'\n || x === null\n || x.behavior === undefined\n || x.behavior === 'auto'\n || x.behavior === 'instant') {\n // first arg not an object/null\n // or behavior is auto, instant or undefined\n return true;\n }\n\n if (typeof x === 'object'\n && x.behavior === 'smooth') {\n // first argument is an object and behavior is smooth\n return false;\n }\n\n // throw error when behavior is not supported\n throw new TypeError('behavior not valid');\n }\n\n /**\n * finds scrollable parent of an element\n * @method findScrollableParent\n * @param {Element} el\n * @returns {Element} el\n */\n function findScrollableParent(el) {\n while (el = el.parentElement) {\n if (el === d.body || (el.clientHeight < el.scrollHeight ||\n el.clientWidth < el.scrollWidth) && w.getComputedStyle(el, null).overflow !== 'visible')\n return el;\n }\n return null;\n }\n\n /**\n * scrolls window with a smooth behavior\n * @method smoothScroll\n * @param {Object|Node} el\n * @param {Number} x\n * @param {Number} y\n */\n function smoothScroll(el, x, y) {\n if (\"msZoomTo\" in el)\n return el.msZoomTo({ contentX: x, contentY: y, viewportX: 0, viewportY: 0 });\n w.requestAnimationFrame(time => {\n var scrollable;\n var startX;\n var startY;\n var method;\n var startTime = time;\n\n // define scroll context\n if (el === d.body) {\n scrollable = w;\n startX = w.scrollX || w.pageXOffset;\n startY = w.scrollY || w.pageYOffset;\n method = original.scroll;\n } else {\n scrollable = el;\n startX = el.scrollLeft;\n startY = el.scrollTop;\n method = scrollElement;\n }\n\n // scroll looping over a frame\n w.requestAnimationFrame(function step(time) {\n var value;\n var currentX;\n var currentY;\n var elapsed = (time - startTime) / SCROLL_TIME;\n\n // avoid elapsed times higher than one\n elapsed = elapsed > 1 ? 1 : elapsed;\n\n // apply easing to elapsed time\n value = ease(elapsed);\n\n currentX = startX + (x - startX) * value;\n currentY = startY + (y - startY) * value;\n\n method.call(scrollable, currentX, currentY);\n\n // scroll more if we have not reached our destination\n if (elapsed < 1) {\n w.requestAnimationFrame(step);\n }\n });\n });\n }\n\n /*\n * ORIGINAL METHODS OVERRIDES\n */\n\n // w.scroll and w.scrollTo\n w.scroll = w.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scroll.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left,\n ~~arguments[0].top\n );\n };\n\n // w.scrollBy\n w.scrollBy = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollBy.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left + (w.scrollX || w.pageXOffset),\n ~~arguments[0].top + (w.scrollY || w.pageYOffset)\n );\n };\n\n // Element.prototype.scroll and Element.prototype.scrollTo\n Element.prototype.scroll = Element.prototype.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.elScroll.call(\n this,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n var left = arguments[0].left;\n var top = arguments[0].top;\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n this,\n this,\n typeof left === 'number' ? left : this.scrollLeft,\n typeof top === 'number' ? top : this.scrollTop\n );\n };\n\n // Element.prototype.scrollBy\n Element.prototype.scrollBy = function() {\n var arg0 = arguments[0];\n\n if (typeof arg0 === 'object') {\n this.scroll({\n left: arg0.left + this.scrollLeft,\n top: arg0.top + this.scrollTop,\n behavior: arg0.behavior\n });\n } else {\n this.scroll(\n this.scrollLeft + arg0,\n this.scrollTop + arguments[1]\n );\n }\n };\n\n // Element.prototype.scrollIntoView\n Element.prototype.scrollIntoView = function scrollIntoView(arg = undefined) {\n // avoid smooth behavior if not required\n if (shouldBailOut(arg))\n return original.scrollIntoView.apply(this, arguments);\n\n // LET THE SMOOTHNESS BEGIN!\n const { block = \"start\", inline = \"nearest\" } = arg;\n var scrollableParent = this;\n var clientRects = this.getBoundingClientRect();\n while (scrollableParent = findScrollableParent(scrollableParent)) {\n var parentRects;\n if (scrollableParent === d.body)\n parentRects = {\n width: d.documentElement.clientWidth,\n height: d.documentElement.clientHeight,\n top: 0,\n right: d.documentElement.clientWidth,\n bottom: d.documentElement.clientHeight,\n left: 0\n };\n else\n parentRects = scrollableParent.getBoundingClientRect();\n\n let left = 0, top = 0;\n switch (inline) {\n case \"start\":\n left = clientRects.left - parentRects.left;\n break;\n case \"end\":\n left = clientRects.right - parentRects.right;\n break;\n case \"center\":\n left = clientRects.left + clientRects.width / 2 - (parentRects.left + parentRects.width / 2);\n break;\n default:\n if (clientRects.left <= parentRects.left && clientRects.right >= parentRects.right)\n ;\n else if (clientRects.left < parentRects.left && clientRects.width <= parentRects.width || clientRects.right > parentRects.right && clientRects.width >= parentRects.width)\n left = clientRects.left - parentRects.left;\n else if (clientRects.left < parentRects.left && clientRects.width >= parentRects.width || clientRects.right > parentRects.right && clientRects.width <= parentRects.width)\n left = clientRects.right - parentRects.right;\n break;\n }\n switch (block) {\n case \"start\":\n top = clientRects.top - parentRects.top;\n break;\n case \"end\":\n top = clientRects.bottom - parentRects.bottom;\n break;\n case \"center\":\n top = clientRects.top + clientRects.height / 2 - (parentRects.top + parentRects.height / 2);\n break;\n default:\n if (clientRects.top <= parentRects.top && clientRects.bottom >= parentRects.bottom)\n ;\n else if (clientRects.top < parentRects.top && clientRects.height <= parentRects.height || clientRects.bottom > parentRects.bottom && clientRects.height >= parentRects.height)\n top = clientRects.top - parentRects.top;\n else if (clientRects.top < parentRects.top && clientRects.height >= parentRects.height || clientRects.bottom > parentRects.bottom && clientRects.height <= parentRects.height)\n top = clientRects.bottom - parentRects.bottom;\n break;\n }\n let clientWidth, clientHeight;\n if (scrollableParent === d.body) {\n scrollableParent = d.scrollingElement;\n clientWidth = d.documentElement.clientWidth;\n clientHeight = d.documentElement.clientHeight;\n } else {\n clientWidth = scrollableParent.clientWidth;\n clientHeight = scrollableParent.clientHeight;\n }\n const scrollLeft = scrollableParent.scrollLeft;\n const scrollTop = scrollableParent.scrollTop;\n const x = Math.max(0, Math.min(scrollLeft + left, scrollableParent.scrollWidth - clientWidth));\n const y = Math.max(0, Math.min(scrollTop + top, scrollableParent.scrollHeight - clientHeight));\n if (x == scrollLeft && y == scrollTop)\n continue;\n\n smoothScroll(scrollableParent, x, y);\n\n clientRects = {\n width: clientRects.width,\n height: clientRects.height,\n top: clientRects.top - (y - scrollTop),\n right: clientRects.right - (x - scrollLeft),\n bottom: clientRects.bottom - (y - scrollTop),\n left: clientRects.left - (x - scrollLeft)\n };\n }\n };\n }", "disable() {\n if (this._isEnabled) {\n const html = this._document.documentElement;\n const body = this._document.body;\n const htmlStyle = html.style;\n const bodyStyle = body.style;\n const previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';\n const previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';\n this._isEnabled = false;\n htmlStyle.left = this._previousHTMLStyles.left;\n htmlStyle.top = this._previousHTMLStyles.top;\n html.classList.remove('cdk-global-scrollblock');\n // Disable user-defined smooth scrolling temporarily while we restore the scroll position.\n // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior\n htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';\n window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);\n htmlStyle.scrollBehavior = previousHtmlScrollBehavior;\n bodyStyle.scrollBehavior = previousBodyScrollBehavior;\n }\n }", "function smoothScroll(eID) {\n let startY = currentYPosition();\n let stopY = elmYPosition(eID);\n let distance = stopY > startY ? stopY - startY : startY - stopY;\n if (distance < 100) {\n scrollTo(0, stopY);\n return;\n }\n let speed = Math.round(distance / 100);\n if (speed >= 20) speed = 20;\n let step = Math.round(distance / 25);\n let leapY = stopY > startY ? startY + step : startY - step;\n let timer = 0;\n if (stopY > startY) {\n for (let i = startY; i < stopY; i += step) {\n setTimeout(\"window.scrollTo(0, \" + leapY + \")\", timer * speed);\n leapY += step;\n if (leapY > stopY) leapY = stopY;\n timer++;\n }\n return;\n }\n for (let i = startY; i > stopY; i -= step) {\n setTimeout(\"window.scrollTo(0, \" + leapY + \")\", timer * speed);\n leapY -= step;\n if (leapY < stopY) leapY = stopY;\n timer++;\n }\n return false;\n}", "function DOMReadyScrollCheck() {\r\n if (isReady) {\r\n return;\r\n }\r\n\r\n try {\r\n document.documentElement.doScroll(\"left\");\r\n } catch (e) {\r\n setTimeout(DOMReadyScrollCheck, 1);\r\n return;\r\n }\r\n\r\n ready();\r\n }", "function _initialize() {\r\n window._activeLightBox = { destroy: _finish, };\r\n $('.hover-icon').hide();\r\n _start(this,jQueryMatchedObj); // This, in this context, refer to object (link) which the user have clicked\r\n settings.haveShown = false;\r\n settings.onInitFunction(this, jQueryMatchedObj);\r\n return false; // Avoid the browser following the link\r\n }", "function init() {\r\n \r\n if (initDone || !document.body) return;\r\n\r\n initDone = true;\r\n\r\n var body = document.body;\r\n var html = document.documentElement;\r\n var windowHeight = window.innerHeight; \r\n var scrollHeight = body.scrollHeight;\r\n \r\n // check compat mode for root element\r\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\r\n activeElement = body;\r\n \r\n initTest();\r\n\r\n // Checks if this script is running in a frame\r\n if (top != self) {\r\n isFrame = true;\r\n }\r\n\r\n /**\r\n * Please duplicate this radar for a Safari fix! \r\n * rdar://22376037\r\n * https://openradar.appspot.com/radar?id=4965070979203072\r\n * \r\n * Only applies to Safari now, Chrome fixed it in v45:\r\n * This fixes a bug where the areas left and right to \r\n * the content does not trigger the onmousewheel event\r\n * on some pages. e.g.: html, body { height: 100% }\r\n */\r\n else if (scrollHeight > windowHeight &&\r\n (body.offsetHeight <= windowHeight || \r\n html.offsetHeight <= windowHeight)) {\r\n\r\n var fullPageElem = document.createElement('div');\r\n fullPageElem.style.cssText = 'position:absolute; z-index:-10000; ' +\r\n 'top:0; left:0; right:0; height:' + \r\n root.scrollHeight + 'px';\r\n document.body.appendChild(fullPageElem);\r\n \r\n // DOM changed (throttled) to fix height\r\n var pendingRefresh;\r\n refreshSize = function () {\r\n if (pendingRefresh) return; // could also be: clearTimeout(pendingRefresh);\r\n pendingRefresh = setTimeout(function () {\r\n if (isExcluded) return; // could be running after cleanup\r\n fullPageElem.style.height = '0';\r\n fullPageElem.style.height = root.scrollHeight + 'px';\r\n pendingRefresh = null;\r\n }, 500); // act rarely to stay fast\r\n };\r\n \r\n setTimeout(refreshSize, 10);\r\n\r\n addEvent('resize', refreshSize);\r\n\r\n // TODO: attributeFilter?\r\n var config = {\r\n attributes: true, \r\n childList: true, \r\n characterData: false \r\n // subtree: true\r\n };\r\n\r\n observer = new MutationObserver(refreshSize);\r\n observer.observe(body, config);\r\n\r\n if (root.offsetHeight <= windowHeight) {\r\n var clearfix = document.createElement('div'); \r\n clearfix.style.clear = 'both';\r\n body.appendChild(clearfix);\r\n }\r\n }\r\n\r\n // disable fixed background\r\n if (!options.fixedBackground && !isExcluded) {\r\n body.style.backgroundAttachment = 'scroll';\r\n html.style.backgroundAttachment = 'scroll';\r\n }\r\n}", "function pageLoading() {\n //console.log(window.location.hash);\n //show the nav bar\n b.classList.remove(\"scroll-down\");\n // Close the nav panel\n b.classList.remove(\"nav-open\");\n // Set nav button back to closed state\n nb.classList.remove(\"open\");\n // Remove loaded styles for transitions\n b.classList.remove(\"loaded\");\n //unset smooth scroll behaviour before resetting scroll position\n //html.style.cssText = \"scroll-behavior: auto;\";\n\n //reset smooth scroll behaviour before resetting scroll position\n //html.style.cssText = \"scroll-behavior: smooth;\";\n}", "function enableScroll() {\n window.removeEventListener('DOMMouseScroll', preventDefault, false);\n window.removeEventListener(wheelEvent, preventDefault, wheelOpt); \n window.removeEventListener('touchmove', preventDefault, wheelOpt);\n window.removeEventListener('keydown', preventDefaultForScrollKeys, false);\n scrollDisabled = false\n}", "function post_load_setup() {\n update_scroll_pad();\n}", "function initializeAnimation() {\n if (document.querySelector('body > .sidebar'))\n addTransientScrollbars(document.querySelector('body > .sidebar'));\n else\n addTransientScrollbars(document.body);\n\n window.addEventListener('resize', updateAllTransientScrollbars, false);\n window.addEventListener('load', handleBodyLoad, false);\n}", "function enableLazyloader(){\n\t\t\t//if($(window).width() >= 980){\n\t\t\t\t$(window).unbind('scroll').bind('scroll', lazyloader);\n\t\t\t//}\n\t\t}", "function enablePageScroll() {\n\n\tvar scrollTop = parseInt(jQuery('html').css('top'));\n\tjQuery('html').removeClass('noscroll');\n\tjQuery('html,body').scrollTop(-scrollTop);\n}", "setupListener() {\n let timer = null;\n\n const handleScroll = event => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n let elements = document.getElementsByClassName('hidden');\n\n if (elements.length > 0) {\n [].forEach.call(elements, element => {\n if (window.pageYOffset + window.innerHeight >= element.getBoundingClientRect().top + window.pageYOffset) {\n element.classList.remove('hidden');\n }\n });\n } else {\n // No more hidden elements, clean up this listener\n document.removeEventListener('scroll', handleScroll);\n }\n }, 20);\n };\n\n document.addEventListener('scroll', handleScroll);\n }", "function InitializeSection() { \n\t// only allow this window to be open when in the PX frameset or opened by PX???\n\t\n\t// if \"linksdisabled\" is in the URL string, disable all links\n//\tif (location.href.search(/linksdisabled/) > -1) {\n\t\t// ...\n\t\t\n//\t} else {\n\t\tInitializePopInWindow_ebook();\n\t\tDrawSuppLinks();\n//\t}\n}", "function checkForScrolling() {\n\t\t // first get your element by attribute selector\n\t\t var elem = $('[data-anchor=\"' + getHash() + '\"]');\n\t\t console.log(elem);\n\t\t \n\t\t // cheeck if element exists\n\t\t if (elem.length > 0) {\n\t\t $('html, body').stop().animate({\n\t\t scrollTop: elem.offset().top - 20\n\t\t }, 300);\n\t\t }\n\t\t}", "function polyfill() {\n // return when scrollBehavior interface is supported\n if ('scrollBehavior' in d.documentElement.style) {\n return;\n }\n\n /*\n * globals\n */\n var Element = w.HTMLElement || w.Element;\n var SCROLL_TIME = 468;\n\n /*\n * object gathering original scroll methods\n */\n var original = {\n scroll: w.scroll || w.scrollTo,\n scrollBy: w.scrollBy,\n elScroll: Element.prototype.scroll || scrollElement,\n scrollIntoView: Element.prototype.scrollIntoView\n };\n\n /*\n * define timing method\n */\n var now = w.performance && w.performance.now\n ? w.performance.now.bind(w.performance) : Date.now;\n\n /**\n * changes scroll position inside an element\n * @method scrollElement\n * @param {Number} x\n * @param {Number} y\n */\n function scrollElement(x, y) {\n this.scrollLeft = x;\n this.scrollTop = y;\n }\n\n /**\n * returns result of applying ease math function to a number\n * @method ease\n * @param {Number} k\n * @returns {Number}\n */\n function ease(k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n }\n\n /**\n * indicates if a smooth behavior should be applied\n * @method shouldBailOut\n * @param {Number|Object} x\n * @returns {Boolean}\n */\n function shouldBailOut(x) {\n if (typeof x !== 'object'\n || x === null\n || x.behavior === undefined\n || x.behavior === 'auto'\n || x.behavior === 'instant') {\n // first arg not an object/null\n // or behavior is auto, instant or undefined\n return true;\n }\n\n if (typeof x === 'object'\n && x.behavior === 'smooth') {\n // first argument is an object and behavior is smooth\n return false;\n }\n\n // throw error when behavior is not supported\n throw new TypeError('behavior not valid');\n }\n\n /**\n * finds scrollable parent of an element\n * @method findScrollableParent\n * @param {Node} el\n * @returns {Node} el\n */\n function findScrollableParent(el) {\n var isBody;\n var hasScrollableSpace;\n var hasVisibleOverflow;\n\n do {\n el = el.parentNode;\n\n // set condition variables\n isBody = el === d.body;\n hasScrollableSpace =\n el.clientHeight < el.scrollHeight ||\n el.clientWidth < el.scrollWidth;\n hasVisibleOverflow =\n w.getComputedStyle(el, null).overflow === 'visible';\n } while (!isBody && !(hasScrollableSpace && !hasVisibleOverflow));\n\n isBody = hasScrollableSpace = hasVisibleOverflow = null;\n\n return el;\n }\n\n /**\n * self invoked function that, given a context, steps through scrolling\n * @method step\n * @param {Object} context\n */\n function step(context) {\n var time = now();\n var value;\n var currentX;\n var currentY;\n var elapsed = (time - context.startTime) / SCROLL_TIME;\n\n // avoid elapsed times higher than one\n elapsed = elapsed > 1 ? 1 : elapsed;\n\n // apply easing to elapsed time\n value = ease(elapsed);\n\n currentX = context.startX + (context.x - context.startX) * value;\n currentY = context.startY + (context.y - context.startY) * value;\n\n context.method.call(context.scrollable, currentX, currentY);\n\n // scroll more if we have not reached our destination\n if (currentX !== context.x || currentY !== context.y) {\n w.requestAnimationFrame(step.bind(w, context));\n }\n }\n\n /**\n * scrolls window with a smooth behavior\n * @method smoothScroll\n * @param {Object|Node} el\n * @param {Number} x\n * @param {Number} y\n */\n function smoothScroll(el, x, y) {\n var scrollable;\n var startX;\n var startY;\n var method;\n var startTime = now();\n\n // define scroll context\n if (el === d.body) {\n scrollable = w;\n startX = w.scrollX || w.pageXOffset;\n startY = w.scrollY || w.pageYOffset;\n method = original.scroll;\n } else {\n scrollable = el;\n startX = el.scrollLeft;\n startY = el.scrollTop;\n method = scrollElement;\n }\n\n // scroll looping over a frame\n step({\n scrollable: scrollable,\n method: method,\n startTime: startTime,\n startX: startX,\n startY: startY,\n x: x,\n y: y\n });\n }\n\n /*\n * ORIGINAL METHODS OVERRIDES\n */\n\n // w.scroll and w.scrollTo\n w.scroll = w.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scroll.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left,\n ~~arguments[0].top\n );\n };\n\n // w.scrollBy\n w.scrollBy = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollBy.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left + (w.scrollX || w.pageXOffset),\n ~~arguments[0].top + (w.scrollY || w.pageYOffset)\n );\n };\n\n // Element.prototype.scroll and Element.prototype.scrollTo\n Element.prototype.scroll = Element.prototype.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.elScroll.call(\n this,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n var left = arguments[0].left;\n var top = arguments[0].top;\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n this,\n this,\n typeof left === 'number' ? left : this.scrollLeft,\n typeof top === 'number' ? top : this.scrollTop\n );\n };\n\n // Element.prototype.scrollBy\n Element.prototype.scrollBy = function() {\n var arg0 = arguments[0];\n\n if (typeof arg0 === 'object') {\n this.scroll({\n left: arg0.left + this.scrollLeft,\n top: arg0.top + this.scrollTop,\n behavior: arg0.behavior\n });\n } else {\n this.scroll(\n this.scrollLeft + arg0,\n this.scrollTop + arguments[1]\n );\n }\n };\n\n // Element.prototype.scrollIntoView\n Element.prototype.scrollIntoView = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollIntoView.call(\n this,\n arguments[0] === undefined ? true : arguments[0]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n var scrollableParent = findScrollableParent(this);\n var parentRects = scrollableParent.getBoundingClientRect();\n var clientRects = this.getBoundingClientRect();\n\n if (scrollableParent !== d.body) {\n // reveal element inside parent\n smoothScroll.call(\n this,\n scrollableParent,\n scrollableParent.scrollLeft + clientRects.left - parentRects.left,\n scrollableParent.scrollTop + clientRects.top - parentRects.top\n );\n // reveal parent in viewport\n w.scrollBy({\n left: parentRects.left,\n top: parentRects.top,\n behavior: 'smooth'\n });\n } else {\n // reveal element in viewport\n w.scrollBy({\n left: clientRects.left,\n top: clientRects.top,\n behavior: 'smooth'\n });\n }\n };\n }", "function polyfill() {\n // return when scrollBehavior interface is supported\n if ('scrollBehavior' in d.documentElement.style) {\n return;\n }\n\n /*\n * globals\n */\n var Element = w.HTMLElement || w.Element;\n var SCROLL_TIME = 468;\n\n /*\n * object gathering original scroll methods\n */\n var original = {\n scroll: w.scroll || w.scrollTo,\n scrollBy: w.scrollBy,\n elScroll: Element.prototype.scroll || scrollElement,\n scrollIntoView: Element.prototype.scrollIntoView\n };\n\n /*\n * define timing method\n */\n var now = w.performance && w.performance.now\n ? w.performance.now.bind(w.performance) : Date.now;\n\n /**\n * changes scroll position inside an element\n * @method scrollElement\n * @param {Number} x\n * @param {Number} y\n */\n function scrollElement(x, y) {\n this.scrollLeft = x;\n this.scrollTop = y;\n }\n\n /**\n * returns result of applying ease math function to a number\n * @method ease\n * @param {Number} k\n * @returns {Number}\n */\n function ease(k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n }\n\n /**\n * indicates if a smooth behavior should be applied\n * @method shouldBailOut\n * @param {Number|Object} x\n * @returns {Boolean}\n */\n function shouldBailOut(x) {\n if (typeof x !== 'object'\n || x === null\n || x.behavior === undefined\n || x.behavior === 'auto'\n || x.behavior === 'instant') {\n // first arg not an object/null\n // or behavior is auto, instant or undefined\n return true;\n }\n\n if (typeof x === 'object'\n && x.behavior === 'smooth') {\n // first argument is an object and behavior is smooth\n return false;\n }\n\n // throw error when behavior is not supported\n throw new TypeError('behavior not valid');\n }\n\n /**\n * finds scrollable parent of an element\n * @method findScrollableParent\n * @param {Node} el\n * @returns {Node} el\n */\n function findScrollableParent(el) {\n var isBody;\n var hasScrollableSpace;\n var hasVisibleOverflow;\n\n do {\n el = el.parentNode;\n\n // set condition variables\n isBody = el === d.body;\n hasScrollableSpace =\n el.clientHeight < el.scrollHeight ||\n el.clientWidth < el.scrollWidth;\n hasVisibleOverflow =\n w.getComputedStyle(el, null).overflow === 'visible';\n } while (!isBody && !(hasScrollableSpace && !hasVisibleOverflow));\n\n isBody = hasScrollableSpace = hasVisibleOverflow = null;\n\n return el;\n }\n\n /**\n * self invoked function that, given a context, steps through scrolling\n * @method step\n * @param {Object} context\n */\n function step(context) {\n var time = now();\n var value;\n var currentX;\n var currentY;\n var elapsed = (time - context.startTime) / SCROLL_TIME;\n\n // avoid elapsed times higher than one\n elapsed = elapsed > 1 ? 1 : elapsed;\n\n // apply easing to elapsed time\n value = ease(elapsed);\n\n currentX = context.startX + (context.x - context.startX) * value;\n currentY = context.startY + (context.y - context.startY) * value;\n\n context.method.call(context.scrollable, currentX, currentY);\n\n // scroll more if we have not reached our destination\n if (currentX !== context.x || currentY !== context.y) {\n w.requestAnimationFrame(step.bind(w, context));\n }\n }\n\n /**\n * scrolls window with a smooth behavior\n * @method smoothScroll\n * @param {Object|Node} el\n * @param {Number} x\n * @param {Number} y\n */\n function smoothScroll(el, x, y) {\n var scrollable;\n var startX;\n var startY;\n var method;\n var startTime = now();\n\n // define scroll context\n if (el === d.body) {\n scrollable = w;\n startX = w.scrollX || w.pageXOffset;\n startY = w.scrollY || w.pageYOffset;\n method = original.scroll;\n } else {\n scrollable = el;\n startX = el.scrollLeft;\n startY = el.scrollTop;\n method = scrollElement;\n }\n\n // scroll looping over a frame\n step({\n scrollable: scrollable,\n method: method,\n startTime: startTime,\n startX: startX,\n startY: startY,\n x: x,\n y: y\n });\n }\n\n /*\n * ORIGINAL METHODS OVERRIDES\n */\n\n // w.scroll and w.scrollTo\n w.scroll = w.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scroll.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left,\n ~~arguments[0].top\n );\n };\n\n // w.scrollBy\n w.scrollBy = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollBy.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left + (w.scrollX || w.pageXOffset),\n ~~arguments[0].top + (w.scrollY || w.pageYOffset)\n );\n };\n\n // Element.prototype.scroll and Element.prototype.scrollTo\n Element.prototype.scroll = Element.prototype.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.elScroll.call(\n this,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n var left = arguments[0].left;\n var top = arguments[0].top;\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n this,\n this,\n typeof left === 'number' ? left : this.scrollLeft,\n typeof top === 'number' ? top : this.scrollTop\n );\n };\n\n // Element.prototype.scrollBy\n Element.prototype.scrollBy = function() {\n var arg0 = arguments[0];\n\n if (typeof arg0 === 'object') {\n this.scroll({\n left: arg0.left + this.scrollLeft,\n top: arg0.top + this.scrollTop,\n behavior: arg0.behavior\n });\n } else {\n this.scroll(\n this.scrollLeft + arg0,\n this.scrollTop + arguments[1]\n );\n }\n };\n\n // Element.prototype.scrollIntoView\n Element.prototype.scrollIntoView = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollIntoView.call(\n this,\n arguments[0] === undefined ? true : arguments[0]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n var scrollableParent = findScrollableParent(this);\n var parentRects = scrollableParent.getBoundingClientRect();\n var clientRects = this.getBoundingClientRect();\n\n if (scrollableParent !== d.body) {\n // reveal element inside parent\n smoothScroll.call(\n this,\n scrollableParent,\n scrollableParent.scrollLeft + clientRects.left - parentRects.left,\n scrollableParent.scrollTop + clientRects.top - parentRects.top\n );\n // reveal parent in viewport\n w.scrollBy({\n left: parentRects.left,\n top: parentRects.top,\n behavior: 'smooth'\n });\n } else {\n // reveal element in viewport\n w.scrollBy({\n left: clientRects.left,\n top: clientRects.top,\n behavior: 'smooth'\n });\n }\n };\n }", "function polyfill() {\n // return when scrollBehavior interface is supported\n if ('scrollBehavior' in d.documentElement.style) {\n return;\n }\n\n /*\n * globals\n */\n var Element = w.HTMLElement || w.Element;\n var SCROLL_TIME = 468;\n\n /*\n * object gathering original scroll methods\n */\n var original = {\n scroll: w.scroll || w.scrollTo,\n scrollBy: w.scrollBy,\n elScroll: Element.prototype.scroll || scrollElement,\n scrollIntoView: Element.prototype.scrollIntoView\n };\n\n /*\n * define timing method\n */\n var now = w.performance && w.performance.now\n ? w.performance.now.bind(w.performance) : Date.now;\n\n /**\n * changes scroll position inside an element\n * @method scrollElement\n * @param {Number} x\n * @param {Number} y\n */\n function scrollElement(x, y) {\n this.scrollLeft = x;\n this.scrollTop = y;\n }\n\n /**\n * returns result of applying ease math function to a number\n * @method ease\n * @param {Number} k\n * @returns {Number}\n */\n function ease(k) {\n return 0.5 * (1 - Math.cos(Math.PI * k));\n }\n\n /**\n * indicates if a smooth behavior should be applied\n * @method shouldBailOut\n * @param {Number|Object} x\n * @returns {Boolean}\n */\n function shouldBailOut(x) {\n if (typeof x !== 'object'\n || x === null\n || x.behavior === undefined\n || x.behavior === 'auto'\n || x.behavior === 'instant') {\n // first arg not an object/null\n // or behavior is auto, instant or undefined\n return true;\n }\n\n if (typeof x === 'object'\n && x.behavior === 'smooth') {\n // first argument is an object and behavior is smooth\n return false;\n }\n\n // throw error when behavior is not supported\n throw new TypeError('behavior not valid');\n }\n\n /**\n * finds scrollable parent of an element\n * @method findScrollableParent\n * @param {Node} el\n * @returns {Node} el\n */\n function findScrollableParent(el) {\n var isBody;\n var hasScrollableSpace;\n var hasVisibleOverflow;\n\n do {\n el = el.parentNode;\n\n // set condition variables\n isBody = el === d.body;\n hasScrollableSpace =\n el.clientHeight < el.scrollHeight ||\n el.clientWidth < el.scrollWidth;\n hasVisibleOverflow =\n w.getComputedStyle(el, null).overflow === 'visible';\n } while (!isBody && !(hasScrollableSpace && !hasVisibleOverflow));\n\n isBody = hasScrollableSpace = hasVisibleOverflow = null;\n\n return el;\n }\n\n /**\n * self invoked function that, given a context, steps through scrolling\n * @method step\n * @param {Object} context\n */\n function step(context) {\n var time = now();\n var value;\n var currentX;\n var currentY;\n var elapsed = (time - context.startTime) / SCROLL_TIME;\n\n // avoid elapsed times higher than one\n elapsed = elapsed > 1 ? 1 : elapsed;\n\n // apply easing to elapsed time\n value = ease(elapsed);\n\n currentX = context.startX + (context.x - context.startX) * value;\n currentY = context.startY + (context.y - context.startY) * value;\n\n context.method.call(context.scrollable, currentX, currentY);\n\n // scroll more if we have not reached our destination\n if (currentX !== context.x || currentY !== context.y) {\n w.requestAnimationFrame(step.bind(w, context));\n }\n }\n\n /**\n * scrolls window with a smooth behavior\n * @method smoothScroll\n * @param {Object|Node} el\n * @param {Number} x\n * @param {Number} y\n */\n function smoothScroll(el, x, y) {\n var scrollable;\n var startX;\n var startY;\n var method;\n var startTime = now();\n\n // define scroll context\n if (el === d.body) {\n scrollable = w;\n startX = w.scrollX || w.pageXOffset;\n startY = w.scrollY || w.pageYOffset;\n method = original.scroll;\n } else {\n scrollable = el;\n startX = el.scrollLeft;\n startY = el.scrollTop;\n method = scrollElement;\n }\n\n // scroll looping over a frame\n step({\n scrollable: scrollable,\n method: method,\n startTime: startTime,\n startX: startX,\n startY: startY,\n x: x,\n y: y\n });\n }\n\n /*\n * ORIGINAL METHODS OVERRIDES\n */\n\n // w.scroll and w.scrollTo\n w.scroll = w.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scroll.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left,\n ~~arguments[0].top\n );\n };\n\n // w.scrollBy\n w.scrollBy = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollBy.call(\n w,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n w,\n d.body,\n ~~arguments[0].left + (w.scrollX || w.pageXOffset),\n ~~arguments[0].top + (w.scrollY || w.pageYOffset)\n );\n };\n\n // Element.prototype.scroll and Element.prototype.scrollTo\n Element.prototype.scroll = Element.prototype.scrollTo = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.elScroll.call(\n this,\n arguments[0].left || arguments[0],\n arguments[0].top || arguments[1]\n );\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n smoothScroll.call(\n this,\n this,\n arguments[0].left,\n arguments[0].top\n );\n };\n\n // Element.prototype.scrollBy\n Element.prototype.scrollBy = function() {\n var arg0 = arguments[0];\n\n if (typeof arg0 === 'object') {\n this.scroll({\n left: arg0.left + this.scrollLeft,\n top: arg0.top + this.scrollTop,\n behavior: arg0.behavior\n });\n } else {\n this.scroll(\n this.scrollLeft + arg0,\n this.scrollTop + arguments[1]\n );\n }\n };\n\n // Element.prototype.scrollIntoView\n Element.prototype.scrollIntoView = function() {\n // avoid smooth behavior if not required\n if (shouldBailOut(arguments[0])) {\n original.scrollIntoView.call(this, arguments[0] || true);\n return;\n }\n\n // LET THE SMOOTHNESS BEGIN!\n var scrollableParent = findScrollableParent(this);\n var parentRects = scrollableParent.getBoundingClientRect();\n var clientRects = this.getBoundingClientRect();\n\n if (scrollableParent !== d.body) {\n // reveal element inside parent\n smoothScroll.call(\n this,\n scrollableParent,\n scrollableParent.scrollLeft + clientRects.left - parentRects.left,\n scrollableParent.scrollTop + clientRects.top - parentRects.top\n );\n // reveal parent in viewport\n w.scrollBy({\n left: parentRects.left,\n top: parentRects.top,\n behavior: 'smooth'\n });\n } else {\n // reveal element in viewport\n w.scrollBy({\n left: clientRects.left,\n top: clientRects.top,\n behavior: 'smooth'\n });\n }\n };\n }" ]
[ "0.6717258", "0.62701464", "0.61722434", "0.6083799", "0.6054541", "0.6043841", "0.604366", "0.6019213", "0.5999568", "0.5974034", "0.5910879", "0.5906997", "0.58943516", "0.587392", "0.58602786", "0.58303314", "0.5812308", "0.58113873", "0.57987183", "0.5781091", "0.5781091", "0.57718015", "0.5769746", "0.5753829", "0.572277", "0.57223004", "0.57113266", "0.5710674", "0.5709421", "0.5703877", "0.5696274", "0.56946903", "0.56868595", "0.5672316", "0.566879", "0.5644788", "0.5637388", "0.562508", "0.5621584", "0.5591815", "0.5591815", "0.5587408", "0.5584346", "0.5575829", "0.55713147", "0.55659705", "0.5560767", "0.5558594", "0.55529934", "0.55482024", "0.5542388", "0.5522171", "0.55189365", "0.5514861", "0.5509674", "0.5504317", "0.5502363", "0.5495373", "0.5487616", "0.54694927", "0.54691136", "0.5468492", "0.54588836", "0.54512733", "0.54485995", "0.5448281", "0.5448011", "0.5446042", "0.54433465", "0.54428345", "0.5442548", "0.5441453", "0.54405856", "0.54203284", "0.5419918", "0.5410365", "0.5403656", "0.54035246", "0.53998435", "0.5399115", "0.5398584", "0.5389197", "0.53889686", "0.53866816", "0.5375648", "0.53751427", "0.5372739", "0.53708917", "0.5366564", "0.53662604", "0.5362227", "0.53603125", "0.5349486", "0.53462595", "0.5344324", "0.5341295", "0.533472", "0.53339607", "0.53326726", "0.53326726", "0.53326726" ]
0.0
-1
Sets up scrolls array, determines if frames are involved.
function init() { if (!document.body) return; var body = document.body; var html = document.documentElement; var windowHeight = window.innerHeight; var scrollHeight = body.scrollHeight; // check compat mode for root element root = (document.compatMode.indexOf('CSS') >= 0) ? html : body; activeElement = body; initTest(); initDone = true; // Checks if this script is running in a frame if (top != self) { isFrame = true; } /** * This fixes a bug where the areas left and right to * the content does not trigger the onmousewheel event * on some pages. e.g.: html, body { height: 100% } */ else if (scrollHeight > windowHeight && (body.offsetHeight <= windowHeight || html.offsetHeight <= windowHeight)) { html.style.height = 'auto'; setTimeout(function(){}, 10); // clearfix if (root.offsetHeight <= windowHeight) { var underlay = document.createElement("div"); underlay.style.clear = "both"; body.appendChild(underlay); } } // disable fixed background if (!options.fixedBackground && !isExcluded) { body.style.backgroundAttachment = "scroll"; html.style.backgroundAttachment = "scroll"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CameraCommand_Scroll_Initialise()\n{\n\t//remember camera state to restore it later\n\tthis.IsShowingCamera = this.Camera && this.Camera.CameraUI.IsShowing;\n\t//ensure that the target's form is active\n\tForm_SetFocusOnParentWindow(this.TargetHTML);\n\t//loop through all the parents of the html target\n\tfor (var current = Get_ParentForScrollCrop(this.TargetHTML); current; current = Get_ParentForScrollCrop(current))\n\t{\n\t\t//is this scrollable?\n\t\tif (this.IsScrollable(current))\n\t\t{\n\t\t\t//add this to our list of scrollables\n\t\t\tthis.Scrollables.push(current);\n\t\t}\n\t\t//found the display panel?\n\t\tif (current == __SIMULATOR.Interpreter.DisplayPanel)\n\t\t{\n\t\t\t//end loop;\n\t\t\tbreak;\n\t\t}\n\t}\n\t//advance to processing scrollables\n\tthis.State = __CAMERA_CMD_STATE_PROCESS_SCROLLABLES;\n}", "function checkScroll() {\n\n for (let bar of progressBars) {\n var barCoordinates = bar.getBoundingClientRect();\n if ((bar.getAttribute(\"data-visited\") == \"false\") &&\n (barCoordinates.top <= (window.innerHeight - barCoordinates.height))) {\n bar.setAttribute(\"data-visited\", true);\n fillBar(bar);\n } else if (barCoordinates.top > window.innerHeight) {\n bar.setAttribute(\"data-visited\", false);\n initialiseBar(bar);\n }\n\n }\n}", "_checkScrollingControls() {\n if (this.disablePagination) {\n this._disableScrollAfter = this._disableScrollBefore = true;\n }\n else {\n // Check if the pagination arrows should be activated.\n this._disableScrollBefore = this.scrollDistance == 0;\n this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();\n this._changeDetectorRef.markForCheck();\n }\n }", "function onScroll() {\n lastScrollY = window.scrollY;\n requestFrame();\n}", "function judgeScroll(){\n\n for(var j= 1 ; j < num.length ; j++ ){\n if ( num[j] < (wScrollTop + wH) ) {\n for ( var k = 0 ; k <= j ; k++){\n obj.eq(k).addClass('scrollIn');\n }\n }\n }\n }", "function init(){\n height = $(window).height();\n frame.css({\"overflow\":\"hidden\", \"height\": height + \"px\"});\n sections.css({\"height\": height + \"px\"});\n didScroll = true;\n isFocused = true;\n end = - height * ( totalSections ); \n container.stop().animate({marginTop : 0}, 0, easing, function(){\n num = 0;\n didScroll = true;\n });\n }", "function resetMaxScrolls()\n {\n var offsets = getPageOffsets();\n\n var x = offsets[0];\n minXOffset = x;\n maxXOffset = x;\n\n var y = offsets[1];\n minYOffset = y;\n maxYOffset = y;\n }", "function updateMaxScrolls()\n {\n var offsets = getPageOffsets();\n\n var x = offsets[0];\n if (x < minXOffset)\n {\n minXOffset = x;\n } else if (x > maxXOffset)\n {\n maxXOffset = x;\n }\n\n var y = offsets[1];\n if (y < minYOffset)\n {\n minYOffset = y;\n } else if (y > maxYOffset)\n {\n maxYOffset = y;\n }\n }", "function scroll_detection(){\n\n let scroll_displays = document.getElementsByClassName('scroll-display');\n for(i=0; i<scroll_displays.length; i++){\n scroll_displays[i].innerHTML = 'scroll: ' + window.scrollY;\n }\n\n\n}", "function setScrolling()\n {\n scrolling = true;\n }", "checkScrollPos() {\n let fromTop = window.scrollY;\n this.links.forEach(link => {\n let section = document.querySelector(`#${link.el.dataset.section}`);\n if (section.offsetTop <= fromTop && section.offsetTop + section.offsetHeight > fromTop) {\n link.setCurrent();\n } else {\n link.setCurrent(false);\n }\n })\n }", "function scroll_setInitial(element){\n\tscroll_name = element;\n\tscroll_div_element = document.getElementById(element);\n\tif (scroll_array_nms == null){\n\t\tscroll_do();\n\t\treturn;\n\t}\n\tsize = Math.min(10,scroll_array_nms.length);\n\tlwrIndx = Math.min(upprIndx+size-1,scroll_array_nms.length-1)\n\tif (scroll_array_checked == null){\n\t\tscroll_array_checked = new Array(scroll_array_nms.length);\n\t\tfor (var i=0;i<scroll_array_nms.length;i++){\n\t\t\tscroll_array_checked[i] = 0;;\n\t\t}\n\t}\n\tscroll_do();\n}", "function onScroll() { // 2421\n\t\t// unique tick id // 2422\n\t\t++ticks; // 2423\n // 2424\n\t\t// viewport rectangle // 2425\n\t\tvar top = jWindow.scrollTop(), // 2426\n\t\t\tleft = jWindow.scrollLeft(), // 2427\n\t\t\tright = left + jWindow.width(), // 2428\n\t\t\tbottom = top + jWindow.height(); // 2429\n // 2430\n\t\t// determine which elements are in view // 2431\n// + 60 accounts for fixed nav // 2432\n\t\tvar intersections = findElements(top+offset.top + 200, right+offset.right, bottom+offset.bottom, left+offset.left); // 2433\n\t\t$.each(intersections, function(i, element) { // 2434\n // 2435\n\t\t\tvar lastTick = element.data('scrollSpy:ticks'); // 2436\n\t\t\tif (typeof lastTick != 'number') { // 2437\n\t\t\t\t// entered into view // 2438\n\t\t\t\telement.triggerHandler('scrollSpy:enter'); // 2439\n\t\t\t} // 2440\n // 2441\n\t\t\t// update tick id // 2442\n\t\t\telement.data('scrollSpy:ticks', ticks); // 2443\n\t\t}); // 2444\n // 2445\n\t\t// determine which elements are no longer in view // 2446\n\t\t$.each(elementsInView, function(i, element) { // 2447\n\t\t\tvar lastTick = element.data('scrollSpy:ticks'); // 2448\n\t\t\tif (typeof lastTick == 'number' && lastTick !== ticks) { // 2449\n\t\t\t\t// exited from view // 2450\n\t\t\t\telement.triggerHandler('scrollSpy:exit'); // 2451\n\t\t\t\telement.data('scrollSpy:ticks', null); // 2452\n\t\t\t} // 2453\n\t\t}); // 2454\n // 2455\n\t\t// remember elements in view for next tick // 2456\n\t\telementsInView = intersections; // 2457\n\t} // 2458", "setScrollConfig(scrollConfigArray) {\n this._frameScroller.setConfigArray(scrollConfigArray);\n }", "function checkPos() { //Checks the scroll and loads more stories if true\n\tif ($(window).scrollTop() + document.body.clientHeight + 400 >= $(window).height()) {\n\t\tif (loops == 10 && flag == 0) { callBack(); }\n\t}\n}", "initScroll() {\n const me = this;\n let frameCount = 0;\n super.initScroll(); // Fixes scroll freezing bug on iPad by putting scheduler scroller in its own layer\n\n if (BrowserHelper.isMobileSafari) {\n me.scrollable.element.style.transform = 'translate3d(0, 0, 0)';\n }\n\n me.on('horizontalscroll', ({\n subGrid,\n scrollLeft\n }) => {\n if (me.isPainted && subGrid === me.timeAxisSubGrid && !me.isDestroying && !me.refreshSuspended) {\n me.onSchedulerHorizontalScroll(subGrid, scrollLeft);\n }\n\n frameCount++;\n });\n\n if (me.testPerformance === 'horizontal') {\n me.setTimeout(() => {\n let start = performance.now(),\n // eslint-disable-line no-undef\n scrollSpeed = 5,\n direction = 1;\n const scrollInterval = me.setInterval(() => {\n scrollSpeed = scrollSpeed + 5;\n me.scrollLeft += (10 + Math.floor(scrollSpeed)) * direction;\n\n if (direction === 1 && me.scrollLeft > 5500) {\n direction = -1;\n scrollSpeed = 5;\n }\n\n if (direction === -1 && me.scrollLeft <= 0) {\n const done = performance.now(),\n // eslint-disable-line no-undef\n elapsed = done - start;\n let timePerFrame = elapsed / frameCount,\n fps = 1000 / timePerFrame;\n fps = Math.round(fps * 10) / 10;\n clearInterval(scrollInterval);\n console.log(me.eventPositionMode, me.eventScrollMode, fps + 'fps');\n }\n }, 0);\n }, 500);\n }\n }", "recordScrollPositions() {\n this.scrollPositions = [];\n const categoryLabels = this.buttons_.filter((button) => button.isLabel() &&\n this.getParentToolbox_().getCategoryByName(button.getButtonText()));\n for (const button of categoryLabels) {\n if (button.isLabel()) {\n this.scrollPositions.push({\n name: button.getButtonText(),\n position: button.getPosition(),\n });\n }\n }\n }", "function initScroll() {\n this.leftButton.onmousedown = handleScrollClick;\n this.leftButton.onmouseup = handleScrollStop;\n\n this.rightButton.onmousedown = handleScrollClick;\n this.rightButton.onmouseup = handleScrollStop;\n disableNavigation(0,0);\n disableNavigation(0,1);\n var isIEMac = (navigator.appName.indexOf(\"Explorer\") != -1 && navigator.userAgent.indexOf(\"Mac\") != -1);\n if (!isIEMac) {\n document.getElementById(\"theInnerContainer\").style.overflow = \"hidden\";\n }\n}", "function scrollListener() {\n activeInWrapper()\n scrollAnimation()\n}", "initScroll() {\n const me = this,\n scroller = me.scrollable,\n virtualScrollerElement = me.virtualScrollerElement;\n me.syncPartnersOnFrame = me.createOnFrame(me.syncScrollingPartners);\n\n if (BrowserHelper.isFirefox) {\n scroller.element.addEventListener('wheel', event => {\n if (event.deltaX) {\n scroller.x += event.deltaX;\n event.preventDefault();\n }\n });\n }\n\n scroller.yScroller = me.grid.scrollable; // Add our Scroller to the controlling GridScroller\n\n scroller.yScroller.addScroller(scroller); // Create a Scroller for the fake horizontal scrollbar so that it can partner\n\n me.fakeScroller = new Scroller({\n element: virtualScrollerElement,\n overflowX: true\n }); // Sync scrolling partners (header, footer) when our xScroller reports a scroll.\n // Also fires horizontalscroll\n\n scroller.on({\n scroll: 'onSubGridScroll',\n scrollend: 'onSubGridScrollEnd',\n thisObj: me\n });\n scroller.addPartner(me.fakeScroller, 'x');\n\n if (me.header) {\n scroller.addPartner(me.header.scrollable, 'x');\n }\n\n if (me.footer) {\n scroller.addPartner(me.footer.scrollable, 'x');\n }\n }", "function determineScrollbars() {\n var docStyle = inlineStyle(docElem);\n mainBodyRect = bodyGeo.getCurrentBodyInfo();\n\n // -- Clear the scrollbars --\n if (shouldComputeMainBodyScrollbars) {\n defaultOverflowX = defaultOverflowY = 'hidden';\n }\n else {\n defaultOverflowX = docStyle.overflowX;\n defaultOverflowY = docStyle.overflowY;\n }\n\n // -- Set the scrollbars after a delay --\n // If the right side of the visible content is beyond the window width,\n // or the visible content is wider than the window width, show the scrollbars.\n // Doing this after a timeout fixes SC-3722 for some reason -- the toolbar was moving up and down by the height\n // of the horizontal scrollbar. It's as if doing it on a delay gives IE/Edge a chance to\n // deal with zoom first, and then scrollbars separately\n // The delay also allows us to collect several concurrent requests and handle them once.\n clearTimeout(finalizeScrollbarsTimer);\n\n var\n doUseHorizScrollbar = doForceHorizScrollbar || isBodyTooWide(),\n doUseVertScrollbar = doForceVertScrollbar || isBodyTooTall(),\n newOverflowX = doUseHorizScrollbar ? 'scroll' : defaultOverflowX,\n newOverflowY = doUseVertScrollbar ? 'scroll' : defaultOverflowY;\n\n if (newOverflowX !== docStyle.overflowX || newOverflowY !== docStyle.overflowY) {\n if (shouldComputeMainBodyScrollbars) {\n // MS browsers need to reset first, otherwise causes SC-3722\n setOverflow('hidden', 'hidden');\n }\n finalizeScrollbarsTimer = nativeGlobal.setTimeout(function() {\n setOverflow(newOverflowX, newOverflowY);\n }, 0);\n }\n }", "function checkScrollState() {\r\n\tif (yPos2 > yPos) {\r\n\t\tscrolling.state = true; // this will make it stop\r\n\t}\r\n\tif (scrolling.state) {\r\n\t\tstopScroll();\r\n\t} else if (!scrolling.state) {\r\n\t\tstartScroll();\r\n\t}\r\n}", "initSnap(){\n\t\tthis.currentPage = {};\n\t\tconst snap = this.options.snap;\n\n\t\tif (snap.loop) {\n\t\t\tlet children = this.scroller.children;\n\t\t\tif (children.length > 0) {\n\t\t\t\tprepend(children[children.length - 1].cloneNode(true), this.scroller);\n\t\t\t\tthis.scroller.appendChild(children[1].cloneNode(true));\n\t\t\t}\n\t\t}\n\n\t\tlet el = snap.el;\n\t\tif (typeof el === 'string') {\n\t\t\tel = this.scroller.querySelectorAll(el);\n\t\t}\n\n\t\tthis.on('refresh', () => {\n\t\t\tthis.pages = [];\n\n\t\t\tif (!this.wrapperWidth || !this.wrapperHeight || !this.scrollerWidth || !this.scrollerHeight) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlet stepX = snap.stepX || this.wrapperWidth;\n\t\t\tlet stepY = snap.stepY || this.wrapperHeight;\n\n\t\t\tlet x = 0;\n\t\t\tlet y;\n\t\t\tlet cx;\n\t\t\tlet cy;\n\t\t\tlet i = 0;\n\t\t\tlet l;\n\t\t\tlet m = 0;\n\t\t\tlet n;\n\t\t\tlet rect;\n\t\t\tif (!el) {\n\t\t\t\tcx = Math.round(stepX / 2);\n\t\t\t\tcy = Math.round(stepY / 2);\n\n\t\t\t\twhile (x > -this.scrollerWidth) {\n\t\t\t\t\tthis.pages[i] = [];\n\t\t\t\t\tl = 0;\n\t\t\t\t\ty = 0;\n\n\t\t\t\t\twhile (y > -this.scrollerHeight) {\n\t\t\t\t\t\tthis.pages[i][l] = {\n\t\t\t\t\t\t\tx: Math.max(x, this.maxScrollX),\n\t\t\t\t\t\t\ty: Math.max(y, this.maxScrollY),\n\t\t\t\t\t\t\twidth: stepX,\n\t\t\t\t\t\t\theight: stepY,\n\t\t\t\t\t\t\tcx: x - cx,\n\t\t\t\t\t\t\tcy: y - cy\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\ty -= stepY;\n\t\t\t\t\t\tl++;\n\t\t\t\t\t}\n\n\t\t\t\t\tx -= stepX;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tl = el.length;\n\t\t\t\tn = -1;\n\n\t\t\t\tfor (; i < l; i++) {\n\t\t\t\t\trect = getRect(el[i]);\n\t\t\t\t\tif (i === 0 || rect.left <= getRect(el[i - 1]).left) {\n\t\t\t\t\t\tm = 0;\n\t\t\t\t\t\tn++;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!this.pages[m]) {\n\t\t\t\t\t\tthis.pages[m] = [];\n\t\t\t\t\t}\n\n\t\t\t\t\tx = Math.max(-rect.left, this.maxScrollX);\n\t\t\t\t\ty = Math.max(-rect.top, this.maxScrollY);\n\t\t\t\t\tcx = x - Math.round(rect.width / 2);\n\t\t\t\t\tcy = y - Math.round(rect.height / 2);\n\n\t\t\t\t\tthis.pages[m][n] = {\n\t\t\t\t\t\tx: x,\n\t\t\t\t\t\ty: y,\n\t\t\t\t\t\twidth: rect.width,\n\t\t\t\t\t\theight: rect.height,\n\t\t\t\t\t\tcx: cx,\n\t\t\t\t\t\tcy: cy\n\t\t\t\t\t};\n\n\t\t\t\t\tif (x > this.maxScrollX) {\n\t\t\t\t\t\tm++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlet initPage = snap.loop ? 1 : 0;\n\t\t\tthis.goToPage(this.currentPage.pageX || initPage, this.currentPage.pageY || 0, 0);\n\n\t\t\tconst snapThreshold = snap.threshold;\n\t\t\tif (snapThreshold % 1 === 0) {\n\t\t\t\tthis.snapThresholdX = snapThreshold;\n\t\t\t\tthis.snapThresholdY = snapThreshold;\n\t\t\t} else {\n\t\t\t\tthis.snapThresholdX = Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width * snapThreshold);\n\t\t\t\tthis.snapThresholdY = Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height * snapThreshold);\n\t\t\t}\n\t\t});\n\n\t\tthis.on('scrollEnd', () => {\n\t\t\tif (snap.loop) {\n\t\t\t\tif (this.currentPage.pageX === 0) {\n\t\t\t\t\tthis.goToPage(this.pages.length - 2, this.currentPage.pageY, 0);\n\t\t\t\t}\n\t\t\t\tif (this.currentPage.pageX === this.pages.length - 1) {\n\t\t\t\t\tthis.goToPage(1, this.currentPage.pageY, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (snap.listenFlick !== false) {\n\t\t\tthis.on('flick', () => {\n\t\t\t\tlet time = snap.speed || Math.max(\n\t\t\t\t\tMath.max(\n\t\t\t\t\t\tMath.min(Math.abs(this.x - this.startX), 1000),\n\t\t\t\t\t\tMath.min(Math.abs(this.y - this.startY), 1000)\n\t\t\t\t\t), 300);\n\n\t\t\t\tthis.goToPage(\n\t\t\t\t\tthis.currentPage.pageX + this.directionX,\n\t\t\t\t\tthis.currentPage.pageY + this.directionY,\n\t\t\t\t\ttime\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\t}", "function checkScroll() {\n\n slidingImages.forEach(image => {\n // Calculating when image is 50% displayed\n const imageHalfShown = (window.scrollY + window.innerHeight) - image.height/2;\n // Calculating image bottom position in relation to the entire page\n const imageBottom = image.offsetTop + image.height;\n\n // Check if image has been scrolled past 50% height\n const isHalfShown = imageHalfShown > image.offsetTop;\n // Check if image is still visible / not scrolled past\n const isDisplayed = window.scrollY < imageBottom;\n (isHalfShown && isDisplayed) ? image.classList.add('active') : image.classList.remove('active');\n })\n}", "initScroll() {\n this.libraryView.effetLibrarySelect.scrollTop += 1;\n this.libraryView.exempleLibrarySelect.scrollTop += 1;\n this.libraryView.intrumentLibrarySelect.scrollTop += 1;\n }", "function checkScroll() {\n if (hasScrolled) {\n checkNavPosition();\n hasScrolled = false;\n }\n\n // TODO stop this when a page isn't active\n return setTimeout(checkScroll, 100);\n }", "function setCustomScrollBars() {\n /* * * M a l i h u j Q u e r y C u s t o m C o n t e n t S c r o l l e r : BEGIN * * */\n /*http://manos.malihu.gr/jquery-custom-content-scroller/*/\n //$(\".consoleLogOutput\").append('<div class=\"consoleLog_helm\">$(window).load() event starting.</div>');\n if (Compass.Global.isInternetExplorer === false) {\n $(\"#LoanDatesPanelContent_helm\").mCustomScrollbar({\n theme: \"dark\",\n alwaysShowScrollbar: 0, //Disable scrolll bar when there’s nothing to scroll.\n //scrollbarPosition: \"outside\",\n snapAmount: 26,\n snapOffset: 3,\n mouseWheel: {\n deltaFactor: 28,\n normalizeDelta: false\n },\n callbacks: {\n onScrollStart: function () {\n Compass.Helm.hideHelpPopOvers();\n }\n },\n scrollInertia: 500\n\n });\n $(\"#LoanContactsListContainer_helm\").mCustomScrollbar({\n theme: \"dark\",\n alwaysShowScrollbar: 0, //Disable scrolll bar when there’s nothing to scroll.\n //scrollbarPosition: \"outside\",\n snapAmount: 26,\n snapOffset: 3,\n mouseWheel: {\n deltaFactor: 28,\n normalizeDelta: false\n },\n scrollInertia: 500\n\n });\n }\n /* * * M a l i h u j Q u e r y C u s t o m C o n t e n t S c r o l l e r : END * * */\n }", "[scroll]() {\n if (!this.scrollableElement || !this.currentMousePosition) {\n return;\n }\n\n cancelAnimationFrame(this.scrollAnimationFrame);\n\n const { speed, sensitivity } = this.options;\n\n const rect = this.scrollableElement.getBoundingClientRect();\n const bottomCutOff = rect.bottom > window.innerHeight;\n const topCutOff = rect.top < 0;\n const cutOff = topCutOff || bottomCutOff;\n\n const documentScrollingElement = getDocumentScrollingElement();\n const scrollableElement = this.scrollableElement;\n const clientX = this.currentMousePosition.clientX;\n const clientY = this.currentMousePosition.clientY;\n\n if (scrollableElement !== document.body && scrollableElement !== document.documentElement && !cutOff) {\n const { offsetHeight, offsetWidth } = scrollableElement;\n\n if (rect.top + offsetHeight - clientY < sensitivity) {\n scrollableElement.scrollTop += speed;\n } else if (clientY - rect.top < sensitivity) {\n scrollableElement.scrollTop -= speed;\n }\n\n if (rect.left + offsetWidth - clientX < sensitivity) {\n scrollableElement.scrollLeft += speed;\n } else if (clientX - rect.left < sensitivity) {\n scrollableElement.scrollLeft -= speed;\n }\n } else {\n const { innerHeight, innerWidth } = window;\n\n if (clientY < sensitivity) {\n documentScrollingElement.scrollTop -= speed;\n } else if (innerHeight - clientY < sensitivity) {\n documentScrollingElement.scrollTop += speed;\n }\n\n if (clientX < sensitivity) {\n documentScrollingElement.scrollLeft -= speed;\n } else if (innerWidth - clientX < sensitivity) {\n documentScrollingElement.scrollLeft += speed;\n }\n }\n\n this.scrollAnimationFrame = requestAnimationFrame(this[scroll]);\n }", "onScroll() {\n\t\tthis.updateCarouselMetric();\n\n\t\tif (!this.isCallInNextFrameRequested) {\n\t\t\twindow.requestAnimationFrame(this.scrollHandlers.bind(this));\n\t\t\tthis.isCallInNextFrameRequested = true;\n\t\t}\n\t}", "_initScrollTracking() {\n let timeoutHandle = null;\n let lastActiveSection = null;\n window.addEventListener('scroll', (ev) => {\n clearTimeout(timeoutHandle);\n\n timeoutHandle = setTimeout(() => {\n const sections = document.getElementsByTagName('section');\n for (const section of sections) {\n // Finds the first section within the viewport, then breaks\n if (this._isInViewPort(section)) {\n if (section != lastActiveSection) {\n this._clearNavbarSelectedItems(this._navbar);\n\n const sectionName = section.getAttribute('data-name');\n\n this._selectItemForSection(navbar, sectionName);\n }\n \n lastActiveSection = section;\n break;\n }\n }\n }, 300);\n })\n }", "function createScrollBarForAll(){\n if($('body').hasClass(RESPONSIVE)){\n removeResponsiveScrollOverflows();\n }\n else{\n forEachSectionAndSlide(createScrollBar);\n }\n }", "_refreshContainersArrays() {\n const that = this;\n\n for (let i = that._containers.length - 1; i >= 0; i--) {\n const container = that._containers[i];\n\n if (!document.body.contains(container)) {\n that._containers.splice(i, 1);\n\n const index = that._containersFixedHeight.indexOf(container);\n\n if (index > -1) {\n that._containersFixedHeight.splice(index, 1);\n that._additionalScrollButtons.splice(index, 1);\n }\n }\n }\n\n that._checkContainersLength();\n }", "function mkdOnWindowScroll() {\n \n }", "function setScrollingArguments0() {\n elem_position = \"0\";\n elem_name = 'body'\n }", "function setScrollable()\r\n{\r\n //Added document readiness to set classes if the link toggles\r\n $(document).ready(function()\r\n {\r\n //Event to auto-position next/previous arrowheads\r\n document.scrollableOnResizeListener = function(e)\r\n {\r\n //Exit if the body height has not changed since it's unlikely that the arrowheads need to be repositioned\r\n if (isDefined(document.scrollableBodyHeight))\r\n if (document.scrollableBodyHeight == $(\"body\").height())\r\n return false;\r\n document.scrollableBodyHeight = $(\"body\").height();\r\n \r\n $(\".scrollable\").each(function()\r\n {\r\n var currentElement = $(this);\r\n var buttonTop = (currentElement.offset().top + currentElement.outerHeight() / 2);\r\n var previous = currentElement.children(\".previous:first\");\r\n var next = currentElement.children(\".next:first\");\r\n var previousLeft = previous.hasClass(\"autoPosition\") ? (currentElement.offset().left - previous.outerWidth()) : previous.offset().left;\r\n var nextLeft = next.hasClass(\"autoPosition\") ? (currentElement.offset().left + currentElement.outerWidth()) : next.offset().left;\r\n var nextWidth = next.outerWidth();\r\n\r\n //Position and show scroll buttons only if they're within the visible area of the screen\r\n if ((previousLeft >= 0) && ((nextLeft + nextWidth) < document.body.clientWidth))\r\n {\r\n if (previous.hasClass(\"autoPosition\"))\r\n previous.css({position:\"absolute\", left: previousLeft, top: buttonTop});\r\n if (next.hasClass(\"autoPosition\"))\r\n next.css({position:\"absolute\", left: nextLeft, top: buttonTop});\r\n previous.show();\r\n next.show();\r\n }\r\n else\r\n {\r\n previous.hide();\r\n next.hide();\r\n }\r\n });\r\n };\r\n\r\n //Initialize tinyCarousel\r\n $(\".scrollable\").each(function()\r\n {\r\n var currentElement = $(this);\r\n var classes = currentElement.attr(\"class\");\r\n var millisecondsInASecond = 1000;\r\n var scrollItems = 1;\r\n var scrollTime = 1000;\r\n var animationTime = 150;\r\n var previous = currentElement.children(\".previous:first\");\r\n var next = currentElement.children(\".next:first\");\r\n\r\n //Read custom parameters from the CSS class value\r\n if ((isDefined(document.isMobileOptimized)) && (classes.indexOf(\"mobileScrollItems\") >= 0))\r\n scrollItems = parseInt(classes.split(\"mobileScrollItems\")[1].split(\" \")[0]);\r\n else if (classes.indexOf(\"scrollItems\") >= 0)\r\n scrollItems = parseInt(classes.split(\"scrollItems\")[1].split(\" \")[0]);\r\n if (classes.indexOf(\"scrollTime\") >= 0)\r\n scrollTime = parseInt(classes.split(\"scrollTime\")[1].split(\" \")[0]) * millisecondsInASecond;\r\n \r\n //Assign swipe functionality\r\n currentElement.bind(\"swipeleft\", function(e)\r\n {\r\n $(this).find(\".next:not(.hidden):first\").trigger(\"click\");\r\n });\r\n currentElement.bind(\"swiperight\", function(e)\r\n {\r\n $(this).find(\".previous:not(.hidden):first\").trigger(\"click\");\r\n });\r\n \r\n currentElement.tinycarousel({interval:true, display:scrollItems, intervaltime:scrollTime, duration:animationTime, callback:document.scrollableOnResizeListener});\r\n });\r\n \r\n //Auto-position next/previous arrowheads\r\n document.scrollableOnResizeListener();\r\n $(window).resize(document.scrollableOnResizeListener);\r\n });\r\n}", "_checkOverflowScroll() {\n const that = this,\n tabsHeaderSection = that.$tabsHeaderSection,\n tabStrip = that.$.tabStrip,\n overflow = that.overflow;\n\n if (overflow === 'hidden') {\n return;\n }\n\n let overflowing, showNear, showFar;\n\n if (!(that.tabPosition === 'left' || that.tabPosition === 'right')) {\n overflowing = Math.round(tabStrip.scrollWidth) > Math.round(tabStrip.offsetWidth);\n showNear = Math.round(tabStrip.scrollLeft) > 0;\n showFar = Math.round(tabStrip.offsetWidth + tabStrip.scrollLeft) < Math.round(tabStrip.scrollWidth);\n }\n else {\n overflowing = Math.round(tabStrip.scrollHeight) > Math.round(tabStrip.offsetHeight);\n showNear = Math.round(tabStrip.scrollTop) > 0;\n showFar = Math.round(tabStrip.offsetHeight + tabStrip.scrollTop) < Math.round(tabStrip.scrollHeight);\n }\n\n if (overflow === 'scroll') {\n tabsHeaderSection.addClass('scroll-buttons-shown');\n that.$scrollButtonNear.removeClass('jqx-hidden');\n that.$scrollButtonFar.removeClass('jqx-hidden');\n }\n\n if (overflowing) {\n if (overflow === 'auto') {\n if (!tabsHeaderSection.hasClass('scroll-buttons-shown')) {\n tabsHeaderSection.addClass('scroll-buttons-shown');\n }\n\n if (showNear) {\n that.$scrollButtonNear.removeClass('jqx-hidden');\n }\n else {\n that.$scrollButtonNear.addClass('jqx-hidden');\n }\n\n if (showFar) {\n that.$scrollButtonFar.removeClass('jqx-hidden');\n }\n else {\n that.$scrollButtonFar.addClass('jqx-hidden');\n }\n\n if ((showNear && showFar) === false) {\n tabsHeaderSection.addClass('one-button-shown');\n }\n else {\n tabsHeaderSection.removeClass('one-button-shown');\n }\n\n if (!that.disabled) {\n that.$.scrollButtonNear.disabled = false;\n that.$.scrollButtonFar.disabled = false;\n }\n }\n else {\n tabsHeaderSection.removeClass('one-button-shown');\n\n if (that.disabled) {\n that.$.scrollButtonNear.disabled = true;\n that.$.scrollButtonFar.disabled = true;\n }\n else {\n that.$.scrollButtonNear.disabled = !showNear;\n that.$.scrollButtonFar.disabled = !showFar;\n }\n }\n }\n else if (!overflowing && overflow === 'auto' && tabsHeaderSection.hasClass('scroll-buttons-shown')) {\n tabsHeaderSection.removeClass('scroll-buttons-shown');\n tabsHeaderSection.removeClass('one-button-shown');\n that.$scrollButtonNear.addClass('jqx-hidden');\n that.$scrollButtonFar.addClass('jqx-hidden');\n }\n else if (!overflowing && overflow === 'scroll') {\n that.$.scrollButtonNear.disabled = true;\n that.$.scrollButtonFar.disabled = true;\n }\n }", "function updateScroll () {\n if (!elements.li[0]) return;\n if (mode === MODE_STANDARD) {\n updateStandardScroll();\n } else {\n updateVirtualScroll();\n }\n }", "function scrollAnimate() {\n\n\t/*\t\t\t\tassignClassByNumber(\n\t\t\t\t\t\t\t$('#history'), // pass the jQuery object we're animating\n\t\t\t\t\t\t\tgetElementHeightAboveFold($('#history')),\n\t\t\t\t\t\t\thistoryFrames\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\tassignClassByNumber(\n\t\t\t\t\t\t\t$('#timeline-2010 h3'), // pass the jQuery object we're animating\n\t\t\t\t\t\t\tgetElementHeightAboveFold($('#timeline-2010 h3')), // pass the current (relative) scroll position\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t['popped', 300, 99999] // the 'script' array [ css class, scroll start pos, scroll end pos]\n\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t);\n\t\t\t\t\tassignClassByNumber(\n\t\t\t\t\t\t\t$('#timeline-2013 h3'), // pass the jQuery object we're animating\n\t\t\t\t\t\t\tgetElementHeightAboveFold($('#timeline-2013 h3')), // pass the current (relative) scroll position\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t['popped', 300, 99999] // the 'script' array [ css class, scroll start pos, scroll end pos]\n\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\tassignClassByNumber(\n\t\t\t\t\t\t\t$('#timeline-2010 img'), // pass the jQuery object we're animating\n\t\t\t\t\t\t\tgetElementHeightAboveFold($('#timeline-2010 img')), // pass the current (relative) scroll position\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t['popped', 200, 99999] // the 'script' array [ css class, scroll start pos, scroll end pos]\n\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t);\n\t\t\t\t\tassignClassByNumber(\n\t\t\t\t\t\t\t$('#timeline-2013 img'), // pass the jQuery object we're animating\n\t\t\t\t\t\t\tgetElementHeightAboveFold($('#timeline-2013 img')), // pass the current (relative) scroll position\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t['popped', 200, 99999] // the 'script' array [ css class, scroll start pos, scroll end pos]\n\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t);\n\t\t\t\t\t*/\n\t\t\t\t}", "function createScrollBarForAll() {\n if ($('body').hasClass(RESPONSIVE)) {\n removeResponsiveScrollOverflows();\n } else {\n forEachSectionAndSlide(createScrollBar);\n }\n }", "handleScroll() {\n\t\tlet items = document.getElementById(\"items\");\n\t\tlet classes = document.getElementById(\"classes\");\n\t\tlet champions = document.getElementById(\"champions\");\n\n\t\tlet els = [items, classes, champions];\n\t\tlet maxVisiblePercentage = 0;\n\t\tlet maxVisiblePercentageTabIndex = 0;\n\n\t\tfor(let i = 0, len = els.length; i < len; i++) {\n\t\t\tlet elVisiblePercentage = this._getPercentageOfHorizontalVisibleEl(els[i]);\n\t\t\tif(elVisiblePercentage > maxVisiblePercentage) {\n\t\t\t\tmaxVisiblePercentage = elVisiblePercentage;\n\t\t\t\tmaxVisiblePercentageTabIndex = i;\n\t\t\t}\n\t\t}\n\n\t\tif(maxVisiblePercentageTabIndex !== this.state.activeTab) {\n\t\t\tthis.setState({\n\t\t\t\tactiveTab: maxVisiblePercentageTabIndex\n\t\t\t});\n\t\t}\n\t\t\n\t}", "function setScroll() {\n var counter = 0;\n var sliderScroll = slider.scrollLeft;\n for (var i = 0; i < sliderBlocks.length; i++) {\n var currentBlock = sliderBlocks[i];\n if ((sliderScroll + 150) >= currentBlock.offsetLeft && (sliderScroll + 150) <= (currentBlock.offsetLeft + currentBlock.offsetWidth) && sliderScroll > 20) {\n //if user has swiped past the halfway mark on the next block, advance blocks to the one user has scrolled to. Otherwise, reset blocks back to starting point of swipe\n scrollTo = currentBlock.offsetLeft;\n if (sliderScroll < scrollTo) {\n scrollIncrements = 10; //advance\n }\n else {\n scrollIncrements = -10; //retreat\n }\n clearInterval(setSmoothScrollInterval);\n // var currentTime;\n // var prevTime = 0;\n\n // setSmoothScrollInterval = setInterval(autoScroll, 30);\n window.requestAnimationFrame(autoScroll);\n function autoScroll() {\n // var date = new Date();\n // currentTime = date.getTime();\n // if (prevTime != 0) {\n // console.log(\"time between intervals: \"+(currentTime - prevTime));\n // }\n // if (currentTime - prevTime > 50 && prevTime != 0) {\n // debugger;\n // }\n sliderScroll = slider.scrollLeft;\n userScrolling = false;\n var marginOfError = Math.abs(scrollIncrements) - 1;\n if (sliderScroll < (scrollTo - marginOfError) || sliderScroll > (scrollTo + marginOfError)) { //if we still have autoscrolling to do...\n //if within margin of error of target, end scroll\n if (i == (sliderBlocks.length - 2) || counter > 30) { // stop our runnaway animation loop if we are over 30 frames so far, or we are at the last list item\n userScrolling = true;\n userScroll = false;\n setTimeout(function () {\n userScroll = true;\n }, 500);\n clearInterval(setSmoothScrollInterval); //we have reached the end of the list. stop the loop\n }\n else {\n if (scrollIncrements > 0 && sliderScroll > scrollTo) { // we have overshot\n scrollIncrements = -1;\n }\n else if (scrollIncrements < 0 && sliderScroll < scrollTo) { // we have overshot other side\n scrollIncrements = 1;\n }\n counter++;\n slider.scrollLeft = sliderScroll + scrollIncrements; //apply the interpolation step\n if (userScrolling != true) {\n window.requestAnimationFrame(autoScroll);\n }\n }\n }\n else if (sliderScroll < scrollTo || sliderScroll > scrollTo) {// if in the last frame of interpolation\n if (i == (sliderBlocks.length - 2) || counter > 30) { // stop our runnaway animation loop if we are over 30 frames so far, or we are at the last list item\n userScrolling = true;\n userScroll = false;\n setTimeout(function () {\n userScroll = true;\n }, 500);\n clearInterval(setSmoothScrollInterval); //we have reached the end of the list. stop the loop\n }\n else {\n if (scrollIncrements > 0 && sliderScroll > scrollTo) { // we have overshot\n scrollIncrements = -1;\n }\n else if (scrollIncrements < 0 && sliderScroll < scrollTo) { // we have overshot other side\n scrollIncrements = 1;\n }\n counter++; // incremenet our frame counter scoped to this animation sequence\n slider.scrollLeft = sliderScroll + 1; //apply the interpolation step\n if (userScrolling != true) {\n window.requestAnimationFrame(autoScroll);\n }\n }\n }\n else { //we have reached the end of the interpolation. stop the loop\n userScrolling = true;\n userScroll = false;\n setTimeout(function () {\n userScroll = true;\n }, 500);\n clearInterval(setSmoothScrollInterval);\n }\n // date = new Date();\n // prevTime = date.getTime();\n // console.log(\"code execution time: \" + (prevTime - currentTime));\n }\n\n currentBlock = i;\n if (sliderBlocks[i].getElementsByClassName(\"ad_item\").length >= 1) { //hide title if ad is current item in view\n helper.style.opacity = '0';\n parent[input.pause_variable] = true; //unpause ad if its in view\n }\n else {\n helper.style.opacity = '1';\n parent[input.pause_variable] = false; //pause ad when its out of view\n }\n return;\n }\n\n else if (slider.scrollLeft < 20) { // special logic for when you scroll back to the first list item\n scrollTo = 0;\n if (slider.scrollLeft < scrollTo) {\n scrollIncrements = 1;\n }\n else {\n scrollIncrements = -1;\n }\n setSmoothScrollInterval = setInterval(function () {\n sliderScroll = slider.scrollLeft;\n userScrolling = false;\n var marginOfError = 0;\n if (slider.scrollLeft < (scrollTo - marginOfError) || slider.scrollLeft > (scrollTo + marginOfError)) {\n if (i == (sliderBlocks.length - 1) || counter > 30) {\n userScrolling = true;\n userScroll = false;\n setTimeout(function () {\n userScroll = true;\n }, 500);\n clearInterval(setSmoothScrollInterval);\n }\n else {\n slider.scrollLeft = slider.scrollLeft + scrollIncrements;\n }\n }\n else {\n userScrolling = true;\n userScroll = false;\n setTimeout(function () {\n userScroll = true;\n }, 500);\n clearInterval(setSmoothScrollInterval);\n }\n }, 15);\n currentBlock = 0;\n return;\n }\n }\n // if ((currentBlock + 1) <= sliderBlocks.length) {\n // slider.scrollLeft = sliderBlocks[currentBlock + 1].offsetLeft - 5;\n // currentBlock = (currentBlock + 1);\n // }\n }", "function scrollCheck() {\r\n\tif ((window.pageYOffset + window.innerHeight) >= document.body.clientHeight) {\r\n\t\tloadNextPage();\r\n\t}\r\n}", "_checkOverflow() {\n const that = this,\n scrollViewer = that.$.scrollViewer,\n overflow = that.overflow;\n\n if (that.scrollMode === 'scrollbar' || overflow === 'hidden') {\n scrollViewer.refresh();\n return;\n }\n\n const oldScrollTop = scrollViewer.scrollTop;\n\n if (overflow === 'auto') {\n scrollViewer.$.removeClass('scroll-buttons-shown');\n scrollViewer.$.removeClass('one-button-shown');\n that.$scrollButtonNear.addClass('jqx-hidden');\n that.$scrollButtonFar.addClass('jqx-hidden');\n }\n\n const overflowing = Math.round(scrollViewer.$.scrollViewerContentContainer.offsetHeight) >\n Math.round(scrollViewer.$.scrollViewerContainer.offsetHeight),\n showNear = Math.round(scrollViewer.scrollTop) > 0,\n showFar = Math.round(scrollViewer.$.scrollViewerContainer.offsetHeight + scrollViewer.scrollTop) <\n Math.round(scrollViewer.$.scrollViewerContentContainer.offsetHeight);\n\n if (overflowing) {\n if (overflow === 'auto') {\n scrollViewer.$.addClass('scroll-buttons-shown');\n\n if (showNear) {\n that.$scrollButtonNear.removeClass('jqx-hidden');\n }\n\n if (showFar) {\n that.$scrollButtonFar.removeClass('jqx-hidden');\n }\n\n if ((showNear && showFar) === false) {\n scrollViewer.$.addClass('one-button-shown');\n }\n\n if (!that.disabled) {\n that.$.scrollButtonNear.disabled = false;\n that.$.scrollButtonFar.disabled = false;\n }\n\n scrollViewer.scrollTop = oldScrollTop;\n }\n else {\n that.$scrollButtonNear.removeClass('jqx-hidden');\n that.$scrollButtonFar.removeClass('jqx-hidden');\n\n if (that.disabled) {\n that.$.scrollButtonNear.disabled = true;\n that.$.scrollButtonFar.disabled = true;\n }\n else {\n that.$.scrollButtonNear.disabled = !showNear;\n that.$.scrollButtonFar.disabled = !showFar;\n }\n }\n }\n else if (overflow === 'scroll') {\n that.$.scrollButtonNear.disabled = true;\n that.$.scrollButtonFar.disabled = true;\n }\n\n scrollViewer.refresh();\n }", "function recalcVars(){\n\tviewPortHeight = $(window).height();\n\tscrollFromTop = $(window).scrollTop();\n\tscrollFromBottom = (parseInt(scrollFromTop)+parseInt(viewPortHeight));\n var elems = $(elementsToTrack);\n\tfor (var i = 0; i < elems.length; i++) {\n checkInViewport(scrollFromBottom, elems[i]);\n \t}\n}", "function mkdfOnWindowScroll() {\n\n }", "requestUpdateScroll() {\n requestAnimationFrame(function() {\n const scrollableElements =\n this.shadowRoot.querySelectorAll('[scrollable]');\n for (let i = 0; i < scrollableElements.length; i++) {\n this.updateScroll_(/** @type {!HTMLElement} */ (scrollableElements[i]));\n }\n }.bind(this));\n }", "function ListView_UpdateScrollBars(theObject)\n{\n\t//content exits?\n\tif (theObject.Content && theObject.Content.Item_Panel)\n\t{\n\t\t//set scrollbars\n\t\ttheObject.Content.Item_Panel.style.overflowX = Get_Bool(theObject.Properties[__NEMESIS_PROPERTY_HORIZONTAL_SCROLL_BAR], true) ? \"auto\" : \"hidden\";\n\t\ttheObject.Content.Item_Panel.style.overflowY = Get_Bool(theObject.Properties[__NEMESIS_PROPERTY_VERTICAL_SCROLL_BAR], true) ? \"auto\" : \"hidden\";\n\t\t//has vertical scroll position?\n\t\tvar vertical = Get_String(theObject.Properties[__NEMESIS_PROPERTY_VERTICAL_SCROLL_POS], null);\n\t\t//and horizontal\n\t\tvar horizontal = Get_String(theObject.Properties[__NEMESIS_PROPERTY_HORIZONTAL_SCROLL_POS], null);\n\t\t//at least one is valid?\n\t\tif (vertical != null || horizontal != null)\n\t\t{\n\t\t\t//vertical?\n\t\t\tif (vertical != null)\n\t\t\t{\n\t\t\t\t//set vertical\n\t\t\t\ttheObject.Content.Item_Panel.scrollTop = vertical * theObject.Content.Item_Height;\n\t\t\t}\n\t\t\t//has horizontal\n\t\t\tif (horizontal != null)\n\t\t\t{\n\t\t\t\t//set horizontal\n\t\t\t\ttheObject.Content.Item_Panel.scrollLeft = horizontal;\n\t\t\t\t//has header panel?\n\t\t\t\tif (theObject.Content.Header_Panel)\n\t\t\t\t{\n\t\t\t\t\t//match scroll pos\n\t\t\t\t\ttheObject.Content.Header_Panel.scrollLeft = theObject.Content.Item_Panel.scrollLeft;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//trigger a repaint\n\t\t\tListView_Paint(theObject);\n\t\t}\n\t}\n}", "_setScrollBars() {\r\n const that = this;\r\n\r\n if (!that._scrollView) {\r\n that._scrollView = new LW.Utilities.Scroll(that.$.timeline, that.$.horizontalScrollBar, that.$.verticalScrollBar);\r\n }\r\n\r\n const vScrollBar = that._scrollView.vScrollBar,\r\n hScrollBar = that._scrollView.hScrollBar;\r\n\r\n hScrollBar.$.addClass('lw-hidden');\r\n vScrollBar.$.addClass('lw-hidden');\r\n\r\n //Cancel Style/Resize observers of the ScrollBars\r\n vScrollBar.hasStyleObserver = false;\r\n hScrollBar.hasStyleObserver = false;\r\n vScrollBar.hasResizeObserver = false;\r\n hScrollBar.hasResizeObserver = false;\r\n\r\n hScrollBar.wait = false;\r\n vScrollBar.wait = false;\r\n\r\n //Refreshes the ScrollBars\r\n that._refresh();\r\n }", "function onScroll() {\n\t\t// unique tick id\n\t\t++ticks;\n\n\t\t// viewport rectangle\n\t\tvar top = jWindow.scrollTop(),\n\t\t\tleft = jWindow.scrollLeft(),\n\t\t\tright = left + jWindow.width(),\n\t\t\tbottom = top + jWindow.height();\n\n\t\t// determine which elements are in view\n// + 60 accounts for fixed nav\n\t\tvar intersections = findElements(top+offset.top + 200, right+offset.right, bottom+offset.bottom, left+offset.left);\n\t\t$.each(intersections, function(i, element) {\n\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick != 'number') {\n\t\t\t\t// entered into view\n\t\t\t\telement.triggerHandler('scrollSpy:enter');\n\t\t\t}\n\n\t\t\t// update tick id\n\t\t\telement.data('scrollSpy:ticks', ticks);\n\t\t});\n\n\t\t// determine which elements are no longer in view\n\t\t$.each(elementsInView, function(i, element) {\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick == 'number' && lastTick !== ticks) {\n\t\t\t\t// exited from view\n\t\t\t\telement.triggerHandler('scrollSpy:exit');\n\t\t\t\telement.data('scrollSpy:ticks', null);\n\t\t\t}\n\t\t});\n\n\t\t// remember elements in view for next tick\n\t\telementsInView = intersections;\n\t}", "function onScroll() {\n\t\t// unique tick id\n\t\t++ticks;\n\n\t\t// viewport rectangle\n\t\tvar top = jWindow.scrollTop(),\n\t\t\tleft = jWindow.scrollLeft(),\n\t\t\tright = left + jWindow.width(),\n\t\t\tbottom = top + jWindow.height();\n\n\t\t// determine which elements are in view\n// + 60 accounts for fixed nav\n\t\tvar intersections = findElements(top+offset.top + 200, right+offset.right, bottom+offset.bottom, left+offset.left);\n\t\t$.each(intersections, function(i, element) {\n\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick != 'number') {\n\t\t\t\t// entered into view\n\t\t\t\telement.triggerHandler('scrollSpy:enter');\n\t\t\t}\n\n\t\t\t// update tick id\n\t\t\telement.data('scrollSpy:ticks', ticks);\n\t\t});\n\n\t\t// determine which elements are no longer in view\n\t\t$.each(elementsInView, function(i, element) {\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick == 'number' && lastTick !== ticks) {\n\t\t\t\t// exited from view\n\t\t\t\telement.triggerHandler('scrollSpy:exit');\n\t\t\t\telement.data('scrollSpy:ticks', null);\n\t\t\t}\n\t\t});\n\n\t\t// remember elements in view for next tick\n\t\telementsInView = intersections;\n\t}", "function onScroll() {\n\t\t// unique tick id\n\t\t++ticks;\n\n\t\t// viewport rectangle\n\t\tvar top = jWindow.scrollTop(),\n\t\t\tleft = jWindow.scrollLeft(),\n\t\t\tright = left + jWindow.width(),\n\t\t\tbottom = top + jWindow.height();\n\n\t\t// determine which elements are in view\n// + 60 accounts for fixed nav\n\t\tvar intersections = findElements(top+offset.top + 200, right+offset.right, bottom+offset.bottom, left+offset.left);\n\t\t$.each(intersections, function(i, element) {\n\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick != 'number') {\n\t\t\t\t// entered into view\n\t\t\t\telement.triggerHandler('scrollSpy:enter');\n\t\t\t}\n\n\t\t\t// update tick id\n\t\t\telement.data('scrollSpy:ticks', ticks);\n\t\t});\n\n\t\t// determine which elements are no longer in view\n\t\t$.each(elementsInView, function(i, element) {\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick == 'number' && lastTick !== ticks) {\n\t\t\t\t// exited from view\n\t\t\t\telement.triggerHandler('scrollSpy:exit');\n\t\t\t\telement.data('scrollSpy:ticks', null);\n\t\t\t}\n\t\t});\n\n\t\t// remember elements in view for next tick\n\t\telementsInView = intersections;\n\t}", "function onScroll() {\n\t\t// unique tick id\n\t\t++ticks;\n\n\t\t// viewport rectangle\n\t\tvar top = jWindow.scrollTop(),\n\t\t\tleft = jWindow.scrollLeft(),\n\t\t\tright = left + jWindow.width(),\n\t\t\tbottom = top + jWindow.height();\n\n\t\t// determine which elements are in view\n// + 60 accounts for fixed nav\n\t\tvar intersections = findElements(top+offset.top + 200, right+offset.right, bottom+offset.bottom, left+offset.left);\n\t\t$.each(intersections, function(i, element) {\n\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick != 'number') {\n\t\t\t\t// entered into view\n\t\t\t\telement.triggerHandler('scrollSpy:enter');\n\t\t\t}\n\n\t\t\t// update tick id\n\t\t\telement.data('scrollSpy:ticks', ticks);\n\t\t});\n\n\t\t// determine which elements are no longer in view\n\t\t$.each(elementsInView, function(i, element) {\n\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\tif (typeof lastTick == 'number' && lastTick !== ticks) {\n\t\t\t\t// exited from view\n\t\t\t\telement.triggerHandler('scrollSpy:exit');\n\t\t\t\telement.data('scrollSpy:ticks', null);\n\t\t\t}\n\t\t});\n\n\t\t// remember elements in view for next tick\n\t\telementsInView = intersections;\n\t}", "initScroll() {\n const me = this,\n scroller = me.scrollable,\n virtualScrollerElement = me.virtualScrollerElement;\n\n if (BrowserHelper.isFirefox) {\n scroller.element.addEventListener('wheel', (event) => {\n if (event.deltaX) {\n scroller.x += event.deltaX;\n event.preventDefault();\n }\n });\n }\n\n scroller.yScroller = me.grid.scrollable;\n\n // Add our Scroller to the controlling GridScroller\n scroller.yScroller.addScroller(scroller);\n\n // Create a Scroller for the fake horizontal scrollbar so that it can partner\n me.fakeScroller = new Scroller({\n element: virtualScrollerElement,\n overflowX: true\n });\n\n // Fire horizontalscroll when our xScroller reports a scroll\n scroller.on('scroll', me.createOnFrame(me.syncScrollingPartners));\n scroller.on('scrollend', () => {\n me.scrolling = false;\n });\n\n scroller.addPartner(me.fakeScroller, 'x');\n if (me.header) {\n scroller.addPartner(me.header.scrollable, 'x');\n }\n if (me.footer) {\n scroller.addPartner(me.footer.scrollable, 'x');\n }\n }", "function watch() {\n\t\t$(WIN).on(\"scroll\", function() {\n\t\t\tscrolling = true;\n\t\t});\n\t\trAF(function() {\n\t\t\tvar top = $(DOC).scrollTop(),\n\t\t\t\ti = 0,\n\t\t\t\tj = container.length,\n\t\t\t\tcurObj = null;\n\n\t\t\tif (scrolling) {\n\t\t\t\tscrolling = false;\n\t\t\t\tfor (; i < j; i++) {\n\t\t\t\t\tcurObj = container[i];\n\t\t\t\t\tif (curObj.origin.is(\":hidden\")) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (top > curObj[\"pos\"] - curObj[\"setTop\"]) {\n\t\t\t\t\t\tif (curObj.sticky) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcurObj.sticky = true;\n\t\t\t\t\t\t\tcurObj.origin.css({\n\t\t\t\t\t\t\t\t\"position\": \"fixed\",\n\t\t\t\t\t\t\t\t\"top\": curObj[\"setTop\"]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t$.isFunction(curObj[\"begin\"]) && curObj.begin.call(curObj[\"origin\"]);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (curObj.sticky) {\n\t\t\t\t\t\t\tcurObj.origin.css({\n\t\t\t\t\t\t\t\t\"position\": curObj[\"position\"],\n\t\t\t\t\t\t\t\t\"top\": curObj[\"top\"]\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tcurObj.sticky = false;\n\t\t\t\t\t\t\t$.isFunction(curObj[\"end\"]) && curObj.end.call(curObj[\"origin\"]);\n\t\t\t\t\t\t} else {\n\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\trAF(arguments.callee);\n\t\t});\n\t}", "function scrollerInit() {\n var scrollerIds = detectScrollers();\n mapScrollers(scrollerIds);\n listenForScroll();\n}", "function UpdateScrollThumbs()\n{\n UpdateVerticalScrollVisual();\n UpdateHorizontalScrollVisual();\n}", "scrollChanged(indices) {\n this.internalControlEventOccurred('ArrayScrolledEvent', indices);\n }", "function onScroll() {\n\t\t\t// unique tick id\n\t\t\t++ticks;\n\t\n\t\t\t// viewport rectangle\n\t\t\tvar top = jWindow.scrollTop(),\n\t\t\t\tleft = jWindow.scrollLeft(),\n\t\t\t\tright = left + jWindow.width(),\n\t\t\t\tbottom = top + jWindow.height();\n\t\n\t\t\t// determine which elements are in view\n\t// + 60 accounts for fixed nav\n\t\t\tvar intersections = findElements(top+offset.top + 200, right+offset.right, bottom+offset.bottom, left+offset.left);\n\t\t\t$.each(intersections, function(i, element) {\n\t\n\t\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\t\tif (typeof lastTick != 'number') {\n\t\t\t\t\t// entered into view\n\t\t\t\t\telement.triggerHandler('scrollSpy:enter');\n\t\t\t\t}\n\t\n\t\t\t\t// update tick id\n\t\t\t\telement.data('scrollSpy:ticks', ticks);\n\t\t\t});\n\t\n\t\t\t// determine which elements are no longer in view\n\t\t\t$.each(elementsInView, function(i, element) {\n\t\t\t\tvar lastTick = element.data('scrollSpy:ticks');\n\t\t\t\tif (typeof lastTick == 'number' && lastTick !== ticks) {\n\t\t\t\t\t// exited from view\n\t\t\t\t\telement.triggerHandler('scrollSpy:exit');\n\t\t\t\t\telement.data('scrollSpy:ticks', null);\n\t\t\t\t}\n\t\t\t});\n\t\n\t\t\t// remember elements in view for next tick\n\t\t\telementsInView = intersections;\n\t\t}", "function handleScroll() {\n\t\t\tdoWithContentFrame(null, function(contentFrame) {\n\t\t\t\tvar scrollable = contentFrame.getAttribute('repotitionOnScroll');\n\t\t\t\tscrollable = (scrollable == undefined || scrollable == true || scrollable == 'true');\n\n\t\t\t\tif (contentFrame.style.display == 'inline') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tvar scrollX = 0;\n\t\t\t\t\t\tvar scrollY = 0;\n\t\t\t\t\t\tvar mainWin = window;\n\t\t\t\t\t\tif (navigator.appName == 'Netscape') {\n\t\t\t\t\t\t\tscrollX = mainWin.pageXOffset;\n\t\t\t\t\t\t\tscrollY = mainWin.pageYOffset;\n\t\t\t\t\t\t} else if (navigator.appName == 'Microsoft Internet Explorer') {\n\t\t\t\t\t\t\tscrollX = mainWin.document.documentElement.scrollLeft;\n\t\t\t\t\t\t\tscrollY = mainWin.document.documentElement.scrollTop;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// TODO: Ideally if scrollable is false then iFrame needs to be skipped, but it did not work\n\t\t\t\t\t\t// Even if iFrame is adsolutely positioned it gets scrolled automativally. So, reverse the scroll effect\n\t\t\t\t\t\tif (!scrollable) {\n\t\t\t\t\t\t\tscrollX = 0 - scrollX;\n\t\t\t\t\t\t\tscrollY = 0 - scrollY;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar iFrame = getIframe(contentFrame.getAttribute('name'));\n\t\t\t\t\t\tif (iFrame != null) {\n\t\t\t\t\t\t\tvar newX = iFrame.posX - scrollX;\n\t\t\t\t\t\t\tvar newY = iFrame.posY - scrollY;\n\n\t\t\t\t\t\t\tvar diffX = BridgeUtils.getAbsoluteSize(contentFrame.style.left) - newX;\n\t\t\t\t\t\t\tif (diffX < 0) {\n\t\t\t\t\t\t\t\tdiffX = -diffX;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tvar diffY = BridgeUtils.getAbsoluteSize(contentFrame.style.top) - newY;\n\t\t\t\t\t\t\tif (diffY < 0) {\n\t\t\t\t\t\t\t\tdiffY = -diffY;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// It's observed that sometimes scrollX/scrollY is 1 when there is no scroll on UI.\n\t\t\t\t\t\t\t// Also, 1px is very small, can be ignored. So check if it's greater than 1\n\t\t\t\t\t\t\tif (diffX > 1 || diffY > 1) {\n\t\t\t\t\t\t\t\tBridgeUtils.log(\"Repositioning iFrame '\" + contentFrame.getAttribute('name') + \"' to [\" + newX + \", \" + newY + \"]\");\n\n\t\t\t\t\t\t\t\tcontentFrame.style.left = newX + \"px\";\n\t\t\t\t\t\t\t\tcontentFrame.style.top = newY + \"px\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\talert(\"Error in handling browser scroll - \" + e, \"e\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function detectScroll(){\n\t\t\t\t\t\t\tvar depth = window.analytics.reporting.getScrollDepth();\n\t\t\t\t\t\t\tvar depthMsg = 'current scroll depth: <b>' + depth + '%</b>';\n\t\t\t\t\t\t\t// console.log('SCROLL % in view: ' + depth + '%'); \n\t\t\t\t\t\t\t$('#waf-report-scroll-page-perc').html(depthMsg);\n\t\t\t\t\t\t}", "function preparePage() {\n offsets = [];\n links = [];\n\n $('.js-scroll-indicator').find('a').each((index, el) => {\n const $link = $(el);\n\n // Calculate the element's offset from the top of the page while anchored\n const $linkTarget = $($link.attr('href'));\n if ($linkTarget.length) {\n // Add jQuery object and offset value to link map\n offsets.push($linkTarget.offset().top);\n links.push($link);\n }\n });\n}", "initScroll() {\n const me = this; // This method may be called early, before render calls it, so ensure that it's\n // only executed once.\n\n if (!me.scrollInitialized) {\n let scrollTop;\n const onScroll = me.createOnFrame(() => {\n scrollTop = me.scrollable.y; // Was getting scroll events in FF where scrollTop was unchanged, ignore those\n\n if (scrollTop !== me._scrollTop) {\n me._scrollTop = scrollTop;\n\n if (!me.scrolling) {\n me.scrolling = true;\n me.eachSubGrid(s => s.suspendResizeMonitor = true);\n }\n\n me.rowManager.updateRenderedRows(scrollTop);\n /**\n * Grid has scrolled vertically\n * @event scroll\n * @param {Grid.view.Grid} grid\n * @param {Number} scrollTop\n */\n\n me.trigger('scroll', {\n scrollTop\n });\n }\n });\n me.scrollInitialized = true;\n me.scrollable.on({\n scroll: onScroll,\n\n scrollend() {\n me.scrolling = false;\n me.eachSubGrid(s => s.suspendResizeMonitor = false);\n }\n\n });\n me.callEachSubGrid('initScroll');\n }\n }", "function loop() {\n \n elementsToShow.forEach(function (element) {\n if (isElementInViewport(element)) {\n element.classList.add('is-visible')\n } else {\n // element.classList.remove('is-visible')\n return\n }\n })\n \n scroll(loop)\n }", "function repositionFrames() {\n if (focusedFrame === 0) {\n frames[2].element.css('left', page * 100 - 100 + '%');\n frames[0].element.css('left', page * 100 + '%');\n frames[1].element.css('left', page * 100 + 100 + '%');\n\n frames[2].pageId = page === 0 ? scope[listIdentifier].length - 1 : page - 1;\n frames[0].pageId = page;\n frames[1].pageId = page === scope[listIdentifier].length - 1 ? 0 : page + 1;\n } else if (focusedFrame === 1) {\n frames[0].element.css('left', page * 100 - 100 + '%');\n frames[1].element.css('left', page * 100 + '%');\n frames[2].element.css('left', page * 100 + 100 + '%');\n\n frames[0].pageId = page === 0 ? scope[listIdentifier].length - 1 : page - 1;\n frames[1].pageId = page;\n frames[2].pageId = page === scope[listIdentifier].length - 1 ? 0 : page + 1;\n } else {\n frames[1].element.css('left', page * 100 - 100 + '%');\n frames[2].element.css('left', page * 100 + '%');\n frames[0].element.css('left', page * 100 + 100 + '%');\n\n frames[1].pageId = page === 0 ? scope[listIdentifier].length - 1 : page - 1;\n frames[2].pageId = page;\n frames[0].pageId = page === scope[listIdentifier].length - 1 ? 0 : page + 1;\n }\n\n for (var i = 0; i < 3; i++) {\n frames[i].scope[valueIdentifier] = scope[listIdentifier][frames[i].pageId];\n }\n }", "function adjustScroll()\r\n{\r\n\tif ((browserName == browserIE) || (browserName == browserFF) || (browserName == browserSafari))\r\n\t{\r\n\t\tAdjustScroll();\r\n\t}\r\n}", "setScroll() {\n this.canScroll = true\n }", "function createScrollListeners() {\n window.addEventListener(\"scroll\", onScroll);\n\n setupScroll(window);\n let subject = document.querySelectorAll(\".subject\");\n\n // go over the subjects and add enter listeners\n for (let i = 0; i < subject.length; i++) {\n const element = subject[i];\n // element.addEventListener(\"viewfull\", subjectIn);\n // element.addEventListener(\"viewenter\", subjectIn);\n element.addEventListener(\"viewtop\", subjectIn);\n element.addEventListener(\"viewbottom\", subjectIn);\n }\n\n // about.addEventListener(\"viewenter\", subjectIn);\n about.addEventListener(\"viewtop\", subjectIn);\n about.addEventListener(\"viewbottom\", subjectIn);\n}", "function Simulator_OnScroll()\n{\n\t//has simulator?\n\tif (__SIMULATOR)\n\t{\n\t\t//has controller?\n\t\tif (__CONTROLLER)\n\t\t{\n\t\t\t//notify the controller\n\t\t\t__CONTROLLER.notifyOnScrollResize();\n\t\t}\n\t\t//has designer controller?\n\t\tif (__DESIGNER_CONTROLLER)\n\t\t{\n\t\t\t//notify the controller\n\t\t\t__DESIGNER_CONTROLLER.NotifyOnScrollResize();\n\t\t}\n\t\t//and update our fixed display objects\n\t\t__SIMULATOR.Interpreter.UpdateFixedObjectPositions();\n\t}\n}", "function scrollOverDocument(pages, horizontally = false) {\n const size = pages.reduce(function(max, { div, }) {\n return Math.max(\n max,\n horizontally ?\n div.offsetLeft + div.clientLeft + div.clientWidth :\n div.offsetTop + div.clientTop + div.clientHeight);\n }, 0);\n // The numbers (7 and 5) are mostly arbitrary, not magic: increase them to\n // make scrollOverDocument tests faster, decrease them to make the tests\n // more scrupulous, and keep them coprime to reduce the chance of missing\n // weird edge case bugs.\n for (let i = 0; i < size; i += 7) {\n // The screen height (or width) here (j - i) doubles on each inner loop\n // iteration; again, this is just to test an interesting range of cases\n // without slowing the tests down to check every possible case.\n for (let j = i + 5; j < size; j += (j - i)) {\n const scroll = horizontally ? {\n scrollTop: 0,\n scrollLeft: i,\n clientHeight: 10000,\n clientWidth: j - i,\n } : {\n scrollTop: i,\n scrollLeft: 0,\n clientHeight: j - i,\n clientWidth: 10000,\n };\n expect(getVisibleElements(scroll, pages, false, horizontally))\n .toEqual(slowGetVisibleElements(scroll, pages));\n }\n }\n }", "function setScrollers(container, state) {\n if (!state) state = $.data(container, 'tabs');\n var opts = state.options;\n var header = state.dc.header;\n var tool = header.children('div.tabs-tool');\n var sLeft = header.children('div.tabs-scroller-left');\n var sRight = header.children('div.tabs-scroller-right');\n var wrap = state.dc.wrap;\n\n // set the tool height\n tool._outerHeight(header.outerHeight() - (opts.plain ? 2 : 0));\n\n var tabsWidth = 0;\n $('ul.tabs li', header).each(function () {\n tabsWidth += $(this).outerWidth(true);\n });\n var cWidth = header.width() - tool.outerWidth();\n\n if (tabsWidth > cWidth) {\n sLeft.show();\n sRight.show();\n tool.css('right', sRight.outerWidth());\n wrap.css({\n marginLeft: sLeft.outerWidth(),\n marginRight: sRight.outerWidth() + tool.outerWidth(),\n left: 0,\n width: cWidth - sLeft.outerWidth() - sRight.outerWidth()\n });\n } else {\n sLeft.hide();\n sRight.hide();\n tool.css('right', 0);\n wrap.css({\n marginLeft: 0,\n marginRight: tool.outerWidth(),\n left: 0,\n width: cWidth\n });\n wrap.scrollLeft(0);\n }\n }", "function findElements(){\n\t\tfindingElements = true;\n\n\t\tanimatedElements = document.querySelectorAll(\"*[data-animation]\");\n\t\tscrollElems = [];\n\t\tfor (let elem of animatedElements){\n\t\t\tdecodeStyles(elem);\n\t\t\tif (elem.dataset.animation.includes(\"scroll\")){\n\t\t\t\tscrollElems.push(elem);\n\t\t\t}\n\t\t}\n\n\t\tfindingElements = false;\n\t}", "initScroll() {\n let me = this,\n frameCount = 0;\n\n super.initScroll();\n\n me.on('horizontalscroll', ({ subGrid, scrollLeft }) => {\n if (me.rendered && subGrid === me.timeAxisSubGrid) {\n me.onSchedulerHorizontalScroll(subGrid, scrollLeft);\n }\n frameCount++;\n });\n\n if (me.testPerformance === 'horizontal') {\n setTimeout(() => {\n let start = performance.now(), // eslint-disable-line no-undef\n scrollSpeed = 5,\n direction = 1;\n\n let scrollInterval = setInterval(() => {\n scrollSpeed = scrollSpeed + 5;\n\n me.scrollLeft += (10 + Math.floor(scrollSpeed)) * direction;\n\n if (direction === 1 && me.scrollLeft > 5500) {\n direction = -1;\n scrollSpeed = 5;\n }\n\n if (direction === -1 && me.scrollLeft <= 0) {\n let done = performance.now(), // eslint-disable-line no-undef\n elapsed = done - start;\n\n let timePerFrame = elapsed / frameCount,\n fps = 1000 / timePerFrame;\n\n fps = Math.round(fps * 10) / 10;\n\n clearInterval(scrollInterval);\n\n console.log(me.eventPositionMode, me.eventScrollMode, fps + 'fps');\n }\n }, 0);\n }, 500);\n }\n }", "function showOnScroll() {\n elementsToShow.forEach(function (element) {\n\n // check if the element is inside the view port, by using the defined function\n if (isElementInViewport(element)) {\n element.classList.add('is-visible');\n\n // check if the its the last enroll button\n if (element.dataset.type && element.dataset.type === 'last_enroll_button') {\n element.classList.add('pulse');\n }\n }\n\n else {\n element.classList.remove('is-visible');\n\n // check if the its the last enroll button\n if (element.dataset.type && element.dataset.type === 'last_enroll_button') {\n element.classList.remove('pulse');\n }\n }\n })\n\n // revursive, everytime something happens with the requestAnimationFrame\n scroll(showOnScroll);\n}", "function _callScrollHandlers(){\n\t\tfor (var i = 0; i < _scrollHandlers.length; i++) {\n\t\t\t(_scrollHandlers[i].handler)(_lastScrollEvent);\n\t\t}\n\t\t_pendingScrollHandlers = false;\n\t\t_lastScrollEvent = null;\n\t}", "function scrollArray(elem, left, top) {\r\n \r\n directionCheck(left, top);\r\n\r\n if (options.accelerationMax != 1) {\r\n var now = Date.now();\r\n var elapsed = now - lastScroll;\r\n if (elapsed < options.accelerationDelta) {\r\n var factor = (1 + (50 / elapsed)) / 2;\r\n if (factor > 1) {\r\n factor = Math.min(factor, options.accelerationMax);\r\n left *= factor;\r\n top *= factor;\r\n }\r\n }\r\n lastScroll = Date.now();\r\n } \r\n \r\n // push a scroll command\r\n que.push({\r\n x: left, \r\n y: top, \r\n lastX: (left < 0) ? 0.99 : -0.99,\r\n lastY: (top < 0) ? 0.99 : -0.99, \r\n start: Date.now()\r\n });\r\n \r\n // don't act if there's a pending queue\r\n if (pending) {\r\n return;\r\n } \r\n\r\n var scrollWindow = (elem === document.body);\r\n \r\n var step = function (time) {\r\n \r\n var now = Date.now();\r\n var scrollX = 0;\r\n var scrollY = 0; \r\n \r\n for (var i = 0; i < que.length; i++) {\r\n \r\n var item = que[i];\r\n var elapsed = now - item.start;\r\n var finished = (elapsed >= options.animationTime);\r\n \r\n // scroll position: [0, 1]\r\n var position = (finished) ? 1 : elapsed / options.animationTime;\r\n \r\n // easing [optional]\r\n if (options.pulseAlgorithm) {\r\n position = pulse(position);\r\n }\r\n \r\n // only need the difference\r\n var x = (item.x * position - item.lastX) >> 0;\r\n var y = (item.y * position - item.lastY) >> 0;\r\n \r\n // add this to the total scrolling\r\n scrollX += x;\r\n scrollY += y; \r\n \r\n // update last values\r\n item.lastX += x;\r\n item.lastY += y;\r\n \r\n // delete and step back if it's over\r\n if (finished) {\r\n que.splice(i, 1); i--;\r\n } \r\n }\r\n\r\n // scroll left and top\r\n if (scrollWindow) {\r\n window.scrollBy(scrollX, scrollY);\r\n } \r\n else {\r\n if (scrollX) elem.scrollLeft += scrollX;\r\n if (scrollY) elem.scrollTop += scrollY; \r\n }\r\n \r\n // clean up if there's nothing left to do\r\n if (!left && !top) {\r\n que = [];\r\n }\r\n \r\n if (que.length) { \r\n requestFrame(step, elem, (1000 / options.frameRate + 1)); \r\n } else { \r\n pending = false;\r\n }\r\n };\r\n \r\n // start a new queue of actions\r\n requestFrame(step, elem, 0);\r\n pending = true;\r\n}", "function scrollArray(elem, left, top) {\r\n \r\n directionCheck(left, top);\r\n\r\n if (options.accelerationMax != 1) {\r\n var now = Date.now();\r\n var elapsed = now - lastScroll;\r\n if (elapsed < options.accelerationDelta) {\r\n var factor = (1 + (50 / elapsed)) / 2;\r\n if (factor > 1) {\r\n factor = Math.min(factor, options.accelerationMax);\r\n left *= factor;\r\n top *= factor;\r\n }\r\n }\r\n lastScroll = Date.now();\r\n } \r\n \r\n // push a scroll command\r\n que.push({\r\n x: left, \r\n y: top, \r\n lastX: (left < 0) ? 0.99 : -0.99,\r\n lastY: (top < 0) ? 0.99 : -0.99, \r\n start: Date.now()\r\n });\r\n \r\n // don't act if there's a pending queue\r\n if (pending) {\r\n return;\r\n } \r\n\r\n var scrollWindow = (elem === document.body);\r\n \r\n var step = function (time) {\r\n \r\n var now = Date.now();\r\n var scrollX = 0;\r\n var scrollY = 0; \r\n \r\n for (var i = 0; i < que.length; i++) {\r\n \r\n var item = que[i];\r\n var elapsed = now - item.start;\r\n var finished = (elapsed >= options.animationTime);\r\n \r\n // scroll position: [0, 1]\r\n var position = (finished) ? 1 : elapsed / options.animationTime;\r\n \r\n // easing [optional]\r\n if (options.pulseAlgorithm) {\r\n position = pulse(position);\r\n }\r\n \r\n // only need the difference\r\n var x = (item.x * position - item.lastX) >> 0;\r\n var y = (item.y * position - item.lastY) >> 0;\r\n \r\n // add this to the total scrolling\r\n scrollX += x;\r\n scrollY += y; \r\n \r\n // update last values\r\n item.lastX += x;\r\n item.lastY += y;\r\n \r\n // delete and step back if it's over\r\n if (finished) {\r\n que.splice(i, 1); i--;\r\n } \r\n }\r\n\r\n // scroll left and top\r\n if (scrollWindow) {\r\n window.scrollBy(scrollX, scrollY);\r\n } \r\n else {\r\n if (scrollX) elem.scrollLeft += scrollX;\r\n if (scrollY) elem.scrollTop += scrollY; \r\n }\r\n \r\n // clean up if there's nothing left to do\r\n if (!left && !top) {\r\n que = [];\r\n }\r\n \r\n if (que.length) { \r\n requestFrame(step, elem, (1000 / options.frameRate + 1)); \r\n } else { \r\n pending = false;\r\n }\r\n };\r\n \r\n // start a new queue of actions\r\n requestFrame(step, elem, 0);\r\n pending = true;\r\n}", "function checkAnimated() {\n win.scroll(function () {\n didScroll = true;\n });\n\n var animateInInterval = setInterval(function () {\n if (didScroll) {\n didScroll = false;\n playInView(send, bounceIn);\n }\n if (hits === elementsToAnimate) {\n clearInterval(animateInInterval);\n }\n }, 250);\n }", "function resetScroll() {\n var viewer = $find(viewerID);\n\n // Check the isLoading client-side property before using the reportAreaScrollPosition property.\n // Otherwise an exception will be thrown.\n if (!viewer.get_isLoading()) {\n viewer.set_reportAreaScrollPosition(new Sys.UI.Point(0,0));\n }\n}", "function init() {\n tooltips();\n onePageScroll();\n scrollAnchor();\n}", "function checkForScroll(event) {\r\n // get distance from the top of the page to the bottom of the visible area\r\n var distanceFromBottomToTop = window.scrollY + window.innerHeight;\r\n\r\n // for each image\r\n images.forEach(function(image) {\r\n // get the simple image, compute its distance from the top of the page\r\n var distanceFromImageToTop = image.offsetTop;\r\n // if the distance computed prior to this value surpasses the vertical position of the image\r\n if(distanceFromBottomToTop > distanceFromImageToTop) {\r\n // add class of image-scroll, transitioning the image\r\n image.classList.add(\"image-scroll\");\r\n }\r\n });\r\n /*\r\n // alternatively an arrow function can be used; but since I'm not used to ES6, I'll stick to what I undestand better, at least for now\r\n images.forEach(image => {\r\n image.classList.add(\"image-scroll\");\r\n });\r\n */\r\n\r\n // for the single text div, compute its distance from the top\r\n var distanceFromTextToTop = text.offsetTop;\r\n // if the distance from the top of the page reaches this value\r\n if(distanceFromBottomToTop > distanceFromTextToTop) {\r\n // add class of text-scroll, transitioning the div\r\n text.classList.add(\"text-scroll\");\r\n }\r\n\r\n}", "function checkScrollPos() {\n var hasScrolledToBottom;\n if (location.search.indexOf(\"scroll=infinite\") >> -1) {\n // if the url has infinite search configured, remove moreButton\n moreButton.hide();\n }\n if (\n //determines we have scrolled near the bottom of the page (with a 250px buffer);\n $(document).scrollTop() + $(window).height() >=\n $(document).height() - 250\n ) {\n hasScrolledToBottom = true;\n }\n if (hasScrolledToBottom) {\n nextResponse();\n } else {\n setTimeout(checkScrollPos, 500);\n }\n }", "function initScrollAnimation() {\n const sections = document.querySelectorAll('.js-scroll')\n const windowHalf = window.innerHeight / 2\n\n if(sections.length) {\n function animationScroll() {\n sections.forEach(section => {\n const sectionTop = section.getBoundingClientRect().top\n const isSectionVisible = (sectionTop - windowHalf) < 0\n \n if (isSectionVisible) {\n section.classList.add('active')\n } else {\n section.classList.remove('active')\n }\n })\n }\n animationScroll()\n \n window.addEventListener('scroll', animationScroll)\n }\n}", "function updateScroll(){\n var treshold = 5;\n ux.scroll.offsetPrevious = ux.scroll.offset;\n ux.scroll.offset = $(window).scrollTop();\n \n // We compare distance traveled with a defined treshold and report scroll direction\n if( ux.scroll.offset - ux.scroll.offsetPrevious > treshold ){\n ux.scroll.direction = 'down';\n } else if( ux.scroll.offsetPrevious - ux.scroll.offset > treshold ){\n ux.scroll.direction = 'up';\n }\n \n ux.viewport.visibleTop = ux.scroll.offset\n ux.viewport.visibleBottom = ux.viewport.height + ux.scroll.offset;\n}", "_attachScrollSpy() {\n this._scrollCarrier.addEventListener('scroll', this._scrollSpy);\n this._scrollCarrier.addEventListener('resize', this._scrollSpy);\n }", "function scroll_init() {\n setupStickyfill();\n\n\t// call a resize on load to update width/height/position of elements\n\thandleResize();\n\n\t// setup the scrollama instance and bind scrollama event handlers\n\tscroller\n\t\t.setup({\n\t\t\tcontainer: document.querySelector('#scroll'), // our outermost scrollytelling element\n\t\t\tgraphic: '.scroll__graphic', // the graphic\n\t\t\ttext: '.scroll__text', // the step container\n\t\t\tstep: '.scroll__text .step', // the step elements\n\t\t\toffset: 0.5, // set the trigger to be 2/3 way down screen\n\t\t\tdebug: false, // display the trigger offset for testing\n\t\t})\n\t\t.onStepEnter(handleStepEnter);\n\n\t// setup resize event\n\twindow.addEventListener('resize', handleResize);\n}", "function getPageScroll(){\r\tvar yScroll;\r yScroll = self.pageYOffset;\r arrayPageScroll = new Array('',yScroll) \r\treturn arrayPageScroll;\r}", "function scrollHandler()\n {\n updateMaxScrolls();\n activityHandler();\n }", "function scrollArray(elem, left, top) {\n \n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (50 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: Date.now()\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (1000 / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top) {\n \n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (50 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: Date.now()\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (1000 / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollCalculations(){\n winScr = $(window).scrollTop();\n var headerComp = ($('header').outerHeight()<=200)?$('header').outerHeight():200;\n if(winScr>=headerComp && !$('.header-demo').length) {\n if(!$('header').hasClass('fixed-header')){\n $('header').addClass('fixed-header');\n if(!_ismobile) closePopups();\n }\n }\n else {\n if($('header').hasClass('fixed-header')){\n $('header').removeClass('fixed-header');\n if(!_ismobile) closePopups();\n }\n }\n $('nav').addClass('disable-animation');\n }", "function updateScreenshotScroll() {\r\n if (!isMobile) { \r\n $('#screenshots').slimScroll(slimOptionsContent); \r\n }\r\n}", "function post_load_setup() {\n update_scroll_pad();\n}", "_checkOverflow() {\n const that = this,\n overflow = that.overflow;\n\n if (overflow === 'hidden') {\n return;\n }\n\n const overflowing = Math.round(that.$.mainContainer.scrollHeight) > Math.round(that.$.mainContainer.offsetHeight),\n showNear = Math.round(that.$.mainContainer.scrollTop) > 0,\n showFar = Math.round(that.$.mainContainer.offsetHeight + that.$.mainContainer.scrollTop) < Math.round(that.$.mainContainer.scrollHeight);\n\n if (overflowing) {\n if (overflow === 'auto') {\n if (!that.$mainContainer.hasClass('scroll-buttons-shown')) {\n that.$mainContainer.addClass('scroll-buttons-shown');\n }\n\n if (showNear) {\n that.$scrollButtonNear.removeClass('jqx-hidden');\n }\n else {\n that.$scrollButtonNear.addClass('jqx-hidden');\n }\n\n if (showFar) {\n that.$scrollButtonFar.removeClass('jqx-hidden');\n }\n else {\n that.$scrollButtonFar.addClass('jqx-hidden');\n }\n\n if ((showNear && showFar) === false) {\n that.$mainContainer.addClass('one-button-shown');\n }\n else {\n that.$mainContainer.removeClass('one-button-shown');\n }\n\n if (!that.disabled) {\n that.$.scrollButtonNear.disabled = false;\n that.$.scrollButtonFar.disabled = false;\n }\n }\n else {\n that.$scrollButtonNear.removeClass('jqx-hidden');\n that.$scrollButtonFar.removeClass('jqx-hidden');\n\n if (that.disabled) {\n that.$.scrollButtonNear.disabled = true;\n that.$.scrollButtonFar.disabled = true;\n }\n else {\n that.$.scrollButtonNear.disabled = !showNear;\n that.$.scrollButtonFar.disabled = !showFar;\n }\n }\n }\n else if (!overflowing && overflow === 'auto' && that.$mainContainer.hasClass('scroll-buttons-shown')) {\n that.$mainContainer.removeClass('scroll-buttons-shown');\n that.$mainContainer.removeClass('one-button-shown');\n that.$scrollButtonNear.addClass('jqx-hidden');\n that.$scrollButtonFar.addClass('jqx-hidden');\n }\n else if (!overflowing && overflow === 'scroll') {\n that.$.scrollButtonNear.disabled = true;\n that.$.scrollButtonFar.disabled = true;\n }\n }", "function getPageScroll()\r\n{\r\n\tvar yScroll;\r\n\tif (self.pageYOffset) \r\n\t{\r\n\t\tyScroll = self.pageYOffset;\r\n\t} \r\n\telse if (document.documentElement && document.documentElement.scrollTop)\r\n\t{\t\r\n\t\t// Explorer 6 Strict\r\n\t\tyScroll = document.documentElement.scrollTop;\r\n\t} \r\n\telse if (document.body) \r\n\t{\t\r\n\t\t// all other Explorers\r\n\t\tyScroll = document.body.scrollTop;\r\n\t}\r\n\tarrayPageScroll = new Array('',yScroll)\r\n\treturn arrayPageScroll;\r\n}", "function loop(){\n DisplayedEl.forEach(function(elem){\n if(IsElementInViewport(elem)){\n elem.classList.add(\"visible\");\n }else{\n elem.classList.remove(\"visible\");\n }\n });\n scroll(loop);\n}", "onScroll_() {\n if (this.$.container.scrollTop > 0 &&\n this.domRepeat_.items.length !== this.items.length) {\n const aboveScrollTopItemCount =\n Math.round(this.$.container.scrollTop / this.domItemAverageHeight_());\n\n // Ensure we have sufficient items to fill the current scroll position and\n // a full view following our current position.\n if (aboveScrollTopItemCount + this.chunkItemThreshold >\n this.domRepeat_.items.length) {\n this.ensureDomItemsAvailableStartingAt_(aboveScrollTopItemCount);\n }\n }\n }", "function init() {\n \n if (!document.body) return;\n\n var body = document.body;\n var html = document.documentElement;\n var windowHeight = window.innerHeight; \n var scrollHeight = body.scrollHeight;\n \n // check compat mode for root element\n root = (document.compatMode.indexOf('CSS') >= 0) ? html : body;\n activeElement = body;\n \n initTest();\n initDone = true;\n\n // Checks if this script is running in a frame\n if (top != self) {\n isFrame = true;\n }\n\n /**\n * This fixes a bug where the areas left and right to \n * the content does not trigger the onmousewheel event\n * on some pages. e.g.: html, body { height: 100% }\n */\n else if (scrollHeight > windowHeight &&\n (body.offsetHeight <= windowHeight || \n html.offsetHeight <= windowHeight)) {\n\n /* html.style.height = 'auto'; */\n\n // clearfix\n if (root.offsetHeight <= windowHeight) {\n var underlay = document.createElement(\"div\"); \t\n underlay.style.clear = \"both\";\n body.appendChild(underlay);\n }\n }\n\n // disable fixed background\n if (!options.fixedBackground && !isExcluded) {\n body.style.backgroundAttachment = \"scroll\";\n html.style.backgroundAttachment = \"scroll\";\n }\n}", "function CameraCommand_Scroll_IsScrollable(theHTMLObject)\n{\n\t//return either vertical or horizontal scrollability\n\treturn CameraCommand_Scroll_HasHScroll(theHTMLObject) || CameraCommand_Scroll_HasVScroll(theHTMLObject);\n}", "refreshVirtualScrollbars() {\n // NOTE: This was at some point changed to only run on platforms with width-occupying scrollbars, but it needs\n // to run with overlayed scrollbars also to make them show/hide as they should.\n const me = this,\n {\n headerContainer,\n footerContainer,\n virtualScrollers,\n hasVerticalOverflow\n } = me,\n // We need to ask each subGrid if it has horizontal overflow.\n // If any do, we show the virtual scroller, otherwise we hide it.\n hasHorizontalOverflow = Object.values(me.subGrids).some(subGrid => subGrid.overflowingHorizontally),\n method = hasVerticalOverflow ? 'add' : 'remove';\n\n if (hasHorizontalOverflow) {\n virtualScrollers.classList.remove('b-hide-display');\n } else {\n virtualScrollers.classList.add('b-hide-display');\n } // Auto-widthed padding element at end hides or shows to create matching margin.\n\n if (DomHelper.scrollBarWidth) {\n headerContainer.classList[method]('b-show-yscroll-padding');\n footerContainer.classList[method]('b-show-yscroll-padding');\n virtualScrollers.classList[method]('b-show-yscroll-padding');\n } // Change of scrollbar status means height change\n\n me.onHeightChange();\n }", "function setScroll(){\n window.addEventListener(\"scroll\", ()=> {\n \n for (let i=0; i<navElements.length; ++i){\n let elementScroll = document.getElementById('section'+(i+1));\n let buttonNav = document.getElementById(\"section_nav\"+(i+1));\n if (isScrolledIntoView(elementScroll) ){\n elementScroll.classList.add(\"active\");\n buttonNav.style.background = \"orange\";\n \n }\n else{\n elementScroll.classList.remove(\"active\");\n buttonNav.style.background = \"white\";\n }\n \n }\n });\n}", "function initScrollTracking() {\n var atTop = true;\n var debounce = null;\n var doc = document.documentElement;\n var body = document.body;\n var threshold = 100;\n document.addEventListener('scroll', function(event) {\n if (!debounce) {\n debounce = setTimeout(function() {\n checkLocation();\n debounce = null;\n }, 100);\n }\n });\n\n function checkLocation() {\n var top = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);\n if (top < threshold && !atTop) {\n // We were away, and now we're back\n body.classList.remove('scrolled');\n atTop = true;\n } else if (top >= threshold && atTop) {\n // We've scrolled away\n body.classList.add('scrolled');\n atTop = false;\n }\n }\n}" ]
[ "0.63185555", "0.62920606", "0.6264389", "0.6256101", "0.622788", "0.62156516", "0.6108681", "0.60953295", "0.60885096", "0.60488105", "0.60021496", "0.598708", "0.5986958", "0.5963606", "0.5948423", "0.5933909", "0.5926178", "0.5911818", "0.5895173", "0.58496475", "0.5846845", "0.5830052", "0.582808", "0.5817005", "0.5790544", "0.57855254", "0.57837826", "0.5768515", "0.5764929", "0.57580453", "0.5757926", "0.5740641", "0.5738511", "0.5734357", "0.5728022", "0.5708191", "0.5708119", "0.5692335", "0.5683319", "0.5664838", "0.56594175", "0.56585824", "0.5653585", "0.5645676", "0.56421304", "0.5635113", "0.56339055", "0.5630699", "0.5620395", "0.5620395", "0.5620395", "0.5620395", "0.562008", "0.56038594", "0.5591304", "0.5588363", "0.55756295", "0.55755055", "0.55701816", "0.5563835", "0.55611765", "0.55603456", "0.55512875", "0.5549684", "0.55479264", "0.5546525", "0.5531798", "0.5524306", "0.5522723", "0.5522685", "0.5522166", "0.55211085", "0.5514473", "0.55058724", "0.54972327", "0.54972327", "0.5492813", "0.5492673", "0.54921633", "0.5489567", "0.5486765", "0.54838073", "0.54789525", "0.54775816", "0.54754335", "0.54727554", "0.5470437", "0.5467192", "0.5467192", "0.54589266", "0.5458825", "0.54535675", "0.54485786", "0.54485136", "0.5448503", "0.5433611", "0.54243225", "0.54228544", "0.54189485", "0.5417359", "0.5415192" ]
0.0
-1
Pushes scroll actions to the scrolling queue.
function scrollArray(elem, left, top, delay) { delay || (delay = 1000); directionCheck(left, top); if (options.accelerationMax != 1) { var now = +new Date; var elapsed = now - lastScroll; if (elapsed < options.accelerationDelta) { var factor = (1 + (30 / elapsed)) / 2; if (factor > 1) { factor = Math.min(factor, options.accelerationMax); left *= factor; top *= factor; } } lastScroll = +new Date; } // push a scroll command que.push({ x: left, y: top, lastX: (left < 0) ? 0.99 : -0.99, lastY: (top < 0) ? 0.99 : -0.99, start: +new Date }); // don't act if there's a pending queue if (pending) { return; } var scrollWindow = (elem === document.body); var step = function (time) { var now = +new Date; var scrollX = 0; var scrollY = 0; for (var i = 0; i < que.length; i++) { var item = que[i]; var elapsed = now - item.start; var finished = (elapsed >= options.animationTime); // scroll position: [0, 1] var position = (finished) ? 1 : elapsed / options.animationTime; // easing [optional] if (options.pulseAlgorithm) { position = pulse(position); } // only need the difference var x = (item.x * position - item.lastX) >> 0; var y = (item.y * position - item.lastY) >> 0; // add this to the total scrolling scrollX += x; scrollY += y; // update last values item.lastX += x; item.lastY += y; // delete and step back if it's over if (finished) { que.splice(i, 1); i--; } } // scroll left and top if (scrollWindow) { window.scrollBy(scrollX, scrollY); } else { if (scrollX) elem.scrollLeft += scrollX; if (scrollY) elem.scrollTop += scrollY; } // clean up if there's nothing left to do if (!left && !top) { que = []; } if (que.length) { requestFrame(step, elem, (delay / options.frameRate + 1)); } else { pending = false; } }; // start a new queue of actions requestFrame(step, elem, 0); pending = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dispatch() {\n var currScrollTop = window.pageYOffset;\n\n var appSectionHeight = $('#app-section-1').height();\n\n var scrollInfo = {\n windowHeight: appSectionHeight,\n scrollHeight: $(document.body).prop('scrollHeight'),\n scrollTop: currScrollTop,\n direction: (currScrollTop > lastScrollTop) ? 'down' : 'up'\n };\n\n for (var i = 0, n = self.scenes.length; i < n; i++) {\n var scene = self.scenes[i];\n scene.trigger(scrollInfo);\n }\n }", "function updateScroll(event) {\n moveElements();\n}", "function scrollArray(elem, left, top) {\n \n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (50 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: Date.now()\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (1000 / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top) {\n \n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (50 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: Date.now()\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (1000 / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top) {\r\n \r\n directionCheck(left, top);\r\n\r\n if (options.accelerationMax != 1) {\r\n var now = Date.now();\r\n var elapsed = now - lastScroll;\r\n if (elapsed < options.accelerationDelta) {\r\n var factor = (1 + (50 / elapsed)) / 2;\r\n if (factor > 1) {\r\n factor = Math.min(factor, options.accelerationMax);\r\n left *= factor;\r\n top *= factor;\r\n }\r\n }\r\n lastScroll = Date.now();\r\n } \r\n \r\n // push a scroll command\r\n que.push({\r\n x: left, \r\n y: top, \r\n lastX: (left < 0) ? 0.99 : -0.99,\r\n lastY: (top < 0) ? 0.99 : -0.99, \r\n start: Date.now()\r\n });\r\n \r\n // don't act if there's a pending queue\r\n if (pending) {\r\n return;\r\n } \r\n\r\n var scrollWindow = (elem === document.body);\r\n \r\n var step = function (time) {\r\n \r\n var now = Date.now();\r\n var scrollX = 0;\r\n var scrollY = 0; \r\n \r\n for (var i = 0; i < que.length; i++) {\r\n \r\n var item = que[i];\r\n var elapsed = now - item.start;\r\n var finished = (elapsed >= options.animationTime);\r\n \r\n // scroll position: [0, 1]\r\n var position = (finished) ? 1 : elapsed / options.animationTime;\r\n \r\n // easing [optional]\r\n if (options.pulseAlgorithm) {\r\n position = pulse(position);\r\n }\r\n \r\n // only need the difference\r\n var x = (item.x * position - item.lastX) >> 0;\r\n var y = (item.y * position - item.lastY) >> 0;\r\n \r\n // add this to the total scrolling\r\n scrollX += x;\r\n scrollY += y; \r\n \r\n // update last values\r\n item.lastX += x;\r\n item.lastY += y;\r\n \r\n // delete and step back if it's over\r\n if (finished) {\r\n que.splice(i, 1); i--;\r\n } \r\n }\r\n\r\n // scroll left and top\r\n if (scrollWindow) {\r\n window.scrollBy(scrollX, scrollY);\r\n } \r\n else {\r\n if (scrollX) elem.scrollLeft += scrollX;\r\n if (scrollY) elem.scrollTop += scrollY; \r\n }\r\n \r\n // clean up if there's nothing left to do\r\n if (!left && !top) {\r\n que = [];\r\n }\r\n \r\n if (que.length) { \r\n requestFrame(step, elem, (1000 / options.frameRate + 1)); \r\n } else { \r\n pending = false;\r\n }\r\n };\r\n \r\n // start a new queue of actions\r\n requestFrame(step, elem, 0);\r\n pending = true;\r\n}", "function scrollArray(elem, left, top) {\r\n \r\n directionCheck(left, top);\r\n\r\n if (options.accelerationMax != 1) {\r\n var now = Date.now();\r\n var elapsed = now - lastScroll;\r\n if (elapsed < options.accelerationDelta) {\r\n var factor = (1 + (50 / elapsed)) / 2;\r\n if (factor > 1) {\r\n factor = Math.min(factor, options.accelerationMax);\r\n left *= factor;\r\n top *= factor;\r\n }\r\n }\r\n lastScroll = Date.now();\r\n } \r\n \r\n // push a scroll command\r\n que.push({\r\n x: left, \r\n y: top, \r\n lastX: (left < 0) ? 0.99 : -0.99,\r\n lastY: (top < 0) ? 0.99 : -0.99, \r\n start: Date.now()\r\n });\r\n \r\n // don't act if there's a pending queue\r\n if (pending) {\r\n return;\r\n } \r\n\r\n var scrollWindow = (elem === document.body);\r\n \r\n var step = function (time) {\r\n \r\n var now = Date.now();\r\n var scrollX = 0;\r\n var scrollY = 0; \r\n \r\n for (var i = 0; i < que.length; i++) {\r\n \r\n var item = que[i];\r\n var elapsed = now - item.start;\r\n var finished = (elapsed >= options.animationTime);\r\n \r\n // scroll position: [0, 1]\r\n var position = (finished) ? 1 : elapsed / options.animationTime;\r\n \r\n // easing [optional]\r\n if (options.pulseAlgorithm) {\r\n position = pulse(position);\r\n }\r\n \r\n // only need the difference\r\n var x = (item.x * position - item.lastX) >> 0;\r\n var y = (item.y * position - item.lastY) >> 0;\r\n \r\n // add this to the total scrolling\r\n scrollX += x;\r\n scrollY += y; \r\n \r\n // update last values\r\n item.lastX += x;\r\n item.lastY += y;\r\n \r\n // delete and step back if it's over\r\n if (finished) {\r\n que.splice(i, 1); i--;\r\n } \r\n }\r\n\r\n // scroll left and top\r\n if (scrollWindow) {\r\n window.scrollBy(scrollX, scrollY);\r\n } \r\n else {\r\n if (scrollX) elem.scrollLeft += scrollX;\r\n if (scrollY) elem.scrollTop += scrollY; \r\n }\r\n \r\n // clean up if there's nothing left to do\r\n if (!left && !top) {\r\n que = [];\r\n }\r\n \r\n if (que.length) { \r\n requestFrame(step, elem, (1000 / options.frameRate + 1)); \r\n } else { \r\n pending = false;\r\n }\r\n };\r\n \r\n // start a new queue of actions\r\n requestFrame(step, elem, 0);\r\n pending = true;\r\n}", "start() {\n\t\tthis.scroll.start();\n\t}", "function _callScrollHandlers(){\n\t\tfor (var i = 0; i < _scrollHandlers.length; i++) {\n\t\t\t(_scrollHandlers[i].handler)(_lastScrollEvent);\n\t\t}\n\t\t_pendingScrollHandlers = false;\n\t\t_lastScrollEvent = null;\n\t}", "function scrollArray(elem, left, top, delay) {\n \n delay || (delay = 1000);\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: +new Date\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (delay / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top, delay) {\n \n delay || (delay = 1000);\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: +new Date\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (delay / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top, delay) {\n \n delay || (delay = 1000);\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: +new Date\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (delay / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top, delay) {\n \n delay || (delay = 1000);\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: +new Date\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (delay / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top, delay) {\n \n delay || (delay = 1000);\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: +new Date\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n\n var scrollWindow = (elem === document.body);\n \n var step = function (time) {\n \n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (delay / options.frameRate + 1)); \n } else { \n pending = false;\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n}", "function scrollArray(elem, left, top, delay) {\r\n \r\n delay || (delay = 1000);\r\n directionCheck(left, top);\r\n\r\n if (options.accelerationMax != 1) {\r\n var now = +new Date;\r\n var elapsed = now - lastScroll;\r\n if (elapsed < options.accelerationDelta) {\r\n var factor = (1 + (30 / elapsed)) / 2;\r\n if (factor > 1) {\r\n factor = Math.min(factor, options.accelerationMax);\r\n left *= factor;\r\n top *= factor;\r\n }\r\n }\r\n lastScroll = +new Date;\r\n } \r\n \r\n // push a scroll command\r\n que.push({\r\n x: left, \r\n y: top, \r\n lastX: (left < 0) ? 0.99 : -0.99,\r\n lastY: (top < 0) ? 0.99 : -0.99, \r\n start: +new Date\r\n });\r\n \r\n // don't act if there's a pending queue\r\n if (pending) {\r\n return;\r\n } \r\n\r\n var scrollWindow = (elem === document.body);\r\n \r\n var step = function (time) {\r\n \r\n var now = +new Date;\r\n var scrollX = 0;\r\n var scrollY = 0; \r\n \r\n for (var i = 0; i < que.length; i++) {\r\n \r\n var item = que[i];\r\n var elapsed = now - item.start;\r\n var finished = (elapsed >= options.animationTime);\r\n \r\n // scroll position: [0, 1]\r\n var position = (finished) ? 1 : elapsed / options.animationTime;\r\n \r\n // easing [optional]\r\n if (options.pulseAlgorithm) {\r\n position = pulse(position);\r\n }\r\n \r\n // only need the difference\r\n var x = (item.x * position - item.lastX) >> 0;\r\n var y = (item.y * position - item.lastY) >> 0;\r\n \r\n // add this to the total scrolling\r\n scrollX += x;\r\n scrollY += y; \r\n \r\n // update last values\r\n item.lastX += x;\r\n item.lastY += y;\r\n \r\n // delete and step back if it's over\r\n if (finished) {\r\n que.splice(i, 1); i--;\r\n } \r\n }\r\n\r\n // scroll left and top\r\n if (scrollWindow) {\r\n window.scrollBy(scrollX, scrollY);\r\n } \r\n else {\r\n if (scrollX) elem.scrollLeft += scrollX;\r\n if (scrollY) elem.scrollTop += scrollY; \r\n }\r\n \r\n // clean up if there's nothing left to do\r\n if (!left && !top) {\r\n que = [];\r\n }\r\n \r\n if (que.length) { \r\n requestFrame(step, elem, (delay / options.frameRate + 1)); \r\n } else { \r\n pending = false;\r\n }\r\n };\r\n \r\n // start a new queue of actions\r\n requestFrame(step, elem, 0);\r\n pending = true;\r\n}", "function scrollArray(elem, left, top, delay) {\r\n \r\n delay || (delay = 1000);\r\n directionCheck(left, top);\r\n\r\n if (options.accelerationMax != 1) {\r\n var now = +new Date;\r\n var elapsed = now - lastScroll;\r\n if (elapsed < options.accelerationDelta) {\r\n var factor = (1 + (30 / elapsed)) / 2;\r\n if (factor > 1) {\r\n factor = Math.min(factor, options.accelerationMax);\r\n left *= factor;\r\n top *= factor;\r\n }\r\n }\r\n lastScroll = +new Date;\r\n } \r\n \r\n // push a scroll command\r\n que.push({\r\n x: left, \r\n y: top, \r\n lastX: (left < 0) ? 0.99 : -0.99,\r\n lastY: (top < 0) ? 0.99 : -0.99, \r\n start: +new Date\r\n });\r\n \r\n // don't act if there's a pending queue\r\n if (pending) {\r\n return;\r\n } \r\n\r\n var scrollWindow = (elem === document.body);\r\n \r\n var step = function (time) {\r\n \r\n var now = +new Date;\r\n var scrollX = 0;\r\n var scrollY = 0; \r\n \r\n for (var i = 0; i < que.length; i++) {\r\n \r\n var item = que[i];\r\n var elapsed = now - item.start;\r\n var finished = (elapsed >= options.animationTime);\r\n \r\n // scroll position: [0, 1]\r\n var position = (finished) ? 1 : elapsed / options.animationTime;\r\n \r\n // easing [optional]\r\n if (options.pulseAlgorithm) {\r\n position = pulse(position);\r\n }\r\n \r\n // only need the difference\r\n var x = (item.x * position - item.lastX) >> 0;\r\n var y = (item.y * position - item.lastY) >> 0;\r\n \r\n // add this to the total scrolling\r\n scrollX += x;\r\n scrollY += y; \r\n \r\n // update last values\r\n item.lastX += x;\r\n item.lastY += y;\r\n \r\n // delete and step back if it's over\r\n if (finished) {\r\n que.splice(i, 1); i--;\r\n } \r\n }\r\n\r\n // scroll left and top\r\n if (scrollWindow) {\r\n window.scrollBy(scrollX, scrollY);\r\n } \r\n else {\r\n if (scrollX) elem.scrollLeft += scrollX;\r\n if (scrollY) elem.scrollTop += scrollY; \r\n }\r\n \r\n // clean up if there's nothing left to do\r\n if (!left && !top) {\r\n que = [];\r\n }\r\n \r\n if (que.length) { \r\n requestFrame(step, elem, (delay / options.frameRate + 1)); \r\n } else { \r\n pending = false;\r\n }\r\n };\r\n \r\n // start a new queue of actions\r\n requestFrame(step, elem, 0);\r\n pending = true;\r\n}", "function trx_addons_scroll_actions() {\n \"use strict\";\n\n var scroll_offset = alices_win.scrollTop();\n var scroll_to_top_button = jQuery('.trx_addons_scroll_to_top');\n var adminbar_height = Math.max(0, jQuery('#wpadminbar').height());\n\n // Scroll to top button show/hide\n if (scroll_to_top_button.length > 0) {\n if (scroll_offset > 100)\n scroll_to_top_button.addClass('show');\n else\n scroll_to_top_button.removeClass('show');\n }\n\n // Scroll actions for animated elements\n jQuery('[data-animation^=\"animated\"]:not(.animated)').each(function() {\n \"use strict\";\n if (jQuery(this).offset().top < scroll_offset + alices_win.height())\n jQuery(this).addClass(jQuery(this).data('animation'));\n });\n\n // Call theme/plugins specific action (if exists)\n //----------------------------------------------\n jQuery(document).trigger('action.scroll_trx_addons');\n}", "function sunnyjar_theme_scroll_actions() {\n\t\"use strict\";\n\t// Put here your theme-specific code with scroll actions\n\t// It will be called when page is scrolled (before core actions)\n}", "function scrollHandler()\n {\n updateMaxScrolls();\n activityHandler();\n }", "function monitorScroll() {\n SidebarActions.monitorScroll()\n}", "function scrollArray(elem, left, top) {\n \n directionCheck(left, top);\n \n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (50 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: Date.now()\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n \n var scrollRoot = getScrollRoot();\n var isWindowScroll = (elem === scrollRoot || elem === document.body);\n \n // if we haven't already fixed the behavior, \n // and it needs fixing for this sesh\n if (elem.$scrollBehavior == null && isScrollBehaviorSmooth(elem)) {\n elem.$scrollBehavior = elem.style.scrollBehavior;\n elem.style.scrollBehavior = 'auto';\n }\n \n var step = function (time) {\n \n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n \n // scroll left and top\n if (isWindowScroll) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (1000 / options.frameRate + 1)); \n } else { \n pending = false;\n // restore default behavior at the end of scrolling sesh\n if (elem.$scrollBehavior != null) {\n elem.style.scrollBehavior = elem.$scrollBehavior;\n elem.$scrollBehavior = null;\n }\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n }", "function scrollArray(elem, left, top) {\n \n directionCheck(left, top);\n \n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (50 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n } \n \n // push a scroll command\n que.push({\n x: left, \n y: top, \n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99, \n start: Date.now()\n });\n \n // don't act if there's a pending queue\n if (pending) {\n return;\n } \n \n var scrollRoot = getScrollRoot();\n var isWindowScroll = (elem === scrollRoot || elem === document.body);\n \n // if we haven't already fixed the behavior, \n // and it needs fixing for this sesh\n if (elem.$scrollBehavior == null && isScrollBehaviorSmooth(elem)) {\n elem.$scrollBehavior = elem.style.scrollBehavior;\n elem.style.scrollBehavior = 'auto';\n }\n \n var step = function (time) {\n \n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0; \n \n for (var i = 0; i < que.length; i++) {\n \n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n \n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n \n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n \n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n \n // add this to the total scrolling\n scrollX += x;\n scrollY += y; \n \n // update last values\n item.lastX += x;\n item.lastY += y;\n \n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1); i--;\n } \n }\n \n // scroll left and top\n if (isWindowScroll) {\n window.scrollBy(scrollX, scrollY);\n } \n else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY; \n }\n \n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n \n if (que.length) { \n requestFrame(step, elem, (1000 / options.frameRate + 1)); \n } else { \n pending = false;\n // restore default behavior at the end of scrolling sesh\n if (elem.$scrollBehavior != null) {\n elem.style.scrollBehavior = elem.$scrollBehavior;\n elem.$scrollBehavior = null;\n }\n }\n };\n \n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n }", "update() {\n\t\tthis.scroll.update();\n\t}", "function scrollArray(elem, left, top) {\n\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = Date.now();\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + 50 / elapsed) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = Date.now();\n }\n\n // push a scroll command\n que.push({\n x: left,\n y: top,\n lastX: left < 0 ? 0.99 : -0.99,\n lastY: top < 0 ? 0.99 : -0.99,\n start: Date.now()\n });\n\n // don't act if there's a pending queue\n if (pending) {\n return;\n }\n\n var scrollWindow = elem === document.body;\n\n var step = function step(time) {\n\n var now = Date.now();\n var scrollX = 0;\n var scrollY = 0;\n\n for (var i = 0; i < que.length; i++) {\n\n var item = que[i];\n var elapsed = now - item.start;\n var finished = elapsed >= options.animationTime;\n\n // scroll position: [0, 1]\n var position = finished ? 1 : elapsed / options.animationTime;\n\n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n\n // only need the difference\n var x = item.x * position - item.lastX >> 0;\n var y = item.y * position - item.lastY >> 0;\n\n // add this to the total scrolling\n scrollX += x;\n scrollY += y;\n\n // update last values\n item.lastX += x;\n item.lastY += y;\n\n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1);i--;\n }\n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY;\n }\n\n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n\n if (que.length) {\n requestFrame(step, elem, 1000 / options.frameRate + 1);\n } else {\n pending = false;\n }\n };\n\n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n }", "run() {\n\t\tthis.update();\n\n\t\t// scroll to starting position;\n\t\tthis.slider.scrollLeft = this.startPos;\n\t\tthis.scrollOffset = this.startPos;\n\t}", "function throttledScrollEvents() {\n\n }", "function scrollArray(elem, left, top, delay) {\n delay || (delay = 1000);\n directionCheck(left, top);\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n }\n // push a scroll command\n que.push({\n x: left,\n y: top,\n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99,\n start: +new Date\n });\n // don't act if there's a pending queue\n if (pending) {\n return;\n }\n var scrollWindow = (elem === document.body);\n var step = function(time) {\n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0;\n for (var i = 0; i < que.length; i++) {\n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n // add this to the total scrolling\n scrollX += x;\n scrollY += y;\n // update last values\n item.lastX += x;\n item.lastY += y;\n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1);\n i--;\n }\n }\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } else {\n if (scrollX) elem.scrollLeft += scrollX;\n if (scrollY) elem.scrollTop += scrollY;\n }\n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n if (que.length) {\n requestFrame(step, elem, (delay / options.frameRate + 1));\n } else {\n pending = false;\n }\n };\n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n }", "function scrollArray(elem, left, top, delay) {\n\n delay || (delay = 1000);\n directionCheck(left, top);\n\n if (options.accelerationMax != 1) {\n var now = +new Date;\n var elapsed = now - lastScroll;\n if (elapsed < options.accelerationDelta) {\n var factor = (1 + (30 / elapsed)) / 2;\n if (factor > 1) {\n factor = Math.min(factor, options.accelerationMax);\n left *= factor;\n top *= factor;\n }\n }\n lastScroll = +new Date;\n }\n\n // push a scroll command\n que.push({\n x: left,\n y: top,\n lastX: (left < 0) ? 0.99 : -0.99,\n lastY: (top < 0) ? 0.99 : -0.99,\n start: +new Date\n });\n\n // don't act if there's a pending queue\n if (pending) {\n return;\n }\n\n var scrollWindow = (elem === document.body);\n\n var step = function (time) {\n\n var now = +new Date;\n var scrollX = 0;\n var scrollY = 0;\n\n for (var i = 0; i < que.length; i++) {\n\n var item = que[i];\n var elapsed = now - item.start;\n var finished = (elapsed >= options.animationTime);\n\n // scroll position: [0, 1]\n var position = (finished) ? 1 : elapsed / options.animationTime;\n\n // easing [optional]\n if (options.pulseAlgorithm) {\n position = pulse(position);\n }\n\n // only need the difference\n var x = (item.x * position - item.lastX) >> 0;\n var y = (item.y * position - item.lastY) >> 0;\n\n // add this to the total scrolling\n scrollX += x;\n scrollY += y;\n\n // update last values\n item.lastX += x;\n item.lastY += y;\n\n // delete and step back if it's over\n if (finished) {\n que.splice(i, 1);\n i--;\n }\n }\n\n // scroll left and top\n if (scrollWindow) {\n window.scrollBy(scrollX, scrollY);\n } else {\n if (scrollX)\n elem.scrollLeft += scrollX;\n if (scrollY)\n elem.scrollTop += scrollY;\n }\n\n // clean up if there's nothing left to do\n if (!left && !top) {\n que = [];\n }\n\n if (que.length) {\n requestFrame(step, elem, (delay / options.frameRate + 1));\n } else {\n pending = false;\n }\n };\n\n // start a new queue of actions\n requestFrame(step, elem, 0);\n pending = true;\n }", "function scrollArray(elem, left, top, delay) {\r\n\r\n\t\t\t\tdelay || (delay = 1000);\r\n\t\t\t\tdirectionCheck(left, top);\r\n\r\n\t\t\t\tif (options.accelerationMax != 1) {\r\n\t\t\t\t\tvar now = +new Date;\r\n\t\t\t\t\tvar elapsed = now - lastScroll;\r\n\t\t\t\t\tif (elapsed < options.accelerationDelta) {\r\n\t\t\t\t\t\tvar factor = (1 + (30 / elapsed)) / 2;\r\n\t\t\t\t\t\tif (factor > 1) {\r\n\t\t\t\t\t\t\tfactor = Math.min(factor, options.accelerationMax);\r\n\t\t\t\t\t\t\tleft *= factor;\r\n\t\t\t\t\t\t\ttop *= factor;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlastScroll = +new Date;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// push a scroll command\r\n\t\t\t\tque.push({\r\n\t\t\t\t\tx: left,\r\n\t\t\t\t\ty: top,\r\n\t\t\t\t\tlastX: (left < 0) ? 0.99 : -0.99,\r\n\t\t\t\t\tlastY: (top < 0) ? 0.99 : -0.99,\r\n\t\t\t\t\tstart: +new Date\r\n\t\t\t\t});\r\n\r\n\t\t\t\t// don't act if there's a pending queue\r\n\t\t\t\tif (pending) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar scrollWindow = (elem === document.body);\r\n\r\n\t\t\t\tvar step = function (time) {\r\n\r\n\t\t\t\t\tvar now = +new Date;\r\n\t\t\t\t\tvar scrollX = 0;\r\n\t\t\t\t\tvar scrollY = 0;\r\n\r\n\t\t\t\t\tfor (var i = 0; i < que.length; i++) {\r\n\r\n\t\t\t\t\t\tvar item = que[i];\r\n\t\t\t\t\t\tvar elapsed = now - item.start;\r\n\t\t\t\t\t\tvar finished = (elapsed >= options.animationTime);\r\n\r\n\t\t\t\t\t\t// scroll position: [0, 1]\r\n\t\t\t\t\t\tvar position = (finished) ? 1 : elapsed / options.animationTime;\r\n\r\n\t\t\t\t\t\t// easing [optional]\r\n\t\t\t\t\t\tif (options.pulseAlgorithm) {\r\n\t\t\t\t\t\t\tposition = pulse(position);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// only need the difference\r\n\t\t\t\t\t\tvar x = (item.x * position - item.lastX) >> 0;\r\n\t\t\t\t\t\tvar y = (item.y * position - item.lastY) >> 0;\r\n\r\n\t\t\t\t\t\t// add this to the total scrolling\r\n\t\t\t\t\t\tscrollX += x;\r\n\t\t\t\t\t\tscrollY += y;\r\n\r\n\t\t\t\t\t\t// update last values\r\n\t\t\t\t\t\titem.lastX += x;\r\n\t\t\t\t\t\titem.lastY += y;\r\n\r\n\t\t\t\t\t\t// delete and step back if it's over\r\n\t\t\t\t\t\tif (finished) {\r\n\t\t\t\t\t\t\tque.splice(i, 1); i--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// scroll left and top\r\n\t\t\t\t\tif (scrollWindow) {\r\n\t\t\t\t\t\twindow.scrollBy(scrollX, scrollY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tif (scrollX) elem.scrollLeft += scrollX;\r\n\t\t\t\t\t\tif (scrollY) elem.scrollTop += scrollY;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// clean up if there's nothing left to do\r\n\t\t\t\t\tif (!left && !top) {\r\n\t\t\t\t\t\tque = [];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (que.length) {\r\n\t\t\t\t\t\trequestFrame(step, elem, (delay / options.frameRate + 1));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpending = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\r\n\t\t\t\t// start a new queue of actions\r\n\t\t\t\trequestFrame(step, elem, 0);\r\n\t\t\t\tpending = true;\r\n\t\t\t}", "function buildQueue (next) {\n\n\t /*******************\n\t Option: Begin\n\t *******************/\n\n\t /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t if (opts.begin && elementsIndex === 0) {\n\t /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t try {\n\t opts.begin.call(elements, elements);\n\t } catch (error) {\n\t setTimeout(function() { throw error; }, 1);\n\t }\n\t }\n\n\t /*****************************************\n\t Tween Data Construction (for Scroll)\n\t *****************************************/\n\n\t /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t if (action === \"scroll\") {\n\t /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t scrollOffset = parseFloat(opts.offset) || 0,\n\t scrollPositionCurrent,\n\t scrollPositionCurrentAlternate,\n\t scrollPositionEnd;\n\n\t /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t if (opts.container) {\n\t /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t /* Extract the raw DOM element from the jQuery wrapper. */\n\t opts.container = opts.container[0] || opts.container;\n\t /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t (due to the user's natural interaction with the page). */\n\t scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t the scroll container's current scroll position. */\n\t scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t } else {\n\t opts.container = null;\n\t }\n\t } else {\n\t /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t the appropriate cached property names (which differ based on browser type). */\n\t scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t and therefore end values do not need to be compounded onto current values. */\n\t scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t }\n\n\t /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t tweensContainer = {\n\t scroll: {\n\t rootPropertyValue: false,\n\t startValue: scrollPositionCurrent,\n\t currentValue: scrollPositionCurrent,\n\t endValue: scrollPositionEnd,\n\t unitType: \"\",\n\t easing: opts.easing,\n\t scrollData: {\n\t container: opts.container,\n\t direction: scrollDirection,\n\t alternateValue: scrollPositionCurrentAlternate\n\t }\n\t },\n\t element: element\n\t };\n\n\t if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n\t /******************************************\n\t Tween Data Construction (for Reverse)\n\t ******************************************/\n\n\t /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t } else if (action === \"reverse\") {\n\t /* Abort if there is no prior animation data to reverse to. */\n\t if (!Data(element).tweensContainer) {\n\t /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t $.dequeue(element, opts.queue);\n\n\t return;\n\t } else {\n\t /*********************\n\t Options Parsing\n\t *********************/\n\n\t /* If the element was hidden via the display option in the previous call,\n\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t if (Data(element).opts.display === \"none\") {\n\t Data(element).opts.display = \"auto\";\n\t }\n\n\t if (Data(element).opts.visibility === \"hidden\") {\n\t Data(element).opts.visibility = \"visible\";\n\t }\n\n\t /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t Data(element).opts.loop = false;\n\t Data(element).opts.begin = null;\n\t Data(element).opts.complete = null;\n\n\t /* Since we're extending an opts object that has already been extended with the defaults options object,\n\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t if (!options.easing) {\n\t delete opts.easing;\n\t }\n\n\t if (!options.duration) {\n\t delete opts.duration;\n\t }\n\n\t /* The opts object used for reversal is an extension of the options object optionally passed into this\n\t reverse call plus the options used in the previous Velocity call. */\n\t opts = $.extend({}, Data(element).opts, opts);\n\n\t /*************************************\n\t Tweens Container Reconstruction\n\t *************************************/\n\n\t /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n\t /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t for (var lastTween in lastTweensContainer) {\n\t /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t if (lastTween !== \"element\") {\n\t var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t lastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t if (!Type.isEmptyObject(options)) {\n\t lastTweensContainer[lastTween].easing = opts.easing;\n\t }\n\n\t if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n\t }\n\t }\n\n\t tweensContainer = lastTweensContainer;\n\t }\n\n\t /*****************************************\n\t Tween Data Construction (for Start)\n\t *****************************************/\n\n\t } else if (action === \"start\") {\n\n\t /*************************\n\t Value Transferring\n\t *************************/\n\n\t /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t process whenever possible in order to avoid requerying the DOM. */\n\t /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t then the DOM is queried for the element's current values as a last resort. */\n\t /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\t var lastTweensContainer;\n\n\t /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t Velocity call to pull values from, do so. */\n\t if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n\t lastTweensContainer = Data(element).tweensContainer;\n\t }\n\n\t /***************************\n\t Tween Data Calculation\n\t ***************************/\n\n\t /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t /* Property map values can either take the form of 1) a single value representing the end value,\n\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t function parsePropertyValue (valueData, skipResolvingEasing) {\n\t var endValue = undefined,\n\t easing = undefined,\n\t startValue = undefined;\n\n\t /* Handle the array format, which can be structured as one of three potential overloads:\n\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t if (Type.isArray(valueData)) {\n\t /* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t since the ensuing property cycling logic does that. */\n\t endValue = valueData[0];\n\n\t /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t start value since easings can only be non-hex strings or arrays. */\n\t if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t startValue = valueData[1];\n\t /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n\t } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n\t easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t if (valueData[2] !== undefined) {\n\t startValue = valueData[2];\n\t }\n\t }\n\t /* Handle the single-value format. */\n\t } else {\n\t endValue = valueData;\n\t }\n\n\t /* Default to the call's easing if a per-property easing type was not defined. */\n\t if (!skipResolvingEasing) {\n\t easing = easing || opts.easing;\n\t }\n\n\t /* If functions were passed in as values, pass the function the current element as its context,\n\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t if (Type.isFunction(endValue)) {\n\t endValue = endValue.call(element, elementsIndex, elementsLength);\n\t }\n\n\t if (Type.isFunction(startValue)) {\n\t startValue = startValue.call(element, elementsIndex, elementsLength);\n\t }\n\n\t /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t return [ endValue || 0, easing, startValue ];\n\t }\n\n\t /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n\t colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n\t $.each(propertiesMap, function(property, value) {\n\t /* Find shorthand color properties that have been passed a hex string. */\n\t if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n\t /* Parse the value data for each shorthand. */\n\t var valueData = parsePropertyValue(value, true),\n\t endValue = valueData[0],\n\t easing = valueData[1],\n\t startValue = valueData[2];\n\n\t if (CSS.RegEx.isHex.test(endValue)) {\n\t /* Convert the hex strings into their RGB component arrays. */\n\t var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n\t endValueRGB = CSS.Values.hexToRgb(endValue),\n\t startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t /* Inject the RGB component tweens into propertiesMap. */\n\t for (var i = 0; i < colorComponents.length; i++) {\n\t var dataArray = [ endValueRGB[i] ];\n\n\t if (easing) {\n\t dataArray.push(easing);\n\t }\n\n\t if (startValueRGB !== undefined) {\n\t dataArray.push(startValueRGB[i]);\n\t }\n\n\t propertiesMap[property + colorComponents[i]] = dataArray;\n\t }\n\n\t /* Remove the intermediary shorthand property entry now that we've processed it. */\n\t delete propertiesMap[property];\n\t }\n\t }\n\t });\n\n\t /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t for (var property in propertiesMap) {\n\n\t /**************************\n\t Start Value Sourcing\n\t **************************/\n\n\t /* Parse out endValue, easing, and startValue from the property's data. */\n\t var valueData = parsePropertyValue(propertiesMap[property]),\n\t endValue = valueData[0],\n\t easing = valueData[1],\n\t startValue = valueData[2];\n\n\t /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n\t we force the property to its camelCase styling to normalize it for manipulation. */\n\t property = CSS.Names.camelCase(property);\n\n\t /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t var rootProperty = CSS.Hooks.getRoot(property),\n\t rootPropertyValue = false;\n\n\t /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n\t continue;\n\t }\n\n\t /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t startValue = 0;\n\t }\n\n\t /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t for all of the current call's properties that were *also* animated in the previous call. */\n\t /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t if (startValue === undefined) {\n\t startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t }\n\n\t /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n\t /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t } else {\n\t /* Handle hooked properties. */\n\t if (CSS.Hooks.registered[property]) {\n\t if (startValue === undefined) {\n\t rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t } else {\n\t /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t }\n\t /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t } else if (startValue === undefined) {\n\t startValue = CSS.getPropertyValue(element, property); /* GET */\n\t }\n\t }\n\n\t /**************************\n\t Value Data Extraction\n\t **************************/\n\n\t var separatedValue,\n\t endValueUnitType,\n\t startValueUnitType,\n\t operator = false;\n\n\t /* Separates a property value into its numeric value and its unit type. */\n\t function separateValue (property, value) {\n\t var unitType,\n\t numericValue;\n\n\t numericValue = (value || \"0\")\n\t .toString()\n\t .toLowerCase()\n\t /* Match the unit type at the end of the value. */\n\t .replace(/[%A-z]+$/, function(match) {\n\t /* Grab the unit type. */\n\t unitType = match;\n\n\t /* Strip the unit type off of value. */\n\t return \"\";\n\t });\n\n\t /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t if (!unitType) {\n\t unitType = CSS.Values.getUnitType(property);\n\t }\n\n\t return [ numericValue, unitType ];\n\t }\n\n\t /* Separate startValue. */\n\t separatedValue = separateValue(property, startValue);\n\t startValue = separatedValue[0];\n\t startValueUnitType = separatedValue[1];\n\n\t /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t separatedValue = separateValue(property, endValue);\n\t endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t operator = subMatch;\n\n\t /* Strip the operator off of the value. */\n\t return \"\";\n\t });\n\t endValueUnitType = separatedValue[1];\n\n\t /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t startValue = parseFloat(startValue) || 0;\n\t endValue = parseFloat(endValue) || 0;\n\n\t /***************************************\n\t Property-Specific Value Conversion\n\t ***************************************/\n\n\t /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t if (endValueUnitType === \"%\") {\n\t /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t if (/^(fontSize|lineHeight)$/.test(property)) {\n\t /* Convert % into an em decimal value. */\n\t endValue = endValue / 100;\n\t endValueUnitType = \"em\";\n\t /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t } else if (/^scale/.test(property)) {\n\t endValue = endValue / 100;\n\t endValueUnitType = \"\";\n\t /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t } else if (/(Red|Green|Blue)$/i.test(property)) {\n\t endValue = (endValue / 100) * 255;\n\t endValueUnitType = \"\";\n\t }\n\t }\n\n\t /***************************\n\t Unit Ratio Calculation\n\t ***************************/\n\n\t /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t setting values with the target unit type then comparing the returned pixel value. */\n\t /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t function calculateUnitRatios () {\n\n\t /************************\n\t Same Ratio Checks\n\t ************************/\n\n\t /* The properties below are used to determine whether the element differs sufficiently from this call's\n\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t this is done to minimize DOM querying. */\n\t var sameRatioIndicators = {\n\t myParent: element.parentNode || document.body, /* GET */\n\t position: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t },\n\t /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t /* Store these ratio indicators call-wide for the next element to compare against. */\n\t callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t callUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t /***************************\n\t Element-Specific Units\n\t ***************************/\n\n\t /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t var measurement = 100,\n\t unitRatios = {};\n\n\t if (!sameEmRatio || !samePercentRatio) {\n\t var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t Velocity.init(dummy);\n\t sameRatioIndicators.myParent.appendChild(dummy);\n\n\t /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n\t Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t });\n\t Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n\t Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t });\n\t /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t sameRatioIndicators.myParent.removeChild(dummy);\n\t } else {\n\t unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t }\n\n\t /***************************\n\t Element-Agnostic Units\n\t ***************************/\n\n\t /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t so we calculate it now. */\n\t if (callUnitConversionData.remToPx === null) {\n\t /* Default to browsers' default fontSize of 16px in the case of 0. */\n\t callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t }\n\n\t /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t if (callUnitConversionData.vwToPx === null) {\n\t callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t }\n\n\t unitRatios.remToPx = callUnitConversionData.remToPx;\n\t unitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n\t return unitRatios;\n\t }\n\n\t /********************\n\t Unit Conversion\n\t ********************/\n\n\t /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t if (/[\\/*]/.test(operator)) {\n\t endValueUnitType = startValueUnitType;\n\t /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t which remains past the point of the animation's completion. */\n\t if (endValue === 0) {\n\t endValueUnitType = startValueUnitType;\n\t } else {\n\t /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t switch (startValueUnitType) {\n\t case \"%\":\n\t /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t break;\n\n\t case \"px\":\n\t /* px acts as our midpoint in the unit conversion process; do nothing. */\n\t break;\n\n\t default:\n\t startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t }\n\n\t /* Invert the px ratios to convert into to the target unit. */\n\t switch (endValueUnitType) {\n\t case \"%\":\n\t startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t break;\n\n\t case \"px\":\n\t /* startValue is already in px, do nothing; we're done. */\n\t break;\n\n\t default:\n\t startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n\t }\n\t }\n\t }\n\n\t /*********************\n\t Relative Values\n\t *********************/\n\n\t /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t 50 points is added on top of the current % value. */\n\t switch (operator) {\n\t case \"+\":\n\t endValue = startValue + endValue;\n\t break;\n\n\t case \"-\":\n\t endValue = startValue - endValue;\n\t break;\n\n\t case \"*\":\n\t endValue = startValue * endValue;\n\t break;\n\n\t case \"/\":\n\t endValue = startValue / endValue;\n\t break;\n\t }\n\n\t /**************************\n\t tweensContainer Push\n\t **************************/\n\n\t /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t tweensContainer[property] = {\n\t rootPropertyValue: rootPropertyValue,\n\t startValue: startValue,\n\t currentValue: startValue,\n\t endValue: endValue,\n\t unitType: endValueUnitType,\n\t easing: easing\n\t };\n\n\t if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t }\n\n\t /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t tweensContainer.element = element;\n\t }\n\n\t /*****************\n\t Call Push\n\t *****************/\n\n\t /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t if (tweensContainer.element) {\n\t /* Apply the \"velocity-animating\" indicator class. */\n\t CSS.Values.addClass(element, \"velocity-animating\");\n\n\t /* The call array houses the tweensContainers for each element being animated in the current call. */\n\t call.push(tweensContainer);\n\n\t /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t if (opts.queue === \"\") {\n\t Data(element).tweensContainer = tweensContainer;\n\t Data(element).opts = opts;\n\t }\n\n\t /* Switch on the element's animating flag. */\n\t Data(element).isAnimating = true;\n\n\t /* Once the final element in this call's element set has been processed, push the call array onto\n\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t if (elementsIndex === elementsLength - 1) {\n\t /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t Anything on this call container is subjected to tick() processing. */\n\t Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n\t /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t if (Velocity.State.isTicking === false) {\n\t Velocity.State.isTicking = true;\n\n\t /* Start the tick loop. */\n\t tick();\n\t }\n\t } else {\n\t elementsIndex++;\n\t }\n\t }\n\t }", "function buildQueue (next) {\n\t\t\n\t\t /*******************\n\t\t Option: Begin\n\t\t *******************/\n\t\t\n\t\t /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t\t if (opts.begin && elementsIndex === 0) {\n\t\t /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t\t try {\n\t\t opts.begin.call(elements, elements);\n\t\t } catch (error) {\n\t\t setTimeout(function() { throw error; }, 1);\n\t\t }\n\t\t }\n\t\t\n\t\t /*****************************************\n\t\t Tween Data Construction (for Scroll)\n\t\t *****************************************/\n\t\t\n\t\t /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t\t if (action === \"scroll\") {\n\t\t /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t\t var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t\t scrollOffset = parseFloat(opts.offset) || 0,\n\t\t scrollPositionCurrent,\n\t\t scrollPositionCurrentAlternate,\n\t\t scrollPositionEnd;\n\t\t\n\t\t /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t\t if (opts.container) {\n\t\t /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t\t if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t\t /* Extract the raw DOM element from the jQuery wrapper. */\n\t\t opts.container = opts.container[0] || opts.container;\n\t\t /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t\t (due to the user's natural interaction with the page). */\n\t\t scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\t\t\n\t\t /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t\t the scroll container's current scroll position. */\n\t\t scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t\t /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t\t } else {\n\t\t opts.container = null;\n\t\t }\n\t\t } else {\n\t\t /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t\t the appropriate cached property names (which differ based on browser type). */\n\t\t scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t\t /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t\t scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\t\t\n\t\t /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t\t and therefore end values do not need to be compounded onto current values. */\n\t\t scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t\t }\n\t\t\n\t\t /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t\t tweensContainer = {\n\t\t scroll: {\n\t\t rootPropertyValue: false,\n\t\t startValue: scrollPositionCurrent,\n\t\t currentValue: scrollPositionCurrent,\n\t\t endValue: scrollPositionEnd,\n\t\t unitType: \"\",\n\t\t easing: opts.easing,\n\t\t scrollData: {\n\t\t container: opts.container,\n\t\t direction: scrollDirection,\n\t\t alternateValue: scrollPositionCurrentAlternate\n\t\t }\n\t\t },\n\t\t element: element\n\t\t };\n\t\t\n\t\t if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\t\n\t\t /******************************************\n\t\t Tween Data Construction (for Reverse)\n\t\t ******************************************/\n\t\t\n\t\t /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t\t /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t\t /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t\t } else if (action === \"reverse\") {\n\t\t /* Abort if there is no prior animation data to reverse to. */\n\t\t if (!Data(element).tweensContainer) {\n\t\t /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t\t $.dequeue(element, opts.queue);\n\t\t\n\t\t return;\n\t\t } else {\n\t\t /*********************\n\t\t Options Parsing\n\t\t *********************/\n\t\t\n\t\t /* If the element was hidden via the display option in the previous call,\n\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t\t if (Data(element).opts.display === \"none\") {\n\t\t Data(element).opts.display = \"auto\";\n\t\t }\n\t\t\n\t\t if (Data(element).opts.visibility === \"hidden\") {\n\t\t Data(element).opts.visibility = \"visible\";\n\t\t }\n\t\t\n\t\t /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t\t Data(element).opts.loop = false;\n\t\t Data(element).opts.begin = null;\n\t\t Data(element).opts.complete = null;\n\t\t\n\t\t /* Since we're extending an opts object that has already been extended with the defaults options object,\n\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t\t if (!options.easing) {\n\t\t delete opts.easing;\n\t\t }\n\t\t\n\t\t if (!options.duration) {\n\t\t delete opts.duration;\n\t\t }\n\t\t\n\t\t /* The opts object used for reversal is an extension of the options object optionally passed into this\n\t\t reverse call plus the options used in the previous Velocity call. */\n\t\t opts = $.extend({}, Data(element).opts, opts);\n\t\t\n\t\t /*************************************\n\t\t Tweens Container Reconstruction\n\t\t *************************************/\n\t\t\n\t\t /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t\t var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\t\t\n\t\t /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t\t for (var lastTween in lastTweensContainer) {\n\t\t /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t\t if (lastTween !== \"element\") {\n\t\t var lastStartValue = lastTweensContainer[lastTween].startValue;\n\t\t\n\t\t lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t\t lastTweensContainer[lastTween].endValue = lastStartValue;\n\t\t\n\t\t /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t\t if (!Type.isEmptyObject(options)) {\n\t\t lastTweensContainer[lastTween].easing = opts.easing;\n\t\t }\n\t\t\n\t\t if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n\t\t }\n\t\t }\n\t\t\n\t\t tweensContainer = lastTweensContainer;\n\t\t }\n\t\t\n\t\t /*****************************************\n\t\t Tween Data Construction (for Start)\n\t\t *****************************************/\n\t\t\n\t\t } else if (action === \"start\") {\n\t\t\n\t\t /*************************\n\t\t Value Transferring\n\t\t *************************/\n\t\t\n\t\t /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t\t process whenever possible in order to avoid requerying the DOM. */\n\t\t /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t\t then the DOM is queried for the element's current values as a last resort. */\n\t\t /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\t\t var lastTweensContainer;\n\t\t\n\t\t /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t\t Velocity call to pull values from, do so. */\n\t\t if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n\t\t lastTweensContainer = Data(element).tweensContainer;\n\t\t }\n\t\t\n\t\t /***************************\n\t\t Tween Data Calculation\n\t\t ***************************/\n\t\t\n\t\t /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t\t /* Property map values can either take the form of 1) a single value representing the end value,\n\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t\t function parsePropertyValue (valueData, skipResolvingEasing) {\n\t\t var endValue = undefined,\n\t\t easing = undefined,\n\t\t startValue = undefined;\n\t\t\n\t\t /* Handle the array format, which can be structured as one of three potential overloads:\n\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t\t if (Type.isArray(valueData)) {\n\t\t /* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t\t since the ensuing property cycling logic does that. */\n\t\t endValue = valueData[0];\n\t\t\n\t\t /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t\t start value since easings can only be non-hex strings or arrays. */\n\t\t if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t\t startValue = valueData[1];\n\t\t /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n\t\t } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n\t\t easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\t\t\n\t\t /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t\t if (valueData[2] !== undefined) {\n\t\t startValue = valueData[2];\n\t\t }\n\t\t }\n\t\t /* Handle the single-value format. */\n\t\t } else {\n\t\t endValue = valueData;\n\t\t }\n\t\t\n\t\t /* Default to the call's easing if a per-property easing type was not defined. */\n\t\t if (!skipResolvingEasing) {\n\t\t easing = easing || opts.easing;\n\t\t }\n\t\t\n\t\t /* If functions were passed in as values, pass the function the current element as its context,\n\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t\t if (Type.isFunction(endValue)) {\n\t\t endValue = endValue.call(element, elementsIndex, elementsLength);\n\t\t }\n\t\t\n\t\t if (Type.isFunction(startValue)) {\n\t\t startValue = startValue.call(element, elementsIndex, elementsLength);\n\t\t }\n\t\t\n\t\t /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t\t return [ endValue || 0, easing, startValue ];\n\t\t }\n\t\t\n\t\t /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n\t\t colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n\t\t $.each(propertiesMap, function(property, value) {\n\t\t /* Find shorthand color properties that have been passed a hex string. */\n\t\t if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n\t\t /* Parse the value data for each shorthand. */\n\t\t var valueData = parsePropertyValue(value, true),\n\t\t endValue = valueData[0],\n\t\t easing = valueData[1],\n\t\t startValue = valueData[2];\n\t\t\n\t\t if (CSS.RegEx.isHex.test(endValue)) {\n\t\t /* Convert the hex strings into their RGB component arrays. */\n\t\t var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n\t\t endValueRGB = CSS.Values.hexToRgb(endValue),\n\t\t startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\t\t\n\t\t /* Inject the RGB component tweens into propertiesMap. */\n\t\t for (var i = 0; i < colorComponents.length; i++) {\n\t\t var dataArray = [ endValueRGB[i] ];\n\t\t\n\t\t if (easing) {\n\t\t dataArray.push(easing);\n\t\t }\n\t\t\n\t\t if (startValueRGB !== undefined) {\n\t\t dataArray.push(startValueRGB[i]);\n\t\t }\n\t\t\n\t\t propertiesMap[property + colorComponents[i]] = dataArray;\n\t\t }\n\t\t\n\t\t /* Remove the intermediary shorthand property entry now that we've processed it. */\n\t\t delete propertiesMap[property];\n\t\t }\n\t\t }\n\t\t });\n\t\t\n\t\t /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t\t for (var property in propertiesMap) {\n\t\t\n\t\t /**************************\n\t\t Start Value Sourcing\n\t\t **************************/\n\t\t\n\t\t /* Parse out endValue, easing, and startValue from the property's data. */\n\t\t var valueData = parsePropertyValue(propertiesMap[property]),\n\t\t endValue = valueData[0],\n\t\t easing = valueData[1],\n\t\t startValue = valueData[2];\n\t\t\n\t\t /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n\t\t we force the property to its camelCase styling to normalize it for manipulation. */\n\t\t property = CSS.Names.camelCase(property);\n\t\t\n\t\t /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t\t var rootProperty = CSS.Hooks.getRoot(property),\n\t\t rootPropertyValue = false;\n\t\t\n\t\t /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t\t /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t\t if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t\t if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\t\n\t\t continue;\n\t\t }\n\t\t\n\t\t /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t\t if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t\t startValue = 0;\n\t\t }\n\t\t\n\t\t /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t\t for all of the current call's properties that were *also* animated in the previous call. */\n\t\t /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t\t if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t\t if (startValue === undefined) {\n\t\t startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t\t }\n\t\t\n\t\t /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t\t rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n\t\t /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t\t } else {\n\t\t /* Handle hooked properties. */\n\t\t if (CSS.Hooks.registered[property]) {\n\t\t if (startValue === undefined) {\n\t\t rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t\t /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t\t startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t\t /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t\t } else {\n\t\t /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t\t rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t\t }\n\t\t /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t\t } else if (startValue === undefined) {\n\t\t startValue = CSS.getPropertyValue(element, property); /* GET */\n\t\t }\n\t\t }\n\t\t\n\t\t /**************************\n\t\t Value Data Extraction\n\t\t **************************/\n\t\t\n\t\t var separatedValue,\n\t\t endValueUnitType,\n\t\t startValueUnitType,\n\t\t operator = false;\n\t\t\n\t\t /* Separates a property value into its numeric value and its unit type. */\n\t\t function separateValue (property, value) {\n\t\t var unitType,\n\t\t numericValue;\n\t\t\n\t\t numericValue = (value || \"0\")\n\t\t .toString()\n\t\t .toLowerCase()\n\t\t /* Match the unit type at the end of the value. */\n\t\t .replace(/[%A-z]+$/, function(match) {\n\t\t /* Grab the unit type. */\n\t\t unitType = match;\n\t\t\n\t\t /* Strip the unit type off of value. */\n\t\t return \"\";\n\t\t });\n\t\t\n\t\t /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t\t if (!unitType) {\n\t\t unitType = CSS.Values.getUnitType(property);\n\t\t }\n\t\t\n\t\t return [ numericValue, unitType ];\n\t\t }\n\t\t\n\t\t /* Separate startValue. */\n\t\t separatedValue = separateValue(property, startValue);\n\t\t startValue = separatedValue[0];\n\t\t startValueUnitType = separatedValue[1];\n\t\t\n\t\t /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t\t separatedValue = separateValue(property, endValue);\n\t\t endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t\t operator = subMatch;\n\t\t\n\t\t /* Strip the operator off of the value. */\n\t\t return \"\";\n\t\t });\n\t\t endValueUnitType = separatedValue[1];\n\t\t\n\t\t /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t\t startValue = parseFloat(startValue) || 0;\n\t\t endValue = parseFloat(endValue) || 0;\n\t\t\n\t\t /***************************************\n\t\t Property-Specific Value Conversion\n\t\t ***************************************/\n\t\t\n\t\t /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t\t if (endValueUnitType === \"%\") {\n\t\t /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t\t if (/^(fontSize|lineHeight)$/.test(property)) {\n\t\t /* Convert % into an em decimal value. */\n\t\t endValue = endValue / 100;\n\t\t endValueUnitType = \"em\";\n\t\t /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t\t } else if (/^scale/.test(property)) {\n\t\t endValue = endValue / 100;\n\t\t endValueUnitType = \"\";\n\t\t /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t\t } else if (/(Red|Green|Blue)$/i.test(property)) {\n\t\t endValue = (endValue / 100) * 255;\n\t\t endValueUnitType = \"\";\n\t\t }\n\t\t }\n\t\t\n\t\t /***************************\n\t\t Unit Ratio Calculation\n\t\t ***************************/\n\t\t\n\t\t /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t\t /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t\t setting values with the target unit type then comparing the returned pixel value. */\n\t\t /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t\t /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t\t function calculateUnitRatios () {\n\t\t\n\t\t /************************\n\t\t Same Ratio Checks\n\t\t ************************/\n\t\t\n\t\t /* The properties below are used to determine whether the element differs sufficiently from this call's\n\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t\t this is done to minimize DOM querying. */\n\t\t var sameRatioIndicators = {\n\t\t myParent: element.parentNode || document.body, /* GET */\n\t\t position: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t\t fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t\t },\n\t\t /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t\t samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t\t /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t\t sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\t\t\n\t\t /* Store these ratio indicators call-wide for the next element to compare against. */\n\t\t callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t\t callUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t\t callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\t\t\n\t\t /***************************\n\t\t Element-Specific Units\n\t\t ***************************/\n\t\t\n\t\t /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t\t var measurement = 100,\n\t\t unitRatios = {};\n\t\t\n\t\t if (!sameEmRatio || !samePercentRatio) {\n\t\t var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\t\t\n\t\t Velocity.init(dummy);\n\t\t sameRatioIndicators.myParent.appendChild(dummy);\n\t\t\n\t\t /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t\t /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t\t $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n\t\t Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t\t });\n\t\t Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t\t Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t\t Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\t\t\n\t\t /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t\t $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n\t\t Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t\t });\n\t\t /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t\t Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\t\t\n\t\t /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t\t unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\t\t\n\t\t sameRatioIndicators.myParent.removeChild(dummy);\n\t\t } else {\n\t\t unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t\t }\n\t\t\n\t\t /***************************\n\t\t Element-Agnostic Units\n\t\t ***************************/\n\t\t\n\t\t /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t\t so we calculate it now. */\n\t\t if (callUnitConversionData.remToPx === null) {\n\t\t /* Default to browsers' default fontSize of 16px in the case of 0. */\n\t\t callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t\t }\n\t\t\n\t\t /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t\t if (callUnitConversionData.vwToPx === null) {\n\t\t callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t\t callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t\t }\n\t\t\n\t\t unitRatios.remToPx = callUnitConversionData.remToPx;\n\t\t unitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t\t unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\t\t\n\t\t if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\t\n\t\t return unitRatios;\n\t\t }\n\t\t\n\t\t /********************\n\t\t Unit Conversion\n\t\t ********************/\n\t\t\n\t\t /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t\t if (/[\\/*]/.test(operator)) {\n\t\t endValueUnitType = startValueUnitType;\n\t\t /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t\t /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t\t } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t\t /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t\t /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t\t which remains past the point of the animation's completion. */\n\t\t if (endValue === 0) {\n\t\t endValueUnitType = startValueUnitType;\n\t\t } else {\n\t\t /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t\t elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\t\t\n\t\t /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t\t /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t\t var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\t\t\n\t\t /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t\t switch (startValueUnitType) {\n\t\t case \"%\":\n\t\t /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t\t startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t break;\n\t\t\n\t\t case \"px\":\n\t\t /* px acts as our midpoint in the unit conversion process; do nothing. */\n\t\t break;\n\t\t\n\t\t default:\n\t\t startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t\t }\n\t\t\n\t\t /* Invert the px ratios to convert into to the target unit. */\n\t\t switch (endValueUnitType) {\n\t\t case \"%\":\n\t\t startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t break;\n\t\t\n\t\t case \"px\":\n\t\t /* startValue is already in px, do nothing; we're done. */\n\t\t break;\n\t\t\n\t\t default:\n\t\t startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n\t\t }\n\t\t }\n\t\t }\n\t\t\n\t\t /*********************\n\t\t Relative Values\n\t\t *********************/\n\t\t\n\t\t /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t\t /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t\t 50 points is added on top of the current % value. */\n\t\t switch (operator) {\n\t\t case \"+\":\n\t\t endValue = startValue + endValue;\n\t\t break;\n\t\t\n\t\t case \"-\":\n\t\t endValue = startValue - endValue;\n\t\t break;\n\t\t\n\t\t case \"*\":\n\t\t endValue = startValue * endValue;\n\t\t break;\n\t\t\n\t\t case \"/\":\n\t\t endValue = startValue / endValue;\n\t\t break;\n\t\t }\n\t\t\n\t\t /**************************\n\t\t tweensContainer Push\n\t\t **************************/\n\t\t\n\t\t /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t\t tweensContainer[property] = {\n\t\t rootPropertyValue: rootPropertyValue,\n\t\t startValue: startValue,\n\t\t currentValue: startValue,\n\t\t endValue: endValue,\n\t\t unitType: endValueUnitType,\n\t\t easing: easing\n\t\t };\n\t\t\n\t\t if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t\t }\n\t\t\n\t\t /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t\t tweensContainer.element = element;\n\t\t }\n\t\t\n\t\t /*****************\n\t\t Call Push\n\t\t *****************/\n\t\t\n\t\t /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t\t if (tweensContainer.element) {\n\t\t /* Apply the \"velocity-animating\" indicator class. */\n\t\t CSS.Values.addClass(element, \"velocity-animating\");\n\t\t\n\t\t /* The call array houses the tweensContainers for each element being animated in the current call. */\n\t\t call.push(tweensContainer);\n\t\t\n\t\t /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t\t if (opts.queue === \"\") {\n\t\t Data(element).tweensContainer = tweensContainer;\n\t\t Data(element).opts = opts;\n\t\t }\n\t\t\n\t\t /* Switch on the element's animating flag. */\n\t\t Data(element).isAnimating = true;\n\t\t\n\t\t /* Once the final element in this call's element set has been processed, push the call array onto\n\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t\t if (elementsIndex === elementsLength - 1) {\n\t\t /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t\t Anything on this call container is subjected to tick() processing. */\n\t\t Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\t\t\n\t\t /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t\t if (Velocity.State.isTicking === false) {\n\t\t Velocity.State.isTicking = true;\n\t\t\n\t\t /* Start the tick loop. */\n\t\t tick();\n\t\t }\n\t\t } else {\n\t\t elementsIndex++;\n\t\t }\n\t\t }\n\t\t }", "function scroll() {\n\t\t\tslotScroller.scrollTop(top);\n\t\t}", "function scroll() {\n\t\t\tslotScroller.scrollTop(top);\n\t\t}", "function scroll() {\n\t\t\tslotScroller.scrollTop(top);\n\t\t}", "function scroll() {\n\t\t\tslotScroller.scrollTop(top);\n\t\t}", "function scroll() {\n\t\t\tslotScroller.scrollTop(top);\n\t\t}", "_scrollHandler () {}", "function buildQueue (next) {\n\t\n\t /*******************\n\t Option: Begin\n\t *******************/\n\t\n\t /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t if (opts.begin && elementsIndex === 0) {\n\t /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t try {\n\t opts.begin.call(elements, elements);\n\t } catch (error) {\n\t setTimeout(function() { throw error; }, 1);\n\t }\n\t }\n\t\n\t /*****************************************\n\t Tween Data Construction (for Scroll)\n\t *****************************************/\n\t\n\t /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t if (action === \"scroll\") {\n\t /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t scrollOffset = parseFloat(opts.offset) || 0,\n\t scrollPositionCurrent,\n\t scrollPositionCurrentAlternate,\n\t scrollPositionEnd;\n\t\n\t /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t if (opts.container) {\n\t /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t /* Extract the raw DOM element from the jQuery wrapper. */\n\t opts.container = opts.container[0] || opts.container;\n\t /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t (due to the user's natural interaction with the page). */\n\t scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\t\n\t /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t the scroll container's current scroll position. */\n\t scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t } else {\n\t opts.container = null;\n\t }\n\t } else {\n\t /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t the appropriate cached property names (which differ based on browser type). */\n\t scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\t\n\t /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t and therefore end values do not need to be compounded onto current values. */\n\t scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t }\n\t\n\t /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t tweensContainer = {\n\t scroll: {\n\t rootPropertyValue: false,\n\t startValue: scrollPositionCurrent,\n\t currentValue: scrollPositionCurrent,\n\t endValue: scrollPositionEnd,\n\t unitType: \"\",\n\t easing: opts.easing,\n\t scrollData: {\n\t container: opts.container,\n\t direction: scrollDirection,\n\t alternateValue: scrollPositionCurrentAlternate\n\t }\n\t },\n\t element: element\n\t };\n\t\n\t if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\n\t /******************************************\n\t Tween Data Construction (for Reverse)\n\t ******************************************/\n\t\n\t /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t } else if (action === \"reverse\") {\n\t /* Abort if there is no prior animation data to reverse to. */\n\t if (!Data(element).tweensContainer) {\n\t /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t $.dequeue(element, opts.queue);\n\t\n\t return;\n\t } else {\n\t /*********************\n\t Options Parsing\n\t *********************/\n\t\n\t /* If the element was hidden via the display option in the previous call,\n\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t if (Data(element).opts.display === \"none\") {\n\t Data(element).opts.display = \"auto\";\n\t }\n\t\n\t if (Data(element).opts.visibility === \"hidden\") {\n\t Data(element).opts.visibility = \"visible\";\n\t }\n\t\n\t /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t Data(element).opts.loop = false;\n\t Data(element).opts.begin = null;\n\t Data(element).opts.complete = null;\n\t\n\t /* Since we're extending an opts object that has already been extended with the defaults options object,\n\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t if (!options.easing) {\n\t delete opts.easing;\n\t }\n\t\n\t if (!options.duration) {\n\t delete opts.duration;\n\t }\n\t\n\t /* The opts object used for reversal is an extension of the options object optionally passed into this\n\t reverse call plus the options used in the previous Velocity call. */\n\t opts = $.extend({}, Data(element).opts, opts);\n\t\n\t /*************************************\n\t Tweens Container Reconstruction\n\t *************************************/\n\t\n\t /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\t\n\t /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t for (var lastTween in lastTweensContainer) {\n\t /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t if (lastTween !== \"element\") {\n\t var lastStartValue = lastTweensContainer[lastTween].startValue;\n\t\n\t lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t lastTweensContainer[lastTween].endValue = lastStartValue;\n\t\n\t /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t if (!Type.isEmptyObject(options)) {\n\t lastTweensContainer[lastTween].easing = opts.easing;\n\t }\n\t\n\t if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n\t }\n\t }\n\t\n\t tweensContainer = lastTweensContainer;\n\t }\n\t\n\t /*****************************************\n\t Tween Data Construction (for Start)\n\t *****************************************/\n\t\n\t } else if (action === \"start\") {\n\t\n\t /*************************\n\t Value Transferring\n\t *************************/\n\t\n\t /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t process whenever possible in order to avoid requerying the DOM. */\n\t /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t then the DOM is queried for the element's current values as a last resort. */\n\t /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\t var lastTweensContainer;\n\t\n\t /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t Velocity call to pull values from, do so. */\n\t if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n\t lastTweensContainer = Data(element).tweensContainer;\n\t }\n\t\n\t /***************************\n\t Tween Data Calculation\n\t ***************************/\n\t\n\t /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t /* Property map values can either take the form of 1) a single value representing the end value,\n\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t function parsePropertyValue (valueData, skipResolvingEasing) {\n\t var endValue = undefined,\n\t easing = undefined,\n\t startValue = undefined;\n\t\n\t /* Handle the array format, which can be structured as one of three potential overloads:\n\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t if (Type.isArray(valueData)) {\n\t /* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t since the ensuing property cycling logic does that. */\n\t endValue = valueData[0];\n\t\n\t /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t start value since easings can only be non-hex strings or arrays. */\n\t if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t startValue = valueData[1];\n\t /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n\t } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n\t easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\t\n\t /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t if (valueData[2] !== undefined) {\n\t startValue = valueData[2];\n\t }\n\t }\n\t /* Handle the single-value format. */\n\t } else {\n\t endValue = valueData;\n\t }\n\t\n\t /* Default to the call's easing if a per-property easing type was not defined. */\n\t if (!skipResolvingEasing) {\n\t easing = easing || opts.easing;\n\t }\n\t\n\t /* If functions were passed in as values, pass the function the current element as its context,\n\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t if (Type.isFunction(endValue)) {\n\t endValue = endValue.call(element, elementsIndex, elementsLength);\n\t }\n\t\n\t if (Type.isFunction(startValue)) {\n\t startValue = startValue.call(element, elementsIndex, elementsLength);\n\t }\n\t\n\t /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t return [ endValue || 0, easing, startValue ];\n\t }\n\t\n\t /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n\t colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n\t $.each(propertiesMap, function(property, value) {\n\t /* Find shorthand color properties that have been passed a hex string. */\n\t if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n\t /* Parse the value data for each shorthand. */\n\t var valueData = parsePropertyValue(value, true),\n\t endValue = valueData[0],\n\t easing = valueData[1],\n\t startValue = valueData[2];\n\t\n\t if (CSS.RegEx.isHex.test(endValue)) {\n\t /* Convert the hex strings into their RGB component arrays. */\n\t var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n\t endValueRGB = CSS.Values.hexToRgb(endValue),\n\t startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\t\n\t /* Inject the RGB component tweens into propertiesMap. */\n\t for (var i = 0; i < colorComponents.length; i++) {\n\t var dataArray = [ endValueRGB[i] ];\n\t\n\t if (easing) {\n\t dataArray.push(easing);\n\t }\n\t\n\t if (startValueRGB !== undefined) {\n\t dataArray.push(startValueRGB[i]);\n\t }\n\t\n\t propertiesMap[property + colorComponents[i]] = dataArray;\n\t }\n\t\n\t /* Remove the intermediary shorthand property entry now that we've processed it. */\n\t delete propertiesMap[property];\n\t }\n\t }\n\t });\n\t\n\t /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t for (var property in propertiesMap) {\n\t\n\t /**************************\n\t Start Value Sourcing\n\t **************************/\n\t\n\t /* Parse out endValue, easing, and startValue from the property's data. */\n\t var valueData = parsePropertyValue(propertiesMap[property]),\n\t endValue = valueData[0],\n\t easing = valueData[1],\n\t startValue = valueData[2];\n\t\n\t /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n\t we force the property to its camelCase styling to normalize it for manipulation. */\n\t property = CSS.Names.camelCase(property);\n\t\n\t /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t var rootProperty = CSS.Hooks.getRoot(property),\n\t rootPropertyValue = false;\n\t\n\t /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\n\t continue;\n\t }\n\t\n\t /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t startValue = 0;\n\t }\n\t\n\t /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t for all of the current call's properties that were *also* animated in the previous call. */\n\t /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t if (startValue === undefined) {\n\t startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t }\n\t\n\t /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n\t /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t } else {\n\t /* Handle hooked properties. */\n\t if (CSS.Hooks.registered[property]) {\n\t if (startValue === undefined) {\n\t rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t } else {\n\t /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t }\n\t /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t } else if (startValue === undefined) {\n\t startValue = CSS.getPropertyValue(element, property); /* GET */\n\t }\n\t }\n\t\n\t /**************************\n\t Value Data Extraction\n\t **************************/\n\t\n\t var separatedValue,\n\t endValueUnitType,\n\t startValueUnitType,\n\t operator = false;\n\t\n\t /* Separates a property value into its numeric value and its unit type. */\n\t function separateValue (property, value) {\n\t var unitType,\n\t numericValue;\n\t\n\t numericValue = (value || \"0\")\n\t .toString()\n\t .toLowerCase()\n\t /* Match the unit type at the end of the value. */\n\t .replace(/[%A-z]+$/, function(match) {\n\t /* Grab the unit type. */\n\t unitType = match;\n\t\n\t /* Strip the unit type off of value. */\n\t return \"\";\n\t });\n\t\n\t /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t if (!unitType) {\n\t unitType = CSS.Values.getUnitType(property);\n\t }\n\t\n\t return [ numericValue, unitType ];\n\t }\n\t\n\t /* Separate startValue. */\n\t separatedValue = separateValue(property, startValue);\n\t startValue = separatedValue[0];\n\t startValueUnitType = separatedValue[1];\n\t\n\t /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t separatedValue = separateValue(property, endValue);\n\t endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t operator = subMatch;\n\t\n\t /* Strip the operator off of the value. */\n\t return \"\";\n\t });\n\t endValueUnitType = separatedValue[1];\n\t\n\t /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t startValue = parseFloat(startValue) || 0;\n\t endValue = parseFloat(endValue) || 0;\n\t\n\t /***************************************\n\t Property-Specific Value Conversion\n\t ***************************************/\n\t\n\t /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t if (endValueUnitType === \"%\") {\n\t /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t if (/^(fontSize|lineHeight)$/.test(property)) {\n\t /* Convert % into an em decimal value. */\n\t endValue = endValue / 100;\n\t endValueUnitType = \"em\";\n\t /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t } else if (/^scale/.test(property)) {\n\t endValue = endValue / 100;\n\t endValueUnitType = \"\";\n\t /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t } else if (/(Red|Green|Blue)$/i.test(property)) {\n\t endValue = (endValue / 100) * 255;\n\t endValueUnitType = \"\";\n\t }\n\t }\n\t\n\t /***************************\n\t Unit Ratio Calculation\n\t ***************************/\n\t\n\t /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t setting values with the target unit type then comparing the returned pixel value. */\n\t /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t function calculateUnitRatios () {\n\t\n\t /************************\n\t Same Ratio Checks\n\t ************************/\n\t\n\t /* The properties below are used to determine whether the element differs sufficiently from this call's\n\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t this is done to minimize DOM querying. */\n\t var sameRatioIndicators = {\n\t myParent: element.parentNode || document.body, /* GET */\n\t position: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t },\n\t /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\t\n\t /* Store these ratio indicators call-wide for the next element to compare against. */\n\t callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t callUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\t\n\t /***************************\n\t Element-Specific Units\n\t ***************************/\n\t\n\t /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t var measurement = 100,\n\t unitRatios = {};\n\t\n\t if (!sameEmRatio || !samePercentRatio) {\n\t var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\t\n\t Velocity.init(dummy);\n\t sameRatioIndicators.myParent.appendChild(dummy);\n\t\n\t /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n\t Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t });\n\t Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\t\n\t /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n\t Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t });\n\t /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\t\n\t /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\t\n\t sameRatioIndicators.myParent.removeChild(dummy);\n\t } else {\n\t unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t }\n\t\n\t /***************************\n\t Element-Agnostic Units\n\t ***************************/\n\t\n\t /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t so we calculate it now. */\n\t if (callUnitConversionData.remToPx === null) {\n\t /* Default to browsers' default fontSize of 16px in the case of 0. */\n\t callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t }\n\t\n\t /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t if (callUnitConversionData.vwToPx === null) {\n\t callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t }\n\t\n\t unitRatios.remToPx = callUnitConversionData.remToPx;\n\t unitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\t\n\t if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\n\t return unitRatios;\n\t }\n\t\n\t /********************\n\t Unit Conversion\n\t ********************/\n\t\n\t /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t if (/[\\/*]/.test(operator)) {\n\t endValueUnitType = startValueUnitType;\n\t /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t which remains past the point of the animation's completion. */\n\t if (endValue === 0) {\n\t endValueUnitType = startValueUnitType;\n\t } else {\n\t /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\t\n\t /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\t\n\t /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t switch (startValueUnitType) {\n\t case \"%\":\n\t /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t break;\n\t\n\t case \"px\":\n\t /* px acts as our midpoint in the unit conversion process; do nothing. */\n\t break;\n\t\n\t default:\n\t startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t }\n\t\n\t /* Invert the px ratios to convert into to the target unit. */\n\t switch (endValueUnitType) {\n\t case \"%\":\n\t startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t break;\n\t\n\t case \"px\":\n\t /* startValue is already in px, do nothing; we're done. */\n\t break;\n\t\n\t default:\n\t startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n\t }\n\t }\n\t }\n\t\n\t /*********************\n\t Relative Values\n\t *********************/\n\t\n\t /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t 50 points is added on top of the current % value. */\n\t switch (operator) {\n\t case \"+\":\n\t endValue = startValue + endValue;\n\t break;\n\t\n\t case \"-\":\n\t endValue = startValue - endValue;\n\t break;\n\t\n\t case \"*\":\n\t endValue = startValue * endValue;\n\t break;\n\t\n\t case \"/\":\n\t endValue = startValue / endValue;\n\t break;\n\t }\n\t\n\t /**************************\n\t tweensContainer Push\n\t **************************/\n\t\n\t /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t tweensContainer[property] = {\n\t rootPropertyValue: rootPropertyValue,\n\t startValue: startValue,\n\t currentValue: startValue,\n\t endValue: endValue,\n\t unitType: endValueUnitType,\n\t easing: easing\n\t };\n\t\n\t if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t }\n\t\n\t /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t tweensContainer.element = element;\n\t }\n\t\n\t /*****************\n\t Call Push\n\t *****************/\n\t\n\t /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t if (tweensContainer.element) {\n\t /* Apply the \"velocity-animating\" indicator class. */\n\t CSS.Values.addClass(element, \"velocity-animating\");\n\t\n\t /* The call array houses the tweensContainers for each element being animated in the current call. */\n\t call.push(tweensContainer);\n\t\n\t /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t if (opts.queue === \"\") {\n\t Data(element).tweensContainer = tweensContainer;\n\t Data(element).opts = opts;\n\t }\n\t\n\t /* Switch on the element's animating flag. */\n\t Data(element).isAnimating = true;\n\t\n\t /* Once the final element in this call's element set has been processed, push the call array onto\n\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t if (elementsIndex === elementsLength - 1) {\n\t /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t Anything on this call container is subjected to tick() processing. */\n\t Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\t\n\t /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t if (Velocity.State.isTicking === false) {\n\t Velocity.State.isTicking = true;\n\t\n\t /* Start the tick loop. */\n\t tick();\n\t }\n\t } else {\n\t elementsIndex++;\n\t }\n\t }\n\t }", "function buildQueue (next) {\n\t\n\t /*******************\n\t Option: Begin\n\t *******************/\n\t\n\t /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t if (opts.begin && elementsIndex === 0) {\n\t /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t try {\n\t opts.begin.call(elements, elements);\n\t } catch (error) {\n\t setTimeout(function() { throw error; }, 1);\n\t }\n\t }\n\t\n\t /*****************************************\n\t Tween Data Construction (for Scroll)\n\t *****************************************/\n\t\n\t /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t if (action === \"scroll\") {\n\t /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t scrollOffset = parseFloat(opts.offset) || 0,\n\t scrollPositionCurrent,\n\t scrollPositionCurrentAlternate,\n\t scrollPositionEnd;\n\t\n\t /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t if (opts.container) {\n\t /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t /* Extract the raw DOM element from the jQuery wrapper. */\n\t opts.container = opts.container[0] || opts.container;\n\t /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t (due to the user's natural interaction with the page). */\n\t scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\t\n\t /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t the scroll container's current scroll position. */\n\t scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t } else {\n\t opts.container = null;\n\t }\n\t } else {\n\t /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t the appropriate cached property names (which differ based on browser type). */\n\t scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\t\n\t /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t and therefore end values do not need to be compounded onto current values. */\n\t scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t }\n\t\n\t /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t tweensContainer = {\n\t scroll: {\n\t rootPropertyValue: false,\n\t startValue: scrollPositionCurrent,\n\t currentValue: scrollPositionCurrent,\n\t endValue: scrollPositionEnd,\n\t unitType: \"\",\n\t easing: opts.easing,\n\t scrollData: {\n\t container: opts.container,\n\t direction: scrollDirection,\n\t alternateValue: scrollPositionCurrentAlternate\n\t }\n\t },\n\t element: element\n\t };\n\t\n\t if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\n\t /******************************************\n\t Tween Data Construction (for Reverse)\n\t ******************************************/\n\t\n\t /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t } else if (action === \"reverse\") {\n\t /* Abort if there is no prior animation data to reverse to. */\n\t if (!Data(element).tweensContainer) {\n\t /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t $.dequeue(element, opts.queue);\n\t\n\t return;\n\t } else {\n\t /*********************\n\t Options Parsing\n\t *********************/\n\t\n\t /* If the element was hidden via the display option in the previous call,\n\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t if (Data(element).opts.display === \"none\") {\n\t Data(element).opts.display = \"auto\";\n\t }\n\t\n\t if (Data(element).opts.visibility === \"hidden\") {\n\t Data(element).opts.visibility = \"visible\";\n\t }\n\t\n\t /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t Data(element).opts.loop = false;\n\t Data(element).opts.begin = null;\n\t Data(element).opts.complete = null;\n\t\n\t /* Since we're extending an opts object that has already been extended with the defaults options object,\n\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t if (!options.easing) {\n\t delete opts.easing;\n\t }\n\t\n\t if (!options.duration) {\n\t delete opts.duration;\n\t }\n\t\n\t /* The opts object used for reversal is an extension of the options object optionally passed into this\n\t reverse call plus the options used in the previous Velocity call. */\n\t opts = $.extend({}, Data(element).opts, opts);\n\t\n\t /*************************************\n\t Tweens Container Reconstruction\n\t *************************************/\n\t\n\t /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\t\n\t /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t for (var lastTween in lastTweensContainer) {\n\t /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t if (lastTween !== \"element\") {\n\t var lastStartValue = lastTweensContainer[lastTween].startValue;\n\t\n\t lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t lastTweensContainer[lastTween].endValue = lastStartValue;\n\t\n\t /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t if (!Type.isEmptyObject(options)) {\n\t lastTweensContainer[lastTween].easing = opts.easing;\n\t }\n\t\n\t if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n\t }\n\t }\n\t\n\t tweensContainer = lastTweensContainer;\n\t }\n\t\n\t /*****************************************\n\t Tween Data Construction (for Start)\n\t *****************************************/\n\t\n\t } else if (action === \"start\") {\n\t\n\t /*************************\n\t Value Transferring\n\t *************************/\n\t\n\t /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t process whenever possible in order to avoid requerying the DOM. */\n\t /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t then the DOM is queried for the element's current values as a last resort. */\n\t /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\t var lastTweensContainer;\n\t\n\t /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t Velocity call to pull values from, do so. */\n\t if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n\t lastTweensContainer = Data(element).tweensContainer;\n\t }\n\t\n\t /***************************\n\t Tween Data Calculation\n\t ***************************/\n\t\n\t /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t /* Property map values can either take the form of 1) a single value representing the end value,\n\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t function parsePropertyValue (valueData, skipResolvingEasing) {\n\t var endValue = undefined,\n\t easing = undefined,\n\t startValue = undefined;\n\t\n\t /* Handle the array format, which can be structured as one of three potential overloads:\n\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t if (Type.isArray(valueData)) {\n\t /* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t since the ensuing property cycling logic does that. */\n\t endValue = valueData[0];\n\t\n\t /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t start value since easings can only be non-hex strings or arrays. */\n\t if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t startValue = valueData[1];\n\t /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n\t } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n\t easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\t\n\t /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t if (valueData[2] !== undefined) {\n\t startValue = valueData[2];\n\t }\n\t }\n\t /* Handle the single-value format. */\n\t } else {\n\t endValue = valueData;\n\t }\n\t\n\t /* Default to the call's easing if a per-property easing type was not defined. */\n\t if (!skipResolvingEasing) {\n\t easing = easing || opts.easing;\n\t }\n\t\n\t /* If functions were passed in as values, pass the function the current element as its context,\n\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t if (Type.isFunction(endValue)) {\n\t endValue = endValue.call(element, elementsIndex, elementsLength);\n\t }\n\t\n\t if (Type.isFunction(startValue)) {\n\t startValue = startValue.call(element, elementsIndex, elementsLength);\n\t }\n\t\n\t /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t return [ endValue || 0, easing, startValue ];\n\t }\n\t\n\t /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n\t colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n\t $.each(propertiesMap, function(property, value) {\n\t /* Find shorthand color properties that have been passed a hex string. */\n\t if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n\t /* Parse the value data for each shorthand. */\n\t var valueData = parsePropertyValue(value, true),\n\t endValue = valueData[0],\n\t easing = valueData[1],\n\t startValue = valueData[2];\n\t\n\t if (CSS.RegEx.isHex.test(endValue)) {\n\t /* Convert the hex strings into their RGB component arrays. */\n\t var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n\t endValueRGB = CSS.Values.hexToRgb(endValue),\n\t startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\t\n\t /* Inject the RGB component tweens into propertiesMap. */\n\t for (var i = 0; i < colorComponents.length; i++) {\n\t var dataArray = [ endValueRGB[i] ];\n\t\n\t if (easing) {\n\t dataArray.push(easing);\n\t }\n\t\n\t if (startValueRGB !== undefined) {\n\t dataArray.push(startValueRGB[i]);\n\t }\n\t\n\t propertiesMap[property + colorComponents[i]] = dataArray;\n\t }\n\t\n\t /* Remove the intermediary shorthand property entry now that we've processed it. */\n\t delete propertiesMap[property];\n\t }\n\t }\n\t });\n\t\n\t /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t for (var property in propertiesMap) {\n\t\n\t /**************************\n\t Start Value Sourcing\n\t **************************/\n\t\n\t /* Parse out endValue, easing, and startValue from the property's data. */\n\t var valueData = parsePropertyValue(propertiesMap[property]),\n\t endValue = valueData[0],\n\t easing = valueData[1],\n\t startValue = valueData[2];\n\t\n\t /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n\t we force the property to its camelCase styling to normalize it for manipulation. */\n\t property = CSS.Names.camelCase(property);\n\t\n\t /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t var rootProperty = CSS.Hooks.getRoot(property),\n\t rootPropertyValue = false;\n\t\n\t /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\n\t continue;\n\t }\n\t\n\t /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t startValue = 0;\n\t }\n\t\n\t /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t for all of the current call's properties that were *also* animated in the previous call. */\n\t /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t if (startValue === undefined) {\n\t startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t }\n\t\n\t /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n\t /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t } else {\n\t /* Handle hooked properties. */\n\t if (CSS.Hooks.registered[property]) {\n\t if (startValue === undefined) {\n\t rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t } else {\n\t /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t }\n\t /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t } else if (startValue === undefined) {\n\t startValue = CSS.getPropertyValue(element, property); /* GET */\n\t }\n\t }\n\t\n\t /**************************\n\t Value Data Extraction\n\t **************************/\n\t\n\t var separatedValue,\n\t endValueUnitType,\n\t startValueUnitType,\n\t operator = false;\n\t\n\t /* Separates a property value into its numeric value and its unit type. */\n\t function separateValue (property, value) {\n\t var unitType,\n\t numericValue;\n\t\n\t numericValue = (value || \"0\")\n\t .toString()\n\t .toLowerCase()\n\t /* Match the unit type at the end of the value. */\n\t .replace(/[%A-z]+$/, function(match) {\n\t /* Grab the unit type. */\n\t unitType = match;\n\t\n\t /* Strip the unit type off of value. */\n\t return \"\";\n\t });\n\t\n\t /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t if (!unitType) {\n\t unitType = CSS.Values.getUnitType(property);\n\t }\n\t\n\t return [ numericValue, unitType ];\n\t }\n\t\n\t /* Separate startValue. */\n\t separatedValue = separateValue(property, startValue);\n\t startValue = separatedValue[0];\n\t startValueUnitType = separatedValue[1];\n\t\n\t /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t separatedValue = separateValue(property, endValue);\n\t endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t operator = subMatch;\n\t\n\t /* Strip the operator off of the value. */\n\t return \"\";\n\t });\n\t endValueUnitType = separatedValue[1];\n\t\n\t /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t startValue = parseFloat(startValue) || 0;\n\t endValue = parseFloat(endValue) || 0;\n\t\n\t /***************************************\n\t Property-Specific Value Conversion\n\t ***************************************/\n\t\n\t /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t if (endValueUnitType === \"%\") {\n\t /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t if (/^(fontSize|lineHeight)$/.test(property)) {\n\t /* Convert % into an em decimal value. */\n\t endValue = endValue / 100;\n\t endValueUnitType = \"em\";\n\t /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t } else if (/^scale/.test(property)) {\n\t endValue = endValue / 100;\n\t endValueUnitType = \"\";\n\t /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t } else if (/(Red|Green|Blue)$/i.test(property)) {\n\t endValue = (endValue / 100) * 255;\n\t endValueUnitType = \"\";\n\t }\n\t }\n\t\n\t /***************************\n\t Unit Ratio Calculation\n\t ***************************/\n\t\n\t /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t setting values with the target unit type then comparing the returned pixel value. */\n\t /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t function calculateUnitRatios () {\n\t\n\t /************************\n\t Same Ratio Checks\n\t ************************/\n\t\n\t /* The properties below are used to determine whether the element differs sufficiently from this call's\n\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t this is done to minimize DOM querying. */\n\t var sameRatioIndicators = {\n\t myParent: element.parentNode || document.body, /* GET */\n\t position: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t },\n\t /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\t\n\t /* Store these ratio indicators call-wide for the next element to compare against. */\n\t callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t callUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\t\n\t /***************************\n\t Element-Specific Units\n\t ***************************/\n\t\n\t /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t var measurement = 100,\n\t unitRatios = {};\n\t\n\t if (!sameEmRatio || !samePercentRatio) {\n\t var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\t\n\t Velocity.init(dummy);\n\t sameRatioIndicators.myParent.appendChild(dummy);\n\t\n\t /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n\t Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t });\n\t Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\t\n\t /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n\t Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t });\n\t /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\t\n\t /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\t\n\t sameRatioIndicators.myParent.removeChild(dummy);\n\t } else {\n\t unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t }\n\t\n\t /***************************\n\t Element-Agnostic Units\n\t ***************************/\n\t\n\t /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t so we calculate it now. */\n\t if (callUnitConversionData.remToPx === null) {\n\t /* Default to browsers' default fontSize of 16px in the case of 0. */\n\t callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t }\n\t\n\t /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t if (callUnitConversionData.vwToPx === null) {\n\t callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t }\n\t\n\t unitRatios.remToPx = callUnitConversionData.remToPx;\n\t unitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\t\n\t if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\n\t return unitRatios;\n\t }\n\t\n\t /********************\n\t Unit Conversion\n\t ********************/\n\t\n\t /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t if (/[\\/*]/.test(operator)) {\n\t endValueUnitType = startValueUnitType;\n\t /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t which remains past the point of the animation's completion. */\n\t if (endValue === 0) {\n\t endValueUnitType = startValueUnitType;\n\t } else {\n\t /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\t\n\t /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\t\n\t /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t switch (startValueUnitType) {\n\t case \"%\":\n\t /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t break;\n\t\n\t case \"px\":\n\t /* px acts as our midpoint in the unit conversion process; do nothing. */\n\t break;\n\t\n\t default:\n\t startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t }\n\t\n\t /* Invert the px ratios to convert into to the target unit. */\n\t switch (endValueUnitType) {\n\t case \"%\":\n\t startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t break;\n\t\n\t case \"px\":\n\t /* startValue is already in px, do nothing; we're done. */\n\t break;\n\t\n\t default:\n\t startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n\t }\n\t }\n\t }\n\t\n\t /*********************\n\t Relative Values\n\t *********************/\n\t\n\t /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t 50 points is added on top of the current % value. */\n\t switch (operator) {\n\t case \"+\":\n\t endValue = startValue + endValue;\n\t break;\n\t\n\t case \"-\":\n\t endValue = startValue - endValue;\n\t break;\n\t\n\t case \"*\":\n\t endValue = startValue * endValue;\n\t break;\n\t\n\t case \"/\":\n\t endValue = startValue / endValue;\n\t break;\n\t }\n\t\n\t /**************************\n\t tweensContainer Push\n\t **************************/\n\t\n\t /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t tweensContainer[property] = {\n\t rootPropertyValue: rootPropertyValue,\n\t startValue: startValue,\n\t currentValue: startValue,\n\t endValue: endValue,\n\t unitType: endValueUnitType,\n\t easing: easing\n\t };\n\t\n\t if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t }\n\t\n\t /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t tweensContainer.element = element;\n\t }\n\t\n\t /*****************\n\t Call Push\n\t *****************/\n\t\n\t /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t if (tweensContainer.element) {\n\t /* Apply the \"velocity-animating\" indicator class. */\n\t CSS.Values.addClass(element, \"velocity-animating\");\n\t\n\t /* The call array houses the tweensContainers for each element being animated in the current call. */\n\t call.push(tweensContainer);\n\t\n\t /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t if (opts.queue === \"\") {\n\t Data(element).tweensContainer = tweensContainer;\n\t Data(element).opts = opts;\n\t }\n\t\n\t /* Switch on the element's animating flag. */\n\t Data(element).isAnimating = true;\n\t\n\t /* Once the final element in this call's element set has been processed, push the call array onto\n\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t if (elementsIndex === elementsLength - 1) {\n\t /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t Anything on this call container is subjected to tick() processing. */\n\t Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\t\n\t /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t if (Velocity.State.isTicking === false) {\n\t Velocity.State.isTicking = true;\n\t\n\t /* Start the tick loop. */\n\t tick();\n\t }\n\t } else {\n\t elementsIndex++;\n\t }\n\t }\n\t }", "_scroll(scrollCoefficient) {\n const that = this;\n\n that.$.scrollViewer.scrollTop = that.$.scrollViewer.scrollTop + scrollCoefficient * 10;\n that._updateScrollButtonVisibility();\n that.focus();\n }", "moveScroll( val )\r\n {\r\n let current = this.contentScroll.offsetLeft;\r\n let newPos = current + val;\r\n\r\n this.contentScroll.style.left = newPos+'px';\r\n\r\n this.handleButtons( newPos );\r\n }", "function buildQueue (next) {\n\n /*******************\n Option: Begin\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function() { throw error; }, 1);\n }\n }\n\n /*****************************************\n Tween Data Construction (for Scroll)\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n (due to the user's natural interaction with the page). */\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n the scroll container's current scroll position. */\n scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n and therefore end values do not need to be compounded onto current values. */\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n }\n\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n /******************************************\n Tween Data Construction (for Reverse)\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n } else if (action === \"reverse\") {\n /* Abort if there is no prior animation data to reverse to. */\n if (!Data(element).tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n\n return;\n } else {\n /*********************\n Options Parsing\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (Data(element).opts.display === \"none\") {\n Data(element).opts.display = \"auto\";\n }\n\n if (Data(element).opts.visibility === \"hidden\") {\n Data(element).opts.visibility = \"visible\";\n }\n\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n Data(element).opts.loop = false;\n Data(element).opts.begin = null;\n Data(element).opts.complete = null;\n\n /* Since we're extending an opts object that has already been extended with the defaults options object,\n we remove non-explicitly-defined properties that are auto-assigned values. */\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n\n /* The opts object used for reversal is an extension of the options object optionally passed into this\n reverse call plus the options used in the previous Velocity call. */\n opts = $.extend({}, Data(element).opts, opts);\n\n /*************************************\n Tweens Container Reconstruction\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n\n /*****************************************\n Tween Data Construction (for Start)\n *****************************************/\n\n } else if (action === \"start\") {\n\n /*************************\n Value Transferring\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n while the element was in the process of being animated by Velocity, then this current call is safe to use\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n process whenever possible in order to avoid requerying the DOM. */\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n then the DOM is queried for the element's current values as a last resort. */\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n var lastTweensContainer;\n\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n to transfer over end values to use as start values. If it's set to true and there is a previous\n Velocity call to pull values from, do so. */\n if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n lastTweensContainer = Data(element).tweensContainer;\n }\n\n /***************************\n Tween Data Calculation\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n /* Property map values can either take the form of 1) a single value representing the end value,\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n function parsePropertyValue (valueData, skipResolvingEasing) {\n var endValue = undefined,\n easing = undefined,\n startValue = undefined;\n\n /* Handle the array format, which can be structured as one of three potential overloads:\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n start value since easings can only be non-hex strings or arrays. */\n if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n if (valueData[2] !== undefined) {\n startValue = valueData[2];\n }\n }\n /* Handle the single-value format. */\n } else {\n endValue = valueData;\n }\n\n /* Default to the call's easing if a per-property easing type was not defined. */\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n\n /* If functions were passed in as values, pass the function the current element as its context,\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementsIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementsIndex, elementsLength);\n }\n\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n return [ endValue || 0, easing, startValue ];\n }\n\n /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n $.each(propertiesMap, function(property, value) {\n /* Find shorthand color properties that have been passed a hex string. */\n if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n /* Parse the value data for each shorthand. */\n var valueData = parsePropertyValue(value, true),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n /* Inject the RGB component tweens into propertiesMap. */\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [ endValueRGB[i] ];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n propertiesMap[property + colorComponents[i]] = dataArray;\n }\n\n /* Remove the intermediary shorthand property entry now that we've processed it. */\n delete propertiesMap[property];\n }\n }\n });\n\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n for (var property in propertiesMap) {\n\n /**************************\n Start Value Sourcing\n **************************/\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n var valueData = parsePropertyValue(propertiesMap[property]),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n we force the property to its camelCase styling to normalize it for manipulation. */\n property = CSS.Names.camelCase(property);\n\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false;\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n continue;\n }\n\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n for all of the current call's properties that were *also* animated in the previous call. */\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n getPropertyValue() will extract the hook from rootPropertyValue. */\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property); /* GET */\n }\n }\n\n /**************************\n Value Data Extraction\n **************************/\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n\n /* Separates a property value into its numeric value and its unit type. */\n function separateValue (property, value) {\n var unitType,\n numericValue;\n\n numericValue = (value || \"0\")\n .toString()\n .toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function(match) {\n /* Grab the unit type. */\n unitType = match;\n\n /* Strip the unit type off of value. */\n return \"\";\n });\n\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [ numericValue, unitType ];\n }\n\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n operator = subMatch;\n\n /* Strip the operator off of the value. */\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n\n /***************************************\n Property-Specific Value Conversion\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = (endValue / 100) * 255;\n endValueUnitType = \"\";\n }\n }\n\n /***************************\n Unit Ratio Calculation\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n setting values with the target unit type then comparing the returned pixel value. */\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n of batching the SETs and GETs together upfront outweights the potential overhead\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n function calculateUnitRatios () {\n\n /************************\n Same Ratio Checks\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body, /* GET */\n position: CSS.getPropertyValue(element, \"position\"), /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n },\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n /* Store these ratio indicators call-wide for the next element to compare against. */\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n /***************************\n Element-Specific Units\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n\n /***************************\n Element-Agnostic Units\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n so we calculate it now. */\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n }\n\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n return unitRatios;\n }\n\n /********************\n Unit Conversion\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n\n /* Invert the px ratios to convert into to the target unit. */\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n\n /*********************\n Relative Values\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n 50 points is added on top of the current % value. */\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n\n /**************************\n tweensContainer Push\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n tweensContainer.element = element;\n }\n\n /*****************\n Call Push\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n call.push(tweensContainer);\n\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n Data(element).tweensContainer = tweensContainer;\n Data(element).opts = opts;\n }\n\n /* Switch on the element's animating flag. */\n Data(element).isAnimating = true;\n\n /* Once the final element in this call's element set has been processed, push the call array onto\n Velocity.State.calls for the animation tick to immediately begin processing. */\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n\n /* Start the tick loop. */\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function buildQueue (next) {\n\n /*******************\n Option: Begin\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function() { throw error; }, 1);\n }\n }\n\n /*****************************************\n Tween Data Construction (for Scroll)\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n (due to the user's natural interaction with the page). */\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n the scroll container's current scroll position. */\n scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n and therefore end values do not need to be compounded onto current values. */\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n }\n\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n /******************************************\n Tween Data Construction (for Reverse)\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n } else if (action === \"reverse\") {\n /* Abort if there is no prior animation data to reverse to. */\n if (!Data(element).tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n\n return;\n } else {\n /*********************\n Options Parsing\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (Data(element).opts.display === \"none\") {\n Data(element).opts.display = \"auto\";\n }\n\n if (Data(element).opts.visibility === \"hidden\") {\n Data(element).opts.visibility = \"visible\";\n }\n\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n Data(element).opts.loop = false;\n Data(element).opts.begin = null;\n Data(element).opts.complete = null;\n\n /* Since we're extending an opts object that has already been extended with the defaults options object,\n we remove non-explicitly-defined properties that are auto-assigned values. */\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n\n /* The opts object used for reversal is an extension of the options object optionally passed into this\n reverse call plus the options used in the previous Velocity call. */\n opts = $.extend({}, Data(element).opts, opts);\n\n /*************************************\n Tweens Container Reconstruction\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n\n /*****************************************\n Tween Data Construction (for Start)\n *****************************************/\n\n } else if (action === \"start\") {\n\n /*************************\n Value Transferring\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n while the element was in the process of being animated by Velocity, then this current call is safe to use\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n process whenever possible in order to avoid requerying the DOM. */\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n then the DOM is queried for the element's current values as a last resort. */\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n var lastTweensContainer;\n\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n to transfer over end values to use as start values. If it's set to true and there is a previous\n Velocity call to pull values from, do so. */\n if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n lastTweensContainer = Data(element).tweensContainer;\n }\n\n /***************************\n Tween Data Calculation\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n /* Property map values can either take the form of 1) a single value representing the end value,\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n function parsePropertyValue (valueData, skipResolvingEasing) {\n var endValue = undefined,\n easing = undefined,\n startValue = undefined;\n\n /* Handle the array format, which can be structured as one of three potential overloads:\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n start value since easings can only be non-hex strings or arrays. */\n if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n if (valueData[2] !== undefined) {\n startValue = valueData[2];\n }\n }\n /* Handle the single-value format. */\n } else {\n endValue = valueData;\n }\n\n /* Default to the call's easing if a per-property easing type was not defined. */\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n\n /* If functions were passed in as values, pass the function the current element as its context,\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementsIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementsIndex, elementsLength);\n }\n\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n return [ endValue || 0, easing, startValue ];\n }\n\n /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n $.each(propertiesMap, function(property, value) {\n /* Find shorthand color properties that have been passed a hex string. */\n if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n /* Parse the value data for each shorthand. */\n var valueData = parsePropertyValue(value, true),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n /* Inject the RGB component tweens into propertiesMap. */\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [ endValueRGB[i] ];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n propertiesMap[property + colorComponents[i]] = dataArray;\n }\n\n /* Remove the intermediary shorthand property entry now that we've processed it. */\n delete propertiesMap[property];\n }\n }\n });\n\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n for (var property in propertiesMap) {\n\n /**************************\n Start Value Sourcing\n **************************/\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n var valueData = parsePropertyValue(propertiesMap[property]),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n we force the property to its camelCase styling to normalize it for manipulation. */\n property = CSS.Names.camelCase(property);\n\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false;\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n continue;\n }\n\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n for all of the current call's properties that were *also* animated in the previous call. */\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n getPropertyValue() will extract the hook from rootPropertyValue. */\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property); /* GET */\n }\n }\n\n /**************************\n Value Data Extraction\n **************************/\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n\n /* Separates a property value into its numeric value and its unit type. */\n function separateValue (property, value) {\n var unitType,\n numericValue;\n\n numericValue = (value || \"0\")\n .toString()\n .toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function(match) {\n /* Grab the unit type. */\n unitType = match;\n\n /* Strip the unit type off of value. */\n return \"\";\n });\n\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [ numericValue, unitType ];\n }\n\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n operator = subMatch;\n\n /* Strip the operator off of the value. */\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n\n /***************************************\n Property-Specific Value Conversion\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = (endValue / 100) * 255;\n endValueUnitType = \"\";\n }\n }\n\n /***************************\n Unit Ratio Calculation\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n setting values with the target unit type then comparing the returned pixel value. */\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n of batching the SETs and GETs together upfront outweights the potential overhead\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n function calculateUnitRatios () {\n\n /************************\n Same Ratio Checks\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body, /* GET */\n position: CSS.getPropertyValue(element, \"position\"), /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n },\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n /* Store these ratio indicators call-wide for the next element to compare against. */\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n /***************************\n Element-Specific Units\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n\n /***************************\n Element-Agnostic Units\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n so we calculate it now. */\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n }\n\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n return unitRatios;\n }\n\n /********************\n Unit Conversion\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n\n /* Invert the px ratios to convert into to the target unit. */\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n\n /*********************\n Relative Values\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n 50 points is added on top of the current % value. */\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n\n /**************************\n tweensContainer Push\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n tweensContainer.element = element;\n }\n\n /*****************\n Call Push\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n call.push(tweensContainer);\n\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n Data(element).tweensContainer = tweensContainer;\n Data(element).opts = opts;\n }\n\n /* Switch on the element's animating flag. */\n Data(element).isAnimating = true;\n\n /* Once the final element in this call's element set has been processed, push the call array onto\n Velocity.State.calls for the animation tick to immediately begin processing. */\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n\n /* Start the tick loop. */\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function buildQueue (next) {\n\n /*******************\n Option: Begin\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function() { throw error; }, 1);\n }\n }\n\n /*****************************************\n Tween Data Construction (for Scroll)\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n (due to the user's natural interaction with the page). */\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n the scroll container's current scroll position. */\n scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n and therefore end values do not need to be compounded onto current values. */\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n }\n\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n /******************************************\n Tween Data Construction (for Reverse)\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n } else if (action === \"reverse\") {\n /* Abort if there is no prior animation data to reverse to. */\n if (!Data(element).tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n\n return;\n } else {\n /*********************\n Options Parsing\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (Data(element).opts.display === \"none\") {\n Data(element).opts.display = \"auto\";\n }\n\n if (Data(element).opts.visibility === \"hidden\") {\n Data(element).opts.visibility = \"visible\";\n }\n\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n Data(element).opts.loop = false;\n Data(element).opts.begin = null;\n Data(element).opts.complete = null;\n\n /* Since we're extending an opts object that has already been extended with the defaults options object,\n we remove non-explicitly-defined properties that are auto-assigned values. */\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n\n /* The opts object used for reversal is an extension of the options object optionally passed into this\n reverse call plus the options used in the previous Velocity call. */\n opts = $.extend({}, Data(element).opts, opts);\n\n /*************************************\n Tweens Container Reconstruction\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n\n /*****************************************\n Tween Data Construction (for Start)\n *****************************************/\n\n } else if (action === \"start\") {\n\n /*************************\n Value Transferring\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n while the element was in the process of being animated by Velocity, then this current call is safe to use\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n process whenever possible in order to avoid requerying the DOM. */\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n then the DOM is queried for the element's current values as a last resort. */\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n var lastTweensContainer;\n\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n to transfer over end values to use as start values. If it's set to true and there is a previous\n Velocity call to pull values from, do so. */\n if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n lastTweensContainer = Data(element).tweensContainer;\n }\n\n /***************************\n Tween Data Calculation\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n /* Property map values can either take the form of 1) a single value representing the end value,\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n function parsePropertyValue (valueData, skipResolvingEasing) {\n var endValue = undefined,\n easing = undefined,\n startValue = undefined;\n\n /* Handle the array format, which can be structured as one of three potential overloads:\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n start value since easings can only be non-hex strings or arrays. */\n if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n if (valueData[2] !== undefined) {\n startValue = valueData[2];\n }\n }\n /* Handle the single-value format. */\n } else {\n endValue = valueData;\n }\n\n /* Default to the call's easing if a per-property easing type was not defined. */\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n\n /* If functions were passed in as values, pass the function the current element as its context,\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementsIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementsIndex, elementsLength);\n }\n\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n return [ endValue || 0, easing, startValue ];\n }\n\n /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n $.each(propertiesMap, function(property, value) {\n /* Find shorthand color properties that have been passed a hex string. */\n if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n /* Parse the value data for each shorthand. */\n var valueData = parsePropertyValue(value, true),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n /* Inject the RGB component tweens into propertiesMap. */\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [ endValueRGB[i] ];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n propertiesMap[property + colorComponents[i]] = dataArray;\n }\n\n /* Remove the intermediary shorthand property entry now that we've processed it. */\n delete propertiesMap[property];\n }\n }\n });\n\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n for (var property in propertiesMap) {\n\n /**************************\n Start Value Sourcing\n **************************/\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n var valueData = parsePropertyValue(propertiesMap[property]),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n we force the property to its camelCase styling to normalize it for manipulation. */\n property = CSS.Names.camelCase(property);\n\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false;\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n continue;\n }\n\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n for all of the current call's properties that were *also* animated in the previous call. */\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n getPropertyValue() will extract the hook from rootPropertyValue. */\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property); /* GET */\n }\n }\n\n /**************************\n Value Data Extraction\n **************************/\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n\n /* Separates a property value into its numeric value and its unit type. */\n function separateValue (property, value) {\n var unitType,\n numericValue;\n\n numericValue = (value || \"0\")\n .toString()\n .toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function(match) {\n /* Grab the unit type. */\n unitType = match;\n\n /* Strip the unit type off of value. */\n return \"\";\n });\n\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [ numericValue, unitType ];\n }\n\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n operator = subMatch;\n\n /* Strip the operator off of the value. */\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n\n /***************************************\n Property-Specific Value Conversion\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = (endValue / 100) * 255;\n endValueUnitType = \"\";\n }\n }\n\n /***************************\n Unit Ratio Calculation\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n setting values with the target unit type then comparing the returned pixel value. */\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n of batching the SETs and GETs together upfront outweights the potential overhead\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n function calculateUnitRatios () {\n\n /************************\n Same Ratio Checks\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body, /* GET */\n position: CSS.getPropertyValue(element, \"position\"), /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n },\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n /* Store these ratio indicators call-wide for the next element to compare against. */\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n /***************************\n Element-Specific Units\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n\n /***************************\n Element-Agnostic Units\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n so we calculate it now. */\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n }\n\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n return unitRatios;\n }\n\n /********************\n Unit Conversion\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n\n /* Invert the px ratios to convert into to the target unit. */\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n\n /*********************\n Relative Values\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n 50 points is added on top of the current % value. */\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n\n /**************************\n tweensContainer Push\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n tweensContainer.element = element;\n }\n\n /*****************\n Call Push\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n call.push(tweensContainer);\n\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n Data(element).tweensContainer = tweensContainer;\n Data(element).opts = opts;\n }\n\n /* Switch on the element's animating flag. */\n Data(element).isAnimating = true;\n\n /* Once the final element in this call's element set has been processed, push the call array onto\n Velocity.State.calls for the animation tick to immediately begin processing. */\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n\n /* Start the tick loop. */\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function buildQueue (next) {\n\n /*******************\n Option: Begin\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function() { throw error; }, 1);\n }\n }\n\n /*****************************************\n Tween Data Construction (for Scroll)\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n (due to the user's natural interaction with the page). */\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n the scroll container's current scroll position. */\n scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n and therefore end values do not need to be compounded onto current values. */\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n }\n\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n /******************************************\n Tween Data Construction (for Reverse)\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n } else if (action === \"reverse\") {\n /* Abort if there is no prior animation data to reverse to. */\n if (!Data(element).tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n\n return;\n } else {\n /*********************\n Options Parsing\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (Data(element).opts.display === \"none\") {\n Data(element).opts.display = \"auto\";\n }\n\n if (Data(element).opts.visibility === \"hidden\") {\n Data(element).opts.visibility = \"visible\";\n }\n\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n Data(element).opts.loop = false;\n Data(element).opts.begin = null;\n Data(element).opts.complete = null;\n\n /* Since we're extending an opts object that has already been extended with the defaults options object,\n we remove non-explicitly-defined properties that are auto-assigned values. */\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n\n /* The opts object used for reversal is an extension of the options object optionally passed into this\n reverse call plus the options used in the previous Velocity call. */\n opts = $.extend({}, Data(element).opts, opts);\n\n /*************************************\n Tweens Container Reconstruction\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n\n /*****************************************\n Tween Data Construction (for Start)\n *****************************************/\n\n } else if (action === \"start\") {\n\n /*************************\n Value Transferring\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n while the element was in the process of being animated by Velocity, then this current call is safe to use\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n process whenever possible in order to avoid requerying the DOM. */\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n then the DOM is queried for the element's current values as a last resort. */\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n var lastTweensContainer;\n\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n to transfer over end values to use as start values. If it's set to true and there is a previous\n Velocity call to pull values from, do so. */\n if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n lastTweensContainer = Data(element).tweensContainer;\n }\n\n /***************************\n Tween Data Calculation\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n /* Property map values can either take the form of 1) a single value representing the end value,\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n function parsePropertyValue (valueData, skipResolvingEasing) {\n var endValue = undefined,\n easing = undefined,\n startValue = undefined;\n\n /* Handle the array format, which can be structured as one of three potential overloads:\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n start value since easings can only be non-hex strings or arrays. */\n if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n if (valueData[2] !== undefined) {\n startValue = valueData[2];\n }\n }\n /* Handle the single-value format. */\n } else {\n endValue = valueData;\n }\n\n /* Default to the call's easing if a per-property easing type was not defined. */\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n\n /* If functions were passed in as values, pass the function the current element as its context,\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementsIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementsIndex, elementsLength);\n }\n\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n return [ endValue || 0, easing, startValue ];\n }\n\n /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n $.each(propertiesMap, function(property, value) {\n /* Find shorthand color properties that have been passed a hex string. */\n if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n /* Parse the value data for each shorthand. */\n var valueData = parsePropertyValue(value, true),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n /* Inject the RGB component tweens into propertiesMap. */\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [ endValueRGB[i] ];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n propertiesMap[property + colorComponents[i]] = dataArray;\n }\n\n /* Remove the intermediary shorthand property entry now that we've processed it. */\n delete propertiesMap[property];\n }\n }\n });\n\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n for (var property in propertiesMap) {\n\n /**************************\n Start Value Sourcing\n **************************/\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n var valueData = parsePropertyValue(propertiesMap[property]),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n we force the property to its camelCase styling to normalize it for manipulation. */\n property = CSS.Names.camelCase(property);\n\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false;\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n continue;\n }\n\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n for all of the current call's properties that were *also* animated in the previous call. */\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n getPropertyValue() will extract the hook from rootPropertyValue. */\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property); /* GET */\n }\n }\n\n /**************************\n Value Data Extraction\n **************************/\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n\n /* Separates a property value into its numeric value and its unit type. */\n function separateValue (property, value) {\n var unitType,\n numericValue;\n\n numericValue = (value || \"0\")\n .toString()\n .toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function(match) {\n /* Grab the unit type. */\n unitType = match;\n\n /* Strip the unit type off of value. */\n return \"\";\n });\n\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [ numericValue, unitType ];\n }\n\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n operator = subMatch;\n\n /* Strip the operator off of the value. */\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n\n /***************************************\n Property-Specific Value Conversion\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = (endValue / 100) * 255;\n endValueUnitType = \"\";\n }\n }\n\n /***************************\n Unit Ratio Calculation\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n setting values with the target unit type then comparing the returned pixel value. */\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n of batching the SETs and GETs together upfront outweights the potential overhead\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n function calculateUnitRatios () {\n\n /************************\n Same Ratio Checks\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body, /* GET */\n position: CSS.getPropertyValue(element, \"position\"), /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n },\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n /* Store these ratio indicators call-wide for the next element to compare against. */\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n /***************************\n Element-Specific Units\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n\n /***************************\n Element-Agnostic Units\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n so we calculate it now. */\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n }\n\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n return unitRatios;\n }\n\n /********************\n Unit Conversion\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n\n /* Invert the px ratios to convert into to the target unit. */\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n\n /*********************\n Relative Values\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n 50 points is added on top of the current % value. */\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n\n /**************************\n tweensContainer Push\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n tweensContainer.element = element;\n }\n\n /*****************\n Call Push\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n call.push(tweensContainer);\n\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n Data(element).tweensContainer = tweensContainer;\n Data(element).opts = opts;\n }\n\n /* Switch on the element's animating flag. */\n Data(element).isAnimating = true;\n\n /* Once the final element in this call's element set has been processed, push the call array onto\n Velocity.State.calls for the animation tick to immediately begin processing. */\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n\n /* Start the tick loop. */\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function buildQueue (next) {\n\n /*******************\n Option: Begin\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function() { throw error; }, 1);\n }\n }\n\n /*****************************************\n Tween Data Construction (for Scroll)\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n (due to the user's natural interaction with the page). */\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n the scroll container's current scroll position. */\n scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n and therefore end values do not need to be compounded onto current values. */\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n }\n\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n /******************************************\n Tween Data Construction (for Reverse)\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n } else if (action === \"reverse\") {\n /* Abort if there is no prior animation data to reverse to. */\n if (!Data(element).tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n\n return;\n } else {\n /*********************\n Options Parsing\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (Data(element).opts.display === \"none\") {\n Data(element).opts.display = \"auto\";\n }\n\n if (Data(element).opts.visibility === \"hidden\") {\n Data(element).opts.visibility = \"visible\";\n }\n\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n Data(element).opts.loop = false;\n Data(element).opts.begin = null;\n Data(element).opts.complete = null;\n\n /* Since we're extending an opts object that has already been extended with the defaults options object,\n we remove non-explicitly-defined properties that are auto-assigned values. */\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n\n /* The opts object used for reversal is an extension of the options object optionally passed into this\n reverse call plus the options used in the previous Velocity call. */\n opts = $.extend({}, Data(element).opts, opts);\n\n /*************************************\n Tweens Container Reconstruction\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n\n /*****************************************\n Tween Data Construction (for Start)\n *****************************************/\n\n } else if (action === \"start\") {\n\n /*************************\n Value Transferring\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n while the element was in the process of being animated by Velocity, then this current call is safe to use\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n process whenever possible in order to avoid requerying the DOM. */\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n then the DOM is queried for the element's current values as a last resort. */\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n var lastTweensContainer;\n\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n to transfer over end values to use as start values. If it's set to true and there is a previous\n Velocity call to pull values from, do so. */\n if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n lastTweensContainer = Data(element).tweensContainer;\n }\n\n /***************************\n Tween Data Calculation\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n /* Property map values can either take the form of 1) a single value representing the end value,\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n function parsePropertyValue (valueData, skipResolvingEasing) {\n var endValue = undefined,\n easing = undefined,\n startValue = undefined;\n\n /* Handle the array format, which can be structured as one of three potential overloads:\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n start value since easings can only be non-hex strings or arrays. */\n if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n if (valueData[2] !== undefined) {\n startValue = valueData[2];\n }\n }\n /* Handle the single-value format. */\n } else {\n endValue = valueData;\n }\n\n /* Default to the call's easing if a per-property easing type was not defined. */\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n\n /* If functions were passed in as values, pass the function the current element as its context,\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementsIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementsIndex, elementsLength);\n }\n\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n return [ endValue || 0, easing, startValue ];\n }\n\n /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n $.each(propertiesMap, function(property, value) {\n /* Find shorthand color properties that have been passed a hex string. */\n if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n /* Parse the value data for each shorthand. */\n var valueData = parsePropertyValue(value, true),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n /* Inject the RGB component tweens into propertiesMap. */\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [ endValueRGB[i] ];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n propertiesMap[property + colorComponents[i]] = dataArray;\n }\n\n /* Remove the intermediary shorthand property entry now that we've processed it. */\n delete propertiesMap[property];\n }\n }\n });\n\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n for (var property in propertiesMap) {\n\n /**************************\n Start Value Sourcing\n **************************/\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n var valueData = parsePropertyValue(propertiesMap[property]),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n we force the property to its camelCase styling to normalize it for manipulation. */\n property = CSS.Names.camelCase(property);\n\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false;\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n continue;\n }\n\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n for all of the current call's properties that were *also* animated in the previous call. */\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n getPropertyValue() will extract the hook from rootPropertyValue. */\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property); /* GET */\n }\n }\n\n /**************************\n Value Data Extraction\n **************************/\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n\n /* Separates a property value into its numeric value and its unit type. */\n function separateValue (property, value) {\n var unitType,\n numericValue;\n\n numericValue = (value || \"0\")\n .toString()\n .toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function(match) {\n /* Grab the unit type. */\n unitType = match;\n\n /* Strip the unit type off of value. */\n return \"\";\n });\n\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [ numericValue, unitType ];\n }\n\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n operator = subMatch;\n\n /* Strip the operator off of the value. */\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n\n /***************************************\n Property-Specific Value Conversion\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = (endValue / 100) * 255;\n endValueUnitType = \"\";\n }\n }\n\n /***************************\n Unit Ratio Calculation\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n setting values with the target unit type then comparing the returned pixel value. */\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n of batching the SETs and GETs together upfront outweights the potential overhead\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n function calculateUnitRatios () {\n\n /************************\n Same Ratio Checks\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body, /* GET */\n position: CSS.getPropertyValue(element, \"position\"), /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n },\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n /* Store these ratio indicators call-wide for the next element to compare against. */\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n /***************************\n Element-Specific Units\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n\n /***************************\n Element-Agnostic Units\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n so we calculate it now. */\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n }\n\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n return unitRatios;\n }\n\n /********************\n Unit Conversion\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n\n /* Invert the px ratios to convert into to the target unit. */\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n\n /*********************\n Relative Values\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n 50 points is added on top of the current % value. */\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n\n /**************************\n tweensContainer Push\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n tweensContainer.element = element;\n }\n\n /*****************\n Call Push\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n call.push(tweensContainer);\n\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n Data(element).tweensContainer = tweensContainer;\n Data(element).opts = opts;\n }\n\n /* Switch on the element's animating flag. */\n Data(element).isAnimating = true;\n\n /* Once the final element in this call's element set has been processed, push the call array onto\n Velocity.State.calls for the animation tick to immediately begin processing. */\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n\n /* Start the tick loop. */\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function buildQueue (next) {\n\n /*******************\n Option: Begin\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function() { throw error; }, 1);\n }\n }\n\n /*****************************************\n Tween Data Construction (for Scroll)\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n (due to the user's natural interaction with the page). */\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n the scroll container's current scroll position. */\n scrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n and therefore end values do not need to be compounded onto current values. */\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n }\n\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\n /******************************************\n Tween Data Construction (for Reverse)\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n } else if (action === \"reverse\") {\n /* Abort if there is no prior animation data to reverse to. */\n if (!Data(element).tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n\n return;\n } else {\n /*********************\n Options Parsing\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (Data(element).opts.display === \"none\") {\n Data(element).opts.display = \"auto\";\n }\n\n if (Data(element).opts.visibility === \"hidden\") {\n Data(element).opts.visibility = \"visible\";\n }\n\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n Data(element).opts.loop = false;\n Data(element).opts.begin = null;\n Data(element).opts.complete = null;\n\n /* Since we're extending an opts object that has already been extended with the defaults options object,\n we remove non-explicitly-defined properties that are auto-assigned values. */\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n\n /* The opts object used for reversal is an extension of the options object optionally passed into this\n reverse call plus the options used in the previous Velocity call. */\n opts = $.extend({}, Data(element).opts, opts);\n\n /*************************************\n Tweens Container Reconstruction\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n var lastTweensContainer = $.extend(true, {}, Data(element).tweensContainer);\n\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n\n /*****************************************\n Tween Data Construction (for Start)\n *****************************************/\n\n } else if (action === \"start\") {\n\n /*************************\n Value Transferring\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n while the element was in the process of being animated by Velocity, then this current call is safe to use\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n process whenever possible in order to avoid requerying the DOM. */\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n then the DOM is queried for the element's current values as a last resort. */\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n var lastTweensContainer;\n\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n to transfer over end values to use as start values. If it's set to true and there is a previous\n Velocity call to pull values from, do so. */\n if (Data(element).tweensContainer && Data(element).isAnimating === true) {\n lastTweensContainer = Data(element).tweensContainer;\n }\n\n /***************************\n Tween Data Calculation\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n /* Property map values can either take the form of 1) a single value representing the end value,\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n function parsePropertyValue (valueData, skipResolvingEasing) {\n var endValue = undefined,\n easing = undefined,\n startValue = undefined;\n\n /* Handle the array format, which can be structured as one of three potential overloads:\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n start value since easings can only be non-hex strings or arrays. */\n if ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string or an array, treat it as an easing. */\n } else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1])) || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n if (valueData[2] !== undefined) {\n startValue = valueData[2];\n }\n }\n /* Handle the single-value format. */\n } else {\n endValue = valueData;\n }\n\n /* Default to the call's easing if a per-property easing type was not defined. */\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n\n /* If functions were passed in as values, pass the function the current element as its context,\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementsIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementsIndex, elementsLength);\n }\n\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n return [ endValue || 0, easing, startValue ];\n }\n\n /* Cycle through each property in the map, looking for shorthand color properties (e.g. \"color\" as opposed to \"colorRed\"). Inject the corresponding\n colorRed, colorGreen, and colorBlue RGB component tweens into the propertiesMap (which Velocity understands) and remove the shorthand property. */\n $.each(propertiesMap, function(property, value) {\n /* Find shorthand color properties that have been passed a hex string. */\n if (RegExp(\"^\" + CSS.Lists.colors.join(\"$|^\") + \"$\").test(property)) {\n /* Parse the value data for each shorthand. */\n var valueData = parsePropertyValue(value, true),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [ \"Red\", \"Green\", \"Blue\" ],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n /* Inject the RGB component tweens into propertiesMap. */\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [ endValueRGB[i] ];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n propertiesMap[property + colorComponents[i]] = dataArray;\n }\n\n /* Remove the intermediary shorthand property entry now that we've processed it. */\n delete propertiesMap[property];\n }\n }\n });\n\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n for (var property in propertiesMap) {\n\n /**************************\n Start Value Sourcing\n **************************/\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n var valueData = parsePropertyValue(propertiesMap[property]),\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n /* Now that the original property name's format has been used for the parsePropertyValue() lookup above,\n we force the property to its camelCase styling to normalize it for manipulation. */\n property = CSS.Names.camelCase(property);\n\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false;\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n if (!Data(element).isSVG && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\n continue;\n }\n\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n if (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n for all of the current call's properties that were *also* animated in the previous call. */\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n rootPropertyValue = Data(element).rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n getPropertyValue() will extract the hook from rootPropertyValue. */\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property); /* GET */\n }\n }\n\n /**************************\n Value Data Extraction\n **************************/\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n\n /* Separates a property value into its numeric value and its unit type. */\n function separateValue (property, value) {\n var unitType,\n numericValue;\n\n numericValue = (value || \"0\")\n .toString()\n .toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function(match) {\n /* Grab the unit type. */\n unitType = match;\n\n /* Strip the unit type off of value. */\n return \"\";\n });\n\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [ numericValue, unitType ];\n }\n\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n operator = subMatch;\n\n /* Strip the operator off of the value. */\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n\n /***************************************\n Property-Specific Value Conversion\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = (endValue / 100) * 255;\n endValueUnitType = \"\";\n }\n }\n\n /***************************\n Unit Ratio Calculation\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n setting values with the target unit type then comparing the returned pixel value. */\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n of batching the SETs and GETs together upfront outweights the potential overhead\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n function calculateUnitRatios () {\n\n /************************\n Same Ratio Checks\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body, /* GET */\n position: CSS.getPropertyValue(element, \"position\"), /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n },\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n /* Store these ratio indicators call-wide for the next element to compare against. */\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n /***************************\n Element-Specific Units\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = Data(element).isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n $.each([ \"overflow\", \"overflowX\", \"overflowY\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n $.each([ \"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\" ], function(i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n\n /***************************\n Element-Agnostic Units\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n so we calculate it now. */\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n }\n\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\n return unitRatios;\n }\n\n /********************\n Unit Conversion\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n var axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n\n /* Invert the px ratios to convert into to the target unit. */\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n\n /*********************\n Relative Values\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n 50 points is added on top of the current % value. */\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n\n /**************************\n tweensContainer Push\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (Velocity.debug) console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n tweensContainer.element = element;\n }\n\n /*****************\n Call Push\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n call.push(tweensContainer);\n\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n Data(element).tweensContainer = tweensContainer;\n Data(element).opts = opts;\n }\n\n /* Switch on the element's animating flag. */\n Data(element).isAnimating = true;\n\n /* Once the final element in this call's element set has been processed, push the call array onto\n Velocity.State.calls for the animation tick to immediately begin processing. */\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([ call, elements, opts, null, promiseData.resolver ]);\n\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n\n /* Start the tick loop. */\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function scrollQueue(btn) {\n let queue = document.querySelector('.queue');\n // Check if the queue is open\n if (queue.classList.contains('m-visible')) {\n // Scroll the queue to the bottom, loading new tracks below\n let scrollableQueue = document.querySelector('.queue__scrollableInner');\n let queueContainer = document.querySelector('.queue__itemsHeight');\n let scrollToHeight = parseInt(queueContainer.style.height);\n scrollableQueue.scroll(0,scrollToHeight);\n\n // Check if all tracks are loaded, then play\n let autoplayDiv = document.querySelector('.queue__fallback');\n if (autoplayDiv) {\n clearInterval(btn.interval);\n btn.scrolling = false;\n btn.interval = 0;\n play(btn);\n }\n } else {\n // Open the queue if it is closed\n toggleQueue('open');\n }\n }", "function updateScroll(){if(!elements.li[0])return;var height=elements.li[0].offsetHeight,top=height*ctrl.index,bot=top+height,hgt=elements.scroller.clientHeight,scrollTop=elements.scroller.scrollTop;if(top<scrollTop){scrollTo(top);}else if(bot>scrollTop+hgt){scrollTo(bot-hgt);}}", "scroll(reaction) {\n this._removeAwaitingMessage();\n\n if (reaction === this.emotes[0]) this.index--;\n else if (reaction === this.emotes[1]) this.index++;\n else if (reaction === this.emotes[2] && !this.awaitingMessage) return this._createAwaitingMessage();\n else if (reaction === this.emotes[3]) return this.remove();\n\n if (this.index < 0) this.index = this.data.length - 1;\n else if (this.index === this.data.length) this.index = 0;\n\n this.update();\n }", "_addScrollBar() {\n const canvas = this.getCanvas();\n\n canvas.add(this._horizontalScroll);\n canvas.add(this._verticalScroll);\n\n if (this.scrollBarTid) {\n clearTimeout(this.scrollBarTid);\n }\n\n this.scrollBarTid = setTimeout(() => {\n canvas.remove(this._horizontalScroll);\n canvas.remove(this._verticalScroll);\n }, 3000);\n }", "onScroll_() {\n if (this.$.container.scrollTop > 0 &&\n this.domRepeat_.items.length !== this.items.length) {\n const aboveScrollTopItemCount =\n Math.round(this.$.container.scrollTop / this.domItemAverageHeight_());\n\n // Ensure we have sufficient items to fill the current scroll position and\n // a full view following our current position.\n if (aboveScrollTopItemCount + this.chunkItemThreshold >\n this.domRepeat_.items.length) {\n this.ensureDomItemsAvailableStartingAt_(aboveScrollTopItemCount);\n }\n }\n }", "_scroll(scrollButton) {\n const that = this,\n mainContainer = that.$.mainContainer,\n scrollCoefficient = scrollButton.classList.contains('jqx-scroll-button-near') ? -1 : 1,\n oldScrollTop = mainContainer.scrollTop;\n\n mainContainer.scrollTop = mainContainer.scrollTop + scrollCoefficient * 10;\n\n if (oldScrollTop !== mainContainer.scrollTop) {\n that._updateScrollButtonVisibility(mainContainer, false, [that.$.scrollButtonNear, that.$.scrollButtonFar]);\n that._fireScrollBottomReachedEvent(oldScrollTop);\n }\n }", "function updateScroll () {\n if (!elements.li[0]) return;\n var height = elements.li[0].offsetHeight,\n top = height * ctrl.index,\n bot = top + height,\n hgt = elements.scroller.clientHeight,\n scrollTop = elements.scroller.scrollTop;\n if (top < scrollTop) {\n scrollTo(top);\n } else if (bot > scrollTop + hgt) {\n scrollTo(bot - hgt);\n }\n }", "function updateScroll () {\n if (!elements.li[0]) return;\n var height = elements.li[0].offsetHeight,\n top = height * ctrl.index,\n bot = top + height,\n hgt = elements.scroller.clientHeight,\n scrollTop = elements.scroller.scrollTop;\n if (top < scrollTop) {\n scrollTo(top);\n } else if (bot > scrollTop + hgt) {\n scrollTo(bot - hgt);\n }\n }", "function updateScroll () {\n if (!elements.li[0]) return;\n var height = elements.li[0].offsetHeight,\n top = height * ctrl.index,\n bot = top + height,\n hgt = elements.scroller.clientHeight,\n scrollTop = elements.scroller.scrollTop;\n if (top < scrollTop) {\n scrollTo(top);\n } else if (bot > scrollTop + hgt) {\n scrollTo(bot - hgt);\n }\n }", "jump() {\n const env = this;\n const container = this['$container']['$node'];\n container.parentNode.addEventListener( 'scroll', function( e ) {\n env['$content'].scrollTop = container.parentNode.scrollTop;\n env['$content'].scrollLeft = container.parentNode.scrollLeft;\n env.setPage();\n });\n }", "jumpPush(){\n\t\tthis.async_jump_pos.push(0);\n\t}", "function Interpreter_OnDisplayScroll(event)\n{\n\t//then forward to simulator\n\tSimulator_OnScroll(event);\n}", "handleScroll(event) {\n\t\tvar node = React.findDOMNode(this.refs.copyList);\n\t\tif (domNodeIsReachingEnd(node) && !this.props.isFetchingMoreCopysFromParse) {\n\t\t\t// trigger load more event\n\t\t\tif (this.props.noMoreCopysFromParse){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (this.state.isSearchingState) {\n\t\t\t\tstore.dispatch(startFetchingMoreCopysFromParse());\n\t\t\t\tstore.dispatch(loadMoreSearchFromParse(React.findDOMNode(this.refs.search).value));\n\t\t\t} else {\n\t\t\t\tstore.dispatch(startFetchingMoreCopysFromParse());\n\t\t\t\tstore.dispatch(loadMoreCopysFromParse());\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "function loop() {\n // ScrollTop has changed, so dispatch().\n if (window.pageYOffset != lastScrollTop) {\n dispatch();\n lastScrollTop = window.pageYOffset;\n }\n\n // Recall the loop.\n scroll(loop);\n }", "function scrollToNextPage() {\n gallery_scroller.scrollBy({\n left: gallery_item_size,\n top: 0,\n behavior: 'smooth'\n });\n// updateBtns()\n}", "function _scrollContainer() {\n window.scrollTo(0, document.body.scrollHeight);\n btnArray = document.getElementsByClassName(\"user-actions-follow-button\");\n if(btnArray.length >= totalFollowers) {\n clearInterval(intervalId);\n console.log(\"Clearing interval!\");\n _followAll();\n }\n }", "function mkdOnWindowScroll() {\n \n }", "function addToScrollPos(cm, left, top) {\n\t\t if (left != null || top != null) resolveScrollToPos(cm);\n\t\t if (left != null)\n\t\t cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n\t\t if (top != null)\n\t\t cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n\t\t }", "requestUpdateScroll() {\n requestAnimationFrame(function() {\n const scrollableElements =\n this.shadowRoot.querySelectorAll('[scrollable]');\n for (let i = 0; i < scrollableElements.length; i++) {\n this.updateScroll_(/** @type {!HTMLElement} */ (scrollableElements[i]));\n }\n }.bind(this));\n }", "function addToScrollPos(cm, left, top) {\n\t if (left != null || top != null) resolveScrollToPos(cm);\n\t if (left != null)\n\t cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n\t if (top != null)\n\t cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n\t }", "function addToScrollPos(cm, left, top) {\n\t if (left != null || top != null) resolveScrollToPos(cm);\n\t if (left != null)\n\t cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n\t if (top != null)\n\t cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n\t }", "function addToScrollPos(cm, left, top) {\n\t if (left != null || top != null) resolveScrollToPos(cm);\n\t if (left != null)\n\t cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n\t if (top != null)\n\t cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n\t }", "function generateListeners_scroll() {\n if (document.getElementById('workers')) {\n document.getElementById('workers').addEventListener('scroll', function (e) {\n document.getElementById('costs').scrollLeft = e.target.scrollLeft;\n });\n }\n if (document.getElementById('costs')) {\n document.getElementById('costs').addEventListener('scroll', function (e) {\n document.getElementById('workers').scrollLeft = e.target.scrollLeft;\n });\n }\n }", "handleScroll(){\n let y = window.pageYOffset\n this.queue.forEach( fn => fn(y, this.prevY) )\n\n this.scrollChanged = false\n if (this.prevY != y){\n this.scrollChanged = true\n this.prevY = y\n }\n\n if (this.scrollChanged){\n clearTimeout(this.timeout)\n this.timeout = null\n } else if (!this.timeout){\n this.timeout = setTimeout(detectIdle, 200)\n }\n\n this.tickId = false\n this.tick()\n }", "makeButtonHandler() {\n\t\tconst filter = (interaction) => true;\n\n\t\tvar collector = this.globalScrollUpdateMessage.createMessageComponentCollector({filter, time: 120000})\n\n\t\tcollector.on(\"collect\", interaction => {\n\t\t\tconsole.log(interaction);\n\n\t\t\tif(interaction.customId == \"next\") {\n\t\t\t\tinteraction.update(this.getOffsetGlobalScrollIndex(1))\n\t\t\t} else if (interaction.customId == \"back\") {\n\t\t\t\tinteraction.update(this.getOffsetGlobalScrollIndex(-1));\n\t\t\t}\n\t\t})\n\t\n\t}", "function Simulator_OnScroll()\n{\n\t//has simulator?\n\tif (__SIMULATOR)\n\t{\n\t\t//has controller?\n\t\tif (__CONTROLLER)\n\t\t{\n\t\t\t//notify the controller\n\t\t\t__CONTROLLER.notifyOnScrollResize();\n\t\t}\n\t\t//has designer controller?\n\t\tif (__DESIGNER_CONTROLLER)\n\t\t{\n\t\t\t//notify the controller\n\t\t\t__DESIGNER_CONTROLLER.NotifyOnScrollResize();\n\t\t}\n\t\t//and update our fixed display objects\n\t\t__SIMULATOR.Interpreter.UpdateFixedObjectPositions();\n\t}\n}", "function updateScroll () {\n if (!elements.li[0]) return;\n if (mode === MODE_STANDARD) {\n updateStandardScroll();\n } else {\n updateVirtualScroll();\n }\n }", "function onScroll() {\r\n requestTick();\r\n}", "function buildQueue(next) {\n var data, lastTweensContainer;\n /*******************\r\n Option: Begin\r\n *******************/\n\n /* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\n if (opts.begin && elementsIndex === 0) {\n /* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n try {\n opts.begin.call(elements, elements);\n } catch (error) {\n setTimeout(function () {\n throw error;\n }, 1);\n }\n }\n /*****************************************\r\n Tween Data Construction (for Scroll)\r\n *****************************************/\n\n /* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\n\n if (action === \"scroll\") {\n /* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n var scrollDirection = /^x$/i.test(opts.axis) ? \"Left\" : \"Top\",\n scrollOffset = parseFloat(opts.offset) || 0,\n scrollPositionCurrent,\n scrollPositionCurrentAlternate,\n scrollPositionEnd;\n /* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\r\n as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\n if (opts.container) {\n /* Ensure that either a jQuery object or a raw DOM element was passed in. */\n if (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n /* Extract the raw DOM element from the jQuery wrapper. */\n opts.container = opts.container[0] || opts.container;\n /* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\r\n (due to the user's natural interaction with the page). */\n\n scrollPositionCurrent = opts.container[\"scroll\" + scrollDirection];\n /* GET */\n\n /* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\r\n -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\r\n the scroll container's current scroll position. */\n\n scrollPositionEnd = scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()] + scrollOffset;\n /* GET */\n\n /* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n } else {\n opts.container = null;\n }\n } else {\n /* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\r\n the appropriate cached property names (which differ based on browser type). */\n scrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]];\n /* GET */\n\n /* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\n scrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]];\n /* GET */\n\n /* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\r\n and therefore end values do not need to be compounded onto current values. */\n\n scrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset;\n /* GET */\n }\n /* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\n\n tweensContainer = {\n scroll: {\n rootPropertyValue: false,\n startValue: scrollPositionCurrent,\n currentValue: scrollPositionCurrent,\n endValue: scrollPositionEnd,\n unitType: \"\",\n easing: opts.easing,\n scrollData: {\n container: opts.container,\n direction: scrollDirection,\n alternateValue: scrollPositionCurrentAlternate\n }\n },\n element: element\n };\n\n if (Velocity.debug) {\n console.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n }\n /******************************************\r\n Tween Data Construction (for Reverse)\r\n ******************************************/\n\n /* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\r\n that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\r\n the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\n /* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\n /* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\r\n there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\r\n as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\n } else if (action === \"reverse\") {\n data = Data(element);\n /* Abort if there is no prior animation data to reverse to. */\n\n if (!data) {\n return;\n }\n\n if (!data.tweensContainer) {\n /* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n $.dequeue(element, opts.queue);\n return;\n } else {\n /*********************\r\n Options Parsing\r\n *********************/\n\n /* If the element was hidden via the display option in the previous call,\r\n revert display to \"auto\" prior to reversal so that the element is visible again. */\n if (data.opts.display === \"none\") {\n data.opts.display = \"auto\";\n }\n\n if (data.opts.visibility === \"hidden\") {\n data.opts.visibility = \"visible\";\n }\n /* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\r\n Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\n\n data.opts.loop = false;\n data.opts.begin = null;\n data.opts.complete = null;\n /* Since we're extending an opts object that has already been extended with the defaults options object,\r\n we remove non-explicitly-defined properties that are auto-assigned values. */\n\n if (!options.easing) {\n delete opts.easing;\n }\n\n if (!options.duration) {\n delete opts.duration;\n }\n /* The opts object used for reversal is an extension of the options object optionally passed into this\r\n reverse call plus the options used in the previous Velocity call. */\n\n\n opts = $.extend({}, data.opts, opts);\n /*************************************\r\n Tweens Container Reconstruction\r\n *************************************/\n\n /* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\n lastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n /* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\n for (var lastTween in lastTweensContainer) {\n /* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n if (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n var lastStartValue = lastTweensContainer[lastTween].startValue;\n lastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n lastTweensContainer[lastTween].endValue = lastStartValue;\n /* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\r\n Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\r\n The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\n if (!Type.isEmptyObject(options)) {\n lastTweensContainer[lastTween].easing = opts.easing;\n }\n\n if (Velocity.debug) {\n console.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\n }\n }\n }\n\n tweensContainer = lastTweensContainer;\n }\n /*****************************************\r\n Tween Data Construction (for Start)\r\n *****************************************/\n\n } else if (action === \"start\") {\n /*************************\r\n Value Transferring\r\n *************************/\n\n /* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\r\n while the element was in the process of being animated by Velocity, then this current call is safe to use\r\n the end values from the prior call as its start values. Velocity attempts to perform this value transfer\r\n process whenever possible in order to avoid requerying the DOM. */\n\n /* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\r\n then the DOM is queried for the element's current values as a last resort. */\n\n /* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n data = Data(element);\n /* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\r\n to transfer over end values to use as start values. If it's set to true and there is a previous\r\n Velocity call to pull values from, do so. */\n\n if (data && data.tweensContainer && data.isAnimating === true) {\n lastTweensContainer = data.tweensContainer;\n }\n /***************************\r\n Tween Data Calculation\r\n ***************************/\n\n /* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\n /* Property map values can either take the form of 1) a single value representing the end value,\r\n or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\r\n The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\r\n the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\n\n var parsePropertyValue = function parsePropertyValue(valueData, skipResolvingEasing) {\n var endValue, easing, startValue;\n /* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\n if (Type.isFunction(valueData)) {\n valueData = valueData.call(element, elementArrayIndex, elementsLength);\n }\n /* Handle the array format, which can be structured as one of three potential overloads:\r\n A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\n\n if (Type.isArray(valueData)) {\n /* endValue is always the first item in the array. Don't bother validating endValue's value now\r\n since the ensuing property cycling logic does that. */\n endValue = valueData[0];\n /* Two-item array format: If the second item is a number, function, or hex string, treat it as a\r\n start value since easings can only be non-hex strings or arrays. */\n\n if (!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1]) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n startValue = valueData[1];\n /* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n } else if (Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]] || Type.isArray(valueData[1])) {\n easing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n /* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\n startValue = valueData[2];\n } else {\n startValue = valueData[1] || valueData[2];\n }\n /* Handle the single-value format. */\n\n } else {\n endValue = valueData;\n }\n /* Default to the call's easing if a per-property easing type was not defined. */\n\n\n if (!skipResolvingEasing) {\n easing = easing || opts.easing;\n }\n /* If functions were passed in as values, pass the function the current element as its context,\r\n plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\n\n if (Type.isFunction(endValue)) {\n endValue = endValue.call(element, elementArrayIndex, elementsLength);\n }\n\n if (Type.isFunction(startValue)) {\n startValue = startValue.call(element, elementArrayIndex, elementsLength);\n }\n /* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\n\n return [endValue || 0, easing, startValue];\n };\n\n var fixPropertyValue = function fixPropertyValue(property, valueData) {\n /* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n var rootProperty = CSS.Hooks.getRoot(property),\n rootPropertyValue = false,\n\n /* Parse out endValue, easing, and startValue from the property's data. */\n endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2],\n pattern;\n /**************************\r\n Start Value Sourcing\r\n **************************/\n\n /* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\r\n inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\r\n Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\n /* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\r\n there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\n if ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n if (Velocity.debug) {\n console.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n }\n\n return;\n }\n /* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\r\n animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\r\n a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\n\n if ((opts.display !== undefined && opts.display !== null && opts.display !== \"none\" || opts.visibility !== undefined && opts.visibility !== \"hidden\") && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n startValue = 0;\n }\n /* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\r\n for all of the current call's properties that were *also* animated in the previous call. */\n\n /* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\n\n if (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n if (startValue === undefined) {\n startValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n }\n /* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\r\n instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\r\n attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\n\n rootPropertyValue = data.rootPropertyValueCache[rootProperty];\n /* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n } else {\n /* Handle hooked properties. */\n if (CSS.Hooks.registered[property]) {\n if (startValue === undefined) {\n rootPropertyValue = CSS.getPropertyValue(element, rootProperty);\n /* GET */\n\n /* Note: The following getPropertyValue() call does not actually trigger a DOM query;\r\n getPropertyValue() will extract the hook from rootPropertyValue. */\n\n startValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n /* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\r\n just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\r\n root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\r\n to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n } else {\n /* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n rootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n }\n /* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\n } else if (startValue === undefined) {\n startValue = CSS.getPropertyValue(element, property);\n /* GET */\n }\n }\n /**************************\r\n Value Data Extraction\r\n **************************/\n\n\n var separatedValue,\n endValueUnitType,\n startValueUnitType,\n operator = false;\n /* Separates a property value into its numeric value and its unit type. */\n\n var separateValue = function separateValue(property, value) {\n var unitType, numericValue;\n numericValue = (value || \"0\").toString().toLowerCase()\n /* Match the unit type at the end of the value. */\n .replace(/[%A-z]+$/, function (match) {\n /* Grab the unit type. */\n unitType = match;\n /* Strip the unit type off of value. */\n\n return \"\";\n });\n /* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\n if (!unitType) {\n unitType = CSS.Values.getUnitType(property);\n }\n\n return [numericValue, unitType];\n };\n\n if (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n pattern = \"\";\n var iStart = 0,\n // index in startValue\n iEnd = 0,\n // index in endValue\n aStart = [],\n // array of startValue numbers\n aEnd = [],\n // array of endValue numbers\n inCalc = 0,\n // Keep track of being inside a \"calc()\" so we don't duplicate it\n inRGB = 0,\n // Keep track of being inside an RGB as we can't use fractional values\n inRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n startValue = CSS.Hooks.fixColors(startValue);\n endValue = CSS.Hooks.fixColors(endValue);\n\n while (iStart < startValue.length && iEnd < endValue.length) {\n var cStart = startValue[iStart],\n cEnd = endValue[iEnd];\n\n if (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n var tStart = cStart,\n // temporary character buffer\n tEnd = cEnd,\n // temporary character buffer\n dotStart = \".\",\n // Make sure we can only ever match a single dot in a decimal\n dotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n while (++iStart < startValue.length) {\n cStart = startValue[iStart];\n\n if (cStart === dotStart) {\n dotStart = \"..\"; // Can never match two characters\n } else if (!/\\d/.test(cStart)) {\n break;\n }\n\n tStart += cStart;\n }\n\n while (++iEnd < endValue.length) {\n cEnd = endValue[iEnd];\n\n if (cEnd === dotEnd) {\n dotEnd = \"..\"; // Can never match two characters\n } else if (!/\\d/.test(cEnd)) {\n break;\n }\n\n tEnd += cEnd;\n }\n\n var uStart = CSS.Hooks.getUnit(startValue, iStart),\n // temporary unit type\n uEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n iStart += uStart.length;\n iEnd += uEnd.length;\n\n if (uStart === uEnd) {\n // Same units\n if (tStart === tEnd) {\n // Same numbers, so just copy over\n pattern += tStart + uStart;\n } else {\n // Different numbers, so store them\n pattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n aStart.push(parseFloat(tStart));\n aEnd.push(parseFloat(tEnd));\n }\n } else {\n // Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n var nStart = parseFloat(tStart),\n nEnd = parseFloat(tEnd);\n pattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\" + (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart + \" + \" + (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd + \")\";\n\n if (nStart) {\n aStart.push(nStart);\n aEnd.push(0);\n }\n\n if (nEnd) {\n aStart.push(0);\n aEnd.push(nEnd);\n }\n }\n } else if (cStart === cEnd) {\n pattern += cStart;\n iStart++;\n iEnd++; // Keep track of being inside a calc()\n\n if (inCalc === 0 && cStart === \"c\" || inCalc === 1 && cStart === \"a\" || inCalc === 2 && cStart === \"l\" || inCalc === 3 && cStart === \"c\" || inCalc >= 4 && cStart === \"(\") {\n inCalc++;\n } else if (inCalc && inCalc < 5 || inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n inCalc = 0;\n } // Keep track of being inside an rgb() / rgba()\n\n\n if (inRGB === 0 && cStart === \"r\" || inRGB === 1 && cStart === \"g\" || inRGB === 2 && cStart === \"b\" || inRGB === 3 && cStart === \"a\" || inRGB >= 3 && cStart === \"(\") {\n if (inRGB === 3 && cStart === \"a\") {\n inRGBA = 1;\n }\n\n inRGB++;\n } else if (inRGBA && cStart === \",\") {\n if (++inRGBA > 3) {\n inRGB = inRGBA = 0;\n }\n } else if (inRGBA && inRGB < (inRGBA ? 5 : 4) || inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n inRGB = inRGBA = 0;\n }\n } else {\n inCalc = 0; // TODO: changing units, fixing colours\n\n break;\n }\n }\n\n if (iStart !== startValue.length || iEnd !== endValue.length) {\n if (Velocity.debug) {\n console.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n }\n\n pattern = undefined;\n }\n\n if (pattern) {\n if (aStart.length) {\n if (Velocity.debug) {\n console.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n }\n\n startValue = aStart;\n endValue = aEnd;\n endValueUnitType = startValueUnitType = \"\";\n } else {\n pattern = undefined;\n }\n }\n }\n\n if (!pattern) {\n /* Separate startValue. */\n separatedValue = separateValue(property, startValue);\n startValue = separatedValue[0];\n startValueUnitType = separatedValue[1];\n /* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\n separatedValue = separateValue(property, endValue);\n endValue = separatedValue[0].replace(/^([+-\\/*])=/, function (match, subMatch) {\n operator = subMatch;\n /* Strip the operator off of the value. */\n\n return \"\";\n });\n endValueUnitType = separatedValue[1];\n /* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\n startValue = parseFloat(startValue) || 0;\n endValue = parseFloat(endValue) || 0;\n /***************************************\r\n Property-Specific Value Conversion\r\n ***************************************/\n\n /* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\n if (endValueUnitType === \"%\") {\n /* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\r\n which is identical to the em unit's behavior, so we piggyback off of that. */\n if (/^(fontSize|lineHeight)$/.test(property)) {\n /* Convert % into an em decimal value. */\n endValue = endValue / 100;\n endValueUnitType = \"em\";\n /* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n } else if (/^scale/.test(property)) {\n endValue = endValue / 100;\n endValueUnitType = \"\";\n /* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n } else if (/(Red|Green|Blue)$/i.test(property)) {\n endValue = endValue / 100 * 255;\n endValueUnitType = \"\";\n }\n }\n }\n /***************************\r\n Unit Ratio Calculation\r\n ***************************/\n\n /* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\r\n %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\r\n for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\r\n from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\r\n 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\r\n 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\n /* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\r\n setting values with the target unit type then comparing the returned pixel value. */\n\n /* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\r\n of batching the SETs and GETs together upfront outweights the potential overhead\r\n of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\n /* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\n\n var calculateUnitRatios = function calculateUnitRatios() {\n /************************\r\n Same Ratio Checks\r\n ************************/\n\n /* The properties below are used to determine whether the element differs sufficiently from this call's\r\n previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\r\n of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\r\n this is done to minimize DOM querying. */\n var sameRatioIndicators = {\n myParent: element.parentNode || document.body,\n\n /* GET */\n position: CSS.getPropertyValue(element, \"position\"),\n\n /* GET */\n fontSize: CSS.getPropertyValue(element, \"fontSize\")\n /* GET */\n\n },\n\n /* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n samePercentRatio = sameRatioIndicators.position === callUnitConversionData.lastPosition && sameRatioIndicators.myParent === callUnitConversionData.lastParent,\n\n /* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n sameEmRatio = sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize;\n /* Store these ratio indicators call-wide for the next element to compare against. */\n\n callUnitConversionData.lastParent = sameRatioIndicators.myParent;\n callUnitConversionData.lastPosition = sameRatioIndicators.position;\n callUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n /***************************\r\n Element-Specific Units\r\n ***************************/\n\n /* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\r\n of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\n var measurement = 100,\n unitRatios = {};\n\n if (!sameEmRatio || !samePercentRatio) {\n var dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n Velocity.init(dummy);\n sameRatioIndicators.myParent.appendChild(dummy);\n /* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\r\n Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\n /* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\n $.each([\"overflow\", \"overflowX\", \"overflowY\"], function (i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n });\n Velocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n Velocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n Velocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n /* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\n $.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function (i, property) {\n Velocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n });\n /* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\n Velocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n /* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement;\n /* GET */\n\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement;\n /* GET */\n\n unitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement;\n /* GET */\n\n sameRatioIndicators.myParent.removeChild(dummy);\n } else {\n unitRatios.emToPx = callUnitConversionData.lastEmToPx;\n unitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n unitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n }\n /***************************\r\n Element-Agnostic Units\r\n ***************************/\n\n /* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\r\n once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\r\n that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\r\n so we calculate it now. */\n\n\n if (callUnitConversionData.remToPx === null) {\n /* Default to browsers' default fontSize of 16px in the case of 0. */\n callUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16;\n /* GET */\n }\n /* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\n\n if (callUnitConversionData.vwToPx === null) {\n callUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100;\n /* GET */\n\n callUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100;\n /* GET */\n }\n\n unitRatios.remToPx = callUnitConversionData.remToPx;\n unitRatios.vwToPx = callUnitConversionData.vwToPx;\n unitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n if (Velocity.debug >= 1) {\n console.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n }\n\n return unitRatios;\n };\n /********************\r\n Unit Conversion\r\n ********************/\n\n /* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\n\n if (/[\\/*]/.test(operator)) {\n endValueUnitType = startValueUnitType;\n /* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\r\n is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\r\n on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\r\n would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\n /* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n } else if (startValueUnitType !== endValueUnitType && startValue !== 0) {\n /* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\n /* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\r\n match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\r\n which remains past the point of the animation's completion. */\n if (endValue === 0) {\n endValueUnitType = startValueUnitType;\n } else {\n /* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\r\n If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n elementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n /* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\n /* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\n var axis = /margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\" ? \"x\" : \"y\";\n /* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\r\n 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\n switch (startValueUnitType) {\n case \"%\":\n /* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\r\n Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\r\n to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n startValue *= axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight;\n break;\n\n case \"px\":\n /* px acts as our midpoint in the unit conversion process; do nothing. */\n break;\n\n default:\n startValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n }\n /* Invert the px ratios to convert into to the target unit. */\n\n\n switch (endValueUnitType) {\n case \"%\":\n startValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n break;\n\n case \"px\":\n /* startValue is already in px, do nothing; we're done. */\n break;\n\n default:\n startValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\n }\n }\n }\n /*********************\r\n Relative Values\r\n *********************/\n\n /* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\n /* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\r\n to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\r\n 50 points is added on top of the current % value. */\n\n\n switch (operator) {\n case \"+\":\n endValue = startValue + endValue;\n break;\n\n case \"-\":\n endValue = startValue - endValue;\n break;\n\n case \"*\":\n endValue = startValue * endValue;\n break;\n\n case \"/\":\n endValue = startValue / endValue;\n break;\n }\n /**************************\r\n tweensContainer Push\r\n **************************/\n\n /* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\n\n tweensContainer[property] = {\n rootPropertyValue: rootPropertyValue,\n startValue: startValue,\n currentValue: startValue,\n endValue: endValue,\n unitType: endValueUnitType,\n easing: easing\n };\n\n if (pattern) {\n tweensContainer[property].pattern = pattern;\n }\n\n if (Velocity.debug) {\n console.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n }\n };\n /* Create a tween out of each property, and append its associated data to tweensContainer. */\n\n\n for (var property in propertiesMap) {\n if (!propertiesMap.hasOwnProperty(property)) {\n continue;\n }\n /* The original property name's format must be used for the parsePropertyValue() lookup,\r\n but we then use its camelCase styling to normalize it for manipulation. */\n\n\n var propertyName = CSS.Names.camelCase(property),\n valueData = parsePropertyValue(propertiesMap[property]);\n /* Find shorthand color properties that have been passed a hex string. */\n\n /* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\n if (_inArray(CSS.Lists.colors, propertyName)) {\n /* Parse the value data for each shorthand. */\n var endValue = valueData[0],\n easing = valueData[1],\n startValue = valueData[2];\n\n if (CSS.RegEx.isHex.test(endValue)) {\n /* Convert the hex strings into their RGB component arrays. */\n var colorComponents = [\"Red\", \"Green\", \"Blue\"],\n endValueRGB = CSS.Values.hexToRgb(endValue),\n startValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n /* Inject the RGB component tweens into propertiesMap. */\n\n for (var i = 0; i < colorComponents.length; i++) {\n var dataArray = [endValueRGB[i]];\n\n if (easing) {\n dataArray.push(easing);\n }\n\n if (startValueRGB !== undefined) {\n dataArray.push(startValueRGB[i]);\n }\n\n fixPropertyValue(propertyName + colorComponents[i], dataArray);\n }\n /* If we have replaced a shortcut color value then don't update the standard property name */\n\n\n continue;\n }\n }\n\n fixPropertyValue(propertyName, valueData);\n }\n /* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\n\n tweensContainer.element = element;\n }\n /*****************\r\n Call Push\r\n *****************/\n\n /* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\r\n being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\n\n if (tweensContainer.element) {\n /* Apply the \"velocity-animating\" indicator class. */\n CSS.Values.addClass(element, \"velocity-animating\");\n /* The call array houses the tweensContainers for each element being animated in the current call. */\n\n call.push(tweensContainer);\n data = Data(element);\n\n if (data) {\n /* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n if (opts.queue === \"\") {\n data.tweensContainer = tweensContainer;\n data.opts = opts;\n }\n /* Switch on the element's animating flag. */\n\n\n data.isAnimating = true;\n }\n /* Once the final element in this call's element set has been processed, push the call array onto\r\n Velocity.State.calls for the animation tick to immediately begin processing. */\n\n\n if (elementsIndex === elementsLength - 1) {\n /* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\r\n Anything on this call container is subjected to tick() processing. */\n Velocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n /* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\n if (Velocity.State.isTicking === false) {\n Velocity.State.isTicking = true;\n /* Start the tick loop. */\n\n tick();\n }\n } else {\n elementsIndex++;\n }\n }\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "function addToScrollPos(cm, left, top) {\n if (left != null || top != null) resolveScrollToPos(cm);\n if (left != null)\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\n if (top != null)\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\n }", "onScroll() {\n\t\tthis.updateCarouselMetric();\n\n\t\tif (!this.isCallInNextFrameRequested) {\n\t\t\twindow.requestAnimationFrame(this.scrollHandlers.bind(this));\n\t\t\tthis.isCallInNextFrameRequested = true;\n\t\t}\n\t}", "function addToScrollPos(cm, left, top) {\r\n if (left != null || top != null) resolveScrollToPos(cm);\r\n if (left != null)\r\n cm.curOp.scrollLeft = (cm.curOp.scrollLeft == null ? cm.doc.scrollLeft : cm.curOp.scrollLeft) + left;\r\n if (top != null)\r\n cm.curOp.scrollTop = (cm.curOp.scrollTop == null ? cm.doc.scrollTop : cm.curOp.scrollTop) + top;\r\n }", "function scroll_add(delta) {\n\tif (scroll_min != null) {\n\t\tscroll = Math.max(\n\t\t\tscroll_min/0.6 - innerHeight + 40,\n\t\t\tMath.min(scroll + delta, scroll_max/0.6 + scroll_offset - 35)\n\t\t);\n\t\tdiv.screen.style.top = scroll_offset - scroll;\n\t}\n}", "function handleScroll () {\n\n movePopupToTarget(instance);\n }", "_scrollButtonFarClickHandler() {\n const that = this;\n\n if (that.$.scrollButtonFar.disabled) {\n return;\n }\n\n that._scroll(1);\n }", "function buildQueue(next) {\r\n\t\t\t\t\tvar data, lastTweensContainer;\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Option: Begin\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\r\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\r\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\r\n\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t\t}, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t Tween Data Construction (for Scroll)\r\n\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\r\n\t\t\t\t\tif (action === \"scroll\") {\r\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\r\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\r\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\r\n\t\t\t\t\t\t\t\tscrollPositionEnd;\r\n\r\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\r\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\r\n\t\t\t\t\t\tif (opts.container) {\r\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\r\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\r\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\r\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\r\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\r\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\r\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\r\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\r\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\r\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topts.container = null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\r\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\r\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\r\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\r\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\r\n\r\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\r\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\r\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\r\n\t\t\t\t\t\ttweensContainer = {\r\n\t\t\t\t\t\t\tscroll: {\r\n\t\t\t\t\t\t\t\trootPropertyValue: false,\r\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\r\n\t\t\t\t\t\t\t\tunitType: \"\",\r\n\t\t\t\t\t\t\t\teasing: opts.easing,\r\n\t\t\t\t\t\t\t\tscrollData: {\r\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\r\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\r\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\telement: element\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/******************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\r\n\t\t\t\t\t\t ******************************************/\r\n\r\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\r\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\r\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\r\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\r\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\r\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\r\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\r\n\t\t\t\t\t} else if (action === \"reverse\") {\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\r\n\t\t\t\t\t\tif (!data) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!data.tweensContainer) {\r\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\r\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\r\n\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Options Parsing\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\r\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\r\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\r\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\r\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\r\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\r\n\t\t\t\t\t\t\tdata.opts.loop = false;\r\n\t\t\t\t\t\t\tdata.opts.begin = null;\r\n\t\t\t\t\t\t\tdata.opts.complete = null;\r\n\r\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\r\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\r\n\t\t\t\t\t\t\tif (!options.easing) {\r\n\t\t\t\t\t\t\t\tdelete opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!options.duration) {\r\n\t\t\t\t\t\t\t\tdelete opts.duration;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\r\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\r\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\r\n\r\n\t\t\t\t\t\t\t/*************************************\r\n\t\t\t\t\t\t\t Tweens Container Reconstruction\r\n\t\t\t\t\t\t\t *************************************/\r\n\r\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\r\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\r\n\r\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\r\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\r\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\r\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\r\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\r\n\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\r\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\r\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\r\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\r\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Start)\r\n\t\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t} else if (action === \"start\") {\r\n\r\n\t\t\t\t\t\t/*************************\r\n\t\t\t\t\t\t Value Transferring\r\n\t\t\t\t\t\t *************************/\r\n\r\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\r\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\r\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\r\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\r\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\r\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\r\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\r\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\r\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\r\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\r\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t Tween Data Calculation\r\n\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\r\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\r\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\r\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\r\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\r\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\r\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\r\n\r\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\r\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\r\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\r\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\r\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\r\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\r\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\r\n\t\t\t\t\t\t\t\tendValue = valueData[0];\r\n\r\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\r\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\r\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\r\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\r\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\r\n\r\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tendValue = valueData;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\r\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\r\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\r\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\r\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\r\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\r\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\r\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\r\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\r\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\r\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\r\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\r\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\r\n\t\t\t\t\t\t\t\t\tpattern;\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t Start Value Sourcing\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\r\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\r\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\r\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\r\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\r\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\r\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\r\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\r\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\r\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\r\n\t\t\t\t\t\t\t\tstartValue = 0;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\r\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\r\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\r\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\r\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\r\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\r\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\r\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\r\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\r\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\r\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\r\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\r\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\r\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\r\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\r\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\r\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\r\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\r\n\t\t\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\t/**************************\r\n\t\t\t\t\t\t\t Value Data Extraction\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\tvar separatedValue,\r\n\t\t\t\t\t\t\t\t\tendValueUnitType,\r\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\r\n\t\t\t\t\t\t\t\t\toperator = false;\r\n\r\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\r\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\r\n\t\t\t\t\t\t\t\tvar unitType,\r\n\t\t\t\t\t\t\t\t\t\tnumericValue;\r\n\r\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\r\n\t\t\t\t\t\t\t\t\t\t.toString()\r\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\r\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\r\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\r\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\r\n\t\t\t\t\t\t\t\tif (!unitType) {\r\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\r\n\t\t\t\t\t\t\t\tpattern = \"\";\r\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\r\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\r\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\r\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\r\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\r\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\r\n\r\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\r\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\r\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\r\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\r\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\r\n\r\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\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\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\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\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\r\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\r\n\r\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\r\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\r\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t// Same units\r\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\r\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" + \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \")\";\r\n\t\t\t\t\t\t\t\t\t\t\tif (nStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\r\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\r\n\t\t\t\t\t\t\t\t\t\tiStart++;\r\n\t\t\t\t\t\t\t\t\t\tiEnd++;\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\r\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\r\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\r\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\r\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\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\t\tif (iStart !== startValue.length || iEnd !== endValue.length) {\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\r\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\r\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\tif (!pattern) {\r\n\t\t\t\t\t\t\t\t/* Separate startValue. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\r\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\r\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\r\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\r\n\t\t\t\t\t\t\t\t\toperator = subMatch;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\r\n\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\r\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\r\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\r\n\r\n\t\t\t\t\t\t\t\t/***************************************\r\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\r\n\t\t\t\t\t\t\t\t ***************************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\r\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\r\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\r\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\r\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\r\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t Unit Ratio Calculation\r\n\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\r\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\r\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\r\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\r\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\r\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\r\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\r\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\r\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\r\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\r\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\r\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\r\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\r\n\r\n\t\t\t\t\t\t\t\t/************************\r\n\t\t\t\t\t\t\t\t Same Ratio Checks\r\n\t\t\t\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\r\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\r\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\r\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\r\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\r\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\r\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\r\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\r\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\r\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\r\n\r\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Specific Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\r\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\r\n\t\t\t\t\t\t\t\tvar measurement = 100,\r\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\r\n\r\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\r\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\r\n\r\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\r\n\r\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\r\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\r\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Agnostic Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\r\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\r\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\r\n\t\t\t\t\t\t\t\t so we calculate it now. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\r\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\r\n\r\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn unitRatios;\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t/********************\r\n\t\t\t\t\t\t\t Unit Conversion\r\n\t\t\t\t\t\t\t ********************/\r\n\r\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\r\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\r\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\r\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\r\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\r\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\r\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\r\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\r\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\r\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\r\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\r\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\r\n\t\t\t\t\t\t\t\tif (endValue === 0) {\r\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\r\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\r\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\r\n\r\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\r\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\r\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\r\n\r\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\r\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\r\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\r\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\r\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\r\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Relative Values\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\r\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\r\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\r\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\r\n\t\t\t\t\t\t\tswitch (operator) {\r\n\t\t\t\t\t\t\t\tcase \"+\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"-\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"*\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"/\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t tweensContainer Push\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\r\n\t\t\t\t\t\t\ttweensContainer[property] = {\r\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\r\n\t\t\t\t\t\t\t\tstartValue: startValue,\r\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\r\n\t\t\t\t\t\t\t\tendValue: endValue,\r\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\r\n\t\t\t\t\t\t\t\teasing: easing\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\r\n\t\t\t\t\t\tfor (var property in propertiesMap) {\r\n\r\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\r\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\r\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\r\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\r\n\r\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\r\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\r\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\r\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\r\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\r\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\r\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\r\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\r\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\r\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\r\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\r\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (easing) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\r\n\t\t\t\t\t\ttweensContainer.element = element;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************\r\n\t\t\t\t\t Call Push\r\n\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\r\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\r\n\t\t\t\t\tif (tweensContainer.element) {\r\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\r\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\r\n\r\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\r\n\t\t\t\t\t\tcall.push(tweensContainer);\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\tif (data) {\r\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\r\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\r\n\r\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\r\n\t\t\t\t\t\t\t\tdata.opts = opts;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\r\n\t\t\t\t\t\t\tdata.isAnimating = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\r\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\r\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\r\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\r\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\r\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\r\n\r\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\r\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\r\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\r\n\r\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\r\n\t\t\t\t\t\t\t\ttick();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\telementsIndex++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "function buildQueue(next) {\r\n\t\t\t\t\tvar data, lastTweensContainer;\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Option: Begin\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\r\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\r\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\r\n\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t\t}, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t Tween Data Construction (for Scroll)\r\n\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\r\n\t\t\t\t\tif (action === \"scroll\") {\r\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\r\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\r\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\r\n\t\t\t\t\t\t\t\tscrollPositionEnd;\r\n\r\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\r\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\r\n\t\t\t\t\t\tif (opts.container) {\r\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\r\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\r\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\r\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\r\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\r\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\r\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\r\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\r\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\r\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topts.container = null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\r\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\r\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\r\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\r\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\r\n\r\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\r\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\r\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\r\n\t\t\t\t\t\ttweensContainer = {\r\n\t\t\t\t\t\t\tscroll: {\r\n\t\t\t\t\t\t\t\trootPropertyValue: false,\r\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\r\n\t\t\t\t\t\t\t\tunitType: \"\",\r\n\t\t\t\t\t\t\t\teasing: opts.easing,\r\n\t\t\t\t\t\t\t\tscrollData: {\r\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\r\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\r\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\telement: element\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/******************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\r\n\t\t\t\t\t\t ******************************************/\r\n\r\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\r\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\r\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\r\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\r\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\r\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\r\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\r\n\t\t\t\t\t} else if (action === \"reverse\") {\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\r\n\t\t\t\t\t\tif (!data) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!data.tweensContainer) {\r\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\r\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\r\n\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Options Parsing\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\r\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\r\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\r\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\r\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\r\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\r\n\t\t\t\t\t\t\tdata.opts.loop = false;\r\n\t\t\t\t\t\t\tdata.opts.begin = null;\r\n\t\t\t\t\t\t\tdata.opts.complete = null;\r\n\r\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\r\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\r\n\t\t\t\t\t\t\tif (!options.easing) {\r\n\t\t\t\t\t\t\t\tdelete opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!options.duration) {\r\n\t\t\t\t\t\t\t\tdelete opts.duration;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\r\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\r\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\r\n\r\n\t\t\t\t\t\t\t/*************************************\r\n\t\t\t\t\t\t\t Tweens Container Reconstruction\r\n\t\t\t\t\t\t\t *************************************/\r\n\r\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\r\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\r\n\r\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\r\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\r\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\r\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\r\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\r\n\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\r\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\r\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\r\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\r\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Start)\r\n\t\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t} else if (action === \"start\") {\r\n\r\n\t\t\t\t\t\t/*************************\r\n\t\t\t\t\t\t Value Transferring\r\n\t\t\t\t\t\t *************************/\r\n\r\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\r\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\r\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\r\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\r\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\r\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\r\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\r\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\r\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\r\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\r\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t Tween Data Calculation\r\n\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\r\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\r\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\r\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\r\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\r\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\r\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\r\n\r\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\r\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\r\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\r\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\r\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\r\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\r\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\r\n\t\t\t\t\t\t\t\tendValue = valueData[0];\r\n\r\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\r\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\r\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\r\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\r\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\r\n\r\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tendValue = valueData;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\r\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\r\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\r\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\r\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\r\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\r\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\r\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\r\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\r\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\r\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\r\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\r\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\r\n\t\t\t\t\t\t\t\t\tpattern;\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t Start Value Sourcing\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\r\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\r\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\r\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\r\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\r\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\r\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\r\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\r\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\r\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\r\n\t\t\t\t\t\t\t\tstartValue = 0;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\r\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\r\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\r\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\r\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\r\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\r\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\r\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\r\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\r\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\r\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\r\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\r\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\r\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\r\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\r\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\r\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\r\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\r\n\t\t\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\t/**************************\r\n\t\t\t\t\t\t\t Value Data Extraction\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\tvar separatedValue,\r\n\t\t\t\t\t\t\t\t\tendValueUnitType,\r\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\r\n\t\t\t\t\t\t\t\t\toperator = false;\r\n\r\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\r\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\r\n\t\t\t\t\t\t\t\tvar unitType,\r\n\t\t\t\t\t\t\t\t\t\tnumericValue;\r\n\r\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\r\n\t\t\t\t\t\t\t\t\t\t.toString()\r\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\r\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\r\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\r\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\r\n\t\t\t\t\t\t\t\tif (!unitType) {\r\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\r\n\t\t\t\t\t\t\t\tpattern = \"\";\r\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\r\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\r\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\r\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\r\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\r\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\r\n\r\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\r\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\r\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\r\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\r\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\r\n\r\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\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\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\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\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\r\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\r\n\r\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\r\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\r\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t// Same units\r\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\r\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" + \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \")\";\r\n\t\t\t\t\t\t\t\t\t\t\tif (nStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\r\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\r\n\t\t\t\t\t\t\t\t\t\tiStart++;\r\n\t\t\t\t\t\t\t\t\t\tiEnd++;\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\r\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\r\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\r\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\r\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\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\t\tif (iStart !== startValue.length || iEnd !== endValue.length) {\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\r\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\r\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\tif (!pattern) {\r\n\t\t\t\t\t\t\t\t/* Separate startValue. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\r\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\r\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\r\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\r\n\t\t\t\t\t\t\t\t\toperator = subMatch;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\r\n\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\r\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\r\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\r\n\r\n\t\t\t\t\t\t\t\t/***************************************\r\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\r\n\t\t\t\t\t\t\t\t ***************************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\r\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\r\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\r\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\r\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\r\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t Unit Ratio Calculation\r\n\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\r\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\r\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\r\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\r\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\r\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\r\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\r\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\r\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\r\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\r\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\r\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\r\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\r\n\r\n\t\t\t\t\t\t\t\t/************************\r\n\t\t\t\t\t\t\t\t Same Ratio Checks\r\n\t\t\t\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\r\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\r\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\r\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\r\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\r\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\r\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\r\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\r\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\r\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\r\n\r\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Specific Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\r\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\r\n\t\t\t\t\t\t\t\tvar measurement = 100,\r\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\r\n\r\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\r\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\r\n\r\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\r\n\r\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\r\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\r\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Agnostic Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\r\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\r\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\r\n\t\t\t\t\t\t\t\t so we calculate it now. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\r\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\r\n\r\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn unitRatios;\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t/********************\r\n\t\t\t\t\t\t\t Unit Conversion\r\n\t\t\t\t\t\t\t ********************/\r\n\r\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\r\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\r\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\r\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\r\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\r\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\r\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\r\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\r\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\r\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\r\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\r\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\r\n\t\t\t\t\t\t\t\tif (endValue === 0) {\r\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\r\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\r\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\r\n\r\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\r\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\r\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\r\n\r\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\r\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\r\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\r\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\r\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\r\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\r\n\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\t}\r\n\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Relative Values\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\r\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\r\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\r\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\r\n\t\t\t\t\t\t\tswitch (operator) {\r\n\t\t\t\t\t\t\t\tcase \"+\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"-\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"*\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"/\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t tweensContainer Push\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\r\n\t\t\t\t\t\t\ttweensContainer[property] = {\r\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\r\n\t\t\t\t\t\t\t\tstartValue: startValue,\r\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\r\n\t\t\t\t\t\t\t\tendValue: endValue,\r\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\r\n\t\t\t\t\t\t\t\teasing: easing\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\r\n\t\t\t\t\t\tfor (var property in propertiesMap) {\r\n\r\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\r\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\r\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\r\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\r\n\r\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\r\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\r\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\r\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\r\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\r\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\r\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\r\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\r\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\r\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\r\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\r\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (easing) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\r\n\t\t\t\t\t\ttweensContainer.element = element;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************\r\n\t\t\t\t\t Call Push\r\n\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\r\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\r\n\t\t\t\t\tif (tweensContainer.element) {\r\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\r\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\r\n\r\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\r\n\t\t\t\t\t\tcall.push(tweensContainer);\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\tif (data) {\r\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\r\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\r\n\r\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\r\n\t\t\t\t\t\t\t\tdata.opts = opts;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\r\n\t\t\t\t\t\t\tdata.isAnimating = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\r\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\r\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\r\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\r\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\r\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\r\n\r\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\r\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\r\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\r\n\r\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\r\n\t\t\t\t\t\t\t\ttick();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\telementsIndex++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "function scroll() {\n d3.select(window)\n .on('scroll.scroller', position)\n .on('resize.scroller', resize)\n resize();\n let timer = d3.timer(function() {\n position();\n timer.stop();\n });\n }", "function delayedScroll() { scroll(0, document.height); }", "_doScrollLoop() {\n this._setTransitionDuration(this.getTransitionDuration());\n setTimeout(\n function () {\n this._setScrollersOpacity(0);\n }.bind(this),\n 0\n );\n }", "function buildQueue(next) {\n\t\t\t\t\tvar data, lastTweensContainer;\n\n\t\t\t\t\t/*******************\n\t\t\t\t\t Option: Begin\n\t\t\t\t\t *******************/\n\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t}, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************************************\n\t\t\t\t\t Tween Data Construction (for Scroll)\n\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t\t\t\t\tif (action === \"scroll\") {\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\n\t\t\t\t\t\t\t\tscrollPositionEnd;\n\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t\t\t\t\t\tif (opts.container) {\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\topts.container = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t\t\t\t\t\ttweensContainer = {\n\t\t\t\t\t\t\tscroll: {\n\t\t\t\t\t\t\t\trootPropertyValue: false,\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\n\t\t\t\t\t\t\t\tunitType: \"\",\n\t\t\t\t\t\t\t\teasing: opts.easing,\n\t\t\t\t\t\t\t\tscrollData: {\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\telement: element\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/******************************************\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\n\t\t\t\t\t\t ******************************************/\n\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t\t\t\t\t} else if (action === \"reverse\") {\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\n\t\t\t\t\t\tif (!data) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!data.tweensContainer) {\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Options Parsing\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t\t\t\t\t\t\tdata.opts.loop = false;\n\t\t\t\t\t\t\tdata.opts.begin = null;\n\t\t\t\t\t\t\tdata.opts.complete = null;\n\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t\t\t\t\t\t\tif (!options.easing) {\n\t\t\t\t\t\t\t\tdelete opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!options.duration) {\n\t\t\t\t\t\t\t\tdelete opts.duration;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\n\n\t\t\t\t\t\t\t/*************************************\n\t\t\t\t\t\t\t Tweens Container Reconstruction\n\t\t\t\t\t\t\t *************************************/\n\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\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\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*****************************************\n\t\t\t\t\t\t Tween Data Construction (for Start)\n\t\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t} else if (action === \"start\") {\n\n\t\t\t\t\t\t/*************************\n\t\t\t\t\t\t Value Transferring\n\t\t\t\t\t\t *************************/\n\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t Tween Data Calculation\n\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\n\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\n\t\t\t\t\t\t\t\tendValue = valueData[0];\n\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tendValue = valueData;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\n\t\t\t\t\t\t\t\t\tpattern;\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Start Value Sourcing\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t\t\t\t\t\t\t\tstartValue = 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Value Data Extraction\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\tvar separatedValue,\n\t\t\t\t\t\t\t\t\tendValueUnitType,\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\n\t\t\t\t\t\t\t\t\toperator = false;\n\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\n\t\t\t\t\t\t\t\tvar unitType,\n\t\t\t\t\t\t\t\t\t\tnumericValue;\n\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\n\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\n\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t\t\t\t\t\t\t\tif (!unitType) {\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n\t\t\t\t\t\t\t\tpattern = \"\";\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\n\t\t\t\t\t\t\t\t\t\t\t// Same units\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\n\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\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\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\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\tif (nStart) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\n\t\t\t\t\t\t\t\t\t\tiStart++;\n\t\t\t\t\t\t\t\t\t\tiEnd++;\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tif (iStart !== startValue.length || iEnd !== endValue.length) {\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tpattern = undefined;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\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\n\t\t\t\t\t\t\tif (!pattern) {\n\t\t\t\t\t\t\t\t/* Separate startValue. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t\t\t\t\t\t\t\t\toperator = subMatch;\n\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\n\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\n\n\t\t\t\t\t\t\t\t/***************************************\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\n\t\t\t\t\t\t\t\t ***************************************/\n\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\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\n\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t Unit Ratio Calculation\n\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\n\n\t\t\t\t\t\t\t\t/************************\n\t\t\t\t\t\t\t\t Same Ratio Checks\n\t\t\t\t\t\t\t\t ************************/\n\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Specific Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t\t\t\t\t\t\t\tvar measurement = 100,\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\n\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\n\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Agnostic Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t\t\t\t\t\t\t\t so we calculate it now. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn unitRatios;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t/********************\n\t\t\t\t\t\t\t Unit Conversion\n\t\t\t\t\t\t\t ********************/\n\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\n\t\t\t\t\t\t\t\tif (endValue === 0) {\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\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\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Relative Values\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\n\t\t\t\t\t\t\tswitch (operator) {\n\t\t\t\t\t\t\t\tcase \"+\":\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t tweensContainer Push\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t\t\t\t\t\t\ttweensContainer[property] = {\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\n\t\t\t\t\t\t\t\tstartValue: startValue,\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\n\t\t\t\t\t\t\t\tendValue: endValue,\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\n\t\t\t\t\t\t\t\teasing: easing\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t\t\t\t\t\tfor (var property in propertiesMap) {\n\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\n\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\n\n\t\t\t\t\t\t\t\t\t\tif (easing) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t\t\t\t\t\ttweensContainer.element = element;\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************\n\t\t\t\t\t Call Push\n\t\t\t\t\t *****************/\n\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t\t\t\t\tif (tweensContainer.element) {\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\n\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\n\t\t\t\t\t\tcall.push(tweensContainer);\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\n\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\n\t\t\t\t\t\t\t\tdata.opts = opts;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\n\t\t\t\t\t\t\tdata.isAnimating = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\n\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\n\t\t\t\t\t\t\t\ttick();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telementsIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "function buildQueue(next) {\n\t\t\t\t\tvar data, lastTweensContainer;\n\n\t\t\t\t\t/*******************\n\t\t\t\t\t Option: Begin\n\t\t\t\t\t *******************/\n\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t}, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************************************\n\t\t\t\t\t Tween Data Construction (for Scroll)\n\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t\t\t\t\tif (action === \"scroll\") {\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\n\t\t\t\t\t\t\t\tscrollPositionEnd;\n\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t\t\t\t\t\tif (opts.container) {\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\topts.container = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t\t\t\t\t\ttweensContainer = {\n\t\t\t\t\t\t\tscroll: {\n\t\t\t\t\t\t\t\trootPropertyValue: false,\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\n\t\t\t\t\t\t\t\tunitType: \"\",\n\t\t\t\t\t\t\t\teasing: opts.easing,\n\t\t\t\t\t\t\t\tscrollData: {\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\telement: element\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/******************************************\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\n\t\t\t\t\t\t ******************************************/\n\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t\t\t\t\t} else if (action === \"reverse\") {\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\n\t\t\t\t\t\tif (!data) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!data.tweensContainer) {\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Options Parsing\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t\t\t\t\t\t\tdata.opts.loop = false;\n\t\t\t\t\t\t\tdata.opts.begin = null;\n\t\t\t\t\t\t\tdata.opts.complete = null;\n\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t\t\t\t\t\t\tif (!options.easing) {\n\t\t\t\t\t\t\t\tdelete opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!options.duration) {\n\t\t\t\t\t\t\t\tdelete opts.duration;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\n\n\t\t\t\t\t\t\t/*************************************\n\t\t\t\t\t\t\t Tweens Container Reconstruction\n\t\t\t\t\t\t\t *************************************/\n\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\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\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*****************************************\n\t\t\t\t\t\t Tween Data Construction (for Start)\n\t\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t} else if (action === \"start\") {\n\n\t\t\t\t\t\t/*************************\n\t\t\t\t\t\t Value Transferring\n\t\t\t\t\t\t *************************/\n\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t Tween Data Calculation\n\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\n\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\n\t\t\t\t\t\t\t\tendValue = valueData[0];\n\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tendValue = valueData;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\n\t\t\t\t\t\t\t\t\tpattern;\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Start Value Sourcing\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t\t\t\t\t\t\t\tstartValue = 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Value Data Extraction\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\tvar separatedValue,\n\t\t\t\t\t\t\t\t\tendValueUnitType,\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\n\t\t\t\t\t\t\t\t\toperator = false;\n\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\n\t\t\t\t\t\t\t\tvar unitType,\n\t\t\t\t\t\t\t\t\t\tnumericValue;\n\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\n\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\n\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t\t\t\t\t\t\t\tif (!unitType) {\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n\t\t\t\t\t\t\t\tpattern = \"\";\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\n\t\t\t\t\t\t\t\t\t\t\t// Same units\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\n\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\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\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\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\tif (nStart) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\n\t\t\t\t\t\t\t\t\t\tiStart++;\n\t\t\t\t\t\t\t\t\t\tiEnd++;\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tif (iStart !== startValue.length || iEnd !== endValue.length) {\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tpattern = undefined;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\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\n\t\t\t\t\t\t\tif (!pattern) {\n\t\t\t\t\t\t\t\t/* Separate startValue. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t\t\t\t\t\t\t\t\toperator = subMatch;\n\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\n\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\n\n\t\t\t\t\t\t\t\t/***************************************\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\n\t\t\t\t\t\t\t\t ***************************************/\n\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\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\n\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t Unit Ratio Calculation\n\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\n\n\t\t\t\t\t\t\t\t/************************\n\t\t\t\t\t\t\t\t Same Ratio Checks\n\t\t\t\t\t\t\t\t ************************/\n\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Specific Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t\t\t\t\t\t\t\tvar measurement = 100,\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\n\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\n\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Agnostic Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t\t\t\t\t\t\t\t so we calculate it now. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn unitRatios;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t/********************\n\t\t\t\t\t\t\t Unit Conversion\n\t\t\t\t\t\t\t ********************/\n\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\n\t\t\t\t\t\t\t\tif (endValue === 0) {\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\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\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Relative Values\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\n\t\t\t\t\t\t\tswitch (operator) {\n\t\t\t\t\t\t\t\tcase \"+\":\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t tweensContainer Push\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t\t\t\t\t\t\ttweensContainer[property] = {\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\n\t\t\t\t\t\t\t\tstartValue: startValue,\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\n\t\t\t\t\t\t\t\tendValue: endValue,\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\n\t\t\t\t\t\t\t\teasing: easing\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t\t\t\t\t\tfor (var property in propertiesMap) {\n\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\n\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\n\n\t\t\t\t\t\t\t\t\t\tif (easing) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t\t\t\t\t\ttweensContainer.element = element;\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************\n\t\t\t\t\t Call Push\n\t\t\t\t\t *****************/\n\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t\t\t\t\tif (tweensContainer.element) {\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\n\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\n\t\t\t\t\t\tcall.push(tweensContainer);\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\n\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\n\t\t\t\t\t\t\t\tdata.opts = opts;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\n\t\t\t\t\t\t\tdata.isAnimating = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\n\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\n\t\t\t\t\t\t\t\ttick();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telementsIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "function buildQueue(next) {\n\t\t\t\t\tvar data, lastTweensContainer;\n\n\t\t\t\t\t/*******************\n\t\t\t\t\t Option: Begin\n\t\t\t\t\t *******************/\n\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t}, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************************************\n\t\t\t\t\t Tween Data Construction (for Scroll)\n\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t\t\t\t\tif (action === \"scroll\") {\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\n\t\t\t\t\t\t\t\tscrollPositionEnd;\n\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t\t\t\t\t\tif (opts.container) {\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\topts.container = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t\t\t\t\t\ttweensContainer = {\n\t\t\t\t\t\t\tscroll: {\n\t\t\t\t\t\t\t\trootPropertyValue: false,\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\n\t\t\t\t\t\t\t\tunitType: \"\",\n\t\t\t\t\t\t\t\teasing: opts.easing,\n\t\t\t\t\t\t\t\tscrollData: {\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\telement: element\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/******************************************\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\n\t\t\t\t\t\t ******************************************/\n\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t\t\t\t\t} else if (action === \"reverse\") {\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\n\t\t\t\t\t\tif (!data) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!data.tweensContainer) {\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Options Parsing\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t\t\t\t\t\t\tdata.opts.loop = false;\n\t\t\t\t\t\t\tdata.opts.begin = null;\n\t\t\t\t\t\t\tdata.opts.complete = null;\n\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t\t\t\t\t\t\tif (!options.easing) {\n\t\t\t\t\t\t\t\tdelete opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!options.duration) {\n\t\t\t\t\t\t\t\tdelete opts.duration;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\n\n\t\t\t\t\t\t\t/*************************************\n\t\t\t\t\t\t\t Tweens Container Reconstruction\n\t\t\t\t\t\t\t *************************************/\n\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\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\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*****************************************\n\t\t\t\t\t\t Tween Data Construction (for Start)\n\t\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t} else if (action === \"start\") {\n\n\t\t\t\t\t\t/*************************\n\t\t\t\t\t\t Value Transferring\n\t\t\t\t\t\t *************************/\n\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t Tween Data Calculation\n\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\n\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\n\t\t\t\t\t\t\t\tendValue = valueData[0];\n\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tendValue = valueData;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\n\t\t\t\t\t\t\t\t\tpattern;\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Start Value Sourcing\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t\t\t\t\t\t\t\tstartValue = 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Value Data Extraction\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\tvar separatedValue,\n\t\t\t\t\t\t\t\t\tendValueUnitType,\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\n\t\t\t\t\t\t\t\t\toperator = false;\n\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\n\t\t\t\t\t\t\t\tvar unitType,\n\t\t\t\t\t\t\t\t\t\tnumericValue;\n\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\n\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\n\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t\t\t\t\t\t\t\tif (!unitType) {\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n\t\t\t\t\t\t\t\tpattern = \"\";\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\n\t\t\t\t\t\t\t\t\t\t\t// Same units\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\n\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\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\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\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\tif (nStart) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\n\t\t\t\t\t\t\t\t\t\tiStart++;\n\t\t\t\t\t\t\t\t\t\tiEnd++;\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tif (iStart !== startValue.length || iEnd !== endValue.length) {\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tpattern = undefined;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\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\n\t\t\t\t\t\t\tif (!pattern) {\n\t\t\t\t\t\t\t\t/* Separate startValue. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t\t\t\t\t\t\t\t\toperator = subMatch;\n\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\n\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\n\n\t\t\t\t\t\t\t\t/***************************************\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\n\t\t\t\t\t\t\t\t ***************************************/\n\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\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\n\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t Unit Ratio Calculation\n\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\n\n\t\t\t\t\t\t\t\t/************************\n\t\t\t\t\t\t\t\t Same Ratio Checks\n\t\t\t\t\t\t\t\t ************************/\n\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Specific Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t\t\t\t\t\t\t\tvar measurement = 100,\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\n\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\n\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Agnostic Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t\t\t\t\t\t\t\t so we calculate it now. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn unitRatios;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t/********************\n\t\t\t\t\t\t\t Unit Conversion\n\t\t\t\t\t\t\t ********************/\n\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\n\t\t\t\t\t\t\t\tif (endValue === 0) {\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\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\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Relative Values\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\n\t\t\t\t\t\t\tswitch (operator) {\n\t\t\t\t\t\t\t\tcase \"+\":\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t tweensContainer Push\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t\t\t\t\t\t\ttweensContainer[property] = {\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\n\t\t\t\t\t\t\t\tstartValue: startValue,\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\n\t\t\t\t\t\t\t\tendValue: endValue,\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\n\t\t\t\t\t\t\t\teasing: easing\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t\t\t\t\t\tfor (var property in propertiesMap) {\n\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\n\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\n\n\t\t\t\t\t\t\t\t\t\tif (easing) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t\t\t\t\t\ttweensContainer.element = element;\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************\n\t\t\t\t\t Call Push\n\t\t\t\t\t *****************/\n\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t\t\t\t\tif (tweensContainer.element) {\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\n\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\n\t\t\t\t\t\tcall.push(tweensContainer);\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\n\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\n\t\t\t\t\t\t\t\tdata.opts = opts;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\n\t\t\t\t\t\t\tdata.isAnimating = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\n\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\n\t\t\t\t\t\t\t\ttick();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telementsIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "function buildQueue(next) {\n\t\t\t\t\tvar data, lastTweensContainer;\n\n\t\t\t\t\t/*******************\n\t\t\t\t\t Option: Begin\n\t\t\t\t\t *******************/\n\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t}, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************************************\n\t\t\t\t\t Tween Data Construction (for Scroll)\n\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t\t\t\t\tif (action === \"scroll\") {\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\n\t\t\t\t\t\t\t\tscrollPositionEnd;\n\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t\t\t\t\t\tif (opts.container) {\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\topts.container = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t\t\t\t\t\ttweensContainer = {\n\t\t\t\t\t\t\tscroll: {\n\t\t\t\t\t\t\t\trootPropertyValue: false,\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\n\t\t\t\t\t\t\t\tunitType: \"\",\n\t\t\t\t\t\t\t\teasing: opts.easing,\n\t\t\t\t\t\t\t\tscrollData: {\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\telement: element\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/******************************************\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\n\t\t\t\t\t\t ******************************************/\n\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t\t\t\t\t} else if (action === \"reverse\") {\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\n\t\t\t\t\t\tif (!data) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!data.tweensContainer) {\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Options Parsing\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t\t\t\t\t\t\tdata.opts.loop = false;\n\t\t\t\t\t\t\tdata.opts.begin = null;\n\t\t\t\t\t\t\tdata.opts.complete = null;\n\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t\t\t\t\t\t\tif (!options.easing) {\n\t\t\t\t\t\t\t\tdelete opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!options.duration) {\n\t\t\t\t\t\t\t\tdelete opts.duration;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\n\n\t\t\t\t\t\t\t/*************************************\n\t\t\t\t\t\t\t Tweens Container Reconstruction\n\t\t\t\t\t\t\t *************************************/\n\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\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\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*****************************************\n\t\t\t\t\t\t Tween Data Construction (for Start)\n\t\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t} else if (action === \"start\") {\n\n\t\t\t\t\t\t/*************************\n\t\t\t\t\t\t Value Transferring\n\t\t\t\t\t\t *************************/\n\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t Tween Data Calculation\n\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\n\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\n\t\t\t\t\t\t\t\tendValue = valueData[0];\n\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tendValue = valueData;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\n\t\t\t\t\t\t\t\t\tpattern;\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Start Value Sourcing\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t\t\t\t\t\t\t\tstartValue = 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Value Data Extraction\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\tvar separatedValue,\n\t\t\t\t\t\t\t\t\tendValueUnitType,\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\n\t\t\t\t\t\t\t\t\toperator = false;\n\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\n\t\t\t\t\t\t\t\tvar unitType,\n\t\t\t\t\t\t\t\t\t\tnumericValue;\n\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\n\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\n\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t\t\t\t\t\t\t\tif (!unitType) {\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n\t\t\t\t\t\t\t\tpattern = \"\";\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\n\t\t\t\t\t\t\t\t\t\t\t// Same units\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\n\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\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\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\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\tif (nStart) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\n\t\t\t\t\t\t\t\t\t\tiStart++;\n\t\t\t\t\t\t\t\t\t\tiEnd++;\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tif (iStart !== startValue.length || iEnd !== endValue.length) {\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tpattern = undefined;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\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\n\t\t\t\t\t\t\tif (!pattern) {\n\t\t\t\t\t\t\t\t/* Separate startValue. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t\t\t\t\t\t\t\t\toperator = subMatch;\n\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\n\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\n\n\t\t\t\t\t\t\t\t/***************************************\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\n\t\t\t\t\t\t\t\t ***************************************/\n\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\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\n\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t Unit Ratio Calculation\n\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\n\n\t\t\t\t\t\t\t\t/************************\n\t\t\t\t\t\t\t\t Same Ratio Checks\n\t\t\t\t\t\t\t\t ************************/\n\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Specific Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t\t\t\t\t\t\t\tvar measurement = 100,\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\n\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\n\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Agnostic Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t\t\t\t\t\t\t\t so we calculate it now. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn unitRatios;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t/********************\n\t\t\t\t\t\t\t Unit Conversion\n\t\t\t\t\t\t\t ********************/\n\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\n\t\t\t\t\t\t\t\tif (endValue === 0) {\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\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\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Relative Values\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\n\t\t\t\t\t\t\tswitch (operator) {\n\t\t\t\t\t\t\t\tcase \"+\":\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t tweensContainer Push\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t\t\t\t\t\t\ttweensContainer[property] = {\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\n\t\t\t\t\t\t\t\tstartValue: startValue,\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\n\t\t\t\t\t\t\t\tendValue: endValue,\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\n\t\t\t\t\t\t\t\teasing: easing\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t\t\t\t\t\tfor (var property in propertiesMap) {\n\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\n\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\n\n\t\t\t\t\t\t\t\t\t\tif (easing) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t\t\t\t\t\ttweensContainer.element = element;\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************\n\t\t\t\t\t Call Push\n\t\t\t\t\t *****************/\n\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t\t\t\t\tif (tweensContainer.element) {\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\n\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\n\t\t\t\t\t\tcall.push(tweensContainer);\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\n\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\n\t\t\t\t\t\t\t\tdata.opts = opts;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\n\t\t\t\t\t\t\tdata.isAnimating = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\n\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\n\t\t\t\t\t\t\t\ttick();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telementsIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "function buildQueue(next) {\n\t\t\t\t\tvar data, lastTweensContainer;\n\n\t\t\t\t\t/*******************\n\t\t\t\t\t Option: Begin\n\t\t\t\t\t *******************/\n\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\n\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t}, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************************************\n\t\t\t\t\t Tween Data Construction (for Scroll)\n\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\n\t\t\t\t\tif (action === \"scroll\") {\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\n\t\t\t\t\t\t\t\tscrollPositionEnd;\n\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\n\t\t\t\t\t\tif (opts.container) {\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\n\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\topts.container = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\n\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\n\t\t\t\t\t\ttweensContainer = {\n\t\t\t\t\t\t\tscroll: {\n\t\t\t\t\t\t\t\trootPropertyValue: false,\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\n\t\t\t\t\t\t\t\tunitType: \"\",\n\t\t\t\t\t\t\t\teasing: opts.easing,\n\t\t\t\t\t\t\t\tscrollData: {\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\telement: element\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/******************************************\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\n\t\t\t\t\t\t ******************************************/\n\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\n\t\t\t\t\t} else if (action === \"reverse\") {\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\n\t\t\t\t\t\tif (!data) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!data.tweensContainer) {\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\n\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Options Parsing\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\n\t\t\t\t\t\t\tdata.opts.loop = false;\n\t\t\t\t\t\t\tdata.opts.begin = null;\n\t\t\t\t\t\t\tdata.opts.complete = null;\n\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\n\t\t\t\t\t\t\tif (!options.easing) {\n\t\t\t\t\t\t\t\tdelete opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!options.duration) {\n\t\t\t\t\t\t\t\tdelete opts.duration;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\n\n\t\t\t\t\t\t\t/*************************************\n\t\t\t\t\t\t\t Tweens Container Reconstruction\n\t\t\t\t\t\t\t *************************************/\n\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\n\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\n\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\n\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\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\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/*****************************************\n\t\t\t\t\t\t Tween Data Construction (for Start)\n\t\t\t\t\t\t *****************************************/\n\n\t\t\t\t\t} else if (action === \"start\") {\n\n\t\t\t\t\t\t/*************************\n\t\t\t\t\t\t Value Transferring\n\t\t\t\t\t\t *************************/\n\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t Tween Data Calculation\n\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\n\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\n\t\t\t\t\t\t\t\tendValue = valueData[0];\n\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\n\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tendValue = valueData;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\n\t\t\t\t\t\t\t\t\tpattern;\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Start Value Sourcing\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\n\t\t\t\t\t\t\t\tstartValue = 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t Value Data Extraction\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\tvar separatedValue,\n\t\t\t\t\t\t\t\t\tendValueUnitType,\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\n\t\t\t\t\t\t\t\t\toperator = false;\n\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\n\t\t\t\t\t\t\t\tvar unitType,\n\t\t\t\t\t\t\t\t\t\tnumericValue;\n\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\n\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\n\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\n\t\t\t\t\t\t\t\tif (!unitType) {\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\n\t\t\t\t\t\t\t\tpattern = \"\";\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\n\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\n\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\n\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\n\t\t\t\t\t\t\t\t\t\t\t// Same units\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\n\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\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\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\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\tif (nStart) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\n\t\t\t\t\t\t\t\t\t\tiStart++;\n\t\t\t\t\t\t\t\t\t\tiEnd++;\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tif (iStart !== startValue.length || iEnd !== endValue.length) {\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tpattern = undefined;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\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\n\t\t\t\t\t\t\tif (!pattern) {\n\t\t\t\t\t\t\t\t/* Separate startValue. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\n\t\t\t\t\t\t\t\t\toperator = subMatch;\n\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\n\t\t\t\t\t\t\t\t\treturn \"\";\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\n\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\n\n\t\t\t\t\t\t\t\t/***************************************\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\n\t\t\t\t\t\t\t\t ***************************************/\n\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\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\n\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t Unit Ratio Calculation\n\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\n\n\t\t\t\t\t\t\t\t/************************\n\t\t\t\t\t\t\t\t Same Ratio Checks\n\t\t\t\t\t\t\t\t ************************/\n\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\n\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Specific Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\n\t\t\t\t\t\t\t\tvar measurement = 100,\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\n\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\n\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\n\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\n\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\n\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\n\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/***************************\n\t\t\t\t\t\t\t\t Element-Agnostic Units\n\t\t\t\t\t\t\t\t ***************************/\n\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\n\t\t\t\t\t\t\t\t so we calculate it now. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\n\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn unitRatios;\n\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t/********************\n\t\t\t\t\t\t\t Unit Conversion\n\t\t\t\t\t\t\t ********************/\n\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\n\t\t\t\t\t\t\t\tif (endValue === 0) {\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\n\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\n\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\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\n\t\t\t\t\t\t\t/*********************\n\t\t\t\t\t\t\t Relative Values\n\t\t\t\t\t\t\t *********************/\n\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\n\t\t\t\t\t\t\tswitch (operator) {\n\t\t\t\t\t\t\t\tcase \"+\":\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/**************************\n\t\t\t\t\t\t\t tweensContainer Push\n\t\t\t\t\t\t\t **************************/\n\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\n\t\t\t\t\t\t\ttweensContainer[property] = {\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\n\t\t\t\t\t\t\t\tstartValue: startValue,\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\n\t\t\t\t\t\t\t\tendValue: endValue,\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\n\t\t\t\t\t\t\t\teasing: easing\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tif (pattern) {\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (Velocity.debug) {\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\n\t\t\t\t\t\tfor (var property in propertiesMap) {\n\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\n\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\n\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\n\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\n\n\t\t\t\t\t\t\t\t\t\tif (easing) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\n\t\t\t\t\t\ttweensContainer.element = element;\n\t\t\t\t\t}\n\n\t\t\t\t\t/*****************\n\t\t\t\t\t Call Push\n\t\t\t\t\t *****************/\n\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\n\t\t\t\t\tif (tweensContainer.element) {\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\n\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\n\t\t\t\t\t\tcall.push(tweensContainer);\n\n\t\t\t\t\t\tdata = Data(element);\n\n\t\t\t\t\t\tif (data) {\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\n\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\n\t\t\t\t\t\t\t\tdata.opts = opts;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\n\t\t\t\t\t\t\tdata.isAnimating = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\n\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\n\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\n\t\t\t\t\t\t\t\ttick();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\telementsIndex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "function actualScrollHandler () {\n\t\t_direction = latestKnownScroll.top < _prevTop? \"up\" : \"down\";\n\t\t_prevTop = latestKnownScroll.top;\n\n\t\t$(window).trigger({\n\t\t\ttype: \"Katoen:ScrollEvent\",\n\t\t\tlatestKnownScroll: latestKnownScroll,\n\t\t\tdirection: _direction\n\t\t});\n\t\t_animRunning = false;\n\t}", "function scrollStart() {\n // Hide context menu if showing\n component.hideContextMenu();\n // Bind clickout scroll\n //component.layers[\"clickout\"].on(\"scroll\", onChangeLayout);\n }", "function increaseLinkQueue() {\n\t\tif (w2ui.mainLayout_top_toolbar.items[1].disabled) {\n\t\t\tw2ui.mainLayout_top_toolbar.enable('btn');\n\t\t\tsetTimeout(function () { // needs timeout because w2ui itself uses timeouts\n\t\t\t\t$('.icon-page').removeClass('w2ui-tb-image');\n\t\t\t\t$('.icon-page').append('<span class=\"notification-counter\">1</span>');\n\t\t\t}, 25);\n\t\t} else {\n\t\t\tvar counter = $('.notification-counter');\n\t\t\tvar counterVal = parseInt(counter.text());\n\t\t\tcounterVal++;\n\t\t\tcounter.text(counterVal);\n\t\t\tcounter.css({\n\t\t\t\topacity: 0.9,\n\t\t\t\ttop: '0px'\n\t\t\t});\n\n\t\t\t// Animation\n\t\t\tcounter.animate({\n\t\t\t\topacity: 1,\n\t\t\t\ttop: '3px',\n\t\t\t}, 500);\n\t\t}\n\t}" ]
[ "0.6285056", "0.60334843", "0.59531695", "0.59531695", "0.5939761", "0.5939761", "0.5897734", "0.5850394", "0.58254206", "0.58254206", "0.58254206", "0.58254206", "0.58254206", "0.57792956", "0.57792956", "0.5772229", "0.57711375", "0.57456005", "0.57375705", "0.5733483", "0.5733483", "0.56984425", "0.5676571", "0.5644397", "0.56324846", "0.56273586", "0.5607323", "0.5586609", "0.55338293", "0.5528665", "0.5510734", "0.5510734", "0.5510734", "0.5510734", "0.5510734", "0.5497771", "0.5492571", "0.5492571", "0.548025", "0.5477882", "0.5476308", "0.546716", "0.546716", "0.546716", "0.546716", "0.546716", "0.5433689", "0.54079014", "0.5402113", "0.53957194", "0.53892285", "0.5386454", "0.5383652", "0.5383652", "0.5383652", "0.53622675", "0.5348802", "0.5348594", "0.53440166", "0.53265125", "0.53218853", "0.53144115", "0.53131706", "0.53098696", "0.53067005", "0.5306407", "0.5306407", "0.5306407", "0.53010786", "0.53010154", "0.5294962", "0.5282738", "0.52582556", "0.5245887", "0.52391386", "0.5231571", "0.5231571", "0.5231571", "0.5231571", "0.5231571", "0.5231571", "0.5231571", "0.5228418", "0.5224895", "0.5213735", "0.5195614", "0.5193824", "0.519365", "0.519365", "0.51919156", "0.51855296", "0.51822656", "0.5178816", "0.5178816", "0.5178816", "0.5178816", "0.5178816", "0.5178411", "0.5176401", "0.5174897" ]
0.57556874
17
Mousedown event only for updating activeElement
function mousedown(event) { activeElement = event.target; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\r\n activeElement = event.target;\r\n}", "function mousedown(event) {\r\n activeElement = event.target;\r\n}", "function mousedown(event) {\r\n activeElement = event.target;\r\n}", "function mousedown(event) {\r\n activeElement = event.target;\r\n}", "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\n activeElement = event.target;\n }", "function mousedown(event) {\r\n\t\t\t\tactiveElement = event.target;\r\n\t\t\t}", "function handleMouseDown()\r\n{\r\n _mouse_down = true;\r\n}", "function mousedown(e){\n\t\t// console.log(e);\n\t\tmouseIsDown = true;\n\t}", "function down(evt){mouseDown(getMousePos(evt));}", "function down(evt){mouseDown(getMousePos(evt));}", "mouseDown(pt) {}", "mouseDown(pt) {}", "onElementMouseDown(event) {\n const me = this,\n cellData = me.getEventData(event);\n\n me.skipFocusSelection = true;\n\n me.triggerCellMouseEvent('mousedown', event);\n\n // Browser event unification fires a mousedown on touch tap prior to focus.\n if (!event.defaultPrevented) {\n me.onFocusGesture(cellData, event);\n }\n }", "mousedownHandler(e) {\n this.shouldSkipFocus = !this.contains(document.activeElement);\n return true;\n }", "_onMouseDown(e){\n this.setState({mousePressed:true});\n this.mouseDown(e);\n }", "function mouseDown(e) {\n mousePress(e.button, true);\n}", "mouseDown(x, y, _isLeftButton) {}", "function nextFrameWithMouseDown() {\r\n if (!that.isFinal) {\r\n var cs = dojo.coords(that.node, true);\r\n if (rubberband) {\r\n rubberband.update(mouse.x - cs.x, mouse.y - cs.y);\r\n } else {\r\n rubberband = new Rubberband(\r\n that, mouse.x - cs.x, mouse.y - cs.y);\r\n }\r\n var selection = new Selection(that, rubberband);\r\n updateSelectionHighlight(selection);\r\n }\r\n }", "function mouseDown() {\n console.log(\"Mouse Down\");\n mouseDownPress = true;\n}", "function mousedown() {\n \"use strict\";\n mouseclicked = !mouseclicked;\n}", "onElementMouseDown(event) {\n const me = this,\n cellData = me.getCellDataFromEvent(event);\n me.skipFocusSelection = true;\n me.triggerCellMouseEvent('mousedown', event); // Browser event unification fires a mousedown on touch tap prior to focus.\n\n if (cellData && !event.defaultPrevented) {\n me.onFocusGesture(cellData, event);\n }\n }", "mouseDown(e){\n if(e.button == 0){\n e.stopPropagation();\n e.preventDefault();\n\n this.set('moveStart', true);\n\n const self = this;\n this.set('mouseMoveListener', function(e){\n if(self.mouseMove){\n self.mouseMove(e);\n }\n });\n\n this.set('mouseUpListener', function(e){\n if(self.mouseUp){\n self.mouseUp(e);\n }\n });\n\n document.addEventListener('mousemove', this.get('mouseMoveListener'));\n document.addEventListener('mouseup', this.get('mouseUpListener'));\n }\n }", "_evtMousedown(event) {\n if (this.isHidden || !this._editor) {\n return;\n }\n if (Private.nonstandardClick(event)) {\n this.reset();\n return;\n }\n let target = event.target;\n while (target !== document.documentElement) {\n // If the user has made a selection, emit its value and reset the widget.\n if (target.classList.contains(ITEM_CLASS)) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n this._selected.emit(target.getAttribute('data-value'));\n this.reset();\n return;\n }\n // If the mouse event happened anywhere else in the widget, bail.\n if (target === this.node) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n return;\n }\n target = target.parentElement;\n }\n this.reset();\n }", "onMouseDown(e) {}", "function btnDown() {\n //dbg(\"mousedown\");\n lastBtn = this.id;\n //add graphical feed back here\n dbg({ keydown: this.id });\n rokupost(\"keydown\", this.id);\n}", "_mousedown(e) {\n let x = e.clientX - e.target.offsetLeft\n\n console.log(\"mousedown\", x)\n this.setCurrentTime(x)\n this.mouseIsDown = true\n }", "mousedownHandler(e) {\n this.shouldSkipFocus = !this.contains(document.activeElement);\n return true;\n }", "function onMouseDown(event) { }", "function mouseup(){\n mouse_down = false;\n}", "function mouseDownEvent(eb){\r\n dragging = eb\r\n}", "function TabControl_ScrollButton_MouseDown(event)\n{\n\t//get the scroll button\n\tvar scrollButton = Browser_GetEventSourceElement(event);\n\t//search for the valid component\n\twhile (scrollButton && !scrollButton.InterpreterObject)\n\t{\n\t\tscrollButton = scrollButton.parentNode;\n\t}\n\t//has pressed bg position?\n\tif (scrollButton && scrollButton.BG_POS_PRESSED && !scrollButton.disabled)\n\t{\n\t\t//update background position\n\t\tscrollButton.style.backgroundPosition = scrollButton.BG_POS_PRESSED;\n\t}\n}", "function documentMouseDownHandler(event){\n mouseIsDown = true;\n }", "componentDidUpdate() {\n this.focused = false;\n this.mouseDownOnButton = false;\n }", "function mousedown(event) {\n // Use currentTarget to get the registered listener; actual click will\n // hit a child element\n var el = event.currentTarget;\n if (el.className != 'slider') return;\n\n current_slider = el;\n event.preventDefault();\n mousemove(event);\n\n // XXX don't mousemove; update_color()\n}", "onMouseDown(event) {\n if (this.enabled===false) return\n if (this.domElement!==event.target) return\n event.preventDefault()\n this.dampingFactor = this.mouseDampingFactor\n this.activeElement = event.target\n\n switch (event.button) {\n case this.mouseButtons.ORBIT: if (this.enableRotate===false) return\n this.mousedownRot(event); this.state = STATE.ROTATE; break\n case this.mouseButtons.ZOOM: if (this.enableZoom===false) return\n this.mousedownDol(event); this.state = STATE.DOLLY; break\n case this.mouseButtons.PAN: if (this.enablePan===false) return\n this.mousedownPan(event); this.state = STATE.PAN; break\n }\n\n if (this.state!==STATE.NONE) {\n const onMoveCheck = () => {\n document.removeEventListener('mousemove', onMoveCheck)\n this.dispatchStart() }\n document.addEventListener('mousemove',onMoveCheck,false)\n document.addEventListener('mousemove',this.onMouseMoveRef,false)\n document.addEventListener('mouseup',this.onMouseUpRef,false)\n document.addEventListener('mouseout',this.onMouseUpRef,false)\n }\n }", "_onHandleMouseDown(ev) {\n ev.preventDefault();\n ev.stopPropagation();\n\n this._activeValues = [];\n\n for (let i = 0; i < this._values.length; i++) {\n this._activeValues.push(i);\n }\n\n this._mouseActive = true;\n this._activeHandle = $(ev.currentTarget).data('handle-id');\n\n document.addEventListener('mouseup', this._onHandleMouseUp, true);\n document.addEventListener('mousemove', this._onHandleMouseMove, true);\n\n $('body').addClass('revision-selector-grabbed');\n }", "sketchpad_mouseUp() {\n this.mouseDown = 0\n }", "function onMouseDown(e) {\r\n if (signalDOMEvent(this, e)) return;\r\n var cm = this, display = cm.display;\r\n display.shift = e.shiftKey;\r\n\r\n if (eventInWidget(display, e)) {\r\n if (!webkit) {\r\n // Briefly turn off draggability, to allow widgets to do\r\n // normal dragging things.\r\n display.scroller.draggable = false;\r\n setTimeout(function(){display.scroller.draggable = true;}, 100);\r\n }\r\n return;\r\n }\r\n if (clickInGutter(cm, e)) return;\r\n var start = posFromMouse(cm, e);\r\n window.focus();\r\n\r\n switch (e_button(e)) {\r\n case 1:\r\n if (start)\r\n leftButtonDown(cm, e, start);\r\n else if (e_target(e) == display.scroller)\r\n e_preventDefault(e);\r\n break;\r\n case 2:\r\n if (webkit) cm.state.lastMiddleDown = +new Date;\r\n if (start) extendSelection(cm.doc, start);\r\n setTimeout(bind(focusInput, cm), 20);\r\n e_preventDefault(e);\r\n break;\r\n case 3:\r\n if (captureRightClick) onContextMenu(cm, e);\r\n break;\r\n }\r\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function onMouseDown(e) {\n if (signalDOMEvent(this, e)) return;\n var cm = this, display = cm.display;\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function(){display.scroller.draggable = true;}, 100);\n }\n return;\n }\n if (clickInGutter(cm, e)) return;\n var start = posFromMouse(cm, e);\n window.focus();\n\n switch (e_button(e)) {\n case 1:\n if (start)\n leftButtonDown(cm, e, start);\n else if (e_target(e) == display.scroller)\n e_preventDefault(e);\n break;\n case 2:\n if (webkit) cm.state.lastMiddleDown = +new Date;\n if (start) extendSelection(cm.doc, start);\n setTimeout(bind(focusInput, cm), 20);\n e_preventDefault(e);\n break;\n case 3:\n if (captureRightClick) onContextMenu(cm, e);\n break;\n }\n }", "function TabControl_TabButton_MouseDown(event)\n{\n\t//block the event\n\tBrowser_BlockEvent(event);\n\t//get the tabbutton\n\tvar tabButton = Browser_GetEventSourceElement(event);\n\t//search for the valid component\n\twhile (tabButton && !tabButton.InterpreterObject)\n\t{\n\t\ttabButton = tabButton.parentNode;\n\t}\n\t//forward the event\n\tTabControl_TabButton_MouseDownForwarded(tabButton);\n}", "onMouseDown(e) {\n var self = this;\n\n if (self.isFocused) {\n if (self.settings.mode !== 'single') {\n self.setActiveItem();\n }\n\n self.open();\n return false;\n } else {\n // give control focus\n setTimeout(() => self.focus(), 0);\n }\n }", "handleMouseDown(e) {\n this.toggleMenu();\n e.stopPropagation();\n }", "function mouseReleased() {\r\n mouseIsDown = false;\r\n}", "function mouseDown (event) {\n const key = keys[keyIndexById(this.id)].key;\n addActiveClasses(key);\n}", "function mousedownForCanvas(event)\n{\n global_mouseButtonDown = true;\n event.preventDefault(); //need? (maybe not on desktop)\n}", "onDownArrowKeypress() {\n var e;\n this.activeTabId && ((e = document.getElementById(this.activeTabId)) == null || e.focus());\n }", "function mouse_down_handler(e) {\n e.preventDefault(); //Prevents the default action from happening (e.g. navigation)\n mouse.down = true; //Sets the mouse object's \"down\" value to true\n }", "externalMouseDown() {\n this._strikeMouseDown();\n this._localPointer._mouseIsActive = true;\n }", "function onMouseup(){elements.input.focus();}", "on_mousedown(e, localX, localY) {\n\n }", "function handleClick(){\n this.isMouseDown = false\n this.lastX = null\n}", "function mouseStatusDown(evt) {\n evt.preventDefault();\n mouseStatus = 'down';\n paintPixel(evt);\n}", "onMouseDown (e) {\n this.isMouseDown = true;\n\n this.emit('mouse-down', {x: e.offsetX, y: e.offsetY});\n }", "function mouseDown(event) {\r\n this.hasMouseDown = true;\r\n }", "function ToolBarButton_MouseDown(event)\n{\n\t//get source element\n\tvar sourceElement = Browser_GetEventSourceElement(event);\n\t//ensure we have the right one\n\twhile (sourceElement && !sourceElement.InterpreterObject)\n\t{\n\t\t//iterate\n\t\tsourceElement = sourceElement.parentNode;\n\t}\n\t//valid?\n\tif (sourceElement)\n\t{\n\t\t//set button background\n\t\tsourceElement.style.background = sourceElement.InterpreterObject.HTML.TB_BG_PRESSED;\n\t}\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled()\n display.shift = e.shiftKey\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false\n setTimeout(function () { return display.scroller.draggable = true; }, 100)\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var start = posFromMouse(cm, e)\n window.focus()\n\n switch (e_button(e)) {\n case 1:\n // #3261: make sure, that we're not starting a second selection\n if (cm.state.selectingText)\n { cm.state.selectingText(e) }\n else if (start)\n { leftButtonDown(cm, e, start) }\n else if (e_target(e) == display.scroller)\n { e_preventDefault(e) }\n break\n case 2:\n if (webkit) { cm.state.lastMiddleDown = +new Date }\n if (start) { extendSelection(cm.doc, start) }\n setTimeout(function () { return display.input.focus(); }, 20)\n e_preventDefault(e)\n break\n case 3:\n if (captureRightClick) { onContextMenu(cm, e) }\n else { delayBlurEvent(cm) }\n break\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled()\n display.shift = e.shiftKey\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false\n setTimeout(function () { return display.scroller.draggable = true; }, 100)\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var start = posFromMouse(cm, e)\n window.focus()\n\n switch (e_button(e)) {\n case 1:\n // #3261: make sure, that we're not starting a second selection\n if (cm.state.selectingText)\n { cm.state.selectingText(e) }\n else if (start)\n { leftButtonDown(cm, e, start) }\n else if (e_target(e) == display.scroller)\n { e_preventDefault(e) }\n break\n case 2:\n if (webkit) { cm.state.lastMiddleDown = +new Date }\n if (start) { extendSelection(cm.doc, start) }\n setTimeout(function () { return display.input.focus(); }, 20)\n e_preventDefault(e)\n break\n case 3:\n if (captureRightClick) { onContextMenu(cm, e) }\n else { delayBlurEvent(cm) }\n break\n }\n}", "mouseDown(e) {\n this._modifiers(e);\n const _leftClick = Event.isLeftClick(e);\n this.status.button1 = _leftClick;\n this.status.button2 = !_leftClick;\n return this.handleMouseDown(e);\n }", "mouseDown(e) {\n this._modifiers(e);\n const _leftClick = Event.isLeftClick(e);\n this.status.button1 = _leftClick;\n this.status.button2 = !_leftClick;\n return this.handleMouseDown(e);\n }", "function OnMouseDown() {\n isMouseDown = true;\n\t\n}", "function onMouseDown(e) {\r\n var cm = this, display = cm.display;\r\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\r\n display.input.ensurePolled();\r\n display.shift = e.shiftKey;\r\n\r\n if (eventInWidget(display, e)) {\r\n if (!webkit) {\r\n // Briefly turn off draggability, to allow widgets to do\r\n // normal dragging things.\r\n display.scroller.draggable = false;\r\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\r\n }\r\n return\r\n }\r\n if (clickInGutter(cm, e)) { return }\r\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\r\n window.focus();\r\n\r\n // #3261: make sure, that we're not starting a second selection\r\n if (button == 1 && cm.state.selectingText)\r\n { cm.state.selectingText(e); }\r\n\r\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\r\n\r\n if (button == 1) {\r\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\r\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\r\n } else if (button == 2) {\r\n if (pos) { extendSelection(cm.doc, pos); }\r\n setTimeout(function () { return display.input.focus(); }, 20);\r\n } else if (button == 3) {\r\n if (captureRightClick) { onContextMenu(cm, e); }\r\n else { delayBlurEvent(cm); }\r\n }\r\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n if (clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), button = e_button(e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n\t var cm = this, display = cm.display;\n\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;\n\t display.shift = e.shiftKey;\n\t\n\t if (eventInWidget(display, e)) {\n\t if (!webkit) {\n\t // Briefly turn off draggability, to allow widgets to do\n\t // normal dragging things.\n\t display.scroller.draggable = false;\n\t setTimeout(function(){display.scroller.draggable = true;}, 100);\n\t }\n\t return;\n\t }\n\t if (clickInGutter(cm, e)) return;\n\t var start = posFromMouse(cm, e);\n\t window.focus();\n\t\n\t switch (e_button(e)) {\n\t case 1:\n\t // #3261: make sure, that we're not starting a second selection\n\t if (cm.state.selectingText)\n\t cm.state.selectingText(e);\n\t else if (start)\n\t leftButtonDown(cm, e, start);\n\t else if (e_target(e) == display.scroller)\n\t e_preventDefault(e);\n\t break;\n\t case 2:\n\t if (webkit) cm.state.lastMiddleDown = +new Date;\n\t if (start) extendSelection(cm.doc, start);\n\t setTimeout(function() {display.input.focus();}, 20);\n\t e_preventDefault(e);\n\t break;\n\t case 3:\n\t if (captureRightClick) onContextMenu(cm, e);\n\t else delayBlurEvent(cm);\n\t break;\n\t }\n\t }", "function mouseDown(e)\n{\n\tmouseClickDown = true;\n\tmouseX = e.clientX;\n\tmouseY = e.clientY;\n}", "function onMouseDown(e) {\n\t\t var cm = this, display = cm.display;\n\t\t if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) return;\n\t\t display.shift = e.shiftKey;\n\t\t\n\t\t if (eventInWidget(display, e)) {\n\t\t if (!webkit) {\n\t\t // Briefly turn off draggability, to allow widgets to do\n\t\t // normal dragging things.\n\t\t display.scroller.draggable = false;\n\t\t setTimeout(function(){display.scroller.draggable = true;}, 100);\n\t\t }\n\t\t return;\n\t\t }\n\t\t if (clickInGutter(cm, e)) return;\n\t\t var start = posFromMouse(cm, e);\n\t\t window.focus();\n\t\t\n\t\t switch (e_button(e)) {\n\t\t case 1:\n\t\t // #3261: make sure, that we're not starting a second selection\n\t\t if (cm.state.selectingText)\n\t\t cm.state.selectingText(e);\n\t\t else if (start)\n\t\t leftButtonDown(cm, e, start);\n\t\t else if (e_target(e) == display.scroller)\n\t\t e_preventDefault(e);\n\t\t break;\n\t\t case 2:\n\t\t if (webkit) cm.state.lastMiddleDown = +new Date;\n\t\t if (start) extendSelection(cm.doc, start);\n\t\t setTimeout(function() {display.input.focus();}, 20);\n\t\t e_preventDefault(e);\n\t\t break;\n\t\t case 3:\n\t\t if (captureRightClick) onContextMenu(cm, e);\n\t\t else delayBlurEvent(cm);\n\t\t break;\n\t\t }\n\t\t }", "function mousePressed() {\r\n mouseIsDown = true;\r\n}", "function documentMouseDown(event){}", "function TabControl_TabButton_MouseDownForwarded(tabButton)\n{\n\t//valid?\n\tif (tabButton)\n\t{\n\t\t//not selected?\n\t\tif (!tabButton.Selected || __DESIGNER_CONTROLLER)\n\t\t{\n\t\t\t//get data\n\t\t\tvar data = new Array(\"\" + (tabButton.Index + 1));\n\t\t\t//trigger the event\n\t\t\tvar result = __SIMULATOR.ProcessEvent(new Event_Event(tabButton.InterpreterObject, __NEMESIS_EVENT_SELECT, data));\n\t\t\t//not blocking it?\n\t\t\tif (!result.Block)\n\t\t\t{\n\t\t\t\t//not an action?\n\t\t\t\tif (!result.AdvanceToStateId)\n\t\t\t\t{\n\t\t\t\t\t//notify that we have changed data\n\t\t\t\t\t__SIMULATOR.NotifyLogEvent({ Type: __LOG_USER_DATA, Name: tabButton.InterpreterObject.GetDesignerName(), Data: data });\n\t\t\t\t}\n\t\t\t\t//select it\n\t\t\t\ttabButton.InterpreterObject.Properties[__NEMESIS_PROPERTY_SELECTION] = tabButton.Exception;\n\t\t\t\ttabButton.InterpreterObject.SelectionFromClick = tabButton.Index;\n\t\t\t\t//and update its state\n\t\t\t\ttabButton.InterpreterObject.HTML.Select();\n\t\t\t}\n\t\t}\n\t}\n}", "function handleMouseDownEvent(event) {\n\t\tdownTime = +new Date();\n\t\tmouseDown = true;\n\t\tif (selectedPoint != null) {\n\t\t\tselectedPoint.highlight = false;\n\t\t\tselectedPoint.moved = false;\n\t\t\tselectedPoint = null;\n\t\t}\n\t\tselectedHandle = searchHandleAt(relativeX, relativeY);\n\t\tvar evt = event ? event:window.event;\n\t\tif (selectedHandle != null && evt.ctrlKey) {\n\t\t\tselectedPoint = selectedHandle.parent;\n\t\t\tif (selectedPoint == scope.bezierSpline.firstPoint) {\n\t\t\t\tselectedHandle = selectedPoint.rightHandle;\n\t\t\t}\n\t\t\tselectedPoint.highlight = true;\n\t\t} else {\n\t\t\tvar point = searchPointAt(relativeX, relativeY);\n\t\t\tif (point != null) {\n\t\t\t\tselectedPoint = point;\n\t\t\t\tselectedPoint.highlight = true;\n\t\t\t}\n\t\t}\n\t}", "mouseDown(event) {\n var button = event.which || event.button;\n this.activeCommands[button] = true;\n }", "mouseDown(event) {\n var button = event.which || event.button;\n this.activeCommands[button] = true;\n }", "function handleMouseDown(event) {\n mouseDown = true;\n lastMouseX = event.clientX;\n lastMouseY = event.clientY;\n}", "mouseDownUp(start, end) {}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n var button = e_button(e);\n if (button == 3 && captureRightClick ? contextMenuInGutter(cm, e) : clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "function onMouseDown(e) {\n var cm = this, display = cm.display;\n if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }\n display.input.ensurePolled();\n display.shift = e.shiftKey;\n\n if (eventInWidget(display, e)) {\n if (!webkit) {\n // Briefly turn off draggability, to allow widgets to do\n // normal dragging things.\n display.scroller.draggable = false;\n setTimeout(function () { return display.scroller.draggable = true; }, 100);\n }\n return\n }\n var button = e_button(e);\n if (button == 3 && captureRightClick ? contextMenuInGutter(cm, e) : clickInGutter(cm, e)) { return }\n var pos = posFromMouse(cm, e), repeat = pos ? clickRepeat(pos, button) : \"single\";\n window.focus();\n\n // #3261: make sure, that we're not starting a second selection\n if (button == 1 && cm.state.selectingText)\n { cm.state.selectingText(e); }\n\n if (pos && handleMappedButton(cm, button, pos, repeat, e)) { return }\n\n if (button == 1) {\n if (pos) { leftButtonDown(cm, pos, repeat, e); }\n else if (e_target(e) == display.scroller) { e_preventDefault(e); }\n } else if (button == 2) {\n if (pos) { extendSelection(cm.doc, pos); }\n setTimeout(function () { return display.input.focus(); }, 20);\n } else if (button == 3) {\n if (captureRightClick) { onContextMenu(cm, e); }\n else { delayBlurEvent(cm); }\n }\n}", "_downHandler(event) {\n const that = this,\n target = that.enableShadowDOM ? event.originalEvent.composedPath()[0] : event.originalEvent.target;\n\n if (that.disabled || that.readonly ||\n that.checkMode === 'input' && target !== that.$.checkBoxInput ||\n that.checkMode === 'label' && target !== that.$.checkBoxLabel) {\n return;\n }\n\n that.$.setAttributeValue('active', true);\n\n if (that.hasRippleAnimation) {\n const rect = that.$.checkBoxInput.getBoundingClientRect(),\n windowScrollX = window.scrollX || window.pageXOffset,\n windowScrollY = window.scrollY || window.pageYOffset;\n\n JQX.Utilities.Animation.Ripple.animate(that.$.checkBoxInput, rect.left + rect.width / 2 + windowScrollX, rect.top + rect.height / 2 + windowScrollY);\n }\n\n that._pressed = true;\n\n if (that.clickMode === 'press' || that.clickMode === 'pressAndRelease') {\n that._changeCheckState('pointer');\n that.$.fireEvent('click');\n that.focus();\n that._updateHidenInputNameAndValue();\n }\n }" ]
[ "0.8798445", "0.87899625", "0.8754566", "0.8754566", "0.8754566", "0.8754566", "0.8754189", "0.8754189", "0.8754189", "0.8190667", "0.66085976", "0.6604286", "0.6601424", "0.6601424", "0.65757895", "0.65757895", "0.65397", "0.6478562", "0.644599", "0.64423376", "0.6441396", "0.6420409", "0.63966376", "0.63902175", "0.6389698", "0.63674575", "0.636331", "0.6358099", "0.63344973", "0.6319403", "0.62699634", "0.62683636", "0.6266079", "0.6263142", "0.6251953", "0.62406754", "0.62145036", "0.6210756", "0.6200747", "0.6188067", "0.61736834", "0.61662155", "0.6158835", "0.6158835", "0.6158835", "0.6158835", "0.6158835", "0.6158835", "0.613556", "0.6126322", "0.61256295", "0.6096063", "0.60918283", "0.6088942", "0.6081804", "0.60712135", "0.6061404", "0.6053572", "0.6042266", "0.6039399", "0.6008415", "0.6008042", "0.6007134", "0.60019124", "0.5997732", "0.5997732", "0.5996665", "0.5996665", "0.59885854", "0.5988251", "0.5988188", "0.5988188", "0.5988188", "0.5988188", "0.5988188", "0.5988188", "0.5988188", "0.5988188", "0.5988188", "0.59835833", "0.5982896", "0.5981357", "0.5977824", "0.5976229", "0.59731513", "0.5971425", "0.5969097", "0.5969097", "0.5966999", "0.5959609", "0.59542483", "0.59542483", "0.59540886" ]
0.875648
9
PULSE Viscous fluid with a pulse for part and decay for the rest. Applies a fixed force over an interval (a damped acceleration), and Lets the exponential bleed away the velocity over a longer interval Michael Herf,
function pulse_(x) { var val, start, expx; // test x = x * options.pulseScale; if (x < 1) { // acceleartion val = x - (1 - Math.exp(-x)); } else { // tail // the previous animation ended here: start = Math.exp(-1); // simple viscous drag x -= 1; expx = 1 - Math.exp(-x); val = start + (expx * (1 - start)); } return val * options.pulseNormalize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Pulse_(x)\n{\n var val;\n \n // test\n x = x * PulseScale;\n if (x < 1) {val = x - (1 - Math.exp(-x));} \n else {\n // the previous animation ended here:\n var start = Math.exp(-1);\n\n // simple viscous drag\n x -= 1;\n var expx = 1 - Math.exp(-x);\n val = start + (expx * (1.0 - start));\n }\n\n return val * PulseNormalize;\n}", "function pulse_(x) {\r\n var val, start, expx;\r\n // test\r\n x = x * options.pulseScale;\r\n if (x < 1) { // acceleartion\r\n val = x - (1 - Math.exp(-x));\r\n } else { // tail\r\n // the previous animation ended here:\r\n start = Math.exp(-1);\r\n // simple viscous drag\r\n x -= 1;\r\n expx = 1 - Math.exp(-x);\r\n val = start + (expx * (1 - start));\r\n }\r\n return val * options.pulseNormalize;\r\n}", "function pulse_(x) {\r\n var val, start, expx;\r\n // test\r\n x = x * options.pulseScale;\r\n if (x < 1) { // acceleartion\r\n val = x - (1 - Math.exp(-x));\r\n } else { // tail\r\n // the previous animation ended here:\r\n start = Math.exp(-1);\r\n // simple viscous drag\r\n x -= 1;\r\n expx = 1 - Math.exp(-x);\r\n val = start + (expx * (1 - start));\r\n }\r\n return val * options.pulseNormalize;\r\n}", "function pulse_(x) {\r\n var val, start, expx;\r\n // test\r\n x = x * options.pulseScale;\r\n if (x < 1) { // acceleartion\r\n val = x - (1 - Math.exp(-x));\r\n } else { // tail\r\n // the previous animation ended here:\r\n start = Math.exp(-1);\r\n // simple viscous drag\r\n x -= 1;\r\n expx = 1 - Math.exp(-x);\r\n val = start + (expx * (1 - start));\r\n }\r\n return val * options.pulseNormalize;\r\n}", "function pulse_(x) {\r\n var val, start, expx;\r\n // test\r\n x = x * options.pulseScale;\r\n if (x < 1) { // acceleartion\r\n val = x - (1 - Math.exp(-x));\r\n } else { // tail\r\n // the previous animation ended here:\r\n start = Math.exp(-1);\r\n // simple viscous drag\r\n x -= 1;\r\n expx = 1 - Math.exp(-x);\r\n val = start + (expx * (1 - start));\r\n }\r\n return val * options.pulseNormalize;\r\n}", "function pulse_(x) {\n var val, start, expx;\n // test\n x = x * options.pulseScale;\n if (x < 1) { // acceleartion\n val = x - (1 - Math.exp(-x));\n } else { // tail\n // the previous animation ended here:\n start = Math.exp(-1);\n // simple viscous drag\n x -= 1;\n expx = 1 - Math.exp(-x);\n val = start + (expx * (1 - start));\n }\n return val * options.pulseNormalize;\n }", "function pulse_(x) {\n var val, start, expx;\n // test\n x = x * options.pulseScale;\n if (x < 1) { // acceleartion\n val = x - (1 - Math.exp(-x));\n } else { // tail\n // the previous animation ended here:\n start = Math.exp(-1);\n // simple viscous drag\n x -= 1;\n expx = 1 - Math.exp(-x);\n val = start + (expx * (1 - start));\n }\n return val * options.pulseNormalize;\n }", "function pulse_(x) {\r\n\t\t\t\tvar val, start, expx;\r\n\t\t\t\t// test\r\n\t\t\t\tx = x * options.pulseScale;\r\n\t\t\t\tif (x < 1) { // acceleartion\r\n\t\t\t\t\tval = x - (1 - Math.exp(-x));\r\n\t\t\t\t} else { // tail\r\n\t\t\t\t\t// the previous animation ended here:\r\n\t\t\t\t\tstart = Math.exp(-1);\r\n\t\t\t\t\t// simple viscous drag\r\n\t\t\t\t\tx -= 1;\r\n\t\t\t\t\texpx = 1 - Math.exp(-x);\r\n\t\t\t\t\tval = start + (expx * (1 - start));\r\n\t\t\t\t}\r\n\t\t\t\treturn val * options.pulseNormalize;\r\n\t\t\t}", "function pulse_(x) {\n var val, start, expx;\n // test\n x = x * options.pulseScale;\n if (x < 1) { // acceleartion\n val = x - (1 - Math.exp(-x));\n } else { // tail\n // the previous animation ended here:\n start = Math.exp(-1);\n // simple viscous drag\n x -= 1;\n expx = 1 - Math.exp(-x);\n val = start + (expx * (1 - start));\n }\n return val * options.pulseNormalize;\n }", "function pulse_(x) {\n var val, start, expx;\n // test\n x = x * options.pulseScale;\n if (x < 1) { // acceleartion\n val = x - (1 - Math.exp(-x));\n } else { // tail\n // the previous animation ended here:\n start = Math.exp(-1);\n // simple viscous drag\n x -= 1;\n expx = 1 - Math.exp(-x);\n val = start + (expx * (1 - start));\n }\n return val * options.pulseNormalize;\n }", "function pulse_(x) {\n var val, start, expx;\n // test\n x = x * options.pulseScale;\n if (x < 1) {\n // acceleartion\n val = x - (1 - Math.exp(-x));\n } else {\n // tail\n // the previous animation ended here:\n start = Math.exp(-1);\n // simple viscous drag\n x -= 1;\n expx = 1 - Math.exp(-x);\n val = start + expx * (1 - start);\n }\n return val * options.pulseNormalize;\n }", "_fastFire(){\n this._servo.max();\n setTimeout(()=>\n this._servo.sweep({interval: servoInterval})\n , servoInterval/2)\n }", "set Impulse(value) {}", "function Pulse(x)\n{\n if (x >= 1) return 1;\n if (x <= 0) return 0;\n\n if (PulseNormalize == 1) {\n ComputePulseScale();\n }\n\n return Pulse_(x);\n}", "function Pulse (x,c,w) {\n\tvar h=Math.abs(c-x)/w;\n\treturn h>1?0:1-(3-2*h)*h*h;\n}", "get Impulse() {}", "pulse(){\n this.size += 2;\n }", "gravity(force) {\n this.ay += force\n }", "@autobind\n triggerRing(event) {\n var rotationAdd = (Math.PI * 0.9) + ((this.mesh.rotation.y) % (Math.PI * 2)) - (Math.PI * 2)*0.0625;\n TweenMax.killTweensOf(this.tweenContainer);\n TweenMax.killTweensOf(this.tweenContainer2);\n\n this.currentColor = \"\";\n\n var percentages = this.percentages;\n\n var total = 0;\n\n percentages.sort((a, b) => b.percent - a.percent);\n\n var itterator = 0;\n var baseVariance = 0.03;\n var variance = 0.03;\n var tempLength = 0;\n var scale = 1;\n this.state = SELECTORS.RING;\n\n var per25 = this.particleCount*0.25;\n var per50 = this.particleCount*0.5;\n var per75 = this.particleCount*0.75;\n\n this.t = 0;\n this.t2 = 0;\n this.t3 = 0;\n this.t4 = 0;\n\n for (var i=0; i<percentages.length; i++) {\n if (i < this.incNums[0]) {\n this.t += percentages[i].percent;\n } else if (i < this.incNums[0] + this.incNums[1] ) {\n this.t2 += percentages[i].percent;\n } else if (i < this.incNums[0] + this.incNums[1] + this.incNums[2] ) {\n this.t3 += percentages[i].percent;\n } else if (i < this.incNums[0] + this.incNums[1] + this.incNums[2] + this.incNums[3] ){\n this.t4 += percentages[i].percent;\n }\n }\n\n var ts = [this.t, this.t2, this.t3, this.t4];\n\n for (var i=0; i<percentages.length; i++) {\n if (i < this.incNums[0]) {\n percentages[i].groupPercent = percentages[i].percent / this.t;\n } else if (i < this.incNums[0] + this.incNums[1] ) {\n percentages[i].groupPercent = percentages[i].percent / this.t2;\n } else if (i < this.incNums[0] + this.incNums[1] + this.incNums[2] ) {\n if(this.t3 === 0) {\n percentages[i].groupPercent = 0;\n } else {\n percentages[i].groupPercent = percentages[i].percent / this.t3;\n }\n\n } else {\n if(this.t4 === 0) {\n percentages[i].groupPercent = 0;\n }else {\n percentages[i].groupPercent = percentages[i].percent / this.t4;\n }\n }\n }\n\n this.percentages = percentages;\n\n for (var i=0; i<this.particleCount2; i++) {\n this.scalesArray2[i] = 0;\n this.scaleTargetArray2[i] = 0;\n this.scaleOriginArray2[i] = 0;\n }\n\n var preMult = [];\n for (var a=0; a<this.incOrder.length; a++) {\n switch (a) {\n case 0:\n preMult[a] = 0;\n break;\n case 1:\n preMult[a] = ((Math.PI*2) * ts[0]);\n break;\n case 2:\n preMult[a] = ((Math.PI*2) * ts[0]) + ((Math.PI*2) * ts[1]);\n break;\n case 3:\n preMult[a] = ((Math.PI*2) * ts[0]) + ((Math.PI*2) * ts[1]) + ((Math.PI*2) * ts[2]);\n break;\n }\n }\n\n var gapSize = this.gapSize;\n var groupSteps = [];\n var groupTotals = [];\n var groupSets = [];\n\n groupSteps[0] = 0;//this.incNums[0];\n var groupZeros = [0,0,0,0];\n\n for(var i=0; i<4; i++){\n groupSteps[i+1] = groupSteps[i] + this.incNums[i];\n }\n if(this.incNums[3] === 0){\n groupSteps[3] = 0;\n }\n\n for (var i=0; i<4; i++) {\n groupTotals[groupSteps[i]] = this.percentages[groupSteps[i]].groupPercent;\n groupSets[i] = [];\n groupSets[i].push(groupTotals[groupSteps[i]]);\n\n for (var a=1; a<this.incNums[i]; a++) {\n groupTotals[groupSteps[i] + a] = groupTotals[ groupSteps[i] + a -1 ] + this.percentages[groupSteps[i] + a].groupPercent;\n groupSets[i].push(groupTotals[groupSteps[i] + a]);\n }\n for(var a=0, l=this.incNums[i]; a<l; a++){\n if(this.percentages[groupSteps[i] + a].percent === 0){\n groupZeros[i] += 1;\n this.incNums[i] -= 1;\n }\n }\n }\n\n this.targetDotIndex = this.incOrder[0] * (this.particleCount * 0.25) + Math.floor((percentages[0].groupPercent * (this.particleCount * 0.25)) * 0.5); //this index is the particle index in the array for the results zoom in\n var hideMult = 0;\n var space = 0;\n for (var i=0, i3=0, l=this.particleCount; i < l; i++, i3 += 3) {\n\n variance = baseVariance;\n if (Math.random() > 0.6 && i !== this.targetDotIndex) {\n variance = baseVariance + (Math.random() * 0.1);\n this.opacityArray[i] = 0.4;\n }\n\n hideMult = 0\n\n if (i/this.particleCount < 0.25) {\n space = 0;\n for(var a=0; a<groupSets[this.incOrder.indexOf(0)].length; a++){\n if((i)/per25 >= groupSets[this.incOrder.indexOf(0)][a]){\n space = gapSize * (a+1);\n space -= (groupZeros[this.incOrder.indexOf(0)] * gapSize);\n }\n }\n\n itterator = preMult[this.incOrder.indexOf(0)] + space + (i/(this.particleCount*0.25)) * ((Math.PI*2) * (ts[this.incOrder.indexOf(0)]) - (gapSize * this.incNums[this.incOrder.indexOf(0)]));\n hideMult = ts[this.incOrder.indexOf(0)];\n } else if (i/this.particleCount < 0.5) {\n space = 0;\n for(var a=0; a<groupSets[this.incOrder.indexOf(1)].length; a++){\n if((i - per25)/per25 >= groupSets[this.incOrder.indexOf(1)][a]){\n space = gapSize * (a+1);\n space -= (groupZeros[this.incOrder.indexOf(1)] * gapSize);\n }\n }\n\n itterator = preMult[this.incOrder.indexOf(1)] + space + (i-(this.particleCount*0.25))/(this.particleCount*0.25) * ((Math.PI*2) * (ts[this.incOrder.indexOf(1)]) - (gapSize * this.incNums[this.incOrder.indexOf(1)]));\n hideMult = ts[this.incOrder.indexOf(1)];\n } else if (i/this.particleCount < 0.75) {\n space = 0;\n for(var a=0; a<groupSets[this.incOrder.indexOf(2)].length; a++){\n if((i - per50)/per25 >= groupSets[this.incOrder.indexOf(2)][a]){\n space = gapSize * (a+1);\n space -= (groupZeros[this.incOrder.indexOf(2)] * gapSize);\n }\n }\n\n itterator = preMult[this.incOrder.indexOf(2)] + space + (i-(this.particleCount*0.5))/(this.particleCount*0.25) * ((Math.PI*2) * (ts[this.incOrder.indexOf(2)]) - (gapSize * this.incNums[this.incOrder.indexOf(2)]));\n hideMult = ts[this.incOrder.indexOf(2)];\n } else if (i/this.particleCount <= 1) {\n space = 0;\n for(var a=0; a<groupSets[this.incOrder.indexOf(3)].length; a++){\n if((i - per75)/per25 >= groupSets[this.incOrder.indexOf(3)][a]){\n space = gapSize * (a+1);\n space -= (groupZeros[this.incOrder.indexOf(3)] * gapSize);\n }\n }\n\n itterator = preMult[this.incOrder.indexOf(3)] + space + (i-(this.particleCount*0.75))/(this.particleCount*0.25) * ((Math.PI*2) * (ts[this.incOrder.indexOf(3)]) - gapSize * (this.incNums[this.incOrder.indexOf(3)] ));\n\n hideMult = ts[this.incOrder.indexOf(3)];\n }\n\n tempLength = Math.random()*variance - (variance*0.5);\n\n this.targetArray[i3 + 0] = Math.sin(itterator) * (scale + tempLength);\n this.targetArray[i3 + 1] = (Math.random()*(variance) - (variance*0.5));\n this.targetArray[i3 + 2] = Math.cos(itterator) * (scale + tempLength);\n\n this.scaleOriginArray[i] = this.scaleArray[i];\n this.scaleTargetArray[i] = Math.random() * 2.5 + 0.2;\n\n if (i === this.targetDotIndex) {\n this.scaleTargetArray[i] = 2.7;\n }\n if (Math.random() > 3 * hideMult && i !== this.targetDotIndex) {\n this.scaleTargetArray[i] = 0;\n }\n }\n\n var slices = 1/this.clumpPoints.length;\n var ct = 0;\n\n var addits = [\n 0,\n ((Math.PI * 2)*ts[0]),\n ((Math.PI * 2)*(ts[0] + ts[1])),\n ((Math.PI * 2)*(ts[0] + ts[1] + ts[2]))\n ];\n\n for (var i=0; i<this.clumpPoints.length; i++) {\n if (!this.clumpOriginPoints[i]) {\n this.clumpOriginPoints[i] = new THREE.Vector3(0,0,0);\n }\n if (!this.clumpTargetPoints[i]) {\n this.clumpTargetPoints[i] = new THREE.Vector3(0,0,0);\n }\n\n this.clumpOriginPoints[i].x = this.clumpPoints[i].x;\n this.clumpOriginPoints[i].y = this.clumpPoints[i].y;\n this.clumpOriginPoints[i].z = this.clumpPoints[i].z;\n\n this.limits[i] = 0.01 + Math.random() * 0.012;\n\n this.clumpTargetPoints[i].x = Math.sin( ((Math.PI * 2) * (i*slices)) * ts[ct] + addits[ct]);\n this.clumpTargetPoints[i].z = Math.cos( ((Math.PI * 2) * (i*slices)) * ts[ct] + addits[ct]);\n\n this.clumpTargetPoints[i].y = 0;\n\n ct++;\n if (ct > 3) {\n ct = 0;\n }\n }\n\n this.geometry.getAttribute( 'target' ).needsUpdate = true;\n this.tweenContainer.time = 0;\n this.tweenContainer.colorTime = 0;\n\n var speed = 1.5;\n\n $(document).trigger(\"ringForming\");\n\n TweenMax.killTweensOf(this.camera.position);\n TweenMax.killTweensOf(this.camera.rotation);\n TweenMax.killTweensOf(this.mesh.position);\n\n TweenMax.to(this.mesh.rotation, 2, {x: 0.075, ease:Power2.easeInOut, onComplete:this.unpauseRing});\n\n TweenMax.to(this.tweenContainer, speed, {time: 1, colorTime:1, onUpdate: this.updateTime, ease: Power2.easeIn});\n\n TweenMax.to(this.camera.position, speed, {y: 100, x: 0, z:720, onUpdate: this.cameraLookAtCenter});\n\n TweenMax.to(this.camera.rotation, speed, {z: (Math.PI*2) * 0.05})\n\n this.tweenContainer2.time = 0;\n this.clumpCounter = 0;\n TweenMax.to(this.tweenContainer2, speed, {time: 1, ease:Power2.easeInOut});\n\n TweenMax.to(this.mesh.position, speed, {z: 100, ease:Power2.easeInOut});\n setTimeout(this.triggerRingPart2, speed * 1000 + 3000);\n }", "get pulse() {\n if (!this.isMoving)\n return 0;\n if (this.isLeft ^ this.active)\n return -FLIPPER_PULSE;\n return FLIPPER_PULSE;\n }", "function pulseSig(idx){\n digitalWrite(LED1,1); // light up LED1 to indicate transmission\n //analogWrite(irLed_anodePin,0.9,{freq:38000, soft: true}); // when using a non-PWM-capable pin\n //analogWrite(irLed_anodePin,0.9,{freq:38000}); // start the 38kHz square wave ( on the IR LED's cathode* pin )\n digitalPulse(irLed_cathodePin, 1, signals[idx]); // send the pulses to IR LED ( on the IR LED's anode* pin )\n //digitalPulse(LED3,1,signals[idx]); // send the pulses to onboard LED\n digitalPulse(irLed_cathodePin, 1, 0); // wait until pulsing is finished on IR LED\n //digitalPulse(LED3,1,0); // wait until pulsing is finished on IR LED\n digitalRead(irLed_anodePin); // stop 38kHz square wave\n digitalWrite(LED1,0); // turn LED1 off\n}", "flap(flapForce) {\n player.velocity = flapForce;\n }", "decay(){\n let e = new Electron(this.x, this.y, this.z, this.v_x*0.5, this.v_y*0.5, this.v_z*0.5);\n let p = new Positron(this.x, this.y, this.z, this.v_x*0.5, this.v_y*0.5, this.v_z*0.5);\n ParticleTracks.activeParticles.push(e,p);\n this.v_x = 0;\n this.v_y = 0;\n }", "function pressureVolume(){\n\n let curve = [];\n let dV = 1; // Initial value for change in volume\n\n // Plot volume between 35 and 10E4\n for(let i = 35; i <= 40000; i+=dV){\n\n let x = i;\n let y = (g.R * g.slider)/(x - g.b) - g.a/x**2;\n curve.push([x,y]);\n\n if(i >= 100){\n dV = 5;\n } else if (i >= 1000){\n dV = 50;\n }\n }\n\n if(g.slider > 645){\n tempOver645(curve);\n } else {\n tempUnder645(curve);\n }\n\n \n\n // This covers up the part of the curve that exceeds the graph's bounds\n push();\n fill(250); noStroke();\n rect(0,0,g.lx-1,height);\n rect(0,0,width,g.ty-.5);\n rect(0,g.by+.5,width,height-g.by);\n rect(g.rx+1,0,width-g.rx,height);\n pop();\n}", "function pulseItem(item) {\n createjs.Tween.get(item, { loop: true })\n .to({ scaleX: 1.2, scaleY: 1.2 }, 900)\n .to({ scaleX: 1, scaleY: 1 }, 900);\n}", "function pulse(display) {\r\n (function repeat() {\r\n display.transition()\r\n .duration(100)\r\n .attr(\"stroke-width\", 0)\r\n .attr('stroke-opacity', 0)\r\n .transition()\r\n .duration(200)\r\n .attr(\"stroke-width\", 0)\r\n .attr('stroke-opacity', 0.5)\r\n .transition()\r\n .duration(600)\r\n .attr(\"stroke-width\", 25)\r\n .attr('stroke-opacity', 0)\r\n .ease(d3.easeSin)\r\n .on(\"end\", repeat)\r\n })()\r\n }", "decay() {\n let e = new Electron(this.x, this.y, this.z, this.v_x*0.6, this.v_y*0.6, this.v_z*0.6);\n let p = new Proton(this.x, this.y, this.z, this.v_x*0.7, this.v_y*0.7, this.v_z*0.6);\n ParticleTracks.activeParticles.push(e,p);\n this.v_x = 0;\n this.v_y = 0;\n }", "decay() {\n let e = new Electron(this.x, this.y, this.z, this.v_x*0.5, this.v_y*0.5, this.v_z*0.5);\n ParticleTracks.activeParticles.push(e);\n this.v_x = 0;\n this.v_y = 0;\n }", "function makePulse() {\n\t\tsignupButton.classList.add('animated');\n\t\tsignupButton.classList.add('pulse');\n\t\tsignupButton.classList.add('infinite');\n\t\tsubmitButton.classList.add('animated');\n\t\tsubmitButton.classList.add('pulse');\n\t\tsubmitButton.classList.add('infinite');\t\n\t}", "function Particle( s ) {\n return function(x, y, mass) {\n this.position = s.createVector(x, y);\n this.velocity = s.createVector(0, 5);\n this.acceleration = s.createVector(0, 0);\n this.mass = mass;\n this.radius = massToRadius(mass);\n\n this.display = function() {\n s.noStroke();\n s.ellipse(this.position.x, this.position.y, this.radius, this.radius);\n this.position.add(this.velocity.add(this.acceleration));\n this.constrainToUniverse();\n this.acceleration.set(0,0);\n this.update();\n return this;\n }\n\n this.update = function() {\n var mousePosition = s.createVector(s.mouseX, s.mouseY);\n return this;\n }\n\n this.resetPosition = function() {\n this.position = s.createVector(width/2, height/2);\n }\n\n this.applyForce = function(force) {\n force = force.copy();\n force.div(mass);\n this.acceleration.add(force);\n }\n\n this.applyUniverse = function(constraints) {\n this.constraints = constraints;\n }\n\n this.constrainToUniverse = function() {\n var leftEdge = this.constraints.leftEdge + this.radius/2;\n var rightEdge = this.constraints.rightEdge - this.radius/2;\n var bottomEdge = this.constraints.bottomEdge - this.radius/2;\n var topEdge = this.constraints.topEdge + this.radius/2;\n\n if (this.position.x > rightEdge) { \n reverse(this.velocity, \"x\");\n this.position.x = rightEdge;\n }\n\n if (this.position.x < leftEdge) { \n reverse(this.velocity, \"x\");\n this.position.x = leftEdge;\n }\n\n if (this.position.y > bottomEdge) { \n reverse(this.velocity, \"y\");\n this.position.y = bottomEdge; \n }\n\n if (this.position.y < topEdge) { \n reverse(this.velocity, \"y\");\n this.position.y = topEdge; \n }\n }\n\n function massToRadius(mass) {\n // Volume of a circle: V = pi*r^3\n // let V = mass so we have a constant density \n // derives radius based on volume\n // Multiply by 50 so it looks reasonable in a browser\n return Math.cbrt(1/(((4/3)*Math.PI)/mass))*50;\n }\n\n function reverse(vector, axis) {\n vector[axis] *= -1;\n }\n };\n}", "function SfxrSynth() {\n // All variables are kept alive through function closures\n\n //--------------------------------------------------------------------------\n //\n // Sound Parameters\n //\n //--------------------------------------------------------------------------\n\n this._params = new SfxrParams(); // Params instance\n\n //--------------------------------------------------------------------------\n //\n // Synth Variables\n //\n //--------------------------------------------------------------------------\n\n var _envelopeLength0, // Length of the attack stage\n _envelopeLength1, // Length of the sustain stage\n _envelopeLength2, // Length of the decay stage\n\n _period, // Period of the wave\n _maxPeriod, // Maximum period before sound stops (from minFrequency)\n\n _slide, // Note slide\n _deltaSlide, // Change in slide\n\n _changeAmount, // Amount to change the note by\n _changeTime, // Counter for the note change\n _changeLimit, // Once the time reaches this limit, the note changes\n\n _squareDuty, // Offset of center switching point in the square wave\n _dutySweep; // Amount to change the duty by\n\n //--------------------------------------------------------------------------\n //\n // Synth Methods\n //\n //--------------------------------------------------------------------------\n\n /**\n * Resets the runing variables from the params\n * Used once at the start (total reset) and for the repeat effect (partial reset)\n */\n this.reset = function() {\n // Shorter reference\n var p = this._params;\n\n _period = 100 / (p['f'] * p['f'] + .001);\n _maxPeriod = 100 / (p['g'] * p['g'] + .001);\n\n _slide = 1 - p['h'] * p['h'] * p['h'] * .01;\n _deltaSlide = -p['i'] * p['i'] * p['i'] * .000001;\n\n if (!p['a']) {\n _squareDuty = .5 - p['n'] / 2;\n _dutySweep = -p['o'] * .00005;\n }\n\n _changeAmount = 1 + p['l'] * p['l'] * (p['l'] > 0 ? -.9 : 10);\n _changeTime = 0;\n _changeLimit = p['m'] == 1 ? 0 : (1 - p['m']) * (1 - p['m']) * 20000 + 32;\n }\n\n // I split the reset() function into two functions for better readability\n this.totalReset = function() {\n this.reset();\n\n // Shorter reference\n var p = this._params;\n\n // Calculating the length is all that remained here, everything else moved somewhere\n _envelopeLength0 = p['b'] * p['b'] * 100000;\n _envelopeLength1 = p['c'] * p['c'] * 100000;\n _envelopeLength2 = p['e'] * p['e'] * 100000 + 12;\n // Full length of the volume envelop (and therefore sound)\n // Make sure the length can be divided by 3 so we will not need the padding \"==\" after base64 encode\n return ((_envelopeLength0 + _envelopeLength1 + _envelopeLength2) / 3 | 0) * 3;\n }\n\n /**\n * Writes the wave to the supplied buffer ByteArray\n * @param buffer A ByteArray to write the wave to\n * @return If the wave is finished\n */\n this.synthWave = function(buffer, length) {\n // Shorter reference\n var p = this._params;\n\n // If the filters are active\n var _filters = p['s'] != 1 || p['v'],\n // Cutoff multiplier which adjusts the amount the wave position can move\n _hpFilterCutoff = p['v'] * p['v'] * .1,\n // Speed of the high-pass cutoff multiplier\n _hpFilterDeltaCutoff = 1 + p['w'] * .0003,\n // Cutoff multiplier which adjusts the amount the wave position can move\n _lpFilterCutoff = p['s'] * p['s'] * p['s'] * .1,\n // Speed of the low-pass cutoff multiplier\n _lpFilterDeltaCutoff = 1 + p['t'] * .0001,\n // If the low pass filter is active\n _lpFilterOn = p['s'] != 1,\n // masterVolume * masterVolume (for quick calculations)\n _masterVolume = p['x'] * p['x'],\n // Minimum frequency before stopping\n _minFreqency = p['g'],\n // If the phaser is active\n _phaser = p['q'] || p['r'],\n // Change in phase offset\n _phaserDeltaOffset = p['r'] * p['r'] * p['r'] * .2,\n // Phase offset for phaser effect\n _phaserOffset = p['q'] * p['q'] * (p['q'] < 0 ? -1020 : 1020),\n // Once the time reaches this limit, some of the iables are reset\n _repeatLimit = p['p'] ? ((1 - p['p']) * (1 - p['p']) * 20000 | 0) + 32 : 0,\n // The punch factor (louder at begining of sustain)\n _sustainPunch = p['d'],\n // Amount to change the period of the wave by at the peak of the vibrato wave\n _vibratoAmplitude = p['j'] / 2,\n // Speed at which the vibrato phase moves\n _vibratoSpeed = p['k'] * p['k'] * .01,\n // The type of wave to generate\n _waveType = p['a'];\n\n var _envelopeLength = _envelopeLength0, // Length of the current envelope stage\n _envelopeOverLength0 = 1 / _envelopeLength0, // (for quick calculations)\n _envelopeOverLength1 = 1 / _envelopeLength1, // (for quick calculations)\n _envelopeOverLength2 = 1 / _envelopeLength2; // (for quick calculations)\n\n // Damping muliplier which restricts how fast the wave position can move\n var _lpFilterDamping = 5 / (1 + p['u'] * p['u'] * 20) * (.01 + _lpFilterCutoff);\n if (_lpFilterDamping > .8) {\n _lpFilterDamping = .8;\n }\n _lpFilterDamping = 1 - _lpFilterDamping;\n\n var _finished = false, // If the sound has finished\n _envelopeStage = 0, // Current stage of the envelope (attack, sustain, decay, end)\n _envelopeTime = 0, // Current time through current enelope stage\n _envelopeVolume = 0, // Current volume of the envelope\n _hpFilterPos = 0, // Adjusted wave position after high-pass filter\n _lpFilterDeltaPos = 0, // Change in low-pass wave position, as allowed by the cutoff and damping\n _lpFilterOldPos, // Previous low-pass wave position\n _lpFilterPos = 0, // Adjusted wave position after low-pass filter\n _periodTemp, // Period modified by vibrato\n _phase = 0, // Phase through the wave\n _phaserInt, // Integer phaser offset, for bit maths\n _phaserPos = 0, // Position through the phaser buffer\n _pos, // Phase expresed as a Number from 0-1, used for fast sin approx\n _repeatTime = 0, // Counter for the repeats\n _sample, // Sub-sample calculated 8 times per actual sample, averaged out to get the super sample\n _superSample, // Actual sample writen to the wave\n _vibratoPhase = 0; // Phase through the vibrato sine wave\n\n // Buffer of wave values used to create the out of phase second wave\n var _phaserBuffer = new Array(1024),\n // Buffer of random values used to generate noise\n _noiseBuffer = new Array(32);\n for (var i = _phaserBuffer.length; i--; ) {\n _phaserBuffer[i] = 0;\n }\n for (var i = _noiseBuffer.length; i--; ) {\n _noiseBuffer[i] = Math.random() * 2 - 1;\n }\n\n for (var i = 0; i < length; i++) {\n if (_finished) {\n return i;\n }\n\n // Repeats every _repeatLimit times, partially resetting the sound parameters\n if (_repeatLimit) {\n if (++_repeatTime >= _repeatLimit) {\n _repeatTime = 0;\n this.reset();\n }\n }\n\n // If _changeLimit is reached, shifts the pitch\n if (_changeLimit) {\n if (++_changeTime >= _changeLimit) {\n _changeLimit = 0;\n _period *= _changeAmount;\n }\n }\n\n // Acccelerate and apply slide\n _slide += _deltaSlide;\n _period *= _slide;\n\n // Checks for frequency getting too low, and stops the sound if a minFrequency was set\n if (_period > _maxPeriod) {\n _period = _maxPeriod;\n if (_minFreqency > 0) {\n _finished = true;\n }\n }\n\n _periodTemp = _period;\n\n // Applies the vibrato effect\n if (_vibratoAmplitude > 0) {\n _vibratoPhase += _vibratoSpeed;\n _periodTemp *= 1 + Math.sin(_vibratoPhase) * _vibratoAmplitude;\n }\n\n _periodTemp |= 0;\n if (_periodTemp < 8) {\n _periodTemp = 8;\n }\n\n // Sweeps the square duty\n if (!_waveType) {\n _squareDuty += _dutySweep;\n if (_squareDuty < 0) {\n _squareDuty = 0;\n } else if (_squareDuty > .5) {\n _squareDuty = .5;\n }\n }\n\n // Moves through the different stages of the volume envelope\n if (++_envelopeTime > _envelopeLength) {\n _envelopeTime = 0;\n\n switch (++_envelopeStage) {\n case 1:\n _envelopeLength = _envelopeLength1;\n break;\n case 2:\n _envelopeLength = _envelopeLength2;\n }\n }\n\n // Sets the volume based on the position in the envelope\n switch (_envelopeStage) {\n case 0:\n _envelopeVolume = _envelopeTime * _envelopeOverLength0;\n break;\n case 1:\n _envelopeVolume = 1 + (1 - _envelopeTime * _envelopeOverLength1) * 2 * _sustainPunch;\n break;\n case 2:\n _envelopeVolume = 1 - _envelopeTime * _envelopeOverLength2;\n break;\n case 3:\n _envelopeVolume = 0;\n _finished = true;\n }\n\n // Moves the phaser offset\n if (_phaser) {\n _phaserOffset += _phaserDeltaOffset;\n _phaserInt = _phaserOffset | 0;\n if (_phaserInt < 0) {\n _phaserInt = -_phaserInt;\n } else if (_phaserInt > 1023) {\n _phaserInt = 1023;\n }\n }\n\n // Moves the high-pass filter cutoff\n if (_filters && _hpFilterDeltaCutoff) {\n _hpFilterCutoff *= _hpFilterDeltaCutoff;\n if (_hpFilterCutoff < .00001) {\n _hpFilterCutoff = .00001;\n } else if (_hpFilterCutoff > .1) {\n _hpFilterCutoff = .1;\n }\n }\n\n _superSample = 0;\n for (var j = 8; j--; ) {\n // Cycles through the period\n _phase++;\n if (_phase >= _periodTemp) {\n _phase %= _periodTemp;\n\n // Generates new random noise for this period\n if (_waveType == 3) {\n for (var n = _noiseBuffer.length; n--; ) {\n _noiseBuffer[n] = Math.random() * 2 - 1;\n }\n }\n }\n\n // Gets the sample from the oscillator\n switch (_waveType) {\n case 0: // Square wave\n _sample = ((_phase / _periodTemp) < _squareDuty) ? .5 : -.5;\n break;\n case 1: // Saw wave\n _sample = 1 - _phase / _periodTemp * 2;\n break;\n case 2: // Sine wave (fast and accurate approx)\n _pos = _phase / _periodTemp;\n _pos = (_pos > .5 ? _pos - 1 : _pos) * 6.28318531;\n _sample = 1.27323954 * _pos + .405284735 * _pos * _pos * (_pos < 0 ? 1 : -1);\n _sample = .225 * ((_sample < 0 ? -1 : 1) * _sample * _sample - _sample) + _sample;\n break;\n case 3: // Noise\n _sample = _noiseBuffer[Math.abs(_phase * 32 / _periodTemp | 0)];\n }\n\n // Applies the low and high pass filters\n if (_filters) {\n _lpFilterOldPos = _lpFilterPos;\n _lpFilterCutoff *= _lpFilterDeltaCutoff;\n if (_lpFilterCutoff < 0) {\n _lpFilterCutoff = 0;\n } else if (_lpFilterCutoff > .1) {\n _lpFilterCutoff = .1;\n }\n\n if (_lpFilterOn) {\n _lpFilterDeltaPos += (_sample - _lpFilterPos) * _lpFilterCutoff;\n _lpFilterDeltaPos *= _lpFilterDamping;\n } else {\n _lpFilterPos = _sample;\n _lpFilterDeltaPos = 0;\n }\n\n _lpFilterPos += _lpFilterDeltaPos;\n\n _hpFilterPos += _lpFilterPos - _lpFilterOldPos;\n _hpFilterPos *= 1 - _hpFilterCutoff;\n _sample = _hpFilterPos;\n }\n\n // Applies the phaser effect\n if (_phaser) {\n _phaserBuffer[_phaserPos % 1024] = _sample;\n _sample += _phaserBuffer[(_phaserPos - _phaserInt + 1024) % 1024];\n _phaserPos++;\n }\n\n _superSample += _sample;\n }\n\n // Averages out the super samples and applies volumes\n _superSample *= .125 * _envelopeVolume * _masterVolume;\n\n // Clipping if too loud\n buffer[i] = _superSample >= 1 ? 32767 : _superSample <= -1 ? -32768 : _superSample * 32767 | 0;\n }\n\n return length;\n }\n}", "function SfxrSynth() {\n // All variables are kept alive through function closures\n\n //--------------------------------------------------------------------------\n //\n // Sound Parameters\n //\n //--------------------------------------------------------------------------\n\n this._params = new SfxrParams(); // Params instance\n\n //--------------------------------------------------------------------------\n //\n // Synth Variables\n //\n //--------------------------------------------------------------------------\n\n var _envelopeLength0, // Length of the attack stage\n _envelopeLength1, // Length of the sustain stage\n _envelopeLength2, // Length of the decay stage\n\n _period, // Period of the wave\n _maxPeriod, // Maximum period before sound stops (from minFrequency)\n\n _slide, // Note slide\n _deltaSlide, // Change in slide\n\n _changeAmount, // Amount to change the note by\n _changeTime, // Counter for the note change\n _changeLimit, // Once the time reaches this limit, the note changes\n\n _squareDuty, // Offset of center switching point in the square wave\n _dutySweep; // Amount to change the duty by\n\n //--------------------------------------------------------------------------\n //\n // Synth Methods\n //\n //--------------------------------------------------------------------------\n\n /**\n * Resets the runing variables from the params\n * Used once at the start (total reset) and for the repeat effect (partial reset)\n */\n this.reset = function() {\n // Shorter reference\n var p = this._params;\n\n _period = 100 / (p['f'] * p['f'] + .001);\n _maxPeriod = 100 / (p['g'] * p['g'] + .001);\n\n _slide = 1 - p['h'] * p['h'] * p['h'] * .01;\n _deltaSlide = -p['i'] * p['i'] * p['i'] * .000001;\n\n if (!p['a']) {\n _squareDuty = .5 - p['n'] / 2;\n _dutySweep = -p['o'] * .00005;\n }\n\n _changeAmount = 1 + p['l'] * p['l'] * (p['l'] > 0 ? -.9 : 10);\n _changeTime = 0;\n _changeLimit = p['m'] == 1 ? 0 : (1 - p['m']) * (1 - p['m']) * 20000 + 32;\n }\n\n // I split the reset() function into two functions for better readability\n this.totalReset = function() {\n this.reset();\n\n // Shorter reference\n var p = this._params;\n\n // Calculating the length is all that remained here, everything else moved somewhere\n _envelopeLength0 = p['b'] * p['b'] * 100000;\n _envelopeLength1 = p['c'] * p['c'] * 100000;\n _envelopeLength2 = p['e'] * p['e'] * 100000 + 12;\n // Full length of the volume envelop (and therefore sound)\n // Make sure the length can be divided by 3 so we will not need the padding \"==\" after base64 encode\n return ((_envelopeLength0 + _envelopeLength1 + _envelopeLength2) / 3 | 0) * 3;\n }\n\n /**\n * Writes the wave to the supplied buffer ByteArray\n * @param buffer A ByteArray to write the wave to\n * @return If the wave is finished\n */\n this.synthWave = function(buffer, length) {\n // Shorter reference\n var p = this._params;\n\n // If the filters are active\n var _filters = p['s'] != 1 || p['v'],\n // Cutoff multiplier which adjusts the amount the wave position can move\n _hpFilterCutoff = p['v'] * p['v'] * .1,\n // Speed of the high-pass cutoff multiplier\n _hpFilterDeltaCutoff = 1 + p['w'] * .0003,\n // Cutoff multiplier which adjusts the amount the wave position can move\n _lpFilterCutoff = p['s'] * p['s'] * p['s'] * .1,\n // Speed of the low-pass cutoff multiplier\n _lpFilterDeltaCutoff = 1 + p['t'] * .0001,\n // If the low pass filter is active\n _lpFilterOn = p['s'] != 1,\n // masterVolume * masterVolume (for quick calculations)\n _masterVolume = p['x'] * p['x'],\n // Minimum frequency before stopping\n _minFreqency = p['g'],\n // If the phaser is active\n _phaser = p['q'] || p['r'],\n // Change in phase offset\n _phaserDeltaOffset = p['r'] * p['r'] * p['r'] * .2,\n // Phase offset for phaser effect\n _phaserOffset = p['q'] * p['q'] * (p['q'] < 0 ? -1020 : 1020),\n // Once the time reaches this limit, some of the iables are reset\n _repeatLimit = p['p'] ? ((1 - p['p']) * (1 - p['p']) * 20000 | 0) + 32 : 0,\n // The punch factor (louder at begining of sustain)\n _sustainPunch = p['d'],\n // Amount to change the period of the wave by at the peak of the vibrato wave\n _vibratoAmplitude = p['j'] / 2,\n // Speed at which the vibrato phase moves\n _vibratoSpeed = p['k'] * p['k'] * .01,\n // The type of wave to generate\n _waveType = p['a'];\n\n var _envelopeLength = _envelopeLength0, // Length of the current envelope stage\n _envelopeOverLength0 = 1 / _envelopeLength0, // (for quick calculations)\n _envelopeOverLength1 = 1 / _envelopeLength1, // (for quick calculations)\n _envelopeOverLength2 = 1 / _envelopeLength2; // (for quick calculations)\n\n // Damping muliplier which restricts how fast the wave position can move\n var _lpFilterDamping = 5 / (1 + p['u'] * p['u'] * 20) * (.01 + _lpFilterCutoff);\n if (_lpFilterDamping > .8) {\n _lpFilterDamping = .8;\n }\n _lpFilterDamping = 1 - _lpFilterDamping;\n\n var _finished = false, // If the sound has finished\n _envelopeStage = 0, // Current stage of the envelope (attack, sustain, decay, end)\n _envelopeTime = 0, // Current time through current enelope stage\n _envelopeVolume = 0, // Current volume of the envelope\n _hpFilterPos = 0, // Adjusted wave position after high-pass filter\n _lpFilterDeltaPos = 0, // Change in low-pass wave position, as allowed by the cutoff and damping\n _lpFilterOldPos, // Previous low-pass wave position\n _lpFilterPos = 0, // Adjusted wave position after low-pass filter\n _periodTemp, // Period modified by vibrato\n _phase = 0, // Phase through the wave\n _phaserInt, // Integer phaser offset, for bit maths\n _phaserPos = 0, // Position through the phaser buffer\n _pos, // Phase expresed as a Number from 0-1, used for fast sin approx\n _repeatTime = 0, // Counter for the repeats\n _sample, // Sub-sample calculated 8 times per actual sample, averaged out to get the super sample\n _superSample, // Actual sample writen to the wave\n _vibratoPhase = 0; // Phase through the vibrato sine wave\n\n // Buffer of wave values used to create the out of phase second wave\n var _phaserBuffer = new Array(1024),\n // Buffer of random values used to generate noise\n _noiseBuffer = new Array(32);\n for (var i = _phaserBuffer.length; i--; ) {\n _phaserBuffer[i] = 0;\n }\n for (var i = _noiseBuffer.length; i--; ) {\n _noiseBuffer[i] = Math.random() * 2 - 1;\n }\n\n for (var i = 0; i < length; i++) {\n if (_finished) {\n return i;\n }\n\n // Repeats every _repeatLimit times, partially resetting the sound parameters\n if (_repeatLimit) {\n if (++_repeatTime >= _repeatLimit) {\n _repeatTime = 0;\n this.reset();\n }\n }\n\n // If _changeLimit is reached, shifts the pitch\n if (_changeLimit) {\n if (++_changeTime >= _changeLimit) {\n _changeLimit = 0;\n _period *= _changeAmount;\n }\n }\n\n // Acccelerate and apply slide\n _slide += _deltaSlide;\n _period *= _slide;\n\n // Checks for frequency getting too low, and stops the sound if a minFrequency was set\n if (_period > _maxPeriod) {\n _period = _maxPeriod;\n if (_minFreqency > 0) {\n _finished = true;\n }\n }\n\n _periodTemp = _period;\n\n // Applies the vibrato effect\n if (_vibratoAmplitude > 0) {\n _vibratoPhase += _vibratoSpeed;\n _periodTemp *= 1 + Math.sin(_vibratoPhase) * _vibratoAmplitude;\n }\n\n _periodTemp |= 0;\n if (_periodTemp < 8) {\n _periodTemp = 8;\n }\n\n // Sweeps the square duty\n if (!_waveType) {\n _squareDuty += _dutySweep;\n if (_squareDuty < 0) {\n _squareDuty = 0;\n } else if (_squareDuty > .5) {\n _squareDuty = .5;\n }\n }\n\n // Moves through the different stages of the volume envelope\n if (++_envelopeTime > _envelopeLength) {\n _envelopeTime = 0;\n\n switch (++_envelopeStage) {\n case 1:\n _envelopeLength = _envelopeLength1;\n break;\n case 2:\n _envelopeLength = _envelopeLength2;\n }\n }\n\n // Sets the volume based on the position in the envelope\n switch (_envelopeStage) {\n case 0:\n _envelopeVolume = _envelopeTime * _envelopeOverLength0;\n break;\n case 1:\n _envelopeVolume = 1 + (1 - _envelopeTime * _envelopeOverLength1) * 2 * _sustainPunch;\n break;\n case 2:\n _envelopeVolume = 1 - _envelopeTime * _envelopeOverLength2;\n break;\n case 3:\n _envelopeVolume = 0;\n _finished = true;\n }\n\n // Moves the phaser offset\n if (_phaser) {\n _phaserOffset += _phaserDeltaOffset;\n _phaserInt = _phaserOffset | 0;\n if (_phaserInt < 0) {\n _phaserInt = -_phaserInt;\n } else if (_phaserInt > 1023) {\n _phaserInt = 1023;\n }\n }\n\n // Moves the high-pass filter cutoff\n if (_filters && _hpFilterDeltaCutoff) {\n _hpFilterCutoff *= _hpFilterDeltaCutoff;\n if (_hpFilterCutoff < .00001) {\n _hpFilterCutoff = .00001;\n } else if (_hpFilterCutoff > .1) {\n _hpFilterCutoff = .1;\n }\n }\n\n _superSample = 0;\n for (var j = 8; j--; ) {\n // Cycles through the period\n _phase++;\n if (_phase >= _periodTemp) {\n _phase %= _periodTemp;\n\n // Generates new random noise for this period\n if (_waveType == 3) {\n for (var n = _noiseBuffer.length; n--; ) {\n _noiseBuffer[n] = Math.random() * 2 - 1;\n }\n }\n }\n\n // Gets the sample from the oscillator\n switch (_waveType) {\n case 0: // Square wave\n _sample = ((_phase / _periodTemp) < _squareDuty) ? .5 : -.5;\n break;\n case 1: // Saw wave\n _sample = 1 - _phase / _periodTemp * 2;\n break;\n case 2: // Sine wave (fast and accurate approx)\n _pos = _phase / _periodTemp;\n _pos = (_pos > .5 ? _pos - 1 : _pos) * 6.28318531;\n _sample = 1.27323954 * _pos + .405284735 * _pos * _pos * (_pos < 0 ? 1 : -1);\n _sample = .225 * ((_sample < 0 ? -1 : 1) * _sample * _sample - _sample) + _sample;\n break;\n case 3: // Noise\n _sample = _noiseBuffer[Math.abs(_phase * 32 / _periodTemp | 0)];\n }\n\n // Applies the low and high pass filters\n if (_filters) {\n _lpFilterOldPos = _lpFilterPos;\n _lpFilterCutoff *= _lpFilterDeltaCutoff;\n if (_lpFilterCutoff < 0) {\n _lpFilterCutoff = 0;\n } else if (_lpFilterCutoff > .1) {\n _lpFilterCutoff = .1;\n }\n\n if (_lpFilterOn) {\n _lpFilterDeltaPos += (_sample - _lpFilterPos) * _lpFilterCutoff;\n _lpFilterDeltaPos *= _lpFilterDamping;\n } else {\n _lpFilterPos = _sample;\n _lpFilterDeltaPos = 0;\n }\n\n _lpFilterPos += _lpFilterDeltaPos;\n\n _hpFilterPos += _lpFilterPos - _lpFilterOldPos;\n _hpFilterPos *= 1 - _hpFilterCutoff;\n _sample = _hpFilterPos;\n }\n\n // Applies the phaser effect\n if (_phaser) {\n _phaserBuffer[_phaserPos % 1024] = _sample;\n _sample += _phaserBuffer[(_phaserPos - _phaserInt + 1024) % 1024];\n _phaserPos++;\n }\n\n _superSample += _sample;\n }\n\n // Averages out the super samples and applies volumes\n _superSample *= .125 * _envelopeVolume * _masterVolume;\n\n // Clipping if too loud\n buffer[i] = _superSample >= 1 ? 32767 : _superSample <= -1 ? -32768 : _superSample * 32767 | 0;\n }\n\n return length;\n }\n}", "function changeLengthFn(scope) {\n\tgetChild(\"scale\").rotation = 0; //setting the pendulum to initial position\n\tclearInterval(rotate_timer);\n\tvar _scale_factor = 15;\n\tvar _increment = 6.5;\n\tvar _length_in_meter \n\tif ( scope.length <= 50 ) {\n\t\tregistration_point_y = (_scale_factor *(scope.length/5)) + _increment; /** Setting the registration point of scale for slider value less /equal to 50 */\n\t} else {\n\t\tregistration_point_y = (_scale_factor * (100-scope.length)/5) + _increment;/** Setting the registration point of scale for slider value greater than 50 */\n\t}\n\tgetChild(\"scale\").regY = registration_point_y;\n\t/** Setting the nut and clamp on the top of scale */\n \tcompound_pendulam_stage.setChildIndex(getChild(\"nut_and_clamp\"), compound_pendulam_stage.getNumChildren()-1)\n\tpendulum_length = scope.length/5;\n\tif ( scope.length == 50 ) {\n\t\tpendulum_length = 500;\n\t\t_length_in_meter = 0;\n\t} else {\n\t _length_in_meter = Math.abs(half_length-(pendulum_length*5))/100;\n\t}\n\t/** Equation to find the Moment of Inertia */\n\t//M.I= m*k^2+m*l^2 \t, where 'm' is the mass, 'l' isDistance between center of gravity and pivot point in meter and k=0.25 m\n\tvar _moment_of_inertia = mass * (Math.pow(scope.gyration, 2)) + mass *(Math.pow(_length_in_meter, 2));\n\tscope.inertia = _moment_of_inertia.toFixed(5);\n\t}", "function pulseBrightness() {\n\t\tstar.alpha = Math.sin(q);\t\t\t\t\t\t\t\t\t\t// calculate alpha with a sinewave\n\t\tq += 1/lifespan/190;\t\t\t\t\t\t\t\t\t\t\t// increment. lifespan is tuned to be in minutes\n\n\t\tif (cow.boostMultiplier > 0) {\t\t\t\t\t\t\t\t\t// click boost\n\t\t\tq += 1/lifespan/66;\t\t\t\t\t\t\t\t\t\t\t// Same calculations as normal, but faster. Click = 6% progress\n\t\t}\n\n\t\tif (q > 0.8 && sfxPlayed == false) {\t\t\t\t\t\t\t// play sfx when the shape is mostly visible\n\t\t\tswitch (shape) {\n\t\t\t\tcase 'star':\tplayAudio('./SFX/star' + rngRange(1,5), 'sfx', star.x);\t\tbreak;\n\t\t\t\tcase 'circle':\tplayAudio('./SFX/circle' + rngRange(1,5), 'sfx', star.x);\tbreak;\n\t\t\t\tdefault: break;\n\t\t\t}\n\t\t\tsfxPlayed = true;\n\t\t}\n\n\t\tif (q > 3.2) {\t\t\t\t\t\t\t\t\t\t\t\t\t// if star has faded out.. (3.14 is one sinwave cycle)\n\t\t\tstar.destroy(true);\t\t\t\t\t\t\t\t\t\t\t// kill it\n\t\t\tswitch (shape) {\t\t\t\t\t\t\t\t\t\t\t// add one shape to the player's inventory\n\t\t\t\tcase 'circle': cow.resourceCircles++; break;\t\t\t//\n\t\t\t\tcase 'star': cow.resourceStars++; break;\t\t\t\t//\n\t\t\t\tdefault: break;\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t}\n\t\t\tif (cow.endgameBarOwned == true){\n\t\t\t\tswitch (shape) {\t\t\t\t\t\t\t\t\t\t\t\t// Add shapes to the endgame bar counter\n\t\t\t\t\tcase 'circle': cow.resourceEndgameBarCircles++; break;\t\t//\n\t\t\t\t\tcase 'star': cow.resourceEndgameBarStars++; break;\t\t\t//\n\t\t\t\t\tdefault: break;\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t\tupdateResourceCounter(shape);\n\t\t\tcow[counter]--;\t\t\t\t\t\t\t\t\t\t\t\t// and remove the star from the capacity counter\n\t\t} else { setTimeout(function() { window.requestAnimationFrame(pulseBrightness); }, 100) } // Throttled to 10FPS\n\t}", "applyForce(f) {\n f.sub(250, 190);\n f.div(10000);\n this.acc.add(f);\n this.bSize -= 0.05;\n }", "function setup(){\n /*oscilator = new p5.Oscillator();\n envel = new p5.Env();\n envel.setADSR(0, 0.2, 0.2, 0.3);\n envel.setRange(1, 0);\n oscilator.amp(envel);*/\n}", "function Particle(game) {\n _super.call(this, game);\n this.lifespan = 0;\n this.friction = 500;\n }", "setEnvelope(base, peak, dur, value, start){\n let time = start;\n \n value.setValueAtTime(base, time);\n\n time += this.attack;\n value.linearRampToValueAtTime(peak, time);\n\n time += dur-this.attack;\n value.linearRampToValueAtTime(base, time);\n }", "showPulse() {\n this._triggerAnimation(this._icon, 'shadow-pulse');\n }", "function elastic(amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t : \n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n}", "updateVelocity(flapForce, g=0.8) {\n this.velocity = this.velocity + (flapForce - g);\n }", "function elastic(amplitude, period) {\n if ( amplitude === void 0 ) amplitude = 1;\n if ( period === void 0 ) period = .5;\n\n var a = minMax(amplitude, 1, 10);\n var p = minMax(period, .1, 2);\n return function (t) {\n return (t === 0 || t === 1) ? t :\n -a * Math.pow(2, 10 * (t - 1)) * Math.sin((((t - 1) - (p / (Math.PI * 2) * Math.asin(1 / a))) * (Math.PI * 2)) / p);\n }\n}", "function calcWave() {\n theta += 0.05;\n\n let angle = theta;\n for (let i = 0; i < periodYValues.length; i++) {\n periodYValues[i] = sin(angle) * amplitude;\n angle += increment;\n }\n}", "update() {\n let gravity = 0.4; // Arbitrary constant\n this.aAcceleration = (-1 * gravity / this.r) * sin(this.angle); // Calculate acceleration (see: http://www.myphysicslab.com/pendulum1.html)\n this.aVelocity += this.aAcceleration; // Increment velocity\n this.aVelocity *= this.damping; // Arbitrary damping\n this.angle += this.aVelocity; // Increment angle\n }", "function FixedUpdate ()\n{\n\tplayerCharacter = gameObject.GetComponent(CharacterController);\n\tplayerVelocity = playerCharacter.velocity.magnitude;\n\tvar delay : float = (playerVelocity) * (0.035 * footDelay) ;\n\tacum = SnowGlobalControl.varAcum;\n\t\n\tif (playerVelocity > minSpeed && acum > 0.45 && footPrintsEnabled == true)\n\t{\n\t\tFootPrints();\n\t}\n}", "function pulse(){\n if(on===true){//Locks game if on switch is not engaged.\n if(!strictOn){\n x = setInterval( ()=>{\n strict.classList.add(\"animationPluseOn\");//Adds CSS animation class.\n setTimeout(()=>{strict.classList.remove(\"animationPluseOn\");}, 900);\n }, 1000); //Continually pulses the animation while strict mode is engaged.\n strictOn=true;\n }else{//Enables disengaging strict mode by clicking on the botton again.\n clearInterval(x);\n strictOn=false;\n }\n }\n}", "function dragIntegral() {\n var m = parseFloat(document.getElementById(\"mass\").value);\n //var dc = parseFloat(document.getElementById(\"d_coefficient\").value);\n //var gc = parseFloat(document.getElementById(\"g\").value);\n var t = parseFloat(document.getElementById(\"i_time\").value);\n var v_id = \"\";\n\n //sets current_vel to starting velocity if it hasn't been set already\n var valueTest = document.getElementById(\"current_vel\").innerText;\n if (valueTest == \"n/a\") {\n document.getElementById(\"current_vel\").innerText = parseFloat(document.getElementById(\"start_vel\").value);\n }\n\n if (t < 0.01) {\n t = 0.01;\n } else {\n t = Math.round(t * 100) / 100;\n }\n\n for (i = 0; i < t; i += 0.01) {\n document.getElementById(\"current_vel\").innerText = parseFloat(document.getElementById(\"current_vel\").innerText) + (parseFloat(getTotalForce(\"current_vel\")) * 0.01 / m);\n }\n}", "update() {\n var gravity = 0.5; // Arbitrary constant\n this.aAcceleration = ((-1 * gravity) / this.r) * sin(this.angle); // Calculate acceleration (see: http://www.myphysicslab.com/pendulum1.html)\n this.aVelocity += this.aAcceleration; // Increment velocity\n this.aVelocity *= this.damping; // Arbitrary damping\n this.angle += this.aVelocity; // Increment angle\n }", "applyForce(particle_system) {\n \n // offset index for the big arrays in particleSystem\n var ia = this.ia*3;\n var ib = this.ib*3; \n\n // get position of points\n var pa_x = particle_system.x_list.slice( ia, ia + 3); \n var pb_x = particle_system.x_list.slice( ib, ib + 3); \n \n // get distance between points \n var stretch = distance(pa_x, pb_x) - this.l; // subtract stretch length\n\n //unit vector from a to b\n var d_ab_norm = norm_dist( pa_x, pb_x );\n var d_ba_norm = norm_dist( pb_x, pa_x );\n \n // force exerted on a by b\n\n var f_ab = 0;\n\n if (SPRING_FORCE_OVERRIDE) { // override the spring force given in construcotr with global variable\n \n f_ab = PARTICLE_SPRING_KS * stretch; \n\n\n } else {\n\n\n f_ab = this.ks*stretch;\n\n }\n\n // accumulate the forces into the particle system's force array\n maccumulate3( particle_system.f_list, ia, d_ab_norm, f_ab ); \n maccumulate3( particle_system.f_list, ib, d_ba_norm, f_ab ); \n\n // dampening forces\n\n var f_dampen_a = [0,0,0];\n var f_dampen_b = [0,0,0];\n\n // project va onto d_ab_norm \n\n var a_v = particle_system.v_list.slice( ia, ia + 3 );\n var b_v = particle_system.v_list.slice( ib, ib + 3 );\n\n // these are projected velocities\n var a_proj_v = dot3( a_v, d_ab_norm );\n var b_proj_v = dot3( b_v, d_ba_norm );\n\n if (SPRING_FORCE_OVERRIDE) {\n \n var f_dampen_a = scalar_mult( -1 * PARTICLE_SPRING_KD * a_proj_v, d_ab_norm);\n var f_dampen_b = scalar_mult( -1 * PARTICLE_SPRING_KD * b_proj_v, d_ba_norm);\n \n\n } else { // do the normal thing\n\n var f_dampen_a = scalar_mult( -1*this.kd*a_proj_v, d_ab_norm);\n var f_dampen_b = scalar_mult( -1*this.kd*b_proj_v, d_ba_norm);\n\n } \n\n // put in the dampening forces \n accumulate3( particle_system.f_list, ia, f_dampen_a ); \n accumulate3( particle_system.f_list, ib, f_dampen_b ); \n\n\n }", "function pulse(selection, pulseActive){\n recursiveTransition();\n function recursiveTransition(){\n if(pulseActive){\n selection\n .transition()\n .duration(500)\n .style('opacity', 1)\n .transition()\n .duration(500)\n .style('opacity', 0)\n .on('end', recursiveTransition)\n } else{\n selection\n .transition()\n .duration(500)\n .style('opacity', 0);\n }\n }\n }", "function main() {\n const context = new AudioContext({latencyHint: \"interactive\"});\n context.suspend();\n\n let voiceCount = 0;\n\n const sigmoidDistortion = context.createWaveShaper();\n sigmoidDistortion.curve = makeSigmoidCurve();\n sigmoidDistortion.connect(context.destination);\n\n const softBuzz = makeSoftBuzzPeriodicWave(context, 0.2);\n\n const baseFrequency = document.querySelector(\"#base-frequency\");\n const preGainSlider = document.querySelector(\"#pre-gain\");\n const voiceContainer = document.querySelector(\"#voices\");\n\n const preGain = context.createGain();\n preGain.connect(sigmoidDistortion);\n function adjustPreGain() {\n if (voiceCount) {\n preGain.gain.linearRampToValueAtTime(\n parseFloat(preGainSlider.value) / voiceCount,\n context.currentTime + 0.05\n );\n }\n }\n\n preGainSlider.addEventListener('input', adjustPreGain);\n\n function makeVoiceElement(multiplier=1) {\n const oscillator = context.createOscillator();\n const type = document.querySelector('input[name=\"voice-type\"]:checked').value;\n if (type === \"buzz\") {\n oscillator.setPeriodicWave(softBuzz);\n } else {\n oscillator.type = type;\n }\n\n const voiceBox = document.createElement('div');\n\n const multiplierInput = document.createElement('input');\n multiplierInput.setAttribute(\"type\", \"number\");\n multiplierInput.setAttribute(\"step\", \"0.001\");\n multiplierInput.setAttribute(\"value\", multiplier);\n voiceBox.appendChild(multiplierInput);\n\n const noteLabel = document.createElement('span');\n voiceBox.appendChild(noteLabel);\n\n function followBaseFrequency() {\n const frequency = parseFloat(baseFrequency.value) * parseFloat(multiplierInput.value);\n oscillator.frequency.setValueAtTime(\n frequency,\n context.currentTime\n );\n noteLabel.textContent = frequencyToLabel(frequency);\n }\n\n followBaseFrequency();\n baseFrequency.addEventListener('input', followBaseFrequency);\n multiplierInput.addEventListener('input', followBaseFrequency);\n\n const gainInput = document.createElement('input');\n gainInput.setAttribute(\"type\", \"range\");\n gainInput.setAttribute(\"min\", \"0\");\n gainInput.setAttribute(\"max\", \"1\");\n gainInput.setAttribute(\"step\", \"0.001\");\n gainInput.setAttribute(\"value\", \"0.3\");\n voiceBox.appendChild(gainInput);\n\n const gain = context.createGain();\n oscillator.connect(gain); //.connect(preGain);\n\n function followGain() {\n gain.gain.linearRampToValueAtTime(\n parseFloat(gainInput.value),\n context.currentTime + 0.05\n );\n }\n\n gain.gain.setValueAtTime(0.0, context.currentTime);\n followGain();\n gainInput.addEventListener('input', followGain);\n\n const panInput = document.createElement('input');\n panInput.setAttribute(\"type\", \"range\");\n panInput.setAttribute(\"min\", \"-1\");\n panInput.setAttribute(\"max\", \"1\");\n panInput.setAttribute(\"step\", \"0.001\");\n panInput.setAttribute(\"value\", \"0\");\n voiceBox.appendChild(panInput);\n\n const pan = context.createStereoPanner();\n gain.connect(pan).connect(preGain);\n\n function followPan() {\n pan.pan.linearRampToValueAtTime(\n parseFloat(panInput.value),\n context.currentTime + 0.05\n );\n }\n\n pan.pan.setValueAtTime(0.0, context.currentTime);\n panInput.addEventListener('input', followPan);\n\n adjustPreGain();\n oscillator.start();\n voices.appendChild(voiceBox);\n }\n\n document.querySelector('#add-one-button').addEventListener('click', function() {\n context.resume();\n voiceCount += 1;\n makeVoiceElement(voiceCount);\n });\n document.querySelector('#panic-button').addEventListener('click', function() {\n context.suspend().then(() => {\n console.log('Playback halted successfully');\n });\n });\n}", "function refreshParticleForce() {\n\tvar force = $(\"#forceSlider\").slider(\"value\");\n\t$(\"#forceLabel\").text(force);\n\t\n\tparticle_force = force / 1000;\n\t\n\tReloadWebGL();\n}", "noteOn(note, velocity) {\n this.note = note;\n\n // setting the frequency\n let noteDelta = this.pitchBendRange * this.pitchBendValue;\n this.operators.forEach((op, index) => {\n let freq = frequencyFromMidi(note + noteDelta) * (1 + this.detune * this.detuneScale[index]);\n let f = op.source.parameters.get('frequency');\n f.linearRampToValueAtTime(freq, this.audioContext.currentTime + this.glideTime);\n });\n\n // triggering the envelopes\n this.outEnv.noteOn(this.maxOutputGain, velocity);\n for (let i = 1; i < 4; i++) { // the first operator's envelope isn't triggered\n this.operatorsEnv[i].noteOn(this.operatorsEnvAmount[i], 127);\n }\n }", "applyDrag(coefficient) {\n const speed = this.velocity.length()\n\n const dragMagnitude = coefficient * speed ** 2\n\n const drag = this.velocity.clone()\n drag.scale(-1, drag)\n\n drag.normalize()\n\n drag.scale(dragMagnitude, drag)\n\n this.applyGenericForce(drag)\n }", "update() {\n let alpha = -gravity * (2 * this.p.mass + this.childPendulum.mass) * sin(this.p.angle) - this.childPendulum.mass * gravity * sin(this.p.angle - 2 * this.childPendulum.angle) - 2 * sin(this.p.angle - this.childPendulum.angle) * this.childPendulum.mass * (this.childPendulum.aVelocity * this.childPendulum.aVelocity * this.childPendulum.r + this.p.aVelocity * this.p.aVelocity * this.p.r * cos(this.p.angle - this.childPendulum.angle));\n\n let beta = this.p.r * (2 * this.p.mass + this.childPendulum.mass - this.childPendulum.mass * cos(2 * this.p.angle - 2 * this.childPendulum.angle));\n\n this.p.aAcceleration = alpha / beta;\n\n super.update();\n }", "function Particle(sketch, x, y) {\n this.pos = sketch.createVector(x, y);\n this.prev = sketch.createVector(x, y);\n this.vel = sketch.createVector(); //p5.Vector.random2D();\n //this.vel = p5.Vector.random2D();\n //this.vel.setMag(random(2, 5));\n this.acc = sketch.createVector();\n this.life = 180;\n\n this.update = function() {\n this.vel.add(this.acc);\n this.vel.limit(5);\n this.pos.add(this.vel);\n this.acc.mult(0);\n this.life--;\n }\n\n this.show = function() {\n if(this.life > 170) sketch.stroke(sketch.map(this.life, 180, 170, 0, 255));\n else sketch.stroke(sketch.map(this.life, 170, 30, 255, 0));\n sketch.point(this.pos.x, this.pos.y);\n // sketch.stroke(255, 255);\n // sketch.strokeWeight(4);\n // sketch.line(this.pos.x, this.pos.y, this.prev.x, this.prev.y);\n\n this.prev.x = this.pos.x;\n this.prev.y = this.pos.y;\n\n }\n\n this.attracted = function(target) {\n // var dir = target - this.pos\n var force = p5.Vector.sub(target, this.pos);\n var d = force.mag();\n d = sketch.constrain(d, 1, 50);\n var G = 50;\n var strength = G / (d * d);\n force.setMag(strength);\n if (d < 30) {\n force.mult(-50);\n }\n this.acc.add(force);\n }\n\n}", "function OnGUI(){ // set the speedometer top-left corner var pos = Vector2(Screen.width - 90, Screen.height - 50); // get the speed in mph: var mph = rigidbody.velocity.magnitude * 2.237; // draw the bars: each bar means 5 mph, no bar if speed < 1: for (var v: float = 1;\n }", "function Acceleration(force, mass) {\n\n}", "CreateFrackingFluidEmitter(position) {\n const groupDef = new b2.ParticleGroupDef();\n const group = this.m_particleSystem.CreateParticleGroup(groupDef);\n this.m_listener.AddParticleGroup(group);\n const emitter = new testbed.RadialEmitter();\n emitter.SetGroup(group);\n emitter.SetParticleSystem(this.m_particleSystem);\n emitter.SetPosition(Fracker.CenteredPosition(position));\n emitter.SetVelocity(new b2.Vec2(0.0, -FrackerSettings.k_tileHalfHeight));\n emitter.SetSpeed(FrackerSettings.k_tileHalfWidth * 0.1);\n emitter.SetSize(new b2.Vec2(FrackerSettings.k_tileHalfWidth, FrackerSettings.k_tileHalfHeight));\n emitter.SetEmitRate(20.0);\n emitter.SetColor(FrackerSettings.k_frackingFluidColor);\n emitter.SetParticleFlags(b2.ParticleFlag.b2_tensileParticle | b2.ParticleFlag.b2_viscousParticle);\n this.m_tracker.Add(emitter, FrackerSettings.k_frackingFluidEmitterLifetime);\n this.m_listener.AddScore(FrackerSettings.k_scorePerFrackingDeployment);\n }", "addPowerUp() {\n this.velocity +=50;\n }", "function FluidDynamics() {\n\n console.log(\"Starting fluid dynamics system.\")\n \n // Get some basic info from system.\n var mobile = navigator.userAgent.match(/iPhone|iPad|iPod|Android|BlackBerry|Opera Mini|IEMobile/i)\n this.canvas = document.getElementById('theCanvas');\n this.context = this.canvas.getContext('2d');\n this.image = this.context.createImageData(this.canvas.width, this.canvas.height);\t\t// for direct pixel manipulation (faster than fillRect)\n for (var i = 3; i < this.image.data.length; i += 4) this.image.data[i] = 255;\n\n this.running = false;\n \n // Config settings: \n this.steps = 10; // steps per draw (affects presentation speed of simulation) \n this.speed = 0.1; // speed fluid travels at \n this.density = 1; // density of incomming fluid\n \n this.contrast = 1.0;\n this.pxPerSquare = 4;\n this.plotSelect = 4;\n this.barrierTemplate = 6;\n\n this.showTracers = false;\n this.showFlowlines = false;\n this.showSensor = false;\n this.showForce = true;\n\n // the number of cells to ignore at the edge of the simulation.\n this.border = 2;\n\n this.brushSize = 2;\n this.brushType = \"push\";\n this.brushValue = 1;\n\n // sensor\n this.sensor = new FDSSensor();\n this.draggingSensor = false;\n this.nearSensor = false;\n\n // pushing\n this.oldMouseX = -1;\n this.oldMouseY = -1;\n this.pushX = 0;\n this.pushY = 0;\n this.pushUX = 0;\n this.pushUY = 0;\n\n // versions\n this.versionData = [];\n this.versionName = [];\n this.defaultVersion = 0;\n\n // tracers\n this.nTracers = 144;\n this.tracerX = new Array(nTracers);\n this.tracerY = new Array(nTracers);\n for (var t=0; t<nTracers; t++) {\n this.tracerX[t] = 0.0; this.tracerY[t] = 0.0;\n }\n\n // mouse location in grid co-ords.\n this.grid = {x: 60, y: 0}; \n\n // UI components\n this.ui = {}\n \n // Downsample more on mobile platforms.\n if (mobile) this.pxPerSquare = 10;\n\n // Initialize a solver\n this.xdim = this.canvas.width / this.pxPerSquare;\t\t\t// grid dimensions for simulation\n this.ydim = this.canvas.height / this.pxPerSquare;\n this.solver = new LBESolver_JS(this.xdim, this.ydim);\n\n this.sensor.x = this.xdim / 2;\n this.sensor.y = this.ydim / 2;\n \n}", "updatePeaking (varValue)\n {\n varValue *= 0.25;\n varValue -= 16;\n //newValue *= 0.0078125;\n this.peaking.gain.value = varValue;\n console.log(varValue);\n }", "function set(newb, newf, newintervals){\n\tb = newb\n\tintervals = newintervals\n\t//bottom_freq = new_bottom_freq\n\t//smallest_interval = Math.min.apply(null, newintervals); \n\t//f = bottom_freq / smallest_interval\n\tf = newf\n\tconsole.log(\"Fundamental\", f, \"hz\")\n\tconsole.log(\"Beat\", b, \"hz\")\n\n\tfor(let i=0; i<oscillators.length; i++){\n\t\tlet pan = i%2;\n\t\tlet interval = intervals[Math.floor(i/2)]; \n\t\to = oscillators[i]\n\t\tif(pan){\n\t\t\to.frequency.value = (f + b) * interval \n\t\t}else{\n\t\t\to.frequency.value = (f + 0) * interval\n\t\t}\n\t\tconsole.log(i, o.frequency.value)\n\t}\n\n}", "function _fForce()\n {\n MODEL.instance.masses.forEach(function(mass) {\n // \"f\"riction (damping) opposes velocity\n mass.f.add(VECTOR.mul(mass.v, -1 * MODEL.instance.f()));\n });\n }", "updateFriction() {\n\t\t// kill lateral velocity\n\t\tvar impulse = this.getLateralVelocity().mul(-this.body.getMass())\n\t\t// if (impulse.length() > carConfig.maxLateralImpulse)\n\t\t// impulse.mul(carConfig.maxLateralImpulse / impulse.length())\n\t\tthis.body.applyLinearImpulse(impulse, this.body.getWorldCenter())\n\n\t\t// kill angular velocity\n\t\tthis.body.applyAngularImpulse(.1 * this.body.getInertia() * -this.body.getAngularVelocity())\n\n\t\t// apply drag\n\t\tvar forwardNormal = this.getForwardVelocity()\n\t\tvar forwardSpeed = forwardNormal.normalize()\n\t\tvar dragMagnitude = -2 * forwardSpeed\n\t\tthis.body.applyForce(forwardNormal.mul(dragMagnitude), this.body.getWorldCenter())\n\t}", "function HalfGaugeUpdater(){\n this.update = function(value, boolean){\n //console.log(\"IN update half gauge with value \", value);\n // var newFinalValue = parseFloat(value).toFixed(2);\n // var textRounderUpdater = function(value){ return Math.round(value); };\n // if(parseFloat(newFinalValue) != parseFloat(textRounderUpdater(newFinalValue))){\n // textRounderUpdater = function(value){ return parseFloat(value).toFixed(1); };\n // }\n // if(parseFloat(newFinalValue) != parseFloat(textRounderUpdater(newFinalValue))){\n // textRounderUpdater = function(value){ return parseFloat(value).toFixed(2); };\n // }\n\n // var textTween = function(){\n // var i = d3.interpolate(this.textContent, parseFloat(value).toFixed(2));\n // return function(t) { this.textContent = textRounderUpdater(i(t)) + percentText; }\n // };\n\n // text1.transition()\n // .duration(config.waveRiseTime)\n // .tween(\"text\", textTween);\n // text2.transition()\n // .duration(config.waveRiseTime)\n // .tween(\"text\", textTween);\n waveHeightScale = d3.scaleLinear()\n .range([0,config.waveHeight*2,0])\n .domain([0,50,100]);\n\n var fillPercent = Math.max(config.minValue, Math.min(config.maxValue, value))/config.maxValue;\n var waveHeight = (fillCircleRadius)*waveHeightScale(fillPercent*100);\n var waveRiseScale = d3.scaleLinear()\n // The clipping area size is the height of the fill circle + the wave height, so we position the clip wave\n // such that the it will overlap the fill circle at all when at 0%, and will totally cover the fill\n // circle at 100%.\n .range([(fillCircleMargin+fillCircleRadius*2+waveHeight + + fillCircleRadius),(fillCircleMargin-waveHeight + fillCircleRadius)])\n .domain([0,1]);\n var newHeight = waveRiseScale(fillPercent);\n var waveScaleX = d3.scaleLinear().range([0,waveClipWidth2]).domain([0,1]);\n var waveScaleY = d3.scaleLinear().range([0,waveHeight]).domain([0,1]);\n\n var newClipArea;\n\n if(value == 95){\n config.waveHeightScaling = false;\n }else{\n config.waveHeightScaling = true;\n }\n\n\n\n \n if(config.waveHeightScaling){\n //console.log(\"here 111\");\n newClipArea = d3.area()\n .x(function(d) { return waveScaleX(d.x) -(fillInnerCircleRadius/1.18); } )\n .y0(function(d) { return waveScaleY(Math.sin(Math.PI*2*config.waveOffset*-1 + Math.PI*2*(1-config.waveCount) + d.y*2*Math.PI));} )\n .y1(function(d) { return (fillInnerCircleRadius*2 + waveHeight); } );\n } else {\n //console.log(\"here 1112\");\n newClipArea = clipArea2;\n }\n\n var newWavePosition = config.waveAnimate?waveAnimateScale2(1):0;\n // console.log(\"newWavePosition \", newWavePosition);\n // console.log(\"newHeight \", newHeight);\n //duration(config.waveAnimate?(config.waveAnimateTime * (1-wave2.attr('T'))):(config.waveRiseTime))\n var durationVar = config.waveAnimate?(config.waveAnimateTime * (1-wave2.attr('T'))):(config.waveRiseTime);\n var durationVar2 = config.waveRiseTime;\n\n if(value != 95 && boolean == false){\n durationVar = 150;\n durationVar2 = 0;\n }\n\n\n\n wave2.transition()\n .duration(0)\n .transition()\n .duration(durationVar)\n .ease(d3.easeLinear)\n .attr('d', newClipArea)\n .attr('transform','translate('+newWavePosition+',0)')\n .attr('T','1')\n .on(\"end\", function(){\n if(config.waveAnimate){\n wave2.attr('transform','translate('+waveAnimateScale2(0)+',0)');\n animateWave(config.waveAnimateTime);\n }\n });\n //duration(config.waveRiseTime)\n waveGroup2.transition()\n .duration(durationVar2)\n .attr('transform','translate('+waveGroupXPosition2+','+newHeight+')')\n }\n }", "update () {\n let max = this.maxSpeed * this.dt;\n // if (!isNaN(max) && this.steeringForce.length() > 0) {\n this.steeringForce = this.steeringForce.minimizeInPlaceFromFloats(max, max, max); // TODO: convert Three.js clampLength method to BABYLON\n // this.steeringForce.multiplyByFloats(1 / this.mass,1 / this.mass,1 / this.mass); // TODO: convert Three.js divedeScalar method to BABYLON\n /* this.steeringForce = */this.steeringForce/* .clone().normalize() */.scaleInPlace(1 / this.mass); // FIXME: mass > 1 not working\n this.velocity.addInPlace(this.steeringForce);\n this.velocity.y = 0;\n this.steeringForce.setAll(0, 0, 0);\n this.mesh.moveWithCollisions(this.velocity);\n // }\n }", "applyImpulse( degrees, power ) {\n this.model.ApplyImpulse( new Physics.Vec2((1) * power * Math.cos(degrees),\n (-1) * power * Math.sin(degrees)), \n this.model.GetPosition());\n }", "function applyBaseWaveform(params, periodSamples) {\n var type = params.wave_type;\n\n // Square duty\n // BUG: This should reset when repeat() fires.\n var square_duty = 0.5 - params.duty * 0.5;\n var square_slide = -params.duty_ramp * 0.00005 / SUPERSAMPLES;\n\n // Noise\n var noise_buffer = [];\n for (var i = 0; i < 32; ++i) {\n noise_buffer[i] = Math.random() * 2.0 - 1.0;\n }\n\n var len = periodSamples.length;\n var out = new Float64Array(len);\n var phase = 0;\n for (var i = 0; i < len; i++) {\n var period = periodSamples[i];\n\n phase++;\n if (phase >= period) {\n phase %= period;\n if (type === NOISE) {\n for (var j = 0; j < 32; ++j) {\n noise_buffer[j] = Math.random() * 2.0 - 1.0;\n }\n }\n }\n\n // Base waveform\n var sample;\n var fp = phase / period;\n if (type === SQUARE) {\n square_duty += square_slide;\n if (square_duty < 0.0) square_duty = 0.0;\n if (square_duty > 0.5) square_duty = 0.5;\n\n if (fp < square_duty) {\n sample = 0.5;\n } else {\n sample = -0.5;\n }\n } else if (type === SAWTOOTH) {\n sample = 1.0 - fp * 2;\n } else if (type === SINE) {\n sample = Math.sin(fp * 2 * Math.PI);\n } else if (type === NOISE) {\n sample = noise_buffer[Math.floor(phase * 32 / period)];\n } else if (type === TRIANGLE) {\n sample = Math.abs(1 - fp * 2) - 1;\n } else if (type === BREAKER) {\n sample = Math.abs(1 - fp * fp * 2) - 1;\n } else {\n throw new Error('bad wave type! ' + type);\n }\n\n out[i] = sample;\n }\n return out;\n}", "function wavify(e,t){void 0===t&&(t={});var n,o=Object.assign({},{container:t.container?t.container:\"body\",height:200,amplitude:100,speed:.15,bones:3,color:\"rgba(255,255,255, 0.20)\"},t),i=e,r=document.querySelector(o.container).getBoundingClientRect().width,a=document.querySelector(o.container).getBoundingClientRect().height,c=0,l=!1,u=!1;function y(){var e=window.Date.now();if(n){var t=(e-n)/1e3;n=e;var s=(c+=t)*Math.PI;u=TweenMax.to(i,o.speed,{attr:{d:function(e){var t=\"M \"+e[0].x+\" \"+e[0].y,n={x:(e[1].x-e[0].x)/2,y:e[1].y-e[0].y+e[0].y+(e[1].y-e[0].y)};t+=\" C \"+n.x+\" \"+n.y+\" \"+n.x+\" \"+n.y+\" \"+e[1].x+\" \"+e[1].y;for(var o=n,i=-1,c=1;c<e.length-1;c++){Math.sqrt(o.x*o.x+o.y*o.y);var l={x:e[c].x-o.x+e[c].x,y:e[c].y-o.y+e[c].y};t+=\" C \"+l.x+\" \"+l.y+\" \"+l.x+\" \"+l.y+\" \"+e[c+1].x+\" \"+e[c+1].y,o=l,i=-i}return t+=\" L \"+r+\" \"+a,t+=\" L 0 \"+a+\" Z\"}(function(e){for(var t=[],n=0;n<=o.bones;n++){var i=n/o.bones*r,a=(e+(n+n%o.bones))*o.speed*100,c=Math.sin(a/100)*o.amplitude,l=Math.sin(a/100)*c+o.height;t.push({x:i,y:l})}return t}(s))},ease:Power1.easeInOut})}else n=e;l=requestAnimationFrame(y)}var s,d,f,p,x=(s=function(){v(),[],c=0,r=document.querySelector(o.container).getBoundingClientRect().width,a=document.querySelector(o.container).getBoundingClientRect().height,n=!1,m()},d=250,function(){var e=this,t=arguments;clearTimeout(p),p=setTimeout(function(){p=null,f||s.apply(e,t)},d),f&&!p&&s.apply(e,t)});function m(){l||(l=requestAnimationFrame(y))}function v(){l&&(cancelAnimationFrame(l),l=!1)}function g(){l&&(v(),u.kill(),u=TweenMax.set(i,{x:0,y:0,rotation:0,opacity:0,clearProps:\"all\",attr:{d:\"M0,0\",fill:\"\"}}),window.removeEventListener(\"resize\",x),l=!1)}return l||(u=TweenMax.set(i,{attr:{fill:o.color}}),m(),window.addEventListener(\"resize\",x)),{reboot:function(e){var t;g(),void 0!==typeof e&&(t=e,o=Object.assign({},o,t)),u=TweenMax.set(i,{attr:{fill:o.color}}),m(),window.addEventListener(\"resize\",x)},play:m,pause:v,kill:g,updateColor:function(e){void 0===typeof e.timing&&(e.timing=1),void 0===typeof e.color&&(e.color=o.color),u=TweenMax.to(i,parseInt(e.timing),{attr:{fill:e.color},onComplete:function(){void 0!==typeof e.onComplete&&\"[object Function]\"==={}.toString.call(e.onComplete)&&e.onComplete()}})}}}", "faster(){\n if(this.body.angularVelocity <= 800){\n this.body.angularVelocity += 200;\n }\n this.setVelocityX(this.body.velocity.x + 40);\n this.setVelocityY(this.body.velocity.y - 40);\n }", "function reflect(a, player1){\n // FIRE OFF BATS HERE\n // --- Should disable rats for testing ---\n // rats are pesty T_T\n enemies.generateRat()\n\n if(player1.y > (shield.y +15)){\n return true;\n }\n else if(trampDude.flipBonusTurns > 0){\n trampDude.flipBonusTurns -= 1\n sounds.bounce()\n player1.body.velocity.y = trampDude.yVelocityBonus\n trampDude.checkLanding(trampDude.getRotation())\n player1.body.velocity.x = shield.body.velocity.x * 1.35 ;\n //Adjust x velocity\n var px = player1.body.x\n var sx = shield.body.x\n if(px - sx > 42 && px-sx < 56){player1.body.velocity.x = 0}\n else{\n player1.body.velocity.x += (-50 + (px - sx)) * 2.8\n }\n return false;\n }\n else{\n sounds.bounce()\n // Reset Difficulty\n trampDude.difficulty = 1\n multiplierText.text = 'Bounce: x1'\n multiplierText.fill = 'rgb(222, 222, 222)'\n multiplierText.stroke = '#000000'\n if(trampDude.flipsNeeded[0][0] >= 3 || trampDude.flipsNeeded[0][1] >= 3){\n trampDude.addToFlipsArr()\n trampDude.addToFlipsArr()\n }\n player1.body.velocity.y = -400 || player1.body.velocity.y\n player1.body.velocity.x = 0;\n trampDude.checkLanding(trampDude.getRotation())\n player1.body.velocity.x = shield.body.velocity.x * 1.35 ;\n //Adjust x velocity\n var px = player1.body.x\n var sx = shield.body.x\n if(px - sx > 42 && px-sx < 55){player1.body.velocity.x = 0}\n else{\n player1.body.velocity.x += (-50 + (px - sx)) * 2.8\n }\n return false;\n }\n //Add logic to change x velocity on shield x-location\n}", "interfaceBPMSliderCallback(faustControler) {\n var val;\n var input = faustControler.faustInterfaceView.slider;\n var fval = Number((parseFloat(input.value) * parseFloat(faustControler.itemParam.step)) + parseFloat(faustControler.itemParam.min));\n val = fval.toFixed(parseFloat(faustControler.precision));\n faustControler.value = val;\n var output = faustControler.faustInterfaceView.output;\n //---- update the value text\n if (output)\n output.textContent = \"\" + val + \" \" + faustControler.unit;\n this.BPM = fval;\n //this.setBPM(fval) \n }", "@autobind\n triggerRingPart2() {\n TweenMax.killTweensOf(this.tweenContainer);\n\n for (var i=0; i<this.particleCount; i++) {\n this.scaleOriginArray[i] = this.scaleArray[i];\n }\n\n var per = 0;\n var iper = 0;\n\n var per25 = this.particleCount*0.25;\n var per50 = this.particleCount*0.5;\n var per75 = this.particleCount*0.75;\n\n var groupSteps = [];\n var groupTotals = [];\n var groupSets = [];\n\n groupSteps[0] = 0;\n\n for(var i=0; i<4; i++){\n groupSteps[i+1] = groupSteps[i] + this.incNums[i];\n }\n if(this.incNums[3] === 0){\n groupSteps[3] = 0;\n }\n\n for (var i=0; i<4; i++) {\n groupTotals[groupSteps[i]] = this.percentages[groupSteps[i]].groupPercent;\n groupSets[i] = [];\n groupSets[i].push(groupTotals[groupSteps[i]]);\n\n for (var a=1; a<this.incNums[i]; a++) {\n groupTotals[groupSteps[i] + a] = groupTotals[ groupSteps[i] + a -1 ] + this.percentages[groupSteps[i] + a].groupPercent;\n groupSets[i].push(groupTotals[groupSteps[i] + a]);\n }\n }\n\n var sel = 0\n var ran = 0;\n ran = Math.round(Math.random() * 1);\n\n //This is where the colors are specified for the rings depending on the incIndex / current incOrder / incNums\n for (var i=0, i3=0, l=this.particleCount; i < l; i++, i3 += 3) {\n\n per = i / l;\n\n if ( per < 0.25 ) { // blue particles set, they are the first 1/4 of the particles\n iper = (i - (0 * per25))/per25;\n //switch is based on which incOrders is selected. this control what colors are used in each of the 1-10 slices of the pie\n //for instance if incIndex = 0 then the first 3 parts of the pie are blue, and in the case 0 we set the color based on the particles position compared to the groupTotal[0];\n //for instance if incIndex = 1 then in case 1: blue is in positions 8,9 and 10 of the pie graph\n //groupTotals is an array of percentages that total up to the 1 when looking through the whole array of groupTotals\n switch ( this.incIndex ) {\n case 0:\n if (iper < groupTotals[0]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][0][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][0][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][0][2];\n } else if (iper < groupTotals[1]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][1][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][1][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][1][2];\n } else if (iper < groupTotals[2]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][11][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][11][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][11][2];\n }\n break;\n case 1:\n if (iper < groupTotals[7]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][14][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][14][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][14][2];\n } else if (iper < groupTotals[8]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][16][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][16][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][16][2];\n } else if (iper < groupTotals[9]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][10][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][10][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][10][2];\n }\n break;\n case 2:\n if (iper < groupTotals[8]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][14][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][14][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][14][2];\n } else if (iper < groupTotals[9]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][10][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][10][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][10][2];\n }\n break;\n case 3:\n if (iper < groupTotals[3]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][1][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][1][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][1][2];\n } else if (iper < groupTotals[4]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][7][2];\n } else if (iper < groupTotals[5]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][11][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][11][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][11][2];\n }\n break;\n case 4:\n if (iper < groupTotals[3]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][11][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][11][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][11][2];\n } else if (iper < groupTotals[4]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][0][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][0][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][0][2];\n } else if (iper < groupTotals[5]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][0][1][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][0][1][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][0][1][2];\n }\n break;\n }\n } else if ( per < 0.5 ) { // red particles set, they are the second 1/4 of the particles\n iper = (i - (1 * per25))/per25;\n switch ( this.incIndex ) {\n case 0:\n if (iper < groupTotals[6]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][10][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][10][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][10][2];\n } else if (iper < groupTotals[7]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][13][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][13][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][13][2];\n } else if (iper < groupTotals[8]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][5][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][5][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][5][2];\n } else if (iper < groupTotals[9]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][18][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][18][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][18][2];\n }\n break;\n case 1:\n if (iper < groupTotals[3]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][14][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][14][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][14][2];\n } else if (iper < groupTotals[4]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][15][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][15][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][15][2];\n } else if (iper < groupTotals[5]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][18][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][18][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][18][2];\n }\n break;\n case 2:\n if (iper < groupTotals[6]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][0][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][0][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][0][2];\n } else if (iper < groupTotals[7]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][13][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][13][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][13][2];\n }\n break;\n case 3:\n if (iper < groupTotals[8]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][5][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][5][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][5][2];\n } else if (iper < groupTotals[9]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][13][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][13][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][13][2];\n }\n break;\n case 4:\n if (iper < groupTotals[0]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][14][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][14][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][14][2];\n } else if (iper < groupTotals[1]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][18][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][18][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][18][2];\n } else if (iper < groupTotals[2]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][1][13][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][1][13][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][1][13][2];\n }\n break;\n }\n } else if ( per < 0.75 ) { // yellow particles set, they are the third 1/4 of the particles\n iper = (i - (2 * per25))/per25;\n switch ( this.incIndex ) {\n case 0:\n if (iper < groupTotals[4]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][7][2];\n } else if (iper < groupTotals[5]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][15][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][15][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][15][2];\n }\n break;\n case 1:\n if (iper < groupTotals[0]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][12][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][12][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][12][2];\n } else if (iper < groupTotals[1]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][10][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][10][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][10][2];\n } else if (iper < groupTotals[2]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][6][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][6][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][6][2];\n }\n break;\n case 2:\n if (iper < groupTotals[3]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][10][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][10][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][10][2];\n } else if (iper < groupTotals[4]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][12][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][12][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][12][2];\n } else if (iper < groupTotals[5]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][6][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][6][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][6][2];\n }\n break;\n case 3:\n if (iper < groupTotals[6]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][7][2];\n } else if (iper < groupTotals[7]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][6][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][6][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][6][2];\n }\n break;\n case 4:\n if (iper < groupTotals[6]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][0][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][0][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][0][2];\n } else if (iper < groupTotals[7]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][7][2];\n } else if (iper < groupTotals[8]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][5][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][5][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][5][2];\n }\n else if (iper < groupTotals[9]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][2][14][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][2][14][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][2][14][2];\n }\n break;\n }\n } else if ( per < 1 ) { // green particles set, they are the last 1/4 of the particles\n iper = (i - (3 * per25))/per25;\n switch ( this.incIndex ) {\n case 0:\n if (iper < groupTotals[3]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][7][2];\n }\n break;\n case 1:\n if (iper < groupTotals[6]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][7][2];\n }\n break;\n case 2:\n if (iper < groupTotals[0]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][16][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][16][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][16][2];\n } else if (iper < groupTotals[1]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][14][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][14][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][14][2];\n } else if (iper < groupTotals[2]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][4][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][4][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][4][2];\n }\n break;\n case 3:\n if (iper < groupTotals[0]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][7][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][7][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][7][2];\n } else if (iper < groupTotals[1]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][8][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][8][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][8][2];\n } else if (iper < groupTotals[2]) {\n this.colorsTargetArray[ i3 + 0 ] = this.colors[this.colorSet][3][11][0];\n this.colorsTargetArray[ i3 + 1 ] = this.colors[this.colorSet][3][11][1];\n this.colorsTargetArray[ i3 + 2 ] = this.colors[this.colorSet][3][11][2];\n }\n break;\n\n }\n }\n }\n\n this.tweenContainer.time = 0;\n TweenMax.to(this.tweenContainer, 2, { time: 1, onUpdate: this.updateTimeAndColorTime, onComplete: this.updateTimeAndColorTime, ease: Power4.easeOut});\n this.material.uniforms[ 'mode' ].value = 1.0;\n\n setTimeout(this.triggerRingLabels, 1500);\n setTimeout(this.triggerResults, 8000);\n }", "land() {\n this.velocity += 20; \n }", "function extrapolate_tick(headpos, velocity, tick_amt)\r\n{\r\n return vector.operate(headpos, vector.operate(velocity, tick_amt * Globals.TickInterval(), 'x'), \"+\"); //:flushed:\r\n}", "function particle(posX, posY, sizeX, sizeY, hue) {\n \n //this.indx = inDx; // Array index for this particle.\n \n this.mySize = createVector(sizeX, sizeY);\n this.pos = createVector(posX, posY);\n \n this.origPos = createVector();\n \n this.prevPos = createVector(posX,posY);\n \n this.colour = hue;\n this.visible = true;\n \n this.mortal = false; // Default, an immortal.\n this.birthTime = millis(); // Birth time.\n this.longevity = 30000; // 30 seconds.\n // Below allows us to pass in string\n // to write custom functions\n // when particle's longevity met.\n // NB leave as \"\" for default call of 'setActive(false)';\n this.afterLife = \"\"; \n \n this.screenWrap = true;\n \n this.velocity = createVector(0,0);\n this.acceleration = createVector(0,0);\n this.maxV = 1; // Topspeed.\n //this.gravity = Math.random(0.8)+0.09;\n this.gravity = 0; // Gravity that pulls to bottom of window.\n this.gravityON = false; // Gravity that pulls to bottom of window.\n \n this.damp = 0.5;\n this.dampingON = true;\n \n this.frozen = false;\n this.solid = false;\n \n // Want to bounce when hit ground or walls?\n this.groundSolid = false;\n this.wallSolid = false;\n \n this.bounciness = Math.random(0.1,7); // The higher the bounciness.\n // NB highest value is 7. Must change this.bounce() below.\n \n this.flickable = false;\n \n this.flickStrength = 7.2;\n \n // Parameters = *what* is a string, allowing you to render\n // particle in chosen style.\n // *alphaVal* is a number, from 0 to 255, setting alpha.\n this.render = function(what, alphaVal){\n \n if (!this.visible) return;\n \n if (what===\"trail\"){\n \n var colourScale = 100;\n \n var Bc = colourScale * Math.abs(this.velocity.mag())*4;\n var Gc = colourScale * Math.abs(this.velocity.x);\n var Rc = colourScale * Math.abs(this.velocity.y);\n \n Rc = constrain(Rc, 120, 255);\n Gc = constrain(Gc, 120, 255);\n Bc = constrain(Bc, 120, 255);\n \n //stroke(Rc,Gc,Bc,alphaVal);\n fill(0,0,Bc, alphaVal); \n //strokeWeight(4);\n line(this.pos.x,this.pos.y,this.prevPos.x,this.prevPos.y);\n this.prevPos = this.pos;\n return null;\n }\n \n else if (what===\"earthquaking\"){\n \n \n var colourScale = 100;\n \n var Bc = colourScale * Math.abs(this.velocity.mag())*4;\n var Gc = colourScale * Math.abs(this.velocity.x);\n var Rc = colourScale * Math.abs(this.velocity.y);\n \n Rc = constrain(Rc, 200, 255);\n Gc = constrain(Gc, 200, 255);\n Bc = constrain(Bc, 200, 255);\n \n //stroke(Rc,Gc,Bc,alphaVal);\n fill(Rc,Gc,Bc, alphaVal); \n \n //stroke (255,255,255); \n //strokeWeight(3);\n if (!quantum) noStroke();\n else stroke (255,255);\n \n fill(Rc,Gc,Bc, alphaVal);\n //point(this.pos.x,this.pos.y);\n ellipse(this.pos.x,this.pos.y,16,16);\n //line(this.pos.x,this.pos.y,this.prevPos.x,this.prevPos.y);\n // this.prevPos = this.pos;\n return null;\n \n }\n else {\n // Last resort, draw a point.\n stroke (255,255,255,alphaVal); \n strokeWeight(8);\n point(this.pos.x,this.pos.y);\n }\n \n \n \n };\n \n // Flicks particle upwards.\n this.flick = function(whichWay){\n \n this.velocity.x = 0;\n \n this.acceleration.y = -this.flickStrength;\n \n if (whichWay===\"left\") {\n if (this.acceleration.x > 0) this.acceleration.x = 0; \n this.acceleration.x -= latF;}\n else if (whichWay===\"right\"){\n if (this.acceleration.x < 0) this.acceleration.x = 0;\n this.acceleration.x += latF;}\n //console.log(\"Flicked!\");\n };\n \n this.checkMouse = function(){\n if(mouseX > this.pos.x - (this.mySize.x/2) &&\n mouseX < this.pos.x + (this.mySize.x/2) &&\n mouseY > this.pos.y - (this.mySize.y/2) &&\n mouseY < this.pos.y + (this.mySize.y/2)){\n if (mouseX < this.pos.x) { this.flick(\"right\"); return null;}\n if (mouseX > this.pos.x) {this.flick(\"left\"); return null;}\n else this.flick(\"sweet\");\n }\n\n \n \n };\n \n \n \n // Bouncing on ground only!\n // See this.flick() for 'bouncing' on solid particles.\n this.bounce = function() {\n this.pos.y = height-(this.mySize.y/2)-0.01;\n this.velocity.y = 0;//-this.velocity.y/(10-this.bounciness);\n this.acceleration.y = -this.acceleration.y/(10-this.bounciness);\n };\n \n // Checks whether this particle has\n // collided with the passed-in particle.\n // NB only works with particles.\n this.checkCollision = function(whom)\n {\n \n // NB only returns true if both particles are solid.\n if(this.frozen === false && this.solid === true &&\n whom.solid === true &&\n whom.pos.x + whom.mySize.x/2 > this.pos.x - (this.mySize.x/2) &&\n whom.pos.x - whom.mySize.x/2 < this.pos.x + (this.mySize.x/2) &&\n whom.pos.y - whom.mySize.y/2 > this.pos.y - (this.mySize.y/2) &&\n whom.pos.y + whom.mySize.y/2 < this.pos.y + (this.mySize.y/2))\n {\n \n return true;\n \n } else return false;\n };\n \nthis.setActive = function(bool){\n // If no longer active...\n if (!bool) {\n this.visible = false;\n this.frozen = true;\n this.solid = false;\n //this.pos.y = -99999; // Orbitally offscreeeeen!\n }\n};\n \n// Example of a custom afterlife state (instead of setActive(false).) \nthis.custom_snowDrop = function(){ \n \n this.birthTime = millis(); // Reborn!\n this.longevity = 5000; // 10 more seconds life!\n this.mortal = true;\n this.solid = false;\n this.frozen = false;\n // Don't forget to set new afterLife condition!\n this.afterLife = \"\";\n };\n \n this.update = function(){\n \n // Only concerns the mortal...\n if (this.mortal) {\n if (millis() - this.birthTime > this.longevity)\n {\n if (this.afterLife === \"\") this.setActive(false);\n //if (this.afterLife === \"sd\") this.custom_snowDrop();\n }\n }\n \n if (this.frozen) return;\n \n \n \n // Gravity physics, as well as general damping.\n \n \n // this.velocity.x *= this.damp;\n //this.velocity.y *= this.damp;}\n \n // Gravity (towards bottom of window).\n if (this.gravityON){\n this.acceleration.y += this.gravity;}\n \n // Core of the physics engine.\n this.pos.add(this.velocity); \n this.velocity.add(this.acceleration);\n \n // Damping (like air resistance).\n if (this.dampingON){\n \n if (this.velocity.mag() > this.maxV) // Velocity cap.\n this.velocity.setMag(this.maxV);\n // this.velocity.setMag(this.velocity.mag()* this.damp);\n // Deceleration.\n this.acceleration.setMag(this.acceleration.mag()* this.damp);\n }\n \n // Have we hit the ground?\n if (this.groundSolid && this.pos.y + (this.mySize.y/2) > height)\n this.bounce();\n \n // Check for mouse contact (i.e. flickability).\n // We check in this method since it's a physics procedure.\n if (this.flickable) this.checkMouse();\n \n \n if (this.screenWrap) {\n if (this.pos.x < 0) this.pos.x = width;\n if (this.pos.x > width) this.pos.x = 0;\n if (this.pos.y < 0) this.pos.y = height;\n if (this.pos.y > height) this.pos.y = 0;\n }\n \n \n // If hitting walls (improved).\n // At the moment, doesn't matter whether frozen.\n if(this.wallSolid && this.pos.x - (this.mySize.x/2) < 0) {\n this.pos.x = 0 + (this.mySize.x/2);\n this.acceleration.x = Math.abs(this.acceleration.x) / 2;\n }\n if(this.wallSolid && this.pos.x + (this.mySize.x/2) > width - 20) {\n this.pos.x = width - (this.mySize.x/2) - 20; \n this.acceleration.x = Math.abs(this.acceleration.x) / -2;\n }\n \n };\n \n \n}", "function bounce(val) {\r\n return spring(val, {\r\n stiffness: 330,\r\n damping: 22,\r\n });\r\n}", "function amplitude_set_new_volume(e){\n if(document.getElementById('amplitude-volume-meter')){\n var amplitude_volume_slider_width = document.getElementById('amplitude-volume-meter').offsetWidth;\n var amplitude_volume_slider_rect = document.getElementById('amplitude-volume-meter').getBoundingClientRect();\n var amplitude_evt_obj = window.event ? event: e;\n var amplitude_percentage = ((amplitude_evt_obj.layerX - amplitude_volume_slider_rect.left) /amplitude_volume_slider_width);\n\n if(amplitude_percentage > 1){\n amplitude_percentage = 1;\n }\n amplitude_set_volume(amplitude_percentage);\n }\n}", "function liquidFillGaugeDefaultSettings(){\n return {\n minValue: 0, // The gauge minimum value.\n maxValue: 100, // The gauge maximum value.\n circleThickness: 0.05, // The outer circle thickness as a percentage of it's radius.\n circleFillGap: 0.05, // The size of the gap between the outer circle and wave circle as a percentage of the outer circles radius.\n circleColor: '#178BCA', // The color of the outer circle.\n waveHeight: 0.05, // The wave height as a percentage of the radius of the wave circle.\n waveCount: 1, // The number of full waves per width of the wave circle.\n waveRiseTime: 1000, // The amount of time in milliseconds for the wave to rise from 0 to it's final height.\n waveAnimateTime: 18000, // The amount of time in milliseconds for a full wave to enter the wave circle.\n waveRise: true, // Control if the wave should rise from 0 to it's full height, or start at it's full height.\n waveHeightScaling: true, // Controls wave size scaling at low and high fill percentages. When true, wave height reaches it's maximum at 50% fill, and minimum at 0% and 100% fill. This helps to prevent the wave from making the wave circle from appear totally full or empty when near it's minimum or maximum fill.\n waveAnimate: true, // Controls if the wave scrolls or is static.\n waveColor: '#178BCA', // The color of the fill wave.\n waveOffset: 0, // The amount to initially offset the wave. 0 = no offset. 1 = offset of one full wave.\n textVertPosition: .5, // The height at which to display the percentage text withing the wave circle. 0 = bottom, 1 = top.\n textSize: 1, // The relative height of the text to display in the wave circle. 1 = 50%\n valueCountUp: true, // If true, the displayed value counts up from 0 to it's final value upon loading. If false, the final value is displayed.\n displayPercent: true, // If true, a % symbol is displayed after the value.\n textColor: '#045681', // The color of the value text when the wave does not overlap it.\n waveTextColor: '#A4DBf8' // The color of the value text when the wave overlaps it.\n };\n}", "function main() {\n meter1.update(meter1.val + 0.1);\n}", "function reflow(pulse, _) {\n return pulse.reflow(_.modified()).modifies('opacity');\n }", "function Particle(x, y) {\n this.pos = createVector(x, y);\n this.vel = createVector(0, 0);\n this.acc = createVector(0, 0);\n this.a = 255;\n this.val = sin(frameCount*10)*random(10,30);\n this.rand = this.val*3 +1;\n\n this.addForce = function(force) {\n this.acc.add(force);\n }\n\n this.checkEdges = function() {\n\n // Left edge\n if (this.pos.x < 0){\n this.vel.x = Math.abs(this.vel.x);\n }\n\n // Bottom\n if (this.pos.y > height){\n this.vel.y = -Math.abs(this.vel.y);\n }\n\n // right edge\n if (this.pos.x > width){\n var normalisedY = this.pos.y / height;\n send(IP_VOISIN, { y: normalisedY});\n\n // enlever\n var index = particles.indexOf(this);\n particles.splice(index, 1);\n\n }\n\n }\n\n this.update = function() {\n this.vel = this.vel.add(this.acc);\n\n this.pos.add(this.vel);\n this.acc.mult(0);\n\n this.checkEdges();\n }\n\n this.createDot = function() {\n noStroke();\n fill(245, 65, 35, this.a);\n ellipse(this.pos.x, this.pos.y, this.val, this.val);\n ellipse(this.pos.x, this.pos.y, this.val, this.val);\n\n }\n\n this.createAura = function() {\n\n fill(0, 152, 216,this.a*.05);\n strokeWeight(.5);\n stroke(0, 152, 216,this.a);\n ellipse(this.pos.x, this.pos.y, this.val*10, this.val*10);\n\n }\n\n this.createCircles = function() {\n push();\n strokeWeight(.5);\n stroke(11, 53, 54,this.a);\n noFill();\n var rand = random(5,10);\n ellipse(this.pos.x, this.pos.y,rand*this.val,rand*this.val);\n }\n\n\n this.alpha = function () {\n\n this.a -= .1;\n }\n\n this.wiggle = function() {\n\n this.pos.x = random(this.pos.x-30, this.pos.x+30);\n this.pos.y = random(this.pos.y-this.rand, this.pos.y+this.rand);\n }\n\n\n this.isOut = function() {\n if (this.pos.x > width || this.pos.y > height){\n return true;\n }\n return false;\n }\n\n this.evolving = function() {\n\n var k = random(.7,1.3);\n\n this.val *=k;\n }\n\n}", "constructor(delay = 500, frequency = 2000) {\n this.delay = delay;\n this.frequency = frequency;\n }", "function bounce(val) {\n return spring(val, {\n stiffness: 330,\n damping: 22\n });\n}", "function pulse(iso3) {\n var a;\n //console.log(d3.select(this).attr('data-iso3'));\n if (iso3) {\n a = '.' + iso3;\n } else {\n a = '.' + d3.select(this).attr('data-iso3');\n }\n\n d3.selectAll(a)\n .classed('pulse', true);\n}", "function velocity(){\n\tvar offset = $(\"#velo\").offset();\n\t$(\"#veloPlus\").css({ top: offset.top - 15, left: offset.left + 95, display: \"block\" }).animate({ opacity: 1.0 }, \"slow\");\n\t$(\"#veloPlus\").animate({ opacity: 0.0 }, \"slow\");\n\tballVelo++;\n\tx += dx;\n\ty += dy;\n\tpaddleVelo += 25;\n\trequestAnimationFrame(draw);\n}", "set Acceleration(value) {}", "changeNotification() {\n Vue.nextTick(() => {\n window.requestAnimationFrame(() => {\n this.pulseAnimation = true;\n if (this.pulseAnimationTimer) clearTimeout(this.pulseAnimationTimer);\n this.pulseAnimationTimer = setTimeout(() => {\n this.pulseAnimation = false;\n delete this.pulseAnimationTimer;\n }, 700);\n });\n });\n }", "function playSynth() {\n// // What's this thing do?\n// userStartAudio();\n//\n// // note duration (in seconds)\n// let note_dur = 0.5;\n//\n// // time from right now\n// let time = 0;\n//\n// // velocity for some reason?\n// let vel = 0.1;\n//\n// // What's going on all in here then now?\n// polySynth.play('C3', vel, 0, note_dur);\n\n const note = floor(map(mouseX/4, 0, 400, 20, 80));\n const freq = midiToFreq(note);\n oscillator.freq(freq);\n envelope.triggerAttack();\n}", "function deg2pulse(degree) {\n return Math.round(1900.0 / 180.0 * degree + 1450);\n}", "function updateVelocity(){\r\n\t// ---- ADVECT -------------------------------------------------------------------------------------\r\n\tadvectBuffer.material.uniforms.texInput.value = u.texA;\r\n\tadvectBuffer.material.uniforms.velocity.value = u.texA;\r\n\tadvectBuffer.material.uniforms.dissipation.value = 1.0;\r\n\trenderer.render(advectBuffer.scene, camera, u.texB, true);\t\r\n\tu.swap();\r\n\r\n\tadvectBuffer.material.uniforms.time += 1;\t\r\n\tadvectBuffer.material.uniforms.res.value.x = w();\r\n\tadvectBuffer.material.uniforms.res.value.y = h();\r\n\r\n\t// ---- DIFFUSE -------------------------------------------------------------------------------------\r\n\t// jacobiBuffer.material.uniforms.alpha.value = alpha1();\r\n\t// jacobiBuffer.material.uniforms.rBeta.value = beta1();\r\n\t// for (var i = 0; i < DIFFUSE_ITER_MAX; i++) {\r\n\t// \tjacobiBuffer.material.uniforms.texInput.value = u.texA;\r\n\t// \tjacobiBuffer.material.uniforms.b.value = u.texA;\r\n\t// \trenderer.render(jacobiBuffer.scene, camera, u.texB, true);\t\r\n\t// \tu.swap();\r\n\t// }\t\r\n\r\n\t// jacobiBuffer.material.uniforms.res.value.x = w();\r\n\t// jacobiBuffer.material.uniforms.res.value.y = h();\r\n\t\r\n\t// ---- APPLY FORCES -------------------------------------------------------------------------------------\r\n\tforceBuffer.material.uniforms.texInput.value = u.texA;\r\n\trenderer.render(forceBuffer.scene, camera, u.texB, true);\r\n\tu.swap();\r\n\r\n\t// ---- PROJECT -------------------------------------------------------------------------------------\r\n\t// * ---- COMPUTE PRESSURE \t\r\n\t// * - CALC. div(u)\r\n\tdivBuffer.uniforms.texInput.value = u.texA;\r\n\trenderer.render(divBuffer.scene, camera, div_u.texA, true);\r\n\r\n\t// * - SOLVE POISSONS FOR P\r\n\tjacobiBuffer.material.uniforms.alpha.value = alpha2();\r\n\tjacobiBuffer.material.uniforms.rBeta.value = 1.0/4.0;\r\n\tfor (var i = 0; i < PRESSURE_ITER_MAX; i++) {\r\n\t\tjacobiBuffer.material.uniforms.texInput.value = p.texA;\r\n\t\tjacobiBuffer.material.uniforms.b.value = div_u.texA;\r\n\t\trenderer.render(jacobiBuffer.scene, camera, p.texB, true);\t\r\n\t\tp.swap();\r\n\t}\t\r\n\t\r\n\t// * ---- SUBTRACT grad(p)\r\n\tgradBuffer.uniforms.texInput.value = u.texA;\r\n\tgradBuffer.uniforms.pressure.value = p.texA;\r\n\trenderer.render(gradBuffer.scene, camera, u.texB, true);\r\n\tu.swap();\r\n}", "function Tween(equation, parameters, context) {\n if (context === void 0) { context = DreamsArk; }\n this.equation = equation;\n this.context = context;\n this.bounceInOut = function (time, begin, change, duration) {\n if (time < duration / 2) {\n return this.bounceIn(time * 2, 0, change, duration) * 0.5 + begin;\n }\n else {\n return this.bounceOut(time * 2 - duration, 0, change, duration) * 0.5 + change * 0.5 + begin;\n }\n };\n this.circIn = function (time, begin, change, duration) {\n return -change * (Math.sqrt(1 - (time = time / duration) * time) - 1) + begin;\n };\n this.circOut = function (time, begin, change, duration) {\n return change * Math.sqrt(1 - (time = time / duration - 1) * time) + begin;\n };\n this.circInOut = function (time, begin, change, duration) {\n if ((time = time / (duration / 2)) < 1) {\n return -change / 2 * (Math.sqrt(1 - time * time) - 1) + begin;\n }\n else {\n return change / 2 * (Math.sqrt(1 - (time -= 2) * time) + 1) + begin;\n }\n };\n this.cubicIn = function (time, begin, change, duration) {\n return change * (time /= duration) * time * time + begin;\n };\n this.cubicOut = function (time, begin, change, duration) {\n return change * ((time = time / duration - 1) * time * time + 1) + begin;\n };\n this.cubicInOut = function (time, begin, change, duration) {\n if ((time = time / (duration / 2)) < 1) {\n return change / 2 * time * time * time + begin;\n }\n else {\n return change / 2 * ((time -= 2) * time * time + 2) + begin;\n }\n };\n this.elasticOut = function (time, begin, change, duration, amplitude, period) {\n var overshoot;\n if (amplitude == null) {\n amplitude = null;\n }\n if (period == null) {\n period = null;\n }\n if (time === 0) {\n return begin;\n }\n else if ((time = time / duration) === 1) {\n return begin + change;\n }\n else {\n if (!(period != null)) {\n period = duration * 0.3;\n }\n if (!(amplitude != null) || amplitude < Math.abs(change)) {\n amplitude = change;\n overshoot = period / 4;\n }\n else {\n overshoot = period / (2 * Math.PI) * Math.asin(change / amplitude);\n }\n return (amplitude * Math.pow(2, -10 * time)) * Math.sin((time * duration - overshoot) * (2 * Math.PI) / period) + change + begin;\n }\n };\n this.elasticIn = function (time, begin, change, duration, amplitude, period) {\n var overshoot;\n if (amplitude == null) {\n amplitude = null;\n }\n if (period == null) {\n period = null;\n }\n if (time === 0) {\n return begin;\n }\n else if ((time = time / duration) === 1) {\n return begin + change;\n }\n else {\n if (!(period != null)) {\n period = duration * 0.3;\n }\n if (!(amplitude != null) || amplitude < Math.abs(change)) {\n amplitude = change;\n overshoot = period / 4;\n }\n else {\n overshoot = period / (2 * Math.PI) * Math.asin(change / amplitude);\n }\n time -= 1;\n return -(amplitude * Math.pow(2, 10 * time)) * Math.sin((time * duration - overshoot) * (2 * Math.PI) / period) + begin;\n }\n };\n this.elasticInOut = function (time, begin, change, duration, amplitude, period) {\n var overshoot;\n if (amplitude == null) {\n amplitude = null;\n }\n if (period == null) {\n period = null;\n }\n if (time === 0) {\n return begin;\n }\n else if ((time = time / (duration / 2)) === 2) {\n return begin + change;\n }\n else {\n if (!(period != null)) {\n period = duration * (0.3 * 1.5);\n }\n if (!(amplitude != null) || amplitude < Math.abs(change)) {\n amplitude = change;\n overshoot = period / 4;\n }\n else {\n overshoot = period / (2 * Math.PI) * Math.asin(change / amplitude);\n }\n if (time < 1) {\n return -0.5 * (amplitude * Math.pow(2, 10 * (time -= 1))) * Math.sin((time * duration - overshoot) * ((2 * Math.PI) / period)) + begin;\n }\n else {\n return amplitude * Math.pow(2, -10 * (time -= 1)) * Math.sin((time * duration - overshoot) * (2 * Math.PI) / period) + change + begin;\n }\n }\n };\n this.expoIn = function (time, begin, change, duration) {\n if (time === 0) {\n return begin;\n }\n return change * Math.pow(2, 10 * (time / duration - 1)) + begin;\n };\n this.expoOut = function (time, begin, change, duration) {\n if (time === duration) {\n return begin + change;\n }\n return change * (-Math.pow(2, -10 * time / duration) + 1) + begin;\n };\n this.expoInOut = function (time, begin, change, duration) {\n if (time === 0) {\n return begin;\n }\n else if (time === duration) {\n return begin + change;\n }\n else if ((time = time / (duration / 2)) < 1) {\n return change / 2 * Math.pow(2, 10 * (time - 1)) + begin;\n }\n else {\n return change / 2 * (-Math.pow(2, -10 * (time - 1)) + 2) + begin;\n }\n };\n this.linearIn = function (time, begin, change, duration) {\n return this.linearNone(time, begin, change, duration);\n }.bind(this);\n this.linearOut = function (time, begin, change, duration) {\n return this.linearNone(time, begin, change, duration);\n }.bind(this);\n this.linearInOut = function (time, begin, change, duration) {\n return this.linearNone(time, begin, change, duration);\n }.bind(this);\n this.quadIn = function (time, begin, change, duration) {\n return change * (time = time / duration) * time + begin;\n };\n this.quadOut = function (time, begin, change, duration) {\n return -change * (time = time / duration) * (time - 2) + begin;\n };\n this.quadInOut = function (time, begin, change, duration) {\n if ((time = time / (duration / 2)) < 1) {\n return change / 2 * time * time + begin;\n }\n else {\n return -change / 2 * ((time -= 1) * (time - 2) - 1) + begin;\n }\n };\n this.quartIn = function (time, begin, change, duration) {\n return change * (time = time / duration) * time * time * time + begin;\n };\n this.quartOut = function (time, begin, change, duration) {\n return -change * ((time = time / duration - 1) * time * time * time - 1) + begin;\n };\n this.quartInOut = function (time, begin, change, duration) {\n if ((time = time / (duration / 2)) < 1) {\n return change / 2 * time * time * time * time + begin;\n }\n else {\n return -change / 2 * ((time -= 2) * time * time * time - 2) + begin;\n }\n };\n this.quintIn = function (time, begin, change, duration) {\n return change * (time = time / duration) * time * time * time * time + begin;\n };\n this.quintOut = function (time, begin, change, duration) {\n return change * ((time = time / duration - 1) * time * time * time * time + 1) + begin;\n };\n this.quintInOut = function (time, begin, change, duration) {\n if ((time = time / (duration / 2)) < 1) {\n return change / 2 * time * time * time * time * time + begin;\n }\n else {\n return change / 2 * ((time -= 2) * time * time * time * time + 2) + begin;\n }\n };\n this.sineIn = function (time, begin, change, duration) {\n return -change * Math.cos(time / duration * (Math.PI / 2)) + change + begin;\n };\n this.sineOut = function (time, begin, change, duration) {\n return change * Math.sin(time / duration * (Math.PI / 2)) + begin;\n };\n this.sineInOut = function (time, begin, change, duration) {\n return -change / 2 * (Math.cos(Math.PI * time / duration) - 1) + begin;\n };\n this.duration = parameters.duration * 1000;\n this.destination = parameters.destination;\n this.origin = parameters.origin;\n this.update = parameters.update;\n this.complete = parameters.complete;\n this.start = parameters.start;\n this.delay = parameters.delay;\n this.overshoot = parameters.overshoot;\n }" ]
[ "0.6354279", "0.6190717", "0.6190717", "0.6190717", "0.6190717", "0.61040413", "0.60792285", "0.6077523", "0.60416996", "0.60416996", "0.60200083", "0.59077847", "0.5853741", "0.58002824", "0.55639994", "0.54656386", "0.54378134", "0.54291695", "0.5385938", "0.5377736", "0.53717923", "0.53530633", "0.5347702", "0.5333504", "0.53018326", "0.52975", "0.5250652", "0.5249318", "0.52312124", "0.52085656", "0.51682276", "0.51682276", "0.51493496", "0.5114118", "0.5113592", "0.5092794", "0.508028", "0.50711864", "0.506889", "0.50686496", "0.50588924", "0.50577766", "0.5050311", "0.5023736", "0.5010973", "0.5008493", "0.50049", "0.49605644", "0.4960031", "0.49570647", "0.4932304", "0.4930842", "0.4911899", "0.4907753", "0.490725", "0.4905039", "0.48926494", "0.48877218", "0.4881013", "0.48679715", "0.48644045", "0.4853132", "0.48519358", "0.48435414", "0.4838155", "0.48299944", "0.48127502", "0.4805413", "0.4793027", "0.4790863", "0.47792628", "0.47758216", "0.47624943", "0.47614762", "0.47549313", "0.47437203", "0.4741338", "0.47408998", "0.47383022", "0.47376537", "0.47370207", "0.4732525", "0.47311172", "0.47240192", "0.47092524", "0.4708295", "0.47000626", "0.46972415", "0.4697196", "0.4695537", "0.46943632", "0.46922117", "0.46914014" ]
0.6131738
12
Helper function for reloading list of sites.
function reloadSites() { function reload() { sites.get() .then(function(sites) { $scope.ui.sites = sites; }); } /* * Reload sites mutliple times, because sometimes updates to list of sites * aren't ready immediately. */ // Reload sites immediately. reload(); // Reload sites again after 5 seconds. setTimeout(reload, 1000 * 5); // Reload sites again after 15 seconds. setTimeout(reload, 1000 * 15); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reloadRedirectsList() {\n\t$('input:text').val('http://');\n\tshowSpinner();\n\t$.getJSON($('#website_url').val() + 'backend/backend_seo/loadredirectslist/', function(response) {\n\t\thideSpinner();\n\t\t$('#redirects-list').html(response.redirectsList);\n\t\tcheckboxRadioStyle();\n\t});\n}", "function refreshExtensionList() {\n chrome.management.getAll(function (extensions) {\n extensionsList = extensions;\n //Remove this extension from the list\n for(let index in extensionsList){\n if(extensionsList[index].id == chrome.runtime.id){\n // splice(i, x) removes x values from an array starting at index i\n extensionsList.splice( index, 1 );\n }\n }\n // get the user's extension settings and populate the websiteMap on startup\n chrome.storage.sync.get(['ExtensionSettings'], function(result) {\n websiteMap = settingsToMap(result['ExtensionSettings']);\n });\n\n });\n\n // this should probably be moved elsewhere but it works well enough here for now\n chrome.storage.sync.get(['websites'], function(results){\n usersetWebsites = results.websites\n });\n}", "function refresh() {\n fetchNewestLists();\n}", "static reload() {\n for(let connection of LiveReload._connections) {\n connection.write(\"data: reload\\n\\n\");\n LiveReload._connections.slice(LiveReload._connections.indexOf(connection), 1);\n }\n }", "function getSites () {\n $.getJSON(\"../monitoring/getSites\", (sites) => {\n sites.forEach((x) => { sites_list[x.site_code] = x.site_id; });\n });\n}", "function update_site_list(names) {\n var list = \"\",\n current = localStorage.getItem(\"current_site\");\n $.each(names,function(a,b){\n list += \"<option \"+(b==current ? \"selected \":\"\")+\"value='\"+b+\"'>\"+b+\"</option>\";\n });\n\n $(\"#site-selector\").html(list);\n try {\n $(\"#site-selector\").selectmenu(\"refresh\");\n } catch (err) {\n }\n}", "function update_site(newsite) {\n var sites = getsites();\n if (newsite in sites) {\n localStorage.setItem(\"current_site\",newsite);\n check_configured();\n }\n newload();\n}", "function getExistingSites(){\n $.ajax({\n url: \"/wraith/getExistingSites\",\n type: \"GET\",\n\n success:function(response){\n populateExistingSites(response);\n },\n error:function(){\n resultsCont.prepend(\"Problem updating results, please refresh the page manually.\");\n } \n });\n }", "async reload() {}", "function refreshList() {\n getLinks().then(\n data => {\n data.forEach(element => {\n addIcon(element.url, element.icon, element.id);\n });\n },\n error => {\n console.log('error: ', error)\n }\n );\n}", "function reloadListen() {\r\n\tthis.listen = new Array();\r\n\tfor (liste in this.arbeiten) {\r\n\t\tif(this.arbeiten[liste].length > 0) {\r\n\t\t\tthis.listen.push(liste);\r\n\t\t}\r\n\t}\r\n}", "function refreshListeners() {\n console.log('refreshing listeners');\n refreshCache();\n setTimeout(function () {\n\n for (let i = 1; i < siteCache.dynamicIds.length; i++) {\n let urlString = siteCache.dynamicIds[i];\n\n if (urlString !== null) {\n console.log(`refreshing listener for ${urlString}`)\n //first we remove the listener\n chrome.webNavigation.onCompleted.removeListener(siteCache[urlString]);\n //then we add it with the same function it should be the same? \n var newListener = function (details) {\n triggerOnCompleted(details);\n };\n chrome.webNavigation.onCompleted.addListener(newListener, { url: [{ hostContains: urlString }] });\n //then we need to update our site settings in our cache to make sure the listener function matches\n siteCache[urlString] = newListener;\n }\n };\n console.log('url listeners have been refreshed. refreshing storage.')\n //and finally after all of those listeners have been replaced, we update our sync storage\n chrome.storage.sync.set({ syncCache: siteCache });\n }, 20);\n}", "function refreshList() {\n axios.get(url + HoldRoute + \"/withtools/json\").then((response) => {\n setList(response.data);\n });\n }", "function loadQueryListUpdate(){\n\treturn $.ajax({\n\t\turl: 'index.php',\n\t\ttype: 'post',\n\t\tdataType: \"json\",\n\t\tdata: {'site' : VAR_SITE, 'ajaxCont' : 'LCQueries' },\n\t});\n}", "function reload(done) {\n server.reload();\n done();\n}", "function reloadList (type) {\n switch (type) {\n case \"W\":\n createFileIfNotExists(whitelist);\n wltmp = fs.readFileSync(whitelist).toString(\"utf-8\").split(os.EOL);\n break;\n default:\n createFileIfNotExists(blacklist);\n bltmp = fs.readFileSync(blacklist).toString(\"utf-8\").split(os.EOL);\n }\n}", "function reload() { if(!production) { bsyncReload(); } }", "function reload(){\n\tsetTimeout(function(){\n\t\t\tgetTweets();\n\t\t}, reloadInterval*1000);\n}", "function resetPlayed() {\n for (i = 0; i < sitesList.length; i++) {\n sitesList[i][1] = false;\n }\n}", "function hardReload() {\n location.reload();\n}", "function refreshServers(servers) {\n if (!servers) {\n ServerUtils().getAllServer(function(servers) {\n refreshServers(servers);\n });\n return;\n }\n\n var len = servers.length;\n\n var html = \"\";\n for (var i = 0; i < len; i++) {\n var server = ServerUtils(servers[i]);\n if ((!server.getURL()) || (!server.get('name'))) {\n alert('a not well formed server has been found');\n } else {\n html += '<li>';\n html += ' <a class=\"link\" href=\"javascript:NXCordova.openServer(\\'' + server.getURL() + '\\', \\'' + server.get('login') + '\\',\\'' + server.get('password') + '\\')\" data-icon=\"delete\">' + server.get('name') + '</a>';\n html += ' <span class=\"ui-icon ui-icon-arrow-r ui-icon-shadow\">&nbsp;</span>'; //Hack to force arrow icon.\n html += ' <a class=\"btnDelete\" style=\"display:none;\" href=\"#\" data-icon=\"delete\">Delete</a>';\n html += '</li>';\n }\n }\n\n $('#servers_list').html(html);\n $('#servers_list .btnDelete').click(function() {\n var that = $(this);\n var serverName = that.parents('li').find('a.link').html();\n ServerUtils({\n name: serverName\n }).remove(function() {\n ServerUtils().getAllServer(function(servers) {\n refreshServers(servers);\n });\n });\n })\n // Not sure about this timeout ...\n setTimeout(function() {\n $('#servers_list').listview('refresh')\n }, 50)\n}", "function checkURL(sites) {\n console.log(`🕵️ Checking for updates...`);\n sites.forEach(async (site, index) => {\n await huntForChanges(index);\n\n });\n}", "function autoReload() {\n\tlocation.reload();\n}", "function processReloadList(parm) {\n \n var args = {\n ID: gw_com_api.v_Stream.msg_refreshPage,\n to: { type: \"MAIN\" },\n data: { page: \"SRM_OpenSrc_List\", title: \"제안 현황\", param: {} }\n }\n var sKey = \"\";\n\n args.data.param = [{ name: \"reload\", value: \"1\" }];\n gw_com_module.streamInterface(args);\n\n}", "function refreshAllSettings()\n{\n\tchrome.windows.getAll({populate:true}, \n\tfunction(windowList)\n\t{\n\t\twindowList.forEach(\n\t\tfunction(w)\n\t\t{\n\t\t\tw.tabs.forEach(\n\t\t\tfunction(t)\n\t\t\t{\n\t\t\t chrome.tabs.sendRequest(t.id, \n \t\t\t{ \n\t\t\t action : \"refresh\",\n\t\t\t numbers: window.localStorage[AutoExtractNumbers],\n\t\t\t switched: window.localStorage[hightlightingSwitched],\n\t\t\t names : window.localStorage[NameHighlighterEnabled]\n\t\t\t },\n\t\t\t function(response) {});\n\t\t\t});\n\t\t});\t\n\t});\n}", "function reloadPosters() {\n let list = document.querySelector(\"#posters ul\");\n list.innerHTML = \"\";\n populatePosters();\n}", "function updateSeconds(site, list){\n if (site in list) {\n count = list[site].intervalSeconds; // getting count\n list[site].intervalSeconds = count + 1; //updates\n totalCount = list[site].totalSeconds;\n list[site].totalSeconds = totalCount +1;\n chrome.storage.local.set({\"urlList\": list}, function() {}); //overwriting the list\n formatBadge(list[site].intervalSeconds); // formats and displays badge\n mainNotification(count, site); // runs roast time algorithm\n }else {\n setBadge(\"\", grey);\n }\n}", "function refreshEverything() {\n\tgetAll(refreshEverythingCallback);\n}", "function reload() {\n\twindow.location.reload();\n\tif (sync.online) {\n\t\t//window.applicationCache.update();\n\t}\n}", "function change_site(site) {\n var sites = getsites();\n\n var ip = $(\"#cip-\"+site).val();\n var pw = $(\"#cpw-\"+site).val();\n\n site = site.replace(/_/g,\" \");\n\n if (ip !== \"\") sites[site][\"os_ip\"] = ip;\n if (pw !== \"\") sites[site][\"os_pw\"] = pw;\n\n localStorage.setItem(\"sites\",JSON.stringify(sites));\n\n if (site === localStorage.getItem(\"current_site\")) {\n check_configured();\n newload();\n }\n}", "function entirePageReload() {\n // We invalidate some kind of JS cache thing so that when we reload we\n // re-eval all the global JS.\n var obs = Cc[\"@mozilla.org/observer-service;1\"]\n .getService(Ci.nsIObserverService);\n obs.notifyObservers(null, \"startupcache-invalidate\", null);\n\n var xulMainWindow = window\n .QueryInterface(Ci.nsIInterfaceRequestor)\n .getInterface(Ci.nsIWebNavigation)\n .QueryInterface(Ci.nsIDocShellTreeItem)\n .rootTreeItem\n .QueryInterface(Ci.nsIInterfaceRequestor)\n .getInterface(Ci.nsIDOMWindow);\n var browserElem =\n xulMainWindow.document.getElementById(XUL_MAIN_CONTENT_ID);\n browserElem.goHome();\n}", "function reloadAll(){\n\tyearOpt = [];\n\tmonthOpt = [];\n\tweekOpt = [];\n\t\n\treloadWeekly();\n\treloadMonthly();\n\treloadYearly();\n}", "function update_site(newsite) {\n storage.get(\"sites\",function(data){\n var sites = (data.sites === undefined || data.sites === null) ? {} : JSON.parse(data.sites);\n if (newsite in sites) {\n storage.set({\"current_site\":newsite},check_configured);\n }\n });\n}", "function refreshAll() {\n browserProxy.getStoredPages().then(fillStoredPages);\n browserProxy.getRequestQueue().then(fillRequestQueue);\n browserProxy.getNetworkStatus().then(function(networkStatus) {\n $('current-status').textContent = networkStatus;\n });\n browserProxy.getLimitlessPrefetchingEnabled().then(function(enabled) {\n $('limitless-prefetching-checkbox').checked = enabled;\n });\n browserProxy.getPrefetchTestingHeaderValue().then(function(value) {\n switch (value) {\n case 'ForceEnable':\n $('testing-header-enable').checked = true;\n break;\n case 'ForceDisable':\n $('testing-header-disable').checked = true;\n break;\n default:\n $('testing-header-default').checked = true;\n }\n });\n refreshLog();\n}", "shouldReloadAll () { return true; }", "function loadWebsites(){\r\n storage.local.get([\"customWebsites\"], function(items){\r\n /* Default websites loading */\r\n\r\n if(items.customWebsites !== undefined){\r\n var customWebsites = items.customWebsites;\r\n var table = document.getElementById(\"customTable\");\r\n table.innerHTML = tableHead;\r\n\r\n for(var index in customWebsites){\r\n var website = customWebsites[index];\r\n var checked = website.on ? \"checked\" : \"\";\r\n var element = fillTemplate(tableElementTemplate, {\"id\": \"custom\"+index, \"el\": website.url, \"checked\": checked});\r\n\r\n table.innerHTML += element;\r\n }\r\n\r\n attachEvents();\r\n }\r\n });\r\n }", "async function reloadEverything() {\n reloadDebounced();\n}", "function reload(origin) {\n if (!isRunning(origin))\n return;\n\n var app = runningApps[origin];\n app.reload();\n }", "function refreshImages() {\n var images = document.querySelectorAll('img[data-src]');\n\n for (var i = 0; i < images.length; i++) {\n ImageLoader.load(images[i]);\n }\n }", "function refreshNodes() {\n $(\"#listOfURLs\").empty();\n window.browser.storage.sync.get(\"urlStore\", function (results) {\n console.log(\"Pulling values using sync.get --> \");\n console.log(results);\n //Creates List\n createList(results.urlStore);\n });\n\n window.browser.storage.sync.get(Object.keys(toggles), function (results) {\n Object.keys(toggles).forEach(function (k) {\n toggles[k] = results[k] === undefined ? false : results[k];\n\n if (toggles[k]) {\n $(\"input[id=\" + k + \"]\").prop(\"checked\", true);\n }\n });\n });\n}", "function reloadStyles () {\n\tvar time = +new Date();\n\n\t// get through all css links\n\tArray.prototype.slice.call(document.head.getElementsByTagName('link')).forEach(function ( tag ) {\n\t\t// get base name, modify and apply\n\t\ttag.href = tag.href.split('?_')[0] + '?_=' + time;\n\t});\n}", "function reload() {\n\tbrowserSync.reload();\n}", "refreshLists(lists) {\n // GET THE UI CONTROL WE WILL APPEND IT TO\n let listsElement = document.getElementById(\"sidebar-list\");\n listsElement.innerHTML = \"\";\n\n for (let i = 0; i < lists.length; i++) {\n let list = lists[i];\n this.appendListToView(list);\n }\n }", "function reload() {\n browserSync.reload();\n}", "function autoReloadPage() {\n var fs = require('fs');\n\n fs.watch('./', [], function () {\n if (location)\n location.reload(false);\n });\n}", "function first_start() {\n // add sites 1 by 1 in sync\n blackListSite(\"facebook.com\", function() {\n blackListSite(\"youtube.com\", function() {\n blackListSite(\"instagram.com\");\n });\n });\n}", "static getWebsites() {\r\n let websites;\r\n if (localStorage.getItem('websites') === null) {\r\n websites = [];\r\n } else {\r\n websites = JSON.parse(localStorage.getItem('websites'));\r\n }\r\n return websites;\r\n }", "function reload() {\n initialize();\n }", "function refresh() {\n\tif( active ) {\n\t\trequestAnimFrame( refresh );\n\t\t\n\t\tfor( var i = 0, len = lists.length; i < len; i++ ) {\n\t\t\tlists[i].update();\n\t\t}\n\t}\n}", "function getsites() {\n var sites = localStorage.getItem(\"sites\");\n sites = (sites === null) ? {} : JSON.parse(sites);\n return sites;\n}", "function reloadClassList(val){\n\t$.get('gen/ajaxGen.php',{reload:val},function(result,textStatus,xhr){\n\t\t$('.table-list').remove();\n\t\t$('#genlist').after('<ol class=\"db table-list\">'+result+'</ol>');\n\t});\n}", "function repeat001() {\n location.reload();\n}", "function reloadTiles() {\n var pages = ntpApiHandle.mostVisited;\n var cmds = [];\n for (var i = 0; i < Math.min(MAX_NUM_TILES_TO_SHOW, pages.length); ++i) {\n cmds.push({cmd: 'tile', rid: pages[i].rid});\n }\n cmds.push({cmd: 'show'});\n\n $(IDS.TILES_IFRAME).contentWindow.postMessage(cmds, '*');\n}", "function reload() {\n location.reload();\n }", "reload () {\n for (const filepath of this._cached) {\n this._client.unload(filepath)\n this._cached.shift()\n this.register(filepath)\n }\n return this\n }", "function refresh() {\nsetInterval(\"location.reload()\",1000);\n}", "function reFresh() {\n location.reload(true);\n}", "function refreshTodayProjectsList(value) {\r\n loadContent(\"../view/today.php?refreshProjects=true\", \"Today_project\",\r\n \"todayProjectsForm\", false);\r\n}", "shouldBackgroundReloadAll() {\n return false;\n }", "function showAll(){\n location.reload();\n}", "function getSites(force, callback)\n {\n if(force) _cache.sites = null;\n if(_cache.sites != null && _cache.sites != 'undefined')\n {\n callback(this, $.merge([], _cache.sites));\n return;\n }\n\n $.PercServiceUtils.makeJsonRequest(\n $.perc_paths.SITES_ALL + \"/\", $.PercServiceUtils.TYPE_GET, false,\n function(status, result){\n getSitesCallback(status,result,callback);\n }\n ,null, null // abort callback function not needed in this case\n );\n }", "function moreWisdom() {\n location.reload();\n}", "function reload() {\n location.reload(true);\n}", "function populateSitesOnMap() {\n\n\tclearData();\n\n $.when(loadSites()).done(function(results) {\n\n\t\tif (sites.length) {\n\n\t\t\tlog('sites', sites);\n\t\t\tfor (var s in sites) {\n\t\t\t\t// log('Placing marker', sites[s].location.geo);\n\t\t\t\tvar marker = new google.maps.Marker({\n\t\t\t\t\tposition: new google.maps.LatLng(sites[s].location.geo[1], sites[s].location.geo[0]),\n\t\t\t\t\tmap: map,\n\t\t\t\t\t// label: \"A\",\n\t\t\t\t\ticon: {url: 'http://maps.gstatic.com/mapfiles/markers2/marker.png'},\n\t\t\t\t\tanimation: google.maps.Animation.DROP,\n\t\t\t\t\ttitle: sites[s].name\n\t\t\t\t});\n\n\t\t\t\tmarkers.push(marker);\n\t\t\t\tmarker.setMap(map);\n\t\t\t\tbounds.extend(marker.position);\n\n\t\t\t\tbindInfoWindow(marker, map, infowindow, sites[s]);\n\t\t\t}\n\n\t\t\tmap.fitBounds(bounds);\n\n\t\t} else {\n\n $('#noSitesFound').modal();\n\n\t\t}\n\n });\n\n}", "function updateSources() {\n\tlocal.http.dispatch({ url:'httpl://config.env/apps', headers:{ accept:'application/json' }}).then(\n\t\tfunction(res) {\n\t\t\tvar cfgs = res.body;\n\t\t\t// add new\n\t\t\tvar sourceUrls = [], url;\n\t\t\tfor (var appId in cfgs) {\n\t\t\t\tif (!cfgs[appId]._active || appId == config.appId)\n\t\t\t\t\tcontinue;\n\t\t\t\turl = cfgs[appId].startpage;\n\t\t\t\taddSource(appId, url);\n\t\t\t\tsourceUrls.push(url);\n\t\t\t}\n\t\t\t// remove no-longer-present\n\t\t\tfor (url in indexSources) {\n\t\t\t\tif (sourceUrls.indexOf(url) === -1)\n\t\t\t\t\tremoveSource(url);\n\t\t\t}\n\t\t},\n\t\tfunction(res) {\n\t\t\tconsole.log('Failed to fetch active applications from config.env', res);\n\t\t}\n\t);\n}", "function reload() {\n\t\tvar body = $(\"body\");\n\n\t\tbody.on('click', \"#link_home\", function () {\n\t\t\t$(\".sidebar_item\").removeClass('active');\n\t\t\t$(\"#link_home\").addClass(\"active\");\n\t\t\tloadHome();\n\t\t});\n\n\t\tbody.on('click', \"#link_leaderboard\", function () {\n\t\t\t$(\".sidebar_item\").removeClass('active');\n\t\t\t$(\"#link_leaderboard\").addClass(\"active\");\n\t\t\tloadLeaderboard();\n\t\t});\n\n\t\tbody.on('click', \"#link_bets\", function () {\n\t\t\t$(\".sidebar_item\").removeClass('active');\n\t\t\t$(\"#link_bets\").addClass(\"active\");\n\t\t\tloadBets();\n\t\t});\n\n\t\tbody.on('click', \"#link_vouchers\", function () {\n\t\t\t$(\".sidebar_item\").removeClass('active');\n\t\t\t$(\"#link_vouchers\").addClass(\"active\");\n\t\t\tloadVouchers();\n\t\t});\n\n\t\tbody.on('click', \"#link_manual\", function () {\n\t\t\t$(\".sidebar_item\").removeClass('active');\n\t\t\t$(\"#link_manual\").addClass(\"active\");\n\t\t\tloadManual();\n\t\t});\n\t}", "function reloadForUpdate() {\n var backup = {};\n backup.miniplayerOpen = miniplayer !== null;\n backup.nowPlayingSent = song.nowPlayingSent;\n backup.scrobbled = song.scrobbled;\n backup.songFf = song.ff;\n backup.songPosition = song.position;\n backup.songInfo = song.info;\n backup.songTimestamp = song.timestamp;\n backup.loved = song.loved;\n backup.volumeBeforeMute = volumeBeforeMute;\n localStorage.updateBackup = JSON.stringify(backup);\n //sometimes the onDisconnect listener in the content script is not triggered on reload(), so explicitely disconnect here\n if (googlemusicport) {\n googlemusicport.onDisconnect.removeListener(onDisconnectListener);\n googlemusicport.disconnect();\n }\n parkedPorts.forEach(function(port) {\n port.onDisconnect.removeListener(removeParkedPort);\n port.disconnect();\n });\n setTimeout(function() { chromeRuntime.reload(); }, 1000);//wait a second til port cleanup is finished\n }", "function refresh() {\n location.reload(true);\n}", "function reload() {\n location.reload()\n}", "function createBlockedList() {\n\tloadBlockedSites()\n\t\t.then(unsortedSites => {\n\t\t\t// grab the keys from the storage object\n\t\t\tconst unsortedKeys = Object.keys(unsortedSites);\n\n\t\t\t// create a new array to store the site objects\n\t\t\tconst unsortedSitesTransformed = [];\n\n\t\t\t// go through each object key and get the site matching the key\n\t\t\tfor (const unsortedKey of unsortedKeys) {\n\t\t\t\tconst unsortedSite = unsortedSites[unsortedKey];\n\n\t\t\t\t// add the site to the array\n\t\t\t\tunsortedSitesTransformed.push(unsortedSite);\n\t\t\t}\n\n\t\t\t// sort the array by date descending\n\t\t\treturn unsortedSitesTransformed.sort((a, b) => b.added_at - a.added_at);\n\t\t})\n\t\t.then(sites => {\n\n\t\t\tconsole.log(sites);\n\n\t\t\t$intermittentBlockedSites.innerHTML = '';\n\t\t\t$permanentBlockedSites.innerHTML = '';\n\n\t\t\tfor (const site of sites) {\n\n\t\t\t\t// create url element\n\t\t\t\tconst siteElementContainer = document.createElement('div');\n\t\t\t\tsiteElementContainer.className = 'blocked-site-container';\n\n\t\t\t\tconst siteElement = document.createElement('div');\n\t\t\t\tsiteElement.className = 'blocked-site';\n\n\t\t\t\t// create the favicon for the url element\n\t\t\t\tconst siteFavicon = document.createElement('img');\n\t\t\t\tsiteFavicon.src = site.favicon;\n\n\t\t\t\tconst siteDeleter = document.createElement('a');\n\t\t\t\tsiteDeleter['data-url'] = site.url;\n\t\t\t\tsiteDeleter.className = 'blocked-site-remove';\n\t\t\t\tsiteDeleter.innerHTML = '<i class=\"fa fa-times\"></i>';\n\t\t\t\tsiteDeleter.href = '#';\n\n\t\t\t\tconst siteTypeSwitcher = document.createElement('a');\n\t\t\t\tsiteTypeSwitcher['data-url'] = site.url;\n\t\t\t\tsiteTypeSwitcher.className = 'blocked-site-switcher';\n\t\t\t\tsiteTypeSwitcher.innerHTML = '<i class=\"fa fa-exchange-alt\"></i>';\n\t\t\t\tsiteTypeSwitcher.href = '#';\n\n\t\t\t\t// create the url text\n\t\t\t\tconst siteText = document.createTextNode(site.url);\n\n\t\t\t\t// add the favicon and text to the url\n\t\t\t\tsiteElement.append(siteFavicon);\n\t\t\t\tsiteElement.append(siteDeleter);\n\t\t\t\tsiteElement.append(siteText);\n\t\t\t\tsiteElement.append(siteTypeSwitcher);\n\n\t\t\t\tsiteElementContainer.append(siteElement);\n\n\t\t\t\t// add the url to the appropriate blocked sites list\n\t\t\t\tif(site.type === 'intermittent') {\n\t\t\t\t\t$intermittentBlockedSites.append(siteElementContainer);\n\t\t\t\t} else {\n\t\t\t\t\t$permanentBlockedSites.append(siteElementContainer);\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\t.then(() => {\n\t\t\tbackground.resetBlockedSites();\n\t\t})\n}", "function refreshJobs() {\n let serverCount = activeServers.length;\n $.each(activeServers, function (serverIndex, serverUrl) {\n $.ajax({\n url: serverUrl + \"/json?mode=joblist\",\n type: \"get\",\n timeout: 2000,\n error: function () {\n --serverCount;\n },\n success: function (data) {\n serverCount = refreshJobsSuccess(data, serverIndex, serverUrl, serverCount);\n },\n complete: function (data) {\n refreshJobsComplete();\n if(typeof data !== 'undefined' && data.responseJSON) {\n checkNotifications(data.responseJSON);\n }\n }\n });\n });\n}", "function refreshScriptList() {\n \n // prune the script list of duplicate/weird entries\n state.scriptList = _.reject(_.uniq(state.scriptList), function(e){ \n return e.data.ID == -1; \n }); \n\n $('#script-list-ul').html(renderScriptList(state.scriptList))\n .find('li')\n .click(function(evt) {\n\n // if we're already looking at the script, no need to re-open it!\n if (evt.target.className.indexOf('viewing')!==-1) \n return;\n\n\n var $target = $(evt.target);\n\n // go up the tree, find the element that has a data-id attribute.\n if (!$target.data('id'))\n $target = $target.parents('.script-item');\n\n // now, $target should contain li.script-item[data-id=something]\n\n $target.siblings().removeClass('viewing');\n $target.addClass('viewing');\n var id = $target.data('id');\n\n // from id, display a script\n displayScriptByID(id);\n }); \n }", "function load_domains() {\n chrome.storage.sync.get({ includedDomainsList: [] }, function (items) {\n // Process the domains\n var includedDomains = document.getElementById('includedDomains');\n for (var i = 0; i < items.includedDomainsList.length; i++) {\n var url = items.includedDomainsList[i];\n var opt = document.createElement('option');\n opt.text = url;\n opt.value = url;\n includedDomains.add(opt);\n }\n });\n chrome.storage.sync.get({ excludedDomainsList: [] }, function (items) {\n // Process the domains\n var excludedDomains = document.getElementById('excludedDomains');\n for (var i = 0; i < items.excludedDomainsList.length; i++) {\n var url = items.excludedDomainsList[i];\n var opt = document.createElement('option');\n opt.text = url;\n opt.value = url;\n excludedDomains.add(opt);\n }\n });\n}", "function reload(done) {\n browser.reload();\n done();\n }", "refreshLists(lists) {\n // GET THE UI CONTROL WE WILL APPEND IT TO\n let listsElement = document.getElementById(\"todo-lists-list\");\n listsElement.innerHTML = \"\";\n\n for (let i = 0; i < lists.length; i++) {\n let list = lists[i];\n this.appendNewListToView(list);\n }\n }", "function refresh() {\r\nsetInterval(\"location.reload()\",2000);\r\n}", "function reload() {\n location.reload();\n}", "function reloadCurrentPage(){\n\tif(lastWindowW <= bpSmall && windowW >= bpSmall && $('.map-projects').length == 1){\t\n\t location.reload(true);\n\t lastWindowW = windowW; \n\t}\n}", "function simulateReload() {\n // Remove all elements which were dynamicall added to the body element\n const bodyElemsToRemove = document.querySelectorAll(\n \"body > :not(script):not(#___gatsby)\"\n )\n bodyElemsToRemove.forEach(elem => elem.remove())\n // $(\"body\").off()\n recreateNode(document.querySelector(\"body\"))\n }", "function reload () {\n location.reload()\n}", "function refresh() {\n // do not use window.location.reload() because it may cause redundant POST request\n // do not use direct assigning to window.location.href\n // because each reload will be stored in browsing history\n // do not use window.location.href as a source, because it may contain garbage\n window.location.replace($('.inner-navbar__menu-center > a.pushed').attr('href'));\n }", "function reload(){\n\t\tlocation.reload();\n\t}", "function reload(done) {\n browser.reload();\n done();\n}", "function reload(done) {\n browser.reload();\n done();\n}", "function reload(done) {\n browser.reload();\n done();\n}", "function reload(done) {\n browser.reload();\n done();\n}", "function foodCubUpdater() {\n let currentUrl = window.location.href;\n setInterval( function() {\n if( window.location.href != currentUrl ) {\n currentUrl = window.location.href;\n setTimeout( function() {\n foodCubGetScopeTries = 0;\n foodCubGetScopes();\n }, 2000 ); // Delay just to get rid of the old items\n }\n }, 200 );\n}", "function force_reload()\n {\n window.location.reload();\n }", "function reFresh() {\r\n location.reload(true)\r\n //window.setInterval(\"reFresh()\",2000);\r\n}", "refreshLists(lists) {\n // GET THE UI CONTROL WE WILL APPEND IT TO\n let listsElement = document.getElementById(\"todo-lists-list\");\n listsElement.innerHTML = \"\";\n for (let i = 0; i < lists.length; i++) {\n let list = lists[i];\n this.appendNewListToView(list);\n }\n }", "function reload_later(interval_seconds)\n{\n setTimeout(check_server_and_reload, (interval_seconds * 1000));\n}", "function refreshList(){\n let newLocalTime = (new Date()).toLocaleTimeString();\n let listItemsToUpdate = Array.from(document.getElementsByClassName('item'));\n\n if (listItemsToUpdate && listItemsToUpdate.length>0) {\n listItemsToUpdate.map((item)=> ( item.innerHTML = newLocalTime));\n }\n}", "reload() {\n for (const str of this.strings.values()) str.reload();\n }", "refreshList(taskArray) {\n for (let tasks of taskArray){\n this.updateDB(tasks, 'default');\n }\n }", "[types.RELOAD] (state,{ data }) {\n state.listData.length = 0;\n state.listData = data\n }", "function refreshWorklistPage() {\r\n\t\ttry {\r\n\t\t\tWorklistStorage.set(\"StoredDebugMode\", gblDebugMode);\r\n\t\t\twindow.location.reload(true);\r\n\t\t} catch (error) {\r\n\t\t\tshowErrorMessage(error.message, \"refreshWorklistPage\", \"\", \"\");\r\n\t\t}\r\n\t}", "function listServers() { \n\tlet serverItems = document.getElementsByClassName(\"serverListItem\");\n\n\twhile(serverItems.length > 0) {\n\t\tserverItems[0].parentNode.removeChild(serverItems[0]); // remove the available servers from the list each time the function is called\n\t}\n\t\n\tfor (let servers in serverList) {\n\t\tlet serverTime = serverList[servers].lastSeen;\n\n\t\tif (new Date() > new Date(serverTime.getTime() + 5000)) {\n\t\t\tdelete serverList[servers]; // remove a server from the list if it hasn't broadcast in 5 seconds\n\t\t} else {\n\t\t\tlet address = serverList[servers].address;\n\t\t\tlet port = serverList[servers].port;\n\t\n\t\t\tui.createNewServerElement(servers, address, port); // create a new element that contains the servers details and add it to the list\n\t\t}\n\t}\n}", "function reloadExtensions() {\n\t\trun('reload_extensions').then(e => {\n\t\t\tsetExtensions(e);\n\t\t});\n\t}", "function UpdateMainArraysBasedOnNewURL()\n{\n\tfor (var i=0; i<noneCrawledURLs.length; i++)\n\t{\n\t\tif (noneCrawledURLs[i].URL.toString() == URLToBeLoaded.toString())\n\t\t{\n\t\t\tnoneCrawledURLs[i].URL = curURL;\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tfor (var i=0; i<allTheLinksToBeReported.length; i++)\n\t{\n\t\tif (allTheLinksToBeReported[i].URL.toString() == URLToBeLoaded.toString())\n\t\t{\n\t\t\tallTheLinksToBeReported[i].URL = curURL;\n\t\t\tbreak;\n\t\t}\n\t}\n}", "reload()\n {\n if (this.onNewGame != undefined)\n {\n this.onNewGame();\n }\n this.retrieveNearbyGames();\n }" ]
[ "0.676063", "0.6605304", "0.62483835", "0.611557", "0.6078304", "0.6045507", "0.60063434", "0.59907764", "0.59840554", "0.5963418", "0.5860863", "0.57766455", "0.57648015", "0.5756713", "0.5754364", "0.57331634", "0.57225204", "0.57197", "0.57058656", "0.569878", "0.5688051", "0.5672932", "0.5663232", "0.5660175", "0.56571674", "0.56561744", "0.56511796", "0.56502205", "0.5645295", "0.56432855", "0.56406546", "0.5626447", "0.5617634", "0.5602634", "0.5602552", "0.5580392", "0.5572171", "0.55419105", "0.5537902", "0.5537397", "0.5531636", "0.550457", "0.5499243", "0.54980266", "0.5496933", "0.5486733", "0.5485585", "0.5481319", "0.54803395", "0.5478367", "0.5467088", "0.5463343", "0.5463196", "0.5462394", "0.54586935", "0.54542696", "0.5453519", "0.5449518", "0.5446708", "0.54460245", "0.54450864", "0.5432581", "0.5427813", "0.54172087", "0.5415451", "0.5410016", "0.5409344", "0.5407874", "0.5402418", "0.53956527", "0.5389128", "0.5385107", "0.5383748", "0.5377072", "0.53650814", "0.53643405", "0.5363999", "0.53569204", "0.5354708", "0.5352345", "0.5352164", "0.5347606", "0.5343108", "0.5343108", "0.5343108", "0.5343108", "0.53378356", "0.5337432", "0.53312224", "0.53252167", "0.5325171", "0.5313053", "0.5312625", "0.53051907", "0.53011954", "0.5300655", "0.5295834", "0.52957344", "0.5295479", "0.5294664" ]
0.8020586
0
Return the timezone string for this client, e.g. America/Los_Angeles, UTC, etc
getTimezone() { return Intl.DateTimeFormat().resolvedOptions().timeZone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTimezone() {\n\tvar timezone = jstz.determine();\n\treturn timezone.name();\n}", "function getTimezone() {\n\tvar timezone = jstz.determine();\n\treturn timezone.name();\n}", "function timezone() {\n if (typeof Intl === \"object\" && typeof Intl.DateTimeFormat === \"function\") {\n let options = Intl.DateTimeFormat().resolvedOptions();\n if (typeof options === \"object\" && options.timeZone) {\n return options.timeZone;\n }\n }\n if (typeof window.jstz === \"object\") {\n return window.jstz.determine().name();\n }\n if (typeof window.moment === \"object\" && typeof window.moment.tz === \"function\") {\n return window.moment.tz();\n }\n return null;\n}", "function getTimeZone() {\n const userTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n return (userTimeZone);\n}", "function deviceprint_timezone () {\n\t\tvar gmtHours = (new Date().getTimezoneOffset()/60)*(-1);\n\t\treturn gmtHours;\n\t}", "function getTimeZone(date) {\n var totalMinutes = date.getTimezoneOffset();\n var isEast = totalMinutes <= 0;\n if (totalMinutes < 0) {\n totalMinutes = -totalMinutes;\n }\n var hours = Math.floor(totalMinutes / MINUTES_IN_HOUR);\n var minutes = totalMinutes - MINUTES_IN_HOUR * hours;\n var size = 2;\n hours = strPad(hours, size, '0');\n if (minutes === 0) {\n minutes = '';\n } else {\n minutes = strPad(minutes, size, '0');\n }\n return '' + (isEast ? '+' : '-') + hours + (minutes ? ':' + minutes : '');\n }", "function timezone (tz) {\n if (isFinite(tz)) {\n return `INTERVAL '${tz} seconds'`;\n }\n return `'${tz}'`;\n}", "function timeZoneGetter(width){return function(date,locale,offset){var zone=-1*offset;var minusSign=getLocaleNumberSymbol(locale,NumberSymbol.MinusSign);var hours=zone>0?Math.floor(zone/60):Math.ceil(zone/60);switch(width){case ZoneWidth.Short:return(zone>=0?'+':'')+padNumber(hours,2,minusSign)+padNumber(Math.abs(zone%60),2,minusSign);case ZoneWidth.ShortGMT:return'GMT'+(zone>=0?'+':'')+padNumber(hours,1,minusSign);case ZoneWidth.Long:return'GMT'+(zone>=0?'+':'')+padNumber(hours,2,minusSign)+':'+padNumber(Math.abs(zone%60),2,minusSign);case ZoneWidth.Extended:if(offset===0){return'Z';}else{return(zone>=0?'+':'')+padNumber(hours,2,minusSign)+':'+padNumber(Math.abs(zone%60),2,minusSign);}default:throw new Error(\"Unknown zone width \\\"\"+width+\"\\\"\");}};}", "function timezone_info() {\n return {\n cookie: getCookie(\"z.tz\"),\n user_agent: timezone()\n };\n}", "userTimezone() {\n return this.appConfig.timezone\n }", "function getTimezone() {\n\tvar a = new Date();\n\tvar offset = a.getTimezoneOffset();\n\tvar nom = offset/60;\n\t\n\treturn nom;\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n var zone = -1 * offset;\n var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(\"Unknown zone width \\\"\" + width + \"\\\"\");\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n var zone = -1 * offset;\n var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(\"Unknown zone width \\\"\" + width + \"\\\"\");\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n var zone = -1 * offset;\n var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(\"Unknown zone width \\\"\" + width + \"\\\"\");\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n var zone = -1 * offset;\n var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(\"Unknown zone width \\\"\" + width + \"\\\"\");\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n var zone = -1 * offset;\n var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n\n switch (width) {\n case ZoneWidth.Short:\n return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);\n\n case ZoneWidth.ShortGMT:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);\n\n case ZoneWidth.Long:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n } else {\n return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n\n default:\n throw new Error(\"Unknown zone width \\\"\".concat(width, \"\\\"\"));\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n\n switch (width) {\n case ZoneWidth.Short:\n return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);\n\n case ZoneWidth.ShortGMT:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);\n\n case ZoneWidth.Long:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n } else {\n return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}", "function formatServerDateTimeTZ(t){\r\n\t/*\r\n\t// TODO Server time zone offset should be in server response along with tzName and ID (like America/New_York).\r\n\tvar tzOffset = 5 * 60 * 60 * 1000;\r\n\tvar tzName = responseObj.server_time.substr(-3);\r\n\tvar d = new Date(asDate(t).getTime() - tzOffset);\r\n\treturn d.format(Date.formats.default, true) + ' ' + tzName;\r\n\t*/\r\n\treturn responseObj.server_time;\r\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n var zone = -1 * offset;\n var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n\n switch (width) {\n case ZoneWidth.Short:\n return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);\n\n case ZoneWidth.ShortGMT:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);\n\n case ZoneWidth.Long:\n return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n } else {\n return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n\n default:\n throw new Error(\"Unknown zone width \\\"\".concat(width, \"\\\"\"));\n }\n };\n }", "get timeZone() {\n\t\treturn this.nativeElement ? this.nativeElement.timeZone : undefined;\n\t}", "_getTimezone() {\n return this.get('timezone.selected.zoneId') || this.get('timezone.options').findBy('zoneId', config.timezoneDefault).zoneId;\n }", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}", "function timeZoneGetter(width) {\n return function (date, locale, offset) {\n const zone = -1 * offset;\n const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);\n const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);\n switch (width) {\n case ZoneWidth.Short:\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.ShortGMT:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);\n case ZoneWidth.Long:\n return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n case ZoneWidth.Extended:\n if (offset === 0) {\n return 'Z';\n }\n else {\n return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +\n padNumber(Math.abs(zone % 60), 2, minusSign);\n }\n default:\n throw new Error(`Unknown zone width \"${width}\"`);\n }\n };\n}", "function DateAndTime_TimeZoneToChar(zone)\r\n{\r\n\tif (zone == null)\r\n\t{\r\n\t\treturn \"\";\r\n\t}\r\n\r\n\tvar hours = Utilities_Div(zone, 3600);\r\n\tvar minutes = Utilities_Div(zone - (hours * 3600), 60);\r\n\r\n\tif (minutes == 0)\r\n\t{\r\n\t\t// NOTE: \"J\" is not used\r\n\t\tif (hours <= -10)\r\n\t\t{\r\n\t\t\treturn String.fromCharCode((\"A\").charCodeAt(0) - hours);\r\n\t\t}\r\n\t\telse if (hours < 0)\r\n\t\t{\r\n\t\t\treturn String.fromCharCode((\"A\").charCodeAt(0) - hours - 1);\r\n\t\t}\r\n\t\telse if (hours > 0)\r\n\t\t{\r\n\t\t\treturn String.fromCharCode((\"N\").charCodeAt(0) + hours - 1);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn \"Z\";\r\n\t\t}\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (minutes < 0)\r\n\t\t{\r\n\t\t\tminutes = -minutes;\r\n\t\t}\r\n\r\n\t\t// DRL FIXIT? Is it OK to use the extended format even for basic?\r\n\t\treturn hours + \":\" + sprintf(\"%02d\", minutes);\r\n\t}\r\n}", "function formatTimeZone(datetime) {\r\n return datetime.substring(0,10) + \" \" + datetime.substring(11,19);\r\n}", "function nowAsString() {\n return new Date().toISOString().replace(\"T\", \" \").replace(\"Z\",\" \");\n}", "function timeZoneAbbreviation() {\n var abbreviation, date, formattedStr, i, len, matchedStrings, ref, str;\n date = (new Date()).toString();\n formattedStr = ((ref = date.split('(')[1]) != null ? ref.slice(0, -1) : 0) || date.split(' ');\n if (formattedStr instanceof Array) {\n matchedStrings = [];\n for (var i = 0, len = formattedStr.length; i < len; i++) {\n str = formattedStr[i];\n if ((abbreviation = (ref = str.match(/\\b[A-Z]+\\b/)) !== null) ? ref[0] : 0) {\n matchedStrings.push(abbreviation);\n }\n }\n formattedStr = matchedStrings.pop();\n }\n return formattedStr;\n }", "get timezoneOffset() {\n if (Date._timezoneOffsetStd === undefined) this._calculateOffset();\n return Date._timezoneOffsetStd;\n }", "toUTCString() {\n return this.timestamp().toUTCString();\n }", "function getCurrentOttawaDateTimeString() {\n\n var date = convertUTCtoOttawa(new Date());\n\n var hour = date.getHours();\n hour = (hour < 10 ? \"0\" : \"\") + hour;\n\n var min = date.getMinutes();\n min = (min < 10 ? \"0\" : \"\") + min;\n\n var year = date.getFullYear();\n\n var month = date.getMonth() + 1;\n month = (month < 10 ? \"0\" : \"\") + month;\n\n var day = date.getDate();\n day = (day < 10 ? \"0\" : \"\") + day;\n\n return year + \"-\" + month + \"-\" + day + \": \" + hour + \":\" + min;\n}", "function toLocalISOString() {\n var d = new Date();\n var off = d.getTimezoneOffset();\n return new Date(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes() - off, d.getSeconds(), d.getMilliseconds()).toISOString();\n }", "function showTimezonesInConsole() {\n const timezonesArray = getSupportedTimezones();\n\n let date = new Date();\n timezonesArray.forEach((timeZone) => {\n let strTime = date.toLocaleString(\"en-US\", { timeZone: `${timeZone}` });\n console.log(timeZone, strTime);\n });\n}", "getZoneTCUs () {\r\n return this._zone_TCUs;\r\n }", "static currentDateToISOString()/*:string*/{\n const currentDateTime = new Date()\n currentDateTime.setMinutes(currentDateTime.getMinutes() - currentDateTime.getTimezoneOffset()) \n return currentDateTime.toISOString()\n }", "function getDateString() {\n var time = new Date().getTime();\n // 32400000 is (GMT+9 Japan)\n // for your timezone just multiply +/-GMT by 36000000\n var datestr = new Date(time +32400000).toISOString().replace(/T/, ' ').replace(/Z/, '');\n return datestr;\n}", "function getDateString () {\n var time = new Date();\n // 14400000 is (GMT-4 Montreal)\n // for your timezone just multiply +/-GMT by 3600000\n var datestr = new Date(time - 14400000).toISOString().replace(/T/, ' ').replace(/Z/, '');\n return datestr;\n}", "function getDateString() {\n var time = new Date().getTime();\n // 32400000 is (GMT+9 Korea, GimHae)\n // for your timezone just multiply +/-GMT by 3600000\n var datestr = new Date(time +32400000).toISOString().replace(/T/, ' ').replace(/Z/, '');\n return datestr;\n}", "get availabilityZone() {\n return this.getStringAttribute('availability_zone');\n }", "static getUTCDateTime() {\n return new Date().toISOString().replace(/T/, ' ').replace(/\\..+/, '')\n }", "function nowAsString() {\n return new Date().toISOString().substring(0, 10);\n}", "function get_time_zone_offset( ) {\n\tvar current_date = new Date( );\n\tvar gmt_offset = current_date.getTimezoneOffset( ) / 60;\n\treturn (gmt_offset);\n}", "function timeZoneCheck() {\n var timeZoneLog = document.querySelector(\".timezone\");\n var timeZone = response.timezone;\n console.log(timeZone);\n\n timeZoneLog.innerHTML += timeZone;\n }", "function _getDateString() {\n return Utilities.formatDate((new Date()), AdWordsApp.currentAccount().getTimeZone(), \"yyyy-MM-dd\");\n}", "getZone() {\n return this._zone;\n }", "getZone() {\n return this._zone;\n }", "getZone() {\n return this._zone;\n }", "getZone() {\n return this._zone;\n }", "getZone() {\n return this._zone;\n }", "function calc_tz() {\n // In Firefox, Date.toString() returns something like:\n // Thu May 31 2012 11:37:42 GMT+0200 (CEST)\n var s = \"\"+(new Date);\n var re = new RegExp(\"\\\\(([A-Z]{3,4})\\\\)\", \"g\");\n var o = re.exec(s);\n if (o)\n return o[1];\n else\n return '';\n}", "static timestamp() {\n const timestamp = new Date().toISOString();\n return timestamp.substring(0, 19) + \"Z\";\n }", "getZone() {\n return this._zone;\n }", "function getCurrentTimeString() {\n const date = new Date();\n return date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();\n}", "function datestring () {\n var d = new Date(Date.now() - 5*60*60*1000); //est timezone\n return d.getUTCFullYear() + '-'\n + (d.getUTCMonth() + 1) + '-'\n + d.getDate();\n}", "function datestring () {\n var d = new Date(Date.now() - 5*60*60*1000); //est timezone\n return d.getUTCFullYear() + '-'\n + (d.getUTCMonth() + 1) + '-'\n + d.getDate();\n}", "function datestring() {\n var d = new Date(Date.now() - 5 * 60 * 60 * 1000); //est timezone - 5 hours\n return d.getUTCFullYear() + '-' + (d.getUTCMonth() + 1) + '-' + d.getDate();\n}", "function get_local_timezone() {\n var rightNow = new Date();\n var jan1 = new Date(rightNow.getFullYear(), 0, 1, 0, 0, 0, 0); // jan 1st\n var june1 = new Date(rightNow.getFullYear(), 6, 1, 0, 0, 0, 0); // june 1st\n var temp = jan1.toGMTString();\n var jan2 = new Date(temp.substring(0, temp.lastIndexOf(\" \")-1));\n temp = june1.toGMTString();\n var june2 = new Date(temp.substring(0, temp.lastIndexOf(\" \")-1));\n var std_time_offset = ((jan1 - jan2) / (1000 * 60 * 60));\n var daylight_time_offset = ((june1 - june2) / (1000 * 60 * 60));\n var dst;\n if (std_time_offset == daylight_time_offset) {\n dst = \"0\"; // daylight savings time is NOT observed\n } else {\n // positive is southern, negative is northern hemisphere\n var hemisphere = std_time_offset - daylight_time_offset;\n if (hemisphere >= 0)\n std_time_offset = daylight_time_offset;\n dst = \"1\"; // daylight savings time is observed\n }\n\n return parseInt(std_time_offset*3600,10);\n}", "function formatIsoTimeString(marker) {\n return padStart(marker.getUTCHours(), 2) + ':' +\n padStart(marker.getUTCMinutes(), 2) + ':' +\n padStart(marker.getUTCSeconds(), 2);\n }", "static get service() {\n return 'zones';\n }", "function time() {\n return dateFormat(\"isoUtcDateTime\");\n}", "function currentTime() {\n var now = new Date();\n var offset = now.getTimezoneOffset();\n var actual = now - offset;\n var str_date = new Date(actual).toLocaleDateString();\n var str_time = new Date(actual).toLocaleTimeString();\n return str_date + ' ' + str_time;\n}", "static get_time() {\n return (new Date()).toISOString();\n }", "function timezones_guess(){\n\n\tvar so = -1 * new Date(Date.UTC(2012, 6, 30, 0, 0, 0, 0)).getTimezoneOffset();\n\tvar wo = -1 * new Date(Date.UTC(2012, 12, 30, 0, 0, 0, 0)).getTimezoneOffset();\n\tvar key = so + ':' + wo;\n\n\treturn _timezones_map[key] ? _timezones_map[key] : 'US/Pacific';\n}", "function formatOzone(ozone) {\n\treturn Math.round(ozone) + ' DU';\n}", "function timeFormatFn() {\n let now = new Date();\n return now.toUTCString();\n}", "function gettimezone(igcFile, mapControl) {\n var flightdate = igcFile.recordTime[0];\n $.ajax({\n url: \"gettimezone.php\",\n data: {\n stamp: flightdate / 1000,\n lat: igcFile.latLong[0][0],\n lon: igcFile.latLong[0][1]\n },\n timeout: 3000,\n method: \"POST\",\n dataType: \"json\",\n success: function(data) {\n if (data.status === \"OK\") {\n timezone.zonename = data.zoneName;\n timezone.zoneabbr = data.abbreviation;\n timezone.offset = 1000 * parseFloat(data.gmtOffset);\n if (data.dst === \"1\") {\n timezone.zonename += \", daylight saving\";\n }\n }\n },\n complete: function() {\n //Local date may not be the same as UTC date\n var localdate = new Date(flightdate.getTime() + timezone.offset);\n $('#datecell').text(displaydate(localdate));\n barogramPlot = plotBarogram(igcFile);\n updateTimeline(0, mapControl);\n }\n });\n }", "get timezoneDSTOffset() {\n if (Date._timezoneOffsetDst === undefined) this._calculateOffset();\n return Date._timezoneOffsetDst;\n }", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) { stripZeroTime = false; }\n var s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n}", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) { stripZeroTime = false; }\n var s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n }", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) { stripZeroTime = false; }\n var s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n }", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) { stripZeroTime = false; }\n var s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n }", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) { stripZeroTime = false; }\n var s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n }", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) {\n stripZeroTime = false;\n }\n\n var s = marker.toISOString();\n s = s.replace('.000', '');\n\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n\n if (s.length > 10) {\n // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n } else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n } // otherwise, its UTC-0 and we want to keep the Z\n\n }\n\n return s;\n }", "function buildIsoString(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) {\n stripZeroTime = false;\n }\n\n var s = marker.toISOString();\n s = s.replace('.000', '');\n\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n\n if (s.length > 10) {\n // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n } else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset(timeZoneOffset, true));\n } // otherwise, its UTC-0 and we want to keep the Z\n\n }\n\n return s;\n }", "function buildIsoString$1(marker, timeZoneOffset, stripZeroTime) {\n if (stripZeroTime === void 0) { stripZeroTime = false; }\n var s = marker.toISOString();\n s = s.replace('.000', '');\n if (stripZeroTime) {\n s = s.replace('T00:00:00Z', '');\n }\n if (s.length > 10) { // time part wasn't stripped, can add timezone info\n if (timeZoneOffset == null) {\n s = s.replace('Z', '');\n }\n else if (timeZoneOffset !== 0) {\n s = s.replace('Z', formatTimeZoneOffset$1(timeZoneOffset, true));\n }\n // otherwise, its UTC-0 and we want to keep the Z\n }\n return s;\n }", "Z (date, _dateLocale, _forcedYear, forcedTimezoneOffset) {\n const tzOffset = forcedTimezoneOffset === void 0 || forcedTimezoneOffset === null\n ? date.getTimezoneOffset()\n : forcedTimezoneOffset;\n\n return formatTimezone(tzOffset, ':')\n }", "function timezn(tzURL) {\n $.ajax({\n url: tzURL,\n method: \"GET\",\n dataType: 'json',\n success : function (data) {\n var obj = data;\n var tz = obj.timeZoneId;\n document.getElementById('tz').innerHTML=tz;\n }\n })\n}", "function getTime() {\n\treturn new Date().toUTCString();\n}", "function time_repr(time) {\n var local_time = new Date(time.getTime() + timezone_offset);\n var hrs = local_time.getHours(),\n min = local_time.getMinutes(),\n sec = local_time.getSeconds(),\n converted_tz = timezone_offset / 36;\n\n if(converted_tz < 1000) {\n if(converted_tz < 0) {\n converted_tz = \"-0\" + converted_tz.toString().substring(1);\n }\n else {\n converted_tz = \"0\" + converted_tz.toString();\n }\n }\n\n return (hrs >= 10 ? hrs : \"0\" + hrs.toString()) + \":\"\n + (min >= 10 ? min : \"0\" + min.toString()) + \":\"\n + (sec >= 10 ? sec : \"0\" + sec.toString())\n + \" UTC\" + converted_tz;\n}", "function timezone(offset) {\n var minutes = Math.abs(offset);\n var hours = Math.floor(minutes / 60);\n\tminutes = Math.abs(offset%60);\n var prefix = offset < 0 ? \"+\" : \"-\";\n//\tdocument.getElementById('atzo').innerHTML = prefix+hours+\":\"+minutes;\t\n return prefix+hours+\":\"+minutes;\t\n}", "function d3_time_zone(d) {\n var z = d.getTimezoneOffset(),\n zs = z > 0 ? \"-\" : \"+\",\n zh = ~~(Math.abs(z) / 60),\n zm = Math.abs(z) % 60;\n return zs + d3_time_zfill2(zh) + d3_time_zfill2(zm);\n}", "function d3_time_zone(d) {\n var z = d.getTimezoneOffset(),\n zs = z > 0 ? \"-\" : \"+\",\n zh = ~~(Math.abs(z) / 60),\n zm = Math.abs(z) % 60;\n return zs + d3_time_zfill2(zh) + d3_time_zfill2(zm);\n}", "function nowString () {\n const stamp = new Date()\n const h = stamp.getHours().toString().padStart(2, '0')\n const m = stamp.getMinutes().toString().padStart(2, '0')\n const s = stamp.getSeconds().toString().padStart(2, '0')\n const ms = stamp.getMilliseconds().toString().padStart(3, '0')\n return `${h}:${m}:${s}.${ms}`\n}", "getUTCDate(timestamp = null) {\n return new Date().toISOString().replace(\"T\", \" \").split(\".\")[0];\n }", "function datestring() {\n var d = new Date(Date.now() - 5 * 60 * 60 * 1000); //est timezone\n return d.getUTCFullYear() + \"-\" +\n (d.getUTCMonth() + 1) + \"-\" +\n d.getDate();\n}", "get createdAtFormatString() {\n return `${this._createdAt.getFullYear()}-${\n (this._createdAt.getMonth() + 1).toString().padStart(2, '0')}-${\n this._createdAt.getDate().toString().padStart(2, '0')}T${\n this._createdAt.getHours().toString().padStart(2, '0')}:${\n this._createdAt.getMinutes().toString().padStart(2, '0')}:${\n this._createdAt.getSeconds().toString().padStart(2, '0')}`;\n }", "_now() {\n const that = this,\n now = new JQX.Utilities.DateTime('today', 'Local');\n\n if (that._outputTimeZone !== 'Local') {\n return now.toTimeZone(that._outputTimeZone);\n }\n\n return now;\n }", "function getCurrentDateString() {\n\t\tlet date = new Date();\n\t\tlet dateString = \"\" + date.getFullYear() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getDate() + \"-\" + \n\t\t\t(date.getHours() + 1) + \"-\" + (date.getMinutes() + 1);\n\n\t\treturn dateString;\n}", "function calcTime(timezone) {\r\n\tconst d = new Date(),\r\n\t\t\t\tutc = d.getTime() + (d.getTimezoneOffset() * 60000),\r\n\t\t\t\tnd = new Date(utc + (3600000 * timezone.offset));\r\n\r\n\treturn nd.toLocaleString();\r\n}", "function getOptionZone() {\n let optionHtml = '';\n let count1 = 0;\n\n for (let timeZone of timeZones) {\n count1 += 1;\n optionHtml = '<option value=\"';\n optionHtml += count1;\n optionHtml += '\">';\n optionHtml += timeZone;\n optionHtml += '</option>';\n\n $optionZone.append(optionHtml);\n }\n return;\n}", "function getFormattedCurrentDateTime() {\n return new Date().toJSON().slice(0, 19).replace('T', ' ');\n}", "function getUTCOffset(date = new Date()) {\n var hours = Math.floor(date.getTimezoneOffset() / 60);\n var out;\n\n // Note: getTimezoneOffset returns the time that needs to be added to reach UTC\n // IE it's the inverse of the offset we're trying to divide out.\n // That's why the signs here are apparently flipped.\n if (hours > 0) {\n out = \"UTC-\";\n } else if (hours < 0) {\n out = \"UTC+\";\n } else {\n return \"UTC\";\n }\n\n out += hours.toString() + \":\";\n\n var minutes = (date.getTimezoneOffset() % 60).toString();\n if (minutes.length == 1) minutes = \"0\" + minutes;\n\n out += minutes;\n return out;\n}", "function generateOffset(date) {\n let offset = ''\n const tzOffset = date.getTimezoneOffset()\n\n if (tzOffset !== 0) {\n const absoluteOffset = Math.abs(tzOffset)\n const hourOffset = addLeadingZeros(absoluteOffset / 60, 2)\n const minuteOffset = addLeadingZeros(absoluteOffset % 60, 2)\n // If less than 0, the sign is +, because it is ahead of time.\n const sign = tzOffset < 0 ? '+' : '-'\n\n offset = `${sign}${hourOffset}:${minuteOffset}`\n } else {\n offset = 'Z'\n }\n\n return offset\n}", "get supportsTimezone() { return false; }", "function icsTimezone(tz) {\n\t\ttz = \"\"+tz;\n\n\t\treturn ({\n\t\t\t// This list is obviously incomplete\n\t\t\t\"Australia/Sydney\": [\n\t\t\t\t\"BEGIN:VTIMEZONE\",\n\t\t\t\t\"TZID:Australia/Sydney\",\n\t\t\t\t\"X-LIC-LOCATION:Australia/Sydney\",\n\t\t\t\t\"BEGIN:STANDARD\",\n\t\t\t\t\"TZOFFSETFROM:+1100\",\n\t\t\t\t\"TZOFFSETTO:+1000\",\n\t\t\t\t\"TZNAME:EST\",\n\t\t\t\t\"DTSTART:19700405T030000\",\n\t\t\t\t\"RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU\",\n\t\t\t\t\"END:STANDARD\",\n\t\t\t\t\"BEGIN:DAYLIGHT\",\n\t\t\t\t\"TZOFFSETFROM:+1000\",\n\t\t\t\t\"TZOFFSETTO:+1100\",\n\t\t\t\t\"TZNAME:EST\",\n\t\t\t\t\"DTSTART:19701004T020000\",\n\t\t\t\t\"RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU\",\n\t\t\t\t\"END:DAYLIGHT\",\n\t\t\t\t\"END:VTIMEZONE\",\n\t\t\t]\n\t\t})[tz] || [];\n\t}", "function function_settimezone(fieldname){\n var timeZone = 'Europe/Amsterdam';\n result = timeZone;\n return result;\n}", "function _getDateString() {\n var myDate = new Date();\n // forward compatability with ES5 Shims\n if (typeof myDate.getFullYear !== \"function\") {\n myDate.getFullYear = function() {\n return (myDate.getYear + 1900); // offset from year 1900\n };\n }\n\n var myYear = myDate.getFullYear().toString();\n var myMonth = _zeroPad(myDate.getMonth() + 1, 2); // counts from 0\n var myDay = _zeroPad(myDate.getDate(), 2);\n var myHours = _zeroPad(myDate.getHours(), 2);\n var myMinutes = _zeroPad(myDate.getMinutes(), 2);\n var mySeconds = _zeroPad(myDate.getSeconds(), 2);\n\n return myYear + \n \"-\" + myMonth + \n \"-\" + myDay + \n \"T\" + myHours + \n ':' + myMinutes + \n ':' + mySeconds +\n '.' + (myDate.getMilliseconds() / 1000).toFixed(3).slice(2, 5);\n }", "getTime() {\n const date = new Date();\n\n this.time = date.toLocaleString('en-GB', {\n //Pass in the timezone to get the proper time for the coordinates\n timeZone: this.timeZone,\n timeStyle: 'short',\n });\n }" ]
[ "0.6910164", "0.6910164", "0.6758558", "0.6547973", "0.6154265", "0.61308426", "0.6064783", "0.5982676", "0.5904349", "0.587135", "0.58712226", "0.580486", "0.580486", "0.580486", "0.580486", "0.58009285", "0.57987136", "0.57770336", "0.5770741", "0.5765046", "0.5700704", "0.56956095", "0.56956095", "0.56956095", "0.56956095", "0.56956095", "0.5682684", "0.5677568", "0.56703866", "0.5642774", "0.56410587", "0.56331795", "0.5625243", "0.5617189", "0.55640954", "0.55441874", "0.5515714", "0.5437788", "0.54261094", "0.5421448", "0.54153955", "0.5368727", "0.53430516", "0.53280765", "0.5296758", "0.524977", "0.52282804", "0.52282804", "0.52282804", "0.52282804", "0.52282804", "0.52058727", "0.5201625", "0.5191823", "0.51751834", "0.51508677", "0.51508677", "0.51362455", "0.51304877", "0.51284325", "0.51108897", "0.5106121", "0.50882494", "0.5087034", "0.50834084", "0.5081488", "0.5072914", "0.5071995", "0.5049855", "0.5048817", "0.50486416", "0.50486416", "0.50486416", "0.50486416", "0.5047914", "0.50471175", "0.504426", "0.5042971", "0.5041495", "0.5031443", "0.5028282", "0.5026381", "0.5018345", "0.5018345", "0.5013112", "0.5012105", "0.49954826", "0.49814266", "0.49747893", "0.49743363", "0.4971612", "0.49707747", "0.49584806", "0.49441418", "0.49433932", "0.49362046", "0.49284175", "0.49143648", "0.4912855", "0.49120554" ]
0.6491036
4
Create a status record in the backend for this particular instance
async create() { let api = this.app.service('status'); let record = { uuid: this.uuid, flavor: this.options.flavor, timezone: this.getTimezone(), }; return api.create(record, { }) .then((res) => { logger.info('Created a Status record with server side ID %d', res.id); return true; }) .catch((err) => { /* 400 errors are most likely attempts to recreate the same Status for * this instance. * * We need a better way to run a HEAD request to check before POSTing a * new status, but it's unclear whether that's supported in feathersjs * or not */ if (err.code != 400) { logger.error('Failed to create a Status record', err); } else { logger.debug('Status record not changed'); } return false; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async saveStatus(status) {\n const db = FirebaseLib.FIRESTORE_DB;\n try {\n const ref = db.collection(config.DBPaths.HISTORY).doc();\n const now = firebase.firestore.Timestamp.now();\n await ref.set({value: status, startedAt: now});\n this._checkNext(status);\n } catch (err) {\n console.error(\"Unable to save the status in the DB\", err);\n // TODO: saveStatus --> Error\n }\n }", "async function createArecord() {\n let dbService = new DbService(process.env.MICRO_API_TOKEN);\n let rsp = await dbService.create({\n record: {\n age: 42,\n id: \"1\",\n isActive: true,\n name: \"Jane\",\n },\n table: \"users\",\n });\n console.log(rsp);\n}", "async store ({ request}) {\n const data = request.only( 'visita_status_descricao' );\n const status = await VisitaStatus.create(data);\n return status;\n }", "function create(params, callback) {\n core.api('POST', '/statuses', params, callback);\n }", "status(status) {\n const isValidStatus = Object.values(Readiness).includes(status);\n if (!isValidStatus) {\n throw new Error('Invalid status');\n }\n\n this.value.status = status;\n return this;\n }", "function statusLog(){\n var statusLogObj = {\n status: \"Unassigned\",\n comment: \"Specialneed changed and phlebo was not eligible for visit.\",\n statustimestamp: moment().tz(TIMEZONE).toISOString(), //client date time\n statusby: params.user_id,\n coordinates: params.coordinates\n }\n statuslog.push(statusLogObj);\n }", "createRecord(){\n const logObject = {...this.response };\n var db = admin.database();\n var submissions = db.ref(\"advice/submissions\");\n const newSubmission = submissions.push(logObject);\n this.submissionId = newSubmission.key;\n this.response.submissionId = newSubmission.key;\n }", "updateStatus(status: string){\n this.status = new Status(status);\n }", "createTestStatus(req, res) {\n let body;\n switch (req.method) {\n case 'GET': {\n body = req.query;\n break;\n }\n case 'POST':\n default: {\n body = req.body;\n break;\n }\n }\n\n const reservedKeys = ['description', 'attachment', 'build', 'screenshot'];\n const content = _.pick(body, reservedKeys);\n const customKeys = _.difference(Object.keys(body), reservedKeys);\n customKeys.forEach(function(key) {\n switch (key) {\n case 'id':\n content.testId = body.id;\n break;\n case 'status':\n content.status = body.status.toLowerCase();\n break;\n case 'message':\n content.name = body.message;\n break;\n default:\n if (!content.hasOwnProperty('custom')) {\n content.custom = [];\n }\n content.custom.push({\n key: key,\n value: body[key],\n });\n break;\n }\n });\n\n const data = {\n nature: {\n type: this.dataType,\n quality: 'create',\n },\n payload: content,\n };\n const context = this.cementHelper.createContext(data);\n context.on('done', function (brickname, response) {\n res.status(201).send(response);\n });\n context.once('reject', function (brickname, error) {\n res.status(400).send(error.message);\n });\n context.once('error', function (brickname, error) {\n res.status(400).send(error.message);\n });\n context.publish();\n }", "createRecord(store, type, snapshot) {\n return this.updateRecord(store, type, snapshot);\n }", "async function recordCreate(req, res, next) {\n try {\n const thread = await Thread.findById(req.params.id)\n if (!thread) throw new Error(notFound)\n const record = { ...req.body, owner: req.currentUser._id }\n thread.records.push(record)\n await thread.save()\n res.status(201).json(thread)\n } catch (err) {\n next(err)\n }\n}", "startRecord(state, data){\n state.record = data\n state.recordStartTime = Date.now()\n }", "create(newRecord: Object) {\n // Asserting all values in record are valid\n if (!this._assertRecordValid(newRecord)) {\n return\n }\n\n // Asserting store is a server store\n if (this.crudStore.type === 'server') {\n // Executing record create action to server\n this.crudStore.executeServerDatabaseAction('create', newRecord)\n }\n else {\n // Creating new record in temporary store\n this.crudStore.setData(this.crudStore.getData().unshift(newRecord));\n }\n }", "function updateRecorderStatus(curStatus) {\n if (curStatus == \"stop\") {\n statusObj.setStatus(\"start\");\n } else if (curStatus == \"start\") {\n statusObj.setStatus(\"stop\");\n }\n }", "function ResourceStatus() {\n _classCallCheck(this, ResourceStatus);\n\n ResourceStatus.initialize(this);\n }", "postDashboardStatus(businessId) {\n return new Promise((resolve, reject) => {\n logger.info('postDashboardStatus() Initiated')\n let sql = sqlObj.dashboardStatus.postDashboardStatus;\n let sqlQuery = format(sql, businessId, DASHBOARD_STATUS.PENDING, utils.getGMT())\n dbInstance.doInsert(sqlQuery)\n .then(result => {\n logger.info('postDashboardStatus() Exited Successfully')\n resolve(result);\n })\n .catch(err => {\n logger.error('postDashboardStatus() Error')\n reject(err);\n });\n })\n }", "function Status (title, image) {\n this.title = title;\n this.image = image;\n }", "function Status (title, image) {\n this.title = title;\n this.image = image;\n }", "function create(req, res) {\n req.model.userId = req.auth.userId\n //request to the model payload\n traumaTypesService.create(req.model)\n .then(id => {\n const responseModel = new responses.ItemResponse()\n responseModel.item = id\n res.status(201)\n .location(`${_apiPrefix}/${id}`)\n .json(responseModel)\n })\n .catch(err => {\n console.log(err)\n res.status(500).send(new responses.ErrorResponse(err))\n })\n}", "save() {\r\n return Backendless.Data.of(DiningTiming).save(this);\r\n }", "async function create(_, response) {\n const data = await service.create(response.locals.table)\n response.status(201).json({\n data: data[0],\n })\n}", "constructor(){\n this.status = 0;\n }", "static async uploadTelemetry(_, {model_name, version, description, url, status}) {\r\n console.log(\"Upload Telemetry\")\r\n try {\r\n let _result = await this.insert({\r\n data: {\r\n\t\t\t\t\tmodel_name,\r\n\t\t\t\t\tversion,\r\n\t\t\t\t\tdescription,\r\n\t\t\t\t\turl,\r\n\t\t\t\t\tstatus\r\n }\r\n })\r\n return this.getByID(_, {id: _result.insertId})\r\n } catch (err) {\r\n\t\t\treturn (err)\r\n\t\t} finally {\r\n\t\t\tconsole.log(\"Registered device\");\r\n }\r\n }", "async save(record) {\n const result = await this.connection.getRepository(ApplicationInformationDBO_1.ApplicationInformationDBO).save(record);\n console.log(\"ApplicationInformation created: \", result);\n return result;\n }", "function createRecord(req, res) {\n const newRecord = new RecordModel(req.body);\n\n newRecord.save();\n\n return res.json(newRecord);\n}", "function saveRecord(record) {\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n store.add(record);\n}", "function createState(valueModel, type, data){\n var state = new models[\"State\"]();\n state.set(\"type\", type);\n state.set(\"data\", data + \"\");\n var timestamp = new Date().toISOString();\n state.set(\"timestamp\", timestamp+\"\");\n valueModel.get(\"state\").push(state);\n}", "function successCreate() {\n console.info(\"Success: Create table: successful.\");\n }", "async function createReview(planId, userId, status) {\n\n try {\n // create the new review\n let sql = \"BEGIN;\" +\n \"INSERT INTO PlanReview (planId, userId, status) VALUES (?, ?, ?); \" +\n \"UPDATE Plan SET status=? WHERE planId=?; COMMIT;\";\n let results = await pool.query(sql, [planId, userId, status, status, planId]);\n const reviewId = results[0][1].insertId;\n\n // get the time that the review was created\n sql = \"SELECT time FROM PlanReview WHERE reviewId=?;\";\n results = await pool.query(sql, reviewId);\n const time = results[0][0].time;\n\n // send out notifications about the new status\n planNotification(planId, userId, 2);\n\n const obj = {\n insertId: reviewId,\n time: time\n };\n\n return obj;\n\n } catch (err) {\n console.log(\"Error adding review\");\n throw Error(err);\n }\n\n}", "function statusAction (type, status, data) {\n return {\n type: LP_API_ACTION_NAMESPACE + type,\n payload: { type, status, data }\n }\n}", "function createStatusDouble(options) {\n var currentTime = now();\n var double = {\n username: options.username || 'Random Username ' + currentTime,\n statusCode: options.statusCode || 'OK',\n statusUpdatedAt: options.statusUpdatedAt || currentTime\n };\n return double;\n}", "function ApiStatus() {\n this.message = {\n 'status': {}\n };\n}", "function resourceCreate(cb) {\n\n var resource = new Resource({\n //_projectId: [projects[0]],\n name: 'server',\n type: 'Facility',\n status: 'Available',\n deletedAt: null\n });\n\n resource.save(function (err) {\n if (err) {\n cb('resource', null);\n return\n }\n console.log('New Resource ' + resource);\n resources.push(resource);\n cb(null, resource);\n } );\n}", "static initialize(obj, status, successful) { \n obj['status'] = status;\n obj['successful'] = successful;\n }", "createRecord(store, type, snapshot) {\n var data = {};\n var serializer = store.serializerFor(type.modelName);\n var url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n\n serializer.serializeIntoHash(data, type, snapshot, {includeId: true});\n\n return this.ajax(url, \"POST\", {data: data[type.modelName]});\n }", "async create() {\r\n try {\r\n // Record (cross-field) validation\r\n const valRec = await this.tableValidation(this.req.body, \"CREATE\")\r\n if (valRec !== \"\") {\r\n this.res.status(422).json({ errors: valRec })\r\n return\r\n }\r\n\r\n // Collect data from request body\r\n const data = await this.parseReq(\"CREATE\")\r\n const createFields = this.primaryFields.concat(this.fields)\r\n return await super.create(createFields, data)\r\n } catch (e) {\r\n throw e\r\n //throw utils.errMsg(e);\r\n }\r\n }", "@wire(getRecord, { recordId: \"$recordId\", fields: FIELDS })\n csRecord({ data, error }) {\n if (data) {\n this.record = data;\n this.currentStatus = this.record.fields.Status.value;\n if (this.caseStatuses){\n // invoke buildValuesModel and pass in parameters\n this.buildValuesModel(\n this.caseStatuses,\n this.currentStatus\n );\n }\n } else if (error) {\n this.error = error;\n }\n }", "setStatus(status) {\n this.status = status;\n }", "static fromApi(status) {\n // TODO: fix status data names when api's have been updated\n return new StatusItemModel(status.ApplicationStatus, status.ApplicationStatusDescription, status.ApplicationStatusColor, status.ApplicationStatusCount);\n }", "function createJobStatus(pid, priority) {\n\tvar jobStatus = {\n\t\t'jobId': '4bbb4574-68ab-4fd0-9aaf-5abf75765449',\n\t\t'jpid': '15fbef90-aed2-4267-9f8b-980ad62c2a00',\n\t\t'patientIdentifier': {\n\t\t\t'type': 'pid',\n\t\t\tvalue: pid\n\t\t},\n\t\tpriority: priority,\n\t\t'rootJobId': '4bbb4574-68ab-4fd0-9aaf-5abf75765449',\n\t\t'status': 'completed',\n\t\t'timestamp': '1458680891151',\n\t\t'type': 'enterprise-sync-request'\n\t};\n\n\treturn jobStatus;\n\n}", "createState(context) {\n const that = this;\n const body = context.data.payload;\n if (this.runningJob === null && !body.hasOwnProperty('executionId')) {\n context.emit('error', that.cementHelper.brickName, new Error('Creating State failed: no job currently running'));\n } else {\n const statePayload = _.pick(body, ['status', 'message', 'executionId', 'testSuiteId', 'testId']);\n if (!statePayload.hasOwnProperty('executionId') || statePayload.executionId === undefined) {\n statePayload.executionId = this.runningJob.executionId;\n }\n const finishedStates = ['finished', 'canceled', 'acked', 'timeout'];\n if (finishedStates.indexOf(statePayload.status) !== -1) {\n if (this.runningJob !== null) {\n statePayload.index = this.runningJob.currentIndex;\n this.runningJob.active = false;\n } else {\n statePayload.index = 0;\n }\n }\n statePayload.ip = SystemDetails.ip;\n // statePayload.hostname = SystemDetails.hostname;\n statePayload.hostname = SystemDetails.getHostnameAsIS();\n statePayload.timestamp = Date.now();\n const messageJob = {\n nature: {\n type: 'messages',\n quality: 'produce',\n },\n payload: {\n nature: {\n type: 'states',\n quality: 'create',\n },\n payload: statePayload,\n },\n };\n this.cementHelper.createContext(messageJob)\n .on('done', function(brickname, response) {\n context.emit('done', that.cementHelper.brickName, response);\n })\n .publish();\n }\n }", "create(item) {\n const _super = name => super[name];\n return __awaiter(this, void 0, void 0, function* () {\n if (item)\n item.status = thesis_dais_internship_manager_core_1.InternshipStatusType.NotApproved;\n return _super(\"create\").call(this, item);\n });\n }", "function saveRecord(record) {\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n}", "handleAccountCreated(evt) {\n this.createStatus = `Account record created. Id is ${evt.detail.id}.`;\n\n const event = new CustomEvent('newrecord', {\n bubbles: true,\n cancelable: true,\n composed: true,\n detail: { data: evt.detail },\n });\n this.dispatchEvent(event);\n }", "function flightStatus(status) {\n ticket[\"status\"] = status\n}", "statusTSDB() {\r\n return this.request('GET', 'status/tsdb');\r\n }", "constructor() { \n \n CommitStatus.initialize(this);\n }", "async create (req, res, Model, createStruct) {\n try {\n await Model.create(createStruct)\n // 201 Created The request has been fulfilled\n return res.status(201).send({\n message: 'Created !'\n })\n } catch (err) {\n // 409 Conflict\n return res.status(409).send({\n error: 'Already taken'\n })\n }\n }", "function persistStatusChange(progressModel, status, cb) {\n var logger = this.logger;\n logger.info('UPDATING STATUS TO ', status);\n\n progressModel.set('status', status);\n\n progressModel.save(function(err) {\n if (err) {\n logger.error('Failed to update task model due to error ' + err, progressModel);\n return cb(err, status);\n }\n });\n}", "function saveRecord(record) {\n // just saving a record\n const transaction = db.transaction([\"pending\"], \"readwrite\");\n const store = transaction.objectStore(\"pending\");\n store.add(record);\n}", "function createDurationLogs(updatedJobData, currentStateData){\n var ReportLog = mongoose.model('ReportLog');\n var durationLog = new ReportLog();\n durationLog.type = 'durationLog';\n\n var logData ={\n 'workflow': updatedJobData.workflow,\n 'jobId': updatedJobData._id,\n 'userId': updatedJobData.userid,\n 'userName': updatedJobData.username,\n 'stateId': currentStateData.stateId,\n 'startDate': currentStateData.startDate,\n 'notStarted': 1,\n 'ongoing': 0,\n 'finished': 0,\n 'jobStatus':'A'\n };\n\n durationLog.log = logData;\n durationLog.eid = updatedJobData.eid;\n \n durationLog.save();\n }", "store(){\n\n\t\tvar self = this;\n\t\t_.extend(this.request.body, {\n\t\t\tstatus : parseInt(this.request.body.status) ? true : false,\n\t\t})\n\n\t\tnew ProductModel(this.request.body).save().then(function(product){\n\t\t\tconsole.log(product.barcode);\n\t\t\tself.barcodeGenerator(product.barcode);\n\t\t\treturn self.response.send({\n\t\t\t\tevent : 'create',\n\t\t\t\titem : product\n\t\t\t});\n\t\t});\n\t}", "function create_status(status) {\n let elem = document.createElement('span');\n elem.classList.add(status.toLowerCase(), 'status-order');\n elem.textContent = status.toUpperCase();\n\n return elem;\n }", "function saveRecord(record) {\n const transaction = db.transaction(['new_transaction'], 'readwrite');\n const budgetTrackerObjectStore = transaction.objectStore('new_transaction');\n budgetTrackerObjectStore.add(record);\n}", "async create (json) {\n try {\n let record = await this.model.create(json);\n return record;\n } catch(e) {\n return e;\n }\n }", "function _createEntry() {\n\t\ttry {\n\t\t\t//Get the Request Body\n\t\t\tvar oBody = JSON.parse($.request.body.asString());\n\n\t\t\t//Get the Latest ID Number\n\t\t\tvar lvId;\n\t\t\tif (!oBody.CONDITION_ID) {\n\t\t\t\tlvId = _getNextId();\n\t\t\t} else {\n\t\t\t\tlvId = oBody.CONDITION_ID;\n\t\t\t}\n\n\t\t\t//Item Number\n\t\t\tvar lvItem = 0;\n\n\t\t\t//Get the Database connection\n\t\t\tvar oConnection = $.db.getConnection();\n\n\t\t\t//Build the Statement to insert the entries\n\t\t\tvar oStatement = oConnection.prepareStatement('INSERT INTO \"' + gvSchemaName + '\".\"' + gvTableName +\n\t\t\t\t'\" VALUES (?, ?, ?, ?, ?, ?)');\n\n\t\t\t//Loop through the items to be added to the database\n\t\t\tfor (var i = 0; i < oBody.ITEMS.length; i++) {\n\t\t\t\t//Populate the fields with values from the incoming payload\n\t\t\t\t//Id\n\t\t\t\toStatement.setInt(1, parseFloat(lvId));\n\t\t\t\t//Item\n\t\t\t\tlvItem = lvItem + 1;\n\t\t\t\toStatement.setInt(2, lvItem);\n\t\t\t\t//Structure\n\t\t\t\toStatement.setString(3, oBody.ITEMS[i].STRUCTURE);\n\t\t\t\t//Field\n\t\t\t\toStatement.setString(4, oBody.ITEMS[i].FIELD);\n\t\t\t\t//Operator\n\t\t\t\toStatement.setString(5, oBody.ITEMS[i].OPERATOR);\n\t\t\t\t//Value\n\t\t\t\toStatement.setString(6, oBody.ITEMS[i].VALUE);\n\t\t\t\t//Add Batch process to executed on the database\n\t\t\t\toStatement.addBatch();\n\t\t\t}\n\t\t\t//Execute the Insert\n\t\t\toStatement.executeBatch();\n\n\t\t\t//Close the connection\n\t\t\toStatement.close();\n\t\t\toConnection.commit();\n\t\t\toConnection.close();\n\n\t\t\tgvTableUpdate = \"Table entries created successfully: \" + gvTableName + \";\";;\n\t\t\tgvConditionId = lvId;\n\t\t\tgvStatus = \"Success\";\n\t\t} catch (errorObj) {\n\t\t\tif (oStatement !== null) {\n\t\t\t\toStatement.close();\n\t\t\t}\n\t\t\tif (oConnection !== null) {\n\t\t\t\toConnection.close();\n\t\t\t}\n\t\t\tgvTableUpdate = \"There was a problem inserting entries into the Table: \" + gvTableName + \", Error: \" + errorObj.message + \";\";\n\t\t\tgvStatus = \"Error\";\n\t\t}\n\t}", "create(req, res, next) {\n var newSubscription = new Subscription(req.body);\n newSubscription.date = Date.now();\n newSubscription.save(function(err, subscription) {\n if (err) return validationError(res, err);\n var data = {\n creation: true,\n data: subscription\n };\n perf.ProcessResponse(res).send(200, data);\n });\n }", "changeStatus(req, res, taskDB) {\n\n taskDB.status = 'On Hold';\n taskDB.total_time = 0;\n taskDB.updated_at = this.dateNow;\n\n\n // Update information\n taskDB.save((err, taskUpdated) => {\n\n if (err) {\n return res.status(500).json({\n success: false,\n message: err.message\n });\n }\n\n return this.restartLog(req, res, taskUpdated);\n });\n }", "function addStatus(snapshot) {\r\n $('#presenceDiv').append($('<div/>').attr('id', snapshot.name()));\r\n setStatus(snapshot);\r\n }", "static *addVersionLabel() {\n\n let labelData = this.request.body,\n tenantName = _.get(labelData, 'dbName'),\n VersionLabelModel,\n model;\n\n if (!tenantName) {\n this.throw('Missing a valid tenant name', 500);\n }\n\n VersionLabelModel = modelFactory.getModel(tenantName, 'VersionLabel');\n model = new VersionLabelModel(labelData);\n\n try {\n // send information to mongo\n yield model.save();\n // send same data to graylog (UDP)\n graylog.save(model, tenantName);\n //set action response\n this.body = 'success';\n }\n catch(e) {\n this.throw(`Error saving label data: ${e}`, 500);\n }\n }", "function STATUS(status) {\r\n try {\r\n var self = this;\r\n\r\n self.id = ko.observable( status ? (status.id || 0 ) : 0);\r\n self.tabelaEnumValue = ko.observable( status ? (status.tabela || 0) : 0);\r\n \tself.parentId = ko.observable( status ? (status.parentId || 0) : 0);\r\n \tself.typeValue = ko.observable( status ? (status.type || 0) : 0);\r\n \tself.status = ko.observable( status ? (status.status || \"\") : \"\");\r\n self.statusTypeEnumValue = ko.observable( status ? (status.statusType || \"\") : \"\");\r\n \tself.createUser = ko.observable( status ? (status.create_user || \"\") : \"\");\r\n \tself.createDateUTC = ko.observable( status ? (status.create_date || 0) : 0);\r\n \tself.modifyUser = ko.observable( status ? (status.modify_user || \"\") : \"\");\r\n \tself.modifyDateUTC = ko.observable( status ? (status.modify_date || \"\") : \"\");\r\n\r\n } catch (e) {\r\n \tconsole.log(e)\r\n }\r\n }", "setStatus(pid, status) {\n\t\tthis.statusCache[pid] = status;\n\t}", "function updateStatusData() {\r\n\r\n var requestURL = 'comm/getStatus';\r\n var method = 'POST';\r\n var headers = {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n };\r\n var body = {\r\n all: true\r\n }\r\n\r\n jsonBody = JSON.stringify(body);\r\n\r\n fetch(requestURL, {\r\n headers: headers,\r\n method: method,\r\n body: jsonBody\r\n }).then((response) => {\r\n if (parseInt(response.clone().status) < 400) {\r\n // fetch was successful, store it in the IDB.\r\n response.clone().json().then((result) => {\r\n for(var i in result.zoneStatus){\r\n StatusIDBFuncSet.addData(StatusIDBSettings.tables[0].tableName, result.zoneStatus[i]);\r\n }\r\n }).catch((err) => {\r\n console.log(`[SW] ERROR in status json: ${err}`);\r\n console.log(response.clone().json());\r\n })\r\n } else {\r\n console.log('[SW] Server returned error for /comm/getStaus:', response.clone().status);\r\n }\r\n }).catch((err) => {\r\n console.log('[SW] Failed to get new status for loc: ', loc);\r\n })\r\n}", "function PostStatusModel() {\n this.bgColor = randomColorGenerator();\n this.isCommentAllowed = true;\n this.isExpiryMessage = false;\n}", "postChangeStatus(data, callback, errorCallback) {\n CommonUtil.requestAxios(\n baseServerAxios().post(\n UrlConstant.api.topic.TS_POST_TOPIC_STATUS,\n JSON.stringify({\n id: data.id,\n status: data.status\n })\n ),\n callback,\n errorCallback\n );\n }", "async function saveEventType(req, res) {\n let body = req.body;\n\n let type = {\n name: body.name,\n description: body.description,\n status: body.status || true\n }\n\n await EventType.create(type)\n .then(async type => {\n saveBitacora('EventType', type.id, type.description, 'create', req.user.id);\n res.status(200).json({\n ok: true,\n message: 'Tipo de evento creado con éxito',\n type\n });\n })\n .catch(err => {\n res.status(500).send({\n ok: false,\n message: 'Tipo de evento no creado, ha ocurrido un error',\n error: err.parent.detail\n });\n });;\n}", "function updateStatus(newStatus) {\n console.log(\"PX: UPDATE STATUS:\" + newStatus + \"\\n\");\n }", "function saveRecord(record) {\n //open a connection to the db, access the object store, and use the .add method to add the record to the IndexedDB.\n const transaction = db.transaction(['offline_actions'], 'readwrite');\n const actionsObjectStore = transaction.objectStore('offline_actions');\n actionsObjectStore.add(record);\n}", "function create(req, res, next) {\n var familymemberhistory = new Familymemberhistory();\n familymemberhistory.pid = req.body.pid;\n familymemberhistory.status = req.body.status;\n familymemberhistory.relationship = req.body.relationship;\n familymemberhistory.bornDate = req.body.bornDate;\n familymemberhistory.deceased = req.body.deceased;\n familymemberhistory.deceasedAge = req.body.deceasedAge;\n familymemberhistory.condition = req.body.condition;\n familymemberhistory.outcome = req.body.outcome;\n familymemberhistory.onsetAge = req.body.onsetAge;\n familymemberhistory.onsetRange = req.body.onsetRange;\n familymemberhistory.onsetPeriod = req.body.onsetPeriod;\n familymemberhistory.save(function(err, familymemberhistory) {\n if (err) throw err;\n res.json({newFamilymemberhistory: familymemberhistory});\n });\n}", "addNewRecordByValue() {\n this.addNewRecord('value');\n }", "async function publishStatus(status = getStatus()) {\n await client.publish('vpn/status', status);\n}", "_addJob() {\n this.core.log.verbose(`Saving new job ${this.id} for ${this.queue}`);\n return this.core.client\n .addjob(\n this._toQueueKey('jobs'),\n this._toQueueKey('waiting'),\n this._toQueueKey('stats'),\n this.toData(),\n !!this.options.unique,\n this.id\n ).then((id) => {\n if (this.options.unique && id === 0) {\n this.status = 'duplicate';\n return Promise.reject(new Error(`ERR_DUPLICATE: Job ${this.id} already exists, save has been aborted.`));\n }\n\n this.core.log.verbose(`Saved job for ${this.queue}`);\n\n this.id = id;\n this.status = 'saved';\n return Promise.resolve(this.toObject(true));\n });\n }", "async function create(record, indexArg = indexName) {\n logger.trace('creating record', logRecord ? record : null);\n\n const query = {\n index: indexArg,\n type: recordType,\n id: record[idField],\n body: record,\n refresh: forceRefresh,\n };\n\n return elasticsearch.create(query);\n }", "function createSuccess(entity) {\n return {\n type: CREATE_SUCCESS,\n payload: entity\n };\n }", "getstatus() {\n return { message: this._message, errors_exists: this._errors_exists };\n }", "async create() {\n const { ctx } = this;\n\n // try to create new ticket\n try {\n // service\n const id = await ctx.service.ticket.create(ctx);\n // response\n ctx.helper.success(ctx, id, 'success', 201);\n } catch (err) {\n // response with error\n ctx.helper.error(ctx, err.message, 401)\n }\n }", "@action.bound\n updateStatus(newStatus) {\n this.status = newStatus;\n }", "function StatusManagementApi() {\n var _this = _super.call(this, StatusManagementApi_1.baseUrl) || this;\n // public readonly updateStatusItem: string = super.appendToBaseUrl('/update_status_item');\n // public readonly updateStatusPn: string = super.appendToBaseUrl('/update_status_pn');\n // public readonly updateStatusSb: string = super.appendToBaseUrl('/update_status_sb');\n // public readonly updateStatusTask: string = super.appendToBaseUrl('/update_status_task');\n // public readonly updateStatusEvolution: string = super.appendToBaseUrl('/update_status_evolution');\n // public readonly updateStatusEvolutionEvolution: string = super.appendToBaseUrl('/update_status_evolution_evolution');\n // public readonly updateStatusEvolutionItem: string = super.appendToBaseUrl('/update_status_evolution_item');\n // public readonly updateStatusEvolutionPn: string = super.appendToBaseUrl('/update_status_evolution_pn');\n // public readonly updateStatusEvolutionSb: string = super.appendToBaseUrl('/update_status_evolution_sb');\n // public readonly updateStatusEvolutionVariant: string = super.appendToBaseUrl('/update_status_evolution_variant');\n // public readonly updateStatusAlternativePn: string = super.appendToBaseUrl('/update_status_alternative_pn');\n // public readonly updateStatusItemItem: string = super.appendToBaseUrl('/update_status_item_item');\n // public readonly updateStatusItemPnEvolution: string = super.appendToBaseUrl('/update_status_item_pn_evolution');\n // public readonly updateStatusConfiguration: string = super.appendToBaseUrl('/update_status_configuration');\n // public readonly updateStatusConfigurationPack: string = super.appendToBaseUrl('/update_status_configuration_pack');\n // public readonly updateStatusItemVersion: string = super.appendToBaseUrl('/update_status_item_version');\n // public readonly updateStatusModification: string = super.appendToBaseUrl('/update_status_modification');\n // public readonly updateStatusModificationVariant: string = super.appendToBaseUrl('/update_status_modification_variant');\n // public readonly updateStatusPackEvolution: string = super.appendToBaseUrl('/update_status_pack_evolution');\n // public readonly updateStatusPackBaseOption: string = super.appendToBaseUrl('/update_status_pack_base_option');\n // public readonly updateStatusSbVariant: string = super.appendToBaseUrl('/update_status_sb_variant');\n // public readonly updateStatusVariantVersion: string = super.appendToBaseUrl('/update_status_variant_version');\n // public readonly updateStatusVersionPn: string = super.appendToBaseUrl('/update_status_version_pn');\n // public readonly updateStatusInventory: string = super.appendToBaseUrl('/update_status_inventory');\n // public readonly updateStatusDecision: string = super.appendToBaseUrl('/update_status_decision');\n // public readonly updateStatusWorkOrder: string = super.appendToBaseUrl('/update_status_work_order');\n _this.updateStatusGlobal = _super.prototype.appendToBaseUrl.call(_this, '/update_status_global');\n return _this;\n }", "function _createLogEntry() {\n\t\ttry {\n\t\t\t//Get the Request Body\n\t\t\tvar oBody = JSON.parse($.request.body.asString());\n\t\t\tvar requestPayload = oBody.PAYLOAD_REQUEST;\n\t\t\tvar responsePayload = oBody.PAYLOAD_RESPONSE;\n\t\t\tvar statusCode,\n\t\t\t\tstatusMessage;\n\n\t\t\trequestPayload = requestPayload.replace(\"\\\\\", \"\");\n\t\t\tif (requestPayload) {\n\t\t\t\ttry {\n\t\t\t\t\tvar request = JSON.parse(requestPayload);\n\t\t\t\t} catch (convError) {\n\t\t\t\t\tgvConvError = convError.message;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresponsePayload = responsePayload.replace(\"\\\\\", \"\");\n\t\t\tresponsePayload = responsePayload.replace(\"\\n\", \"\");\n\t\t\tif (responsePayload) {\n\t\t\t\ttry {\n\t\t\t\t\tvar response = JSON.parse(responsePayload);\n\t\t\t\t} catch (convError) {\n\t\t\t\t\tgvConvError += convError.message;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Get the Database connection\n\t\t\tvar oConnection = $.db.getConnection();\n\n\t\t\t//Build the Statement to insert the entries\n\t\t\tvar oStatement = oConnection.prepareStatement('INSERT INTO \"' + gvSchemaName + '\".\"' + gvTableName +\n\t\t\t\t'\" VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)');\n\n\t\t\t//Populate the fields with values from the incoming payload\n\t\t\t//Message GUID\n\t\t\toStatement.setString(1, oBody.MESSAGE_GUID);\n\t\t\t//Start Time\n\t\t\toStatement.setString(2, oBody.START_TIME);\n\t\t\t//End Time\n\t\t\toStatement.setString(3, oBody.END_TIME);\n\t\t\t//Status\n\t\t\toStatement.setString(4, oBody.STATUS);\n\t\t\t//Payload Request\n\t\t\toStatement.setString(5, oBody.PAYLOAD_REQUEST);\n\t\t\t//Payload Response\n\t\t\t//var response = JSON.stringify(body.PAYLOAD_RESPONSE);\n\t\t\toStatement.setString(6, oBody.PAYLOAD_RESPONSE);\n\t\t\t//Object Key\n\t\t\toStatement.setString(7, oBody.OBJECT_KEY);\n\t\t\t//Method\n\t\t\toStatement.setString(8, oBody.METHOD);\n\t\t\t//Direction\n\t\t\toStatement.setString(9, oBody.DIRECTION);\n\t\t\t//Source System ID\n\t\t\toStatement.setString(10, oBody.SOURCE_SYS_ID);\n\t\t\t//Source System Area\n\t\t\toStatement.setString(11, oBody.SOURCE_SYS_AREA);\n\t\t\t//Target System ID\n\t\t\toStatement.setString(12, oBody.TARGET_SYS_ID);\n\t\t\t//Target System Area\n\t\t\toStatement.setString(13, oBody.TARGET_SYS_AREA);\n\t\t\t//Interface\n\t\t\toStatement.setString(14, oBody.INTERFACE);\n\t\t\t//Status Code\n\t\t\tif (oBody.STATUS_CODE) {\n\t\t\t\toStatement.setString(15, oBody.STATUS_CODE);\n\t\t\t\t//Status Message\n\t\t\t\toStatement.setString(16, oBody.STATUS_MESSAGE);\n\t\t\t} else {\n\t\t\t\tif (response) {\n\t\t\t\t\tif (response.StatusCode) {\n\t\t\t\t\t\toStatement.setString(15, response.StatusCode);\n\t\t\t\t\t\t//Status Message\n\t\t\t\t\t\toStatement.setString(16, response.StatusMessage);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstatusCode = \"CDL-E002\";\n\t\t\t\t\t\tstatusMessage = \"Error occured during processing\";\n\t\t\t\t\t\toStatement.setString(15, statusCode);\n\t\t\t\t\t\toStatement.setString(16, statusMessage);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tstatusCode = \"CDL-E002\";\n\t\t\t\t\tstatusMessage = \"Error occured during processing, Investigate using IntegrationMessageId on Pulse :\";\n\t\t\t\t\toStatement.setString(15, statusCode);\n\t\t\t\t\toStatement.setString(16, statusMessage);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Add Batch process to executed on the database\n\t\t\toStatement.addBatch();\n\n\t\t\t//Execute the Insert\n\t\t\toStatement.executeBatch();\n\n\t\t\t//Close the connection\n\t\t\toStatement.close();\n\t\t\toConnection.commit();\n\t\t\toConnection.close();\n\n\t\t\tgvTableUpdate = \"Table entries created successfully in logging table;\";\n\n\t\t} catch (errorObj) {\n\t\t\tif (oStatement !== null) {\n\t\t\t\toStatement.close();\n\t\t\t}\n\t\t\tif (oConnection !== null) {\n\t\t\t\toConnection.close();\n\t\t\t}\n\t\t\tgvTableUpdate = \"There was a problem inserting entries into the logging table, Error: \" + errorObj.message;\n\t\t}\n\t}", "function _createInstance(instance) {\n return Object.assign({\n id: app.id('i'),\n name: 'New',\n active: true,\n pending: 0,\n original: null,\n code: '',\n dirty: false,\n connections: [],\n connection: null,\n created: new Date().getTime()\n }, instance);\n }", "create(req, res){\r\n let report = new RentalController();\r\n\r\n report.damages = req.body.damages;\r\n report.condition = req.body.condition;\r\n report.status = req.body.status;\r\n\r\n return this.rentalDao.create(report)\r\n .then(this.common.editSuccess(res))\r\n .catch(this.common.serverError(res));\r\n }", "getStatus () {\n return {\n account: this.account,\n violations: this.violations\n }\n }", "function create(baymaxReqObj) {\n\t\t\tvar params = processTimingParams(baymaxReqObj.result.parameters, {\n\t\t\t\tendTime : Date.now()\n\t\t\t});\n\t\t\treturn createRecord(params);\n\t\t}", "async createProfile(body){\n var first_name = body.first_name;\n var last_name = body.last_name;\n var faculty_id = body.faculty_id;\n var gender = body.gender;\n var admission_date = moment().format(\"YYYY-MM-DD kk:mm:ss\");\n var grade = body.grade;\n var student_status = body.student_status;\n var create_by = body.create_by;\n var create_date = moment().format(\"YYYY-MM-DD kk:mm:ss\");\n var update_by = body.update_by;\n var update_date = moment().format(\"YYYY-MM-DD kk:mm:ss\");\n var work_status = body.work_status;\n \n var request = new sql.Request();\n await request.query(`INSERT INTO pingDB.dbo.STUDENT_PROFILE (first_name, last_name, faculty_id,\n gender, admission_date, grade, student_status, create_by, create_date,\n update_by, update_date, work_status)\n VALUES ('${first_name}', '${last_name}', ${faculty_id}, '${gender}', '${admission_date}',\n ${grade}, '${student_status}', '${create_by}', '${create_date}', '${update_by}', '${update_date}', '${work_status}')`);\n var message = {\n message: \"Create Profile Success\"\n }\n return message;\n }", "get status() {\n\t\treturn this._status;\n\t}", "async function CreateMerchantMRInstance(merchantId, channelId, record) {\n // NOTIFY PROGRESS\n // LOCAL VARIABLES\n var ref = db.ref('Merchants/' + merchantId + \"/Channels/\" + channelId + \"/mrInstances\");\n var timestamp = new Date(Date.now()).toISOString();\n record._createdAt = timestamp;\n record._updatedAt = timestamp;\n\n // EXECUTE\n try {\n ref.push(record, function(error) {\n if (error) {\n console.log(\"Merchant MR Instance Data could not be saved.\" + error);\n } else {\n console.log(\"Merchant MR Instance Data saved successfully.\");\n }\n });\n } catch (error) {\n console.log('CreateMerchantChannel error: ', error);\n }\n}", "function statusUpdate() {\n\t\tvar webAPI3 = new globals.xml.gameStatus(gameID);\n\t}", "static updateStatusIsServed(payload) {\n const filterId = { _id: ObjectId(payload._id) }\n const updateData = {\n $set: {\n status: payload.status\n }\n }\n return getDatabase().collection('Customers').updateOne(filterId, updateData)\n }", "function getStatus() {\n return status;\n }", "createRecord(store, type, snapshot) {throw new Error(\"fdsnstation is read-only, create not allowed.\");}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "get status () {\n\t\treturn this._status;\n\t}", "function createWarehouse() {\n $scope.busy = true;\n Warehouse.create($scope.warehouse)\n .$promise\n .then(\n function(response) {\n $scope.busy = false;\n $scope.notify('Registro creado satisfactoriamente.',\n 'success');\n $state.go($scope.return.to, $scope.return.paramsTo);\n },\n function(err) {\n $scope.busy = false;\n console.log(err);\n $scope.notify(err.data.error.message);\n });\n }" ]
[ "0.63833004", "0.6075187", "0.59555286", "0.58781314", "0.5705293", "0.56948614", "0.56543225", "0.56512386", "0.55166435", "0.54728854", "0.54646176", "0.54108137", "0.5409558", "0.54002345", "0.53843033", "0.53717256", "0.5357016", "0.5357016", "0.5334392", "0.5322327", "0.5320259", "0.5319048", "0.5307307", "0.5301653", "0.53012127", "0.52877", "0.5271299", "0.52693206", "0.5262594", "0.52530605", "0.5227343", "0.5227157", "0.5219231", "0.5205782", "0.5205598", "0.51747805", "0.51661414", "0.51652145", "0.51535934", "0.5148712", "0.51480174", "0.51442045", "0.512858", "0.5116073", "0.509547", "0.509415", "0.5094126", "0.50835454", "0.50784236", "0.5047292", "0.5041899", "0.5032962", "0.5029744", "0.5028908", "0.5025373", "0.502033", "0.49835378", "0.4975187", "0.49711382", "0.49704993", "0.4967346", "0.49657708", "0.49650306", "0.49625608", "0.4956936", "0.49505785", "0.49504834", "0.4944238", "0.49349633", "0.4931209", "0.49254856", "0.49159485", "0.4914108", "0.4913695", "0.4909046", "0.49045932", "0.49009684", "0.4897167", "0.4897158", "0.48965114", "0.48859382", "0.48794466", "0.48773715", "0.48767406", "0.48763767", "0.48696995", "0.48663342", "0.48660973", "0.4862345", "0.4861662", "0.48598725", "0.48598725", "0.48598725", "0.48598725", "0.48598725", "0.48598725", "0.48598725", "0.48598725", "0.48598725", "0.48584232" ]
0.7883399
0
Collect and report the versions of the software installed on the instance
collectVersions() { const versions = { schema: 1, container: { commit: null, tools: { java: null, }, }, client: { version: null, }, jenkins: { core: null, plugins: { } } }; Object.assign(versions.container.tools, process.versions); versions.jenkins.core = Checksum.signatureFromFile(path.join(Storage.jenkinsHome(), 'jenkins.war')); /* * Grab the version of the container from the root of the filesystem */ const commitFile = '/commit.txt'; if (fs.existsSync(commitFile)) { versions.container.commit = fs.readFileSync(commitFile, 'utf8'); } try { const files = fs.readdirSync(Storage.pluginsDirectory()); files.forEach((file) => { const matched = file.match(/^(.*).hpi$/); if (matched) { const name = matched[1]; const fullPath = path.join(Storage.pluginsDirectory(), file); versions.jenkins.plugins[name] = Checksum.signatureFromFile(fullPath); } }); } catch (err) { if (err.code == 'ENOENT') { logger.warn('No plugins found from which to report versions'); } else { throw err; } } return versions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async function showVersions() {\n core.startGroup(\"Show Versions\")\n\n await exec.exec('ruby', ['--version'])\n await exec.exec('ruby', ['-ropenssl', '-e', \"puts OpenSSL::OPENSSL_LIBRARY_VERSION\"])\n await exec.exec('gem', ['--version'])\n await exec.exec('bundle', ['--version'])\n await exec.exec('openssl', ['version'])\n\n core.endGroup()\n}", "async function showVersions() {\n core.startGroup(\"Show Versions\")\n\n await exec.exec('ruby', ['--version'])\n await exec.exec('ruby', ['-ropenssl', '-e', \"puts OpenSSL::OPENSSL_LIBRARY_VERSION\"])\n await exec.exec('gem', ['--version'])\n await exec.exec('bundle', ['--version'])\n await exec.exec('openssl', ['version'])\n core.endGroup()\n}", "function enumerateVsInstalls(opts) {\r\n const args = [];\r\n if (opts.version) {\r\n args.push(`-version [${opts.version},${Number(opts.version) + 1})`);\r\n }\r\n if (opts.requires) {\r\n args.push(`-requires ${opts.requires.join(' ')}`);\r\n }\r\n if (opts.latest) {\r\n args.push('-latest');\r\n }\r\n return vsWhere(args, opts.verbose);\r\n}", "function osVerLog() {\n var osVer = document.querySelector(\".osVer\");\n\n var osysVer = result.os.version;\n console.log(osysVer);\n osVer.innerHTML += osysVer;\n }", "init() {\r\n\t\tthis.sendCommand(\"get/System/SoftwareVersion\");\r\n\t}", "function _getVersions(){\n return versions;\n }", "async function getComponentVersions() {\n const compRegistryAPI = global.ASOPM_COMPREGISTRY_URL;\n return axios\n .get(compRegistryAPI)\n .then(res => {\n if (res.data && res.data.length) {\n console.log(chalk.green('Component Registry Data:'));\n createComponentRegistryTable(res.data);\n } else {\n console.log(chalk.red(`(\\u2718) No components found in registry!`));\n }\n return res.data;\n })\n .catch(err => {\n console.log(chalk.red('Component Registry Error -'));\n console.log(chalk.red(`(\\u2718) ${err.toString()}`));\n return { err };\n });\n}", "function getVersionList() {\n ctrl.versionList = ['danube'];\n ctrl.update();\n }", "function getProductVersions() {\n ctrl.showError = false;\n var content_url = refstackApiUrl + '/products/' + ctrl.id +\n '/versions';\n ctrl.productVersionsRequest = $http.get(content_url).success(\n function(data) {\n ctrl.productVersions = data;\n\n // Determine the null version.\n for (var i = 0; i < data.length; i++) {\n if (data[i].version === null) {\n ctrl.nullVersion = data[i];\n break;\n }\n }\n }\n ).error(function(error) {\n ctrl.showError = true;\n ctrl.error =\n 'Error retrieving versions from server: ' +\n angular.toJson(error);\n });\n }", "function listVersions() {\n\tgetAccessToken().then(function (accessToken) {\n\t\tconst options = {\n\t\t\turi: HOST + PATH + ':listVersions?pageSize=5',\n\t\t\tmethod: 'GET',\n\t\t\tresolveWithFullResponse: true,\n\t\t\theaders: {\n\t\t\t\t'Authorization': 'Bearer ' + accessToken,\n\t\t\t},\n\t\t};\n\n\t\trp(options)\n\t\t\t.then(function (resp) {\n\t\t\t\tconsole.log('Versions:');\n\t\t\t\tconsole.log(resp.body);\n\t\t\t})\n\t\t\t.catch(function (err) {\n\t\t\t\tconsole.error('Unable to list versions');\n\t\t\t\tconsole.error(err);\n\t\t\t});\n\t});\n}", "get availableAppVersions() {\n return Util.deepCopy(storeData.availableAppVersions);\n }", "logVersions() {\n /** Get framework version. */\n cy.get('#shop_version').then($frameworkVersion => {\n var frameworkVersion = ($frameworkVersion.text()).replace(/.*[^0-9.]/g, '');\n cy.wrap(frameworkVersion).as('frameworkVersion');\n });\n\n this.goToPageAndIgnoreWarning(this.ModulesAdminUrl);\n\n /** Get Paylike version. */\n cy.get(`div[data-tech-name*=${this.PaylikeName}]`).invoke('attr', 'data-version').then($pluginVersion => {\n cy.wrap($pluginVersion).as('pluginVersion');\n });\n\n /** Get global variables and make log data request to remote url. */\n cy.get('@frameworkVersion').then(frameworkVersion => {\n cy.get('@pluginVersion').then(pluginVersion => {\n\n cy.request('GET', this.RemoteVersionLogUrl, {\n key: frameworkVersion,\n tag: this.ShopName,\n view: 'html',\n ecommerce: frameworkVersion,\n plugin: pluginVersion\n }).then((resp) => {\n expect(resp.status).to.eq(200);\n });\n });\n });\n }", "function checkForUpdate() {\n superagent.get(packageJson).end((error, response) => {\n if (error) return;\n const actualVersion = JSON.parse(response.text).version; // TODO: case without internet connection\n console.log('Actual app version: ' + actualVersion + '. Current app version: ' + currentVersion);\n if (semver.gt(actualVersion, currentVersion)) {\n mb.window.webContents.send('update-available');\n console.log('New version is available!');\n }\n });\n}", "function getVersions() {\n const paths = [\n getDestPackageFile('core'),\n getDestPackageFile('auth'),\n getDestPackageFile('database'),\n getDestPackageFile('firestore'),\n getDestPackageFile('storage'),\n getDestPackageFile('database-deprecated')\n ];\n return paths\n .map(path => require(path))\n .map(pkgs => pkgs.version);\n}", "function osVerNameLog() {\n var osVerName = document.querySelector(\".osVerName\");\n\n var osysVerName = result.os.versionName;\n console.log(osysVerName);\n osVerName.innerHTML += osysVerName;\n }", "function fetchVersions() {\n return __awaiter(this, void 0, void 0, function* () {\n let rest = new restm.RestClient(\"setup-arduino-cli\");\n let tags = (yield rest.get(\"https://api.github.com/repos/Arduino/arduino-cli/git/refs/tags\")).result || [];\n return tags\n .filter(tag => tag.ref.match(/\\d+\\.[\\w\\.]+/g))\n .map(tag => tag.ref.replace(\"refs/tags/\", \"\"));\n });\n}", "function get_available_fabric_versions(dep_cb) {\n\t\t\tconst fake_req = {\n\t\t\t\tquery: {},\n\t\t\t\theaders: {},\n\t\t\t\t_skip_cache: true,\n\t\t\t};\n\t\t\tt.deployer.get_fabric_versions(fake_req, (err, resp) => {\n\t\t\t\treturn dep_cb(err, resp);\n\t\t\t});\n\t\t}", "function loadVersions() {\n var $navHeader = $( 'header' );\n var $additionalVersions = $( '<ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\" aria-labelledby=\"dropdownMenu1\"/>' );\n $.each( window.docMeta.availableDocVersions, function( index, version ) {\n if ( version === currentVersion ) {\n return;\n }\n else {\n addVersion( version, $additionalVersions );\n }\n } );\n\n var $dropdown = $( '<div id=\"additional-versions\"><div class=\"dropdown\"><a class=\"dropdown-toggle\"id=\"dropdownMenu1\" data-toggle=\"dropdown\">Versions <i class=\"fa fa-caret-down\"></i></a></div></div>' );\n $dropdown.children().first().append( $additionalVersions );\n $navHeader.append( $dropdown );\n }", "getVersions() {\n var arr = [];\n for (var i = 0; i < this.versionMap.length; i++) {\n arr.push(this.versionMap[i].chromedriverVersion);\n }\n return arr;\n }", "async function getPythonVersions(command) {\n let result;\n try {\n result = await execProm(command);\n } catch (e) {\n result = e;\n }\n if (Error[Symbol.hasInstance](result))\n return;\n\n console.log(result);\n\n return result;\n}", "function getLocalNodeVers(cb) {\n var nave_path = process.env.HOME + \"/.nave/installed/\";\n\n fs.readdir(nave_path, cb);\n}", "function browVerLog() {\n var browVer = document.querySelector(\".browVer\");\n\n var browserVer = result.browser.version;\n console.log(browserVer);\n browVer.innerHTML += browserVer;\n }", "function checkNewApp (){\n\tif (lastUpdate == undefined){\n\t\tactivateScript(\"system_profiler SPApplicationsDataType\", (stdout)=>{\n\t\t\tvar softwareInfos = stdout.split(\"\\n\\n\");\n\t\t\tvar softwareName;\n\t\t\tvar softwareNames = [];\n\t\t\tvar localSoftwares_incomplete = [];\n\t\t\tsoftwareInfos.forEach((ASoftwareInfo)=>{\n\t\t\t\tvar lines = ASoftwareInfo.split(\"\\n\");\n\t\t\t\tif (lines.length === 1){\n\t\t\t\t\tvar nameLine = lines[0];\n\t\t\t\t\tvar nameLineSplit = nameLine.split(\":\");\n\t\t\t\t\tsoftwareName = nameLineSplit[0].replace(/ /g,'');\n\t\t\t\t}else {\n\t\t\t\t\tvar versionLine = lines[0];\n\t\t\t\t\tvar versionSplit = versionLine.split(\": \");\n\t\t\t\t\tsoftwareNames.push(softwareName);\n\t\t\t\t\tvar tempAppInfo = {\n\t\t\t\t\t\t\"name\": softwareName,\n\t\t\t\t\t\t\"old_version\": versionSplit[1],\n\t\t\t\t\t\t\"new_version\": 2,\n\t\t\t\t\t\t\"id\": \"0\",\n\t\t\t\t\t\t\"updatable\": \"false\"\n\t\t\t\t\t}\n\t\t\t\t\tlocalSoftwares_incomplete.push(tempAppInfo);\n\t\t\t\t}\n\t\t\t});\n\t\t\tsetCompleteInfo(softwareNames, localSoftwares_incomplete);\n\t\t\tlastUpdate = new Date();\n\t\t});\n\t}\n}", "function fetchReleases( ) {\n\tconst result = [ 'echo \"see https://github.com/ethereum/solc-bin/blob/gh-pages/bin/list.json\"' ] ;\n\tfor( var version in releaseTable ) {\n\t\tresult.push( 'wget https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/' + releaseTable[ version ] ) ;\n\t}\n\treturn result.join( '\\n' ) ;\n}", "function getIstalledVersionsOpenTS() {\n if (!fs.existsSync(openapisPath)) {\n fs.mkdirSync(openapisPath);\n }\n var filesNames = fs.readdirSync(openapisPath);\n return filesNames\n .filter((fn) => fn != '.gitkeep' && fn != currentFileName)\n .map((fn) => fn.match(reVersion).groups.version.replaceAll('_', '.'));\n}", "function getLogstashVersionsAvailable() {\n var logstash_versions = []\n\n var res = execSync('docker image list --filter \"reference=titan-project-logstash\" --format \"{{.Tag}}\"')\n\n logstash_versions = res.toString('utf8').split('\\n')\n \n logstash_versions = logstash_versions.filter(function( element ) {\n return element !== undefined && element != \"\";\n });\n \n if (logstash_versions.length == 0) {\n logger.warn({\n \"action\": \"get_logstash_versions\",\n \"state\": \"failed\"\n }, \"No Logstash versions were found\")\n }\n\n return logstash_versions\n}", "function version() {\n\tvar msg = pkg.version.toString()+'\\n';\n\tprocess.stdout.write( msg, 'utf8' );\n\tprocess.exit( 0 );\n}", "function version() {\n\tvar msg = pkg.version.toString()+'\\n';\n\tprocess.stdout.write( msg, 'utf8' );\n\tprocess.exit( 0 );\n}", "function version() {\n\tvar msg = pkg.version.toString()+'\\n';\n\tprocess.stdout.write( msg, 'utf8' );\n\tprocess.exit( 0 );\n}", "function showVersion(packageName) {\n const cmd = `dpkg -l ${packageName} | tail -1 | tr -s ' ' | cut -d' ' -f3`;\n cp.exec(cmd, (err, stdout, stderr) => {\n if (err) throw err;\n process.stderr.write(stderr);\n process.stdout.write('v' + stdout);\n });\n}", "_collectSupportedAgents() {\n const jarFilter = (file) => path.extname(file) === '.jar';\n\n const agentArchives = fs.readdirSync(settings.agent.dists)\n .filter((file) => path.extname(file) === '.zip');\n\n const agentsPromises = _.map(agentArchives, (fileName) => {\n const filePath = path.join(settings.agent.dists, fileName);\n\n return JSZip.loadAsync(fs.readFileSync(filePath))\n .then((zip) => {\n const jarPath = _.find(_.keys(zip.files), jarFilter);\n\n return JSZip.loadAsync(zip.files[jarPath].async('nodebuffer'))\n .then((jar) => jar.files['META-INF/MANIFEST.MF'].async('string'))\n .then((lines) =>\n _.reduce(lines.split(/\\s*\\n+\\s*/), (acc, line) => {\n if (!_.isEmpty(line)) {\n const arr = line.split(/\\s*:\\s*/);\n\n acc[arr[0]] = arr[1];\n }\n\n return acc;\n }, {}))\n .then((manifest) => {\n const ver = manifest['Implementation-Version'];\n const buildTime = manifest['Build-Time'];\n\n if (ver && buildTime)\n return { fileName, filePath, ver, buildTime };\n });\n });\n });\n\n return Promise.all(agentsPromises)\n .then((descs) => {\n const agentDescs = _.keyBy(_.remove(descs, null), 'ver');\n\n const latestVer = _.head(Object.keys(agentDescs).sort((a, b) => {\n const aParts = a.split('.');\n const bParts = b.split('.');\n\n for (let i = 0; i < aParts.length; ++i) {\n if (aParts[i] !== bParts[i])\n return aParts[i] < bParts[i] ? 1 : -1;\n }\n\n if (aParts.length === bParts.length)\n return 0;\n\n return aParts.length < bParts.length ? 1 : -1;\n }));\n\n // Latest version of agent distribution.\n if (latestVer)\n agentDescs.current = agentDescs[latestVer];\n\n return agentDescs;\n });\n }", "function showVersions(res) {\n getAllReleases(function (error, versions) {\n if (error) {\n return renderErrorPage(res, `Error: ${error.message}`);\n }\n let versionArray = [];\n for (let version in versions) {\n if (versions.hasOwnProperty(version)) {\n versionArray.push(version);\n }\n }\n return renderRestPage(res, versionArray);\n });\n}", "function display_version() {\n\tvar appdesc = air.Shell.shell.applicationDescriptor;\n\tvar xmlobject = (new DOMParser()).parseFromString(appdesc, \"text/xml\");\n\tvar root = xmlobject.getElementsByTagName ('application')[0];\n\tvar ver = root.getAttribute(\"version\");\n\tvar version = new Element('span',{'id':'version'});\n\tversion.injectInside($$('h1')[0]);\n\tversion.setText(' ' + ver);\n}", "get softwareVersion() {\n return this.sysInfo.sw_ver;\n }", "function populateAboutVersionInformation(){\n populateVersionInformation(remote.app.getVersion(), document.getElementById('settingsAboutCurrentVersionValue'), document.getElementById('settingsAboutCurrentVersionTitle'), document.getElementById('settingsAboutCurrentVersionCheck'))\n}", "function ComponentsVersions(conference) {\n this.versions = {};\n this.conference = conference;\n this.conference.addCommandListener('versions', this.processVersions.bind(this));\n}", "async function getFilteredVersions() {\n const versions = await dockerLogic.getVersions();\n const now = new Date().getTime();\n const elapsedTime = now - lastImagePulled;\n\n for (const version in versions) {\n if (Object.prototype.hasOwnProperty.call(versions, version)) {\n let filtered = false;\n\n if (elapsedTime < constants.TIME.NINETY_MINUTES_IN_MILLIS || pullingImages) {\n filtered = true;\n versions[version].updatable = false;\n }\n\n // Return the fact that all services are being filtered.\n versions[version].filtered = filtered;\n }\n }\n\n return versions;\n}", "_listOSVersions(location, options) {\n return this.client.sendOperationRequest({ location, options }, listOSVersionsOperationSpec);\n }", "function createVersionAndOSSpan() {\n var span = $('<span>').attr('class', 'version-info');\n if (node.status === 'online') {\n $(span).text('v' + node.version);\n }\n if (node.os !== 'not available') {\n $(span).text($(span).text() + ' on ' + node.os);\n }\n return span;\n }", "function listVersions(data)\n{\n paths = getPaths();\n\n var all_versions = document.getElementById(\"all-versions\");\n var current = document.getElementById(\"current\");\n for( var i = 0; i < data.length; i++ )\n {\n var one = data[i];\n if (one.id === paths['current']) {\n // Put the current version at the top without link.\n current.innerText = one.version+\" ⌄\";\n }\n else {\n // Put other versions into the dropdown and link them to the\n // suitable URL.\n var version = document.createElement(\"a\");\n version.appendChild(document.createTextNode(one.version));\n version.href = findNewURL(paths,one.id);\n all_versions.appendChild(version);\n }\n }\n}", "get appVersions() {\n return Util.deepCopy(storeData.appVersions);\n }", "function getLatestGoVersions() {\n return __awaiter(this, void 0, void 0, function* () {\n const timeout = oneday;\n const now = moment.now();\n let results;\n // Check if we can use cached results\n const cachedResults = stateUtils_1.getFromGlobalState(exports.latestGoVersionKey);\n if (cachedResults && now - cachedResults.timestamp < timeout) {\n results = cachedResults.goVersions;\n }\n else {\n // fetch the latest supported Go versions\n try {\n // fetch the latest Go versions and cache the results\n results = yield fetchDownloadableGoVersions();\n yield stateUtils_1.updateGlobalState(exports.latestGoVersionKey, {\n timestamp: now,\n goVersions: results,\n });\n }\n catch (e) {\n // hardcode the latest versions of Go in case golang.dl is unavailable\n results = [\n new GoEnvironmentOption('go get golang.org/dl/go1.15', 'Go 1.15'),\n new GoEnvironmentOption('go get golang.org/dl/go1.14.7', 'Go 1.14.7'),\n ];\n }\n }\n return results;\n });\n}", "function getSystemNodeVers(cb) {\n exec('node -v', function(err, stdout) {\n if (err) {\n return cb(err, null);\n }\n cb(null, stdout.slice(1).replace('\\n',''));\n });\n}", "function populate_host_software_versions(platform_ui, software_ui) {\r\n software_ui.find('option').remove();\r\n software_ui.append('<option value=\"ALL\">ALL</option>');\r\n $.ajax({\r\n url: \"/api/get_distinct_host_software_versions/platform/\" + platform_ui.val(),\r\n dataType: 'json',\r\n success: function(data) {\r\n $.each(data, function(index, element) {\r\n for (i = 0; i < element.length; i++) {\r\n var software_version = element[i].software_version;\r\n software_ui.append('<option value=\"' + software_version + '\">' + software_version + '</option>');;\r\n }\r\n });\r\n }\r\n });\r\n}", "async function srv() {\n if (! process.env.NODE_RVERSIONS_NOMOCK) {\n const {promisify} = require('util');\n const fs = require('fs');\n const readFile = promisify(fs.readFile);\n \n srv = await createTestServer();\n \n process.env.NODE_RVERSIONS_SVN = srv.url + '/tags';\n srv.propfind('/tags', async (req, res) => {\n const xml = await readFile('tests/fixtures/tags.txt', 'utf8');\n res.send(xml);\n });\n \n process.env.NODE_RVERSIONS_NICK = srv.url + '/nick/R-%s';\n srv.get('/nick/:ver', async (req, res) => {\n const ver = req.params.ver;\n if (ver == \"R-3-6-2\") {\n res.send(\"Dark and Stormy Night\");\n } else if (ver == \"R-3-6-3\") {\n res.send('Holding the Windsock');\n } else if (ver == \"R-4-1-3\") {\n res.send('One Push-Up');\n } else {\n res.send('This is ' + req.params.ver);\n }\n });\n \n process.env.NODE_RVERSIONS_MACOS_X86_64 = srv.url + '/dl/macos/%s';\n process.env.NODE_RVERSIONS_MACOS2_X86_64 = srv.url + '/dl/macos/%s';\n process.env.NODE_RVERSIONS_MACOS_ARM64 = srv.url + '/dl/macos/%s';\n process.env.NODE_RVERSIONS_MACOS2_ARM64 = srv.url + '/dl/macos/%s';\n process.env.NODE_RVERSIONS_TARBALL = srv.url + '/dl/tarball/%s';\n process.env.NODE_RVERSIONS_WIN = srv.url + '/dl/win/%s';\n srv.head('/dl/:os/:ver', async (req, res) => {\n const os = req.params.os;\n const ver = req.params.ver;\n if (os === \"macos\" && ver === \"4.2.3\") {\n res.status(404).end();\n } else {\n res.send();\n }\n });\n\n process.env.NODE_RVERSIONS_DEVEL = srv.url + '/devel';\n process.env.NODE_RVERSIONS_DEVEL_NICK = srv.url + '/devel-nick';\n srv.get('/devel', async (req, res) => {\n res.send('4.4.0 Under development (unstable)\\n');\n });\n srv.get('/devel-nick', async (req, res) => {\n res.send('Unsuffered Consequences\\n');\n });\n\n process.env.NODE_RVERSIONS_BRANCHES = srv.url + '/branches';\n process.env.NODE_RVERSIONS_BRANCH = srv.url + '/branch';\n process.env.NODE_RVERSIONS_BRANCH_NICK = srv.url + '/branch-nick';\n srv.propfind('/branches', async (req, res) => {\n const xml = await readFile('tests/fixtures/branches.txt', 'utf8');\n res.send(xml);\n });\n srv.get('/branch', async(req, res) => {\n res.send('4.2.0 alpha\\n');\n });\n srv.get('/branch-nick', async(req, res) => {\n res.send('\\n');\n });\n\n process.env.NODE_RVERSIONS_PATCHED_WIN = srv.url + '/patched-win';\n process.env.NODE_RVERSIONS_PATCHED_MACOS_X86_64 = srv.url + '/patched-macos';\n process.env.NODE_RVERSIONS_PATCHED_MACOS_ARM64 = srv.url + '/patched-macos';\n srv.head('/patched-win', async(req, res) => {\n res.status(200).end();\n });\n srv.head('/patched-macos', async(req, res) => {\n res.status(404).end();\n });\n\n process.env.NODE_RVERSIONS_LINUX_BUILDS_AMD64 = srv.url + '/versions.json';\n srv.get('/versions.json', async(req, res) => {\n const vers = await readFile('tests/fixtures/versions.json', 'utf8');\n res.send(vers);\n });\n\n process.env.NODE_RVERSIONS_GITHUB_API_URL = srv.url + '/gh';\n srv.post('/gh/graphql', async(req, res) => {\n const ans = await readFile('tests/fixtures/gh-arm64-release.json', 'utf8');\n res.set('content-type', 'application/json; charset=utf-8');\n res.set('x-github-media-type', 'github.v4; format=json');\n res.set('server', 'GitHub.com');\n res.set('date', Date());\n res.send(ans);\n });\n\n process.env.NODE_RVERSIONS_DEVEL_WIN = srv.url + '/rdevel.html';\n srv.get('/rdevel.html', async(req, res) => {\n const ans = await readFile('tests/fixtures/rdevel.html', 'utf8');\n res.set('content-type', 'text/html; charset=utf-8');\n res.send(ans);\n });\n }\n}", "reportPackageWithExistingVersion(req, info) {\n this.delayedResolveQueue.push({ req: req, info: info });\n }", "function getCliVersions() {\n // this seems to be ordered by semver\n const versionsJson = execFileSync('npm', [\n 'view',\n 'lighthouse',\n 'versions',\n '--json',\n ])\n const versions = JSON.parse(versionsJson)\n const lastVersionOfMajor = {}\n for (const version of versions) {\n const major = version.split('.')[0]\n lastVersionOfMajor[major] = version\n }\n\n const latestMajorVersion = Math.max(...Object.keys(lastVersionOfMajor).map(Number))\n return [\n lastVersionOfMajor[latestMajorVersion],\n lastVersionOfMajor[latestMajorVersion - 1],\n lastVersionOfMajor[latestMajorVersion - 2],\n ]\n}", "version () {\n var p = this.cli.exec(['--version'])\n\n return p.then(pro => {\n return pro.compact().toPromise(Promise).then(v => {\n var matches = v.toString().match(/Ledger (.*),/)\n if (matches) return matches[1]\n else throw new Error('Failed to match Ledger version')\n })\n })\n }", "async version() {\n const version = await this._getVersion();\n return version.product;\n }", "async version() {\n const version = await this._getVersion();\n return version.product;\n }", "async version() {\n const version = await this._getVersion();\n return version.product;\n }", "getInstalledVersion(force = false) {\n return Q.Promise((resolve, reject) => {\n if (!force && this.installedVersion !== null) {\n return resolve(this.installedVersion);\n }\n return commandExecutor_1.CommandExecutor.exec(this.name, ['--version'])\n .then(stdout => {\n const patt = /\\d{1,2}\\.\\d{1,2}\\.\\d{1,2}|\\d{1,2}\\.\\d{1,2}/g;\n this.installedVersion = version_1.Version.fromString(stdout.match(patt)[0]);\n resolve(this.installedVersion);\n })\n .catch(err => {\n reject(err);\n });\n });\n }", "getPlatformInfoString() {\r\n const providers = this.container.getProviders();\r\n // Loop through providers and get library/version pairs from any that are\r\n // version components.\r\n return providers\r\n .map(provider => {\r\n if (isVersionServiceProvider(provider)) {\r\n const service = provider.getImmediate();\r\n return `${service.library}/${service.version}`;\r\n }\r\n else {\r\n return null;\r\n }\r\n })\r\n .filter(logString => logString)\r\n .join(' ');\r\n }", "getPlatformInfoString() {\r\n const providers = this.container.getProviders();\r\n // Loop through providers and get library/version pairs from any that are\r\n // version components.\r\n return providers\r\n .map(provider => {\r\n if (isVersionServiceProvider(provider)) {\r\n const service = provider.getImmediate();\r\n return `${service.library}/${service.version}`;\r\n }\r\n else {\r\n return null;\r\n }\r\n })\r\n .filter(logString => logString)\r\n .join(' ');\r\n }", "function getProductVersion() {\n return \"7.4.0.9058\";\n}", "function getAllPluginVersions() {\n developer.Api('/plugins/' + FS__API_PLUGIN_ID + '/tags.json', 'GET', [], [], function (e) {\n logResponse(e, developer);\n });\n}", "function getRemoteNodeVers(cb) {\n var cmd = nave_path + \" ls-remote\";\n\n exec(cmd, function(err, stdout, stderr) {\n if (err) {\n console.log(err);\n process.exit(1);\n }\n // Filter out 'remote:'\n stdout = stdout.replace('remote:', '');\n var versions = stdout.split(/\\s+/);\n var res = [];\n // Filter empty strings\n for (var i=0; i < versions.length; i++) {\n if (versions[i].length > 0) {\n res.push(versions[i]);\n }\n }\n\n cb(res);\n });\n}", "function get_project_versions(){\n\t// query ws\n\tcall_webservice(11,\"&p=\"+currentProject);\n\tvar html,tab,nextNum=\"\",first=true;\n\tif ( dataRetourJSON.list.length > 0 ){\n\t\thtml=\"<table width='100%'>\";\n\t\tfor (i=0;i<dataRetourJSON.list.length;i++){\n\t\t\thtml += \"<tr onmouseover='display_version_detail(\\\"\"+dataRetourJSON.list[i].num_version+\"\\\")' onmouseout='hide_version_detail()'><td>\"+dataRetourJSON.list[i].num_version+\"</td><td>\"+convert_date_to_fr(dataRetourJSON.list[i].date)+\"</td><td>\"+dataRetourJSON.list[i].notes+\"</td></tr>\";\n\t\t\tif ( first ) {\n\t\t\t\tnextNum = dataRetourJSON.list[i].num_version;\n\t\t\t\tfirst = false;\n\t\t\t}\n\t\t}\n\t\thtml += \"</table>\";\n\t\t$(\"#versions_list\").html(html);\n\t}else{\n\t\t$(\"#versions_list\").html(\"\");\n\t}\n\t// update num_version\n\tif ( nextNum.length > 0 ){\n\t\ttab = nextNum.split('.');\n\t\tif ( tab[1].length > 0 ){\n\t\t\td1 = parseInt(tab[1]);\n\t\t\tnextNum = tab[0]+'.'+parseInt(d1+1);\n\t\t}else{\n\t\t\td0 = parseInt(tab[0]);\n\t\t\tnextNum = parseInt(d0+1)+\".0\";\n\t\t}\n\t\tif ( tab[2] ) nextNum += \".\"+tab[2];\n\t\tif ( tab[3] ) nextNum += \".\"+tab[3];\n\t}else{\n\t\tnextNum = \"1.0.0\";\n\t}\n\t$(\"#new_version_num\").val(nextNum);\n\t$(\"#new_version_desc\").val(\"\");\n\theight_versions = $(\"#versions_ctn\").css(\"height\");\n}", "ListAvailableServices() {\n let url = `/pack/xdsl`;\n return this.client.request('GET', url);\n }", "function onLoadWork() {\n chrome.send('requestVersionInfo');\n const includeVariationsCmd = location.search.includes(\"show-variations-cmd\");\n cr.sendWithPromise('requestVariationInfo', includeVariationsCmd)\n .then(handleVariationInfo);\n cr.sendWithPromise('requestPluginInfo').then(handlePluginInfo);\n cr.sendWithPromise('requestPathInfo').then(handlePathInfo);\n\n if (cr.isChromeOS) {\n $('arc_holder').hidden = true;\n chrome.chromeosInfoPrivate.get(['customizationId'], returnCustomizationId);\n }\n if ($('sanitizer').textContent !== '') {\n $('sanitizer-section').hidden = false;\n }\n}", "listOSVersions(location, options) {\n const iter = this.listOSVersionsPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listOSVersionsPagingPage(location, options);\n }\n };\n }", "function getProductVersion() {\n return \"8.5.0.9167\";\n}", "function upgradeNeeded(requested,installed) {\r\n\t\tvar req = requested.replace(\"v\",\"\").split(\".\");\r\n\t\tvar got = installed.replace(\"v\",\"\").split(\".\");\r\n\t\tvar diff = req.length - got.length;\r\n\t\tif (diff > 0) {\r\n\t\t\tfor(var i = diff;diff>0;diff--) {\r\n\t\t\t\tgot.push(0);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor(var i = diff;diff<0;diff++) {\r\n\t\t\t\treq.push(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(var p=0;p<req.length;p++) {\r\n\t\t\tif (req[p] == \"x\") return false;\r\n\t\t\tvar r = parseFloat(req[p]);\r\n\t\t\tvar g = parseFloat(got[p]);\r\n\t\t\tif (r > g) return true;\r\n\t\t\tif (r < g) return false;\r\n\t\t\t//if equal compare next figure\r\n\t\t}\r\n\t\treturn false;\r\n}", "get versions() {\r\n return new Versions(this);\r\n }", "function checkSullaVersion(spinnies) {\n latest_version_1[\"default\"]('sulla').then(function (latest) {\n if (!semver_1.upToDate(version, latest)) {\n logUpdateAvailable(version, latest);\n }\n spinnies.succeed('sulla-version-spinner', { text: 'Checking for updates' });\n });\n}", "function displayVersion() {\r\n\tvar version = chrome.app.getDetails().version;\r\n\tvar divVersion = document.getElementById('version');\r\n\tdivVersion.innerHTML = \"<br><b>Sprint Reader</b> (v\" + version + \")\";\r\n}", "function version () {\n return pkg.version\n}", "function fetchVersions(includePreReleases) {\n return __awaiter(this, void 0, void 0, function* () {\n let rest = new restm.RestClient(\"setup-protoc\");\n let tags = (yield rest.get(\"https://api.github.com/repos/protocolbuffers/protobuf/releases\")).result || [];\n return tags\n .filter(tag => tag.tag_name.match(/v\\d+\\.[\\w\\.]+/g))\n .filter(tag => includePrerelease(tag.prerelease, includePreReleases))\n .map(tag => tag.tag_name.replace(\"v\", \"\"));\n });\n}", "function getSoftwareList() {\n \"use strict\";\n}", "getVersion() {\n IPC_RENDERER.send(\"ledger:getVersion\");\n }", "_installUpdate() {\n browser.runtime.onInstalled.addListener((details) => {\n // Note that console logging doesn't work within this event.\n if (details.reason === 'install') {\n this.app.setState({\n app: {\n installed: true,\n updated: false,\n version: {\n current: chrome.runtime.getManifest().version,\n },\n },\n })\n } else if (details.reason === 'update') {\n this.app.setState({\n app: {\n installed: false,\n updated: true,\n version: {\n current: chrome.runtime.getManifest().version,\n previous: details.previousVersion,\n },\n },\n })\n }\n })\n }", "function findLatestVsInstall(opts) {\r\n const installs = enumerateVsInstalls(Object.assign(Object.assign({}, opts), { latest: true }));\r\n if (installs.length > 0) {\r\n return installs[0];\r\n }\r\n else {\r\n return null;\r\n }\r\n}", "function checkPackageInfo(){\n let url = flutter_source_url_arg_page + '1';\n let options= {\n url: url,\n gzip: true,\n headers: {\n 'User-Agent' : 'pub.flutter-io.cn'\n }\n };\n request.get(options, (err, response, body) => {\n //response from remote http server\n if (err) {\n console.error(currentTimestamp() + '[debug] encountered error while requesting package information from remote server, message:' + err.toString());\n } else {\n try{\n let data = JSON.parse(body);\n if(typeof(data.packages) !== 'undefined' && data.packages.length > 0){\n for(let i=0; i<data.packages.length; i++){\n let index = i+1;\n let pkg = data.packages[i];\n console.log('[debug] ' + index + '. name-->' + pkg.name + ' version-->' + pkg.latest.version);\n }\n }\n }catch(e){\n console.error(currentTimestamp() + '[debug] encountered error while parsing json data -->' + e.message);\n }\n\n }\n });\n}", "function versionSwitcher( $ )\n{\n $('.searchbox').hide();\n var MAX_STABLE_COUNT = 2;\n var DOCS_BASE_URL = window.docMeta.commonDocsBaseUri;\n var THIS_DOC_BASE_URI = window.docMeta.unversionedDocBaseUri;\n\n var currentVersion = window.docMeta.version;\n var currentPage = window.neo4jPageId;\n\n loadVersions()\n\n /**\n * Load an array of version into a div element and check if the current page actually exists in these versions.\n * Non-existing entries will be unlinked. Current version will be marked as such.\n */\n function loadVersions() {\n var $navHeader = $( 'header' );\n var $additionalVersions = $( '<ul class=\"dropdown-menu dropdown-menu-right\" role=\"menu\" aria-labelledby=\"dropdownMenu1\"/>' );\n $.each( window.docMeta.availableDocVersions, function( index, version ) {\n if ( version === currentVersion ) {\n return;\n }\n else {\n addVersion( version, $additionalVersions );\n }\n } );\n\n var $dropdown = $( '<div id=\"additional-versions\"><div class=\"dropdown\"><a class=\"dropdown-toggle\"id=\"dropdownMenu1\" data-toggle=\"dropdown\">Versions <i class=\"fa fa-caret-down\"></i></a></div></div>' );\n $dropdown.children().first().append( $additionalVersions );\n $navHeader.append( $dropdown );\n }\n\n function addVersion( version, $container ) {\n var $optionWrapper = $( '<li />' );\n var $newOption = $( '<a role=\"menuitem\">' + version + '</a>' ).appendTo( $optionWrapper );\n var url = THIS_DOC_BASE_URI + version + '/' + currentPage;\n $container.append( $optionWrapper );\n checkUrlExistence( url, function() {\n $newOption.attr( 'href', url );\n $newOption.attr( 'title', 'See this page in version ' + version + '.' );\n }, function() {\n $newOption.attr( 'title', 'This page does not exist in version ' + version + '.' );\n $optionWrapper.addClass( 'disabled' );\n }\n );\n }\n\n /**\n * Check if a specific URL exists. The success and failure functions will be automatically called on finish.\n */\n function checkUrlExistence( url, success, failure ) {\n var settings = {\n 'type' : 'HEAD',\n 'async' : true,\n 'url' : url\n };\n if ( success )\n settings.success = success;\n if ( failure )\n settings.error = failure;\n $.ajax( settings );\n }\n}", "function getVersion(){return _VERSION}", "function findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || os.arch();\n const toolPath = path.join(cacheRoot, toolName);\n if (fs.existsSync(toolPath)) {\n const children = fs.readdirSync(toolPath);\n for (const child of children) {\n if (_isExplicitVersion(child)) {\n const fullPath = path.join(toolPath, child, arch || '');\n if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {\n versions.push(child);\n }\n }\n }\n }\n return versions;\n}", "function findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || os.arch();\n const toolPath = path.join(cacheRoot, toolName);\n if (fs.existsSync(toolPath)) {\n const children = fs.readdirSync(toolPath);\n for (const child of children) {\n if (_isExplicitVersion(child)) {\n const fullPath = path.join(toolPath, child, arch || '');\n if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {\n versions.push(child);\n }\n }\n }\n }\n return versions;\n}", "function checkInstalled(next) {\n exports.read(system, function (err, install) {\n if (install && install.history) {\n system.history = install.history;\n }\n \n if (err) {\n return err.code === 'ENOENT' \n ? next()\n : callback(err);\n }\n else if (!install.system) {\n return next();\n }\n else if (semver.lt(system.version, install.system.version)) {\n return callback(null, install.system);\n }\n \n //\n // If a different version is installed respond\n // with an error.\n //\n if (system.version !== install.system.version) {\n //\n // TODO: Run uninstall for existing version.\n //\n return callback(new Error([\n 'Cannot install',\n system.name,\n system.version, \n 'over existing version:',\n install.system.version\n ].join(' ')));\n }\n \n //\n // Otherwise this version is already installed so \n // short-circuit and respond to the callback.\n //\n system.installed = versionDir;\n callback(null, system);\n });\n }", "function process(package_, version) {\n var ec = exec(\"\\\"\" + npackdcl + \"\\\" add --package=\"+package_\n + \" --version=\" + version);\n if (ec !== 0) {\n WScript.Echo(\"npackdcl.exe add failed\");\n apiNotify(package_, version, true, false);\n\t\t\n var log = package_ + \"-\" + version + \"-install.log\";\n exec(\"cmd.exe /C \\\"\" + npackdcl + \"\\\" add -d --package=\"+ package_\n\t\t\t\t\t+ \" --version=\" + version + \" > \" + log + \" 2>&1\");\n exec(\"appveyor PushArtifact \" + log);\n\t\t\n return false;\n }\n apiNotify(package_, version, true, true);\n\n var path = getPath(package_, version);\n WScript.Echo(\"where=\" + path);\n if (path !== \"\") {\n var tree = package_ + \"-\" + version + \"-tree.txt\";\n exec2(\"cmd.exe /c tree \\\"\" + path + \"\\\" > \" + tree + \" 2>&1\");\n exec(\"appveyor PushArtifact \" + tree);\n\n exec(\"cmd.exe /c dir \\\"\" + path + \"\\\"\");\n\n var msilist = package_ + \"-\" + version + \"-msilist.txt\";\n exec2(\"cmd.exe /c \\\"C:\\\\Program Files (x86)\\\\CLU\\\\clu.exe\\\" list-msi > \" + msilist + \" 2>&1\");\n exec(\"appveyor PushArtifact \" + msilist);\n\n var proglist = package_ + \"-\" + version + \"-proglist.txt\";\n exec2(\"cmd.exe /c \\\"C:\\\\Program Files (x86)\\\\Sysinternals_suite\\\\psinfo.exe\\\" -s /accepteula > \" + proglist + \" 2>&1\");\n exec(\"appveyor PushArtifact \" + proglist);\n }\n\n var ec = exec(\"\\\"\" + npackdcl + \"\\\" remove -e=ck --package=\"+package_\n + \" --version=\" + version);\n if (ec !== 0) {\n WScript.Echo(\"npackdcl.exe remove failed\");\n apiNotify(package_, version, false, false);\n\n var log = package_ + \"-\" + version + \"-uninstall.log\";\n exec(\"cmd.exe /C \\\"\" + npackdcl + \n \"\\\" remove -d -e=ck --package=\" + package_\n + \" --version=\" + version + \" > \" + log + \" 2>&1\");\n exec(\"appveyor PushArtifact \" + log);\n\t\t\n return false;\n }\n apiNotify(package_, version, false, true);\n return true;\n}", "function maybeGatherAndSendStats() {\n /** vaadin-dev-mode:start\n (function () {\n 'use strict';\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n var classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n var createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n var getPolymerVersion = function getPolymerVersion() {\n return window.Polymer && window.Polymer.version;\n };\n var StatisticsGatherer = function () {\n function StatisticsGatherer(logger) {\n classCallCheck(this, StatisticsGatherer);\n this.now = new Date().getTime();\n this.logger = logger;\n }\n createClass(StatisticsGatherer, [{\n key: 'frameworkVersionDetectors',\n value: function frameworkVersionDetectors() {\n return {\n 'Flow': function Flow() {\n if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {\n var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {\n return window.Vaadin.Flow.clients[key];\n }).filter(function (client) {\n return client.getVersionInfo;\n }).map(function (client) {\n return client.getVersionInfo().flow;\n });\n if (flowVersions.length > 0) {\n return flowVersions[0];\n }\n }\n },\n 'Vaadin Framework': function VaadinFramework() {\n if (window.vaadin && window.vaadin.clients) {\n var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {\n return client.getVersionInfo;\n }).map(function (client) {\n return client.getVersionInfo().vaadinVersion;\n });\n if (frameworkVersions.length > 0) {\n return frameworkVersions[0];\n }\n }\n },\n 'AngularJs': function AngularJs() {\n if (window.angular && window.angular.version && window.angular.version) {\n return window.angular.version.full;\n }\n },\n 'Angular': function Angular() {\n if (window.ng) {\n var tags = document.querySelectorAll(\"[ng-version]\");\n if (tags.length > 0) {\n return tags[0].getAttribute(\"ng-version\");\n }\n return \"Unknown\";\n }\n },\n 'Backbone.js': function BackboneJs() {\n if (window.Backbone) {\n return window.Backbone.VERSION;\n }\n },\n 'React': function React() {\n var reactSelector = '[data-reactroot], [data-reactid]';\n if (!!document.querySelector(reactSelector)) {\n // React does not publish the version by default\n return \"unknown\";\n }\n },\n 'Ember': function Ember() {\n if (window.Em && window.Em.VERSION) {\n return window.Em.VERSION;\n } else if (window.Ember && window.Ember.VERSION) {\n return window.Ember.VERSION;\n }\n },\n 'jQuery': function (_jQuery) {\n function jQuery() {\n return _jQuery.apply(this, arguments);\n }\n jQuery.toString = function () {\n return _jQuery.toString();\n };\n return jQuery;\n }(function () {\n if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {\n return jQuery.prototype.jquery;\n }\n }),\n 'Polymer': function Polymer() {\n var version = getPolymerVersion();\n if (version) {\n return version;\n }\n },\n 'LitElement': function LitElement() {\n var version = window.litElementVersions && window.litElementVersions[0];\n if (version) {\n return version;\n }\n },\n 'LitHtml': function LitHtml() {\n var version = window.litHtmlVersions && window.litHtmlVersions[0];\n if (version) {\n return version;\n }\n },\n 'Vue.js': function VueJs() {\n if (window.Vue) {\n return window.Vue.version;\n }\n }\n };\n }\n }, {\n key: 'getUsedVaadinElements',\n value: function getUsedVaadinElements(elements) {\n var version = getPolymerVersion();\n var elementClasses = void 0;\n if (version && version.indexOf('2') === 0) {\n // Polymer 2: components classes are stored in window.Vaadin\n elementClasses = Object.keys(window.Vaadin).map(function (c) {\n return window.Vaadin[c];\n }).filter(function (c) {\n return c.is;\n });\n } else {\n // Polymer 3: components classes are stored in window.Vaadin.registrations\n elementClasses = window.Vaadin.registrations || [];\n }\n elementClasses.forEach(function (klass) {\n var version = klass.version ? klass.version : \"0.0.0\";\n elements[klass.is] = { version: version };\n });\n }\n }, {\n key: 'getUsedVaadinThemes',\n value: function getUsedVaadinThemes(themes) {\n ['Lumo', 'Material'].forEach(function (themeName) {\n var theme;\n var version = getPolymerVersion();\n if (version && version.indexOf('2') === 0) {\n // Polymer 2: themes are stored in window.Vaadin\n theme = window.Vaadin[themeName];\n } else {\n // Polymer 3: themes are stored in custom element registry\n theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');\n }\n if (theme && theme.version) {\n themes[themeName] = { version: theme.version };\n }\n });\n }\n }, {\n key: 'getFrameworks',\n value: function getFrameworks(frameworks) {\n var detectors = this.frameworkVersionDetectors();\n Object.keys(detectors).forEach(function (framework) {\n var detector = detectors[framework];\n try {\n var version = detector();\n if (version) {\n frameworks[framework] = { \"version\": version };\n }\n } catch (e) {}\n });\n }\n }, {\n key: 'gather',\n value: function gather(storage) {\n var storedStats = storage.read();\n var gatheredStats = {};\n var types = [\"elements\", \"frameworks\", \"themes\"];\n types.forEach(function (type) {\n gatheredStats[type] = {};\n if (!storedStats[type]) {\n storedStats[type] = {};\n }\n });\n var previousStats = JSON.stringify(storedStats);\n this.getUsedVaadinElements(gatheredStats.elements);\n this.getFrameworks(gatheredStats.frameworks);\n this.getUsedVaadinThemes(gatheredStats.themes);\n var now = this.now;\n types.forEach(function (type) {\n var keys = Object.keys(gatheredStats[type]);\n keys.forEach(function (key) {\n if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {\n storedStats[type][key] = { \"firstUsed\": now };\n }\n // Discards any previously logged version numebr\n storedStats[type][key].version = gatheredStats[type][key].version;\n storedStats[type][key].lastUsed = now;\n });\n });\n var newStats = JSON.stringify(storedStats);\n storage.write(newStats);\n if (newStats != previousStats && Object.keys(storedStats).length > 0) {\n this.logger.debug(\"New stats: \" + newStats);\n }\n }\n }]);\n return StatisticsGatherer;\n }();\n var StatisticsStorage = function () {\n function StatisticsStorage(key) {\n classCallCheck(this, StatisticsStorage);\n this.key = key;\n }\n createClass(StatisticsStorage, [{\n key: 'read',\n value: function read() {\n var localStorageStatsString = localStorage.getItem(this.key);\n try {\n return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');\n } catch (e) {\n return {};\n }\n }\n }, {\n key: 'write',\n value: function write(data) {\n localStorage.setItem(this.key, data);\n }\n }, {\n key: 'clear',\n value: function clear() {\n localStorage.removeItem(this.key);\n }\n }, {\n key: 'isEmpty',\n value: function isEmpty() {\n var storedStats = this.read();\n var empty = true;\n Object.keys(storedStats).forEach(function (key) {\n if (Object.keys(storedStats[key]).length > 0) {\n empty = false;\n }\n });\n return empty;\n }\n }]);\n return StatisticsStorage;\n }();\n var StatisticsSender = function () {\n function StatisticsSender(url, logger) {\n classCallCheck(this, StatisticsSender);\n this.url = url;\n this.logger = logger;\n }\n createClass(StatisticsSender, [{\n key: 'send',\n value: function send(data, errorHandler) {\n var logger = this.logger;\n if (navigator.onLine === false) {\n logger.debug(\"Offline, can't send\");\n errorHandler();\n return;\n }\n logger.debug(\"Sending data to \" + this.url);\n var req = new XMLHttpRequest();\n req.withCredentials = true;\n req.addEventListener(\"load\", function () {\n // Stats sent, nothing more to do\n logger.debug(\"Response: \" + req.responseText);\n });\n req.addEventListener(\"error\", function () {\n logger.debug(\"Send failed\");\n errorHandler();\n });\n req.addEventListener(\"abort\", function () {\n logger.debug(\"Send aborted\");\n errorHandler();\n });\n req.open(\"POST\", this.url);\n req.setRequestHeader(\"Content-Type\", \"application/json\");\n req.send(data);\n }\n }]);\n return StatisticsSender;\n }();\n var StatisticsLogger = function () {\n function StatisticsLogger(id) {\n classCallCheck(this, StatisticsLogger);\n this.id = id;\n }\n createClass(StatisticsLogger, [{\n key: '_isDebug',\n value: function _isDebug() {\n return localStorage.getItem(\"vaadin.\" + this.id + \".debug\");\n }\n }, {\n key: 'debug',\n value: function debug(msg) {\n if (this._isDebug()) {\n console.info(this.id + \": \" + msg);\n }\n }\n }]);\n return StatisticsLogger;\n }();\n var UsageStatistics = function () {\n function UsageStatistics() {\n classCallCheck(this, UsageStatistics);\n this.now = new Date();\n this.timeNow = this.now.getTime();\n this.gatherDelay = 10; // Delay between loading this file and gathering stats\n this.initialDelay = 24 * 60 * 60;\n this.logger = new StatisticsLogger(\"statistics\");\n this.storage = new StatisticsStorage(\"vaadin.statistics.basket\");\n this.gatherer = new StatisticsGatherer(this.logger);\n this.sender = new StatisticsSender(\"https://tools.vaadin.com/usage-stats/submit\", this.logger);\n }\n createClass(UsageStatistics, [{\n key: 'maybeGatherAndSend',\n value: function maybeGatherAndSend() {\n var _this = this;\n if (localStorage.getItem(UsageStatistics.optOutKey)) {\n return;\n }\n this.gatherer.gather(this.storage);\n setTimeout(function () {\n _this.maybeSend();\n }, this.gatherDelay * 1000);\n }\n }, {\n key: 'lottery',\n value: function lottery() {\n return Math.random() <= 0.05;\n }\n }, {\n key: 'currentMonth',\n value: function currentMonth() {\n return this.now.getYear() * 12 + this.now.getMonth();\n }\n }, {\n key: 'maybeSend',\n value: function maybeSend() {\n var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));\n var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));\n if (!firstUse) {\n // Use a grace period to avoid interfering with tests, incognito mode etc\n firstUse = this.timeNow;\n localStorage.setItem(UsageStatistics.firstUseKey, firstUse);\n }\n if (this.timeNow < firstUse + this.initialDelay * 1000) {\n this.logger.debug(\"No statistics will be sent until the initial delay of \" + this.initialDelay + \"s has passed\");\n return;\n }\n if (this.currentMonth() <= monthProcessed) {\n this.logger.debug(\"This month has already been processed\");\n return;\n }\n localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());\n // Use random sampling\n if (this.lottery()) {\n this.logger.debug(\"Congratulations, we have a winner!\");\n } else {\n this.logger.debug(\"Sorry, no stats from you this time\");\n return;\n }\n this.send();\n }\n }, {\n key: 'send',\n value: function send() {\n // Ensure we have the latest data\n this.gatherer.gather(this.storage);\n // Read, send and clean up\n var data = this.storage.read();\n data[\"firstUse\"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));\n data[\"usageStatisticsVersion\"] = UsageStatistics.version;\n var info = 'This request contains usage statistics gathered from the application running in development mode. \\n\\nStatistics gathering is automatically disabled and excluded from production builds.\\n\\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\\n\\n\\n\\n';\n var self = this;\n this.sender.send(info + JSON.stringify(data), function () {\n // Revert the 'month processed' flag\n localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);\n });\n }\n }], [{\n key: 'version',\n get: function get$1() {\n return '2.0.1';\n }\n }, {\n key: 'firstUseKey',\n get: function get$1() {\n return 'vaadin.statistics.firstuse';\n }\n }, {\n key: 'monthProcessedKey',\n get: function get$1() {\n return 'vaadin.statistics.monthProcessed';\n }\n }, {\n key: 'optOutKey',\n get: function get$1() {\n return 'vaadin.statistics.optout';\n }\n }]);\n return UsageStatistics;\n }();\n try {\n window.Vaadin = window.Vaadin || {};\n window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();\n window.Vaadin.usageStatsChecker.maybeGatherAndSend();\n } catch (e) {\n // Intentionally ignored as this is not a problem in the app being developed\n }\n }());\n vaadin-dev-mode:end **/\n}", "function _versionCheck() {\n // get user's version\n var _version = store.get(\"version\");\n // set version again\n store.set(\"version\", planner.version);\n // reset storage due to update from 0.4.1 -> 0.5.0\n if (_version < \"0.4.9\") {\n store.clear();\n }\n // publish the app wide message related to user\n $.publish(\"app:status:\" + ((!_version) ? \"new\" :\n (_version < planner.version) ? \"updated\" : \"uptodate\"));\n }", "onFirstInstalled() {\n\n }", "function getgemver() {\n // URL to the API...\n var APIurl = \"https://rubygems.org/api/v1/gems/update_repo.json\";\n jQuery.getJSON(APIurl, function (data) {\n jQuery(\"#version\").text(data.version);\n });\n}", "async function getEV() {\n let ev = await EVApi.getEV(id);\n setVersions(ev);\n }", "function findAllVersions(toolName, arch) {\n const versions = [];\n arch = arch || os.arch();\n const toolPath = path.join(_getCacheDirectory(), toolName);\n if (fs.existsSync(toolPath)) {\n const children = fs.readdirSync(toolPath);\n for (const child of children) {\n if (_isExplicitVersion(child)) {\n const fullPath = path.join(toolPath, child, arch || '');\n if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {\n versions.push(child);\n }\n }\n }\n }\n return versions;\n}", "async _identify () {\n const nodeVersion = LibPlatform._minVersion(context.recommendedNodeVersion)\n const homebridgeVersion = LibPlatform._minVersion(\n context.recommendedHomebridgeVersion\n )\n this.log(\n '%s v%s, node %s, homebridge v%s',\n context.pluginName, context.pluginVersion,\n context.nodeVersion, context.homebridgeVersion\n )\n this.debug('%s v%s', packageJson.name, packageJson.version)\n if (semver.clean(context.nodeVersion) !== nodeVersion) {\n this.warn('not using recommended node v%s LTS', nodeVersion)\n }\n if (context.homebridgeVersion !== homebridgeVersion) {\n this.warn(\n 'not using recommended homebridge v%s', homebridgeVersion\n )\n }\n const n = Object.keys(this._accessories).length\n if (n > 0) {\n this.log('exposing %d/%d accessories', n, context.maxAccessories)\n }\n this.debug('config.json: %j', this._configJson)\n await this._checkLatest()\n }", "resolvePackagesWithExistingVersions() {\n for (const _ref3 of this.delayedResolveQueue) {\n const req = _ref3.req;\n const info = _ref3.info;\n\n req.resolveToExistingVersion(info);\n }\n }", "function add_to_install(val) {\n $('#package-name').val(\"\");\n $('#package-name').blur();\n var a = val.split(' - ');\n var pkg = {\n 'name': a[0],\n 'version': a[1],\n 'staus': ''\n };\n var data = [];\n data.push(pkg);\n var output = views.to_install(data);\n $('#to-install').append(output);\n var toInstall = common.get_to_install();\n views.select_to_install(toInstall);\n $('#to-install-main').css(\"display\", \"initial\");\n }", "function getCurrentVersion() {\r\n\r\n\t\t\tvar errorCallback = function(){};\r\n\t\t\tvar completeHandle = function(event){\r\n\t\t\t\tvar ld = air.URLLoader(event.target);\r\n\t\t\t\tvar d = JSON.parse(ld.data);\r\n\t\t\t\t\r\n\t\t\t\tcurrentVersion = d.version;\r\n\t\t\t\tfileUrl = d.downloadurl;\r\n\t\t\t\tair.trace(currentVersion, fileUrl)\r\n\t\t\t\tdownloadNewVersion();\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\tvar request = new air.URLRequest();\r\n\t\t\trequest.method = air.URLRequestMethod.POST;\r\n\t\t\trequest.url = \"http://www.startfeel.com/app/mease/check.json\";\r\n\t\t\t\r\n\t\t\tair.trace(completeHandle);\r\n\t\t\tair.trace(errorCallback);\r\n\t\t\tvar loader = new air.URLLoader();\r\n\t\t\tloader.addEventListener(air.Event.COMPLETE,completeHandle);\r\n\t\t\tloader.addEventListener(air.IOErrorEvent.IO_ERROR,errorCallback);\r\n\t\t\tloader.load(request);\r\n\r\n\t\t} // End of getCurrentVersion() function.", "function getGuidelineVersionList() {\n if (ctrl.versionList) {\n return;\n }\n var content_url = refstackApiUrl + '/guidelines';\n ctrl.versionsRequest =\n $http.get(content_url).success(function (data) {\n ctrl.versionList = data.sort().reverse();\n }).error(function (error) {\n raiseAlert('danger', error.title,\n 'Unable to retrieve version list');\n });\n }", "function install() {}", "function install() {}", "function install() {}", "function install() {}", "function version(){\n console.log(\"Version:\" , _cfg.version );\n}", "async displayVersion() {\n try {\n const packageData = await commonUtil.readJsonFile(`${__dirname}/package.json`);\n console.log(packageData.version);\n } catch (error) {\n console.log(logSymbols.error, colors.red('Unable to retrieve package version...'));\n }\n }", "function handleInstalled (details) {\n if (details.reason === 'install') {\n browser.runtime.openOptionsPage()\n } else if (details.reason === 'update') {\n let previousVersion = details.previousVersion\n if (previousVersion[0] === '1') {\n // Update from version 1.*\n browser.storage.local.remove(['override', 'icon', 'inbox', 'addtotop'])\n }\n browser.storage.local.set({newRelease: true}).then(() => {\n browser.runtime.openOptionsPage()\n }, onError)\n }\n}", "isInstalled() {\n // We can check if Python is installed by invoking it with the\n // --version option.\n return Q.Promise((resolve, reject) => {\n return this.getInstalledVersion().then(installedVersion => {\n if (this.name === 'python') {\n if (installedVersion.isPythonVersion(this.requiredVersion)) {\n resolve(this);\n }\n else {\n reject(`Version = ${this.requiredVersion.toString()} of package ${this.name} is required`);\n }\n }\n else {\n if (installedVersion.isGreater(this.requiredVersion) ||\n installedVersion.isEqual(this.requiredVersion)) {\n resolve(this);\n }\n else {\n reject(`Version >= ${this.requiredVersion.toString()} of package ${this.name} is required`);\n }\n }\n });\n });\n }", "function CheckVersion() {\n \n}", "function main()\r\n{\r\n\t// Get the collector object (see mon_utils)\r\n\tcollector = getCollector();\r\n\tif(collector == null) { \r\n\t\tresult.status = result.STATUS_FAILED;\r\n\t\tresult.msg = \"Collector process is not running\";\r\n\t\treturn;\r\n\t}\r\n\r\n\t// Form our command (WMI_QUERY query)\r\n\t// Note. Filter instances to only the named service we want\r\n\tcmd = collector.makeCommand([\"wmi_query\", \"hostname=\"+hostname, \"username=\"+username, \"password=\"+password, \"query=Select LastAccessed, LastModified, FileSize from CIM_DataFile where Name=\\\"\"+filename+\"\\\"\"]);\r\n\t// Send the command to the collector and get the output response\r\n\tresponse = collector.sendCommand(cmd);\r\n\r\n\tif(response.indexOf(\"ERROR\") >= 0) {\r\n\t\t// If response string starts with error, something went wrong\r\n\t\tif(response.indexOf(\"No results\") >= 0) {\r\n\t\t\tif(typeof(ignore_missing) !== 'undefined' && ignore_missing.toLowerCase() == 'true') {\r\n\t\t\t\tresult.status = result.STATUS_GOOD\r\n\t\t\t\tresult.msg = \"File not found, but ignored\"\t\r\n\t\t\t\tresult.value = 0;\r\n\t\t\t\treturn;\r\n\t\t\t} else { \r\n\t\t\t\t// Zero results means file doesn't exist\r\n\t\t\t\tresult.status = result.STATUS_ERROR\r\n\t\t\t\tresult.msg = \"File not found\"\t\r\n\t\t\t}\t\t\t\r\n\t\t} else {\r\n\t\t\t// Some other error\r\n\t\t\tresult.status = result.STATUS_FAILED;\r\n\t\t\tresult.msg = response;\r\n\t\t}\r\n\t} else {\r\n\t\tparts = response.split(\",\");\r\n\t\tresult.value = parts[0].split('=')[1] / 1024;\r\n\t\tresult.msg = \"Last modified: \"+wmiDateToReadable(parts[2].split('=')[1]);\r\n\t}\r\n}" ]
[ "0.6531873", "0.65078", "0.5990552", "0.5868773", "0.58498645", "0.5822648", "0.57940197", "0.56587994", "0.5629213", "0.5612266", "0.55770075", "0.5558014", "0.5545226", "0.5485111", "0.5478435", "0.54132485", "0.541075", "0.53867775", "0.5353279", "0.5353034", "0.5349324", "0.5342031", "0.53383356", "0.53299886", "0.53197545", "0.5311555", "0.5310503", "0.5310503", "0.5310503", "0.5295595", "0.52874434", "0.52832735", "0.5270992", "0.52425385", "0.5203265", "0.5190378", "0.51667935", "0.5158796", "0.5145766", "0.513712", "0.51259977", "0.51237255", "0.5123549", "0.50947565", "0.50861216", "0.5081572", "0.50726765", "0.5063291", "0.5054996", "0.5054996", "0.5054996", "0.50452816", "0.5023411", "0.5023411", "0.5022508", "0.5013062", "0.50054353", "0.49886054", "0.49870732", "0.49800724", "0.4971643", "0.49675992", "0.4945655", "0.49395514", "0.49355063", "0.49232632", "0.49128923", "0.48922208", "0.48735797", "0.485438", "0.4841129", "0.48227993", "0.48138082", "0.48112178", "0.4809501", "0.48026758", "0.48026758", "0.48004737", "0.4797535", "0.47973236", "0.4797065", "0.47941917", "0.47910225", "0.47885248", "0.47813672", "0.47659522", "0.47570235", "0.47527498", "0.4750079", "0.47333622", "0.4731515", "0.4731515", "0.4731515", "0.4731515", "0.47280452", "0.4727096", "0.472224", "0.4722047", "0.47177872", "0.471648" ]
0.6691724
0
Searching for anime command
async function getanime(name) { let { body } = await superagent .get("https://api.jikan.moe/v3/search/anime?q=" + name + "&limit=5").catch(error => { console.log(error); return msg.channel.send("Try using another name for the anime"); }); return body.results[0].mal_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startOneCommandArtyom(){\n artyom.fatality();// use this to stop any of\n\n setTimeout(function(){// if you use artyom.fatality , wait 250 ms to initialize again.\n artyom.initialize({\n lang:\"en-GB\",// A lot of languages are supported. Read the docs !\n continuous:true,// recognize 1 command and stop listening !\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 artyom.say(\"I'm listening...\");\n });\n },250);\n }", "function find() {\n\t\tvar query = $(\"#search-query\").val();\n\n\t\t// check to see if the query contains special commands/characters\n\t\tconvert(query);\n\t\t\n\n\t\tfindSimilar(query);\n\t}", "function activeAnnyang() {\n\t//\"if someone says one of these commands...\"\n\tif ( annyang ) {\n\t\t//declare commands\n\t\tvar commands = {\n\t\t\t//\"Reset\" makes the head, body, arms & legs the default starting assets\n\t\t\t'RESET': function() {\n\t\t\t\t$head.attr( 'src', 'assets/images/head/head (3).png' );\n\t\t\t\t$torso.attr( 'src', 'assets/images/torso/torso (6).png' );\n\t\t\t\t$arms.attr( 'src', 'assets/images/arms/arms (4).png' );\n\t\t\t\t$legs.attr( 'src', 'assets/images/legs/legs (3).png' );\n\t\t\t},\n\t\t\t//\"Random\" randomly picks images from active arrays\n\t\t\t'RANDOM': function() {\n\t\t\t\tlet randoFace = faces[ Math.floor( Math.random() * faces.length ) ];\n\t\t\t\tlet randoBody = bodies[ Math.floor( Math.random() * bodies.length ) ];\n\t\t\t\tlet randoHand = hands[ Math.floor( Math.random() * hands.length ) ];\n\t\t\t\tlet randoFeet = feets[ Math.floor( Math.random() * feets.length ) ];\n\t\t\t\t$head.attr( 'src', randoFace );\n\t\t\t\t$torso.attr( 'src', randoBody );\n\t\t\t\t$arms.attr( 'src', randoHand );\n\t\t\t\t$legs.attr( 'src', randoFeet );\n\t\t\t},\n\t\t\t//\"Dance\" calls the dance function on setInterval and sets it to the dancing variable\n\t\t\t'DANCE': function() {\n\t\t\t\tdancing = setInterval( dance, 500 );\n\t\t\t},\n\t\t\t//\"Stop dancing\" stops the animation by clearing the interval dancing\n\t\t\t'STOP DANCING': function() {\n\t\t\t\tclearInterval( dancing );\n\t\t\t}\n\t\t}\n\t}\n\t// Add our commands to annyang\n\tannyang.addCommands( commands );\n\n\t// Start listening.\n\tannyang.start();\n}", "function startLiriBot(command, search){\n switch (command){\n case 'my-tweets':\n getMyTwitter()\n break;\n case 'spotify-this-song':\n spotiFind(search)\n break;\n case 'movie-this':\n omdb(search)\n break;\n case 'do-what-it-says':\n random()\n break;\n }\n}", "function askingTime(msg){\n return msg.text.toLowerCase().match(/time/i);\n}", "function getAnime(value) {\n\t spinnerService.loading('anime', Animeitems.query({ status: value }).$promise.then(function(result) {\n\t ctrl.animeitems = result;\n\t\t\t\t\tctrl.filterConfig.areTagless = ListService.checkForTagless(result);\n\t\t\t\t\tctrl.filterConfig.statTags = ItemService.buildStatTags(result, 0);\n\t }));\n\t\t}", "function omdbCommand(){\n inquirer.prompt([\n {\n name: \"movie\",\n message:\"What movie would you like to search?\"\n }\n ]).then(function(answer){\n if(answer.movie === \"\"){\n movieThis(defaulted.movie);\n } else {\n commandParam = answer.movie;\n movieThis(commandParam);\n } \n })\n}", "function liri() {\n\n switch(input[0]) {\n case \"movie-this\":\n searchOMDb();\n break;\n case \"concert-this\":\n searchBandsInTown();\n break;\n case \"spotify-this-song\":\n searchSpotify();\n break;\n case \"do-what-it-says\":\n doWhat();\n break;\n default:\n console.log(\"Please enter a command....\")\n }\n}", "function reminderText() {\n textRecognition.start();\n}", "function getAnime() {\n anime = JSON.parse(fs.readFileSync(__dirname + '/animes.json', 'utf-8'))\n}", "function masterSearch(){\n switch (userCommand) {\n\n case \"my-tweets\":\n findTweets();\n break;\n\n case \"spotify-song\":\n spotifyNow();\n break;\n\n case \"movie-please\":\n movie();\n break;\n\n case \"directions-por-favor\":\n followDirections();\n break;\n }\n}", "function matchCharacters(str){\n for(var i = 0; i < anims.length; i++){\n var elem = $('#anim_' + i);\n if (anims[i].indexOf(str) == -1 ){\n elem.hide();\n } else if(!elem.is(\":visible\")){\n elem.show();\n }\n }\n showClear(str);\n}", "function search(command, query) {\n if (command === \"concert-this\") {\n searchBand(query);\n }\n //song search\n else if (command === \"spotify-this-song\") {\n //no song provided. defaulting to \"The Sign\" by Ace of Base\n if (query === undefined) {\n query = \"The Sign\";\n }\n searchSong(query);\n }\n //movie search\n else if (command === \"movie-this\") {\n //no movie provided. defaulting to \"Mr Nobody\"\n if (query === undefined) {\n query = \"Mr Nobody\";\n }\n searchMovie(query);\n }\n //command not recognized\n else {\n console.log(\"command not recognized\");\n }\n}", "function AWCommands(value) {\n\tif(value === \"/aw stop\") {\n\t\tkillAutoWoot();\n\t} else if(value === \"/aw start\") {\n\t\tloadAutoWoot();\n\t} else if(value === \"/aw woot start\") {\n\t\tdoCMD(\"on\",\"autoWoot\", \"HISTORY_UPDATE\", \"AutoWoot Turned On.\");\n\t} else if(value === \"/aw woot stop\") {\n\t\tdoCMD(\"off\",\"autoWoot\", \"HISTORY_UPDATE\", \"AutoWoot Turned Off.\");\n\t} else if(value === \"/aw join start\") {\n\t\tdoCMD(\"on\",\"autoJoin\", \"DJ_UPDATE\", \"AutoJoin Turned On.\");\n\t} else if(value === \"/aw join stop\") {\n\t\tdoCMD(\"off\",\"autoJoin\", \"DJ_UPDATE\", \"AutoJoin Turned Off.\");\n\t} else if(value === \"/aw\") {\n\t\tmessage(welcome);\n\t}\n\t\n}", "function movieCommand() {\n if (process.argv[3] === undefined && randomSearch === undefined) {\n title = \"Mr. Nobody\"\n } else if (randomSearch !== undefined) {\n title = randomSearch\n } else {\n title = process.argv[3];\n };\n // Request info from omdb api\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(\"Your search is complete! Let's take a look...\" +\n \"\\nTitle: \" + JSON.parse(body).Title +\n \"\\nYear Released: \" + JSON.parse(body).Released +\n \"\\nIMDB Rating: \" + JSON.parse(body).imdbRating +\n \"\\nRotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value +\n \"\\nProduction Location(s): \" + JSON.parse(body).Country +\n \"\\nLanguage: \" + JSON.parse(body).Language +\n \"\\nPlot: \" + JSON.parse(body).Plot +\n \"\\nActors: \" + JSON.parse(body).Actors);\n log(\"movie-this was run and returned the following informtion: \"+\n \"\\nTitle: \" + JSON.parse(body).Title +\n \"\\nYear Released: \" + JSON.parse(body).Released +\n \"\\nIMDB Rating: \" + JSON.parse(body).imdbRating +\n \"\\nRotten Tomatoes Rating: \" + JSON.parse(body).Ratings[1].Value +\n \"\\nProduction Location(s): \" + JSON.parse(body).Country +\n \"\\nLanguage: \" + JSON.parse(body).Language +\n \"\\nPlot: \" + JSON.parse(body).Plot +\n \"\\nActors: \" + JSON.parse(body).Actors+\n \"\\n------------------------------------------------------------\"\n );\n };\n });\n}", "function find_text( arg_startEA , arg_pattern , arg_flags )\n{\n\treturn Number64( process.reserved.hostDependBindings.ida_find_text( Number64( arg_startEA ) , arg_pattern , arg_flags ) );\n}", "function findCommand(search, jerry) {\n return jerry.commands.find(com => (com.name === search) || (com.aliases.includes(search)));\n}", "function anime() {\n\n console.clear();\n if (trig === 1) {\n console.log('%c /\\\\\\*/\\\\ helo', \"color: #FF0;background: #5A5A5A;font-size: 14pt;font-style: italic; margin-left: 20%;border: solid 1px #f00; \");\n trig = 0;\n trig2 += 1;\n }\n else {\n console.log('%c \\\\\\*/\\\\\\*/ hi', \"color: #FF0;background: #5A5A5A;font-size: 14pt;font-style: italic; margin-left: 20%;border: solid 1px #f00; \");\n trig = 1;\n trig2 += 1;\n }\n\n}", "function commands(input){\n\tswitch(input){\n\t\tcase \"my-tweets\" : \n\t\t\tmyTweets();\n\t\t\tbreak;\n\t\tcase \"spotify-this-song\":\n\t\t\tsearchSpotify(userSearch);\n\t\t\tbreak;\n\t\tcase \"movie-this\":\n\t\t\tsearchMovie(userSearch);\n\t\t\tbreak;\n\t\tcase \"do-what-it-says\":\n\t\t\tdoWhatItSays();\n\t\t\tbreak;\n\t}\n}", "function spotifyCommand() {\n var trackName;\n // If the user does not type a search value, default to ace of base - the sign.\n if (process.argv[3] === undefined && randomSearch === undefined) {\n trackName = \"ace the sign\"\n } else if (randomSearch !== undefined) {\n trackName = randomSearch\n } else {\n trackName = process.argv[3];\n };\n\n var params = { type: 'track', query: trackName }\n spotify.search(params, function (err, data) {\n if (err) {\n return console.log(\"Error occurred: \" + err);\n }\n console.log(\"Your search is complete! Let's take a look...\"+\n \"\\nArtist: \" + data.tracks.items[0].artists[0].name +\n \"\\nSong Name: \" + data.tracks.items[0].name +\n \"\\nPreview Link: \" + data.tracks.items[0].href +\n \"\\nAlbum: \" + data.tracks.items[0].album.name);\n log(\"spotify-this-song was run and returned the following informtion: \"+\n \"\\nArtist: \" + data.tracks.items[0].artists[0].name +\n \"\\nSong Name: \" + data.tracks.items[0].name +\n \"\\nPreview Link: \" + data.tracks.items[0].href +\n \"\\nAlbum: \" + data.tracks.items[0].album.name +\n \"\\n------------------------------------------------------------\"\n )\n });\n}", "function SC(command, term) \n{\n switch (command) {\n\n case \"concert-this\":\n concertSearch(term);\n break;\n\n case \"spotify-this-song\":\n songSearch(term);\n break;\n \n case \"movie-this\":\n if (term === \"\" || term === null) {\n movieSearch();\n }\n else {\n movieSearch(term);\n }\n break;\n\n case \"do-what-it-says\":\n randomSearch();\n break;\n \n default:\n console.log(output); \n }\n}", "function PuchiLook(){\n anime({\n targets: [\".LeftEye, .RightEye\"],\n duration: 1000,\n height: \"60%\"\n })\n\n anime({\n targets: \"#rightArm\",\n duration: 2000,\n rotateZ: -250\n })\n anime({\n targets: \"#leftArm\",\n duration: 2000,\n rotateZ: 250\n })\n anime({\n targets: ['#leftArm, #rightArm'],\n duration: 1500,\n opacity: 0,\n })\n }", "function commandFinder(cmd) {\n\tvar activeCommands = JSON.parse(fs.readFileSync('./cmds.json', 'utf8'));\n\tvar splitInput = cmd.trim().split(\" \")\n\tfor (var i = 0; i < activeCommands.commands.length; i++) {\n\t\tif (activeCommands.commands[i].name.toLowerCase() == splitInput[0].toLowerCase()) {\n\t\t\tif (activeCommands.commands[i].name.toLowerCase() != \"exit\") {\n\t\t\t\tclearScreen();\n\t\t\t\trunScript(activeCommands.commands[i].file, function (err) {\n \t\t\t\tif (err) throw err;\n \t\t\t\t//clearScreen();\n \t\t\t\tconsole.log(`\\n-----------\\nThe ${activeCommands.commands[i].name} command has finished running.`);\n \t\t\t\taskForPrompt();\n\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconsole.log(\"\\nThe script has been terminated.\")\n\t\t\t\tprocess.exit()\n\t\t\t}\n\t\t}\n\t\tif (i + 1 == activeCommands.commands.length) {\n\t\t\tclearScreen()\n\t\t\tconsole.log(\"You didn't enter a valid command.\\nNeed help? Type in 'help' as your input.\\n\")\n\t\t\taskForPrompt()\n\t\t}\n\t}\n}", "addCommands(commands){if(this.annyang){this.annyang.addCommands(commands)}}", "function setup(){\n anime({\n targets:myPaths[0],\n translateX:100\n})\n anime({\n targets:myPaths[1],\n translateX:-300\n})\n}", "function init() {\n\n\tlet queryDelay = false;\n\tconst JIKAN_DELAY = 4000; // ms\n\tconst JIKAN_MINIMUM_QUERY_LENGTH = 3;\n\treturn async function (args = [], type = 'anime') {\n\t\tlet err = null;\n\t\tlet animeList = [];\n\t\terr = utils.validateArgsRequired(args) \n\t\t\t|| utils.validateArgsMinimumLength(args, JIKAN_MINIMUM_QUERY_LENGTH) \n\t\t\t|| validateQueryDelay(queryDelay);\n\t\tif (err) return { animeList, err }\n\t\telse {\n\t\t\tqueryDelay = true;\n\t\t\tsetTimeout(() => queryDelay = false, JIKAN_DELAY);\n\t\t\tif (jikanQuery(args)[type]) {\n\t\t\t\treturn jikanQuery(args)[type]();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terr = new Error('Invalid jikan query type specified.');\n\t\t\t\treturn {animeList, err};\n\t\t\t}\n\t\t}\n\t}\n}", "function commands(command) {\n switch (command) {\n case \"concert-this\":\n concertSearch();\n break;\n case \"movie-this\":\n movieSearch();\n break;\n case \"spotify-this-song\":\n songSearch();\n break;\n case \"do-what-it-says\":\n doThis();\n break;\n default:\n console.log('Liri needs to be told what to do...');\n };\n}", "function askingWeather(msg){\n return msg.text.toLowerCase().match(/weather/i);\n}", "function examine(word) {\n let lookAt = itemLookUp[word]\n if (player.location.inv.includes(word)) {\n console.log(lookAt.desc)\n }\n}", "function _startFind() {\n\t\tfunction isValidQuery(s) {\n\t\t\tvar match = s.match(/^[\\s]*$/g);\n\t\t\treturn match ? false : true;\n\t\t}\n\n\t\tif ($dialogInput && currentEditor) {\n\t\t\tvar text = _getVisibleText();\n\t\t\tvar rawQuery = $dialogInput.val();\n\t\t\tvar query = isValidQuery(rawQuery) ? rawQuery : \"\";\n\t\t\tif (query.length > 0) {\n\t\t\t\t_doHighlight(text, query);\n\t\t\t}\n\t\t}\n\t}", "_onCommand(e) {\n e.preventDefault();\n const command = this.commandInput.value;\n this.commandInput.value = \"\";\n // begin shout command\n if(command.startsWith(\"/shout \")) { \n const shout = command.substring(7);\n this._addMessage(`You shout \"${shout}\"`);\n } // end shout command\n\n // begin shout command\n else if(command.startsWith(\"/whisper \")) { \n const shout = command.substring(9);\n this._addMessage(`You whisper \"${shout}\"`);\n } // end shout command \n\n // begin logoff command \n else if (command.startsWith(\"/logoff\")) { \n this._onLogOut(); \n } // end logoff command\n\n // begin search command\n else if (command.startsWith(\"/search\")) {\n this._search();\n } // end search command \n\n // begin attack command\n else if (command.startsWith(\"/attack\")) {\n this._attack();\n } // end attack command\n\n // begin help command\n else if (command.startsWith(\"/help\")) {\n this._helpMessage();\n } // end help command\n\n // begin escape command\n else if (command.startsWith(\"/escape\"))\n {\n this._escape();\n } // end escape command\n\n // begin dam command\n else if(command.startsWith(\"/dam\")) {\n console.log(this._calculatePlayerDamage());\n } // end dam command\n\n // basic speech\n else {\n this._addMessage(`You say \"${command}\"`);\n }\n }", "function doneTyping() {\r\n search();\r\n}", "function itSays() {\n var textArray;\n\n fs.readFile(\"./random.txt\", \"utf8\", function(error, data) {\n\n if (error) {\n console.log(\"Error Occurred:\\n\" + error);\n }\n else {\n textArray = data.split(\",\"); //Split the text into an array containing command and search term. If the command is \"my-tweets\" with no search term, this will not break.\n \n if (textArray.length > 1) { //If the command in random.txt is \"my-tweets\" this will be false\n textArray[1] = textArray[1].trim().substring(1, textArray[1].trim().length - 1); //Remove quotation marks around search term in random.txt\n }\n \n switch (textArray[0]) {\n case \"my-tweets\":\n twitterAPI();\n break;\n \n case \"spotify-this-song\":\n spotifyAPI(textArray[1]);\n break;\n\n case \"movie-this\":\n omdbAPI(textArray[1]);\n break;\n }\n }\n });\n}", "function makeTheAnimalAndSpeak(ani) {\n // ani.speak(); \n ani.walk();\n}", "function angryEmoji() {\n navigator.vibrate([500, 100, 500, 100, 500, 100, 500]);\n}", "function liriCalls(command, searchInput) {\n switch (command) {\n case \"concert-this\":\n concertThis(searchInput);\n break;\n\n case \"spotify-this-song\":\n SpotifyThisSong(searchInput);\n break;\n\n case \"movie-this\":\n movieThis(searchInput);\n break;\n\n case \"do-what-it-says\":\n doWhatItSays(searchInput);\n break;\n\n default:\n console.log(\"Input any of the following commands:\\n\\n\" +\n \"node liri.js concert-this,\\n\\n\" +\n \"node liri.js spotify-this-song,\\n\\n\" +\n \"node liri.js movie-this,\\n\\n\" +\n \"node liri.js do-what-it-says\");\n }\n}", "function nomatch() {\n\twatch.close();\n\n\tif (done) {\n\t\treturn;\n\t}\n\n\tsetTimeout(function () {\n\t\twatch = new Gaze(program.pattern);\n\t\twatch.on('all', stop);\n\t\twatch.on('nomatch', nomatch); // Recursion\n\t\twatch.on('ready', function(watcher) {\n\t\t\tvar keys = Object.keys(watcher._watched);\n\t\t\tif (keys && keys.length) {\n\t\t\t\tstop('added', watcher._watched[keys[0]]);\n\t\t\t}\n\t\t});\n\t}, delay || 500);\n}", "function selectCommand(liriCommand,queryInput) {\n\n\t\n\t//if command my-tweets\n\tif(liriCommand==='my-tweets')\n\t{\n\t\t//console.log('werwerw')\n\t\ttweet()\n\t}\n\t//if command is spotify-this-song\n\telse if(liriCommand==='spotify-this-song')\n\t{\t\n\t\t//console.log(input)\n\t\tspotify(queryInput)\n\t}\n\n\t//if command movie-this\n\telse if(liriCommand==='movie-this')\n\t{\n\t\tomdb(queryInput)\n\t}\n\t//if command do-what-it-says\n\telse if(liriCommand===\"do-what-it-says\") {\n\n\t\tdothis()\n\t}\n}", "function suggestFilter(msg, arg){\r\n\t\tstate = 3;\r\n\t\thasTheWord = arg;\r\n\t\topenPanel(msg);\r\n\t}", "function doWhatItSays() {\n fs.readFile(\"random.txt\", \"utf8\", function(err, data) {\n if (err) return err;\n console.log(data);\n var commands = data.split(\"\\n\");\n // console.log({ commands });\n\n commands.forEach(function(commandStr) {\n var args = commandStr.split(\", \");\n var operation = args[0];\n var searchTerm = args[1];\n\n if (operation === \"spotify-this-song\") {\n spotifyThis(searchTerm);\n } else movieThis(searchTerm);\n });\n });\n}", "function parseCommand(text){\n var words = text.split(\" \");\n for(var i=0; i < words.length; i++){\n if (words[i] in commandList){\n processCommand(words[i]);\n break;\n }\n }\n}", "function handleCommands(ce) {\n if (ce.content === '!!time') {\n send(new Date().toString());\n }\n if (ce.content === '!!stop') {\n send('...');\n silent = true;\n }\n if (ce.content === '!!go') {\n silent = false;\n }\n }", "function commandSearch(action, searchParam) {\n if (action === \"movie-this\") {\n var movieTitle = searchParam;\n if (!movieTitle) {\n movieTitle = \"Mr. Nobody\";\n }\n movieThis(movieTitle);\n } else if (action === \"spotify-this-song\") {\n var spotifySong = searchParam;\n if (!spotifySong) {\n spotifySong = \"The Sign by Ace of Base\";\n }\n spotifyThis(spotifySong);\n } else if (action === \"concert-this\") {\n var concert = searchParam;\n concertThis(concert);\n } else if (action === \"do-what-it-says\") {\n var whatitsays = searchParam;\n doWhatItSaysThis(whatitsays);\n }\n \n}", "function cursorCheck(str) {\n let result = str.search(new RegExp('ostap|cursor|ironman', 'i'));\n access = (result > 0) ? true : false; \n return access;\n}", "function searchingPosition () {\n //parameter for a circle\n MinuteInS = smsText.timeInterval*60;\n duration = smsText.timeInterval*60000;\n perimeter = 57 * 2 * Math.PI;\n increment = perimeter/MinuteInS;\n increment = increment/10;\n myCircle(increment,perimeter,duration);\n }", "function parseText(text){\n var containsTurn = (text.indexOf(\"turn\") >= 0),\n containsChange = text.indexOf(\"change\") >= 0,\n containsSet = text.indexOf(\"set\") >= 0,\n containsLight = (text.indexOf(\"light\") >= 0);\n if ((containsTurn || containsChange || containsSet ) && containsLight) {\n parseCommand(text);\n }\n}", "function search(userInput) {\n if (userInput === \"room\") {\n // search an interactable\n writeToTerminal(\n \"With a sweeping look over the delapitated area you identify a few things..There is one door to the place, on the righthand side of the door there is a shady looking plant. Left of the door the roof seem to have fallen in and on the floor a bunch of odd moldy planks lie in a heap.behind you on the left quite close the the planks there is a big pool of coagulated stale blood.From the pool leading to inbehind a cupboard in the corner on the oposite side of the shady plant is a trail of the congealed old looking substance. the cupboard is closed but not sealed in any obvious way.\"\n );\n knowlage.knowRoom = true;\n actions.search = false;\n writeToTerminal(\"What do you do?\");\n itentifyAndSpliceFromInteractable(\"room\");\n map();\n }\n if (actions.search && interactable.includes(userInput)) {\n console.log(\"search success\");\n writeToTerminal(\"You searched the \" + userInput);\n whatDoesThisDo();\n actions.search = false;\n } else if (actions.search && !interactable.includes(userInput)) {\n // search FAIL\n writeToTerminal(\"You can't search that?\");\n actions.search = false;\n }\n}", "getCommandInfo(text) {\n let commandList = [];\n for (let command of this.CommandInfoList) {\n if (command.Aliases && command.Aliases.includes(text)) {\n commandList.push(command);\n }\n }\n\n return commandList;\n }", "function spotifySearch() {\n\tsearchTerm = '\"' + process.argv.slice(3).join(\" \") + '\"';\n\tconsole.log(\"Searching for \" + searchTerm + \"...\\n\");\n\tspotify\n .search({ type: 'track', query: searchTerm, limit: 1 })\n .then(function(response) {\n console.log(`\n----------------------------------------------------------------------------------------\n\t\t\tYou searched for the song: ${response.tracks.items[0].name} \n\t\t\tThe Artist is: ${response.tracks.items[0].album.artists[0].name}\n\t\t\tThe Album is: ${response.tracks.items[0].album.name}\n\t\t\tClick here to hear a clip: ${response.tracks.items[0].external_urls.spotify}\n \t`);\n\n })\n .catch(function(err) {\n return console.log('Error occurred: ' + err);\n });\n }", "function runCommand(command, searchTerm) {\n switch (command) {\n case 'my-tweets':\n showTweets();\n break;\n case 'spotify-this-song':\n showSong(searchTerm);\n break;\n case 'movie-this':\n showMovie(searchTerm)\n break;\n default:\n doRandom();\n }\n}", "function search(){\n\tconsole.log(\"start search!\");\n\tvar startPos = '2-2'; // start position\n\tvar moveSeq = ['up', 'down', 'left', 'right', 'right', 'right', 'down', 'down', 'left', 'left'];\n\tsetTimeout(function(){\n\t\tconsole.log(\"done search!\");\n\t\tmove(moveSeq, startPos);\n\t}, 2000);\n}", "async onCommand(recognition) {\n\t\tthis.console('command detected: ' + recognition.text);\n\t}", "function search() {\n return shell().Search;\n}", "function searchEmojis() {\n // debugger;\n const getEmoji = emojis\n .filter(g => g.name.includes(searchEmoji.value))\n .map(emoji => `<div class=\"emoji\">${emoji.char}</div>`)\n .join(\"\");\n\n emojimodalbody.innerHTML = getEmoji\n}", "function movieThis(command, userInput) {\n if (command === \"movie-this\" && userInput === \"\") {\n request(\"http://www.omdbapi.com/?t=mr+nobody&y=&plot=short&apikey=trilogy\", function(error, response, body){\n if (!error && response.statusCode === 200) {\n console.log(\"Title: \" + JSON.parse(body).Title);\n console.log(\"Released: \" + JSON.parse(body).Released);\n console.log(\"IMDB Rating: \" + JSON.parse(body).imbdbRating);\n //console.log(\"Rotten Tomatoes Rating: \" + 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(\"Actors and Actresses: \" + JSON.parse(body).Actors);\n }\n });\n // allows user input to dictate search\n } else if (command === \"movie-this\") {\n request(\"http://www.omdbapi.com/?t=\" + userInput + \"&y=&plot=short&apikey=trilogy\", function(error, response, body){\n if (!error && response.statusCode === 200) {\n console.log(\"Title: \" + JSON.parse(body).Title);\n console.log(\"Released: \" + JSON.parse(body).Released);\n console.log(\"IMDB Rating: \" + JSON.parse(body).imbdbRating);\n console.log(\"Rotten Tomatoes Rating: \" + 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(\"Actors and Actresses: \" + JSON.parse(body).Actors);\n }\n });\n };\n }", "function onclickForSearchButton(event)\n{\n //console.log(event);\n \n var q = document.getElementById('search-query').value; //escape here?\n \n //some kanji searches are going to be legitimately only one char.\n //we need a trim() function instead...\n if(q.length < 1)\n {\n return;\n }\n \n buttonSpinnerVisible(true);\n \n var matches = doEdictQueryOn(q);\n}", "function commandTea({ phrase, data }) {\n return new Promise((resolve, reject) => {\n try {\n let [teaType, ...textString] = phrase.split(\" \");\n let text = textString ? textString.join(\" \") : \"\";\n \n // Checking tea format\n let time = 0; // minutes\n let image = \"https://cdn.pixabay.com/photo/2017/10/04/12/10/peppermint-2816012_960_720.jpg\";\n switch (teaType) {\n case \"green\":\n case \"vert\":\n time = 3;\n image = \"https://cdn.pixabay.com/photo/2017/10/04/12/10/peppermint-2816012_960_720.jpg\";\n break;\n case \"black\":\n case \"noir\":\n time = 5;\n image = \"https://cdn.pixabay.com/photo/2015/07/01/08/42/oolong-827397_960_720.jpg\";\n break;\n case \"herbs\":\n case \"infusion\":\n case \"herbes\":\n time = 7;\n image = \"https://cdn.pixabay.com/photo/2018/04/02/17/10/hibiscus-3284431_960_720.jpg\";\n break;\n default:\n time = 0;\n }\n if (time == 0) {\n return resolve({\n message: {\n title: \"Tea Timer\",\n text: \"Type `!tea <green|black|herbs>` to set a timer for your tea.\"\n }\n });\n } else {\n // Set timer.\n overseer.HookManager.create(\"tea\").then((hook) => {\n schedule.scheduleJob(new Date(new Date().getTime() + time*60000), () => {\n overseer.HookManager.execute(hook._id, {\n message: {\n title: \"It's Tea Time!\",\n text: \"Your tea is ready! Run, Forest! Run!\",\n attachments: [{\n image_url: image\n }]\n }\n }).catch((err) => console.log(err));\n });\n return resolve({\n message: {\n title: \"Tea Timer\",\n text: \"Okay! I'll remind your in \" + time + \" minutes :)\",\n request_hook: true,\n hook_id: hook._id\n }\n })\n }).catch((err) => {\n return resolve({\n message: {\n title: \"Tea Timer\",\n text: \"Tea Timer cannot set a hook in this channel, sorry.\"\n }\n })\n });\n }\n } catch (e) {\n return resolve({\n message: {\n title: \"Tea Timer\",\n text: \"Type `!tea <green|black|herbs>` to set a timer for your tea.\"\n }\n });\n }\n });\n}", "function ecrire(){\nrl.question(welcomemessage, (answer) =>{\n\tif (answer == 'exit'){\n\t\tprocess.exit();\n\t}\n\telse if (answer== 'set'){\n\t\tset();\n\t}\n\telse if (answer == 'get'){\n\t\tget();\n\t}\n\telse if (answer == 'lastquery'){\n\t\tlastquery();\n\t}\n\n\telse if (answer == 'mysql') {\n\t\tsetEvent();\n\t}\n\telse if (answer== 'php'){\n\t\teventphp();\n\t}\n\telse {\n\t\tconsole.log(answer + ': command not found \\n' + listofcommand);\n\t\tsetTimeout(function(){ecrire()},120);\n\t}\n\t});\n}", "function emotify(txt, callback) {\n if (typeof callback === \"undefined\") { callback = null; }\n callback = callback || function (img, title, smiley, text) {\n title = (title + ', ' + smiley).replace(/\"/g, '&quot;').replace(/</g, '&lt;');\n return '<img src=\"' + img + '\" title=\"' + title + '\" alt=\"\" class=\"smiley\" style=\"vertical-align: -20%;\"/>';\n };\n return txt.replace(EMOTICON_RE, function (a, b, text) {\n var i = 0, smiley = text, e = emoticons[text];\n\n if (!e) {\n while (i < lookup.length && !lookup[i].regexp.test(text)) {\n while (i < lookup.length && !lookup[i].regexp.test(text)) {\n i = i + 1;\n }\n smiley = lookup[i].name;\n e = emoticons[smiley];\n }\n\n // If the smiley was found, return HTML, otherwise the original search string\n return e ? (b + callback(e[0], e[1], smiley, text)) : a;\n }\n });\n}", "function initiateQuery(q, m) {\n if(q.length == 0) {\n app.statusMsg = 'Input must not be empty.';\n flashTextInput(red);\n } else {\n if (m) {\n // TODO: code for multi-word anagrams\n } else {\n app.statusMsg = 'Solving \"' + q + '\"...';\n app.textInput = '';\n requestAnagramFromServer(q);\n }\n }\n }", "function suggestions(){\n computerPlays(true);\n}", "_find_keyword (event) {\n let [x, y] = event.get_coords();\n [, x, y] = this.msg.transform_stage_point(x, y);\n let pos = this.msg.clutter_text.coords_to_position(x, y);\n\n if (pos === this.msg.text.length) return;\n\n let words = MISC.split_on_whitespace(this.msg.get_text());\n\n let i = 0;\n let abs_idx = 0;\n\n for (; i < words.length; i++) {\n abs_idx += words[i].length;\n if (pos < abs_idx) break;\n }\n\n if (i >= words.length) return null;\n\n if (REG.TODO_CONTEXT.test(words[i]) ||\n REG.TODO_PROJ.test(words[i]) ||\n REG.URL.test(words[i]) ||\n REG.FILE_PATH.test(words[i]))\n return words[i];\n else\n return null;\n }", "loadCommands(){\n let Artyom = this._artyom;\n\n // Here you can load all the commands that you want to Artyom\n return Artyom.addCommands([\n {\n indexes: [\"hello\", \"hi\"],\n action: () => {\n Artyom.say(\"Hello, how are you?\");\n }\n },\n {\n indexes: [/How are you/, /Regular expressions supported/],\n smart: true,\n action: () => {\n Artyom.say(\"I'm fine, thanks for asking !\");\n }\n },\n {\n indexes: [\"Generate reports of * of this year\"],\n smart: true,\n action: (i, month) => {\n let year = new Date().getFullYear();\n\n Artyom.say(`Generating reports of ${month} ${year} `);\n\n Artyom.say(\"Ready ! What were you expecting? write some code you lazy bear !\");\n }\n },\n {\n indexes: [\"What is the weather like\"],\n action: () => {\n axios.get(\"http://api.openweathermap.org/data/2.5/forecast?id=1880252&APPID=6feeacb3997e0e4f4a7f9e9c4b193934\")\n .then(result=>{\n let data = Math.floor(result.data.list[0].main.temp) - 273\n Artyom.say(`Temperature is ${data} degrees celcius`);\n })\n\n }\n }\n ]);\n }", "function mapAnimeType(type) {\r\n\tswitch (type) {\r\n\t\tcase 1: return (\"unknown\");\r\n\t\tcase 2: return (\"TV Series\");\r\n\t\tcase 3: return (\"OVA\");\r\n\t\tcase 4: return (\"Movie\");\r\n\t\tcase 5: return (\"Other\");\r\n\t\tcase 6: return (\"Web\");\r\n\t\tcase 7: return (\"TV Special\");\r\n\t\tcase 8: return (\"Music Video\");\r\n\t}\r\n\treturn ('unknown');\r\n}", "onLineStart() { }", "function away() {\n var parseStatus = function parseStatus(text, encoding) {\n if (encoding) {\n text = text.split('').map(function (char) {\n return bubbleLetterMap.get(char);\n }).join('');\n } else {\n text = text.split('').map(function (char) {\n return asciiMap.get(char);\n }).join('');\n }\n return text;\n };\n\n var commands = {\n afk: function afk(target, room, user) {\n this.parse('/away AFK', room, user);\n },\n busy: function busy(target, room, user) {\n this.parse('/away BUSY', room, user);\n },\n work: function work(target, room, user) {\n this.parse('/away WORK', room, user);\n },\n working: function working(target, room, user) {\n this.parse('/away WORKING', room, user);\n },\n eating: function eating(target, room, user) {\n this.parse('/away EATING', room, user);\n },\n gaming: function gaming(target, room, user) {\n this.parse('/away GAMING', room, user);\n },\n sleep: function sleep(target, room, user) {\n this.parse('/away SLEEP', room, user);\n },\n mimis: function mimis(target, room, user) {\n this.parse('/away MIMIS', room, user);\n },\n sleeping: function sleeping(target, room, user) {\n this.parse('/away SLEEPING', room, user);\n },\n fap: function fap(target, room, user) {\n this.parse('/away FAP', room, user);\n },\n fapping: function fapping(target, room, user) {\n this.parse('/away FAPPING', room, user);\n },\n away: function away(target, room, user) {\n if (!user.isAway && user.name.length > 15) {\n return this.sendReply('Your username is too long for any kind of use of this command.');\n }target = target ? target.replace(/[^a-zA-Z0-9]/g, '') : 'AWAY';\n var newName = user.name;\n var status = parseStatus(target, true);\n var statusLen = status.length;\n if (statusLen > 14) {\n return this.sendReply('Your away status should be short and to-the-point, not a dissertation on why you are away.');\n }\n\n if (user.isAway) {\n var statusIdx = newName.search(/\\s\\-\\s[\\u24B6-\\u24E9\\u2460-\\u2468\\u24EA]+$/);\n if (statusIdx > -1) newName = newName.substr(0, statusIdx);\n if (user.name.substr(-statusLen) === status) {\n return this.sendReply('Your away statis is already set to \"' + target + '\".');\n }\n }\n\n newName += ' - ' + status;\n if (newName.length > 18) {\n return this.sendReply('\"' + target + '\" is too long to use as your away status.');\n } // forcerename any possible impersonators\n var targetUser = Users.getExact(user.userid + target);\n if (targetUser && targetUser !== user && targetUser.name === user.name + ' - ' + target) {\n targetUser.resetName();\n targetUser.send('|nametaken|Your name conflicts with ' + user.name + (user.name.substr(-1) === 's' ? '\\'' : '\\'s') + ' new away status.');\n }\n\n if (user.can('lock', null, room)) this.add('|raw|-- <b>' + Tools.escapeHTML(user.name) + '</b> is now ' + target.toLowerCase() + '.');\n user.forceRename(newName, user.registered);\n user.updateIdentity();\n user.isAway = true;\n },\n\n back: function back(target, room, user) {\n if (!user.isAway) {\n return this.sendReply('You are not set as away.');\n }user.isAway = false;\n\n var newName = user.name;\n var statusIdx = newName.search(/\\s\\-\\s[\\u24B6-\\u24E9\\u2460-\\u2468\\u24EA]+$/);\n if (statusIdx < 0) {\n user.isAway = false;\n if (user.can('lock', null, room)) this.add('|raw|-- <b>' + Tools.escapeHTML(user.name) + '</b> is no longer away.');\n return false;\n }\n\n var status = parseStatus(newName.substr(statusIdx + 3), false);\n newName = newName.substr(0, statusIdx);\n user.forceRename(newName, user.registered);\n user.updateIdentity();\n user.isAway = false;\n if (user.can('lock', null, room)) this.add('|raw|-- <b>' + Tools.escapeHTML(user.name) + '</b> is no longer ' + status.toLowerCase() + '.');\n }\n };\n\n Object.merge(CommandParser.commands, commands);\n}", "loadCommands(){\n let Artyom = this._artyom;\n\n // Here you can load all the commands that you want to Artyom\n return Artyom.addCommands([\n {\n indexes: [\"Hello\", \"Hi\"],\n action: () => {\n Artyom.say(\"Hello, how are you?\");\n }\n },\n {\n indexes: [/How are you/, /Regular expressions supported/],\n smart: true,\n action: () => {\n Artyom.say(\"I'm fine, thanks for asking !\");\n }\n },\n {\n indexes: [\"Generate reports of * of this year\"],\n smart: true,\n action: (i, month) => {\n let year = new Date().getFullYear();\n \n Artyom.say(`Generating reports of ${month} ${year} `);\n\n Artyom.say(\"Ready ! What were you expecting? write some code you lazy bear !\");\n }\n },\n ]);\n }", "function DetectTextCommand(input) {\n var _this = \n // Start section: command_constructor\n _super.call(this) || this;\n _this.input = input;\n return _this;\n // End section: command_constructor\n }", "function registerCommands()\n{\n addCMD([\"cmd\", listCmds, \"Prints list of available commands\"]);\n addSynonimOf(\"cmd\", \"cmds\");\n addSynonimOf(\"cmd\", \"commands\");\n\n addCMD([\"test\", test, \"Just a test\"]);\n addCMD([\"invite\", inviteMeLink, \"I'll give you invite link to me!\", [], true]);\n\n addCMD([\"say\", say, \"I'll say some instead you! (attachments also supported!)\\n__*Syntax:*__ say <any your text>\"]);\n addCMD([\"saytts\", sayTTS, \"I'll help to pronuncate you some!\\n__*Syntax:*__ saytts <any your text>\"]);\n addCMD([\"whosaid\", sayLog, \":spy: Shsh! I'll leak you secret - who asked me to say (5 last messages)\\n\"]);\n addCMD([\"setgame\", setPlayingGame, \"I'll play any game you suggesting me!\\n\" +\n \"__*Syntax:*__ setgame <any your text>\\n\\n**NOTE:** Only permited users can use this command!\"]);\n addCMD([\"setmusic\", setListeningMusic,\"I'll listen any music you suggesting me!\\n\" +\n \"__*Syntax:*__ setmusic <any your text>\\n\\n**NOTE:** Only permited users can use this command!\"]);\n addCMD([\"setvideo\", setWatchingVideo, \"I'll watch any video suggesting me!\\n\" +\n \"__*Syntax:*__ setvideo <any your text>\\n\\n**NOTE:** Only permited users can use this command!\"]);\n addCMD([\"setstream\",setStreaming, \"I'll stream anything you ask me!\\n\" +\n \"__*Syntax:*__ setstream <any your text>\\n\\n**NOTE:** Only permited users can use this command!\"]);\n\n addCMD([\"remind\", sayDelayd, \":information_desk_person: I'll remeber a thing you request me!\\n__*Syntax:*__ remind <any your text> after <time> <seconds, minutes, hours>\\n\", [], true]);\n addCMD([\"remindme\", sayDelaydME, \":information_desk_person: I'll remeber you personally a thing you request me!\\n__*Syntax:*__ remindMe <any your text> after <time> <seconds, minutes, hours>\\n\", [], true]);\n\n addCMD([\"err\", wrongFunction, \"It hurts me...\"]);\n\n addCMD([\"isbeepboop\",isBeepBoop, \"Check is this server has a beep-boop channel\"]);\n addSynonimOf(\"isbeepboop\",\"isfun\", \"Check is this server has a beep-boop/fun channel\");\n\n addCMD([\"mytime\", myTime, \"Let's check our watches? :clock: :watch: :stopwatch: :clock1: \"]);\n addCMD([\"stats\", aboutBot, \"Just my health state\"]);\n addSynonimOf(\"stats\", \"about\", \"Wanna meet me?\");\n addCMD([\"uptime\", upTimeBot, \"How long I still be here\"]);\n\n addCMD([\"help\", cmdHelp, \"Prints help of command\"]);\n\n addCMD([\"mailwohlstand\", sendEmail, \"Send email to my creator while he is offline. (Attachments are supported!) \\n\" +\n \"__*Syntax:*__ mailwohlstand <any your text>\", [], true]);\n\n addCMD([\"check-in-list\", cachedFiles_Check, \"Check the existing of something in one of built-in lists\", [], true]);\n addCMD([\"reload-lists\", cachedFiles_ReLeload, \"<Owner-Only> Reload built-in lists\", [], true]);\n\n\n foxyLogInfo( Cmds.length + \" command has been registered!\");\n}", "async findRobot() {\n await this.sendCommand(\"find_me\", [], {});\n }", "function SearchByEpisodeNumberIntentHandler(){\n var episodeNumber = this.event.request.intent.slots.episodeNumber.value;\n var query = \"title:\" + episodeNumber;\n var that = this;\n\n audiosearch.searchEpisodes(query, {\"filters[show_id]\":27}).then(function (results) {\n if (results.total_results !== 0) {\n Object.assign(that.attributes, {\n \"STATE\": states.DESCRIPTION,\n \"title\": results.results[0].title,\n \"description\": results.results[0].description,\n \"date_created\": results.results[0].date_created\n }\n );\n var speechOutput = \"I found an episode called \" + that.attributes.title + \". \" + DESCRIPTION_MODE_HELP_MESSAGE;\n that.emit(\":ask\", speechOutput);\n } else {\n var output = \"no results found\";\n that.emit(\":ask\", output);\n }\n });\n}", "function toneMatches(query, word) {\n if (query.length == 0) {\n return true;\n }\n // Supported patterns: 平/上/去/入/仄, maybe prefixed by 陰/陽\n const matches = query.match(/^[陰陽]?[平上去入仄]$/);\n if (!matches) {\n return false;\n }\n if (query.startsWith('陰') || query.startsWith('陽')) {\n if (word.yinyang && word.yinyang != query[0]) {\n return false;\n }\n }\n let tone = query[query.length - 1];\n if (tone == '仄') {\n tone = '上去入';\n }\n return !word.tone || tone.includes(word.tone);\n}", "function runLiri(appCommand, userSearch) {\n switch (appCommand) {\n case \"concert-this\":\n getBandsInTown(userSearch);\n break;\n\n case \"movie-this\":\n getOMDB(userSearch);\n break;\n\n case \"spotify-this-song\":\n getSpotify(userSearch);\n break;\n\n case \"do-what-it-says\":\n getRead();\n break;\n //If user doesn't enter anything\n default:\n console.log(\"YO! Buttercup! Enter one of the following PHRASES! concert-this, spotify-this-song, or movie-this! \")\n\n }\n\n}", "function findAtom(input) {\n var atom;\n for (var i = 0; i < atomSymbols.length; i++) {\n var s = atomSymbols[i];\n if (s.input.test !== undefined) {\n if (s.input.test(input)) {\n atom = s;\n break;\n }\n } else {\n if (s.input === input) {\n atom = s;\n break;\n }\n }\n }\n return atom;\n}", "function tellJoke(){\n VoiceRSS.speech({\n key: ttsKey,\n src: ttsText,\n hl: 'en-au',\n v: 'Isla',\n r: 0, \n c: 'mp3',\n f: '44khz_16bit_stereo',\n ssml: false \n });\n}", "async function getAnimeShortData(search) {\n // encodes search query into URL\n const encodedSearch = encodeURI(search);\n // input is added to actual url\n const animeSearchURL = `https://api.jikan.moe/v3/search/anime?q=${encodedSearch}`;\n //fetch and return JSON\n const fetchedAnimeShortData = await fetch(animeSearchURL);\n return await fetchedAnimeShortData.json();\n}", "function exec(input){\n var event = {which: \"\", shift: false, artificial: true};\n\n //\n for (var ii = 0; ii < input.length-2; ii++)\n {\n if (input.substr(ii, 3) == \" | \")\n {\n input = input.substr(0, ii) + \"\\uFFF7\" + input.substr(ii+3);\n }\n }\n input += \"\\uFFF7\";\n //Print out and run the command\n for (var i = 0; i < input.length; i++)\n {\n var code = translate(input[i], false, true);\n event.which = code.letter;\n event.shift = code.shift;\n charinsert(event);\n }\n}", "poem(message, connection, args) {\n if (args.length !== 2) {\n message.reply('Format is !sno poem |Poem Name|');\n Speaker.googleSpeak('Wrong!', this.voice, this.volume, connection, Speaker.speak);\n return;\n }\n // Would check here for which poem to grab\n if (args[1].toLowerCase() === 'POEM-NAME') {\n const POEM = '';\n message.channel.send(POEM);\n Speaker.googleSpeak(POEM, this.voice, this.volume, connection, Speaker.speak);\n } else {\n message.reply('Format is !sno poem |Kevin/Seva|');\n Speaker.googleSpeak('Wrong!', this.voice, this.volume, connection, Speaker.speak);\n }\n }", "function panggilRegexp(value) {\n var ambilData = value.match(/[m-q]/ig);\n console.log(ambilData);\n}", "movieThis() {\n const omdb = new OMDbAPI(KEYS.omdb);\n let movieName = \"Mr. Nobody\";\n\n if (this.cmdArgs.length > 0) {\n movieName = this.cmdArgs.join(\" \");\n }\n omdb.findMovie(movieName);\n }", "function spotifyCommand(inputSong) {\n\tvar inputSong = process.argv[3];\n\tvar spotify = new Spotify({\n\t id: spotkey.spotifyKeys.id,\n\t secret: spotkey.spotifyKeys.secret\n\t });\n\tif(!inputSong) {\n\t\tinputSong = \"Billie Jean\"; //default song INPUT\n\t};\n\n\tspotify.search({type: 'track', query: inputSong}, function(err, data) {\n if (!err) {\n\t \t var spotifyInfo =\n \"\\r\\n\" +\n \"Artist: \" + data.tracks.items[0].artists[0].name + \"\\r\\n\" + \n \"Song: \" + data.tracks.items[0].name + \"\\r\\n\" +\n \"Preview Link: \" + data.tracks.items[0].preview_url + \"\\r\\n\" +\n \"Album: \" + data.tracks.items[0].album.name + \"\\r\\n\"; \n console.log(spotifyInfo);\n log(spotifyInfo);\n } \n else { \n \tconsole.log('Error occurred: ' + err);\n \treturn;\n }\t\n })\n}", "function lookat_wrapper( sketchfab_api, eye, target, duration ) {\n return new Promise(( resolve, reject ) => {\n sketchfab_api.lookat( eye, target, duration, function() {\n resolve();\n });\n });\n}", "function runWithString (argument) {\n const dictionary = getEmojiDictionary()\n const database = new EmojiDatabase({dictionary})\n\n let emojiNames\n if (argument.length > 0) {\n emojiNames = database.getMatches(argument)\n } else {\n emojiNames = Object.keys(dictionary)\n }\n\n return emojiNames.sort().map(function (name) {\n const character = new EmojiCharacter({name, metadata: dictionary[name]})\n return character.toLaunchbarItem()\n })\n}", "function spotifyCommand(){\n inquirer.prompt([\n {\n name: \"song\",\n message:\"What song would you like to search?\"\n }\n ]).then(function(answer){\n if(answer.song === \"\"){\n spotifyThis(defaulted.song)\n } else {\n commandParam = answer.song;\n spotifyThis(commandParam);\n }\n })\n}", "function searchEmoji(answers, input) {\n\tinput = input || '';\n\treturn new Promise(resolve => {\n\t\tsetTimeout(() => {\n\t\t\tlet result = fuzzy.filter(input, require('emojilib').ordered);\n\t\t\tresolve(result.map(el => el.original ));\n\t\t}, 100)\n\t})\n}", "function doWhatItSays() {\n let commands = [];\n let command = '';\n let arg = '';\n let key = true;\n\n for (let i = 0; i < randomText.length; i++) {\n if (randomText[i] !== '\\n' && randomText[i] !== ' ' && key) {\n command += randomText[i];\n } else {\n arg += randomText[i];\n }\n\n if (randomText[i] === ' ') {\n key = false;\n }\n\n if (randomText[i] === '\\n') {\n commands.push({\n command,\n arg: arg.slice(1, -1)\n })\n command = '';\n arg = '';\n key = true;\n }\n\n }\n let randomTask = commands[randomizer(0, commands.length)];\n terminalArg = randomTask.command;\n let words = randomTask.arg.split(' ');\n\n words.forEach((word) => {\n process.argv.push(word);\n })\n\n}", "function test() {\n userSay(\"Hello\");\n alexaSay(\"Hello\");\n userSay(\"What time is the cafeteria open?\");\n alexaSay(\"The cafeteria is open for breakfast from 7:30 to 9:00, lunch from 11:00 to 2:00, and dinner from 5:00 to 7:00.\");\n}", "function speak(whatosay){\n\t//speak the string\n\texec(say + whatosay);\n\t//log it to the console\n\tconsole.log(whatosay)\n}", "function find() {}", "function logCommands(command, userInput) {\n fs = require(\"fs\");\n var textFile = \"./log.txt\";\n\n fs.appendFile(textFile, command + \": \" + userInput + \", \", function (err){\n if(err) throw err;\n console.log(\"Your search of \" + userInput + \" was logged to our records.\");\n });\n }", "function movieCommand() {\n\tvar inputMovie = process.argv[3];\n\tif(!inputMovie){\n\t\tinputMovie = \"Mr. Nobody\"; //default movie INPUT\n\t}\n\tvar queryUrl = \"http://www.omdbapi.com/?t=\" + inputMovie + \"&y=&plot=short&&apikey=40e9cece&r=json&tomatoes=true\";\n\n\trequest(queryUrl, function(error, response, body) {\n \n \tif (!error && response.statusCode) {\n \tvar movieData = JSON.parse(body);\n \tvar movieInfo = \n\t\t\t\"\\r\\n\" +\n \"Title: \" + movieData.Title + \"\\r\\n\" +\n \"Year: \" + movieData.Year + \"\\r\\n\" +\n \"IMDB Rating: \" + movieData.imdbRating + \"\\r\\n\" +\n \"Country: \" + movieData.Country + \"\\r\\n\" +\n \"Language: \" + movieData.Language + \"\\r\\n\" +\n \"Plot: \" + movieData.Plot + \"\\r\\n\" +\n \"Actors: \" + movieData.Actors + \"\\r\\n\" +\n \"Rotten Tomatoes URL: \" + movieData.tomatoURL + \"\\r\\n\";\n console.log(movieInfo);\n log(movieInfo);\n \t}\t\n});\n}", "function parseRemind(str, callback) {\n /**\n * Convert variations of time unit such as 'minutes', 'min'\n * to contracted version: m for 'minute', h for 'hour'.\n * Return empty string if cannot recognize the unit.\n */\n function parseTimeUnit(tu) {\n if (tu === \"hours\" || tu === \"hour\" || tu === \"h\") {\n return \"h\";\n }\n else if (tu === \"minute\" || tu === \"minutes\" ||\n tu === \"min\" || tu === \"mins\" || tu === \"m\") {\n return \"m\";\n }\n else if (tu === \"seconds\" || tu === \"second\" ||\n tu === \"sec\" || tu === \"secs\" || tu === \"s\") {\n return \"s\";\n }\n else {\n return \"\";\n }\n }\n\n /**\n * Get time in seconds from a time value and unit.\n * e.g. if value=2 and unit=m then it evals to 120.\n */\n function timeInSeconds(value, unit) {\n if (unit === \"h\") {\n return value * 60 * 60;\n }\n else if (unit === \"m\") {\n return value * 60;\n }\n else if (unit === \"s\") {\n return value;\n }\n }\n\n // parse the cmd to get the timeout and the message\n // the cmd should look like: alert in 5 min\n if (!(str.startsWith(\"alert\") || str.startsWith(\"remind\"))) {\n return false;\n }\n\n // find the 'to feed the dog' phrase\n let toPhrase = (/to(((?!in).)+)/).exec(str);\n let message = toPhrase ? toPhrase[1].trim() : \"Alert!\";\n\n // now find the 'in 5 min' phrase\n let inPhrase = (/in\\s+(\\w+)\\s+(\\w+)/).exec(str);\n if (inPhrase === null) {\n return false;\n }\n\n // first group would be the time value\n let timeValue = inPhrase[1];\n timeValue = parseInt(timeValue);\n if (!timeValue) {\n return false;\n }\n\n // second group is the time unit\n let timeUnit = inPhrase[2];\n timeUnit = parseTimeUnit(timeUnit);\n if (!timeUnit) {\n return false;\n }\n\n // time made from the time value-unit pairs\n let time = timeInSeconds(timeValue, timeUnit);\n if (!time) {\n return false;\n }\n\n callback(time, message);\n return true;\n}", "function speak(whatosay){\n\t//speak the string\n\texec(say + '\\\"' + whatosay + '\\\"');\n\t//log it to the console\n\tconsole.log(say + whatosay)\n}", "match(input) {\n if(this.startsWith(input.current())) {\n var c = input.current()\n input.next()\n return this.token(input,input.pos-1,c)\n }\n else return this.error(input,input.pos)\n }", "function StartTextDetectionCommand(input) {\n var _this = \n // Start section: command_constructor\n _super.call(this) || this;\n _this.input = input;\n return _this;\n // End section: command_constructor\n }", "function liriCommand(c, t){\n // if(c === \"concert-this\" ){\n // concertThis(commandParam)\n // }\n // if neither are stated propts the user to select functionality\n if(!c && !t){\n selectFunction();\n // if no topic specified propts the user to select topic\n } else if (!t){\n selectCommand(c) \n // if both the command and topic are specified will run search with no prompts\n } else {\n switch(c){\n case \"spotify-this-song\":\n spotifyThis(t);\n break;\n case \"movie-this\":\n movieThis(t);\n break;\n case \"concert-this\":\n concertThis(t);\n break;\n case \"do-what-it-says\":\n doWhatItSays();\n break;\n }\n }\n}", "function buttonSearch(){\n\tsearchTerm = this.attributes[2].value; \n\tsearchTerm = searchTerm.replace(/\\s+/g, '+').toLowerCase();\n\t\t\n \tdisplayGifs ();\n}", "function Skynet(query) {\n\n// on passe par les mots clés\n\n query1=query.replace(new RegExp(\"\\\\b\" + \"de\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"des\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"la\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"les\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"le\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"l'\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"au\" + \"\\\\b\",\"gi\"),\"\");\n//var query1=query1.replace(new RegExp(\"\\\\b\" + \"à\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"du\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"aux\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"un\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"une\" + \"\\\\b\",\"gi\"),\"\");\n query1=query1.replace(new RegExp(\"\\\\b\" + \"d'\" + \"\\\\b\",\"gi\"),\"\");\nconsole.log('la phrase traitée : '+query1);\n\nmatch=query.search()\n\n\nif (query1.search(\"vidéos\") >-1){\n query22 = query1.search(\"vidéos\");\n query23 = query1.length;\n for (i = (query22+6); i < query23 ;i++){reponse=reponse+(query1[i]);}\n if (debug==\"on\"){speaking=\"mots clés trouvé video\"}else{speaking=\"\"}\n ScribeSpeak(speaking,function(){reponse=reponse.trim();reponse=reponse.replace(new RegExp(\" \",\"gi\"),\"+\");\n \n reponse=reponse.replace(new RegExp(' ', 'ig'),\"+\")\n var proc = 'start chrome --new-window https://www.youtube.com/results?search_query='+ reponse;\n //console.log(proc)\n exec(proc)\n // process1 = '%CD%/plugins/cortana/bin/searchyoutube.vbs ' + reponse ; exec(process1)\n })\n callback({'tts': \"\"})\n return false\n}\n\nif (query1.search(\"vidéo\") >-1){\n query22 = query1.search(\"vidéo\");\n query23 = query1.length;\n for (i = (query22+5); i < query23 ;i++){reponse=reponse+(query1[i]);}\n if (debug==\"on\"){speaking=\"mots clés trouvé vidéo\"}else{speaking=\"\"}\n ScribeSpeak(speaking,function(){reponse=reponse.trim();reponse=reponse.replace(new RegExp(\" \",\"gi\"),\"+\")\n var proc = 'start chrome --new-window https://www.youtube.com/results?search_query='+ reponse;\n //console.log(proc)\n exec(proc)\n // process1 = '%CD%/plugins/cortana/bin/searchyoutube.vbs ' + reponse ; exec(process1)\n })\n callback({'tts': \"\"})\n return false\n}\n//https://www.google.fr/search?q=Louane\n//https://www.google.fr/search?q=louane&tbm=isch\nif (query1.search(\"images\") >-1){ \n query22 = query1.search(\"images\");\n query23 = query1.length;\n for (i = (query22+6); i < query23 ;i++){reponse=reponse+(query1[i]);}\n if (debug==\"on\"){speaking=\"mots clés trouvé image\"}else{speaking=\"\"}\n ScribeSpeak(speaking,function(){reponse=reponse.trim()\n process1 = '%CD%/plugins/cortana/bin/searchimages.vbs ' + reponse ; exec(process1);//console.log(process1)\n })\n callback({'tts': \"\"})\nreturn false\n}\n\nif (query1.search(\"image\") >-1){ \n query22 = query1.search(\"image\");\n query23 = query1.length;\n for (i = (query22+5); i < query23 ;i++){reponse=reponse+(query1[i]);}\n if (debug==\"on\"){speaking=\"mots clés trouvé image\"}else{speaking=\"\"}\n ScribeSpeak(speaking,function(){reponse=reponse.trim()\n process1 = '%CD%/plugins/cortana/bin/searchimages.vbs ' + reponse ; exec(process1)\n })\n callback({'tts': \"\"})\nreturn false\n}\n\n\nif (query1.search(\"courses\") >-1){\n query22 = query1.search(\"courses\");\n query23 = query1.length;\n for (i = (query22+8); i < query23 ;i++){reponse=reponse+(query1[i]);}\n if (reponse==\"\"){reponse=\"false\"}\n if (debug==\"on\"){speaking=\"mots clés trouvé courses\"}else{speaking=\"\"}\n //ScribeSpeak(speaking,function(){\n SARAH.run('coursesmathilde', { 'item' : reponse});//callback({'tts' : \"\"});\n //})\n callback({'tts': \"\"})\nreturn false\n }\n\n\nif (query1.search(\"réveil\") >-1){\n query22 = query1.search(\"réveil\");\n query23 = query1.length;\n for (i = (query22+4); i < query23 ;i++){reponse=reponse+(query1[i]);}\n\n reponse=reponse.replace(new RegExp('[^0-9]', 'ig'),\"\")\n if(reponse==\"\"){match3(query);return false\n var date = new Date();\n var heure =date.getHours();\n var minute =date.getMinutes();\n reponse=heure+''+minute\n query=heure+' '+minute\n console.log(reponse)\n console.log('immédiat');\n }//fin if reponse=''\n // protection 24 heure et 59 minutes !!!\n\nif(reponse.length==1){tempsreveil=reponse*3600000}// que heure//8h\nif(reponse.length==2){tempsreveil=reponse*3600000} //que heure//18h\n \n if(reponse.length==3){temp=reponse[0]*3600000;\n tempsreveil=temp;//console.log(temp)\n temp=reponse-reponse[0]*100;//console.log(temp)\n temp=temp*60000;//console.log(temp)\n tempsreveil=tempsreveil+temp\n } // 1 heure + 2 minutes//1h18\n \n if(reponse.length==4){temp=reponse[0]*36000000+reponse[1]*3600000\n tempsreveil=temp;//console.log(temp)\n temp=reponse-reponse[0]*1000;//console.log(temp)\n temp1=reponse[1]*100;//console.log('rr'+temp1)\n temp=temp-temp1;//console.log('r'+temp)\n temp=temp*60000;//console.log(temp)\n tempsreveil=tempsreveil+temp\n }// 2 heure + 2 minutes \n\nreponse1=query\nreponse1=(reponse1.replace(new RegExp('[^0-9]', 'ig'),\" \")).trim()\n\n console.log('la reponse envoyer à révéil1 '+reponse1+' '+tempsreveil)\n ScribeSpeak(\"réveil programmé à \"+reponse1.replace(\" \",\" heure \"),function(){\n SARAH.run('reveil1', { 'tempsreveil' : tempsreveil , 'tempsreveilname' : reponse1});//callback({'tts' : \"\"});\n })\n callback({'tts': \"\"})\n return false\n}\n// si pas de mots clé direction match3 !!!!!\n\nif(reponse==\"\"){\n if (debug==\"on\"){speaking=\"je n'ai pas trouvé de mots clés\"}else{speaking=\"\"}\n ScribeSpeak(speaking,function(){\n match3(query)\n reponse=\"eee\"\n })//fin speak\n}//fin if\ncallback({'tts': \"\"})\nreturn false\n}//fin funtion Skynet", "function help() {\n console.log(\n \"\\n\" +\n \"STRUCTURE\" +\n \"\\033[38;5;6m\" + \"\\n node liri.js (command) + (search(artist, concert, movie))\\n\" + \"\\033[0m\" +\n \"\\nCOMMAND OPTIONS\" +\n \"\\033[38;5;10m\" +\n \"\\n spotify-this-song\" + \"\\033[0m\" + \" search for artist details\" +\n \"\\033[38;5;10m\" +\n \"\\n concert-this\" + \"\\033[0m\" + \" search for concert details\" +\n \"\\033[38;5;10m\" +\n \"\\n movie-this\" + \"\\033[0m\" + \" search for movie details\" +\n \"\\033[38;5;10m\" +\n \"\\n do-what-it-says\" + \"\\033[0m\" + \" run a search based on what is written in 'random.txt'\"\n )\n}", "function dom__INPUT__METHOD__IME_ques_(textEventInputMethod) /* (textEventInputMethod : textEventInputMethod) -> bool */ {\n return (textEventInputMethod === 5);\n}" ]
[ "0.5481172", "0.5256158", "0.52361685", "0.52190185", "0.51799625", "0.5178809", "0.5128479", "0.50978416", "0.50686944", "0.5059084", "0.5019142", "0.5016738", "0.49653304", "0.49592414", "0.49537578", "0.49046326", "0.4900567", "0.48959118", "0.48891217", "0.48891145", "0.48882467", "0.48575577", "0.48451135", "0.48380697", "0.4820091", "0.48195335", "0.47995204", "0.47947365", "0.47907513", "0.47834983", "0.47636768", "0.47574836", "0.47304103", "0.47188962", "0.47020403", "0.4698674", "0.4696528", "0.46941468", "0.46870518", "0.46739736", "0.4671821", "0.46715188", "0.4667146", "0.46666715", "0.46662438", "0.46621227", "0.4645107", "0.46362856", "0.46254143", "0.4622157", "0.46196023", "0.46119544", "0.46101665", "0.4607001", "0.46063155", "0.45973042", "0.45905745", "0.45808876", "0.45784092", "0.4576536", "0.45730245", "0.45701945", "0.45595455", "0.45548123", "0.4547228", "0.4535601", "0.45326158", "0.45250311", "0.4523386", "0.4512769", "0.45091182", "0.45042115", "0.44927424", "0.44863117", "0.44799265", "0.44770312", "0.44760817", "0.447355", "0.44634697", "0.44620517", "0.44586244", "0.44577238", "0.44487935", "0.44440532", "0.44437534", "0.44301373", "0.4428882", "0.44216073", "0.44212267", "0.44198248", "0.44170755", "0.44112682", "0.44047037", "0.4402548", "0.44005117", "0.43955877", "0.4392265", "0.43919492", "0.43907613", "0.43893036" ]
0.5181441
4
TODO: This lifecycle hook will be deprecated with React v17 Refactor with static getDerivedStateFromProps(props, state)
componentWillReceiveProps(props) { this.setState({ active: props.activeForecast === this.props.forecast.time, }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static getDerivedStateFromProps(props, state) {\n console.log(\"getDrivedStateFromProps: Updating state\");\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n console.log(\"Child getDerivedStateFromProps\");\n return null;\n }", "static getDerivedStateFromProps(nextProps,prevState){\n console.log('[UPDATE App.js] Inside getDerivedStateFromProps',\n nextProps,\n prevState);\n\n return prevState\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n console.log(\"[App.js] Inside getDerivedStateFromProps\", nextProps, prevState);\n return prevState;\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n console.log('--------------------------- getDerivedStateFromProps -----------------------------');\n }", "static getDerivedStateFromProps(props,state){\n //static is used because it's a static method\n //returns the new , updated state based upon the props\n //but the react team discourages the use of this method as it raises weird bugs \n }", "static getDerivedStateFromProps(nextProps,prevState){\n return null;\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n // Where you can update state\n console.log('[App.js] getDerivedStateFromProps', props);\n return state;\n }", "static getDerivedStateFromProps() {\n console.log(\"inside getDerivedState\");\n return{};\n }", "static getDerivedStateFromProps(props, state) {\n console.log(\"LifeCycleChild getDerivedStateFromProps.\");\n return null;\n }", "static getDerivedStateFromProps(){\n\n }", "static getDerivedStateFromProps(nextProps,prevState){\n console.log('[UDPATE App.js] Inside getDerivedStateFromProps()', nextProps, prevState);\n }", "static getDerivedStateFromProps(nextProps,prevState) {\n return prevState;\n }", "static getDerivedStateFromProps(nextProps, nextState) {\n console.log('[In App.js] #getDerivedStateFromProps ', nextProps, ' ', nextState);\n }", "static getDerivedStateFromProps(props)\n{\n console.log(\"[App.js] props from class\");\n return null;\n}", "static getDerivedStateFromProps(props, state) {\n console.log('getDerivedStateFromProps', props, state)\n //Rare use cases - where you have to set state based on props\n //and return state f=ore sure\n }", "static getDerivedStateFromProps(props, state){\n console.log('Life Cycle A - getDerivedStateFromProps');\n return null;\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n return {\n ...prevState,\n flatDescription: nextProps.currentFlat(prevState.id),\n isInBookmarks: nextProps.isInBookmarks(prevState.id),\n };\n }", "static getDerivedStateFromProps(props , state)\n {\n console.log(\"LifeCycleA getDerivedStateFromProps() called\");\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n if (super.deriveStoresFromProps) {\n // inject all local stores and let the user mutate them directly\n const stores = mapStateToStores(state);\n super.deriveStoresFromProps(props, ...stores);\n }\n // respect user defined getDerivedStateFromProps\n if (super.getDerivedStateFromProps) {\n return super.getDerivedStateFromProps(props, state);\n }\n return null;\n }", "static getDerivedStateFromProps(props, state){\n console.log(\"AppMount - getDerivedStateFromProps Method Called\");\n console.log(\"State: \", state);\n console.log(\"Props: \", props);\n // changing state and returning the changed state\n return {name: \"Ram\", age: state.age+1};\n }", "static getDerivedStateFromProps(props, state) {\r\n if (props.reset !== state.reset) {\r\n return {isOpen: false, \r\n category: \"Category\",\r\n reset: props.reset};\r\n }\r\n return null;\r\n }", "static getDerivedStateFromProps(props) {\n return {\n data: props.data\n };\n }", "static getDerivedStateFromProps(props, state) {\n // the props and state can be used to run logic and\n // the return value from the function will update the state\n\n console.log('Executing StateClassDemo GetDerivedStateFromProps');\n\n // The original state object can be returned\n return state;\n\n // If null is returned the original state object is used\n // return null;\n\n // The contents of this object is merge with the current state object\n // return {\n // test: 2,\n // };\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n console.log(\"getDerivedStateFromProps\");\n if (nextProps.color !== prevState.color) {\n return { color: nextProps.color };\n }\n return null;\n }", "static getDerivedStateFromProps(props, state){\n if(props.infiniteLifespan !== state.infiniteLifespan){ \n return{\n infiniteLifespan: props.infiniteLifespan\n };\n }\n return null;\n}", "static getDerivedStateFromProps(props, state) {\n if (props.errors !== state.errors) {\n return {\n errors: props.errors,\n };\n }\n\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n console.log('sync state with props');\n console.log('current state ', state.title);\n console.log('new props', props.newTitle);\n if (state.title !== props.newTitle) {\n return { title: props.newTitle }; //return new state object\n } else {\n return null;\n }\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n return nextProps.errors ? { errors: nextProps.errors } : null\n }", "static getDerivedStateFromProps(props){\n//console.log(this, 'this')\nconsole.log('getDerivedStateFromProps' +props);\nreturn true;\n}", "static getDerivedStateFromProps(props, state) {\n // Set create mode to event if user selects create event in the navbar while already creating a dream\n const { type: createMode } = props.match.params;\n if (state && createMode === \"event\" && createMode !== state.createMode) {\n state.createMode = createMode;\n }\n return state;\n }", "static getDerivedStateFromProps(props, state) {\n if (props.workflowId !== state.workflowId) {\n return {\n workflowId: props.workflowId,\n recipientsList: props.recipientsListInfo ? props.recipientsListInfo : [],\n hidePredefined: props.features.hidePredefined,\n hideWorkflowList: props.features.hideWorkflowList,\n workflowName: props.workflowName\n };\n }\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n if (props.errors !== state.errors) {\n return {\n errors: props.errors\n };\n } else {\n return null;\n }\n }", "static getDerivedStateFromProps(props, state){\n return {\n id : props.id,\n }\n }", "static getDerivedStateFromProps(nextProps) {\n if (nextProps.errors) {\n return { errors: nextProps.errors };\n }\n else return null;\n }", "static getDerivedStateFromProps(props, state) {\n if (props.workflowId !== state.workflowId) {\n return {\n hasPasswordChecked: false,\n showPasswordChecked: false,\n visible: props.passwordVisible,\n passOption: \"\",\n confirmPassOption: \"\",\n workflowId: props.workflowId\n };\n }\n return null;\n }", "static getDerivedStateFromProps(nextProps, prevState){\n if (nextProps !== prevState) {\n return { user:nextProps.user }\n }\n return null\n }", "static getDerivedStateFromProps(props, prevState) { \n console.log('Component WILL RECIEVE PROPS!', props);\n console.log('Component WILL RECIEVE state!', prevState.num);\n // it returns an object to update the state which will update to DOM. \n return {num: props.myNumber1}\n }", "static getDerivedStateFromProps(props) {\n return {\n data: [...props.data],\n };\n }", "static getDerivedStateFromProps(props, state) {\n // state.dataStore.hydrate(props.initialStoreState);\n state.dataStore.notes = props.initialStoreState;\n\n return state;\n }", "static getDerivedStateFromProps(nextProps) {\n return {\n userList: nextProps.users,\n isLoading: nextProps.isLoading,\n error: nextProps.error\n };\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.hasbeenclicked === false) {\n return {\n background: nextProps.background\n };\n }\n return null\n }", "static getDerivedStateFromProps(props, state) {\n if (props.optsThreeGlobal !== state.optsThreeGlobal && null !== state.optsThreeGlobal) {\n return {optsThreeGlobal: props.optsThreeGlobal};\n }\n return null;\n }", "static getDerivedStateFromProps(nextProps) {\n //errors are from redux state - mapStateToProps\n if (nextProps.errors) {\n return {\n errors: nextProps.errors\n };\n }\n }", "static getDerivedStateFromProps(props, state) {\n if (props.selectedUser !== state.userId) {\n console.log('This is props.selectedUser: ' + props.selectedUser);\n console.log('This is state.userId: ' + state.userId);\n return {\n userId: props.selectedUser\n };\n }\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n if (props.setSelectedIndex >= 0) {\n return {\n ...state,\n selectedIndex: props.setSelectedIndex,\n };\n }\n\n return null;\n }", "static getDerivedStateFromProps (nextProps, prevState) {\n if (nextProps.latestNews === prevState.latestNews) return null;\n return {\n ...prevState,\n latestNews: nextProps.latestNews,\n newNews: [...prevState.newNews, nextProps.latestNews],\n update: false\n }\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.selectedEventTypes.includes(nextProps.event)) {\n return {\n active: false\n };\n }\n if (!nextProps.selectedEventTypes.includes(nextProps.event)) {\n return {\n active: true\n };\n }\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n if(props.seed && state.seed !== props.seed) {\n return {\n seed: props.seed,\n counter: props.seed\n }\n }\n return null\n }", "static getDerivedStateFromProp(props, state) {\n // console.log('props', props)\n // console.log('state', state)\n return {\n ...state,\n disnosaur: props.dino,\n }\n }", "static getDerivedStateFromProps(props, state) {\n console.log('getDerivedStateFromProps', props, state)\n\n if (props.query !== state.query)\n return {\n query: props.query\n }\n\n return null\n }", "constructor(props) {\n super(props);\n\n const state = this.state;\n }", "static getDerivedStateFromProps(props, state) {\n if (state.prevUsfmStringProp == props.usfmString)\n return null;\n return {\n value: usfmToSlate(props.usfmString),\n prevUsfmStringProp: props.usfmString,\n };\n }", "function componentWillMount(){// Call this.constructor.gDSFP to support sub-classes.\nvar state=this.constructor.getDerivedStateFromProps(this.props,this.state);if(state!==null&&state!==undefined){this.setState(state);}}", "static getDerivedStateFromProps(props, state) {\n return {\n receivedData: props.received, \n treeVec : props.trees, // already split by \"/n\"\n RelScaling : props.relscal,\n Cladogram : props.clado\n };\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n if (\n nextProps.src !== prevState.prevSrc ||\n nextProps.name !== prevState.prevName ||\n nextProps.theme !== prevState.prevTheme\n ) {\n // if we pass in new props, we re-validate\n const newPartialState = {\n src: nextProps.src,\n name: nextProps.name,\n theme: nextProps.theme,\n validationMessage: nextProps.validationMessage,\n prevSrc: nextProps.src,\n prevName: nextProps.name,\n prevTheme: nextProps.theme\n };\n return ReactJsonView.validateState(newPartialState);\n }\n return null;\n }", "static _getDerivedStateFromProps(props, state) {\n return isEqual(props.selections, state.selections) ? null : {selections: props.selections.slice()};\n }", "static getDerivedStateFromProps(props, state) {\n const { history } = props;\n const { fromPopup } = state;\n if (!fromPopup) {\n history.push('/');\n }\n return state;\n }", "static getDerivedStateFromProps(nextProps, prevState)\n\t{\n\t\tif(prevState.open != nextProps.open){\n\t\t\treturn {\n\t\t\t\teditingStaticResMode:\t(nextProps.createMode ? false : true),\n\n\t\t\t\tnewServiceName:\t\t\tnextProps.newServiceName,\n\t\t\t\tnewServiceResType:\t\tnextProps.newServiceResType,\n\t\t\t\tnewVerify:\t\t\t\tnextProps.newVerify,\n\t\t\t\tnewStaticRes:\t\t\tnextProps.newStaticRes,\n\t\t\t\tstaticResPageNum:\t\t0,\n\n\t\t\t\teditingStaticResNew:\ttrue,\n\t\t\t\teditingStaticResPos:\t-1,\n\t\t\t\teditingStaticRes:\t\t(nextProps.createMode ? {} : (0 < nextProps.newStaticRes.length ? r3DeepClone(nextProps.newStaticRes[0]) : {})),\n\t\t\t\tstaticResMessage:\t\tnull,\n\t\t\t\tstaticResKeysPageNum:\t0,\n\t\t\t\tstaticResKeyAnchorEl:\tnull,\n\t\t\t\tstaticResKeyCreateType:\ttrue,\n\t\t\t\tstaticResKeyBaseKey:\tnull,\n\t\t\t\teditingStaticResKey:\tnull,\n\t\t\t\teditingStaticResValue:\tnull,\n\t\t\t\teditingComfirmMessage:\tnull,\n\n\t\t\t\topen:\t\t\t\t\tnextProps.open\n\t\t\t};\n\t\t}\n\t\treturn null;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Return null to indicate no change to state.\n\t}", "static getDerivedStateFromProps(props) {\n if (props.movies.length !== 0 && props.series.length !== 0) {\n return {\n loadingMovies: false,\n loadingShows: false,\n };\n }\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n const facetSearchTerm = props.signalOptions.facetSearchTerm || '';\n\n return {\n prevFacetSearchTerm: facetSearchTerm,\n searchTerm: state.prevFacetSearchTerm !== facetSearchTerm ? facetSearchTerm : state.searchTerm\n };\n }", "constructor(props) {\n super(props);\n this.state = { ...props };\n }", "static getDerivedStateFromProps(newProps, prevState) {\n if(newProps && newProps.websockets && newProps.websockets.toDisconnect===true) {\n return {...prevState, toDisconnect:true}\n }\n return null;\n }", "static getDerivedStateFromProps(nextProps, prevState){\n if (nextProps.store !== prevState.lastUser) {\n return {\n name: nextProps.store.name,\n address: nextProps.store.address,\n lastUser: nextProps.store\n } \n }else{\n return null\n } \n }", "static getDerivedStateFromProps( nextProps, state ) {\n\t\t// bail if autosave\n\t\tif ( ( nextProps.isPublishing || nextProps.isSaving ) && ! nextProps.isAutoSaving ) {\n\t\t\twp.apiRequest( { path: `/post-views-counter/update-post-views/?id=${nextProps.postId}`, method: 'POST', data: { post_views: state.postViews } } ).then(\n\t\t\t\t( data ) => {\n\t\t\t\t\treturn data;\n\t\t\t\t},\n\t\t\t\t( error ) => {\n\t\t\t\t\treturn error;\n\t\t\t\t}\n\t\t\t)\n\t\t}\n\t}", "static getDerivedStateFromProps(nextProps) {\n return {\n list: nextProps.list,\n listString: JSON.stringify(nextProps.list)\n };\n }", "static getDerivedStateFromProps( nextProps, prevState) {\n if (RecipeListTable.recipeListMatch(prevState.recipes, nextProps.recipes)) {\n return prevState;\n }\n const newList = nextProps.recipes;\n const sortedList = orderBy(newList, prevState.currentSortByField, prevState.currentSortByOrder);\n const newState = {\n ...prevState,\n recipes: sortedList\n };\n return newState;\n }", "function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(\n nextProps,\n prevState\n );\n return state !== null && state !== undefined ? state : null;\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n const hasStnList = nextProps.stnList.length > 0 ? true : false;\n if (!prevState.originStn && hasStnList) {\n prevState.originStn = nextProps.stnList[0];\n }\n if (!prevState.destStn && hasStnList) {\n prevState.destStn = nextProps.stnList[0];\n }\n return prevState;\n }", "static getDerivedStateFromProps(nextProps, state){\n if(nextProps.loggedIn){ \n // on Login Success we are calling the server to get the user details/info \n nextProps.dispatch(getUserDetails({email:nextProps.loggedInUser.email})); \n } \n // const email = nextProps.userObject.email;\n // if(nextProps.loggedIn && email !== undefined && email !== \"\" ){\n // //nextProps.navigation.navigate('Home'); \n // } \n if(!nextProps.showLoading && nextProps.error !==''){\n return { ...state, errorText:nextProps.error, isValid:false, showLoading:false };\n }\n return null;\n }", "function updater(prevState){var state=this.constructor.getDerivedStateFromProps(nextProps,prevState);return state!==null&&state!==undefined?state:null;}// Binding \"this\" is important for shallow renderer support.", "static getDerivedStateFromProps(props, state) {\n if (props.comp && props.comp.length && !state.dataFilled) {\n return {\n pickedChampions: props.comp,\n dataFilled: true\n };\n }\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n const {repository} = nextProps;\n const typename = repository && repository.pullRequest &&\n repository.pullRequest.__typename ? repository.pullRequest.__typename : null;\n if (typename && prevState.typename !== typename) {\n return ({typename});\n } else {\n return null;\n }\n }", "static getDerivedStateFomProps(props, state) {\n if (state.selectedUser === null || state.selectedUser.id !== props.newSelectedUser.id) {\n return {\n selectedUser: props.newSelectedUser,\n };\n } \n return null;\n }", "static getDerivedStateFromProps(nextProps) {\n const fd = nextProps.formData;\n\n const timeGrain = fd.time_grain_sqla || fd.granularity || 'PT1M';\n const timestamps = nextProps.payload.data.features.map(f => f.__timestamp);\n const { start, end, getStep, values, disabled } = getPlaySliderParams(timestamps, timeGrain);\n const categories = getCategories(fd, nextProps.payload.data.features);\n\n return { start, end, getStep, values, disabled, categories };\n }", "static getDerivedStateFromProps(nextProps, prevState)\n\t{\n\t\tif(prevState.open != nextProps.open){\n\t\t\tif(nextProps.open){\n\t\t\t\t// Inivisible to Visible\n\t\t\t\treturn {\n\t\t\t\t\tnewPath:\tnextProps.newPath,\n\t\t\t\t\topen:\t\tnextProps.open\n\t\t\t\t};\n\t\t\t}else{\n\t\t\t\t// Visible to Inivisible\n\t\t\t\treturn {\n\t\t\t\t\tnewPath:\tprevState.newPath,\n\t\t\t\t\topen:\t\tnextProps.open\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\treturn null;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Return null to indicate no change to state.\n\t}", "static getDerivedStateFromProps(props, state){\n return {\n stockName: props.match.params.stockName,\n }\n }", "static getDerivedStateFromProps(nextProps, prevState){\n return {prompt:'', answer:''}\n }", "static getDerivedStateFromProps(props, state){\n if (state.originalResults !== props.results){\n console.warn('props.results have changed, resetting some state -- ');\n return {\n 'results' : props.results.slice(0),\n 'openDetailPanes' : {},\n 'originalResults' : props.results\n };\n }\n return null;\n }", "static getDerivedStateFromProps(props, state) {\n if (props.seed && state.seed !== props.seed && props.seed % 2 !== 0) {\n return {\n seed: props.seed,\n count: props.seed\n }\n }\n return null\n }", "static getDerivedStateFromProps(nextProps) {\n if (nextProps.user) {\n return {\n errors: nextProps.user.errors\n };\n }\n }", "static getDerivedStateFromProps ({ slug, title, isControlled }, state) {\n if (isControlled && slug && slug !== state.slug) {\n return {\n slug,\n title\n }\n }\n\n return null\n }", "static getDerivedStateFromProps(props, state) {\n return state.filteredEntities.length ? {entities: props.entities } : \n {entities: props.entities, filteredEntities: props.entities };\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n const nextRoot = nextProps.activeRoot;\n const nextQuality = nextProps.activeQuality;\n let nextRootIndex = 0;\n let nextQualityIndex = 0;\n for (let i = 0; i < noteNames.length; i++) {\n if (noteNames[i] == nextRoot) {\n nextRootIndex = i;\n break;\n }\n }\n for (let i = 0; i < qualityNames.length; i++) {\n if (qualityNames[i] == nextQuality) {\n nextQualityIndex = i;\n break;\n }\n }\n if (nextRootIndex == prevState.rootSelected && nextQualityIndex == prevState.qualitySelected) {\n return null;\n }\n return {\n rootSelected: nextRootIndex,\n qualitySelected: nextQualityIndex\n }\n }", "static getDerivedStateFromProps(props, state) {\n if (props.username === state.username) {\n return {\n username: props.user.username,\n password: '',\n first_name: props.user.first_name,\n last_name: props.user.last_name,\n email: props.user.email\n };\n }\n return null;\n }", "static getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.selectedNode !== prevState.selectedNode && nextProps.selectedNode !== null) {\n const attributes = cleanNodeAttributes(_.cloneDeep(nextProps.selectedNode.__data__));\n return {\n attributes,\n selectedNode: nextProps.selectedNode\n };\n } else return null;\n }", "constructor(props) { // be promoted into a class\n super(props);\n this.state = {}; // defines initial state\n }", "constructor(props){\n super(props);\n this.state = {}\n }", "constructor(props) {\n super(props);\n this.state = {}\n }", "constructor(props) {\n super(props)\n this.state = {}\n }", "constructor(props) {\n super(props)\n this.state = {}\n }", "static getDerivedStateFromProps(props, currState) {\n if (currState.pageQty !== props.pageQty) {\n return {\n pageQty: props.pageQty,\n range: 0,\n }\n }\n return null\n }", "constructor(props) {\n super(props);\n this.state = ({\n \n })\n }", "function componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "constructor(props) {\n super(props);\n this.state = {};\n }", "function componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n }", "function componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(\n this.props,\n this.state\n );\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n }" ]
[ "0.81477886", "0.8139535", "0.81208605", "0.80505735", "0.8046727", "0.80091935", "0.80007684", "0.796094", "0.7937251", "0.7912501", "0.79065377", "0.7896166", "0.7865269", "0.78490824", "0.7802286", "0.76770043", "0.7635235", "0.758559", "0.7556767", "0.7464512", "0.7346394", "0.73181903", "0.7298691", "0.72397166", "0.72237056", "0.7207665", "0.7198562", "0.71603155", "0.7153654", "0.7143041", "0.71375495", "0.7137338", "0.71173924", "0.7082875", "0.7058528", "0.705393", "0.7032464", "0.7010232", "0.6989063", "0.6951995", "0.69460785", "0.6942171", "0.69401556", "0.6909456", "0.69049066", "0.68725616", "0.6859237", "0.67913616", "0.6776205", "0.67710847", "0.67068005", "0.66939235", "0.6681867", "0.66804457", "0.6676564", "0.665893", "0.65886664", "0.65646076", "0.6564478", "0.65589005", "0.65225565", "0.6521623", "0.65206563", "0.64843595", "0.64595324", "0.643647", "0.64266354", "0.642113", "0.64201856", "0.6415552", "0.64128655", "0.64109874", "0.64105195", "0.6408458", "0.63850826", "0.63796157", "0.6365722", "0.636491", "0.63516223", "0.63485074", "0.6347225", "0.63452613", "0.63447374", "0.633773", "0.6329073", "0.63258225", "0.6320305", "0.6313148", "0.6309375", "0.6303358", "0.6292035", "0.6292035", "0.6284726", "0.62659025", "0.6262891", "0.6259767", "0.6259767", "0.6259767", "0.6259767", "0.62582743", "0.6251367" ]
0.0
-1
Hide the loading image
function hideLoader() { document.getElementById('loader').className = 'hide'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hideLoadingView() {\n $loader.css(\"display\", \"none\");\n }", "function hideLoading() {\n _updateState(hotelStates.HIDE_LOADING);\n }", "function hideLoader() {\n\n loader.style.display = \"none\";\n\n }", "function LoadingOn() {\n document.getElementById(\"divLoading\").style.display = \"block\";\n var imgProcessing = document.getElementById(\"imgProcessing\");\n if (imgProcessing != null) { imgProcessing.style.display = \"\"; }\n}", "function loading() {\n\tloader.hidden = false;\n\tmain.hidden = true;\n}", "function loading(){\n $('#load').css('display','none');\n}", "function hideLoadingView() {\n}", "function hideLoading() {\n\t\tif (ajax_load_element) {\n\t\t\tajax_load_element.style.display = 'none';\n\t\t}\n\t}", "function loading() {\n loader.hidden = false;\n quoteContainer.hidden = true;\n}", "function loading() {\n loader.hidden = false;\n quoteContainer.hidden = true;\n}", "function hideLoadingSpinner() {\n $('.demo-loading').css({'display': 'none'});\n }", "function hideloader() { \r\ndocument.getElementById('loading').style.display = 'none'; \r\n}", "function hideloader() { \r\n document.getElementById('loading').style.display = 'none'; \r\n}", "function hideLoadingState() {\n\tif (!globals.browser) return;\n\n\tvar browserDiv = document.getElementById('browserDiv');\n\tbrowserDiv.style.display = \"block\";\n\t\n\tvar loadingDiv = document.getElementById('loadingDiv');\n\tvar loadingDivSwf = document.getElementById('loadingDivSwf');\n\t// show browser//\n\tglobals.browser.style.display = \"\";\n\t// hide loading div//\n\tloadingDiv.style.display = \"none\";\n\t// hide loading swf as its always visible (even if its parent is not)//\n\tloadingDivSwf.style.display = \"none\";\n\treturn;\n}", "function disableLoadImage() {\r\n\tjQuery.mobile.pageLoading( true );\r\n\tnotshow = true;\r\n}", "function hideQuiosqueLoad(){\n $(\"#myloadingDiv\" ).hide();\n }", "function hideloader() {\r\n\tdocument.getElementById('loading').style.display = 'none';\r\n}", "function hideloader() {\r\n document.getElementById('loading').style.display = 'none';\r\n}", "function hideloader() {\r\n document.getElementById('loading').style.display = 'none';\r\n}", "function hideLoading() {\r\n\t\tvar element = document.getElementsByName(tbodyId + \"-loading\");\r\n\t\tif(element != null) {\r\n\t\t\tfor(var i=0;i<element.length;i++)\r\n\t\t\t\telement[i].style.visibility = \"hidden\";\r\n\t\t\t\t//Effect.BlindUp(element[i]);\r\n\t\t\t\t//Effect.Fade(element[i]);\r\n\t\t}\r\n\t}", "hideLoading(){\n $.hideLoading();\n }", "function hideloader() {\n document.getElementById('loading').style.display = 'none';\n}", "function hideloader() {\n document.getElementById(\"loading\").style.display = \"none\";\n}", "function hideLoader() {\n $(\"#loader\").hide();\n}", "function hideloader() {\n document.getElementById(\"loading\").style.display = \"none\";\n}", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n\n if (isToast()) {\n if (innerParams.icon) {\n show(getIcon());\n }\n } else {\n showRelatedButton(domCache);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n\n if (isToast()) {\n if (innerParams.icon) {\n show(getIcon());\n }\n } else {\n showRelatedButton(domCache);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function toggle_stage_loading() {\n\t\tif ($('body img.loading').length) {\n\t\t\t$('body img.loading').remove();\n\t\t} else {\n\t\t\t$('body').prepend('<img class=\"loading\" src=\"assets/img/ajax-loader.gif\" style=\"left: 60%; top: 37%; position: absolute; z-index: 100;\" />');\n\t\t}\n\t}", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n\n if (isToast()) {\n if (innerParams.icon) {\n show(getIcon());\n }\n } else {\n showRelatedButton(domCache);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function loading_hide(){\n $('#loading').fadeOut('fast');\n }", "function hideLoading() {\n // do nothing if popup is closed\n const innerParams = _privatePropsJsDefault.default.innerParams.get(this);\n if (!innerParams) return;\n const domCache = _privatePropsJsDefault.default.domCache.get(this);\n _indexJs.hide(domCache.loader);\n if (_indexJs.isToast()) {\n if (innerParams.icon) _indexJs.show(_indexJs.getIcon());\n } else showRelatedButton(domCache);\n _indexJs.removeClass([\n domCache.popup,\n domCache.actions\n ], _classesJs.swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n}", "function hideProgressBar() {\n $(\"#loadingBar\").hide();\n }", "function hideLoadingIndicator() {\n //ConsoleLog(\"hideLoadingIndicator\");\n // Set a 'style' property to a value, for all matched \n // elements(id == LoadingIndicatorPanel). \n $(\"#LoadingIndicatorPanel\").attr(\"style\", \"display:none;\");\n // Set a 'style' property to a value, for all matched \n // elements(id == BackGroundLoadingIndicator).\n $(\"#BackGroundLoadingIndicator\").attr(\"style\", \"display:none;\");\n // Set a 'style' property to a value, for all matched \n // elements(id == imgLoading).\n $(\"#imgLoading\").attr(\"style\", \"display:none;\");\n}", "function showLoadingSpinner(){\n loader.hidden = false;\n quoteContainer.hidden = true;\n}", "function hideLoadingView() {\n $(\"#btn-start\").text(\"Restart\").toggleClass(\"not-allowed\")\n $(\".loader\").remove();\n $(\"#jeopardy\").show();\n\n}", "function hideLoading() {\n // do nothing if popup is closed\n const innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n const domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n\n if (isToast()) {\n if (innerParams.icon) {\n show(getIcon());\n }\n } else {\n showRelatedButton(domCache);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideWorking() {\n dojo.byId('divLoadingIndicator').style.display = 'none';\n}", "function loading_hide(){\n $('#loading').fadeOut('fast');\n }", "function _load() {\r\n document.getElementById(\"loading-icon\").style.visibility = \"hidden\";\r\n document.getElementById(\"body\").style.visibility = \"visible\";\r\n }", "function hideloader() {\n document.getElementByID('loading').style.display = 'none';\n}", "function hide_indicator() {\n $('.loading-indicator').hide();\n}", "function hideLoadingView() {\n\n $('button').html('Restart')\n $('#loading').hide();\n $('#start').attr('status','loaded'); \n}", "function loading_hide(){\n $('#loading6').fadeOut('fast');\n }", "function hideLoadingView() {\n $('#loadingDiv').remove();\n}", "function hideLoader() {\n\n document.getElementById(\"general-loader-container\").style.visibility = \"hidden\";\n document.getElementById(\"general-loader-container\").style.display = \"none\";\n\n}", "function hideLoadingIcon(viewtype){\n\n if(viewtype == 'tab'){\n $(\".chart-loader-overlay\").hide();\n }\n\n }", "function loadGIF() {\n document.getElementById(\"loading\").style.display = \"none\";\n}", "function loading_hide(){\n $('#loading7').fadeOut('fast');\n }", "function loading_image_on() {\r\n $(\"#scorestable\").hide();\r\n $(\"#imagestub\").html(\"<img src=\\\"/colorful_lines/media/img/img-loading.gif\\\"></img>\");\n}", "function loading_hide(){\n $('#loading5').fadeOut('fast');\n }", "function loading_hide(){\n $('#loading4').fadeOut('fast');\n }", "function loading_hide(){\n $('#loading8').fadeOut('fast');\n }", "function hideLoader() {\n\tloader.className = loader.className.replace('show', '');\n}", "function hidePageLoader(){\n $('.loader').hide();\n}", "function hideLoading(){\n $('#loading').addClass('hidden');\n}", "function hideLoading(){\n $('#loading').addClass('hidden');\n}", "function exibeDivLoading() {\n $('#div-fade-loading').css('visibility', 'visible');\n}", "function ShowProgressBar() {\n $('#divLoaderSOROTP').css('visibility', '');\n}", "function unsetPreviewLoading()/*:void*/ {\n if (this.previewLoadMask$67CD) {\n this.previewLoadMask$67CD.hide();\n this.previewLoadMask$67CD.disable();\n\n this.previewLoadMask$67CD.getEl().removeListener('click',AS3.bind( this,\"unsetPreviewLoading\"));\n }\n }", "function hideLoading(){\n\t$('#loading-mask').removeClass('active');\n}", "function hideLoading() {\n document.querySelector('.loading-container').style.display = 'none'\n document\n .querySelectorAll('.hide-on-load')\n .forEach((el) => el.classList.remove('hide-on-load'))\n}", "function showImage(){\n document.getElementById('loadingImage').style.visibility=\"visible\";\n}", "function noWarning(){\n noLoading.style.display = 'none' ;\n}", "function hideLoading() {\n $ionicLoading.hide();\n }", "function hideLoading() {\n $(\"body\").find(\".pmDynaformLoading\").remove();\n}", "function hideLoading() {\n $ionicLoading.hide();\n }", "function showLoadingView() {\n $loader.css(\"display\", \"block\");\n }", "function loading_hide(){\n $('#loading2').fadeOut('fast');\n }", "function hideLoading() {\n\n\t$('.chat-form').css('visibility', 'visible');\n\t$(\"#loadingGif\").hide();\n\n\t// Clear the text area of text\n\t$(\".input\").val(\"\");\n\n\t// reset the size of the text area\n\t$(\".input\").attr(\"rows\", \"1\");\n}", "function loading_hide(){\n $('#loading3').fadeOut('fast');\n }", "function hideLoading()\n{\n\t$('.chat-form').css('visibility', 'visible');\n\t$(\"#loadingGif\").hide();\n\n\t// Clear the text area of text\n\t$(\".input\").val(\"\");\n\n\t// reset the size of the text area\n\t$(\".input\").attr(\"rows\", \"1\");\n\t\n}", "removeLoading () {\n this.loading.style.display = \"none\";\n }", "function hidePageLoader()\n{\n var loading = Ext.get('page-loading');\n var mask = Ext.get('page-loading-mask');\n if(loading && mask)\n {\n loading.ghost('b', { duration: 1.5, remove:false, easing:'easeIn' }); // remove must be \"false\" prevent IE SSL warning\n mask.shift({\n xy: [loading.getX(), loading.dom.offsetTop], // (getY() returns zero in Safari on span element)\n width: loading.getWidth(),\n height: loading.getHeight(), \n remove: true,\n duration: .75,\n opacity: .3,\n easing: 'easeOut'\n });\n }\n}", "function Completo() {\n\n $(\"#divLoading\").hide();\n\n }", "function hideLoadingScreen(){\n $( \".loader\" ).hide();\n $(\".loader-text\").html(\"Cleaning sequences!\");\n}", "function _loading( vis ) {\n\t\t\tvis ? \n\t\t\t\t$( _loader, _context ).fadeIn( \"fast\" ) : \n\t\t\t\t$( _loader, _context ).fadeOut( \"slow\", function () {\n\t\t\t\t\t$( this ).hide(); \n\t\t\t\t}); \n\t\t}", "function hideLoadingView() {\n $('#new-game-btn').text('START NEW GAME');\n $('#loading-gif').addClass('hidden');\n}", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function hideLoading() {\n // do nothing if popup is closed\n var innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n var domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n }", "function stopLoadingIndicator(){\r\n\t$('#svg').hideLoading();\r\n\t$('#list').hideLoading();\r\n}", "function hideLoadingView() {\n $(\"#spinner\").toggleClass('d-none');\n $(\"button\").empty().removeAttr(\"disabled\");\n $(\"button\").text('Reset!');\n}", "function showLoading()\n{\n\t$chatlogs.append($('#loadingGif'));\n\t$(\"#loadingGif\").show();\n\n\t// $('#submit').css('visibility', 'hidden');\n\t// $('input').css('visibility', 'hidden');\n\n\t$('.chat-form').css('visibility', 'hidden');\n }", "function loadingGif(){\n $(document).ajaxSend(function(){\n $(\".cssload-container\").css(\"display\",\"block\");\n });\n $(document).ajaxComplete(function(){\n $(\".cssload-container\").css(\"display\",\"none\");\n });\n }", "function loading_show(){\n $('#loading2').html(\"<img src='../assets/img/loading.gif'/>\").fadeIn('fast');\n }", "function _hideLoader() {\r\n spinner.classList.remove('fa', 'fa-refresh', 'fa-spin');\r\n spinner.style.marginRight = \"0px\";\r\n }", "function loading_show(){\n $('#loading4').html(\"<img src='../assets/img/loading.gif'/>\").fadeIn('fast');\n }", "function loading_show(){\n $('#loading7').html(\"<img src='../assets/img/loading.gif'/>\").fadeIn('fast');\n }", "function showLoading(show)\n{\n\tvar loadGif=$(\"#loading\")\n\tif (show) \n\t{\n\t\tloadGif.css(\"display\", \"block\")\n\t}else{\n\t\tloadGif.css(\"display\", \"none\")\n\t}\n}", "function hideLoading() {\n // do nothing if popup is closed\n const innerParams = privateProps.innerParams.get(this);\n\n if (!innerParams) {\n return;\n }\n\n const domCache = privateProps.domCache.get(this);\n hide(domCache.loader);\n const buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));\n\n if (buttonToReplace.length) {\n show(buttonToReplace[0], 'inline-block');\n } else if (allButtonsAreHidden()) {\n hide(domCache.actions);\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.denyButton.disabled = false;\n domCache.cancelButton.disabled = false;\n}", "function hideLoading() {\n if (loadingMessageId !== null) {\n rcmail.hide_message(loadingMessageId);\n loadingMessageId = null;\n }\n }", "function hideLoadingView() {\n $loadScreen.hide()\n $gameBoard.show();\n\n}", "function loading_show(){\n $('#loading5').html(\"<img src='../assets/img/loading.gif'/>\").fadeIn('fast');\n }", "function loading_show(){\n $('#loading3').html(\"<img src='../assets/img/loading.gif'/>\").fadeIn('fast');\n }", "function loading_show(){\n $('#loading6').html(\"<img src='../assets/img/loading.gif'/>\").fadeIn('fast');\n }", "function hideLoading() {\n var innerParams = privateProps.innerParams.get(this);\n var domCache = privateProps.domCache.get(this);\n\n if (!innerParams.showConfirmButton) {\n hide(domCache.confirmButton);\n\n if (!innerParams.showCancelButton) {\n hide(domCache.actions);\n }\n }\n\n removeClass([domCache.popup, domCache.actions], swalClasses.loading);\n domCache.popup.removeAttribute('aria-busy');\n domCache.popup.removeAttribute('data-loading');\n domCache.confirmButton.disabled = false;\n domCache.cancelButton.disabled = false;\n}" ]
[ "0.79757166", "0.7724283", "0.7697707", "0.76916564", "0.7690922", "0.7658675", "0.76100993", "0.7606903", "0.7580012", "0.7580012", "0.7570263", "0.7535159", "0.746239", "0.7429738", "0.7427484", "0.7420167", "0.7413106", "0.7400056", "0.7400056", "0.739585", "0.73936874", "0.7393542", "0.7393396", "0.73815054", "0.7354475", "0.7346133", "0.7346133", "0.734124", "0.7336572", "0.733502", "0.73280627", "0.7327682", "0.73213893", "0.7311906", "0.7307146", "0.7306776", "0.7301204", "0.7280077", "0.7255218", "0.72494686", "0.7247914", "0.7236823", "0.723078", "0.72252595", "0.7217438", "0.7214957", "0.72084326", "0.7207776", "0.72054946", "0.72049415", "0.7187472", "0.7184143", "0.7165251", "0.71584255", "0.7151869", "0.7151869", "0.7146384", "0.7140909", "0.71395314", "0.7138605", "0.71374637", "0.71367604", "0.7133662", "0.71242934", "0.71209407", "0.71185905", "0.7113654", "0.7113513", "0.7106773", "0.7102014", "0.7088665", "0.70744514", "0.7069486", "0.70640993", "0.70634985", "0.7060851", "0.70383286", "0.70375186", "0.70375186", "0.70375186", "0.70375186", "0.70375186", "0.70375186", "0.70375186", "0.70295095", "0.700509", "0.69993496", "0.69700414", "0.6969117", "0.69648266", "0.6962225", "0.6960407", "0.6946512", "0.6944803", "0.6942417", "0.6942393", "0.69412947", "0.69343454", "0.6932788", "0.6923822" ]
0.7395434
20
Loads track dates and colors from the URL. Tracks can be shown for specific dates and colors: map.html?20150918&20150920,a000f0 Or for a date range: map.html?20150918..20150920 Or just show me everything: map.html?all
function loadTracksFromURL () { var params = window.location.search.replace("?","").split("&"); tracks = {}; for (var i = 0; i < params.length; i++) { var track = params[i].split(","), color = track[1], range; if (!track[0] || track[0] == "all") { range = ["2015-03-25", moment().format("YYYY-MM-DD")]; } else { range = parseDateRange(track[0]); } moment.range(range).by("days", function(date) { tracks[date.format("YYYY-MM-DD")] = { file: "gpx/" + date.format("YYYY-MM-DD") + ".gpx", color: "#" + (color || randomColor({luminosity: "dark"})), }; }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadTimelineEvents() {\n var chaplainID = window.location.pathname.match( /\\d+/ )[0];\n loadchart(\"svgContent\", window.origin + \"/bojanglers/chaplain/\"+chaplainID+\"/geteventsjson/\");\n}", "function loadTracks() {\n // Remove all Tracks from DOM\n while (resultBody.firstChild) {\n resultBody.removeChild(resultBody.firstChild);\n }\n // Build XHR. Need details about XMLHttpRequest? Check\n // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest\n const xhr = new XMLHttpRequest();\n xhr.addEventListener('load', () => {\n // Parse result and extract relevant track data\n const deezerReponse = JSON.parse(xhr.response).data;\n const jsonResult = deezerReponse.map(d => {\n return { title: d.title, artist: d.artist.name };\n });\n // Iterate over result and create track results in DOM\n jsonResult.forEach(track => {\n // Build DOM using JavaScript functions. Note that you could also use\n // \"innerHtml\" instead.\n const tr = document.createElement('tr');\n const title = document.createElement('td');\n title.appendChild(document.createTextNode(track.title));\n tr.appendChild(title);\n const artist = document.createElement('td');\n artist.appendChild(document.createTextNode(track.artist));\n tr.appendChild(artist);\n resultBody.appendChild(tr);\n });\n // Show result table and hide loading indicator\n loading.hidden = true;\n result.hidden = false;\n });\n // Build URL\n // Quiz: Why do we use a proxy instead of directly accessing Deezer's search API?\n let url = 'http://localhost:8080/https://api.deezer.com/search?q=' + filter.value;\n // Send request\n xhr.open('GET', url);\n xhr.setRequestHeader('X-Requested-With', '.');\n xhr.send();\n // Hide result and show loading indicator\n result.hidden = true;\n loading.hidden = false;\n }", "function pullEvents() {\n var query = \"\";\n\n if(filter.start)\n query += \"&start=\" + (filter.start.getTime() / 1000);\n if(filter.end)\n query += \"&end=\" + (filter.end.getTime() / 1000);\n if(filter.search)\n query += \"&search=\" + filter.search;\n if(filter.latMin)\n query += \"&lat_min=\" + filter.latMin;\n if(filter.latMax)\n query += \"&lat_max=\" + filter.latMax;\n if(filter.longMin)\n query += \"&long_min=\" + filter.longMin;\n if(filter.longMax)\n query += \"&long_max=\" + filter.longMax;\n if(filter.day.length > 0 && filter.day.length < 7)\n query += \"&day=\" + filter.day.reduce(function(a,b) { return a + \",\" + b; },\"\").substring(1);\n if(filter.price.length > 0 && filter.price.length < 5)\n query += \"&price=\" + filter.price.reduce(function(a,b) { return a + \",\" + b; },\"\").substring(1);\n if(filter.tags.length > 0)\n query += \"&tags=\" + filter.tags.reduce(function(a,b) { return a + \",\" + b; },\"\").substring(1);\n if(filter.offset)\n query += \"&offset=\" + filter.offset;\n if(filter.sort)\n query += \"&sort=\" + filter.sort;\n\n loading('show');\n $.getJSON(\"/events/index?format=json\" + query, function (events) {\n var locations = [];\n for(var i in events) {\n var start = Date.parse(events[i].occurrences[0].start.substr(0,19));\n var li = $($('#content .main .inner .events-seed li:last-child').clone().wrap('<ul>').parent().html());\n li.find(\".name\").attr(\"href\", events[i].id);\n li.find(\".index\").html(parseInt(i) + 1);\n li.find(\".mod\").html(start.toString(\"MMMdd\").toUpperCase());\n li.find(\".day\").html(day_of_week[events[i].occurrences[0].day_of_week]);\n li.find(\".time\").html(start.toString(\"hh:mmtt\").toLowerCase());\n li.find(\".one .name\").html(events[i].title);\n li.find(\".one .venue\").html(events[i].venue.name);\n li.find(\".one .venue\").attr(\"href\",events[i].venue_id);\n if(events[i].price!=null)\n if(events[i].price!=0)\n li.find(\".one .description\").html(\"<span ><strong>Price: $\" + parseFloat(events[i].price).toFixed(2) + \"</strong></span> \" + events[i].description);\n else li.find(\".one .description\").html(\"<span ><strong>Free</strong></span> \" +events[i].description);\n else li.find(\".one .description\").html(events[i].description);\n li.prependTo('#content .main .inner .events-seed');\n locations.push({lat: events[i].venue.latitude, long: events[i].venue.longitude});\n }\n\n //placeMarkers({points: locations});\n\n $('#content .main .inner .events').empty();\n $('#content .main .inner .header .count').html(events.length + \" event\" + ((events.length == 1) ? \"\" : \"s\"));\n $('#content .main .inner .events-seed li:not(:last-child)').each(function() {\n $(this).prependTo('#content .main .inner .events');\n });\n loading('hide');\n });\n}", "function getDataUrl(){\n //var now = new Date().getTime();\n var lastDT = new Date(sensorEndDate).getTime();\n //console.log(typeof(now), now, typeof(sensorEndDate), sensorEndDate);\n var diff = 1000*3600*24*7;\n //var startSpan = new Date(now-diff);\n var startSpan = new Date(lastDT-diff);\n //console.log(startSpan.toISOString(), startSpan);\n// var startTxt = \"&time>=\"+startSpan.getFullYear().toString()+\"-\"+(\"0\" + (startSpan.getMonth() + 1)).slice(-2)+\"-01T00:00:00Z\"; //older.getMonth()+1;\n var startTxt = \"&time>=\"+startSpan.toISOString();\n\n // jsonUrl = baseJSON+'?station,time,'+attr;\n // csvUrl = baseERDDAP+'.csv'+'?station,time,'+attr;\n urlEnd = '?station,time,'+attr;\n if ($(\"#onlyQC\").prop('checked')) {\n // jsonUrl += '&'+attr+'_flagPrimary=1';\n if (flagsArr.indexOf(attr) > -1) urlEnd += '&'+attr+'_flagPrimary=1';\n } else if (flagsArr.indexOf(attr) > -1) {\n // jsonUrl += ','+attr+'_flagPrimary'+','+attr+'_flagSecondary';\n urlEnd += ','+attr+'_flagPrimary'+','+attr+'_flagSecondary';\n }\n //htmlUrl = baseERDDAP+'.html'+urlEnd+'&station=\"'+sensor+'\"'+'&orderBy(%22time%22)';\n // jsonUrl += '&station=\"'+sensor+'\"'+startTxt+'&orderBy(%22time%22)';\n urlEnd += '&station=\"'+sensor+'\"'+startTxt+'&orderBy(%22time%22)';\n jsonUrl = baseJSON+urlEnd;\n csvUrl = baseERDDAP+'.csvp'+urlEnd\n\n $('#getCSV').attr('href', csvUrl);\n //$('#access').attr('href', htmlUrl);\n return jsonUrl;\n}", "function showtimes(showtimesUrl) {\n fetch (showtimesUrl, options) \n .then(response => response.json())\n .then(responseJson => {\n console.log(responseJson)\n parseMovies(responseJson)\n })\n }", "async searchForVisitsUsingIdAndDate(url, venueid, date) {\r\n const query = `${url}/visit?restaurantid=${venueid}&visitdate=${date}`;\r\n return await axios.get(query);\r\n }", "function loadDates(){\n var rest_request_dates = \"/stream/getstreamdates?streamid=\"+streamId;\n queue()\n .defer(d3.json, rest_request_dates)\n .awaitAll(loadDateRangePicker);\n}", "function getTimesteps(dataset, variable, tIndex, tVal, prettyTVal)\n{\n $('date').innerHTML = '<b>Date/time: </b>' + prettyTVal;\n $('utc').style.visibility = 'visible';\n \n // Get the timesteps\n downloadUrl('wms', 'REQUEST=GetMetadata&item=timesteps&dataset=' + dataset + \n '&variable=' + variable + '&tIndex=' + tIndex,\n function(req) {\n $('time').innerHTML = req.responseText; // the data will be a selection box\n if (autoLoad != null && autoLoad.tValue != null) {\n // Now select the relevant item in the selection box\n var timeSelect = $('tValues');\n for (var i = 0; i < timeSelect.options.length; i++) {\n if (timeSelect.options[i].value == autoLoad.tValue) {\n timeSelect.selectedIndex = i;\n break;\n }\n }\n }\n $('setFrames').style.visibility = 'visible';\n // Make sure the correct day is highlighted in the calendar\n // TODO: doesn't work if there are many timesteps on the same day!\n if ($('t' + timestep)) {\n $('t' + timestep).style.backgroundColor = 'white';\n }\n timestep = tIndex;\n if ($('t' + timestep)) {\n $('t' + timestep).style.backgroundColor = '#dadee9';\n }\n if (autoLoad != null && autoLoad.scaleMin != null && autoLoad.scaleMax != null) {\n $('scaleMin').value = autoLoad.scaleMin;\n $('scaleMax').value = autoLoad.scaleMax;\n validateScale(); // this calls updateMap()\n } else if (newVariable) {\n autoScale(); // Scales the map automatically and updates it\n } else {\n updateMap(); // Update the map without changing the scale\n }\n }\n );\n}", "function getTimesteps(dataset, variable, tIndex, tVal, prettyTVal)\n{\n $('date').innerHTML = '<b>Date/time: </b>' + prettyTVal;\n $('utc').style.visibility = 'visible';\n \n // Get the timesteps\n downloadUrl('WMS.py', 'SERVICE=WMS&REQUEST=GetMetadata&item=timesteps&dataset=' + dataset + \n '&variable=' + variable + '&tIndex=' + tIndex,\n function(req) {\n $('time').innerHTML = req.responseText; // the data will be a selection box\n // Make sure the correct day is highlighted in the calendar\n // TODO: doesn't work if there are many timesteps on the same day!\n if ($('t' + timestep))\n {\n $('t' + timestep).style.backgroundColor = 'white';\n }\n timestep = tIndex;\n if ($('t' + timestep))\n {\n $('t' + timestep).style.backgroundColor = '#dadee9';\n }\n updateMap();\n }\n );\n}", "function loadDataUrl() {\r\n // The following regexp extracts the pattern dataurl=url from the page hash to enable loading timelines from arbitrary sources.\r\n var match = /dataurl=([^\\/]*)/g.exec(window.location.hash);\r\n if (match) {\r\n return unescape(match[1]);\r\n } else {\r\n switch (czDataSource) {\r\n case 'db':\r\n return \"Chronozoom.svc/get\";\r\n case 'relay':\r\n return \"ChronozoomRelay\";\r\n case 'dump':\r\n return \"ResponseDump.txt\";\r\n default:\r\n return null;\r\n }\r\n }\r\n}", "function fluxAnalysis(date,url){\r\n \tvar date = date;\r\n \tvar url = url;\r\n \t$.ajax({\r\n type: \"get\",\r\n async: false,\r\n url: url+date,\r\n dataType: \"jsonp\",\r\n jsonp: \"callback\", \r\n success: function(data){\r\n fluxAnalysisD = data.data;\r\n fluxAnalysisData()\r\n },\r\n error: function(){\r\n alert('fail,data must be wrong!!!');\r\n }\r\n });\r\n }", "function drawTracksOnMap(i, dates){\n i = i || 0;\n dates = dates || Object.keys(tracks);\n\n var date = dates[i];\n\n if (!date) { presentMap(); return; }\n\n var file = tracks[date].file,\n color = tracks[date].color;\n\n var runLayer = omnivore.gpx(file, null, customLayer(color))\n .on(\"ready\", function() {\n runLayer.addTo(trackLayerGroup);\n\n runLayer.eachLayer(function (layer) {\n layer.bindPopup(\n \"<b>\" + layer.feature.properties.name + \"</b><br/>\" +\n \"<a href='map.html?\" + date + \"' target='_blank'>🔎 View</a><br/>\" +\n \"<a href='\" + file + \"' target='_blank'>💾 Download</a>\"\n );\n });\n\n presentMap();\n })\n .on(\"error\", function() {\n runLayer.addTo(trackLayerGroup);\n presentMap();\n });\n\n drawTracksOnMap(i+1, dates);\n }", "function getUrl() {\n url = \"https://api.nasa.gov/EPIC/api/natural/date/\" + date + \"?api_key=\" + API_KEY;\n}", "function getData() {\n var url = baseUrl + '.dods?';\n var selected = $('#variables :checkbox').filter(':checked');\n selected.each(function(i) {\n if (this.id == 'location.time_series.time') timeIndex = i;\n url += this.id + ',';\n });\n if (selected.length <= 1) return;\n\n // Get buoy id.\n for (var i=0; i<buoys.markers.length; i++) {\n var marker = buoys.markers[i];\n if (marker.icon.imageDiv.firstChild.getAttribute('src') == 'js/OpenLayers/img/marker.png') {\n var id = marker.metadata.id;\n break;\n }\n }\n\n url = url.replace(/,$/, '');\n //url += '&location.time>1.1e12'; // get only a couple of points for this demo.\n url += '&location._id=' + id;\n\n jsdap.loadData(url, plotData, '/proxy/');\n}", "static checkAndPaintDays(url,date) {\n var xhttp = new XMLHttpRequest();\n xhttp.onreadystatechange = function () {\n if (this.readyState === 4 && this.status === 200) {\n let a = JSON.parse(this.response);\n Infrastructures.checkWeekDates(\"#calendar_content div\", date, a, \"no-work\", \"holidaySelector\");\n }\n };\n xhttp.open(\"GET\",url, true);\n xhttp.send();\n }", "function fetchEvents() {\n lookingForData = true; //start looking for data\n\n let urlParams = new URLSearchParams(window.location.search);\n let catid = urlParams.get(\"category\");\n if (catid) {\n fetch(\"http://tkgcreate.com/kea/m2/wp/wp-json/wp/v2/events?_embed&per_page=10&categories=7,8&order=asc&page=\" + page + \"&categories=\" + catid)\n .then(e => e.json())\n .then(showEvents);\n\n } else {\n fetch(\"http://tkgcreate.com/kea/m2/wp/wp-json/wp/v2/events?_embed&per_page=10&categories=7,8&order=asc&page=\" + page)\n .then(e => e.json())\n .then(showEvents);\n }\n\n}", "function historyLoad(hash) {\n\t\n\tif (hash) {\n\t\tconsole.log(hash);\n\t\tmap.states = 'AL-Alabama,AK-Alaska,AZ-Arizona,AR-Arkansas,CA-California,CO-Colorado,CT-Connecticut,DE-Delaware,FL-Florida,GA-Georgia,H-IHawaii,ID-Idaho,IL-Illinois,IN-Indiana,IA-Iowa,KS-Kansas,KY-Kentucky,LA-Louisiana,ME-Maine,MD-Maryland,MA-Massachusetts,MI-Michigan,MN-Minnesota,MS-Mississippi,MO-Missouri,MT-Montana,NE-Nebraska,NV-Nevada,NH-New Hampshire,NJ-New Jersey,NM-New Mexico,NY-New York,NC-North Carolina,ND-North Dakota,OH-Ohio,OK-Oklahoma,OR-Oregon,PA-Pennsylvania,RI-Rhode Island,SC-South Carolina,SD-South Dakota,TN-Tennessee,TX-Texas,UT-Utah,VT-Vermont,VA-Virginia,WA-Washington,WV-West Virginia,WI-Wisconsin,WY-Wyoming,DC-Washington DC';\nmap.statesSplit = map.states.split(',')\t\n\t\t\t\t\tfor (var o=0; o<map.statesSplit.length; o++)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(map.statesSplit[o].match(hash.split('&&')[0].replace(/_/g, ' ')))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmap.stateAB = map.statesSplit[o].split('-')[0]\n\t\t\t\t\t\t\tmap.state = map.statesSplit[o].split('-')[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\n\t\t$('#spot_holder').html('<div class=\"spot_icon\" aria-hidden=\"true\" data-icon=\"T\" ></div><div id=\"spot_headline\"><h4><span style=\"color:#979797\">Your</span> GeoMix</h4> </div><div> <div style=\"clear:both; margin-bottom:10px;\"></div>');\n\t\tmap.hash=hash;\n\t\tif (hash.match('style=')) {\n\n\t\t\t\n\t\t\tvar hash1 = hash.split('&&')[0];\n\t\t\tvar hash1 = hash + '+us';\n\t\t\tvar hash2 = hash.split('&&')[1]\n\t\t\thash1 = replacePatterns(hash1);\n\t\t\t/////Closure Example////////\n\t\t\tfunction dealWithStyles() {\n\t\t\t\tvar styles = hash2\n\t\t\t\tvar stylesArr = styles.split('%%%');\n\t\t\t\t$('.genre').removeClass('on').addClass('off');\n\t\t\t\t$('.genre').parent().removeClass('on').addClass('off');\n\t\t\t\tfor (var t = 0; t < stylesArr.length - 1; t++) {\n\t\t\t\t\tif (stylesArr.length > 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tvar style = stylesArr[t].replace(/&style=/g,'__');\n\t\t\t\t\t\tstyle = style.replace(/ /g, '_');\n\t\t\t\t\t\tstyle = style.replace(/style=/g,'');\n\t\t\t\t\t\tif(style[1] == '_')\n\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tstyle=style.slice(2,style.length);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$('#' + style).removeClass('off').addClass('on');\n\t\t\t\t\t\t$('#' + style).parent().removeClass('off').addClass('on');\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t\tmap.style = styles;\n\t\t\t\tHasher(hash1 + hash2);\n\t\t\t}\n\t\t\tdealWithStyles();\n\t\t\t\n\t\t} else {\n\t\t\tvar hash = hash = hash + '+us';\n\t\t\t$('.genre').removeClass('on').addClass('off');\n\t\t\t$('.genre').parent().removeClass('on').addClass('off');\n\t\t\tmap.style='';\n\t\t\tHasher(hash);\n\t\t}\n\n\t} else if (hash == \"\") {\n\t\tif (navigator.geolocation) {\n\t\t\tnavigator.geolocation.getCurrentPosition(handle_geolocation_query, handle_errors);\n\t\t} else {\n\t\t\t$('#geolocation_alert').show();\n\t\t\t$('#geolocation_alert').html('<p>Choose a City and State from the form below or enable geolocation on your device.</p>');\n\n\t\t}\n\t}\n\t\n\n}", "async function getHistoricalAll(){\n\ttry{\n\t\tlet response = await fetch(`https://corona.lmao.ninja/v2/historical/all`),\n\t \t\t data \t= await response.json();\n\t \t// converting an object to an array\n\t\t\tcasesDate = Object.entries(data.cases);\n\t\t\tdeathsDate = Object.entries(data.deaths);\n\t\t\trecoveredDate = Object.entries(data.recovered);\n\n\t\t// get historical data for the chart\n\t\tfor (var i = casesDate.length-14; i < casesDate.length; i++) {\n\t\t\txLabels.push(casesDate[i][0]);\n\t\t\tyCases.push(casesDate[i][1]);\n\t\t}\n\t\tfor (var i = deathsDate.length-14; i < deathsDate.length; i++) {\n\t\t\tyDeaths.push(deathsDate[i][1]);\n\t\t}\n\t\tfor (var i = recoveredDate.length-14; i < deathsDate.length; i++) {\n\t\t\tyRecovered.push(recoveredDate[i][1]);\n\t\t}\n\t}\n\tcatch(err){\n\t\tconsole.log(err);\n\t}\n}", "function getData(seizures) {\n d3.csv(\"data.csv\", function(error, dataForMap) {\n if (error) return console.error(error);\n\n var parseDate = d3.timeParse('%Y-%m-%d %H:%M:%S');\n\n var dataForTimeline = [],\n dateCount = {};\n\n dataForMap.forEach(function(d, idx) {\n d.TIME = parseDate(d['Date']);\n d.YEAR = d.TIME.getFullYear() //Seizure year, not the same as 'Year' in original\n d.ESTNUM = +d['ESTNUM'];\n d.Latitude = +d['Latitude'];\n d.Longitude = +d['Longitude'];\n\n if (!dateCount[d.TIME]) {\n dateCount[d.TIME] = d.ESTNUM\n } else {\n dateCount[d.TIME] += d.ESTNUM;\n }\n return d\n });\n\n Object.keys(dateCount).forEach(function(time) {\n dataForTimeline.push({ TIME: new Date(time), ESTNUM: dateCount[time] });\n });\n dataForTimeline.sort(function(a,b) { return a.TIME - b.TIME; });\n\n radiusScale.domain(d3.extent(dataForMap, function(d) { return +d.ESTNUM; }));\n\n makeTimeline(dataForMap, dataForTimeline);\n});\n}", "function loadFiveDayForecast(lat, lon) {\n // Make a path to the API\n var path = \"http://api.openweathermap.org/data/2.5/forecast?lat=\" + lat + \"&lon=\" + lon + \"&appid=\" + apikey;\n $.get(path, function (data) {\n console.log(\"-------- Five Day --------\");\n // console.log(data.list);\n // Collect some meta data \n var cityName = data.city.name;\n var cityPop = data.city.sys.population;\n // Define a string to display the 5 day 3 hour data as HTML.\n var html = \"\";\n // Loop through all of 5 day 3 hour data. \n for (var i = 0; i < data.list.length; i++) {\n // For convenience collect the data into an object. \n var obj = {};\n // Here we collect all of the data, the example doesn't display everything.\n obj.clouds = data.list[i].clouds.all;\n obj.dt = new Date(data.list[i].dt * 1000).toDateString() + \" \" + formatAMPM(new Date(data.list[i].dt * 1000));\n obj.temp = kToF(data.list[i].main.temp);\n obj.temp_min = kToF(data.list[i].main.temp_min);\n obj.temp_max = kToF(data.list[i].main.temp_max);\n obj.grnd_level = data.list[i].main.grnd_level;\n obj.humidity = data.list[i].main.humidity;\n obj.pressure = data.list[i].main.pressure;\n obj.description = data.list[i].weather[0].description;\n obj.icon = data.list[i].weather[0].icon;\n obj.shortDesc = data.list[i].weather[0].main;\n obj.windSpeed = data.list[i].wind.speed;\n obj.windDeg = data.list[i].wind.deg;\n // Make an HTML string that displays one three hr forecast. \n html += \"<div class='three-hr'><span>\" + // A wrapper\n obj.dt + \"</span> <span>\" + // Date/Time\n obj.temp + \"&deg;</span> <div><span>Humidity: \" + // temp\n obj.humidity + \"%</span> <span>\" + // humidity\n obj.description + \"</span></div></div>\"; // description string\n }\n // Display the aggregate 5 day 3 hour forecast\n $(\"#five-day-forecast\").html(html);\n });\n}", "function printtime(){\r\n\t\t//get time range\r\n\t\tvar start = $(\"#startDate\").val();\r\n\t\tvar end = $(\"#endDate\").val();\r\n\t\t//corner situation\r\n\t\tif(start >= end){\r\n\t\t\talert(\"Please enter valid date range!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$.ajax({\r\n url: 'https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=' + start + '&endtime=' + end,\r\n type: 'GET',\r\n dataType: 'json',\r\n\t\t\tsuccess: function (dt) {\r\n\t\t\t\tif(dt != undefined){\r\n\t\t\t\tarray = dt;\r\n\t\t\t\t//make sure data is not null\r\n\t\t\t\tif(array.features.length!=0){\r\n\t\t\t\t\tchangePage(1);\r\n\t\t\t\t\t$(\"#map\").css(\"display\", \"none\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\talert(\"No result in your date range, please search other date again!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n },\r\n error: function () {\r\n\t\t\t\talert(\"Can not find valid url!\");\r\n }\r\n\t\t});\r\n\t}", "function loadSatellite() {\n\n\tlet httpReq = new XMLHttpRequest();\n\thttpReq.onreadystatechange = function callback_inRoadSatDB() {\n\t\tvar lines = new Array();\n\t\tif (httpReq.readyState == 4 && httpReq.status == 200) {\n\t\t\t// road database\n\t\t\tlines = httpReq.responseText.split(\"\\n\", 50);\n\t\t\tele_line = new Array();\n\t\t\tlines.forEach(function (ele, index, _array) {\n\t\t\t\tele_line = ele.split(\"\\t\", 5);\n\t\t\t\tsatArray[index] = new Satellite(ele_line[0], ele_line[1],\n\t\t\t\t\tele_line[2], ele_line[3]);\n\t\t\t});\n\t\t\tfor (var i = 0; i < satArray.length; i++) {\n\t\t\t\ttrackCoordinatesArray[i] = new Array();\n\t\t\t}\n\t\t\tfor (var i = 0; i < satArray.length; i++) {\n\t\t\t\tsatNo[i] = 0;\n\t\t\t}\n\t\t}\n\t};\n\tmarker_array = new Array();\n\ttrackLineArray = new Array();\n\tconst url =\n\t\t//'http://localhost:8080/tlews/res/satelliteDataBase.txt';\n\t\t'http://127.0.0.1:5501/src/main/webapp/assets/satelliteDataBase.txt';\n\t// 'https://braincopy.org/tle/assets/satelliteDataBase.txt';\n\thttpReq.open(\"GET\", url, true);\n\thttpReq.send(null);\n}", "function makeURL(offset){\n var first_date = $(\"#mindate\").data(\"DateTimePicker\").getDate();\n var second_date = $(\"#maxdate\").data(\"DateTimePicker\").getDate();\n var first_date_formatted = timeprocess(first_date);\n var second_date_formatted = timeprocess(second_date);\n \n \n radius = $('#radius').val() * 1000;\n borough = $('#borough').val();\n eventType = $('#eventtype').val();\n \n if(eventType == \"All\")\n {\n filter = \"\";\n }\n else\n {\n filter = \"&filters=category:\" + eventType;\n }\n \n for (var i=0;i<5;i++)\n {\n if(boroughLatLong[i][0] == borough)\n {\n latitude = boroughLatLong[i][1];\n longitude = boroughLatLong[i][2];\n break;\n }\n }\n final_url = \"https://api.nytimes.com/svc/events/v2/listings.jsonp?&ll=\" + latitude + \",\" + longitude + \n \"&radius=\" + radius + \"&offset=\" + offset + filter + \"&date_range=\" + first_date_formatted + \":\" + second_date_formatted + \"&sort=event_name+asc&api-key=\" + api_key;\n}", "function getData() {\n // data downloaded from the USGS at http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/ on 4/4/16\n // month.geojson represents recorded earthquakes between 03/04/2016 and 04/04/2016\n // week.geojson represents recorded earthquakes betwen 03/28/2016 and 04/04/2016\n var url = \"data/week.geojson\";\n return esriRequest(url, {\n responseType: \"json\"\n });\n }", "function getEvents(id, date) {\n $('#error').empty();\n if (date === getCurrentDate()) {\n $('p').html('Tonight');\n } else {\n let newDate = convertDate(date);\n $('p').html(`On ${newDate}`);\n }\n const apiUrl = `https://api.songkick.com/api/3.0/metro_areas/${id}/calendar.json?apikey=lKGlBIRmnawI3yka&min_date=${date}&max_date=${date}`;\n \n fetch(apiUrl)\n .then(response => response.json())\n .then(responseJson => {\n if (responseJson.status === 'error') {\n throw new Error(responseJson.message)\n }\n processData(responseJson)\n })\n .catch(error => {\n $('#map').hide();\n $('#error').text(`Something went wrong. Try again.`);\n })\n}", "function loadTracks(xmlhttp)\n{\n\ttracks = [];\n\t// Extract the list of items from JSON\n\tvar jsonDoc = JSON.parse(xmlhttp.responseText);\n//var jsonItems = jsonDoc.findItemsByKeywordsResponse[0].searchResult[0].item;\n\tvar jsonItems = jsonDoc.tracks.track;\n\t\n\t// Loop through the items\n\tfor (var i = 0; i < jsonItems.length; i++) {\n\t\n\t\t// Extract basic info about each item\n\t\tvar itemArtistName = jsonItems[i].artist.name;\n\t\tvar itemArtistURL = jsonItems[i].artist.url;\n\t\tvar itemDuration = jsonItems[i].duration;\n\n\t\tif (jsonItems[i].hasOwnProperty('image'))\n\t\t{\n\t\t\tvar itemImgUrl = jsonItems[i].image[0]['#text'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tvar itemImgUrl = findAltImg(jsonItems[i].artist.name);\n\t\t}\n\n\t\tvar itemListeners = parseInt(jsonItems[i].listeners);\n\t\tvar itemName = jsonItems[i].name;\n\t\tvar itemPlayCount = parseInt(jsonItems[i].playcount);\n\t\tvar itemURL = jsonItems[i].url;\n \t\t\n\t\t// Create an object to store info about the item\n\t\tvar track = {\n\t\t\tartistName : itemArtistName,\n\t\t\tartistUrl : itemArtistURL,\n\t\t\tduration : itemDuration,\n\t\t\timgUrl : itemImgUrl,\n\t\t\tlisteners : itemListeners,\n \t\tname : itemName,\n \t\tplayCount : itemPlayCount,\n \t\turl : itemURL\n\t\t};\n\t\t// And add to the (global)list of items\n\t\ttracks.push(track);\n\t}\n\n\t// Refresh the table\n\tfillTracksTable();\n}", "function getData(url, key) {\n let newurl = url + key;\n let response = $.get(newurl, () => {\n putDataOnTable(response.responseJSON.series[0].data, DATASETS_API_SERIES_ID[key][0]);\n });\n}", "function getTracks(value) {\n url = \"/get_genre_artists\" + \"?genre=\" + value;\n\n var request = new XMLHttpRequest();\n request.open(\"GET\", url, true);\n\n request.setRequestHeader('Content-type', 'text/plain');\n\n request.onreadystatechange = function() {\n if (request.readyState == 4 && request.status == 200) {\n data = request.responseText;\n data = JSON.parse(data);\n temp_songs = data;\n printTracksToPage(data, 0);\n };\n };\n request.send();\n}", "function loadDates() {\r\n var dates = $.get(\r\n \"https://www.finnkino.fi/xml/ScheduleDates/\",\r\n function (dates) {\r\n $(dates)\r\n .find(\"dateTime\")\r\n .each(function () {\r\n var xDate = $(this).text();\r\n var day = xDate.substring(8, 10);\r\n var month = xDate.substring(5, 7);\r\n var year = xDate.substring(0, 4);\r\n var pretty = day + \".\" + month + \".\" + year;\r\n\r\n $(\"#Date\").append(\r\n '<option value=\"' + pretty + '\">' + pretty + \"</option>\"\r\n );\r\n });\r\n }\r\n );\r\n}", "fetchTracks(latLngBounds) {\n var west = latLngBounds.getWest();\n var south = latLngBounds.getSouth();\n var east = latLngBounds.getEast();\n var north = latLngBounds.getNorth();\n fetch(baseUrl + 'api/search/' + west + '/' + south + '/' + east + '/' + north)\n .then(response => response.json())\n .then(trackids => {\n trackids.forEach((key) => {\n console.log(key);\n // fetch the track only if it's not fetched yet\n if (!this.tracks.has(key)) {\n fetch(baseUrl + 'api/SchweizMobil/Track/' + key)\n .then(response => response.json())\n .then(json => {\n var track = JSON.parse(json[0].value);\n var trackLayer = L.geoJSON(track)\n this.tracks.set(key, trackLayer);\n trackLayer.addTo(this.map);\n })\n .catch(error => console.log(error))\n }\n })\n })\n .catch(error => console.log(error))\n }", "function getTrack(trackTitle) {\n var url = 'http://localhost:54941/Track/GetTrack?trackTitle=' + trackTitle;;\n $.ajaxSetup({ cache: false }); //to prevent cache\n $.getJSON(url, function (data) { // lấy dữ liệu từ CSDL\n timeStart = data.TimeStart;\n duration = data.Duration;\n title = data.AudioTitle;\n answer = data.Answer;\n });\n}", "function getStoriesData() {\n\t\t// GET PAGE DOMAIN\n\t\tvar domain = document.domain;\n\t\t// CALL TO CHARTBEAT TO GET TOP TRENDING STORIES ON THAT DOMAIN\n\t\t$.get('http://api.chartbeat.com/live/toppages/v3/?apikey=11a05962fa65ba821e3a53cc8c52520c&host=daytondailynews.com ')\n\t\t.then(function(result) {\n\t\t\tconsole.log(result);\n\t\t\t// LOOP THROUGH TRENDING PIECES\n\t\t\tfor (i in result.pages) {\n\t\t\t\t// IF IT'S AN ARTICLE AND NOT flatpage-for-wraps\n\t\t\t\tif (result.pages[i].stats.article>0 && result.pages[i].title!='flatpage-for-wraps') {\n\t\t\t\t\t// ADD ONE TO NUMBER OF STORIES COUNT\n\t\t\t\t\tkn_data.number_of_stories++;\n\t\t\t\t\t// CALL FUNCTION TO GET UUID WITH PHP FILE\n\t\t\t\t\tgetUUID(result.pages[i].path, result.pages[i].stats.visits);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\toutputTrending();\n\t\t});\n\t}", "function getReferralStatusTimeFrameChart(){\n\t\t$('#referralStatusWait').show();\n\t\tgetParamsForTimeFrame();\n\t\t$.ajax({\n\t\t\turl: referralByStatusUrl+'TimeFrame',\n\t context: document.body,\n\t method: \"POST\",\n\t data: { search_entity: searchEntity, from_time_val: fromTimeVal, to_time_val: toTimeVal },\n\t success: function(response){\n\t $('#referralStatusWait').hide();\n\t $('#referralStatusChart').html(response);\n\t }});\n\t}", "function getEvents(url, showEventsMap, showEventsTable) {\n // default params to false\n showEventsMap = typeof showEventsMap !== 'undefined' ? showEventsMap : false;\n showEventsTable = typeof showEventsTable !== 'undefined' ? showEventsTable : false;\n\n // ajax\n $.getJSON(url, function( data ) {\n if (showEventsTable === true) {\n // if showing table\n // map the locations and add them to the table\n $.each(data, function(index, location) {\n // console.log(location);\n row = \"\";\n row += '<tr>';\n if (location.date) {row += '<td>' + location.date + '</td>';} else {row += '<td></td>';}\n if (location.club_name) {row += '<td>' + location.club_name + '</td>';} else {row += '<td></td>';}\n if (location.phone) {row += '<td>' + location.phone + '</td>';} else {row += '<td></td>';}\n if (location.website) {row += '<td><a href=\"' + location.website + '\" target=\"_blank\">website</a></td>';} else {row += '<td></td>';}\n // if (location.address) {row += '<td>' + location.address + '</td>';} else {row += '<td></td>';}\n row += '</tr>';\n $('#events-table tbody').append(row);\n\n // get address and add to map\n // if showing both map and table\n if (showEventsMap === true) {\n mapEvent(location);\n }\n });\n // make the table a datatable\n $('#events-table').DataTable({\n paging: false,\n info: false\n });\n } else if (showEventsMap === true) {\n // if showing only map\n mapEvent(location);\n }\n\n // console.log(data);\n });\n }", "function preload() {\n data = loadStrings('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv');\n mapimg = loadImage('https://api.mapbox.com/styles/v1/mapbox/dark-v9/static/'+clon+','+clat+','+zoom+'/'+w+'x'+h+'?access_token=pk.eyJ1IjoiY29kaW5ndHJhaW4iLCJhIjoiY2l6MGl4bXhsMDRpNzJxcDh0a2NhNDExbCJ9.awIfnl6ngyHoB3Xztkzarw');\n}", "function loadJson(response) {\n //loop through markets\n for (var i = 0; i < listMarket.length; i++) {\n let market = listMarket[i];\n //loop through days of the week\n for (var j = 0; j < listDay.length; j++) {\n let day = listDay[j];\n let ulOfIDs = document.getElementById(`${market}-${day}`);//grab ul of \"market-day\"\n let materialID = response[market][day]; //extract IDs from the http GET response\n const idPattern = /\\w*_\\d*_\\w/; //regular expression to exract id\n const livePattern = /\\w$/\n //loop through IDs in each day\n if (materialID == \"\") {\n addClearTick(ulOfIDs, true); //call addTickIcon function \n }\n for (var k = 0; k < materialID.length; k++) {\n if (typeof (materialID[k]) !== \"undefined\") {\n let checked\n let liveStatus = livePattern.exec(materialID[k]);\n let id = idPattern.exec(materialID[k]);\n if (liveStatus == \"Y\") {\n checked = true;\n } else if (liveStatus == \"N\") {\n checked = false;\n }\n createLi(ulOfIDs, id, checked);\n } \n }; \n };\n };\n addListener() \n}", "function getEarthquakes() {\r\n\t\tclient = new XMLHttpRequest();\r\n\t\tclient.open('GET','https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson');\r\n\t\tclient.onreadystatechange = earthquakeResponse; // note don't use earthquakeResponse() with brackets as that doesn't work\r\n\t\tclient.send();\r\n\t\t}", "function readData() {\n let route_data = null;\n d3.json(URLS2018).then(function (jFile) {\n route_data = removeCommas(jFile.data);\n routeDataList.push(route_data);\n d3.json(URLF2018).then(function (jFile) {\n route_data = removeCommas(jFile.data);\n routeDataList.push(route_data);\n d3.json(URLS2019).then(function (jFile) {\n route_data = removeCommas(jFile.data);\n routeDataList.push(route_data);\n d3.json(URLF2019).then(function (jFile) {\n route_data = removeCommas(jFile.data);\n routeDataList.push(route_data);\n initializeIDPulldown();\n buildBarChart(0);\n });\n });\n });\n });\n}", "function getEarthquakes() {\n client = new XMLHttpRequest();\n client.open('GET','https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.geojson');\n client.onreadystatechange = earthquakeResponse; \n client.send();\n}", "function loadColourData() {\n var colourXmlObject;\n\n if (window.XMLHttpRequest) {\n colourXmlObject = new XMLHttpRequest();\n } else {\n // code for IE6, IE5\n colourXmlObject = new ActiveXObject(\"Microsoft.XMLHTTP\");\n }\n\n colourXmlObject.onreadystatechange = function() {\n if (colourXmlObject.readyState == 4 && colourXmlObject.status == 200) {\n var response = colourXmlObject.responseText;\n var xmlDoc = new DOMParser().parseFromString(response,'text/html');\n\n hexColour = \"#\" + xmlDoc.getElementsByTagName(\"hex\")[0].innerText;\n setColour(hexColour);\n }\n };\n\n colourXmlObject.open(\"GET\", colourUrl + ((/\\?/).test(colourUrl) ? \"&\" : \"?\") + (new Date()).getTime(), true);\n colourXmlObject.send();\n}", "function getReadings(){\n var xhr = new XMLHttpRequest();\n xhr.onreadystatechange = function() {\n if (this.readyState == 4 && this.status == 200) {\n //console.log(\"[\"+this.responseText.slice(0, -1)+\"]\");\n var myObj = JSON.parse(\"[\"+this.responseText.slice(0, -1)+\"]\");\n //console.log(myObj);\n var len = myObj.length;\n if(len > 40) {\n for(var i = len-40; i<len; i++){\n plotTemperature(myObj[i].time, myObj[i].temperature);\n plotHumidity(myObj[i].time, myObj[i].humidity);\n }\n }\n else {\n for(var i = 0; i<len; i++){\n plotTemperature(myObj[i].time, myObj[i].temperature);\n plotHumidity(myObj[i].time, myObj[i].humidity);\n }\n } \n }\n }; \n xhr.open(\"GET\", \"/readings\", true);\n xhr.send();\n}", "function loadDataForByHour() {\r\n\tvar dateRange_value = 'where[full_date.between]='\r\n\t\t\t+ urlMaster.getParam('where[full_date.between]');\r\n\tvar url = apiRootUrl\r\n\t\t\t+ '/revenueByHour?select=full_date|hour24_of_day&limit=2000&'\r\n\t\t\t+ dateRange_value + \"&by=pais|pid\";\r\n\tif (myAjaxStore.isLoading(url)) {\r\n\t\treturn;\r\n\t}\r\n\tvar ajaxData = myAjaxStore.get(url);\r\n\tif (ajaxData == null) {\r\n\t\tmyAjaxStore.registe(url);\r\n\t\t$.ajax({\r\n\t\t\tdataType : \"json\",\r\n\t\t\turl : url,\r\n\t\t\ttimeout : ajaxRequestTimeout,\r\n\t\t\txhrFields : {\r\n\t\t\t\twithCredentials : true\r\n\t\t\t},\r\n\t\t\tsuccess : function(json) {\r\n\t\t\t\tmyAjaxStore.add(url, json);\r\n\t\t\t},\r\n\t\t\terror : function(xhr, status, error) {\r\n\t\t\t\tmyAjaxStore.remove(url);\r\n\t\t\t},\r\n\t\t\tcomplete : function() {\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t} else {\r\n\t}\r\n}", "function getDataFeed() {\n\n document.getElementById('_ga_outputDiv').innerHTML = 'Loading...';\n\nvar sd = document.getElementById('from').value.split('/');\nvar ed = document.getElementById('to').value.split('/');\nvar sdate = sd[2] + '-' + sd[0] + '-' + sd[1];\nvar edate = ed[2] + '-' + ed[0] + '-' + ed[1];\n\nvar myFeedUri = 'https://www.google.com/analytics/feeds/data' +\n '?start-date='+ sdate +\n '&end-date=' + edate +\n '&dimensions=' + _dimensions +\n '&metrics=' + _metrics +\n '&segment=' + _segment +\n '&filters=' + _filters +\n '&sort=' + _sort +\n '&max-results=365' +\n '&ids=' + document.getElementById('tableId').innerHTML;\n\n myService.getDataFeed(myFeedUri, handleDataFeed, handleError);\n}", "function getUrlParas() \n{ \n\tvar url_lat = null, \n \turl_lon = null, \n \turl_res = null, \n \turl_level = null, \n \turl_address = null, \n \turl_panel = null, \n \turl_panel_hide = null, \n \turl_legend = null, \n \turl_type = null, \n \turl_debug = null, \n\t\turl_tflogo = null; \n\t \n\turl = document.location.href; \n\tdebug(url); \n\tvar paraStr = null; \n\tif (url.indexOf(\"#\") != -1) { \n\t\tparaStr = url.substring(url.indexOf(\"#\") + 1); \n\t} \n\telse { \n\t\tparaStr = url.substring(url.indexOf(\"?\") + 1); \n\t} \n\tdebug(paraStr); \n\tvar queryStr = \"&\" + paraStr; \n\turl_lat = queryStr.getQueryString(\"lat\"); \n\turl_lon = queryStr.getQueryString(\"lon\"); \n\turl_res = queryStr.getQueryString(\"res\"); \n\turl_level = parseInt(queryStr.getQueryString(\"lvl\")); \n\turl_address = unescape(queryStr.getQueryString(\"address\")).replace(/\\+/g, \" \"); \n\turl_panel = queryStr.getQueryString(\"panels\"); \n\turl_panel_hide = queryStr.getQueryString(\"!panels\"); \n\turl_legend = queryStr.getQueryString(\"legend\"); \n\turl_type = queryStr.getQueryString(\"type\"); \n\turl_debug = queryStr.getQueryString(\"debug\"); \n\turl_tflogo = queryStr.getQueryString(\"tflogo\"); \n\turl_engine = queryStr.getQueryString(\"fmap\"); \n \n\tvar center = null \n\tcenter = queryStr.getQueryString(\"cen\").split(','); \n \n\turl_lat = parseFloat(center[0]); \n\turl_lon = parseFloat(center[1]); \n\t \n\tg_lat = (!url_lat ?g_lat:url_lat); \n\tg_lon = (!url_lon ?g_lon:url_lon); \n\tg_res = (!url_res ?g_res:url_res); \n\tg_level = (!url_level ?g_level:url_level); \n\tg_address = (!url_address ?g_address:url_level); \n\tg_panel = (!url_panel?g_panel:url_panel); \n\tg_panel_hide = (!url_panel_hide?g_panel_hide:url_panel_hide); \n\tg_legend = (!url_legend?g_legend:url_legend); \n\tg_type = (!url_type?g_type:url_type); \n\tg_debug = (!url_debug?g_debug:url_debug); \n\tg_tflogo = (url_tflogo==\"1\"?true:false); \n\tg_engine = (!url_engine?g_engine:url_engine); \n}", "function setCalendar(dataset, variable, dateTime)\n{\n // Set the calendar. When the calendar arrives the map will be updated\n downloadUrl('WMS.py', 'SERVICE=WMS&REQUEST=GetMetadata&item=calendar&dataset=' + dataset + \n '&variable=' + variable + '&dateTime=' + dateTime,\n function(req) {\n if (req.responseText == '') {\n // There is no calendar data. Just update the map\n $('calendar').innerHTML = '';\n $('date').innerHTML = '';\n $('time').innerHTML = '';\n $('utc').style.visibility = 'hidden';\n updateMap();\n return;\n }\n var xmldoc = req.responseXML;\n $('calendar').innerHTML =\n RicoUtil.getContentAsString(xmldoc.getElementsByTagName('calendar')[0]);\n \n // If this call has resulted from the selection of a new variable,\n // choose the timestep based on the result from the server\n if (newVariable)\n {\n newVariable = false; // This will be set true when we click on a different variable name\n var tIndex = parseInt(xmldoc.getElementsByTagName('nearestIndex')[0].firstChild.nodeValue);\n var tVal = xmldoc.getElementsByTagName('nearestValue')[0].firstChild.nodeValue;\n var prettyTVal = xmldoc.getElementsByTagName('prettyNearestValue')[0].firstChild.nodeValue;\n // Get the timesteps for this day and update the map\n getTimesteps(dataset, variable, tIndex, tVal, prettyTVal);\n }\n else if ($('t' + timestep))\n {\n // Highlight the currently-selected timestep if it happens to\n // exist in this calendar\n $('t' + timestep).style.backgroundColor = '#dadee9';\n }\n }\n );\n}", "function getFiveDayForecast(lon, lat) {\n $.get(\n \"https://api.openweathermap.org/data/2.5/onecall?units=imperial&lat=\" + lat + \"&lon=\" + lon + \"&appid=\" + APIKey,\n function (response) {\n //grabbing uv index from this API, not available on previous one\n $('#uvIndex').text(response.current.uvi);\n //changing color of UV index to represent current conditions\n if (response.current.uvi <= 3) {\n $('#uvIndex').css(\"background-color\", \"green\");\n }else if(response.current.uvi <= 6){\n $('#uvIndex').css(\"background-color\", \"yellow\");\n }else if(response.current.uvi <= 10){\n $('#uvIndex').css(\"background-color\", \"orange\");\n }else{\n $('#uvIndex').css(\"background-color\", \"red\");\n }\n //passing in the 5 day forcast array for this function to use\n renderFiveDay(response.daily)\n }\n );\n }", "function loadPodsByUrl(podsUrl, numPods, showPodsSummary) {\n\t// alert('pods url 2 = '+podsUrl);\n\n\tvar showTheSummary = 'true';\n\tif (showPodsSummary == 'true' || showPodsSummary == 'false'){\n\t\tshowTheSummary = showPodsSummary;\n\t}\n\t\n var feed = new google.feeds.Feed(podsUrl);\n\tfeed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);\n\tfeed.setNumEntries(20);\n\tfeed.includeHistoricalEntries();\n\n\tfeed.load( function(result) {\n\n\t\tvar showNumberOfPods = 10;\n\t\tif (numPods != null && numPods != 'undefined' && numPods < result.feed.entries.length ){\n\t\t\tshowNumberOfPods = numPods;\n\t\t} else {\n\t\t\tshowNumberOfPods = result.feed.entries.length;\n\t\t\t// alert('feed.entries.length = '+showNumberOfPods);\n\t\t}\n\n\t\t// alert('showNumberOfPods = '+showNumberOfPods);\n\t\t\t\t\n\t\t$(\"#episodenList\").empty();\n \tfor (var i=0; i<showNumberOfPods; i++) {\n\t\t\tvar entry = result.feed.entries[i];\n\t\t\tvar enclosure = entry.xmlNode.getElementsByTagName(\"enclosure\");\n\t\t\tvar entryUrl = '';\n \t \t\tvar sizeString = '';\n \t \t\tvar contentText = '';\n \t \t\tvar urlContainsPlayer = false;\n\t\t\tif (enclosure.length <= 0){\n\t\t\t\t// alert('enclosure.length='+enclosure.length+' /\n\t\t\t\t// enclosure='+enclosure+' / Link='+entry.link);\n\t\t\t\tentryUrl = 'http://srf.ch'+entry.link;\n\t \t \t\turlContainsPlayer = true;\n\t\t\t} else {\n\t\t\t\t// alert('enclosure.length='+enclosure.length+' /\n\t\t\t\t// URL='+enclosure[0].getAttribute(\"url\"));\n\t\t\t\tentryUrl = enclosure[0].getAttribute(\"url\");\n\t \t \t\tvar entrySize = enclosure[0].getAttribute(\"length\");\n\t \t \t\tvar sizeInMB = Math.floor(entrySize / 1000000);\n\t \t \t\tif (sizeInMB != 0){\n\t \t \t\t\tsizeString = ' ('+ sizeInMB +' MB)';\n\t \t \t\t}\n\t \t \t\tif (showTheSummary == 'true'){\n\t \t \t\t\tcontentText = entry.content;\n\t \t \t\t\t//alert('contentText='+contentText);\n\t \t \t\t\t//alert('ul index= '+contentText.indexOf(\"<ul>\"));\n\t \t \t\t\tif(contentText.indexOf(\"<ul>\") >= 0){\n\t \t \t\t\t\tcontentText=\"\";\n\t \t \t\t\t}\n\t \t \t\t}\n\t\t\t}\n// return;\n \t \t\t \t \t\t\n\t\t\t$(\"#episodenList\").append(\n// '<li id=\"list' + i + '\"><a data-role=\"button\" class=\"hide-page-loading-msg\"\n// data-ajax=\"false\" target=\"_blank\" href=\"http://koni.mobi\" id=\"link' + i +\n// '\">'+\n\t\t\t '<li id=\"list' + i + '\"><a data-role=\"button\" onclick=\"openMediaWhenConnected(\\''+entryUrl+'\\','+ urlContainsPlayer +')\" href=\"#\" id=\"link' + i + '\">'+\n\t\t\t '<h2>'+entry.title + sizeString+'</h2>'+\n '<p>'+contentText+'</p>'+\n\t\t\t '</a>' +\n\t\t\t '</li>'\n\t\t\t);\n\t\t\t\n \t}\n\t\t$('ul').listview('refresh');\n\t});\n}", "function seasonUrls(num) {\n return new Promise(resolve => {\n return axios\n .get(`https://j-archive.com/showseason.php?season=${num}`)\n .then(({ data }) => {\n const $ = cheerio.load(data);\n\n let links = []\n let url;\n $('a').each(function () {\n url = `${$(this).attr('href')}`\n if (url.includes(\"game_id\")) {\n links.push(url)\n }\n });\n resolve(links)\n })\n });\n}", "function fetchLovedTracks() {\n // Call Last.fm API Loved Tracks\n $.ajax({\n url:\n 'https://ws.audioscrobbler.com/2.0/?method=user.getlovedtracks&user=' +\n username +\n '&api_key=' +\n apikey +\n '&format=json&limit=9',\n crossDomain: true,\n dataType: 'json',\n success: function(data) {\n console.log('Loved tracks', data);\n var lovedTracks = data.lovedtracks.track;\n\n if (lovedTracks) {\n for (var i = 0; i < lovedTracks.length; i++) {\n var release = lovedTracks[i];\n var name = release.name;\n var url = release.url;\n var artist = release.artist.name;\n var artwork = release.image[3]['#text'];\n\n artworkHTML =\n '<a href=\\'' +\n url +\n '\\' target=\\'_blank\\'><img src=\\'' +\n artwork +\n '\\' alt=\\'' +\n name +\n '\\'>';\n artistHTML =\n '<div class=\\'release-info\\'><h1>' +\n name +\n '</h1><h2>' +\n artist +\n '</h2></a>';\n\n $('.new-releases .releases-list').append(\n '<div class=\\'release\\'>' + artworkHTML + artistHTML + '</div>'\n );\n }\n\n fetchArtistInfo();\n } else {\n $('.new-releases').css('display', 'none');\n fetchArtistInfo();\n }\n },\n error: function() {\n $('.loader-label').append(' Error loading data. Reload the page.');\n },\n });\n}", "function viewer_reloadWithParamInURL() {\n\tvar ret = base_page_url;\n\t\n\tret += '?graph_preload=';\n\t\n\t//granularity\n\tret += $(\"#granularity\").val();\n\tret += \",\";\n\t\n\t//dateFrom\n\tret += new Date( $(\"#from\").datepicker( \"getDate\" ) ).getTime();;\n\tret += \",\";\n\t\n\t//dateTo\n\tret += new Date( $(\"#to\").datepicker( \"getDate\" ) ).getTime();\n\t\n\t//variables\n\tfor(var i=0; i<graph_elements_list.length; i++) {\n\t\tret += \",\";\n\t\t//device_id\n\t\tret += graph_elements_list[i].device_id;\n\t\tret += \",\";\n\t\t//device_name\n\t\tret += graph_elements_list[i].device_name;\n\t\tret += \",\";\n\t\t//variable_name\n\t\tret += graph_elements_list[i].variable_name;\n\t\tret += \",\";\n\t\t//unit\n\t\tret += graph_elements_list[i].unit;\n\t\tret += \",\";\n\t\t//color\n\t\tret += graph_elements_list[i].color;\n\t}\n\t\n\tdocument.location.href = ret;\n}", "function getWeatherReports({ startDate = new Date(), endDate = new Date() } = {}) {\r\n return fetch(`/api/weather?${qs.stringify({ startDate, endDate })}`)\r\n .then(res => res.json());\r\n}", "_setFiltersFromUrl() {\n // eslint-disable-next-line object-curly-newline\n const { desde, hasta, medico, sucursal } = urlQueryToDict();\n this.medico = `${medico || this.medico}`;\n this.sucursal = `${sucursal || this.sucursal}`;\n this.desde = ISODateToJSDate(desde || this.desde);\n this.hasta = ISODateToJSDate(hasta || this.hasta);\n }", "function myURLFunction() {\n\n //var linkUrl = \"http\\\\:myapp.com?from=2012-10-25T11:00:00&to=2012-10-27T13:00:00\";\n\t\n var linkUrl = window.location.href;//\"?from=2015-10-21T11:00:00&to=2015-10-27T13:15:00\";\n\twindow.history.pushState(null,null, linkUrl+\"?from=2015-10-21T11:00:00&to=2015-10-27T13:15:00\");\n var parts=linkUrl.split(\"=\");\n var StartDate=parts[1];\n var EndDate=parts[2];\n var mainstartDate=StartDate.slice(0,-12);\n var re = /(\\d{2})\\:(\\d{2})\\:(\\d{2})/\n var startTime = parts[1].match(re);\n var mainstartTime=startTime.slice(0,-3);\n var mainendDate=EndDate.slice(0,-9);\n var endTime = parts[2].match(re);\n var mainendTime=endTime.slice(0,-3);\n\t//console.log(\"mainstartDate\");\n document.getElementById(\"fromDate\").value = mainstartDate;\n\tdocument.getElementById(\"fromTime\").value = mainstartTime;\n\tdocument.getElementById(\"toDate\").value = mainendDate;\n\tdocument.getElementById(\"toTime\").value = mainendTime;\n fetchDates();\n}", "function loadTimeline() {\n \t\t//Calls Google's API to retrieve all accessible calendars that have been prepended with Habitask's custom tag. In this case, all calendars created via Habitask are prepended with \"&c_\"\n\t \t\tgapi.client.load('calendar', 'v3', function() {\n\t \t\t\tvar calendarRequest = gapi.client.calendar.calendarList.list();\n\t\t \tcalendarRequest.execute(function(resp){\n\t\t \t\tcalendars.length=0;\n\t\t \t\tfor (var i=0;i<resp.items.length;i++) {\n\t\t \t\t\tif (resp.items[i].summary !== undefined) {\n \t\tif (resp.items[i].summary.substring(0, 3) == \"&c_\") {\n \t\t\t//Pushes each calendar to an object in the calendars array\n\t\t \t\t\t\t\tcalendars.push(new calendar(resp.items[i].summary.substring(3),resp.items[i].id));\n\t\t \t\t\t\t}\n\t\t \t\t\t}\n\t\t \t\t}\n\t\t \t\t//Displays the list of calendars in a drop down\n\t\t \t\t$('#plan-select').empty();\n\t\t \t\tfor (var i=0;i<calendars.length;i++)\n\t\t \t\t{\n\t\t \t\t\tif (i==curCalIndex)\n\t\t \t\t\t\t$('#plan-select').append('<option class=\"calselect\" selected value=\"'+i+'\" >'+calendars[i].name+'</option>');\n\t\t \t\t\telse \n\t\t \t\t\t\t$('#plan-select').append('<option class=\"calselect\" value=\"'+i+'\" >'+calendars[i].name+'</option>');\n\t\t \t\t}\n\t\t \t\t//Calls Google's API to retrieve all events from the current Calendar\n\t\t \t\tvar request = gapi.client.calendar.events.list({ 'calendarId': calendars[curCalIndex].id, 'orderBy': 'startTime', 'singleEvents': true });\n\n\t\t\t\t request.execute(function(resp) {\n\t\t\t\t \tif (resp.items)\n\t\t\t\t \t{\n\t\t\t\t \t\tevents.length=0;\n\t\t\t\t\t \tfor (var i = 0; i < resp.items.length; i++) {\n\t\t\t\t\t\t var parsedDate = new Date(resp.items[i].end.date);\n\t\t\t\t\t\t var curDate = new Date();\n\t\t\t\t\t\t if (curIndex==0 && parsedDate>=curDate)\n\t\t\t\t\t\t \tcurIndex = i;\n\t\t\t\t\t\t else\n\t\t\t\t\t\t \tcurIndex = 0;\n\t\t\t\t\t\t var fdate=(parsedDate.getMonth()+1)+'-'+(parsedDate.getDate()+1);\n\t\t\t\t\t\t if (resp.items[i].description && resp.items[i].description.search(\"&d_\"+user.email)!=-1)\n\t\t\t\t\t\t \tvar eventComplete = \"complete\";\n\t\t\t\t\t\t else \n\t\t\t\t\t\t \tvar eventComplete = \"ncomplete\";\n\t\t\t\t\t\t //Pushes each event to an object in the events array\n\t\t\t\t\t\t events[i] = new resource(resp.items[i].summary,resp.items[i].id,resp.items[i].location,resp.items[i].description,resp.items[i].start.date,fdate,eventComplete);\n\t\t\t\t\t \t}\n\t\t\t\t\t \tprintTimeline();\n\t\t\t\t \t}\n\t\t\t\t \telse\n\t\t\t\t \t\talert ('Calendar contains no Milestones');\n\t\t\t \t});\n\t\t \t});\n\n\t\t\t});\n\t\t}", "function plotDataToMap(mapService) {\n\n map.infoWindow.hide();\n\n // first determine which dataset will be used to define map extent\n // if ship track exists, it will automatically made the spatial extent otherwise next on the list checked will be used\n var lyrId = 0;\n var foundIt = 0;\n var inputs = dojo.query(\".list_item\"), input;\n var surveyId;\n var year;\n\n for (var i=0, il=inputs.length; i<il; i++) {\n if (inputs[i].checked) {\n foundIt = 1;\n }\n }\n if (foundIt === 0) {\n alert(\"You didn't pick anything to plot\");\n }\n else {\n var inputs = dojo.query(\".list_item\"), input;\n for (var i=0, il=inputs.length; i<il; i++) {\n if (inputs[i].name == \"Ship Track\") {\n lyrId = inputs[i].id;\n var queryTaskURL = \"http://service.ncddc.noaa.gov/arcgis/rest/services/OceanExploration/\";\n //var queryTaskURL = \"http://www.ln.ncddc.noaa.gov/arcgis/rest/services/OceanExploration/\";\n queryTaskURL += inputs[i].value;\n queryTaskURL += \"/MapServer/\";\n queryTaskURL += lyrId;\n }\n if (inputs[i].name == 'Ship Track (ECS)') {\n //Retrieve the survey ID and year for this cruise specified in the CSV file. \n //The format of column AA in the CSV file should be: \"Ship Track (ECS);<year>;<survey_id>;<ship_track_thumbnail.jpg>\"\n //These values are stored in the id and value fields in the HTML elements created starting at line 354.\n //Note: the survey ID can contain a wildcard, i.e. 'DAO301%'\n surveyId = inputs[i].id; \n year = inputs[i].value;\n var queryTaskURL = \"http://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/multibeam_dynamic/MapServer/0\";\n lyrId = -9999; //dummy value, not used. Bypasses code below.\n }\n }\n if (lyrId === 0) {\n var inputs = dojo.query(\".list_item\"), input;\n for (var i=0, il=inputs.length; i<il; i++) {\n lyrId = inputs[i].id;\n var queryTaskURL = \"http://service.ncddc.noaa.gov/arcgis/rest/services/OceanExploration/\";\n //var queryTaskURL = \"http://www.ln.ncddc.noaa.gov/arcgis/rest/services/OceanExploration/\";\n queryTaskURL += inputs[i].value;\n queryTaskURL += \"/MapServer/\";\n queryTaskURL += lyrId;\n }\n }\n // reset the map, removing any pre-existing drawn datasets\n var layersOnMap = map.layerIds.length;\n if (layersOnMap > 1) {\n map.removeAllLayers();\n map.addLayer(basemap);\n map.addLayer(basemapReference);\n map.addLayer(hoverTextLayer);\n map.addLayer(highlightLayer);\n map.addLayer(dataLayer);\n map.addLayer(listHighlightLayer);\n }\n // zoom the map the spatial extent of one of the datasets\n var queryTask = new esri.tasks.QueryTask(queryTaskURL);\n query = new esri.tasks.Query();\n query.returnGeometry = true;\n query.outFields = [\"*\"];\n \n if (inputs[0].name == 'Ship Track (ECS)') {\n query.where = \"SURVEY_ID LIKE'\" + surveyId + \"'\"; //If an ECS track, filter by the survey ID (can contain wildcard: %).\n }\n else {\n query.where = \"1=1\";\n }\n\n query.maxAllowableOffset = 1000; //generalize the returned geometry to 1km for performance\n\n queryTask.execute(query, function(fset) {\n if (fset.features.length > 0) {\n map.setExtent(esri.graphicsExtent(fset.features),true);\n }\n });\n // draw the datasets\n var inputs = dojo.query(\".list_item\"), input;\n for (var i=0, il=inputs.length; i<il; i++) {\n visible = [];\n if (inputs[i].checked) {\n visible.push(inputs[i].id);\n\n var mapServiceURL;\n var imageParameters;\n var layerDefs;\n var layerDrawingOptions;\n\n if (inputs[i].name == 'Ship Track (ECS)') {\n //If an ECS cruise, point to the multibeam_dynamic service with custom layerDefinitions and layerDrawingOptions.\n\n mapServiceURL = \"http://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/multibeam_dynamic/MapServer/\";\n imageParameters = new esri.layers.ImageParameters();\n imageParameters.format = 'PNG32';\n layerDefs = [];\n layerDefs[0] = \"SURVEY_ID LIKE'\" + surveyId + \"'\";\n \n //Set the line's color based on the year. Same as in createMarker() above. \n var symbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new esri.Color([0,0,0]), 2);\n if (year == \"2001\") symbol.setColor(new dojo.Color([0,0,255,1.0]));\n if (year == \"2002\") symbol.setColor(new dojo.Color([0,255,0,1.0]));\n if (year == \"2003\") symbol.setColor(new dojo.Color([255,0,0,1.0]));\n if (year == \"2004\") symbol.setColor(new dojo.Color([0,255,255,1.0]));\n if (year == \"2005\") symbol.setColor(new dojo.Color([255,0,255,1.0]));\n if (year == \"2006\") symbol.setColor(new dojo.Color([255,255,0,1.0]));\n if (year == \"2007\") symbol.setColor(new dojo.Color([255,128,0,1.0]));\n if (year == \"2008\") symbol.setColor(new dojo.Color([128,0,255,1.0]));\n if (year == \"2009\") symbol.setColor(new dojo.Color([236,0,140,1.0]));\n if (year == \"2010\") symbol.setColor(new dojo.Color([249,173,129,1.0]));\n if (year == \"2011\") symbol.setColor(new dojo.Color([255,255,255,1.0]));\n if (year == \"2012\") symbol.setColor(new dojo.Color([0,0,0,1.0,1.0]));\n if (year == \"2013\") symbol.setColor(new dojo.Color([76,187,23,1.0]));\n if (year == \"2014\") symbol.setColor(new dojo.Color([255,215,0],1.0));\n if (year == \"2015\") symbol.setColor(new dojo.Color([158,163,157,1.0]));\n if (year == \"2016\") symbol.setColor(new dojo.Color([137,112,68,1.0]));\n\n var renderer = new esri.renderer.SimpleRenderer(symbol);\n\n layerDrawingOptions = new esri.layers.LayerDrawingOptions();\n layerDrawingOptions.renderer = renderer;\n }\n else {\n mapServiceURL = \"http://service.ncddc.noaa.gov/arcgis/rest/services/OceanExploration/\";\n mapServiceURL += inputs[i].value;\n mapServiceURL += \"/MapServer\";\n imageParameters = new esri.layers.ImageParameters();\n imageParameters.layerIds = [visible];\n imageParameters.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW;\n }\n var GISLayer = new esri.layers.ArcGISDynamicMapServiceLayer(mapServiceURL,{\"imageParameters\":imageParameters});\n\n if (layerDefs) {\n //If an ECS cruise, set the layer definitions and custom layer drawing options on the dynamic map service.\n GISLayer.setLayerDefinitions(layerDefs);\n GISLayer.setLayerDrawingOptions([layerDrawingOptions]);\n }\n \n GISLayer.id = inputs[i].name;\n map.addLayer(GISLayer);\n }\n }\n }\n }", "function getData() {\n\tvar query = \"http://api.nytimes.com/svc/search/v2/articlesearch.json?q=\" + search + \"&api-key=\" + key;\n\trequest({\n\t\turl: query,\n\t\tjson: true\n\t}, \n\tfunction(error, response, data) {\n\t\tif (error) {\n\t\t\tthrow error;\n\t\t}\n\t\tvar urls = [];\n\t\tvar docs = data.response.docs;\n\t\tfor (var d in docs) {\n\t\t\turls.push(docs[d].web_url);\n\t\t}\n\t\tconsole.log(urls);\n\t});\n}", "function retrieveLatimesData(laTimesData){\n var dataSource = 'static-files/data/latimes-articles.json';\n jqueryNoConflict.getJSON(dataSource, renderLaTimesTemplate);\n}", "function fetchDailyTracks() {\n fetch(`${process.env.REACT_APP_BACKEND_URL}/daily_tracks`)\n // Authorization: `Bearer ${localStorage.getItem(\"token\")}`,\n // },\n .then((res) => res.json())\n .then((tracks) => {\n const thisDriverTracks = tracks.filter(\n (track) => track.user_id === count\n );\n if (thisDriverTracks.length > 0) {\n const last = thisDriverTracks[thisDriverTracks.length - 1];\n setDriverTrack(last);\n // console.log(last.user_id)\n setDriverId(last.user_id);\n // console.log(last.vehicle_id)\n setVehicleId(last.vehicle_id);\n // setTrackId(last.id)\n setTrackId(last.id)\n\n console.log(last);\n }\n });\n }", "function requestQuandlData(stock, startDate, endDate) {\n var quandl = \"https://www.quandl.com/api/v3/datasets/EURONEXT/\" + stock.code + \"?start_date=\" + startDate +\n \"&end_date=\" + endDate + \"&api_key=x-sv5jiML9zikPj8wjJy\";\n // console.log(quandl);\n if (stock != null) {\n if (!stock.already_imported) {\n var http = new XMLHttpRequest();\n http.open(\"GET\", quandl, true);\n http.onreadystatechange = function () {\n if (http.readyState == 4 && http.status == 200) {\n var response = JSON.parse(http.responseText);\n var dates = response.dataset.data.map(function (value, index) { return value[0]; })\n dates.reverse();\n var closes = response.dataset.data.map(function (value, index) { return value[4]; })\n closes.reverse();\n updateStockClose(stock, dates, closes);\n }\n }\n http.send();\n }\n }\n }", "function getCalendarData( first_day, last_day ){\r\n\r\n var date_format = 'dddd, Do MMMM YYYY h:mm a';\r\n\r\n $.ajax({\r\n url: 'https://woodlands.churchsuite.co.uk/embed/calendar/json?site=2',\r\n type: 'GET',\r\n dataType: 'jsonp',\r\n data: {\r\n date_start: first_day,\r\n date_end: last_day \r\n }\r\n })\r\n .done(function( data ) {\r\n buildSummaryListData( data, first_day, last_day );\r\n });\r\n }", "function getData() {\n let currentBreed = window.location.hash.substring(1);\n let req = new XMLHttpRequest (); //\n req.open(\"GET\", \"https://dog.ceo/api/breeds/list/all\");\n req.addEventListener(\"load\", parse);\n req.send();\n}", "function loadScheduleGridAll()\r\n\t{\r\n\t\tcurCampus = $('input[name=campus]:checked').val();\r\n\t\tvar curdate = new Date();\r\n\t\t$('#schedulegrid').load('/assets/php/schedulegrid.php?campus=' + curCampus + \r\n\t\t'&type=HS&year=1&form=remote&apptdate=' + curApptDate);\r\n\t}", "function getTracks() {\n vm.loader.start();\n MainService.getTracks()\n .then(function (response) {\n vm.trackList = response.data.tracks.track;\n })\n .finally(function() {\n vm.loader.complete();\n });\n }", "function setCalendar(dataset, variable, dateTime)\n{\n // Set the calendar. When the calendar arrives the map will be updated\n downloadUrl('wms', 'REQUEST=GetMetadata&item=calendar&dataset=' + dataset + \n '&variable=' + variable + '&dateTime=' + dateTime,\n function(req) {\n if (req.responseText == '') {\n // There is no calendar data. Just update the map\n $('calendar').innerHTML = '';\n $('date').innerHTML = '';\n $('time').innerHTML = '';\n $('utc').style.visibility = 'hidden';\n autoScale(); // this also updates the map\n return;\n }\n var xmldoc = req.responseXML;\n $('calendar').innerHTML =\n RicoUtil.getContentAsString(xmldoc.getElementsByTagName('calendar')[0]);\n // If this call has resulted from the selection of a new variable,\n // choose the timestep based on the result from the server\n if (newVariable) {\n var tIndex = parseInt(xmldoc.getElementsByTagName('nearestIndex')[0].firstChild.nodeValue);\n var tVal = xmldoc.getElementsByTagName('nearestValue')[0].firstChild.nodeValue;\n var prettyTVal = xmldoc.getElementsByTagName('prettyNearestValue')[0].firstChild.nodeValue;\n // Get the timesteps for this day and update the map\n getTimesteps(dataset, variable, tIndex, tVal, prettyTVal);\n } else if ($('t' + timestep)) {\n // Highlight the currently-selected timestep if it happens to\n // exist in this calendar\n $('t' + timestep).style.backgroundColor = '#dadee9';\n }\n }\n );\n}", "function load_grid(info) {\n $.get('/page_ajax/grid', function (res) {\n var title = info.param_obs.split('|')[0].split('_')[1];\n var rasgrad = gradient[info.desc.instrument.dec + '|' + info.desc.param_obs_desc];\n var list = '';\n for (var i = 0; i < rasgrad.length; i++) {\n list = list + '<div>' + rasgrad[i] + '</div>';\n }\n var html = res.replace('{title}', title).replace('{list}', list);\n $(\"#list-menu\").append(html);\n $(\"#date-grid\").datepicker({\n dateFormat: 'dd-mm-yy',\n beforeShowDay: enableAllTheseDays,\n defaultDate: grid_date[grid_date.length - 1]\n });\n loadhourgrid();\n $(\"#date-grid\").change(function () {\n loadhourgrid();\n });\n $(\"#hour-grid\").change(function () {\n loadImageObs();\n });\n loadImageObs();\n });\n}", "function preload() {\n mapimg = loadImage('https://api.mapbox.com/styles/v1/mapbox/dark-v9/static/' +\n clat + ',' + clon + ',' + zoom + '/' +\n ww + 'x' + hh +\n '?access_token=pk.eyJ1IjoiY29kZWxheCIsImEiOiJjajB4YW85ZDAwMDZqMnFvMjV3aTJhcXBjIn0.BVg7IY6eSobwp413mNf6TQ');\n // earthquakes = loadStrings('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.csv');\n earthquakes = loadStrings('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv');\n\n\n}", "function loadDataFromSpreadsheet(timelineDates) {\n // Load from excel\n $.getJSON(url, function (data) {\n var entry = data.feed.entry;\n var i = 0;\n\n $(entry).each(function () {\n // Start and end date handling\n var startSpreadSheetValue = data.feed.entry[i][\"gsx$start\"][\"$t\"];\n var startDate = null;\n if (startSpreadSheetValue) {\n startDate = new Date(startSpreadSheetValue);\n }\n\n var endSpreadSheetValue = data.feed.entry[i][\"gsx$end\"][\"$t\"];\n var endDate = null;\n if (endSpreadSheetValue) {\n if (endSpreadSheetValue == \"Today\") {\n endDate = new Date();\n } else {\n endDate = new Date(endSpreadSheetValue);\n }\n } else {\n endDate = new Date();\n }\n\n // Styling\n\n var period = data.feed.entry[i][\"gsx$period\"][\"$t\"];\n var style = \"\";\n var openDate = data.feed.entry[i][\"gsx$opendate\"][\"$t\"];\n\n if (period == \"Modern history\") {\n style = \"modern-history\";\n } else if (period == \"Before Jesus\") {\n style = \"before-jesus\";\n } else if (period == \"Jesus\") {\n style = \"jesus-earth\";\n }\n\n if (openDate == \"Open start\") {\n style = style + \" open-start\";\n } else if (openDate == \"Open end\") {\n style = style + \" open-end\";\n } else if (openDate == \"Open start and end\") {\n style = style + \" open-start-end\";\n }\n\n timelineDates.add({\n id: i + 1,\n title: data.feed.entry[i][\"gsx$title\"][\"$t\"],\n content: data.feed.entry[i][\"gsx$content\"][\"$t\"],\n type: data.feed.entry[i][\"gsx$type\"][\"$t\"],\n start: startDate,\n startCaption: data.feed.entry[i][\"gsx$startcaption\"][\"$t\"],\n end: endDate,\n endCaption: data.feed.entry[i][\"gsx$endcaption\"][\"$t\"],\n imageUrl: data.feed.entry[i][\"gsx$imageurl\"][\"$t\"],\n referenceUrl: data.feed.entry[i][\"gsx$referenceurl\"][\"$t\"],\n notes: data.feed.entry[i][\"gsx$notes\"][\"$t\"],\n className: style\n });\n i++;\n });\n });\n}", "function populateRecentCrisis() {\n // Make an AJAX Call to ReliefWebAPI\n $.ajax({\n type: \"GET\",\n url: `https://api.reliefweb.int/v1/reports?appname=caritas`,\n data: { preset: \"latest\" },\n dataType: \"json\",\n contentType: \"application/json\"\n })\n // If Done, Render the Result\n .done(result => renderRecentCrisis(result))\n // If Fail, Log the Error\n .fail(err => console.log(err));\n}", "function pageFunction_ForSeason172_oldCrawler(context) {\n // called on every page the crawler visits, use it to extract data from it\n var $ = context.jQuery;\n var result = [];\n var curr_year = '';\n var curr_month = '';\n\n $('table.calendario tr').each( function() {\n if ( $(this).find('th').first().text() !== '' ) {\n curr_year = $(this).find('th').first().text();\n }\n if ( $(this).find('th').last().text() !== '' ) {\n curr_month = $(this).find('th').last().text();\n }\n var days = $(this).find('td').first().text();\n var city = $(this).find('td:nth-child(3)').first().text();\n\n $(this).find('a').each( function() {\n var description = $(this).text();\n var link = $(this).attr('href');\n // Add each link to the result list:\n result.push({\n year: curr_year,\n month: curr_month,\n days: days,\n city: city,\n description : description,\n link : link\n });\n });\n });\n\n return result;\n}", "function getTracks(city){\n\t\t$http.get('playlist/' + city)\n\t\t.success(function(data){\n\t\t\t$scope.tracks = data.slice(0,7);\n\t\t})\n\t}", "function load_news(list) {\n\tvar object_list = list.hits.hits;\n\tconsole.log(JSON.stringify(object_list));\n\tfor (var i = 0; i < object_list.length; i++) {\n\t\t// Populate the values of the graph here\n\t\tcurr_latitude = object_list[i]._source.location[1];\n\t\tcurr_longitude = object_list[i]._source.location[0];\n\t\t//Check if the following variable is correct or not (most probably will require dominant emotion)\n\t\tobject_list[i]._source.img_source = image_emotion_mapper(object_list[i]._source.emotion);\n\n\t}\n\n}", "function filterBy(time) {\r\n var filters = ['==', 'Date', time];\r\n map.setFilter('earthquake-circles', filters);\r\n map.setFilter('earthquake-labels', filters);\r\n\r\n // Set the label to the timeline\r\n document.getElementById('time').textContent = time +'s';\r\n}", "function getHourly(URL){\n fetch(URL)\n .then(function (response) {\n if (response.ok) {\n return response.json();\n }\n throw new ERROR('Response not OK.');\n })\n .then(function (data) {\n console.log('Data from getHourly function:');\n console.log(data); //Let's see what we got back\n\n // Store 12 hours of data to session storage\n var hourData = [];\n let todayDate = new Date();\n var nowHour = todayDate.getHours();\n console.log(`nowHour is: ${nowHour}`);\n for (let i = 0, x = 11; i <= x; i++)\n if (nowHour < 24) {\n hourData[nowHour] = data.properties.periods[i].temperature + \",\" + data.properties.periods[i].windSpeed + \",\" + data.properties.periods[i].icon;\n sessStore.setItem(`hour${nowHour}`, hourData[nowHour]);\n nowHour++;\n }\n else {\n nowHour = nowHour - 12;\n hourData[nowHour] = data.properties.periods[i].temperature + \",\" + data.properties.periods[i].windSpeed + \",\" + data.properties.periods[i].icon;\n sessStore.setItem(`hour${nowHour}`, hourData[nowHour]);\n nowHour = 1;\n }\n\n // Get the shortForecast value from the first hour (the current hour)\n // This will be the condition keyword for setting the background image\n sessStore.setItem('shortForecast', data.properties.periods[0].shortForecast);\n\n // Call the buildPage function\n buildPage();\n })\n .catch(error => console.log('There was a getHourly error: ', error));\n }", "function loadWeatherData() {\n var cityName = findCityName(BOAT_NAME);\n\n data(QUERY_FORECAST+cityName,function (city){\n var today = new Date();\n var event={id:0,temp:city.list[0].temp.day+\" °C\",direction:city.list[0].deg, speed:city.list[0].speed,\n textColor:\"black\",start:today,color:\"transparent\",allDay:true, icon:city.list[0].weather[0].icon, stick:true};\n $('#calendar').fullCalendar('removeEvents',0);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n\n var tomorrow = new Date().setDate(today.getDate()+1);\n event={id:1,temp:city.list[1].temp.day+\" °C\",direction:city.list[1].deg, speed:city.list[1].speed,\n textColor:\"black\",start:tomorrow,color:\"transparent\",allDay:true, icon:city.list[1].weather[0].icon};\n $('#calendar').fullCalendar('removeEvents',1);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n\n var thirdDay = new Date().setDate(today.getDate()+2);\n event={id:2,temp:city.list[2].temp.day+\" °C\",direction:city.list[2].deg, speed:city.list[2].speed,\n textColor:\"black\",start:thirdDay,color:\"transparent\",allDay:true, icon:city.list[2].weather[0].icon};\n $('#calendar').fullCalendar('removeEvents',2);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n\n var fourthDay = new Date().setDate(today.getDate()+3);\n event={id:3,temp:city.list[3].temp.day+\" °C\",direction:city.list[3].deg, speed:city.list[3].speed,\n textColor:\"black\",start:fourthDay,color:\"transparent\",allDay:true, icon:city.list[3].weather[0].icon};\n $('#calendar').fullCalendar('removeEvents',3);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n\n var fifthDay = new Date().setDate(today.getDate()+4);\n event={id:4,temp:city.list[4].temp.day+\" °C\",direction:city.list[4].deg, speed:city.list[4].speed,\n textColor:\"black\",start:fifthDay,color:\"transparent\",allDay:true, icon:city.list[4].weather[0].icon};\n $('#calendar').fullCalendar('removeEvents',4);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n\n var sixthDay = new Date().setDate(today.getDate()+5);\n event={id:5,temp:city.list[5].temp.day+\" °C\",direction:city.list[5].deg, speed:city.list[5].speed,\n textColor:\"black\",start:sixthDay,color:\"transparent\",allDay:true, icon:city.list[5].weather[0].icon};\n $('#calendar').fullCalendar('removeEvents',5);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n\n var seventhDay = new Date().setDate(today.getDate()+6);\n event={id:6,temp:city.list[6].temp.day+\" °C\",direction:city.list[6].deg, speed:city.list[6].speed,\n textColor:\"black\",start:seventhDay,color:\"transparent\",allDay:true, icon:city.list[6].weather[0].icon};\n $('#calendar').fullCalendar('removeEvents',6);\n $('#calendar').fullCalendar( 'renderEvent', event,true);\n });\n}", "function load(year, country){\n var start = year + '01010000';\n var end = (year +1) + '01010000';\n var q = $q.defer();\n\n console.log('-------x-------', country, countries[country]);\n\n var params = {\n securityToken: setup.token,\n documentType: 'A72', // 'A75',\n processType: 'A16',\n In_Domain: countries[country],\n periodStart: start,\n periodEnd: end\n }\n;\n var url = setup.entsoeURL + '/api?' + querystring.stringify(params);\n console.log(url);\n\n const options = {\n url: url,\n headers: {\n 'Content-type': 'application/json'\n }\n };\n\tconsole.log(url);\n request.get(url, function(error, response, xml) {\n if (error) {\n console.log(error);\n } else {\n parseString(xml, function(err, data) {\n if(err){\n console.log(err);\n }\n if (data && data['GL_MarketDocument']) {\n var timeSeries = data['GL_MarketDocument'].TimeSeries\n console.log(timeSeries[0].Period);\n var start = moment(timeSeries[0].Period[0].timeInterval[0].start[0]);\n console.log('start', start.format('YYYYMMDDHHmm'));\n var values = [];\n timeSeries.forEach(item => {\n var value = {\n x: start.unix() *1000,\n y: parseFloat(item.Period[0].Point[0].quantity[0])\n }\n values.push(value);\n start.add(1, 'W');\n //result[psrName] = parseFloat(value);\n// console.log(value, item.Period[0].resolution);\n })\n var chart = {\n key: 'Fill level',\n country: country,\n periodStart: start.format('YYYYMMDDHHmm'),\n periodEnd: end,\n source: url.replace(setup.token,'...entsoe token...'),\n cachedate: new Date(),\n values: values\n }\n q.resolve(chart);\n } else {\n console.log(JSON.stringify(data, null, 2));\n q.resolve(data);\n }\n })\n }\n })\n return q.promise;\n}", "function graba(latitud, longitud)\n{\n\n var fecha = new Date().toJSON().slice(0, 10);\n var today = new Date();\n var h = today.getHours();\n var m = today.getMinutes();\n var s = today.getSeconds();\n if (m < 10) {\n m = \"0\" + m\n }\n ;\n if (s < 10) {\n s = \"0\" + s\n }\n ;\n var hora = h + \":\" + m + \":\" + s;\n var key = 'AIzaSyB6LYglGPstG1CRRxblYWPRfV_AXRvy_AY';\n $(\"#geograba\").load(\"http://www.macle.com.ar/parking/inspar.php\", {latitud: latitud, longitud: longitud, fecha: fecha, hora: hora, key: key});\n}", "function getHistory(lon, lat, callback) {\n loading();\n removeMarkers();\n \n // Create start location\n markers.originMarker = new L.Marker(new L.LatLng(lat, lon), { icon: iconStart });\n map.addLayer(markers.originMarker);\n markers.originMarker.bindPopup('<strong>Start here</strong>');\n \n // Create CartoDB query\n var query = \"SELECT \" +\n \"ST_AsGeoJSON(s.wkb_geometry) AS geomjson, \" +\n \"*, \" +\n \"ST_Distance(ST_GeomFromText('POINT(\" + lon + \" \" + lat + \")', 4326), ST_SetSRID(s.wkb_geometry, 4326)) AS distance \" +\n \"FROM sd_hrb_historical_sites AS s \" +\n \"LEFT JOIN sd_hrb_historical_sites_details_201111 AS d ON (CAST(TRIM(s.hrb_number) AS numeric) = CAST(d.hrb AS numeric))\" + \n \"ORDER BY distance ASC \" +\n \"LIMIT 20\";\n var request = cartoRequest + query;\n \n // Get nearest sites\n $.getJSON(request + '&callback=?', function(data) {\n stopLoading();\n if (typeof data.rows != 'undefined') {\n data = data.rows;\n }\n else {\n displayError('We were unable to find any historical sites.');\n return;\n }\n \n // Aggregate and format\n var formatted = {};\n var r;\n for (r in data) {\n formatted[data[r].hrb] = formatted[data[r].hrb] || {};\n formatted[data[r].hrb].geo = $.parseJSON(data[r].geomjson);\n formatted[data[r].hrb].date_designated = data[r].date_designated || formatted[data[r].hrb].date_designated || {};\n formatted[data[r].hrb].name = data[r].name_of_historic_site_or_structure || formatted[data[r].hrb].name || {};\n formatted[data[r].hrb].neighborhood = data[r].neighborhood || formatted[data[r].hrb].neighborhood || {};\n formatted[data[r].hrb].year = data[r].year || formatted[data[r].hrb].year || {};\n formatted[data[r].hrb].comm_plan_area = data[r].comm_plan_area || formatted[data[r].hrb].comm_plan_area || {};\n formatted[data[r].hrb].address = data[r].street__ + ' ' + data[r].street_name + ', ' + data[r].city + ', ' + data[r].zip_code;\n formatted[data[r].hrb].style = data[r].architectural_style || formatted[data[r].hrb].style || {};\n }\n \n // Add markers\n var f;\n markers.formatted = markers.formatted || {};\n for (f in formatted) {\n var closest = (f == data[0].hrb) ? true : false;\n var markerOptions = closest ? { icon: iconFinish } : { icon: iconHistory };\n markers.formatted[f] = markers.formatted[f] || {};\n markers.formatted[f].marker = new L.Marker(new L.LatLng(formatted[f].geo.coordinates[1], formatted[f].geo.coordinates[0]), markerOptions);\n map.addLayer(markers.formatted[f].marker);\n \n if (closest) {\n markers.formatted[f].marker.bindPopup(formatPopup(formatted[f], closest)).openPopup();\n }\n else {\n markers.formatted[f].marker.bindPopup(formatPopup(formatted[f], closest));\n }\n \n // Get new path on click\n markers.formatted[f].marker.on('click', function(sLon, sLat, eLon, eLat) {\n return function () {\n map.removeLayer(markers.routeDraw);\n getDirections(sLon, sLat, eLon, eLat, function() { });\n }\n }(lon, lat, formatted[f].geo.coordinates[0], formatted[f].geo.coordinates[1])); \n }\n \n // Get directions from mapquest\n var closestPoint = $.parseJSON(data[0].geomjson);\n getDirections(lon, lat, closestPoint.coordinates[0], closestPoint.coordinates[1], callback);\n });\n }", "async getCitationHistory(){\n //<== Html selectors ==>\n const citationDateClassName = \".gsc_oci_g_t\";\n const citationValClassName = \".gsc_oci_g_a\";\n // <== Logic ==>\n\n const page = this.page;\n const datesLst = await page.$$eval(citationDateClassName, (options) =>\n options.map((option) => option.textContent\n ));\n const valLst = await page.$$eval(citationValClassName, (options) =>\n options.map((option) => option.textContent\n ));\n\n this.json.yearscitation = [];\n var totalCitations = 0\n for (var i in valLst){\n const date = datesLst[i];\n totalCitations+= parseInt(valLst[i], 10)\n this.json.yearscitation.push(\n {\n [date]:valLst[i],\n }\n )\n }\n this.json.totalCitations = totalCitations\n\n }", "function initLaunchLibDateSearch() {\n\n if (end == \"\") {\n\n var xhr = $.get(\"https://launchlibrary.net/1.4/launch/\" + start);\n\n xhr.done(function (Info) {\n $(\"#display-info-divs\").empty();\n \n for (i = 0; i < Info.launches.length; i++) {\n var location = Info.launches[i].location.name;\n var mission = Info.launches[i].name;\n var missionId = Info.launches[i].id;\n //var rocketImg = Info.launches[i].rocket.imageURL;\n //var description = Info.launches[i].missions[0].description;\n\n\n\n //create results divs\n var a = $(\"<div>\");\n a.addClass(\"rocket\");\n a.text(mission);\n a.attr('id', missionId)\n $(\"#display-info-divs\").append(a);\n\n var br = document.createElement(\"br\");\n $(\"#display-info-divs\").append(br);\n };\n });\n\n\n }\n else {\n var xhr = $.get(\"https://launchlibrary.net/1.4/launch/\" + start + \"/\" + end);\n\n xhr.done(function (Info) {\n $(\"#display-info-divs\").empty();\n \n for (i = 0; i < Info.launches.length; i++) {\n var location = Info.launches[i].location.name;\n var mission = Info.launches[i].name;\n var missionId = Info.launches[i].id;\n //var rocketImg = Info.launches[i].rocket.imageURL;\n //var description = Info.launches[i].missions[0].description;\n\n\n //create results divs\n var a = $(\"<div>\");\n a.addClass(\"rocket\");\n a.text(mission);\n a.attr('id', missionId)\n $(\"#display-info-divs\").append(a);\n\n var br = document.createElement(\"br\");\n $(\"#display-info-divs\").append(br);\n };\n });\n }\n}", "function load(type) {\r\n\r\n\tvar method = 'history/24h';\r\n\tif(type == 1){\r\n \t\tmethod = 'history/24h';\r\n \t\ttickInterval = 12;\r\n\r\n \t\t$api.addCls($api.byId('timeInteval1'), 'current');\r\n \t\t$api.removeCls($api.byId('timeInteval2'), 'current');\r\n \t\t$api.removeCls($api.byId('timeInteval3'), 'current');\r\n\t}else if(type == 2){\r\n \t\tmethod = 'history/7d';\r\n\t\ttickInterval = 24;\r\n\r\n \t\t$api.addCls($api.byId('timeInteval2'), 'current');\r\n \t\t$api.removeCls($api.byId('timeInteval1'), 'current');\r\n \t\t$api.removeCls($api.byId('timeInteval3'), 'current');\r\n\r\n\t}else if(type == 3){\r\n \t\tmethod = 'history/30d';\r\n\t\ttickInterval = 42;\r\n\r\n \t\t$api.addCls($api.byId('timeInteval3'), 'current');\r\n \t\t$api.removeCls($api.byId('timeInteval1'), 'current');\r\n \t\t$api.removeCls($api.byId('timeInteval2'), 'current');\r\n\r\n\t}\r\n\r\n\tapi.ajax({\r\n\t\tmethod : 'get',\r\n\t\tcache : false,\r\n\t\tdataType : 'json',\r\n\t\treturnAll : false,\r\n\t\turl : global.getRequestUri() + '/gold-prices/' + method\r\n\t}, function(ret, err) {\r\n\t\tif (ret) {\r\n\t\t\tdata=[];\r\n\t\t\ttime =[];\r\n\r\n\t\t\tif(timer!=null)\r\n\t\t\t\twindow.clearInterval(timer);\r\n\r\n\t\t\tfor (var i in ret) {\r\n\r\n\t\t\t\tdata.push(ret[i].price);\r\n\r\n\t\t\t\tif(type == 1){\r\n\r\n\t\t\t \t\ttime.push(ret[i].createTime);\r\n\r\n\t\t\t \t\tif(i == (ret.length -1)){\r\n\t\t\t \t\t\tvar secDayTime = ret[0].createTime + 1000 * 60 * 60 * 24;//第二天的零点\r\n\t\t\t \t\t\tvar maxTime = ret[i].createTime;//数组的最大时间\r\n\t\t\t \t\t\tvar n = maxTime + 1000 * 60 * 5;//增加5分钟\r\n\r\n\t\t\t \t\t\twhile(secDayTime > n){\r\n\t\t\t \t\t\t\ttime.push(n);\r\n\t\t\t \t\t\t\tdata.push(null);\r\n\r\n\t\t\t \t\t\t\tn += 1000 * 60 * 5;\r\n\r\n\t\t\t \t\t\t}\t\t\t \t\t\t\r\n\t\t\t \t\t}\r\n\t\t\t\t}else if(type == 2){\r\n\t\t\t\t\ttime.push(ret[i].createTime);\r\n\t\t\t\t}else if(type == 3){\r\n\t\t\t\t\ttime.push(ret[i].createTime);\r\n\t\t\t \t\t//time.push(global.formatDate(ret[i].createTime, 'MM-dd'));\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\r\n\t\r\n\t\t\tchart(data,time,type);\r\n\r\n\t\t\tif(type ==1)\r\n\t\t\t\ttimer = window.setInterval(\"load(\"+type+\");\", 300000);\r\n\r\n\t\t} else {\r\n\t\t\tglobal.setErrorToast();\r\n\t\t}\r\n\t});\r\n\r\n}", "function newYorkTimes() {\n const queryURL = \"https://api.nytimes.com/svc/topstories/v2/home.json?api-key=R1a31F4tBjCUaM2ho8GtIFsrSdtXt30M\";\n\n // Creating an AJAX call for the specific city button being clicked\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function(response) {\n console.log(response);\n let articleAbsOne = response.results[1].abstract;\n let articleAbsTwo = response.results[6].abstract;\n let articleAbsThree = response.results[12].abstract;\n let articleAbsFour = response.results[18].abstract;\n let articleAbsFive = response.results[24].abstract;\n let articleAbsSix = response.results[30].abstract;\n \n let articleTitleOne = response.results[1].title;\n let articleTitleTwo = response.results[6].title;\n let articleTitleThree = response.results[12].title;\n let articleTitleFour = response.results[18].title;\n let articleTitleFive = response.results[24].title;\n let articleTitleSix = response.results[30].title;\n \n let articleUrlOne = response.results[1].url;\n let articleUrlTwo = response.results[6].url;\n let articleUrlThree = response.results[12].url;\n let articleUrlFour = response.results[18].url;\n let articleUrlFive = response.results[24].url;\n let articleUrlSix = response.results[30].url;\n\n let articleTitleElOne = document.getElementById('dayOne');\n let articleTitleElTwo = document.getElementById('dayTwo');\n let articleTitleElThree = document.getElementById('dayThree');\n let articleTitleElFour = document.getElementById('dayFour');\n let articleTitleElFive = document.getElementById('dayFive');\n let articleTitleElSix = document.getElementById('daySix');\n \n let articleAbsElOne = document.getElementById('dayOneAbs');\n let articleAbsElTwo = document.getElementById('dayTwoAbs');\n let articleAbsElThree = document.getElementById('dayThreeAbs');\n let articleAbsElFour = document.getElementById('dayFourAbs');\n let articleAbsElFive = document.getElementById('dayFiveAbs');\n let articleAbsElSix = document.getElementById('daySixAbs');\n\n let articleButtonElOne = document.getElementById('dayOneButton')\n let articleButtonElTwo = document.getElementById('dayTwoButton')\n let articleButtonElThree = document.getElementById('dayThreeButton')\n let articleButtonElFour = document.getElementById('dayFourButton')\n let articleButtonElFive = document.getElementById('dayFiveButton')\n let articleButtonElSix = document.getElementById('daySixButton')\n \n\n let articleTitleArray = [articleTitleOne, articleTitleTwo, articleTitleThree, articleTitleFour, articleTitleFive, articleTitleSix]\n let articleTitleElArray = [articleTitleElOne, articleTitleElTwo, articleTitleElThree, articleTitleElFour, articleTitleElFive, articleTitleElSix]\n let articleAbsArray = [articleAbsOne, articleAbsTwo, articleAbsThree, articleAbsFour, articleAbsFive, articleAbsSix];\n let articleAbsElArray = [articleAbsElOne, articleAbsElTwo, articleAbsElThree, articleAbsElFour, articleAbsElFive, articleAbsElSix]\n let articleButtonArray = [articleButtonElOne, articleButtonElTwo, articleButtonElThree, articleButtonElFour, articleButtonElFive, articleButtonElSix]\n let articleUrlArray = [articleUrlOne, articleUrlTwo, articleUrlThree, articleUrlFour, articleUrlFive, articleUrlSix]\n\n for(let i = 0; i<articleAbsArray.length; i++){\n $(articleTitleElArray[i]).append(articleTitleArray[i]);\n $(articleAbsElArray[i]).append('\"' + articleAbsArray[i] + '\"');\n $(articleButtonArray[i]).attr('href', articleUrlArray[i]);\n }\n })}", "function getNHCForecastsLinks(nhc_season, nhc_number, nhc_adv)\n{ \n var results = [];\n var nhc_kml = 'http://www.nhc.noaa.gov/storm_graphics/api/AL' + nhc_number + nhc_season + '_' + nhc_adv + 'adv_';\n // Forecast Track\n results.push(nhc_kml + 'TRACK.kmz');\n // Forecast Cone\n results.push(nhc_kml + 'CONE.kmz');\n // Forecast Watches\n results.push(nhc_kml + 'WW.kmz');\n return results;\n \n}", "function get_station_dynamic(station_num, timestamp_from, timestamp_to) {\n\tvar ourRequest = new XMLHttpRequest();\n\tourRequest.open('GET', '/station/' + station_num + '/' + timestamp_from + '/' + timestamp_to);\n\n\tourRequest.onload = function() {\n\t\tvar ourData = JSON.parse(ourRequest.responseText);\n\t\trenderHTML_Dynamic(ourData, station_num);\n\t};\n\n\tourRequest.send();\n}", "function loadDates(event) {\n if(event){\n event.preventDefault();\n }\n var activeTab = $(this);\n var link;\n var userId = localStorage.getItem('userId');\n if(activeTab.attr(\"id\")=== \"myDates\"){\n link = \"https://thawing-sea-85558.herokuapp.com/profile/\" + userId;\n } else {\n link = \"https://thawing-sea-85558.herokuapp.com/profile/\";\n }\n $.ajax({\n url: link,\n headers: {\n 'Authorization': 'Bearer ' + localStorage.getItem('idToken')\n }\n }).done(function(response){\n $('#dates').empty();\n response.forEach(function(date){\n loadDate(date);\n });\n }).fail(function (jqXHR, textStatus, errorThrown) {\n console.log(errorThrown);\n });\n}", "function gVizloaded() {\n\nconsole.log(\"google visualization is loaded!\");\n\n\n//the url is split on the question mark \"?\"\n//if there's a question mark and something on the other side, its a 2 item array\n//if the length is greater than 1 there's something in the url\n//if its 1 or less than 1, then there's nothing in the url and default year is added\n\n\n\tvar mURL = History.getState().cleanUrl;\n\tvar mqueryArray = mURL.split(\"?\");\n\n//default year is 1990 but if the length of the queryarray exceeds 1, \n//default year becomes the queryarray split, and the second half is taken\n\n\tvar mdefaultYear = \"1990\";\n\n\tif (mqueryArray.length > 1) {\n\n\t\tmdefaultYear = mqueryArray[1].split(\"=\")[1];\n\t}\n\n\n\n//$ is a jquery function, refers back to index page, when the button is clicked, new data is shown\n//as it starts with a \".\"\" grab by class name\n\n\n$(\".btn-success\").on(\"click\", displayNewData);\n\n//here, the hash # says to grab by id, ie the year\n//the round parenthesis () indicates that click is a function and not a property (as it might be since it comes after a \".\")\n\n$(\"#year_\"+mdefaultYear).click();\n\n\n}", "function LoadDayNight() {\n document.getElementById('lblLatLon').innerHTML = \"-,-\";\n smaptype = map.getMapTypeId();\n var isDayNight;\n if (document.getElementById(\"cbxAutoRefresh\").checked == true) {\n isDayNight = false;\n if (document.getElementById(\"cbxDayNight\").checked == false) {\n\n isDayNight = false;\n }\n\n }\n else {\n isDayNight = document.getElementById(\"cbxDayNight\").checked;\n }\n\n if (isDayNight == true) {\n new DayNightOverlay({\n map: map\n });\n }\n else {\n createmap();\n PlotGraph();\n PlotVesselLocation();\n\n if ($(document.getElementById(\"ddlPorts\")).val() > 0)\n GetSelectdPorts();\n\n\n var isNearPorts = document.getElementById(\"cbxNearByPorts\").checked;\n if (isNearPorts == true) {\n GetNearByPorts();\n }\n\n if (document.getElementById(\"cbxClouds\").checked == true)\n LoadWeather();\n\n if ($(document.getElementById(\"txtFromDate\")).val() != \"\" && $(document.getElementById(\"txtToDate\")).val() != \"\")\n ViewRoute();\n\n if (document.getElementById(\"cbxAutoRefresh\").checked == true) {\n if (document.getElementById(\"cbxDayNight\").checked == true) {\n new DayNightOverlay({\n map: map\n });\n }\n }\n\n\n google.maps.event.addListener(map, 'mousemove', function (event) {\n\n getLocalAndGMT(event);\n });\n }\n\n if (smaptype == \"SATELLITE\" || smaptype == \"satellite\") {\n\n map.setMapTypeId(google.maps.MapTypeId.SATELLITE);\n }\n if (smaptype == \"ROADMAP\" || smaptype == \"roadmap\") {\n map.setMapTypeId(google.maps.MapTypeId.ROADMAP);\n }\n}", "function loadEventTable(json) {\n var response = JSON.parse(json.responseText);\n var parsedEvent;\n\n var events;\n var datetime;\n var page;\n var img;\n var category;\n let startDate;\n let startTime;\n let endDate;\n let endTime;\n for (var i = 0; i < response.length; i++) {\n parsedEvent = JSON.parse(transformResponseEvent(response[i]));\n startDate = parsedEvent.start_date;\n startTime = parsedEvent.start_time;\n endDate = parsedEvent.end_date;\n endTime = parsedEvent.end_time;\n if (startDate === endDate) {\n\n if (parsedEvent.allday === true) {\n datetime = startDate + \"<br>\" + \"All day\";\n } else {\n datetime = startDate + \"<br>\" + startTime + \"-\" + endTime;\n }\n } else {\n if (parsedEvent.allday === true) {\n datetime = startDate + \"<br>-<br>\" + endDate;\n } else {\n datetime = startDate + \" \" + startTime + \"<br>-<br>\" + endDate + \" \" + endTime;\n }\n }\n if (parsedEvent.webpage) {\n\n page = parsedEvent.webpage;\n } else {\n page = \"No page\";\n }\n if (parsedEvent.imageurl === null) {\n img = \"No image\";\n } else {\n img = \"<img alt='Image upload' src=\\\"\" + parsedEvent.imageurl + \"\\\" width=\\\"50\\\"\\>\";\n }\n if (parsedEvent.categories.length === 0) {\n\n category = \"No category\";\n } else {\n category = parsedEvent.categories[0].name;\n }\n events = events +\n \"<tr>\" +\n \"<td>\" + parsedEvent.title + \"</td>\" +\n \"<td width=\\\"75\\\">\" + parsedEvent.status + \"</td>\" +\n \"<td width=\\\"100\\\">\" + parsedEvent.location + \"</td><td>\" +\n \"<a href=\\\"mailto:\" + parsedEvent.organizer + \"\\\">\" + parsedEvent.organizer + \"</a>\" + \"</td>\" +\n \"<td width=\\\"125\\\">\" + datetime + \"</td>\" +\n \"<td>\" + \"<a href=\\\"\" + parsedEvent.webpage + \"\\\">\" + page + \"</a>\" + \"</td>\" +\n \"<td width=\\\"50\\\">\" + img + \"</td>\" +\n \"<td width=\\\"75\\\">\" + category + \"</td>\" +\n \"<td>\" + \"<button onclick=\\\"editData(\\'events\\',\" + parsedEvent.id + \")\\\" style=\\\"width: 100%\\\">Edit</button>\" + \"<br>\" + \"<button onclick=\\\"confirmDeletion(\\'events\\',\" + parsedEvent.id + \")\\\" style=\\\"width: 100%\\\">Delete</button>\" + \"</td>\" +\n \"</tr>\";\n\n // Add starts for the alarms\n alarmTimes.push([parsedEvent.extra, startDate, startTime, parsedEvent.title]);\n }\n document.getElementById(\"event_table\").innerHTML = addEventTableHeader() + events;\n setAlarms(alarmTimes);\n}", "function loadList(array){\n array.forEach(function(item){\n addSearchHistory(item.city, item.id, item.temp, item.weather_el, item.weather_icon);\n });\n}", "function setEvents(){\n var date = createDateStrForDBRequest(new Date());\n $.ajax({\n url: '/events?fromDate=' + date,\n type: 'GET',\n dataType: 'json',\n success: (data) => { \n if(data.length>0){ setEventsToPage(data) }\n else { setEventsToPage(staticData) }\n }\n });\n}", "function loadContent(date) {\n\n readAllData()\n .then(function () {\n loadGuideAreas((date === \"1\") ? guide1411 : guide1912);\n startNavigation((date === \"1\") ? bike1411 : bike1912);\n });\n}", "function showTracks(url) {\n if (url === null) { //return if the url is null\n return;\n }\n $.ajax({ //get track info\n url: url,\n headers: {\n 'Authorization': 'Bearer ' + access_token\n },\n success: function (tracks) {\n document.getElementById('headinfo').innerText = \"Playlist - \" + tracks.items.length + \" songs\";\n var trackList = new Array(0);\n for (var i = 0; i < tracks.items.length; i++) {\n trackList.push(tracks.items[i].track); //add track object to list from playlist track object\n }\n displayTracks(trackList);\n }\n });\n\n}", "async fetchTimeframes() {\n const url = this.createUrlBuilder().build();\n return timeframes_1.parseTimeframesPage(await this.request(url, \"txt\" /* TEXT */));\n }", "function createUrl() {\n todaysDate = moment().format(\"YYYY-MM-DD\");\n return movieAndDinnerObject.movieShowtimeUrl + todaysDate + \"&lat=\" + movieAndDinnerObject.lat + \"&lng=\" + movieAndDinnerObject.long + movieAndDinnerObject.movieShowtimeAPIKey\n // http://data.tmsapi.com/v1.1/movies/showings?startDate=2019-04-10&lat=32.876709&lng=-117.206601&api_key=stp9q5rsr8afbrsfmmzvzubz\n }", "function apiRequest(start_lat, start_lng, end_lat, end_lng, query) {\n $(document).ready(function() {\n $.get(endpoint + \"?start_lat=\" + start_lat + \"&start_lng=\" + start_lng + \"&end_lat=\" + end_lat + \"&end_lng=\" + end_lng + \"&perpage=5000&food=\" + query ,function(data) {parseAndDraw(data);});\n });\n}", "function initialize() {\n\n\tvar mapOptions = {\n\t\tzoom: 13,\n center: new google.maps.LatLng(40.735, -73.98)\n };\n\n var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);\n\n\t// Object holding all of April trip data\n\tvar trip_data = {};\n\n\t// Array holding all of the markers for the map\n\tvar markers = [];\n\n\t// Array holding all of the Polylines for the map\n\tvar lines = [];\n\n\t$.ajax({\n \ttype: \"GET\",\n \turl: \"citibike_data.csv\",\n \tdataType: \"text\",\n \tsuccess: function(data) {\n\t\t\tprocessData(map, markers, lines, trip_data, data);\n\t\t}\n \t});\n\t\n\tvar updateButton = document.getElementById(\"update\");\n\n\tupdateButton.onclick = function(){\n\t\tvar new_date = document.getElementById(\"datePicker\").value;\n\t\tupdateDisplay(map, markers, lines, trip_data[new_date]);\n\t}; \n}", "function showMassInerData(url) {\n $('#massInerData').empty();\n $.getJSON(url, null, function (mic) {\n var re = /-?\\d+/;\n var m = re.exec(mic.DateOfID);\n mic.DateOfID = new Date(parseInt(m[0])).toLocaleDateString();\n $('#massInerTmp').tmpl(mic)\n .appendTo('#massInerData');\n });\n }", "function progressiveLoad(name) {\n // each day in time frame\n var days = getFullDateRange(name);\n $.each(days, function(index, day) {\n $.getJSON('/' + api + '/data/' + name + '?day=' + day, function(data) {\n // iterate over this day\n $.each(data.tweets, function(i, tweet) {\n allTweets[name] = allTweets[name] || {};\n allTweets[name][tweet._id] = new PollutionPin(tweet, name, map);\n });\n // add polling handlers first time around\n /*if(index == 0) {\n changePolls[name] = setTimeout(function() {\n longpoll(name, data.updateSequence);\n }, 60000);\n }*/\n });\n });\n}", "function applyDataSourceToBuildings(source, show)\r\n{\r\n if(source == 'tenure1')\r\n {\r\n if(!show)\r\n {\r\n var legend = document.getElementById(\"weatherReadout\");\r\n \r\n legend.innerHTML = \"\";\r\n legend.classList.add(\"weatherReadout_disabled\");\r\n\r\n var buildings = DataEntity.getEntitiesByType(EntityType.Building);\r\n\r\n for(var b of buildings)\r\n {\r\n var feature = b.data.obj;\r\n \r\n if(feature.polygon)\r\n {\r\n feature.polygon.material.color.setValue(Cesium.Color.fromBytes(255, 0, 0, a));\r\n }\r\n }\r\n }\r\n else\r\n {\r\n var buildings = DataEntity.getEntitiesByType(EntityType.Building);\r\n\r\n var testColours = [\r\n [1.0, 0.2, 0.2],\r\n [0.2, 0.8, 0.2],\r\n [0.25, 0.2, 0.8],\r\n [0.8, 0.8, 0.2],\r\n [0.2, 0.9, 1.2],\r\n [1.0, 0.2, 1.0],\r\n [0.8, 0.8, 0.8],\r\n ];\r\n\r\n for(var b of buildings)\r\n {\r\n var feature = b.data.obj;\r\n \r\n if(feature.polygon)\r\n {\r\n var colourIndex = parseInt(b.data.surveyData.tenure1);\r\n\r\n if(isNaN(colourIndex) || (colourIndex < 0 || colourIndex >= testColours.length))\r\n {\r\n colourIndex = 0;\r\n }\r\n\r\n var r = Cesium.Color.floatToByte(testColours[colourIndex][0]);\r\n var g = Cesium.Color.floatToByte(testColours[colourIndex][1]);\r\n var b = Cesium.Color.floatToByte(testColours[colourIndex][2]);\r\n var a = 255;\r\n\r\n feature.polygon.material.color.setValue(Cesium.Color.fromBytes(r, g, b, a));\r\n } \r\n }\r\n\r\n var legend = document.getElementById(\"weatherReadout\");\r\n \r\n legend.innerHTML = \"\";\r\n legend.classList.remove(\"weatherReadout_disabled\");\r\n\r\n var hdr = document.createElement('span');\r\n hdr.innerHTML = \"Legend - Land tenure<br/>\";\r\n hdr.classList.add(\"legend_header\");\r\n\r\n legend.appendChild(hdr);\r\n\r\n var tbl = document.createElement('table');\r\n var row = tbl.insertRow();\r\n\r\n row.insertCell(); row.insertCell();\r\n\r\n [ \"Don't know\",\r\n \"Refused to answer\",\r\n \"Other\",\r\n \"Question was not asked\",\r\n \"Freehold Ownership Title\",\r\n \"Sale & Purchase Deed\",\r\n \"Temporary Registration Letter\",\r\n \"Right to Work Land\",\r\n \"Proof of Payment/Installment\",\r\n \"Relocation Letter\"\r\n ].map((srcName, index) => {\r\n row = tbl.insertRow();\r\n var hdrCell = row.insertCell();\r\n hdrCell.classList.add('overlay_entity_fieldname');\r\n hdrCell.innerHTML = `${srcName}:`;\r\n\r\n var colNames = [-99, -88, -77, -66, 1, 2, 3, 4, 5, 6];\r\n\r\n var colourIndex = colNames[index];\r\n\r\n if(isNaN(colourIndex) || (colourIndex < 0 || colourIndex >= testColours.length))\r\n {\r\n colourIndex = 0;\r\n }\r\n\r\n var valCell = row.insertCell();\r\n valCell.classList.add('overlay_entity_value');\r\n valCell.innerHTML = colNames[index];\r\n valCell.style.color = `rgb(${testColours[colourIndex][0] * 255.0}, ${testColours[colourIndex][1] * 255.0}, ${testColours[colourIndex][2] * 255.0})`;\r\n });\r\n\r\n legend.appendChild(hdr);\r\n legend.appendChild(tbl);\r\n }\r\n }\r\n}", "async episodesByFeedUrl(url, options = {}) {\n const { since, ...rest } = options;\n return await this.fetch(\"/episodes/byfeedurl\", {\n ...rest,\n since: toEpochTimestamp(since),\n url,\n });\n }", "function eventGet() {\n\n var queryURL = \"https://api.seatgeek.com/2/events?q=\" + city + \"&client_id=MTU4NDgzNTh8MTU1MzEzMjIxOC4xNg\";\n\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\n urlPool = [];\n captionPool = [];\n linkPool = [];\n for (var i=0; i<8; i++) {\n var imgURL = response.events[i].performers[0].image;\n if(imgURL === null){\n\n imgURL = \"https://imgplaceholder.com/280x210/ff7f7f/333333/fa-image\";\n }\n\n var caption = response.events[i].title;\n var eventLink = response.events[i].url;\n urlPool.push(imgURL);\n captionPool.push(caption);\n linkPool.push(eventLink);\n }\n\n display();\n googleGeo();\n \n \n })\n\n}" ]
[ "0.59534645", "0.5704004", "0.56738406", "0.5584763", "0.5536832", "0.55356735", "0.54992044", "0.5481779", "0.54745203", "0.53911555", "0.536495", "0.53428376", "0.5298982", "0.52808666", "0.52697635", "0.5224987", "0.5213285", "0.5205841", "0.5203202", "0.5192459", "0.5188182", "0.5161315", "0.51434827", "0.51424366", "0.5130492", "0.5130161", "0.51155376", "0.5112713", "0.51039493", "0.50959355", "0.50874764", "0.5086453", "0.5066463", "0.50494254", "0.5044083", "0.5039326", "0.50365585", "0.5032477", "0.50319123", "0.5030397", "0.5009131", "0.50064254", "0.5002225", "0.49801162", "0.49785545", "0.4972195", "0.4957043", "0.49561995", "0.4955753", "0.49505168", "0.4950128", "0.49348846", "0.49319357", "0.4928773", "0.4921036", "0.49102166", "0.4906473", "0.49047273", "0.4898847", "0.4894825", "0.48944786", "0.48914987", "0.48899257", "0.48882362", "0.48874444", "0.48844066", "0.48719656", "0.486466", "0.48611304", "0.4859976", "0.48563898", "0.48551744", "0.48535582", "0.48526567", "0.48435736", "0.48434162", "0.48374423", "0.4833763", "0.4830878", "0.48301005", "0.4829152", "0.4825267", "0.4822293", "0.4822219", "0.4818639", "0.48156932", "0.48081198", "0.4806723", "0.4806018", "0.48044062", "0.48015723", "0.48009393", "0.47985697", "0.47913504", "0.4788055", "0.47876278", "0.47875044", "0.4786662", "0.47866485", "0.47844577" ]
0.7356602
0
Returns a date range in the form [start, end] given a String: "20151003" or "20151001..20151005"
function parseDateRange(input) { var dateRange = input.split(".."); if(dateRange.length != 2) { dateRange = [dateRange[0], dateRange[0]]; } return dateRange; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _getDateRange(dateStr, granularity) {\n var start = new Date(dateStr);\n var end = new Date(dateStr);\n\n switch (granularity) {\n case 'year':\n end.setUTCFullYear(end.getUTCFullYear() + 1);\n break;\n case 'month':\n end.setUTCMonth(end.getUTCMonth() + 1);\n break;\n case 'day':\n end.setUTCDate(end.getUTCDate() + 1);\n break;\n }\n return {\n inclusiveStart: start,\n exclusiveEnd: end\n };\n}", "function parseDateRange(str) {\n\t\tstr = \"\"+str;\n\n\t\tvar m = str.match(/^\\s*(\\d\\d)\\/(\\d\\d)\\/(\\d{4})\\s*-\\s*(\\d\\d)\\/(\\d\\d)\\/(\\d{4})\\s*$/)\n\n\t\treturn {\n\t\t\tstart: new Date(parseInt(m[3]), parseInt(m[2]) - 1, parseInt(m[1])),\n\t\t\tend: new Date(parseInt(m[6]), parseInt(m[5]) - 1, parseInt(m[4]) + 1),\n\t\t};\n\t}", "function range(start, end){\n let arr = [start];\n if(start >= end){return start};\n return arr.concat(range(start+1, end));\n }", "function getInterval(unit, range) {\n var intervals = [];\n for (let x of range.by(unit)) {\n intervals.push(x.format('YYYY-MM-DD'));\n }\n return intervals;\n}", "generate_ip_range(range) {\n var result = [];\n\n // split range and determine prefix and range\n var pos = range.lastIndexOf(\".\");\n var prefix = range.substr(0, pos);\n var rng = range.substr(pos + 1);\n\n // split the range and determine first and last index\n var parts = rng.split(\"-\");\n var first = parseInt(parts[0], 10);\n var last = parseInt(parts[1], 10);\n\n // construct the result\n for (var index = first; index <= last; index++) {\n result.push(prefix + \".\" + index);\n }\n\n // completed\n return result;\n }", "getYearRange(date) {\n let year = [], first, last;\n date.forEach(e => {\n year.push(parseInt(e))\n })\n first = year[0];\n last = year[year.length-1]\n year.forEach(e => {\n first = e < first ? e : first;\n last = e > last ? e : last;\n })\n return({first,last});\n }", "function range(start, end) {\n rangeArr = [];\n for(var i = start; i <= end; i++) {\n rangeArr.push(i);\n }\n return rangeArr;\n}", "function makeRange() {\n var result = {}\n /*\n year: 2015,\n month: [3, 4],\n days: [[30, 31], [1,2,3,4,5,6]],\n */\n ;\n\n var startDate = new Date($scope.range.start);\n var endDate = new Date($scope.range.end);\n\n var yearNum = startDate.getFullYear();\n\n var startDay = startDate.getDate();\n var endDay = endDate.getDate();\n\n\n var startMonthNum = (startDate.getMonth() + 1);\n var endMonthNum = (endDate.getMonth() + 1);\n\n var daysInStartDate = new Date(yearNum, startMonthNum, 0).getDate();\n\n //define month array\n console.log(startMonthNum + ' - ' + endMonthNum);\n if(startMonthNum === endMonthNum) {\n month = [startMonthNum, null];\n } else {\n month = [startMonthNum, endMonthNum];\n }\n\n //define days array\n var days = [[],[]];\n\n if(month[1] === null) {\n for(var i = startDay; i <= endDay; i++) {\n days[0].push(i);\n }\n\n days[1] = null;\n } else {\n for(var i = startDay; i <= daysInStartDate; i++) {\n days[0].push(i);\n }\n\n for(var j = 1; j <= endDay; j++){\n days[1].push(j);\n }\n }\n\n result.year = yearNum;\n result.month = month;\n result.days = days;\n\n return result;\n }", "function range(start, end) {\n if (start >= end) {\n return [];\n } else {\n return [start].concat(range(start + 1, end));\n }\n}", "findRangeofDates(){ \n\t\tlet min=new Date(2030,1,1); \n\t\tlet max=new Date(1990,1,1);\n\t\tconst ar=this.props.data;\n\t\tfor(let i=0;i<ar.length;i++){\n\t\t\tif(ar[i].start<min)\n\t\t\t\tmin=ar[i].start;\n\t\t\tif(ar[i].end>max)\n\t\t\t\tmax=ar[i].end;\n\t\t}\n\t\tthis.min=min;\n\t\tthis.max=max;\n\t}", "function range(start, end) {\n //Input sanitization\n if (!start && !end) return \"Please provide both start and end points\";\n if (!end) return \"Please provide an endpoint\";\n if (isNaN(start) || isNaN(end))\n return \"Both start and end points must be numbers\";\n\n let arr = [];\n while (start <= end) {\n arr.push(start);\n start++;\n }\n return arr;\n}", "function getDates( dateStr ){\n var re = /\\s*(?:to|$)\\s*/;\n var dates = dateStr.split(re);\n var start = new Date( dates[0] );\n if (dates.length >1 ) {\n var end = new Date( dates[1] ); } else {var end= null; }\n\n return{ startDate: start, endDate: end };\n}", "getRange(start, end) {\n return Array.from(\n {\n length: (parseInt(end, 10) + 1) - parseInt(start, 10)\n },\n (v, k) => k + parseInt(start, 10)\n );\n }", "function range(start,end)\n{\n let resultat=[];\n if (end >= start) {\n for (let i=start;i <= end;i++) {\n resultat.push(i);\n }\n return resultat;\n }\n if (start > end) {\n for (let i=start;i >= end;i--) {\n resultat.push(i);\n }\n return resultat;\n }\n}", "function range(start, end = -1) {\n\n if (end == -1) {\n end = start;\n start = 0;\n }\n\n let range = [];\n\n for (let element = start; element <= end; element++) {\n range.push(element);\n }\n\n return range;\n}", "function range(start, end){\n if(arguments.length < 2){\n end = start;\n start = 0;\n }\n \n var result = [];\n for (var i = start; i <= end; i++){\n result.push(i);\n }\n return result;\n}", "function range(start,end){\r\n\t\tvar foo = [];\r\n\t\tfor (i = start; i < end; i++) {\r\n\t\t\tfoo.push(i);\r\n\t\t}\r\n\t\treturn foo;\r\n\t}", "function range(start, end) {\n start = Number(start) || 0;\n if (end === undefiend) {\n return function getEnd(end) {\n return getRange(start, end);\n }\n } else {\n end = Number(end) || 0;\n return getRange(start, end);\n }\n function getRange(start, end) {\n let ret = [];\n for (let i = start; i <= end; i++) {\n ret.push(i);\n }\n return ret;\n }\n}", "function genRange(start, end) {\n var range = [];\n while (start <= end) {\n range.push(start);\n start += 1;\n }\n return range;\n }", "function range(start, end) {\n var foo = [];\n for (var i = start; i <= end; i++) {\n foo.push(i);\n }\n return foo;\n}", "function createRange(start, end) {\n const range = Array.from({ length: end - start + 1 }, function(item, index) {\n return index + start;\n });\n return range;\n}", "function RangeFromStr(str) {\n\tvals = str.split('-');\n\t\n\tthis.low = vals[0];\n\tthis.high = vals[1];\n}", "function range(start, end) {\n let r = [];\n for (let i = start; i < end; i++) {\n r.push(i);\n }\n return r;\n}", "function range(start, end) {\n var arr = [];\n for (var i = start; i <= end; i++) {\n arr.push(i);\n }\n return arr;\n}", "function range(start, end)\n{\n if (arguments.length == 1) {\n var end = start;\n start = 0;\n }\n \n var r = [];\n if (start < end) {\n while (start != end)\n r.push(start++);\n }\n else {\n while (start != end)\n r.push(start--);\n }\n return r;\n}", "function range(start, end) {\n\tvar arr = [];\n\tfor (let i = start; i <= end; i++) {\n\t\tarr.push(i);\n\t}\n\treturn arr;\n}", "function range (startNumber, endNumber) {\n const range2 = [];\n if (startNumber < endNumber) {\n for (let i = startNumber; i <= endNumber; i++) {\n range2.push(i);\n }\n } else {\n for (let i = startNumber; i >= endNumber; i--) {\n range2.push(i);\n }\n }\n return range2;\n}", "function range(start, end) {\n if (start +1 >= end) {\n return [];\n }\n return (range(start, end-1).concat([end-1]));\n}", "function range(start, end) {\n // YOUR CODE GOES BELOW HERE //\n // declaring and assigning the variable range to an empty array\n let range = [];\n \n // conditional statement that runs if start is less than end parameter\n if(start < end) {\n \n /** for loop that initialzies i as the starting number and will iterate\n * by 1 each time i is less than or equal to end */\n for(var i = start; i <= end; i++) {\n // using push method to push i to range array each time loop runs\n range.push(i);\n }\n // conditional else that runs if start is greater than end\n } else {\n /** for loop that initialzies i as the start number and will iterate\n * by 1 each time i is greater than or equal to end */\n for(var i = start; i >= end; i--) {\n // using push method to push i to range array each time loop runs\n range.push(i)\n }\n // returning range array\n } return range\n \n // YOUR CODE GOES ABOVE HERE //\n}", "function range(start, end) {\n // YOUR CODE GOES BELOW HERE //\n // create an Array literal that we can push into\n let myArr = [];\n \n // make an iff statement that says if the start is less than the end\n if(start < end){\n // then we loop, starting at the start, and ending at the end, increment up\n for(let i = start; i <= end; i++){\n // push i at each iteration into our Array literal\n myArr.push(i);\n // finally return it. \n } return myArr;\n } else {\n // same down here we just flip the greater than or equal sign with end\n for (let i = start; i >= end; i--){\n myArr.push(i);\n } return myArr;\n }\n \n \n // YOUR CODE GOES ABOVE HERE //\n}", "function rangei(start,end){\n return Array(end - start + 1).fill().map((_, idx) => start + idx)\n\n // var list = [];\n // for (var i = lowEnd; i <= highEnd; i++) {\n // list.push(i);\n // return list\n}", "function range(startNum, endNum)\t{ \n\tlet arr = [];\n\t for (let i = startNum +1; i < endNum; i++)\n\t arr.push(i)\n\t return arr;\n}", "function range(start, end) {\n if ((start && end) || end == 0) {\n let result = [];\n for (i = start; i <= end; i++) {\n result.push(i);\n }\n return result;\n }\n\n if (arguments[1] === undefined) {\n return function rangeTill(end) {\n let result = [];\n for (i = start; i <= end; i++) {\n result.push(i);\n }\n return result;\n };\n }\n}", "function between(string, start, end){\n var startAt = string.indexOf(start) + start.length;\n var endAt = string.indexOf(end, startAt);\n \n return string.slice(startAt, endAt);\n}", "function range(start, end) {\r\n\tif (end === undefined) {\r\n\t\tend = start;\r\n\t\tstart = 0;\r\n\t}\r\n\tlet res = []; //newArray(end-start,0);\r\n\tstart = start | 0;\r\n\tfor (let i = start; i < end; i++) res.push(i);\r\n\treturn res;\r\n}", "function getRange(cmpStr) {\n if (cmpStr == \"\") { return {}; }\n var compareArr = cmpStr.split(\",\");\n var maxDate = null;\n var minDate = null;\n for (var i = 0; i < compareArr.length; i++) {\n if (compareArr[i] == 'g.today') {\n minDate = new Date();\n }\n else if (compareArr[i] == 'l.today') {\n maxDate = new Date();\n }\n }\n return { minDate: minDate, maxDate: maxDate };\n}", "function rangeOfNumbers(startNum, endNum) {\r\n return startNum === endNum\r\n ? [startNum]\r\n : rangeOfNumbers(startNum, endNum - 1).concat(endNum);\r\n}", "function rangeOfNumbers(startNum, endNum) {\n if (startNum === endNum) {\n return [startNum];\n }\n return rangeOfNumbers(startNum, endNum - 1).concat(endNum);\n}", "function range() {\n\tvar beg = arguments[0];\n\tvar end = arguments[1];\n\tvar num = [];\n\tfor(var i = beg; i <= end; i++) {\n\t\tnum.push(i);\n\t}\n\treturn num;\n}", "function rangeOfNumbers(startNum, endNum) {\n return startNum === endNum\n ? [startNum]\n : rangeOfNumbers(startNum, endNum - 1).concat(endNum);\n}", "function range(start, end) {\n\t if (end === undefined) {\n\t end = start;\n\t start = 0;\n\t }\n\t let res = []; //newArray(end-start,0);\n\t start = start | 0;\n\t for (let i = start; i < end; i++) res.push(i);\n\t return res;\n\t}", "function gSrange(begin,end,inclusive) {\n var start = begin;\n var finish = end;\n var reverse = false;\n if (finish<start) {\n start = finish;\n finish = begin;\n reverse = true;\n if (!inclusive) {\n start = start + 1;\n }\n } else {\n if (!inclusive) {\n finish = finish - 1;\n }\n }\n\n var result,number,count;\n for (result=[], number=start, count=0 ; number<=finish ; number++,count++) {\n result[count] = number;\n }\n if (reverse) {\n result = result.reverse()\n }\n var object = gSlist(result);\n object.toList = function() {\n return gSlist(this.values());\n }\n return object;\n}", "range(_start, _end) {\n var result = []\n for (let i=_start; i<=_end; i++){\n result.push(i)\n }\n return result\n }", "function range(min,max)\n{\n var output = [];\n return rangeRec(min,max,output);\n}", "function rangeArr(start, end) {\n if (start === end) return [];\n\n return ([start].concat(rangeArr(start + 1, end)));\n\n}", "constructor(stringRange) {\n stringRange = stringRange.trim();\n this.range = [];\n // if the last char is a +, the range includes all indexes greater than the last one parsed\n this.forever = false;\n if (stringRange.slice(-1) === '+') {\n this.forever = true;\n stringRange = stringRange.slice(0, -1);\n }\n if (stringRange.length) {\n stringRange.split(',').forEach(el => {\n let dashRange = el.split('-');\n if (dashRange.length === 1) {\n this.range.push(parseInt(el));\n } else {\n let from = parseInt(dashRange[0]);\n let to = parseInt(dashRange[1]);\n if (to >= from) {\n for (let i = from; i <= to; ++i) {\n this.range.push(i);\n }\n } else {\n console.error(`range a-b with a > b \"${from}-${to}\"`);\n }\n }\n });\n }\n }", "function ageRange(range) {\n var parts = range.split('-')\n return parts.map(function (p) {\n return parseInt(p, 10) || false\n })\n}", "function makeIntervals(start, end, unit) {\n var r = moment.range(start, end);\n return getInterval(unit, r);\n}", "function substringByStartAndEnd(input, start, end) {}", "function range(start, end, step=1) {\n // Your code here\n var list = [];\n var counter = 0;\n if(typeof step === \"undefined\"){\n step = 1;\n }\n for(var i = start; i!=end+step; i= i+step){\n list[counter] = i;\n counter++;\n }\n return list;\n}", "function rangeArray(start, end) {\n var arr = []\n for (var i=start; i <= end; i++) {\n\tarr.push(i)\n }\n return arr\n}", "function dateRange(startDate, endDate) {\n let start = startDate.split('-');\n let end = endDate.split('-');\n let startYear = parseInt(start[0]);\n let endYear = parseInt(end[0]);\n let dates = [];\n\n for (let i = startYear; i <= endYear; i++) {\n let endMonth = i !== endYear ? 11 : parseInt(end[1]) - 1;\n let startMon = i === startYear ? parseInt(start[1]) - 1 : 0;\n for (let j = startMon; j <= endMonth; j = j > 12 ? j % 12 || 11 : j + 1) {\n let month = j + 1;\n let displayMonth = month < 10 ? '0' + month : month;\n dates.push([i, displayMonth, '01'].join('-'));\n }\n }\n return dates;\n}", "function range(start, end) {\n return Array.apply(null, Array(end-start)).map(function (_, i) {return i + start;})\n}", "function range(start, end, inc=1) {\n var array = [];\n if(start <= end){\n for (var i=start; i<= end; i+= inc){\n array.push(i);\n }\n }\n else{\n for(var x = start; x>= end; x-=inc){\n array.push(x);\n }\n }\n return array;\n}", "function range(begin, end) {\n return test(ch => begin <= ch && ch <= end).desc(`${begin}-${end}`);\n}", "function range(start, end) {\n let numArray = [];\n for (let i = start; i <= end; i++) {\n numArray.push(i);\n }\n return numArray;\n}", "function range(end, start=1) {\n return Array(end - start + 1).fill().map((_, idx) => start + idx)\n}", "function range(start, end){\n // your code here...\n let sequentialArr = []; // nice use of let, we won't be using it in bootcamp prep,\n // but you are free to use it in your code. However,\n // perhaps be consistent, you use `let` some places and `var` other places -AZ\n if (start > end) { // this condition is not needed -AZ\n return sequentialArr;\n }else {\n // missing indentation below\n for (var i = start; i <= end; i++) {\n sequentialArr.push(i) // missing semicolon -AZ\n }\n }\n return sequentialArr;\n}", "function range (start, end) {\n var step = 1;\n if (arguments.length == 3) {\n\tstep = arguments[2];\n }\n\n var result = [];\n \n if (step < 0) {\n\tfor(var i = start; i >= end; i += step) {\n\t result.push(i);\n\t}\n } else {\n\tfor(var i = start; i <= end; i += step) {\n\t result.push(i);\n\t}\n }\n\n return result;\n}", "function myRange(start, end) {\n let range = [];\n for (var i = start; i < end; i++) {\n range.push(i);\n }\n range.push(end);\n console.log(range);\n}", "getAllInBetweenDates(sStartDate, sEndDate) {\n let aDates = [];\n //to avoid modifying the original date\n const oStartDate = new Date(sStartDate);\n const oEndDate = new Date(sEndDate);\n while (oStartDate <= oEndDate) {\n aDates = [...aDates, new Date(oStartDate)];\n oStartDate.setDate(oStartDate.getDate() + 1)\n }\n return aDates;\n }", "function range(start, stop) {\n let rangeArr = [];\n\n while (start <= stop) {\n rangeArr.push(start);\n start++;\n }\n return rangeArr;\n }", "function range(start, end) {\n // YOUR CODE GOES BELOW HERE //\n //first i am going to make an array to hold the numbers .pushed into it for the range function\n var rangeArray = [];\n //here i am making a loop that will decide in which order the number will be returned \n \n if(start < end){\n for(var i = start; i <= end; i++){\n rangeArray.push(i);\n }\n }else{\n for(var i = start; i >= end; i--){\n rangeArray.push(i);\n }\n }\n // i am returning range array so that it will hold the new output data\n return (rangeArray); \n \n \n // YOUR CODE GOES ABOVE HERE //\n}", "function range (start,end, step = 1){\n var array =[];\n if(start < end){\n for(var i=start; i<=end; i = i + step){\n array.push(i);\n }\n return array;\n }\n else {\n for (var j = start; j>=end; j = j + step){\n array.push(j);\n }\n return array;\n }\n}", "function getRange(array, start, end) {\n const ret = [];\n if (start <= array.length && start <= end) {\n for (let i = start - 1; i < end; i++) {\n ret.push(array[i]);\n }\n }\n return ret;\n}", "function listOfIntegers(start, end = 100) {\n start = start || 17;\n let range = [];\n\n while (start <= 100) {\n if (start % 11 === 0) {\n range.push(start);\n start += 11;\n } else {\n start++;\n }\n }\n\n return range;\n}", "function defineStartAndEndDate(list) {\n var minDate;\n var maxDate;\n\n $.each(list, function(key, value) {\n if (moment(value[4], 'MM-DD-YY', true).isValid()) {\n if (!minDate && !maxDate) {\n minDate = value[4];\n maxDate = value[4];\n }\n if (moment(value[4]).isBefore(minDate)) {\n // if(value[4] < minDate) {\n minDate = value[4];\n }\n if (moment(value[4]).isAfter(maxDate)) {\n // if(value[4] > maxDate) {\n maxDate = value[4];\n }\n }\n });\n\n minDate = moment(minDate,'MM-DD-YY').format('YYYY-MM-DD');\n maxDate = moment(maxDate,'MM-DD-YY').format('YYYY-MM-DD');\n\n $('.input-daterange').attr('data-start-date',minDate);\n $('#startdate').val(minDate);\n $('.input-daterange').attr('data-end-date',maxDate);\n $('#enddate').val(maxDate);\n }", "function range(start, end) {\n return Array(end - start + 1).fill().map((_, idx) => start + idx)\n}", "function range(start, end) {\n let nums = [];\n for (let i = start; i < end; i++) {\n nums.unshift(i);\n }\n return nums;\n }", "function rangeOrIndividual(start, end) {\n if (end - start === 1) {\n return start;\n }\n else {\n return [start, end];\n }\n}", "function getDateRange() {\n let date = new Date(today);\n\n let y = date.getFullYear(), m = date.getMonth();\n let lastDay = new Date(y, m + 1, 0);\n\n collectedDates = \"\";\n for (let i = 1; i <= lastDay.getDate(); i++) {\n \n let currentDate = String(i).padStart(2, '0');\n let currentMonth = String(date.getMonth() + 1).padStart(2, '0');\n let currentYear = date.getFullYear();\n\n \n collectedDates += `<span class=\"date-item\" data-date=\"${currentDate}-` +\n `${currentMonth}-${currentYear}\">${i}</span>`;\n }\n return collectedDates;\n}", "function strToRange(str) {\r\n /* Clean String */\r\n if (typeof str != 'undefined') {\r\n str = str.replace(/%|\\$/ig,'');\r\n\r\n var obj = {\r\n min: parseInt(Math.round(str)),\r\n max: parseInt(Math.round(str))\r\n };\r\n\r\n if (str.split(',').length > 1) {\r\n obj.min = parseInt(Math.round(str.split(',')[0]));\r\n obj.max = parseInt(Math.round(str.split(',')[1]));\r\n }\r\n\r\n return obj;\r\n }\r\n}", "function range() {\n var start, end, step;\n var array = [];\n\n switch(arguments.length){\n case 0:\n throw new Error('range() expected at least 1 argument, got 0 - must be specified as [start,] stop[, step]');\n return array;\n case 1:\n start = 0;\n end = Math.floor(arguments[0]) - 1;\n step = 1;\n break;\n case 2:\n case 3:\n default:\n start = Math.floor(arguments[0]);\n end = Math.floor(arguments[1]) - 1;\n var s = arguments[2];\n if (typeof s === 'undefined'){\n s = 1;\n }\n step = Math.floor(s) || (function(){\n throw new Error('range() step argument must not be zero');\n })();\n break;\n }\n\n if (step > 0){\n for (var i = start; i <= end; i += step){\n array.push(i);\n }\n } else if (step < 0) {\n step = -step;\n if (start > end){\n for (var i = start; i > end + 1; i -= step){\n array.push(i);\n }\n }\n }\n return array;\n}", "function getRanges(text) {\n // function to return lower - upper\n const ranged = (lower, upper) =>\n Array.apply(null, Array(upper - lower + 1)).map((_, i) => lower + i);\n let bounds = text.split(\"-\").map(Number);\n // if single int, return the int\n if (bounds.length === 1) {\n return bounds;\n }\n // incorrect syntax\n if (bounds.length > 2) {\n return [];\n }\n // check that the range they input isn't too wild\n const size = Math.abs(bounds[0] - bounds[1]);\n const weeksInSchoolYear = 24;\n const maxClassesPerWeek = 4; // 3 lectures + 1 tutorial\n const maxLectures = weeksInSchoolYear * maxClassesPerWeek;\n if (size > maxLectures) {\n return [];\n }\n // swap upper & lower bound if they are out of order\n if (bounds[1] < bounds[0]) {\n return ranged(bounds[1] || 0, bounds[0] || 0);\n } else {\n return ranged(bounds[0] || 0, bounds[1] || 0);\n }\n}", "function getIndexRange( start, end ) {\n let startIndex = 0;\n let endIndex = 10000000000;\n let startSet = false;\n let endSet = false;\n for (let i = 0; i < data.length; i++) {\n let d = data[i];\n if (d.seconds >= start && startSet == false) {\n startSet = true;\n startIndex = i;\n } \n else if (d.seconds >= end && endSet == false) {\n endSet = true;\n endIndex = i-1;\n break;\n }\n }\n return [startIndex, endIndex]\n}", "function rangeOfNumbers(startNum, endNum) {\n return startNum === endNum\n ? [startNum]\n : [...rangeOfNumbers(startNum, endNum - 1), endNum];\n}", "function range(start, end, step=1) {\n // Your code here\n var final_arr = [];\n if (step == 0) {\n return \"The range cannot have intervals of zero\";\n }\n else if (step < 0) {\n for (var i = start; i >= end; i += step) {\n final_arr.push(i);\n }\n }\n else {\n for (var i = start; i <= end; i += step) {\n final_arr.push(i);\n }\n } \n return final_arr;\n}", "function betweenDays(num1, num2) {\r\n var arr = [];\r\n for(let i = num1; i <= num2; i++) {\r\n arr.push(\"2019-11-0\" + i)\r\n }\r\n return arr;\r\n}", "function range(start, end, step=1){\n\tlet ret_array = [];\n\tif(start-end>0){\n\t\tfor(let i=start; i>end-1; i+=step){\n\t\t\tret_array.push(i);\n\t\t}\n\t}\n\tfor(let i=start; i<end+1; i+=step){\n\t\tret_array.push(i);\n\t}\n\treturn ret_array;\n}", "function createArrayFromAtoB(start, end){\n var range = [];\n while (start <= end){\n range.push(start);\n start ++;\n }\n return range;\n}", "function rangeOfNumbers(startNum, endNum) {\n if (startNum === endNum) {\n return [startNum]\n } else {\n var numbers = rangeOfNumbers(startNum, endNum - 1)\n numbers.push(endNum)\n return numbers\n }\n}", "function getDateRange(dataPassed){\r\n //called by slider start & end dates\r\n //get first object in dataPassed array, and get the date\r\n firstObj=dataPassed.filter(function(d,i){\r\n return i==0\r\n });\r\n //get last object in dataPassed array, and get the date\r\n lastObj = dataPassed.filter(function(d,i){\r\n return i==dataPassed.length-1\r\n });\r\n datefrom = firstObj[0].Day;\r\n dateto=lastObj[0].Day;\r\n datejson = {'start':datefrom,'end':dateto};\r\n return datejson;\r\n }", "function getYearsRange(startYear) {\n var currentYear = new Date().getFullYear(), years = [];\n startYear = startYear || 1980;\n while ( startYear <= currentYear ) {\n var nextYear = startYear++;\n var yearObj = {name: nextYear , value : nextYear};\n years.push(yearObj);\n } \n return years;\n }", "function range(start,end) {\n\n const resultArray=[];\n const arraySize = Math.abs(end - start) + 1;\n\n for (let i=0 ; i<arraySize ; i++) {\n\n if (start<end) {\n resultArray.push(start+i);\n } else {\n resultArray.push(start-i);\n }\n \n }\n console.log(resultArray);\n return resultArray;\n}", "function getRange(start, stop) {\n const nums = [];\n\n for (let num = start; num < stop; num += 1) {\n nums.push(num);\n }\n}", "function rangeToSegments(start, end) {\n\n\t\tvar rowCnt = t.getRowCnt();\n\t\tvar colCnt = t.getColCnt();\n\t\tvar segments = []; // array of segments to return\n\n\t\t// day offset for given date range\n\t\tvar rangeDayOffsetStart = dateToDayOffset(start);\n\t\tvar rangeDayOffsetEnd = dateToDayOffset(end); // an exclusive value\n\t\tvar endTimeMS = +end.time();\n\t\tif (endTimeMS && endTimeMS >= nextDayThreshold) {\n\t\t\trangeDayOffsetEnd++;\n\t\t}\n\t\trangeDayOffsetEnd = Math.max(rangeDayOffsetEnd, rangeDayOffsetStart + 1);\n\n\t\t// first and last cell offset for the given date range\n\t\t// \"last\" implies inclusivity\n\t\tvar rangeCellOffsetFirst = dayOffsetToCellOffset(rangeDayOffsetStart);\n\t\tvar rangeCellOffsetLast = dayOffsetToCellOffset(rangeDayOffsetEnd) - 1;\n\n\t\t// loop through all the rows in the view\n\t\tfor (var row=0; row<rowCnt; row++) {\n\n\t\t\t// first and last cell offset for the row\n\t\t\tvar rowCellOffsetFirst = row * colCnt;\n\t\t\tvar rowCellOffsetLast = rowCellOffsetFirst + colCnt - 1;\n\n\t\t\t// get the segment's cell offsets by constraining the range's cell offsets to the bounds of the row\n\t\t\tvar segmentCellOffsetFirst = Math.max(rangeCellOffsetFirst, rowCellOffsetFirst);\n\t\t\tvar segmentCellOffsetLast = Math.min(rangeCellOffsetLast, rowCellOffsetLast);\n\n\t\t\t// make sure segment's offsets are valid and in view\n\t\t\tif (segmentCellOffsetFirst <= segmentCellOffsetLast) {\n\n\t\t\t\t// translate to cells\n\t\t\t\tvar segmentCellFirst = cellOffsetToCell(segmentCellOffsetFirst);\n\t\t\t\tvar segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);\n\n\t\t\t\t// view might be RTL, so order by leftmost column\n\t\t\t\tvar cols = [ segmentCellFirst.col, segmentCellLast.col ].sort();\n\n\t\t\t\t// Determine if segment's first/last cell is the beginning/end of the date range.\n\t\t\t\t// We need to compare \"day offset\" because \"cell offsets\" are often ambiguous and\n\t\t\t\t// can translate to multiple days, and an edge case reveals itself when we the\n\t\t\t\t// range's first cell is hidden (we don't want isStart to be true).\n\t\t\t\tvar isStart = cellOffsetToDayOffset(segmentCellOffsetFirst) == rangeDayOffsetStart;\n\t\t\t\tvar isEnd = cellOffsetToDayOffset(segmentCellOffsetLast) + 1 == rangeDayOffsetEnd; // +1 for comparing exclusively\n\n\t\t\t\tsegments.push({\n\t\t\t\t\trow: row,\n\t\t\t\t\tleftCol: cols[0],\n\t\t\t\t\trightCol: cols[1],\n\t\t\t\t\tisStart: isStart,\n\t\t\t\t\tisEnd: isEnd\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn segments;\n\t}", "function rangeToSegments(start, end) {\n\n\t\tvar rowCnt = t.getRowCnt();\n\t\tvar colCnt = t.getColCnt();\n\t\tvar segments = []; // array of segments to return\n\n\t\t// day offset for given date range\n\t\tvar rangeDayOffsetStart = dateToDayOffset(start);\n\t\tvar rangeDayOffsetEnd = dateToDayOffset(end); // an exclusive value\n\t\tvar endTimeMS = +end.time();\n\t\tif (endTimeMS && endTimeMS >= nextDayThreshold) {\n\t\t\trangeDayOffsetEnd++;\n\t\t}\n\t\trangeDayOffsetEnd = Math.max(rangeDayOffsetEnd, rangeDayOffsetStart + 1);\n\n\t\t// first and last cell offset for the given date range\n\t\t// \"last\" implies inclusivity\n\t\tvar rangeCellOffsetFirst = dayOffsetToCellOffset(rangeDayOffsetStart);\n\t\tvar rangeCellOffsetLast = dayOffsetToCellOffset(rangeDayOffsetEnd) - 1;\n\n\t\t// loop through all the rows in the view\n\t\tfor (var row=0; row<rowCnt; row++) {\n\n\t\t\t// first and last cell offset for the row\n\t\t\tvar rowCellOffsetFirst = row * colCnt;\n\t\t\tvar rowCellOffsetLast = rowCellOffsetFirst + colCnt - 1;\n\n\t\t\t// get the segment's cell offsets by constraining the range's cell offsets to the bounds of the row\n\t\t\tvar segmentCellOffsetFirst = Math.max(rangeCellOffsetFirst, rowCellOffsetFirst);\n\t\t\tvar segmentCellOffsetLast = Math.min(rangeCellOffsetLast, rowCellOffsetLast);\n\n\t\t\t// make sure segment's offsets are valid and in view\n\t\t\tif (segmentCellOffsetFirst <= segmentCellOffsetLast) {\n\n\t\t\t\t// translate to cells\n\t\t\t\tvar segmentCellFirst = cellOffsetToCell(segmentCellOffsetFirst);\n\t\t\t\tvar segmentCellLast = cellOffsetToCell(segmentCellOffsetLast);\n\n\t\t\t\t// view might be RTL, so order by leftmost column\n\t\t\t\tvar cols = [ segmentCellFirst.col, segmentCellLast.col ].sort();\n\n\t\t\t\t// Determine if segment's first/last cell is the beginning/end of the date range.\n\t\t\t\t// We need to compare \"day offset\" because \"cell offsets\" are often ambiguous and\n\t\t\t\t// can translate to multiple days, and an edge case reveals itself when we the\n\t\t\t\t// range's first cell is hidden (we don't want isStart to be true).\n\t\t\t\tvar isStart = cellOffsetToDayOffset(segmentCellOffsetFirst) == rangeDayOffsetStart;\n\t\t\t\tvar isEnd = cellOffsetToDayOffset(segmentCellOffsetLast) + 1 == rangeDayOffsetEnd; // +1 for comparing exclusively\n\n\t\t\t\tsegments.push({\n\t\t\t\t\trow: row,\n\t\t\t\t\tleftCol: cols[0],\n\t\t\t\t\trightCol: cols[1],\n\t\t\t\t\tisStart: isStart,\n\t\t\t\t\tisEnd: isEnd\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn segments;\n\t}", "static range(min, max){\n\n let l = [];\n for(let i=min; i < max; i++) l.push(i);\n return l;\n\n }", "function parseRange(text) {\n\t\t\tvar dateFormat = options.altFormat,\n\t\t\t range = null;\n\t\t\tif (text) {\n\t\t\t\ttry {\n\t\t\t\t\trange = JSON.parse(text, function (key, value) {\n\t\t\t\t\t\treturn key ? $.datepicker.parseDate(dateFormat, value) : value;\n\t\t\t\t\t});\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\t\t\treturn range;\n\t\t}", "function allSchoolYearStarts(dateRange) {\n // dateRange: A 2-element array of Moment objects.\n // returns: An array of integers, each school year in the range.\n const schoolYearStarts = _.map(dateRange, toSchoolYear);\n return _.range(schoolYearStarts[0], schoolYearStarts[1] + 1);\n}", "function getDateArray(start, end) {\n\t\tvar arr = new Array();\n\n\t\twhile (start <= end) {\n\t\t\tarr.push(new Date(start));\n\t\t\tstart.setDate(start.getDate() + 1);\n\t\t}\n\t\t\n\t\treturn arr;\n\t}", "function range(start, end, step = 1) {\n // Your code here\n var array = [];\n\n if (step > 0) {\n for (var i = start; i <= end; i += step) array.push(i);\n } else {\n for (var i = start; i >= end; i += step) array.push(i);\n }\n return array;\n}", "function range() {\n const\n args = Array.from(arguments),\n ab = 1 !== args.length ? (\n args\n ) : args[0],\n [as, bs] = [ab[0], ab[1]].map(\n x => Array.isArray(x) ? (\n x\n ) : (undefined !== x.type) &&\n (x.type.startsWith('Tuple')) ? (\n listFromTuple(x)\n ) : [x]\n ),\n an = as.length;\n return (an === bs.length) ? (\n 1 < an ? (\n sequenceAList(as.map((_, i) => enumFromTo(as[i], bs[i])))\n ) : enumFromTo(as[0], bs[0])\n ) : [];\n}", "generateRange(min, max, suffix) {\n let range = [];\n for (let i = min; i <= max; i++){\n range.push(i + \" \" + suffix);\n }\n return range;\n }", "function createDateArray(start,end){\n let\n dateArray = [],\n dt = new Date(start);\n\n while (moment(dt).dayOfYear() <= moment(end).dayOfYear()) {\n dateArray.push(new Date(dt));\n dt.setDate(dt.getDate() + 1);\n }\n return dateArray;\n}", "static range(min, max){\n \n let l = [];\n for(let i=min; i < max; i++) l.push(i);\n return l;\n \n }", "function parseRange(text) {\n\t\t\tvar dateFormat = options.altFormat,\n\t\t\t\trange = null;\n\t\t\tif (text) {\n\t\t\t\ttry {\n\t\t\t\t\trange = JSON.parse(text, function(key, value) {\n\t\t\t\t\t\treturn key ? $.datepicker.parseDate(dateFormat, value) : value;\n\t\t\t\t\t});\n\t\t\t\t} catch (e) {\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn range;\n\t\t}", "range(min, max) {\n if (max < min) { return []; }\n let arr = [];\n\n for (let i = min; i <= max; i++) {\n arr.push(i);\n }\n\n return arr;\n }", "function addYearRangeOptions() {\n var min = minDate.getFullYear();\n var max = maxDate.getFullYear();\n var optionsStart = \"\";\n var optionsEnd = \"\";\n for (year = min; year <= max - 1; year++) {\n optionsStart += \"<option>\"+ year +\"</option>\";\n }\n for (year = min + 1; year <= max; year++) {\n optionsEnd += \"<option>\"+ year +\"</option>\";\n }\n document.getElementById(\"startyearrange\").innerHTML = optionsStart;\n document.getElementById(\"endyearrange\").innerHTML = optionsEnd;\n}", "function numberRange (start, end) {\n return new Array(end - start).fill().map((d, i) => i + start);\n}" ]
[ "0.6790015", "0.6536459", "0.65282655", "0.64699554", "0.6451538", "0.635133", "0.63095874", "0.62782454", "0.6273421", "0.62701243", "0.62633735", "0.62612975", "0.6218193", "0.6205334", "0.6139435", "0.61157286", "0.61155343", "0.6115382", "0.6105924", "0.6078665", "0.6073828", "0.6073297", "0.6065737", "0.60645896", "0.60613436", "0.603873", "0.6032551", "0.601527", "0.5981183", "0.5939093", "0.5937644", "0.5915798", "0.5909298", "0.59048295", "0.5903108", "0.58994865", "0.5897715", "0.5897582", "0.5894488", "0.5863363", "0.58429056", "0.58381873", "0.58179486", "0.5817093", "0.58050996", "0.5799931", "0.5792271", "0.57896644", "0.57810235", "0.5774656", "0.57633656", "0.5763107", "0.5761537", "0.57585144", "0.5748076", "0.5747183", "0.5745221", "0.573471", "0.5734554", "0.573405", "0.5729649", "0.5717771", "0.5708266", "0.5703862", "0.56958145", "0.5682417", "0.56763995", "0.56752145", "0.56727386", "0.5628756", "0.56177336", "0.56126046", "0.5610012", "0.56021416", "0.5596041", "0.5593287", "0.5587438", "0.5571123", "0.55574113", "0.5553324", "0.5549909", "0.55485934", "0.55414855", "0.55348814", "0.5534153", "0.5517774", "0.5517774", "0.5515274", "0.55120873", "0.5510652", "0.54888785", "0.54835474", "0.54818493", "0.5479836", "0.5467071", "0.5466921", "0.5460428", "0.54569644", "0.54560375", "0.5450976" ]
0.6494199
3
Returns layer style in the provided color.
function customLayer(color) { return L.geoJson(null, { style: function() { return { color: color, weight: 5, opacity: 0.9 }; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dhtml_getLayerStyle(name) {\r\n var layer = dhtml_getLayer(name);\r\n \r\n if (layer != null) {\r\n if (layer.clip) {\r\n return layer;\r\n } else if (layer.style) {\r\n return layer.style;\r\n }\r\n }\r\n\r\n return null;\r\n}", "function getColorOf(layer) {\n\tvar color = null;\n\tswitch ([layer class]) {\n\t\tcase MSTextLayer:\n\t\t\tcolor = layer.textColor();\n\t\t\t// Check if text layer has a fill color\n\n\t\t\tvar fill = layer.style().fills().firstObject();\n\t\t\tif (fill != undefined && fill.isEnabled()) color = fill.color();\n\t\tbreak;\n\t\tdefault:\n\t\t\tvar fill = layer.style().fills().firstObject();\n\t\t\tif (fill != undefined && fill.isEnabled()) color = fill.color();\n\t\tbreak;\n\t}\n\treturn color;\n}", "function _getBadgeStyle(color){\n var dc = d3.rgb(color).darker();\n return 'style=\"background-color: '+color+'; border-color: '+dc+'; text-shadow: 1px 1px '+dc+';\"';\n }", "getColorAt(layerID) {\n return this.compositeEffect.getLayerAt(layerID).color\n }", "function getClassFromColor(color){\n\tswitch (color)\n\t{\n\t\tcase '#ffc500':\n\t\t return 'orange';\n\t\tcase '#ff7f0b':\n\t\t return 'darkorange';\n\t\tcase '#ff4b3a':\n\t\t return 'red';\n\t\tcase '#ae59b9':\n\t\t return 'purple';\t\n\t\tcase '#00afb5':\n\t\t return 'blue';\n\t\tcase '#7cbd00':\n\t\t return 'green';\n\t\tcase '#90a6a9':\n\t\t return 'darkgray';\n\t\tcase '#ebf0f1':\n\t\t return 'gray';\t\t \n\t\t default:\n\t\t\t return 'orange';\n\t} \t\t\n}", "function getColorName(color) {\n return parseInt(color) === WHITE ? \"white\" : \"black\";\n }", "_get_color() {\n\t\t\t// last 7 digits of the name are a hex color code\n\t\t\tlet color_str = this.shape_name.slice(-7);\n\t\t\treturn this.config.color_map[color_str]\n\t\t}", "get color() {}", "function colorGet(col) {\n if (col == \"r\") return (\"#FF0000\");\n if (col == \"o\") return (\"#FF8000\");\n if (col == \"b\") return (\"#0000FF\");\n if (col == \"g\") return (\"#00FF00\");\n if (col == \"y\") return (\"#FFFF00\");\n if (col == \"w\") return (\"#FFFFFF\");\n if (col == \"x\") return (\"#000000\");\n }", "determineStyle (layer) {\n return _.bind(\n this.isLayerSelected(layer) ? this.selectedLocationStyle : this.standardLocationStyle,\n this\n )\n }", "function getStyle(feature, map_type) {\n var name = feature.properties.name;\n \n if( map_type == 'county' ){\n var use_data = self.jsonDataCounty;\n } else {\n var use_data = self.jsonDataZip;\n }\n\n try {\n // See if feature name is in data\n var value = use_data[name][self.data_property];\n } catch(err) {\n // Return empty style if feature name is not in data\n feature.properties.emptyStyle = true;\n return emptyStyle; \n } \n\n var style = defaultStyle;\n style.fillColor = getColor(value);\n style.className = feature.properties.name;\n\n return style;\n }", "function colorToKeyword(color) {\n\t // Test all keyword lists\n\t const lists = [colorKeywords.baseColorKeywords, colorKeywords.extendedColorKeywords];\n\t for (let i = 0; i < lists.length; i++) {\n\t const list = lists[i];\n\t const keys = Object.keys(list);\n\t let key;\n\t while ((key = keys.shift()) !== void 0) {\n\t const rgb = list[key];\n\t if (rgb[0] === color.r &&\n\t rgb[1] === color.g &&\n\t rgb[2] === color.b) {\n\t return key;\n\t }\n\t }\n\t }\n\t return null;\n\t}", "function pointStyle(color, fillColor, op, wt) {\r\n return {\r\n color: color,\r\n fillColor: fillColor,\r\n opacity: op,\r\n weight: wt\r\n }\r\n}", "function style(feature, color) {\n var target = style_target(feature);\n var fillColor = (!color) ? getColor(target) : color;\n var default_style = {\n fillColor: fillColor,\n weight: 1,\n opacity: 1,\n color: 'grey',\n fillOpacity: 1\n };\n return merge_styles(default_style, style_override);\n}", "function color(fill_color){\n var style = [new ol.style.Style({\n stroke: new ol.style.Stroke({\n color: 'black',\n // lineDash: [7,10],\n lineCap: 'butt',\n lineJoin: 'miter',\n width: .6\n }),\n fill: new ol.style.Fill({\n color: fill_color,\n }),\n })];\n return style;\n }", "function getColorClass(color, level) {\n var lvlClass = level ? '-' + level : '';\n return 'mdl-color--' + color + lvlClass;\n}", "get color() {\n\n\t}", "function getcolor(c) {\n if(c == \"naranja\") return '#FCAF00'; else\n if (c == \"tradicional\") return '#3FDAD6';\n\tif (c == \"aliado\") return '#FE52D4';\n }", "get dryColor() {}", "obtenerNumeroColor(color){\n switch(color){\n case 'celeste':\n return 0;\n case 'violeta':\n return 1;\n case 'naranja':\n return 2;\n case 'verde':\n return 3;\n }\n }", "function getThemeColorFromCss(style) {\r\n\t\tvar $span = $(\"<span></span>\").hide().appendTo(\"body\");\r\n\t\t$span.addClass(style);\r\n\t\tvar color = $span.css(\"color\");\r\n\t\t$span.remove();\r\n\t\treturn color;\r\n\t}", "function getColor(d) {\n return GlobalVariables.getcolor(d);\n }", "getVSCodeThemeColor(colorName) {\n const el = document.createElement('div');\n el.style = `width: 10px; height: 10px; position: absolute; top: -100px; left: -100px; background: var(--vscode-${colorName});`;\n document.body.appendChild(el);\n const styles = window.getComputedStyle(el);\n return styles.backgroundColor;\n }", "function getcolor(colorString) {\n switch (colorString) {\n case (\"default\"):\n return _default;\n case (\"primary\"):\n return primary;\n case (\"danger\"):\n return danger;\n case (\"warning\"):\n return warning;\n case (\"info\"):\n return info;\n case (\"success\"):\n return success;\n case (\"inverse\"):\n return inverse;\n default:\n return colorString;\n }\n }", "function getColor(color) {\n\tif (color.includes(\"Magno-Gold\"))\n\t\treturn \"#F6A723\"\n\telse if (color.includes(\"Gold\"))\n\t\treturn \"#6E5012\"\n\telse if (color.includes(\"Carbon Crystal\"))\n\t\treturn \"#BC3731\"\n\telse if (color.includes(\"Carbon\"))\n\t\treturn \"#7C322E\"\n\telse if (color.includes(\"TetraCobalt\"))\n\t\treturn \"#025B85\"\n\telse if (color.includes(\"Cobalt\"))\n\t\treturn \"#0B4762\"\n\telse if (color.includes(\"Cadmium\"))\n\t\treturn \"#581115\"\n\telse if (color.includes(\"Copper\"))\n\t\treturn \"#946714\"\n\telse if (color.includes(\"Emeril\"))\n\t\treturn \"#294C23\"\n\telse if (color.includes(\"Indium\"))\n\t\treturn \"#0C3662\"\n\telse if (color.includes(\"Chromatic Metal\"))\n\t\treturn \"#251314\"\n\telse if (color.includes(\"Ammonia\"))\n\t\treturn \"#0A723C\"\n\telse if (color.includes(\"Aronium\"))\n\t\treturn \"#F6A723\"\n\telse if (color.includes(\"Ferrite\"))\n\t\treturn \"#5B5A55\"\n\telse if (color.includes(\"Silver\"))\n\t\treturn \"#5C5A55\"\n\telse if (color.includes(\"Cactus Flesh\"))\n\t\treturn \"#1D6827\"\n\telse if (color.includes(\"Destablised Sodium\"))\n\t\treturn \"#F16E17\"\n\telse if (color.includes(\"Sodium\"))\n\t\treturn \"#9C4E22\"\n\telse if (color.includes(\"Salt\"))\n\t\treturn \"#1B623A\"\n\telse if (color.includes(\"Solanium\"))\n\t\treturn \"#78361E\"\n\telse if (color.includes(\"Chlorine\"))\n\t\treturn \"#113611\"\n\telse if (color.includes(\"Chloride Lattice\"))\n\t\treturn \"#1E8941\"\n\telse if (color.includes(\"Coprite\"))\n\t\treturn \"#533E2D\"\n\telse if (color.includes(\"Di-hydrogen Jelly\"))\n\t\treturn \"#C21646\"\n\telse if (color.includes(\"Di-hydrogen\"))\n\t\treturn \"#25465C\"\n\telse if (color.includes(\"Dioxite\"))\n\t\treturn \"#1C3D8C\"\n\telse if (color.includes(\"Mordite\"))\n\t\treturn \"#392634\"\n\telse if (color.includes(\"Dirty Bronze\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Grantine\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Herox\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Geodesite\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Iridesite\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Lemmium\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Thermic Condensate\"))\n\t\treturn \"#F1AA22\"\n\telse if (color.includes(\"Platinum\"))\n\t\treturn \"#385457\"\n\telse if (color.includes(\"Pyrite\"))\n\t\treturn \"#925113\"\n\telse if (color.includes(\"Gamma Root\"))\n\t\treturn \"#7E5E21\"\n\telse if (color.includes(\"Fungal Mould\"))\n\t\treturn \"#08733C\"\n\telse if (color.includes(\"Frost Crystal\"))\n\t\treturn \"#193F8C\"\n\telse if (color.includes(\"Kelp Sac\"))\n\t\treturn \"#1B768F\"\n\telse if (color.includes(\"Oxygen\"))\n\t\treturn \"#7B3430\"\n\telse if (color.includes(\"Living Slime\"))\n\t\treturn \"#3E522F\"\n\telse if (color.includes(\"Runaway Mould\"))\n\t\treturn \"#405130\"\n\telse if (color.includes(\"Marrow Bulb\"))\n\t\treturn \"#475930\"\n\telse if (color.includes(\"Nitrogen\"))\n\t\treturn \"#8D6623\"\n\telse if (color.includes(\"Sulphurine\"))\n\t\treturn \"#214532\"\n\telse if (color.includes(\"Radon\"))\n\t\treturn \"#36305E\"\n\telse if (color.includes(\"Paraffinium\"))\n\t\treturn \"#383442\"\n\telse if (color.includes(\"Phosphorus\"))\n\t\treturn \"#8C240F\"\n\telse if (color.includes(\"Nanite\"))\n\t\treturn \"#192E3F\"\n\telse if (color.includes(\"Pugneum\"))\n\t\treturn \"#4C2A56\"\n\telse if (color.includes(\"Rare Metal Element\"))\n\t\treturn \"#8B7E71\"\n\telse if (color.includes(\"Residual Goop\"))\n\t\treturn \"#5B6F35\"\n\telse if (color.includes(\"Viscous Fluid\"))\n\t\treturn \"#40512F\"\n\telse if (color.includes(\"Glass\"))\n\t\treturn \"#F3A923\"\n\telse if (color.includes(\"Star Bulb\"))\n\t\treturn \"#296879\"\n\telse if (color.includes(\"Rusted Metal\"))\n\t\treturn \"#3E5230\"\n\telse if (color.includes(\"Superoxide Crystal\"))\n\t\treturn \"#BA3930\"\n\telse if (color.includes(\"Tritium\"))\n\t\treturn \"#DDDCD0\"\n\telse if (color.includes(\"Uranium\"))\n\t\treturn \"#A37610\"\n\telse if (color.includes(\"Unstable Plasma\"))\n\t\treturn \"#C01746\"\n\telse if (color.includes(\"Warp Cell\"))\n\t\treturn \"#C01746\"\n\telse if (color.includes(\"Starship Launch Fuel\"))\n\t\treturn \"#C01746\"\n\telse if (color.includes(\"Ion Battery\"))\n\t\treturn \"#F3A923\"\n\telse if (color.includes(\"Life Support Gel\"))\n\t\treturn \"#C01746\"\n\telse if (color.includes(\"Deuterium\"))\n\t\treturn \"#25465C\"\n}", "function getColor(depth) {\n switch (true) {\n case depth > 90:\n return \"red\";\n case depth > 70:\n return \"brown\";\n case depth > 50:\n return \"orange\";\n case depth > 30:\n return \"yellow\";\n case depth > 10:\n return \"lime\";\n default:\n return \"green\";\n }\n }", "extractColorLayer(colorSearch = 0) {\n if (this.progressReport) this.progressReport.increaseStep()\n this.imgm.initColorLayer()\n\n // loop through all pixels\n for (let y = 0; y < this.imgm.traceSource.length; y++) {\n for (let x = 0; x < this.imgm.traceSource[0].length; x++) {\n if (this.imgm.traceSource[y][x] === colorSearch)\n this.imgm.colorLayer[y + 1][x + 1] = this.colorIdentifier\n }\n if (this.progressReport)\n this.progressReport.report(this.imgm.traceSource.length, y)\n }\n\n return this.imgm.colorLayer\n }", "function cssColor(color) {\r\n if (!color) {\r\n return undefined;\r\n }\r\n return _named(color) || _hex3(color) || _hex6(color) || _rgba(color) || _hsla(color);\r\n}", "function color_(color, _) {\n let f;\n if (isFunction(color)) {\n f = obj => rgb(color(obj, _));\n f.dep = dependency(color);\n } else {\n // default to mid-grey\n f = constant(rgb(color || '#888'));\n }\n return f;\n}", "function getColor(depth) {\n switch (true) {\n case depth > 50:\n return \"red\";\n case depth > 40:\n return \"orange\";\n case depth > 30:\n return \"yellow\";\n case depth > 20:\n return \"green\";\n case depth > 10:\n return \"blue\";\n default:\n return \"purple\";\n }\n }", "function getStyle() {\n if (props.white) return styles.white;\n else if (props.red) return styles.red;\n else if (props.blue) return styles.blue;\n else if (props.green) return styles.green;\n else if (props.black) return styles.black;\n else {\n return styles.white;\n }\n }", "function whichColor(color) {\n var num;\n switch (color) {\n\tcase \"#962d3e\":\n\t num = 0;\n\t break;\n\tcase \"#004358\":\n\t num = 1;\n\t break;\n\tcase \"#477725\":\n\t num = 2;\n\t break;\n\tcase \"#eb7f00\":\n\t num = 3;\n\t break;\n\tcase \"#b64926\":\n\t num = 4;\n\t break;\n\tcase \"#8e001c\":\n\t num = 5;\n\t break;\n }\n\n return num;\n}", "function getColorFormat (colorStr) {\n var type = getColorParseMethod(colorStr);\n\n return type ? type.name : undefined;\n }", "color (pad, color) {\n return this.set(0x10, pad, colors[color.toUpperCase()])\n }", "function getColor(colorNum) {\n switch (colorNum) {\n case Colors.Blue:\n return \"rgb(0,147,208)\";\n case Colors.Green:\n return 'rgb(98,161,25)';\n case Colors.Red:\n return 'rgb(186, 36, 65)';\n case Colors.Orange:\n return 'rgb(255, 127, 42)';\n case Colors.White:\n return 'rgb(255,255,255)';\n }\n}", "function style() {\n //color = feature.properties.fill; \n //console.log(color);\n return {\"fillColor\": undefined, \"opacity\": 1, \"fillOpacity\": 0.7, \"color\": \"#555555\", \"weight\": 2};\n }", "function getColor() {\n var string = this._day.getColor();\n switch(this._day.getColor()) {\n case 'blue':\n string = 'BLEU';\n break;\n case 'white':\n string = 'BLANC';\n break;\n case 'red':\n string = 'ROUGE';\n break;\n }\n\n return string;\n }", "getColor(){\n\t\treturn this.color;\n\t}", "function getColor(colorName, alpha) {\n var color = Cesium.Color[colorName.toUpperCase()];\n return Cesium.Color.fromAlpha(color, parseFloat(alpha));\n}", "getColor(){\n\t\tvar r, g, b, a;\n\t\tvar hex = this.valueOf('color'); // always gets a hex string (ex., #rrggbb)\n\t\ta = this.valueOf('opacity');\n\t\tr = parseInt(hex.substring(1,3), 16);\n\t\tg = parseInt(hex.substring(3,5), 16);\n\t\tb = parseInt(hex.substring(5,7), 16);\n\t\treturn 'rgba('+r+','+g+','+b+','+a+')';\n\t}", "function getLongColor(charColor) {\n switch (charColor) {\n case \"w\": return \"white\";\n case \"b\": return \"black\";\n default:\n throw \"ah nah bruv couldn't work out the piece color\";\n return \"oh dear\";\n }\n }", "function getColor(colorId) {\n return service.colors[colorId % service.colors.length];\n }", "function renderColor(color) {\n const colorDiv = document.createElement('div')\n colorDiv.style.backgroundColor = color\n colorDiv.style.width = '6rem'\n colorDiv.style.height = '3rem'\n return colorDiv\n}", "function getLayerStyles(artLayer) {\r activeDocument.activeLayer = artLayer;\r\r var ref = new ActionReference();\r ref.putEnumerated(charIDToTypeID(\"Lyr \"), charIDToTypeID( \"Ordn\" ), charIDToTypeID( \"Trgt\" ) );\r var layerDesc = executeActionGet(ref);\r var obj;\r if(layerDesc.hasKey(stringIDToTypeID('layerEffects'))){\r stylesDesc = layerDesc.getObjectValue(stringIDToTypeID('layerEffects'));\r obj = actionDescriptorToObject(stylesDesc);\r }\r return obj;\r}", "function getColor(str){\n\treturn partyColors[str];\n}", "function chooseColor(depth) {\n var color_value;\n if (depth > 20) {\n color_value = \"darkred\"\n }\n else if (depth <= 20 && depth > 8) {\n color_value = \"yellow\"\n }\n else if (depth < 4) {\n color_value = \"green\"\n }\n return color_value;\n }", "function readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}", "styleLayer (layer, style) {\n layer.setStyle(style(layer))\n }", "function getColorString(color)\n{\n switch (color)\n {\n case CrystalColor.Red: return \"Red\";\n case CrystalColor.Green: return \"Green\";\n case CrystalColor.Blue: return \"Blue\";\n case CrystalColor.White: return \"White\";\n default: return \"unknown\";\n }\n}", "function segColor(c){ \n return selectedColorObj[c]; \n }", "colorInUse(color) {\n let inUse = false;\n\n this._kernelLayers.forEach((layer) => {\n if (color === layer.options.color) {\n inUse = true;\n }\n });\n\n return inUse;\n }", "getColor() {\n return this._color;\n }", "function dhtml_setLayerBackgroundColor(name, color) {\t\t\r\n var layer = dhtml_getLayerStyle(name);\t\t\r\n if (layer) {\r\n if (layer.bgColor) layer.bgColor = color;\r\n if (layer.backgroundColor) layer.backgroundColor = color;\r\n }\r\n}", "function color(d) {\n switch(d) {\n case \"Node\":\n retval = node\n break;\n case \"Pool\":\n retval = pool\n break;\n case \"Service\":\n retval = service\n break;\n case \"Role\":\n retval = role\n break;\n case \"Element\":\n retval = element;\n break;\n default:\n retval = greys;\n };\n return retval;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function choseColor(size){\n var size = size;\n var color = null;\n if (size <= 0.1 ) {\n color = 0xff0000;\n } else if (0.1< size <= 0.2) {\n color = 0xaaaaaa;\n } else if (size > 0.2) {\n color = 0xffff00;\n }\n\n return color;\n }", "function getColor(key) {\n newColor = key;\n if (flattened[newColor]) {\n newColor = flattened[newColor];\n }\n return newColor;\n }", "function getColor(num){\r\n\t\tcolor = \"\";\r\n\t\tswitch(num){\r\n\t\t\tcase 1: color = \"#009900\";break;\r\n\t\t\tcase 2:\tcolor = \"#0000FF\";break;\r\n\t\t\tcase 3: color = \"#9900CC\";break;\r\n\t\t\tcase 4:\tcolor = \"#66CCFF\";break;\r\n\t\t\tcase 5: color = \"#CC00FF\";break;\r\n\t\t\tcase 6: color = \"#CC0000\";break;\r\n\t\t\tcase 7: color = \"#FF9900\";break;\r\n\t\t\tcase 8: color = \"#CC0099\";break;\r\n\t\t\tcase 9: color = \"#660099\";break;\r\n\t\t\tcase 10: color = \"#330099\";break;\r\n\t\t\tcase 11: color = \"#006600\";break;\r\n\t\t\tcase 12: color = \"#993366\";break;\r\n\t\t\tcase 13: color = \"#FF0066\";break;\r\n\t\t\tcase 14: color = \"#FF0000\";break;\r\n\t\t\tcase 15: color = \"#FFEE00\";break;\r\n\r\n\t\t}\r\n\t\treturn color;\r\n}", "get colorValue() {}", "_onGetSublayerColor(cell) {\n return this.state.cpuAggregator.getAccessor('fillColor')(cell);\n }", "function _intFromColor(color) {\r\n var cache, red, green, blue;\r\n cache = /^#([\\da-fA-F]{2})([\\da-fA-F]{2})([\\da-fA-F]{2})/.exec(color);\r\n\r\n if (!cache) {\r\n return -1;\r\n }\r\n\r\n red = parseInt(cache[1], 16);\r\n green = parseInt(cache[2], 16);\r\n blue = parseInt(cache[3], 16);\r\n\r\n red = (red << 16) & 0x00FF0000; //Shift red 16-bits and mask out other stuff\r\n green = (green << 8) & 0x0000FF00; //Shift Green 8-bits and mask out other stuff\r\n blue = blue & 0x000000FF; //Mask out anything not blue.\r\n\r\n return 0xFF000000 | red | green | blue; //0xFF000000 for 100% Alpha. Bitwise OR everything together.\r\n}", "function getColor(cName) {\n\t\tswitch(cName){\n\t\t\tcase \"light_yellow\":\tc = \"#E6FB04\";\n\t\t\tcase \"neon_red\": \t\tc = \"#FF0000\";\n\t\t\tcase \"neon_purple\": \tc = \"#7CFC00\";\n\t\t\tcase \"neon_pink\":\t\tc = \"#FF00CC\";\n\t\t\tcase \"neon_yellow\":\tc = \"#FFFF00\";\n\t\t\tcase \"neon_green\": c = \"#00FF66\";\n\t\t\tcase \"light_blue\": c = \"#00FFFF\";\n\t\t\tcase \"dark_blue\": c = \"#0033FF\";\n\t\t\tdefault: \t\t\t\t\tc = '#FAEBD7';\n\t\t}\n \treturn c;\n\t}", "function getColor(depth){\n if(depth <= 10){\n return \"#17ff0a\"\n\n } else if(depth >10 && depth <= 30){\n return \"#5cb60a\"\n } else if(depth >30 && depth <= 50){\n return \"#f4bd09\"\n }else if(depth >50 && depth <= 70){\n return \"#f46f0c\"\n }else if(depth >70 && depth <= 90){\n return \"#ff4702\"\n }\n else{\n return \"#f90909\"\n }\n }", "function getStyle({ isHover, isSelected, isCreating, style }) {\n const size = 30;\n const normalStyle = {\n // position: \"absolute\",\n width: size,\n height: size,\n marginLeft: -size / 2,\n marginTop: -size / 2,\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n fontSize: \"1rem\",\n lineHeight: \"unset\",\n ...style,\n };\n\n const hoverStyle = { ...normalStyle, backgroundColor: \"red\" };\n const selectedStyle = { ...normalStyle, backgroundColor: \"green\" };\n // const creatingStyle = { ...normalStyle, backgroundColor: \"blue\" };\n\n // if (isCreating) {\n // return creatingStyle;\n // }\n\n if (isSelected) {\n return selectedStyle;\n }\n\n if (isHover) {\n return hoverStyle;\n }\n\n return normalStyle;\n}", "function getStyle(element, styleName){\n var styleText=d3.select(element)\n .select(\"desc\")\n .text();\n\n var styleObject=JSON.parse(styleText);\n return styleObject[styleName];\n }", "function colorString(color) {\n return `${color[0]} ${color[1]} ${color[2]}`;\n }", "getColor(colorCode, type = 'color') {\n\t\tif (colorCode == null) {\n\t\t\treturn null;\n\t\t} else if (colorCode in api.customColorTable && api.customColorTable[colorCode][type]) {\n\t\t\treturn api.customColorTable[colorCode][type];\n\t\t} else if (colorCode in api.colorTable) {\n\t\t\treturn api.colorTable[colorCode][type];\n\t\t} else if (\n\t\t\ttypeof colorCode === 'string' && colorCode.startsWith('#')\n\t\t\t&& (type === 'color' || type === 'name')\n\t\t) {\n\t\t\treturn colorCode;\n\t\t}\n\t\treturn blackColor[type || 'color']; // Treat any unrecognized colors as black\n\t}", "function getStyle(element, styleName){\n\n var styleText=d3.select(element)\n .select(\"desc\")\n .text();\n\n var styleObject=JSON.parse(styleText);\n return styleObject[styleName];\n }", "getBackgroundColor( hue, layer, topLayer, hueOffset = 0 ) {\n if ( this.cfg.mode == 'transparent' ) return this.getTransparent(); //XXX: Still not sure about the 'transparent' mode\n\n let color = this._getBackgroundColorObject( hue, layer, topLayer );\n\n return this.getColorFromPalette( color.palette, color.hue, color.alpha, hueOffset );\n }", "function contrastColor(color) {\n if (contrastColor.memo[color]) {\n return contrastColor.memo[color];\n } else {\n var d = 0;\n var colorRGB = splitColorHex(color);\n for (var i = 0; i < colorRGB.length; i++) {\n colorRGB[i] = parseInt(colorRGB[i], 16);\n }\n // algorithm based on http://stackoverflow.com/a/1855903\n var a = 1 - (0.299 * colorRGB[0] + 0.587 * colorRGB[1] + 0.114 * colorRGB[2]) / 255;\n\n var contrast;\n if (a < 0.5) {\n contrast = \"#000000\";\n } else {\n \n contrast = \"#ffffff\";\n }\n\n contrastColor.memo[color] = contrast;\n return contrast;\n }\n}", "function determineFontColor(color) {\r\n var convert = hexToRgb(color)\r\n if ((convert.r*0.299 + convert.g*0.587 + convert.b*0.114) > 186) \r\n return fontBaseBlack \r\n else {\r\n return fontBaseWhite\r\n }\r\n}", "function getStyle (data) {\n let str = Object.prototype.toString.call(data)\n return str.slice(8, -1)\n }", "function getColor(type) {\n\tswitch (type) {\n\t\tcase \"reconstruction\":\treturn \"Red\";\n\t\tcase \"finishing\":\treturn \"Yellow\";\n\t\tcase \"done\": \t\treturn \"Green\";\n\t\tcase \"planned\":\t\treturn \"Blue\";\n\t\tdefault:\t\treturn \"Pink\";\n\t}\n}", "function format(color) {\n if (color.isOpaque()) {\n return Color.Format.CSS.formatHex(color);\n }\n return Color.Format.CSS.formatRGBA(color);\n }", "function getTypedInColor()\n{\n const color = colorChangerInput.value.toLowerCase()\n clearCurrentColor()\n if (!isColor(color))\n {\n alert('That\\'s not a valid color')\n return\n }\n currentColorDescription.textContent = `You are coloring in ${color}!`\n currentColorDescription.style.cssText = `color : ${color}; border: 4px ${color} solid`\n drawOnGrid(gridItems, color)\n}", "function determine_color(num) {\n if (num === 0) {\n return \"beige\";\n } else if (num === 2) {\n return \"beige\";\n } else if (num === 4) {\n return \"yellow\";\n } else if (num === 8) {\n return \"#f4b042\";\n } else if (num === 16) {\n return \"#f48641\";\n } else if (num === 32) {\n return \"#f45241\";\n } else if (num === 64) {\n return \"#ff1800\";\n } else if (num === 128) {\n return \"#ff00b2\";\n } else {\n return \"black\";\n }\n}", "function colorTranslate(color){\n\tif(typeof color == 'undefined' || color == null) return \"default\";\n if(color.indexOf('color-1') > -1) return \"default\";\n if(color.indexOf('color-2') > -1) return \"primary\";\n if(color.indexOf('color-3') > -1) return \"success\";\n if(color.indexOf('color-4') > -1) return \"info\";\n if(color.indexOf('color-5') > -1) return \"warning\";\n if(color.indexOf('color-6') > -1) return \"danger\";\n return \"default\";\n}", "function getClassColor(id) {\n\t\t\treturn colors[id];\n\t\t}", "obtenerColor(numero){\n switch(numero){\n case 0:\n return 'celeste';\n case 1:\n return 'violeta';\n case 2:\n return 'naranja';\n case 3:\n return 'verde';\n }\n }", "function depth_color(depth) {\n if (depth >90)\n return \"rgb(196, 10, 10)\";\n else if (depth > 70)\n return \" rgb(226, 77, 8)\";\n else if (depth > 50)\n return \"rgb(245, 118, 0)\";\n else if (depth > 30) \n return \"rgb(236, 177, 12)\";\n else if (depth > 10)\n return \"rgb(180, 228, 5)\";\n else \n return \"rgb(7, 224, 18)\";\n}", "function stylizeWithColor (str, styleType) {\n\t const style = util.inspect.styles[styleType];\n\t if (style !== undefined) {\n\t const color = util.inspect.colors[style];\n\t return `\\u001b[${color[0]}m${str}\\u001b[${color[1]}m`\n\t }\n\t return str\n\t}", "function countryLayerStyleFn(feature) {\r\n var selectedCountry = countryIsSelected(feature);\r\n\treturn {\r\n\t\tfillColor: selectedCountry ? '#ff0000' : \"#E3E3E3\",\r\n\t\tweight: 1,\r\n\t\topacity: 0.4,\r\n\t\tcolor: 'white',\r\n\t\tfillOpacity: selectedCountry ? 0.7 : 0.3\r\n\t};\r\n}", "function getWormIndexByColor(color)\r\n{\r\n\tswitch(color)\r\n\t{\r\n\t\tcase \"red\":\r\n\t\t\treturn 0;\r\n\t\t\tbreak;\r\n\t\tcase \"blue\":\r\n\t\t\treturn 1;\r\n\t\t\tbreak;\r\n\t\tcase \"green\":\r\n\t\t\treturn 2;\r\n\t\t\tbreak;\r\n\t\tcase \"purple\":\r\n\t\t\treturn 3;\r\n\t\t\tbreak;\r\n\t\tcase \"cyan\":\r\n\t\t\treturn 4;\r\n\t\t\tbreak;\r\n\t\tcase \"yellow\":\r\n\t\t\treturn 5;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\treturn 100;\r\n\t\t\tbreak;\r\n\t}\r\n}", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor (color, idx) {\n return typeof color == 'string' ? color : color[idx % color.length]\n }", "function getColor(color, idx) {\n\t\treturn typeof color === 'string' ? color : color[idx % color.length];\n\t}", "function getColor(team) {\n var colorlist = {\n \"München\": '#F7931D',\n \"Berlin\": '#5AACA5' \n };\n return colorlist[team.event.city];\n}", "function getColor(color)\n{\n\tcolorCode = color.selectedIndex;\n}" ]
[ "0.6158692", "0.59079653", "0.5794151", "0.57935196", "0.5780347", "0.573992", "0.5705335", "0.56219923", "0.5560403", "0.5550929", "0.5547376", "0.5528013", "0.55127424", "0.54973453", "0.54871887", "0.54840416", "0.5456992", "0.5448841", "0.544417", "0.54393715", "0.54391336", "0.54280794", "0.5421006", "0.5419203", "0.5417159", "0.5415705", "0.5405821", "0.5402965", "0.53943247", "0.5392274", "0.53830236", "0.53638583", "0.5361179", "0.5360372", "0.5344736", "0.53385735", "0.531886", "0.5315956", "0.5314246", "0.5302214", "0.5302209", "0.52971643", "0.5295449", "0.52945626", "0.5270304", "0.5256313", "0.5241061", "0.52407414", "0.5238519", "0.5234162", "0.5225269", "0.5220999", "0.5219091", "0.520318", "0.5198579", "0.5198579", "0.5198579", "0.5198579", "0.5198579", "0.5198579", "0.5198579", "0.5198579", "0.5184046", "0.51789546", "0.5177126", "0.5170937", "0.51575315", "0.514282", "0.51301694", "0.51278186", "0.51222193", "0.51109487", "0.5108842", "0.5101946", "0.50994724", "0.5083762", "0.50749123", "0.50748396", "0.50701576", "0.50595564", "0.5056969", "0.505411", "0.5052639", "0.5052063", "0.50479597", "0.50469685", "0.50461996", "0.50446826", "0.5040559", "0.50400645", "0.50400645", "0.50400645", "0.50400645", "0.50400645", "0.50400645", "0.50400645", "0.50400645", "0.50370884", "0.50357467", "0.50347567" ]
0.6332689
0
Fit map bounds to all track layers.
function fitMapBounds() { var mapBounds = L.latLngBounds([]); trackLayerGroup.eachLayer(function (layer) { mapBounds.extend(layer.getBounds()); }); map.fitBounds(mapBounds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fitBoundaries() {\n if (0 < cfg.boundaries.length) {\n cfg.map.fitBounds(cfg.boundaries);\n }\n }", "function fit_markers_to_map(){ \n map.fitBounds(bounds);\n }", "function fitBounds() {\n\tvar bounds = new google.maps.LatLngBounds();\n\t// Extend the boundaries of the map for each marker and display the marker\n\tfor (var i = 0; i < markers.length; i++) {\n\t\tif(markers[i].getVisible() === true) {\n\t\t\tbounds.extend(markers[i].position);\n\t\t}\n\t}\n\tmap.fitBounds(bounds);\n}", "function smartFitBounds() {\n map.fitBounds(latLngBounds);\n console.log(\"Zoom level: \" + map.getZoom());\n if(map.getZoom() > _options.defaultZoom)\n map.setZoom(_options.defaultZoom);\n }", "function mapFitBounds() {\n\t// bounds\n\tvar b = {\n\t north: 0,\n\t south: 0,\n\t east: 0,\n\t west: 0\n\t};\n\t\n\t// is bound came?\n\tvar c = {\n\t\t north: false,\n\t\t south: false,\n\t\t east: false,\n\t\t west: false\t\t\t\n\t};\n\t\n\t// get bounds if any\n\tfor (key in participants) {\n\t\tx = participants[key].geox;\n\t\ty = participants[key].geoy;\n\t\t\n\t\tif (x == 0 || y == 0) continue;\n\t\t\n\t\t// north\n\t\tif (c.north == false) {\n\t\t\tc.north = true; b.north = y;\n\t\t} else {\n\t\t\tb.north = Math.max(b.north,y);\n\t\t}\n\t\t\n\t\t// south\n\t\tif (c.south == false) {\n\t\t\tc.south = true; b.south = y;\n\t\t} else {\n\t\t\tb.south = Math.min(b.south,y);\n\t\t}\n\n\t\t// east\n\t\tif (c.east == false) {\n\t\t\tc.east = true; b.east = x;\n\t\t} else {\n\t\t\tb.east = Math.max(b.east,x);\n\t\t}\n\t\t\n\t\t// west\n\t\tif (c.west == false) {\n\t\t\tc.west = true; b.west = x;\n\t\t} else {\n\t\t\tb.west = Math.min(b.west,x);\n\t\t}\t\t\n\t}\n\t\n\tif (b.east == b.west && b.north == b.south) {\n\t\t// only one point\n\t\tmapObject.setZoom(5);\n\t\tmapObject.setCenter(new google.maps.LatLng(b.south, b.east));\n\t\treturn;\n\t} \n\n\tif (c.east && c.west && c.north && c.south) {\n\t\tmapObject.fitBounds(b);\n\t\t//mapObject.panToBounds(b);\n\t}\n}", "fitMapBounds() {\n const { map } = this.refs;\n if (!map) {\n return;\n }\n const leaflet = this.refs.map.leafletElement;\n\n const values = this.props.type.values.filter(isValidLatLng);\n\n let bounds = L.latLngBounds();\n\n if (values.length === 1) {\n bounds = L.latLng(+values[0][1], +values[0][0]).toBounds(800);\n } else {\n values.forEach(v => {\n bounds.extend(L.latLng(+v[1], +v[0]));\n });\n }\n // If the bounds are equal, we need to extend them otherwise leaflet will error.\n if (bounds._northEast.lat === bounds._southWest.lat &&\n bounds._northEast.lng === bounds._southWest.lng) {\n bounds._northEast.lat = bounds._northEast.lat + 0.1;\n bounds._southWest.lng = bounds._southWest.lng - 0.1;\n }\n leaflet.fitBounds(bounds);\n }", "fitMapToMarkers() {\n const markers = this.getMarkers();\n const bounds = new google.maps.LatLngBounds();\n for (let i = 0, marker; marker = markers[i]; i++) {\n bounds.extend(marker.getPosition());\n }\n\n this.map_.fitBounds(bounds);\n }", "function fitAllCurrent() {\n infowindow.close();\n var latlngbounds = new google.maps.LatLngBounds();\n $.each(managerData[currentManager].locations, function (i, data) {\n latlngbounds.extend(data.point);\n });\n map.fitBounds(latlngbounds);\n //map.setZoom(map.getZoom() + 1);\n }", "function setBounds() {\n let bounds = new google.maps.LatLngBounds();\n\n flightMarkers.forEach((flightMarker) => {\n bounds.extend(flightMarker.position);\n });\n\n map.fitBounds(bounds);\n}", "function updateBounds() {\n map.fitBounds(mapBounds);\n\n // update dark border area\n topBound.setBounds([[90, -180], [Math.max(mapBounds[0][0], mapBounds[1][0]), 180]]);\n rightBound.setBounds([[Math.min(mapBounds[0][0], mapBounds[1][0]), Math.max(mapBounds[0][1], mapBounds[1][1])],\n [Math.max(mapBounds[0][0], mapBounds[1][0]), 180]]);\n leftBound.setBounds([[Math.min(mapBounds[0][0], mapBounds[1][0]), -180],\n [Math.max(mapBounds[0][0], mapBounds[1][0]), Math.min(mapBounds[0][1], mapBounds[1][1])]]);\n bottomBound.setBounds([[Math.min(mapBounds[0][0], mapBounds[1][0]), -180], [-90, 180]]);\n}", "function fitMapBounds(mapDiv, object) {\n var bounds = new google.maps.LatLngBounds();\n if (object.wells.length > 0 || object.fields.length > 0 || object.parcels.length > 0) {\n console.log(\"Polygons detected, fitting map to bounds.\")\n for (var i = 0; i < overlays.wells.length; i++) {\n bounds.extend(object.wells[i].getPosition());\n }\n //console.log(\"Expanding bounds for Parcels\")\n bounds = fitMapToPolygon(object.parcels, bounds);\n //console.log(\"Expanding bounds for Fields\")\n bounds = fitMapToPolygon(object.fields, bounds);\n mapDiv.fitBounds(bounds);\n }\n else {\n console.log(\"No polygons, defaulting map location.\")\n mapDiv.setZoom(11);\n mapDiv.setCenter({ lat: 35.9844234, lng: -119.1373632 });\n }\n}", "function narrowBounds() {\n bounds = new google.maps.LatLngBounds();\n var test = false;\n eventArray.forEach(function(element){\n day[current][element].locations.forEach(function(pin){\n bounds.extend(pin.marker.position);\n test = true;\n }) \n })\n if (!test) {\n initialize_gmaps();\n }\n else map.fitBounds(bounds)\n}", "function fitMapToBounds(paths) {\n var bounds = new google.maps.LatLngBounds();\n for (var i = 0; i < paths.length; i++) {\n for (var j = 0; j < paths[i].length; j++) {\n bounds.extend(new google.maps.LatLng(paths[i].getAt(j).lat(), paths[i].getAt(j).lng()));\n }\n }\n mapDiv.fitBounds(bounds);\n}", "function fitOnPath() {\n if (map !== null) {\n if (pathBounds === null) {\n Excursion.excursionChangeObs.subscribe(function(value) {\n pathBounds = L.geoJson(value.path).getBounds();\n });\n }\n map.fitBounds(pathBounds);\n }\n }", "function rebuildMapBounds() {\n bounds = new google.maps.LatLngBounds();\n for (var person in people) {\n bounds.extend(people[person].marker.getPosition());\n }\n }", "static setZoomBounds(allBounds) {\n let bounds = allBounds;\n const boundParams = {\n top: bounds.getTop(),\n left: bounds.getLeft(),\n bottom: bounds.getBottom(),\n right: bounds.getRight()\n };\n if ((Math.abs(Math.abs(boundParams.top) - Math.abs(boundParams.bottom) <= 0.0001))) {\n smallFactor = 0.01;\n }\n boundParams.top += ((Math.abs(Math.abs(boundParams.top) - Math.abs(boundParams.bottom))\n + smallFactor) * offsetFactor);\n boundParams.left -= ((Math.abs(Math.abs(boundParams.left) - Math.abs(boundParams.right))\n + smallFactor) * offsetFactor);\n // not needed since bottom pin fits\n // boundParams.bottom -= (Math.abs(Math.abs(boundParams.top) - Math.abs(boundParams.bottom))\n // * offsetFactor);\n boundParams.right += ((Math.abs(Math.abs(boundParams.left) - Math.abs(boundParams.right))\n + smallFactor) * offsetFactor);\n this.boundingBoxDistance = Math.sqrt((((boundParams.top - boundParams.bottom) ** 2))\n + (((boundParams.left - boundParams.right) ** 2)));\n bounds = new H.geo.Rect(boundParams.top, boundParams.left, boundParams.bottom,\n boundParams.right);\n\n return bounds;\n }", "_setBounds() {\t\t\n\t\tGoogleMaps.load((google) => {\n\t\t\tlet bounds = new google.maps.LatLngBounds(); \n\t\t\n\t\t\tnew Promise((resolve, reject) => {\n\t\t\t\tresolve(this.getActiveMarkers());\n\t\t\t}).then((markers) => {\n\t\t\t\tfor(let m in markers) {\n\t\t\t\t\tbounds.extend(markers[m].pin.getPosition());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.map.fitBounds(bounds);\t\n\t\t\t\tthis._setZoom();\t\t\t\t\t\t\t\n\t\t\t});\t\t\t\t\t\n\t\t});\n\t}", "function tightFitBounds(myMap, bounds) {\n myMap.fitBounds(bounds); // calling fitBounds() here to center the map for the bounds\n\n var overlayHelper = new google.maps.OverlayView();\n overlayHelper.draw = function () {\n if (!this.ready) {\n var extraZoom = getExtraZoom(this.getProjection(), bounds, myMap.getBounds());\n if (extraZoom > 0) {\n myMap.setZoom(myMap.getZoom() + extraZoom);\n }\n this.ready = true;\n google.maps.event.trigger(this, 'ready');\n }\n };\n overlayHelper.setMap(myMap);\n}", "function zoomToFit(){\n\tvar bounds = new google.maps.LatLngBounds ();\n\tfor(var i=0;i<markersArray.length;i++){\n\t\tbounds.extend (markersArray[i].getPosition());\n\t}\n\tmap.fitBounds (bounds);\n}", "function bounds_changed_handler ( )\n\t{\n\t\tgoogle.maps.event.removeListener ( g_main_map.init_listener );\n\t\tg_main_map.init_listener = google.maps.event.addListener\t( g_main_map, \"tilesloaded\", tiles_loaded_handler );\n\t\tfit_markers();\n\t\t// The markers get drawn during the \"zoom_changed\" event.\n\t\tgoogle.maps.event.addListener ( g_main_map, \"zoom_changed\", zoom_changed_handler );\n\t}", "function centerMap() {\n var latlngbounds = new google.maps.LatLngBounds();\n vm.currentHike.path.forEach(function (waypoint) {\n latlngbounds.extend(waypoint)\n })\n vm.map.fitBounds(latlngbounds);\n }", "function mapZoomFit(map, markers){\n if(map) {\n const google = window.google;\n\n let bounds = new google.maps.LatLngBounds();\n for(const marker of markers){\n \n bounds.extend(marker);\n }\n map.fitBounds(bounds);\n };\n}", "function fitMapLayer(geodata) {\r\n var coordinates = geodata.features[0].geometry.geometries ? geodata.features[0].geometry.geometries[0].coordinates[0] : geodata.features[0].geometry.coordinates[0];\r\n\r\n var bounds = coordinates.reduce(function (bounds, coord) {\r\n return bounds.extend(coord);\r\n }, new mapboxgl.LngLatBounds(coordinates[0], coordinates[0]));\r\n\r\n map.fitBounds(bounds, {\r\n padding: 20\r\n });\r\n}", "_calculateBounds() {\n this.finishPoly();\n var lb = this.geometry.bounds;\n this._bounds.addFrame(this.transform, lb.minX, lb.minY, lb.maxX, lb.maxY);\n }", "function fitMapToWindow() {\n var oldWidth = parseInt(mapImageCanvas.style.width || mapImageCanvas.width, 10),\n oldHeight = parseInt(mapImageCanvas.style.height || mapImageCanvas.height, 10),\n newDims = getOptimalDimensions(oldWidth, oldHeight, window.innerWidth, Infinity);\n\n resize(newDims.width, newDims.height);\n }", "renderMap(){\n if(this.props.trails.length>0) this.mapRendered=true //in some cases, trail data won't be available when component mounts, and if it doesn't then the code from componentDidMount will run in componenentDidUpdate\n if(this.props.trails.length===1) return //if there is only one marker, don't adjust size of the map\n\n //this sizes the map to fit all the markers\n const bounds = new window.google.maps.LatLngBounds()\n this.props.trails.map((trail)=>{\n bounds.extend(new window.google.maps.LatLng(\n trail.latitude,\n trail.longitude\n ))\n return null\n })\n\n this.refs.resultMap.map.fitBounds(bounds)\n }", "function optimizeZoom(){\n\t\t\tif(controller.mapData && controller.mapData.mapBounds){\n\t\t\t\t// fit map to given bounds\n\t\t\t\tvar bounds = controller.mapData.mapBounds;\n\t\t\t\tvar corr = 0.001;\n\t\t\t\tvar nw = new nokia.maps.geo.Coordinate(bounds.maxLatitude + corr, bounds.minLongitude -corr);\n\t\t\t\tvar se = new nokia.maps.geo.Coordinate(bounds.minLatitude - corr, bounds.maxLongitude + corr);\n\t\t\t\tscope.map.zoomTo(new nokia.maps.geo.BoundingBox(nw, se), false);\n\t\t\t\tscope.map.update();\n\t\t\t}\n\t\t}", "function fit_markers()\n\t{\n\t\tvar bounds = new google.maps.LatLngBounds();\n\t\t\n\t\t// We go through all the results, and get the \"spread\" from them.\n\t\tfor ( var c = 0; c < g_main_map.response_object.length; c++ )\n\t\t\t{\n\t\t\tvar\tlat = g_main_map.response_object[c].latitude;\n\t\t\tvar\tlng = g_main_map.response_object[c].longitude;\n\t\t\t// We will set our minimum and maximum bounds.\n\t\t\tbounds.extend ( new google.maps.LatLng ( lat, lng ) );\n\t\t\t};\n\t\n\t\tbounds.extend ( g_location_coords );\n\t\t\n\t\t// We now have the full rectangle of our meeting search results. Scale the map to fit them.\n\t\tg_main_map.fitBounds ( bounds );\n\t}", "getBounds(bounds) {\n if (this.objects !== undefined) {\n for (let i = 0; i < this.objects.length; i++) {\n this.objects[i].getBounds(bounds);\n }\n }\n }", "checkZoomLevel() {\n\t\tlet newBounds = this.searchRadius ? this.searchRadius.getBounds() : new google.maps.LatLngBounds();\n\t\tthis.markers.forEach( m => { newBounds.extend( m.marker.getPosition() ) } );\n\t\tthis.map.fitBounds( newBounds );\n\t\tif( this.map.getZoom() > locsearch.map_attributes.max_zoom ) {\n\t\t\tthis.map.setZoom( locsearch.map_attributes.max_zoom );\n\t\t}\n\t}", "function ResetLayersExtent() {\n\tmaxLeftB = undefined;\n\tmaxRightB = undefined;\n\tmaxTopB = undefined;\n\tmaxBottomB = undefined;\n\t\n\t// Get the extent of loaded layers\n\tfor (var i = 0; i < map.layers.length; i++) {\n\t\tif (map.layers[i].isBaseLayer != true) {\n\t\t\tif (map.layers[i].features.length != 0) {\n\t\t\t\tSetLayersExtent(map.layers[i]);\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// If all the layers have been removed set map back to center\n\tif (maxLeftB == undefined || maxRightB == undefined || maxTopB == undefined || maxBottomB == undefined)\n\t\tmap.setCenter(new OpenLayers.LonLat(-98.583, 39.833).transform(wgs84, googleMercator), 5);\n}", "function updateTileBounds() {\n zoom = Math.round(fixedZoom || Map.zoom);\n\n var\n ratio = Math.pow(2, zoom-Map.zoom)/TILE_SIZE,\n mapBounds = Map.bounds,\n perspectiveBuffer = 1;\n\n minX = (mapBounds.minX*ratio <<0) - perspectiveBuffer;\n minY = (mapBounds.minY*ratio <<0) + 1 - perspectiveBuffer;\n maxX = Math.ceil(mapBounds.maxX*ratio) + perspectiveBuffer;\n maxY = Math.ceil(mapBounds.maxY*ratio) + 1 + perspectiveBuffer;\n }", "function set_bounds() {\n\n\t// Get the new zoom level\n\tvar zoom \t= esomap.getZoom();\n\tvar center \t= esomap.getCenter();\n\t\n\t// Define the allowed boundaries [SW,NE]\n\tvar zoomBounds = [\n\t\t[-35,-20,35,20],\n\t\t[-70,-100,70,100],\n\t\t[-75,-120,75,120],\n\t\t[-80,-130,80,130],\n\t\t[-85,-135,85,135],\n\t\t[-87,-140,87,140],\n\t];\n\tvar swlat = zoomBounds[zoom-2][0];\n\tvar swlng = zoomBounds[zoom-2][1];\n\tvar nelat = zoomBounds[zoom-2][2];\n\tvar nelng = zoomBounds[zoom-2][3];\n\t\n\t// Set the new bounds\n\tallowedBounds = new google.maps.LatLngBounds(\n\t\tnew google.maps.LatLng( swlat , swlng ), //SouthWest Corner\n\t\tnew google.maps.LatLng( nelat , nelng ) //NorthEast Corner\n\t);\n\t\n\t// Helper function for checking the sign of a variable\n\tfunction sign( x ) { return x > 0 ? 1 : x < 0 ? -1 : 0; }\n\t\t\n\t// If changing the zoom has put us out of bounds, move\n\tif ( !allowedBounds.contains( center ) ) {\n\t\t\n\t\t// Figure out which dimension is out of bounds\n\t\tif ( Math.abs( center.lat() ) > Math.abs( swlat ) ) {\n\t\t\tgoodLat = sign( center.lat() ) * ( Math.abs( swlat ) - 0.01 );\n\t\t} else {\n\t\t\tgoodLat = center.lat();\n\t\t}\n\t\tif ( Math.abs( center.lng() ) > Math.abs( swlng ) ) {\n\t\t\tgoodLng = sign( center.lng() ) * ( Math.abs( swlng ) - 0.01 );\n\t\t} else {\n\t\t\tgoodLng = center.lng();\n\t\t}\n\t\t\n\t\t// Set some new good bounds\n\t\tvar goodBounds = new google.maps.LatLng( goodLat , goodLng );\n\t\tesomap.panTo( goodBounds );\n\t}\n\t\n\treturn allowedBounds;\n}", "function findBoundaries() {\n\tgoogle.maps.event.addListener(map, 'bounds_changed', function() {\n\t \tconst bounds = map.getBounds();\n\t \tconst NE = bounds.getNorthEast();\n\t\tconst SW = bounds.getSouthWest();\n\t\tconst coordinates = [`${SW}`, `${NE}`];\n\t\tconst fixed = coordinates.map(e => e.replace(/[{()}]/g, '')).map(e => e.split(', ')).flat();\n\t\tconst parsed = fixed.map(e => parseFloat(e));\n\t\t[parsed[0], parsed[1]] = [parsed[1], parsed[0]];\n\t\t[parsed[2], parsed[3]] = [parsed[3], parsed[2]];\n\t\tconst formattedBounds = parsed.join();\n\t\tgetWheelMapNodes(formattedBounds);\n\t});\n}", "function setMapBounds() {\n\t\tvar mapStyle = document.getElementById(MAP).style;\n\t\tvar extendedInformationWidth = this.hasExtendedInformation ? this.minimapWidth : 0;\n\t\tmapStyle.width = this.fixedWidth == null ? document.body.clientWidth - extendedInformationWidth : this.fixedWidth;\n\t\tmapStyle.height = this.fixedHeight == null ? document.body.clientHeight : this.fixedHeight;\n\t}", "function findBounds(lat_min,lat_max, lng_min, lng_max, map, maps) {\n\tmap.setCenter(maps.LatLng(((lat_max + lat_min) / 2.0),((lng_max + lng_min) / 2.0)));\n\tmap.fitBounds(maps.LatLngBounds(\n\t\t//bottom left\n\t\tmaps.LatLng(lat_min, lng_min),\n\t\t//top right\n\t\tmaps.LatLng(lat_max, lng_max)\n\t));\n}", "centre(){\n this.map.fitBounds(this.bounds)\n }", "_adjustAll() {\n for (const layer of this._layers) {\n layer._changeSizeTo(this._width, this._height)\n }\n }", "set bounds(value) {}", "function clearAndSetViewportByController() {\r\n viewportBounds = new google.maps.LatLngBounds();\r\n setViewportByController();\r\n map.fitBounds(viewportBounds);\r\n}", "function redraw_all_maps(mIDX, drawMode, baseBounds) {\n\t// drawMode -> 1: draw normal, 2: draw when auto, manual selected, 3: draw all maps force\n\t//console.log(getNow(), mIDX, 'redraw_maps start', 'drawMode: ', drawMode, 'baseBounds: ', baseBounds);\n\t\n\tvar prvBounds = app[mIDX].bounds;\n\tvar mapBounds = app[mIDX].map.getBounds();\n\tapp[mIDX].bounds = mapBounds; // save this map bounds to app.mapN.bounds\n\tif (baseBounds) mapBounds = baseBounds; // auto clicked, join the group aleady existed\n\t\n\t//console.log(getNow(), mIDX, 'prvBounds: ', prvBounds);\n\t//console.log(getNow(), mIDX, 'mapBounds: ', mapBounds);\n\t\n\tvar west = mapBounds.getWest();\n\tvar south = mapBounds.getSouth();\n\tvar east = mapBounds.getEast();\n\tvar north = mapBounds.getNorth();\n\tvar featureMapBounds = {type: \"Feature\", properties: {}, geometry: {type: \"Polygon\", coordinates: [\n\t\t[ [west, south], [east, south], [east, north], [west, north], [west, south] ] \n\t]}}\n\n\t// build selectedGeoJSON from receivedGeoJSON\n\tvar count = 0;\n\tvar selectedFeatures = [];\n\tvar baseLines = lineify(featureMapBounds);\n\t\n\tvar started = moment(new Date());\n\t$.each(app.receivedGeoJSON.features, function(rIdx, feature) {\n\t\tif (isPolygonInMapBounds(feature, baseLines, west, south, east, north)) {\n\t\t\tcount += 1;\n\t\t\tselectedFeatures.push([feature.properties[app.geokey], rIdx]);\n\t\t}\n\t});\n\tvar duration = moment.duration(moment(new Date()).diff(started));\n\t//console.log(getNow(), mIDX, 'selected features count in mapBounds:', count, 'duration:', duration/1000);\n\n\tvar this_sync = $('input[type=radio][name=\"'+mIDX+'-radio\"]:checked').val();\n\t\n\t// determine witch maps need to fitBounds\n\tvar refitBoundableMaps = (!boundsEqual(mapBounds, app[mIDX].map.getBounds())) ? [mIDX] : [];\n\tfor (var i=0; i<app.m; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\tif (mapN == mIDX) continue;\n\t\tvar that_sync = $('input[type=radio][name=\"'+mapN+'-radio\"]:checked').val();\n\t\tif (drawMode != 3) {\n\t\t\tif (this_sync == 'auto' && that_sync == 'manual') continue;\n\t\t\tif (this_sync == 'manual') continue;\n\t\t}\n\t\tif (!boundsEqual(mapBounds, app[mapN].map.getBounds())) {\n\t\t\trefitBoundableMaps.push(mapN);\n\t\t}\n\t}\n\n\t// check need redrawing or not\n\tvar needDrawing = true;\n\tif (drawMode == 1 && count < 1) {\n\t\tconsole.log(getNow(), mIDX, 'redrawing map ignored when count < 1');\n\t\tneedDrawing = false;\n\t}\n\t\n\tif (selectedFeatures.length == CA.features.length) {\n\t\tvar isEqual = true;\n\t\tfor (var f=0; f<selectedFeatures.length; f++) {\n\t\t\tvar prvFeature = CA.features[f];\n\t\t\tvar newFeature = selectedFeatures[f];\n\t\t\tif (newFeature[0] != prvFeature.properties.tractid) {\n\t\t\t\tisEqual = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (drawMode == 1 && isEqual) {\n\t\t\tconsole.log(getNow(), mIDX, 'redrawing map ignored when prvGeoJSON = selectedFeatures');\n\t\t\tneedDrawing = false;\n\t\t}\n\t}\n\t\n\t// determine witch maps need to redraw\n\tvar redrawableMaps = [mIDX];\n\tvar autoCount = (this_sync == 'auto') ? 1 : 0;\n\tfor (var i=0; i<app.m; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\tif (mapN == mIDX) continue;\n\t\tvar that_sync = $('input[type=radio][name=\"'+mapN+'-radio\"]:checked').val();\n\t\tif (that_sync == 'auto') autoCount += 1;\n\t\tvar needRedraw = false;\n\t\tif (drawMode == 1 && this_sync == 'auto' && that_sync == 'auto') needRedraw = true;\n\t\tif (drawMode == 2 && that_sync == 'auto') needRedraw = true;\n\t\tif (drawMode == 3) needRedraw = true;\n\t\tif (needRedraw) redrawableMaps.push(mapN);\n\t}\n\tif (drawMode == 2 && this_sync == 'auto' && redrawableMaps.length == 1) redrawableMaps = [];\n\t//console.log(getNow(), mIDX, 'redrawableMaps', redrawableMaps);\n\n\t// build redraw decison table\n\tvar fitBoundDT = []; for (var i=0; i<app.m; i++) fitBoundDT.push(\" \");\n\tvar drawMapsDT = []; for (var i=0; i<app.m; i++) drawMapsDT.push(\" \");\n\tfor (var i=0; i<refitBoundableMaps.length; i++) \n\t\tfitBoundDT[refitBoundableMaps[i].substr(refitBoundableMaps[i].length-1)] = refitBoundableMaps[i];\n\tif (needDrawing)\n\tfor (var i=0; i<redrawableMaps.length; i++) \n\t\tdrawMapsDT[redrawableMaps[i].substr(redrawableMaps[i].length-1)] = redrawableMaps[i];\n\t//console.log(getNow(), mIDX, 'fitBoundDT: ', fitBoundDT);\n\t//console.log(getNow(), mIDX, 'drawMapsDT: ', drawMapsDT);\n\t\n\t// re arrange decison table\n\tvar c = mIDX.substr(mIDX.length-1);\n\tvar fitBoundST = [fitBoundDT[c]];\n\tvar drawMapsST = [drawMapsDT[c]];\n\tfor (var i=0; i<app.m; i++) {\n\t\tif (i != c) {\n\t\t\tfitBoundST.push(fitBoundDT[i]);\n\t\t\tdrawMapsST.push(drawMapsDT[i]);\n\t\t}\n\t}\n\t//console.log(getNow(), mIDX, 'fitBoundST: ', fitBoundST);\n\t//console.log(getNow(), mIDX, 'drawMapsST: ', drawMapsST);\n\t\n\tif (needDrawing) {\n\t\t// build selectedGeoJSON\n\t\tapp.selectedGeoJSON = {\"type\":\"FeatureCollection\", \"features\":[]};\n\t\t$.each(selectedFeatures, function(rIdx, feature) {\n\t\t\tapp.selectedGeoJSON.features.push(app.receivedGeoJSON.features[feature[1]]);\n\t\t});\n\t\tCA = app.selectedGeoJSON;\n\t\tselectedFeatures = null;\n\t\tapp.selectedBounds = mapBounds;\n\t}\n\t\n\tvar mapN;\n\tfor (var i=0; i<app.m; i++) {\n\t\t//console.log('app.m:', app.m, ' i:', i)\n\t\t// fitBounds \n\t\tmapN = fitBoundST[i];\n\t\tif (mapN != \" \") {\n\t\t\t//console.log(getNow(), mapN, 'fit mapBounds: ', mapBounds);\n\t\t\tapp[mapN].map.fitBounds(mapBounds);\n\t\t}\n\t\t// redraw maps\n\t\tmapN = drawMapsST[i];\n\t\tif (mapN != \" \") {\n\t\t\t//console.log(getNow(), mapN, 'drawing map started.');\n\t\t\tdrawAmap(mapN, drawMode);\n\t\t}\n\t}\n\t// redraw charts\n\tfor (var i=0; i<app.d; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\t//console.log(getNow(), mapN, 'drawing chart started.');\n\t\tdrawAchart(mapN);\n\t}\n}", "function initMap() {\n map = new google.maps.Map(document.getElementById(\"map\"), {\n center: {\n lat: 26.137184,\n lng: 91.784439\n },\n zoom: 13,\n mapTypeId: 'roadmap'\n });\n\n infoWindow = new google.maps.InfoWindow();\n\n var bounds = new google.maps.LatLngBounds();\n\n for (var i = 0; i < placesData.length; i++) {\n addMarker(placesData[i]);\n bounds.extend(placesData[i].location);\n }\n map.fitBounds(bounds);\n}", "function updateBounds() {\n\n var crsNamesToLabels = new Object(); // It is not an array!\n crsNamesToLabels[\"EPSG:4326\"] = \"WGS84\";\n crsNamesToLabels[\"CRS:84\"] = \"WGS84\";\n crsNamesToLabels[\"EPSG:3035\"] = \"ETRS-LAEA\";\n crsNamesToLabels[\"EPSG:3034\"] = \"ETRS-LCC\";\n crsNamesToLabels[\"EPSG:4258\"] = \"ETRS89\";\n\n var proj = Ext.getCmp(\"lblProjection\");\n if (proj != undefined) {\n var curProj = map.getProjection();\n if (crsNamesToLabels[curProj] != undefined) {\n curProj = crsNamesToLabels[curProj];\n }\n proj.setText(curProj);\n }\n try {\n var digits = 3;\n if (useProjection == \"Lambert\")\n digits = 0;\n if (useProjection == \"WGS84\")\n digits = 5;\n cX.setValue(mapPanel.map.center.lon.toFixed(digits));\n cY.setValue(mapPanel.map.center.lat.toFixed(digits));\n }catch(ex)\n {\n }\n}", "function calculateInitialBounds(mapTopics) {\n var bounds = new OpenLayers.Bounds();\n for (var i = 0; i < mapTopics.result.topics.length; i++) {\n var lng = [mapTopics.result.topics[i].long];\n var lat = [mapTopics.result.topics[i].lat];\n var skip = false;\n if (lat == 0.0 || lng == 0.0) {\n skip = true;\n } else if (lng < -180.0 || lng > 180.0) {\n skip = true;\n } else if (lat < -90.0 || lat > 90.0) {\n skip = true;\n }\n if (!skip) {\n var point = new OpenLayers.LonLat(parseFloat(lng), parseFloat(lat));\n bounds.extend(point);\n }\n }\n return bounds;\n }", "getBounds() {}", "function zoomTo(e) {\n map.fitBounds(e.layer.getBounds());\n}", "function gmBoundsChanged() {\r\n\t\t\tvar bounds = _gMap.getBounds();\r\n\t\t\tif (bounds) {\r\n\t\t\t\t_gmSearchBox.setBounds(bounds);\r\n\t\t\t}\r\n\r\n\t\t\t// Boundary has been set, so don't set the zoom/center\r\n\t\t\t_areBoundsSet = true;\r\n\t\t} // gmBoundsChanged", "function fitMap() {\n const navbarHeight = 50\n window.resizeMap({ height: (window.innerHeight - navbarHeight) + 'px' })\n }", "function ZoomToLayersExtent() {\n\t// Create the bounding box with the max bounds\n\tvar maxBoundsBox = new OpenLayers.Bounds(maxLeftB, maxBottomB, maxRightB, maxTopB);\n\t// Zoom to the max bounds\n\tmap.zoomToExtent(maxBoundsBox);\n\t//console.log(maxLeftB + \", \" + maxBottomB + \", \" + maxRightB + \", \" + maxTopB);\n}", "function onMapBoundsChanged() {\n console.log(\"Change search box bounds\");\n var bounds = map.getBounds();\n searchBox.setBounds(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 }", "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 }", "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 }", "function fitExtent(extent){\n mapImplementation.FitExtent(extent);\n }", "function fitBounds(width, height, _bounds, options) {\n var bounds = new _mapboxGl.LngLatBounds([_bounds[0].reverse(), _bounds[1].reverse()]);\n options = options || {};\n var padding = typeof options.padding === 'undefined' ? 0 : options.padding;\n var offset = _mapboxGl.Point.convert([0, 0]);\n var tr = new _transform2.default();\n tr.width = width;\n tr.height = height;\n var nw = tr.project(bounds.getNorthWest());\n var se = tr.project(bounds.getSouthEast());\n var size = se.sub(nw);\n var scaleX = (tr.width - padding * 2 - Math.abs(offset.x) * 2) / size.x;\n var scaleY = (tr.height - padding * 2 - Math.abs(offset.y) * 2) / size.y;\n\n var center = tr.unproject(nw.add(se).div(2));\n var zoom = tr.scaleZoom(tr.scale * Math.min(scaleX, scaleY));\n return {\n latitude: center.lat,\n longitude: center.lng,\n zoom: zoom\n };\n}", "function clearBounds() {\n latlngBounds = new google.maps.LatLngBounds();\n }", "function fitEventsOnMap(eventList) {\n //Show all markers on map\n var bounds = new google.maps.LatLngBounds();\n var validEvents = 0;\n eventList.forEach(function(event) {\n //Check that event is Event and not placeholder \"pending\"\n if(event && event.place) {\n validEvents++;\n //Viewport looks better when the map is fitted to single place with a view port\n //When fitted to multiple points, location looks better\n if (event.place.geometry.viewport && Object.keys(eventList).length === 1) {\n // Only geocodes have viewport.\n bounds.union(event.place.geometry.viewport);\n } else {\n bounds.extend(event.place.geometry.location);\n }\n }\n });\n\n if(validEvents === 0) {\n //Fit map to location so it doesn't end up in pacific ocean\n // Try HTML5 geolocation.\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 localSession.map.setCenter(pos);\n }, function() {\n handleLocationError(true, infoWindow, map.getCenter());\n });\n } else {\n // If browser does not support location, set position to england\n var pos_default = {\n //Center on england\n lat: 54.73413609763893,\n lng: -3.3233642578125\n };\n localSession.map.setCenter(pos_default);\n }\n } else {\n localSession.map.fitBounds(bounds);\n }\n}", "function setMapFixedBounds(width, height) {\n\t\tthis.fixedWidth = width == null ? null : eval(width);\n\t\tthis.fixedHeight = height == null ? null : eval(height);\n\t}", "function loadMarkers() {\n var bounds = new google.maps.LatLngBounds();\n for (var i = 0; i < markers.length; i++) {\n locations[i].marker = markers[i];\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "defineMapBounds() {\n \n const coordinates = this.state.options.map(i => i.coordinates);\n\n let maxX = 0,\n minX = 0,\n maxY = 0,\n minY = 0;\n\n coordinates.forEach(coord => {\n if (coord[0] > maxY) {\n maxY = coord[0];\n }\n \n if (coord[0] < minY) {\n minY = coord[0];\n }\n\n if (coord[1] > maxX) {\n maxX = coord[1];\n }\n \n if (coord[1] < minX) {\n minX = coord[1];\n }\n })\n\n // Bounds are defined by two coordinates:\n // position1: the most W and N\n // position2: the most E and S\n this.setState({\n bounds: [[maxY, minX], [minY, maxX]],\n center: [(maxY - minY) / 2, (maxX - minX) / 2]\n })\n }", "calculateBounds() {\n this._bounds.clear();\n this._calculateBounds();\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n if (!child.visible || !child.renderable) {\n continue;\n }\n child.calculateBounds();\n // TODO: filter+mask, need to mask both somehow\n if (child._mask) {\n child._mask.calculateBounds();\n this._bounds.addBoundsMask(child._bounds, child._mask._bounds);\n }\n else if (child.filterArea) {\n this._bounds.addBoundsArea(child._bounds, child.filterArea);\n }\n else {\n this._bounds.addBounds(child._bounds);\n }\n }\n this._lastBoundsID = this._boundsID;\n }", "_calculateBounds() {\n // FILL IN//\n }", "function _refresh() {\n google.maps.event.trigger(_mapDOM.map, 'resize');\n _mapDOM.map.fitBounds(_markerBounds);\n}", "function initialize()\n{\n var map = \n new google.maps.Map(document.getElementById('map-canvas'));\n var bounds = new google.maps.LatLngBounds();\n var infowindow = new google.maps.InfoWindow();\n \n for (var i in LocationData)\n {\n var p = LocationData[i];\n var latlng = new google.maps.LatLng(p[0], p[1]);\n bounds.extend(latlng);\n \n var marker = new google.maps.Marker({\n position: latlng,\n map: map,\n title: p[2]\n });\n \n google.maps.event.addListener(marker, 'click', function() {\n infowindow.setContent(this.title);\n infowindow.open(map, this);\n });\n }\n \n map.fitBounds(bounds);\n}", "function centerOverAllLocations() {\n var bounds = new google.maps.LatLngBounds();\n var boundChange = false;\n if (routes.length > 0) {\n $(routes).each(function (key, route) {\n if (route.name == curRouteId) {\n if (route.path != null) {\n var array = route.path.getPath().getArray();\n for (var i = 0; i < array.length; i++) {\n bounds.extend(array[i]);\n }\n }\n }\n });\n boundChange = true;\n }\n if (stops.length > 0) {\n $(stops).each(function (key, stop) {\n if (stop.busstopinfo.map != null) {\n bounds.extend(stop.busstopinfo.position);\n }\n });\n boundChange = true;\n }\n if (markers.length > 0) {\n $(markers).each(function (key, bus) {\n if (markers.map_ != null) {\n bounds.extend(markers.pos_);\n }\n });\n }\n if (userLocationCircle && gpsPressed) {\n bounds.union(userLocationCircle.getBounds());\n boundChange = true;\n }\n if (boundChange) {\n newmap.fitBounds(bounds);\n }\n}", "function SetLayersExtent(obj) {\n\t// Get the bounds for the current layer\n\tvar curLeftB = obj.getDataExtent().left;\n\tvar curRightB = obj.getDataExtent().right;\n\tvar curTopB = obj.getDataExtent().top;\n\tvar curBottomB = obj.getDataExtent().bottom;\n\t\n\t// Set the max bound as the current bound if it's undefined\n\tif (maxLeftB == undefined)\n\t\tmaxLeftB = curLeftB;\n\tif (maxRightB == undefined)\n\t\tmaxRightB = curRightB;\n\tif (maxTopB == undefined)\n\t\tmaxTopB = curTopB;\n\tif (maxBottomB == undefined)\n\t\tmaxBottomB = curBottomB;\n\t\n\t// Change the max bound if the current bound makes the bounding box larger\n\tif (curLeftB < maxLeftB)\n\t\tmaxLeftB = curLeftB;\n\tif (curRightB > maxRightB)\n\t\tmaxRightB = curRightB;\n\tif (curTopB > maxTopB)\n\t\tmaxTopB = curTopB;\n\tif (curBottomB < maxBottomB)\n\t\tmaxBottomB = curBottomB;\t\t\n}", "focus() {\n \tvar {circle} = this.state;\n \tvar {map} = this.state;\n \tif(circle && map) {\n \t\tmap.fitBounds(circle.getBounds());\n \t}\n }", "function mapReset() {\n\tinfoWindow.map ? reposInfoWindow() : map.fitBounds(bounds);\n}", "constrainToMap() {\n //check position on x axis and counter force\n if (this.x < (windowWidth / 20)) {\n this.vx += 1;\n }\n if (this.x > (windowWidth - windowWidth / 20)) {\n this.vx -= 1;\n }\n\n // check position on y axis and counter force\n if (this.y < (windowHeight / 5)) {\n this.vy += 1;\n }\n if (this.y > (windowHeight - windowHeight / 10)) {\n this.vy -= 1;\n }\n }", "calculateBounds_() {\n const bounds = new google.maps.LatLngBounds(this.center_, this.center_);\n this.bounds_ = this.markerClusterer_.getExtendedBounds(bounds);\n }", "setExtent() {\n\n var tl = this.props.map.containerPointToLatLng(this.tl);\n var br = this.props.map.containerPointToLatLng(this.br);\n\n tl = this.projection([tl.lng, tl.lat]);\n br = this.projection([br.lng, br.lat]);\n\n this.extent.attr({\n x: tl[0],\n y: tl[1],\n height: br[1]-tl[1],\n width: br[0]-tl[0],\n });\n\n }", "updateBounds() {\n this.bounds = getBounds(this);\n }", "function showAllMarkers() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n markers[i].setAnimation(google.maps.Animation.DROP);\n bounds.extend(markers[i].position);\n }\n google.maps.event.addDomListener(window, 'resize', function() {\n map.fitBounds(bounds); // `bounds` is a `LatLngBounds` object\n });\n map.fitBounds(bounds);\n}", "function boundsChanged(){\r\n config.currentZoomLevel = config.mapObj.getZoom();\r\n\r\n //hide any visible marker overlays\r\n $('#marker-overlay').remove();\r\n \r\n var styleType = config.zoomLevelStyles[config.currentZoomLevel];\r\n \r\n $.logEvent('[$.boundsChanged]: style required for zoom level (' + config.currentZoomLevel + ') = ' + NI.map.themeDefinitions[config.currentZoomLevel]);\r\n\r\n //update the style\r\n config.styledMapType = new google.maps.StyledMapType(NI.map.themeDefinitions[styleType],{map:config.mapObj,name:styleType});\r\n config.mapObj.mapTypes.set(styleType,config.styledMapType);\r\n config.mapObj.setMapTypeId(styleType);\r\n\r\n updateInformation({\r\n styleType:styleType,\r\n zoomLevel:config.currentZoomLevel\r\n });\r\n \r\n var boundsObj = config.mapObj.getBounds();\r\n config.boundsCoOrdinatesObj = {\r\n neLatitude:boundsObj.getNorthEast().lat(),\r\n neLongitude:boundsObj.getNorthEast().lng(),\r\n nwLatitude:boundsObj.getSouthWest().lat(),\r\n nwLongitude:boundsObj.getNorthEast().lng(),\r\n swLongitude:boundsObj.getSouthWest().lng(),\r\n swLatitude:boundsObj.getSouthWest().lat()\r\n }\r\n nwPixelCoordinate = latLngToPixel({\r\n map:config.mapObj,\r\n latLng:new google.maps.LatLng(config.boundsCoOrdinatesObj.nwLatitude,config.boundsCoOrdinatesObj.nwLongitude),\r\n zoomLevel:config.currentZoomLevel\r\n });\r\n var nePixelCoordinate = latLngToPixel({\r\n map:config.mapObj,\r\n latLng:new google.maps.LatLng(config.boundsCoOrdinatesObj.neLatitude,config.boundsCoOrdinatesObj.neLongitude),\r\n zoomLevel:config.currentZoomLevel\r\n });\r\n var neTileCoordinate = new google.maps.Point(\r\n Math.floor(nePixelCoordinate.x/config.tileSize),\r\n Math.floor(nePixelCoordinate.y/config.tileSize)\r\n );\r\n var swPixelCoordinate = latLngToPixel({\r\n map:config.mapObj,\r\n latLng:new google.maps.LatLng(config.boundsCoOrdinatesObj.swLatitude,config.boundsCoOrdinatesObj.swLongitude),\r\n zoomLevel:config.currentZoomLevel\r\n });\r\n var swTileCoordinate = new google.maps.Point(\r\n Math.floor(swPixelCoordinate.x/config.tileSize),\r\n Math.floor(swPixelCoordinate.y/config.tileSize)\r\n ); \r\n var tilesBetween = getTilesBetween({\r\n bottomLeftTile:swTileCoordinate,\r\n topRightTile:neTileCoordinate\r\n });\r\n \r\n $.logEvent('[$.boundsChanged]: neTileCoordinate=' + neTileCoordinate + ', swTileCoordinate=' + swTileCoordinate);\r\n $.logEvent('[$.boundsChanged]: total tiles between (' + tilesBetween.length + '), tiles between=' + tilesBetween); \r\n $.logEvent('[$.boundsChanged]: current zoom level: ' + config.currentZoomLevel + ', topRight: (' + neTileCoordinate.x + ',' + neTileCoordinate.y + '), bottomLeft: (' + swTileCoordinate.x + ',' + swTileCoordinate.y + ')');\r\n\r\n //loop through the visible tiles to get the location data\r\n tileCoordinateToTileId(tilesBetween);\r\n }", "set localBounds(value) {}", "function setMapExtentToAllGeotags(mapcontrol, geotags) {\n\t\tconsole.log(\"setMapExtentToAllGeotags\");\n\t\tconsole.log(geotags.length);\n\t\t// No Geotags\n\t\tif (geotags.length == 0) {\n\t\t\t//Do nothing\n\t\t}\n\t\t// Cover All Geotags\n\t\telse {\n\t\t\tvar default_bounds = new OpenLayers.Bounds();\n\t\t\t\n\t\t\tfor(var i=0; i<geotags.length; i++) {\t\n\t\t\t\tvar temp_geotag = createLonLatFromGeotag(geotags[i]);\n\n\t\t\t\t// Extend the bounds to include the lonlat\n\t\t\t\tdefault_bounds.extend(temp_geotag);\n\t\t\t\tif (!default_bounds.containsLonLat(geotags[i]))\n\t\t\t\t\talert('Point not in bounds');\n\t\t\t}\n\t\t\t\n\t\t\t//If there is only one geotag, use zoom level 7\n\t\t\tif (default_bounds.top==default_bounds.bottom && default_bounds.left == default_bounds.right) {\n\t\t\t\tmapcontrol.zoomToExtent(default_bounds, false);\n\t\t\t\tzoomMap(Math.min(mapcontrol.zoom,7));\n\t\t\t}\n\t\t\t//If there are several geotags, expand the box and assume that their spread indicates a good zoom level\n\t\t\telse {\n\t\t\t\tvar size = default_bounds.getSize();\n\t\t\t\tdefault_bounds.top += 0.3*size.h;\n\t\t\t\tdefault_bounds.bottom -= 0.3*size.h;\n\t\t\t\tdefault_bounds.left -= 0.3*size.w;\n\t\t\t\tdefault_bounds.right += 0.3*size.w;\n\t\t\t\tmapcontrol.zoomToExtent(default_bounds, true);\n\t\t\t}\n\t\t}\n\t}", "function constrainMap(E)\n{\n\tvar VPbounds, URL;\n\n\twhile(!(VPbounds = map.getBounds()))\n\t\t; // Hmmm! Busy wait?\n\t\n\t// Register new zoom & centre values in Page URL\n\tzoom = map.getZoom();\n\tcentre = map.getCenter();\n\n\tURL = document.getElementById(\"Url\").innerHTML;\n\tURL = URL.replace(/centre=-*\\d+\\.\\d+,-*\\d+\\.\\d+/, \"centre=\" + centre.toUrlValue() );\n\tURL = URL.replace(/zoom=\\d+/, \"zoom=\" + zoom);\n\tdocument.getElementById(\"Url\").innerHTML = URL;\n\n\t// Check that overlay corners are within ViewPort\n var fid = document.getElementById(\"Day\").options.selectedIndex\n if( !VPbounds.intersects(forecasts[fid].bounds)){\n\t\tif(confirm(\"Map Outside ViewPort\\nReCentre?\")){\n\t\t\tmap.setCenter(forecasts[fid].centre);\n\t\t\tcentre = map.getCenter();\n\t\t}\n\t}\n}", "function updateBounds(memoBounds, bounds) {\n for (let lim = 0; lim < 2; lim++) { // limit (0 = min; 1 = max)\n for (let dim = 0; dim < 2; dim++) { // dimension (0 = x; 1 = y)\n memoBounds[lim][dim] =\n Math[lim === 0 ? 'min' : 'max'](memoBounds[lim][dim], bounds[lim][dim])\n }\n }\n}", "function storeMapBounds() {\n\t\tthis.mapWidth = document.getElementById(MAP).scrollWidth;\n\t\tthis.mapHeight = document.getElementById(MAP).scrollHeight;\n\t}", "function clearAllMarkersAndBounds() {\n for(var i = 0; i < markers.length; i++) {\n markers[i].setMap(null);\n }\n markers = [];\n latLngBounds = new google.maps.LatLngBounds();\n }", "function OverlayFit() { }", "function lockBounds(map)\n{\n\n var currentBounds = map.getBounds(),\n current_ne_lng = currentBounds.getNorthEast().lng(),\n current_ne_lat = currentBounds.getNorthEast().lat(),\n current_sw_lng = currentBounds.getSouthWest().lng(),\n current_sw_lat = currentBounds.getSouthWest().lat();\n\n strict_ne_lng = strictBounds.getNorthEast().lng(),\n strict_ne_lat = strictBounds.getNorthEast().lat(),\n strict_sw_lng = strictBounds.getSouthWest().lng(),\n strict_sw_lat = strictBounds.getSouthWest().lat();\n\n var currentCenter = map.getCenter();\n center_lng = currentCenter.lng(),\n center_lat = currentCenter.lat();\n\n if (current_ne_lng > strict_ne_lng) center_lng = 4.915720;\n if (current_ne_lat > strict_ne_lat) center_lat = 52.374288;\n if (current_sw_lng < strict_sw_lng) center_lng = 4.915720;\n if (current_sw_lat < strict_sw_lat) center_lat = 52.374288;\n\n map.setCenter(new google.maps.LatLng(center_lat, center_lng));\n}", "function extenderLimites (lugar) {\n if (lugar.geometry.viewport) {\n limites.union(lugar.geometry.viewport)\n } else {\n limites.extend(lugar.geometry.location)\n }\n mapa.fitBounds(limites)\n }", "function showListings() {\r\n var bounds = new google.maps.LatLngBounds();\r\n // Extend the boundaries of the map for each marker and display the marker\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n bounds.extend(markers[i].position);\r\n }\r\n google.maps.event.addDomListener(window, 'resize', function() {\r\n map.fitBounds(bounds); // `bounds` is a `LatLngBounds` object\r\n});\r\n}", "fit() {\n let workspace = this.elements.bbox.getBoundingClientRect();\n let width = workspace.width / this.scale;\n let height = workspace.height / this.scale;\n\n // no contents...\n if (!width || !height) {\n this.center();\n return;\n }\n\n // zoom to fit the view minus the padding\n const padding = this.settings.fitPadding * 2;\n const scaleX = (this.elements.blueprint.offsetWidth - padding) / width;\n const scaleY = (this.elements.blueprint.offsetHeight - padding) / height;\n const scale = Math.min(scaleX, scaleY);\n\n this.zoom(scale);\n\n // move the workspace at center of the view\n const blueprint = this.elements.blueprint.getBoundingClientRect();\n workspace = this.elements.bbox.getBoundingClientRect();\n width = (blueprint.width - workspace.width) / 2;\n height = (blueprint.height - workspace.height) / 2;\n\n this.pan({\n x: -workspace.left + blueprint.left + width,\n y: -workspace.top + blueprint.top + height\n });\n }", "loadAllCatchments() {\n\t\tGoogleMaps.load((google) => {\t\t\n\t\t\tthis.kmlLayer = new google.maps.KmlLayer({\n\t\t\t\turl: this.catchments.all,\n\t\t\t\tpreserveViewport: true\n\t\t\t});\n\n\t\t\tthis.kmlLayer.setMap(this.map);\n\t\t});\t\t\n\t}", "function boundsToExtent (bounds) {\n bounds = leaflet.latLngBounds(bounds);\n return {\n 'xmin': bounds.getSouthWest().lng,\n 'ymin': bounds.getSouthWest().lat,\n 'xmax': bounds.getNorthEast().lng,\n 'ymax': bounds.getNorthEast().lat,\n 'spatialReference': {\n 'wkid': 4326\n }\n };\n}", "function showMarkers() {\n bounds = new google.maps.LatLngBounds();\n\n for (var key in markersDictionary) {\n markersDictionary[key].setMap(map);\n bounds.extend(markersDictionary[key].position);\n }\n map.fitBounds(bounds);\n}", "function zoomMapToFitTeachers(teachers) {\n var minLat;\n var minLng;\n var maxLat;\n var maxLng;\n \n teachers.forEach(function(teacher) {\n if (!minLat || minLat > teacher.lat) {\n minLat = teacher.lat;\n }\n \n if (!maxLat || maxLat < teacher.lat) {\n maxLat = teacher.lat;\n }\n \n if (!minLng || minLng > teacher.lng) {\n minLng = teacher.lng;\n }\n \n if (!maxLng || maxLng < teacher.lng) {\n maxLng = teacher.lng;\n }\n });\n \n mymap.fitBounds([\n [minLat, minLng],\n [maxLat, maxLng]\n ]);\n }", "function centerMap(){\n map.fitBounds(b);\n map.setZoom(z);\n }", "fitAllMarkers() {\n const temMark = this.state.MARKERS;\n console.log(\"temMarks: \", temMark);\n console.log( \"------fitAllMarkers------\")\n this.setState({loading:false});\n if (this.mapRef == null) {\n console.log(\"map is null\")\n } else {\n //option:1 \n console.log(\"temMark : \" + JSON.stringify(temMark));\n // this.mapRef.animateToRegion(temMark[0], 5);\n // this.mapRef.animateToRegion(temMark[temMark.length-1], 5);\n this.mapRef.fitToCoordinates(temMark, {\n edgePadding: DEFAULT_PADDING,\n animated: false,\n }); \n }\n }", "function resizeMap() {\n var currCenter = map.getCenter();\n google.maps.event.trigger(map, 'resize');\n map.setCenter(currCenter);\n if (bounds) {\n map.fitBounds(bounds);\n } else {\n map.setCenter(map.getCenter());\n }\n}", "function getMapBounds() {\r\n\t\t//return app.location.bounds;\r\n\t\treturn app.map.map.getBounds();\r\n\t}", "function boundsToExtent (bounds) {\r\n bounds = Object(leaflet__WEBPACK_IMPORTED_MODULE_0__[\"latLngBounds\"])(bounds);\r\n return {\r\n 'xmin': bounds.getSouthWest().lng,\r\n 'ymin': bounds.getSouthWest().lat,\r\n 'xmax': bounds.getNorthEast().lng,\r\n 'ymax': bounds.getNorthEast().lat,\r\n 'spatialReference': {\r\n 'wkid': 4326\r\n }\r\n };\r\n}", "function set_markers(bounds, map) {\n console.log('#locations: ' + locations.length);\n console.log(bounds);\n \n for (var i = 0; i < locations.length; i++) {\n marker = new google.maps.Marker({\n position: new google.maps.LatLng(locations[i][1], locations[i][2]),\n map: map\n });\n bounds.extend(marker.position);\n google.maps.event.addListener(marker, 'click', (function (marker, i) {\n return function () {\n infowindow.setContent(locations[i][0]);\n infowindow.open(map, marker);\n }\n })(marker, i));\n }\n map.fitBounds(bounds);\n}", "getBounds() {\n const bounds = this.options.bounds\n ? L.latLngBounds(this.options.bounds)\n : this._clusters.getBounds()\n\n if (bounds.isValid()) {\n return toLngLatBounds(bounds)\n }\n }", "getLatLngBounds() {\n let bounds = new google.maps.LatLngBounds();\n // If the flight is big just having the two end points will cut off part of the route\n for(let i = 0; i <= 1; i+= 0.1) {\n bounds.extend(this.getIntermediatePoint(i));\n }\n return bounds;\n }", "function setupMap() {\n\tvar bbox = getURLParameter('bbox') || \"-11.0133787,51.222,-5.6582362,55.636\";\n\tapi_url = \"https://api.openstreetmap.org/api/0.6/changesets?bbox=\" + bbox\n\tvar fields = bbox.split(',');\n\tvar minlong = fields[0] * 1;\n\tvar minlat = fields[1] * 1;\n\tvar maxlong = fields[2] * 1;\n\tvar maxlat = fields[3] * 1;\n\tmymap = L.map(\"mapid\", {editable: true});\n\tvar OpenStreetMap_Mapnik = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n\t\tmaxZoom: 19,\n\t\tattribution: '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a>'\n\t});\n\tvar southwest = new L.latLng(minlat, minlong);\n\tvar northeast = new L.latLng(maxlat, maxlong);\n\tbounds = new L.LatLngBounds([southwest, northeast]);\n\tupdateLocationBar(minlong, minlat, maxlong, maxlat);\n\n\tmymap.fitBounds(bounds);\n\n\tOpenStreetMap_Mapnik.addTo(mymap);\n\n\tL.EditControl = L.Control.extend({});\n\tL.NewRectangleControl = L.EditControl.extend({});\n\tvar rectangle = L.rectangle([southwest,northeast]).addTo(mymap);\n\trectangle.enableEdit();\n\trectangle.on(\"editable:dragend editable:vertex:dragend\", function() {\n\t\tbounds = this.getBounds();\n\t\tupdateMap();\n\t});\n}", "_calculateBounds() {\n var minX = this._width * -this._anchor._x;\n var minY = this._height * -this._anchor._y;\n var maxX = this._width * (1 - this._anchor._x);\n var maxY = this._height * (1 - this._anchor._y);\n this._bounds.addFrame(this.transform, minX, minY, maxX, maxY);\n }", "function initialize() {\n\tmap = new google.maps.Map(document.getElementById('map-canvas'), {\n\t zoom: 5,\n\t center: new google.maps.LatLng(28.459497,77.026638),\n\t mapTypeId: google.maps.MapTypeId.TERRAIN\n\t});\n\n\tvar l=a.length;\n\tconsole.log(a);\n\t\n\tvar bounds = new google.maps.LatLngBounds();\n\tfor(var k=0;k<l;k++)\n\t{\n\t\tvar lat=a[k][0];\n\t\tvar lng=a[k][1];\n\t\t//alert(lat);\n\t\t//alert(lng);\n\t\tvar myLatLng =new google.maps.LatLng(lat,lng);\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: myLatLng,\n\t\t\tmap: map\n\t\t});\n\t\tbounds.extend(myLatLng);\n\t\taddInfoWindow(marker,'j',myLatLng,k);\n\t\t\n\t}\n\tmap.fitBounds(bounds);\n\n}" ]
[ "0.7521457", "0.71557564", "0.71422976", "0.7072659", "0.6976199", "0.6955695", "0.6838777", "0.6762365", "0.67474025", "0.666239", "0.6539566", "0.6530219", "0.6440325", "0.64205784", "0.6359347", "0.6307487", "0.62814605", "0.6263117", "0.6219432", "0.6191661", "0.6158303", "0.6154485", "0.6135016", "0.60370237", "0.5991942", "0.59278005", "0.59170336", "0.5909253", "0.5908169", "0.58966976", "0.588607", "0.58825463", "0.58679533", "0.5845765", "0.58166677", "0.5768595", "0.5765362", "0.5726784", "0.57244325", "0.5720211", "0.57048196", "0.569387", "0.5678208", "0.56738836", "0.56440216", "0.5609798", "0.55821186", "0.5579059", "0.55772394", "0.5573243", "0.55714756", "0.55714756", "0.55714756", "0.55700463", "0.5569153", "0.5542182", "0.55360144", "0.5535624", "0.55318105", "0.55159104", "0.55115324", "0.5509205", "0.5499888", "0.54968005", "0.549666", "0.5494903", "0.5492251", "0.54827815", "0.5478226", "0.54741734", "0.5471648", "0.5466132", "0.54650396", "0.5461683", "0.54579705", "0.5446589", "0.54339606", "0.5433375", "0.5424584", "0.5421845", "0.54159", "0.54059845", "0.53869593", "0.53825426", "0.53818214", "0.5366761", "0.5362644", "0.53582907", "0.53539306", "0.5350609", "0.5346273", "0.53382385", "0.53376395", "0.5335636", "0.53299904", "0.5329159", "0.532406", "0.53190094", "0.53068346", "0.53053135" ]
0.86303794
0
Returns true if all the tracks have been loaded into the map
function tracksDoneLoading(){ return trackLayerGroup.getLayers().length == Object.keys(tracks).length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function allLoaded() {\n for (var i = 0; i != images.length; ++i) {\n if (!images[i].loaded) return false;\n }\n return true;\n }", "function ready() {\n for (var i = 0; i < preloadTiles.length; i++) {\n var state = layerAbove.textureStore().query(preloadTiles[i]);\n if (!state.hasTexture) {\n return false;\n }\n }\n return true;\n}", "function isReady() {\n return map != null;\n }", "function isLoadingDone() {\n if (appData.lists.length && appData.members.length) {\n return true;\n } else {\n return false;\n }\n}", "function ready() {\n return Object.keys(self.players.list).length == 2;\n }", "confirmImagesAreAllLoaded() {\n\t\tfor (let i = 0; i < this.images.length; i++) {\n\t\t\tlet image = this.images[i];\n\t\t\tif (!image.isLoaded) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "containTrack(id){\r\n const track = this.getTrackById(id);\r\n return this.getTracks().includes(track);\r\n }", "async loadTracks() {\n if (!Is.empty(this.user.tracks)) {\n this.tracks = this.user.tracks;\n } else {\n this.isLoading = true;\n }\n\n let response = await this.meService.tracks();\n\n this.tracks = response.records;\n\n this.isLoading = false;\n\n this.user.update('tracks', this.tracks);\n }", "function isLoaded() {\n\treturn LOADED;\n}", "isLoadStarted() {\n const entriesType = this.getEntriesType();\n const { state } = this.props;\n\n return state.entries[entriesType].isLoadStarted || false;\n }", "function loadComplete() {\n\thasLoaded = true;\n}", "isLoadPerformed() {\n const entriesType = this.getEntriesType();\n\n const { isLoadPerformed = false } = this.props.state.entries[entriesType];\n\n return isLoadPerformed;\n }", "function loadDone() {\n return true;\n }", "function isMapLoaded() {\n if (!mapReceived) {\n currentNode.trigger('onMapRequested', eventName);\n }\n return mapReceived;\n }", "function presentMap() {\n if (tracksDoneLoading()) {\n hideLoader();\n fitMapBounds();\n loadPhotos();\n }\n }", "function isLoaded() {\n\t var result = true;\n\n\t imgElements().forEach(function (img) {\n\t if (!img.complete) {\n\t result = false;\n\t }\n\t });\n\n\t return result;\n\t }", "resolved() {\n for (let chunk of this) {\n if (!chunk.blocks) { return false; }\n }\n return true;\n }", "static allQuestCompleted() {\n for (let questCompleted of player.completedQuestList) {\n if (!questCompleted()) {\n return false;\n }\n }\n return true;\n }", "function boat_has_this_load(loads, load_id) {\n flag = false;\n loads.forEach((load) => {\n if (load.key == load_id) {\n flag = true;\n }\n });\n return flag;\n}", "isLoaded(tailNum) {\n\t\treturn (tailNum in this.flightData) && (!this.flightData[tailNum].loading)\n\t}", "handleLoad() {\n if (!this.stateMap.alone) { return false; }\n\n this.stateMap.alone = false;\n this.handleResize();\n console.log('Loaded!');\n return true;\n }", "allPlayersDone() {\n var showHostOffset = 0;\n var doneCount = 0;\n\n this.playerMap.doAll((player) => {\n if (player.isShowHost) {\n showHostOffset++;\n } else if (!player.hasFastestFingerChoicesLeft()) {\n doneCount++;\n }\n });\n\n return doneCount >= this.playerMap.getPlayerCount() - showHostOffset;\n }", "fetchTracks(latLngBounds) {\n var west = latLngBounds.getWest();\n var south = latLngBounds.getSouth();\n var east = latLngBounds.getEast();\n var north = latLngBounds.getNorth();\n fetch(baseUrl + 'api/search/' + west + '/' + south + '/' + east + '/' + north)\n .then(response => response.json())\n .then(trackids => {\n trackids.forEach((key) => {\n console.log(key);\n // fetch the track only if it's not fetched yet\n if (!this.tracks.has(key)) {\n fetch(baseUrl + 'api/SchweizMobil/Track/' + key)\n .then(response => response.json())\n .then(json => {\n var track = JSON.parse(json[0].value);\n var trackLayer = L.geoJSON(track)\n this.tracks.set(key, trackLayer);\n trackLayer.addTo(this.map);\n })\n .catch(error => console.log(error))\n }\n })\n })\n .catch(error => console.log(error))\n }", "function checkStatus() {\n var allDone = true;\n\n for (var _i = 0; _i < layers.length; _i++) {\n if (layers[_i].loaded === false) {\n allDone = false;\n break;\n }\n }\n\n if (allDone) finish();else setTimeout(checkStatus, 500);\n }", "function allRelevantEventsLoaded (events) {\n return events.some(event => moment(event.Timestamp).valueOf() < startedAt)\n }", "function GotEverything() {\n return entryInfo.entries.length >= entryInfo.totalCount;\n }", "isLoaded() {\n logger.debug('===in isLoaded Pinterest Tag===');\n\n return !!(window.pintrk && window.pintrk.push !== Array.prototype.push);\n }", "function getData(){ \n console.log(\"citymap.length=\"+citymap.length);\n for (var city in citymap) {\n //console.log(\"getting top track for the country \"+citymap[city].Country+\" corresponding to the metro \"+ city);\n \n getTopTracks(citymap[city].Country, city);\n }\n console.log(\"HELLO ALLTOPTRACKS.length=\" +ALLTOPTRACKS.length);\n}", "allTracks(){\n return this.collecTracks(this.collectAlbums());\n }", "function checkAllItemsStartedPreloading(){\n\t\t\n\t\tif(g_temp.isAllItemsPreloaded == true)\n\t\t\treturn(false);\n\t\t\n\t\t//if some of the items not started, exit function:\n\t\tfor(var index in g_arrItems){\n\t\t\tif(g_arrItems[index].isBigImageLoadStarted == false)\n\t\t\t\treturn(false);\n\t\t}\n\t\t\n\t\t//if all started, set flag to true\n\t\tg_temp.isAllItemsPreloaded = true;\t\n\t}", "function checkTracks() {\n\tvar rebuild = false;\n\tvar now = new Date().getTime();\n\tfor (var i = all_tracks.length-1; i >= 0; i--) {\n\t\tvar track = all_tracks[i];\n\t\tif (now - all_track_timestamps[track] > 900000) {\n\t\t\tconsole.log(\"Removing old track: \" + track);\n\t\t\tall_tracks.splice(i, 1);\n\t\t\tdelete all_track_timestamps[track];\n\t\t\trebuild = true;\n\t\t}\n\t};\n\tif (rebuild) {\n\t\tnew_tracks = all_tracks;\n\t\tall_tracks = [];\n\t}\n}", "hasContentsOfAllSources() {\n return this._sections.every(function (s) {\n return s.consumer.hasContentsOfAllSources()\n })\n }", "function checkCounts(){\n\tfor(cat in landmarks){\n\t\tif(landmarks[cat].length != targetCounts[cat]){\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}", "allQuestCompleted() {\n return !this.incompleteQuests().length;\n }", "function cargaFinalizada() {\n return travelreq.finishedLoad && driversLoader.finishedLoad && positionsLoader.finishedLoad && incidentsLoader.finishedLoad;\n }", "function isLoading() {\n\t\t\treturn loading;\n\t\t}", "get loaded () {\n\t\treturn typeof this.elements === 'undefined';\n\t}", "function getTracks() {\n vm.loader.start();\n MainService.getTracks()\n .then(function (response) {\n vm.trackList = response.data.tracks.track;\n })\n .finally(function() {\n vm.loader.complete();\n });\n }", "isCompleted(mapLocationObject) {\n const { document: ml } = mapLocationObject;\n\n // return ml.entities.length > 0 || ml.query !== '';\n }", "isDataFetchComplete() {\n const { homepageData, allProjects } = this.state;\n return homepageData !== null && isNonEmptyArray(allProjects);\n }", "async function loadPlayers() {\n playersLoaded = true;\n // create a promise to load every play on each individual team\n const teamIds = Object.keys(teamsUnsorted);\n const promises = [];\n for (let i = 0; i < teamIds.length; i++) {\n promises.push(new Promise((resolve) => {\n resolve(loadPlayersOnTeam(teamIds[i]));\n }));\n }\n\n // fulfill the promises\n await Promise.all(promises);\n}", "allTerritoriesClaimed(){\r\n let claimedCount = 0;\r\n Object.keys(this.mapGrid.hashOfTiles).forEach( pointer => {\r\n let tile = this.mapGrid.hashOfTiles[pointer];\r\n if (tile.status === true){\r\n claimedCount += 1;\r\n }\r\n })\r\n \r\n if (claimedCount === this.mapGrid.size - 6){\r\n this.claimTerritoryPhase = false; // this will NOT be REACTIVATED\r\n this.initialPlacementPhase = true; \r\n } \r\n }", "function _isTeamsLoaded(value){\n return _areItemsLoaded('teams',value);\n }", "get loaded() {\n return this.request(`${this.prefix}is_loaded`, []);\n }", "function isLoading() {\n\t\treturn xhrResolutions < xhrCreations;\n\t}", "function isLoaded(col,i,j) {\r\n\t\treturn (typeof($['mapsettings'].loaded[$['mapsettings'].zoom+\"-\"+col+\"-\"+i+\"-\"+j]) != \"undefined\" && $['mapsettings'].loaded[$['mapsettings'].zoom+\"-\"+col+\"-\"+i+\"-\"+j]);\r\n\t}", "function allPlayersAtHome():boolean{\n\tvar x = 0;\n\tfor (var child : Transform in players) {\n\t\tif ( ( child.position - defendingTargets[x].position ).sqrMagnitude > 3 ) return false;\n\t\tx++;\t\t\n\t}\n\treturn true;\n}", "function all() {\n return true;\n }", "function loadTracks() {\n numPlayers = Math.min(audioTags.length, allTracks.length);\n var tracksAdded = 0;\n var i = 0;\n\n while (tracksAdded < numPlayers) {\n var thisTrack = allTracks.pop();\n if (thisTrack.streamable === true) {\n console.log(thisTrack);\n var audio = audioTags[tracksAdded];\n audio.attr(\"src\", thisTrack.stream_url + \"?client_id=\"+client_id[tracksAdded%2]);\n audio[0].volume = 0;\n audio[0].play();\n\n $(h2s[tracksAdded]).append(\"<a href='\" + thisTrack.permalink_url + \"' target='_blank'>\" + thisTrack.title + \"</a>\");\n\n if (thisTrack.artwork_url) { \n imgs[tracksAdded].src = thisTrack.artwork_url.replace(\"large\", \"t500x500\");\n } else {\n imgs[tracksAdded].src = \"images/default.png\";\n }\n tracksAdded++;\n }\n i++;\n }\n }", "function checkLoaded() {\n imageCount = 0;\n if (done) {\n checkOption();\n for (var i = 0; i < images.length; i++) {\n images[i].onload = function () {\n imageCount++;\n if (imageCount == images.length && done) {\n drawPhotos();\n }\n };\n }\n }\n }", "function checkComplete() {\n if (listQuestion.length === Object.keys(listResult).length) {\n return true\n } else {\n return false\n }\n}", "function areGifWellSet(){\n let bool = true;\n let i = 0 ;\n const len = gifClickZone.length;\n while(i < len && bool){\n if(gifClickZone[i].id[2][gifOnScene[i].get_current_frame()] != 2){\n bool = false;\n }\n i++;\n }\n return bool;\n}", "function camAllArtifactsPickedUp()\n{\n\t// FIXME: O(n) lookup here\n\treturn __camNumArtifacts === Object.keys(__camArtifacts).length;\n}", "get tilesLoaded() {\n return this._tilesLoaded;\n }", "function isBusy() {\n return audioElementsToPlay.length > 0;\n }", "function onAllLoaded() {\n console.log('all loaded');\n}", "function checkLoading(bool) {\r\n if (bool && !LOADING) {\r\n LoadingStore.loadingStart();\r\n }\r\n else if (!bool && LOADING == 1) {\r\n LoadingStore.loadingStop();\r\n }\r\n LOADING += bool ? 1 : -1;\r\n}", "isGameFull(){\n return Object.keys(this.players).length >= this.maxPlayers;\n }", "mapLoaded(resolve) {\r\n // Resolve map load promise\r\n resolve();\r\n\r\n // Add map layers\r\n this.addMapLayers();\r\n }", "get allModelsLoaded() {\n return this._modelsLoaded;\n }", "loaded(){\n return this.isLoaded;\n }", "needsLoad() {\n // NOTE: The *only* reason DAILY_STATE_LOADING is here is to preserve a bug\n // that I (@kompfner) am a bit hesitant to fix until more time can be\n // dedicated to doing the *right* fix. If we're in DAILY_STATE_LOADING, we\n // probably *shouldn't* let you trigger another load() and get into a weird\n // state, but this has been long-standing behavior. The alternative would mean\n // that, if load() failed silently for some reason, you couldn't re-trigger it\n // since we'd be stuck in the DAILY_STATE_LOADING state.\n return [\n DAILY_STATE_NEW,\n DAILY_STATE_LOADING,\n DAILY_STATE_LEFT,\n DAILY_STATE_ERROR,\n ].includes(this._meetingState);\n }", "hasContentsOfAllSources() {\n if (!this.sourcesContent) {\n return false\n }\n return (\n this.sourcesContent.length >= this._sources.size() &&\n !this.sourcesContent.some(function (sc) {\n return sc == null\n })\n )\n }", "function whenLoaded(map, f) {\n if (map.loaded()) {\n console.log('Already loaded.');\n f();\n }\n else { \n console.log('Wait for load');\n map.once('load', f);\n }\n}", "function onLoadComplete()\n {\n this.loaded = true;\n }", "function Interpreter_HasFramesWaitingForLoading()\n{\n\t//assume we are completed\n\tvar bHasFramesLoading = false;\n\t//loop through the iframes\n\tfor (var i = 0, c = this.IFramesWaitingForLoad.length; i < c; i++)\n\t{\n\t\t//get the object\n\t\tvar intObject = this.LoadedObjects[this.IFramesWaitingForLoad[i]];\n\t\t//valid?\n\t\tif (intObject && intObject.HTML)\n\t\t{\n\t\t\t//check if its ready\n\t\t\tif (!intObject.HTML.contentWindow || !intObject.HTML.contentWindow.document || !intObject.HTML.contentWindow.document.body || intObject.HTML.contentWindow.document.readyState != \"complete\")\n\t\t\t{\n\t\t\t\t//is the problem the uninitialised?\n\t\t\t\tif (intObject.HTML.contentWindow && intObject.HTML.contentWindow.document && intObject.HTML.contentWindow.document.body && intObject.HTML.contentWindow.document.readyState != \"complete\")\n\t\t\t\t{\n\t\t\t\t\t//open the doc\n\t\t\t\t\tintObject.HTML.contentWindow.document.open();\n\t\t\t\t\t//and close it\n\t\t\t\t\tintObject.HTML.contentWindow.document.close();\n\t\t\t\t}\n\t\t\t\t//not ready\n\t\t\t\tbHasFramesLoading = true;\n\t\t\t\t//end loop\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\t//return the result\n\treturn bHasFramesLoading;\n}", "isLoaded(loadState) {\n if (loadState) {\n this.pending--;\n this.cd.markForCheck();\n }\n }", "validMatchAvailable () {\n var textureList = []\n \n for (var i = 0; i < this.roots.length; i++) {\n if (!this.roots[i].selectable) {\n continue\n }\n if (textureList.indexOf(this.roots[i].tile.texture.key) > -1 ) {\n return true\n } else {\n textureList.push(this.roots[i].tile.texture.key)\n }\n }\n return false\n }", "areThereHolds (currentAudioTime) {\n\n let listActiveHolds = this.activeHolds.asList() ;\n for ( var i = 0 ; i < listActiveHolds.length ; i++) {\n\n let step = listActiveHolds[i] ;\n\n if ( step !== null ) {\n return true ;\n }\n\n }\n\n return false ;\n\n }", "function getInitialized() {\n return kvstore.has('initialized');\n }", "function loadedCheck(callback){\n\tvar TOTAL = 4;\n\tloaded++;\n\tif(loaded === TOTAL){\n\t\tcallback(Game);\n\t\t//if(state === \"load\") //load game and start Game\n\t\t//\tloadG(Game);\n\t\t//else callback(Game); //we init Game and start Game\n\t}\n}", "function resultsReady() {\n /*console.log(\"resultsReady \", surveyStorage.allAnswers.length, (\n surveyStorage.allAnswers.length >= MIN_RES));*/\n return (surveyStorage.allAnswers.length < MIN_RES);\n }", "function checkAllShipsPlaced() {\n for (var p = 0; p < this.game.PLAYERS; p++) {\n for (var s = 0; s < fleet[p].length; s++) {\n\n if (fleet[p][s].length != fleet[p][s].coords.length) return false;\n\n for (var c = 0; c < fleet[p][s].coords.length; c++) {\n coords = fleet[p][s].coords[c];\n \n if (typeof layout[p][coords] == 'undefined') {\n return false;\n };\n }\n\n }\n }\n return true;\n }", "function load()\n {\n\n var tiles = this.getVisibleTiles( this.latitude, this.longitude, this.zoom, this.viewRect );\n\n if( tiles.length == 0 && this.tiles.length == 0 )\n {\n this.eventEmitter.emit( Map.ON_LOAD_COMPLETE, -1 );\n return;\n }\n\n for ( var i = 0; i < tiles.length; i++ ) {\n tiles[ i ].eventEmitter.on( Tile.ON_TILE_LOADED, this.appendTile );\n tiles[ i ].load();\n }\n\n this.tiles = this.tiles.concat( tiles );\n\n }", "function load()\n {\n\n var tiles = this.getVisibleTiles( this.latitude, this.longitude, this.zoom, this.viewRect );\n\n if( tiles.length == 0 && this.tiles.length == 0 )\n {\n this.eventEmitter.emit( Map.ON_LOAD_COMPLETE, -1 );\n return;\n }\n\n for ( var i = 0; i < tiles.length; i++ ) {\n tiles[ i ].eventEmitter.on( Tile.ON_TILE_LOADED, this.appendTile );\n tiles[ i ].load();\n }\n\n this.tiles = this.tiles.concat( tiles );\n\n }", "loaded() {\n this.searchField.waitForVisible();\n return true;\n }", "isDone() {\n return !this.loop && this.currentFrame >= this.sprites.length;\n }", "isDone() {\n return this.single.length == 0 ? true : false\n }", "countTracked() {\n return(Object.keys(tTracked).length)\n }", "function allPluginsLoaded() {\n _('allPluginsLoaded', dependenciesRequested);\n if (dependenciesRequested) {\n return sqwidget.checkDependencies(widget);\n }\n\n return true;\n }", "function assetsLoaded() {\n if (canonImage2Loaded == true && canonImageLoaded == true && torreImageLoaded == true && bombaImageLoaded == true && bombaImage2Loaded == true && fondoImageLoaded == true) {\n update();\n }\n}", "function movieIsLoaded (theMovie) {\n if (typeof(theMovie) != \"undefined\") {\n return theMovie.PercentLoaded() == 100;\n } else {\n return false;\n }\n}", "function isReady() {\n var ready = true;\n for(var k in resourceCache) {\n if(resourceCache.hasOwnProperty(k) &&\n !resourceCache[k]) {\n ready = false;\n }\n }\n return ready;\n }", "function isReady() {\n var ready = true;\n for(var k in resourceCache) {\n if(resourceCache.hasOwnProperty(k) &&\n !resourceCache[k]) {\n ready = false;\n }\n }\n return ready;\n }", "function checkForPlayed() { // Function that resets the \"played\" counter\n let playedCount = 0; // if all movies are \"played\"\n\n for(i=0; i!=keys.length; i++) {\n if(db[keys[i]].played == true) {\n playedCount++;\n }\n }\n\n if(playedCount == keys.length) {\n for(i=0; i!=keys.length; i++) {\n db[keys[i]].played = false;\n }\n }\n}", "function isReady() {\r\n var ready = true;\r\n for(var k in resourceCache) {\r\n if(resourceCache.hasOwnProperty(k) &&\r\n !resourceCache[k]) {\r\n ready = false;\r\n }\r\n }\r\n return ready;\r\n }", "function isCompleted() {\n return cards.length === matchedCards.length;\n}", "isComplete() {\n for (let i = 0; i < this.rounds.length; i++) {\n for (let j = 0; j < this.rounds[i].length; j++) {\n if (this.rounds[i][j] == \"\") {\n return false;\n }\n }\n }\n return true;\n }", "function isReady() {\n var ready = true;\n for (var k in resourceCache) {\n if (resourceCache.hasOwnProperty(k) && !resourceCache[k]) {\n ready = false;\n }\n }\n return ready;\n }", "function isReady() {\n var ready = true;\n for (var k in resourceCache) {\n if (resourceCache.hasOwnProperty(k) && !resourceCache[k]) {\n ready = false;\n }\n }\n return ready;\n }", "has_connections() {\n\t\t\treturn this.connected.length > 0\n\t\t}", "hasItems() {\n return Boolean(this.data) && Boolean(this.data.types) && this.data.types.length > 0;\n }", "checkUpdate() {\n if (this.updating === true) return false\n this.hasChanged = false\n const _entityList = this.entity_items.getEntitieslist()\n if (this.hassEntities && this.hassEntities.length && this._hass) {\n this.hassEntities = _entityList\n .map((x) => this._hass.states[x.entity])\n .filter((notUndefined) => notUndefined !== undefined)\n this.hasChanged = this.entity_items.hasChanged(this.hassEntities)\n if (this.hasChanged) {\n /**\n * refresh and update the graph\n */\n this.updateGraph(true)\n }\n }\n return this.hasChanged\n }", "checkUpdate() {\n if (this.updating === true) return false\n this.hasChanged = false\n const _entityList = this.entity_items.getEntitieslist()\n if (this.hassEntities && this.hassEntities.length && this._hass) {\n this.hassEntities = _entityList\n .map((x) => this._hass.states[x.entity])\n .filter((notUndefined) => notUndefined !== undefined)\n this.hasChanged = this.entity_items.hasChanged(this.hassEntities)\n if (this.hasChanged) {\n /**\n * refresh and update the graph\n */\n this.updateGraph(true)\n }\n }\n return this.hasChanged\n }", "async loadStartData() {\n console.timeStart('track');\n for (let document of this.documents.all()) {\n if (this.shouldTrackFile(vscode_uri_1.URI.parse(document.uri).fsPath)) {\n this.trackOpenedDocument(document);\n }\n }\n if (this.alwaysIncludeGlobPattern) {\n let alwaysIncludePaths = await util_1.promisify(glob_1.glob)(this.alwaysIncludeGlobPattern, {\n cwd: this.startPath || undefined,\n absolute: true,\n });\n for (let filePath of alwaysIncludePaths) {\n filePath = vscode_uri_1.URI.file(filePath).fsPath;\n if (this.shouldTrackFile(filePath)) {\n this.trackFile(filePath);\n }\n }\n }\n await this.trackFileOrFolder(this.startPath);\n console.timeEnd('track', `${this.map.size} files tracked`);\n this.startDataLoaded = true;\n }", "function onFinishedLoading(buffers) { \n bufferList = buffers;\n console.log('Loaded audio files:' + trackFilenames);\n }", "function areMessagesLoaded() {\n var scope = getScope();\n return scope.todos.length > 0\n }", "function canStart() {\n if (_curr.songTitle == null || _curr.songTitle == \"\") return false;\n if (_curr.artistName == null || _curr.artistName == \"\") return false;\n if (_curr.songImage == null) return false;\n if (_curr.songFile == null) return false;\n if (_curr.songLength == null) return false;\n return true;\n }", "checkLoading() {\n // Loading is done if loading queue (set) is empty. Change status if empty.\n if (this.loadingPoints.size === 0) {\n this.setState({loading: false});\n }\n }", "function checkGoogleAnalyticsLoaded() {\n\t\ttry {\n\t\t\tif (_gaq) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(err) {\n\t\t\treturn false;\n\t\t}\n\t}" ]
[ "0.6565923", "0.65386176", "0.6477282", "0.6189377", "0.61252046", "0.61227596", "0.6007809", "0.6006434", "0.5997971", "0.5964995", "0.596318", "0.5952259", "0.59013826", "0.5901161", "0.5870644", "0.58436936", "0.583639", "0.5812408", "0.5811183", "0.58018625", "0.57980865", "0.57851106", "0.576", "0.5759283", "0.57325375", "0.57111096", "0.5669865", "0.56606704", "0.5631302", "0.5618686", "0.5616986", "0.5591251", "0.5587567", "0.5568032", "0.5532903", "0.55247545", "0.55109185", "0.55108917", "0.5502363", "0.54987353", "0.5496305", "0.5469563", "0.54476184", "0.5428464", "0.5406037", "0.54013675", "0.5399786", "0.53881204", "0.5378676", "0.5371757", "0.5367672", "0.5365245", "0.53592455", "0.5355758", "0.5351561", "0.53452104", "0.5332605", "0.5331486", "0.5325317", "0.5314804", "0.5311314", "0.53036654", "0.53023696", "0.5293091", "0.52852935", "0.52666056", "0.5261068", "0.5244621", "0.5243288", "0.523677", "0.5235217", "0.5223282", "0.52169544", "0.51937604", "0.51937604", "0.51898265", "0.5178745", "0.51780444", "0.5175152", "0.51667446", "0.5154024", "0.5141111", "0.51349694", "0.51349694", "0.5134735", "0.51263905", "0.5117855", "0.511769", "0.51172525", "0.51172525", "0.5112615", "0.51078546", "0.5106176", "0.5106176", "0.51050687", "0.51039505", "0.5095219", "0.50852764", "0.508106", "0.5078568" ]
0.8189288
0
Adjust the bounds of the map to fit all the loaded tracks and show photos
function presentMap() { if (tracksDoneLoading()) { hideLoader(); fitMapBounds(); loadPhotos(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fitMapBounds() {\n var mapBounds = L.latLngBounds([]);\n\n trackLayerGroup.eachLayer(function (layer) {\n mapBounds.extend(layer.getBounds());\n });\n\n map.fitBounds(mapBounds);\n }", "function showListings() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n map.setCenter(markers[0].location)\n var mapOptions = {styles: mapStyles.default}\n map.setOptions(mapOptions);\n map.setZoom(14);\n }", "function showListings() {\r\n var bounds = new google.maps.LatLngBounds();\r\n // Extend the boundaries of the map for each marker and display the marker\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n bounds.extend(markers[i].position);\r\n }\r\n google.maps.event.addDomListener(window, 'resize', function() {\r\n map.fitBounds(bounds); // `bounds` is a `LatLngBounds` object\r\n});\r\n}", "renderMap(){\n if(this.props.trails.length>0) this.mapRendered=true //in some cases, trail data won't be available when component mounts, and if it doesn't then the code from componentDidMount will run in componenentDidUpdate\n if(this.props.trails.length===1) return //if there is only one marker, don't adjust size of the map\n\n //this sizes the map to fit all the markers\n const bounds = new window.google.maps.LatLngBounds()\n this.props.trails.map((trail)=>{\n bounds.extend(new window.google.maps.LatLng(\n trail.latitude,\n trail.longitude\n ))\n return null\n })\n\n this.refs.resultMap.map.fitBounds(bounds)\n }", "function showListings() {\r\n var bounds = new google.maps.LatLngBounds();\r\n // Extend the boundaries of the map for each marker and display the marker\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n bounds.extend(markers[i].position);\r\n }\r\n map.fitBounds(bounds);\r\n }", "function showListings() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n }", "function fit_markers_to_map(){ \n map.fitBounds(bounds);\n }", "function showListings() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "function showListings() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "function showListings() {\n let bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (let i = 0; i < markersArray.length; i++) {\n markersArray[i].setMap(map);\n bounds.extend(markersArray[i].position);\n }\n map.fitBounds(bounds);\n}", "function showListings() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "function showParkListings() {\n let bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (let i = 0; i < markersPark.length; i++) {\n markersPark[i].setMap(map);\n bounds.extend(markersPark[i].position);\n }\n map.fitBounds(bounds);\n}", "function showMuseumListings() {\n let bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (let i = 0; i < markersMuseum.length; i++) {\n markersMuseum[i].setMap(map);\n bounds.extend(markersMuseum[i].position);\n }\n map.fitBounds(bounds);\n}", "function mapFavorites(){\n if (platform === 2)\n var bounds = new plugin.google.maps.LatLngBounds();\n else\n var bounds = new google.maps.LatLngBounds();\n\n var id=null;\n $(\".favorite-select\").each(function(){\n id=$(this).attr('id');\n id=parseInt(id.replace('favorite_',''));\n console.log(\"MAP:\"+id);\n var object=favorite_instance.favorites(id);\n var mapObject = createFavoriteMapObject(object);\n bounds.extend(mapObject.googlePosition);\n });\n if(id!==null){\n\n if (platform !== 2)\n map.fitBounds(bounds);\n else\n map.moveCamera({\n 'target': bounds\n }, function () {\n });\n createVenueList();\n }\n\n}", "function showMarkers() {\r\n myVModel.sQuery('');\r\n var bLimit = new google.maps.LatLngBounds();\r\n for (var x = 0; x < markers.length; x++) {\r\n markers[x].setMap(map);\r\n bLimit.extend(markers[x].position);\r\n }\r\n map.fitBounds(bLimit);\r\n}", "function initMap() {\n map = new google.maps.Map(document.getElementById(\"map\"), {\n center: {\n lat: 26.137184,\n lng: 91.784439\n },\n zoom: 13,\n mapTypeId: 'roadmap'\n });\n\n infoWindow = new google.maps.InfoWindow();\n\n var bounds = new google.maps.LatLngBounds();\n\n for (var i = 0; i < placesData.length; i++) {\n addMarker(placesData[i]);\n bounds.extend(placesData[i].location);\n }\n map.fitBounds(bounds);\n}", "function showOverlays() {\n setAllMap(map);\n }", "fitMapToMarkers() {\n const markers = this.getMarkers();\n const bounds = new google.maps.LatLngBounds();\n for (let i = 0, marker; marker = markers[i]; i++) {\n bounds.extend(marker.getPosition());\n }\n\n this.map_.fitBounds(bounds);\n }", "function fitAllCurrent() {\n infowindow.close();\n var latlngbounds = new google.maps.LatLngBounds();\n $.each(managerData[currentManager].locations, function (i, data) {\n latlngbounds.extend(data.point);\n });\n map.fitBounds(latlngbounds);\n //map.setZoom(map.getZoom() + 1);\n }", "function setBounds() {\n let bounds = new google.maps.LatLngBounds();\n\n flightMarkers.forEach((flightMarker) => {\n bounds.extend(flightMarker.position);\n });\n\n map.fitBounds(bounds);\n}", "function showLocations() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n //Extend the boundaries of the map for each marker\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "function loadMarkers() {\n var bounds = new google.maps.LatLngBounds();\n for (var i = 0; i < markers.length; i++) {\n locations[i].marker = markers[i];\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "function showOverlays() {\n setAllMap(map);\n}", "function loadMap(){\n // Create map object\n var testLatLong = new google.maps.LatLng(33,50);\n var map = new google.maps.Map(document.getElementById('sightings-map'),{\n zoom: 12,\n });\n\n // Add markers and infowindows to map\n var infowindow = new google.maps.InfoWindow();\n var marker;\n var markerArray = [];\n for(var i=0;i<app.sightings.length;i++){\n // Add markers\n marker = new google.maps.Marker({\n position: new google.maps.LatLng(app.sightings[i][1],app.sightings[i][2]),\n map: map\n });\n markerArray.push(marker);\n // Add infowindows\n google.maps.event.addListener(marker,'click',(function(marker,i){\n return function(){\n infowindow.setContent(app.sightings[i][0]);\n infowindow.open(map,marker);\n };\n })(marker,i));\n }\n\n // Center map on all markers\n var limits = new google.maps.LatLngBounds();\n $.each(markerArray,function(index,newMarker){\n limits.extend(newMarker.position);\n });\n map.fitBounds(limits);\n }", "function mapResize() {\n \"use strict\";\n google.maps.event.trigger(map, \"resize\");\n map.setCenter(center);\n showItems();\n}", "function showOverlays()\n{\n setAllMap(map);\n}", "function showCoffee() {\n var bounds = new google.maps.LatLngBounds();\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n }", "function showOverlays() {\r\n setAllMap(mm.map);\r\n}", "function showItems() {\n \"use strict\";\n var bounds, i;\n if (markers.length > 0) {\n bounds = new google.maps.LatLngBounds();\n\n // Extend the boundaries of the map for each marker\n // and display the marker\n for (i = 0; i < markers.length; i += 1) {\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n } else {\n // no markers - just blank map at initial zoom level\n map.setZoom(13);\n }\n}", "function initialize() {\n\n if($(window).width() <= 1080) {\n mapOptions.zoom = 13;\n }\n if ($(window).width() < 850 || $(window).height() < 595) {\n hideNav();\n }\n\n map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);\n\n setMarkers(markers);\n\n setAllMap();\n\n\n }", "function fitBounds() {\n\tvar bounds = new google.maps.LatLngBounds();\n\t// Extend the boundaries of the map for each marker and display the marker\n\tfor (var i = 0; i < markers.length; i++) {\n\t\tif(markers[i].getVisible() === true) {\n\t\t\tbounds.extend(markers[i].position);\n\t\t}\n\t}\n\tmap.fitBounds(bounds);\n}", "function showMarkers() {\n bounds = new google.maps.LatLngBounds();\n\n for (var key in markersDictionary) {\n markersDictionary[key].setMap(map);\n bounds.extend(markersDictionary[key].position);\n }\n map.fitBounds(bounds);\n}", "function initialize()\n{\n var map = \n new google.maps.Map(document.getElementById('map-canvas'));\n var bounds = new google.maps.LatLngBounds();\n var infowindow = new google.maps.InfoWindow();\n \n for (var i in LocationData)\n {\n var p = LocationData[i];\n var latlng = new google.maps.LatLng(p[0], p[1]);\n bounds.extend(latlng);\n \n var marker = new google.maps.Marker({\n position: latlng,\n map: map,\n title: p[2]\n });\n \n google.maps.event.addListener(marker, 'click', function() {\n infowindow.setContent(this.title);\n infowindow.open(map, this);\n });\n }\n \n map.fitBounds(bounds);\n}", "_setBounds() {\t\t\n\t\tGoogleMaps.load((google) => {\n\t\t\tlet bounds = new google.maps.LatLngBounds(); \n\t\t\n\t\t\tnew Promise((resolve, reject) => {\n\t\t\t\tresolve(this.getActiveMarkers());\n\t\t\t}).then((markers) => {\n\t\t\t\tfor(let m in markers) {\n\t\t\t\t\tbounds.extend(markers[m].pin.getPosition());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.map.fitBounds(bounds);\t\n\t\t\t\tthis._setZoom();\t\t\t\t\t\t\t\n\t\t\t});\t\t\t\t\t\n\t\t});\n\t}", "function showHotelListings() {\n let bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (let i = 0; i < markersHotel.length; i++) {\n markersHotel[i].setMap(map);\n bounds.extend(markersHotel[i].position);\n }\n map.fitBounds(bounds);\n}", "function initialize() {\n var mapOptions = {\n zoom: 8,\n center: new google.maps.LatLng(33.6056711,-112.4052494)\n };\n map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);\n bounds = new google.maps.LatLngBounds();\n infowindow = new google.maps.InfoWindow();\n\n locationMarkers(markers);\n window.onresize = function() {\n map.fitBounds(bounds);\n }\n}", "function initMap() {\n map = new google.maps.Map(document.getElementById('map'), {\n zoom: 14,\n center: detroit,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n });\n\n var bounds1890 = new google.maps.LatLngBounds(\n new google.maps.LatLng(42.310356, -83.169016),\n new google.maps.LatLng(42.362028, -83.043287));\n\n var bounds1920 = new google.maps.LatLngBounds(\n new google.maps.LatLng(42.257302, -83.476492),\n new google.maps.LatLng(42.447800, -83.099120));\n\n var bounds1960 = new google.maps.LatLngBounds(\n new google.maps.LatLng(42.259802, -83.476492),\n new google.maps.LatLng(42.450300, -83.099120));\n\n var src1890Map = 'img/maps/map1897cropped2.png';\n var src1920Map = 'img/maps/map1950.png';\n var src1960Map = 'img/maps/map1970.png';\n\n overlay1890 = new MapOverlay(bounds1890, src1890Map, map);\n overlay1920 = new MapOverlay(bounds1920, src1920Map, map);\n overlay1960 = new MapOverlay(bounds1960, src1960Map, map);\n\n infowindow = new google.maps.InfoWindow;\n\n var marker, i;\n\n //creates an editable marker where the map is clicked\n map.addListener('click', function(event) {\n addMarker(event.latLng);\n });\n\n $scope.get2015Map();\n }", "function setMapBounds() {\n\t\tvar mapStyle = document.getElementById(MAP).style;\n\t\tvar extendedInformationWidth = this.hasExtendedInformation ? this.minimapWidth : 0;\n\t\tmapStyle.width = this.fixedWidth == null ? document.body.clientWidth - extendedInformationWidth : this.fixedWidth;\n\t\tmapStyle.height = this.fixedHeight == null ? document.body.clientHeight : this.fixedHeight;\n\t}", "function initialize() {\n var mapProp = {\n center: new google.maps.LatLng(51.508742, -0.120850),\n zoom: 5,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n };\n mapaNuevoViaje = new google.maps.Map(document.getElementById(\"googleMapViaje\"), mapProp);\n mapaVuelo = new google.maps.Map(document.getElementById(\"googleMapVuelo\"), mapProp);\n mapaReview = new google.maps.Map(document.getElementById(\"googleMapViajeReview\"), mapProp);\n mapaReviewRecom = new google.maps.Map(document.getElementById(\"googleMapViajeReviewRecom\"), mapProp);\n var markerBounds = new google.maps.LatLngBounds();\n}", "function MapSetSize() {\n if (typeof(window.innerWidth) == 'number') {\n windowWidth = window.innerWidth;\n windowHeight = window.innerHeight;\n } else {\n if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {\n windowWidth = document.documentElement.clientWidth;\n windowHeight = document.documentElement.clientHeight;\n } else {\n if (document.body && (document.body.clientWidth || document.body.clientHeight)) {\n windowWidth = document.body.clientWidth;\n windowHeight = document.body.clientHeight;\n }\n }\n }\n document.getElementById('map').style.width = windowWidth - 20 + 'px';\n document.getElementById('map').style.height = windowHeight - 20 + 'px';\n // set max height to aside with nearest object\n $('.aside-nearest').css('max-height', windowHeight + 'px');\n}", "function initMap() {\r\n var mapOptions = {\r\n zoom: 5,\r\n center: new google.maps.LatLng(22.836946, 80.244141),\r\n mapTypeControl: false, // Hides the Maps controls\r\n disableDefaultUI: true\r\n };\r\n\r\n if (window.innerWidth <= 1080) {\r\n mapOptions.zoom = 13;\r\n }\r\n\r\n if (window.innerWidth < 850 || window.innerHeight < 595) {\r\n //hide nav when screen width or height is resized\r\n hideNav();\r\n }\r\n\r\n map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);\r\n\r\n\r\n setMarkers(monuments);\r\n\r\n // get wikipedia data\r\n monuments.forEach(function(monument) {\r\n monument.url = getWikiData(monument);\r\n monument.shortDescription = getWikiData(monument);\r\n });\r\n\r\n //setAllMap();\r\n //Reset map on click handler and\r\n //when window resize conditionals are met\r\n function resetMap() {\r\n var windowWidth = window.innerWidth;\r\n if (windowWidth <= 1080) {\r\n map.setZoom(5);\r\n map.setCenter(mapOptions.center);\r\n } else if (windowWidth > 1080) {\r\n map.setZoom(5);\r\n map.setCenter(mapOptions.center);\r\n }\r\n }\r\n\r\n $(window).resize(function() {\r\n resetMap();\r\n });\r\n\r\n}", "function initialize() {\n\tvar newlng = userlng*jump;\n\tvar mapOptions = {\n \t\tcenter: new google.maps.LatLng(77.3539357714852, newlng, true),\n \t\tzoom: 3,\n \t\tstreetViewControl: false,\n \t\tmapTypeControlOptions: {\n \t\tmapTypeIds: [\"canvas\"]\n \t},\n \tbackgroundColor: \"#fff\",\n \tdisableDefaultUI: true,\n\t};\n\tcanvasMap = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n\tcanvasMap.mapTypes.set('canvas', canvasMapType);\n\tcanvasMap.setMapTypeId('canvas');\n\t/*canvasMap.panBy(size,0);\n\tjump = canvasMap.getCenter().lng();\n\tconsole.log(\"jump:\",jump);\n\t//target position on wall\n\tvar newlng = userlng*jump;\n\tcanvasMap.setCenter(new google.maps.LatLng(77.3539357714852, newlng, true));*/\n\t//hide loading screen when ready\n\tgoogle.maps.event.addListener(canvasMap, 'tilesloaded', function() {\n \t$(\"#loadShade\").fadeOut(1000);\n \t});\n}", "function initialize(mapdata, elementid) {\n var map;\n var bounds = new google.maps.LatLngBounds();\n var mapOptions = {\n mapTypeId: 'roadmap'\n };\n\n // Display a map on the page 1 bedroom\n map = new google.maps.Map(document.getElementById(elementid), mapOptions);\n map.setTilt(45);\n\n var mapdata = mapdata;\n\n // Display multiple markers on a map\n var infoWindow = new google.maps.InfoWindow(), marker, i;\n var image = 'images/icons/map-marker.png';\n var markers = [];\n for (var maploop = 0; maploop<mapdata.length; maploop++) {\n var position = new google.maps.LatLng(mapdata[maploop].lat, mapdata[maploop].lng);\n bounds.extend(position);\n marker = new google.maps.Marker({\n position: position,\n map: map,\n icon: image,\n title: mapdata[maploop].label\n });\n markers.push(marker);\n\n // Allow each marker to have an info window\n google.maps.event.addListener(marker, 'click', (function(marker, maploop) {\n return function() {\n infoWindow.setContent(tplInfoWindow(mapdata[maploop]));\n infoWindow.open(map, marker);\n\n };\n })(marker, maploop));\n\n // Automatically center the map fitting all markers on the screen\n map.fitBounds(bounds);\n google.maps.event.addListener(infoWindow, 'domready', function() {\n // Reference to the DIV that wraps the bottom of infowindow\n var iwOuter = $('.gm-style-iw');\n if ($('.gm-style-iw .map_info_window').length){\n iwOuter.parent().addClass('gm-style-iw2');\n $('.gm-style-iw').prev().hide();\n }else {\n iwOuter.parent().removeClass('gm-style-iw2');\n $('.gm-style-iw').prev().hide();\n }\n\n });\n }\n\n\n // Override our map zoom level once our fitBounds function runs (Make sure it only runs once)\n var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {\n this.setZoom(14);\n google.maps.event.removeListener(boundsListener);\n });\n var markerCluster = new MarkerClusterer(map, markers);\n}", "function initialize_map() {\r\n var map;\r\n var bounds = new google.maps.LatLngBounds();\r\n var mapOptions = {\r\n mapTypeId: 'roadmap'\r\n };\r\n \r\n // Display a map on the page\r\n map = new google.maps.Map(document.getElementById(\"map_canvas\"), mapOptions);\r\n map.setTilt(45);\r\n \r\n // Multiple Markers\r\n\tvar k = 0;\r\n\tvar markers = [];\r\n\tfor(var j = (current_page-1)*7; j < (current_page-1)*7+7; j++){\r\n\t\tmarkers.push(earth_list[j]);\r\n\t\tk ++;\r\n\t}\r\n \r\n // Info Window Content\r\n var infoWindowContent = [];\r\n\tfor(var i = 0; i < 7; i++){\r\n\t\tinfoWindowContent.push(['<div class=\"info_content\">' +\r\n '<h3>' + markers[i][0] + '</h3>' +\r\n '</div>']);\r\n\t}\r\n \r\n // Display multiple markers on a map\r\n var infoWindow = new google.maps.InfoWindow(), marker, i;\r\n\r\n // Loop through our array of markers & place each one on the map \r\n for( i = 0; i < markers.length; i++ ) {\r\n var position = new google.maps.LatLng(markers[i][1], markers[i][2]);\r\n bounds.extend(position);\r\n marker = new google.maps.Marker({\r\n position: position,\r\n map: map,\r\n title: markers[i][0]\r\n });\r\n // Allow each marker to have an info window \r\n google.maps.event.addListener(marker, 'mouseover', (function(marker, i) {\r\n return function() {\r\n infoWindow.setContent(infoWindowContent[i][0]);\r\n infoWindow.open(map, marker);\r\n }\r\n })(marker, i));\r\n // Automatically center the map fitting all markers on the screen\r\n map.fitBounds(bounds);\r\n }\r\n // Override our map zoom level once our fitBounds function runs (Make sure it only runs once)\r\n var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function(event) {\r\n this.setZoom(1);\r\n google.maps.event.removeListener(boundsListener);\r\n });\r\n}", "function narrowBounds() {\n bounds = new google.maps.LatLngBounds();\n var test = false;\n eventArray.forEach(function(element){\n day[current][element].locations.forEach(function(pin){\n bounds.extend(pin.marker.position);\n test = true;\n }) \n })\n if (!test) {\n initialize_gmaps();\n }\n else map.fitBounds(bounds)\n}", "function centerMap() {\n var latlngbounds = new google.maps.LatLngBounds();\n vm.currentHike.path.forEach(function (waypoint) {\n latlngbounds.extend(waypoint)\n })\n vm.map.fitBounds(latlngbounds);\n }", "function showMarkers() {\n setMapOnAll(guhMap);\n}", "function initMap() {\n let mapOptions = { center: initialCoords, zoom: 14, styles: mapStyles.grey }\n myMap = new google.maps.Map(document.querySelector('#myMap'), mapOptions)\n getFilms(myMap)\n}", "function showMarkers() {\n setMapOnAll(map);\n \n }", "moveCameraToFitBounds(){\n console.log('ShowMap - moveCamera');\n if (!this.props.src || !this.props.dest || !this.state.mapboxGL) {\n return;\n }\n\n console.log('ShowMap - moveCamera');\n this.state.mapboxGL.fitBounds(this.props.src, this.props.dest, 50);\n \n\n }", "afterMapCreation() {\n this.moveBackgroundMap(\n this.currentModel.video.get('longitude'),\n this.currentModel.video.get('latitude'),\n this.currentModel.video.get('preferredZoom')\n );\n }", "function initializeMarker(locations){\t\n\n window.map = new google.maps.Map(document.getElementById('google_map_wrap'), {\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n scrollwheel: false\n //styles: [ {stylers: [ { \"saturation\":-100 }, { \"lightness\": 0 }, { \"gamma\": 0.5 }]}]\n });\n \n var infowindow = new google.maps.InfoWindow();\n\n var bounds = new google.maps.LatLngBounds();\n\n for (i = 0; i < locations.length; i++) {\n \t \t \n if ( $(\"#map_marker\").exists() ){\n \tvar image=upload_url+\"/\"+$(\"#map_marker\").val(); \n \tmarker = new google.maps.Marker({\n\t position: new google.maps.LatLng(locations[i][1], locations[i][2]),\n\t map: map ,\n\t icon:image\n\t });\n } else {\n\t marker = new google.maps.Marker({\n\t position: new google.maps.LatLng(locations[i][1], locations[i][2]),\n\t map: map \n\t });\n }\n\n bounds.extend(marker.position);\n\n google.maps.event.addListener(marker, 'click', (function (marker, i) {\n return function () {\n infowindow.setContent(locations[i][0]);\n infowindow.open(map, marker);\n }\n })(marker, i));\n }\n\n map.fitBounds(bounds);\n\n var listener = google.maps.event.addListener(map, \"idle\", function () {\n map.setZoom(16);\n google.maps.event.removeListener(listener);\n });\n}", "function rebuildMapBounds() {\n bounds = new google.maps.LatLngBounds();\n for (var person in people) {\n bounds.extend(people[person].marker.getPosition());\n }\n }", "function fitMapToBounds(paths) {\n var bounds = new google.maps.LatLngBounds();\n for (var i = 0; i < paths.length; i++) {\n for (var j = 0; j < paths[i].length; j++) {\n bounds.extend(new google.maps.LatLng(paths[i].getAt(j).lat(), paths[i].getAt(j).lng()));\n }\n }\n mapDiv.fitBounds(bounds);\n}", "function showAllMarkers() {\n var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n markers[i].setAnimation(google.maps.Animation.DROP);\n bounds.extend(markers[i].position);\n }\n google.maps.event.addDomListener(window, 'resize', function() {\n map.fitBounds(bounds); // `bounds` is a `LatLngBounds` object\n });\n map.fitBounds(bounds);\n}", "fetchTracks(latLngBounds) {\n var west = latLngBounds.getWest();\n var south = latLngBounds.getSouth();\n var east = latLngBounds.getEast();\n var north = latLngBounds.getNorth();\n fetch(baseUrl + 'api/search/' + west + '/' + south + '/' + east + '/' + north)\n .then(response => response.json())\n .then(trackids => {\n trackids.forEach((key) => {\n console.log(key);\n // fetch the track only if it's not fetched yet\n if (!this.tracks.has(key)) {\n fetch(baseUrl + 'api/SchweizMobil/Track/' + key)\n .then(response => response.json())\n .then(json => {\n var track = JSON.parse(json[0].value);\n var trackLayer = L.geoJSON(track)\n this.tracks.set(key, trackLayer);\n trackLayer.addTo(this.map);\n })\n .catch(error => console.log(error))\n }\n })\n })\n .catch(error => console.log(error))\n }", "function initialSizeOfMap() {\n\t$('#leftDivInfo').css({\n\t\t'width': '45%',\n\t\t'margin-top': '0px'\n\t});\n\t$('#map-canvas').css({\n\t\t'margin-left': 'auto',\n\t\t'margin-right': 'auto',\n\t\t'margin-top': '-1000px',\n\t\t'height': '350px',\n\t\t'width': '50%'\n\t});\n}", "function _refresh() {\n google.maps.event.trigger(_mapDOM.map, 'resize');\n _mapDOM.map.fitBounds(_markerBounds);\n}", "function initMap() {\n var uluru = getUserLocation();\n map = new google.maps.Map(document.getElementById('map'), {\n zoom: 8,\n center: uluru\n });\n\n getImages(uluru);\n\n map.addListener('dragend', function() {\n var center = map.getCenter();\n getImages({lat: center.lat(), lng: center.lng()});\n });\n}", "function showMap(lat, lon) \n{\n\t// Create a LatLng object with the GPS coordinates.\n\tlatlngWizard = new google.maps.LatLng(lat, lon);\n latlngMagicCentre = new google.maps.LatLng(lat , lon ); //temp hard coding\n latlngMagic = latlngMagicCentre;\n var trailLatLng = new google.maps.LatLng(53.338110,-2.054967); //temp hard coding\n \n\t// Create the Map Options\n var mapOptionsYou = \n {\n zoom: 18,\n center: latlngWizard,\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n disableDefaultUI: true,\n draggable: false,\n rotateControl: true\n };\n \n var mapOptionsTrail = \n {\n zoom: 15,\n center: trailLatLng,\n mapTypeId: google.maps.MapTypeId.TERRAIN,\n draggable: true,\n disableDefaultUI: false,\n rotateControl: true,\n zoomControlOptions: { style:google.maps.ZoomControlStyle.LARGE}\n };\n \n // Generate the Map(\n mapHere = new google.maps.Map(document.getElementById('googleMapHere'), mapOptionsYou);\n mapTrail = new google.maps.Map(document.getElementById('googleMapTrail'), mapOptionsTrail);\n\n \n //Define OSM map type pointing at the OpenStreetMap tile server\n mapTrail.mapTypes.set(\"OSM\", new google.maps.ImageMapType(\n {\n getTileUrl: function(coord, zoom) \n {\n // \"Wrap\" x (logitude) at 180th meridian properly\n // NB: Don't touch coord.x because coord param is by reference, and changing its x property breakes something in Google's lib \n var tilesPerGlobe = 1 << zoom;\n var x = coord.x % tilesPerGlobe;\n if (x < 0) {\n x = tilesPerGlobe+x;\n }\n // Wrap y (latitude) in a like manner if you want to enable vertical infinite scroll\n //openStreetURL = \"http://tile.openstreetmap.org/\" + zoom + \"/\" + x + \"/\" + coord.y + \".png\";\n openStreetURL = \"./img/map/\" + zoom + \"/\" + x + \"/\" + coord.y + \".png\";\n //console.log ('myList.Add(\"' + openStreetURL + '\");' );\n return openStreetURL; \n },\n tileSize: new google.maps.Size(256, 256),\n name: \"OpenStreetMap\",\n maxZoom: 18\n }));\n \n //mapTrail.setMapTypeId(google.maps.MapTypeId.TERRAIN);\n //mapTrail.setMapTypeId(\"OSM\");\n\n \n \n \n \n//Global Class for magic sprite \n spriteMagic = function (latLng)\n {\n var spriteMarker = new google.maps.Marker(\n {\n position: latLng,\n title: 'Magic',\n icon: 'img/greenPotion.png'\n });\n\n\n this.marker = spriteMarker;\n this.centerLatLng = latLng;\n this.points = 200;\n this.status = \"new\";\n this.speed = 1;\n this.moveType = \"circle\";\n this.circleDiameter = 0.005;\n this.iconMain = \"img/greenPotion.png\";\n this.iconAnimate = \"img/easterBunnyIcon.png\";\n this.iconEnd = \"img/explosionIcon.png\";\n this.soundClose = \"audioswoosh\";\n this.messageClose = \"\";\n this.soundCollision=\"audiomagicCollision\";\n this.messageCollision = \"\";\n this.name = \"Magic\";\n this.move = function (newLat,newLng){};\n this.collide = function ()\n {\n this.marker.setIcon(this.iconEnd);\n this.moveType = \"stop\";\n addPoints(this.points);\n messageNotify (\"Well Done\",this.soundCollision);\n };\n }\n \n markerWizard = new google.maps.Marker(\n {\n position: latlngWizard,\n title: 'You',\n animation: google.maps.Animation.DROP,\n icon: userIcon\n });\n \n markerWizardTrail = new google.maps.Marker(\n {\n position: latlngWizard,\n title: 'You',\n animation: google.maps.Animation.DROP,\n icon: ''\n });\n\n latlngMagic = new google.maps.LatLng(latlngMagic.lat () + (Math.random () * 0.0001), latlngMagic.lng () + (Math.random () * 0.0001));\n \n //Start with a sprite close to user to spark interest\n var firstSprite = new spriteMagic (latlngMagic);\n firstSprite.circleDiameter = 0.03;\n firstSprite.points = 5;\n firstSprite.marker.setPosition (setCircleLocation(firstSprite.marker.getPosition().lat(),firstSprite.marker.getPosition().lng(),firstSprite.circleDiameter ,circleAngleMagic));\n firstSprite.marker.setMap(mapHere);\n \n //Second sprite at close random point\n latlngMagic = new google.maps.LatLng(latlngMagic.lat () + (Math.random () * 0.0001), latlngMagic.lng () + (Math.random () * 0.0001));\n var secondSprite = new spriteMagic (latlngMagic);\n secondSprite.circleDiameter = 0.015;\n secondSprite.marker.setPosition ( setCircleLocation (secondSprite.centerLatLng.lat(),secondSprite.centerLatLng.lng(),secondSprite.circleDiameter,circleAngleMagic));\n secondSprite.marker.setMap(mapHere);\n secondSprite.points = 10;\n \n \n sprites.push(firstSprite);\n sprites.push(secondSprite);\n \n //Show markers on map\n markerWizard.setMap(mapHere);\n \n //Show Trail on map\n showTrail (mapTrail,\"img/trailLyme.xml\");//ajax request using gpx file \n //CreateSprites from points on gpx file\n createSprites (mapHere,\"img/trailLyme.xml\");//ajax request using gpx file \n \n //move Magic, currently in cricles\n setInterval (moveMagic,moveInterval); \n //Offer encouragement every so often\n setInterval (audioEncourage, (60000 * encouragmentInterval)); \n}", "function showMarkers() {\n setMapOnAll(ourMap);\n}", "function showMarkers() {\n setMapOnAll(mainMap);\n}", "function showMarkers() {\n setAllMap(map);\n }", "function fitMapToWindow() {\n var oldWidth = parseInt(mapImageCanvas.style.width || mapImageCanvas.width, 10),\n oldHeight = parseInt(mapImageCanvas.style.height || mapImageCanvas.height, 10),\n newDims = getOptimalDimensions(oldWidth, oldHeight, window.innerWidth, Infinity);\n\n resize(newDims.width, newDims.height);\n }", "function showMap (show) { $.activityCarousel.style.right = show ? 0 : '100%'; }", "function resize() {\n\tmap.setSize();\n}", "function mapReset() {\n\tinfoWindow.map ? reposInfoWindow() : map.fitBounds(bounds);\n}", "function showCoords() {\n // TODO: Set the map center to the latitude / longitude position of your own home\n\n\n // TODO: Zoom the map close enough\n\n}", "function showRestaurantListings() {\n let bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (let i = 0; i < markersRestaurant.length; i++) {\n markersRestaurant[i].setMap(map);\n bounds.extend(markersRestaurant[i].position);\n }\n map.fitBounds(bounds);\n}", "function showMarker() {\n // var bounds = new google.maps.LatLngBounds();\n // Extend the boundaries of the map for each marker and display the marker\n for (var i = 0; i < $ctrl.markers.length; i++) {\n $ctrl.markers[i].setMap(map);\n // bounds.extend($ctrl.markers[i].position);\n }\n // map.fitBounds(bounds);\n }", "function showMarkers() {\n\t\t\t \n\t\t\t setAllMap(map);\n\t\t\t\n\t\t\t}", "function initMap() {\n const map = new google.maps.Map(document.getElementById(\"map\"), {\n zoom: 11,\n center: { lat: 62.323907, lng: -150.109291 },\n mapTypeId: \"satellite\",\n });\n const bounds = new google.maps.LatLngBounds(\n new google.maps.LatLng(62.281819, -150.287132),\n new google.maps.LatLng(62.400471, -150.005608),\n );\n // The photograph is courtesy of the U.S. Geological Survey.\n const srcImage =\n \"https://developers.google.com/maps/documentation/\" +\n \"javascript/examples/full/images/talkeetna.png\";\n\n // The custom USGSOverlay object contains the USGS image,\n // the bounds of the image, and a reference to the map.\n class USGSOverlay extends google.maps.OverlayView {\n bounds_;\n image_;\n div_;\n // [START maps_overlay_simple_region_constructor]\n constructor(bounds, image) {\n super();\n // Initialize all properties.\n this.bounds_ = bounds;\n this.image_ = image;\n // Define a property to hold the image's div. We'll\n // actually create this div upon receipt of the onAdd()\n // method so we'll leave it null for now.\n this.div_ = null;\n }\n // [END maps_overlay_simple_region_constructor]\n // [START maps_overlay_simple_region_attachment]\n /**\n * onAdd is called when the map's panes are ready and the overlay has been\n * added to the map.\n */\n onAdd() {\n this.div_ = document.createElement(\"div\");\n this.div_.style.borderStyle = \"none\";\n this.div_.style.borderWidth = \"0px\";\n this.div_.style.position = \"absolute\";\n\n // Create the img element and attach it to the div.\n const img = document.createElement(\"img\");\n\n img.src = this.image_;\n img.style.width = \"100%\";\n img.style.height = \"100%\";\n img.style.position = \"absolute\";\n this.div_.appendChild(img);\n\n // Add the element to the \"overlayLayer\" pane.\n const panes = this.getPanes();\n\n panes.overlayLayer.appendChild(this.div_);\n }\n // [END maps_overlay_simple_region_attachment]\n // [START maps_overlay_simple_region_drawing]\n draw() {\n // We use the south-west and north-east\n // coordinates of the overlay to peg it to the correct position and size.\n // To do this, we need to retrieve the projection from the overlay.\n const overlayProjection = this.getProjection();\n // Retrieve the south-west and north-east coordinates of this overlay\n // in LatLngs and convert them to pixel coordinates.\n // We'll use these coordinates to resize the div.\n const sw = overlayProjection.fromLatLngToDivPixel(\n this.bounds_.getSouthWest(),\n );\n const ne = overlayProjection.fromLatLngToDivPixel(\n this.bounds_.getNorthEast(),\n );\n\n // Resize the image's div to fit the indicated dimensions.\n if (this.div_) {\n this.div_.style.left = sw.x + \"px\";\n this.div_.style.top = ne.y + \"px\";\n this.div_.style.width = ne.x - sw.x + \"px\";\n this.div_.style.height = sw.y - ne.y + \"px\";\n }\n }\n // [END maps_overlay_simple_region_drawing]\n // [START maps_overlay_simple_region_removal]\n /**\n * The onRemove() method will be called automatically from the API if\n * we ever set the overlay's map property to 'null'.\n */\n onRemove() {\n if (this.div_) {\n this.div_.parentNode.removeChild(this.div_);\n this.div_ = null;\n }\n }\n // [END maps_overlay_simple_region_removal]\n }\n\n const overlay = new USGSOverlay(bounds, srcImage);\n\n overlay.setMap(map);\n}", "function initializeMap() {\n var map;\n var bounds = new google.maps.LatLngBounds();\n var mapOptions = {\n mapTypeId: 'roadmap'\n };\n\n // Display a map on the page\n map = new google.maps.Map(document.getElementById(\"map_canvas\"), mapOptions);\n map.setTilt(45);\n\n // Multiple Markers\n var markers = globalMarkers;\n\n // Info Window Content\n var infoWindowContent = globalInfoWindowContent;\n\n // Display multiple markers on a map\n var infoWindow = new google.maps.InfoWindow(),\n marker, i;\n\n // Loop through our array of markers & place each one on the map\n for (i = 0; i < markers.length; i++) {\n var position = new google.maps.LatLng(markers[i][1], markers[i][2]);\n bounds.extend(position);\n marker = new google.maps.Marker({\n position: position,\n map: map,\n title: markers[i][0]\n });\n\n // Allow each marker to have an info window\n google.maps.event.addListener(marker, 'click', (function (marker, i) {\n return function () {\n infoWindow.setContent(infoWindowContent[i][0]);\n infoWindow.open(map, marker);\n }\n })(marker, i));\n\n // Automatically center the map fitting all markers on the screen\n map.fitBounds(bounds);\n }\n\n // Override our map zoom level once our fitBounds function runs (Make sure it only runs once)\n var boundsListener = google.maps.event.addListener((map), 'bounds_changed', function (event) {\n this.setZoom(5);\n google.maps.event.removeListener(boundsListener);\n });\n}", "function refreshMapPosition() {\n //alert(\"on Map\");\n roeMapLong.resize();\n roeMapLong.reposition();\n }", "function showMarkers() {\n\n setAllMap(map);\n\n}", "function update_map_canvas_full()\n{\n if (tiles != null && civclient_state >= C_S_RUNNING) {\n //var start = new Date().getTime();\n if (!sprites_init) init_cache_sprites();\n \n // If city dialog is open, don't redraw default mapview.\n if (active_city != null) return;\n \n if (!mapview_slide['active']) { \n update_map_canvas(0, 0, mapview['store_width'], mapview['store_height']);\n update_goto_path_lines(); \n check_request_goto_path();\n } else {\n update_map_slide();\n }\n\n last_redraw_time = new Date().getTime();\n \n }\n}", "function beginMap() {\r\n appMod.is_error(false);\r\n win = new google.maps.InfoWindow();\r\n map = new google.maps.Map(document.getElementById('map'), {\r\n center: coordinates,\r\n zoom: 18\r\n });\r\n fetch_resorts();\r\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n }", "function showMarkers() {\n setAllMap(map);\n}", "function showMarkers() {\n setAllMap(map);\n}", "function showMarkers() {\n setAllMap(map);\n}", "function showMarkers() {\n setAllMap(map);\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n}", "function setMiniMapBounds(onResizingProcess) {\n\t\tvar mapClientWidth = document.getElementById(MAP).clientWidth;\n\t\tvar mapClientHeight = document.getElementById(MAP).clientHeight;\n\t\tif (onResizingProcess) {\n\t\t\tmapClientWidth -= document.getElementById(MAP).map.mapHeight > document.getElementById(MAP).clientHeight ? 17 : 0;\n\t\t\tmapClientHeight -= document.getElementById(MAP).map.mapWidth > mapClientWidth ? 17 : 0;\n\t\t}\n\t\tvar mapWidth = mapClientWidth > document.getElementById(MAP).map.mapWidth ? mapClientWidth : document.getElementById(MAP).map.mapWidth;\n\t\tvar mapHeight = mapClientHeight > document.getElementById(MAP).map.mapHeight ? mapClientHeight : document.getElementById(MAP).map.mapHeight;\n\t\tthis.xRate = document.getElementById(MINIMAP).clientWidth / mapWidth;\n\t\tthis.yRate = document.getElementById(MINIMAP).clientHeight / mapHeight;\n\t}", "zoomMap() {\n PaintGraph.Pixels.zoomExtent(this.props.map, this.props.bbox)\n window.refreshTiles()\n window.updateTiles()\n }", "function showMap(){\n mapGenerated = true;\n showLocationList();\n $(\"#pic\").hide();\n $(\"#map\").show();\n $(\"#findMore\").hide();\n submitFormData();\n}", "function initialize() {\n\tmap = new google.maps.Map(document.getElementById('map-canvas'), {\n\t zoom: 5,\n\t center: new google.maps.LatLng(28.459497,77.026638),\n\t mapTypeId: google.maps.MapTypeId.TERRAIN\n\t});\n\n\tvar l=a.length;\n\tconsole.log(a);\n\t\n\tvar bounds = new google.maps.LatLngBounds();\n\tfor(var k=0;k<l;k++)\n\t{\n\t\tvar lat=a[k][0];\n\t\tvar lng=a[k][1];\n\t\t//alert(lat);\n\t\t//alert(lng);\n\t\tvar myLatLng =new google.maps.LatLng(lat,lng);\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: myLatLng,\n\t\t\tmap: map\n\t\t});\n\t\tbounds.extend(myLatLng);\n\t\taddInfoWindow(marker,'j',myLatLng,k);\n\t\t\n\t}\n\tmap.fitBounds(bounds);\n\n}", "function updateViewport(minx, miny, maxx, maxy) {\n \n //$('#map').LoadingOverlay(\"show\");\n //myUrlm = 'geo_small.php?minx=' + minx + '&miny=' + miny + '&maxx=' + maxx + '&maxy=' + maxy;\n //$.ajax({\n // url: myUrlm,\n // type: 'GET',\n // dataType: \"text json\",\n // success: function (res) {\n // var yields_dots = res;\n // const coll = [];\n // if (yields_dots.features){\n // for (let f of yields_dots.features) {\n // coll.push(turf.buffer(f, 50, {\n // units: 'meters'\n // }));\n // }\n // var yields = turf.featureCollection(coll);\n // var s = map.getSource('yields');\n // if (s){\n // s.setData(yields); \n // } else {\n // setTimeout(map.getSource('yields').setData(yields), 300);\n // }\n // }\n // $('#map').LoadingOverlay(\"hide\");\n // }\n //});\n myUrl = 'main.php?qry=getTopTen1&minx=' + minx + '&miny=' + miny + '&maxx=' + maxx + '&maxy=' + maxy;\n $.ajax({\n url: myUrl,\n type: 'GET',\n dataType: \"text json\",\n success: function (res) {\n if (res != \"\") {\n res.sort(function (a, b) {\n return a.y - b.y;\n });\n setTimeout(function () {\n loadbars(res);\n repImage(res[0].url);\n }, 200);\n }\n }\n });\n}", "function showMarkers() {\n\t\t\t\t setMapOnAll(map);\n\t\t\t\t}", "function showMarkers() {\r\n setMapOnAll(map);\r\n }", "function initMap() {\n\t$.get(\"/getdots\", function(data, status){\n\t\tmap = new google.maps.Map(document.getElementById('map'), {\n\t\t\tcenter: {lat:52.373801, lng: 4.890935},\n\t\t\tzoom: \t13\n\t\t})\n\n\t\tvar locations = [\n\t\t{title: 'Grijze bank', \tlocation: {lat: 52.379189, lng: 4.899431 }, picture: '0cdce8b6a0f08839f379bced61162dae' },\n\t\t{title: 'Knuffel', \t\tlocation: {lat: 52.395728 , lng: 4.966210}, picture: '8aa8259065d812a3ef2a40baddce5478' }]\n\n\n\t\tvar largeInfowindow = new google.maps.InfoWindow()\n\n\t\tvar marker, i \n\n\t\tfor (var j = 0; j < data.length; j++) {\n\t\t\tconsole.log ('dit is data' + data)\n\t\t\tlocations.push( {title: data[j].title, location: {lat: data[j].latitude , lng: data[j].longitude }, picture: data[j].picture})\n\t\t\t\n\t\t\tvar bounds = new google.maps.LatLngBounds()\n\t\t}\n\n\t\tconsole.log ('dit is locations' + locations)\n\t\t//use the location array to create an array of markers\n\t\tfor (var i = 0; i < locations.length; i++) {\n\t\t\t//get position from the location array\n\t\t\tvar position \t= locations[i].location\n\t\t\tvar title \t\t= locations[i].title\n\t\t\t//create a marker per location and put into marker array\n\t\t\tmarker = new google.maps.Marker({\n\t\t\t\tmap: \t\tmap, \n\t\t\t\tposition: \tposition, \n\t\t\t\ttitle: \t\ttitle,\n\t\t\t\tanimation: \tgoogle.maps.Animation.DROP,\n\t\t\t\tid: \t\ti\n\t\t\t})\n\t\t\n\t\t\t//extend the boundaries of the map for each marker\n\t\t\tbounds.extend(marker.position)\n\n\t\t\tconsole.log(marker)\n\n\t\t\t//create an onclick event to open an infowindow at each marker\n\t\t\tmarker.addListener('click', (function( marker, i) {\n\t\t\t\treturn function () {\n\n\t\t\t\t\tif (largeInfowindow.marker != marker) {\n\t\t\t\t\t\tlargeInfowindow.marker = marker\n\t\t\t\t\t\tlargeInfowindow.setContent ('<a href=\"/wittebank\"><IMG BORDER=\"0\" ALIGN=\"Left\" SRC=\"/../uploads/'+ locations[i].picture +'\"> </a> <div ALIGN=\"center\">'+ marker.title + '</div>')\n\t\t\t\t\t\tlargeInfowindow.open (map,marker)\n\t\t\t\t\t\t// // Make sure the marker property is cleared if the window is closed\n\t\t\t\t\t\t// largeInfowindow.addListener('closeclick', function(){\t\n\t\t\t\t\t\t// })\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})(marker, i))\n\t\t}\n\n\t\tmap.fitBounds(bounds)\n\t\t//this function populates the infowindow when the marker is clicked. Only o\n\t\t//only one infowindow is allowed to be open\n\t\t\n\t})\n}", "function displayMarkers(){\n\n // this variable sets the map bounds according to markers position\n var bounds = new google.maps.LatLngBounds();\n \n // for loop traverses markersData array calling createMarker function for each marker \n for (var i = 0; i < markersData.length; i++){\n\n var latlng = new google.maps.LatLng(markersData[i].lat, markersData[i].lng);\n var name = markersData[i].name;\n var address1 = markersData[i].address1;\n var address2 = markersData[i].address2;\n var postalCode = markersData[i].postalCode;\n\n createMarker(latlng, name, address1, address2);\n\n // marker position is added to bounds variable\n bounds.extend(latlng); \n }\n\n // Finally the bounds variable is used to set the map bounds\n // with fitBounds() function\n map.fitBounds(bounds);\n}", "function appShowAllResults(){\n\tcreateMap();\n\tdestroyMarkers();\n\tdestroyInfo();\n\tclearItinerary();\n\tdrawCenterMarker();\n\tdrawAllMarkers();\n\tzoomToFit();\n}", "function showMarkers() {\n\t setAllMap(map);\n\t}", "function showMarkers() {\n\t setAllMap(map);\n\t}", "function showMarkers() {\n setMapOnAll(map);\n }", "function showMarkers() {\n setMapOnAll(map);\n }" ]
[ "0.658613", "0.6573251", "0.6514815", "0.6492516", "0.6480385", "0.64699763", "0.6431244", "0.63783616", "0.63783616", "0.6364226", "0.6361222", "0.6350284", "0.6313107", "0.62995785", "0.6281418", "0.6275025", "0.6268973", "0.6231605", "0.62258756", "0.6195677", "0.61910945", "0.6188783", "0.6182402", "0.6156723", "0.6128703", "0.6103642", "0.6096063", "0.60948557", "0.609114", "0.60909414", "0.60860723", "0.6082403", "0.6052646", "0.6043132", "0.60423315", "0.60260427", "0.60231143", "0.60157526", "0.60144055", "0.60112125", "0.60007244", "0.59951615", "0.59942347", "0.5989861", "0.59892666", "0.59792626", "0.5972118", "0.5966259", "0.59618735", "0.5956903", "0.59562504", "0.593485", "0.5931711", "0.5928524", "0.59217507", "0.5921673", "0.5920417", "0.5903556", "0.58912796", "0.58893543", "0.588368", "0.5856306", "0.58550924", "0.5852653", "0.5850473", "0.5844188", "0.583904", "0.58375657", "0.583438", "0.5832286", "0.5831802", "0.58276635", "0.58268356", "0.5822556", "0.5820143", "0.58200574", "0.58045125", "0.58019984", "0.5794627", "0.578953", "0.578953", "0.578953", "0.57876", "0.5786917", "0.5786917", "0.5786917", "0.5779542", "0.5777911", "0.5771711", "0.57596636", "0.5758989", "0.5752722", "0.574781", "0.57468945", "0.57459235", "0.574371", "0.57402056", "0.57402056", "0.5739478", "0.5739478" ]
0.7291711
0
Recursively draw all tracks onto the map.
function drawTracksOnMap(i, dates){ i = i || 0; dates = dates || Object.keys(tracks); var date = dates[i]; if (!date) { presentMap(); return; } var file = tracks[date].file, color = tracks[date].color; var runLayer = omnivore.gpx(file, null, customLayer(color)) .on("ready", function() { runLayer.addTo(trackLayerGroup); runLayer.eachLayer(function (layer) { layer.bindPopup( "<b>" + layer.feature.properties.name + "</b><br/>" + "<a href='map.html?" + date + "' target='_blank'>🔎 View</a><br/>" + "<a href='" + file + "' target='_blank'>💾 Download</a>" ); }); presentMap(); }) .on("error", function() { runLayer.addTo(trackLayerGroup); presentMap(); }); drawTracksOnMap(i+1, dates); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "tracksDraw(tracks) {\n var translateX = -(this.perspective.x - global.screenWidth / 2);\n var translateY = -(this.perspective.y - global.screenHeight / 2);\n this.context2D.translate(translateX, translateY);\n\n this.context2D.fillStyle = \"#bfa372\";\n\n for(var track of tracks) {\n Util.drawRotatedRect(this.context2D, track.x, track.y, track.width, track.height, track.angle);\n }\n\n this.context2D.translate(-translateX, -translateY);\n }", "function redrawTrack() {\n var n = track.length, i = 0;\n while (++i, i < n) {\n drawTrackPart(track[i - 1], track[i]);\n }\n }", "drawMap(){\n\t\tthis.blocks.forEach(function (e) {\n\t\t\te.draw();\n\t\t});\n\t}", "function drawTracks() {\r\n\r\n var arrayIndex = 0;\r\n var drawTileX = 0;\r\n var drawTileY = 0;\r\n //Have created a for loop for drawing the tracks rather than drawing them individually\r\n for (var eachRow=0;eachRow<TRACK_ROWS;eachRow++) {\r\n for (var eachCol=0;eachCol<TRACK_COLS; eachCol++) {\r\n //Makes each track individual rather than an entire column disappearing\r\n var arrayIndex = rowColToArrayIndex(eachCol, eachRow);\r\n //General variable for array, stops repeating code\r\n var tileKindHere = trackGrid[arrayIndex];\r\n //Variable for images from array\r\n var useImg = trackPics[tileKindHere];\r\n canvasContext.drawImage(useImg, drawTileX, drawTileY);\r\n //After this is done we need to reset it outside of this function otherwise it will only draw the top row\r\n drawTileX += TRACK_W;\r\n arrayIndex++;\r\n } //End of for each col\r\n //We want it to draw it at the end of each row otherwise it wont draw correctly\r\n drawTileY += TRACK_H;\r\n //Resetting it back to zero so that it can draw the next line\r\n drawTileX = 0;\r\n } //End of for each row \r\n} //End of drawTracks function", "function drawTrack() {\n // alternate rendering even/odd planks\n const planks = TRACK_PLANKS.filter((_, index) => {\n if (frame % 2 === 0) {\n return index % 2 === 0;\n }\n return index % 2 !== 0;\n });\n c.beginPath();\n planks.forEach((plank) => drawSquare(plank));\n c.fill();\n c.stroke();\n}", "paintCanvas() {\n // Draw the tile map\n this.game.map.drawMap();\n\n // Draw dropped items\n this.game.map.drawItems();\n\n // Draw the NPCs\n this.game.map.drawNPCs();\n\n // Draw the player\n this.game.map.drawPlayer();\n\n // Draw the mouse selection\n this.game.map.drawMouse();\n }", "function drawAll() {\n\tdrawBackground();\n\tdrawMarkers();\n\tpanForTranslation();\n\tblob.show();\n\n\tfor (var i = 0; i < playerData.length; i++) {\n\t\tif (playerData[i].id !== socket.id) {\n\t\t\tcanvasContext.fillStyle = 'white';\n\t\t\tcanvasContext.beginPath();\n\t\t\tcanvasContext.arc(playerData[i].xPos, playerData[i].yPos, 10, 0,Math.PI*2, true);\n\t\t\tcanvasContext.fill();\n\t\t}\n\t}\n}", "function drawEverything() {\n drawthetrack();\n player1.DrawItSelf(i);\n player2.DrawItSelf(j);\n allTheObstacles1.forEach((eachObstacle) => {\n eachObstacle.drawItSelf();\n if (eachObstacle.x < 20) {\n allTheObstacles1.shift();\n }\n })\n allTheObstacles2.forEach((eachObstacle) => {\n eachObstacle.drawItSelf();\n if (eachObstacle.x < 20) {\n allTheObstacles2.shift();\n }\n })\n allCloud1.forEach((cloud) => {\n cloud.drawItSelf();\n if (cloud.x < 20) {\n allCloud1.shift();\n }\n })\n allCloud2.forEach((cloud) => {\n cloud.drawItSelf();\n if (cloud.x < 20) {\n allCloud2.shift();\n }\n })\n}", "drawAll() {\n for (let x = 0; x < this.horizontalPixelCount; x++) {\n for (let y = 0; y < this.verticalPixelCount; y++) {\n this.drawSinglePixel(x, y);\n }\n }\n\n // If the entire canvas has been redrawn, then there is\n // no point to keeping a backlog of the pixels that had\n // been previously flagged.\n this.flaggedPixels.length = 0;\n }", "function draw(){\n\n requestAnimationFrame(draw);\n \n //Draw background\n ctx.fillStyle = 'teal';\n ctx.fillRect(0,0, canvas.width, canvas.height);\n\n //Draw map\n drawCheckpoints();\n\n //Draw objects\n objects.forEach(obj => {\n obj.draw();\n });\n\n drawText();\n}", "function renderMap(){\n clearMap();\n var currentVertice\n for(var y = 0; y < scaledHeight+1; y++){\n for(var x = 0; x < scaledHeight+1; x++){\n if(renderTopLeft[0]+x >= 0 && renderTopLeft[0] + x < vertices.length){\n if(renderTopLeft[1]+y >= 0 && renderTopLeft[1]+y < vertices[x].length){\n currentVertice = vertices[renderTopLeft[0]+x][renderTopLeft[1]+y];\n\n // check rooms\n for(var i = 0; i < allRooms.length; i++){\n if(allRooms[i].getTopLeft() == currentVertice && allRooms[i].found == true){\n allRooms[i].activateAllVertice();\n allRooms[i].draw();\n }\n }\n // check passageways\n for(var i = 0; i < allPassageways.length; i++){\n if(allPassageways[i].getTopLeft() == currentVertice && allPassageways[i].found == true){\n allPassageways[i].draw();\n }\n }\n\n // check doors\n for(var i = 0; i < allDoors.length; i++){\n if(allDoors[i].getTopLeft() == currentVertice && allDoors[i].found === true){\n allDoors[i].draw(allDoors[i].getDirection());\n }\n }\n\n // check all chests\n for(var i = 0; i < allChests.length; i++){\n if(allChests[i].found == true){\n if(allChests[i].getTopLeft() == currentVertice){\n allChests[i].draw();\n }\n }\n }\n\n // checks all traps\n for(var i = 0; i < allTraps.length; i++){\n if(allTraps[i].found === true){\n if(allTraps[i].getTopLeft() == currentVertice){\n allTraps[i].draw();\n }\n }\n }\n\n }\n }\n }\n }\n}", "function drawEverything() {\n context.clearRect(0, 0, canvas.width, canvas.height);\n drawGrid();\n drawPlayer();\n drawTreasure();\n}", "function drawAllMarkers(){\n\t//clear the map of exisiting markers\n\tclearMarkers();\n\t//split the nodes data into levels\n\tvar nodes = splitMarkerData();\n\t//for each level, check if it is the outdoor level (index -1)\n\tfor(var key in nodes){\n\t\tdata = nodes[key];\n\t\taddMarkers(data, key);\n\t}\n}", "function clearAllTracks(ctx) {\n\tctx.clearRect(0, 0, canvasWidth, canvasHeight);\n}", "function draw() {\n ellipseMode(CENTER);\n drawTrack(h1Pat, whatY(1));\n drawTrack(h2Pat, whatY(2));\n drawTrack(snPat, whatY(3));\n drawTrack(shPat, whatY(4));\n drawTrack(k1Pat, whatY(5));\n drawTrack(k2Pat, whatY(6));\n getTrackCenters();\n}", "function draw() {\n\n // Draw the map.\n ctx.clearRect(0, 0, width, height);\n createMap();\n\n drawSnake();\n drawFood();\n\n // Draw Grid for TESTING purposes\n drawGrid();\n}", "function drawAll() {\n sticks.forEach((stick) => {\n for (let i = 0; i < stick.disks.length; i++) {\n // only draw if disk is defined\n if (typeof stick.disks[i].draw === 'function') {\n stick.disks[i].draw();\n }\n }\n stick.draw();\n });\n circles.forEach((circle) => {\n circle.draw();\n });\n}", "function drawAll() {\n\n // color in the background\n ctx.fillStyle = \"#000000\";\n ctx.fill(0, 0, canvasWidth, canvasHeight);\n\n // draw ship\n ship.draw();\n\n // draw rocks\n for (var i = 0; i < rocks.length; i++) {\n rocks[i].draw();\n }\n\n // draw bullets\n for (var i = 0; i < bullets.length; i++) {\n bullets[i].draw();\n }\n\n // draw stars\n for (var i = 0; i < stars.length; i++) {\n stars[i].draw();\n }\n\n // draw everything else\n}", "draw() {\n\t\t\t\t//sort by depth\n\t\t\t\tthis.sort(function (a, b) {\n\t\t\t\t\treturn a.depth - b.depth;\n\t\t\t\t});\n\n\t\t\t\tfor (var i = 0; i < this.size(); i++) {\n\t\t\t\t\tthis.get(i).display();\n\t\t\t\t}\n\t\t\t}", "function _draw() {\n _map.baseLayer.container.appendChild(_self.container);\n _redraw();\n }", "drawFog() {\n this.map.fog.forEach((room) => {\n if (room.foggy) {\n for (let i = room.pos[0] - 1; i < room.pos[0] + room.width - 1; i++) {\n for (let j = room.pos[1] - 1; j < room.pos[1] + room.height - 1; j++) {\n this.map.drawTile(i, j, 175)\n }\n }\n }\n\n })\n }", "function drawAll() {\n //refreshes canvas everyone to give the animation effect\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (optionScreen) {\n clickOption();\n return;\n }\n \n //calling functions to draw objects\n drawNet();\n drawRectangle1();\n drawRectangle2();\n drawBall();\n drawScorePlayer();\n drawScoreComputer();\n computerMovement();\n drawWinner();\n moveObjects();\n \n \n //requests an animation from the browser API onto canvas = to user refresh rate\n window.requestAnimationFrame(drawAll);\n }", "function draw() {\n for (let i=0; i<tiles.length; i++) {\n tiles[i].display();\n }\n}", "Draw()\n\t{\n\t\t// Clear the canvas, optimize later if enough brain\n\t\tthis.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);\n\n\t\t// Draw everything\n\t\tfor(var i = 0; i < this.CanvasComponentCollection.orderedCollection.length; i++)\n\t\t{\n\t\t\tthis.CanvasComponentCollection.orderedCollection[i].Draw();\n\t\t}\n\t}", "function redrawMinimap() {\n\tminiClear(0);\n\tfor (let i = 0; i <= tracks.length; i++) {\n\t\tlet index = i;\n\t\tif (i === selectedTrack) continue;\n\t\tif (i === tracks.length) index = selectedTrack; // Draw the selected track last\n\t\tfor (let j = 0; j < tracks[index].notes.length; j++) {\n\t\t\tif (!level.noteGroups[index].isVisible || tracks[index].notes.length === 0) continue;\n\t\t\tlet note = tracks[index].notes[j];\n\t\t\tif (note.volume < noiseThreshold) continue;\n\t\t\tlet x = Math.round(ticksToBlocks(note.time));\n\t\t\tlet y = pitchToBlocks(index, note.pitch);\n\t\t\tif (index === selectedTrack) miniPlot(x, y, 'mediumaquamarine');\n\t\t\telse miniPlot(x, y);\n\t\t}\n\t}\n}", "function on_draw()\n{\n\tdrawCounter++;\n\t\n\tif(drawCounter >= drawOnCount)\n\t{\n\t\tdrawCounter = 0;\n\t\tClearMiniMap();\n\t\t\n\t\tif(parent.miniMap.length == 0)\n\t\t{\n\t\t\te=new PIXI.Graphics();\n\t\t\te.zIndex = 999;\n\t\t\tDrawMiniMap();\n\t\t\tDrawWalls();\n\t\t\tDrawEntities();\n\t\t\tDrawNPCs();\n\t\t\tDrawCharacter();\n\t\t\tparent.stage.addChild(e);\n\t\t\tparent.miniMap.push(e);\n\t\t}\n\t}\n}", "function repaintMap() {\n\tvar canvas = document.getElementById(\"World\");\n\t// flood fill with green color\n\tvar ctx = canvas.getContext('2d', { willReadFrequently: true });\n\tctx.fillStyle = \"#006600\";\n\tctx.fillRect(0,0,canvas.width,canvas.height);\n\t// enclose whole area using stored vertexs\n\trepaintPlayerArea(ctx, player.color, player.area)\n\trepaintPlayerArea(ctx, pc1.color, pc1.area)\n\trepaintPlayerArea(ctx, pc2.color, pc2.area)\n}", "function redrawAll() {\n redrawScaleBackground();\n redrawTimeCells();\n redrawTics();\n redrawSlider();\n resetHotSpots();\n // Make sure hot spots are in front.\n _leftHotSpot.toFront();\n _rightHotSpot.toFront();\n }", "function drawMap() {\n //Clears the canvas of drawn things\n console.log(\"drawing\");\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n //Draws tresuremap on canvas\n ctx.drawImage(treasuremap, 0, 0);\n}", "async function traversePaths(canvas) {\n log(\"Traversing all paths...\");\n\n if (DEBUG_PATH) {\n drawing.canvasClear(tilesOverlay);\n drawing.canvasDrawLine(tilesOverlay, 0, 0, tilesOverlay.width, 0, [0xff, 0, 0, 0xff], 3);\n drawing.canvasDrawLine(tilesOverlay, tilesOverlay.width, 0, tilesOverlay.width, tilesOverlay.height, [0xff, 0, 0, 0xff], 3);\n drawing.canvasDrawLine(tilesOverlay, tilesOverlay.width, tilesOverlay.height, 0, tilesOverlay.height, [0xff, 0, 0, 0xff], 3);\n drawing.canvasDrawLine(tilesOverlay, 0, tilesOverlay.height, 0, 0, [0xff, 0, 0, 0xff], 3);\n }\n\n // top paths\n for (let i = 0; i < metaInfo.topPaths.length; i++) {\n const path = metaInfo.topPaths[i];\n path.x0 = path.offset;\n path.y0 = metaInfo.topEdge;\n await traversePath(canvas, path, DIR.BOTTOM);\n }\n // right paths\n for (let i = 0; i < metaInfo.rightPaths.length; i++) {\n const path = metaInfo.rightPaths[i];\n path.x0 = metaInfo.rigthEdge;\n path.y0 = path.offset;\n await traversePath(canvas, path, DIR.LEFT);\n }\n // bottom paths\n for (let i = 0; i < metaInfo.bottomPaths.length; i++) {\n const path = metaInfo.bottomPaths[i];\n path.x0 = path.offset;\n path.y0 = metaInfo.bottomEdge;\n await traversePath(canvas, path, DIR.TOP);\n }\n // left paths\n for (let i = 0; i < metaInfo.leftPaths.length; i++) {\n const path = metaInfo.leftPaths[i];\n path.x0 = metaInfo.leftEdge;\n path.y0 = path.offset;\n await traversePath(canvas, path, DIR.RIGHT);\n }\n}", "function paint() {\n\n\t\t\tpaintStones();\n\n\t\t\t// Tag the current move\n\t\t\tif (goMap.currentMoveIndex > 0) {\n\t\t\t\tpaintCurrentMove();\n\t\t\t}\n\n\t\t\tif (displayNum) {\n\t\t\t\tpaintNumbers();\n\t\t\t}\n\t\t}", "draw() {\n // drawing curbs first\n const shades = ['#9ca297', '#b1bab0'];\n for (let i = 0; i < 2; i++) {\n ctx.fillStyle = shades[i];\n // curbs just big rects mildly translated so some shading\n if (i) {\n ctx.translate(0, 3.3);\n }\n ctx.fillRect(0, this.y - (this.linH / 3) * 1.5, init.w, inProptn(1, 7) + (this.linH / 3) * (3 - i * 1.5));\n }\n ctx.translate(0, -3.3);\n\n // road itself\n ctx.fillStyle = 'black';\n ctx.fillRect(0, this.y, init.w, inProptn(1, 7));\n\n this.markings();\n }", "function draw() {\n background(0);\n translate(width / 2., height / 2.);\n imageMode(CENTER);\n image(mapImg,0,0);\n for (var i = 0; i < locationData.length; i++)\n {\n //console.log(\"Drawing: \" + locationData[i].name);\n radius = map(locationData[i].checkins, checkInMin.value(), checkInMax.value(), rMin.value(), rMax.value());\n drawLocation(locationData[i], radius);\n }\n}", "drawAll(framesCounter) {\n this.drawLife()\n this.walk(framesCounter)\n }", "draw() {\n this.bg.forEach((a) => a.draw());\n this.shapes.forEach((a) => a.draw());\n Help.clean(this.shapes);\n }", "draw () {\n // TODO: try replacing with .emit('draw')\n for (const section of this.sections.values()) {\n section.draw()\n }\n }", "_draw () {\r\n\t\tthis.context.clearRect(0, 0, this.canvas.width, this.canvas.height);\r\n\r\n\t\tthis.particles.forEach(particle => {\r\n\t\t\tparticle.draw(this.context);\r\n\t\t});\r\n\t}", "function redraw() {\n canvas.width = root.getAttribute('width');\n canvas.height = root.getAttribute('height');\n for (var child = root.firstChild; child; child = child.nextSibling) draw(child);\n }", "draw(){\n let shapes = this.shapeList.iterator();\n push();\n while(!shapes.isEmpty()){\n shapes.currItem().draw();\n shapes.next();\n }\n pop();\n\n this.drawText();\n }", "function draw_all_maps() {\n\n\t// deep copy all classification of mapA to all classification of map0\n\tapp.map0classification = $.extend(true, {}, app.mapAclassification);\n\t//console.log('app.map0classification:', app.map0classification)\n\t\n\tvar cc = app.map0classification.color + app.map0classification.count\n\tapp.colorGradient0 = COLOR_CLASS[cc].slice(0, COLOR_CLASS[cc].length); // deep copy\n\n\t// draw titles area\n\tvar map_html = '';\n\tmap_html += '<div>';\n\tmap_html += '\t<div class=\"map_layer\" style=\"height:25px;float:right\" hidden></div>';\n\tmap_html += '\t<div class=\"map_year\" style=\"margin:0px 30px 0px 0px; height:25px;float:both\"></div>';\n\tmap_html += '</div>';\n\tmap_html += '<div>';\n\tmap_html += '\t<div class=\"map_metroInterval\" style=\"height:25px;float:left;clear:both\"></div>';\n\tmap_html += '\t<div class=\"map_sync\" style=\"height:25px;float:right\"></div>';\n\tmap_html += '</div>';\n\tmap_html += '<div class=\"map\"></div>';\n\tfor (var i=0; i<app.m; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\tdocument.getElementById(mapN).innerHTML = map_html;\n\t}\n\t\n\tvar map_html = '';\n\tmap_html += '<div>';\n\tmap_html += '\t<div class=\"map_year\" style=\"margin:0px 100px 0px 0px; height:25px;float:left;\"></div>';\n\tmap_html += '\t<div class=\"map_nPolygon\" style=\"margin:0px 100px 0px 0px; height:25px;float:left;\"></div>';\n\tmap_html += '\t<div class=\"map_fixAxes\" style=\"height:25px;float:left;\"></div>';\n\tmap_html += '</div>';\n\tmap_html += '<br><br>';\n\tmap_html += '<div id=\"_density_chart\" class=\"chart densityPeriod\"></div>';\n\tfor (var i=0; i<app.d; i++) {\n\t\tvar mapD = \"mapD\" + i;\n\t\tvar html = map_html.replace('_density_chart', mapD+'_density_chart');\n\t\tif (app.dYears[i].startsWith('INC')) \n\t\t\thtml = html.replace('class=\"chart densityPeriod\"', 'class=\"chart densityINC\"');\n\t\tdocument.getElementById(mapD).innerHTML = html;\n\t\tif (app.MapWidth.replace('px','') < 500) $(\"#\"+mapD+\" .map_nPolygon\").hide();\n\t}\n\t\n\tif (app.Distribution_INC2_different_cluster) {\n\t\tvar map_html = '';\n\t\tmap_html += '<div>';\n\t\tmap_html += '\t<div class=\"map_year\" style=\"margin:0px 100px 0px 0px; height:25px;float:left;\"></div>';\n\t\tmap_html += '\t<div class=\"map_nPolygon\" style=\"margin:0px 100px 0px 0px; height:25px;float:left;\"></div>';\n\t\tmap_html += '\t<div class=\"map_fixAxes\" style=\"height:25px;float:left;\"></div>';\n\t\tmap_html += '</div>';\n\t\tmap_html += '<br><br>';\n\t\tmap_html += '<div id=\"_density_chart\" class=\"chart densityCluster\"></div>';\n\t\tfor (var i=0; i<app.nClusters; i++) {\n\t\t\tvar graphC = \"graphC\" + i;\n\t\t\tdocument.getElementById(graphC).innerHTML = map_html.replace('_density_chart', graphC+'_density_chart');\n\t\t\tif (app.MapWidth.replace('px','') < 500) $(\"#\"+graphC+\" .map_nPolygon\").hide();\n\t\t}\n\t}\n\t\n\t// change height and width for maps and stacked area chart\n\t$(\"#mapContainer\").css(\"height\", app.MapHeight.replace('px','')*1+100+'px');\n\t$(\".mapArea\").css(\"width\", app.MapWidth);\n\t$(\".mapAreaLast\").css(\"width\", app.ChartWidth);\n\t$(\".map\").css(\"width\", app.MapWidth);\n\t$(\".map\").css(\"height\", app.MapHeight);\n\t$(\".chart\").css(\"width\", app.MapWidth.replace('px','')*1-10+'px');\n\t$(\".chart\").css(\"height\", app.MapHeight.replace('px','')*1-10+'px');\n\t\n\t// draw each base map\n\tfor (var i=0; i<app.m; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\tdraw_basemap(mapN);\n\t}\n\n\t// draw titles of each map\n\tfor (var i=0; i<app.m; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\tdraw_titlemap(mapN, app.mYears[i]);\n\t}\n\t\n\t// draw titles of each density chart\n\tfor (var i=0; i<app.d; i++) {\n\t\tvar mapN = \"mapD\" + i;\n\t\tdraw_titleChart(mapN, app.dYears[i]);\n\t}\n\t\n\t// draw titles of each graph of clusters\n\tfor (var i=0; i<app.nClusters; i++) {\n\t\tvar graphC = \"graphC\" + i;\n\t\tdraw_titleGraphC(graphC, app.gYears[0]);\n\t}\n\t\n\tdraw_globalSelection();\n\n\t// initialize all bounds in app.mapN\n\tfor (var i=0; i<app.m; i++) {\n\t\tvar mapN = \"map\" + i;\n\t\tapp[mapN].bounds = app[mapN].map.getBounds();\n\t\t//console.log(getNow(), mapN, 'app.'+mapN+'.bounds: ', app[mapN].bounds);\n\t}\n\t\n\t// set map bounds using geo bounds in d3 function\n\tvar geoBounds = d3.geoBounds(CA);\n\t\n\tvar fitBounds = L.latLngBounds(L.latLng(geoBounds[0][1], geoBounds[0][0]), \n\t\t\t\t\t\t\t\t L.latLng(geoBounds[1][1], geoBounds[1][0]));\n\t//console.log('fitBounds:', fitBounds);\n\tif (app.m > 0 && app.InitialMapCenter != null && app.InitialMapZoomLevel != null) {\n\t\n\t\t// set bitBounds from InitialMapCenter and InitialMapZoomLevel\n\t\tfitBounds = app[mapN].bounds;\n\t\tvar mapBounds = app[mapN].map.getBounds();\n\t\tvar west = mapBounds.getWest();\n\t\tvar south = mapBounds.getSouth();\n\t\tvar east = mapBounds.getEast();\n\t\tvar north = mapBounds.getNorth();\n\t\tvar featureMapBounds = {type: \"Feature\", properties: {}, geometry: {type: \"Polygon\", coordinates: [\n\t\t\t[ [west, south], [east, south], [east, north], [west, north], [west, south] ] \n\t\t]}}\n\n\t\t// build selectedGeoJSON from receivedGeoJSON\n\t\tvar count = 0, edgeCount = 0;\n\t\tvar started = moment(new Date());\n\t\tvar selectedFeatures = [];\n\t\tvar count = 0;\n\t\tvar baseLines = lineify(featureMapBounds);\n\t\t\n\t\t$.each(app.receivedGeoJSON.features, function(rIdx, feature) {\n\t\t\tif (isPolygonInMapBounds(feature, baseLines, west, south, east, north)) {\n\t\t\t\tcount += 1;\n\t\t\t\tselectedFeatures.push([feature.properties[app.geokey], rIdx]);\n\t\t\t}\n\t\t});\n\t\tvar duration = moment.duration(moment(new Date()).diff(started));\n\t\t\n\t\t// build selectedGeoJSON and set it to CA\n\t\tapp.selectedGeoJSON = {\"type\":\"FeatureCollection\", \"features\":[]};\n\t\t$.each(selectedFeatures, function(rIdx, feature) {\n\t\t\t// feature[0] -> tractid, feature[1] -> rIdx\n\t\t\tapp.selectedGeoJSON.features.push(app.receivedGeoJSON.features[feature[1]]);\n\t\t});\n\t\tCA = app.selectedGeoJSON;\n\t\tselectedFeatures = null;\n\t\tapp.selectedBounds = mapBounds;\n\t}\n\t\n\t// fitBounds and redraw maps\n\tsetTimeout(function () {\n\t\t// fitBounds\n\t\tvar started = moment(new Date());\n\t\tvar watchfitbounds = [];\n\t\tfor (var i=0; i<app.m; i++) watchfitbounds.push(false);\n\t\tfor (var i=0; i<app.m; i++) {\n\t\t\tvar mapN = \"map\" + i;\n\t\t\tvar alreadyFitted = false;\n\t\t\tif (boundsEqual(app[mapN].map.getBounds(), fitBounds)) alreadyFitted = true;\n\t\t\telse app[mapN].map.fitBounds(fitBounds);\n\n\t\t\twatchfitbounds[i] = setInterval(function(i, mapN) {\n\t\t\t\tvar duration = moment.duration(moment(new Date()).diff(started));\n\t\t\t\tvar nowBounds = app[mapN].map.getBounds();\n\t\t\t\t//console.log(getNow(), mapN, mapN+'.bounds:', app[mapN].bounds);\n\t\t\t\t//console.log(getNow(), mapN, 'nowBounds:', nowBounds, duration / 1000);\n\t\t\t\tif (alreadyFitted || !boundsEqual(app[mapN].bounds, nowBounds)) {\n\t\t\t\t\t//console.log(getNow(), mapN, 'after fitBounds: ', nowBounds, 'duration:', duration/1000);\n\t\t\t\t\tclearInterval(watchfitbounds[i]);\n\t\t\t\t\twatchfitbounds[i] = false;\n\t\t\t\t\tapp[mapN].bounds = nowBounds;\n\t\t\t\t}\n\t\t\t\tif (duration > 10000) { // 10000 = 10 sec\n\t\t\t\t\t//console.log(getNow(), mapN, 'ffit fitBounds incompleted: ', nowBounds, 'duration:', duration/1000);\n\t\t\t\t\tclearInterval(watchfitbounds[i]);\n\t\t\t\t\twatchfitbounds[i] = false;\n\t\t\t\t}\n\t\t\t\tif (!watchfitbounds.reduce(function(x, y) {return x || y;})) {\n\t\t\t\t\t//console.log(getNow(), mapN, 'ALL fit fitBounds completed: ', nowBounds, 'duration:', duration/1000);\n\t\t\t\t\tupdateGloballyButton();\n\t\t\t\t\tapp.selectedBounds = nowBounds;\n\t\t\t\t\tsetTimeout(function() { mapOn_contextmenu_set(); }, 100);\n\t\t\t\t\tsetTimeout(function() { mapOn_movestart_set(); }, 200);\n\t\t\t\t\tsetTimeout(function() { mapOn_moveend_set(); }, 500);\n\t\t\t\t}\n\t\t\t}, 100, i, mapN);\n\t\t}\n\t\t\n\t\t// redraw maps\n\t\tfor (var i=0; i<app.m; i++) {\n\t\t\tvar mapN = \"map\" + i;\n\t\t\tdrawAmap(mapN, 3);\n\t\t}\n\t\t\n\t\t// redraw charts\n\t\tfor (var i=0; i<app.d; i++) {\n\t\t\tvar mapN = \"map\" + i;\n\t\t\tdrawAchart(mapN);\n\t\t}\n\t\t\n\t\t// parint density chart of the graph of Clusters\n\t\tfor (var i=0; i<app.nClusters; i++) {\n\t\t\tvar graphC = \"graphC\" + i;\n\t\t\tvar year = $(\"#\"+graphC+\" select[name=yearSelectGraphC]\").val();\n\t\t\tpaintDensityGraphC(graphC, year, i);\n\t\t}\n\t\t\n\t}, 100);\n}", "function drawAll() {\n let dimensions = appVars.canvasDimensions;\n appVars.context.clearRect(0, 0, dimensions.width, dimensions.height);\n\n for(var i = 0; i < appVars.shapes.length; i++) {\n var shape = appVars.shapes[i];\n if(!shape.deleted) {\n shape.draw(appVars.context);\n }\n }\n}", "updateTracks_() {\n while (this.trackRenderers_.length) {\n this.trackRenderers_.pop().dispose();\n }\n\n toArray(this.video_.textTracks).forEach((track) => {\n // Render both showing and hidden, because otherwise we would need to remember when we set it to hidden.\n // Disabled tracks are ignored.\n if (track.mode === 'showing' || track.mode === 'hidden') {\n track.mode = 'hidden';\n this.trackRenderers_.push(\n new TrackRenderer(this.video_, track, this.container_)\n );\n }\n });\n }", "update(map)\n {\n if (this.container === null)\n {\n this.init(map);\n }\n\n this.coins.graphics.clear();\n this.treasures.graphics.clear();\n const info_arr = map.eData();\n const size_x = map.SIZE_X;\n const size_y = map.SIZE_Y;\n\n for (let i = 0; i < size_x; i++)\n {\n const screen_y = this.size * i;\n for (let j = 0; j < size_y; j++)\n {\n const screen_x = this.size * j;\n if (info_arr[i][j] === BaseMapInfo.getElementsByTagName(\"gold\"))\n {\n this.paintCoin(screen_x, screen_y);\n }\n else if (info_arr[i][j] === BaseMapInfo.getElementsByTagName(\"end\"))\n {\n this.paintFinish(screen_x, screen_y);\n }\n }\n }\n }", "function drawAll() {\n if (!currentViewExtents) {\n currentViewExtents = timelineController.viewExtents;\n }\n\n // update size of main canvas\n var w = timelineController.width + margin.left + margin.right;\n var e = angular.element(main.canvas);\n main.resize(w);\n\n var s = function(v) {\n return v * main.ratio;\n };\n\n main.ctx.clearRect(0, 0, main.canvas.width, main.canvas.height);\n main.ctx.drawImage(lanes.canvas, 0, 0);\n\n // draw all visible regions\n var startX = absolute(currentViewExtents[0]);\n var endX = absolute(currentViewExtents[1]);\n var viewRegions = getContainedRegions(startX, endX);\n\n var effectiveWidth = 0;\n viewRegions.forEach(function(region) {\n effectiveWidth += region.width;\n });\n\n if (effectiveWidth < timelineController.width) {\n // we had to cap the region generation previously, but moved outside of\n // the generated area, so regenerate regions around the current view\n createRegions();\n viewRegions = getContainedRegions(startX, endX);\n }\n\n viewRegions.forEach(function(region) {\n drawRegion(region);\n\n // calculate the cropping area and offsets needed to place the region\n // in the main canvas\n var sx1 = Math.max(0, startX - region.x);\n var sx2 = Math.min(region.width, endX - region.x);\n var sw = sx2 - sx1;\n var dx = Math.max(0, startX - region.x);\n if (Math.floor(sw) === 0) {\n return;\n }\n\n main.ctx.drawImage(\n region.c.canvas,\n s(sx1), 0, Math.floor(s(sw)), s(height),\n s(margin.left + region.x - startX + sx1), 0, s(sw), s(height));\n });\n }", "function drawAll()\n{\t\n //\tDraw background\n ctx.fillStyle = \"black\";\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n\n //\tDraw the universe\n univ.draw();\n}", "function drawMountains()\n{\n for(var i = 0; i < mountains.length; i++)\n {\n mountains[i].draw();\n }\n}", "function draw() {\n ctx.clearRect(0, 0, getCanvasSize(0), getCanvasSize(1));\n var countries = $scope.countriesJSON[\"countries\"]\n for (var countryIndex=0; countryIndex < countries.length; countryIndex++){\n var country=countries[countryIndex];\n var areas=country[\"areas\"];\n \n for (var areaIndex=0; areaIndex < areas.length; areaIndex++){\n var area=areas[areaIndex];\n var drawingResult=drawArea(area, getAreaColor(country, area));\n\n if (isSelectedCountry(country)){\n var subAreas=$scope.selectedCountry[\"subareas\"];\n for (var subAreaIndex=0; subAreaIndex<subAreas.length; subAreaIndex++){\n var subArea = subAreas[subAreaIndex];\n var color;\n if (isSelectedArea(subArea)){\n color=selectedColor;\n }\n var subAreaDrawingResult = drawArea(subArea, color);\n writeName(subArea[\"name\"], subAreaDrawingResult);\n }\n }else if (area[\"substract\"] != 1){\n writeName(country[\"name\"], drawingResult);\n }\n }\n }\n \n if ($scope.addingRegion){\n if (newArea.length >= 1){\n if (newArea.length == 1){\n drawCross(newArea[0])\n }else {\n drawShape(newArea);\n }\n }\n }\n }", "function drawTree(){\n drawLeaves();\n drawTrunk();\n penUp();\n}", "computeTracks() {\n while (this.conferenceList.length > 0) {\n const track = new Track();\n for (let conference of this.conferenceList) {\n track.trackConference(conference);\n }\n this.trackList.push(track.prepareTrack());\n this.conferenceList = this.conferenceList.filter(conference => !conference.isTracked);\n }\n }", "plotRoutes() {\n for (let r of this.mapRoutes) {\n r.plotPath(this.map);\n }\n }", "function drawGame()\n{\n if(canvas==null) {return;}\n \n //Iterates over the map\n for(var y = 0; y < mapHeight; y++)\n {\n for(var x = 0; x < mapWidth; x++)\n {\n if (revealAll == true || fogmask[((y*mapWidth)+x)] != 1)\n {\n //Revealed area\n switch(map[((y*mapWidth)+x)])\n {\n case 0:\n canvas.fillStyle = \"#ffffff\";\n break;\n case 1:\n canvas.fillStyle = \"#444444\";\n break;\n case 4:\n canvas.fillStyle = \"#ffab00\";\n break;\n case 5:\n canvas.fillStyle = \"#00c853\";\n break;\n case 8:\n canvas.fillStyle = \"#03adfc\";\n break;\n case 9:\n canvas.fillStyle = \"#f50057\";\n break;\n default:\n canvas.fillStyle = \"#000000\";\n break; \n }\n }\n //Covered by fog\n else\n {\n switch(map[((y*mapWidth)+x)])\n {\n case 0:\n canvas.fillStyle = \"#bbbbbb\";\n break;\n case 1:\n canvas.fillStyle = \"#444444\";\n break;\n default:\n canvas.fillStyle = \"#bbbbbb\";\n break; \n }\n }\n \n //Draw the Tile\n canvas.fillRect(x*tileWidth, y*tileHeight, tileWidth, tileHeight);\n }\n }\n}", "function showAll() {\n expandAll(root);\n drawScenegraph(root);\n} // end showAll", "function drawAllMarkers(){\n\tfor(var i=0;i<results.length;i++){\n\t\tdrawMarker(results[i],i);\n\t}\n}", "static redraw() {\n let i = 0;\n let s = SmartCanvas.collection.length;\n\n for (; i < s; i++) {\n SmartCanvas.collection[i].redraw();\n }\n }", "function addAreas(){\n //draws the areas\n areaMap.forEach(function(item, key, mapObj){\n polyArea = drawArea(item);\n polyArea.addTo(areaLayer);\n })\n}", "draw(){\r\n //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n // Compute Position\r\n const thumb_h = 16;\r\n const thumb_w = 15;\r\n const track_h = 10;\r\n const on_color = \"#c8cad0\";\r\n\r\n\t\tlet p = this.pos;\r\n let h = this.height * 0.5;\r\n let h0 = h - thumb_h;\r\n let h1 = h + thumb_h;\r\n\r\n if( p < this.x_min + thumb_w ) p = this.x_min + thumb_w;\r\n if( p > this.x_max - thumb_w ) p = this.x_max - thumb_w;\r\n\r\n //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n // Drawing\r\n this.ctx.clearRect( 0, 0, this.width, this.height );\r\n \r\n // Draw Track\r\n this.draw_line( this.x_min, h, this.x_max, h, track_h, \"gray\", \"round\" );\r\n this.draw_line( this.x_min, h, p, h, track_h, on_color, \"round\" );\r\n\r\n // Draw Thumbs\r\n this.draw_line( p-thumb_w, h, p+thumb_w, h, thumb_h, on_color, \"round\", true );\r\n this.draw_text( this.value.toFixed(2), p, h, -1, \"black\" );\r\n }", "render() {\n this.ctx.clearRect(0, 0, this.pad.width, this.pad.height);\n this.paths.forEach((path) => path.render());\n }", "_draw_all(){\r\n\t\tthis._draw_bg();\r\n\t\tthis._draw_fg();\r\n\t}", "CallDraws()\n {\n if(this.visualDebug)\n {\n collisionSystem.grid.Draw();;\n }\n\n for(var i = 0; i < this.gameObjects.length; i++)\n {\n if(this.gameObjects[i].object.visible)\n {\n this.gameObjects[i].object.DrawGameObject();\n }\n }\n\n for(var i = 0; i < this.interface.length; i++)\n {\n this.interface[i].DrawGameObject();\n }\n \n if(this.visualDebug)\n {\n this.DrawAxis();\n this.DrawGrid();\n }\n }", "function drawObjects() {\n\t\t\tfor(var i in blackRects)\n\t\t\t\tblackRects[i].draw(ctx);\n\t\t\t\n\t\t\tfor(var i in lanes)\n\t\t\t\tlanes[i].draw(ctx);\n\t\t\t\n\t\t\tcar.draw(ctx);\n\t\t\t\n\t\t\tcops.sort(function(a,b){return a.pos().y-b.pos().y;});\n\t\t\tfor(var i in cops)\n\t\t\t\tcops[i].draw(ctx);\n\t\t}", "function drawEverything(){\n bg.draw()\n bgCloud.draw()\n}", "function draw() {\n if (mapReady) {\n clear();\n let zoom = myMap.zoom();\n\n // show current year/month\n textSize(28);\n fill(50);\n text(str(year) + ' - ' + monthsnames[month], 20, height - 50);\n\n // draw asylum seekers\n noStroke();\n for (let entry of monthly_flow[year][month]) {\n let [from, to, count] = entry;\n let start_coord = countries2coord[from];\n let end_coord = countries2coord[to];\n\n if (count > 100) {\n if (start_coord != undefined && end_coord != undefined) {\n // Only draw them if the position is inside the current map bounds. We use a\n // Leaflet method to check if the lat and lng are contain inside the current\n // map. This way we draw just what we are going to see and not everything. See\n // getBounds() in http://leafletjs.com/reference-1.1.0.html\n if (\n myMap.map\n .getBounds()\n .contains({ lat: start_coord[0], lng: start_coord[1] }) ||\n myMap.map.getBounds().contains({ lat: end_coord[0], lng: end_coord[1] })\n ) {\n // Transform lat/lng to pixel position\n start = myMap.latLngToPixel(start_coord);\n end = myMap.latLngToPixel(end_coord);\n\n stroke(100, 30);\n //strokeWeight(count / 100);\n line(start.x, start.y, end.x, end.y);\n let alpha = sin(progress * HALF_PI);\n let px = start.x * (1 - alpha) + end.x * alpha;\n let py = start.y * (1 - alpha) + end.y * alpha;\n noStroke();\n fill(lerpColor(start_color, end_color, progress));\n ellipse(px, py, (count * zoom) / scaling);\n //ellipse(start.x, start.y, 10);\n //ellipse(end.x, end.y, 10);\n }\n }\n }\n }\n // show next month asylum seekers to smoothen transition\n if (month < 11) {\n fill(start_color);\n noStroke();\n for (let entry of monthly_flow[year][month + 1]) {\n let [from, _, count] = entry;\n let start_coord = countries2coord[from];\n\n if (count > 100) {\n if (start_coord != undefined) {\n start = myMap.latLngToPixel(start_coord);\n ellipse(start.x, start.y, ((count * zoom) / scaling) * progress);\n }\n }\n }\n }\n\n // show slider selection\n if (selecting_year && mouseIsPressed) {\n textSize(28);\n fill(50);\n text(str(slider.value()), mouseX, mouseY - 20);\n }\n\n // update progress\n if (progress < 1) {\n progress += 0.01;\n } else {\n progress = 0;\n if (month < 11) {\n month += 1;\n } else {\n month = 0;\n if (year < 2017) {\n year += 1;\n } else {\n year = 1999;\n }\n slider.value(year);\n }\n }\n }\n}", "function drawCanvas() {\n var canvas = $('#MapCanvas');\n var ctx = canvas.get(0).getContext('2d');\n\n // Draw the map image on canvas\n ctx.drawImage(mMapImage, 0, 0);\n\n // Draw multi-colored circle overlays.\n for (var i in mSensors) {\n var sensor = mSensors[i];\n var color = getSensorColor(sensor);\n var arrowColor = getArrowColor(sensor);\n drawCircle(ctx, sensor.x, sensor.y, mSensorCircleSize, color);\n drawArrow(ctx, sensor.x, sensor.y, arrowColor)\n }\n }", "function draw() {\r\n\tbackground(53, 74, 35);\r\n\tfor (let i = 0; i < maze_grid.length; i++) {\r\n\t\tmaze_grid[i].displayGrid();\r\n\t}\r\n\r\n\tlet following_unit = current_unit.findAdjcent();\r\n\r\n\tcurrent_unit.visited = true;\r\n\t// console.log(current_unit);\r\n\r\n\tif (complete == false) {\r\n\t\tcurrent_unit.mark();\r\n\t\tif (following_unit) {\r\n\t\t\t// pushes current Unit to the stack for backtracking\r\n\t\t\tmaze_stack.push(current_unit);\r\n\t\t\tclearSide(current_unit, following_unit);\r\n\r\n\t\t\t// sets the current Unit to the following Unit in iteration\r\n\t\t\tfollowing_unit.visited = true;\r\n\t\t\tcurrent_unit = following_unit;\r\n\t\t// if no adjcent cells available then will pop \"backtrack\" until one becomes avaiable\r\n\t\t} else if (maze_stack.length > 0) {\r\n\t\t\tcurrent_unit = maze_stack.pop();\r\n\t\t}\r\n\t}\r\n\r\n\tdetermineComplete(maze_stack);\r\n\r\n\t// displays final path\r\n\tif (complete_path == true) {\r\n\t\tdisplayPath(path_stack)\r\n\t}\r\n\r\n\t// starts path finding process\r\n\tif (complete == true) {\r\n\t\tpath_iteration.pathvisit = true;\r\n\t\tpath_iteration.marksolve();\r\n\r\n\t\tvar following_path = path_iteration.findAdjcentPath();\r\n\t\tif(following_path) {\r\n\t\t\t// pushes current path to the stack for backtracking\r\n\t\t \tpath_stack.push(path_iteration);\r\n\r\n\t\t \t// sets the current path to the following path in iteration\r\n\t\t \tfollowing_path.pathvisit = true;\r\n\t\t \tpath_iteration = following_path;\r\n\t\t } else if(path_stack.length > 0 ) {\r\n\t\t \tpath_iteration = path_stack.pop();\r\n\t\t \tpath_iteration.markbacktrack();\r\n\t\t }\r\n\t}\r\n}", "function draw() {\n ctx.clearRect(0,0, canvas.width, canvas.height);\n drawList.forEach((shape) => {\n shape.draw();\n });\n raf = window.requestAnimationFrame(draw);\n}", "draw(){\n\t\tvar context = this.canvas.getContext('2d');\n\t\t//context.fillStyle = \"#007900\";\n\t\t//context.fillRect(0, 0, this.width, this.height);\n\n\t\tvar c = context;\n\n\t\tvar startCol = Math.floor(this.camera.x / map.tsize);\n \tvar endCol = startCol + (this.camera.width / map.tsize);\n \tvar startRow = Math.floor(this.camera.y / map.tsize);\n\t\tvar endRow = startRow + (this.camera.height / map.tsize);\n\t\t\n\t\tvar offsetX = -this.camera.x + startCol * map.tsize;\n \tvar offsetY = -this.camera.y + startRow * map.tsize;\n\n\t\tfor (var x = startCol; x < endCol; x++) {\n\t\t\tfor (var y = startRow; y < endRow; y++) {\n\t\t\t var drawx = x - startCol * 50 + offsetX;\n\t\t\t var drawy = y - startRow * 50 + offsetY;\n\n\t\t\t var colour = null;\n\t\t\t // Different colours for diverse terrain\n\t\t\t if (this.map[x][y] === 0 ) colour = \"#444\";\n\t\t\t else if (this.map[x][y] === 1 ) colour = \"#555\";\n\t\t\t else if (this.map[x][y] === 2 ) colour = \"#667\";\n\t\t\t else if (this.map[x][y] === 3 ) colour = \"#777\";\n\n\t\t\t // Damaging terrain: nuclear waste and map shrinking\n\t\t\t else if (this.map[x][y] === 8 ) colour = \"#FF8C00\";\n\t\t\t else if (this.map[x][y] === 9 ) colour = \"#707\";\n\n\n\t\t\t c.beginPath();\n\t\t\t c.rect(drawx*this.map.tsize, drawy *this.map.tsize, 50, 50);\n\t\t\t c.fillStyle = colour;\n\t\t\t c.fill();\n\t\t\t}\n\t\t\tthis.player.draw(c);\n\t\t}\n\n\t\t//context.clearRect(0, 0, this.width, this.height);\n\t\tfor(var i=0;i<this.actors.length;i++){\n\t\t\tthis.actors[i].draw(context);\n\t\t}\n\n\t\t// Call the drawUI method to render the user interface\n\t\tthis.drawUI();\n\t}", "draw() {\n while (scene.children.length > 0) {\n scene.remove(scene.children[0]);\n }\n var from = new THREE.Vector3(0, (this.height / -2), (this.length / 2));\n var to = new THREE.Vector3(0, (this.height / -2), (this.length / 2) + 1000);\n var direction = to.clone().sub(from);\n var length = direction.length();\n var arrowHelper = new THREE.ArrowHelper(direction.normalize(), from, length, \"red\");\n scene.add(arrowHelper);\n var gridHelper = new THREE.GridHelper(1.5 * this.length, 15);\n gridHelper.position.set(0, (this.height / -2), 0);\n scene.add(gridHelper);\n runtimeManager.currentGridUUID = gridHelper.uuid;\n super.draw(null, { type: \"bordered\" });\n for (var index in this.goods) {\n var g = this.goods[index];\n g.draw({ h: this.height, w: this.width, l: this.length }, { type: \"filled\" });\n }\n }", "draw() {\n // push the scene objects to the scene array\n this.prepareScene();\n\n // call each object's draw method\n this.drawSceneToCanvas();\n }", "function draw() {\n particles.forEach((p) => {\n p.draw();\n });\n}", "draw() {\n let minCount = this.minuteCount();\n let minPosition = this.minutePosition();\n this.drawBG();\n this.drawFog(this.getFogOpacity(minCount, minPosition));\n this.drawActiveVisitors();\n this.drawTime(minCount);\n }", "function drawCanvas() {\n\t\tdrawing(context, drawer, colours, solver, selectedSpacesGrid);\n\t\tsolver.callStateForItem(spanState);\n\t}", "draw() {\n // if not initialized\n if (this.viewportFollow === null) return;\n\n // draw background\n this._drawEveryCellWrapper(this._drawLayer.bind(this, 'ground'));\n\n // draw foreground\n for (const [, layerName, renderFunction, renderArgs] of this.customizedLayers) {\n if (renderFunction === '_drawCharacters') {\n this._drawCharacters(renderArgs);\n } else {\n this._drawEveryCellWrapper(this._drawLayer.bind(this, layerName));\n }\n }\n }", "function draw(){\n tile.clearRect(0, 0, canvas.width, canvas.height);\n drawFoundAnswers();\n drawSelection();\n drawBoard();\n drawAnswers();\n drawWinner();\n}", "redraw(data) {\n this.context.clearRect(0, 0, this.mapSizeX, this.mapSizeY);\n this.context.fillStyle = this.backGroundColor;\n this.context.fillRect(0,0,this.mapSizeX, this.mapSizeY);\n const { players, factory, bonus } = data;\n bonus[0].forEach((entity) => this.drawHearth(entity));\n factory[0].forEach((entity) => this.drawBullet(entity));\n players.forEach((player) => {\n this.drawTank(player);\n });\n }", "changeTracks() {\n // keeps track of the new Tracks to be rendered\n let newTrackList = [];\n // keeps track of the indexes of the Tracks to update our global currentTracks rendered\n let newTrackIndexes = [];\n\n for (let i = 1; i < this.totalTracks; i++) {\n // Checkboxes for each Track were given IDs starting at t1\n if (document.getElementById(\"t\" + i).checked) {\n // This pushes the actual Track object into newTrackList to call renderTracks below\n newTrackList.push(this.api.score.tracks[i - 1]);\n\n newTrackIndexes.push(i - 1);\n }\n }\n\n // if we have at least one Track to render, then render them and update the currentTracks variable\n if (newTrackList.length !== 0) {\n this.api.renderTracks(newTrackList);\n this.currentTracks = newTrackIndexes;\n } else {\n // Otherwise, they have unchecked all of the checkboxes and AlphaTab won't render 0 tracks\n // Therefore, we go through and recheck the Track checkboxes that were previously checked and ignore the input\n for (let i = 0; i < this.currentTracks.length; i++) {\n let trackIndex = this.currentTracks[i] + 1;\n document.getElementById(\"t\" + trackIndex).checked = true;\n }\n }\n }", "function drawMap() {\r\n\t\t\tPacman.contextBackground.fillStyle = \"#000\";\r\n\t\t\tPacman.contextBackground.fillRect(0, 0, Pacman.canvas.width, Pacman.canvas.height);\r\n\r\n\t\t\tdrawWalls();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (var i = 0; i < Pacman.gameHeight; i++) {\r\n\t\t \tfor (var j = 0; j < Pacman.gameWidth; j++) {\t \t\r\n\t\t\t \tvar map = Pacman.currentGameMap[i][j];\r\n\t\t\t \t\r\n\t\t\t \tif (map === Pacman.PILL) {\r\n\t\t\t \t\tPacman.contextBackground.beginPath();\r\n\t\t\t \t\t// fillStyle - Sets or returns the color, gradient, or pattern used to fill the drawing\r\n\t\t\t \t\tPacman.contextBackground.fillStyle = \"#FFF\";\r\n\t \t\t\t\t// arc - Creates an arc/curve (used to create circles, or parts of circles)\r\n\t \t\t\t\tPacman.contextBackground.arc((j * Pacman.gameMapBlockSizeX) + Pacman.gameMapBlockSizeX / 2, (i * Pacman.gameMapBlockSizeY) + Pacman.gameMapBlockSizeY / 2, 6, 0, 2 * Math.PI, false);\r\n\t \t\t\t\tvar canvas = document.getElementById('myCanvas');\r\n \r\n\t\t \t\t\t// fill - Fills the current drawing (path)\r\n \tPacman.contextBackground.fill();\r\n\t\t\t \t} else if (map === Pacman.PELLET) {\r\n\t\t\t \t\tPacman.contextBackground.beginPath();\r\n\t\t\t \t\t// fillStyle - Sets or returns the color, gradient, or pattern used to fill the drawing\r\n\t\t\t \t\tPacman.contextBackground.fillStyle = \"#FFF\";\r\n\t\t\t\t\t\tPacman.contextBackground.fillRect((j * Pacman.gameMapBlockSizeX) + (Pacman.gameMapBlockSizeX / 2.5), (i * Pacman.gameMapBlockSizeY) + (Pacman.gameMapBlockSizeY / 2.5), \r\n\t\t\t\t\t\t\tPacman.gameMapBlockSizeX / 6, Pacman.gameMapBlockSizeY / 6);\r\n\t\t\t \t} else\r\n\t\t\t \t\tcontinue;\r\n\t\t\t\t\t// closePath - Creates a path from the current point back to the starting point\t\t\t \t\t\r\n\t\t\t\t\tPacman.contextBackground.closePath();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "function draw(_) {\n const { viewBox, mouse, booleans, worldMap, units, selectedTerrainType, selectedBuildingType, selectedBackgroundImageSource, selectedUnitType, selectedFactionId, selectedPosition } = store.getState()\n const { width, height } = _.canvas\n const { offsetX, offsetY } = viewBox\n\n _.fillStyle = 'black'\n _.fillRect(0, 0, width, height)\n\n // No data displays only a black screen\n if (!worldMap) return\n\n const tileSize = width / viewBox.width // pixel per tile\n const viewBoxHeight = Math.ceil(height / tileSize) // tiles\n const mouseTile = worldMap[mouse.y] && worldMap[mouse.y][mouse.x]\n\n _.lineWidth = 1\n\n loadImages(imagesSources).then(images => {\n\n /* ----------------\n DRAW BACKGROUND\n ---------------- */\n\n for (let j = 0; j < viewBoxHeight + 1; j++) { // + 1 for move draw\n const y = Math.floor(j + viewBox.y)\n\n for (let i = 0; i < viewBox.width + 1; i++) {\n const x = Math.floor(i + viewBox.x)\n const tile = worldMap[y] && worldMap[y][x]\n\n if (!tile) continue\n\n _.drawImage(\n images[tile.backgroundImageSource],\n (i - (viewBox.x % 1)) * tileSize + offsetX,\n (j - (viewBox.y % 1)) * tileSize + offsetY,\n tileSize,\n tileSize\n )\n }\n }\n\n /* ---------------\n DRAW SELECTION\n --------------- */\n\n if (selectedBuildingType && mouseTile) {\n drawBuilding(_, images, tileSize, {\n type: selectedBuildingType,\n factionId: selectedFactionId,\n position: mouse,\n })\n }\n\n if (selectedTerrainType && selectedBackgroundImageSource && mouseTile) {\n _.drawImage(\n images[selectedBackgroundImageSource],\n (mouse.x - viewBox.x) * tileSize + offsetX,\n (mouse.y - viewBox.y) * tileSize + offsetY,\n tileSize,\n tileSize\n )\n }\n\n /* -----------\n DRAW UNITS\n ----------- */\n\n units.forEach(unit => drawUnit(_, tileSize, images, unit))\n\n if (selectedUnitType && mouseTile) {\n drawUnit(_, tileSize, images, {\n id: '0',\n type: selectedUnitType,\n factionId: selectedFactionId,\n position: mouse,\n })\n }\n\n /* ---------------------------\n DRAW TILE SELECTION SQUARE\n --------------------------- */\n\n const position = selectedPosition || mouse\n\n if (worldMap[position.y] && worldMap[position.y][position.x]) {\n const x = (position.x - viewBox.x) * tileSize + offsetX\n const y = (position.y - viewBox.y) * tileSize + offsetY\n\n _.lineWidth = 2\n _.strokeStyle = 'red'\n\n _.beginPath()\n _.rect(x, y, tileSize, tileSize)\n _.closePath()\n _.stroke()\n\n if (booleans.isDeletingUnits) {\n _.beginPath()\n _.moveTo(x, y)\n _.lineTo(x + tileSize, y + tileSize)\n _.moveTo(x + tileSize, y)\n _.lineTo(x, y + tileSize)\n _.closePath()\n _.stroke()\n }\n\n if (booleans.isFlippingUnits) {\n _.beginPath()\n _.moveTo(x + 0.3 * tileSize, y + 0.4 * tileSize)\n _.lineTo(x + 0.2 * tileSize, y + 0.5 * tileSize)\n _.lineTo(x + 0.3 * tileSize, y + 0.6 * tileSize)\n _.moveTo(x + 0.2 * tileSize, y + 0.5 * tileSize)\n _.lineTo(x + 0.8 * tileSize, y + 0.5 * tileSize)\n _.lineTo(x + 0.7 * tileSize, y + 0.4 * tileSize)\n _.moveTo(x + 0.8 * tileSize, y + 0.5 * tileSize)\n _.lineTo(x + 0.7 * tileSize, y + 0.6 * tileSize)\n _.closePath()\n _.stroke()\n }\n }\n })\n}", "function draw() {\n background(img);\n for (var i = 0; i < stations[currentStation].dots.length; i++) {\n stations[currentStation].show(i);\n }\n}", "function drawCanvas() {\n\t\tdraw(context, drawer, colours, solver);\n\t\tsolver.callStateForItem(spanState);\n\t}", "function draw() {\n // Fade existing trails\n var prev = g.globalCompositeOperation;\n g.globalCompositeOperation = \"destination-in\";\n g.fillRect(0, 0, mapView.width, mapView.height);\n g.globalCompositeOperation = prev;\n\n // Draw new particle trails\n particles.forEach(function(particle) {\n if (particle.age < settings.maxParticleAge) {\n g.moveTo(particle.x, particle.y);\n g.lineTo(particle.xt, particle.yt);\n particle.x = particle.xt;\n particle.y = particle.yt;\n }\n });\n }", "draw()\n {\n this.ctx.clearRect(0, 0, this.surfaceWidth, this.surfaceHeight);\n this.ctx.save();\n for (let i = 0; i < this.entities.length; i++)\n {\n this.entities[i].draw(this.ctx);\n }\n this.ctx.restore();\n }", "function cw_drawFloor() {\n ctx.strokeStyle = \"#000\";\n ctx.fillStyle = \"#666\";\n ctx.lineWidth = 1/zoom;\n ctx.beginPath();\n\n outer_loop:\n for(var k = Math.max(0,last_drawn_tile-20); k < cw_floorTiles.length; k++) {\n var b = cw_floorTiles[k];\n for (f = b.GetFixtureList(); f; f = f.m_next) {\n var s = f.GetShape();\n var shapePosition = b.GetWorldPoint(s.m_vertices[0]).x;\n if((shapePosition > (camera_x - 5)) && (shapePosition < (camera_x + 10))) {\n cw_drawVirtualPoly(ctx, b, s.m_vertices, s.m_vertexCount);\n }\n if(shapePosition > camera_x + 10) {\n last_drawn_tile = k;\n break outer_loop;\n }\n }\n }\n ctx.fill();\n ctx.stroke();\n}", "draw() {\r\n\t\tthis.matrix.forEach((row, y) => row.forEach((tile, x) => {\r\n\t\t\tif (tile) {\r\n\t\t\t\tlet [tx, ty] = tile.position.get;\r\n\t\t\t\tif (tile.isEmpty) {\r\n\t\t\t\t\t//default\r\n\t\t\t\t\tmainCtx.fillStyle = this.baseColor;\r\n\t\t\t\t\tmainCtx.fillRect(\r\n\t\t\t\t\t\ttx * (this.tileSize + this.spacing),\r\n\t\t\t\t\t\tty * (this.tileSize + this.spacing),\r\n\t\t\t\t\t\tthis.tileSize,\r\n\t\t\t\t\t\tthis.tileSize\r\n\t\t\t\t\t);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//draw gameobject\r\n\t\t\t\t\tmainCtx.fillStyle = tile.top.bgColor;\r\n\t\t\t\t\tmainCtx.fillRect(\r\n\t\t\t\t\t\ttx * (this.tileSize + this.spacing),\r\n\t\t\t\t\t\tty * (this.tileSize + this.spacing),\r\n\t\t\t\t\t\tthis.tileSize,\r\n\t\t\t\t\t\tthis.tileSize\r\n\t\t\t\t\t);\r\n\t\t\t\t\tmainCtx.fillStyle = tile.top.color;\r\n\t\t\t\t\tmainCtx.fillText(\r\n\t\t\t\t\t\ttile.top.glyph,\r\n\t\t\t\t\t\ttx * (this.tileSize + this.spacing) + this.tileSize / 2,\r\n\t\t\t\t\t\tty * (this.tileSize + this.spacing) + this.tileSize / 1.5\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}", "function drawGameplay() {\n\tdrawBackground();\n\tdrawBanner();\n\tdrawMapBricks(currentMap);\n\tif (roundStart) {\n\t\tdrawBallAimer();\n\t}\n\tdrawBall();\n\tdrawLava();\n\tdrawPlayersPaddle();\n}", "refreshMap() {\n\t\tif (typeof this.map_ptr.doors !== 'undefined') {\n\t\t\tthis.map_ptr.doors.forEach((element, index, array) => {\n\t\t\t\tif (SaveState.doorsOpened.indexOf(element.id) > -1) {\n\t\t\t\t\tthis.map_ptr.layout[element.x + (element.y * this.map_ptr.width)] = Data.mapTiles.BRICK;\n\t\t\t\t} else {\n\t\t\t\t\tthis.map_ptr.layout[element.x + (element.y * this.map_ptr.width)] = Data.mapTiles.DOOR;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tif (typeof this.map_ptr.chests !== 'undefined') {\n\t\t\tthis.map_ptr.chests.forEach((element, index, array) => {\n\t\t\t\tif (SaveState.chestsOpened.indexOf(element.id) > -1) {\n\t\t\t\t\tthis.map_ptr.layout[element.x + (element.y * this.map_ptr.width)] = Data.mapTiles.BRICK;\n\t\t\t\t} else {\n\t\t\t\t\tthis.map_ptr.layout[element.x + (element.y * this.map_ptr.width)] = Data.mapTiles.CHEST;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "drawMap() {\n if (this.map && this.map.update) {\n this.map.draw(this.game.ctx)\n }\n }", "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}", "function drawAllPlayers(playerList){\n myCanvas.drawBoard();\n for (let i = 0; i<playerList.length; i++){playerList[i].drawPlayer()};\n}", "function drawAllBlocksToPlayArea(ctx) {\n\n // go thru the blocks one by one in playerLevelEnvironment.listOfBlocksInThePlayingArea\n for (let i = 0; i < playerLevelEnvironment.listOfBlocksInThePlayingArea.length; i++) {\n\n // draw the block\n const xModifierInSquares = playerLevelEnvironment.listOfBlocksInThePlayingArea[i].blockX;\n const yModifierInSquares = playerLevelEnvironment.listOfBlocksInThePlayingArea[i].blockY + 1;\n const yModifierInPixels = 0;\n const drawEmptyLines = true;\n const blockMapToDraw = playerLevelEnvironment.listOfBlocksInThePlayingArea[i].blockMap;\n const blockToDrawColor = colorRelated.getBlockColor(playerLevelEnvironment.listOfBlocksInThePlayingArea[i].blockIndex);\n drawBlock.drawBlock(ctx, blockMapToDraw, blockToDrawColor, xModifierInSquares, yModifierInSquares, yModifierInPixels, drawEmptyLines, playerLevelEnvironment.playAreaMode, playerLevelEnvironment.fullLines, playerLevelEnvironment.gameEndFadeAnimationCounter, gameLevelEnvironment.gameEndFadeAnimationLength, playerLevelEnvironment.fullLineFadeAnimationCounter, gameLevelEnvironment.fullLineFadeAnimationLength);\n\n }\n }", "function DrawEntities()\n{\n\tfor(id in parent.entities)\n\t{\n\t\tvar entity = parent.entities[id];\n\t\t\n\t\tvar localPos = WorldToLocal(entity.real_x, entity.real_y, scale);\n\t\t\n\t\tif(miniMapDistance(localPos.x, localPos.y) < miniMapRadius - miniMapBorder)\n\t\t{\n\t\t\tvar color=EntityColorMapping(entity);\n\t\t\tvar fill = color;\n\t\t\tvar size=2;\n\t\t\tvar borderSize = 2;\n\t\t\tif(entity.mtype != null && (parent.G.monsters[entity.mtype].respawn == -1 || parent.G.monsters[entity.mtype].respawn > 60*2))\n\t\t\t{\n\t\t\t\tsize = 5;\n\t\t\t\tfill = 0x40420;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\te.lineStyle(borderSize, color);\n\t\t\te.beginFill(fill);\n\t\t\te.drawCircle(localPos.x + mapOrigin.x, localPos.y + mapOrigin.y, size);\n\t\t\te.endFill();\n\t\t}\n\t\t\n\t}\n}", "drawGraph(){\n let shapes = this.vertices.iterator();\n\n while(!shapes.isEmpty()){\n shapes.currItem().drawEdges();\n shapes.next();\n }\n\n shapes = this.vertices.iterator();\n\n \n while(!shapes.isEmpty()){\n shapes.currItem().draw(this.currentStage);\n shapes.next();\n }\n }", "drawFlagged() {\n\n //for (var i = 0, len = this.flaggedPixels.length; i < len; i++) {\n // let pixel = this.flaggedPixels[i];\n // this.drawSinglePixel(pixel.xCoord, pixel.yCoord);\n //}\n\n this.flaggedPixels.forEach((pixel) => {\n this.drawSinglePixel(pixel.xCoord, pixel.yCoord);\n });\n\n this.flaggedPixels.length = 0;\n }", "draw()\n {\n if(this.helicopter.length === 1)\n {\n this.helicopter[0].draw();\n }\n\n for(var i = 0; i < this.trucks.length; i++)\n {\n this.trucks[i].draw();\n }\n\n for(var i = 0; i < this.motorcycles.length; i++)\n {\n this.motorcycles[i].draw();\n }\n\n for(var i = 0; i < this.spikeCars.length; i++)\n {\n this.spikeCars[i].draw();\n }\n\n for(var i = 0; i < this.powerTrucks.length; i++)\n {\n this.powerTrucks[i].draw();\n }\n\n for(var i = 0; i < this.respawnTrucks.length; i++)\n {\n this.respawnTrucks[i].draw();\n }\n }", "draw() {\n if (this._page !== currentPage) {\n return;\n }\n this.drawRectangles();\n if (!isReady) {\n return;\n }\n // Only used if using text lines.\n if (this._textLines.length > 0) {\n for (var i = 0; i < this._textLines.length; i++) {\n this._textLines[i].draw();\n }\n }\n // Only used if using input panels.\n if (this._inputPanels.length > 0) {\n for (var i = 0; i < this._inputPanels.length; i++) {\n this._inputPanels[i].draw();\n }\n }\n // Only used if using progress bars.\n if (this._progressBars.length > 0) {\n for (var i = 0; i < this._progressBars.length; i++) {\n this._progressBars[i].draw();\n }\n }\n }", "function drawAesthetics() {\n\t\t\tfor(var i in trees)\n\t\t\t\ttrees[i].draw(ctx);\n\t\t\t\n\t\t\tfor(var i in clouds)\n\t\t\t\tclouds[i].draw(ctx);\n\t\t\t\n\t\t\tctx.fillStyle = \"white\";\n\t\t\tctx.fillRect(0, canvas.height-210, canvas.width, 210);\n\t\t}", "function markMap(projectFiles) {\n let docFrag = document.createDocumentFragment();\n let counter = 0;\n projectFiles.files.forEach((project) =>\n { if (project.coordinate && onMap(project.coordinate))\n {\n let house = drawPoint(project, counter);\n if (house) {\n docFrag.appendChild(house);\n counter++;\n }\n }\n });\n\n let myContainer = document.querySelector(\"#mapContainer\");\n myContainer.appendChild(docFrag);\n}", "attachTracks(tracks, container) {\n tracks.forEach(track => {\n container.appendChild(track.attach());\n });\n }", "drawScene() {\n const positions = this.getTilePositions();\n this.updateTileSpecs();\n if (debug) {\n this.redrawStarted = Date.now();\n this.redrawnTiles = 0;\n }\n this.drawTiles(positions);\n if (debug) {\n const elapsed = Date.now() - this.redrawStarted;\n if (elapsed > 5) {\n console.log(`Took ${elapsed} msecs to redraw for ${positions.startXTile} ${positions.startYTile} (redrawnTiles: ${this.redrawnTiles})`);\n }\n }\n }", "function drawAll() {\n ctx.clearRect(0, 0, 800, 500);\n for (var j = 0; j < lgt; j++) {\n shape[j].draw();\n\n }\n for (var k = 0; k < COUNT; k++) {\n snowflakes[k].update();\n\n }\n\n\n}", "draw(ctx) {\n this.gameObjects.forEach((object) => object.draw(ctx));\n }" ]
[ "0.6676141", "0.6492108", "0.647695", "0.6236691", "0.6162743", "0.6043636", "0.59702027", "0.59164035", "0.58988124", "0.5888678", "0.5800019", "0.56687367", "0.5639436", "0.5628369", "0.56171674", "0.56040055", "0.560241", "0.56004506", "0.55998623", "0.5596481", "0.5578099", "0.55650985", "0.55502206", "0.5548038", "0.5523589", "0.55232984", "0.5512707", "0.5496515", "0.54927236", "0.549006", "0.54882914", "0.5487011", "0.5479556", "0.5474757", "0.5465438", "0.5450887", "0.54348624", "0.54335713", "0.54309267", "0.5422859", "0.5395674", "0.53928655", "0.5379848", "0.53797203", "0.53590685", "0.5353018", "0.533562", "0.53353286", "0.5333734", "0.5295339", "0.5295322", "0.52938914", "0.528939", "0.52890813", "0.5283728", "0.5275602", "0.5268493", "0.5266678", "0.52621156", "0.5258555", "0.52534115", "0.5247297", "0.524487", "0.52422726", "0.52351797", "0.52327496", "0.5227352", "0.5226249", "0.52246916", "0.5218524", "0.5209407", "0.52017397", "0.519766", "0.5196693", "0.5192977", "0.51892936", "0.5188019", "0.5185139", "0.51804405", "0.5177177", "0.51679975", "0.51605374", "0.51538557", "0.51518273", "0.5146765", "0.514654", "0.5145117", "0.5138005", "0.5135749", "0.5134595", "0.5133039", "0.5125276", "0.5124502", "0.5123707", "0.5120969", "0.51187235", "0.51143", "0.51109093", "0.5109225", "0.51044774" ]
0.6274876
3
Load all photos onto the map as markers
function loadPhotos(){ var geoJson = []; for (var i = 0; i < photoList.length; i++) { var date = photoList[i].filename.slice(0,10); if (tracks[date]) { geoJson.push({ "type": "Feature", "geometry": { "type": "Point", "coordinates": photoList[i].coordinates }, "properties": { "filename": photoList[i].filename, "caption": photoList[i].caption } }); } } photoLayer.on('layeradd', function(e) { var marker = e.layer, feature = marker.feature, filename = feature.properties.filename, caption = feature.properties.caption; var content = '<img width="200px" src="photos/' + filename + '"/><br/>'; if (caption) { content = content + caption + '<br/>'; } content = content + '<a href="https://instagram.com/huntca" target="_blank">' + '📷 instagram/huntca' + '</a>'; marker.bindPopup(content ,{ closeButton: false, minWidth: 220, maxWidth: 220 }); marker.setIcon(L.icon({ "iconUrl": "photos/" + filename, "iconSize": [50, 50], "iconAnchor": [25, 25], "popupAnchor": [0, -25], "className": "dot" })); }); photoLayer.setGeoJSON(geoJson); photoCluster.addLayer(photoLayer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function loadMarkersAndPictures(markers, data){\n var size = new OpenLayers.Size(5,5);\n var offset = new OpenLayers.Pixel(-(size.w/2), -(size.h/2));\n var occurrence = new OpenLayers.Icon('../images/map/occurrence.png',size,offset);\n var data_occurrence, cloned_occurrence, openlayers_marker = OpenLayers.Marker, openlayers_lonlat = OpenLayers.LonLat;\n\n asyncLoop(data.occurrences, function(data_occurrence){\n cloned_occurrence = occurrence.clone();\n $(cloned_occurrence.imageDiv).css('zIndex', -1);\n markers.addMarker(\n new openlayers_marker(\n new openlayers_lonlat( data_occurrence.lon, data_occurrence.lat), cloned_occurrence)\n );\n }, function(){\n $('div.map img.loading').fadeOut('fast');\n }, this);\n\n size = new OpenLayers.Size(81,63);\n offset = new OpenLayers.Pixel(-(size.w/2), -(size.h/2));\n var data_landscape;\n\n asyncLoop(data.landscapes, function(data_landscape){\n markers.addMarker(\n new LandscapeMarker(\n new OpenLayers.LonLat(data_landscape.lon,data_landscape.lat),\n new OpenLayers.Icon(data_landscape.picture,size,offset),\n data_landscape\n )\n );\n }, function(){\n \n }, this);\n }", "function loadImages() {\r\n\t\tremoveUnseenImages();\r\n\t\tvar sets = $['mapsettings'];\r\n\t\tvar range = getPixelRange();\r\n\t\tfor(var i=range.start.x; i<range.end.x && i<sets.resolutions[sets.zoom-1].width; i+=addi(i)) {\r\n\t\t\tfor(var j=range.start.y; j<range.end.y && j<sets.resolutions[sets.zoom-1].height; j+=256) {\r\n\t\t\t\tvar col = getColumn(i);\r\n\t\t\t\tif(!isLoaded(col,i,j)) { // Prevent already loaded images from being reloaded\r\n\t\t\t\t\tvar imgurl = sets.image_name.replace(/%Z/, sets.zoom );\r\n\t\t\t\t\timgurl = imgurl.replace(/%L/, sets.level);\r\n\t\t\t\t\timgurl = imgurl.replace(/%C/, col);\r\n\t\t\t\t\timgurl = imgurl.replace(/%X/, (i-firstInColumnLocation(col-1)));\r\n\t\t\t\t\timgurl = imgurl.replace(/%Y/, j);\r\n\t\t\t\t\timgurl = sets.image_dir + imgurl;\r\n\t\t\t\t\t$['mapsettings'].loaded[sets.zoom+\"-\"+col+\"-\"+i+\"-\"+j] = true;\r\n\t\t\t\t\tvar style = \"top: \" + j + \"px; left: \" + i + \"px;\"\r\n\t\t\t\t\tvar theClass = \"file\" + sets.zoom + \"-\" + col +\"-\" + i + \"-\" + j;\r\n\t\t\t\t\t$(\"<img/>\").attr(\"style\", style).attr('class',theClass).appendTo(\"#images\").hide();\r\n\t\t\t\t\t$(\"img.\" + theClass).load(function(e){ $(this).show(); }); // Only show the image once it is fully loaded\r\n\t\t\t\t\t$(\"img.\" + theClass).attr(\"src\", imgurl);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function loadImages(map, url, token, callback) {\n var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random()),\n script = document.createElement('script');\n url = updateURL(url, 'count', 50);\n url = updateURL(url, 'access_token', token);\n url = updateURL(url, 'callback', callbackName);\n script.src = url;\n script.onerror = scriptError;\n document.body.appendChild(script);\n\n window[callbackName] = function (photos) {\n\n // Cleanup the current callback\n delete window[callbackName];\n document.body.removeChild(script);\n\n // Process the images\n var i = 0;\n\n for (i = 0; i < photos.data.length; i += 1) {\n if (photos.data[i].location) {\n createMarker(photos.data[i], map);\n }\n }\n if (photos.pagination && photos.pagination.next_url) {\n loadImages(map, photos.pagination.next_url, token, callback);\n } else {\n return callback();\n }\n };\n\n }", "function getMarkersData() {\n var imagefetch = markers.map(function (marker) {\n var url = \"https://api.foursquare.com/v2/venues/\" + marker.id + \"?client_id=JU2UWXY4QIBEX332XAFFRFJN0HNLGGU4VNLUFANT131W4BK2&client_secret=ILFXGAMSE2ZGLWULK13KCJVEMYQKY3XUJR2ZWHTIUP2F1AXV&v=20120609\"\n return fetch(url)\n .then(data=> data.json())\n .then(data => {\n var bestPhoto = (data.response.venue && data.response.venue.bestPhoto);\n var photoUrl = bestPhoto.prefix + \"200x200\" + bestPhoto.suffix;\n return photoUrl\n })\n });\n // After all the images have been fetched, then setup the info window\n Promise.all(imagefetch)\n .then(()=>{\n for(image of imagefetch){\n image.then(url => photos.push(url))\n }\n })\n .catch( (error) => alert(error))\n .then(()=>{\n setupInfoWindow()\n })\n}", "function loadFlickrPhotos() {\n var photoSetId, photoSetName;\n photoSetId = this.id.substring(2); // remove \"ps\" prefix\n photoSetName = $(this).text();\n\n // Get all the photos associated with the given photoset id.\n $.getJSON('/photos/' + photoSetId).then(\n function (data) {\n $('#photos').empty();\n Object.keys(data).sort().forEach(function (title) {\n var photo = data[title];\n loadFlickrPhoto(photo);\n });\n });\n }", "function callback(results, status) {\n console.log(results);\n results.map((place) => {\n if (place.photos) {\n place.photos[0] = place.photos[0].getUrl();\n }\n });\n\n // document.querySelector(\".destination__img\").src =\n // results[0].photos[0] || results[1].photos[0];\n\n if (results[0].hasOwnProperty(\"photos\")) {\n generateCustomMarker(\n map,\n waterSource._data.geometry.coordinates,\n results[0].photos[0]\n );\n } else {\n generateCustomMarker(\n map,\n waterSource._data.geometry.coordinates,\n results[1].photos[0]\n );\n }\n }", "function initMap() {\n var uluru = getUserLocation();\n map = new google.maps.Map(document.getElementById('map'), {\n zoom: 8,\n center: uluru\n });\n\n getImages(uluru);\n\n map.addListener('dragend', function() {\n var center = map.getCenter();\n getImages({lat: center.lat(), lng: center.lng()});\n });\n}", "function LoadMarkers()\n{\n\tvar data = datajson;\n\tClearMarkers();\n\tfor(var i = 0; i < data.length; i ++)\n\t{\t\n\t\tvar isCheckBoxChecked = $(\".\"+data[i].name + \"-checkbox\").is(':checked');\n\t\tif(isCheckBoxChecked)\n\t\t{\n\t\t\tfor(var p = 0; p < data[i].data.length; p++)\n\t\t\t{\n\t\t\t\tvar dataitem = data[i].data[p];\n\t\t\t\tvar myLatlng = new google.maps.LatLng(dataitem.lat, dataitem.lng);\n\t\t\t\tvar marker = new CustomMarker(\n\t\t\t\t\tmyLatlng, \n\t\t\t\t\tmap,\n\t\t\t\t\tdataitem\n\t\t\t\t);\n\t\t\t\tmarkersArray.push(marker);\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// set the weather\n\tif(data.length > 0)\n\t{\n\t\tif(data[0].weather.toLowerCase().indexOf(\"clear\") > -1)\n\t\t{\n\t\t\t$(\".weatherContainer\").html(\"<i class='fa fa-sun-o'></i>\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$(\".weatherContainer\").html(\"<i class='fa fa-cloud'></i>\");\n\t\t}\n\t}\n}", "function loadMarkers() {\n var bounds = new google.maps.LatLngBounds();\n for (var i = 0; i < markers.length; i++) {\n locations[i].marker = markers[i];\n markers[i].setMap(map);\n bounds.extend(markers[i].position);\n }\n map.fitBounds(bounds);\n}", "function setListMarkers(map, listOfStuff, imgUrl) {\n\t//console.log(listOfStuff)\n\tfor (index in listOfStuff) {\n\t\tsetMarker(map, listOfStuff[index], imgUrl)\n\t}\n}", "function add_photo_marker(pid, map, cent) { \n\t$.getJSON(\"/photos/\"+pid, function(json) {\n\n\tvar contentString = \"<b>Photo \"+json.id+\"</b>\" +\n\t\t\"<div id= 'infoWindowDiv'>\" +\n\t\t\t\"<a href=/photos/\"+json.id+\">\";\n\t\t\t\tif (json.thumbnail != null) {\n\t\t\t\t\tcontentString += \"<img src=\"+json.thumbnail+\">\";\n\t\t\t\t} else {\n\t\t\t\t\tcontentString += \"Photo Unavailable\";\n\t\t\t\t} contentString +=\n\t\t\t\"</a>\" +\n\t\t\"</div>\"; \n\n\n var latlng = new google.maps.LatLng(json.latitude, json.longitude);\n \n var marker = new google.maps.Marker({\n position: latlng,\n map: map\n });\n marker.infowindow = new google.maps.InfoWindow({\n content: contentString,\n });\n\n // pops up an infowindow when you click on a marker\n google.maps.event.addListener(marker, 'click', function() {\n if(lastOpenedPhotos != null) lastOpenedPhotos.infowindow.close();\n marker.infowindow.open(map,marker);\n lastOpenedPhotos = marker;\n });\n // recenters map when you close an infowindow\n google.maps.event.addListener(marker.infowindow,'closeclick', function() {\n map.setCenter(cent);\n lastOpenedPhotos = null;\n });\n });\n}", "function placeFlickrMarker(){\r\n\r\n if(flickrPointsInfo.length > 0){\r\n flickrPointsArray = new Array(flickrPointsInfo.length)\r\n flickrLineArray = new Array(flickrPointsInfo.length)\r\n for(var i=0; i<flickrPointsInfo.length; i++){\r\n\r\n placeMarker(\r\n flickrPointsInfo[i].lat, // latitude\r\n flickrPointsInfo[i].lng, // longitude\r\n flickrPointsInfo[i].emotion, // emotion\r\n flickrPointsInfo[i].intensity, // intensity\r\n flickrPointsInfo[i].content, // html content\r\n flickrPointsInfo[i].title, // title\r\n flickrPointsInfo[i].publishTime, // publish time\r\n flickrPointsInfo[i].imagePath, // image1\r\n null, // image2 - for government point\r\n null, // image3 - for government point\r\n i // the Nth record\r\n )\r\n\r\n }// end for\r\n }\r\n\r\n}", "function addAllMarkers(){\n\tfor (var i = 0, len = mapLocations.length; i < len; i++){\n\t\tvar loc = mapLocations[i];\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: loc.position,\n\t\t\tmap: map,\n\t\t\tscaledSize: new google.maps.Size(50, 50),\n\t\t\ticon: \"https://s3-us-west-2.amazonaws.com/andrewdunn-pictures/thumbs/images/\" + loc.icon,\n\t\t\tlocationType: loc.locationType,\n\t\t\tid: loc.id\n\t\t});\n\t\t attachClickBehaviour(marker);\n\t\t mapMarkers.push(marker);\n\t}\n}", "function paradasRutas(storeParadasRutas) {\n \n var estado=0;\n for (var i = 0; i < storeParadasRutas.length; i++) {\n image = {\n url: 'img/marker5.png',\n size: new google.maps.Size(50, 50),\n origin: new google.maps.Point(0, 0),\n anchor: new google.maps.Point(0, 50)\n };\n if(i===1){\n estado=1;\n image = {\n url: 'img/marker6.png',\n size: new google.maps.Size(50, 50),\n origin: new google.maps.Point(0, 0),\n anchor: new google.maps.Point(0, 50)\n };\n }\n if(i===4){\n estado=1;\n image = {\n url: 'img/marker6.png',\n size: new google.maps.Size(50, 50),\n origin: new google.maps.Point(0, 0),\n anchor: new google.maps.Point(0, 50)\n };\n }\n \n var myLatLng = new google.maps.LatLng(storeParadasRutas[i].lat, storeParadasRutas[i].lon);\n addMarker(myLatLng, storeParadasRutas[i].dir_img, storeParadasRutas[i].direccion, estado,storeParadasRutas[i].referencia,storeParadasRutas[i].barrio, storeParadasRutas[i].imagenVisibleParada);\n }\n setAllMap(mapGoogle);\n}", "function overall_map(ary) {\n var mapContainer = document.getElementById('map'),\n mapOption = { \n center: new kakao.maps.LatLng(37.5456, 126.9798),\n level: 8\n };\n var map = new kakao.maps.Map(mapContainer, mapOption);\n\n var imageSrc = \"https://t1.daumcdn.net/localimg/localimages/07/mapapidoc/markerStar.png\"; \n\n for (var i = 0; i < ary.length; i++)\n {\n var imageSize = new kakao.maps.Size(24,35);\n var markerImg = new kakao.maps.MarkerImage(imageSrc, imageSize);\n\n var marker = new kakao.maps.Marker({\n map: map,\n position: new kakao.maps.LatLng(ary[i]['lat'], ary[i]['lng']),\n title: ary[i]['store_name'],\n image: markerImg\n });\n\n kakao.maps.event.addListener(marker, 'click', map_to_modal(ary[i]['store_name']));\n }\n}", "function loadLocations() {\n\t$.ajax({\n\t\turl: '/location',\n\t\ttype: 'GET',\n\t\tdataType: 'json',\n\t\tsuccess: function(response) { \n\t\t\tlet locations = response.locations;\t\t\t\n\t\t\tmap = new google.maps.Map(document.getElementById('map'), {\n\t\t\t zoom: 11,\n\t\t\t center: startPosition\n\t\t\t});\n\t\t\n\t\t\tfor(var i=0; i<locations.length; i++) {\n\t\t\t\tvar newMarker = new google.maps.Marker({\n\t\t\t\t\tposition: {lat: parseFloat(locations[i].lat), lng: parseFloat(locations[i].lng)},\n\t\t\t\t\tmap: map,\n\t\t\t\t\ttitle: locations[i].title,\n\t\t\t\t\tid: locations[i].id\n\t\t\t\t});\t\t\n\t\t\t\tmarkers.push(newMarker);\n\t\t\t}\n\t\t\tupdateMarkers();\n\t\t},\n\t\tcomplete: function(xhr, status) { \n\n\t\t},\n\t\terror: function(xhr, status) { \n\n\t\t}\n\t}); \n}", "function loadFlickrImages( dogBeachMarker, dogBeachInfoWindow) {\n\t\t// Search flickr for one image\n\t\tvar flickURL = 'https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=eebfb336fe500c5469321951f38d7853&tags=' \n\t\t+ dogBeachMarker.googleMarker.title + '&per_page=1&format=json&jsoncallback=?';\n\n\t\tvar imgURL = '';\n\n\t\t// Set a loading image in the infoWindow \n\t\tself.dogBeachInfoWindow.flickrImgURL('img/running-dog-grey.gif');\n\n\t\t$.ajax({\n\t\t\turl : flickURL,\n\t\t\tdataType : 'jsonp'\n\t\t}).done(function(data) {\n\n\t\t\tvar photoList = data.photos.photo;\n\t\t\t\n\t\t\tfor (var i = 0; i < photoList.length; i++) {\n\t\t\t\t// construct URL as per https://www.flickr.com/services/api/misc.urls.html \n\t\t\t\timgURL = 'https://farm' + photoList[i].farm + '.staticflickr.com/'\n\t\t\t\t+ photoList[i].server + '/' + photoList[i].id + '_' + photoList[i].secret + '_m.jpg';\n\t\t\t}\n\n\t\t\tdogBeachInfoWindow.flickrImgURL(imgURL);\n\n\t\t}).fail(function() {\n\n\t\t\tdogBeachInfoWindow.apiErrorMessage('Unable to load Flickr images ...');\n\n\t\t});\n\t}", "function initImageMap() {\r\n $('#imageMap>area').each((_, area) => {\r\n let map = $(area).attr('title');\r\n $(area).off('click').on('click', (_) => {\r\n selectMap(map);\r\n })\r\n });\r\n}", "function initMap() {\n\t$.get(\"/getdots\", function(data, status){\n\t\tmap = new google.maps.Map(document.getElementById('map'), {\n\t\t\tcenter: {lat:52.373801, lng: 4.890935},\n\t\t\tzoom: \t13\n\t\t})\n\n\t\tvar locations = [\n\t\t{title: 'Grijze bank', \tlocation: {lat: 52.379189, lng: 4.899431 }, picture: '0cdce8b6a0f08839f379bced61162dae' },\n\t\t{title: 'Knuffel', \t\tlocation: {lat: 52.395728 , lng: 4.966210}, picture: '8aa8259065d812a3ef2a40baddce5478' }]\n\n\n\t\tvar largeInfowindow = new google.maps.InfoWindow()\n\n\t\tvar marker, i \n\n\t\tfor (var j = 0; j < data.length; j++) {\n\t\t\tconsole.log ('dit is data' + data)\n\t\t\tlocations.push( {title: data[j].title, location: {lat: data[j].latitude , lng: data[j].longitude }, picture: data[j].picture})\n\t\t\t\n\t\t\tvar bounds = new google.maps.LatLngBounds()\n\t\t}\n\n\t\tconsole.log ('dit is locations' + locations)\n\t\t//use the location array to create an array of markers\n\t\tfor (var i = 0; i < locations.length; i++) {\n\t\t\t//get position from the location array\n\t\t\tvar position \t= locations[i].location\n\t\t\tvar title \t\t= locations[i].title\n\t\t\t//create a marker per location and put into marker array\n\t\t\tmarker = new google.maps.Marker({\n\t\t\t\tmap: \t\tmap, \n\t\t\t\tposition: \tposition, \n\t\t\t\ttitle: \t\ttitle,\n\t\t\t\tanimation: \tgoogle.maps.Animation.DROP,\n\t\t\t\tid: \t\ti\n\t\t\t})\n\t\t\n\t\t\t//extend the boundaries of the map for each marker\n\t\t\tbounds.extend(marker.position)\n\n\t\t\tconsole.log(marker)\n\n\t\t\t//create an onclick event to open an infowindow at each marker\n\t\t\tmarker.addListener('click', (function( marker, i) {\n\t\t\t\treturn function () {\n\n\t\t\t\t\tif (largeInfowindow.marker != marker) {\n\t\t\t\t\t\tlargeInfowindow.marker = marker\n\t\t\t\t\t\tlargeInfowindow.setContent ('<a href=\"/wittebank\"><IMG BORDER=\"0\" ALIGN=\"Left\" SRC=\"/../uploads/'+ locations[i].picture +'\"> </a> <div ALIGN=\"center\">'+ marker.title + '</div>')\n\t\t\t\t\t\tlargeInfowindow.open (map,marker)\n\t\t\t\t\t\t// // Make sure the marker property is cleared if the window is closed\n\t\t\t\t\t\t// largeInfowindow.addListener('closeclick', function(){\t\n\t\t\t\t\t\t// })\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})(marker, i))\n\t\t}\n\n\t\tmap.fitBounds(bounds)\n\t\t//this function populates the infowindow when the marker is clicked. Only o\n\t\t//only one infowindow is allowed to be open\n\t\t\n\t})\n}", "function loadMyPlacesAll(event) {\n $.ajax({\n url: 'http://localhost:3000/myplacesall',\n type: 'GET',\n success: function (res) {\n for (var i in res) {\n //console.log(res[i].lon);\n addMyPlaceMarkerAll(res[i].lon, res[i].lat, res[i].place, res[i].descr);\n }\n }\n });\n}", "function findImagesToLoad() {\n\tsetLazyImagePositions.call(this);\n\tconst imagesToLoad = getImagesInView(this.images);\n\tloadImages.call(this, imagesToLoad);\n}", "componentDidMount() {\r\n window.initMap = this.initMap\r\n loadMapJS(\r\n \"https://maps.googleapis.com/maps/api/js?key=AIzaSyBE4q1RHUOzaCYgbbT8qV27MK9IJurUQF8&callback=initMap\"\r\n )\r\n let images = []\r\n this.state.myLocations.forEach((location) => {\r\n let url = \"\"\r\n const arg = { \"venue_id\": location.venue_id }\r\n foursquare.venues.getVenuePhotos(arg).then((res) => {\r\n url = `${res.response.photos.items[0].prefix}${res.response.photos.items[0].height}x${res.response.photos.items[0].width}${res.response.photos.items[0].suffix}`\r\n images.push({\"url\": url, \"title\": location.title})\r\n }).then(()=> {\r\n this.setState({ images })\r\n })\r\n })\r\n }", "function markersMapImageAddMarkers(result) {\n if (result == undefined) {\n return;\n }\n\n if (result.status === 'success') {\n imarkers = result.markers;\n\n $('#markersmap').empty();\n $('#markersmap').removeClass();\n $('#markersmap').attr('style', 'width: auto; height: 100%;')\n $('#markersmap').removeClass('gmap-map-active');\n $('#markersmap').addClass('leaflet-map-active');\n\n\n if (imarkersMap) {\n imarkersMap.off();\n imarkersMap.remove();\n }\n\n $('#map-form').show();\n\n imarkersMap = L.map('markersmap', {\n crs: L.CRS.Simple,\n minZoom: 1,\n maxZoom: 4,\n center: [0, 0],\n zoom: result.map.zoom ? result.map.zoom : 1,\n doubleClickZoom: false\n });\n\n var img = new Image();\n img.onload = function () {\n // https://kempe.net/blog/2014/06/14/leaflet-pan-zoom-image.html\n // calculate the edges of the image, in coordinate space\n var southWest = imarkersMap.unproject([0, this.height], imarkersMap.getMaxZoom() - 1);\n var northEast = imarkersMap.unproject([this.width, 0], imarkersMap.getMaxZoom() - 1);\n var bounds = new L.LatLngBounds(southWest, northEast);\n\n // igorbel: difference is here was full_path, now path. See also Map.php.\n var image = L.imageOverlay(result.map.image.path, bounds).addTo(imarkersMap);\n\n imarkersMap.setMaxBounds(bounds);\n }\n // igorbel: difference is here was full_path, now path. See also Map.php.\n img.src = result.map.image.path;\n\n defaultLocaleCode = result.defaultLocale.code;\n\n /**\n * Listen double clicks on map to update latitude (y) and longitude (x) inputs\n */\n imarkersMap.on('dblclick', function (e) {\n var coords = e.latlng;\n if (imarker) {\n imarker.setLatLng(coords);\n } else if (canCreateMarker()) {\n imarker = L.marker(coords, {\n icon: redIcon\n }\n ).addTo(imarkersMap);\n }\n\n var activeMarker = getActiveMarker()\n if (!activeMarker && !canCreateMarker()) {\n return;\n }\n\n //update coordinate inputs\n $('#marker_coord_y').val(coords.lat);\n $('#marker_coord_x').val(coords.lng);\n\n imarkers.forEach(function (item) {\n item.active = false;\n })\n if (activeMarker) {\n activeMarker.active = true;\n activeMarker.coord_x = coords.lng;\n activeMarker.coord_y = coords.lat;\n } else {\n imarkers.push({id: generateUniqueId(), 'active': true, 'coord_x': coords.lng, 'coord_y': coords.lat});\n lmarkers.push(imarker);\n }\n });\n\n $('#marker_coord_x').val('');\n $('#marker_coord_y').val('');\n $('#marker_title').val('');\n $('#marker_description').val('');\n $('#marker_external_url').val('');\n $('[name$=\"[marker_title]\"]').val('');\n $('[name$=\"[marker_description]\"]').val('');\n\n imarker = null;\n\n lmarkers = [];\n\n for (var i = 0; i < imarkers.length; i++) {\n let color = 'blu'\n if (imarkers[i].active) {\n color = 'red'\n }\n\n var lMarker = L.marker([parseFloat(imarkers[i].coord_y), parseFloat(imarkers[i].coord_x)],\n {\n title: imarkers[i].title,\n icon: imarkers[i].active ? redIcon : blueIcon\n }\n ).addTo(imarkersMap);\n\n lmarkers.push(lMarker);\n\n if (imarkers[i].active) {\n imarker = lMarker;\n\n $('#marker_coord_x').val(imarkers[i].coord_x);\n $('#marker_coord_y').val(imarkers[i].coord_y);\n\n $('#marker_title').val(imarkers[i].title);\n $('#marker_description').val(imarkers[i].description);\n $('#marker_title_'+result.defaultLocale.code).val(imarkers[i].title);\n $('#marker_description_'+result.defaultLocale.code).val(imarkers[i].description);\n if (imarkers[i].translations) {\n imarkers[i].translations.forEach(function (t) {\n let attributeData = JSON.parse(t.attribute_data);\n if (attributeData.title) {\n $('#marker_title_' + t.locale).val(attributeData.title)\n\n if (t.locale === result.defaultLocale.code) {\n $('#marker_title').val(attributeData.title);\n }\n }\n if (attributeData.description) {\n $('#marker_description_' + t.locale).val(attributeData.description)\n\n if (t.locale === result.defaultLocale.code) {\n $('#marker_description').val(attributeData.description);\n }\n }\n });\n }\n\n $('#marker_external_url').val(imarkers[i].external_url);\n }\n }\n\n }\n}", "function loadMap() {\n\n // Config options for the new map\n const mapOptions = {\n center : new google.maps.LatLng(35.683333, 139.766667),\n zoom : 6\n };\n\n // Initialize a new map object\n const map = new google.maps.Map(document.getElementById(\"map\"), mapOptions);\n\n // Retrieve markers array from JSON file\n fetch('../startbootstrap-bare-gh-pages/map.json')\n .then(res => res.json())\n .then(json => json.forEach(mapMarker => {\n\n // The JSON object is now stored in 'json' param\n image ='../CiaranMullen/image/rugbyImage.svg';\n\n new google.maps.Marker({\n map : map,\n position : new google.maps.LatLng(mapMarker.location[0], mapMarker.location[1]),\n title : mapMarker.name,\n\ticon : image\n });\n\n }));\n}", "function getPhotos() {\n imageCount = 0;\n ready = false;\n loader.hidden = false;\n if (random) {\n getRandomPhotos();\n } else {\n getSearchResults(query);\n }\n}", "function add_marker(pid, map, contentString) {\n\t$.getJSON(\"/photos/\"+pid, function(json) {\n\n var latlng = new google.maps.LatLng(json.latitude, json.longitude);\n \n var marker = new google.maps.Marker({\n position: latlng,\n map: map\n });\n \n marker.infowindow = new google.maps.InfoWindow({\n content: contentString,\n });\n \n // pops up an infowindow when you click on a marker\n google.maps.event.addListener(marker, 'click', function() {\n if(lastOpenedPhoto != null) lastOpenedPhoto.infowindow.close();\n marker.infowindow.open(map,marker);\n lastOpenedPhoto = marker;\n \n });\n \n // recenters map when you close an infowindow\n google.maps.event.addListener(marker.infowindow,'closeclick', function() {\n map.setCenter(new google.maps.LatLng(json.latitude, json.longitude));\n lastOpenedPhoto = null;\n });\n });\n}", "function loadMyPlaces(event) {\n $.ajax({\n url: 'http://localhost:3000/myplaces',\n type: 'GET',\n success: function (res) {\n for (var i in res) {\n //console.log(res[i].lon);\n addMyPlaceMarker(res[i].lon, res[i].lat, res[i].place, res[i].descr);\n }\n }\n });\n}", "fetchData() {\n this.service.getAllImages(function (data) {\n for (let i = 0; i < data.length; i++) {\n this.sideDrawer.addElements(data[i].images);\n this.map.drawMarker(data[i].images);\n }\n }.bind(this), function (error) {\n // handle error\n }.bind(this));\n }", "function initMarkers() {\n\tmodel.museumsData.forEach(function(museum, id) {\n \tvar position = museum.location;\n \tvar title = museum.name;\n \tvar favStatus = viewModel.getMuseum(id).fav();\n \tvar icon, icons;\n\n \tif (storageAvailable && favStatus) {\n \t\ticon = markerIcons.fav.def;\n \t\ticons = markerIcons.fav;\n \t} else {\n \t\ticon = markerIcons.def.def;\n \t\ticons = markerIcons.def;\n \t}\n\n \tvar marker = new google.maps.Marker({\n \tposition: position,\n \ttitle: title,\n \tanimation: google.maps.Animation.DROP,\n \t// storing index is useful for identifying individually passed\n \t// marker objects and their corresponding Museum objects\n \tid: id,\n \ticon: icon,\n \t// used to update and revert icon appearance when `selectMarker`\n \t// and `deselectMarker` are called\n \ticons: icons\n \t});\n\n \t// set marker click functionality\n \tmarker.addListener('click', function() {\n \tselectMarker(this);\n \t});\n\n \t// add marker to `markers`\n \tmarkers.push(marker);\n\t});\n\n\t// for adjusting viewport to contain all visible markers\n\tbounds = new google.maps.LatLngBounds();\n\n markers.forEach(function(marker) {\n \t// add marker to map (make visible)\n\t\tmarker.setMap(map);\n\t\tbounds.extend(marker.position);\n\t});\n\n\t// adjust viewport bounds\n\tmap.fitBounds(bounds);\n}", "function initMap() {\n\n // Create a map object\n map = new google.maps.Map(document.getElementById('map'), {\n center: {lat: 30.741482, lng: 76.768066},\n zoom: 13\n });\n // Create colors for the markers\n defaultIcon = makeMarkerIcon(\"0091ff\");\n highlightedIcon = makeMarkerIcon(\"FFFF24\");\n\n // Populate the Markers array\n for (var i = 0; i < initialList.length; i++) {\n var place = initialList[i].place;\n var position = {lat: initialList[i].lat, lng: initialList[i].lng};\n var category = initialList[i].category;\n var id = initialList[i].id;\n var marker = new google.maps.Marker({\n map: map,\n position: position,\n title: place,\n id: id,\n icon: defaultIcon,\n category: category,\n animation: google.maps.Animation.DROP\n });\n markers.push(marker);\n };\n // Get information about the markers from Forequare API.\n tempMarkers = tempMarkers.concat(markers);\n getMarkersData();\n}", "function LoadGEOJsonSources() {\n map.addSource('Scotland-Foto', {\n \"type\": \"geojson\",\n \"data\": \"https://daanvr.github.io/Schotland/geojson/Scotrip-FotoDataFile-RichOnly-Live.geojson\"\n });\n map.addSource('Scotland-Routes', {\n \"type\": \"geojson\",\n \"data\": \"https://daanvr.github.io/Schotland/geojson/Routes.geojson\"\n });\n\n var data = JSON.parse('{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-5.096936,57.149319]},\"properties\":{\"FileName\":\"IMG_8571\",\"type\":\"Foto\",\"FileTypeExtension\":\"jpg\",\"SourceFile\":\"/Users/daan/Downloads/Schotlandexpiriment/IMG_8571.JPG\",\"CreateDate\":\"2018-04-13\",\"CreateTime\":\"15:15:34\",\"Make\":\"Apple\",\"Model\":\"iPhoneSE\",\"ImageSize\":\"16382x3914\",\"Duration\":\"\",\"Altitude\":\"276\",\"URL\":\"https://farm1.staticflickr.com/823/26804084787_f45be76bc3_o.jpg\",\"URLsmall\":\"https://farm1.staticflickr.com/823/26804084787_939dd60ebc.jpg\"}}]}');\n map.addSource('SelectedMapLocationSource', {\n type: \"geojson\",\n data: data,\n });\n\n AddMapIcon(); // add img to be used as icon for layer\n}", "function fetchMarkers() {\n fetch('/markers').then(response => response.json()).then((markers) => {\n markers.forEach(\n (marker) => { \n createMarkerForDisplay(marker.lat, marker.lng, marker.content, marker.address);\n createListForDisplay(marker.content,marker.address)});\n});\n}", "function loadAllAudioMarkers() {\n\t$.ajax({\n\t\turl: baseURL,\n\t\tmethod: 'get',\n\t\tdataType: 'json'\n\t}).done(function (response) {\n\t\tloadMarkers(response)\n\t})\n}", "function updateCustomMarkers( event ) {\n // get map object\n var map = event.chart;\n\n // go through all of the images\n for ( var x in map.dataProvider.images ) {\n // get MapImage object\n var image = map.dataProvider.images[ x ];\n\n // check if it has corresponding HTML element\n if ( 'undefined' == typeof image.externalElement )\n image.externalElement = createCustomMarker( image );\n\n // reposition the element accoridng to coordinates\n var xy = map.coordinatesToStageXY( image.longitude, image.latitude );\n image.externalElement.style.top = xy.y + 'px';\n image.externalElement.style.left = xy.x + 'px';\n }\n}", "function loadMarkers(map){\n\t\n\t//console.log('loadMarkers '+filterCat);\t\n\t\t\n\t// Params : suppress_filters | post_type | posts_per_page | post_status\n\tif(windowW >= bpSmall){\n\t\t// Load all markers\n\t\tvar str = 'action=get_json_map&category='+filterCat;\n\t}else{\n\t\t// Mobil version\n\t\tvar str = 'action=get_json_map&category='+filterCat+'&posts_per_page=6';\n\t}\n\t\n\t$.ajax({\n type: 'POST',\n dataType: 'JSON',\n url: ajax_object.ajax_url,\n data: str,\n success: function(data){\t\t\t\t\n\t\t\taddMakers(map, data);\t\t\t\n\t\t\t//$('#map').removeClass('loader');\t\t\t\n },\n error : function(jqXHR, textStatus, errorThrown) {\n console.log(jqXHR + ' :: ' + textStatus + ' :: ' + errorThrown);\n }\n\n });\n return false; \n\t\n}", "function loadMaps() {\n\tjQuery.getCachedScript('/js/egeoxml.js');\n\tjQuery.getCachedScript('/js/labeledmarker.js').done(function() {\n\t\tloadFindABranchModal();\n\t});\n}", "function loadPin() {\n $container.imagesLoaded(function(){\n $container.isotope({\n itemSelector: '.box'\n });\n });\n // Load all the buttons that goes onto the pins\n pageLoad();\n }", "function drawMarkers(canvas) {\n var points = imageSet.images[currentImageIndex].points;\n var ctx = canvas.getContext('2d');\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.drawImage(img, 0, 0);\n \n for (var i = 0; i < points.length; i++) {\n drawMarker(ctx, points[i]);\n } \n drawPointList();\n}", "function presentMap() {\n if (tracksDoneLoading()) {\n hideLoader();\n fitMapBounds();\n loadPhotos();\n }\n }", "function getPhotos(callback) {\t\n\t\tvar requestObj = new XMLHttpRequest();\n\t\trequestObj.addEventListener(\"load\", function() {\n\t\t\tvar rawPhotos = requestObj.responseText.split('\\n');\n\n\t\t\t//convert raw to new photos\n\t\t\tphotos = []\n\t\t\tfor(var i = 0; i < rawPhotos.length; i++) {\n\t\t\t\tif(rawPhotos[i].length > 0)\n\t\t\t\t\tphotos.push(rawPhotos[i]);\n\t\t\t}\n\t\t\tcallback();\n\t\t});\n\t\trequestObj.overrideMimeType('text/xml');\n\t\trequestObj.open(\"GET\", folder + \"/\" + metaFile);\n\t\trequestObj.send();\n\t}", "function setupInfoWindow() {\n var marker, photoUrl;\n for (var i = 0; i < markers.length; i++) {\n markers[i].infoWindow = new google.maps.InfoWindow();\n markers[i].photoUrl = photos[i];\n markers[i].addListener('click', function (marker) {\n return function () {\n toggleBounce(marker);\n populateInfoWindow(marker);\n }\n\n }(markers[i]));\n markers[i].addListener('mouseover', function (marker) {\n return function () {\n marker.setIcon(highlightedIcon);\n }\n\n }(markers[i]));\n markers[i].addListener('mouseout', function (marker) {\n return function () {\n marker.setIcon(defaultIcon);\n }\n }(markers[i]));\n }\n // Apply bindings after map as been loaded and the images have been received.\n ko.applyBindings(new PlaceViewModal());\n}", "function showMarkers() {\n setMapOnAll(map);\n \n }", "function createMarkers() {\n // Creates marker cluster group to aggregate markers neatly when map user zooms out\n var markerClusters = L.markerClusterGroup();\n\n // Loops through data arrays\n for (var i = 0; i < 11; i++) {\n // Declares string variable to hold icon URLs\n var iconURL = \"\";\n // Extracts attributes needed to define markers\n var lat = coordinates[i][1];\n var lon = coordinates[i][0];\n var type = types[i];\n var name = names[i];\n var photo = photos[i];\n var url = urls[i];\n // Calls getIcon() to select icon based on pet type\n iconURL = getIcon(type);\n // Creates pawIcon object\n var pawIcon = L.icon({\n iconUrl: iconURL,\n iconSize: [60, 50]\n });\n\n // Adds a new marker to the cluster group and binds a pop-up\n markerClusters.addLayer(L.marker([lat, lon], { icon: pawIcon })\n .bindPopup(`<img src=${photo} width=\"300\" height=\"250\"<br><br><br><center><strong><a style=\"font-size: 20px\" href=${url} target=\"_blank\">Meet ${name}</a></strong></center>`));\n } // close for loop\n\n // Calls createMap function, passing in the marker layer group.\n createMap(markerClusters);\n }", "function fetchImages() {\n const numPhotos = 18;\n const graphicPromises = [];\n const baseUrl =\n \"https://arcgis.github.io/arcgis-samples-javascript/sample-data/featurelayer-collection/photo-\";\n\n for (let i = 1; i <= numPhotos; i++) {\n const url = baseUrl + i.toString() + \".jpg\";\n const graphicPromise = exifToGraphic(url, i);\n graphicPromises.push(graphicPromise);\n }\n\n return promiseUtils.eachAlways(graphicPromises);\n}", "function setMapOnAll(map) {\r\n //hace ciclo sobre los marcadores que hemos guardado en la variable markers\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n }\r\n}", "function showMarkers() {\n setAllMap(map);\n }", "function updateCustomMarkers(event) {\n // get map object\n var map = event.chart;\n\n // go through all of the images\n for (var x in map.dataProvider.images) {\n // get MapImage object\n var image = map.dataProvider.images[x];\n\n // check if it has corresponding HTML element\n if ('undefined' == typeof image.externalElement)\n image.externalElement = createCustomMarker(image);\n\n // reposition the element accoridng to coordinates\n var xy = map.coordinatesToStageXY(image.longitude, image.latitude);\n image.externalElement.style.top = xy.y + 'px';\n image.externalElement.style.left = xy.x + 'px';\n }\n}", "function updateCustomMarkers( event ) {\r\n // get map object\r\n var map = event.chart;\r\n\r\n // go through all of the images\r\n for ( var x in map.dataProvider.images ) {\r\n // get MapImage object\r\n var image = map.dataProvider.images[ x ];\r\n\r\n // check if it has corresponding HTML element\r\n if ( 'undefined' == typeof image.externalElement )\r\n image.externalElement = createCustomMarker( image );\r\n\r\n // reposition the element accoridng to coordinates\r\n var xy = map.coordinatesToStageXY( image.longitude, image.latitude );\r\n image.externalElement.style.top = xy.y + 'px';\r\n image.externalElement.style.left = xy.x + 'px';\r\n }\r\n}", "function updateCustomMarkers( event ) {\r\n // get map object\r\n var map = event.chart;\r\n\r\n // go through all of the images\r\n for ( var x in map.dataProvider.images ) {\r\n // get MapImage object\r\n var image = map.dataProvider.images[ x ];\r\n\r\n // check if it has corresponding HTML element\r\n if ( 'undefined' == typeof image.externalElement )\r\n image.externalElement = createCustomMarker( image );\r\n\r\n // reposition the element accoridng to coordinates\r\n var xy = map.coordinatesToStageXY( image.longitude, image.latitude );\r\n image.externalElement.style.top = xy.y + 'px';\r\n image.externalElement.style.left = xy.x + 'px';\r\n }\r\n}", "function setMapOnAll(map){\n for (var i = 0; i < markers.length; i++){\n markers[i].setMap(map);\n }\n \n }", "function updateCustomMarkers(event) {\n // get map object\n var map = event.chart;\n\n // go through all of the images\n for (var x in map.dataProvider.images) {\n // get MapImage object\n var image = map.dataProvider.images[ x ];\n\n // check if it has corresponding HTML element\n if ('undefined' == typeof image.externalElement)\n image.externalElement = createCustomMarker(image);\n\n // reposition the element accoridng to coordinates\n var xy = map.coordinatesToStageXY(image.longitude, image.latitude);\n image.externalElement.style.top = xy.y + 'px';\n image.externalElement.style.left = xy.x + 'px';\n }\n }", "function updateCustomMarkers (event) {\n // get map object\n var map = event.chart;\n // go through all of the images\n for( var x in map.dataProvider.images) {\n // get MapImage object\n var image = map.dataProvider.images[x];\n // check if it has corresponding HTML element\n if ('undefined' == typeof image.externalElement)\n image.externalElement = createCustomMarker(image);\n // reposition the element accoridng to coordinates\n var xy = map.coordinatesToStageXY(image.longitude, image.latitude);\n image.externalElement.style.top = xy.y + 'px';\n image.externalElement.style.left = xy.x + 'px';\n }\n }", "function updateCustomMarkers( event ) {\n // get map object\n var map = event.chart;\n\n // go through all of the images\n for ( var x in map.dataProvider.images ) {\n // get MapImage object\n var image = map.dataProvider.images[ x ];\n\n // check if it has corresponding HTML element\n if ( 'undefined' == typeof image.externalElement )\n image.externalElement = createCustomMarker( image );\n\n // reposition the element accoridng to coordinates\n var xy = map.coordinatesToStageXY( image.longitude, image.latitude );\n image.externalElement.style.top = xy.y + 'px';\n image.externalElement.style.left = xy.x + 'px';\n // image.externalElement.style.top = map.latitudeToY( image.latitude ) + 'px';\n // image.externalElement.style.left = map.longitudeToX( image.longitude ) + 'px';\n }\n }", "function showMarkers() {\r\n setMapOnAll(map);\r\n }", "function loadMarkers() {\n map.markers = map.markers || []\n downloadUrl(xmlUrl, function(data) {\n var xml = data.responseXML;\n // find the xml and loop throuh it to find each element \n markers = xml.documentElement.getElementsByTagName(\"location\");\n for (var i = 0; i < markers.length; i++) {\n var name = markers[i].children[0].innerHTML;\n var address = markers[i].children[1].innerHTML;\n var point = new google.maps.LatLng(\n parseFloat(markers[i].children[2].innerHTML),\n parseFloat(markers[i].children[3].innerHTML));\n var html = \"<div class='infowindow'><b>\" + name + \"</b> <br/>\" + address+'<br/></div>';\n var marker = new google.maps.Marker({\n map: map,\n position: point,\n title: name\n });\n map.markers.push(marker);\n bindInfoWindow(marker, map, infoWindow, html);\n }\n });\n}", "function preload() {\n mapimg = loadImage('https://api.mapbox.com/styles/v1/mapbox/dark-v9/static/' +\n clat + ',' + clon + ',' + zoom + '/' +\n ww + 'x' + hh +\n '?access_token=pk.eyJ1IjoiY29kZWxheCIsImEiOiJjajB4YW85ZDAwMDZqMnFvMjV3aTJhcXBjIn0.BVg7IY6eSobwp413mNf6TQ');\n // earthquakes = loadStrings('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.csv');\n earthquakes = loadStrings('http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv');\n\n\n}", "function setMarkers(location) { // this also can be changed\n\tvar defaultIcon = makeMarkerIcon('0091ff');\n\tvar highlightedIcon = makeMarkerIcon('FFFF24');\n\tfor(i=0; i<location.length; i++) {\n\t\tlocation[i].holdMarker = new google.maps.Marker({\n\t\t\t position: new google.maps.LatLng(location[i].lat, location[i].lng),\n\t\t\t map: map,\n\t\t\t title: location[i].title,\n\t\t\t icon: defaultIcon,\n\t\t\t id: i\n\t\t });\n\t\t //function to place google street view images within info windows\n\t\t determineImage();\n\t\t //Binds infoWindow content to each marker\n\t\t location[i].contentString = '<img src=\"' + streetViewImage +\n\t\t '\" alt=\"Street View Image of ' + location[i].title + '\"><br><hr style=\"margin-bottom: 5px\"><strong>' +\n\t\t location[i].title + '</strong><br><p>' +\n\t\t location[i].streetAddress + '<br>' +\n\t\t location[i].cityAddress + '<br></p><a class=\"web-links\" href=\"http://' + location[i].url + '\" target=\"_blank\">' + location[i].url + '</a>';\n\t\t var infowindow = new google.maps.InfoWindow({\n\t\t\t content: markers[i].contentString\n\t\t });\n\t\t //Click marker to view infoWindow\n\t\t //zoom in and center location on click\n\t\t new google.maps.event.addListener(location[i].holdMarker, 'click', (function(marker, i) {\n\t\t\t return function() {\n\t\t\t\t infowindow.setContent(location[i].contentString);\n\t\t\t\t infowindow.open(map,this);\n\t\t\t\t var windowWidth = $(window).width();\n\t\t\t\t if(windowWidth <= 1080) {\n\t\t\t\t\t map.setZoom(14);\n\t\t\t\t } else if(windowWidth > 1080) {\n\t\t\t\t\t map.setZoom(16);\n\t\t\t\t }\n\t\t\t\t map.setCenter(marker.getPosition());\n\t\t\t\t location[i].picBoolTest = true;\n\t\t\t };\n\t\t })(location[i].holdMarker, i));\n\t\t //Click nav element to view infoWindow\n\t\t //zoom in and center location on click\n\t\t var searchNav = $('#nav' + i);\n\t\t searchNav.click((function(marker, i) {\n\t\t\t return function() {\n\t\t\t\t infowindow.setContent(location[i].contentString);\n\t\t\t\t infowindow.open(map,marker);\n\t\t\t\t map.setZoom(16);\n\t\t\t\t map.setCenter(marker.getPosition());\n\t\t\t\t location[i].picBoolTest = true;\n\t\t\t };\n\t\t })(location[i].holdMarker, i));\n\t }\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n }", "function showHotelOverlays() {\n if (markersArray) {\n for (var i in markersArray) {\n markersArray[i].setMap(gmap);\n }\n }\n}", "function loadIconImages() {\r\n\r\n\tvar gallery_container = d3.select('.map-gallery-container');\r\n\r\n\t// append div for origin icon image\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test1').append('img').attr('src',\"test1\\\\test1.png\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test2').append('img').attr('src',\"test2\\\\test2.jpg\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test3').append('img').attr('src',\"test3\\\\test3.jpg\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test4').append('img').attr('src',\"test4\\\\test4.jpg\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test5').append('img').attr('src',\"test5\\\\test5.png\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test6').append('img').attr('src',\"test6\\\\test6.png\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test7').append('img').attr('src',\"test7\\\\test7.png\");\r\n\tgallery_container.append('div').attr('class', 'map_icon').attr('id', 'test8').append('img').attr('src',\"test8\\\\test8.png\");\r\n\t\r\n\tgallery_container.selectAll('.map_icon').on(\"click\", redirect);\r\n\r\n}", "function showMarkers() {\r\n setMapOnAll(map);\r\n }", "function initMarkers() {\n $.get(\"getMarkers\", function(markers) {\n for (var i = 0; i < markers.length; i++) {\n initMarkersHelper(markers[i]);\n }\n });\n}", "function GetPhotosForLocation(res,Latitude,Longitude, pageNumber){\n\t\tvar photoLinks = new Array();\n\t\tvar flickrObject = flickrHelper.initialiseFlickr();\n\n\t\tvar Flickr = flickrObject.Flickr;\n\t\tvar flickrOptions = flickrObject.flickrOptions;\n\t\tif(pageNumber === undefined || pageNumber === null){\n\t\t\tpageNumber = 1;\n\t\t}\n\t\telse{\n\t\t\tpageNumber = parseInt(pageNumber) + 1;\n\t\t}\n\t\tFlickr.tokenOnly(flickrOptions, function(error, flickr) {\n\t\tflickr.photos.search({\n\t\t lat : Latitude,\n\t\t lon : Longitude,\n\t\t accuracy : 11,\n\t\t per_page: flickrHelper.FlickrPageSize,\n\t\t page : pageNumber\n\t\t}, function(err, result) {\t\t\t\t\n\t\t\tvar photos = result[\"photos\"];\n\t \t\tphotoLinks = flickrHelper.ConstructPhotoLinksFromAPI(photos[\"photo\"]); \t\n\t\t\tres.render('index', { photoLinks : photoLinks, pageNumber : pageNumber, Latitude : Latitude, Longitude : Longitude }); \t\t\n\t\t});\n\t});\n\t}", "function showMarkers() {\n setMapOnAll(map);\n }", "function showMarkers() {\n setMapOnAll(map);\n }", "function setMapOnAll(map) {\n for (var i = 0; i < data_markers.length; i++) {\n data_markers[i].setMap(map);\n }\n}", "loadAllCatchments() {\n\t\tGoogleMaps.load((google) => {\t\t\n\t\t\tthis.kmlLayer = new google.maps.KmlLayer({\n\t\t\t\turl: this.catchments.all,\n\t\t\t\tpreserveViewport: true\n\t\t\t});\n\n\t\t\tthis.kmlLayer.setMap(this.map);\n\t\t});\t\t\n\t}", "function initMultipleMapData(){\n\n\tfor(var index = 0; index < locationPratian.length; index++){\n\t\tvar location = new google.maps.LatLng(locationPratian[index].locInitLat, locationPratian[index].locInitLng);\n\t\tvar map = new google.maps.Map(document.getElementById('map' + index), {\n\t\t\tcenter: location,\n\t\t\tzoom: mapZoomLevel,\n\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP\n\t\t});\n\t\tcreateInitialMarker(index, map);\n\t}\n}", "function showMarkers() {\n setMapOnAll(map);\n }", "function initializeMarker(locations){\t\n\n window.map = new google.maps.Map(document.getElementById('google_map_wrap'), {\n mapTypeId: google.maps.MapTypeId.ROADMAP,\n scrollwheel: false\n //styles: [ {stylers: [ { \"saturation\":-100 }, { \"lightness\": 0 }, { \"gamma\": 0.5 }]}]\n });\n \n var infowindow = new google.maps.InfoWindow();\n\n var bounds = new google.maps.LatLngBounds();\n\n for (i = 0; i < locations.length; i++) {\n \t \t \n if ( $(\"#map_marker\").exists() ){\n \tvar image=upload_url+\"/\"+$(\"#map_marker\").val(); \n \tmarker = new google.maps.Marker({\n\t position: new google.maps.LatLng(locations[i][1], locations[i][2]),\n\t map: map ,\n\t icon:image\n\t });\n } else {\n\t marker = new google.maps.Marker({\n\t position: new google.maps.LatLng(locations[i][1], locations[i][2]),\n\t map: map \n\t });\n }\n\n bounds.extend(marker.position);\n\n google.maps.event.addListener(marker, 'click', (function (marker, i) {\n return function () {\n infowindow.setContent(locations[i][0]);\n infowindow.open(map, marker);\n }\n })(marker, i));\n }\n\n map.fitBounds(bounds);\n\n var listener = google.maps.event.addListener(map, \"idle\", function () {\n map.setZoom(16);\n google.maps.event.removeListener(listener);\n });\n}", "function setMarkers(map) {\n\n // defines the clickable region of the icon\n // no real use yet\n // var shape = {\n // coords: [1, 1, 1, 20, 18, 20, 18, 1],\n // type: 'poly'\n // };\n\n for (var i=0; i<pins.length; i++) {\n // object (one pin)\n var pin = pins[i];\n\n var status = pin.fields.status;\n\n if (status === 'Barrier')\n var url = '/static/img/map-marker-barrier.png';\n else if (status === 'In Progress')\n var url = '/static/img/map-marker-in-progress.png';\n else if (status === 'Resolved')\n var url = '/static/img/map-marker-resolved.png';\n else if (status === 'Best Practice')\n var url = '/static/img/map-marker-best-practice.png';\n else\n var url = '/static/img/map-marker.png';\n\n var image = {\n url: url\n // size: new google.maps.Size(20, 32),\n // origin: new google.maps.Point(0, 0),\n // anchor: new google.maps.Point(0, 32)\n };\n\n if (pin.fields.address != null)\n var address = pin.fields.address;\n else\n var address = '';\n\n if (pin.fields.date_updated != null)\n var date = pin.fields.date_updated;\n else\n var date = '';\n\n // data of a detailed window\n var contentString = '<div id=\"content\" style=\"color: black\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1 id=\"firstHeading\" class=\"firstHeading\">' + pin.fields.tag + '</h1>'+\n '<div id=\"bodyContent\">'+\n '<div><b>Status: </b>'+ status +'</div>'+\n '<div><b>Description: </b>'+ pin.fields.description +'</div>'+\n '<div><b>Address: </b>'+ address +'</div>'+\n '<div><b>Date created: </b>'+ pin.fields.date_created.slice(0,10) + \" \" + pin.fields.date_created.slice(11,19) +'</div>'+\n '<div><b>Date updated: </b>'+ date.slice(0,10) + \" \" + date.slice(11,19) +'</div>'+\n '<div><a href=\"/pins/' + (i+1) + '\">See more</a>' +\n '</div>'+\n '</div>';\n\n var infowindow = new google.maps.InfoWindow({\n content: contentString,\n maxWidth: 450\n });\n\n // creating the marker\n var marker = new google.maps.Marker({\n position: {\n lat: pin.fields.location_latitude, \n lng: pin.fields.location_longitude\n },\n map: map,\n icon: image,\n infowindow: infowindow,\n // shape: shape,\n // title: pin[0],\n zIndex: i // determines which pin is on top if they overlap\n });\n\n // listener for clicking on a pin\n marker.addListener('click', function() {\n this.infowindow.open(map, this);\n });\n\n\n }\n}", "function setMapOnAll(map) {\n for(let i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n } \n}", "function setMapOnAll(map) {\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n }\r\n}", "function showMarkers() {\n setAllMap(map);\n}", "function showMarkers() {\n setAllMap(map);\n}", "function showMarkers() {\n setAllMap(map);\n}", "function markerTest() {\n $.getJSON(\"http://localhost:9000\" + \"/getTowers\", function (marker){\n $.each(marker,function(i, mark) {\n\n\n var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';\n var addmark = new google.maps.Marker({\n position: loadpos = {\n lat: mark.latCoordDD,\n lng: mark.longCoordDD\n },\n map: map,\n icon: iconBase + 'schools_maps.png'})\n addmark.setPosition(loadpos);\n })\n})}", "function showMarkers() {\n setAllMap(map);\n}", "function createMarkers(fetchedData, map, imageName, id, file) {\n const img = new Image(50, 50);\n img.onerror = console.error;\n img.src = file;\n img.onload = () =>\n map.addImage(imageName, img, { pixelRatio: window.devicePixelRatio });\n\n if (!map.getLayer(id)) {\n map.addLayer({\n id: id,\n type: \"symbol\",\n source: {\n type: \"geojson\",\n data: {\n type: \"FeatureCollection\",\n features: fetchedData,\n },\n },\n layout: {\n \"icon-image\": imageName,\n \"icon-size\": 1,\n \"icon-allow-overlap\": true,\n },\n });\n }\n}", "function setMapOnAll(map) {\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n }\r\n}", "function setMapOnAll(map) {\r\n for (var i = 0; i < markers.length; i++) {\r\n markers[i].setMap(map);\r\n }\r\n}", "function showMarkers() {\n setMapOnAll(map);\n }", "function setMarkers(map) {\n\n var image = {\n url: 'images/flag.png',\n /* This marker is 20 pixels wide by 32 pixels high. */\n size: new google.maps.Size(20, 32),\n /* The origin for this image is (0, 0). */\n origin: new google.maps.Point(0, 0),\n /* The anchor for this image is the base of the flagpole at (0, 32). */\n anchor: new google.maps.Point(0, 32)\n };\n /* Shapes define the clickable region of the icon. The type defines an HTML\n <area> element 'poly' which traces out a polygon as a series of X,Y points.\n The final coordinate closes the poly by connecting to the first coordinate. */\n var shape = {\n coords: [1, 1, 1, 20, 18, 20, 18, 1],\n type: 'poly'\n };\n for (var i = 0; i < localListing[selectedCity][selectedCategory].length; i++) {\n var localList = localListing[selectedCity][selectedCategory][i];\n\n /* Add the circle for this city to the map. */\n var cityCircle = new google.maps.Circle({\n strokeColor: '#00FF00',\n strokeOpacity: 0.2,\n strokeWeight: 2,\n fillColor: '#0000FF',\n fillOpacity: 0.1,\n map: map,\n center: citymap[selectedCity].center,\n radius: Math.sqrt(citymap[selectedCity].population) * 7\n });\n\n cityCircles.push(cityCircle);\n\n /* InfoWindow content */\n var content = '<div id=\"iw-container\">' +\n '<div class=\"iw-title\">' + localList[0] + '</div>' +\n '<div class=\"iw-content\">' +\n '<div class=\"iw-subTitle\">Details</div>' +\n '<img src=\"images/listing_image.jpg\" alt=\"'+localList[0]+'\" height=\"115\">' +\n '<p>' + localList[3] + '</p>' +\n '<div class=\"iw-subTitle\">Contacts</div>' +\n '<p>' + selectedCity + '<br>' +\n '<br>Phone. +91 1800 320 600<br>e-mail: mail@mail.com<br></p>' +\n '</div>' +\n '<div class=\"iw-bottom-gradient\"></div>' +\n '</div>';\n\n\n infowindow = new google.maps.InfoWindow({\n content: content,\n maxWidth: 350\n });\n var marker = new google.maps.Marker({\n position: {\n lat: localList[1],\n lng: localList[2]\n },\n map: map,\n icon: image,\n shape: shape,\n title: localList[0],\n zIndex: localList[4]\n });\n\n infoWindows.push(infowindow)\n markers.push(marker);\n (function(infowindow, marker) {\n marker.addListener('click', function() {\n infowindow.open(map, marker);\n });\n })(infowindow, marker);\n\n /*\n START INFOWINDOW CUSTOMIZE.\n The google.maps.event.addListener() event expects\n the creation of the infowindow HTML structure 'domready'\n and before the opening of the infowindow, defined styles are applied.\n */\n google.maps.event.addListener(infowindow, 'domready', function() {\n /* Reference to the DIV that wraps the bottom of infowindow */\n\n var iwOuter = document.getElementsByClassName(\"gm-style-iw\");\n for (var i = 0; i < iwOuter.length; i++) {\n iwOuter[i].previousSibling.style.display = \"none\";\n }\n });\n }\n }", "function showMarkers() {\n\n setAllMap(map);\n\n}", "function setMarkers(map, locations, marker_url) {\n var markers = [];\n var image = new google.maps.MarkerImage(\n marker_url,\n null,\n null,\n null,\n new google.maps.Size(39, 48)\n );\n for (var i = 0; i < locations.length; i++) {\n var point = locations[i];\n var myLatlng = new google.maps.LatLng(point[0], point[1]);\n var marker = new google.maps.Marker({\n position: myLatlng,\n map: map,\n icon: image,\n title: point[3].head,\n zIndex: point[2]\n });\n marker.infoContent = point[3];\n markers.push(marker);\n }\n\n return markers;\n }", "function loadImages(data) {\n $('.gif-wrapper').empty();\n var temp = JSON.parse(data);\n for (var i = 0; i < temp.length; i += 1) {\n $('.gif-wrapper').append('<img src=\"' + temp[i].url + '\">');\n }\n }", "function loadIconImages(data) {\n\n\tvar gallery_container = d3.select('.map-gallery');\n\n\t// clean previous elements\n\tgallery_container.selectAll(\"*\").remove();\n\t\n\t// append div for origin icon image\n\tvar icon_origin = gallery_container.selectAll('.origin-icon').data(originImage)\n\t.enter().append('div').attr('class', 'origin-icon');\n\t\n\t// append iamge element for div container\n\tgallery_container.selectAll('.origin-icon').append('img').attr('src',\n\t\t\tfunction(d) {\n\t\t\t\treturn d.Image_url;\n\t\t\t});\n\t\n\t// append div for icon images\n\tvar icon_maps = gallery_container.selectAll('.icon-image').data(data)\n\t\t\t.enter().append('div').attr('class', 'icon-image').style(\n\t\t\t\t\t'border-bottom-color', function(d) {\n\t\t\t\t\t\treturn bar_color(d.Score);\n\t\t\t\t\t});\n\n\t// append image element for div container\n\tgallery_container.selectAll('.icon-image').append('img').attr('src',\n\t\t\tfunction(d) {\n\t\t\t\treturn d.Image_url;\n\t\t\t});\n\n\t// add event listener for load original image when clicked or hovered\n\tgallery_container.selectAll('.icon-image').on(\"click\", loadOriginalImage);\n\tgallery_container.selectAll('.icon-image').on(\"mouseover\", hoverOnImage);\n\tgallery_container.selectAll('.icon-image').on(\"mouseout\", hoverOnImageEnd);\n\tgallery_container.selectAll('.origin-icon').on(\"click\", backToGallery);\n}", "function initMap(){\n var centerMap = {\n zoom:11,\n center:{lat:6.3500, lng:99.8000}\n};\nvar map = new google.maps.Map(document.getElementById('map'), centerMap);\n\n//details of multiple markers\nvar multipleMarkers = [\n {location:{lat:6.2956, lng:99.7228},\n content:'<h5> Cenang Beach </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"http://www.langkawi-info.com/cenang/\" role=\"button\">More Info</a></p>'+ ''+\n '<img class=\"my-3\" src=\"images/cenang.jpg\">'},\n {location:{lat:6.4544, lng:99.8219},\n content:'<h5> Tanjung Rhu </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"http://www.langkawi-info.com/tanjung-rhu/\" role=\"button\">More Info</a></p>'+''+\n '<img src=\"images/beach.jpg\">'},\n {location:{lat:6.3711, lng:99.6717},\n content:'<h5> Cable Car and Skybridge </h5>'+ '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"http://www.panoramalangkawi.com/\" role=\"button\">More Info</a></p>'+''+\n '<img src=\"images/skybridge.jpg\">'},\n {location:{lat:6.4030, lng:99.7127},\n content:'<h5> Crocodile Adventureland </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"http://www.crocodileadventureland.com/\"role=\"button\">More Info</a></p>'+ ''+\n '<img src=\"images/crocfarm.jpg\">' },\n {location:{lat:6.4340, lng:99.7082},\n content:'<h5> Temurun Waterfall </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"https://www.langkawi-insight.com/langkawi_0000ae.htm\" role=\"button\">More Info</a></p>'+ ''+\n '<img src=\"images/temurun.jpg\">'},\n {location:{lat:6.4059, lng:99.8597},\n content:'<h5> Geopark Mangrove </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"https://langkawimangrove.com/\" role=\"button\">More Info</a></p>'+ ''+\n '<img src=\"images/mangrovepark.jpg\">'},\n {location:{lat:6.3878, lng:99.8597},\n content:'<h5> Wildlife Park </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"https://langkawiwildlifepark.com/\" role=\"button\">More Info</a></p>'+ ''+\n '<img src=\"images/hornbill.jpg\">'},\n {location:{lat:6.3831, lng:99.6741},\n content:'<h5> Seven Wells Waterfall </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"https://www.langkawi-insight.com/langkawi_0000ac.htm\" role=\"button\">More Info</a></p>'+ ''+\n '<img src=\"images/waterfall.JPG\">'},\n {location:{lat:6.2877, lng:99.7286},\n content:'<h5> Langkawi Underwater World </h5>' + '<p class=\"text-center\"><a class=\"btn btn-light btn-sm\" href=\"https://www.langkawi-insight.com/langkawi_0000ac.htm\" role=\"button\">More Info</a></p>'+ ''+\n '<img src=\"images/Dugong.jpeg\">'}\n\n ];\n//loops through details of multiple markers \n for (var i =0; i < multipleMarkers.length; i++){\n addMarker(multipleMarkers[i]);\n }\n\n//function for addMarker to allow multiple markers on the map\nvar activeWindow;\n\nfunction addMarker(coords){\n var marker = new google.maps.Marker({\n position:coords.location,\n map:map,\n animation:google.maps.Animation.DROP,\n });\n\n if (coords.content){\n var infowindow = new google.maps.InfoWindow ({\n content:coords.content,\n maxWidth:300\n });\n\n//calling function with opening infowindow on click and closing infowindow on next click\n\n marker.addListener('click',function(){\n if (activeWindow){activeWindow.close();}\n infowindow.open(map, marker);\n activeWindow = infowindow;\n });\n\n }\n }\n}", "function searchPhotos() {\n\t\t\tflickrService.searchPhotos(self.searchText()).then(\n\t\t\t\t\tfunction(response) {\n\t\t\t\t\t\t// console.log(response.photos.photo);\n\t\t\t\t\t\tif (response.photos != undefined) {\n\t\t\t\t\t\t\tif (response.photos.photo.length > 0) {\n\t\t\t\t\t\t\t\ttotalPages = response.photos['pages'];\n\t\t\t\t\t\t\t\tif (temp != totalPages) {\n\t\t\t\t\t\t\t\t\tcreateOrUpdatePaginator(totalPages);\n\t\t\t\t\t\t\t\t\ttemp = totalPages;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttotalImages.splice(0, totalImages.length);\n\t\t\t\t\t\t\t\tself.images.removeAll();\n\t\t\t\t\t\t\t\ttotalImages.push(response.photos.photo);\n\t\t\t\t\t\t\t\tself.images(totalImages[0].splice(0,\n\t\t\t\t\t\t\t\t\t\timagesToShow));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},handleError);\n\t\t}", "function displayPhotos() {\n imagesLoaded = 0;\n totalImages = photosArray.length;\n // Run function for each object in photosArray\n photosArray.forEach((photo) => {\n // Create <a> to link to unsplash\n const $item = $(`<a href=\"${photo.links.html}\" target=\"_blank\"></a>`);\n\n // Create <img> for photo\n const $img = $(\n `<img src=\"${photo.urls.regular}\" alt=\"${photo.alt_description}\" title=\"${photo.alt_description}\" />`\n );\n\n // Event Listener, check when each is finished loading\n $img.on('load', imageLoaded);\n\n // Put <img> inside <a> then put both inside imageContainer element\n $item.append($img);\n $imageContainer.append($item);\n });\n }", "function load_images() {\n data.each(function(frame) {\n var imgs = []\n frame.images.each(function(imgstr) {\n var img = new Image(IMG_WIDTH, IMG_HEIGHT);\n img.src = \"/img/\" + imgstr;\n img.style.float = \"left\";\n imgs.push(img); \n });\n frame['imageobjs'] = imgs;\n }) \n }", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}", "function setMapOnAll(map) {\n for (var i = 0; i < markers.length; i++) {\n markers[i].setMap(map);\n }\n}" ]
[ "0.73248", "0.69554245", "0.69378304", "0.6654525", "0.65294784", "0.6458515", "0.6439537", "0.6413455", "0.63685834", "0.6358616", "0.63540405", "0.63523155", "0.63367736", "0.63350266", "0.62722754", "0.626461", "0.62502277", "0.6244922", "0.6225864", "0.6208893", "0.6208064", "0.6204393", "0.619018", "0.61573607", "0.61313075", "0.6104177", "0.61020195", "0.6090617", "0.60801727", "0.60797536", "0.6073086", "0.60723275", "0.60519814", "0.6041025", "0.6037454", "0.6036919", "0.6019577", "0.6017031", "0.6016561", "0.600646", "0.59981585", "0.5997366", "0.5996619", "0.59961563", "0.59960526", "0.5988269", "0.5988214", "0.5978273", "0.5978273", "0.59705484", "0.5966377", "0.5955543", "0.5947997", "0.5942392", "0.5939391", "0.59388244", "0.5932887", "0.5925756", "0.59247494", "0.592396", "0.5921101", "0.5918947", "0.59102523", "0.59098506", "0.59098506", "0.5907835", "0.5902062", "0.5900162", "0.58973736", "0.58938986", "0.5893334", "0.5891786", "0.5890579", "0.58882165", "0.58882165", "0.58882165", "0.5886878", "0.58850646", "0.58827055", "0.5881689", "0.5881689", "0.5880789", "0.587976", "0.5878127", "0.5877537", "0.58728087", "0.58616304", "0.58601433", "0.5859619", "0.58595127", "0.58524615", "0.58522284", "0.58522284", "0.58522284", "0.58522284", "0.58522284", "0.58522284", "0.58522284", "0.58522284", "0.58522284" ]
0.7686972
0
functions that translates the pmt coordinates into svg coorinates
function tpc_pos(array, coords){ try{ return(array_pos[array](coords)) } catch(error) { return(default_pos["tpc"]) } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "eventCoordsToSVGCoords(x, y) {\n const svg = this.svgSubjectArea;\n const newPoint = svg.createSVGPoint();\n newPoint.x = x;\n newPoint.y = y;\n const matrixForWindowCoordsToSVGUserSpaceCoords = this.getMatrixForWindowCoordsToSVGUserSpaceCoords();\n const pointforSVGSystem = newPoint.matrixTransform(matrixForWindowCoordsToSVGUserSpaceCoords);\n return pointforSVGSystem;\n }", "function createCoords(svgid,parameters) {\r\n\tthis.svgid = svgid;\r\n\tthis.id = svgid+'_coords';\r\n\tthis.svg = document.getElementById(svgid);\r\n\tthis.fontSize = parseFloat(getComputedStyle(this.svg).fontSize);\r\n\tlet rem = this.fontSize;\r\n\tlet re = new RegExp(\"rem\");\r\n\t\r\n\t\t// MARGINS\r\n\tlet margin = new Array();\r\n\tlet marginTop,marginRight,marginBottom,marginLeft;\t\r\n\tif( parameters['margin'] != undefined ) { margin = parameters['margin']; }\t\r\n\tmarginTop = re.test(margin[0]) ? parseFloat(margin[0])*rem : parseFloat(margin[0]);\r\n\tmarginRight = re.test(margin[1]) ? parseFloat(margin[1])*rem : parseFloat(margin[1]);\r\n\tmarginBottom = re.test(margin[2]) ? parseFloat(margin[2])*rem : parseFloat(margin[2]);\r\n\tmarginLeft = re.test(margin[3]) ? parseFloat(margin[3])*rem : parseFloat(margin[3]);\r\n\tmargin = [marginTop,marginRight,marginBottom,marginLeft];\r\n\tthis.margin = margin;\r\n\tthis.marginTop = marginTop; this.marginRight = marginRight; this.marginBottom = marginBottom; this.marginLeft = marginLeft;\r\n\t\r\n\t\t// svg area [min-u,max-v,width,height] of the plotBox\t\t\r\n\tthis.plotBox = [marginLeft,marginTop,this.svg.clientWidth-(marginRight+marginLeft),this.svg.clientHeight-(marginTop+marginBottom)];\r\n\t\t// svg coordinate Range\r\n\tthis.uMin = this.plotBox[0];\r\n\tthis.uMax = this.plotBox[0]+this.plotBox[2];\r\n\tthis.vMin = this.plotBox[1];\r\n\tthis.vMax = this.plotBox[1]+this.plotBox[3];\t\r\n \r\n\tthis.defineCoords(parameters);\r\n\t\r\n\t // define two special groups for this coordinate system\r\n var g1 = document.createElementNS('http://www.w3.org/2000/svg', 'g');\r\n var g2 = document.createElementNS('http://www.w3.org/2000/svg', 'g');\r\n\t\r\n /* this.g1.id = this.id+'_g1'; this.g2.id = this.id+'_g2'; */\r\n this.svg.g1 = g1; // default for plots\r\n this.svg.g2 = g2; // default for axes\r\n this.svg.appendChild(g2);\r\n this.svg.appendChild(g1);\r\n\t\r\n\tif( parameters['clip'] == true ) { this.plotObject('clip',{'x1':this.xMin,'x2':this.xMax,'y1':this.yMin,'y2':this.yMax}); }\r\n} // END function createCoords()", "toSVG() {\n if (this.geometryObject &&\n (\n this.geometryObject.geometryIsVisible === false ||\n this.geometryObject.geometryIsHidden === true ||\n this.geometryObject.geometryIsConstaintDraw === true\n )\n ) {\n return '';\n }\n\n let path = this.getSVGPath();\n\n let attributes = {\n d: path,\n stroke: this.strokeColor,\n fill: '#000',\n 'fill-opacity': 0,\n 'stroke-width': this.strokeWidth,\n 'stroke-opacity': 1, // toujours à 1 ?\n };\n\n let path_tag = '<path';\n for (let [key, value] of Object.entries(attributes)) {\n path_tag += ' ' + key + '=\"' + value + '\"';\n }\n path_tag += '/>\\n';\n\n let pointToDraw = [];\n if (app.settings.areShapesPointed && this.name != 'silhouette') {\n if (this.isSegment())\n pointToDraw.push(this.segments[0].vertexes[0]);\n if (!this.isCircle())\n this.segments.forEach(\n (seg) => (pointToDraw.push(seg.vertexes[1])),\n );\n }\n\n this.segments.forEach((seg) => {\n //Points sur les segments\n seg.divisionPoints.forEach((pt) => {\n pointToDraw.push(pt);\n });\n });\n if (this.isCenterShown) pointToDraw.push(this.center);\n\n let point_tags = pointToDraw.filter(pt => {\n pt.visible &&\n pt.geometryIsVisible &&\n !pt.geometryIsHidden\n }).map(pt => pt.svg).join('\\n');\n\n let comment =\n '<!-- ' + this.name.replace('é', 'e').replace('è', 'e') + ' -->\\n';\n\n return comment + path_tag + point_tags + '\\n';\n }", "function svgMoveTo(point) {\n return `M${point[0]},${point[1]}`;\n}", "function svg2xy(svgString, sliceDimensions) {\n\n //These 2 values ultimately need to come from the server AND get passed into the main function.\n // var sliceDimensions = {\n // width: 620,\n // height: 750\n // };\n // var svgString = $('#area').val();\n\n\n var svgConverter = new svgClass();\n\n //Convert raw SVG data to WKT format\n var wktString = svgConverter.SVGtoWKT.convert(svgString);\n //converts WKT data to [[x,y],[x,y]]\n var coordinates = wkt2xyCoordinates(wktString,sliceDimensions);\n\n //optional\n // drawPointsToCanvas(coordinates);\n return coordinates;\n}", "function creditCardSvg() {\n\t\tlet svgElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'svg');\n\t\tsvgElement.setAttribute('class','align-middle creditCardSvg');\n \tsvgElement.setAttribute('x','0px');\n \tsvgElement.setAttribute('y','0px');\n \tsvgElement.setAttribute('width','30');\n \tsvgElement.setAttribute('height','30');\n \tsvgElement.setAttribute('viewBox','0 0 80 80');\n \tsvgElement.setAttribute('fill','#000000');\n \t\n \tlet pathElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement.setAttribute('class','creditCardPath');\n \tpathElement.setAttribute('d','M 11 16 C 8.2504839 16 6 18.250484 6 21 L 6 59 C 6 61.749516 8.2504839 64 11 64 L 69 64 C 71.749516 64 74 61.749516 74 59 L 74 21 C 74 18.250484 71.749516 16 69 16 L 11 16 z M 11 18 L 69 18 C 70.668484 18 72 19.331516 72 21 L 72 26 L 8 26 L 8 21 C 8 19.331516 9.3315161 18 11 18 z M 8 30 L 72 30 L 72 59 C 72 60.668484 70.668484 62 69 62 L 11 62 C 9.3315161 62 8 60.668484 8 59 L 8 30 z M 12 35 A 1 1 0 0 0 11 36 A 1 1 0 0 0 12 37 A 1 1 0 0 0 13 36 A 1 1 0 0 0 12 35 z M 16 35 A 1 1 0 0 0 15 36 A 1 1 0 0 0 16 37 A 1 1 0 0 0 17 36 A 1 1 0 0 0 16 35 z M 20 35 A 1 1 0 0 0 19 36 A 1 1 0 0 0 20 37 A 1 1 0 0 0 21 36 A 1 1 0 0 0 20 35 z M 24 35 A 1 1 0 0 0 23 36 A 1 1 0 0 0 24 37 A 1 1 0 0 0 25 36 A 1 1 0 0 0 24 35 z M 28 35 A 1 1 0 0 0 27 36 A 1 1 0 0 0 28 37 A 1 1 0 0 0 29 36 A 1 1 0 0 0 28 35 z M 32 35 A 1 1 0 0 0 31 36 A 1 1 0 0 0 32 37 A 1 1 0 0 0 33 36 A 1 1 0 0 0 32 35 z M 36 35 A 1 1 0 0 0 35 36 A 1 1 0 0 0 36 37 A 1 1 0 0 0 37 36 A 1 1 0 0 0 36 35 z M 52 43 C 48.145666 43 45 46.145666 45 50 C 45 53.854334 48.145666 57 52 57 C 53.485878 57 54.862958 56.523344 55.996094 55.730469 A 7 7 0 0 0 60 57 A 7 7 0 0 0 67 50 A 7 7 0 0 0 60 43 A 7 7 0 0 0 55.990234 44.265625 C 54.858181 43.47519 53.483355 43 52 43 z M 52 45 C 52.915102 45 53.75982 45.253037 54.494141 45.681641 A 7 7 0 0 0 53 50 A 7 7 0 0 0 54.498047 54.314453 C 53.762696 54.74469 52.916979 55 52 55 C 49.226334 55 47 52.773666 47 50 C 47 47.226334 49.226334 45 52 45 z');\n \t\n \tsvgElement.appendChild(pathElement);\n \t\n \treturn svgElement;\n\t\t\n\t}", "function getTransform(which){\n\tvar hold=document.getElementById(which).getAttributeNS(null,'transform');\n\tvar retVal=new Array();\n\tretVal[0]=hold.substring((hold.search(/\\(/) + 1),hold.search(/,/));\t\t\t//x value\n\tretVal[1]=hold.substring((hold.search(/,/) + 1),hold.search(/\\)/));;\t\t//y value\n\treturn retVal;\n}", "toSVG(x1, x2) {\n this.svg_element = $(document.createElementNS(\"http://www.w3.org/2000/svg\", 'path')).attr(\"d\", this.pathParameters(x1, x2)).addClass(\"parabola_svg\")\n .attr({style:this.style});\n return (this.svg_element);\n }", "function findPolygonPointsCorrectPosition(line) {\n var lengthOfCathetusFirstTriangle = Math.sqrt(line.getLength() * line.getLength() - line.getPoints().firstPoint.getRadius() * line.getPoints().firstPoint.getRadius());\n var lengthOfCathetusSecondTriangle = Math.sqrt(line.getLength() * line.getLength() - line.getPoints().secondPoint.getRadius() * line.getPoints().secondPoint.getRadius());\n var ya, yb, xa, xb, ya2, yb2, xa2, xb2;\n var center = {\n x: line.getPoints().firstPoint.getPosition().x - svgOffset.left,\n y: line.getPoints().firstPoint.getPosition().y - svgOffset.top\n };\n var point = {\n x: line.getPoints().secondPoint.getPosition().x - svgOffset.left,\n y: line.getPoints().secondPoint.getPosition().y - svgOffset.top\n };\n var result = {\n xa: null,\n xb: null,\n ya: null,\n yb: null,\n xa2: null,\n xb2: null,\n ya2: null,\n yb2: null\n };\n var e = center.x - point.x;\n var c = center.y - point.y;\n var q = (lengthOfCathetusFirstTriangle * lengthOfCathetusFirstTriangle - line.getPoints().firstPoint.getRadius() * line.getPoints().firstPoint.getRadius() + center.y * center.y - point.y * point.y + center.x * center.x - point.x * point.x) / 2;\n var A = c * c + e * e;\n var B = (center.x * e * c - c * q - center.y * e * e) * 2;\n var C = center.x * center.x * e * e - 2 * center.x * e * q + q * q + center.y * center.y * e * e - line.getPoints().firstPoint.getRadius() * line.getPoints().firstPoint.getRadius() * e * e;\n var e2 = point.x - center.x;\n var c2 = point.y - center.y;\n var q2 = (lengthOfCathetusSecondTriangle * lengthOfCathetusSecondTriangle - line.getPoints().secondPoint.getRadius() * line.getPoints().secondPoint.getRadius() + point.y * point.y - center.y * center.y + point.x * point.x - center.x * center.x) / 2;\n var A2 = c2 * c2 + e2 * e2;\n var B2 = (point.x * e2 * c2 - c2 * q2 - point.y * e2 * e2) * 2;\n var C2 = point.x * point.x * e2 * e2 - 2 * point.x * e2 * q2 + q2 * q2 + point.y * point.y * e2 * e2 - line.getPoints().secondPoint.getRadius() * line.getPoints().secondPoint.getRadius() * e2 * e2;\n\n result.ya = (Math.sqrt(B * B - 4 * A * C) - B) / (2 * A);\n result.yb = (-Math.sqrt(B * B - 4 * A * C) - B) / (2 * A);\n result.xa = (q - result.ya * c) / e;\n result.xb = (q - result.yb * c) / e;\n result.ya2 = (Math.sqrt(B2 * B2 - 4 * A2 * C2) - B2) / (2 * A2);\n result.yb2 = (-Math.sqrt(B2 * B2 - 4 * A2 * C2) - B2) / (2 * A2);\n result.xa2 = (q2 - result.ya2 * c2) / e2;\n result.xb2 = (q2 - result.yb2 * c2) / e2;\n\n return result;\n}", "_transformedPoint(x, y) {\n let pt = this._svg.createSVGPoint()\n pt.x = x * this._pixelRatio()\n pt.y = y * this._pixelRatio()\n return pt.matrixTransform(this._transform.inverse())\n }", "function getAllSVGInfo (dirName, outputName, paddingValue = null, minify = false, curvePoints = 50) {\n // object that will hold all the relevant data\n let data = {}\n let promiseArray = []\n // reads directory and get all file names\n let filenames = fs.readdirSync(`input/${dirName}`)\n filenames.forEach(filename => {\n // Expects the character to be the file name without extension\n let character = filename.replace('.svg', '')\n // read file and get content\n let fileContent = fs.readFileSync(`./input/${dirName}/${filename}`, 'utf-8')\n // push svgson parsing to the promise array\n promiseArray.push(svgson.parse(fileContent))\n })\n Promise.all(promiseArray).then(svgs => {\n // include index in for each to associate with respective character\n svgs.forEach((svg, i) => {\n let charInfo = {}\n charInfo.layers = {}\n // add padding if passed in the parameters\n if (paddingValue) {\n let vB = svg.attributes.viewBox.split(' ')\n vB[0] = parseInt(vB[0]) - paddingValue\n vB[1] = parseInt(vB[1]) - paddingValue\n vB[2] = parseInt(vB[2]) + (paddingValue * 2)\n vB[3] = parseInt(vB[3]) + (paddingValue * 2)\n charInfo.viewBox = vB.join(' ')\n } else {\n charInfo.viewBox = svg.attributes.viewBox\n }\n svg.children[0].children.forEach(layer => {\n // creates a new node for each layer\n charInfo.layers[layer.attributes.id] = []\n layer.children.forEach(path => {\n let pathInfo = {}\n // round d to two decimals if minify is true\n if (minify) {\n pathInfo.d = pathManipulator(path.attributes.d).round(2).toString()\n } else {\n pathInfo.d = path.attributes.d\n }\n // get id from all paths\n pathInfo.id = path.attributes.id\n // only get start and end points, strokeWidth and total length from interactiveStrokes layer\n if (layer.attributes.id === 'interactiveStrokes') {\n let properties = pathProps.svgPathProperties(pathInfo.d)\n // gets parts from properties\n let lineParts = properties.getParts()\n pathInfo.strokeWidth = path.attributes['stroke-width']\n pathInfo.totalLength = properties.getTotalLength()\n pathInfo.startPoint = lineParts[0].start\n // gets curves to make comparison to drawing\n pathInfo.curve = getCurve(canvas.path(pathInfo.d), curvePoints)\n pathInfo.endPoint = lineParts[lineParts.length - 1].end\n }\n // splice the stroke information to be in the correct stroke order - according to svg id parameters\n charInfo.layers[layer.attributes.id].splice(parseInt(pathInfo.id.replace(/[^0-9]/g,'')) - 1, 0, pathInfo)\n })\n })\n // character will be the file name without extension\n let character = filenames[i].replace('.svg', '')\n data[character] = charInfo\n })\n // save smaller hard-to-read JSON for use and an easy-to-read one\n let readableOutput = JSON.stringify(data, null, 2)\n let output = JSON.stringify(data)\n fs.writeFileSync(`output/${outputName}.json`, output)\n console.log(`Saved ${outputName}.json!`)\n fs.writeFileSync(`output/readable${outputName}.json`, readableOutput)\n console.log(`Saved readable${outputName}.json!`)\n }).catch(err => console.log(err))\n}", "updateSVG(ind) {\n this.svg_element.attr(\"d\", this.pathParameters(this.edge_left, this.edge_right));\n\n //Get parabola left and right IDs\n let pl = this.parab.left ? this.parab.left._ID : \"n/a\";\n let pr = this.parab.right ? this.parab.right._ID : \"n/a\";\n\n $(\"#parab-list #par\" + this._ID).text(\"Parabola ID: \" + this._ID + \", domain: [\" + Math.round(this.edge_left) + \", \" + Math.round(this.edge_right) + \"], index: \" + ind + \" -- L: \"+pl+\" R: \"+ pr);\n }", "getMatrixForWindowCoordsToSVGUserSpaceCoords() {\n const { transformationContainer } = this;\n return transformationContainer.getScreenCTM().inverse();\n }", "function trackTransforms(ctx){\n let svg = document.createElementNS(\"http://www.w3.org/2000/svg\",'svg');\n let xform = svg.createSVGMatrix();\n ctx.getTransform = function(){ return xform; };\n\n let savedTransforms = [];\n let save = ctx.save;\n ctx.save = function(){\n savedTransforms.push(xform.translate(0,0));\n return save.call(ctx);\n };\n\n let restore = ctx.restore;\n ctx.restore = function(){\n xform = savedTransforms.pop();\n return restore.call(ctx);\n };\n\n let scale = ctx.scale;\n ctx.scale = function(sx,sy){\n xform = xform.scaleNonUniform(sx,sy);\n return scale.call(ctx,sx,sy);\n };\n\n let rotate = ctx.rotate;\n ctx.rotate = function(radians){\n xform = xform.rotate(radians*180/Math.PI);\n return rotate.call(ctx,radians);\n };\n\n let translate = ctx.translate;\n ctx.translate = function(dx,dy){\n xform = xform.translate(dx,dy);\n return translate.call(ctx,dx,dy);\n };\n\n let transform = ctx.transform;\n ctx.transform = function(a,b,c,d,e,f){\n var m2 = svg.createSVGMatrix();\n m2.a=a; m2.b=b; m2.c=c; m2.d=d; m2.e=e; m2.f=f;\n xform = xform.multiply(m2);\n return transform.call(ctx,a,b,c,d,e,f);\n };\n\n let setTransform = ctx.setTransform;\n ctx.setTransform = function(a,b,c,d,e,f){\n xform.a = a;\n xform.b = b;\n xform.c = c;\n xform.d = d;\n xform.e = e;\n xform.f = f;\n return setTransform.call(ctx,a,b,c,d,e,f);\n };\n\n let pt = svg.createSVGPoint();\n ctx.transformedPoint = function(x,y){\n pt.x=x; pt.y=y;\n return pt.matrixTransform(xform.inverse());\n }\n}", "function transform(d, i) {\n d = new google.maps.LatLng(d.geometry.coordinates[1], d.geometry.coordinates[0]);\n d = projection.fromLatLngToDivPixel(d);\n\n node_coord[i + \",\" + 0] = d.x - padding;\n node_coord[i + \",\" + 1] = d.y - padding;\n\n return d3.select(this)\n .style(\"left\", (d.x - padding) + \"px\")\n .style(\"top\", (d.y - padding) + \"px\");\n }", "function drawPoints() {\n // filter data\n var filteredData = DATA.filter(function(o) {\n return filter.indexOf(o[\"COG\"]) !== -1\n });\n\n var svg = d3.select(\"svg\");\n var chart = d3.select(\"svg g.chart\");\n\n var margin = {\n top: (svg.attr(\"height\") * 0.02),\n right: (svg.attr(\"width\") * 0.05),\n bottom: (svg.attr(\"height\") * 0.08),\n left: (svg.attr(\"width\") * 0.12)\n }\n\n if (svg.attr(\"width\") <= mobile_threshold) {\n margin.bottom = (svg.attr(\"height\") * 0.17);\n\n margin.left = d3.min([(svg.attr(\"width\") * 0.31), 82]);\n }\n\n var xScale = d3.scale.linear()\n .range([0, chart.attr(\"width\")])\n .domain(d3.extent(DATA.map(function(o) { return o[\"Municipal Gap($ per capita)\"]; })))\n .nice();\n\n var yScale = d3.scale.linear()\n .range([margin.top, chart.attr(\"height\")])\n .domain([\n d3.max(DATA.map(function(o) { return o[\"State Nonschool Grants ($ per capita)\"]; })),\n 0\n ])\n .nice();\n\n var pointGroups = chart.selectAll(\"g.point\")\n .data(filteredData, function(d) {\n return d[\"Municipality\"];\n });\n\n var pointSize = 20;\n\n // if (svg.attr(\"width\") <= mobile_threshold) {\n // pointSize = 25;\n // }\n\n pointGroups.enter()\n .append(\"g\")\n .classed(\"point\", true)\n .datum(function(d) { return d; })\n .each(function(pointData, i) {\n d3.select(this).append(\"path\")\n .attr(\"class\", function(d) {\n // get color# css class from color scale using d[\"COG\"]\n return colorScale(d[\"COG\"]);\n })\n .attr(\"d\", d3.svg.symbol().type(\"cirlce\").size(pointSize)) // should size be based on chart size?\n .attr(\"transform\", function(d) {\n var tx = xScale(d[\"Municipal Gap($ per capita)\"]),\n ty = yScale(d[\"State Nonschool Grants ($ per capita)\"]);\n return \"translate(\" + tx + \", \" + ty +\")\";}\n );\n\n /* Register hover events */\n d3.select(this).on(\"mouseover\", function() {\n d3.select(this)\n .classed(\"highlight\", true);\n\n d3.selectAll(\"div#popup\")\n .classed(\"visible\", true)\n .selectAll(\"p\")\n .data([\n {\n label: \"\",\n value: pointData[\"Municipality\"]\n },\n {\n label: \"COG\",\n value: pointData[\"COG\"]\n },\n {\n label: \"Percentage of Gap Filled by State Nonschool Grants\",\n value: percentFormat(pointData[\"Percentage of Municipal Gap Filled by State Nonschool Grants\"])\n }\n ])\n .enter()\n .append(\"p\")\n .html(function(d) {\n if (d.label != \"\") {\n return [\n [\"<b>\", \"</b>\"].join(d.label),\n d.value\n ].join(\": \"); \n } else {\n return d.value;\n }\n });\n })\n .on(\"mouseout\", function() {\n d3.select(this)\n .classed(\"highlight\", false);\n\n d3.selectAll(\"div#popup\")\n .classed(\"visible\", false);\n\n d3.selectAll(\"div#popup p\").remove();\n })\n })\n\n pointGroups.exit().remove()\n\n // console.log(filteredData)\n // console.log(filter)\n // console.log(DATA)\n // console.log(GEODATA)\n }", "function makecncsvgexport()\n{\n var c,d,x,y,x0,y0,pts,txt=\"\";\n getdefaults();\n var sfx=cutterwidth/(xmax-xmin);\n var sfy=cutterheight/(ymax-ymin);\n switch(originpos)\n {\n case 0: originx=0; originy=0; break; // Bottom left\n case 1: originx=0; originy=cutterheight; break; // Top left\n case 2: originx=cutterwidth; originy=0; break; // Bottom right\n case 3: originx=cutterwidth; originy=cutterheight; break; // Top right\n case 4: originx=cutterwidth/2; originy=cutterheight/2; break; // Middle\n }\n txt+='<?xml version=\"1.0\" encoding=\"utf-8\"?>\\r\\n';\n txt+='<svg id=\"gcodercncsvg\" width=\"'+cutterwidth+'px\" height=\"'+cutterheight+'px\" style=\"background-color:#FFFFFF\" version=\"1.1\" ';\n txt+='xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\" ';\n txt+=makedefaultsparams()+' ';\n txt+='>\\r\\n';\n for(c=0;c<commands.length;c++)\n {\n if(commands[c][0]==='L')\n {\n pts=commands[c][1];\n pts=scaletoolpath(pts,sfx,sfy,cutterheight);\n pts=simplifytoolpath(pts,arcdist);\n txt+=' <path id=\"'+commands[c][12]+'\" d=\"M ';\n for(d=0;d<pts.length;d++)\n {\n x=pts[d][0]-originx;\n y=(cutterheight-pts[d][1])-originy;\n if(d===0)\n {\n x0=x;\n y0=y;\n }\n if(d===pts.length-1 && commands[c][11]===1) txt+=\"Z\";\n else txt+=x.toFixed(3)+\",\"+y.toFixed(3)+\" \";\n }\n txt+='\" opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"1\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\" stroke-dasharray=\"none\" fill-opacity=\"0\" ';\n txt+=makepathparams(c)+' ';\n txt+='/>\\r\\n';\n }\n }\n txt+='</svg>\\r\\n';\n return txt;\n}", "function generate_tc() {\n var r1 = 0.05;\n var r2 = 0.1;\n var theta = Math.PI / 6;\n var height = 1;\n var topx = [], topy = [];\n var bottomx = [], bottomy = [];\n for (var i = 0; i < 13; i++) {\n var top_x = r1 * Math.cos(i * theta);\n var top_y = r1 * Math.sin(i * theta);\n var bottom_x = r2 * Math.cos(i * theta);\n var bottom_y = r2 * Math.sin(i * theta);\n topx.push(top_x);\n topy.push(top_y);\n bottomx.push(bottom_x);\n bottomy.push(bottom_y);\n }\n for (var i = 0; i < 12; i++) {\n points.push(topx[i + 1]);\n points.push(topy[i + 1]);\n points.push(height);\n points.push(topx[i]);\n points.push(topy[i]);\n points.push(height);\n points.push(bottomx[i]);\n points.push(bottomy[i]);\n points.push(0.0);\n points.push(topx[i + 1]);\n points.push(topy[i + 1]);\n points.push(height);\n points.push(bottomx[i]);\n points.push(bottomy[i]);\n points.push(0.0);\n points.push(bottomx[i + 1]);\n points.push(bottomy[i + 1]);\n points.push(0.0);\n }\n}", "function trackTransforms(ctx){\n var svg = document.createElementNS(\"http://www.w3.org/2000/svg\",'svg');\n var xform = svg.createSVGMatrix();\n ctx.getTransform = function(){ return xform; };\n\n var savedTransforms = [];\n var save = ctx.save;\n ctx.save = function(){\n savedTransforms.push(xform.translate(0,0));\n return save.call(ctx);\n };\n\n var restore = ctx.restore;\n ctx.restore = function(){\n xform = savedTransforms.pop();\n return restore.call(ctx);\n };\n\n var scale = ctx.scale;\n ctx.scale = function(sx,sy){\n xform = xform.scaleNonUniform(sx,sy);\n return scale.call(ctx,sx,sy);\n };\n\n var rotate = ctx.rotate;\n ctx.rotate = function(radians){\n xform = xform.rotate(radians*180/Math.PI);\n return rotate.call(ctx,radians);\n };\n\n var translate = ctx.translate;\n ctx.translate = function(dx,dy){\n xform = xform.translate(dx,dy);\n return translate.call(ctx,dx,dy);\n };\n\n var transform = ctx.transform;\n ctx.transform = function(a,b,c,d,e,f){\n var m2 = svg.createSVGMatrix();\n m2.a=a; m2.b=b; m2.c=c; m2.d=d; m2.e=e; m2.f=f;\n xform = xform.multiply(m2);\n return transform.call(ctx,a,b,c,d,e,f);\n };\n\n var setTransform = ctx.setTransform;\n ctx.setTransform = function(a,b,c,d,e,f){\n xform.a = a;\n xform.b = b;\n xform.c = c;\n xform.d = d;\n xform.e = e;\n xform.f = f;\n return setTransform.call(ctx,a,b,c,d,e,f);\n };\n\n var pt = svg.createSVGPoint();\n ctx.transformedPoint = function(x,y){\n pt.x=x; pt.y=y;\n return pt.matrixTransform(xform.inverse());\n };\n}", "toSvgPixels(units, decimalPlaces = 5) {\n let a = new Arc();\n a.startX = (TO_PX * cm(this.startX, units)).toFixed(decimalPlaces);\n a.startY = (TO_PX * cm(this.startY, units)).toFixed(decimalPlaces);\n a.endX = (TO_PX * cm(this.endX, units)).toFixed(decimalPlaces);\n a.endY = (TO_PX * cm(this.endY, units)).toFixed(decimalPlaces);\n\n a.radiusX = (TO_PX * cm(this.radiusX, units)).toFixed(decimalPlaces);\n a.radiusY = (TO_PX * cm(this.radiusY, units)).toFixed(decimalPlaces);\n a.rotX = this.rotX;\n a.largeArcFlag = this.largeArcFlag;\n a.sweepFlag = this.sweepFlag;\n\n return a;\n }", "function trackTransforms(ctx){\n var svg = document.createElementNS(\"http://www.w3.org/2000/svg\",'svg');\n var xform = svg.createSVGMatrix();\n ctx.getTransform = function(){\n return xform;\n };\n\n var savedTransforms = [];\n var save = ctx.save;\n ctx.save = function(){\n savedTransforms.push(xform.translate(0,0));\n return save.call(ctx);\n };\n var restore = ctx.restore;\n ctx.restore = function(){\n xform = savedTransforms.pop();\n return restore.call(ctx);\n };\n\n var scale = ctx.scale;\n ctx.scale = function(sx,sy){\n xform = xform.scaleNonUniform(sx,sy);\n return scale.call(ctx,sx,sy);\n };\n var rotate = ctx.rotate;\n ctx.rotate = function(radians){\n xform = xform.rotate(radians*180/Math.PI);\n return rotate.call(ctx,radians);\n };\n var translate = ctx.translate;\n ctx.translate = function(dx,dy){\n xform = xform.translate(dx,dy);\n return translate.call(ctx,dx,dy);\n };\n var transform = ctx.transform;\n ctx.transform = function(a,b,c,d,e,f){\n var m2 = svg.createSVGMatrix();\n m2.a=a;\n m2.b=b;\n m2.c=c;\n m2.d=d;\n m2.e=e;\n m2.f=f;\n xform = xform.multiply(m2);\n return transform.call(ctx,a,b,c,d,e,f);\n };\n var setTransform = ctx.setTransform;\n ctx.setTransform = function(a,b,c,d,e,f){\n xform.a = a;\n xform.b = b;\n xform.c = c;\n xform.d = d;\n xform.e = e;\n xform.f = f;\n return setTransform.call(ctx,a,b,c,d,e,f);\n };\n var pt = svg.createSVGPoint();\n ctx.transformedPoint = function(x,y){\n pt.x=x;\n pt.y=y;\n return pt.matrixTransform(xform.inverse());\n }\n}", "_plotChina() {\n\n let bbox = this.svg.node().getBoundingClientRect();\n\n let offset = [\n bbox.width / 2,\n bbox.height / 2,\n ];\n\n this.projection = d3.geo.mercator()\n .center(d3.geo.centroid(chinaJSON))\n .scale(bbox.width * 0.8)\n .translate(offset);\n\n let path = d3.geo.path()\n .projection(this.projection);\n\n this.svg\n .append('path')\n .datum(chinaJSON)\n .attr('d', path);\n\n this.svg\n .append('path')\n .datum(taiwanJSON)\n .style('opacity', 0.5)\n .attr('d', path);\n\n }", "function getKeyCoordinates(svg) {\n\n var parser = new DOMParser();\n var doc = parser.parseFromString(svg, \"image/svg+xml\");\n\n var paths = doc.getElementsByTagName(\"path\");\n sequence = [];\n\n var startCoordinates = [];\n var endCoordinates = [];\n var currMinX = null;\n var currMinY = null;\n var currMaxX = null;\n var currMaxY = null;\n\n $.each(paths, function(index, element) {\n var path = element.getAttribute(\"d\");\n\n var first = path.indexOf(\"Q\");\n var last = path.lastIndexOf(\"L\");\n \n var subpaths = path.substring(first, last).split(\"Q \");\n subpaths.shift();\n\n $.each(subpaths, function(index, subpath) {\n var coordinates = subpath.split(\" \");\n\n var x = parseFloat(coordinates[0]);\n var y = parseFloat(coordinates[1]);\n\n if(currMinX == null || x < currMinX) {\n currMinX = x;\n }\n if(currMinY == null || y < currMinY) {\n currMinY = y;\n }\n if(currMaxX == null || x > currMaxX) {\n currMaxX = x;\n }\n if(currMaxY == null || y > currMaxY) {\n currMaxY = y;\n }\n\n if(index == 0) {\n startCoordinates = [x,y];\n }\n\n if(subpaths.length-1 == index) {\n endCoordinates = [x,y];\n }\n\n });\n });\n\n return [startCoordinates, endCoordinates, [currMinX, currMinY], [currMaxX, currMaxY]];\n }", "getPoints(options: Object, widthIn: number, heightIn: number) {\n const {\n side,\n } = options;\n let leftPoints;\n let rightPoints;\n let width;\n let height;\n if (side === 'left' || side === 'right') {\n [leftPoints, rightPoints, width, height] = this.getLeftPoints(\n options, widthIn, heightIn,\n );\n } else {\n [leftPoints, rightPoints, width, height] = this.getLeftPoints(\n options, heightIn, widthIn,\n );\n }\n\n // The points of the glyph are for side 'left' by default\n // Transform the glyph to the correct side and have it's lower left corner\n // at (0, 0) and be\n let t;\n if (side === 'right') {\n t = new Transform().scale(-1, 1).translate(width, 0);\n } else if (side === 'top') {\n t = new Transform()\n .translate(0, -height / 2)\n .rotate(-Math.PI / 2)\n .translate(height / 2, width);\n } else if (side === 'bottom') {\n t = new Transform()\n .translate(0, -height / 2)\n .rotate(Math.PI / 2)\n .translate(height / 2, 0);\n } else {\n t = new Transform();\n }\n const newPointsLeft = leftPoints.map(p => p.transformBy(t.m()));\n const newPointsRight = rightPoints.map(p => p.transformBy(t.m()));\n const points = [];\n newPointsLeft.forEach((r1p, index) => {\n const r2p = newPointsRight[index];\n points.push(r1p);\n points.push(r2p);\n });\n if (side === 'top' || side === 'bottom') {\n return [points, height, width, 'STRIP'];\n }\n return [points, width, height, 'STRIP'];\n }", "function vectorOfPoints(lat1, lon1, lat2, lon2,displayed_text,displayed_distance,manipulation=0,\n fontLocation=\"Helvetica\", fontSizeLocation=25, fontDistance=\"Helvetica\", fontSizeDistance=25, displayed_amount) {\n var start = 500;\n var length = 490;\n var length_of_text = Math.round(getWidthOfText(displayed_text,fontLocation, fontSizeLocation*fontCorrection(displayed_distance)+\"px\"))\n\tif (mapSettings[0].mode==\"distance\"){\n\t\tvar length_of_textDist = Math.round(getWidthOfText(displayed_distance+\" km\",fontDistance,fontSizeDistance*fontCorrection(displayed_distance)+\"px\"\t))\n\t }\n\tif (mapSettings[0].mode==\"amount\"){\n\t\tvar length_of_textDist = Math.round(getWidthOfText(displayed_amount +\" €\",fontDistance,fontSizeDistance*fontCorrection(displayed_distance)+\"px\"\t))\n\t }\n\n// Calculate the distance between two coordinates https://planetcalc.com/713/\n\n\t\t\tvar Calculate712_result = {};\n\n\t\t\tvar la1 = lat1 //default: 28.1272222222\n\t\t\tvar lo1 = lon1 //default: -15.4313888889\n\t\t\tvar la2 = lat2 //default: 13.0961111111\n\t\t\tvar lo2 = lon2 //default: -59.6083333333\n\t\t\tvar ellipseType = \"wgs84\"\n\t\t\tvar angleL = {\n\t\t\t\t\t\"SetValue\": function(v) {\n\t\t\t\t\t\t\tCalculate712_result[\"angleL\"] = v;\n\t\t\t\t\t}\n\t\t\t};\n\t\t\tvar distanceM = {\n\t\t\t\t\t\"SetValue\": function(v) {\n\t\t\t\t\t\t\tCalculate712_result[\"distanceM\"] = v;\n\t\t\t\t\t}\n\t\t\t};\n\t\t\tvar distanceNMI = {\n\t\t\t\t\t\"SetValue\": function(v) {\n\t\t\t\t\t\t\tCalculate712_result[\"distanceNMI\"] = v;\n\t\t\t\t\t}\n\t\t\t};\n\t\t\tfunction rad(a) {\n\t\t\t\t\treturn Math.PI * a / 180;\n\t\t\t}\n\t\t\tfunction grad(a) {\n\t\t\t\t\treturn 180 * a / Math.PI;\n\t\t\t}\n\n\t\t\tfunction meridionalD(a) {\n\t\t\t\t\treturn Math.tan(rad(45 + a / 2));\n\t\t\t}\n\n\t\t\tfunction geoidD(a, e) {\n\t\t\t\t\treturn Math.pow((1 - e * Math.sin(rad(a))) / (1 + e * Math.sin(rad(a))), e / 2);\n\t\t\t}\n\t\t\tfunction abs(a) {\n\t\t\t\t\treturn a < 0 ? -a : a;\n\t\t\t}\n\t\t\tfunction calcDestination(e, la1, lo1, la2, lo2) {\n\t\t\t\t\tvar lD = lo2 - lo1;\n\t\t\t\t\tif (abs(lD) > 180)\n\t\t\t\t\t\t\tlD = lD < 0 ? 360 + lD : -360 + lD;\n\n\t\t\t\t\tvar rRes = Math.atan2(rad(lD), (Math.log(meridionalD(la2) * geoidD(la2, e)) - Math.log(meridionalD(la1) * geoidD(la1, e))));\n\t\t\t\t\tvar arcLen = (la2 - la1) ? ((1 - e * e / 4) * rad(la2 - la1) - (3 / 8) * e * e * (Math.sin(2 * rad(la2)) - Math.sin(2 * rad(la1)))) / Math.cos(rRes) : (lo2 - lo1) ? Math.cos(rad(la1)) * Math.abs(rad(lo2 - lo1)) : 0;\n\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\"arc\": arcLen,\n\t\t\t\t\t\t\t\"rhumb\": rRes\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\tvar ellipsoids = {\n\t\t\t\t\t\"wgs84\": {\n\t\t\t\t\t\t\t\"min\": 6356752.314,\n\t\t\t\t\t\t\t\"max\": 6378137\n\t\t\t\t\t},\n\t\t\t\t\t\"sk42\": {\n\t\t\t\t\t\t\t\"min\": 6356863,\n\t\t\t\t\t\t\t\"max\": 6378245\n\t\t\t\t\t},\n\t\t\t\t\t\"sphere\": {\n\t\t\t\t\t\t\t\"min\": 6378137,\n\t\t\t\t\t\t\t\"max\": 6378137\n\t\t\t\t\t}\n\t\t\t};\n\t\t\tif (ellipseType === undefined)\n\t\t\t\t\tellipseType = \"wgs84\";\n\t\t\tvar geoid = ellipsoids[ellipseType];\n\t\t\tvar a2 = geoid.max * geoid.max;\n\t\t\tvar b2 = geoid.min * geoid.min;\n\t\t\tvar e = Math.sqrt((a2 - b2) / a2);\n\t\t\tvar res1 = calcDestination(e, la1, lo1, la2, lo2, geoid.max);\n\t\t\tvar res2 = calcDestination(e, la1, lo1, la2, lo2 + 360, geoid.max);\n\t\t\tvar res = (res2.arc < res1.arc) ? res2 : res1;\n\t\t\tvar aRes = grad(res.rhumb);\n\t\t\tif (aRes < 0) {\n\t\t\t\t\taRes = 360 + aRes\n\t\t\t}\n\t\t\t;angleL.SetValue(aRes);\n\t\t\tvar len = geoid.max * res.arc;\n\n\t\t\tangle = aRes-90\n\n// continue\n\n var text_angle = angle;\n if (angle > 90 & angle < 180) {text_angle = angle + 180} //transform in a way to be readible as a poster e.g. not turned around\n if (angle > 180 & angle < 270) {text_angle = angle - 180}\n\n var start_x = start + 0.95* length * Math.cos(angle * Math.PI / 180);\n var start_y = start + 0.95* length * Math.sin(angle * Math.PI / 180);\n\n var end_x = start + length * Math.cos(angle * Math.PI / 180);\n var end_y = start + length * Math.sin(angle * Math.PI / 180);\n\n var text_x = end_x - (25+10+length_of_textDist+length_of_text/2)*Math.cos(angle * Math.PI / 180)\n var text_y = end_y - (25+10+length_of_textDist+length_of_text/2)*Math.sin(angle * Math.PI / 180)\n\n var textDist_x = end_x - (25+5+length_of_textDist/2)*Math.cos(angle * Math.PI / 180)\n var textDist_y = end_y - (25+5+length_of_textDist/2)*Math.sin(angle * Math.PI / 180)\n\n if (manipulation!=0) { // calculates a new text positioning, while the line is kept correct (start_x,end_x\n\n var start_x2 = start + 0.95* length * Math.cos((angle+manipulation) * Math.PI / 180);\n var start_y2 = start + 0.95* length * Math.sin((angle+manipulation) * Math.PI / 180);\n\n var end_x2 = start + length * Math.cos((angle+manipulation) * Math.PI / 180);\n var end_y2 = start + length * Math.sin((angle+manipulation) * Math.PI / 180);\n\n var text_x = end_x2 - (25+10+length_of_textDist+length_of_text/2)*Math.cos((angle+manipulation) * Math.PI / 180)\n var text_y = end_y2 - (25+10+length_of_textDist+length_of_text/2)*Math.sin((angle+manipulation) * Math.PI / 180)\n\n var textDist_x = end_x2 - (25+5+length_of_textDist/2)*Math.cos((angle+manipulation) * Math.PI / 180)\n var textDist_y = end_y2 - (25+5+length_of_textDist/2)*Math.sin((angle+manipulation) * Math.PI / 180)\n\t//\tconsole.log(\"Start_x2 is\" + start_x2 + \"for \" + displayed_text)\n\t//\tconsole.log(\"Start_y2 is\" + start_y2 + \"for \" + displayed_text)\n text_angle = text_angle +manipulation\n\n }\n\n var pointsInPlot = {\n start_x:start_x,start_y:start_y,end_x:end_x,end_y:end_y,\n text_x:text_x,text_y:text_y,text_angle:text_angle,\n textDist_x:textDist_x,textDist_y:textDist_y,\n length_of_text:length_of_text,length_of_textDist:length_of_textDist,angle:angle,\n\t\tstart_x_corr:start_x2, start_y_corr:start_y2\n }\n return pointsInPlot\n}", "function trackTransforms(ctx){\n var svg = document.createElementNS(\"http://www.w3.org/2000/svg\",'svg');\n var xform = svg.createSVGMatrix();\n ctx.getTransform = function(){ return xform; };\n\n var savedTransforms = [];\n var save = ctx.save;\n ctx.save = function(){\n savedTransforms.push(xform.translate(0,0));\n return save.call(ctx);\n };\n\n var restore = ctx.restore;\n ctx.restore = function(){\n xform = savedTransforms.pop();\n return restore.call(ctx);\n };\n\n var scale = ctx.scale;\n ctx.scale = function(sx,sy){\n xform = xform.scaleNonUniform(sx,sy);\n return scale.call(ctx,sx,sy);\n };\n\n var rotate = ctx.rotate;\n ctx.rotate = function(radians){\n xform = xform.rotate(radians*180/Math.PI);\n return rotate.call(ctx,radians);\n };\n\n var translate = ctx.translate;\n ctx.translate = function(dx,dy){\n xform = xform.translate(dx,dy);\n return translate.call(ctx,dx,dy);\n };\n\n var transform = ctx.transform;\n ctx.transform = function(a,b,c,d,e,f){\n var m2 = svg.createSVGMatrix();\n m2.a=a; m2.b=b; m2.c=c; m2.d=d; m2.e=e; m2.f=f;\n xform = xform.multiply(m2);\n return transform.call(ctx,a,b,c,d,e,f);\n };\n\n var setTransform = ctx.setTransform;\n ctx.setTransform = function(a,b,c,d,e,f){\n xform.a = a;\n xform.b = b;\n xform.c = c;\n xform.d = d;\n xform.e = e;\n xform.f = f;\n return setTransform.call(ctx,a,b,c,d,e,f);\n };\n\n var pt = svg.createSVGPoint();\n ctx.transformedPoint = function(x,y){\n pt.x=x; pt.y=y;\n return pt.matrixTransform(xform.inverse());\n }\n ctx.transformedPointBack = function(x,y){\n pt.x=x; pt.y=y;\n return pt.matrixTransform(xform);\n }\n }", "function crearMarcador(x){\n for (let i = 0; i < x.length; i++) {\n let svgMarkup = '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 41.5 55.9\" height=\"50\">' +\n '<style type=\"text/css\">.st0{fill:#7BCDDB;}</style>'+\n '<g id=\"Capa_2\">'+\n '<path class=\"st0\" d=\"M21.9,2c0.4,0,1.1,0,1.5,0.4c7.1,1.1,12,4.9,15,11.3c2.2,5.6,1.9,11.3-0.7,16.5c-3,5.3-6,10.5-9,15.7 c-1.1,2.2-2.2,4.1-3.8,6.4c-1.5,2.6-5.3,3-7.1,0.7c-0.4-0.4-0.8-0.7-0.8-1.1C12.9,45.1,9.1,38,5,31.3c-1.9-3.4-3-6.8-3-10.5 c0-5.6,2.2-10.5,6.8-14.2c2.6-2.2,6-3.8,9.4-4.1c0.4,0,1.1,0,1.5-0.4C20.8,2,21.1,2,21.9,2z M14,19.6c0,3.8,3,6.8,6.8,6.8 s6.8-3,6.8-6.8s-3-6.8-6.8-6.8S14,15.9,14,19.6z\"/>'+\n '</g></svg>';\n\n // Create an icon, an object holding the latitude and longitude, and a marker:\n let icon = new H.map.Icon(svgMarkup),\n coords = {lat: x[i].lat, lng: x[i].lng},\n marker = new H.map.Marker(coords, {icon: icon}),\n bubble = new H.ui.InfoBubble(coords, {content: '<p class=\"bubble\" id=\"'+x[i].name+'\" onclick=\"openNoticia(this)\">'+x[i].name+'</p>'});\n bubble.close();\n ui.addBubble(bubble);\n // Add event\n marker.addEventListener('tap', function (evt) {\n bubble.open();\n });\n // Add the marker to the map:\n map.addObject(marker);\n }\n }", "function beregnC() {\n a = document.getElementById('a').value; /* Her får vi værdien af a hvor id i html taget er lig a */\n b = document.getElementById('b').value; /* Her får vi værdien af a hvor id i html taget er lig b */\n c = Math.sqrt((a * a) + (b * b));\n document.getElementById(\"cer\").innerHTML = \"C = \" + c.toFixed(2);\n /* retter punkterne i svg'en så trekanten bliver flyttet*/\n document.getElementById(\"retvinklettrekant\").setAttribute(\"points\", \"0,0 0,\" + a * 20 + \" \" + b * 20 + \",\" + a * 20);\n RetAreal = a * b / 2\n document.getElementById(\"Areal\").innerHTML = \"Areal = \" + RetAreal;\n}", "function generateLatRLivery480(){\r\n\tvar c1 =BEZIER(S0)([[0,0,0],[1.7,0,0],[2.2,0,0],[1.7,0.5,0],[1.7,trainHeight/3-0.5,0],[1.7,trainHeight/3+0.2,0],[2.2,trainHeight/3+0.2,0],\r\n\t\t\t\t\t\t[0,trainHeight/3+0.2,0]]);\r\n\tvar c2 =BEZIER(S0)([[0,0,0],[-1.7,0,0],[-2.2,0,0],[-1.7,0.5,0],[-1.7,trainHeight/3-0.5,0],[-1.7,trainHeight/3+0.2,0],[-2.2,trainHeight/3+0.2,0],\r\n\t\t\t\t\t\t[0,trainHeight/3+0.2,0]]);\r\n\tvar temp = MAP(BEZIER(S1)([c1,c2]))(dom2D);\r\n\tvar out1 = COLOR([0.5,0.5,0.5])(temp);\r\n\tvar extra = COLOR([0.5,0.5,0.5])(CUBOID([trainLength-5.9,trainHeight/3+0.2]));\r\n\tvar out = STRUCT([T([0,1,2])([3.5,0.03,-0.1]),T([1])([0.29]),R([1,2])(-PI/30),T([0,1,2])([2,-0.3,-trainHeight/2-0.65]),R([1,2])(PI/2),out1,T([0])([0.8]),extra]);\r\n\treturn out;\r\n}", "function mkNeoPixelPart(xy) {\n if (xy === void 0) { xy = [0, 0]; }\n var NP_PART_XOFF = -13.5;\n var NP_PART_YOFF = -11;\n var NP_PART_WIDTH = 87.5;\n var NP_PART_HEIGHT = 190;\n var NEOPIXEL_PART_IMG = \"<svg viewBox=\\\"-5 -1 53 112\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:bx=\\\"https://boxy-svg.com\\\">\\n <rect x=\\\"2.5\\\" width=\\\"38\\\" height=\\\"100\\\" style=\\\"fill: rgb(68, 68, 68);\\\"/>\\n <rect x=\\\"11.748\\\" y=\\\"3.2\\\" width=\\\"1.391\\\" height=\\\"2.553\\\" style=\\\"fill: none; stroke-linejoin: round; stroke-width: 3; stroke: rgb(165, 103, 52);\\\"/>\\n <rect x=\\\"20.75\\\" y=\\\"3.2\\\" width=\\\"1.391\\\" height=\\\"2.553\\\" style=\\\"fill: none; stroke-linejoin: round; stroke-width: 3; stroke: rgb(165, 103, 52);\\\"/>\\n <rect x=\\\"29.75\\\" y=\\\"3.2\\\" width=\\\"1.391\\\" height=\\\"2.553\\\" style=\\\"fill: none; stroke-linejoin: round; stroke-width: 3; stroke: rgb(165, 103, 52);\\\"/>\\n <g>\\n <rect x=\\\"9\\\" y=\\\"16.562\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"9\\\" y=\\\"22.562\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"9\\\" y=\\\"28.563\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"11.607\\\" y=\\\"14.833\\\" width=\\\"19.787\\\" height=\\\"18.697\\\" style=\\\"fill: rgb(0, 0, 0);\\\"/>\\n <ellipse style=\\\"fill: rgb(216, 216, 216);\\\" cx=\\\"21.5\\\" cy=\\\"24.181\\\" rx=\\\"7\\\" ry=\\\"7\\\"/>\\n </g>\\n <path d=\\\"M -7.25 -103.2 L -2.5 -100.003 L -12 -100.003 L -7.25 -103.2 Z\\\" style=\\\"fill: rgb(68, 68, 68);\\\" transform=\\\"matrix(-1, 0, 0, -1, 0, 0)\\\" bx:shape=\\\"triangle -12 -103.2 9.5 3.197 0.5 0 1@ad6f5cac\\\"/>\\n <path d=\\\"M -16.75 -103.197 L -12 -100 L -21.5 -100 L -16.75 -103.197 Z\\\" style=\\\"fill: rgb(68, 68, 68);\\\" transform=\\\"matrix(-1, 0, 0, -1, 0, 0)\\\" bx:shape=\\\"triangle -21.5 -103.197 9.5 3.197 0.5 0 1@07d73149\\\"/>\\n <path d=\\\"M -26.25 -103.2 L -21.5 -100.003 L -31 -100.003 L -26.25 -103.2 Z\\\" style=\\\"fill: rgb(68, 68, 68);\\\" transform=\\\"matrix(-1, 0, 0, -1, 0, 0)\\\" bx:shape=\\\"triangle -31 -103.2 9.5 3.197 0.5 0 1@54403e2d\\\"/>\\n <path d=\\\"M -35.75 -103.197 L -31 -100 L -40.5 -100 L -35.75 -103.197 Z\\\" style=\\\"fill: rgb(68, 68, 68);\\\" transform=\\\"matrix(-1, 0, 0, -1, 0, 0)\\\" bx:shape=\\\"triangle -40.5 -103.197 9.5 3.197 0.5 0 1@21c9b772\\\"/>\\n <g transform=\\\"matrix(1, 0, 0, 1, 0.000002, 29.999994)\\\">\\n <rect x=\\\"9\\\" y=\\\"16.562\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"9\\\" y=\\\"22.562\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"9\\\" y=\\\"28.563\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"11.607\\\" y=\\\"14.833\\\" width=\\\"19.787\\\" height=\\\"18.697\\\" style=\\\"fill: rgb(0, 0, 0);\\\"/>\\n <ellipse style=\\\"fill: rgb(216, 216, 216);\\\" cx=\\\"21.5\\\" cy=\\\"24.181\\\" rx=\\\"7\\\" ry=\\\"7\\\"/>\\n </g>\\n <g transform=\\\"matrix(1, 0, 0, 1, 0.000005, 59.999992)\\\">\\n <rect x=\\\"9\\\" y=\\\"16.562\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"9\\\" y=\\\"22.562\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"9\\\" y=\\\"28.563\\\" width=\\\"25\\\" height=\\\"3.238\\\" style=\\\"fill: rgb(216, 216, 216);\\\"/>\\n <rect x=\\\"11.607\\\" y=\\\"14.833\\\" width=\\\"19.787\\\" height=\\\"18.697\\\" style=\\\"fill: rgb(0, 0, 0);\\\"/>\\n <ellipse style=\\\"fill: rgb(216, 216, 216);\\\" cx=\\\"21.5\\\" cy=\\\"24.181\\\" rx=\\\"7\\\" ry=\\\"7\\\"/>\\n </g>\\n</svg>\";\n var x = xy[0], y = xy[1];\n var l = x + NP_PART_XOFF;\n var t = y + NP_PART_YOFF;\n var w = NP_PART_WIDTH;\n var h = NP_PART_HEIGHT;\n var img = pxsim.svg.elt(\"image\");\n pxsim.svg.hydrate(img, {\n class: \"sim-neopixel-strip\", x: l, y: t, width: w, height: h,\n href: pxsim.svg.toDataUri(NEOPIXEL_PART_IMG)\n });\n return { el: img, x: l, y: t, w: w, h: h };\n }", "function transform(d) {\n d = new google.maps.LatLng(d.geometry.coordinates[1], d.geometry.coordinates[0]);\n d = projection.fromLatLngToDivPixel(d);\n return d3.select(this)\n .style(\"left\", (d.x - padding) + \"px\")\n .style(\"top\", (d.y - padding) + \"px\");\n }", "function arcToBeziere(pos,val){// Parameters extraction, handle out-of-range parameters as specified in the SVG spec\n// See: https://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters\nvar rx=Math.abs(val[1]),ry=Math.abs(val[2]),xAxisRotation=val[3]%360,largeArcFlag=val[4],sweepFlag=val[5],x=val[6],y=val[7],A=new SVG.Point(pos),B=new SVG.Point(x,y),primedCoord,lambda,mat,k,c,cSquare,t,O,OA,OB,tetaStart,tetaEnd,deltaTeta,nbSectors,f,arcSegPoints,angle,sinAngle,cosAngle,pt,i,il,retVal=[],x1,y1,x2,y2;// Ensure radii are non-zero\nif(rx===0||ry===0||A.x===B.x&&A.y===B.y){// treat this arc as a straight line segment\nreturn[['C',A.x,A.y,B.x,B.y,B.x,B.y]];}// Ensure radii are large enough using the algorithm provided in the SVG spec\n// See: https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii\nprimedCoord=new SVG.Point((A.x-B.x)/2,(A.y-B.y)/2).transform(new SVG.Matrix().rotate(xAxisRotation));lambda=primedCoord.x*primedCoord.x/(rx*rx)+primedCoord.y*primedCoord.y/(ry*ry);if(lambda>1){lambda=Math.sqrt(lambda);rx=lambda*rx;ry=lambda*ry;}// To simplify calculations, we make the arc part of a unit circle (rayon is 1) instead of an ellipse\nmat=new SVG.Matrix().rotate(xAxisRotation).scale(1/rx,1/ry).rotate(-xAxisRotation);A=A.transform(mat);B=B.transform(mat);// Calculate the horizontal and vertical distance between the initial and final point of the arc\nk=[B.x-A.x,B.y-A.y];// Find the length of the chord formed by A and B\ncSquare=k[0]*k[0]+k[1]*k[1];c=Math.sqrt(cSquare);// Calculate the ratios of the horizontal and vertical distance on the length of the chord\nk[0]/=c;k[1]/=c;// Calculate the distance between the circle center and the chord midpoint\n// using this formula: t = sqrt(r^2 - c^2 / 4)\n// where t is the distance between the cirle center and the chord midpoint,\n// r is the rayon of the circle and c is the chord length\n// From: http://www.ajdesigner.com/phpcircle/circle_segment_chord_t.php\n// Because of the imprecision of floating point numbers, cSquare might end\n// up being slightly above 4 which would result in a negative radicand\n// To prevent that, a test is made before computing the square root\nt=cSquare<4?Math.sqrt(1-cSquare/4):0;// For most situations, there are actually two different ellipses that\n// satisfy the constraints imposed by the points A and B, the radii rx and ry,\n// and the xAxisRotation\n// When the flags largeArcFlag and sweepFlag are equal, it means that the\n// second ellipse is used as a solution\n// See: https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands\nif(largeArcFlag===sweepFlag){t*=-1;}// Calculate the coordinates of the center of the circle from the midpoint of the chord\n// This is done by multiplying the ratios calculated previously by the distance between\n// the circle center and the chord midpoint and using these values to go from the midpoint\n// to the center of the circle\n// The negative of the vertical distance ratio is used to modify the x coordinate while\n// the horizontal distance ratio is used to modify the y coordinate\n// That is because the center of the circle is perpendicular to the chord and perpendicular\n// lines are negative reciprocals\nO=new SVG.Point((B.x+A.x)/2+t*-k[1],(B.y+A.y)/2+t*k[0]);// Move the center of the circle at the origin\nOA=new SVG.Point(A.x-O.x,A.y-O.y);OB=new SVG.Point(B.x-O.x,B.y-O.y);// Calculate the start and end angle\ntetaStart=Math.acos(OA.x/Math.sqrt(OA.x*OA.x+OA.y*OA.y));if(OA.y<0){tetaStart*=-1;}tetaEnd=Math.acos(OB.x/Math.sqrt(OB.x*OB.x+OB.y*OB.y));if(OB.y<0){tetaEnd*=-1;}// If sweep-flag is '1', then the arc will be drawn in a \"positive-angle\" direction,\n// make sure that the end angle is above the start angle\nif(sweepFlag&&tetaStart>tetaEnd){tetaEnd+=2*Math.PI;}// If sweep-flag is '0', then the arc will be drawn in a \"negative-angle\" direction,\n// make sure that the end angle is below the start angle\nif(!sweepFlag&&tetaStart<tetaEnd){tetaEnd-=2*Math.PI;}// Find the number of Bezier curves that are required to represent the arc\n// A cubic Bezier curve gives a good enough approximation when representing at most a quarter of a circle\nnbSectors=Math.ceil(Math.abs(tetaStart-tetaEnd)*2/Math.PI);// Calculate the coordinates of the points of all the Bezier curves required to represent the arc\n// For an in-depth explanation of this part see: http://pomax.github.io/bezierinfo/#circles_cubic\narcSegPoints=[];angle=tetaStart;deltaTeta=(tetaEnd-tetaStart)/nbSectors;f=4*Math.tan(deltaTeta/4)/3;for(i=0;i<=nbSectors;i++){// The <= is because a Bezier curve have a start and a endpoint\ncosAngle=Math.cos(angle);sinAngle=Math.sin(angle);pt=new SVG.Point(O.x+cosAngle,O.y+sinAngle);arcSegPoints[i]=[new SVG.Point(pt.x+f*sinAngle,pt.y-f*cosAngle),pt,new SVG.Point(pt.x-f*sinAngle,pt.y+f*cosAngle)];angle+=deltaTeta;}// Remove the first control point of the first segment point and remove the second control point of the last segment point\n// These two control points are not used in the approximation of the arc, that is why they are removed\narcSegPoints[0][0]=arcSegPoints[0][1].clone();arcSegPoints[arcSegPoints.length-1][2]=arcSegPoints[arcSegPoints.length-1][1].clone();// Revert the transformation that was applied to make the arc part of a unit circle instead of an ellipse\nmat=new SVG.Matrix().rotate(xAxisRotation).scale(rx,ry).rotate(-xAxisRotation);for(i=0,il=arcSegPoints.length;i<il;i++){arcSegPoints[i][0]=arcSegPoints[i][0].transform(mat);arcSegPoints[i][1]=arcSegPoints[i][1].transform(mat);arcSegPoints[i][2]=arcSegPoints[i][2].transform(mat);}// Convert the segments points to SVG curve commands\nfor(i=1,il=arcSegPoints.length;i<il;i++){pt=arcSegPoints[i-1][2];x1=pt.x;y1=pt.y;pt=arcSegPoints[i][0];x2=pt.x;y2=pt.y;pt=arcSegPoints[i][1];x=pt.x;y=pt.y;retVal.push(['C',x1,y1,x2,y2,x,y]);}return retVal;}", "function arcToBeziere(pos,val){// Parameters extraction, handle out-of-range parameters as specified in the SVG spec\n// See: https://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters\nvar rx=Math.abs(val[1]),ry=Math.abs(val[2]),xAxisRotation=val[3]%360,largeArcFlag=val[4],sweepFlag=val[5],x=val[6],y=val[7],A=new SVG.Point(pos),B=new SVG.Point(x,y),primedCoord,lambda,mat,k,c,cSquare,t,O,OA,OB,tetaStart,tetaEnd,deltaTeta,nbSectors,f,arcSegPoints,angle,sinAngle,cosAngle,pt,i,il,retVal=[],x1,y1,x2,y2;// Ensure radii are non-zero\nif(rx===0||ry===0||A.x===B.x&&A.y===B.y){// treat this arc as a straight line segment\nreturn[['C',A.x,A.y,B.x,B.y,B.x,B.y]];}// Ensure radii are large enough using the algorithm provided in the SVG spec\n// See: https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii\nprimedCoord=new SVG.Point((A.x-B.x)/2,(A.y-B.y)/2).transform(new SVG.Matrix().rotate(xAxisRotation));lambda=primedCoord.x*primedCoord.x/(rx*rx)+primedCoord.y*primedCoord.y/(ry*ry);if(lambda>1){lambda=Math.sqrt(lambda);rx=lambda*rx;ry=lambda*ry;}// To simplify calculations, we make the arc part of a unit circle (rayon is 1) instead of an ellipse\nmat=new SVG.Matrix().rotate(xAxisRotation).scale(1/rx,1/ry).rotate(-xAxisRotation);A=A.transform(mat);B=B.transform(mat);// Calculate the horizontal and vertical distance between the initial and final point of the arc\nk=[B.x-A.x,B.y-A.y];// Find the length of the chord formed by A and B\ncSquare=k[0]*k[0]+k[1]*k[1];c=Math.sqrt(cSquare);// Calculate the ratios of the horizontal and vertical distance on the length of the chord\nk[0]/=c;k[1]/=c;// Calculate the distance between the circle center and the chord midpoint\n// using this formula: t = sqrt(r^2 - c^2 / 4)\n// where t is the distance between the cirle center and the chord midpoint,\n// r is the rayon of the circle and c is the chord length\n// From: http://www.ajdesigner.com/phpcircle/circle_segment_chord_t.php\n// Because of the imprecision of floating point numbers, cSquare might end\n// up being slightly above 4 which would result in a negative radicand\n// To prevent that, a test is made before computing the square root\nt=cSquare<4?Math.sqrt(1-cSquare/4):0;// For most situations, there are actually two different ellipses that\n// satisfy the constraints imposed by the points A and B, the radii rx and ry,\n// and the xAxisRotation\n// When the flags largeArcFlag and sweepFlag are equal, it means that the\n// second ellipse is used as a solution\n// See: https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands\nif(largeArcFlag===sweepFlag){t*=-1;}// Calculate the coordinates of the center of the circle from the midpoint of the chord\n// This is done by multiplying the ratios calculated previously by the distance between\n// the circle center and the chord midpoint and using these values to go from the midpoint\n// to the center of the circle\n// The negative of the vertical distance ratio is used to modify the x coordinate while\n// the horizontal distance ratio is used to modify the y coordinate\n// That is because the center of the circle is perpendicular to the chord and perpendicular\n// lines are negative reciprocals\nO=new SVG.Point((B.x+A.x)/2+t*-k[1],(B.y+A.y)/2+t*k[0]);// Move the center of the circle at the origin\nOA=new SVG.Point(A.x-O.x,A.y-O.y);OB=new SVG.Point(B.x-O.x,B.y-O.y);// Calculate the start and end angle\ntetaStart=Math.acos(OA.x/Math.sqrt(OA.x*OA.x+OA.y*OA.y));if(OA.y<0){tetaStart*=-1;}tetaEnd=Math.acos(OB.x/Math.sqrt(OB.x*OB.x+OB.y*OB.y));if(OB.y<0){tetaEnd*=-1;}// If sweep-flag is '1', then the arc will be drawn in a \"positive-angle\" direction,\n// make sure that the end angle is above the start angle\nif(sweepFlag&&tetaStart>tetaEnd){tetaEnd+=2*Math.PI;}// If sweep-flag is '0', then the arc will be drawn in a \"negative-angle\" direction,\n// make sure that the end angle is below the start angle\nif(!sweepFlag&&tetaStart<tetaEnd){tetaEnd-=2*Math.PI;}// Find the number of Bezier curves that are required to represent the arc\n// A cubic Bezier curve gives a good enough approximation when representing at most a quarter of a circle\nnbSectors=Math.ceil(Math.abs(tetaStart-tetaEnd)*2/Math.PI);// Calculate the coordinates of the points of all the Bezier curves required to represent the arc\n// For an in-depth explanation of this part see: http://pomax.github.io/bezierinfo/#circles_cubic\narcSegPoints=[];angle=tetaStart;deltaTeta=(tetaEnd-tetaStart)/nbSectors;f=4*Math.tan(deltaTeta/4)/3;for(i=0;i<=nbSectors;i++){// The <= is because a Bezier curve have a start and a endpoint\ncosAngle=Math.cos(angle);sinAngle=Math.sin(angle);pt=new SVG.Point(O.x+cosAngle,O.y+sinAngle);arcSegPoints[i]=[new SVG.Point(pt.x+f*sinAngle,pt.y-f*cosAngle),pt,new SVG.Point(pt.x-f*sinAngle,pt.y+f*cosAngle)];angle+=deltaTeta;}// Remove the first control point of the first segment point and remove the second control point of the last segment point\n// These two control points are not used in the approximation of the arc, that is why they are removed\narcSegPoints[0][0]=arcSegPoints[0][1].clone();arcSegPoints[arcSegPoints.length-1][2]=arcSegPoints[arcSegPoints.length-1][1].clone();// Revert the transformation that was applied to make the arc part of a unit circle instead of an ellipse\nmat=new SVG.Matrix().rotate(xAxisRotation).scale(rx,ry).rotate(-xAxisRotation);for(i=0,il=arcSegPoints.length;i<il;i++){arcSegPoints[i][0]=arcSegPoints[i][0].transform(mat);arcSegPoints[i][1]=arcSegPoints[i][1].transform(mat);arcSegPoints[i][2]=arcSegPoints[i][2].transform(mat);}// Convert the segments points to SVG curve commands\nfor(i=1,il=arcSegPoints.length;i<il;i++){pt=arcSegPoints[i-1][2];x1=pt.x;y1=pt.y;pt=arcSegPoints[i][0];x2=pt.x;y2=pt.y;pt=arcSegPoints[i][1];x=pt.x;y=pt.y;retVal.push(['C',x1,y1,x2,y2,x,y]);}return retVal;}", "function alignSVG() {\n var origin = map.getPixelOrigin();\n var topLeft = map.getPixelBounds().min;\n tileOffset = [topLeft.x - origin.x, topLeft.y - origin.y];\n\n var svgOffset = [tileOffset[0] - map.getSize().x / 2,\n tileOffset[1] - map.getSize().y / 2];\n\n svg.attr('width', map.getSize().x * 2)\n .attr('height', map.getSize().y * 2)\n .style(\"margin-left\", svgOffset[0])\n .style(\"margin-top\", svgOffset[1]);\n\n for (var key in layers) {\n if (layers.hasOwnProperty(key)) {\n layers[key]\n .attr(\"transform\", \"translate(\" + -svgOffset[0] + \",\" + -svgOffset[1] + \")\");\n }\n }\n}", "function getCircletoPath(x , y, r) { \n\treturn \"M\"+ x + \",\" + (y - r) + \"A\" + r + \",\" + r + \",0,1,1,\" + (x - 0.1) + \",\" + (y - r) +\" z\"; \n}", "function XY(x,y)\r\n{\r\n \tvar pnt = domSVG.createSVGPoint();\r\n\tpnt.x = x\r\n\tpnt.y = y\r\n\tvar sCTM = domSVG.getScreenCTM();\r\n\tvar PNT = pnt.matrixTransform(sCTM.inverse());\r\n \treturn {x:PNT.x,y:PNT.y}\r\n}", "function transform(p){\n\t\t\t\t\tvar x = (p[0] - data.bounds[0][0]) / (data.bounds[1][0] - data.bounds[0][0]);\n\t\t\t\t\tvar y = (p[1] - data.bounds[0][1]) / (data.bounds[1][0] - data.bounds[0][0]);\n\n\t\t\t\t\tx *= scale;\n\t\t\t\t\ty *= -scale * 1.75;\n\n\t\t\t\t\tx += -5;\n\t\t\t\t\ty += 5;\n\n\t\t\t\t\treturn [x, y];\n\t\t\t\t}", "getCoord(e){\t\n var eyeMaxHorizD = 20,\n eyeMaxVertD = 10,\n noseMaxHorizD = 23,\n noseMaxVertD = 10,\n carPos = this.email.selectionEnd,\n div = document.createElement(\"div\"),\n span = document.createElement(\"span\"),\n copyStyle = getComputedStyle(this.email),\n emailCoords = {},\n caretCoords = {},\n centerCoords = {};\n [].forEach.call(copyStyle, function(prop) {\n div.style[prop] = copyStyle[prop];\n });\n\n div.style.position = \"absolute\";\n document.body.appendChild(div);\n div.textContent = this.email.value.substr(0, carPos);\n span.textContent = this.email.value.substr(carPos) || \".\";\n div.appendChild(span);\n\n emailCoords = this.getPosition(this.email); //console.log(\"emailCoords.x: \" + emailCoords.x + \", emailCoords.y: \" + emailCoords.y);\n caretCoords = this.getPosition(span); //console.log(\"caretCoords.x \" + caretCoords.x + \", caretCoords.y: \" + caretCoords.y);\n centerCoords = this.getPosition(this.mySVG); //console.log(\"centerCoords.x: \" + centerCoords.x);\n var svgCoords = this.getPosition(this.mySVG);\n var screenCenter = centerCoords.x + this.mySVG.offsetWidth / 2; //console.log(\"screenCenter: \" + screenCenter);\n var caretPos = caretCoords.x + emailCoords.x; //console.log(\"caretPos: \" + caretPos);\n\n var dFromC = screenCenter - caretPos; //console.log(\"dFromC: \" + dFromC);\n var pFromC = Math.round(caretPos / screenCenter * 100) / 100;\n if (pFromC < 1) {\n } else if (pFromC > 1) {\n pFromC -= 2;\n pFromC = Math.abs(pFromC);\n }\n\n var eyeDistH = -dFromC * 0.05;\n if (eyeDistH > eyeMaxHorizD) {\n eyeDistH = eyeMaxHorizD;\n } else if (eyeDistH < -eyeMaxHorizD) {\n eyeDistH = -eyeMaxHorizD;\n }\n\n var eyeLCoords = { x: svgCoords.x + 84, y: svgCoords.y + 76 };\n var eyeRCoords = { x: svgCoords.x + 113, y: svgCoords.y + 76 };\n var noseCoords = { x: svgCoords.x + 97, y: svgCoords.y + 81 };\n var mouthCoords = { x: svgCoords.x + 100, y: svgCoords.y + 100 };\n var eyeLAngle = this.getAngle(\n eyeLCoords.x,\n eyeLCoords.y,\n caretPos,\n emailCoords.y + 25\n );\n var eyeLX = Math.cos(eyeLAngle) * eyeMaxHorizD;\n var eyeLY = Math.sin(eyeLAngle) * eyeMaxVertD;\n var eyeRAngle = this.getAngle(\n eyeRCoords.x,\n eyeRCoords.y,\n caretPos,\n emailCoords.y + 25\n );\n var eyeRX = Math.cos(eyeRAngle) * eyeMaxHorizD;\n var eyeRY = Math.sin(eyeRAngle) * eyeMaxVertD;\n var noseAngle = this.getAngle(\n noseCoords.x,\n noseCoords.y,\n caretPos,\n emailCoords.y + 25\n );\n var noseX = Math.cos(noseAngle) * noseMaxHorizD;\n var noseY = Math.sin(noseAngle) * noseMaxVertD;\n var mouthAngle = this.getAngle(\n mouthCoords.x,\n mouthCoords.y,\n caretPos,\n emailCoords.y + 25\n );\n var mouthX = Math.cos(mouthAngle) * noseMaxHorizD;\n var mouthY = Math.sin(mouthAngle) * noseMaxVertD;\n var mouthR = Math.cos(mouthAngle) * 6;\n var chinX = mouthX * 0.8;\n var chinY = mouthY * 0.5;\n var chinS = 1 - dFromC * 0.15 / 100;\n if (chinS > 1) {\n chinS = 1 - (chinS - 1);\n }\n var faceX = mouthX * 0.3;\n var faceY = mouthY * 0.4;\n var faceSkew = Math.cos(mouthAngle) * 5;\n var eyebrowSkew = Math.cos(mouthAngle) * 25;\n var outerEarX = Math.cos(mouthAngle) * 4;\n var outerEarY = Math.cos(mouthAngle) * 5;\n var hairX = Math.cos(mouthAngle) * 6;\n var hairS = 1.2;\n // using tweenmax to animate the eyes nose\n TweenMax.to(this.eyeL, 1, { x: -eyeLX, y: -eyeLY, ease: Expo.easeOut });\n TweenMax.to(this.eyeR, 1, { x: -eyeRX, y: -eyeRY, ease: Expo.easeOut });\n TweenMax.to(this.nose, 1, {\n x: -noseX,\n y: -noseY,\n rotation: mouthR,\n transformOrigin: \"center center\",\n ease: Expo.easeOut\n });\n TweenMax.to(this.mouth, 1, {\n x: -mouthX,\n y: -mouthY,\n rotation: mouthR,\n transformOrigin: \"center center\",\n ease: Expo.easeOut\n });\n TweenMax.to(this.chin, 1, {\n x: -chinX,\n y: -chinY,\n scaleY: chinS,\n ease: Expo.easeOut\n });\n TweenMax.to(this.face, 1, {\n x: -faceX,\n y: -faceY,\n skewX: -faceSkew,\n transformOrigin: \"center top\",\n ease: Expo.easeOut\n });\n TweenMax.to(this.eyebrow, 1, {\n x: -faceX,\n y: -faceY,\n skewX: -eyebrowSkew,\n transformOrigin: \"center top\",\n ease: Expo.easeOut\n });\n TweenMax.to(this.outerEarL, 1, { x: outerEarX, y: -outerEarY, ease: Expo.easeOut });\n TweenMax.to(this.outerEarR, 1, { x: outerEarX, y: outerEarY, ease: Expo.easeOut });\n TweenMax.to(this.earHairL, 1, { x: -outerEarX, y: -outerEarY, ease: Expo.easeOut });\n TweenMax.to(this.earHairR, 1, { x: -outerEarX, y: outerEarY, ease: Expo.easeOut });\n TweenMax.to(this.hair, 1, {\n x: hairX,\n scaleY: hairS,\n transformOrigin: \"center bottom\",\n ease: Expo.easeOut\n });\n\n document.body.removeChild(div);\n }", "function b2g($coor){\n\tvar $x = $coor.$lng - 0.0065,$y = $coor.$lat - 0.006;\n\tvar $z = Math.sqrt($x * $x + $y * $y) - 0.00002 * Math.sin($y * $x_pi);\n\tvar $theta = Math.atan2($y, $x) - 0.000003 * Math.cos($x * $x_pi);\n\t$coor.$lng = $z * Math.cos($theta);\n\t$coor.$lat = $z * Math.sin($theta);\n}", "function jsonToSvg(parentEl, projectionKey, json) {\n var width = 500;\n var height = 400;\n\n var bbox = findBoundingBox(json);\n var projection = createProjection(projectionKey, bbox, [ width, height ]);\n\n var path = d3.geo.path().projection(projection);\n var graticule = d3.geo.graticule()\n .extent([[ -180, 0 ], [ 180, 90 ]]) // otherwise Conic SVG breaks rsvg\n .step([ 5, 5 ]);\n\n var svg = d3.select(parentEl).append('svg')\n .attr('viewBox', '0 0 ' + width + ' ' + height);\n\n svg.append('path')\n .datum(graticule)\n .attr('class', 'graticule')\n .attr('d', path);\n\n for (var key in json.objects) {\n svg.append('path', '.graticule')\n .datum(topojson.feature(json, json.objects[key]))\n .attr('class', 'province')\n .attr('d', path);\n }\n\n var sw = projection.invert([ 40, height - 40]);\n sw = [\n Math.ceil(sw[0] / GraticuleWidth) * GraticuleWidth,\n Math.ceil(sw[1] / GraticuleWidth) * GraticuleWidth\n ];\n addPointAndTextToSvg(svg, sw, projection, lngLatToText, 6, 'point sw');\n\n var ne = projection.invert([ width - 40, 40 ]);\n ne = [\n Math.floor(ne[0] / GraticuleWidth) * GraticuleWidth,\n Math.floor(ne[1] / GraticuleWidth) * GraticuleWidth\n ];\n if (ne[0] != sw[0] || ne[1] != sw[1]) {\n addPointAndTextToSvg(svg, ne, projection, lngLatToText, -6, 'point ne');\n }\n\n return svg;\n}", "drawSvg() {\n \n\t}", "function getCoordinates(p1, p2, p3, answer) {\n var xArr = [],\n yArr = [];\n if (answer == 'flat') {\n xArr.push(p1.anchor[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p3.anchor[0]);\n \n yArr.push(p1.anchor[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p3.anchor[1]);\n }\n if (answer == 'l_zero') {\n xArr.push(p3.anchor[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p2.rightDirection[0]);\n\n yArr.push(p3.anchor[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p2.rightDirection[1]);\n }\n\n if (answer == 'r_zero') {\n xArr.push(p2.leftDirection[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p1.anchor[0]);\n\n yArr.push(p2.leftDirection[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p1.anchor[1]);\n }\n return { 'x': xArr, 'y': yArr };\n}", "function mouseCoordsSvg(evt) {\n return skew({x:evt.clientX, y:evt.clientY}, true);\n}", "function showCoords($svg){\n $('[class~=edge] text,[class~=cell] text', $svg).text(function(){ \n return $(this).data('coords');\n }).css('font-size', '7pt');\n}", "function calculate_coordinates () {\n\t }", "function getSVGinfo() {\n console.log(this);\n S = document.getElementById(\"DYOSVG\").contentDocument;\n var STYLESVG = []\n , NUMCOLS = [];\n var i;\n\n for (var j = 0; j < S.styleSheets.length; j++) {\n var rules = S.styleSheets[j].rules || S.styleSheets[j].cssRules;\n // This CSS code may need to be modified to handle using commas in CSS for shared code\n for (i in rules) {\n if (typeof rules[i].selectorText == 'string') {\n STYLESVG.push(rules[i].selectorText)\n }\n }\n for (i in STYLESVG) {\n var start_pos = STYLESVG[i].indexOf('.') + 1;\n var end_pos = STYLESVG[i].indexOf('.', start_pos);\n if (end_pos != -1) {\n var NC = STYLESVG[i].substring(start_pos, end_pos);\n // begin IE stupidity workaround\n var NC2 = STYLESVG[i].substring(end_pos + 1);\n if (NC == \"fill\" || NC == \"stroke\" || NC == \"stopColor\") {\n NUMCOLS.push(NC2)\n } else if (NC2 == \"fill\" || NC2 == \"stroke\" || NC2 == \"stopColor\") {\n NUMCOLS.push(NC)\n }\n }\n }\n NUMCOLS = NUMCOLS.filter(function(itm, i, a) {\n return i == a.indexOf(itm)\n });\n }\n var PREVIOUS = document.getElementsByClassName(\"colourfill\");\n for (i = PREVIOUS.length; i > 0; i--) {\n var M = (PREVIOUS[i - 1].id.indexOf(\"[\") != -1) ? PREVIOUS[i - 1].id.slice(0, PREVIOUS[i - 1].id.indexOf(\"[\")) : PREVIOUS[i - 1].id;\n var A = (PREVIOUS[i - 1].id.indexOf(\"[\") != -1) ? PREVIOUS[0].id.slice(PREVIOUS[0].id.indexOf(\"[\") + 1, PREVIOUS[0].id.length - 1) : null;\n if (A != ACTIVE) {\n continue\n }\n PREVIOUS[i - 1].material = (typeof materialController == 'function') ? materialController(M) : PREVIOUS[i - 1].material;\n var col = readCookie(PREVIOUS[i - 1].id);\n if (col && PREVIOUS[i - 1].material.indexOf(col) == -1) {\n removeCookie(PREVIOUS[i - 1].id)\n }\n if (PREVIOUS[i - 1].material.indexOf(PREVIOUS[i - 1].value) == -1) {\n if (defcols[PREVIOUS[i - 1]] && PREVIOUS[i - 1].material.indexOf(defcols[PREVIOUS[i - 1]]) != -1) {\n PREVIOUS[i - 1].value = defcols[PREVIOUS[i - 1]];\n }\n {\n var rand = Math.floor(Math.random() * PREVIOUS[i - 1].material.length);\n PREVIOUS[i - 1].value = PREVIOUS[i - 1].material[rand];\n }\n colour.call(PREVIOUS[i - 1]);\n }\n if (NUMCOLS.indexOf(PREVIOUS[i - 1].id) == -1 && PREVIOUS[i - 1].id != \"S-BallColour\") {\n PREVIOUS[i - 1].parentNode.parentNode.removeChild(PREVIOUS[i - 1].parentNode)\n }\n }\n for (i in NUMCOLS) {\n if (!document.getElementById(NUMCOLS[i]) + \"[\" + ACTIVE + \"]\") {\n addColour(NUMCOLS[i] + \"[\" + ACTIVE + \"]\")\n }\n ;colour.call(document.getElementById(NUMCOLS[i] + \"[\" + ACTIVE + \"]\"))\n }\n // Re-Initialise set values\n if (typeof svgController == 'function') {\n svgController();\n }\n if (!S.getElementById(\"Content\")) {\n var CNT = document.createElementNS(SVG_NS, \"g\");\n CNT.id = \"Content\";\n S.documentElement.appendChild(CNT)\n }\n S.getElementById(\"Content\").style.visibility = \"hidden\";\n S.getElementById(\"Content\").style.visibility = \"hidden\";\n if (document.getElementById(\"SBALL[\" + ACTIVE + \"]\")) {\n drawSBall();\n // SBall();\n // colour.call(document.getElementById(\"S-BallColour[\" + ACTIVE + \"]\"));\n }\n DL = document.getElementById(\"logos[\" + ACTIVE + \"]\").getElementsByClassName(\"logoupload\");\n DT = document.getElementById(\"logos[\" + ACTIVE + \"]\").getElementsByClassName(\"addtext\");\n DS = document.getElementById(\"logos[\" + ACTIVE + \"]\").getElementsByClassName(\"uploadselect\");\n for (var i = 0; i < DS.length; i++) {\n embellish.call(DS[i])\n }\n for (var i = 0; i < DL.length; i++) {\n if (DL[i].value) {\n if (CYCLE == true) {\n DLCount++\n }\n HFS.call(DL[i])\n }\n }\n for (var i = 0; i < DT.length; i++) {\n if (DT[i].value) {\n addText.call(DT[i])\n }\n }\n // Continue with Garment Specific Logic\t\n //\tdocument.getElementById(\"Colour1\").classList.add(\"chosen\");\n //\tif(document.getElementById(\"Colour1\")){createColourPicker.call(document.getElementById(\"Colour1\"))}else{console.log(\"dfjvdfj\")}\n // colourBranding()\n //Clone the node \n if (CYCLE == true && DLCount == 0) {\n generateImages()\n }\n}", "function translateCircle(datum, index){\n return \"translate(\" + projection([datum.y, datum.x]) + \")\";\n}", "function calcMouseCoords(event) {\nvar timelineX = document.getElementById(\"timeline-container\").offsetLeft;\nvar timelineY = document.getElementById(\"timeline-container\").offsetTop;\nvar overlayX = document.getElementById(\"overlay\").offsetLeft;\nvar overlayY = document.getElementById(\"overlay\").offsetTop;\n\nvar svgX = timelineX + overlayX;\nvar svgY = timelineY + overlayY;\n\nvar timelineScrollX = document.getElementById(\"timeline-container\").scrollLeft;\nvar timelineScrollY = document.getElementById(\"timeline-container\").scrollTop;\n\nvar absoluteX = event.pageX+timelineScrollX;\nvar absoluteY = event.pageY+timelineScrollY;\n\nvar svgpointX = absoluteX - svgX;\nvar svgpointY = absoluteY - svgY;\n\nvar svgpoint = [svgpointX, svgpointY];\nreturn svgpoint;\n}", "function svgPoint(element, x, y) {\n\t\tvar pt = svg.createSVGPoint();\n\t\tpt.x = x;\n\t\tpt.y = y;\n\t\treturn pt.matrixTransform(element.getScreenCTM().inverse());\n\t}", "function getTranslation(transform) {\n var t = document.createElementNS(\"http://www.w3.org/2000/svg\", \"g\");\n t.setAttributeNS(null, \"transform\", transform);\n var matrix = t.transform.baseVal.consolidate().matrix;\n return [matrix.e, matrix.f];\n}", "getSVGPath(scaling = 'scale', infiniteCheck = true, forDrawing = false, forDrawingButInvisible = false) {\n let path = '';\n path = this.segments\n .map((seg) => seg.getSVGPath(scaling, false, infiniteCheck))\n .join('\\n');\n if (forDrawingButInvisible) {\n if (this.vertexes[1] && this.segments[0].isArc()) {\n let arcCenterCoordinates = this.segments[0].arcCenter.coordinates;\n let firstVertex = this.vertexes[0].coordinates;\n let secondVertex = this.vertexes[1].coordinates;\n if (scaling == 'scale') {\n arcCenterCoordinates = arcCenterCoordinates.toCanvasCoordinates();\n firstVertex = firstVertex.toCanvasCoordinates();\n secondVertex = secondVertex.toCanvasCoordinates();\n }\n path += ['M', arcCenterCoordinates.x, arcCenterCoordinates.y, 'L', firstVertex.x, firstVertex.y, 'L', secondVertex.x, secondVertex.y, 'L', arcCenterCoordinates.x, arcCenterCoordinates.y].join(' ');\n }\n }\n if (forDrawing) {\n let seg = this.segments[0];\n let arrowEndCoordinates = seg.vertexes[1].coordinates;\n let arrowAngle = seg.getAngleWithHorizontal() + Math.PI;\n if (seg.isArc()) {\n let originVector = this.segments[0].getArcTangent(1);\n arrowAngle = Math.atan2(originVector.y, originVector.x) + Math.PI;\n }\n let firstTriangleCoord = arrowEndCoordinates.add(new Coordinates({\n x: 20 * Math.cos(arrowAngle + 0.35),\n y: 20 * Math.sin(arrowAngle + 0.35),\n }));\n let secondTriangleCoord = arrowEndCoordinates.add(new Coordinates({\n x: 20 * Math.cos(arrowAngle - 0.35),\n y: 20 * Math.sin(arrowAngle - 0.35),\n }));\n if (scaling == 'scale') {\n arrowEndCoordinates = arrowEndCoordinates.toCanvasCoordinates();\n firstTriangleCoord = firstTriangleCoord.toCanvasCoordinates();\n secondTriangleCoord = secondTriangleCoord.toCanvasCoordinates();\n }\n path += ` M ${arrowEndCoordinates.x} ${arrowEndCoordinates.y} L ${firstTriangleCoord.x} ${firstTriangleCoord.y} M ${arrowEndCoordinates.x} ${arrowEndCoordinates.y} L ${secondTriangleCoord.x} ${secondTriangleCoord.y}`;\n }\n return path;\n }", "function SVGShape() {}", "function cs_geocentric_to_geodetic (cs, p) {\n\n var X =p.x;\n var Y = p.y;\n var Z = p.z;\n var Longitude;\n var Latitude;\n var Height;\n\n var W; /* distance from Z axis */\n var W2; /* square of distance from Z axis */\n var T0; /* initial estimate of vertical component */\n var T1; /* corrected estimate of vertical component */\n var S0; /* initial estimate of horizontal component */\n var S1; /* corrected estimate of horizontal component */\n var Sin_B0; /* Math.sin(B0), B0 is estimate of Bowring aux variable */\n var Sin3_B0; /* cube of Math.sin(B0) */\n var Cos_B0; /* Math.cos(B0) */\n var Sin_p1; /* Math.sin(phi1), phi1 is estimated latitude */\n var Cos_p1; /* Math.cos(phi1) */\n var Rn; /* Earth radius at location */\n var Sum; /* numerator of Math.cos(phi1) */\n var At_Pole; /* indicates location is in polar region */\n\n X = parseFloat(X); // cast from string to float\n Y = parseFloat(Y);\n Z = parseFloat(Z);\n\n At_Pole = false;\n if (X != 0.0)\n {\n Longitude = Math.atan2(Y,X);\n }\n else\n {\n if (Y > 0)\n {\n Longitude = HALF_PI;\n }\n else if (Y < 0)\n {\n Longitude = -HALF_PI;\n }\n else\n {\n At_Pole = true;\n Longitude = 0.0;\n if (Z > 0.0)\n { /* north pole */\n Latitude = HALF_PI;\n }\n else if (Z < 0.0)\n { /* south pole */\n Latitude = -HALF_PI;\n }\n else\n { /* center of earth */\n Latitude = HALF_PI;\n Height = -cs.b;\n return;\n }\n }\n }\n W2 = X*X + Y*Y;\n W = Math.sqrt(W2);\n T0 = Z * AD_C;\n S0 = Math.sqrt(T0 * T0 + W2);\n Sin_B0 = T0 / S0;\n Cos_B0 = W / S0;\n Sin3_B0 = Sin_B0 * Sin_B0 * Sin_B0;\n T1 = Z + cs.b * cs.ep2 * Sin3_B0;\n Sum = W - cs.a * cs.es * Cos_B0 * Cos_B0 * Cos_B0;\n S1 = Math.sqrt(T1*T1 + Sum * Sum);\n Sin_p1 = T1 / S1;\n Cos_p1 = Sum / S1;\n Rn = cs.a / Math.sqrt(1.0 - cs.es * Sin_p1 * Sin_p1);\n if (Cos_p1 >= COS_67P5)\n {\n Height = W / Cos_p1 - Rn;\n }\n else if (Cos_p1 <= -COS_67P5)\n {\n Height = W / -Cos_p1 - Rn;\n }\n else\n {\n Height = Z / Sin_p1 + Rn * (cs.es - 1.0);\n }\n if (At_Pole == false)\n {\n Latitude = Math.atan(Sin_p1 / Cos_p1);\n }\n\n p.x = Longitude;\n p.y =Latitude;\n p.z = Height;\n return 0;\n}", "function gtaCoordToMap(x, y)\r\n{\r\n\tvar mapx = x * 0.03;\r\n\tvar mapy = y * 0.03;\r\n\treturn {x: mapx, y: mapy};\r\n}", "function g2b($coor){\n\tvar $x = $coor.$lng,$y = $coor.$lat;\n\tvar $z = Math.sqrt($x * $x + $y * $y) + 0.00002 * Math.sin($y * $x_pi);\n\tvar $theta = Math.atan2($y, $x) + 0.000003 * Math.cos($x * $x_pi);\n\t$coor.$lng = $z * Math.cos($theta) + 0.0065;\n\t$coor.$lat = $z * Math.sin($theta) + 0.006;\n}", "_transformMeasurements () {\n // Append the SVG dom to the document.\n // This allows us to use `getBBox` on the page,\n // which returns the full bounding-box of all drawn SVG\n // elements, similar to how Scratch 2.0 did measurement.\n const svgSpot = document.createElement('span');\n // Since we're adding user-provided SVG to document.body,\n // sanitizing is required. This should not affect bounding box calculation.\n // outerHTML is attribute of Element (and not HTMLElement), so use it instead of\n // calling serializer or toString()\n // NOTE: this._svgTag remains untouched!\n const rawValue = this._svgTag.outerHTML;\n const sanitizedValue = DOMPurify.sanitize(rawValue, {\n // Use SVG profile (no HTML elements)\n USE_PROFILES: {svg: true},\n // Remove some tags that Scratch does not use.\n FORBID_TAGS: ['a', 'audio', 'canvas', 'video'],\n // Allow data URI in image tags (e.g. SVGs converted from bitmap)\n ADD_DATA_URI_TAGS: ['image']\n });\n let bbox;\n try {\n // Insert sanitized value.\n svgSpot.innerHTML = sanitizedValue;\n document.body.appendChild(svgSpot);\n // Take the bounding box. We have to get elements via svgSpot\n // because we added it via innerHTML.\n bbox = svgSpot.children[0].getBBox();\n } finally {\n // Always destroy the element, even if, for example, getBBox throws.\n document.body.removeChild(svgSpot);\n }\n\n // Enlarge the bbox from the largest found stroke width\n // This may have false-positives, but at least the bbox will always\n // contain the full graphic including strokes.\n // If the width or height is zero however, don't enlarge since\n // they won't have a stroke width that needs to be enlarged.\n let halfStrokeWidth;\n if (bbox.width === 0 || bbox.height === 0) {\n halfStrokeWidth = 0;\n } else {\n halfStrokeWidth = this._findLargestStrokeWidth(this._svgTag) / 2;\n }\n const width = bbox.width + (halfStrokeWidth * 2);\n const height = bbox.height + (halfStrokeWidth * 2);\n const x = bbox.x - halfStrokeWidth;\n const y = bbox.y - halfStrokeWidth;\n\n // Set the correct measurements on the SVG tag\n this._svgTag.setAttribute('width', width);\n this._svgTag.setAttribute('height', height);\n this._svgTag.setAttribute('viewBox',\n `${x} ${y} ${width} ${height}`);\n }", "function arcSVG(mx0, my0, r, larc, sweep, mx1, my1) {\n return 'M'+mx0+','+my0+' A'+r+','+r+' 0 '+larc+','+sweep+' '+mx1+','+my1;\n }", "function main () {\n var request = new XMLHttpRequest();\n request.open(\"GET\", svgFile, false);\n request.overrideMimeType(\"application/xml\");\n request.send(null);\n \n \n \n if (request.status === 200) {\n var des = deserialize(request.responseText, undefuned, {output: \"csg\"});\n console.log(des)\n /*\n var m = Array.from(request.responseText.matchAll(pathPattern), x => x[1]);\n for (var i = 0; i < m.length; i++) {\n var s = m[i];\n var bla = 0;\n var path;\n while (s.length > 0) {\n bla++;\n if (s.startsWith(\"m\")) {\n var coords = s.match(movePattern);\n s = s.substring(coords[0].length);\n path = new CSG.Path2D([[coords[1],coords[2]]]);\n console.log(coords);\n console.log(s);\n }\n if (s.startsWith(\"c\")) {\n var coords = s.match()\n }\n if (bla > 10) break;\n }\n }\n */\n return cube(10,10,10);\n }\n return cube(1,1,1);\n}", "getResidueCoordinates(r, renderedInteractor) {\n let x = renderedInteractor.getResXwithStickZoom(r) * this.controller.z;\n let y = 0;\n if (renderedInteractor.stickZoom >= 8) { //if sequence shown\n const from = this.renderedFromProtein,\n to = this.renderedToProtein;\n const deltaX = from.ix - to.ix;\n const deltaY = from.iy - to.iy;\n const angleBetweenMidPoints = Math.atan2(deltaY, deltaX);\n //todo: tidy up trig code so everything is always in radians?\n let abmpDeg = angleBetweenMidPoints / (2 * Math.PI) * 360;\n if (abmpDeg < 0) {\n abmpDeg += 360;\n }\n\n let out; //'out' is value we use to decide which side of letter the line is drawn\n if (renderedInteractor === from) {\n out = (abmpDeg - from.rotation);\n if (out < 0) {\n out += 360;\n }\n let fyOffset = 5;\n if (out < 180) {\n fyOffset = -5;\n }\n\n y = fyOffset * this.controller.z;\n } else { // renderedInteractor === to\n out = (abmpDeg - to.rotation);\n if (out < 0) {\n out += 360;\n }\n let tyOffset = 5;\n if (out > 180) {\n tyOffset = -5;\n }\n y = tyOffset * this.controller.z;\n }\n }\n\n const rotated = rotatePointAboutPoint([x, y], [0, 0], renderedInteractor.rotation);\n\n x = rotated[0] + renderedInteractor.ix;\n y = rotated[1] + renderedInteractor.iy;\n return [x, y];\n }", "function trackTransforms(ctx) {\n var svg = document.createElementNS(\"http://www.w3.org/2000/svg\", 'svg');\n var xform = svg.createSVGMatrix();\n ctx.getTransform = function() { return xform; };\n\n var savedTransforms = [];\n var save = ctx.save;\n ctx.save = function() {\n savedTransforms.push(xform.translate(0, 0));\n return save.call(ctx);\n };\n var restore = ctx.restore;\n ctx.restore = function() {\n xform = savedTransforms.pop();\n return restore.call(ctx);\n };\n\n var scale = ctx.scale;\n ctx.scale = function(sx, sy) {\n xform = xform.scaleNonUniform(sx, sy);\n return scale.call(ctx, sx, sy);\n };\n var rotate = ctx.rotate;\n ctx.rotate = function(radians) {\n xform = xform.rotate(radians * 180 / Math.PI);\n return rotate.call(ctx, radians);\n };\n var translate = ctx.translate;\n ctx.translate = function(dx, dy) {\n xform = xform.translate(dx, dy);\n return translate.call(ctx, dx, dy);\n };\n var transform = ctx.transform;\n ctx.transform = function(a, b, c, d, e, f) {\n var m2 = svg.createSVGMatrix();\n m2.a = a;\n m2.b = b;\n m2.c = c;\n m2.d = d;\n m2.e = e;\n m2.f = f;\n xform = xform.multiply(m2);\n return transform.call(ctx, a, b, c, d, e, f);\n };\n var setTransform = ctx.setTransform;\n ctx.setTransform = function(a, b, c, d, e, f) {\n xform.a = a;\n xform.b = b;\n xform.c = c;\n xform.d = d;\n xform.e = e;\n xform.f = f;\n return setTransform.call(ctx, a, b, c, d, e, f);\n };\n var pt = svg.createSVGPoint();\n ctx.transformedPoint = function(x, y) {\n pt.x = x;\n pt.y = y;\n return pt.matrixTransform(xform.inverse());\n }\n}", "function Kg(a){var b;q&&(b=workarea.If());var c=D(\"xml\");a=Ka(a,!0);for(var d=0,e;e=a[d];d++){var h=Lg(e);e=e.ga();h.setAttribute(\"x\",q?b-e.x:e.x);h.setAttribute(\"y\",e.y);c.appendChild(h)}return c}", "pt() {\n\t\tlet [x, y] = this.cursor;\n\t\treturn document.querySelector(`svg rect[data-x=\"${x}\"][data-y=\"${y}\"]`);\n\t}", "function crepuscolo(njd,tempo_rif,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo astronomico.\n // FUNZIONE DA ELIMINARE e sostituire con crepuscolo_UT\n \n var tempo_rifst=0; // tempo di riferimento per il sorgere e il tramonto.\n // \nif (tempo_rif==\"TL\") { tempo_rifst=-fuso_loc(); } // riferimento al tempo locale.\nelse if (tempo_rif==\"TU\") { tempo_rifst=0 ;} // il riferimento rimane il TU\n\n\n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1];\n\n var LATr=latitudine/180*Math.PI;\n var DEr=DEs/180*Math.PI;\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr));\n\n var H1=Math.acos((Math.cos(1.88495556)-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= H*180/Math.PI;\n var H1=H1*180/Math.PI;\n\n var T=((H1-H)/15)*0.9973;\n\n// new Array(azimut_sorgere,azimut_tramonto,tempo_sorgere,tempo_transito,tempo_tramonto)\n// 0 1 2 3 4\n\n var p_sole=ST_ASTRO_DATA(njd,ps_sole[0],ps_sole[1],longitudine,latitudine,altitudine,0.25);\n\n var crep_m=ore_24(p_sole[2]-T+tempo_rifst); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T+tempo_rifst); // crepuscolo serale\n\n crep_m=sc_ore_hm(crep_m); // crepuscolo del mattino.\n crep_s=sc_ore_hm(crep_s); // crepuscolo serale\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function positionLineSvg() {\n if (zoomLevel !== map.getZoom()) {\n zoomLevel = map.getZoom();\n\n let droneSvgContainer = d3.select(map.getPanes().mapPane).selectAll(\".lineSvg\");\n\n droneSvgContainer.style(\"transform\", function (d) {\n let width = d3.select(this).attr(\"width\");\n let droneLL = [\n d.domain.coordinate.latitude,\n d.domain.coordinate.longitude\n ];\n return (\n \"translate3d(\" +\n map.latLngToLayerPoint(droneLL).x +\n \"px, \" +\n map.latLngToLayerPoint(droneLL).y +\n \"px, 0px) scale(\" +\n getScale() +\n \") translate3d(\" +\n (width / 2) * -1 +\n \"px, \" +\n (width / 2) * -1 +\n \"px, 0px)\"\n );\n });\n droneSvgContainer.attr(\"transform-origin\", () => {\n return `\n 0 0 `;\n });\n }\n}", "function Hg(a){var b;C&&(b=a.Mf());var c=A(\"xml\");a=Vc(a,!0);for(var d=0,e;e=a[d];d++){var g=Ig(e);e=e.ma();g.setAttribute(\"x\",C?b-e.x:e.x);g.setAttribute(\"y\",e.y);c.appendChild(g)}return c}", "function GuardarPunto() {\n\t// this should work\nvar valor=capa_punto.features[0].geometry.getVertices()[0];\n//var valor1=valor\nvalor2= valor.transform(map.getProjectionObject(), new OpenLayers.Projection(\"EPSG:4326\"));\n\n//document.getElementById('formulario:punto_select_x');y\n\n//var toProjection = new OpenLayers.Projection(\"EPSG:4326\");\n//var lonLat = valor.transform(map.getProjectionObject(), toProjection);\n\n//alert (\"valor x \"+ valor.x + \" valor y \"+ valor.y);\n\nvar x =document.getElementById('formulario:punto_select_x');\nvar y=document.getElementById('formulario:punto_select_y');\n\nx.value=valor.x;\ny.value=valor.y;\n\n\n}", "function buildSvgFullyOptimized() {\n\t\t\n\t\tlet svgElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'svg');\n \tsvgElement.setAttribute('viewBox','0 0 103.1 103.1');\n \tsvgElement.setAttribute('class','optimization-empty-svg mt-5 svg-absolute-center');\n \t\n \tlet gElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'g');\n \t\n \tlet pathElement1 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement1.setAttribute('class','optimization-empty-path-0');\n \tpathElement1.setAttribute('d','M51.5,0C23.1,0,0,23.1,0,51.5c0,28.5,23.1,51.5,51.5,51.5c3.7,0,7.3-0.4,10.7-1.1c22.8-4.8,40-24.8,40.8-48.8 c0-0.5,0-1.1,0-1.6C103.1,23.1,80,0,51.5,0z M67,90.2c-0.1,0.2-0.2,0.3-0.4,0.4c-4.9,1.6-11.6,2.4-15.8,2.4 c-3.6,0-10.2-0.8-15.3-2.3c-0.2-0.1-0.3-0.2-0.4-0.4c-0.1-0.2,0-0.4,0.1-0.5l4.2-5.8c0.1-0.2,0.3-0.2,0.5-0.2h23 c0.2,0,0.4,0.1,0.5,0.3l3.5,5.7C67.1,89.8,67.1,90,67,90.2z M97,51.8c-0.1,17-9.5,31.7-23.3,39.5l-6.5-10.4 c-0.8-1.3-2.2-2.1-3.7-2.1H39.4c-1.4,0-2.7,0.7-3.6,1.8l-7.4,10.1C15.1,82.9,6,68.3,6,51.5C6,26.4,26.4,6,51.5,6h0.3 C76.8,6.2,97,26.5,97,51.5V51.8z');\n \tgElement.appendChild(pathElement1);\n \t\n \tlet pathElement2 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement2.setAttribute('class','optimization-empty-path-1');\n \tpathElement2.setAttribute('d','M63.4,84c-0.1-0.2-0.3-0.3-0.5-0.3h-23c-0.2,0-0.4,0.1-0.5,0.2l-4.2,5.8c-0.1,0.2-0.1,0.4-0.1,0.5 c0.1,0.2,0.2,0.3,0.4,0.4c5.1,1.5,11.7,2.3,15.3,2.3c4.2,0,10.9-0.7,15.8-2.4c0.2-0.1,0.3-0.2,0.4-0.4c0.1-0.2,0-0.4-0.1-0.5 L63.4,84z');\n \tgElement.appendChild(pathElement2);\n \t\n \tlet pathElement3 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement3.setAttribute('class','optimization-empty-path-1');\n \tpathElement3.setAttribute('d','M51.8,6h-0.3C26.4,6,6,26.4,6,51.5c0,16.7,9,31.3,22.4,39.2l7.4-10.1c0.8-1.1,2.2-1.8,3.6-1.8h24.1 c1.5,0,2.9,0.8,3.7,2.1l6.5,10.4C87.6,83.5,96.9,68.8,97,51.8v-0.3C97,26.5,76.8,6.2,51.8,6z M20.2,52.8c0,0.3-0.1,0.6-0.3,0.8 c-0.2,0.2-0.5,0.3-0.8,0.3h-8.3c-0.6,0-1.1-0.5-1.1-1.1l0-2.4c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3H19 c0.6,0,1.1,0.5,1.1,1.1V52.8z M30.2,76.2l-5.9,5.9c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3L21,80.3 c-0.2-0.2-0.3-0.5-0.3-0.8s0.1-0.6,0.3-0.8l5.9-5.9c0.2-0.2,0.5-0.3,0.8-0.3s0.6,0.1,0.8,0.3l1.7,1.7c0.2,0.2,0.3,0.5,0.3,0.8 C30.5,75.7,30.4,76,30.2,76.2z M30.2,28.5l-1.7,1.7c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3L21,24.3 c-0.4-0.4-0.4-1.1,0-1.6l1.7-1.7c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.9,5.9C30.6,27.4,30.6,28.1,30.2,28.5z M49.2,10.7c0-0.6,0.5-1.1,1.1-1.1h2.4c0.6,0,1.1,0.5,1.1,1.1V19c0,0.6-0.5,1.1-1.1,1.1h-2.4c-0.6,0-1.1-0.5-1.1-1.1V10.7z M57,49.6c0.3,0.5,0.5,1.1,0.7,1.8c0.8,3.8-1.5,7.5-5.3,8.4c-3.8,0.8-7.5-1.5-8.4-5.3c-0.8-3.8,1.5-7.5,5.3-8.3 c0.5-0.1,0.9-0.2,1.3-0.2l19.6-26.7L57,49.6z M93.4,53.3C93,64.4,87.9,75.4,80.3,82.1c-0.2,0.2-0.5,0.3-0.7,0.3l0,0 c-0.3,0-0.6-0.1-0.8-0.3l-5.9-5.9c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8l1.7-1.7c0.2-0.2,0.5-0.3,0.8-0.3 s0.6,0.1,0.8,0.3l3.6,3.6c5.6-6.4,8.7-14.2,9.3-22.6l-5,0c-0.3,0-0.6-0.1-0.8-0.3c-0.2-0.2-0.3-0.5-0.3-0.8v-2.4 c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3h5c-0.5-8.4-3.7-16.3-9.3-22.6l-3.6,3.6c-0.2,0.2-0.5,0.3-0.8,0.3s-0.6-0.1-0.8-0.3 l-1.7-1.7c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8l5.9-5.9c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.5,0.1,0.7,0.3 c7.6,6.7,12.7,17.8,13.1,28.9C93.5,51.4,93.5,51.5,93.4,53.3z');\n \tgElement.appendChild(pathElement3);\n \t\n \tlet pathElement4 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement4.setAttribute('class','optimization-meter all-optimized');\n \tpathElement4.setAttribute('d','M80.3,21c-0.2-0.2-0.5-0.3-0.7-0.3c-0.3,0-0.6,0.1-0.8,0.3l-5.9,5.9c-0.2,0.2-0.3,0.5-0.3,0.8 c0,0.3,0.1,0.6,0.3,0.8l1.7,1.7c0.2,0.2,0.5,0.3,0.8,0.3s0.6-0.1,0.8-0.3l3.6-3.6c5.6,6.4,8.7,14.2,9.3,22.6h-5 c-0.3,0-0.6,0.1-0.8,0.3c-0.2,0.2-0.3,0.5-0.3,0.8v2.4c0,0.3,0.1,0.6,0.3,0.8c0.2,0.2,0.5,0.3,0.8,0.3l5,0 c-0.5,8.4-3.7,16.3-9.3,22.6l-3.6-3.6c-0.2-0.2-0.5-0.3-0.8-0.3s-0.6,0.1-0.8,0.3l-1.7,1.7c-0.2,0.2-0.3,0.5-0.3,0.8 c0,0.3,0.1,0.6,0.3,0.8l5.9,5.9c0.2,0.2,0.5,0.3,0.8,0.3l0,0c0.3,0,0.5-0.1,0.7-0.3c7.6-6.7,12.7-17.8,13.1-28.9 c0.1-1.8,0.1-1.8,0-3.4C93,38.7,87.9,27.7,80.3,21z');\n \tgElement.appendChild(pathElement4);\n \t\n \tlet pathElement5 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement5.setAttribute('class','optimization-meter all-optimized');\n \tpathElement5.setAttribute('d','M49.3,46.1c-3.8,0.8-6.1,4.6-5.3,8.3c0.8,3.8,4.6,6.1,8.4,5.3c3.8-0.8,6.1-4.6,5.3-8.4 c-0.2-0.6-0.4-1.2-0.7-1.8l13.2-30.4L50.6,46C50.2,46,49.8,46,49.3,46.1z');\n \tgElement.appendChild(pathElement5);\n \t\n \tlet pathElement6 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement6.setAttribute('class','optimization-empty-path-2');\n \tpathElement6.setAttribute('d','M50.3,20.2h2.4c0.6,0,1.1-0.5,1.1-1.1v-8.3c0-0.6-0.5-1.1-1.1-1.1h-2.4c-0.6,0-1.1,0.5-1.1,1.1V19 C49.2,19.7,49.7,20.2,50.3,20.2z');\n \tgElement.appendChild(pathElement6);\n \t\n \tlet pathElement7 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement7.setAttribute('class','optimization-empty-path-2');\n \tpathElement7.setAttribute('d','M24.3,21c-0.2-0.2-0.5-0.3-0.8-0.3c-0.3,0-0.6,0.1-0.8,0.3L21,22.8c-0.4,0.4-0.4,1.1,0,1.6l5.9,5.9 c0.2,0.2,0.5,0.3,0.8,0.3c0.3,0,0.6-0.1,0.8-0.3l1.7-1.7c0.4-0.4,0.4-1.1,0-1.6L24.3,21z');\n \tgElement.appendChild(pathElement7);\n \t\n \tlet pathElement8 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement8.setAttribute('class','optimization-empty-path-2');\n \tpathElement8.setAttribute('d','M19,49.2h-8.3c-0.3,0-0.6,0.1-0.8,0.3c-0.2,0.2-0.3,0.5-0.3,0.8l0,2.4c0,0.6,0.5,1.1,1.1,1.1H19 c0.3,0,0.6-0.1,0.8-0.3c0.2-0.2,0.3-0.5,0.3-0.8v-2.4C20.2,49.7,19.7,49.2,19,49.2z');\n \tgElement.appendChild(pathElement8);\n \t\n \tlet pathElement9 = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n \tpathElement9.setAttribute('class','optimization-empty-path-2');\n \tpathElement9.setAttribute('d','M28.5,72.9c-0.2-0.2-0.5-0.3-0.8-0.3s-0.6,0.1-0.8,0.3L21,78.8c-0.2,0.2-0.3,0.5-0.3,0.8s0.1,0.6,0.3,0.8 l1.7,1.7c0.2,0.2,0.5,0.3,0.8,0.3c0.3,0,0.6-0.1,0.8-0.3l5.9-5.9c0.2-0.2,0.3-0.5,0.3-0.8c0-0.3-0.1-0.6-0.3-0.8L28.5,72.9z');\n \tgElement.appendChild(pathElement9);\n \t\n \tsvgElement.appendChild(gElement);\n \t\n \treturn svgElement;\n\t}", "boundaryToSVG() {\n var points = this.getOrientedEdges();\n var svgString = \"M\";\n for (var i = 0; i < points.length; i++) {\n var point = points[i];\n svgString += point.x.toString() + \" \" + point.y.toString() + \" \";\n }\n svgString += points[0].x.toString() + \" \" + points[0].y.toString() + \" \";\n this.svg = svgString;\n return svgString;\n }", "function Maths(){\n /**getting the correct location for translated elements is a nightmare (but a\n necessary one, because we want to use <g> tags to group our elements and the\n only way to locate a <g> correctly is.... translate! Thankfully, this SO person\n is Good People: https://stackoverflow.com/questions/26049488/how-to-get-absolute-coordinates-of-object-inside-a-g-group\n **/\n var intersection = function(lines) {\n return doLineSegmentsIntersect(lines.box.start, lines.box.end, lines.link.start, lines.link.end);\n }\n var boxLineIntersection = function(rectangle, line, previousLine, prevlinecoord) {\n //maths here to deconstruct the box into 4 lines and see if any of them\n //intersect with the box. Return which line and the coords.\n var box = rectangle.node.getBBox();\n box.center = {\n x: rectangle.getCenterX(),\n y: rectangle.getCenterY()\n }\n\n //note we could proceed straight to x and y coords of the lines but I feel\n //it's easier to read and understand by defining each corner with a name first.\n var corners = {\n topleft: {\n x: box.x,\n y: box.y\n },\n topright: {\n x: box.x + box.width,\n y: box.y\n },\n bottomleft: {\n x: box.x,\n y: box.y + box.height\n },\n bottomright: {\n x: box.x + box.width,\n y: box.y + box.height\n }\n },\n lines = {\n top: {\n start: corners.topleft,\n end: corners.topright\n },\n right: {\n start: corners.topright,\n end: corners.bottomright\n },\n bottom: {\n start: corners.bottomleft,\n end: corners.bottomright\n },\n left: {\n start: corners.topleft,\n end: corners.bottomleft\n }\n },\n overlapper = null,\n newEndpoint = {\n x: null,\n y: null\n }\n\n //it should overlap one of the four lines in the target box since we are\n //calculating from the center of the box\n for (var lineorientation in lines) {\n var intersects = intersection({\n box: lines[lineorientation],\n link: {\n start: line.source,\n end: line.target\n }\n });\n //debugger;\n if (intersects) {\n overlapper = lineorientation;\n }\n }\n\n\n //special case: the top and bottom of binding site boxes have ct:bind and\n //binding sites located on them. We don't want to draw arrows on top of the boxes.\n switch (overlapper) {\n case \"top\":\n newEndpoint = {\n x: box.center.x,\n y: box.y - 4\n }\n break;\n case \"bottom\":\n newEndpoint = {\n x: box.center.x,\n y: box.y + box.height + 4\n }\n break;\n case \"left\":\n newEndpoint = {\n x: box.x,\n y: box.center.y\n }\n break;\n case \"right\":\n newEndpoint = {\n x: box.x + box.width,\n y: box.center.y\n }\n break;\n case \"previous\":\n newEndpoint = {\n x: previousLine.getAttribute(\"x\" + prevlinecoord),\n y: previousLine.getAttribute(\"y\" + prevlinecoord)\n }\n console.log(\"%cnewEndpoint\", \"color:turquoise;font-weight:bold;\", newEndpoint);\n break;\n\n default:\n newEndpoint = {\n x: box.center.x,\n y: box.center.y\n }\n }\n\n return newEndpoint;\n }\n var lineEnds = function (box1, box2) {\n //takes bbox for each of two boxes\n //get minx, maxx, miny, maxy for the box corners.\n //determine which sides overlap, if any.\n\n //3 cases:\n ////1: No overlapping side. two closest xy corner pairs become the ends. Easiest. Return these pairs.\n ////2: the Y coords overlap. This means the lines will be on the two closest X coords.\n ////3: the X coords overlap. Flip case of 2. This means the lines will be on the two closest Y coords.\n\n //Cases 2 & 3 require some more calculations but are reverse of each other.\n //Case 2: the X of both lines are known, we need to calculate where the Y is. To do this:\n //calculate the length: Take the min overlapping y and its closest y, and subtract one from the other. The absolute value of this is the length of overlap\n //calculate the actual join locations: length/2 gives us the midpoint in the overlap. Add this number to the min Y of each of the two lines. Voila! I think this is the algorithm we want\n\n }\n return { boxLineIntersection: boxLineIntersection};\n}", "renderExtras(svg, data, x, y) {\n }", "function calcSVGTransformOrigin(dimensions, originX, originY) {\n var pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);\n var pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);\n return pxOriginX + \" \" + pxOriginY;\n}", "function calcSVGTransformOrigin(dimensions, originX, originY) {\n var pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);\n var pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);\n return pxOriginX + \" \" + pxOriginY;\n}", "function calcSVGTransformOrigin(dimensions, originX, originY) {\n var pxOriginX = calcOrigin(originX, dimensions.x, dimensions.width);\n var pxOriginY = calcOrigin(originY, dimensions.y, dimensions.height);\n return pxOriginX + \" \" + pxOriginY;\n}", "function assembleShape() {\r\n\r\n\t\tvar spacing = 0,\r\n\t\t\tXoffset\t= offsetSVG,\r\n\t\t\tYoffset\t= 208,\r\n\t\t\tpixelCount = 0;\r\n\r\n\t\tfor (var i = 0; i < nodes.length; i++) {\r\n\t\t\tnodes[i].setTarget(Xoffset + Number(shapeSVG[i][0]), Yoffset + Number(shapeSVG[i][1]), Number(shapeSVG[i][2]));\r\n\t\t}\r\n\t}", "createSvgTri() {\n\t\tthis.tri = document.createElementNS(svgns, 'polygon');\n\t\tthis.tri.setAttribute('points', `${this.p1.x} ${this.p1.y} ${this.p2.x} ${this.p2.y} ${this.p3.x} ${this.p3.y}`);\n\t\tthis.tri.setAttribute('fill', `${this.color}`);\n\n // inject triangle element into svg element\n\t\tconsole.log('injecting triangle');\n element.appendChild(this.tri);\n\t}", "function decorateSVG (from_svg) {\n var clone = from_svg.cloneNode(true);\n // Remove the defs and the therapeutic area labels\n d3.select(clone)\n .select('defs')\n .remove();\n d3.select(clone)\n .selectAll('.topLabel')\n .remove();\n\n // Move the bubbles view to the right to leave space for the new TA labels\n // var currWidth = d3.select(clone).attr(\"width\");\n // d3.select(clone).attr(\"width\", ~~currWidth + offset);\n // d3.select(clone).select(\"g\").attr(\"transform\", \"translate(\" + offset + \",0)\");\n\n // Get all therapeutic area labels on a side\n var g = d3.select(clone).select('g');\n var root = d3.select('.bubblesViewRoot')\n .datum();\n\n function okOverlaps (p, angle, others) {\n for (var o in others) {\n // Overlap\n if ((Math.abs(others[o].y - p.y) < 10) && (Math.abs(angle - others[o].angle) < 0.2)) {\n return false;\n }\n }\n return true;\n }\n\n function getPos (init, angle) {\n var p = {};\n p.x = init.x + (init.r * Math.cos(angle));\n p.y = init.y + (init.r * Math.sin(angle));\n return p;\n }\n var labelPositions = {};\n var taBubbles = d3.selectAll('.bubblesViewInternal')\n .each(function (d, i) {\n // i=0 is the root circle\n if (!i) {\n return;\n }\n // Calculate angle\n var angleRadians = Math.atan2(d.y - root.y, d.x - root.x);\n\n // angleRadians = angleRadians < 0 ? angleRadians + 360 : angleRadians;\n // Find the projection of the line in the root bubble\n var ok = false;\n var p1 = getPos(d, angleRadians);\n var p2;\n var ntries = 0;\n while (!ok && ntries < 50) {\n ntries++;\n p2 = getPos(root, angleRadians);\n ok = okOverlaps(p2, angleRadians, labelPositions);\n // ok = true;\n if (!ok) {\n if ((angleRadians > 0) && (angleRadians < 90)) {\n angleRadians = angleRadians - 0.02;\n } else if ((angleRadians > 90) && (angleRadians < 180)) {\n angleRadians = angleRadians + 0.02;\n } else if ((angleRadians < 0) && (angleRadians > -90)) {\n angleRadians = angleRadians + 0.02;\n } else {\n angleRadians = angleRadians - 0.02;\n }\n // angleRadians = angleRadians + 0.02;\n }\n }\n labelPositions[d.__id] = {\n x: p2.x,\n y: p2.y,\n angle: angleRadians\n };\n // var p = getPos(d, angleRadians);\n // var x1 = d.x + (d.r * Math.cos(angleRadians));\n // var y1 = d.y + (d.r * Math.sin(angleRadians));\n // var x2 = root.x + (root.r * Math.cos(angleRadians));\n // var y2 = root.y + (root.r * Math.sin(angleRadians));\n\n g\n .append('line')\n .attr('class', 'TA-label')\n .attr('x1', p1.x)\n .attr('y1', p1.y)\n .attr('x2', p2.x)\n .attr('y2', p2.y)\n .attr('stroke', 'gray');\n g\n .append('g')\n .attr('transform', 'translate(' + p2.x + ',' + p2.y + ')')\n .append('text')\n .style('font-size', '12px')\n .style('text-anchor', function () {\n var angle = (angleRadians * 180 / Math.PI);\n if ((angle < -90) || (angle > 90)) {\n return 'end';\n }\n return 'start';\n })\n .text(function () {\n return d.name;\n });\n });\n\n // Resize the whole div\n var longestLabel = '';\n taBubbles\n .each(function (d) {\n if (d.name.length > longestLabel.length) {\n longestLabel = d.name;\n }\n });\n var l = longestLabel.length * 6;\n var currWidth = ~~d3.select(clone).attr('width');\n var currHeight = ~~d3.select(clone).attr('height');\n d3.select(clone)\n .attr('width', currWidth + l * 2)\n .attr('height', currHeight + 50);\n g.attr('transform', 'translate(' + l + ',' + '25)');\n\n return clone;\n }", "function getLinePathStr(ps/*: number[][]*/) {\r\n let [[x0,y0],[x1,y1]] = ps;\r\n return `M${x0} ${y0} L${x1} ${y1}`;\r\n}", "function transform(d) {\n return \"translate(\" + d.x + \",\" + d.y + \")\";\n }", "function polypoint(w, h, sides, steps) {\n\n let centerX, centerY, lengthX, lengthY;\n let d, endpoint\n\n // find center point\n centerX = ( h/2 );\n centerY = ( w/2 );\n lengthX = (centerX-(h%steps) );\n lengthY = (centerY-(w%steps) );\n stepX = lengthX/steps\n stepY = lengthY/steps\n //_______ find end points_______\n // d = (2*pi/side) => d = ( 2*(Math.PI/side) )\n // will return the angle for\n d = angles(sides)\n // find the coords for each one. and return them as a tuple array to 2 decimals\n endpoints= new Array(sides).fill([])\n data = new Object\n\n for (let i = 0; i < sides; i++) {\n\n data[`_${i}`]={\n x:[Math.round( (lengthX*Math.cos(d*i)) +centerX)],\n y:[Math.round( (lengthY*Math.sin(d*i)) +centerY)]\n }\n\n endpoints[i] = [\n Math.round( (lengthX*Math.cos(d*i)) +centerX),\n Math.round( (lengthY*Math.sin(d*i)) +centerY)\n ];\n }\n endpoints.reverse()\n console.log(`endpoints ${endpoints}`.red);\n console.log(`data`.red, data);\n console.log(`variables lengthX ${lengthX}, lengthY ${lengthY}`.blue);\n console.log(`variables centerX ${centerX}, centerY ${centerY}`.blue);\n\n // there are steps involving changing it to a SVG coord system\n\n // create the step arrays.\n // find step length\nconsole.log(\"endpoints\".blue,endpoints);\n for (let i = 0; i < endpoints.length; i++) {\n for (let j = 1; j < sides; j++) {\n if (centerX < endpoints[i][0]) {//\n\n endpoints[i].push(centerX,endpoints[i][1]-j*stepX)\n\n }else if (centerX > endpoints[i][0]) {//\n\n endpoints[i].push(centerX,endpoints[i][1]+j*stepX)\n\n }else if (centerX == endpoints[i][0] ) {\n\n endpoints[i].push(endpoints[i][0]+j*stepX,centerX)\n\n }else if (centerY < endpoints[i][1]) {\n\n endpoints[i].push(endpoints[i][1]-j*stepY,centerY)\n\n }\n else if (centerY > endpoints[i][1]) {\n\n endpoints[i].push(endpoints[i][1]+j*stepY,centerY)\n\n }else if (centerY == endpoints[i][1] ) {\n\n endpoints[i].push(endpoints[i][1]+j*stepY,centerY)\n\n }\n }\n }\n console.log(\"endpoints\".green,endpoints);\n for (let i = 0; i < endpoints.length; i++) {\n if (i%2 == 0) {// reverse in pairs\n endpoints[i].reverse()\n }\n }\n console.log(\"endpoints\".green,endpoints);\n /*\n\n console.log(`endpoints`.red,endpoints );\n console.log(`variables lengthX ${lengthX}, lengthY ${lengthY}`.blue);\n console.log(`variables centerX ${centerX}, centerY ${centerY}`.blue);\n\n*/\n\n/*\n{\n _1:{ x:[1,2,4,5],y:[1,2,3,4] },\n _2:{ x:[1,2,4,5],y:[1,2,3,4] },\n _3:{ x:[1,2,4,5],y:[1,2,3,4] },\n _4:{ x:[1,2,4,5],y:[1,2,3,4] }\n}\n*/\n\n\n console.log(\n `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${w}px\" height=\"${h}\" viewbox=\"0 0 ${w} ${h}\">\n <g class=\"polypoint\" id=\"_${sides}_${steps}\">`.green\n +\n `<polygon points=\"${endpoints}\" />`.green\n +\n `</g>\n </svg>`.green);\n}", "function coordinates() {\n// If the coordinates were originally written with colons, insure that the whole numbers\n// have preceding zeros to make them be 2-digit values: \n// NOTE: we do not filter the text to at least eliminate white space as we do for\n// other technical terms because the presence of white space delineating the ra and dec\n// in the absence of a \"+\" or \"-\" is essential in recognizing the text as a coordinate\n // ------------------ (14)( : 5)( : 45)( . 876566)( )(76)( : 2)( : 15)( . 1234)\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:[0-9](?![0-9]))|(?:2[0-3])))/, // (14) 1\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( : 5) 2\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( : 45) 3 ?\n /( *\\. *[0-9]+)?/, // ( . 876566) 4 ?\n /( +[\\+\\-]{0,1} *)/, // ( ) 5\n /((?:(?:[0-8][0-9])|(?:[0-9](?![0-9]))))/, // (76) 6\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( : 2) 7\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( : 15) 8 ?\n /( *\\. *[0-9]+)?/ // ( . 1234) 9 ?\n ].map(z => z.source).join(''))).source,\n \"nChars\":\"21\", \"type\":\"ra\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVals\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[2]; \n return tmp[0];\n } else {return ''; } } });\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:[0-9](?![0-9]))|(?:2[0-3])))/, // (14) 1\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( : 5) 2\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( : 45) 3 ?\n /( *\\. *[0-9]+)?/, // ( . 876566) 4 ?\n /( +[\\+\\-]{0,1} *)/, // ( ) 5\n /((?:(?:[0-8][0-9])|(?:[0-9](?![0-9]))))/, // (76) 6\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( : 2) 7\n /( *\\: *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( : 15) 8 ?\n /( *\\. *[0-9]+)?/ // ( . 1234) 9 ?\n ].map(z => z.source).join(''))).source,\n \"nChars\":\"21\", \"type\":\"dec\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVals\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[3]; \n return tmp[1];\n } else {return ''; } } });\n // ------------------ (04 hr)( 3 min)( 1 sec)( . 345 )( )(77 deg)( 35 min)( 5 sec)( . 11 )\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:[0-9](?![0-9]))|(?:2[0-3])) *(?:(?:hours)|(?:hour)|(?:hrs)|(?:hr)|(?:h)))/, // (04 hr) 1\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m))?)/, // ( 3 min?) 2\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:seconds)|(?:second)|(?:sec)|(?:s))?)?/, // ( 1 sec) 3 ?\n /( *(?:\\. *[0-9]+)? *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m)|(?:seconds)|(?:second)|(?:sec)|(?:s)))?/, // ( . 345) 4 ?\n /( *[\\+\\-]{0,1}) */, // ( ) 5\n /((?:(?:[0-8][0-9])|(?:[0-9](?![0-9]))) *(?:(?:textdegree)|(?:circ)|(?:degrees)|(?:degree)|(?:degs)|(?:deg)|(?:d)))/, // (77 deg) 6\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m))?)/, // ( 35 min?) 7\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:seconds)|(?:second)|(?:sec)|(?:s))?)?/, // ( 5 sec) 8 ?\n /( *(?:\\. *[0-9]+)? *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m)|(?:seconds)|(?:second)|(?:sec)|(?:s)))?/ // ( . 11 ) 9 ?\n ].map(z => z.source).join(''))).source,\n \"nChars\":\"34\", \"type\":\"ra\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVars\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[2];\n return tmp[0];\n } else {return ''; } } });\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:[0-9](?![0-9]))|(?:2[0-3])) *(?:(?:hours)|(?:hour)|(?:hrs)|(?:hr)|(?:h)))/, // (04 hr) 1\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m))?)/, // ( 3 min?) 2\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:seconds)|(?:second)|(?:sec)|(?:s))?)?/, // ( 1 sec) 3 ?\n /( *(?:\\. *[0-9]+)? *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m)|(?:seconds)|(?:second)|(?:sec)|(?:s)))?/, // ( . 345) 4 ?\n /( *[\\+\\-]{0,1}) */, // ( ) 5\n /((?:(?:[0-8][0-9])|(?:[0-9](?![0-9]))) *(?:(?:textdegree)|(?:circ)|(?:degrees)|(?:degree)|(?:degs)|(?:deg)|(?:d)))/, // (77 deg) 6\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m))?)/, // ( 35 min?) 7\n /( *(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))) *(?:(?:seconds)|(?:second)|(?:sec)|(?:s))?)?/, // ( 5 sec) 8 ?\n /( *(?:\\. *[0-9]+)? *(?:(?:minutes)|(?:minute)|(?:mins)|(?:min)|(?:m)|(?:seconds)|(?:second)|(?:sec)|(?:s)))?/ // ( . 11 ) 9 ?\n ].map(z => z.source).join(''))).source,\n \"nChars\":\"34\", \"type\":\"dec\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVars\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[3];\n return tmp[1];\n } else {return ''; } } });\n // ------------------ (14)( 5)( 45)( . 876566)( +)(76)( 2)( 15)( . 1234)\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:[0-9](?![0-9]))|(?:2[0-3])))/, // (14) 1\n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( 5) 2\n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( 45) 3 ?\n /( *\\. *[0-9]+)?/, // ( . 876566) 4 ?\n /( +[\\+\\-]{0,1} *)/, // ( +) 5\n /((?:[0-8][0-9])|(?:[0-9](?![0-9])))/, // (76) 6 \n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( 2) 7\n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( 15) 8 ?\n /( *\\. *[0-9]+)?/ // ( . 1234) 9 ?\n ].map(z => z.source).join(''))).source, \n \"nChars\":\"18\", \"type\":\"ra\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVars\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[2];\n return tmp[0];\n } else {return ''; } } });\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:[0-9](?![0-9]))|(?:2[0-3])))/, // (14) 1\n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( 5) 2\n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( 45) 3 ?\n /( *\\. *[0-9]+)?/, // ( . 876566) 4 ?\n /( +[\\+\\-]{0,1} *)/, // ( +) 5\n /((?:[0-8][0-9])|(?:[0-9](?![0-9])))/, // (76) 6 \n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))/, // ( 2) 7\n /( +(?:(?:[0-5][0-9])|(?:[0-9](?![0-9]))))?/, // ( 15) 8 ?\n /( *\\. *[0-9]+)?/ // ( . 1234) 9 ?\n ].map(z => z.source).join(''))).source, \n \"nChars\":\"18\", \"type\":\"dec\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVars\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[3];\n return tmp[1];\n } else {return ''; } } });\n // ------------------ (14)(05)(45)(.876566)(-)(76)(15)(.1234) ===> '14:05:45.876556-76:15.1234'\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:2[0-3])))/, // (14) 1\n /([0-5][0-9])/, // (05) 2\n /([0-5][0-9])?/, // (45) 3 ?\n /(\\.[0-9]+)?/, // (.876566) 4 ?\n /([\\+\\-])/, // (-) 5\n /([0-8][0-9])/, // (76) 6\n /([0-5][0-9])/, // (15) 7\n /([0-5][0-9])?/, // () 8\n /(\\.[0-9]+)?/ // (.1234) 9 ?\n ].map(z => z.source).join(''))).source,\n \"nChars\":\"18\", \"type\":\"ra\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVars\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[2];\n return tmp[0];\n } else {return ''; } } });\n xLtr.push({\"reg\": (new RegExp([\n /(^(?:(?:[0-1][0-9])|(?:2[0-3])))/, // (14) 1\n /([0-5][0-9])/, // (05) 2\n /([0-5][0-9])?/, // (45) 3 ?\n /(\\.[0-9]+)?/, // (.876566) 4 ?\n /([\\+\\-])/, // (-) 5\n /([0-8][0-9])/, // (76) 6\n /([0-5][0-9])/, // (15) 7\n /([0-5][0-9])?/, // () 8\n /(\\.[0-9]+)?/ // (.1234) 9 ?\n ].map(z => z.source).join(''))).source,\n \"nChars\":\"18\", \"type\":\"dec\", \"priority\":\"1\", \"x\":\"\", \"xSupp\":\"\", \"nVars\":\"2\",\n \"indx\":function(text, startPos) {\n this.endMatch = \"-1\";\n var m = text.slice(startPos).match(new RegExp('^' + '(?:' + this.reg + ')'));\n if (m) {\n this.endMatch = \"\"+(startPos + m[0].length);\n var tmp = extractRaDecVals(this.reg, text.slice(startPos));\n this.accuracy = tmp[3];\n return tmp[1];\n } else {return ''; } } });\n return;\n }", "function getCubicBezierPathStr(ps/*: number[][]*/) {\r\n let [[x0,y0],[x1,y1],[x2,y2],[x3,y3]] = ps;\r\n return `M${x0} ${y0} C${x1} ${y1} ${x2} ${y2} ${x3} ${y3}`;\r\n}", "function project(d) {\r\n\r\n // console.log(d);\r\n //console.log(map.project(new mapboxgl.LngLat(d[0], d[1])))\r\n return map.project(new mapboxgl.LngLat(d[0], d[1]));\r\n}", "function pos_app_pa(njd,AR,DE,P,LAT,LON,ALT){\n\n // calcola la posizione apparente di un astro - nutazione - aberrazione della luce e parallasse geocentrica.\n // nutazione e aberrazione.\n\nvar cnutab=pos_app(njd,AR,DE); // applica la correzione per la nutazione e l'aberrazione.\n\nvar ARna=cnutab[0]; // ascensione retta.\nvar DEna=cnutab[1]; // declinazione.\n\n // parallasse.\n\nvar cpar= cor_parall(njd,ARna,DEna,P,LAT,LON,ALT); // applica la correzione per la parallasse geocentrica.\n\nvar ARp=cpar[0]; // ascensione retta.\nvar DEp=cpar[1]; // declinazione.\n\nvar RID_COORD=new Array(ARp,DEp); //coordinate equatoriali ridotte. \n\nreturn RID_COORD;\n\n}", "function AstroGeometry() {}", "function getRelativeXY(x, y, svg, element){\n var p = svg.createSVGPoint();\n var ctm = element.getCTM();\n p.x = x;\n p.y = y;\n return p.matrixTransform(ctm);\n}", "function vmap_svg (vmapTree, input, varorder, options) {\n\t/* Generates SVG output for a given vmap tree */\n\n\t// option defaults\n\tconst {vmapPad, strokeC, vmapC, figPad, figC, hideInputLabel, hideOrderLabel, customLabel, fullInputLabel, inputLabelMax, styleClass} = {\n\t\tvmapPad: 0, strokeC: `#fff`, vmapC: `none`, figPad: 0, figC: `#fff`,\n\t\thideInputLabel: false, hideOrderLabel: false, fullInputLabel: false, inputLabelMax: 200, \n\t\tcustomLabel: undefined, styleClass: 'basic',\n\t\t...options};\n\n\tconst design = _dna_svg_styles_js__WEBPACK_IMPORTED_MODULE_1__[\"vmap\"][styleClass];\n\tconst [textSize, font] = [design.textSize, design.font.base];\n\n\tconst {vnum, margins} = vmapTree.data;\n\tconst scale = vmapTree.scale;\n\tconst strokeW = margins[0];\n\t// const len = Math.sqrt(4**vnum); // length of dna without '::'\n\tconst bounds = {w: scale[0] + strokeW, h: scale[1] + strokeW};\n\tconst rhomb = {w: Math.sqrt(2 * (bounds.w**2)), h: Math.sqrt(2 * (bounds.h**2))};\n\n\tconst chart = {tree: vmapTree, input: input, varorder: varorder, options: options};\n\n\t// if (output == 'mixed') {\n\t\t// svg with html wrapper\n\n\t\t// const caption = () => {\n\t\t// \tif (customLabel !== undefined) return `<figcaption style=\"word-wrap: break-word;\">${customLabel}</figcaption>`;\n\t\t// \tif (!(hideInputLabel && hideOrderLabel)) {\n\t\t// \t\tlet label = '';\n\t\t// \t\tif (!hideOrderLabel) label += `${varorder.reduce((acc,curr,i) => acc + (i > 0 ? ' > ' : '') + processLabel(curr),'' )}${hideInputLabel || vnum < 1 ? '' : '<br/>'}`;\n\t\t// \t\tif (!hideInputLabel) {\n\t\t// \t\t\tconst isFormDNA = input.includes('::');\n\t\t// \t\t\tif (isFormDNA) label += `<code style=\"font-size:0.8em;\">${fullInputLabel ? input : truncateStr(input,(input.split('::')[0].length + 4**4),`…(${4**vnum})`)}</code>`;\n\t\t// \t\t\telse label += 'ƒ = '+(fullInputLabel ? input : truncateStr(input,inputLabelMax,`… <i>+more</i>`));\n\t\t// \t\t}\n\t\t// \t\treturn `<figcaption style=\"word-wrap: break-word;\">${label}</figcaption>`;\n\t\t// \t}\n\t\t// \treturn '';\n\t\t// }\n\n\t\t// chart.elem = `<figure class=\"vmap-figure\" style=\"margin: 0;\">\n\t\t// \t<svg class=\"vmap\" style=\"background: ${bgC}; padding: ${vmapPad};\" width=${scale[0]} height=${scale[1]}\n\t\t// \tfill=\"white\" stroke=\"${strokeC}\" stroke-width=\"${strokeW}\"\n\t\t// \tviewBox=\"-${strokeW/2} -${strokeW/2} ${rhomb.w} ${rhomb.h}\">\n\t\t// \t<g transform=\"translate(${0},${rhomb.h/2}) rotate(-45,0,0)\">${ constructSVG(vmapTree) }</g>\n\t\t// \t</svg>\n\t\t// \t${ caption() }\n\t\t// \t</figure>`;\n\n\t// } else {\n\t\t// pure svg output\n\n\t\tconst caption = (input, customLabel) => {\n\t\t\tif (customLabel !== undefined) return customLabel;\n\n\t\t\tlet label = '';\n\t\t\tif (!hideOrderLabel && vnum > 0) {\n\t\t\t\tconst pos = `y=\"0\"`;\n\n\t\t\t\tlabel += orderLabel(varorder, pos, {font: font, textSize: textSize.base});\n\t\t\t}\n\t\t\tif (!hideInputLabel) {\n\t\t\t\tconst isFormDNA = input.includes('::');\n\n\t\t\t\tconst prefix = isFormDNA ? '' : `ƒ = `;\n\t\t\t\tconst truncMax = isFormDNA ? (input.split('::')[0].length + 4**4) : inputLabelMax;\n\t\t\t\tconst truncSuffix = isFormDNA ? `…(${4**vnum})` : `… <tspan style=\"font-style: italic\">+more</tspan>`;\n\n\t\t\t\tconst pos = `y=\"0\"` + (label.length > 0 ? ` dy=\"${textSize.base + textSize.sm - 2}px\"` : '');\n\n\t\t\t\tlabel += inputLabel(input, pos, {prefix: prefix, truncated: !fullInputLabel, truncMax: truncMax, truncSuffix: truncSuffix, font: font, textSize: textSize.sm});\n\t\t\t}\n\t\t\treturn label;\n\t\t}\n\n\t\tconst vmap = {w: (scale[0] + vmapPad), h: (scale[1] + vmapPad)};\n\n\t\tvmap.elem = `<svg class=\"vmap\" width=${vmap.w} height=${vmap.h} viewBox=\"-${strokeW/2 + vmapPad/2} -${strokeW/2 + vmapPad/2} ${rhomb.w + vmapPad} ${rhomb.h + vmapPad}\">\n\t\t\t<rect x=\"-${vmapPad/2}\" y=\"-${vmapPad/2}\" width=\"${rhomb.w + vmapPad}\" height=\"${rhomb.h + vmapPad}\" fill=\"${vmapC}\"></rect>\n\t\t\t<g transform=\"translate(0,${rhomb.h/2}) rotate(-45,0,0)\" stroke=\"${strokeC}\" stroke-width=\"${strokeW}\">${ constructSVG(vmapTree) }</g>\n\t\t</svg>`;\n\n\t\tconst figCaption = {elem: caption(input, customLabel), pos: {x: 0, y: (vmap.h + 10)}};\n\t\tfigCaption.size = Object(_common_helper__WEBPACK_IMPORTED_MODULE_0__[\"getSvgSize\"])(figCaption.elem);\n\n\t\tconst appendSize = [Math.max(0, (figCaption.size.w - vmap.w)),\n\t\t\t\t\t\t\t(figCaption.size.h > 0 ? (figCaption.size.h + (figCaption.pos.y - vmap.h)) : 0)];\n\n\t\tchart.size = {w: (vmap.w + appendSize[0] + figPad), h: (vmap.h + appendSize[1] + figPad)};\n\n\t\tchart.elem = `<svg class=\"vmap-figure\" xmlns=\"http://www.w3.org/2000/svg\" width=\"${chart.size.w}\" height=\"${chart.size.h}\" viewBox=\"-${figPad/2} -${figPad/2} ${chart.size.w} ${chart.size.h}\">\n\t\t\t<rect x=\"-${figPad/2}\" y=\"-${figPad/2}\" width=\"${chart.size.w}\" height=\"${chart.size.h}\" fill=\"${figC}\"></rect>\n\t\t\t<g>${ vmap.elem }</g>\n\t\t\t<g transform=\"translate(${figCaption.pos.x},${figCaption.pos.y})\">${ figCaption.elem }</g>\n\t\t</svg>`;\n\t// }\n\n\treturn chart;\n}", "function createCircle(x,y)\n{\n\t//each segment of the circle is its own circle svg, placed in an array\n\tvar donuts = new Array(9)\n\t\n\t//loop through the array\n\tfor (var i=0;i<9;i++){\n\t\tdonuts[i]=document.createElementNS(\"http://www.w3.org/2000/svg\",\"circle\");\n\t\tdonuts[i].setAttributeNS(null,\"id\",\"d\".concat(i.toString()));\n\t\tdonuts[i].setAttributeNS(null,\"cx\",parseInt(x));\n donuts[i].setAttributeNS(null,\"cy\",parseInt(y));\n\t\tdonuts[i].setAttributeNS(null,\"fill\",\"transparent\");\n\t\tdonuts[i].setAttributeNS(null,\"stroke-width\",3);\n\t\t//each ring of circles has different radius values, and dash-array values\n\t\t//dash array defines what percentage of a full circle is being drawn\n\t\t//for example the inner circle has a radius of 15.91549, 2*pi*15.91549\n\t\t//gives a circumfrence of 100 pixels for the circle, so defining the dasharray as 31 69 means that 31% of 100 pixels is drawn, and 69% is transparent.\n\t\tif (i<3){\n\t\t\t\t\tdonuts[i].setAttributeNS(null,\"r\",15.91549);\n\t\t\t\t\tdonuts[i].setAttributeNS(null,\"stroke-dasharray\",\"31 69\");\n\t\t}\n\t\t//middle ring\n\t\telse if (i<6){\n\t\t\tdonuts[i].setAttributeNS(null,\"r\",19.853);\n\t\t\tdonuts[i].setAttributeNS(null,\"stroke-dasharray\",\"39.185019 85.555059\");\n\t\t}\n\t\t//outer ring\n\t\telse{\n\t\t\tdonuts[i].setAttributeNS(null,\"r\",23.76852);\n\t\t\tdonuts[i].setAttributeNS(null,\"stroke-dasharray\",\"47.335504 102.006512\");\n\t\t}\n\t\t//each point is added to the points SVGs, use insertBefore so that it is drawn below the points rather than above, which allows for click events to still occur\n\t\t document.getElementById(\"points\").insertBefore(donuts[i],document.getElementById(\"points\").childNodes.item(0));\n\t}\n\t//each point has its own colour, dash offset and class. Dash offset is how far from the starting point (top of the circle) to begin drawing the segment\n\t//each class relates to a different css animation because each animation has a different starting point. Animations are defined in component.css\ndonuts[0].setAttributeNS(null,\"stroke-dashoffset\",\"58.33333\" );\n\t\t\t\t\t\tdonuts[0].setAttributeNS(null,\"class\",\"spin1\");\ndonuts[1].setAttributeNS(null,\"stroke-dashoffset\",\"25\");\n\t\t\t\t\t\t\tdonuts[1].setAttributeNS(null,\"class\",\"spin2\");\ndonuts[2].setAttributeNS(null,\"stroke-dashoffset\",\"91.66667\" );\n\t\t\t\t\t\t\tdonuts[2].setAttributeNS(null,\"class\",\"spin3\");\ndonuts[3].setAttributeNS(null,\"stroke-dashoffset\",\"41.18502\" );\n\tdonuts[3].setAttributeNS(null,\"class\",\"spin4\");\ndonuts[4].setAttributeNS(null,\"stroke-dashoffset\",\"82.76505\" );\n\tdonuts[4].setAttributeNS(null,\"class\",\"spin5\");\ndonuts[5].setAttributeNS(null,\"stroke-dashoffset\",\"124.34508\");\n\tdonuts[5].setAttributeNS(null,\"class\",\"spin6\");\ndonuts[6].setAttributeNS(null,\"stroke-dashoffset\",\"56.3355\");\n\tdonuts[6].setAttributeNS(null,\"class\",\"spin7\");\ndonuts[7].setAttributeNS(null,\"stroke-dashoffset\",\"106.11618\");\n\tdonuts[7].setAttributeNS(null,\"class\",\"spin8\");\ndonuts[8].setAttributeNS(null,\"stroke-dashoffset\",\"155.89685\");\n\tdonuts[8].setAttributeNS(null,\"class\",\"spin9\");\ndonuts[0].setAttributeNS(null,\"stroke\",\"#115D6B\");\ndonuts[1].setAttributeNS(null,\"stroke\",\"#D90981\");\ndonuts[2].setAttributeNS(null,\"stroke\",\"#4A3485\");\ndonuts[3].setAttributeNS(null,\"stroke\",\"#F51424\");\ndonuts[4].setAttributeNS(null,\"stroke\",\"#0BA599\");\ndonuts[5].setAttributeNS(null,\"stroke\",\"#1077B5\");\ndonuts[6].setAttributeNS(null,\"stroke\",\"#FA893D\");\ndonuts[7].setAttributeNS(null,\"stroke\",\"#87C537\");\ndonuts[8].setAttributeNS(null,\"stroke\",\"#02B3EE\");\n}", "function update(event) {\n const pt = new DOMPoint(event.clientX, event.clientY) // gives the same coordinates as pt\n const svgP = pt.matrixTransform(toValue(target).getScreenCTM().inverse());\n x.value = svgP.x\n y.value = svgP.y\n }", "function cs_geocentric_from_wgs84( defn, p ) {\n\n if( defn.datum_type == PJD_3PARAM )\n {\n //if( x[io] == HUGE_VAL )\n // continue;\n p.x -= defn.datum_params[0];\n p.y -= defn.datum_params[1];\n p.z -= defn.datum_params[2];\n\n }\n else // if( defn.datum_type == PJD_7PARAM )\n {\n var Dx_BF =defn.datum_params[0];\n var Dy_BF =defn.datum_params[1];\n var Dz_BF =defn.datum_params[2];\n var Rx_BF =defn.datum_params[3];\n var Ry_BF =defn.datum_params[4];\n var Rz_BF =defn.datum_params[5];\n var M_BF =defn.datum_params[6];\n var x_tmp = (p.x - Dx_BF) / M_BF;\n var y_tmp = (p.y - Dy_BF) / M_BF;\n var z_tmp = (p.z - Dz_BF) / M_BF;\n //if( x[io] == HUGE_VAL )\n // continue;\n\n p.x = x_tmp + Rz_BF*y_tmp - Ry_BF*z_tmp;\n p.y = -Rz_BF*x_tmp + y_tmp + Rx_BF*z_tmp;\n p.z = Ry_BF*x_tmp - Rx_BF*y_tmp + z_tmp;\n }\n}", "_alignObejctToBrahmnabhi() {\r\n // CLASS REFERENCE\r\n let that = this;\r\n\r\n d3.select('[name=\"align-center\"]').on('click', () => {\r\n if (d3.select('.svg-object.active[data-object]').node() != null) {\r\n\r\n let object = d3.select('.svg-object.active[data-object]');\r\n let id = object.attr('id');\r\n let wrapper = d3.select(`.sjx-svg-wrapper[data-id=\"${id}\"]`);\r\n\r\n\r\n let objectName = object.attr('data-object');\r\n let src = object.select('image').attr('href');\r\n let width = object.select('image').attr('width');\r\n let height = object.select('image').attr('height');\r\n let x = this.centroid.x - width / 2;\r\n let y = this.centroid.y - height / 2;\r\n\r\n object.remove();\r\n wrapper.remove();\r\n\r\n // console.log(\"x\",object.select('image').attr('x'),\"y\",object.select('image').attr('x'));\r\n\r\n let data = {\r\n src: src,\r\n width: width,\r\n height: height,\r\n x: x,\r\n y: y\r\n }\r\n let objectInstance = new Object({\r\n layer: that.canvas,\r\n data: data,\r\n canvasSize: that.canvasSize,\r\n objectName: objectName,\r\n attribute: that.attribute,\r\n });\r\n\r\n // object.select('image').attr('x', `${this.centroid.x - width / 2}`);\r\n // object.select('image').attr('y',`${this.centroid.y - height / 2}`);\r\n // console.log(this.centroid.x - width / 2,this.centroid.y - height / 2);\r\n // object.attr('transform',\"\").attr('data-cx',\"\").attr('data-cy',\"\");\r\n // wrapper.attr('transform',\"\");\r\n }\r\n\r\n })\r\n }", "function generateCircleCoords(tagCountM1) {\n\tvar side1Count = Math.ceil(tagCountM1 / 2);\n\tvar step = Math.floor(150 / side1Count);\n\tvar coordinates = [];\n\n\tfor(var i = 0; i <= tagCountM1; i++) {\n\t\tif (i < side1Count) {\n\t\t\tphi = 15 + (step * i);\n\t\t} else {\n\t\t\tphi = 195 + (step * (i - side1Count));\n\t\t}\n\n\t\tcoordinates[i] = {};\n\t\tcoordinates[i].x = \n\t\t\t0.5 + \n\t\t\t(140 * Math.cos((Math.PI / 180) * phi) - \n\t\t\t 190 * Math.sin((Math.PI / 180) * phi)) \n\t\t\t/ pub.canvas.width;\n\t\tcoordinates[i].y = \n\t\t\t0.5 + \n\t\t\t(140 * Math.sin((Math.PI / 180) * phi) + \n\t\t\t 190 * Math.cos((Math.PI / 180) * phi)) \n\t\t\t/ pub.canvas.height;\n\t}\n\n\treturn coordinates;\n}", "function calcSVGTransformOrigin(dimensions, originX, originY) {\n var pxOriginX = calcOrigin$1(originX, dimensions.x, dimensions.width);\n var pxOriginY = calcOrigin$1(originY, dimensions.y, dimensions.height);\n return \"\".concat(pxOriginX, \" \").concat(pxOriginY);\n}", "function calcSVGTransformOrigin(dimensions, originX, originY) {\n var pxOriginX = calcOrigin$1(originX, dimensions.x, dimensions.width);\n var pxOriginY = calcOrigin$1(originY, dimensions.y, dimensions.height);\n return pxOriginX + \" \" + pxOriginY;\n}", "function dispGenesForMember_id(div, cigar, member_id, protein_id, ref_cigar) {\n var gene;\n if (ref_cigar) {\n gene = syntenic_data.member[member_id];\n } else {\n gene = syntenic_data.member[member_id];\n\n }\n\n\n var svg = jQuery(div).svg(\"get\")\n var maxLentemp = jQuery(window).width() * 0.6;\n var label = \"\";\n var j = 0;\n\n var transcript_len = gene.Transcript.length;\n\n while (transcript_len--) {\n\n if (gene.Transcript[transcript_len].Translation && (gene.Transcript[transcript_len].Translation.id == protein_id || gene.Transcript[transcript_len].id == protein_id)) {\n\n max = gene.Transcript[transcript_len].end - gene.Transcript[transcript_len].start\n var gene_start;\n var gene_stop;\n var gene_length = gene.Transcript[transcript_len].end - gene.Transcript[transcript_len].start\n\n var translation_start = gene.Transcript[transcript_len].start;\n var translation_end = gene.Transcript[transcript_len].end;\n if (gene.Transcript[transcript_len].Translation) {\n translation_start = gene.Transcript[transcript_len].Translation.start;\n translation_end = gene.Transcript[transcript_len].Translation.end;\n }\n\n if (gene.Transcript[transcript_len].start < gene.Transcript[transcript_len].end) {\n gene_start = gene.Transcript[transcript_len].start;\n gene_stop = gene.Transcript[transcript_len].end;\n }\n else {\n gene_start = gene.Transcript[transcript_len].end;\n gene_stop = gene.Transcript[transcript_len].start;\n }\n\n if (gene.Transcript[transcript_len].desc) {\n label = gene.Transcript[transcript_len].desc;\n }\n var border = \" border-left: 1px solid #000000; border-right: 1px solid #000000;\";\n label = gene.Transcript[transcript_len].desc;\n if (gene.Transcript[transcript_len].layer > j) {\n j = gene.Transcript[transcript_len].layer;\n }\n var top = transcript_len * 25 + 25;\n var stopposition = maxLentemp;//((gene_stop - gene_start) + 1) * parseFloat(maxLentemp) / (newEnd_temp - newStart_temp);\n var margin = \"margin-top:15px;margin-bottom:5px;\";\n\n\n if (transcript_len == 0) {\n margin = \"margin-top:15px;margin-bottom:25px;\";\n }\n\n label += gene.reference;\n\n if (ref_cigar) {\n\n var ref = syntenic_data.ref\n\n var ref_transcript = 0\n\n jQuery.map(syntenic_data.member[syntenic_data.ref].Transcript, function (obj) {\n if (obj.Translation && obj.Translation.id == protein_member_id) {\n ref_transcript = syntenic_data.member[syntenic_data.ref].Transcript.indexOf(obj)\n }\n });\n\n var text = syntenic_data.member[member_id].species;\n\n if(syntenic_data.member[member_id].display_name){\n text += \":\"+syntenic_data.member[member_id].display_name\n }else if(syntenic_data.member[member_id].description){\n text += \":\"+syntenic_data.member[member_id].description\n }\n // var text = syntenic_data.member[member_id].species + \":\" + syntenic_data.member[member_id].display_name ? \"yes\" : \"no\"//syntenic_data.member[member_id].description\n\n svg.text(parseInt(stopposition) + 10, 10, text, {\n fontFamily: 'Verdana',\n fontSize: 10,\n textAnchor: 'begin',\n fill: \"gray\",\n class: \"geneinfo genelabel \" + protein_id + \"genetext\"\n });\n\n var text = syntenic_data.member[member_id].species + \":\" + syntenic_data.member[member_id].id\n\n svg.text(parseInt(stopposition) + 10, 10, text, {\n fontFamily: 'Verdana',\n fontSize: 10,\n textAnchor: 'begin',\n fill: \"gray\",\n class: \"stable genelabel \" + protein_id + \"genetext\"\n });\n\n var text = syntenic_data.member[member_id].species + \":\" + syntenic_data.member[member_id].Transcript[transcript_len].Translation.id\n\n svg.text(parseInt(stopposition) + 10, 10, text, {\n fontFamily: 'Verdana',\n fontSize: 10,\n textAnchor: 'begin',\n fill: \"gray\",\n class: \"protein_id genelabel \" + protein_id + \"genetext\"\n });\n\n\n var temp_div = svg;\n svg.line(0, 6, stopposition, 6, {id: 'id' + protein_id + 'geneline', stroke: 'green', strokeWidth: 1});\n\n var strand = gene.Transcript[transcript_len].strand;\n\n // if (syntenic_data.member[syntenic_data.ref].strand == gene.Transcript[transcript_len].strand) {\n // strand = 1;\n // } else {\n // strand = -1;\n // }\n gene.Transcript[transcript_len].Exon.sort(sort_by('start', true, parseInt));\n\n var g = svg.group({class: 'style1'});\n dispGeneExon(g, svg, gene.Transcript[transcript_len], gene.strand, gene_start, stopposition, gene_length);\n\n var g = svg.group({id: 'id' + protein_id + 'style1CIGAR', class: 'style1'});\n\n\n dispCigarLine(g, cigar, 1, top, stopposition, gene_start, gene.Transcript[transcript_len].Exon.toJSON(), temp_div, ref_data.Transcript[ref_transcript].Exon.toJSON(), translation_start, strand, ref_cigar, ref_data.strand, \"style1\", protein_id);\n\n }\n else {\n\n var text = syntenic_data.member[member_id].species;\n\n if(syntenic_data.member[member_id].display_name){\n text += \":\"+syntenic_data.member[member_id].display_name\n }else if(syntenic_data.member[member_id].description){\n text += \":\"+syntenic_data.member[member_id].description\n }\n\n svg.text(parseInt(stopposition) + 10, 10, text, {\n fontFamily: 'Verdana',\n fontSize: 10,\n textAnchor: 'red',\n fill: \"red\",\n class: \"geneinfo genelabel \" + protein_id + \"genetext\"\n });\n\n var text = syntenic_data.member[member_id].species + \":\" + syntenic_data.member[member_id].id\n\n svg.text(parseInt(stopposition) + 10, 10, text, {\n fontFamily: 'Verdana',\n fontSize: 10,\n textAnchor: 'begin',\n fill: \"red\",\n class: \"stable genelabel \" + protein_id + \"genetext\"\n });\n\n var text = syntenic_data.member[member_id].species + \":\" + syntenic_data.member[member_id].Transcript[transcript_len].Translation.id\n\n svg.text(parseInt(stopposition) + 10, 10, text, {\n fontFamily: 'Verdana',\n fontSize: 10,\n textAnchor: 'begin',\n fill: \"red\",\n class: \"protein_id genelabel \" + protein_id + \"genetext\"\n });\n\n\n svg.line(0, 6, stopposition, 6, {id: 'id' + protein_id + 'geneline', stroke: 'red', strokeWidth: 2});\n\n\n var temp_div = svg;\n\n\n var g = svg.group({class: 'style1'});\n\n dispGeneExon(g, svg, gene.Transcript[transcript_len], gene.strand, gene_start, stopposition, gene_length);\n\n var g = svg.group({id: 'id' + protein_id + 'style1CIGAR', class: 'style1 CIGAR'});\n\n dispCigarLineRef(g, cigar, 1, top, stopposition, gene_start, gene.Transcript[transcript_len].Exon.toJSON(), temp_div, gene.Transcript[transcript_len].Exon.toJSON(), translation_start, \"style1\", protein_id, gene.strand);\n\n }\n\n }\n }\n}", "make_template() {\n const template_width = 260;\n const s = template_width / 5.5;\n const r3 = s * Math.sqrt(3)/2;\n\n const svg = document.getElementById('template');\n\n const g_hexaflexagon = element('g',{id:'hexaflexagon', transform: `translate(${(297-template_width)/2},80)`});\n svg.appendChild(g_hexaflexagon);\n\n const defs = element('defs');\n svg.appendChild(defs);\n\n const tri = element('path',{\n id:'triangle',\n d: `M 0 0 l ${s * 0.5} ${-r3} l ${s * 0.5} ${r3} z`,\n fill: 'none',\n stroke: 'black'\n });\n defs.appendChild(tri);\n\n function use(href, transform) {\n const u = element('use');\n if(transform) {\n u.setAttribute('transform',transform);\n }\n set_href(u,href);\n return u;\n }\n\n const image_defs = [0,1,2].map((i) => {\n const img = element('image', {id: `image-${i}`, width: 2*s, height: 2*s, preserveAspectRatio: 'xMidYMid slice'});\n defs.appendChild(img);\n });\n\n const {cos,sin} = Math;\n const sixth = Math.PI/3;\n\n const transforms = [\n [\n [-1, [1.5,1]],\n [3, [1.5,-1]],\n [3, [6,0]],\n [1, [3,-2]],\n [1, [3,-2]],\n [-1, [1.5,1]],\n ],\n [\n [-2, [3,0]],\n [-2, [3,0]],\n [2, [1.5,-1]],\n [2, [6,-2]],\n [0, [3,0]],\n [0, [3,0]],\n ],\n [\n [-2, [3.5,1]],\n [-2, [3.5,1]],\n [2, [2,-2]],\n [2, [2,-2]],\n [0, [3.5,-1]],\n [0, [3.5,-1]],\n ]\n ];\n transforms.forEach((n_transforms,n) => {\n const images = element('g',{id:`${n}-pieces`});\n g_hexaflexagon.appendChild(images);\n n_transforms.forEach(([rotation,[x,y]],j) => {\n const i = j+3;\n const clip = use(`#image-${n}`, `translate(${x*s} ${y*r3}) rotate(${rotation*60}) translate(${0} ${-s})`);\n const id = `clipPath-${n}-${j}`;\n clip.setAttribute('clip-path',`url(#${id})`);\n const clipPath = element('clipPath',{id});\n const path = element('path',{d:`M ${s + s*cos(i*sixth)} ${s + s*sin(i*sixth)} L ${s + s*cos((i+1)*sixth)} ${s + s*sin((i+1)*sixth)} ${s} ${s}`});\n clipPath.appendChild(path);\n defs.appendChild(clipPath);\n images.appendChild(clip);\n });\n });\n\n\n const g = element('g',{id:'triangles'});\n g_hexaflexagon.appendChild(g);\n\n for(let i=0;i<5;i++) {\n g.appendChild(use('#triangle', `translate(${s * i} 0)`));\n g.appendChild(use('#triangle', `translate(${s * (i + 1.5)} ${-r3}) rotate(180)`));\n g.appendChild(use('#triangle', `translate(${s * (i+0.5)} ${r3})`));\n g.appendChild(use('#triangle', `translate(${s * (i+1)} 0) rotate(180)`));\n }\n\n const hex_clipPath = element('clipPath',{id:'hexagon-clip'});\n defs.appendChild(hex_clipPath);\n const hex_path = element('path', {id: 'hexagon-path', stroke: 'black', 'stroke-width': s*0.02, fill: 'none', d: 'M '+[0,1,2,3,4,5].map(i=>`${s*(1 + cos(i*sixth))} ${s*(1 + sin(i*sixth))}`).join(' L ')+' z'});\n hex_clipPath.appendChild(hex_path);\n\n const image_previews = document.getElementById('image-previews');\n [0,1,2].forEach(i => {\n const box = document.createElement('div');\n box.classList.add('image-container');\n image_previews.appendChild(box);\n\n const psvg = element('svg',{id: `image-${i}-preview`, viewBox: `${-s*0.02} ${-s*0.02} ${2.04*s} ${2.04*s}`});\n const u = use(`#image-${i}`);\n u.setAttribute('clip-path','url(#hexagon-clip)');\n psvg.appendChild(u);\n psvg.appendChild(use('#hexagon-path'));\n box.appendChild(psvg);\n\n const take_photo_button = document.createElement('button');\n take_photo_button.classList.add('take-photo');\n take_photo_button.textContent = 'Take a photo';\n box.appendChild(take_photo_button);\n take_photo_button.addEventListener('click', e => {\n this.take_photo(i);\n });\n\n const pick_file_input = document.createElement('input');\n pick_file_input.type = 'file';\n pick_file_input.style.display = 'none';\n box.appendChild(pick_file_input);\n pick_file_input.addEventListener('change', e => {\n const f = pick_file_input.files[0];\n if(!f) {\n return;\n }\n this.load_file(f,i);\n });\n\n const upload_photo_button = document.createElement('button');\n upload_photo_button.classList.add('upload-photo');\n upload_photo_button.textContent = 'Upload a picture';\n box.appendChild(upload_photo_button);\n upload_photo_button.addEventListener('click', e => {\n pick_file_input.click();\n });\n\n box.addEventListener('dragover', e => {\n box.classList.add('dragging');\n });\n box.addEventListener('dragleave', e => {\n box.classList.remove('dragging');\n });\n box.addEventListener('drop', e => {\n var files = e.dataTransfer.files;\n this.load_file(files[0],i);\n box.classList.remove('dragging');\n });\n });\n }", "function line_positions() {\n\n line_one_x = win_width * .7;\n line_one_y = win_height * .8;\n\n line_two_x = win_width * .75;\n line_two_y = -(line_two.getBBox().height / 2);\n\n line_three_x = win_width * .65;\n line_three_y = win_height * .6;\n\n line_one.attr({\n transform: 't' + line_one_x + ' ' + line_one_y\n });\n line_two.attr({\n transform: 't' + line_two_x + ' ' + line_two_y\n });\n line_three.attr({\n transform: 't' + line_three_x + ' ' + line_three_y\n })\n }", "function spritePointToSvg(point, sprite) {\n var x = point.x;\n var y = point.y;\n if (sprite) {\n while (_utils_Type__WEBPACK_IMPORTED_MODULE_3__[\"hasValue\"](sprite.parent)) {\n var angle = sprite.rotation;\n x += sprite.pixelPaddingLeft + sprite.ex;\n y += sprite.pixelPaddingTop + sprite.ey;\n var scale = sprite.scale;\n // this handles nonscaling\n if (sprite.group) {\n scale = sprite.group.scale;\n }\n var relativeX = sprite.pixelX + ((x * _utils_Math__WEBPACK_IMPORTED_MODULE_2__[\"cos\"](angle) - y * _utils_Math__WEBPACK_IMPORTED_MODULE_2__[\"sin\"](angle))) * scale;\n var relativeY = sprite.pixelY + ((x * _utils_Math__WEBPACK_IMPORTED_MODULE_2__[\"sin\"](angle) + y * _utils_Math__WEBPACK_IMPORTED_MODULE_2__[\"cos\"](angle))) * scale;\n if (sprite.dx) {\n relativeX += sprite.dx;\n }\n if (sprite.dy) {\n relativeY += sprite.dy;\n }\n x = relativeX;\n y = relativeY;\n sprite = sprite.parent;\n }\n }\n return { x: x, y: y };\n}", "function trackTransforms(ctx) {\n var svg = document.createElementNS(\"http://www.w3.org/2000/svg\", 'svg');\n var xform = svg.createSVGMatrix();\n ctx.getTransform = function() {\n return xform;\n };\n\n var savedTransforms = [];\n var save = ctx.save;\n ctx.save = function() {\n savedTransforms.push(xform.translate(0, 0));\n return save.call(ctx);\n };\n var restore = ctx.restore;\n ctx.restore = function() {\n xform = savedTransforms.pop();\n return restore.call(ctx);\n };\n var scale = ctx.scale;\n ctx.scale = function(sx, sy) {\n xform = xform.scaleNonUniform(sx, sy);\n return scale.call(ctx, sx, sy);\n };\n var rotate = ctx.rotate;\n ctx.rotate = function(radians) {\n xform = xform.rotate(radians * 180 / Math.PI);\n return rotate.call(ctx, radians);\n };\n var translate = ctx.translate;\n ctx.translate = function(dx, dy) {\n xform = xform.translate(dx, dy);\n return translate.call(ctx, dx, dy);\n };\n var transform = ctx.transform;\n ctx.transform = function(a, b, c, d, e, f) {\n var m2 = svg.createSVGMatrix();\n m2.a = a;\n m2.b = b;\n m2.c = c;\n m2.d = d;\n m2.e = e;\n m2.f = f;\n xform = xform.multiply(m2);\n return transform.call(ctx, a, b, c, d, e, f);\n };\n var setTransform = ctx.setTransform;\n ctx.setTransform = function(a, b, c, d, e, f) {\n xform.a = a;\n xform.b = b;\n xform.c = c;\n xform.d = d;\n xform.e = e;\n xform.f = f;\n return setTransform.call(ctx, a, b, c, d, e, f);\n };\n var pt = svg.createSVGPoint();\n ctx.transformedPoint = function(x, y) {\n pt.x = x;\n pt.y = y;\n return pt.matrixTransform(xform.inverse());\n };\n}", "function svg2Stng(svgElem)\r\n{\r\n console.log(new XMLSerializer().serializeToString(svgElem))\r\n}", "function temperature_create(id, styleX){\n \tstyle1=\"\\\n \t\t<svg id='svg-\"+id+\"' xmlns='http://www.w3.org/2000/svg' style='width: 100px; height: 42px' >\\\n\t\t\t\t<clipPath id='shape1'>\\\n \t\t\t\t\t<circle id='circle1' r='5' cx='5' cy='5' />\\\n \t\t\t\t\t<rect x='4' y='2' rx='1' ry='1' width='38' height='6' />\\\n \t\t\t\t</clipPath>\\\n\t\t\t\t<clipPath id='shape2'>\\\n \t\t\t\t\t<circle id='circle1' r='4' cx='5' cy='5' />\\\n \t\t\t\t\t<rect x='5' y='3' rx='1' ry='1' width='36' height='4' />\\\n \t\t\t\t</clipPath>\\\n \t\t\t\t\\\n\t\t\t\t\\\n\t\t\t\t<clipPath id='shape11'>\\\n \t\t\t\t\t<circle id='circle1' r='5' cx='5' cy='37' />\\\n \t\t\t\t\t<rect x='2' y='0' rx='1' ry='1' width='6' height='38' />\\\n \t\t\t\t</clipPath>\\\n\t\t\t\t<clipPath id='shape22'>\\\n \t\t\t\t\t<circle id='circle1' r='4' cx='5' cy='37' />\\\n \t\t\t\t\t<rect x='3' y='1' rx='1' ry='1' width='4' height='36' />\\\n \t\t\t\t</clipPath>\\\n \t\t\t\t\\\n \t\t\t\t<g>\\\n\t \t\t\t\t<rect width='100%' height='100%' clip-path='url(#shape11)' style='fill: black'/>\\\n\t \t\t\t\t<rect id='\"+id+\"-color' width='100%' height='100%' clip-path='url(#shape22)' style='fill: red'/>\\\n\t \t\t\t\t<rect id='\"+id+\"-size' width='100%' height='30%' clip-path='url(#shape22)' style='fill: white'/>\\\n \t\t\t\t</g>\\\n \t\t\t\t<text id='\"+id+\"-text' x='10' y='25' fill='black' font-size='10'>--</text>\\\n\t\t\t\\\n\t\t\t</svg>\\\n\t\t\t\";\n\t\tstyle2=\"\\\n\t\t\t<svg id='svg-\"+id+\"' xmlns='http://www.w3.org/2000/svg' style='width: 40px; height: 40px;' viewBox='0 0 100 100' >\\\n \t\t\t\t<g>\\\n \t\t\t\t\t<polygon points='0,60 100,60 100,10' style='fill:white;stroke:black;stroke-width:1' />\\\n\t\t\t\t\t<polygon id='\"+id+\"-color' points='0,60 50,60 50,35' style='fill:red;stroke:black;stroke-width:0'/>\\\n\t\t\t\t\t<text id='\"+id+\"-text' x='0' y='18' fill='black' font-size='25'>--</text>\\\n \t\t\t\t</g>\\\n\t\t\t</svg>\\\n\t\t\t\";\n\t\tlog_temperatures(\"----------------------- styleX=\"+styleX);\n\t\tswitch(styleX) {\n\t\t\tcase \"style1\":\n\t\t\t\t$(\"#\"+id).html(style1);\n\t\t\t\tbreak;\n\t\t\tcase \"style2\":\n\t\t\t\t$(\"#\"+id).html(style2);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$(\"#\"+id).html(style1);\n\t\t}\n }", "convertCoords(regionId, x, y) {\n let xcoord = mapArray[regionId - 3].center[1] - (w / 2) + (w * x);\n let ycoord = mapArray[regionId - 3].center[0] + (k / 2) - (k * y);\n return { xcoord, ycoord };\n }" ]
[ "0.6470945", "0.61140984", "0.6102308", "0.6078447", "0.6065639", "0.60250956", "0.5984023", "0.5943737", "0.5782876", "0.5709321", "0.569222", "0.5690141", "0.5683105", "0.56683207", "0.5667035", "0.5665734", "0.5662754", "0.56502646", "0.5627933", "0.56071395", "0.5599533", "0.5594947", "0.5594176", "0.557695", "0.55648816", "0.55640984", "0.555747", "0.5528845", "0.5525473", "0.5523588", "0.55191445", "0.5496733", "0.5496733", "0.54951465", "0.54900604", "0.5481484", "0.54755706", "0.5474602", "0.54737234", "0.5467127", "0.54423547", "0.54378474", "0.5427016", "0.54253536", "0.5422624", "0.54185563", "0.5408547", "0.54033405", "0.53983635", "0.53913766", "0.53842413", "0.5382064", "0.5370812", "0.5366351", "0.5364301", "0.53494966", "0.5346482", "0.534621", "0.5343113", "0.53371364", "0.5333824", "0.5332321", "0.5331742", "0.5321827", "0.53176767", "0.5315116", "0.53060126", "0.5304754", "0.5304388", "0.5303028", "0.5302065", "0.5302065", "0.5302065", "0.52963495", "0.52889603", "0.52717996", "0.5259059", "0.5258774", "0.52553105", "0.5252981", "0.5252693", "0.52515244", "0.5249031", "0.52405035", "0.52330333", "0.52281076", "0.52160525", "0.52150613", "0.5212552", "0.5208454", "0.520675", "0.51951444", "0.519454", "0.519231", "0.5192276", "0.51889336", "0.5182027", "0.5179516", "0.5177959", "0.517249", "0.51713085" ]
0.0
-1
var a=[4, 6, 11, 18, 32]; var b=[1, 7, 13, 15];
function merge(a, b) { var i; var j; var k=0; var c = []; for (i=0; i<a.length; i++) { c[k]=a[i]; k++; } for (j=0; j<b.length; j++) { c[k]=b[j]; k++; } return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function compareTriples(a,b){\n //Almacenar puntos\n let Alice = 0;\n let Bob = 0;\n a.map((element, index) => {\n if(element > b[index]){\n Alice +=1;\n }\n if(element < b[index]){\n Bob +=1;\n }\n })\n return [Alice, Bob];\n}", "function mergeSortedArray(a, b){\n /////// empty array to push the sorted arrays into\n var merged = [];\n /////// starting at the [0] index of the existing first array\n var aElement = a[0];\n /////// starting at the [0] index of the existing second array\n var bElement = b[0];\n /////// for iterating to the next index of the existing arrays\n var i = 1;\n var j = 1;\n /////// While it is either a or b\n while(aElement || bElement) {\n /////// (if this a number and not b number) or (a number is less than b number)\n if((aElement && !bElement) || aElement < bElement) {\n //////// push a number into the merged array\n merged.push(aElement);\n //////// then iterate to the next number in a\n aElement = a[i++];\n } else {\n ////// else push the b number\n merged.push(bElement);\n //// then iterate to the next number in b\n bElement = b[j++];\n }\n }\n return merged; //// returns the new merged number\n}", "function m(a, b) {\n const l = Math.max(a.length, b.length);\n const result = [];\n for (let i = 0; i < l; i++) {\n if (a[i] !== undefined) {\n result.push(a[i]);\n }\n if (b[i] !== undefined) {\n result.push(b[i]);\n }\n }\n\n //console.log(result);\n return result;\n }", "function compareArray(a, b) {\n var diffs = []\n Array.prototype.some.call(a, function(numA, idxA) {\n Array.prototype.some.call(b, function(numB, idxB) {\n // console.log('comparing ' + numA + ' with ' + numB);\n // console.log('compare count:', ++count);\n // break if 2 element are equal\n if (numA === numB) {\n return true\n }\n // find a diff if numB is bigger than numA\n if (numB > numA) { \n diffs.push(numA);\n return true\n }\n });\n // break if numA is bigger than last element of bArr\n // slice rest of elements into diffs\n if (numA > b[b.length -1]) {\n console.log('all diffs after this idx:', idxA);\n var rests = Array.prototype.slice.call(a, idxA);\n // console.log('rests:', rests);\n diffs = diffs.concat(rests);\n return true;\n }\n });\n return diffs;\n}", "function getTotalX(a, b) {\n var leftRange = a.reduce(function(a, b) {\n return Math.max(a, b);\n});;\n var rightRange = b.reduce(function(a, b) {\n return Math.min(a, b);\n});;\n var list = 0;\n var check = true;\n for(var i =leftRange; i<= rightRange; i++){\n for(var j=0; j<a.length;j++){\n if(i % a[j] !== 0){\n check = false;\n }\n \n }\n for(var k=0;k<b.length;k++){\n if(b[k] % i !== 0){\n check = false; \n }\n \n }\n \n \n if(check){\n list++; \n }\n else{\n check = true;\n }\n }\n return list;\n}", "function findDifference(a, b) {\nlet summA = 1;\nlet summB = 1;\nfor(let i = 0; i<a.length; i++){\n summA *= a[i];\n}\nfor(let x = 0; x<b.length; x++){\n summB *= b[x];\n}\nlet result;\nif(summA>summB){\n result=summA-summB\n} else {result = summB - summA}\nreturn result\n}", "function arrayDiff(a, b) {\n \n const newArray = [];\n \n for (var i = 0; i < b.length; i++){\n a.forEach(number => number !== b[i] ? newArray.push(number) : null)\n }\n \n if (b.length == \"\") { newArray.push(...a)}\n \n return newArray\n }", "function numberArray(a, b) {\n b = []; while (a--) b[a] = a + 1; return b\n}", "function sumArr(a,b) {\n return a.map((x, i) => {\n const aValue = parseInt(x) || 0;\n const bValue = parseInt(b[i]) || 0;\n const sum = aValue + bValue;\n return sum.toString();\n });\n}", "function solve(a,b){\r\n let finalArray = [];\r\n let currentCount = 0;\r\n //go through b and compare each element in b to each element in a\r\n for(let i = 0; i < b.length; i++){\r\n currentCount = 0;\r\n for(let x = 0; x <= a.length; x++){\r\n if(b[i] === a[x]){\r\n currentCount++\r\n }\r\n if(x === a.length){\r\n finalArray.push(currentCount);\r\n currentCount = 0;\r\n }\r\n }\r\n }\r\n return finalArray;\r\n}", "function merge(a, b){\n var arr = [];\n while (a.length && b.length) {\n if (a[0] < b[0]) {\n arr.push(a.shift());\n } else {\n arr.push(b.shift());\n }\n }\n while (a.length) {\n arr.push(a.shift());\n }\n while (b.length) {\n arr.push(b.shift());\n }\n return arr;\n}", "function unionOfTwoArrays(a, b) {\r\n let i = 0;\r\n let j = 0;\r\n const union = [];\r\n while (i < a.length && j < b.length) {\r\n if (a[i] < b[j]) {\r\n union.push(a[i]);\r\n i++;\r\n }\r\n else if (a[i] == b[j]) {\r\n union.push(a[i]);\r\n i++;\r\n j++;\r\n }\r\n else {\r\n union.push(b[j]);\r\n j++;\r\n }\r\n }\r\n\r\n while (i < a.length) {\r\n union.push(a[i]);\r\n i++;\r\n }\r\n while (j < b.length) {\r\n union.push(b[j]);\r\n j++;\r\n }\r\n\r\n return union;\r\n}", "function array_diff(a, b) {\n if (a.length === 0 || b.length === 0) {\n return a;\n } else {\n while (b.length > 0) {\n a = a.filter(num => num != b[0])\n b.shift();\n }\n return a\n }\n}", "function countNumbersNotInB(a, b) {\n if (!Array.isArray(a) || a.length === 0 || !Array.isArray(b)) return 0;\n\n const newArray = [];\n a.forEach((x) => {\n if (!b.includes(x)) newArray.push(x);\n });\n\n return newArray.length;\n}", "function kproduct(a,b){\n\n var ac = 0, bc = 0, al = a.length, bl = b.length, abl = al*bl, abc = 0, ab = [];\n\n if(al === 0 && b === 0){\n return [];\n }\n if(al === 0){\n return b;\n }\n if(bl === 0){\n return a;\n }\n\n for(abc ; abc < abl ; abc++){\n if(bc >= bl){\n bc = 0;\n ac++;\n }\n\n ab.push($.extend(true, {},a[ac], b[bc]));\n bc++;\n }\n\n return ab;\n }", "function arrayDiff(a, b) {\n let holder=[];\n \n for(let x=0;x<a.length;x++)\n {\n if(!b.includes(a[x]))\n {\n holder.push(a[x]);\n }\n }\n \n return holder;\n }", "function diff(a, b){\n // iterate over elements in array a, return element only if it isn't in b\n return a.filter((el) => {\n return b.indexOf(el) < 0;\n });\n}", "function solve(a,b){\n let arr = [];\n for(let i = 0; i < b.length; i++){\n let count = 0;\n for(let j = 0; j < a.length; j++){\n if(b[i] === a[j])\n count++; \n }\n arr.push(count)\n }\n return arr\n }", "function merge(a, b) {\n\n var i;\n var j;\n var k;\n var c = [];\n\n for (i = 0, j = 0, k = 0; i < a.length && j < b.length; k++) {\n\n if (a[i] < b[j]) {\n c[k] = a[i];\n i++;\n } else {\n c[k] = b[j];\n j++;\n }\n\n }\n\n if (i == a.length) {\n for (; j < b.length; j++) { // izbegava se inicalizacija j\n c[k] = b[j];\n k++;\n }\n }\n\n else {\n for (; i < a.length; i++) {\n c[k] = a[i];\n k++;\n }\n }\n\n return c;\n\n}", "function getSum(a, b) {\n let arr = []\n let sum = 0\n if (a === b) {\n return a\n } else if (a !== b) {\n for (let i = a; i <= b; i++) {\n arr.push(i)\n }\n for (let j = 0; j < arr.length; j++) {\n sum += arr[j]\n }\n }\n return sum\n}", "function vectSum(a,b) {\n return a.map(function(val,i) { return a[i]+b[i] })\n}", "function compareTriplets(a, b) {\n // create two variables for the two scores\n let aScore = 0;\n let bScore = 0;\n // iterate through an array\n for (let i = 0; i < a.length; i++){\n if (a[i]> b[i]){\n aScore++\n } if (b[i]> a[i]){\n bScore++\n }\n }\n return [aScore, bScore]\n // if a > b then increment a's score and vice versa\n // return the scores\n}", "function arrayDiff(a, b) {\r\n //Go through each element in array 1\r\n //check if that element exists in array 2\r\n //if it exists in array 2, do nothing\r\n //if it doesn't exist in array 2 AND doesn't already exist in the answer, push to answer array\r\n //let's do this the old fashion way first, using loop even though i'm pretty sure this can be done with reduce\r\n let answer = []\r\n a.forEach((el)=>{\r\n if(!b.includes(el)){\r\n answer.push(el)\r\n }\r\n })\r\n return answer\r\n}", "function compareTriplets(a, b) {\n let results = []\n let alicePoints = 0\n let bobPoints = 0\n for(let i = 0; i < a.length; i++) {\n if(a[i] > b[i]) {\n alicePoints++\n }\n if(a[i] < b[i]) {\n bobPoints++\n }\n }\n results.push(alicePoints)\n results.push(bobPoints)\n return results\n}", "function GetSum( a, b ) {\n var list = [];\n \n if ( a < b ) {\n for(var i = a; i <= b; i++) {\n list.push(i);\n }\n }\n \n else {\n for(var i = b; i <= a; i++) {\n list.push(i);\n }\n }\n \n // ES6 to the rescue\n var sum = list.reduce((a, b) => a + b);\n return sum; \n}", "function getSum(a,b) {\n let arrayOfNumbers = [];\n\n const min = (a <= b) ? a : b;\n const max = (a <= b) ? b : a;\n\n for (var item = min; item <= max; item++) {\n arrayOfNumbers = [...arrayOfNumbers, item];\n }\n\n const sum = arrayOfNumbers.reduce((total, item) => total + item);\n return sum;\n}", "function diff(a, b) {\n \tvar i,\n \t j,\n \t result = a.slice();\n\n \tfor (i = 0; i < result.length; i++) {\n \t\tfor (j = 0; j < b.length; j++) {\n \t\t\tif (result[i] === b[j]) {\n \t\t\t\tresult.splice(i, 1);\n \t\t\t\ti--;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \treturn result;\n }", "function value(a,b) {\r\na = a[1]+a[0];\r\nb = b[1]+b[0];\r\nreturn a == b ? 0 : (a < b ? -1 : 1)\r\n}", "function arr_diff(a,b) {\n var seen = [],\n diff = [],\n i;\n for (i = 0; i < b.length; i++)\n seen[b[i]] = true;\n for (i = 0; i < a.length; i++)\n if (!seen[a[i]])\n diff.push(a[i]);\n return diff;\n}", "function compareTriplets(a, b) { // O(n)\n let countA = 0;\n let countB = 0;\n for (let i = 0; i < a.length; i++) {\n if (a[i] > b[i]) {\n countA++;\n } else if (a[i] < b[i]) {\n countB++;\n }\n }\n return [countA, countB];\n}", "function siblise(a, b)\n{\n\treturn {\n\t\tctor: '_Array',\n\t\theight: a.height + 1,\n\t\ttable: [a, b],\n\t\tlengths: [length(a), length(a) + length(b)]\n\t};\n}", "function siblise(a, b)\n{\n\treturn {\n\t\tctor: '_Array',\n\t\theight: a.height + 1,\n\t\ttable: [a, b],\n\t\tlengths: [length(a), length(a) + length(b)]\n\t};\n}", "function siblise(a, b)\n{\n\treturn {\n\t\tctor: '_Array',\n\t\theight: a.height + 1,\n\t\ttable: [a, b],\n\t\tlengths: [length(a), length(a) + length(b)]\n\t};\n}", "function siblise(a, b)\n{\n\treturn {\n\t\tctor: '_Array',\n\t\theight: a.height + 1,\n\t\ttable: [a, b],\n\t\tlengths: [length(a), length(a) + length(b)]\n\t};\n}", "function siblise(a, b)\n{\n\treturn {\n\t\tctor: '_Array',\n\t\theight: a.height + 1,\n\t\ttable: [a, b],\n\t\tlengths: [length(a), length(a) + length(b)]\n\t};\n}", "function siblise(a, b)\n{\n\treturn {\n\t\tctor: '_Array',\n\t\theight: a.height + 1,\n\t\ttable: [a, b],\n\t\tlengths: [length(a), length(a) + length(b)]\n\t};\n}", "function intersectArrays (a, b) {\n var sorteda = a.concat().sort()\n var sortedb = b.concat().sort()\n var common = []\n var ai = 0\n var bi = 0\n\n while (ai < a.length && bi < b.length) {\n if (JSON.stringify(sorteda[ai]) === JSON.stringify(sortedb[bi])) {\n common.push(sorteda[ai])\n ai++\n bi++\n } else if (JSON.stringify(sorteda[ai]) < JSON.stringify(sortedb[bi])) {\n ai++\n } else {\n bi++\n }\n }\n console.log(common)\n return common\n}", "function inter(as,bs){return comp(union(comp(as),comp(bs)))}", "function intersectArraysBackwards(a, b) // based on http://stackoverflow.com/a/1885660/4038307\n {\n var ai= a.length-1, bi= b.length-1;\n var result = [];\n\n while( ai >= 0 && bi >= 0 )\n {\n if (a[ai] < b[bi] ){ ai--; }\n else if (a[ai] > b[bi] ){ bi--; }\n else /* they're equal */\n {\n result.unshift(a[ai]);\n ai--;\n bi--;\n }\n }\n\n return result;\n }", "function compareNumbers(a, b){\n return a - b;\n }", "function siblise(a, b)\n\t{\n\t\treturn {\n\t\t\tctor: \"_Array\",\n\t\t\theight: a.height + 1,\n\t\t\ttable: [a, b],\n\t\t\tlengths: [length(a), length(a) + length(b)]\n\t\t};\n\t}", "function ma(a){var b,c,d,e=[];for(b=0;b<a.length;b++)for(c=a[b],d=0;d<c.length;d++)e.push(c[d]);return e}", "function arrayMadness(a, b) {\n sum1 = 0;\n sum2 = 0;\n \n if (a.length || b.length >= 1) {\n \n for (let i = 0; i < a.length; i++) {\n sum1 += a[i]**2;\n }\n for (let i = 0; i < b.length; i++) {\n sum2 += b[i]**3;\n }\n }\n if (sum1 > sum2) {\n return true\n }\n return false\n }", "function compareNumbers(a, b) {\n\treturn a - b;\n}", "function compareNumbers(a, b)\n {\n return a - b;\n }", "function GetSum(a, b) {\n\tlet total = 0;\n\tif (a === b) {\n\t\treturn a;\n\t}\n\tif (a < b) {\n\t\tfor (let i = a; i <= b; i++) {\n\t\t\ttotal += i;\n\t\t}\n\t\treturn total;\n\t}\n\tif (b < a) {\n\t\tfor (let i = b; i <= a; i++) {\n\t\t\ttotal += i;\n\t\t}\n\t\treturn total;\n\t}\n}", "function compareNumbers(a, b) {\n return a - b;\n }", "function array_diff(a, b) {\r\n let finalArr = a.filter(function(a) {\r\n return !b.includes(a)});\r\n return finalArr;\r\n }", "function myCoolFunction(arrA, arrB) {\n for (let i = 0; i < arrA.length; i++) { // n\n for (let j = 0; j < arrB.length; i++) { // m\n console.log(arrA[i] + arrB[j]) // 1\n }\n }\n}", "function array_diff (a, b) {\n // If input length is 0 for a or b, return 'a' array value\n if (a.length === 0 || b.length === 0) return a\n let result = []\n // Do looping to check the occurence of b elements in a array\n for (let i = 0; i < a.length; i++) {\n let isNotOccur = true\n for (let j = 0; j < b.length; j++) {\n if (a[i] === b[j]) {\n isNotOccur = false\n }\n }\n if (isNotOccur) result.push(a[i])\n }\n return result\n}", "function merge(a,b){\n\tvar sorted = [];\n\tvar i = 0;\n\tvar j = 0;\n\tvar aPointer = a[i];\n\tvar bPointer = b[j];\n\n\twhile (sorted.length !== (a.length+b.length)){\n\t\tif (aPointer<bPointer || j===b.length){\n\t\t\tsorted.push(aPointer);\n\t\t\ti++;\n\t\t\taPointer=a[i];\n\t\t}\n\t\telse{\n\t\t\tsorted.push(bPointer);\n\t\t\tj++;\n\t\t\tbPointer = b[j];\n\t\t}\n\t}\n\treturn sorted;\n}", "function diff( a, b ) {\n var result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function sortArr(a, b){\n return a - b ;\n }", "function arr_diff(a,b){\r\n\tvar c=[];//clone of a\r\n\tvar d=[];//Anything a does not include\r\n\tvar e=[];//Anything a *does* include\r\n\tfor(var an of a){\r\n\t\tc.push(an);\r\n\t}\r\n\tfor(var bn of b){\r\n\t\tif(c.indexOf(bn)===-1)d.push(bn);\r\n\t\telse e.push(bn);\r\n\t}\r\n\tfor(var en of e){\r\n\t\tc.splice(c.indexOf(en),1);\r\n\t}\r\n\treturn [c,d];\r\n}", "function merge(a, b) {\n const combinedLen = a.length + b.length\n const merged = []\n let idxA = 0\n let idxB = 0\n\n while (merged.length < combinedLen) {\n if (idxB === b.length || a[idxA] < b[idxB]) {\n merged.push(a[idxA++]) // eslint-disable-line\n } else {\n merged.push(b[idxB++]) // eslint-disable-line\n }\n }\n return merged\n}", "function arr_diff(a,b) {\n var seen = [],\n diff = [],\n i;\n for (i = 0; i < b.length; i++)\n seen[b[i]] = true;\n for (i = 0; i < a.length; i++)\n if (!seen[a[i]])\n diff.push(a[i]);\n return diff;\n}", "function compareTriplets(a, b) {\n let arrayScore = [0,0];\n for (let i = 0; i < a.length; i++) {\n if(a[i] > b[i]) {\n arrayScore[0] += 1;\n }\n else if(a[i] < b[i]) {\n arrayScore[1] += 1;\n }\n }\n return arrayScore;\n}", "function arrDiff(a,b) {\n var seen = [], diff = [];\n for ( var i = 0; i < b.length; i++)\n seen[b[i]] = true;\n for ( var i = 0; i < a.length; i++)\n if (!seen[a[i]])\n diff.push(a[i]);\n return diff;\n}", "function intersect(a, b) {\n\t\t\tvar i = 0, j = 0, result = [];\n\t\t\twhile (i < a.length && j < b.length)\n\t\t\t\tif (a[i] < b[j])\n\t\t\t\t\t++i;\n\t\t\t\telse if (b[j] < a[i])\n\t\t\t\t\t++j;\n\t\t\t\telse {\n\t\t\t\t\tresult.push(a[i]);\n\t\t\t\t\t++i;\n\t\t\t\t\t++j;\n\t\t\t\t}\n\t\t\treturn result;\n\t\t}", "function compareNumbers(a, b) {\n return a - b;\n}", "function compareNumbers(a, b) {\n return a - b;\n}", "function compareNumbers(a, b) {\n return a - b;\n}", "function zip(a, b) {\n var accum = [],\n i;\n \n for(i = 0; i < Math.min(a.length, b.length); i++) {\n accum.push([a[i], b[i]]);\n }\n \n return accum;\n }", "function arrayDiff(a1, a2) {\n\tvar totalDiff = 0;\n\ta2.forEach((elem, index) => {\n\t\ttotalDiff += Math.abs(elem - a1[index]);\n\t});\n\treturn totalDiff;\n}", "function compareCells(a, b) {\n\t var n = a.length\n\t , t = a.length - b.length\n\t , min = Math.min\n\t if(t) {\n\t return t\n\t }\n\t switch(n) {\n\t case 0:\n\t return 0;\n\t case 1:\n\t return a[0] - b[0];\n\t case 2:\n\t var d = a[0]+a[1]-b[0]-b[1]\n\t if(d) {\n\t return d\n\t }\n\t return min(a[0],a[1]) - min(b[0],b[1])\n\t case 3:\n\t var l1 = a[0]+a[1]\n\t , m1 = b[0]+b[1]\n\t d = l1+a[2] - (m1+b[2])\n\t if(d) {\n\t return d\n\t }\n\t var l0 = min(a[0], a[1])\n\t , m0 = min(b[0], b[1])\n\t , d = min(l0, a[2]) - min(m0, b[2])\n\t if(d) {\n\t return d\n\t }\n\t return min(l0+a[2], l1) - min(m0+b[2], m1)\n\t \n\t //TODO: Maybe optimize n=4 as well?\n\t \n\t default:\n\t var as = a.slice(0)\n\t as.sort()\n\t var bs = b.slice(0)\n\t bs.sort()\n\t for(var i=0; i<n; ++i) {\n\t t = as[i] - bs[i]\n\t if(t) {\n\t return t\n\t }\n\t }\n\t return 0\n\t }\n\t}", "function compareCells(a, b) {\n\t var n = a.length\n\t , t = a.length - b.length\n\t , min = Math.min\n\t if(t) {\n\t return t\n\t }\n\t switch(n) {\n\t case 0:\n\t return 0;\n\t case 1:\n\t return a[0] - b[0];\n\t case 2:\n\t var d = a[0]+a[1]-b[0]-b[1]\n\t if(d) {\n\t return d\n\t }\n\t return min(a[0],a[1]) - min(b[0],b[1])\n\t case 3:\n\t var l1 = a[0]+a[1]\n\t , m1 = b[0]+b[1]\n\t d = l1+a[2] - (m1+b[2])\n\t if(d) {\n\t return d\n\t }\n\t var l0 = min(a[0], a[1])\n\t , m0 = min(b[0], b[1])\n\t , d = min(l0, a[2]) - min(m0, b[2])\n\t if(d) {\n\t return d\n\t }\n\t return min(l0+a[2], l1) - min(m0+b[2], m1)\n\t \n\t //TODO: Maybe optimize n=4 as well?\n\t \n\t default:\n\t var as = a.slice(0)\n\t as.sort()\n\t var bs = b.slice(0)\n\t bs.sort()\n\t for(var i=0; i<n; ++i) {\n\t t = as[i] - bs[i]\n\t if(t) {\n\t return t\n\t }\n\t }\n\t return 0\n\t }\n\t}", "function compareCells(a, b) {\n\t var n = a.length\n\t , t = a.length - b.length\n\t , min = Math.min\n\t if(t) {\n\t return t\n\t }\n\t switch(n) {\n\t case 0:\n\t return 0;\n\t case 1:\n\t return a[0] - b[0];\n\t case 2:\n\t var d = a[0]+a[1]-b[0]-b[1]\n\t if(d) {\n\t return d\n\t }\n\t return min(a[0],a[1]) - min(b[0],b[1])\n\t case 3:\n\t var l1 = a[0]+a[1]\n\t , m1 = b[0]+b[1]\n\t d = l1+a[2] - (m1+b[2])\n\t if(d) {\n\t return d\n\t }\n\t var l0 = min(a[0], a[1])\n\t , m0 = min(b[0], b[1])\n\t , d = min(l0, a[2]) - min(m0, b[2])\n\t if(d) {\n\t return d\n\t }\n\t return min(l0+a[2], l1) - min(m0+b[2], m1)\n\t \n\t //TODO: Maybe optimize n=4 as well?\n\t \n\t default:\n\t var as = a.slice(0)\n\t as.sort()\n\t var bs = b.slice(0)\n\t bs.sort()\n\t for(var i=0; i<n; ++i) {\n\t t = as[i] - bs[i]\n\t if(t) {\n\t return t\n\t }\n\t }\n\t return 0\n\t }\n\t}", "function twoSum(a, sum){\n let cur_max =0, max_so_far = 0, result= [];\n cur_max = a[0];\n for(let i=0; i<a.length; i++){\n var diff = sum - a[i];\n var k = a.indexOf(diff);\n if(k > -1 && k !==i){\n result.push(i);\n result.push(k);\n }\n }\n return result;\n}", "function compareNumbers(a, b)\n{\n return a - b;\n}", "function compareNumbers(a, b) {\n return a - b;\n}", "function union (arr1, arr2) {\n var result = [];\n var i = 0;\n var j = 0;\n\n while (i < arr1.length && j < arr2.length) {\n var item1 = arr1[i];\n var item2 = arr2[j];\n\n if (item1 < item2) {\n result.push(item1);\n i += 1;\n } else if (item2 < item1) {\n result.push(item2);\n j += 1;\n } else {\n result.push(item2);\n i += 1;\n j += 1;\n }\n }\n\n while (i < arr1.length) {\n result.push(arr1[i]);\n i += 1;\n }\n\n while (j < arr2.length) {\n result.push(arr2[j]);\n j += 1;\n }\n\n return result;\n }", "function numsort(a, b) {\n return b - a;\n }", "function diff( a, b ) {\n\tvar i, j,\n\t\tresult = a.slice();\n\n\tfor ( i = 0; i < result.length; i++ ) {\n\t\tfor ( j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[ i ] === b[ j ] ) {\n\t\t\t\tresult.splice( i, 1 );\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function getTotalX(a, b) {\n let integerCt = 0;\n let x = 1;\n\n function moduloCount(arr, num, bool) {\n let matchingCount = 0;\n // true => code for 1st array; false => code for 2nd array\n if (bool === true) {\n arr.forEach((item) => {\n if (num % item === 0) {\n matchingCount += 1;\n }\n });\n } else {\n arr.forEach((item) => {\n if (item % num === 0) {\n matchingCount += 1;\n }\n });\n }\n // return true if all items divide by current num evenly\n if (matchingCount === arr.length) {\n return true;\n }\n return false;\n }\n\n // while x is less that the max array item we know of, eval remainder\n while (x <= Math.max(...b)) {\n const allArrAMatchX = moduloCount(a, x, true);\n if (allArrAMatchX) {\n const allArrBMatchX = moduloCount(b, x, false);\n // only increment when satisfy both conditions\n if (allArrBMatchX) {\n integerCt += 1;\n }\n }\n x += 1;\n }\n return integerCt;\n}", "function concat(arr, arr2) {\n const result = [];\n const aLen = arr.length;\n const bLen = arr2.length;\n\n // 2개 포인터\n let point1 = 0;\n let point2 = 0;\n\n // for 문을 쓸 수는 없을 것 같다. for 문은 모든 경우의 수를 다 탐색 1 -> 2, 3, 6, 7, 9 / 3 -> 2, 3, 6, 7, 9\n\n while (point1 < aLen && point2 < bLen) {\n\n if (arr[point1] <= arr2[point2]) {\n result.push(arr[point1]);\n point1++;\n } else {\n result.push(arr2[point2]);\n point2++;\n }\n }\n\n // 1번째 배열 나머지 값 처리\n while (point1 < aLen) {\n\t\tresult.push(arr[point1]);\n\t\tpoint1++;\n\t}\n\n // 2번째 배열 나머지 값 처리\n while (point2 < bLen) {\n result.push(arr2[point2]);\n point2++;\n }\n\n return result;\n}", "function diff( a, b ) {\n\tvar result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function diff( a, b ) {\n\tvar result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function diff( a, b ) {\n\tvar result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function tf$intersection(a, b){\r\n\t\tvar i = 0;\r\n\t\tvar j = 0;\r\n\t\tvar rv = [];\r\n\t\twhile(i < a.length && j < b.length) {\r\n\t\t\tif (a[i] < b[j]) {\r\n\t\t\t\ti++;\r\n\t\t\t} else if (a[i] > b[j]) {\r\n\t\t\t\tj++;\r\n\t\t\t} else {\r\n\t\t\t\trv.push(a[i]);\r\n\t\t\t\ti++;\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rv;\r\n\t}", "function arrayDiff(a, b) {\n newArray = a\n b.map(num => {\n for(i = 0; i < a.length; i++) {\n // console.log(i, a[i], b.find(num => num))\n if (a[i] === num) {\n newArray.splice(i, 1);\n i--;\n }\n }\n })\n return newArray\n}", "function diff( a, b ) {\n\tvar i, j,\n\t\tresult = a.slice();\n\n\tfor ( i = 0; i < result.length; i++ ) {\n\t\tfor ( j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice( i, 1 );\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function array_diff(a, b) {\na.map(function(element){\nfor(var i =0; i <b.length; i++){\nif(element === b[i]){\na[a.indexOf(element)]=null;\nbreak;\n}\n}});\na = a.filter(function(n){ return n !=null });\n\nreturn a;\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function compareCells(a, b) {\n var n = a.length\n , t = a.length - b.length\n , min = Math.min\n if(t) {\n return t\n }\n switch(n) {\n case 0:\n return 0;\n case 1:\n return a[0] - b[0];\n case 2:\n var d = a[0]+a[1]-b[0]-b[1]\n if(d) {\n return d\n }\n return min(a[0],a[1]) - min(b[0],b[1])\n case 3:\n var l1 = a[0]+a[1]\n , m1 = b[0]+b[1]\n d = l1+a[2] - (m1+b[2])\n if(d) {\n return d\n }\n var l0 = min(a[0], a[1])\n , m0 = min(b[0], b[1])\n , d = min(l0, a[2]) - min(m0, b[2])\n if(d) {\n return d\n }\n return min(l0+a[2], l1) - min(m0+b[2], m1)\n \n //TODO: Maybe optimize n=4 as well?\n \n default:\n var as = a.slice(0)\n as.sort()\n var bs = b.slice(0)\n bs.sort()\n for(var i=0; i<n; ++i) {\n t = as[i] - bs[i]\n if(t) {\n return t\n }\n }\n return 0\n }\n}", "function d(a,b) {\r\n var x = Math.max(0, a[0] - b[0], b[0] - a[1]),\r\n y = Math.max(0, a[2] - b[1], b[1] - a[3])\r\n return x+y;\r\n }", "function d(a,b) {\r\n var x = Math.max(0, a[0] - b[0], b[0] - a[1]),\r\n y = Math.max(0, a[2] - b[1], b[1] - a[3])\r\n return x+y;\r\n }", "function compareTriplets(a, b) {\n\tlet aliceScore = 0;\n\tlet bobScore = 0;\n\tfor (let i = 0; i < a.length; i++) {\n\t\tif (a[i] > b[i]) {\n\t\t\taliceScore = aliceScore + 1;\n\t\t}\n\t\tif (a[i] < b[i]) {\n\t\t\tbobScore = bobScore + 1\n\t\t}\n\t}\n\treturn [aliceScore, bobScore]\n}", "function CompareNumbers(a, b){\n return a - b;\n }", "function mergesorted(a, b) {\n var aCount = 0;\n var bCount = 0;\n var aLen = a.length;\n var bLen = b.length;\n var result = [];\n \n while (aCount < aLen && bCount < bLen) {\n if (a[aCount] < b[bCount]) {\n result.push(a[aCount])\n aCount++;\n } else {\n result.push(b[bCount])\n bCount++;\n }\n }\n \n if (aCount === aLen) {result = result.concat(b.slice(bCount));}\n if (bCount === bLen) {result = result.concat(a.slice(aCount));}\n \n return result;\n}", "function mergeArrays(a, b) {\n\tlet outArray = [],\n\t\telA = a[0],\n\t\telB = b[0],\n\t\ti = 1,\n\t\tj = 1;\n\n\tif(a.length === 0) return b;\n\tif(b.length === 0) return a;\n\n\twhile(elA || elB) {\n\t\tif((elA && !elB) || elA < elB) {\n\t\t\toutArray.push(elA);\n\t\t\telA = a[i++];\n\t\t} else {\n\t\t\toutArray.push(elB);\n\t\t\telB = b[j++];\n\t\t}\n\t}\n\n\treturn outArray;\n}", "function intersection(a, b) {\n var rs = [],\n x = a.length;\n while (x--) b.indexOf(a[x]) != -1 && rs.push(a[x]);\n return rs.sort();\n}", "function d(a,b) {\n var x = Math.max(0, a[0] - b[0], b[0] - a[1]),\n y = Math.max(0, a[2] - b[1], b[1] - a[3])\n return x+y;\n }", "function solution(a, b){\n if(a.length<b.length){\n return a+b+a;\n }\n if(a.length>b.length){\n return b+a+b;\n }\n}", "function array_diff(a, b) {\n//loops through the elements in b\n for (i = 0; i < b.length; i++){\n \t\tvar j = 0;\n //checks against the elements of a\n \t\twhile (j < a.length){\n //if it finds the element, remove it\n \t\t\tif (a[j] === b[i]){\n\t \t\t\ta.splice(j, 1);\n\t \t\t}\n //if it doesnt find the element, increase the index of j\n\t \t\telse {\n\t \t\t\tj++;\n\t \t\t}\n \t\t}\n \t}\n \treturn a;\n}", "function largestSamples(a, b) {\n return b[2]-a[2];\n }" ]
[ "0.6740594", "0.6697769", "0.6688354", "0.6688106", "0.66579014", "0.6645594", "0.6621324", "0.6607377", "0.656397", "0.65623593", "0.6493578", "0.64620054", "0.64473486", "0.6423174", "0.6423127", "0.6421911", "0.6401858", "0.6382495", "0.63683295", "0.63400084", "0.6339894", "0.63302803", "0.6324302", "0.6318992", "0.6314591", "0.6308957", "0.62974674", "0.6296329", "0.62930363", "0.62907714", "0.6285493", "0.6285493", "0.6285493", "0.6285493", "0.6285493", "0.6285493", "0.6280654", "0.62752175", "0.62745196", "0.6270981", "0.6267014", "0.6264667", "0.6262784", "0.62595326", "0.6247115", "0.6246725", "0.62389743", "0.62384593", "0.62372637", "0.6226184", "0.62166345", "0.6215189", "0.62075716", "0.62058663", "0.6203779", "0.6192431", "0.6192211", "0.6187197", "0.6186979", "0.61684996", "0.61684996", "0.61684996", "0.61672187", "0.6166954", "0.6155771", "0.6155771", "0.6155771", "0.615385", "0.615356", "0.6150502", "0.614927", "0.6138905", "0.6138547", "0.61346626", "0.61345357", "0.61283404", "0.61283404", "0.61283404", "0.61274725", "0.61272025", "0.6125589", "0.6123923", "0.61198694", "0.61198694", "0.61198694", "0.61198694", "0.61198694", "0.61198694", "0.61198694", "0.61198694", "0.61195725", "0.61195725", "0.6118502", "0.6117056", "0.61146617", "0.61136174", "0.61122483", "0.6105918", "0.61044407", "0.61001784", "0.60919064" ]
0.0
-1
call the constructor method
constructor(props) { //Call the constrictor of Super class i.e The Component super(props); //maintain the state required for this component this.state = {}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _construct()\n\t\t{;\n\t\t}", "function _ctor() {\n\t}", "constructur() {}", "function Constructor() {\n // All construction is actually done in the init method\n if ( this.initialize )\n this.initialize.apply(this, arguments);\n }", "function Constructor() {}", "function Constructor() {}", "function Constructor() {}", "consructor() {\n }", "function Ctor() {\r\n }", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){}", "constructor(){\r\n\t}", "constructor (){}", "constructor()\n {\n this.init();\n }", "constructor() {\n\t\t// ...\n\t}", "constructor() \n { \n \n\n }", "constructor(){\r\n }", "constructor() {\r\n // ohne Inhalt\r\n }", "constructor() {\n super();\n this._init();\n }", "constructor(){\r\n\r\n }", "constructor(){\n \n\n }", "function Ctor() {}", "constructor(){\n\n }", "constructor(){\n\n }", "function construct() { }", "constructor( ) {}", "constructor() {\r\n super()\r\n this.init()\r\n }", "constructor() {\n super()\n self = this\n self.init()\n }", "constructor() {\n this.init();\n }", "constructor () {\r\n\t\t\r\n\t}", "constructor() {\n \n }", "constructor(){\n\n }", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor() {}", "constructor(){\n this.init();\n }", "constructor() {\r\n\r\n\r\n }", "constructor() {\r\n }", "constructor() {\n\n }", "constructor() {\n\n }", "constructor() {\n this._initialize();\n }", "constructor() {\n }", "constructor() { \n\n }", "function Ctor() {\n\t// Empty...\n}", "constructor(){\n this.init();\n\n\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "init(){}", "constructor(args) {\n super(args);\n }", "constructor(args) {\n super(args);\n }", "constructor() {\n this.init();\n }", "constructor() {\n this.init();\n }", "constructor() {\n }", "constructor() {\n }", "constructor() {\n }" ]
[ "0.80362153", "0.79341316", "0.78611135", "0.7843023", "0.78206825", "0.78206825", "0.78206825", "0.76931036", "0.7557418", "0.7528882", "0.7528882", "0.7528882", "0.7528882", "0.7528882", "0.7528882", "0.7528882", "0.7507304", "0.74755096", "0.7461952", "0.7433301", "0.74325585", "0.742933", "0.7409472", "0.739988", "0.73989195", "0.7387864", "0.7385876", "0.73795193", "0.73795193", "0.7367825", "0.73472077", "0.73193896", "0.7299886", "0.7282577", "0.72229993", "0.7189171", "0.71819043", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.7181744", "0.71336216", "0.71257764", "0.708481", "0.7083789", "0.7083789", "0.70801175", "0.7075988", "0.7061682", "0.70561457", "0.7054258", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.7051066", "0.70394677", "0.70187896", "0.70187896", "0.70148575", "0.70148575", "0.70116556", "0.70116556", "0.70116556" ]
0.0
-1
const person = new Person(); person.eat().sleep(1, '1').eat().sleep(3, '2').eat().run();
function Person2() { this.queue = []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "eat() {}", "function eat() {\n \n}", "function Sleep() {\n action.call(this);\n}", "function eat(dosomething) {\n\tprocess.nextTick( () => {\n\t\tconsole.log('begin eat');\n\t\tconsole.log('finish eat');\n\n dosomething && dosomething();\n\t});\n\n\n}", "function bob(){\n new Employ(\"Bob Cool\", \"cool\", 200, 40, 30);\n setstats();\n act_money();\n}", "async function eatDrinkSleep() {\n try {\n let eatMessage = await eat();\n console.log(eatMessage);\n let drinkMessage = await drink();\n console.log(drinkMessage);\n let sleepMessage = await sleep();\n console.log(sleepMessage);\n }\n catch(errorMessage) {\n console.log(errorMessage);\n }\n}", "eat() {\n console.log(\"i have eaten this \" + this.type + \" cheese\")\n }", "sleep() {}", "function run(){\n return new RandomMeme();\n}", "function example9() {\n\n var sum = function sum(x, y) {\n console.log(x + y);\n };\n\n function delay(f, ms) {\n return function () {\n var _this2 = this,\n _arguments2 = arguments;\n\n setTimeout(function () {\n return f.apply(_this2, _arguments2);\n }, ms);\n };\n }\n\n var d = delay(sum, 5000);\n d(1, 2);\n}", "call(person) {\n console.log(\"call\")\n\n // Iteration 4: When a person calls the elevator, we will add that person\n // to the \"waitingList\" array. They are not yet in the passengers collection\n // because they're not yet in the elevator.\n this.waitingList.push(person);\n\n // Iteration 4: Add the \"originFloor\" to the \"requests\" array to let the\n // elevator know where it has to stop to pick the passenger up.\n this.requests.push(person.originFloor);\n }", "function friendlyPeople(person) {\n this.greeting = \"Morning \";\n this.person = person;\n this.speak = function() {\n console.log(this.greeting + this.person);\n console.log(this);\n };\n}", "function Person(name, age){\n this.name = name;\n this.age = age;\n this.speak = function(){\n console.log(\"Hello, my name is \" + this.name);\n }\n}", "function repeatThreeTimes(func) {\n func(); // cannot do func.call(john) b/c its out of scope\n func();\n func();\n}", "function Person(name, age){\n this.name = name;\n this.age = age;\n\n this.printInfo = function(){\n console.log(`I am ${this.name} and I am ${this.age} years old`)\n }\n\n this.increaseAge = (function(){\n return function(){return age++}\n })()\n}", "function take(Action) {\n Action();\n}", "function DelayedGreeter2(name) {\n this.name = name; \n}", "function meanPerson(greeting, meanie, time) {\n this.greeting = greeting; \n this.meanie = meanie;\n this.time = time;\n this.speak = function() {\n console.log(this.greeting + this.meanie + this.time);\n console.log(this);\n };\n}", "sleep(){\n\n }", "function Person(attributes) {\n this.name = attributes.name;\n this.age = attributes.age;\n this.speak = function () {\n console.log(`Hi my name is ${this.name}`);\n };\n}", "function Person(name){\n this.name = name\n this.walk = function(){\n return this.name + \" está parado.\"\n }\n}", "function Person(name, stance, perception, taunt){\r\n this.name = name;\r\n this.stance = stance;\r\n this.perception = perception;\r\n this.taunt = taunt;\r\n this.weapon = null;\r\n\t\r\n\t/* \r\n\tcurrent attack mode property for players (starts as single shot)\r\n\t*/\r\n\tthis.currentAttackMode = \"single\";\r\n\r\n /*\r\n\tGo ahead, give them a gun, see if I care.\r\n\tgun - object - the gun to equip them with\r\n */\r\n this.arm = function(gun) {\r\n\tthis.weapon = gun;\r\n }\r\n\r\n /*\r\n\tAttacks with the current weapon\r\n\ttarget - object - the thing you want to attack\r\n */\r\n this.attack = function(target) {\r\n\tthis.weapon.sprayAndPray(target);\r\n }\r\n\t\r\n\t/*\r\n\tAttacks with single shot\r\n\t*/\r\n\tthis.attackSingle = function(target) {\r\n\tthis.weapon.aimedShot(target);\r\n }\r\n\t\r\n\t/*\r\n\tAttacks with melee\r\n\t*/\r\n\tthis.attackMelee = function(target) {\r\n\tthis.weapon.attackMelee(target);\r\n }\r\n\t\r\n\t/*\r\n\tAttacks with grenade\r\n\t*/\r\n\tthis.attackGrenade = function(target) {\r\n\tthis.weapon.grenade(target);\r\n }\r\n\t\r\n}", "function Person(name){\n this.name = name;\n this.sayHi = function(){\n return \"Hi\" + this.name;\n }\n}", "function duckCalls(duck) {\n duck.fly();\n duck.quack();\n}", "function excitedPerson(person){\n this.greeting='Howdy';\n this.person=person;\n this.speak=function(){\n console.log(this.person+this.person);\n console.log(this);\n };\n}", "function shoot(){\n shot1();\n shot2();\n shot3();\n\n }", "function example3 () {\n function Animal(name) {\n this.name = name;\n this.speed = 0;\n }\n\n Animal.prototype.run = function(speed) {\n this.speed += speed;\n console.log( this.name + ' бежит, скорость ' + this.speed );\n };\n\n function Rabbit(name) {\n this.name = name;\n this.speed = 0;\n }\n\n Rabbit.prototype = Object.create(Animal.prototype)\n Rabbit.prototype.constructor = Rabbit\n\n Rabbit.prototype.jump = function() {\n this.speed++;\n console.log( this.name + ' прыгает' );\n };\n\n //total overriding\n Rabbit.prototype.run = function () {\n this.speed++\n this.jump()\n }\n\n // extend parent method\n Rabbit.prototype.run = function() {\n Animal.prototype.run.apply(this, arguments) // don't forget about proper context\n this.jump()\n };\n\n var rabbit = new Rabbit('Кроль');\n}", "function DelayedGreeter3(name) {\n this.name = name; \n}", "function Animal(name, energy){\n let animal = {};\n animal.name = name;\n animal.energy = energy;\n \n animal.eat = function(amount){\n console.log(this.name + \" is eating\");\n //console.log(`${this.name} is eating`);\n this.energy += amount;\n }\n\n animal.sleep = function(length){\n console.log(this.name + \" is sleeping\")\n this.energy += length;\n }\n \n animal.play = function(length){\n console.log(this.name + \" is playing\");\n this.energy -= length;\n }\n \n return animal;\n}", "function Person(name) {\n this.message = 'Hello ';\n this.name = name;\n this.speak = function() {\n console.log(this.message + this.name);\n console.log(this);\n };\n }", "function Hero(name, age, power) {\n this.name = name;\n this.age = age;\n this.power = power;\n this.speak = function() {\n console.log(\"Hi, I'm \" + this.name + \" and I'm gonna kick your ass!\");\n }\n}", "function Person() {\n\tthis.name = \"Peter\";\n\tthis.age = \"25\";\n\tthis.greeting = function() {\n \t\tconsole.log( \"Greetings, my name is \" + this.name +\" and I am \"+ this.age +\" years old.\");\n\t};\t\t\n\tthis.salute = function(){\n\t\tconsole.log(\"Good morning!, and in case I dont see you, good afternoon, good evening and good night!\");\n\t};\n\n}", "function betray(name){\n attackXY(); \n swingAxe();\n}", "function greet() {\n const reply = [this.animal, 'typically sleep between', this.sleepDuration].join(' ');\n console.log(reply);\n}", "function Person(job, married) {\n this.job = job;\n this.married = married;\n // add a \"speak\" method to Person!\n this.speak = function(){\n console.log(\"Hello!\")\n }\n \n}", "function coach(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n}", "function Drum() {\n this.noise = 'boom';\n this.duration = 1000; // makes the duration for 1s \n this.goBoom = function() {console.log(this.noise)}; // this is the action when this is called\n}", "function shootWater(){\n createProjectile();\n createProjectile();\n createProjectile();\n}", "function greet(greeter){\n this.greeting =\"My name is \";\n this.greeter = greeter;\n this.speak = function(){\n console.log(this.greeting + this.greeter);\n }\n}", "rumbleShoot() {\n\n this.log.debug('Rumble: shoot rumble');\n\n this._turnOn();\n\n let instance = this;\n setTimeout(function() {\n instance._turnOff();\n }, 150);\n\n }", "function person() {\n return function () {\n console.log('hello friend');\n }\n}", "function Tournament(name){\n this.name = name;\n this.run = function(){alert(\"running \"+this.name)}\n}", "function animal(name, energy) {\n let animal = {};\n animal.name = 'Neo';\n animal.energy = 10;\n\n animal.eat = function (amount) {\n console.log(`${this.name} is eating`);\n this.energy += amount;\n }\n\n animal.sleep = function (length) {\n console.log(`${this.name} is sleeping`);\n this.energy += length;\n };\n\n animal.playing = function (length) {\n console.log(`${this.name} is playing`);\n this.energy -= length;\n };\n}", "function greet() {\r\n var reply = [this.animal, 'typically sleep between', this.sleepDuration].join(' ');\r\n console.log(reply);\r\n}", "drinkSake(){\n this.health += 10;\n }", "ba () {\n\t\tfor (let i = 0; i < 3; i++)\n\t\t\tthis.b();\n\t}", "function sayBye(names) {\n let namez = names(); // invoking this time\n for (let i = 0; i < namez.length; ++i) {\n let name = namez[i];\n console.log('Bye', name + '!');\n }\n}", "function andThenThis() {\n console.log('and then this')\n}", "function Person(name, age, hairColor) {\n this.name = name;\n this.age = age;\n this.hairColor = hairColor;\n this.sayAll = function () {\n console.log(`Hi, my name is ${this.name} and I am ${this.age} years old with ${this.hairColor} hair.`);\n }\n}", "function goToSleep(){\n console.log('going to sleep');\n}", "function repeatBindCallApply() {\n let john = {\n name: 'John',\n age: 26,\n job: 'teacher',\n presentation: function (style, timeOfDay) {\n if (style === 'formal') {\n console.log('Good ' + timeOfDay +\n ', Ladies and gentlemen! I\\'m ' +\n this.name + ', I\\'m a ' +\n this.job + ' and I\\'m ' +\n this.age + ' years old.');\n } else if (style === 'friendly') {\n console.log('Hey! What\\'s up? I\\'m ' +\n this.name + ', I\\'m a ' +\n this.job + ' and I\\'m ' +\n this.age + ' years old. Have a nice ' +\n timeOfDay + '.');\n }\n }\n };\n\n let emily = {\n name: 'Emily',\n age: 35,\n job: 'designer'\n }\n\n john.presentation('formal', 'morning');\n // Copy johns function for emily and use arguments separately.\n john.presentation.call(emily, 'friendly', 'afternoon');\n\n // Same, but arguments as an array.\n // john.presentation.apply(emily, ['friendly', 'afternoon']);\n\n // Store function separatetely for chosen parameters.\n // Currying - Don't repeat same parameters while calling function.\n let johnFriendly = john.presentation.bind(john, 'friendly');\n johnFriendly('morning');\n\n let emilyFormal = john.presentation.bind(emily, 'formal');\n emilyFormal('afternoon');\n\n\n // Another bind example\n let years = [1990, 1965, 1937, 2005, 1998];\n\n function arrCalc(arr, fn) {\n let arrResult = [];\n for (let i = 0; i < arr.length; i++)\n arrResult.push(fn(arr[i]));\n return arrResult;\n }\n\n function calculateAge(el) {\n return 2019 - el;\n }\n\n function isFullAge(limit, el) {\n return el >= limit;\n }\n\n let ages = arrCalc(years, calculateAge);\n var fullJapan = arrCalc(ages, isFullAge.bind(this, 20));\n console.log(ages);\n console.log(fullJapan);\n}", "function greet() {\n\tlet reply = [this.animal, 'typically sleep between', this.sleepDuration].join(' ');\n\tconsole.log(reply); \n}", "function Person(name){\n this.name = name;\n this.sayHi = function(){\n console.log(\"Hi \" + this.name);\n }\n}", "wait(ms) {\n this.chain(function (next) {\n setTimeout(function () {\n next()\n }, ms)\n })\n return this\n }", "function makeTheAnimalAndSpeak(ani) {\n // ani.speak(); \n ani.walk();\n}", "function sayHi() {\n console.log(`hello my name is ${name}`);\n changeName(); // Creates a tertiary execution context which stacks above sayHi();\n console.log(`sayHi is finished`);\n}", "function angryMan(greeter) {\n this.greeting = 'Hi ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n }", "function person(){\r\n this.name = \"Bob\";\r\n this.doStuff = function() {\r\n console.log(this.name + \" did stuff! Yay!\")\r\n }\r\n}", "function PebbleChain () {}", "function run() {\r\nsetTimeout(run, 150);\r\nact();\r\n}", "talk() {}", "function CordialPerson(greeter) {\n this.greeting = 'Hello';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n}", "function CordialPerson(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting+this.greeter);\n console.log(this);\n };\n}", "function CordialPerson(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n}", "function CordialPerson(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n}", "do (...args)\n\t{ return this.onSend (...args);\n\t}", "function foo() {\n this.name = 'David';\n this.say = function() {\n return \"I am\" + this.name;\n };\n}", "function walk() {\n console.log('waking')\n}", "function persona3 () {\n\nclass Person3 {\n constructor(name, age) {\n this.name = name;\n this.age = age;\n }\n\n greeting() {\n console.log(\n \"Hello, my name is \" + this.name + \" and I am \" + this.age + \".\"\n );\n }\n}\n\n// instantiating\nlet andrew = new Person3 (\"Andrew\", 30);\nlet mike = new Person3 (\"Mike\", 24);\nlet frank = new Person3 (\"Frank\", 29);\n\nandrew.greeting();\nmike.greeting();\nfrank.greeting();\n}", "function CordialPerson(greeter) {\n this.greeting = \"Hello \";\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n}", "function CordialPerson(greeter) {\n this.greeting = \"Hello\";\n this.greeter = greeter;\n this.speak = function () {\n console.log(`${this.greeting} ${this.greeter}`);\n }\n}", "function CordialPerson(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function () {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n}", "function SadPerson(person){\n this.person = person;\n this.say = \"I'm sad today\";\n this.speak = function(){\n console.log(`${this.say}, ${this.person}`)\n }\n }", "function callTwice(func) {\n func();\n func();\n}", "async attack (action_) { _attack (action_); }", "function PersonAnimator(){\n\tthis.moveRandomly = function(){ /*..*/ };\n}", "function simulate(){\n var name = names[Math.floor(Math.random()*names.length)];\n var room = rooms[Math.floor(Math.random()*rooms.length)];\n var duration = 1 + 5 * Math.random();\n var vote = Math.floor(Math.random()*2);\n //Timestamps\n var now = new Date();\n var time = now.getHours() + \" hours \" + now.getMinutes() + \" minutes \" + now.getSeconds() + \" seconds\";\n \n console.log(name);\n console.log(room);\n console.log(vote);\n console.log(time);\n \n var person = {\n name: name,\n\troom: room,\n vote: vote,\t\n\ttime: time\n }\n // simulate this person entering\n enter(person);\n \n //Vote a bunch before leaving\n setTimeout(function(){\n updateVote(person)\n }, 1000)\n // simulate this person leaving after 'duration' seconds\n setTimeout(function(){\n leave(person)\n }, 8000)\n}", "function run() {}", "step(t) {\n }", "eat() {\n this.energy += 10;\n }", "speak (...rest) {\n console.warn(...rest);\n return this;\n }", "function trial()\n{}", "function run() {\n // do something\n}", "takeTurn() {}", "function Person(name, age) {\n this.name = name;\n this.age = age;\n this.sayName = function () {\n console.log('im ' + this.name);\n }\n}", "play() {\r\n /*Display \"Simulating Battle*/\r\n console.log(\"Simulating Battle\");\r\n /*Call the \"createMinions\" function to create the minions.\r\n *Call the \"createPlayers\" function to create the players. */\r\n this.createMinions();\r\n this.createPlayers();\r\n /*create commenceBattle*/\r\n this.commenceBattle();\r\n }", "static meow() {\n console.log(\"Meow Meow Meow Cat Lovers\");\n }", "function fly(info, second) {\n console.log(`${this.name} is flying!!! ${info}`);\n}", "function Person(name, age, job) {\n this.name = name;\n this.age = age;\n this.job = job;\n this.sayName = function() {\n return this.name;\n };\n}", "function Person(name) {\n this.name = name;\n this.greeting = function() {\n console.log('Hi! I\\'m ' + this.name + '.');\n };\n}", "function GreetMeAgain(name) {\n this.greeting = \"Hello \";\n this.name = name;\n this.speak = function() {\n console.log(this.greeting + this.name);\n };\n}", "function CordialPerson(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n }", "function CordialPerson(greeter) {\n this.greeting = 'Hello ';\n this.greeter = greeter;\n this.speak = function() {\n console.log(this.greeting + this.greeter);\n console.log(this);\n };\n }", "act() {\n this.cooldown();\n loopOver(this.particles);\n }", "function task2 () {\n\n function Animal(name) {\n this.name = name;\n\n this.walk = function() {\n console.log( \"ходит \" + this.name );\n };\n }\n\n\n function Rabbit(name) {\n Animal.apply(this, arguments);\n }\n\n Rabbit.prototype = Object.create(Animal.prototype);\n\n Rabbit.prototype.walk = function() {\n console.log( \"прыгает \" + this.name );\n };\n\n var rabbit = new Rabbit(\"Кроль\");\n rabbit.walk();\n}", "function flyer({ name }) {\n return {\n fly: () => console.log(`${this.name} is flying...`)\n }\n}", "function attack() {\n // Do something...\n}", "function inception(){ //What do you expect to happen?\n return dream();\n}", "drinkSake(){\n this.health += 10;\n return this.health;\n }", "speak() { return this.name + \" says woof\"; }", "function task1 () {\n \n function Animal(name) {\n this.name = name;\n }\n\n Animal.prototype.walk = function() {\n console.log( \"ходит \" + this.name );\n };\n\n function Rabbit(name) {\n this.name = name;\n }\n Rabbit.prototype = Animal.prototype;\n\n Rabbit.prototype.walk = function() {\n console.log( \"прыгает! и ходит: \" + this.name );\n };\n\n var a = new Animal('a')\n\n var r = new Rabbit('r')\n\n a.walk() // прыгает и ходит????\n r.walk()\n}" ]
[ "0.6443813", "0.5992623", "0.5860873", "0.5700551", "0.56858426", "0.5660079", "0.5653109", "0.56131995", "0.5612804", "0.5576446", "0.5573344", "0.55475", "0.55398774", "0.55191934", "0.5517053", "0.54980165", "0.54946274", "0.549077", "0.54788744", "0.54180485", "0.5406966", "0.5403714", "0.5399333", "0.5395907", "0.5384874", "0.5383061", "0.5374089", "0.5370165", "0.536667", "0.53432465", "0.5339945", "0.53395534", "0.53159344", "0.5310581", "0.5307016", "0.5280754", "0.52685946", "0.5263875", "0.52621144", "0.52620184", "0.52552027", "0.52551657", "0.5249632", "0.52457774", "0.5244994", "0.5242664", "0.5226369", "0.5223578", "0.5223131", "0.522111", "0.52191687", "0.52126855", "0.5212033", "0.5211967", "0.5210669", "0.5209806", "0.5203105", "0.5186462", "0.51709735", "0.5162766", "0.5162088", "0.51481", "0.51463675", "0.5144877", "0.5144877", "0.5134905", "0.5132427", "0.51321554", "0.51317596", "0.5130714", "0.5127076", "0.51257443", "0.5101971", "0.5089785", "0.50892526", "0.5087928", "0.5085037", "0.5079802", "0.50784", "0.5077876", "0.5077013", "0.5073041", "0.5072798", "0.5068416", "0.50670433", "0.50668806", "0.50658166", "0.50566244", "0.5051055", "0.5046906", "0.5045842", "0.5044421", "0.5044421", "0.5032793", "0.5028397", "0.5021", "0.5020931", "0.5020015", "0.501986", "0.5018895", "0.5015472" ]
0.0
-1
Easter Bunny HQ App Assumptions/Decisions Grid is comprised of squares, every block is equidistant Dr. Bunny is 'theoretically' moving about the grid in order to compute the location of Easter Bunny HQ and comments below refer to her in this sense Start position is [0,0] on Cartesian grin Track the direction in which Dr. Bunny is facing as she 'theoretically' moves about the grid Initial direction is facing north Cardinal direction vectors in a Cartesian grid: North [0, 1], South [0, 1], East [1,0], West [1,0]
function Direction() { this.cardinalDirectionVectors = [ [0,1], // North [1,0], // East [0,-1], // South [-1, 0] // West ]; // Dr. Bunny initially faces North this.directionVectorIndex = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "move (grid) {\n if (this.orientation.dir === Orientation.left) {\n this.position.col--;\n } else if (this.orientation.dir === Orientation.right) {\n this.position.col++;\n } else if (this.orientation.dir === Orientation.up) {\n this.position.row--;\n } else if (this.orientation.dir === Orientation.down) {\n this.position.row++;\n }\n\n // updates the grid based on the cell the ant has landed\n let positionHash = (this.position.row * 31) ^ this.position.col;\n if ((this.position.row + this.position.col) % 2 === 0) grid[positionHash] = 'W' \n else grid[positionHash] = 'B';\n }", "update(grid, start, end) {\n function isValid(position){\n return position.x >= 0 && position.y >= 0 && position.x < grid.length && position.y < grid[0].length;\n }\n\n var directions = [{dx:1, dy:0}, {dx:0, dy:1}, {dx:-1, dy:0}, {dx:0, dy:-1}];\n var alreadyVisited = [];\n var nextHop = [];\n for(var x=0; x<grid.length; x++){\n alreadyVisited[x] = [];\n nextHop[x] = [];\n }\n alreadyVisited[end.x][end.y] = true;\n nextHop[end.x][end.y] = {x: end.x, y: end.y};\n\n var stack = [end];\n while (stack.length > 0) {\n const current = stack.shift();\n for(let direction of directions){\n let newPosition = {x:current.x+direction.dx, y:current.y+direction.dy};\n if(isValid(newPosition)){\n if(!alreadyVisited[newPosition.x][newPosition.y]){\n nextHop[newPosition.x][newPosition.y] = current;\n if(!grid[newPosition.x][newPosition.y]){\n stack.push(newPosition);\n }\n }\n alreadyVisited[newPosition.x][newPosition.y] = true;\n }\n }\n }\n this.nextHop = nextHop;\n this.start = start;\n this.end = end;\n }", "step() {\n // Fill the offscreen buffer with the next cca generation built\n // from the current buffer.\n\n let backBufferIndex = this.currentBufferIndex === 0 ? 1 : 0;\n let currentBuffer = this.buffer[this.currentBufferIndex];\n let backBuffer = this.buffer[backBufferIndex];\n\n // See if we have a neighbor to infect this one\n function hasInfectiousNeighbor(x, y) {\n const nextValue = (currentBuffer[y][x] + 1) % MODULO;\n\n // Check the west neighbor of cell x, y\n /*if (x > 0) {\n if (currentBuffer[y][x - 1] === nextValue) {\n return true;\n }\n }*/\n\n // North\n if (y > 0) {\n if (currentBuffer[y - 1][x] === nextValue) {\n return true;\n }\n }\n\n // East\n if (x < this.width - 1) {\n if (currentBuffer[y][x + 1] === nextValue) {\n return true;\n }\n }\n\n // South\n if (y < this.height - 1) {\n if (currentBuffer[y + 1][x] === nextValue) {\n return true;\n }\n }\n\n // If we've made it this far we're not infected!\n return false;\n }\n\n // Loop through and decide the state of the next generation\n // for each cell processed.\n for (let y = 0; y < this.height; y++) {\n for (let x = 0; x < this.width; x++) {\n if (hasInfectiousNeighbor.call(this, x, y)) {\n backBuffer[y][x] = (currentBuffer[y][x] + 1) % MODULO;\n } else {\n backBuffer[y][x] = currentBuffer[y][x];\n }\n }\n }\n\n this.currentBufferIndex = this.currentBufferIndex === 0 ? 1 : 0;\n }", "function SquareGrid(gridLines) {\n var _vertexDistance;\n var _ordered;\n var _edges;\n var _cavities;\n var _matrix;\n var _gridLines;\n\n _gridLines = gridLines;\n setupGrid();\n findEdges();\n findCavities();\n \n function setupGrid() {\n var ordered = [];\n _gridLines.forEach(function (line, i) {\n line.split('').forEach(function (char) {\n ordered.push(parseInt(char));\n });\n });\n _vertexDistance = _gridLines[0].length;\n _ordered = ordered;\n\n var matrix = [];\n for (var x=0; x<_vertexDistance; x++) {\n var line = [];\n for (var y=0; y<_vertexDistance; y++) {\n line.push(_ordered[x * _vertexDistance + y]);\n }\n matrix.push(line);\n }\n _matrix = matrix;\n }\n\n function printGrid() {\n var strGrid = [];\n for (var i=0; i<_vertexDistance; i++) {\n var line = '';\n for (var j=0; j<_vertexDistance; j++) {\n var n = i * _vertexDistance + j;\n if (!isEdge(n) && isCavity(i, j)) {\n line += 'X';\n } else {\n line += _ordered[n];\n }\n }\n strGrid.push(line);\n }\n console.log(strGrid.join('\\n'));\n }\n\n function findEdges() {\n var edges = [];\n _ordered.forEach(function (num, n) {\n if (n < _vertexDistance) edges.push(n); // top\n if (n / _vertexDistance >= (_vertexDistance - 1)) edges.push(n); // bottom\n if (!(n % _vertexDistance)) edges.push(n - 1, n); // sides\n });\n _edges = edges;\n }\n\n function findCavities() {\n var cavities = [];\n for (var i=0; i<_vertexDistance; i++) {\n for (var j=0; j<_vertexDistance; j++) {\n var n = i * _vertexDistance + j;\n if (!isEdge(n)) {\n if (isCavity(i, j)) cavities.push(n);\n }\n }\n }\n _cavities = cavities;\n }\n\n function isCavity(i, j) {\n var surrounds = [];\n surrounds.push(\n _matrix[i][j-1],\n _matrix[i][j+1],\n _matrix[i-1][j],\n _matrix[i+1][j]\n );\n\n var valueAtN = _matrix[i][j];\n return Math.max.apply(0xDEADBEEF, surrounds) < valueAtN;\n }\n\n function isEdge(n) {\n return (_edges.indexOf(n) !== -1);\n }\n\n return {\n printGrid: printGrid\n };\n}", "step() {\n /* If you put logic from CCA here it works as should */\n\n /* In the Game of Life, these rules examine each cell of the grid. \n For each cell, it counts that cell's eight neighbors\n (up, down, left, right, and diagonals), and then act on that result.\n\n If the cell is alive and has 2 or 3 neighbors, then it remains alive. Else it dies.\n If the cell is dead and has exactly 3 neighbors, then it comes to life. Else if remains dead. */\n\n let currentBuffer = this.cells[this.currentBufferIndex];\n let backBuffer = this.cells[this.currentBufferIndex === 0 ? 1 : 0];\n \n // see if we have a neighbor that can infect this cell and change its color\n function checkNeighbors(w, h) {\n let neighbors = 0;\n\n // Check West\n if (w) {\n if (currentBuffer[h][w - 1]) {\n neighbors++;\n }\n }\n // Check NW\n if (h && w) {\n if (currentBuffer[h - 1][w - 1])\n neighbors++;\n }\n // Check North\n if (h) {\n if (currentBuffer[h - 1][w]) {\n neighbors++;\n }\n }\n // Check NE\n if ((w < this.width - 1) && h) {\n if (currentBuffer[h - 1][w + 1]) {\n neighbors++;\n }\n }\n // Check East\n if (w < this.width - 1) {\n if (currentBuffer[h][w + 1]) {\n neighbors++;\n }\n }\n // Check SE\n if ((h < this.height - 1) && (w < this.width - 1)) {\n if (currentBuffer[h + 1][w + 1]) {\n neighbors++;\n }\n }\n // Check South\n if (h < this.height - 1) {\n if (currentBuffer[h + 1][w]) {\n neighbors++;\n }\n }\n // Check SW\n if ((h < this.height - 1) && w) {\n if (currentBuffer[h + 1][w - 1]) {\n neighbors++;\n }\n }\n\n return neighbors;\n } // end: checkNeightbors()\n\n for (let h = 0; h < this.height; h++) {\n for (let w = 0; w < this.width; w++) {\n let neighborCount = checkNeighbors.call(this, w, h);\n\n // is current cell alive?\n if (currentBuffer[h][w]) {\n if (neighborCount === 2 || neighborCount === 3) {\n backBuffer[h][w] = currentBuffer[h][w]; // cell stay alives\n }\n else { // else it dies\n backBuffer[h][w] = (currentBuffer[h][w] + 1) % MODULO;\n }\n }\n else { // current cell is dead\n if (neighborCount === 3) {\n backBuffer[h][w] = (currentBuffer[h][w] + 1) % MODULO; // bring cell to life\n }\n else { // else cell remains dead\n backBuffer[h][w] = currentBuffer[h][w];\n }\n }\n }\n }\n\n this.currentBufferIndex = this.currentBufferIndex === 0 ? 1 : 0;\n }", "function _calculateGrid() {\n\tvar i = $game.VIEWPORT_WIDTH;\n\twhile(--i >= 0) {\n\t\tvar j = $game.VIEWPORT_HEIGHT;\n\t\twhile(--j >= 0) {\n\t\t\tvar dist = _distFromCharger({x:i,y:j});\n\t\t\t_grid[i][j].distance = dist;\n\t\t\t_grid[i][j].charger = -1;\n\t\t}\n\t}\n}", "function tresureIsland2(grid) {\n\tif (grid == null || grid.length === 0) return false;\n\n\tlet queueStart = []; //all start points\n\tconst ROW = grid.length;\n\tconst directions = [\n\t\t[-1, 0],\n\t\t[1, 0],\n\t\t[0, 1],\n\t\t[0, -1]\n\t];\n\n\tlet min = 0;\n\n\t//fill queue with all starts\n\tgrid.forEach((row, r) => {\n\t\trow.forEach((col, c) => {\n\t\t\tif (grid[r][c] === 'S') {\n\t\t\t\tqueueStart.push([r, c]);\n\t\t\t}\n\t\t});\n\t});\n\n\twhile (queueStart.length) {\n\t\tmin++;\n\t\tlet len = queueStart.length;\n\t\tfor (let i = 0; i < len; i++) {\n\t\t\tlet [sr, sc] = queueStart.shift();\n\t\t\tfor (let [dr, dc] of directions) {\n\t\t\t\tlet r = sr + dr;\n\t\t\t\tlet c = sc + dc;\n\t\t\t\tif (r >= 0 && r < ROW && c >= 0 && c < grid[r].length) {\n\t\t\t\t\tif (grid[r][c] === 'X') {\n\t\t\t\t\t\treturn min;\n\t\t\t\t\t}\n\t\t\t\t\tif (grid[r][c] === 'O') {\n\t\t\t\t\t\tgrid[r][c] = 'D';\n\t\t\t\t\t\tqueueStart.push([r, c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn -1;\n}", "function setupGridSpots() {\r\n /*Direction spots*/\r\n right = [32, 24, 17];\r\n up = [39, 30];\r\n left = [7, 14];\r\n down = [0, 9];\r\n \r\n /*End spot*/\r\n end = [21];\r\n \r\n /*Card spots*/\r\n card = [2, 6, 22, 23, 28, 34, 38];\r\n \r\n /*Trap Spots*/\r\n trap = [1, 3, 8, 10, 13, 15, 26, 27, 36];\r\n \r\n /*Fill grid*/\r\n fillGrid(\"right\", right);\r\n fillGrid(\"up\", up);\r\n fillGrid(\"left\", left);\r\n fillGrid(\"down\", down);\r\n \r\n fillGrid(\"end\", end);\r\n \r\n fillGrid(\"card\", card);\r\n \r\n fillGrid(\"trap\", trap);\r\n}", "setUpTestBoard() {\n let rowStart = 0;\n let columnStart = 0;\n let rowEnd = this.row - 1;\n let columnEnd = this.col - 1;\n let order = 0;\n this.grid = [];\n // Record the row and col index of the last block\n this.lastRow = 0;\n this.lastCol = 0;\n\n for (let i = 0; i < this.row; i++) {\n this.grid.push([]);\n for (let j = 0; j < this.col; j++) {\n this.grid[i].push({order: 0, class: ''});\n }\n }\n const assignGrid = (row, col, direction) => {\n this.grid[row][col].order = order++;\n this.grid[row][col].class = direction;\n [this.lastRow, this.lastCol] = [row, col];\n };\n // assign spiral index and arrow class for grid in spiral order.\n while (rowStart <= rowEnd && columnStart <= columnEnd) {\n for (let col = columnStart; col < columnEnd; col++) {\n assignGrid(rowStart, col, 'arrowRight');\n }\n for (let row = rowStart; row < rowEnd; row++) {\n assignGrid(row, columnEnd, 'arrowDown');\n }\n if (rowStart < rowEnd && columnStart < columnEnd) {\n for (let col = columnEnd; col > columnStart; col--) {\n assignGrid(rowEnd, col, 'arrowLeft');\n }\n for (let row = rowEnd; row > rowStart + 1; row--) {\n assignGrid(row, columnStart, 'arrowTop');\n }\n assignGrid(rowStart + 1, columnStart, 'arrowRight');\n }\n else if (columnStart == columnEnd && rowStart < rowEnd) {\n assignGrid(rowEnd, columnEnd, 'arrowDown');\n }\n else if (rowStart == rowEnd && columnStart < columnEnd) {\n assignGrid(rowEnd, columnEnd, 'arrowRight');\n }\n rowStart++;\n rowEnd--;\n columnStart++;\n columnEnd--;\n }\n this.grid[this.lastRow][this.lastCol].class = 'goal';\n }", "function testSetup() {\n let testGrid = new Grid(playerNumber=99);\n testGrid.clearGrid();\n testGrid.setupGrid();\n testGrid.placeShip(SHIPS.A,0,0,\"right\");\n testGrid.placeShip(SHIPS.B,0,9,\"right\");\n testGrid.placeShip(SHIPS.C,8,3,\"down\");\n testGrid.placeShip(SHIPS.D,8,6,\"right\");\n testGrid.placeShip(SHIPS.S,4,9,\"right\");\n console.table(testGrid.matrix);\n}", "_findSquares(tunnelDirection) {\n let x, y\n const result = []\n if (tunnelDirection === 'NORTH') {\n for (({ x } = this), end = (this.x+this.tunnelWidth)-1, asc = this.x <= end; asc ? x <= end : x >= end; asc ? x++ : x--) {\n var asc, end\n result.push({ x, y: this.y-1, width: 1, height: 1 }) }\n } else if (tunnelDirection === 'SOUTH') {\n for (({ x } = this), end1 = (this.x+this.tunnelWidth)-1, asc1 = this.x <= end1; asc1 ? x <= end1 : x >= end1; asc1 ? x++ : x--) { var asc1, end1;\n result.push({ x, y: this.y+this.height, width: 1, height: 1 }) }\n } else if (tunnelDirection === 'EAST') {\n for (({ y } = this), end2 = (this.y+this.tunnelWidth)-1, asc2 = this.y <= end2; asc2 ? y <= end2 : y >= end2; asc2 ? y++ : y--) { var asc2, end2;\n result.push({x: this.x+this.width, y, width: 1, height: 1 }) }\n } else {\n for (({ y } = this), end3 = (this.y+this.tunnelWidth)-1, asc3 = this.y <= end3; asc3 ? y <= end3 : y >= end3; asc3 ? y++ : y--) { var asc3, end3;\n result.push({x: this.x-1, y, width: 1, height: 1 }) }\n }\n return result\n }", "function GridPosition(nx, ny, nz) {\n \"use strict\";\n this.nx = nx;\n this.ny = ny;\n this.nz = nz;\n}", "cohesion(boids) {\r\n let neighbordist = 50;\r\n let sum = createVector(0, 0); // Start with empty vector to accumulate all locations\r\n let count = 0;\r\n for (let i = 0; i < boids.length; i++) {\r\n let d = p5.Vector.dist(this.position, boids[i].position);\r\n if ((d > 0) && (d < neighbordist)) {\r\n sum.add(boids[i].position); // Add location\r\n count++;\r\n }\r\n }\r\n if (count > 0) {\r\n sum.div(count);\r\n return this.seek(sum); // Steer towards the location\r\n } else {\r\n return createVector(0, 0);\r\n }\r\n }", "function Grid(pins, x_max, y_max) {\n //this.Density = density;\n this.x_max = x_max;\n this.y_max = y_max;\n var H_Lat = -91;\n var L_Lat = 91;\n var H_Long = -181;\n var L_Long = 181;\n\n pins.forEach(function(pin){\n if (pin.Latitude > H_Lat && pin.Latitude !== null) {\n H_Lat = pin.Latitude;\n console.log(\"New H_Lat: \" + pin.Latitude);\n }\n\n if (pin.Latitude < L_Lat && pin.Latitude !== null){\n L_Lat = pin.Latitude;\n console.log(\"New L_Lat: \" + pin.Latitude);\n }\n\n if (pin.Longitude > H_Long && pin.Longitude !== null){\n H_Long = pin.Longitude;\n console.log(\"New H_Long: \" + pin.Longitude);\n }\n\n if (pin.Longitude < L_Long && pin.Longitude !== null) {\n L_Long = pin.Longitude;\n console.log(\"New L_Long: \" + pin.Longitude);\n }\n\n });\n\n var lat_extend = (H_Lat - L_Lat) * .025;\n var long_extend = (H_Long - L_Long) * .025;\n\n H_Lat = H_Lat + lat_extend;\n L_Lat = L_Lat - lat_extend;\n H_Long = H_Long + long_extend;\n L_Long = L_Long - long_extend;\n\n //console.log(\"HLat: \" + String(H_Lat) + \" \\ LLat: \" + String(L_Lat));\n //console.log(\"HLong: \" + String(H_Long) + \" \\ LLong: \" + String(L_Long));\n\n var chunkCollection = [];\n\n for (var a = 0; a <= this.y_max; a++) {\n chunkCollection.push(new Array(this.x_max));\n }\n\n// solve for distance\n\n var recHeight = (H_Lat - L_Lat) / y_max;\n var recWidth = (H_Long - L_Long) / x_max;\n\n //console.log(\"rec width: \" + recWidth);\n //console.log(\"rec height: \" + recHeight);\n\n// the distance from point 10 and point 4 is\n// Density is how many rectangles will be on screen.\n\n\n for (var y = 0; y < y_max; y++) {\n for (var x = 0; x < x_max; x++) {\n // Creates the boundary, lowest point with lowest corner\n // to create a side of the cube.\n // merge the google maps.\n\n chunkCollection[x][y] = new Chunk(x, y,\n recWidth, recHeight, L_Lat, L_Long);\n }\n }\n\n pins.forEach(function (p) {\n\n var lat_index = (p.Latitude - L_Lat) / recHeight;\n var long_index = (p.Longitude - L_Long) / recWidth;\n\n lat_index = parseInt(lat_index);\n long_index = parseInt(long_index);\n\n try {\n chunkCollection[long_index][lat_index].addPin(p);\n } catch (e) {\n console.log(\"valid: \" + p.isValid());\n\n console.log(\"P| lat:\" + p.Latitude + \" long:\" + p.Longitude);\n console.log(\"P| latI:\" + lat_index + \" longI:\" + long_index);\n console.error(\"Data is not possible! Something fucked up\");\n }\n\n });\n\n this.getChunk = function (x, y) {\n try {\n return chunkCollection[y][x];\n } catch (e) {\n console.warn(\"Out of bounds!\");\n }\n };\n\n this.getChunks = function() {\n var chunks = [];\n\n for (var y = 0; y < this.y_max; y++) {\n for (var x = 0; x < this.x_max; x++) {\n if (!chunkCollection[x][y].isEmpty()){\n chunks.push(chunkCollection[x][y]);\n }\n }\n }\n\n return chunks;\n };\n\n this.draw = function(map){\n chunkCollection.forEach(function(col){\n col.forEach(function(chunk){\n chunk.draw(map);\n });\n });\n };\n\n this.getFarms = function () {\n var farms = [];\n for (var y = 0; y < this.y_max; y++) {\n for (var x = 0; x < this.x_max; x++) {\n var chunk = chunkCollection[x][y];\n if (chunk !== null && !chunk.isEmpty()){\n var chunks = chunk.getSurrounding(this, null);\n var pins = [];\n for (var i = 0; i < chunks.length; i++){\n for (var ii = 0; ii < chunks[i].pins.length; ii++){\n pins.push(chunks[i].pins[ii]);\n }\n }\n var farm = new Farm(pins, false);\n chunks.forEach(function(chunk){\n chunkCollection[chunk.x][chunk.y] = new Chunk();\n });\n if (!(farm.pins.length < 100))\n farms.push(farm);\n }\n }\n }\n return farms;\n };\n\n this.getEdgeChunks = function (){\n var edgeChunks = [];\n var that = this;\n\n chunkCollection.forEach(function(col){\n col.forEach(function(chunk){\n if (chunk.isEdge(that, this.x_max, this.y_max))\n edgeChunks.push(chunk)\n });\n });\n\n return edgeChunks;\n };\n\n this.getLiveChunks = function (){\n var live = [];\n var chunks = this.getChunks();\n for (var i = 0; i < chunks.getChunks().length; i++){\n if (chunks[i].pinCount > 0)\n live.push(chunks[i]);\n }\n return live;\n };\n\n this.getCenter = function(){\n return {lat: L_Lat + ((H_Lat - L_Lat)/2), lng: L_Long + ((H_Long - L_Long)/2)};\n }\n}", "function generatePositions() {\n rows = [];\n columns = [];\n if (gridOption.enableRow) {\n //use coordinate.y to generate rows\n if (coordinate.y && coordinate.y.model.rotate == 90) {\n coordinate.y.forEach(function(i,length){\n rows.push(coordinate.y.model.beginY-length)\n });\n gridOption._x = coordinate.x.model.beginX;\n } else if (coordinate.x && coordinate.x.model.rotate == 90) {\n coordinate.x.forEach(function (i, length) {\n rows.push(coordinate.x.model.beginY - length)\n });\n\n gridOption._x = coordinate.y.model.beginX;\n }\n gridOption.width = coordinate.size().width || 0;\n gridOption.rows = rows;\n }\n if (gridOption.enableColumn) {\n if (coordinate.y && coordinate.y.model.rotate == 0) {\n coordinate.y.forEach(function(i,length){\n columns.push(coordinate.y.model.beginX+length)\n });\n gridOption._y = coordinate.x.model.beginY;\n } else if (coordinate.x && coordinate.x.model.rotate == 0) {\n coordinate.x.forEach(function (i, length) {\n columns.push(coordinate.x.model.beginX + length)\n });\n gridOption._y = coordinate.y.model.beginY;\n }\n gridOption.height = coordinate.size().height || 0;\n gridOption.columns = columns;\n }\n\n }", "bestPlaceToStart(incomingClues) {\n\n // penalize clues that have more zeros\n function weightedClue(clue) {\n return clue ? clue : -10;\n }\n\n const sideLength = this.size;\n const lastCell = this.size * 4 - 1;\n\n const sideClues = [\n {\n direction: 'top',\n count:\n weightedClue(incomingClues[sideLength]) + weightedClue(incomingClues[sideLength + 1]) +\n weightedClue(incomingClues[lastCell - 1]) + weightedClue(incomingClues[lastCell])\n },\n {\n direction: 'bottom',\n count:\n weightedClue(incomingClues[sideLength * 2 - 2]) + weightedClue(incomingClues[sideLength * 2 - 1]) +\n weightedClue(incomingClues[sideLength * 3]) + weightedClue(incomingClues[sideLength * 3 + 1])\n },\n {\n direction: 'left',\n count:\n weightedClue(incomingClues[0]) + weightedClue(incomingClues[1]) +\n weightedClue(incomingClues[sideLength * 3 - 2]) + weightedClue(incomingClues[sideLength * 3 - 1])\n },\n {\n direction: 'right',\n count:\n weightedClue(incomingClues[sideLength - 2]) + weightedClue(incomingClues[sideLength - 1]) +\n weightedClue(incomingClues[sideLength * 2]) + weightedClue(incomingClues[sideLength * 2 + 1])\n }\n ];\n sideClues.sort((a, b) => b.count - a.count);\n const bestDirection = sideClues[0].direction;\n\n let clues;\n let c1;\n let c2;\n let c3;\n let c4;\n switch(bestDirection) {\n case 'top':\n clues = incomingClues;\n break;\n case 'bottom': // shift bottom to the first row\n c1 = incomingClues.slice(sideLength * 2, sideLength * 3).reverse();\n c2 = incomingClues.slice(sideLength, sideLength * 2).reverse();\n c3 = incomingClues.slice(0, sideLength).reverse();\n c4 = incomingClues.slice(sideLength * 3, sideLength * 4).reverse();\n clues = c1.concat(c2).concat(c3).concat(c4);\n break;\n case 'left': // shift left side to the first row\n c1 = incomingClues.slice(sideLength * 3, sideLength * 4);\n c2 = incomingClues.slice(0, sideLength * 3);\n clues = c1.concat(c2);\n break;\n case 'right': // shift right side to the first row\n c1 = incomingClues.slice(sideLength, sideLength * 4);\n c2 = incomingClues.slice(0, sideLength);\n clues = c1.concat(c2);\n break;\n }\n return { startAt: bestDirection, clues };\n }", "function treasureIsland2(grid) {\n //create q, add all S's to q, set S's to visited\n let q = [];\n for (let i = 0; i < grid.length; i++) {\n for (let j = 0; j < grid[i].length; j++) {\n if (grid[i][j] === 'S') {\n q.push([i,j]);\n grid[i][j] = 'D';\n }\n }\n }\n \n let steps = 0;\n const dir = [[1,0],[-1,0],[0,1],[0,-1]];\n\n while (q.length) {\n let newQ = [];\n while (q.length) {\n let [i,j] = q.shift();\n //check each neighbor of this layer (bfs)\n for (let d of dir) {\n let x = i + d[0];\n let y = j + d[1];\n\n if (x < 0 || y < 0 || x >= grid.length || y >= grid[0].length || grid[x][y] === 'D') {\n continue;\n }\n //check if this neighbor is a target\n if (grid[x][y] === 'X') {\n return steps + 1;\n }\n grid[x][y] = 'D';\n newQ.push([x,y]);\n }\n }\n steps += 1;\n q = newQ;\n }\n return -1;\n}", "findNeighbors(grid) {\r\n // console.log(`current cell position X:${this.positionX}, Y:${this.positionY}`);\r\n\r\n // items.neighbors = \r\n\r\n //left item position\r\n if (this.positionX - 1 > -1) {\r\n // console.log(`Left neighbor`);\r\n this.neighbors.push(grid.items[this.positionY][this.positionX - 1]);\r\n }\r\n //right item position\r\n if (this.positionX + 1 <= grid.width - 1) {\r\n // console.log(`Right neighbor`);\r\n this.neighbors.push(grid.items[this.positionY][this.positionX + 1]);\r\n }\r\n\r\n //top left item position\r\n if (this.positionX - 1 > -1 && this.positionY - 1 > -1) {\r\n // console.log('Top Left')\r\n this.neighbors.push(grid.items[this.positionY - 1][this.positionX - 1]);\r\n }\r\n //top right item position\r\n if (this.positionX + 1 <= grid.width - 1 && this.positionY - 1 > -1) {\r\n // console.log('Top Right')\r\n this.neighbors.push(grid.items[this.positionY - 1][this.positionX + 1]);\r\n }\r\n //top item position\r\n if (this.positionY - 1 > -1) {\r\n // console.log(`Top neighbor`);\r\n this.neighbors.push(grid.items[this.positionY - 1][this.positionX]);\r\n }\r\n\r\n //bottom left item position\r\n if (this.positionX - 1 > -1 && this.positionY + 1 <= grid.height - 1) {\r\n // console.log('Bottom Left');\r\n this.neighbors.push(grid.items[this.positionY + 1][this.positionX - 1]);\r\n }\r\n\r\n //bottom right item position\r\n if (this.positionX + 1 <= grid.width - 1 && this.positionY + 1 <= grid.height - 1) {\r\n // console.log('Bottom Right')\r\n this.neighbors.push(grid.items[this.positionY + 1][this.positionX + 1]);\r\n }\r\n //bottom item position\r\n if (this.positionY + 1 <= grid.height - 1) {\r\n // console.log(`Bottom neighbor`);\r\n this.neighbors.push(grid.items[this.positionY + 1][this.positionX]);\r\n }\r\n }", "function Spot(i, j) {\n // Location\n this.i = i;\n this.j = j;\n\n // f, g, and h values for A*\n this.f = 0;\n this.g = 0;\n this.h = 0;\n\n // Neighbors\n this.neighbors = [];\n\n // Where did I come from?\n this.previous = undefined;\n\n // Am I a wall?\n this.wall = false;\n if (random(1) < 0.4) {\n this.wall = true;\n }\n\n // Display me\n this.show = function(col) {\n if (this.wall) {\n fill(0);\n noStroke();\n ellipse(this.i * w + w / 2, this.j * h + h / 2, w / 2, h / 2);\n } else if (col) {\n fill(col);\n rect(this.i * w, this.j * h, w, h);\n }\n };\n\n // Figure out who my neighbors are\n this.addNeighbors = function(grid) {\n var i = this.i;\n var j = this.j;\n if (i < cols - 1) {\n this.neighbors.push(grid[i + 1][j]);\n }\n if (i > 0) {\n this.neighbors.push(grid[i - 1][j]);\n }\n if (j < rows - 1) {\n this.neighbors.push(grid[i][j + 1]);\n }\n if (j > 0) {\n this.neighbors.push(grid[i][j - 1]);\n }\n if (i > 0 && j > 0) {\n this.neighbors.push(grid[i - 1][j - 1]);\n }\n if (i < cols - 1 && j > 0) {\n this.neighbors.push(grid[i + 1][j - 1]);\n }\n if (i > 0 && j < rows - 1) {\n this.neighbors.push(grid[i - 1][j + 1]);\n }\n if (i < cols - 1 && j < rows - 1) {\n this.neighbors.push(grid[i + 1][j + 1]);\n }\n };\n}", "cohesion(boids) {\n let neighbordist = 50;\n let sum = createVector(0, 0); // Start with empty vector to accumulate all locations\n let count = 0;\n for (let i = 0; i < boids.length; i++) {\n let d = p5.Vector.dist(this.position, boids[i].position);\n if ((d > 0) && (d < neighbordist)) {\n sum.add(boids[i].position); // Add location\n count++;\n }\n }\n if (count > 0) {\n sum.div(count);\n return this.seek(sum); // Steer towards the location\n } else {\n return createVector(0, 0);\n }\n }", "Step() {\r\n // Do not modify the simulation grid directly, because the grid\r\n // iteration order will start somewhere. We need to simulate the\r\n // generation as if they all update at the same time. This is why\r\n // we need an \"intact\" copy of the original data to compare against. \r\n let previousGeneration = this.CreateClearSimulationGrid();\r\n\r\n for (let row = 0; row < this.rowCount; ++row) {\r\n for (let column = 0; column < this.columnCount; ++column) {\r\n let aliveNeighbourCount = 0;\r\n\r\n // Loop through all eight neighbours\r\n for (let deltaY = -1; deltaY <= 1; ++deltaY) {\r\n for (let deltaX = -1; deltaX <= 1; ++deltaX) {\r\n // Ignore self\r\n if (!(deltaX === 0 && deltaY === 0)) {\r\n // Check whether the neighbouring cell is alive\r\n if ((this.simulationGrid[row + deltaY] !== undefined) &&\r\n (this.simulationGrid[row + deltaY][column + deltaX] !== undefined) &&\r\n (this.simulationGrid[row + deltaY][column + deltaX] === this.cellState.alive)) {\r\n ++aliveNeighbourCount;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Conway's Game of Life rules\r\n let thisCell = this.simulationGrid[row][column];\r\n switch (aliveNeighbourCount) {\r\n case 0:\r\n case 1:\r\n thisCell = this.cellState.dead;\r\n break;\r\n case 2:\r\n break;\r\n case 3:\r\n thisCell = this.cellState.alive;\r\n break;\r\n default:\r\n thisCell = this.cellState.dead;\r\n break;\r\n }\r\n\r\n previousGeneration[row][column] = thisCell;\r\n }\r\n }\r\n\r\n this.simulationGrid = previousGeneration;\r\n }", "findWay(passedGrid) {\n // console.log('moj gridek', passedGrid)\n var pathFinder = (entranceX, entranceY, grid) => {\n var distanceFromTop = entranceX;\n var distanceFromLeft = entranceY;\n\n var location = {\n distanceFromTop: distanceFromTop,\n distanceFromLeft: distanceFromLeft,\n path: [],\n status: 'Start'\n }\n\n //inicjalizacja kolejki\n var queue = [];\n queue.push(location);\n\n //loop grida\n while (queue.length > 0) {\n //zwrocenie pierwszego elementu z kolejki\n var currentLocation = queue.shift();\n\n //polnoc\n var newLocation = explore(currentLocation, 'North', grid);\n //jesli wyjscie przekazac do stanu aplikacji kolejke z najkrotsza sciezka\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n //droga\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n\n //wschod\n var newLocation = explore(currentLocation, 'East', grid);\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n\n //poludnie\n var newLocation = explore(currentLocation, 'South', grid);\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n\n //zachod\n var newLocation = explore(currentLocation, 'West', grid);\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n }\n //nie znaleziono drogi\n this.setState(prevState => ({\n exit: [...prevState.exit, 'Nie znaleziono wyjścia, ten grobowiec będzie twoim grobowcem']\n }))\n return false;\n }\n\n //sprawdzenie typu lokacji\n var locationStatus = (location, grid) => {\n let gridSize = grid.length;\n let dft = location.distanceFromTop;\n let dfl = location.distanceFromLeft;\n // console.log(gridSize, 'size')\n // console.log(location)\n // console.log(grid, dft, dfl);\n\n if (location.distanceFromLeft < 0 ||\n location.distanceFromLeft >= gridSize ||\n location.distanceFromTop < 0 ||\n location.distanceFromTop >= gridSize) {\n //poza gridem\n return 'Invalid';\n //jesli wyjscie\n } else if (grid[dft][dfl].type === 'w') {\n return 'Exit';\n //jesli nie droga (zablokowana lub odwiedzona)\n } else if (grid[dft][dfl].type !== 'o') {\n return 'Blocked';\n //jesli droga\n } else {\n return 'Valid';\n }\n }\n\n //chodzenie\n var explore = (currentLocation, direction, grid) => {\n var newPath = currentLocation.path.slice();\n newPath.push(direction);\n\n var dft = currentLocation.distanceFromTop;\n var dfl = currentLocation.distanceFromLeft;\n\n if (direction === 'North') {\n dft -= 1;\n } else if (direction === 'East') {\n dfl += 1;\n } else if (direction === 'South') {\n dft += 1;\n } else if (direction === 'West') {\n dfl -= 1;\n }\n\n var newLocation = {\n distanceFromTop: dft,\n distanceFromLeft: dfl,\n path: newPath,\n status: 'Unknown'\n };\n\n newLocation.status = locationStatus(newLocation, grid);\n\n //jesli droga, to oznacz lokacje jako odwiedzoną\n if (newLocation.status === 'Valid') {\n grid[newLocation.distanceFromTop][newLocation.distanceFromLeft] = 'Visited';\n }\n\n return newLocation;\n }\n console.log(pathFinder(this.state.startY, this.state.startX, passedGrid));\n }", "function P5MolnarGrid(gridSizeX, gridSizeY, gridX, gridY, gridWidth, gridHeight, order) {\n\tthis.gridSizeX = gridSizeX;\n\tthis.gridSizeY = gridSizeY;\n\tthis.lastToDraw = 1;\n\tthis.order = order || [];\n\n\n\tthis.draw = function() {\n \t\t// add 1 to lastToDraw every 10 frames\n\t\tvar frameRemainder = frameCount % frameInterval;\n\t\tif(frameRemainder == 0) {\n\t\t\tthis.lastToDraw = this.lastToDraw + 1;\n\t\t\t// we don't want lastToDraw to exceed the number\n\t\t\t// of elements in our array\n\t\t\tthis.lastToDraw = min(this.lastToDraw, this.gridSizeX*this.gridSizeY);\n\t\t}\n\n\t\t// this will draw all the current vertices\n\t\tbeginShape();\n\t\tfor(var i=0; i<this.lastToDraw; i++) {\n\n\t\t\tvar position = this.getPosition(this.order[i]);\n\n\t\t\t// draw the vertex\n\t\t\tvertex(position.x, position.y);\n\t\t}\n\t\t// stop drawing shape\n\t\tendShape();\n\n\t\tif(this.lastToDraw < this.gridSizeX*this.gridSizeY - 1) {\n\n\t\t\t// we can use lerp to interpolate between the last current vertex\n\t\t\t// and the next current vertex.\n\t\t\t// frameRemainder / 15 is our amount to interpolate\n\t\t\tvar t = frameRemainder / frameInterval;\n\t\t\tvar indexCurrent = this.order[this.lastToDraw - 1];\n\t\t\tvar indexNext = this.order[min(this.lastToDraw, this.gridSizeX*this.gridSizeY)];\n\n\t\t\t// print(\"interp between \" + indexCurrent + \" \" + indexNext);\n\n\t\t\t// let's interpolate between (x, y) at indexCurrent and (x, y)\n\t\t\t// at indexNext\n\t\t\tvar positionCurrent = this.getPosition(indexCurrent);\n\t\t\tvar positionNext = this.getPosition(indexNext);\n\n\t\t\tvar x_next = lerp(positionCurrent.x, positionNext.x, t);\n\t\t\tvar y_next = lerp(positionCurrent.y, positionNext.y, t);\n\n\t\t\tline(positionCurrent.x, positionCurrent.y, x_next,y_next);\n\t\t}\n\t}\n\n\tthis.getPosition = function(index) {\n\n\t\t\t// use modulo (remainder) to get x position\n\t\t\tvar col = index % this.gridSizeY;\n\t\t\tvar row = floor(index / this.gridSizeX);\n\n\t\t\t// map our rows/cols to x/y coordinates\n\t\t\tvar x = map(col, 0, this.gridSizeX-1, gridX, gridX + gridWidth);\n\t\t\tvar y = map(row, 0, this.gridSizeY-1, gridY, gridY + gridHeight);\n\n\t\t\treturn {\n\t\t\t\tx: x\n\t\t\t\t, y: y\n\t\t\t}\t\n\t}\n\n/**\n * Create a permeatation of the array of indexes\n * corresponding to our 16 points\n */\n\tthis.createOrder = function() {\n\t\t// clear order\n\t\tthis.order = [];\n\t\t// make new array of indexes to sample from\n\t\tvar all = [];\n\n\t\tfor(var k=0; k<this.gridSizeX*this.gridSizeY; k++) {\n\t\t\tall.push(k)\n\t\t}\n\n\t\tvar len = all.length;\n\n\t\t// take a random element from all and append it to order, remove it from all\n\t\tfor(var i=0; i<this.gridSizeX*this.gridSizeY; i++) {\n\t\t\t// pick a random index\n\t\t\tvar index = floor(random(all.length));\n\n\t\t\t// append that element from all into order\n\t\t\tthis.order.push(all[index]);\n\n\t\t\t// remove sampled element from all \n\t\t\tall.splice(index, 1);\n\n\t\t\tprintln(\"Order: \"+this.order);\n\t\t\tprintln(\"All: \"+all);\n\t\t}\t\t\n\t}\n\n}", "function DemineurGridBuilder(size, mineNumber) {\n\n /**\n * Constructor\n * (called at this end of DemineurGridBuilder(...))\n */\n let Constructor = () => {\n //getting all coordinate\n this.coordinates = Coordinate.helperGridCoordinate(size);\n\n this.bombCells = [];\n\n //placing bomb\n for(let i = 0; i < mineNumber; i++) {\n //random x and y\n let x = Math.floor((Math.random() * size));\n let y = Math.floor((Math.random() * size));\n\n\n\n if (!(this.coordinates[y][x] instanceof Cell)) {\n\n //creating a bomb cell (see class Cell below)\n let cell = new Cell(new Coordinate(x,y,size-1,size-1), true);\n\n //adding this cell to the grid\n this.coordinates[y][x] = cell;\n //and to the list of bomb\n this.bombCells.push(cell);\n }\n else {\n i--; //no bomb placed\n }\n }\n\n //placing cell which are next to a bomb\n this.bombCells.forEach(bombCell => {\n this.getCell(bombCell.coordinate.north()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.south()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.east()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.west()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.north().east()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.north().west()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.south().east()).addBombNeightbor(bombCell);\n this.getCell(bombCell.coordinate.south().west()).addBombNeightbor(bombCell);\n });\n };\n\n /**\n * Getting a cell from coordinates\n * @param coordinate\n * @returns {Cell}\n */\n this.getCell = (coordinate) => {\n\n let x = coordinate.x;\n let y = coordinate.y;\n\n let cell = this.coordinates[y][x];\n\n if (cell instanceof Cell) {\n return cell;\n }\n else {\n this.coordinates[y][x] = new Cell(new Coordinate(x,y, this.coordinates.length-1, this.coordinates.length-1));\n return this.coordinates[y][x];\n }\n };\n\n /**\n * build a grid for the Demineur class\n */\n this.build = () => {\n //creating a grid of coordinate\n let grid = Coordinate.helperGridCoordinate(size);\n\n for (let y = 0; y < size; y++) {\n for (let x = 0; x < size; x++) {\n\n // we have 3 types of cell in this.coordinates\n // 1 - bomb\n // 2 - cell which are next to one or more bomb\n // 3 - other cell (which are not effectively in this.coordinates as Cell instance\n\n //getting the cell from coordinates of the builder\n let cell = this.coordinates[y][x];\n\n //if this cell is a bomb... (1)\n if (cell instanceof Cell && cell.isBomb) {\n grid[y][x] = -1;\n }\n //if this cell is next to a bomb (2)\n else if (cell instanceof Cell) {\n grid[y][x] = cell.addBombNeightbor.length;\n }\n //if this is an empty cell (3)\n else {\n grid[y][x] = 0;\n }\n }\n }\n\n return grid;\n };\n\n Constructor();\n}", "function updateGrid(grid, startPos, endPos) {\n for (let i = 0; i < grid.length; i++) {\n for (let j = 0; j < grid[i].length; j++) {\n if (i === startPos[1] && j === startPos[0]) {\n grid[i][j] = 1;\n } else if (i === endPos[1] && j === endPos[0]) {\n grid[i][j] = 'R';\n }\n }\n }\n}", "function consoleGrid() {\r\n var gridString = \"\";\r\n\r\n for (var i = gridsize - 1; i >= 0; i--) {\r\n gridString = \"\";\r\n for (var j = 0; j < gridsize; j++) {\r\n switch (GRID[i][j]) {\r\n case GRID_WALL:\r\n gridString = gridString + \".\";\r\n break;\r\n case GRID_MAZE:\r\n gridString = gridString + \"+\";\r\n break;\r\n case GRID_AGENT:\r\n gridString = gridString + \"A\";\r\n break;\r\n case GRID_ENEMY:\r\n gridString = gridString + \"E\";\r\n break;\r\n default:\r\n gridString = gridString + \" \";\r\n break;\r\n }\r\n\r\n }\r\n console.log(gridString);\r\n\r\n }\r\n start.i = ei;\r\n start.j = ej;\r\n target.i = ai;\r\n target.j = aj;\r\n\r\n // console.log(\"Heuristic: \" + aStarHeuristics(start, target));\r\n}", "function charlieTheDog(grid) {\n let start, end;\n let food = [];\n for (let i = 0; i < grid.length; i++) {\n for (let j = 0; j < grid[0].length; j++) {\n // C for Charlie, ie start position\n if (grid[i][j] === \"C\") {\n start = [i, j];\n // H for House, ie end position\n } else if (grid[i][j] === \"H\") {\n end = [i, j];\n // F for Food, middle positions that must be traversed in any order\n } else if (grid[i][j] === \"F\") {\n food.push([i, j]);\n }\n }\n }\n\n // find all possible orders you could visit each food\n const permArr = [];\n function permutations(a, l, r) {\n if (l === r) {\n // create a copy that won't change when array is mutated\n permArr.push(a.slice(0));\n } else {\n for (let i = l; i < r + 1; i++) {\n [a[l], a[i]] = [a[i], a[l]];\n permutations(a, l + 1, r);\n // backtrack\n [a[l], a[i]] = [a[i], a[l]];\n }\n }\n }\n permutations(food, 0, food.length - 1);\n let minDistance;\n // find distance for each possible route\n // TODO make sure path doesn't go through home\n for (let i = 0; i < permArr.length; i++) {\n let path = [start];\n path = path.concat(permArr[i], [end]);\n let pathDistance = 0;\n for (let i = 0; i < path.length - 1; i++) {\n pathDistance += findDistance(path[i], path[i + 1]);\n }\n // update minDistance if we found a shoter path\n if (!minDistance || pathDistance < minDistance) {\n minDistance = pathDistance;\n }\n }\n return minDistance;\n}", "setup(){\n for(var j=0; j<this.rows; j++){\n for(var i=0; i<this.columns; i++){\n var cell = this.grid.cell(i,j) ;\n if (cell.linked(cell.east)){\n this.verticalWall(i+1,j).standing = false ;\n }else{\n this.verticalWall(i+1,j).standing = true ;\n }\n if (cell.linked(cell.north)){\n this.horizontalWall(i,j+1).standing = false ;\n }else{\n this.horizontalWall(i,j+1).standing = true ;\n }\n }\n }\n this.setCells() ;\n this.setWalls() ;\n this.setCorners() ;\n this.setDoors() ;\n }", "function updatePosition(object, direction) {\n\n currentGrid = grid; //Save the grid before changes are made.\n\n xLoop:\n for (var i = 0; i < grid.length; i++) {\n yLoop:\n for (var j = 0; j < grid.length; j++) {\n\n if (grid[i][j] == object) {\n\n //player is moving down and the space is free\n if (direction == \"down\" && !isWall(grid[i + 1][j]) && !boxCollision(grid[i + 1][j], grid[i + 2][j])) {\n\n grid[i][j] = 0; //set current position to a blank space\n\n //Check if box can move\n if (checkBox(grid[i + 1][j]) && grid[i + 2][j] == 0 || grid[i + 2][j] == 4) {\n grid[i + 2][j] = 3; //Move box into position ahead of the new player position\n }\n\n grid[i + 1][j] = object; //Move object to new position\n stepCount += 1; //Increase the step count\n\n break xLoop; //break from outer loop\n\n }\n //player is moving up and the space is free\n else if (direction == \"up\" && !isWall(grid[i - 1][j]) && !boxCollision(grid[i - 1][j], grid[i - 2][j])) {\n\n grid[i][j] = 0; //Set current position to a blank space\n\n //Check if box can move\n if (checkBox(grid[i - 1][j]) && grid[i - 2][j] == 0 || grid[i - 2][j] == 4) {\n grid[i - 2][j] = 3; //Move box into position ahead of new player position\n }\n\n grid[i - 1][j] = object; //Move player to new position\n stepCount += 1; //Increase step count\n break xLoop; //Break from outer loop\n\n }\n\n //Player is moving left and the space is free\n else if (direction == \"left\" && !isWall(grid[i][j - 1]) && !boxCollision(grid[i][j - 1], grid[i][j - 2])) {\n grid[i][j] = 0; //Set current position to blank space\n\n //Check if a box can move\n if (checkBox(grid[i][j - 1]) && grid[i][j - 2] == 0 || grid[i][j - 2] == 4) {\n grid[i][j - 2] = 3; //Update box position ahead of new player position\n }\n\n grid[i][j - 1] = object; //Move player into new position\n stepCount += 1; //Increase step count\n break xLoop; //Break from outer loop\n\n }\n //Player is moving right and the space is free\n else if (direction == \"right\" && !isWall(grid[i][j + 1]) && !boxCollision(grid[i][j + 1], grid[i][j + 2])) {\n\n grid[i][j] = 0; //Set current position to blank space\n\n //Check if a box can move\n if (checkBox(grid[i][j + 1]) && grid[i][j + 2] == 0 || grid[i][j + 2] == 4) {\n grid[i][j + 2] = 3; //Update box position ahead of new player position\n }\n\n grid[i][j + 1] = object; //Move player into new position\n stepCount += 1; //Increase step count\n break xLoop; //Break from outer loop\n }\n }\n }\n }\n\n //This loop will check if any goals in the level are missing, then set the value to 4 so that they will be redrawn\n for (var i = 0; i < goalArray.length; i++) {\n\n if (grid[goalArray[i][0]][goalArray[i][1]] == 0) {\n grid[goalArray[i][0]][goalArray[i][1]] = 4;\n }\n\n }\n}", "setStartingPosition() {\n this.x = CELL_WIDTH * 2;\n this.y = CELL_HEIGHT * COLS;\n }", "function find_location_to_build_unit(castleLoc, map, list, r) {\n var loc;\n // r.log(\"castle location:\" + castleLoc.x + \", \" + castleLoc.y);\n if (map[castleLoc.y][castleLoc.x + 1] === true && find_if_robot_is_present([castleLoc.x + 1, castleLoc.y], list) === true) {\n loc = { 'x': 1, 'y': 0 };\n return loc;\n }\n else if (map[castleLoc.y + 1][castleLoc.x + 1] === true && find_if_robot_is_present([castleLoc.x + 1, castleLoc.y + 1], list) === true) {\n loc = { 'x': 1, 'y': 1 };\n return loc;\n }\n else if (map[castleLoc.y + 1][castleLoc.x] === true && find_if_robot_is_present([castleLoc.x, castleLoc.y + 1], list) === true) {\n loc = { 'x': 0, 'y': 1 };\n return loc;\n }\n else if (map[castleLoc.y + 1][castleLoc.x - 1] === true && find_if_robot_is_present([castleLoc.x - 1, castleLoc.y + 1], list) === true) {\n loc = { 'x': -1, 'y': 1 };\n return loc;\n }\n else if (map[castleLoc.y][castleLoc.x - 1] === true && find_if_robot_is_present([castleLoc.x - 1, castleLoc.y], list) === true) {\n loc = { 'x': -1, 'y': 0 };\n return loc;\n }\n else if (map[castleLoc.y - 1][castleLoc.x - 1] === true && find_if_robot_is_present([castleLoc.x - 1, castleLoc.y - 1], list) === true) {\n loc = { 'x': -1, 'y': -1 };\n return loc;\n }\n else if (map[castleLoc.y - 1][castleLoc.x] === true && find_if_robot_is_present([castleLoc.x, castleLoc.y - 1], list) === true) {\n loc = { 'x': 0, 'y': -1 };\n return loc;\n }\n else if (map[castleLoc.y - 1][castleLoc.x + 1] === true && find_if_robot_is_present([castleLoc.x + 1, castleLoc.y - 1], list) === true) {\n loc = { 'x': 1, 'y': -1 };\n return loc;\n }\n}", "look() {\n\t\t// store here all the information about the elements around\n\t\tlet elementsAround = [];\n\n\t\t// retrieve information from a square and push it to elementsAround\n\t\tfunction lookInOneSide(x, y) {\n\t\t\t//\tmake sure the current (x,y) coordinates are not out of grid\n\t\t\tif (x >= 0 && y >= 0 && x < this.grid.width && y < this.grid.height) {\n\t\t\t\t// transform x,y position in grid array index\n\t\t\t\tconst index = x + this.grid.width * y;\n\t\t\t\telementsAround.push({\n\t\t\t\t\ttype: this.grid.array[index].type,\n\t\t\t\t\tindex: index\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tlookInOneSide = lookInOneSide.bind(this);\n\n\t\t// retrieve and push data for all squares immediately around\n\t\tlookInOneSide(this.x, this.y + 1);\n\t\tlookInOneSide(this.x, this.y - 1);\n\t\tlookInOneSide(this.x + 1, this.y - 1);\n\t\tlookInOneSide(this.x + 1, this.y);\n\t\tlookInOneSide(this.x + 1, this.y + 1);\n\t\tlookInOneSide(this.x - 1, this.y - 1);\n\t\tlookInOneSide(this.x - 1, this.y);\n\t\tlookInOneSide(this.x - 1, this.y + 1);\n\n\t\treturn elementsAround;\n\t}", "function setup(){\r\ncols = Math.floor(width/w);\r\nrows = Math.floor(height/w);\r\n//for each column in each row create a cell\r\nfor (let rn = 0; rn < rows; rn++){\r\n for(let cn = 0; cn < cols; cn++){\r\n const cell = new Maze(cn,rn);\r\n grid.push(cell);\r\n }\r\n current = grid[0]; \r\n}\r\n}", "gridNumberToPosition_(n) {\n return (n + 0.5) * this.SQUARE_SIZE;\n }", "generateNeighbours(grid) {\r\n //Right neighbour\r\n if (this.x < cols - 1) {\r\n this.neighbours.push(grid[this.x + 1][this.y]);\r\n }\r\n //Left neighbour\r\n if (this.x > 0) {\r\n this.neighbours.push(grid[this.x - 1][this.y]);\r\n }\r\n //Bottom neighbour\r\n if (this.y < rows - 1) {\r\n this.neighbours.push(grid[this.x][this.y + 1]);\r\n }\r\n //Top neighbour\r\n if (this.y > 0) {\r\n this.neighbours.push(grid[this.x][this.y - 1]);\r\n }\r\n }", "function solve(){\n var grid = cGrid;\n var point = {\n row: 0,\n col: 0\n };\n stepCount = 0; //resetStep\n exitRow = grid.length-1;\n var minDistance = -1;\n\n //2. Walk through grid, loop each step\n do{\n let nextSteps = [];\n let step = {};\n\n for( var direct in directions){\n step = movable(point, grid, direct);\n if(step.canMove){\n step.direction = direct;\n nextSteps.push(step);\n }\n }\n \n //If no direction walkable, exit\n if(nextSteps.length == 0){\n noExit = true;\n break;\n }\n\n //3. sort distance and take the shortest direction\n nextSteps.sort((a, b) => (a.minDistance - b.minDistance));\n\n //mark current step and make the move\n point = markElement(point, grid, nextSteps);\n\n //5. test exit condition\n if (point.row == exitRow && point.col == exitCol){\n exitReached = true;\n grid[exitRow][exitCol] = colValues.PATH;\n document.getElementById(`${exitRow}:${exitCol}`).setAttribute(\"blockValue\", \"step\");\n stepCount ++;\n break;\n }\n } while(true);\n\n writeResults();\n}", "function treasureIsland(grid) {\n\tlet queue = [];\n\tlet directions = [\n\t\t[-1, 0],\n\t\t[1, 0],\n\t\t[0, 1],\n\t\t[0, -1]\n\t];\n\tlet count = 0;\n\tqueue.push([0, 0]);\n\twhile (queue.length !== 0) {\n\t\tcount++;\n\t\tlet size = queue.length;\n\t\tfor (let i = 0; i < size; i++) {\n\t\t\tlet [startR, startC] = queue.shift();\n\t\t\tfor (let [dr, dc] of directions) {\n\t\t\t\tlet r = startR + dr;\n\t\t\t\tlet c = startC + dc;\n\t\t\t\tif (r >= 0 && r < grid.length && c >= 0 && c < grid[0].length) {\n\t\t\t\t\tif (grid[r][c] === 'X') {\n\t\t\t\t\t\treturn count;\n\t\t\t\t\t}\n\t\t\t\t\tif (grid[r][c] === 'O') {\n\t\t\t\t\t\tgrid[r][c] = 'D'; //make sure not going there again\n\t\t\t\t\t\tqueue.push([r, c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn -1;\n}", "function spawnLocation() {\n // Breaking the entire canvas into a grid of tiles.\n let rows = width / tileSize;\n let cols = (height - 40) / tileSize;\n let xPos, yPos;\n let overlap = false;\n // To prevent an overlap of the food/barrier and the snake's body.\n do {\n xPos = Math.floor(Math.random() * rows) * tileSize;\n yPos = Math.floor(Math.random() * cols) * tileSize;\n overlap = elementsOverlap({ x: xPos, y: yPos });\n } while (overlap);\n return { x: xPos, y: yPos };\n}", "function setup() {\r\n\tcreateCanvas(500, 500);\r\n\tframeRate(40);\r\n\tsing_width = 20;\r\n\r\n\tcolumns = width / sing_width;\r\n\trows = height / sing_width;\r\n\tcolumns = floor(columns);\r\n\trows = floor(rows);\r\n\r\n\tfor (let j = 0; j < rows; j++) {\r\n\t\tfor (let i = 0; i < columns; i++) {\r\n\t\t\tlet unit = new Unit(i, j);\r\n\t\t\tmaze_grid.push(unit);\r\n\t\t}\r\n\t}\r\n\r\n\t// sets up first position for both generation and path finding\r\n\tcurrent_unit = maze_grid[0];\r\n\tpath_iteration = maze_grid[0];\r\n}", "build() {\r\n for (let y = this.y; y < height; y += height / 20) {\r\n for (let x = this.x; x < 400; x += 400 / 10) {\r\n let boxUsed = false;\r\n let col = 255;\r\n this.gameMap.push({\r\n x,\r\n y,\r\n boxUsed,\r\n col\r\n });\r\n // Visualize the grid\r\n rect(x, y, 40, 40);\r\n }\r\n }\r\n }", "function grid_from_offset(pos){\n\t \tvar location = {\n\t \t\tcol: Math.floor(pos.left/tileWidth) + 1,\n\t \t\trow: Math.floor(pos.top/tileHeight) + 1\n\t \t}\n\t \treturn location;\n\t }", "geoLayout() {\n this.pieces.forEach((row, i) => row.forEach((piece, j) => {\n let x, y;\n if (i <= Math.floor(this.pieces.length / 2)) {\n x = i * -1 / 2 + j * 1;\n\n } else {\n x = -Math.floor(this.pieces.length / 2) / 2 + (i - Math.floor(this.pieces.length / 2)) / 2 + j * 1;\n\n }\n y = i * Math.sqrt(3) / 2;\n\n piece.geoPoint = new Point(x, y);\n }));\n }", "function PopulateMapTunnels() {\n\tvar roomPositions = [];\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the start position\n\t\tif(gridArr[i].room == \"ST\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the central postion\n\t\tif(gridArr[i].room == \"CN\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the north west postion\n\t\tif(gridArr[i].room == \"NW\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the north east position\n\t\tif(gridArr[i].room == \"NE\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the south west postion\n\t\tif(gridArr[i].room == \"SW\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the south east position\n\t\tif(gridArr[i].room == \"SE\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tswitch(Dice(3)) { // randomly pick the shape \n\t\tcase 1: // S pattern\n\t\t\ttunnel = BestPathXY(roomPositions[0],roomPositions[3]); // ST to NE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[3],roomPositions[2]); // NE to NW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[2],roomPositions[1]); // NW to CN\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[5]); // CN to SE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[5],roomPositions[4]); // SE to SW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2: // X pattern\n\t\t\ttunnel = BestPathXY(roomPositions[0],roomPositions[1]); // ST to CN\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[2]); // CN to NW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[3]); // CN to NE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[4]); // CN to SW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[5]); // CN to SE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault: // spiral pattern\n\t\t\ttunnel = BestPathXY(roomPositions[0],roomPositions[3]); // ST to NE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[3],roomPositions[5]); // NE to SE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[5],roomPositions[4]); // SE to SW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[4],roomPositions[2]); // SW to NW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[2],roomPositions[1]); // NW to CN\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t}\n}", "function gridSpot(i, j) {\r\n // Location\r\n this.i = i;\r\n this.j = j;\r\n\r\n // f, g, and h values for A*\r\n this.f = 0;\r\n this.g = 0;\r\n this.h = 0;\r\n\r\n // Neighbors\r\n this.neighbors = [];\r\n\r\n // Where did I come from?\r\n this.parent = undefined;\r\n this.closed = false; // are we in closed set\r\n\r\n // Figure out who my neighbors are\r\n this.addNeighbors = function () {\r\n var i = this.i;\r\n var j = this.j;\r\n\r\n\r\n if (i < gridsize - 1) this.neighbors.push(aStarGrid[i + 1][j]);\r\n if (i > 0) this.neighbors.push(aStarGrid[i - 1][j]);\r\n if (j < gridsize - 1) this.neighbors.push(aStarGrid[i][j + 1]);\r\n if (j > 0) this.neighbors.push(aStarGrid[i][j - 1]);\r\n\r\n if (diagonal)\r\n // diagonals are also neighbours:\r\n {\r\n if (i > 0 && j > 0) this.neighbors.push(aStarGrid[i - 1][j - 1]);\r\n if (i < gridsize - 1 && j > 0) this.neighbors.push(aStarGrid[i + 1][j - 1]);\r\n if (i > 0 && j < gridsize - 1) this.neighbors.push(aStarGrid[i - 1][j + 1]);\r\n if (i < gridsize - 1 && j < gridsize - 1) this.neighbors.push(aStarGrid[i + 1][j + 1]);\r\n }\r\n };\r\n}", "function h5(square, goal, direction) {\n\n var horizDiff = goal.x - square.x;\n var vertDiff = goal.y - square.y;\n\n //Calculate turns\n var turns = 0;\n if (vertDiff < 0 && direction !== 'N') {\n turns++;\n if (horizDiff === 0 && direction === 'S') {\n turns++;\n }\n } else if (vertDiff > 0 && direction !== 'S') {\n turns++;\n if (horizDiff === 0 && direction === 'N') {\n turns++;\n }\n }\n\n if (horizDiff > 0 && direction !== 'E') {\n turns++;\n if (vertDiff === 0 && direction === 'W') {\n turns++;\n }\n } else if (horizDiff < 0 && direction !== 'W') {\n turns++;\n if (vertDiff === 0 && direction === 'E') {\n turns++;\n }\n }\n\n return Math.abs(horizDiff) + Math.abs(vertDiff) + turns;\n}", "function calculateMovement (rows, cols, grid) {\n\n let g1 = [...grid];\n let g2 = [...grid];\n\n for (let i = 0; i < rows; i++) {\n for (let j = 0; j < cols; j++) {\n let count = 0;\n\n if (i > 0) if (g1[i - 1][j]) count++;\n if (i > 0 && j > 0) if (g1[i - 1][j - 1]) count++;\n if (i > 0 && j < cols - 1) if (g1[i - 1][j + 1]) count++;\n if (j < cols - 1) if (g1[i][j + 1]) count++;\n if (j > 0) if (g1[i][j - 1]) count++;\n if (i < rows - 1) if (g1[i + 1][j]) count++;\n if (i < rows - 1 && j > 0) if (g1[i + 1][j - 1]) count++;\n if (i < rows - 1 && j < cols - 1) if (g1[i + 1][j + 1]) count++;\n if (g1[i][j] && (count < 2 || count > 3)) g2[i][j] = false;\n if (!g1[i][j] && count === 3) g2[i][j] = true;\n }}\n\n return g2\n}", "computeCoords() {\n this.distanceFromEarthCenter = bv3.length(this.position)\n this.distanceFromEarthSurface = this.distanceFromEarthCenter - 6378\n\n this.lat = radians2degrees(Math.asin(-this.position[1] / this.distanceFromEarthCenter))\n\n\n const posAtEquator = [this.position[0], 0, this.position[2]]\n\n\n const distanceFromEarthCenterAtEquator = bv3.length(posAtEquator)\n const l90 = radians2degrees(Math.asin(-this.position[0] / distanceFromEarthCenterAtEquator))\n\n\n if (this.position[0] > 0 != this.position[2] > 0) {\n if (this.position[0] > 0) {\n //CCconsole.log(\"c1\")\n this.lon = l90;\n } else {\n //CCconsole.log(\"c2\")\n this.lon = 180 - l90;\n }\n } else {\n if (this.position[0] > 0) {\n //CCconsole.log(\"c3\")\n this.lon = -180 - l90;\n } else {\n //CCconsole.log(\"c4\")\n this.lon = l90;\n }\n }\n\n \n }", "constructor( i, j ){\n this.i = i;\n this.j = j;\n //where is this grid cell on the canvas\n this.x = i*(gridCellSize+outlineSize) + gridCellSize/2;\n this.y = j*(gridCellSize+outlineSize) + gridCellSize/2;\n //used for pathing and also drawing\n this.walkable = true;\n this.image = new Image();\n this.image.width = gridCellSize;\n this.image.height = gridCellSize;\n this.image.src = walkSrc;\n //if a player/ai is in the cell, this will be them, otherwise null\n this.occupiedBy = null;\n }", "initializeCoords() {\n // deltas between nodes\n let row_delta = 2 * this.m;\n let column_delta = 2;\n\n // top-left node has coordinates x=-0.45*(m-1)*distance_between_nodes,\n // y=0. Positions of the other nodes are based on this node\n for (let i = 0; i < this.n; ++i) { \n for (let j = 0; j < this.m; ++j) { \n this.coord[i * row_delta + j * column_delta] = (-0.45 * (this.m - 1) + j) * this.distance_between_nodes;\n this.coord[i * row_delta + j * column_delta + 1] = 1 - i * this.distance_between_nodes;\n this.old_coord[i * row_delta + j * column_delta] = this.coord[i * row_delta + j * column_delta];\n this.old_coord[i * row_delta + j * column_delta + 1] = this.coord[i * row_delta + j * column_delta + 1];\n }\n }\n }", "function superBuild(nlat, nlon,e1,e2) \n{\n superQ_points = [];\n superQ_normals = [];\n superQ_faces = [];\n superQ_edges = [];\n // phi will be latitude\n // theta will be longitude\n \n var d_phi = (Math.PI / (nlat+1));\n var d_theta = (2*Math.PI / nlon);\n var r = 0.5;\n \n // Generate north polar cap\n var north = vec3(0,r,0);\n superQ_points.push(north);\n superQ_normals.push(vec3(0,1,0));\n \n // Generate middle\n for(var i=0, phi=Math.PI/2 - d_phi; i<nlat; i++, phi-=d_phi) {\n for(var j=0, theta=-Math.PI; j<nlon; j++, theta+=d_theta) {\n var cosphi = Math.cos(phi);\n var sinphi = Math.sin(phi);\n var costheta = Math.cos(theta);\n var sintheta = Math.sin(theta);\n\n var x = r*\n \t(Math.sign(cosphi)*Math.pow(Math.abs(cosphi),e1))*\n (Math.sign(costheta)*Math.pow(Math.abs(costheta),e2));\n var y = r*\n (Math.sign(sinphi)*Math.pow(Math.abs(sinphi),e1));\n var z = r*\n (Math.sign(cosphi)*Math.pow(Math.abs(cosphi),e1))*\n (Math.sign(sintheta)*Math.pow(Math.abs(sintheta),e2));\n var pt = vec3(x,y,z);\n superQ_points.push(pt);\n var n = vec3(pt);\n superQ_normals.push(normalize(n));\n }\n }\n \n // Generate norh south cap\n var south = vec3(0,-r,0);\n superQ_points.push(south);\n superQ_normals.push(vec3(0,-1,0));\n \n // Generate the faces\n \n // north pole faces\n for(var i=0; i<nlon-1; i++) {\n superQ_faces.push(0);\n superQ_faces.push(i+2);\n superQ_faces.push(i+1);\n }\n superQ_faces.push(0);\n superQ_faces.push(1);\n superQ_faces.push(nlon);\n \n // general middle faces\n var offset=1;\n \n for(var i=0; i<nlat-1; i++) {\n for(var j=0; j<nlon-1; j++) {\n var p = offset+i*nlon+j;\n superQ_faces.push(p);\n superQ_faces.push(p+nlon+1);\n superQ_faces.push(p+nlon);\n \n superQ_faces.push(p);\n superQ_faces.push(p+1);\n superQ_faces.push(p+nlon+1);\n }\n var p = offset+i*nlon+nlon-1;\n superQ_faces.push(p);\n superQ_faces.push(p+1);\n superQ_faces.push(p+nlon);\n\n superQ_faces.push(p);\n superQ_faces.push(p-nlon+1);\n superQ_faces.push(p+1);\n }\n \n // south pole faces\n var offset = 1 + (nlat-1) * nlon;\n for(var j=0; j<nlon-1; j++) {\n superQ_faces.push(offset+nlon);\n superQ_faces.push(offset+j);\n superQ_faces.push(offset+j+1);\n }\n superQ_faces.push(offset+nlon);\n superQ_faces.push(offset+nlon-1);\n superQ_faces.push(offset);\n \n // Build the edges\n for(var i=0; i<nlon; i++) {\n superQ_edges.push(0); // North pole \n superQ_edges.push(i+1);\n }\n\n for(var i=0; i<nlat; i++, p++) {\n for(var j=0; j<nlon;j++, p++) {\n var p = 1 + i*nlon + j;\n superQ_edges.push(p); // horizontal line (same latitude)\n if(j!=nlon-1) \n superQ_edges.push(p+1);\n else superQ_edges.push(p+1-nlon);\n \n if(i!=nlat-1) {\n superQ_edges.push(p); // vertical line (same longitude)\n superQ_edges.push(p+nlon);\n }\n else {\n superQ_edges.push(p);\n superQ_edges.push(superQ_points.length-1);\n }\n }\n }\n \n}", "bouton_centrage_pos() {}", "function equilatGrid(L,R,dx,dy){\n let yVals = [];\n let ytip = 70;\n let xtip = 300;\n let yChange = dy/10;\n let xChange = 2*dx/10\n for(let i = 0; i < 9; i++){\n yVals.push((ytip+dy)-yChange*(i+1));\n }\n push();\n let x1, x2, y1, y2;\n // Carrier grid\n stroke(255,100,0,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-L[1])/L[0];\n y2 = ytip + dy;\n x2 = (xtip-dx) + xChange*(i+1);\n line(x1,y1,x2,y2);\n }\n \n // Solvent grid\n stroke(128,0,128,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-R[1])/R[0];\n y2 = ytip + dy;\n x2 = (xtip+dx) - xChange*(i+1);\n line(x1,y1,x2,y2);\n }\n // Solute grid\n stroke(0,0,255,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-L[1])/L[0];\n y2 = y1;\n x2 = (y2-R[1])/R[0];\n line(x1,y1,x2,y2);\n }\n pop();\n}", "function setup() {\n createCanvas(windowWidth, windowHeight);\n rectMode(CENTER);\n angleMode(DEGREES);\n \n for (let i = 0; i < windowWidth; i += W){\n gridLoc.push([]);\n for (let j = 0; j < windowHeight; j += W){\n // gridLoc[i].push(j);\n grid.push(new Cells(i,j,W));\n } \n }\n}", "evolve () {\n\n // make a new map\n let next = new Map();\n\n // loop over the x coordinates\n for (let x = 0; x < this.config.get(colsKey); ++x) {\n\n // loop over the y coordinates\n for (let y = 0; y < this.config.get(rowsKey); ++y) {\n\n // get the index\n let index = (x + y * this.config.get(colsKey));\n\n // get the old state\n let state = this.grid.get(index);\n\n // count the neighbours\n let neighbours = this.countNeighbours(x, y);\n\n // are we dealing with a living being?\n if (state == 1 && (neighbours < 2 || neighbours > 3)) next.set(index, 0);\n \n // are we dealing with a dead being?\n else if (state == 0 && neighbours == 3) next.set(index, 1);\n \n // normal state\n else next.set(index, state);\n }\n }\n\n // save the new grid\n this.grid = next;\n\n // return the grid\n return next;\n }", "function organize() \r\n{\r\n for (let y = 0; y < dimensions.height; y += 2) {\r\n for (let x = 0; x < dimensions.width; x += 2) {\r\n \r\n let square = new Square();\r\n \r\n let topLeftIndex = x + (dimensions.width * y);\r\n let topLeftNumber = inputTiles[topLeftIndex];\r\n square.addTopLeft(topLeftNumber , topLeftIndex);\r\n\r\n let topRightIndex = x + (dimensions.width * y) + 1;\r\n let topRightNumber = inputTiles[topRightIndex];\r\n square.addTopRigth(topRightNumber , topRightIndex);\r\n \r\n let botLeftIndex = x + (dimensions.width * (y +1));\r\n let botLeftNumber = inputTiles[botLeftIndex];\r\n square.addBotLeft(botLeftNumber , botLeftIndex);\r\n\r\n let botRightIndex = x + (dimensions.width * (y + 1) + 1);\r\n let botRightNumber = inputTiles[botRightIndex];\r\n square.addBotRigth(botRightNumber , botRightIndex);\r\n\r\n square.generateTiles(outputTiles);\r\n }\r\n }\r\n}", "function moveLogicalEnemy()\n{\n\n // Reset Grid Heuristic score\n resetHeuristicScores(GRID, this.gridSize);\n\n // Get Enemy and Agent locations\n var agentSpot = GRID[ai][aj];\n var enemySpot = GRID[ei][ej];\n\n // Find square for us to move to\n var nextSquare = findNextSquare(enemySpot, agentSpot);\n\n //Can we try catch him?\n if (nextSquare == agentSpot)\n {\n console.log(\"Pacman is next to us, try a neighbor to block him in\");\n nextSquare = tryAnotherNeighbor(enemySpot, agentSpot);\n }\n\n ei = nextSquare.i;\n ej = nextSquare.j;\n}", "function draw_grid(bol) {\n\t\t\tfor (var x = 0; x < parameters.size[0]; x++) {\n\t\t\t\tif (bol === true) {\n\t\t\t\t\tpiece_position[x] = [];\n\t\t\t\t}\n\t\t\t\tfor (var y = 0; y < parameters.size[1]; y++) {\n\t\t\t\t\tcolor = \"#3639AF\";\n\t\t\t\t\tsize = [];\n\t\t\t\t\tsize[0] = Math.floor(target.width / parameters.size[0]) - 1;\n\t\t\t\t\tsize[1] = Math.floor(target.height / parameters.size[1]) - 1;\n\t\t\t\t\tvar position_x = x * target.width / parameters.size[0];\n\t\t\t\t\tvar position_y = y * target.height / parameters.size[1];\n\t\t\t\t\tdraw_square(color, position_x, position_y, size);\n\t\t\t\t\tif (bol === true) {\n\t\t\t\t\t\tpiece_position[x].push({\n\t\t\t\t\t\t\taxe_x: position_x + (size[0] / 2),\n\t\t\t\t\t\t\taxe_y: position_y + (size[1] / 2),\n\t\t\t\t\t\t\tx: x,\n\t\t\t\t\t\t\ty: y,\n\t\t\t\t\t\t\tcolor: \"white\"\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tdraw_circle(piece_position[x][y].color, position_x + (size[0] / 2), position_y + (size[1] / 2));\n\t\t\t\t}\n\t\t\t}\n\t\t}", "configCells(){\n for (var j=0; j<this.rows; j++){\n for(var i=0; i<this.columns; i++){\n var c = this.cell(i,j) ;\n c.north = this.cell(i,j+1) ;\n c.south = this.cell(i,j-1) ;\n c.east = this.cell(i+1,j) ;\n c.west = this.cell(i-1,j) ;\n }\n }\n }", "function calcSnakeStartLocation(game_field_size){\n const height = Math.round((game_field_size.height-1)/2);\n const width = Math.round((game_field_size.width-1)/2);\n const snake = [createBlock(height, width),\n createBlock(height, width-1),\n createBlock(height, width-2)]\n return snake\n}", "function calcSnakeStartLocation(game_field_size){\n const height = Math.round((game_field_size.height-1)/2);\n const width = Math.round((game_field_size.width-1)/2);\n const snake = [createBlock(height, width),\n createBlock(height, width-1),\n createBlock(height, width-2)]\n return snake\n}", "function getStartingPosition() {\r\n \r\n var positionFound = false;\r\n var startPosition = {};\r\n var i;\r\n while(!positionFound) {\r\n i = getRandNum(4);\r\n \r\n if(grid[0][i].status == \"X\") {\r\n continue;\r\n } else {\r\n \r\n startPosition = [0,grid[0][i].y,grid[0][i].status];\r\n positionFound = true;\r\n }\r\n }\r\n return startPosition; \r\n}", "function findPath(worldWidth, worldHeight, pathStart, pathEnd) {\n // keep track of the world dimensions\n // Note that this A-star implementation expects the world array to be square:\n // it must have equal height and width. If your game world is rectangular,\n // just fill the array with dummy values to pad the empty space.\n let worldSize = worldWidth * worldHeight;\n\n let distanceFunction = euclideanDistance;\n let findNeighbours = diagonalNeighbours;\n\n /*\n // alternate heuristics, depending on your game:\n\n // diagonals allowed but no squeezing through cracks:\n let distanceFunction = diagonalDistance;\n let findNeighbours = diagonalNeighbours;\n\n // diagonals and squeezing through cracks allowed:\n let distanceFunction = diagonalDistance;\n let findNeighbours = diagonalNeighboursFree;\n\n // euclidean but no squeezing through cracks:\n let distanceFunction = euclideanDistance;\n let findNeighbours = diagonalNeighbours;\n\n // euclidean and squeezing through cracks allowed:\n let distanceFunction = euclideanDistance;\n let findNeighbours = diagonalNeighboursFree;\n */\n\n // distanceFunction functions\n // these return how far away a point is to another\n\n function manhattanDistance(Point, Goal) {\t// linear movement - no diagonals - just cardinal directions (NSEW)\n return Math.abs(Point.x - Goal.x) + Math.abs(Point.y - Goal.y);\n }\n\n function diagonalDistance(Point, Goal) {\t// diagonal movement - assumes diag dist is 1, same as cardinals\n return Math.max(Math.abs(Point.x - Goal.x), Math.abs(Point.y - Goal.y));\n }\n\n function euclideanDistance(Point, Goal) {\t// diagonals are considered a little farther than cardinal directions\n // diagonal movement using Euclide (AC = Math.sqrt(AB^2 + BC^2))\n // where AB = x2 - x1 and BC = y2 - y1 and AC will be [x3, y3]\n return Math.sqrt(Math.pow(Point.x - Goal.x, 2) + Math.pow(Point.y - Goal.y, 2));\n }\n\n // Neighbours functions, used by findNeighbours function\n // to locate adjacent available cells that aren't blocked\n\n // Returns every available North, South, East or West\n // cell that is empty. No diagonals,\n // unless distanceFunction function is not Manhattan\n function neighbours(x, y) {\n let N = y - 1,\n S = y + 1,\n E = x + 1,\n W = x - 1,\n myN = N > -1 && canWalkHere(x, N),\n myS = S < worldHeight && canWalkHere(x, S),\n myE = E < worldWidth && canWalkHere(E, y),\n myW = W > -1 && canWalkHere(W, y),\n result = [];\n if (myN) {\n result.push({ x: x, y: N });\n }\n if (myE) {\n result.push({ x: E, y: y });\n }\n if (myS) {\n result.push({ x: x, y: S });\n }\n if (myW) {\n result.push({ x: W, y: y });\n }\n findNeighbours(myN, myS, myE, myW, N, S, E, W, result);\n return result;\n }\n\n // returns every available North East, South East,\n // South West or North West cell - no squeezing through\n // \"cracks\" between two diagonals\n function diagonalNeighbours(myN, myS, myE, myW, N, S, E, W, result) {\n if (myN) {\n if (myE && canWalkHere(E, N)) {\n result.push({ x: E, y: N });\n }\n if (myW && canWalkHere(W, N)) {\n result.push({ x: W, y: N });\n }\n }\n if (myS) {\n if (myE && canWalkHere(E, S)) {\n result.push({ x: E, y: S });\n }\n if (myW && canWalkHere(W, S)) {\n result.push({ x: W, y: S });\n }\n }\n }\n\n // returns every available North East, South East,\n // South West or North West cell including the times that\n // you would be squeezing through a \"crack\"\n function diagonalNeighboursFree(myN, myS, myE, myW, N, S, E, W, result) {\n myN = N > -1;\n myS = S < worldHeight;\n myE = E < worldWidth;\n myW = W > -1;\n if (myE) {\n if (myN && canWalkHere(E, N)) {\n result.push({ x: E, y: N });\n }\n if (myS && canWalkHere(E, S)) {\n result.push({ x: E, y: S });\n }\n }\n if (myW) {\n if (myN && canWalkHere(W, N)) {\n result.push({ x: W, y: N });\n }\n if (myS && canWalkHere(W, S)) {\n result.push({ x: W, y: S });\n }\n }\n }\n\n // returns boolean value (world cell is available and open)\n function canWalkHere(x, y) {\n return Grid.isWalkable(x, y);\n }\n\n // Node function, returns a new object with Node properties\n // Used in the calculatePath function to store route costs, etc.\n function Node(Parent, Point) {\n return {\n // pointer to another Node object\n Parent: Parent,\n // array index of this Node in the world linear array\n value: Point.x + (Point.y * worldWidth),\n // the location coordinates of this Node\n x: Point.x,\n y: Point.y,\n // the heuristic estimated cost\n // of an entire path using this node\n f: 0,\n // the distanceFunction cost to get\n // from the starting point to this node\n g: 0\n };\n }\n\n // Path function, executes AStar algorithm operations\n function calculatePath() {\n // create Nodes from the Start and End x,y coordinates\n let mypathStart = Node(null, { x: pathStart[0], y: pathStart[1] });\n let mypathEnd = Node(null, { x: pathEnd[0], y: pathEnd[1] });\n // create an array that will contain all world cells\n let AStar = new Array(worldSize);\n // list of currently open Nodes\n let Open = [mypathStart];\n // list of the final output array\n let result = [];\n // reference to a Node (that is nearby)\n let myNeighbours;\n // reference to a Node (that we are considering now)\n let myNode;\n // reference to a Node (that starts a path in question)\n let myPath;\n // temp integer variables used in the calculations\n let length, max, min, i, j;\n // iterate through the open list until none are left\n do {\n max = worldSize;\n min = -1;\n for (i = 0; i < length; i++) {\n if (Open[i].f < max) {\n max = Open[i].f;\n min = i;\n }\n }\n // grab the next node and remove it from Open array\n myNode = Open.splice(min, 1)[0];\n // is it the destination node?\n if (myNode.value === mypathEnd.value) {\n // we found a path!\n do {\n result.unshift([myNode.x, myNode.y]);\n\n myNode = myNode.Parent;\n }\n while (myNode !== null);\n\n // clear the working arrays\n AStar = Open = [];\n\n return result;\n }\n\n // find which nearby nodes are walkable\n myNeighbours = neighbours(myNode.x, myNode.y);\n for (i = 0, j = myNeighbours.length; i < j; i++) {\n // test each one that hasn't been tried already\n myPath = Node(myNode, myNeighbours[i]);\n if (!AStar[myPath.value]) {\n // estimated cost of this particular route so far\n myPath.g = myNode.g + distanceFunction(myNeighbours[i], myNode);\n // estimated cost of entire guessed route to the destination\n myPath.f = myPath.g + distanceFunction(myNeighbours[i], mypathEnd);\n // remember this new path for testing above\n Open.push(myPath);\n // mark this node in the world graph as visited\n AStar[myPath.value] = true;\n }\n }\n\n length = Open.length;\n } while (0 < length);\n\n return result;\n }\n\n return calculatePath();\n}", "constructor () {\n this.grid[this.topLeftCorner] = 'W';\n }", "initGrid(){\n \n let vertex;\n let vertices = [];\n let vertex_data;\n let col_len = grid.column_n;\n let row_len = grid.row_n;\n\n // Outer loop to create parent\n // mod gives you column\n // division gives you row\n // calculations are not 0 index\n for ( let i = 0; i < grid.n; i++ ) {\n\n vertex_data = { };\n\n if( grid.begin_i === i ){ // IF AT BEGIN\n vertex_data.name = \"vertex begin-pos pos pos-\" + grid.begin_i + \" item-\" + i;\n vertex_data.id = \"vertex-\" + i;\n vertex_data.distance = 0;\n }else if( grid.target_i === i ){ // IF AT TARGET\n vertex_data.name = \"vertex target-pos item-\" + i;\n vertex_data.distance = INFINITY;\n vertex_data.id = \"vertex-\" + i;\n }\n else{ //IF VANILLA VERTEX\n vertex_data.name = \"vertex item-\" + i ;\n vertex_data.distance = INFINITY;\n vertex_data.id = \"vertex-\" + i;\n }\n\n //ADD WEIGHTS\n if( i % col_len === 0 ) //LEFT\n vertex_data.left = -1;\n else\n vertex_data.left = 1;\n\n if( ( i % col_len ) === ( col_len - 1 ) ) //RIGHT\n vertex_data.right = -1;\n else\n vertex_data.right = 1;\n\n if( Math.floor( i / col_len ) === ( 0 ) ) //UPPER\n vertex_data.top = -1;\n else\n vertex_data.top = 1;\n\n if( Math.floor( i / col_len ) >= ( row_len-1 ) ) //LOWER\n vertex_data.bottom = -1;\n else\n vertex_data.bottom = 1;\n\n vertex = <Vertex \n name={vertex_data.name}\n key={i}\n index={i}\n id={vertex_data.id}\n /> \n\n vertices.push( vertex );\n\n grid.vertex_data.push({\n index: i,\n visited_via: \"\",\n cost: vertex_data.distance,\n left: vertex_data.left,\n right: vertex_data.right,\n top: vertex_data.top,\n bottom: vertex_data.bottom,\n });\n }\n\n //ADD TO STATE-STORE FOR RENDER()\n this.setState( (state,props) => {\n return { vertices: [...vertices] }\n });\n }", "initGrid() {\n const columns = Math.floor((this.limits.right - this.limits.left) / this.options.gridStep) + 1;\n const rows = Math.floor((this.limits.bottom - this.limits.top) / this.options.gridStep) + 1;\n\n const grow = !this.grid || columns > this.grid.length || rows > this.grid[0].length;\n\n if (grow) {\n this.grid = new Array(columns);\n }\n\n for (let col = 0, x = this.limits.left; col < columns; col ++, x += this.options.gridStep) {\n if (grow) {\n this.grid[col] = new Array(rows);\n }\n\n for (let row = 0, y = this.limits.top; row < rows; row ++, y += this.options.gridStep) {\n // If the current grid node is inside an obstacle,\n // set the \"obstacle\" property of the node.\n const obstacle = this.obstacles.some(\n r => x >= r.left && x <= r.right &&\n y >= r.top && y <= r.bottom\n );\n\n this.grid[col][row] = {\n col, row, // The coordinates of this node in the grid array\n x, y, // The coordinates of this node in the exploration area\n obstacle, // Is there an obstacle at this node?\n\n // The following properties are updated by the pathfinding algorithm\n\n g: 0, // Cost from the start node to this node (g score)\n f: 0, // Estimated cost from the start node\n // to the goal node through this node (f score)\n parent: null, // The previous node in the current explored path\n open: false, // Does this node belong to the open set?\n closed: false, // Has this node already been processed?\n groupCount: 0, // The number of groups passing by this node\n groups: {} // A map of booleans indicating which groups pass by this node\n };\n }\n }\n }", "getUnassignedLocation(grid) {\n for (let row = 0; row < HEIGHT; row++) {\n for (let col = 0; col < WIDTH; col++) {\n if (grid[row][col] === 0) {\n return [row, col];\n }\n }\n }\n return [10, 10];\n }", "function move(curRow, curCol, grid, direction) {\n\n var targetRow = curRow;\n var targetCol = curCol;\n var targetVal = \"\";\n var canMove = false;\n var minDistance = -1;\n\n switch (direction) {\n case directions.UP:\n targetRow = curRow + 1;\n break;\n case directions.LEFT:\n targetCol = curCol - 1;\n break;\n case directions.RIGHT:\n targetCol = curCol + 1;\n break;\n case directions.DOWN:\n targetRow = curRow - 1;\n break;\n }\n\n //check for out bounds\n if (targetRow > grid.length - 1 || targetRow < 0 || targetCol > grid[targetRow].length || targetCol < 0) {\n return {\n canMove: false,\n minDistance: -1,\n direction: direction,\n colValue: colValues.WALL\n };\n }\n\n //get the value of the square we are trying to move to\n targetVal = grid[targetRow][targetCol];\n\n\n if (targetRow == startRow && targetCol == startCol) {\n //we cannot move back to start.\n return {\n canMove: false,\n minDistance: -1,\n direction: direction,\n colValue: colValues.WALL\n };\n\n } else if (targetVal == colValues.OPEN) {\n //test if we can move to the target square.'f' means no wall\n //calculate the distance to the exit\n return {\n canMove: true,\n minDistance: GetMinDistance(targetRow, targetCol),\n direction: direction,\n colValue: targetVal\n };\n\n } else if (targetVal == colValues.WALL || targetVal == colValues.DEADEND) {\n //test for a wall or deadend; 't' means wall, 'fx' means deadend\n return {\n canMove: false,\n minDistance: -1,\n direction: direction,\n colValue: targetVal\n };\n } else if (targetVal == colValues.PATH) {\n //if you have to go backwards to a previous marked square \n //we need to mark the current square as a dead end ('fx')\n //'fp' means square has already been marked \n return {\n canMove: true,\n minDistance: GetMinDistance(targetRow, targetCol),\n direction: direction,\n colValue: targetVal\n };\n }\n\n return {\n canMove: false,\n minDistance: -1,\n direction: direction,\n colValue: colValues.WALL\n };\n}", "function gridFixed(position){\n return new Vector3(Math.round(position.x/5)*5,\n Math.round(position.y/5)*5,\n 0);\n}", "function PopulateRandomTunnels() {\n\tfor(i = 0; i < 7; i) { // keep going until you find a number of valid positions\n\t\trandomPosition = Dice(100) - 1; // pick a random location on the grid\n\t\tvalidPosition = 0; // track position validity\n\t\tif(Math.floor((randomPosition - 1) / 10) == Math.floor(randomPosition / 10) && // west is not off edge\n\t\tgridArr[randomPosition - 1].open > 0 && // west is open\n\t\tgridArr[randomPosition - 1].room != \"ST\") { // is not start\n\t\t\tvalidPosition += 1;\n\t\t}\n\t\tif(Math.floor((randomPosition + 1) / 10) == Math.floor(randomPosition / 10) && // east is not off edge\n\t\tgridArr[randomPosition + 1].open > 0 && // east is open\n\t\tgridArr[randomPosition + 1].room != \"ST\") { // is not start\n\t\t\tvalidPosition += 100;\n\t\t}\n\t\tif(randomPosition - 10 >= 0 && // north is not off edge\n\t\tgridArr[randomPosition - 10].open > 0 && // north is open\n\t\tgridArr[randomPosition - 10].room != \"ST\") {\n\t\t\tvalidPosition += 1000;\n\t\t}\n\t\tif(randomPosition + 10 <= 99 && // south is not off edge\n\t\tgridArr[randomPosition + 10].open > 0 && // south is open\n\t\tgridArr[randomPosition + 10].room != \"ST\") {// is not start\n\t\t\tvalidPosition += 10;\n\t\t}\n\t\tif(gridArr[randomPosition].open < 1 && // is not already open\n\t\tvalidPosition > 0) { // is a valid position (beside an open space)\n\t\t\tgridArr[randomPosition].open = 1;\n\t\t\tgridArr[randomPosition].room = \"R\";\n\t\t\ti ++;\n\t\t}\n\t}\n\t// update the SC\n}", "function bound() {\n ['top', 'bottom', 'tlc', 'left', 'blc', 'trc', 'right', 'brc'].forEach((piece) => {\n equilibriate(piece, 0, params.u0, 1);\n });\n}", "closestValidDirection(partsArr, x, y, direction, includeStarting) {\n // 'blocks': a 5x5 bool array where entry is true if there is a block or center in that location.\n var blocks = []\n for (var a = 0; a < 5; a++) {\n blocks.push([false, false, false, false, false]);\n }\n partsArr.forEach(element => {\n if (element.type === \"block\" || element.type === \"center\") {\n blocks[element.x][element.y] = true;\n }\n })\n\n const order = [\"north\", \"west\", \"south\", \"east\"]\n var intial = order.indexOf(direction);\n if (includeStarting === false) {\n intial += 1;\n }\n\n // for every direction, starting with the current direction, return that direction if it is valid.\n // (if there is a block in the corresponding location.)\n for (a = intial; a < intial + 4; a++) {\n switch (order[a % 4]) {\n case \"north\":\n if (y > 0 && blocks[x][y - 1]) {\n return \"north\";\n }\n break\n case \"east\":\n if (x > 0 && blocks[x - 1][y]) {\n return \"east\";\n }\n break\n case \"west\":\n if (x < 4 && blocks[x + 1][y]) {\n return \"west\";\n }\n break\n case \"south\":\n if (y < 4 && blocks[x][y + 1]) {\n return \"south\";\n }\n break\n default:\n throw new Error(\"invalid direction\");\n }\n }\n }", "function setStart(rownum,colnum){\n //TODO: Gather the row/col number from the user\n // var rownum = 0\n // var colnum = 0\n //TODO: preset here, need modification\n if(rownum < 0 || rownum >= GRID_ROW_SIZE || colnum < 0 || colnum >= GRID_COL_SIZE){\n console.log(\"Invalid number: data out of bound\")\n }\n if(rownum == EndPoint[0] && colnum == EndPoint[1]){\n // cannot override endpoint\n return\n }\n Grid[StartPoint[0]][StartPoint[1]].State = \"NULL\"\n document.getElementById(Grid[StartPoint[0]][StartPoint[1]].id).innerHTML=\"\";\n\n Grid[rownum][colnum].State = \"Start\"\n document.getElementById(Grid[rownum][colnum].id).innerHTML=\"<div class='\"+setterMode+\"'></div>\";\n StartPoint = [rownum,colnum]\n\n\n\n return\n\n}", "function rePosition(){\r\n piece.pos.y = 0; // this and next line puts the next piece at the top centered\r\n piece.pos.x = ( (arena[0].length / 2) | 0) - ( (piece.matrix[0].length / 2) | 0);\r\n }", "function checkCase(y,x){\n\n var northWest = false;\n var northEast = false;\n var southWest = false;\n var southEast = false;\n var result = [];\n //check northWest Block\n\n if(x == 0 || y == 0){\n northWest = true;\n }else{\n if($scope.cell[y- 1][x - 1].isObstacle){\n northWest = true;\n }\n }\n\n //check northEast Block\n if(y == 0 || x == 30){\n northEast = true;\n }else{\n if($scope.cell[y -1][x].isObstacle){\n northEast = true;\n }\n }\n\n //check southWest Block\n if(x == 0 || y == 20){\n southWest = true;\n }else{\n if($scope.cell[y][x - 1].isObstacle){\n southWest = true;\n }\n }\n //check southEast Block\n if(x == 30 || y == 20){\n southEast = true;\n }else{\n if($scope.cell[y][x].isObstacle){\n southEast = true;\n }\n }\n\n if(!northWest && !northEast && !southWest && !southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [1,1,1,1];\n return result; // all way normal\n }\n\n //three way normal\n if(northWest && !northEast && !southWest && !southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [0,1,1,1];\n return result; //except northwest\n }\n\n if(!northWest && northEast && !southWest && !southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [1,0,1,1];\n return result; //except northeast\n }\n if (!northWest && !northEast && southWest && !southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [1,1,1,0];\n return result; //except southwest\n }\n if(!northWest && !northEast && !southWest && southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [1,1,0,1];\n return result; //except southeast\n }\n\n\n //two way normal\n if(northWest && northEast && !southWest && !southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [0,0,1,1];\n return result; //except northwest and east\n }\n if(!northWest && northEast && !southWest && southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [1,0,0,1];\n return result; //except northeast and southeast\n }\n if(!northWest && !northEast && southWest && southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [1,1,0,0];\n return result; //except southwest and southeast\n }\n\n if(northWest && !northEast && southWest && !southEast){\n result[0] = 0;\n result[1] = [];\n result[1] = [0,1,1,0];\n return result; //except southwest and northwest\n }\n\n\n //one corner\n if(northWest && northEast && southWest && !southEast){\n result[0] = 1; // one corner\n result[1] = [];\n result[1] = [0,0,1,0];\n return result;\n }\n if (northWest && northEast && !southWest && southEast){\n result[0] = 1; // one corner\n result[1] = [];\n result[1] = [0,0,0,1];\n return result;\n }\n if(!northWest && northEast && southWest && southEast){\n result[0] = 1; // one corner\n result[1] = [];\n result[1] = [1,0,0,0];\n return result;\n }\n if (northWest && !northEast && southWest && southEast){\n result[0] = 1; // one corner\n result[1] = [];\n result[1] = [0,1,0,0];\n return result;\n }\n\n\n //two corners\n if(!northWest && northEast && southWest && !southEast){\n result[0] = 2; // two corners\n result[1] = [];\n result[1] = [1,0,1,0];\n return result;\n }\n if(northWest && !northEast && !southWest && southEast){\n result[0] = 2; // two corners\n result[1] = [];\n result[1] = [0,1,0,1];\n return result;\n }\n\n }", "function movementLogic(ant) {\n if(grid[ant.x][ant.y] == 0) {\n ant.turnRight();\n grid[ant.x][ant.y] = 1;\n } else if (grid[ant.x][ant.y] == 1) {\n ant.turnLeft();\n grid[ant.x][ant.y] = 0;\n }\n stroke(color(255 * grid[ant.x][ant.y]));\n ant.moveForward();\n point(ant.x ,ant.y);\n}", "nearController () {\n var baseMatrix = this.getBaseMatrix()\n var dt = distance_transform.distanceTransform(baseMatrix)\n\n /* Get core structures */\n var core_position = this.corePos ? this.corePos : this.getPositionFor(dt, LAYOUT_CORE_BUFFER, function (a, b) {\n return a.getRangeTo(Game.rooms[a.roomName].controller) - b.getRangeTo(Game.rooms[b.roomName].controller)\n })\n if (!core_position) {\n return false\n }\n baseMatrix = this.addToMatrix(baseMatrix, core_position, LAYOUT_CORE_BUFFER)\n dt = distance_transform.distanceTransform(baseMatrix);\n\n /* Get flower1 structures */\n var flower1_position = this.getPositionFor(dt, LAYOUT_FLOWER_BUFFER, function (a, b) {\n return a.getRangeTo(core_position) - b.getRangeTo(core_position)\n })\n if (!flower1_position) {\n return false\n }\n baseMatrix = this.addToMatrix(baseMatrix, flower1_position, LAYOUT_FLOWER_BUFFER)\n dt = distance_transform.distanceTransform(baseMatrix);\n\n\n /* Get flower2 structures */\n var flower2_position = this.getPositionFor(dt, LAYOUT_FLOWER_BUFFER, function (a, b) {\n return a.getRangeTo(core_position) - b.getRangeTo(core_position)\n })\n if (!flower2_position) {\n return false\n }\n\n return this.planLayout(core_position, flower1_position, flower2_position)\n }", "function solveMazeZH() {\n\n let grid = cGrid;\n var curRow = 0;\n var curCol = 0;\n var prevRow = 0;\n var prevCol = 0;\n var stepCount = 0;\n var exitReached = false;\n var noExit = false;\n var minDistance = -1;\n var nextDirection;\n var moveUp = {};\n var moveLeft = {};\n var moveRight = {};\n var moveDown = {};\n\n\n //find the start column. We know it is on row 0.\n exitRow = grid.length - 1;\n startRow = 0;\n startCol = grid[startRow].findIndex(isPath);\n\n curCol = startCol;\n curRow = startRow;\n\n //Mark the start as part of the path\n grid[startRow][startCol] = colValues.PATH;\n var elementID = `${startRow}:${startCol}`;\n document.getElementById(elementID).setAttribute(\"blockValue\", \"step\");\n\n //solve the maze by looking for the next best step\n do {\n\n let nextStep = [];\n let prevRow = curRow;\n let prevCol = curCol;\n\n moveUp = moveZH(curRow, curCol, grid, directions.UP);\n if (moveUp.canMove == true) {\n nextStep.push(moveUp);\n }\n\n moveDown = moveZH(curRow, curCol, grid, directions.DOWN);\n if (moveDown.canMove == true) {\n nextStep.push(moveDown);\n }\n\n moveLeft = moveZH(curRow, curCol, grid, directions.LEFT);\n if (moveLeft.canMove == true) {\n nextStep.push(moveLeft);\n }\n\n moveRight = moveZH(curRow, curCol, grid, directions.RIGHT);\n if (moveRight.canMove == true) {\n nextStep.push(moveRight);\n }\n\n //if we have no where to go exit\n if (nextStep.length == 0) {\n noExit = true;\n break;\n }\n\n //sort nextstep by target value\n nextStep.sort(function (a, b) {\n if (a.colValue > b.colValue) {\n return 1;\n }\n if (a.colValue < b.colValue) {\n return -1;\n }\n return 0;\n });\n\n //pick the element that is closest to the exit. Pick Up or Down first. \n switch (nextStep[0].direction) {\n case directions.UP:\n //move up and add to step count \n stepCount++;\n curRow = curRow + 1;\n break;\n case directions.DOWN:\n //Move Down and add to step count\n stepCount++;\n curRow = curRow - 1;\n break;\n case directions.LEFT:\n //Move left and add to step count\n stepCount++;\n curCol = curCol - 1;\n break;\n case directions.RIGHT:\n //Move right and add to step count\n stepCount++;\n curCol = curCol + 1;\n break;\n\n }\n //mark the sqaures on the page\n if (curRow == exitRow) {\n exitCol = curCol;\n }\n\n exitReached = markElements(curRow, curCol, prevRow, prevCol, grid);\n }\n while (exitReached == false || noExit == true);\n if (exitReached == true) {\n document.getElementById(\"results\").innerHTML = `Success! It took ${stepCount} step(s)`\n }\n\n}", "function getmolegridloc(x, y, size, grids, spacing){\n var numy = grids[0];\n var numx = grids[1];\n var w = size[1], h = size[0];\n var loc = new Array(numy); // one row\n for(var i = 0; i < numy; i++){\n loc[i] = new Array(numx);\n for(var j = 0; j < numx; j++){\n loc[i][j] = new Array(2);\n loc[i][j][0] = y + i*spacing + i*h;\n loc[i][j][1] = x + j*spacing + j*w;\n }\n }\n return loc;\n}", "updateGridStates() {\n const newGridStates = _.times(this.state.boardHeight, (rowIdx) => {\n return _.times(this.state.boardWidth, (colIdx) => {\n const northRowIdx = this.wrapHeight(rowIdx - 1);\n const southRowIdx = this.wrapHeight(rowIdx + 1);\n const eastColIdx = this.wrapWidth(colIdx + 1);\n const westColIdx = this.wrapWidth(colIdx - 1);\n const neighbors = [\n // North\n this.state.gridStates[northRowIdx][colIdx],\n // North-east\n this.state.gridStates[northRowIdx][eastColIdx],\n // North-west\n this.state.gridStates[northRowIdx][westColIdx],\n // South\n this.state.gridStates[southRowIdx][colIdx],\n // South-east\n this.state.gridStates[southRowIdx][eastColIdx],\n // South-west\n this.state.gridStates[southRowIdx][westColIdx],\n // East\n this.state.gridStates[rowIdx][eastColIdx],\n // West\n this.state.gridStates[rowIdx][westColIdx]\n ];\n const numLiveNeighbors = _.sum(neighbors);\n const isAlive = this.state.gridStates[rowIdx][colIdx];\n const nextLife = isAlive ? numLiveNeighbors === 2 || numLiveNeighbors === 3 : numLiveNeighbors === 3;\n return Number(nextLife);\n });\n });\n this.setState({gridStates: newGridStates}, () => {\n console.log('updated state');\n setTimeout(this.updateGridStates.bind(this), this.state.iterationSleep);\n });\n }", "function findPath(startPos, goalPos, pathNumber, ignoreTowerSpawns, ignoreTowers) {\n //copy mapGrid array to a temp array\n var grid = copyArray(gameLoop.returnMapOfPath(pathNumber));\n\n //Set Goal\n grid[goalPos.indexX][goalPos.indexY] = 'GOAL';\n\n // Each \"location\" will store its coordinates\n // and the shortest path required to arrive there\n var location = {\n distX: startPos.indexX,\n distY: startPos.indexY,\n path: [],\n block: 'START'\n };\n\n // Initialize the queue with the start location already inside\n var queue = [location];\n\n // Loop through the grid searching for the goal\n while (queue.length > 0) {\n // Take the first location off the queue\n var currentLocation = queue.shift();\n\n // Explore North\n var newLocation = exploreInDirection(currentLocation, 0, grid, ignoreTowerSpawns, ignoreTowers);\n if (newLocation.block === 'GOAL') {\n return newLocation.path;\n } else if (newLocation.block === 'Valid') {\n queue.push(newLocation);\n }\n\n // Explore East\n var newLocation = exploreInDirection(currentLocation, 1, grid, ignoreTowerSpawns, ignoreTowers);\n if (newLocation.block === 'GOAL') {\n return newLocation.path;\n } else if (newLocation.block === 'Valid') {\n queue.push(newLocation);\n }\n\n // Explore South\n var newLocation = exploreInDirection(currentLocation, 2, grid, ignoreTowerSpawns, ignoreTowers);\n if (newLocation.block === 'GOAL') {\n return newLocation.path;\n } else if (newLocation.block === 'Valid') {\n queue.push(newLocation);\n }\n\n // Explore West\n var newLocation = exploreInDirection(currentLocation, 3, grid, ignoreTowerSpawns, ignoreTowers);\n if (newLocation.block === 'GOAL') {\n return newLocation.path;\n } else if (newLocation.block === 'Valid') {\n queue.push(newLocation);\n }\n }\n\n // No valid path found\n return false;\n\n}", "function PopulateSecretRoom() {\n\tfor(i=0; i < 2; i) { // keep going until you find a valid position\n\t\tsecretPosition = Dice(80) + 19; // pick a random location on the grid\n\t\tvalidPosition = 0; // track position validity\n\t\tsecretDoor = [];\n\t\tif(Math.floor((secretPosition - 1) / 10) == Math.floor(secretPosition / 10) && // west is not off edge\n\t\tgridArr[secretPosition - 1].open > 0 && // west is open\n\t\tgridArr[secretPosition - 1].room != \"SC\" && // west is not a secret room\n\t\tgridArr[secretPosition - 1].sDoor < 1) { // west is not a secret door\n\t\t\tvalidPosition = 1;\n\t\t\tsecretDoor.push(secretPosition - 1);\n\t\t}\n\t\tif(Math.floor((secretPosition + 1) / 10) == Math.floor(secretPosition / 10) && // east is not off edge\n\t\tgridArr[secretPosition + 1].open > 0 && // east is open\n\t\tgridArr[secretPosition + 1].room != \"SC\" && // east is not a secret room\n\t\tgridArr[secretPosition + 1].sDoor < 1) { // east is not a secret door\n\t\t\tvalidPosition = 1;\n\t\t\tsecretDoor.push(secretPosition + 1);\n\t\t}\n\t\tif(secretPosition - 10 >= 0 && // north is not off edge\n\t\tgridArr[secretPosition - 10].open > 0 && // north is open\n\t\tgridArr[secretPosition - 10].room != \"SC\" && // north is not a secret room\n\t\tgridArr[secretPosition - 10].sDoor < 1) { // north is not a secret door\n\t\t\tvalidPosition = 1;\n\t\t\tsecretDoor.push(secretPosition - 10);\n\t\t}\n\t\tif(secretPosition + 10 <= 99 && // south is not off edge\n\t\tgridArr[secretPosition + 10].open > 0 && // south is open\n\t\tgridArr[secretPosition + 10].room != \"SC\" && // south is not a secret room\n\t\tgridArr[secretPosition + 10].sDoor < 1) { // south is not a secret door\n\t\t\tvalidPosition = 1;\n\t\t\tsecretDoor.push(secretPosition + 10);\n\t\t}\n\t\tif(gridArr[secretPosition].open < 1 && // is not already open\n\t\tvalidPosition > 0) { // is a valid position (beside an open space)\n\t\t\tgridArr[secretPosition].open = 1;\n\t\t\tgridArr[secretPosition].room = \"SC\";\n\t\t\tgridArr[secretPosition].loot.push(RTTSecretRoom());\n\t\t\tsecretDoorRoom = Dice(secretDoor.length) - 1;\n\t\t\tgridArr[secretDoor[secretDoorRoom]].sDoor = 1; // place the secret door randomly from the available options\n\t\t\tgridArr[secretPosition].exit = secretDoor[secretDoorRoom]; // track the exit\n\t\t\ti ++; // a valid position has been found for 1 secret room\n\t\t}\n\t}\n}", "function getSurroundingCells(cell) {\n\n// NW N NE\n// W + E\n// SW S SE\n\n var cells = {};\n var missingElement = document.createElement(\"div\");\n\n // West\n if (parseInt(cell.getAttribute('cell')) > 0) {\n cells.w = document.querySelector(`.cell[cell=\"${parseInt(cell.getAttribute('cell'))-1}\"][row=\"${cell.getAttribute('row')}\"]`);\n } else {\n cells.w = missingElement;\n }\n // East\n if (parseInt(cell.getAttribute('cell')) < Math.sqrt(game.gridSize)) {\n cells.e = document.querySelector(`.cell[cell=\"${parseInt(cell.getAttribute('cell'))+1}\"][row=\"${cell.getAttribute('row')}\"]`);\n } else {\n cells.e = missingElement;\n }\n\n // North\n if (parseInt(cell.getAttribute('row')) > 0) {\n cells.n = document.querySelector(`.cell[row=\"${parseInt(cell.getAttribute('row'))-1}\"][cell=\"${cell.getAttribute('cell')}\"]`);\n } else {\n cells.n = missingElement;\n }\n // South\n if (parseInt(cell.getAttribute('row')) < Math.sqrt(game.gridSize)) {\n cells.s = document.querySelector(`.cell[row=\"${parseInt(cell.getAttribute('row'))+1}\"][cell=\"${cell.getAttribute('cell')}\"]`);\n } else {\n cells.s = missingElement;\n }\n\n // North East\n if (parseInt(cell.getAttribute('row')) > 0 && parseInt(cell.getAttribute('cell')) < Math.sqrt(game.gridSize)) {\n cells.ne = document.querySelector(`.cell[row=\"${parseInt(cell.getAttribute('row'))-1}\"][cell=\"${parseInt(cell.getAttribute('cell'))+1}\"]`);\n } else {\n cells.ne = missingElement;\n }\n\n // North West\n if (parseInt(cell.getAttribute('row')) < Math.sqrt(game.gridSize) && parseInt(cell.getAttribute('cell')) < Math.sqrt(game.gridSize)) {\n cells.nw = document.querySelector(`.cell[row=\"${parseInt(cell.getAttribute('row'))-1}\"][cell=\"${parseInt(cell.getAttribute('cell'))-1}\"]`);\n } else {\n cells.nw = missingElement;\n }\n\n // South East\n if (parseInt(cell.getAttribute('row')) < Math.sqrt(game.gridSize) && parseInt(cell.getAttribute('cell')) < Math.sqrt(game.gridSize)) {\n cells.se = document.querySelector(`.cell[row=\"${parseInt(cell.getAttribute('row'))+1}\"][cell=\"${parseInt(cell.getAttribute('cell'))+1}\"]`);\n } else {\n cells.se = missingElement;\n }\n\n // South West\n if (parseInt(cell.getAttribute('row')) < Math.sqrt(game.gridSize) && parseInt(cell.getAttribute('cell')) > 0) {\n cells.sw = document.querySelector(`.cell[row=\"${parseInt(cell.getAttribute('row'))+1}\"][cell=\"${parseInt(cell.getAttribute('cell'))-1}\"]`);\n } else {\n cells.sw = missingElement;\n }\n\n return cells;\n}", "function gridToCoordinate(n) {\n\tconst r = n * TILE_SIZE;\n\treturn r - r % TILE_SIZE;\n}", "cohesion(boids) {\n const neighborDist = 50\n const sum = new Vector(0, 0) // Start with empty vector to accumulate all positions\n let count = 0\n for (let other of boids) {\n const d = this.agent.location.dist(other.location)\n if ((d > 0) && (d < neighborDist)) {\n sum.add(other.position) // Add position\n count++\n }\n }\n if (count > 0) {\n sum.divide(count)\n return seek(sum) // Steer towards the position\n }\n else {\n return new Vector(0, 0)\n }\n }", "setInitialBowlerPosition() {\n\t\tthis.startBowlPosX = config.width * 0.55;\n\t\tthis.startBowlPosY = config.height * 0.35;\n\t}", "constructor(numWide, numHigh, startx, starty, endx, endy) {\r\n this.numSqWide = numWide;\r\n this.numSqHigh = numHigh;\r\n this.width = endx - startx;\r\n this.height = endy - starty;\r\n this.squarewidth = this.width / this.squares_wide;\r\n this.squareheight = this.width / this.squares_high;\r\n\r\n this.objects = []; // to hold all objects that are playing on this board\r\n //this.settings = this will hold the settings for the various games, Snake will hold speed, controls? , wa\r\n }", "function grid(){\r\nfor(y = 0; y < maze.length; y++){\r\n \r\n for(x = 0; x < maze[y].length; x++){\r\n \r\n if(maze[y][x] == 0){\r\n ctx.fillStyle = \"#315625\";\r\n ctx.fillRect(x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 2){\r\n ctx.drawImage(imghole, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 1){\r\n ctx.drawImage(imgbush, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 3){\r\n ctx.drawImage(imgmushroom, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 4){\r\n ctx.drawImage(imgcheshire, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 5){\r\n ctx.drawImage(imgcard, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == player){\r\n ctx.drawImage(imgalice, x*tSize,y*tSize,tSize,tSize);\r\n playerPosition = {y:y,x:x};\r\n console.log(playerPosition.y + \" \" + playerPosition.x)\r\n }\r\n }\r\n }\r\n}", "step() {\n let backBufferIndex = this.currentBufferIndex === 0 ? 1 : 0 \n let currentBuffer = this.bufferr[this.currentBufferIndex];\n let backBuffer = this.buffer[this.backBufferIndex];\n \n\n // helper function to see if cell has infectious neighbor\n const hasInfectiousNeighbour = (x, y) => {\n const nextValue = (currentBuffer[y][x] + 1) % MODULO;\n\n // check west neighbour to see if it has nextValue\n if (x > 0) { // if it isn't it has no west neighbour it's a col 0\n if(currentBuffer[y][x-1] === nextValue) {\n return true; \n }\n } \n\n // check North, note x,y 00 is top left not bottom left of graph\n if (y > 0) { // if it isn't it has no north neighbour\n if(currentBuffer[y - 1][x] === nextValue) {\n return true; \n }\n } \n\n // check south\n if (y < this.height - 1) { // if it isn't it has no north neighbour\n if(currentBuffer[y + 1][x] === nextValue) {\n return true; \n }\n }\n\n // check east\n if (x < this.width - 1) { // if it isn't it has no north neighbour\n if(currentBuffer[y][x + 1] === nextValue) {\n return true; \n }\n }\n\n // default case, none of the neighbours have the value or infection\n return false; \n\n }\n\n // loop through the current buffer and populate backbuffer based on currenbufer \n // infected neighbour value\n for (let y = 0; y < this.height; y++) {\n for (let x = 0; x < this.lenght; x++) {\n if (hasInfectiousNeighbour(x,y)) { // backbuffer value is next val\n backBuffer[x][y] = (currentBuffer[y][x] + 1) % MODULO; \n } else { // backBuffer same as current buffer\n backBuffer[y][x] = currentBuffer[y][x];\n }\n\n }\n }\n this.currentBufferIndex = backBufferIndex;\n }", "function position(xDir,yDir) {\n\tvar eId;\n\tG_xp = xDir;\n\tG_yp = yDir;\n\teId = xDir+','+yDir;\n\teColor = document.getElementById(eId).style.backgroundColor;\n\n\t//positions for S-E direction\n\tlet col=xDir,row=yDir;\n\tdocument.getElementById('h1').innerHTML=\"S-E positions\";\n\t while(col<N && row>0) {\n\t\t var sE = '';\n\t\t let x = col, y = row;\n\t\t sE = sE.concat((x+1)+','+(y-1));\n\t\t color(x,y);\n\t\t x++;\n\t\t y--;\n\t\t SLength++;\n\t }\n\t S=S.concat(sE);\n\t document.getElementById('p1').innerHTML = sE;\n\t sE = '';\n\n\t//positions for N-E direction\n\t document.getElementById('h2').innerHTML=\"N-E positions\";\n\t while(col>0 && row>0) {\n\t\t var nE = '';\n\t\t let x = col, y = row;\n\t\t nE = nE.concat((x-1)+\",\"+(y-1)+\" \");\n\t\t color(x,y);\n\t\t x--;\n\t\t y--;\n\t\t SLength++;\n\t }\n\t S=S.concat(nE);\n\t document.getElementById('p2').innerHTML= nE;\n\t nE = '';\n\n\t//positions for S-W direction\n\t document.getElementById('h3').innerHTML=\"S-W positions\";\n\t while(col<N && row<N) {\n\t\t var sW = '';\n\t\t let x = col, y = row;\n\t\t sW = sW.concat((x+1)+','+(y+1));\n\t\t color(x,y);\n\t\t x++;\n\t\t y++;\n\t\t SLength++;\n\t }\n\t\tS=S.concat(sW);\n\t\tdocument.getElementById('p3').innerHTML = sW;\n\t\tsW = '';\n\t\n\t//positions for N-W direction\n\t document.getElementById('h4').innerHTML=\"N-W positions\";\n\t while(x>0 && y<N) {\n\t\t var nW = '';\n\t\t let x = col; y = row;\n\t\t s=s.concat((x-1)+','+(y+1));\n\t\t color(x,y);\n\t\t x--;\n\t\t y++;\n\t\t SLength++;\n\t }\n\t S=S.concat(nW);\n\t document.getElementById('p4').innerHTML = nW;\n\t nW = '';\n\t color(col,row);\n\n}", "assignOpenings(start, end) {\r\n if (start.y === 0) {\r\n // start is at top of maze\r\n this.maze[start.x][0] = Maze.OPENING\r\n } else if (start.y === Maze.ROWS) {\r\n // start is at bottom of maze\r\n this.maze[start.x][Maze.ROWS - 1] = Maze.OPENING\r\n } else if (start.x === 0) {\r\n // start is at left of maze\r\n this.maze[0][start.y] = Maze.OPENING\r\n } else {\r\n console.error(\"Invalid starting cell\")\r\n }\r\n }", "function newGrid() {\n // Checks how many living neighboring cells each cell has\n // Iterate the grid\n for (let i = 0; i < dimension; i++) {\n for (let j = 0; j < dimension; j++) {\n // Count surrounding living cells\n let cellsCount = 0;\n // Check the three cells above the current one\n if (i !== 0) { // continue only if this is not the first/zero row\n if (j !== 0) // continue only if this is not the first/zero column\n cellsCount += grid[i - 1][j - 1];\n cellsCount += grid[i - 1][j];\n if (j !== (dimension - 1)) // continue only if this is not the last column\n cellsCount += grid[i - 1][j + 1];\n }\n // Check the cell on the left\n if (j !== 0) // continue only if this is not the first/zero column\n cellsCount += grid[i][j - 1];\n // Check the cell on the right \n if (j !== (dimension - 1)) // continue only if this is not the last column\n cellsCount += grid[i][j + 1];\n // Check the three cells below the current one\n if (i !== (dimension - 1)) {\n if (j !== 0) // continue only if this is not the first/zero column\n cellsCount += grid[i + 1][j - 1];\n cellsCount += grid[i + 1][j];\n if (j !== (dimension - 1)) // continue only if this is not the last column\n cellsCount += grid[i + 1][j + 1];\n }\n\n // Check if the currnet cell is dead\n if (grid[i][j] === 0) {\n // Become alive if three surrounding cells are alive, else die\n if (cellsCount === 3) {\n copiedGrid[i][j] = 1;\n } else {\n copiedGrid[i][j] = 0;\n }\n } \n // Current cell is alive\n else if (grid[i][j] === 1) {\n // stay alive with 2 or 3 living neighbours, else die\n if (cellsCount === 2 || cellsCount === 3) {\n copiedGrid[i][j] = 1;\n } else {\n copiedGrid[i][j] = 0;\n }\n }\n }\n }\n\n // Copy the temporary grid in real one\n for (let j = 0; j < dimension; j++) {\n for (let k = 0; k < dimension; k++) {\n grid[j][k] = copiedGrid[j][k];\n }\n }\n\n drawGrid();\n}", "function setUpDraughtsStart() {\n let squares = Array(64).fill(null);\n for (let i = 0; i < 64; i++) {\n if (squareIsStartingXSquare(i)) {\n squares[i] = \"X\";\n } else if (squareIsStartingOSquare(i)) {\n squares[i] = \"O\";\n }\n }\n return squares;\n}", "setupCoordinates(){\n // Starts the circle and square off screen to the bottom left\n // We divide their size by two because we're drawing from the center\n this.xPos = width + squareSize / 2;\n this.yPos = height + squareSize / 2;\n }", "blocksTravelled(){\n let horizontal = Math.abs(eastWest.indexOf(this.beginningLocation.horizontal) - eastWest.indexOf(this.endingLocation.horizontal))\n let vertical = Math.abs(parseInt(this.beginningLocation.vertical)-parseInt(this.endingLocation.vertical))\n return (horizontal + vertical);\n }", "function createGrid(startingPosition) {\n for (let i = 0; i < cellCount; i++) {\n const cell = document.createElement('div')\n grid.appendChild(cell)\n cells.push(cell)\n }\n \n playerPosition = 487\n cells[playerPosition].classList.add('sprite')\n enemyA.position = 337\n cells[enemyA.position].classList.add('enemy1')\n enemyB.position = 335\n cells[enemyB.position].classList.add('enemy2')\n enemyC.position = 339\n cells[enemyC.position].classList.add('enemy3')\n enemyD.position = 338\n cells[enemyD.position].classList.add('enemy4')\n }", "function getDistanceFromGoal(row, col, player) {\n\n\tif (grid[row][col].kind == 3) {\n\t\treturn 23;\n\t}\n\n\tif (player == 0) {\n\t\tif (row <= 5 && col >= 9 && col <= 11) { // in 3x3 square in front of goal\n\t\t\treturn (row-2);\n\t\t}\n\t\tif (row <= 5 && col >= 6 && col <= 8) { // in Messenian territory \"west\" of 3x3 square\n\t\t\treturn (row-3) + (8-col) + 2;\n\t\t}\n\t\tif (row <= 5 && col >= 12 && col <= 14) { // in Messenian territory \"east\" of 3x3 square\n\t\t\treturn (row-3) + (col-12) + 2;\n\t\t}\n\t\tif (row >= 3 && row <= 11 && col >= 3 && col <= 5) { // in Spartan territory\n\t\t\treturn (row-3) + (5-col) + 5;\n\t\t}\n\t\tif (row >= 3 && row <= 11 && col >= 15 && col <= 17) { // in Theban territory\n\t\t\treturn (row-3) + (col-15) + 5;\n\t\t}\n\t\tif (row >= 9 && col >= 6 && col <= 10) { // in \"west\" half of Athenian territory (including rally areas)\n\t\t\treturn (row-9) + (col-5) + 11;\n\t\t}\n\t\tif (row >= 9 && col >= 11 && col <= 14) { // in \"east\" half of Athenian territory (including rally areas)\n\t\t\treturn (row-9) + (15-col) + 11;\n\t\t}\n\t}\n\n\tif (player == 1) {\n\t\tif (row >= 6 && row <= 8 && col >= 15) { // in 3x3 square in front of goal\n\t\t\treturn (18-col);\n\t\t}\n\t\tif (row >= 3 && row <= 5 && col >= 3) { // in long rectangle \"north\" of goal\n\t\t\treturn (5-row) + (17-col) + 2;\n\t\t}\n\t\tif (row >= 9 && row <= 11 && col >= 3) { // in long rectangle \"south\" of goal\n\t\t\treturn (row-9) + (17-col) + 2;\n\t\t}\n\t\tif (row >= 6 && row <= 7 && col <= 5) { // in \"north\" 2x6 rectangle between center and back of rally area\n\t\t\treturn (row-5) + (5-col) + 14;\n\t\t}\n\t\tif (row == 8 && col <= 5) { // in \"south\" 1x6 rectangle between center and back of rally area\n\t\t\treturn (9-row) + (5-col) + 14;\n\t\t}\n\t}\n\n\tif (player == 2) {\n\t\tif (row >= 9 && col >= 9 && col <= 11) { // in 3x3 square in front of goal\n\t\t\treturn (12-row);\n\t\t}\n\t\tif (row >= 9 && col >= 6 && col <= 8) { // in Athenian territory \"west\" of 3x3 square\n\t\t\treturn (11-row) + (8-col) + 2;\n\t\t}\n\t\tif (row >= 9 && col >= 12 && col <= 14) { // in Athenian territory \"east\" of 3x3 square\n\t\t\treturn (11-row) + (col-12) + 2;\n\t\t}\n\t\tif (row >= 3 && row <= 11 && col >= 3 && col <= 5) { // in Spartan territory\n\t\t\treturn (11-row) + (5-col) + 5;\n\t\t}\n\t\tif (row >= 3 && row <= 11 && col >= 15 && col <= 17) { // in Theban territory\n\t\t\treturn (11-row) + (col-15) + 5;\n\t\t}\n\t\tif (row <= 5 && col >= 6 && col <= 10) { // in \"west\" half of Messenian territory (including rally areas)\n\t\t\treturn (5-row) + (col-5) + 11;\n\t\t}\n\t\tif (row <= 5 && col >= 11 && col <= 14) { // in \"east\" half of Messenian territory (including rally areas)\n\t\t\treturn (5-row) + (15-col) + 11;\n\t\t}\n\t}\n\n\tif (player == 3) {\n\t\tif (row >= 6 && row <= 8 && col <= 5) { // in 3x3 square in front of goal\n\t\t\treturn (col-2);\n\t\t}\n\t\tif (row >= 3 && row <= 5 && col <= 17) { // in long rectangle \"north\" of goal\n\t\t\treturn (5-row) + (col-3) + 2;\n\t\t}\n\t\tif (row >= 9 && row <= 11 && col <= 17) { // in long rectangle \"south\" of goal\n\t\t\treturn (row-9) + (col-3) + 2;\n\t\t}\n\t\tif (row >= 6 && row <= 7 && col >= 15) { // in \"north\" 2x6 rectangle between center and back of rally area\n\t\t\treturn (row-5) + (col-15) + 14;\n\t\t}\n\t\tif (row == 8 && col >= 15) { // in \"south\" 1x6 rectangle between center and back of rally area\n\t\t\treturn (9-row) + (col-15) + 14;\n\t\t}\n\t}\n\n\treturn -1;\n}", "function getClosestCells(_currPos, gridDiv, gridW, gridH)\n{\n var neighbors = [];\n var boxWidth = gridW / gridDiv;\n var boxHeight = gridH / gridDiv;\n var _startX = 0.0;\n var _startY = 0.0;\n var _endX = 0.0;\n var _endY = 0.0;\n\n //establish current grid cell boundaries of agent\n for(var i = 0; i < gridW; i += boxWidth)\n {\n if(_currPos.x >= i && _currPos.x <= i + boxWidth)\n {\n _startX = i;\n _endX = i + boxWidth;\n }\n }\n\n for(var j = 0; j < gridH; j += boxHeight)\n {\n if(_currPos.z >= j && _currPos.z <= j + boxHeight)\n {\n _startY = j;\n _endY = j + boxHeight;\n }\n }\n\n //boundary cases\n if(_startX == 0)\n {\n _startX += boxWidth;\n }\n if(_startX == 20)\n {\n _startX -= boxWidth;\n }\n\n if(_startY == 0)\n {\n _startY += boxHeight;\n }\n if(_startY == 20)\n {\n _startY -= boxHeight;\n }\n\n if(_endX == 20)\n {\n _endX -= boxWidth;\n }\n if(_endY == 20)\n {\n _endY -= boxHeight;\n }\n\n //either multiply the values in if cases by 2 or subtract and add boxWidth and boxHeight here\n neighbors.push({startX: _startX - boxWidth, startY: _startY - boxHeight, endX: _endX + boxWidth, endY: _endY + boxHeight});\n\n return neighbors;\n}", "function Start() {\n\tSetup = false;\n\tvar index = 0;\n\n\tfor(var i=0; i<RowNum; i++){\n\t\tfor(var j=0; j<ColNum; j++){\n\n\t\t\t//create posn object\n\t\t\tposn = new Posn(j, i);\n\n\t\t\t//create cell reference variables to catch borders\n\t\t\t//red\n\t\t\tif(posn.y==0)\n\t\t\t\tvar top = NaN;\n\t\t\telse\n\t\t\t\tvar top = index - ColNum;\n\t\t\t//orange\n\t\t\tif(posn.y==RowNum - 1)\n\t\t\t\tvar bottom= NaN;\n\t\t\telse\n\t\t\t\tvar bottom = index + ColNum;\n\t\t\t//green\n\t\t\tif(posn.x==0)\n\t\t\t\tvar left = NaN;\n\t\t\telse\n\t\t\t\tvar left = index - 1;\n\t\t\t//blue\n\t\t\tif(posn.x==ColNum - 1)\n\t\t\t\tvar right = NaN;\n\t\t\telse\n\t\t\t\tvar right = index + 1;\t\t\n\n\n\t\t\t//add cell to cells array\n\t\t\tCells[index] = new Cell(top, bottom, left, right, index,\"c\"+j+\"x\"+i, posn, false);\n\t\t\tnewCells[index] = new Cell(top, bottom, left, right, index,\"c\"+j+\"x\"+i, posn, false);\n\n\n\t\t\t//create new div for the cell\n\t\t\tvar newCell=document.createElement(\"div\");\n\n\t\t\t//set attributes of cell\n\t\t\tnewCell.setAttribute(\"class\", \"Cell\");\n\t\t\tnewCell.setAttribute(\"id\", Cells[index].id);\n\t\t\tnewCell.setAttribute(\"onclick\", \"changeState(\"+index+\")\");\n\n\n\t\t\t//appends new cell div to world\n\t\t\tdocument.getElementById(\"world\").appendChild(newCell);\n\n\n\t\t\t//sets format of new cell\n\t\t\tdocument.getElementById(Cells[index].id).style.marginTop = Cells[index].posn.y +\"vw\";\n\t\t\tdocument.getElementById(Cells[index].id).style.marginLeft = Cells[index].posn.x +\"vw\";\n\n\t\t\t//incrememnt index variable (used to determine array index)\n\t\t\tindex++;\n\t\t}\n\t}\n}", "function grid(columns, ball_radius, gap, offx, offy)\n{\n this.columns = columns\n this.offx = offx\n this.offy = offy\n this.rows = 1\n this.ball_radius = ball_radius\n this.ball_size = ball_radius * 2\n this.next_col = 0\n this.gap = gap\n this.balls = {}\n this.movement = 0\n this.critical_mass = 3; //min size of a group for the group to be deleted\n //when a ball is added. Ex, if a ball is added and\n //there are now at least 3 balls in the group, the\n //gropu is removed from the grid.\n //values to save state of moving down\n this.moving = 0\n this.target = 0 //how far should the balls move\n this.time = 0 //how long do the balls have to move there\n this.taken = 0 //how much time has elapsed since the balls started moving\n this.current_move = 0 //how far have the balls moved so far\n\n this.remove_self = function()\n {\n var keys = Object.keys(this.balls)\n for(var index = 0; index < keys.length; index++)\n {\n var c = this.balls[keys[index]];\n remove_object(c.id);\n }\n remove_object(this.id)\n }\n\n this.move_down = function (time, rows=1)\n {\n this.moving = 1\n this.target += (this.ball_size + this.gap) * rows;\n this.time += time\n }\n\n this.get_all_colors = function()\n {\n var colors = {}\n var keys = Object.keys(this.balls)\n for(var index = 0; index < keys.length; index++) {\n var c = this.balls[keys[index]].color;\n if (!(c in colors)) {\n colors[c] = 0;\n }\n }\n return Object.keys(colors)\n }\n\n this.height = function()\n {\n //get all locations\n var locs = Object.keys(this.balls)\n var min = Infinity, max = -Infinity;\n\n for (var index = 0; index < locs.length; index++)\n {\n //get current location\n loc = locs[index]\n loc = [parseInt(loc.slice(0, loc.indexOf(','))),\n parseInt(loc.slice(loc.indexOf(',') + 1, loc.length))]\n if(loc[0] < min)\n min = loc[0]\n if(loc[0] > max)\n max = loc[0]\n }\n return max - min + 1;\n }\n\n this.intersect_grid = function (ball)\n {\n loc = this.get_pos(ball.x, ball.y)\n row = Math.round(loc[0])\n col = Math.round(loc[1])\n\n adj = this.get_adjacent(row, col)\n adj.push([row, col])\n for (index = 0; index < adj.length; index++)\n {\n loc = adj[index]\n if (loc[0] == this.rows || (this.in_grid(loc[0], loc[1]) && ball.intersect(this.balls[[loc[0], loc[1]]])))\n {\n adj.sort(this.make_comp(this, ball));\n for (index = 0; index < adj.length; index++)\n {\n loc = adj[index]\n if (!this.in_grid(loc[0], loc[1]))\n {\n this.thingy = false\n return [true, loc]\n }\n }\n }\n }\n\n return [false, null]\n }\n\n this.make_comp = function(grid, ball) {\n return function(a, b){\n pos1 = grid.get_loc(a[0], a[1]);\n pos2 = grid.get_loc(b[0], b[1]);\n da = Math.sqrt((ball.x - pos1[0]) * (ball.x - pos1[0]) + (ball.y - pos1[1]) * (ball.y - pos1[1]));\n db = Math.sqrt((ball.x - pos2[0]) * (ball.x - pos2[0]) + (ball.y - pos2[1]) * (ball.y - pos2[1]));\n if (da == db)\n return 0;\n else if (da < db)\n return -1;\n else\n return 1;\n }\n }\n\n this.get_ball = function(row, col) {\n if(this.in_grid(row, col))\n return this.balls[[row, col]];\n }\n\n this.flood = function(row, col)\n {\n var marked = {}\n var stack = []\n var found = []\n stack.push([row, col])\n\n while (stack.length > 0)\n {\n var loc = stack.pop()\n if (!(loc in marked))\n {\n marked[loc] = 0\n if (this.in_grid(loc[0], loc[1]))\n {\n found.push(loc)\n adj = this.get_adjacent(loc[0],loc[1])\n for(var index = 0; index < adj.length; index++)\n {\n stack.push(adj[index])\n }\n }\n }\n }\n\n return found\n }\n\n this.color_flood = function(row, col, color)\n {\n var marked = {}\n var stack = []\n var found = []\n stack.push([row, col])\n\n while (stack.length > 0)\n {\n var loc = stack.pop()\n if (!(loc in marked))\n {\n marked[loc] = 0\n if (this.in_grid(loc[0], loc[1]) && this.get_ball(loc[0], loc[1]).color == color)\n {\n found.push(loc)\n adj = this.get_adjacent(loc[0],loc[1])\n for(var index = 0; index < adj.length; index++)\n {\n stack.push(adj[index])\n }\n }\n }\n }\n\n return found\n }\n\n //Draws the grid on the screen\n this.draw = function (elapsed)\n {\n if(this.moving == 1)\n {\n dy = this.target / this.time * elapsed;\n if(this.taken + elapsed >= this.time)\n {\n dy = this.target - this.current_move\n this.target = 0;\n this.time = 0;\n this.taken = 0\n this.current_move = 0\n this.moving = 0\n }\n else\n {\n this.current_move += dy\n this.taken += elapsed\n }\n this.translate_balls(0, dy)\n this.movement += dy\n }\n \n \n }\n\n //Gets the x and y pixels of a location\n this.get_loc = function (row, col)\n {\n x = this.gap + this.offx + (this.gap + this.ball_size) * col\n if (Math.abs(row) % 2 == 1)\n x += this.ball_size / 2;\n y = this.gap - (this.gap + this.ball_size) * (row) + this.offy + this.movement\n return [x, y]\n }\n\n //Gets a row, col location from pixels\n this.get_pos = function (x, y)\n {\n row = (y - this.gap - this.offy - this.movement) / -(this.gap + this.ball_size)\n col = (x - this.gap - this.offy) / (this.gap + this.ball_size)\n if (Math.abs(row) % 2 == 0)\n col = (x - this.gap - this.offy - this.ball_size / 2) / (this.gap + this.ball_size)\n return [row, col]\n }\n\n this.add_rows = function (color_fn, rows)\n {\n for(var index = 0; index < rows; index++)\n {\n this.add_row(color_fn)\n }\n }\n\n //adds a row of balls\n this.add_row = function (color_fn)\n {\n for(var count = 0; count < this.columns; count++)\n {\n this.add_ball(color_fn())\n }\n this.move_down(0.1, 1)\n }\n\n //Adds a single ball to the grid\n this.add_ball = function (color)\n {\n row = this.rows;\n col = this.next_col;\n [x, y] = this.get_loc(row, col)\n this.balls[[row, col]] = new ball(x, y, color, 0, 0, ball_radius);\n add_object(this.balls[[row, col]])\n this.next_col++;\n if(this.next_col >= this.columns)\n {\n this.rows ++;\n this.next_col = 0;\n }\n }\n\n //inserts a ball into the grid at a specific location\n this.insert_ball = function (ball, row, col)\n {\n loc = this.get_loc(row, col);\n ball.x = loc[0]\n ball.y = loc[1]\n ball.speedx = 0\n ball.speedy = 0\n this.balls[[row, col]] = ball\n\n //Get group of balls that this was added to\n group = this.color_flood(row, col, ball.color);\n //If the group has at least 3 balls in it, remove the balls from the grid\n if (group.length >= 3)\n {\n for(var index = 0; index < group.length; index++)\n {\n this.remove_ball(group[index][0], group[index][1])\n }\n return group.length\n }\n return 0\n }\n\n //ensure that all balls are connected to the top row, if they aren't\n // connected to the top row, remove them\n this.verify_grid = function ()\n {\n //get all locations\n var locs = Object.keys(this.balls)\n var index = 0\n var removed = 0\n //save all the balls we have checked.\n var marked = {}\n while (index < locs.length)\n {\n //get current index\n loc = locs[index]\n loc = [parseInt(loc.slice(0, loc.indexOf(','))),\n parseInt(loc.slice(loc.indexOf(',') + 1, loc.length))]\n //make sure to increment index\n index++\n //check to make sure we haven't already verified this location\n // and make sure this location is in the grid\n if (!(loc in marked))\n {\n //If this is passed, find this ball's group of balls\n group = this.flood(loc[0], loc[1])\n //find the max row out of the group\n max_row = group[0][0]\n for(var index2 = 1; index2 < group.length; index2++)\n {\n //if a new max\n if(group[index2][0] > max_row)\n {\n //update the max\n max_row = group[index2][0]\n }\n }\n //with the max row found, check to make sure that the max row\n // is the same as the top row\n if (max_row < this.rows - 1)\n {\n //group is disconnected from top, cleanse the group\n for(var index2 = 0; index2 < group.length; index2++)\n {\n this.remove_ball(group[index2][0], group[index2][1])\n removed++\n }\n }\n //add all these locations to marked locations\n for (var index2 = 0; index2 < group.length; index2++)\n {\n marked[group[index2]] = 0;\n }\n }\n }\n\n //return number of removed balls\n return removed\n }\n\n //Get number of balls in grid\n this.size = function()\n {\n return Object.keys(this.balls).length\n }\n\n //Removes a ball at a given row and column\n this.remove_ball = function (row, col)\n {\n if(this.in_grid(row, col))\n {\n this.balls[[row,col]].die(.2)\n delete this.balls[[row, col]]\n return true\n }\n return false\n }\n\n //Checks if there is a ball at a given location in the grid\n this.in_grid = function (row, col)\n {\n return [row, col] in this.balls\n }\n\n //Gets the adjacent locations to a spot on the grid as a list (with a hex layout)\n this.get_adjacent = function (row, col)\n {\n if (Math.abs(row) % 2 == 1)\n {\n return [[row - 1, col],\n [row - 1, col + 1],\n [row, col + 1],\n [row, col - 1],\n [row + 1, col],\n [row + 1, col + 1]]\n }\n else\n {\n return [[row - 1, col - 1],\n [row - 1, col],\n [row, col + 1],\n [row, col - 1],\n [row + 1, col - 1],\n [row + 1, col]]\n }\n }\n\n //Moves all the balls in a specific direction\n this.translate_balls = function (dx, dy)\n {\n ball_keys = Object.keys(this.balls)\n for(var index = 0; index < ball_keys.length; index++)\n {\n var ball = this.balls[ball_keys[index]]\n ball.x += dx;\n ball.y += dy;\n }\n }\n}", "function cell() {\n //Pontos com coordenadas normalizadas (0 a 1)\n const pts = []\n pts.push(new Vector2(.25, .25));\n pts.push(new Vector2(.75, .25));\n pts.push(new Vector2(.75, .75));\n pts.push(new Vector2(.25, .75));\n pts.push(new Vector2(.5, .5));\n\n for (let i = 0; i < X; i++) {\n for(let j = 0; j < Y; j++) {\n\n var min_dist = Infinity;\n\n pts.forEach(e => {\n min_dist = Math.min(e.distance(new Vector2(i/X, j/Y)), min_dist);\n \n });\n canvasBefore[idx(i, j)].add(min_dist);\n }\n }\n}", "function yGridRefToNextPieceCoordinate (yGridRef) {\n yCoordinate = 60 + (yGridRef * 30);\n return yCoordinate;\n}" ]
[ "0.6330682", "0.6205498", "0.6185677", "0.6027274", "0.60119647", "0.5937379", "0.5936085", "0.5903911", "0.58822656", "0.58730483", "0.5857049", "0.5830025", "0.58142805", "0.5810783", "0.5807623", "0.58011216", "0.5800586", "0.5764752", "0.57612497", "0.576078", "0.5727646", "0.5720053", "0.57096046", "0.57002825", "0.56813294", "0.5663682", "0.56612784", "0.5655601", "0.5645702", "0.5641267", "0.56373996", "0.5630316", "0.5627306", "0.56191623", "0.5613314", "0.5604095", "0.5589944", "0.5588887", "0.55850536", "0.5584308", "0.5578037", "0.5574907", "0.55738145", "0.5572739", "0.5571385", "0.5571259", "0.5566272", "0.55648386", "0.55490035", "0.55299115", "0.552921", "0.5527822", "0.5523201", "0.5514422", "0.5511477", "0.5511219", "0.5509993", "0.5508714", "0.5491129", "0.5491129", "0.5489071", "0.54827416", "0.54777306", "0.5472702", "0.5472582", "0.54710174", "0.54691386", "0.54641044", "0.5463918", "0.5459142", "0.5455926", "0.5455793", "0.5455557", "0.5450667", "0.5449853", "0.5443339", "0.5442542", "0.54419667", "0.5438005", "0.54309416", "0.5430884", "0.5427013", "0.54262096", "0.54206777", "0.54203296", "0.5419175", "0.5416213", "0.54118", "0.5409519", "0.5405296", "0.5405054", "0.54047215", "0.5401126", "0.5401022", "0.5400731", "0.5400391", "0.53994113", "0.5395636", "0.53917307", "0.5391007", "0.53842515" ]
0.0
-1
Track the position of Dr. Bunny in the city grid in terms of a Cartesian grid
function Position() { this.x = 0; this.y = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "findNeighbors(grid) {\r\n // console.log(`current cell position X:${this.positionX}, Y:${this.positionY}`);\r\n\r\n // items.neighbors = \r\n\r\n //left item position\r\n if (this.positionX - 1 > -1) {\r\n // console.log(`Left neighbor`);\r\n this.neighbors.push(grid.items[this.positionY][this.positionX - 1]);\r\n }\r\n //right item position\r\n if (this.positionX + 1 <= grid.width - 1) {\r\n // console.log(`Right neighbor`);\r\n this.neighbors.push(grid.items[this.positionY][this.positionX + 1]);\r\n }\r\n\r\n //top left item position\r\n if (this.positionX - 1 > -1 && this.positionY - 1 > -1) {\r\n // console.log('Top Left')\r\n this.neighbors.push(grid.items[this.positionY - 1][this.positionX - 1]);\r\n }\r\n //top right item position\r\n if (this.positionX + 1 <= grid.width - 1 && this.positionY - 1 > -1) {\r\n // console.log('Top Right')\r\n this.neighbors.push(grid.items[this.positionY - 1][this.positionX + 1]);\r\n }\r\n //top item position\r\n if (this.positionY - 1 > -1) {\r\n // console.log(`Top neighbor`);\r\n this.neighbors.push(grid.items[this.positionY - 1][this.positionX]);\r\n }\r\n\r\n //bottom left item position\r\n if (this.positionX - 1 > -1 && this.positionY + 1 <= grid.height - 1) {\r\n // console.log('Bottom Left');\r\n this.neighbors.push(grid.items[this.positionY + 1][this.positionX - 1]);\r\n }\r\n\r\n //bottom right item position\r\n if (this.positionX + 1 <= grid.width - 1 && this.positionY + 1 <= grid.height - 1) {\r\n // console.log('Bottom Right')\r\n this.neighbors.push(grid.items[this.positionY + 1][this.positionX + 1]);\r\n }\r\n //bottom item position\r\n if (this.positionY + 1 <= grid.height - 1) {\r\n // console.log(`Bottom neighbor`);\r\n this.neighbors.push(grid.items[this.positionY + 1][this.positionX]);\r\n }\r\n }", "function Spot(i, j) {\n // Location\n this.i = i;\n this.j = j;\n\n // f, g, and h values for A*\n this.f = 0;\n this.g = 0;\n this.h = 0;\n\n // Neighbors\n this.neighbors = [];\n\n // Where did I come from?\n this.previous = undefined;\n\n // Am I a wall?\n this.wall = false;\n if (random(1) < 0.4) {\n this.wall = true;\n }\n\n // Display me\n this.show = function(col) {\n if (this.wall) {\n fill(0);\n noStroke();\n ellipse(this.i * w + w / 2, this.j * h + h / 2, w / 2, h / 2);\n } else if (col) {\n fill(col);\n rect(this.i * w, this.j * h, w, h);\n }\n };\n\n // Figure out who my neighbors are\n this.addNeighbors = function(grid) {\n var i = this.i;\n var j = this.j;\n if (i < cols - 1) {\n this.neighbors.push(grid[i + 1][j]);\n }\n if (i > 0) {\n this.neighbors.push(grid[i - 1][j]);\n }\n if (j < rows - 1) {\n this.neighbors.push(grid[i][j + 1]);\n }\n if (j > 0) {\n this.neighbors.push(grid[i][j - 1]);\n }\n if (i > 0 && j > 0) {\n this.neighbors.push(grid[i - 1][j - 1]);\n }\n if (i < cols - 1 && j > 0) {\n this.neighbors.push(grid[i + 1][j - 1]);\n }\n if (i > 0 && j < rows - 1) {\n this.neighbors.push(grid[i - 1][j + 1]);\n }\n if (i < cols - 1 && j < rows - 1) {\n this.neighbors.push(grid[i + 1][j + 1]);\n }\n };\n}", "function dronePosition (grid) {\n var drone = '';\n for (var i = 0; i < grid.length; i++) {\n for (var j = 0; j < grid[i].length; j++) {\n if (grid[i][j] === '*') {\n drone = i + ', ' + j;\n }\n }\n }\n if (drone === '') {\n return 'No drone';\n }\n return drone;\n}", "UpdateGrid(){\r\n for (let i = 0; i < this.size; i++){\r\n for(let j = 0; j < this.size; j++){\r\n this.countAdjacent(i, j);\r\n }\r\n }\r\n }", "move (grid) {\n if (this.orientation.dir === Orientation.left) {\n this.position.col--;\n } else if (this.orientation.dir === Orientation.right) {\n this.position.col++;\n } else if (this.orientation.dir === Orientation.up) {\n this.position.row--;\n } else if (this.orientation.dir === Orientation.down) {\n this.position.row++;\n }\n\n // updates the grid based on the cell the ant has landed\n let positionHash = (this.position.row * 31) ^ this.position.col;\n if ((this.position.row + this.position.col) % 2 === 0) grid[positionHash] = 'W' \n else grid[positionHash] = 'B';\n }", "function calcCellPosition (i, j) {\n return {\n x: map(i, 0, gridSize - 1, 5 * (-(gridSize - 1) / gridSize), 5 * ((gridSize - 1) / gridSize)),\n y: -map(j, 0, gridSize - 1, 5 * (-(gridSize - 1) / gridSize), 5 * ((gridSize - 1) / gridSize))\n }\n}", "function GridPosition(nx, ny, nz) {\n \"use strict\";\n this.nx = nx;\n this.ny = ny;\n this.nz = nz;\n}", "function gridSpot(i, j) {\r\n // Location\r\n this.i = i;\r\n this.j = j;\r\n\r\n // f, g, and h values for A*\r\n this.f = 0;\r\n this.g = 0;\r\n this.h = 0;\r\n\r\n // Neighbors\r\n this.neighbors = [];\r\n\r\n // Where did I come from?\r\n this.parent = undefined;\r\n this.closed = false; // are we in closed set\r\n\r\n // Figure out who my neighbors are\r\n this.addNeighbors = function () {\r\n var i = this.i;\r\n var j = this.j;\r\n\r\n\r\n if (i < gridsize - 1) this.neighbors.push(aStarGrid[i + 1][j]);\r\n if (i > 0) this.neighbors.push(aStarGrid[i - 1][j]);\r\n if (j < gridsize - 1) this.neighbors.push(aStarGrid[i][j + 1]);\r\n if (j > 0) this.neighbors.push(aStarGrid[i][j - 1]);\r\n\r\n if (diagonal)\r\n // diagonals are also neighbours:\r\n {\r\n if (i > 0 && j > 0) this.neighbors.push(aStarGrid[i - 1][j - 1]);\r\n if (i < gridsize - 1 && j > 0) this.neighbors.push(aStarGrid[i + 1][j - 1]);\r\n if (i > 0 && j < gridsize - 1) this.neighbors.push(aStarGrid[i - 1][j + 1]);\r\n if (i < gridsize - 1 && j < gridsize - 1) this.neighbors.push(aStarGrid[i + 1][j + 1]);\r\n }\r\n };\r\n}", "geoLayout() {\n this.pieces.forEach((row, i) => row.forEach((piece, j) => {\n let x, y;\n if (i <= Math.floor(this.pieces.length / 2)) {\n x = i * -1 / 2 + j * 1;\n\n } else {\n x = -Math.floor(this.pieces.length / 2) / 2 + (i - Math.floor(this.pieces.length / 2)) / 2 + j * 1;\n\n }\n y = i * Math.sqrt(3) / 2;\n\n piece.geoPoint = new Point(x, y);\n }));\n }", "function up(grid){\n for(let i=0; i<grid.length; i++){\n for(let j=0; j<grid[0].length; j++){\n console.log('hi') \n }\n }\n }", "function ConnectedPosition() { }", "Draw() {\r\n for (let row = 0; row < this.rowCount; ++row) {\r\n for (let column = 0; column < this.columnCount; ++column) {\r\n let cell = this.simulationGrid[row][column];\r\n\r\n if (cell === this.cellState.alive) {\r\n let coordinate = new Vector2D();\r\n coordinate.x = column * this.cellSize.x;\r\n coordinate.y = row * this.cellSize.y;\r\n\r\n DrawRectangle(coordinate, this.cellSize, \"#ffffff\", this.context);\r\n }\r\n }\r\n }\r\n }", "function _calculateGrid() {\n\tvar i = $game.VIEWPORT_WIDTH;\n\twhile(--i >= 0) {\n\t\tvar j = $game.VIEWPORT_HEIGHT;\n\t\twhile(--j >= 0) {\n\t\t\tvar dist = _distFromCharger({x:i,y:j});\n\t\t\t_grid[i][j].distance = dist;\n\t\t\t_grid[i][j].charger = -1;\n\t\t}\n\t}\n}", "cohesion(boids) {\r\n let neighbordist = 50;\r\n let sum = createVector(0, 0); // Start with empty vector to accumulate all locations\r\n let count = 0;\r\n for (let i = 0; i < boids.length; i++) {\r\n let d = p5.Vector.dist(this.position, boids[i].position);\r\n if ((d > 0) && (d < neighbordist)) {\r\n sum.add(boids[i].position); // Add location\r\n count++;\r\n }\r\n }\r\n if (count > 0) {\r\n sum.div(count);\r\n return this.seek(sum); // Steer towards the location\r\n } else {\r\n return createVector(0, 0);\r\n }\r\n }", "position(obj, coord) {\n let x = coord[0];\n let y = coord[1];\n this.grid[x][y] = obj;\n }", "function equilatGrid(L,R,dx,dy){\n let yVals = [];\n let ytip = 70;\n let xtip = 300;\n let yChange = dy/10;\n let xChange = 2*dx/10\n for(let i = 0; i < 9; i++){\n yVals.push((ytip+dy)-yChange*(i+1));\n }\n push();\n let x1, x2, y1, y2;\n // Carrier grid\n stroke(255,100,0,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-L[1])/L[0];\n y2 = ytip + dy;\n x2 = (xtip-dx) + xChange*(i+1);\n line(x1,y1,x2,y2);\n }\n \n // Solvent grid\n stroke(128,0,128,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-R[1])/R[0];\n y2 = ytip + dy;\n x2 = (xtip+dx) - xChange*(i+1);\n line(x1,y1,x2,y2);\n }\n // Solute grid\n stroke(0,0,255,80);\n for(let i = 0; i < yVals.length; i++){\n y1 = yVals[i];\n x1 = (y1-L[1])/L[0];\n y2 = y1;\n x2 = (y2-R[1])/R[0];\n line(x1,y1,x2,y2);\n }\n pop();\n}", "cohesion(boids) {\n let neighbordist = 50;\n let sum = createVector(0, 0); // Start with empty vector to accumulate all locations\n let count = 0;\n for (let i = 0; i < boids.length; i++) {\n let d = p5.Vector.dist(this.position, boids[i].position);\n if ((d > 0) && (d < neighbordist)) {\n sum.add(boids[i].position); // Add location\n count++;\n }\n }\n if (count > 0) {\n sum.div(count);\n return this.seek(sum); // Steer towards the location\n } else {\n return createVector(0, 0);\n }\n }", "function PopulateMapTunnels() {\n\tvar roomPositions = [];\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the start position\n\t\tif(gridArr[i].room == \"ST\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the central postion\n\t\tif(gridArr[i].room == \"CN\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the north west postion\n\t\tif(gridArr[i].room == \"NW\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the north east position\n\t\tif(gridArr[i].room == \"NE\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the south west postion\n\t\tif(gridArr[i].room == \"SW\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tfor(var i = 0; i < gridArr.length; i++) { // find and store the south east position\n\t\tif(gridArr[i].room == \"SE\"){\n\t\t\troomPositions.push(i);\n\t\t\tbreak;\n\t\t}\n\t}\n\tswitch(Dice(3)) { // randomly pick the shape \n\t\tcase 1: // S pattern\n\t\t\ttunnel = BestPathXY(roomPositions[0],roomPositions[3]); // ST to NE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[3],roomPositions[2]); // NE to NW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[2],roomPositions[1]); // NW to CN\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[5]); // CN to SE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[5],roomPositions[4]); // SE to SW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase 2: // X pattern\n\t\t\ttunnel = BestPathXY(roomPositions[0],roomPositions[1]); // ST to CN\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[2]); // CN to NW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[3]); // CN to NE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[4]); // CN to SW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[1],roomPositions[5]); // CN to SE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault: // spiral pattern\n\t\t\ttunnel = BestPathXY(roomPositions[0],roomPositions[3]); // ST to NE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[3],roomPositions[5]); // NE to SE\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[5],roomPositions[4]); // SE to SW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[4],roomPositions[2]); // SW to NW\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttunnel = BestPathXY(roomPositions[2],roomPositions[1]); // NW to CN\n\t\t\tfor(i = 0; i < tunnel.length; i++) {\n\t\t\t\tgridArr[tunnel[i]].open = 1;\n\t\t\t\tif(gridArr[tunnel[i]].room == \"\") {\n\t\t\t\t\tgridArr[tunnel[i]].room = \"T\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t}\n}", "function setup() {\n createCanvas(windowWidth, windowHeight);\n rectMode(CENTER);\n angleMode(DEGREES);\n \n for (let i = 0; i < windowWidth; i += W){\n gridLoc.push([]);\n for (let j = 0; j < windowHeight; j += W){\n // gridLoc[i].push(j);\n grid.push(new Cells(i,j,W));\n } \n }\n}", "function occupied(x,y) { return grid[x+\",\"+y]; }", "at(x, y) {\n return this.grid[y][x];\n }", "function SquareGrid(gridLines) {\n var _vertexDistance;\n var _ordered;\n var _edges;\n var _cavities;\n var _matrix;\n var _gridLines;\n\n _gridLines = gridLines;\n setupGrid();\n findEdges();\n findCavities();\n \n function setupGrid() {\n var ordered = [];\n _gridLines.forEach(function (line, i) {\n line.split('').forEach(function (char) {\n ordered.push(parseInt(char));\n });\n });\n _vertexDistance = _gridLines[0].length;\n _ordered = ordered;\n\n var matrix = [];\n for (var x=0; x<_vertexDistance; x++) {\n var line = [];\n for (var y=0; y<_vertexDistance; y++) {\n line.push(_ordered[x * _vertexDistance + y]);\n }\n matrix.push(line);\n }\n _matrix = matrix;\n }\n\n function printGrid() {\n var strGrid = [];\n for (var i=0; i<_vertexDistance; i++) {\n var line = '';\n for (var j=0; j<_vertexDistance; j++) {\n var n = i * _vertexDistance + j;\n if (!isEdge(n) && isCavity(i, j)) {\n line += 'X';\n } else {\n line += _ordered[n];\n }\n }\n strGrid.push(line);\n }\n console.log(strGrid.join('\\n'));\n }\n\n function findEdges() {\n var edges = [];\n _ordered.forEach(function (num, n) {\n if (n < _vertexDistance) edges.push(n); // top\n if (n / _vertexDistance >= (_vertexDistance - 1)) edges.push(n); // bottom\n if (!(n % _vertexDistance)) edges.push(n - 1, n); // sides\n });\n _edges = edges;\n }\n\n function findCavities() {\n var cavities = [];\n for (var i=0; i<_vertexDistance; i++) {\n for (var j=0; j<_vertexDistance; j++) {\n var n = i * _vertexDistance + j;\n if (!isEdge(n)) {\n if (isCavity(i, j)) cavities.push(n);\n }\n }\n }\n _cavities = cavities;\n }\n\n function isCavity(i, j) {\n var surrounds = [];\n surrounds.push(\n _matrix[i][j-1],\n _matrix[i][j+1],\n _matrix[i-1][j],\n _matrix[i+1][j]\n );\n\n var valueAtN = _matrix[i][j];\n return Math.max.apply(0xDEADBEEF, surrounds) < valueAtN;\n }\n\n function isEdge(n) {\n return (_edges.indexOf(n) !== -1);\n }\n\n return {\n printGrid: printGrid\n };\n}", "function bindGrid(id){\n id++;\n \n for(var i = 0; i < row; i++){\n for(var j = 0; j < col; j++){\n if(state==0){\n // set boats to the grid when it's clicked.\n document.getElementById(`p${id}-${i}-${j}`).addEventListener(\"click\", markCoordinates); \n }else{\n // fire the location when it's clicked.\n document.getElementById(`p${id}-${i}-${j}`).addEventListener(\"click\", fireTo); \n }\n }\n }\n}", "constructor( i, j ){\n this.i = i;\n this.j = j;\n //where is this grid cell on the canvas\n this.x = i*(gridCellSize+outlineSize) + gridCellSize/2;\n this.y = j*(gridCellSize+outlineSize) + gridCellSize/2;\n //used for pathing and also drawing\n this.walkable = true;\n this.image = new Image();\n this.image.width = gridCellSize;\n this.image.height = gridCellSize;\n this.image.src = walkSrc;\n //if a player/ai is in the cell, this will be them, otherwise null\n this.occupiedBy = null;\n }", "function Spot(i, j) {\n\tthis.i = i;\n\tthis.j = j;\n\tthis.f = 0;\n\tthis.g = 0;\n\tthis.h = 0;\n\tthis.neighbors = [];\n\tthis.previous = undefined;\n\tthis.wall = false;\n\n\t// Randomly make certain spots walls\n\tif (random(1) < 0.3) {\n\t\tthis.wall = true;\n\t}\n\n\tthis.show = function(cols) {\n\t\tif (this.wall) {\n\t\t\tfill(0);\n\t\t\tnoStroke();\n\t\t\tellipse(this.i * w + w / 2, this.j * h + h / 2, w / 2, h / 2);\n\t\t}\n\t}\n\n\tthis.addNeighbors = function(grid) {\n\t\tvar i = this.i;\n\t\tvar j = this.j;\n\n\t\tif (i < cols - 1) {\n\t\t\tthis.neighbors.push(grid[i + 1][j]);\n\t\t}\n\t\tif (i > 0) {\n\t\t\tthis.neighbors.push(grid[i - 1][j]);\n\t\t}\n\t\tif (j < rows - 1) {\n\t\t\tthis.neighbors.push(grid[i][j + 1]);\n\t\t}\n\t\tif (j > 0) {\n\t\t\tthis.neighbors.push(grid[i][j - 1]);\n\t\t}\n\t\tif (i > 0 && j > 0) {\n\t\t\tthis.neighbors.push(grid[i - 1][j - 1]);\n\t\t}\n\t\tif (i < cols - 1 && j > 0) {\n\t\t\tthis.neighbors.push(grid[i + 1][j - 1]);\n\t\t}\n\t\tif (i > 0 && j < rows - 1) {\n\t\t\tthis.neighbors.push(grid[i - 1][j + 1]);\n\t\t}\n\t\tif (i < cols - 1 && j < rows - 1) {\n\t\t\tthis.neighbors.push(grid[i + 1][j + 1]);\n\t\t}\n\t}\n}", "function setupGridSpots() {\r\n /*Direction spots*/\r\n right = [32, 24, 17];\r\n up = [39, 30];\r\n left = [7, 14];\r\n down = [0, 9];\r\n \r\n /*End spot*/\r\n end = [21];\r\n \r\n /*Card spots*/\r\n card = [2, 6, 22, 23, 28, 34, 38];\r\n \r\n /*Trap Spots*/\r\n trap = [1, 3, 8, 10, 13, 15, 26, 27, 36];\r\n \r\n /*Fill grid*/\r\n fillGrid(\"right\", right);\r\n fillGrid(\"up\", up);\r\n fillGrid(\"left\", left);\r\n fillGrid(\"down\", down);\r\n \r\n fillGrid(\"end\", end);\r\n \r\n fillGrid(\"card\", card);\r\n \r\n fillGrid(\"trap\", trap);\r\n}", "function getmolegridloc(x, y, size, grids, spacing){\n var numy = grids[0];\n var numx = grids[1];\n var w = size[1], h = size[0];\n var loc = new Array(numy); // one row\n for(var i = 0; i < numy; i++){\n loc[i] = new Array(numx);\n for(var j = 0; j < numx; j++){\n loc[i][j] = new Array(2);\n loc[i][j][0] = y + i*spacing + i*h;\n loc[i][j][1] = x + j*spacing + j*w;\n }\n }\n return loc;\n}", "updateNeighbors(currentCells) {\n if (inGrid(currentCells, this.y - 1, this.x - 1)) {\n if (this.alive) {\n currentCells[this.y - 1][this.x - 1].numNeighbors++;\n } else {\n currentCells[this.y - 1][this.x - 1].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y - 1, this.x)) {\n if (this.alive) {\n currentCells[this.y - 1][this.x].numNeighbors++;\n } else {\n currentCells[this.y - 1][this.x].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y - 1, this.x + 1)) {\n if (this.alive) {\n currentCells[this.y - 1][this.x + 1].numNeighbors++;\n } else {\n currentCells[this.y - 1][this.x + 1].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y, this.x - 1)) {\n if (this.alive) {\n currentCells[this.y][this.x - 1].numNeighbors++;\n } else {\n currentCells[this.y][this.x - 1].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y, this.x + 1)) {\n if (this.alive) {\n currentCells[this.y][this.x + 1].numNeighbors++;\n } else {\n currentCells[this.y][this.x + 1].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y + 1, this.x - 1)) {\n if (this.alive) {\n currentCells[this.y + 1][this.x - 1].numNeighbors++;\n } else {\n currentCells[this.y + 1][this.x - 1].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y + 1, this.x)) {\n if (this.alive) {\n currentCells[this.y + 1][this.x].numNeighbors++;\n } else {\n currentCells[this.y + 1][this.x].numNeighbors--;\n }\n }\n if (inGrid(currentCells, this.y + 1, this.x + 1)) {\n if (this.alive) {\n currentCells[this.y + 1][this.x + 1].numNeighbors++;\n } else {\n currentCells[this.y + 1][this.x + 1].numNeighbors--;\n }\n }\n }", "generateNeighbours(grid) {\r\n //Right neighbour\r\n if (this.x < cols - 1) {\r\n this.neighbours.push(grid[this.x + 1][this.y]);\r\n }\r\n //Left neighbour\r\n if (this.x > 0) {\r\n this.neighbours.push(grid[this.x - 1][this.y]);\r\n }\r\n //Bottom neighbour\r\n if (this.y < rows - 1) {\r\n this.neighbours.push(grid[this.x][this.y + 1]);\r\n }\r\n //Top neighbour\r\n if (this.y > 0) {\r\n this.neighbours.push(grid[this.x][this.y - 1]);\r\n }\r\n }", "function generatePositions() {\n rows = [];\n columns = [];\n if (gridOption.enableRow) {\n //use coordinate.y to generate rows\n if (coordinate.y && coordinate.y.model.rotate == 90) {\n coordinate.y.forEach(function(i,length){\n rows.push(coordinate.y.model.beginY-length)\n });\n gridOption._x = coordinate.x.model.beginX;\n } else if (coordinate.x && coordinate.x.model.rotate == 90) {\n coordinate.x.forEach(function (i, length) {\n rows.push(coordinate.x.model.beginY - length)\n });\n\n gridOption._x = coordinate.y.model.beginX;\n }\n gridOption.width = coordinate.size().width || 0;\n gridOption.rows = rows;\n }\n if (gridOption.enableColumn) {\n if (coordinate.y && coordinate.y.model.rotate == 0) {\n coordinate.y.forEach(function(i,length){\n columns.push(coordinate.y.model.beginX+length)\n });\n gridOption._y = coordinate.x.model.beginY;\n } else if (coordinate.x && coordinate.x.model.rotate == 0) {\n coordinate.x.forEach(function (i, length) {\n columns.push(coordinate.x.model.beginX + length)\n });\n gridOption._y = coordinate.y.model.beginY;\n }\n gridOption.height = coordinate.size().height || 0;\n gridOption.columns = columns;\n }\n\n }", "function gridLocationFromCoord(x, y) {\n var row = Math.floor((y / canvas.height) * numberOfRows);\n var col = Math.floor((x / canvas.width) * numberOfCols);\n \n return loc(row, col);\n }", "build() {\r\n for (let y = this.y; y < height; y += height / 20) {\r\n for (let x = this.x; x < 400; x += 400 / 10) {\r\n let boxUsed = false;\r\n let col = 255;\r\n this.gameMap.push({\r\n x,\r\n y,\r\n boxUsed,\r\n col\r\n });\r\n // Visualize the grid\r\n rect(x, y, 40, 40);\r\n }\r\n }\r\n }", "function initialCoords()\r\n{\r\n\t/*for(var i = 0; i !== 1;i++)\r\n\t{\r\n\t\tencounteredCoords[playerLocation].push(duplicatePlayerLocation(playerLocation), levelExitLocation);\r\n\t}*/\r\n}", "function updateGrid() {\n let update = makeGrid(cols, rows);\n for (let i = 0; i < cols; i++) {\n for (let j = 0; j < rows; j++) {\n let neighbors = countLiveNeighbors(grid, i, j);\n let currentState = grid[i][j];\n if (currentState === 0 && neighbors === 3) {\n update[i][j] = 1;\n } else if (currentState === 1 && neighbors === 2 || currentState === 1 && neighbors === 3) {\n update[i][j] = 1;\n } else if (currentState === 1 && neighbors < 2 || currentState === 1 && neighbors > 3) {\n update[i][j] = 0;\n } else {\n update[i][j] = currentState;\n }\n }\n }\n grid = update;\n}", "function grid(){\r\nfor(y = 0; y < maze.length; y++){\r\n \r\n for(x = 0; x < maze[y].length; x++){\r\n \r\n if(maze[y][x] == 0){\r\n ctx.fillStyle = \"#315625\";\r\n ctx.fillRect(x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 2){\r\n ctx.drawImage(imghole, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 1){\r\n ctx.drawImage(imgbush, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 3){\r\n ctx.drawImage(imgmushroom, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 4){\r\n ctx.drawImage(imgcheshire, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == 5){\r\n ctx.drawImage(imgcard, x*tSize,y*tSize,tSize,tSize);\r\n}\r\n if(maze[y][x] == player){\r\n ctx.drawImage(imgalice, x*tSize,y*tSize,tSize,tSize);\r\n playerPosition = {y:y,x:x};\r\n console.log(playerPosition.y + \" \" + playerPosition.x)\r\n }\r\n }\r\n }\r\n}", "populateBoard() {\n // add a bubble at every row, col\n for (let row = 0; row < this.rows; row++) {\n for (let col = 0; col < this.cols; col++) {\n let pos = this.getBubbleLocAt(row, col);\n this.pieces[row][col] = this.drawBubbleAt(pos.x, pos.y, row, col);\n }\n }\n this.pieces.forEach(row => {\n row.forEach(bubble => {\n bubble.getNeighbors();\n });\n });\n }", "function spawnLocation() {\n // Breaking the entire canvas into a grid of tiles.\n let rows = width / tileSize;\n let cols = (height - 40) / tileSize;\n let xPos, yPos;\n let overlap = false;\n // To prevent an overlap of the food/barrier and the snake's body.\n do {\n xPos = Math.floor(Math.random() * rows) * tileSize;\n yPos = Math.floor(Math.random() * cols) * tileSize;\n overlap = elementsOverlap({ x: xPos, y: yPos });\n } while (overlap);\n return { x: xPos, y: yPos };\n}", "function onUpdatePosition() {\n gridDotUpper.position = position;\n gridDot.position = position;\n gridDotMiddle.position = position;\n\n if (guitarString) {\n guitarString.updateDotPosition(self);\n }\n }", "function setUpComputerBoard(computer){\n let row, column\n for(let i = 0; i < AMOUNT_SHIPS; i++){\n //Checks to prevent same coordinate from being chosen\n do{\n row = getRandomGridValue()\n column = getRandomGridValue()\n } while(hasShip(computer.grid, row, column))\n computer.grid[row][column] = 1\n }\n}", "function gridCoordinates(objectCount, cellSize) {\n var gridSide = Math.sqrt(objectCount);\n var coords = [];\n for (var i = 0; i < objectCount; i++) {\n coords.push({\n x:i%gridSide * cellSize,\n y:Math.floor(i/gridSide) * cellSize\n });\n }\n return coords;\n}", "function draw_grid(bol) {\n\t\t\tfor (var x = 0; x < parameters.size[0]; x++) {\n\t\t\t\tif (bol === true) {\n\t\t\t\t\tpiece_position[x] = [];\n\t\t\t\t}\n\t\t\t\tfor (var y = 0; y < parameters.size[1]; y++) {\n\t\t\t\t\tcolor = \"#3639AF\";\n\t\t\t\t\tsize = [];\n\t\t\t\t\tsize[0] = Math.floor(target.width / parameters.size[0]) - 1;\n\t\t\t\t\tsize[1] = Math.floor(target.height / parameters.size[1]) - 1;\n\t\t\t\t\tvar position_x = x * target.width / parameters.size[0];\n\t\t\t\t\tvar position_y = y * target.height / parameters.size[1];\n\t\t\t\t\tdraw_square(color, position_x, position_y, size);\n\t\t\t\t\tif (bol === true) {\n\t\t\t\t\t\tpiece_position[x].push({\n\t\t\t\t\t\t\taxe_x: position_x + (size[0] / 2),\n\t\t\t\t\t\t\taxe_y: position_y + (size[1] / 2),\n\t\t\t\t\t\t\tx: x,\n\t\t\t\t\t\t\ty: y,\n\t\t\t\t\t\t\tcolor: \"white\"\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tdraw_circle(piece_position[x][y].color, position_x + (size[0] / 2), position_y + (size[1] / 2));\n\t\t\t\t}\n\t\t\t}\n\t\t}", "trackToCoords(_c) {\r\n\t\t\t\tthis.x = _c.x - (SCREEN_WIDTH*0.5)|0;\r\n\t\t\t\tthis.y = _c.y - (SCREEN_HEIGHT*0.5)|0;\r\n\t\t\t}", "function cell() {\n //Pontos com coordenadas normalizadas (0 a 1)\n const pts = []\n pts.push(new Vector2(.25, .25));\n pts.push(new Vector2(.75, .25));\n pts.push(new Vector2(.75, .75));\n pts.push(new Vector2(.25, .75));\n pts.push(new Vector2(.5, .5));\n\n for (let i = 0; i < X; i++) {\n for(let j = 0; j < Y; j++) {\n\n var min_dist = Infinity;\n\n pts.forEach(e => {\n min_dist = Math.min(e.distance(new Vector2(i/X, j/Y)), min_dist);\n \n });\n canvasBefore[idx(i, j)].add(min_dist);\n }\n }\n}", "function gridFixed(position){\n return new Vector3(Math.round(position.x/5)*5,\n Math.round(position.y/5)*5,\n 0);\n}", "draw () {\n\n // loop over the x coordinates\n for (let x = 0; x < this.config.get(colsKey); ++x) {\n\n // loop over the y coordinates\n for (let y = 0; y < this.config.get(rowsKey); ++y) {\n\n // get the current index\n let index = (x + y * this.config.get(colsKey));\n\n // get the current state\n let state = this.grid.get(index);\n\n // do we have a living being?\n if (state === 1) {\n\n // fill black\n fill(0);\n\n // get the resolution\n let resolution = this.config.get('resolution');\n\n // prepare the x coordinate\n let xPos = (x * resolution);\n \n // prepare the y coordinate\n let yPos = (y * resolution);\n\n // draw a rect\n rect(xPos, yPos, resolution, resolution);\n }\n }\n }\n }", "function calculateCoords() {\n\t\tvar localNE = this.ne;\n\t\tvar remoteNE = this.connection.originPort == this ? this.connection.destinationPort.ne : this.connection.originPort.ne;\n\t\tif (remoteNE.x == localNE.x) {\n\t\t\tthis.side = remoteNE.y > localNE.y ? BOTTOM : TOP;\n\t\t} else {\n\t\t\tif (this.connection.middlePoint == LEFT_CORNER) {\n\t\t\t\tif (localNE.x > remoteNE.x) {\n\t\t\t\t\tthis.side = LEFT;\n\t\t\t\t} else {\n\t\t\t\t\tthis.side = localNE.y > remoteNE.y ? TOP : BOTTOM;\n\t\t\t\t}\n\t\t\t} else if (this.connection.middlePoint == RIGHT_CORNER) {\n\t\t\t\tif (localNE.x > remoteNE.x) {\n\t\t\t\t\tthis.side = localNE.y > remoteNE.y ? TOP : BOTTOM;\n\t\t\t\t} else {\n\t\t\t\t\tthis.side = RIGHT;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar slope = (remoteNE.y - localNE.y) / (remoteNE.x - localNE.x);\n\t\t\t\tif (slope < 1 && slope > -1) {\n\t\t\t\t\tthis.side = localNE.x > remoteNE.x ? LEFT : RIGHT;\n\t\t\t\t} else {\n\t\t\t\t\tthis.side = localNE.y > remoteNE.y ? TOP : BOTTOM;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function grid_from_offset(pos){\n\t \tvar location = {\n\t \t\tcol: Math.floor(pos.left/tileWidth) + 1,\n\t \t\trow: Math.floor(pos.top/tileHeight) + 1\n\t \t}\n\t \treturn location;\n\t }", "function torus_up()\t{let temp = grid.shift(); grid.push(temp);}", "function allCoordTracking (frame) {\n frame.hands.forEach(function(hand, index) {\n palmPosition(hand, index);\n if (isLocked) {\n closedHandGesture(hand);\n }\n });\n }", "getUnassignedLocation(grid) {\n for (let row = 0; row < HEIGHT; row++) {\n for (let col = 0; col < WIDTH; col++) {\n if (grid[row][col] === 0) {\n return [row, col];\n }\n }\n }\n return [10, 10];\n }", "function gridCoords(q, r) {\r\n\tvar coord = document.getElementById(getElementByAxial(q, r)).getBoundingClientRect();\r\n\tthis.x = coord.x;\r\n\tthis.y = coord.y;\r\n\tsetGridCoords = function(x ,y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}\r\n\r\n}", "function Grid(pins, x_max, y_max) {\n //this.Density = density;\n this.x_max = x_max;\n this.y_max = y_max;\n var H_Lat = -91;\n var L_Lat = 91;\n var H_Long = -181;\n var L_Long = 181;\n\n pins.forEach(function(pin){\n if (pin.Latitude > H_Lat && pin.Latitude !== null) {\n H_Lat = pin.Latitude;\n console.log(\"New H_Lat: \" + pin.Latitude);\n }\n\n if (pin.Latitude < L_Lat && pin.Latitude !== null){\n L_Lat = pin.Latitude;\n console.log(\"New L_Lat: \" + pin.Latitude);\n }\n\n if (pin.Longitude > H_Long && pin.Longitude !== null){\n H_Long = pin.Longitude;\n console.log(\"New H_Long: \" + pin.Longitude);\n }\n\n if (pin.Longitude < L_Long && pin.Longitude !== null) {\n L_Long = pin.Longitude;\n console.log(\"New L_Long: \" + pin.Longitude);\n }\n\n });\n\n var lat_extend = (H_Lat - L_Lat) * .025;\n var long_extend = (H_Long - L_Long) * .025;\n\n H_Lat = H_Lat + lat_extend;\n L_Lat = L_Lat - lat_extend;\n H_Long = H_Long + long_extend;\n L_Long = L_Long - long_extend;\n\n //console.log(\"HLat: \" + String(H_Lat) + \" \\ LLat: \" + String(L_Lat));\n //console.log(\"HLong: \" + String(H_Long) + \" \\ LLong: \" + String(L_Long));\n\n var chunkCollection = [];\n\n for (var a = 0; a <= this.y_max; a++) {\n chunkCollection.push(new Array(this.x_max));\n }\n\n// solve for distance\n\n var recHeight = (H_Lat - L_Lat) / y_max;\n var recWidth = (H_Long - L_Long) / x_max;\n\n //console.log(\"rec width: \" + recWidth);\n //console.log(\"rec height: \" + recHeight);\n\n// the distance from point 10 and point 4 is\n// Density is how many rectangles will be on screen.\n\n\n for (var y = 0; y < y_max; y++) {\n for (var x = 0; x < x_max; x++) {\n // Creates the boundary, lowest point with lowest corner\n // to create a side of the cube.\n // merge the google maps.\n\n chunkCollection[x][y] = new Chunk(x, y,\n recWidth, recHeight, L_Lat, L_Long);\n }\n }\n\n pins.forEach(function (p) {\n\n var lat_index = (p.Latitude - L_Lat) / recHeight;\n var long_index = (p.Longitude - L_Long) / recWidth;\n\n lat_index = parseInt(lat_index);\n long_index = parseInt(long_index);\n\n try {\n chunkCollection[long_index][lat_index].addPin(p);\n } catch (e) {\n console.log(\"valid: \" + p.isValid());\n\n console.log(\"P| lat:\" + p.Latitude + \" long:\" + p.Longitude);\n console.log(\"P| latI:\" + lat_index + \" longI:\" + long_index);\n console.error(\"Data is not possible! Something fucked up\");\n }\n\n });\n\n this.getChunk = function (x, y) {\n try {\n return chunkCollection[y][x];\n } catch (e) {\n console.warn(\"Out of bounds!\");\n }\n };\n\n this.getChunks = function() {\n var chunks = [];\n\n for (var y = 0; y < this.y_max; y++) {\n for (var x = 0; x < this.x_max; x++) {\n if (!chunkCollection[x][y].isEmpty()){\n chunks.push(chunkCollection[x][y]);\n }\n }\n }\n\n return chunks;\n };\n\n this.draw = function(map){\n chunkCollection.forEach(function(col){\n col.forEach(function(chunk){\n chunk.draw(map);\n });\n });\n };\n\n this.getFarms = function () {\n var farms = [];\n for (var y = 0; y < this.y_max; y++) {\n for (var x = 0; x < this.x_max; x++) {\n var chunk = chunkCollection[x][y];\n if (chunk !== null && !chunk.isEmpty()){\n var chunks = chunk.getSurrounding(this, null);\n var pins = [];\n for (var i = 0; i < chunks.length; i++){\n for (var ii = 0; ii < chunks[i].pins.length; ii++){\n pins.push(chunks[i].pins[ii]);\n }\n }\n var farm = new Farm(pins, false);\n chunks.forEach(function(chunk){\n chunkCollection[chunk.x][chunk.y] = new Chunk();\n });\n if (!(farm.pins.length < 100))\n farms.push(farm);\n }\n }\n }\n return farms;\n };\n\n this.getEdgeChunks = function (){\n var edgeChunks = [];\n var that = this;\n\n chunkCollection.forEach(function(col){\n col.forEach(function(chunk){\n if (chunk.isEdge(that, this.x_max, this.y_max))\n edgeChunks.push(chunk)\n });\n });\n\n return edgeChunks;\n };\n\n this.getLiveChunks = function (){\n var live = [];\n var chunks = this.getChunks();\n for (var i = 0; i < chunks.getChunks().length; i++){\n if (chunks[i].pinCount > 0)\n live.push(chunks[i]);\n }\n return live;\n };\n\n this.getCenter = function(){\n return {lat: L_Lat + ((H_Lat - L_Lat)/2), lng: L_Long + ((H_Long - L_Long)/2)};\n }\n}", "function initiateBoard(){\n\tblankx=wid-1;\n\tblanky=height-1;\n\tfor(i=0;i<=numTiles;i++) position[i]=i;\n}", "findPaths(){\n gridArray.forEach(function(yValue, yCoord){\n yValue.forEach(function(xValue, xCoord){\n BadBoggle.searchPath([[yCoord, xCoord]], yCoord, xCoord);\n });\n });\n }", "function currentCoord() {\n\treturn game_data.village.coord;\n}", "function treasureIsland(grid) {\n\tlet queue = [];\n\tlet directions = [\n\t\t[-1, 0],\n\t\t[1, 0],\n\t\t[0, 1],\n\t\t[0, -1]\n\t];\n\tlet count = 0;\n\tqueue.push([0, 0]);\n\twhile (queue.length !== 0) {\n\t\tcount++;\n\t\tlet size = queue.length;\n\t\tfor (let i = 0; i < size; i++) {\n\t\t\tlet [startR, startC] = queue.shift();\n\t\t\tfor (let [dr, dc] of directions) {\n\t\t\t\tlet r = startR + dr;\n\t\t\t\tlet c = startC + dc;\n\t\t\t\tif (r >= 0 && r < grid.length && c >= 0 && c < grid[0].length) {\n\t\t\t\t\tif (grid[r][c] === 'X') {\n\t\t\t\t\t\treturn count;\n\t\t\t\t\t}\n\t\t\t\t\tif (grid[r][c] === 'O') {\n\t\t\t\t\t\tgrid[r][c] = 'D'; //make sure not going there again\n\t\t\t\t\t\tqueue.push([r, c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn -1;\n}", "function drawCurrentGrid() {\n\n\n for (var i = 0; i < 20; i++) {\n for (var j = 0; j < 10; j++) {\n if (grid[i][j] > 0) {\n var num = grid[i][j];\n var color = colors[num - 1];\n\n var y = 1 + j * 32;\n var x = 612 - (1 + i * 32);\n\n\n $canvas.drawRect({\n fillStyle: color,\n strokeStyle: color,\n strokeWidth: 4,\n x: y,\n y: x, // 1+i*32, j*32\n fromCenter: false,\n width: 30,\n height: 28\n });\n } else if (placed[i][j] > 0) {\n var num = placed[i][j];\n var color = colors[num - 1];\n\n var y = 1 + j * 32;\n var x = 612 - (1 + i * 32);\n\n $canvas.drawRect({\n fillStyle: color,\n strokeStyle: color,\n strokeWidth: 4,\n x: y,\n y: x, // 1+i*32, j*32\n fromCenter: false,\n width: 30,\n height: 28\n });\n }\n\n }\n }\n\n}", "function step()\n{\n\tvar numAround = new Array(cellYCount)\n\t\n\t//Loop through and build the count array\n\tfor(i = 0; i < cellYCount; i++)\n\t{\n\t\tnumAround[i] = new Array(cellXCount);\n\t\tfor(j = 0; j < cellXCount; j++)\n\t\t{\n\t\t\tnumAround[i][j] = countNeighbors(j, i);\n\t\t\t//console.log(j + \" \" + i + \": \" + numAround[i][j])\n\t\t}\n\t}\n\t\n\t//Use the count array to determine the new states for each cell\n\tfor(i = 0; i < cellYCount; i++)\n\t{\n\t\tfor(j = 0; j < cellXCount; j++)\n\t\t{\n\n\t\t\t//If 3, the cell is alive\n\t\t\tif(numAround[i][j] == 3)\n\t\t\t{\n\t\t\t\t//console.log(j + \" \" + i + \" = \" + numAround[i][j]);\n\t\t\t\tdrawCell(j, i, 1);\n\t\t\t}\n\t\t\t//If four, the cell stays the same\n\t\t\telse if(numAround[i][j] == 4);\n\t\t\t//Otherwise, the cell is dead\n\t\t\telse\n\t\t\t{\n\t\t\t\tdrawCell(j, i, 0);\n\t\t\t}\n\t\t\n\t\t}\n\t}\n}", "function Spot(i, j, type)\n{\n\n // Location\n this.i = i;\n this.j = j;\n\n // f, g, and h values for A*\n this.f = 0;\n this.g = 0;\n this.h = 0;\n\n // Neighbors\n this.neighbors = [];\n\n // Spot Type\n this.type = type;\n\n // Figure out who my neighbors are\n this.addNeighbors = function(grid)\n {\n var i = this.i;\n var j = this.j;\n\n if (i < gridsize - 1) this.neighbors.push(grid[i + 1][j]);\n if (i > 0) this.neighbors.push(grid[i - 1][j]);\n if (j < gridsize - 1) this.neighbors.push(grid[i][j + 1]);\n if (j > 0) this.neighbors.push(grid[i][j - 1]);\n\n if (i > 0 && j > 0) this.neighbors.push(grid[i - 1][j - 1]);\n if (i < gridsize - 1 && j > 0) this.neighbors.push(grid[i + 1][j - 1]);\n if (i > 0 && j < gridsize - 1) this.neighbors.push(grid[i - 1][j + 1]);\n if (i < gridsize - 1 && j < gridsize - 1) this.neighbors.push(grid[i + 1][j + 1]);\n\n };\n\n}", "function getNeighborCoordsTorus(i, j, rows, cols) {\n return [\n // The three cells in the row above.\n [mod(i - 1, rows), mod(j - 1, cols)],\n [mod(i - 1, rows), j],\n [mod(i - 1, rows), mod(j + 1, cols)],\n // The two cells in the same row, to the left and right.\n [i, mod(j - 1, cols)],\n [i, mod(j + 1, cols)],\n // The three cells in the row below.\n [mod(i + 1, rows), mod(j - 1, cols)],\n [mod(i + 1, rows), j],\n [mod(i + 1, rows), mod(j + 1, cols)]\n ];\n}", "function allShips(){\nshipcoordinates=[];\nfor (var i = 0; i < GRID.length; i++){\n for (var j = 0; j < GRID[0].length; j++){\n if (GRID[i][j] == \"v\"){\n shipcoordinates.push(indexToChar(j)+ (i+1));\n }\n \n }\n}\nreturn shipcoordinates;\n}", "function gridMap() {\n return {\n top_left: { _cx_cy_index: 4, drag_index : [ 2, 3, 4 ] },\n bottom_left: { _cx_cy_index : 3, drag_index : [ 1, 4, 3 ] },\n top_right: { _cx_cy_index : 2, drag_index : [ 4, 1, 2 ] },\n bottom_right: { _cx_cy_index : 1, drag_index : [ 3, 2, 1 ] }\n };\n }", "function Spot(row, col) { \n this.row = row;\n this.column = col;\n //If the row and cols equals to the starting point, becomes true. Otherwise false.\n this.start = this.row === start_row && this.column === start_col\n //If the row and cols equals to the end point, becomes true. Otherwise false.\n this.end = this.row === end_row && this.column === end_col\n //Will be used in the heuristic function to calculate the manhattan distance. Playing a role in the algorithm\n this.g = 0;\n this.f = 0;\n this.h = 0;\n //Neighbors will determine the specific spot that the color will have\n this.neighbors = [];\n //\n this.isWall = false;\n if(Math.random(1) < 0.2) { \n this.isWall = true;\n }\n this.previous = undefined;\n this.addNeighbors = function(grid)\n {\n let row = this.row;\n let column = this.column;\n // Conditionals to ensure that grid limitations are set. \n if (row > 0) this.neighbors.push(grid[row-1][column]);\n if (row < rows - 1) this.neighbors.push(grid[row+1][column]);\n if (column > 0) this.neighbors.push(grid[row][column-1]);\n if (column < cols - 1) this.neighbors.push(grid[row][column+1]);\n }\n }", "gridX(){\n\t\tif(this.path !== null && this.path[this.pathIter] !== undefined){\n\t\t\treturn (this.path[this.pathIter].x - this.mapContainer.x) / \n\t\t\t\t\tthis.room.tileSize\n\t\t}\n\t\treturn this.inRoomX\n\t}", "updateGridValues() {\n //for every col...\n for (let i = 0; i < this.colNum; i++) {\n\n //increment offsetSum by randomInc*2.25 each row, this line is responsible for the increased distrotion across the grid\n this.offsetSum += (this.randomInc*2.25);\n\n //Alternative method of having the offsetSum accumulate exponentially\n // this.offsetSum += this.randomInc*i;\n\n //nest another array within coOrds[i]\n this.coOrds[i] = [];\n //and for every row...\n for (let ii = 0; ii < this.rowNum; ii++) {\n //store the X and Y values for this spot in the grid\n this.x = this.canvasPadding + (this.moduleSize / 2) + (i * (this.moduleSize + this.padding));\n this.y = this.canvasPadding + (this.moduleSize / 2) + (ii * (this.moduleSize + this.padding));\n //store the offsetSum as Z. This will be used to offset the module when it it rendered later\n this.z = this.offsetSum;\n //Store X,Y and Z inside a vector in coOrds[i][ii]\n this.coOrds[i][ii] = createVector(this.x, this.y, this.z);\n }\n }\n\n // reset offsetSum after each frame so it does not accumulate\n this.offsetSum *= 0;\n }", "assignNeighbours(){\n\n for (let i = 0; i < this.rows; i++) {\n for (let j = 0; j < this.cols; j++) {\n\n if(this.grid[i][j].isBomb){\n this.grid[i][j].surroundingBombs = -1;\n continue;\n }\n let neighbours = MineSweeper.getNeighbours((i == 0), (i == this.rows-1), (j == 0), (j == this.cols-1));\n\n let counter = 0;\n for(let neighbour of neighbours){\n let dr = neighbour[0];\n let dc = neighbour[1];\n if(this.grid[i+dr][j+dc].isBomb){\n counter++;\n }\n }\n this.grid[i][j].surroundingBombs = counter;\n }\n }\n }", "getLocation(x, y) {\n return [Math.floor(x / CELL.WIDTH), Math.floor(y / CELL.HEIGHT)];\n }", "function computeDiscCoordinates(col, row) {\n let xpos = sizes.initialx + sizes.size / 2 + col * sizes.size;\n let ypos = sizes.initialy + sizes.ysize - sizes.size / 2 - row * sizes.size;\n return { x: xpos, y: ypos };\n}", "createGridPoints() {\n\n\t\tconst gridPoints = this.gridPoints;\n\n\t\tconst s = this.cellSize;\n\t\tconst n = HermiteData.resolution;\n\n\t\tconst base = this.cellPosition;\n\t\tconst offset = new Vector3();\n\t\tconst gridPointGeometry = new SphereBufferGeometry(0.05, 8, 8);\n\t\tconst gridPointMaterial = this.gridPointMaterials[0];\n\n\t\tfor(let z = 0; z <= n; ++z) {\n\n\t\t\toffset.z = z * s / n;\n\n\t\t\tfor(let y = 0; y <= n; ++y) {\n\n\t\t\t\toffset.y = y * s / n;\n\n\t\t\t\tfor(let x = 0; x <= n; ++x) {\n\n\t\t\t\t\toffset.x = x * s / n;\n\n\t\t\t\t\tconst gridPoint = new Mesh(gridPointGeometry, gridPointMaterial);\n\t\t\t\t\tgridPoint.position.copy(base).add(offset);\n\t\t\t\t\tgridPoints.add(gridPoint);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "function updateCells(grid) {\r\n updateLiveNeighbors(grid); // update neighbour\r\n var new_canvas = getCanvas();\r\n for (var i = 0; i < NUM_ROWS; i += 1) {\r\n for (var j = 0; j < NUM_COLS; j += 1) {\r\n\r\n // determine which cells should be drawn on canvas according\r\n // to what is drawn on it at the moment when the function is called\r\n\r\n var num = grid[i][j].liveNeighbors;\r\n var inf = grid[i][j].infectedNeighbors;\r\n var mine = grid[i][j].variation === \"mine\";\r\n var pacman = grid[i][j].variation === \"pacman\" ||\r\n grid[i][j].variation === \"pacmanCore\";\r\n var snake = grid[i][j].variation === \"snakeHead\" ||\r\n grid[i][j].variation === \"snakeTail\";\r\n\r\n //treat a cell that was created by clicking as a regular one \r\n if (grid[i][j].userClick) {\r\n grid[i][j].userClick = false;\r\n } \r\n\r\n //turn hot explosion particles into regular ones\r\n //and regular ones to dead cells\r\n if (grid[i][j].variation === \"explosion\") {\r\n explosion_soundEft = document.getElementById(\"explosion_soundEft\");\r\n explosion_soundEft.play();\r\n grid[i][j].ticker -= 1;\r\n\r\n if (grid[i][j].fillStyle === CELL_EXPL_HOT_COLOR &&\r\n grid[i][j].ticker === 1) {\r\n grid[i][j].fillStyle = CELL_EXPLOSION_COLOR;\r\n grid[i][j].fillStyle = CELL_EXPLOSION_COLOR;\r\n }\r\n\r\n if (grid[i][j].ticker === 0) {\r\n grid[i][j].variation = \"normal\";\r\n grid[i][j].fillStyle = CELL_DEAD_COLOR;\r\n }\r\n }\r\n\r\n // if cell is not of a special kind\r\n // check if cell is alive or dead and determine\r\n // whether it is infected or not\r\n if (!(mine) && !(pacman) && !snake) {\r\n //kill cell if it is over/underpopulated\r\n if (!(grid[i][j].dead) && ((num != 2) && (num != 3))) {\r\n grid[i][j].dead = true;\r\n grid[i][j].fillStyle = CELL_DEAD_COLOR;\r\n grid[i][j].variation = \"normal\";\r\n }\r\n\r\n //make cell alive if there are exactly 3 neighbors\r\n //if it has infected neighbors then it might be infected \r\n //as well with a certain probability\r\n if (grid[i][j].dead && num === 3) {\r\n rand = Math.floor(Math.random() * 191869) % 100;\r\n grid[i][j].dead = false;\r\n if (inf === 0) {\r\n grid[i][j].fillStyle = CELL_ALIVE_COLOR;\r\n }\r\n if (inf === 1) {\r\n if (rand <= 32 + VIRULENCE) {\r\n grid[i][j].variation = \"infected\";\r\n grid[i][j].fillStyle = CELL_INFECTED_COLOR;\r\n }\r\n else {\r\n grid[i][j].fillStyle = CELL_ALIVE_COLOR;\r\n }\r\n }\r\n if (inf === 2) {\r\n if (rand <= 65 + 2*VIRULENCE) {\r\n grid[i][j].variation = \"infected\";\r\n grid[i][j].fillStyle = CELL_INFECTED_COLOR;\r\n }\r\n else {\r\n grid[i][j].fillStyle = CELL_ALIVE_COLOR;\r\n }\r\n }\r\n if (inf === 3) {\r\n if (rand <= Math.min(98, 98 + VIRULENCE)) {\r\n grid[i][j].variation = \"infected\";\r\n grid[i][j].fillStyle = CELL_INFECTED_COLOR;\r\n }\r\n else {\r\n grid[i][j].fillStyle = CELL_ALIVE_COLOR;\r\n }\r\n }\r\n \r\n }\r\n }\r\n\r\n if (mine) {\r\n //mine is started if its ticker is smaller than the original value\r\n var start = grid[i][j].ticker < EXPLOSION_DELAY;\r\n\r\n //mine obeys the same laws as regular cell\r\n if (!(grid[i][j].dead) && ((num != 2) && (num != 3))) {\r\n grid[i][j].dead = true;\r\n }\r\n if (grid[i][j].dead && num === 3) {\r\n grid[i][j].dead = false;\r\n }\r\n\r\n //start the mine if there is a cell grown on it\r\n //decrement the ticker every generation after\r\n if ((start) || (!(grid[i][j].dead))) {\r\n grid[i][j].ticker -= 1;\r\n }\r\n\r\n //change mine's color to create blinking effect\r\n if (start || !grid[i][j].dead) {\r\n if (grid[i][j].ticker % 2 === 1) {\r\n grid[i][j].fillStyle = CELL_MINE1_COLOR;\r\n }\r\n else {\r\n grid[i][j].fillStyle = CELL_MINE2_COLOR;\r\n }\r\n }\r\n\r\n //explode the mine as ticker reaches 0\r\n if (grid[i][j].ticker === 0) {\r\n for (var i2 = 0; i2 < NUM_ROWS; i2 += 1) {\r\n for (var j2 = 0; j2 < NUM_COLS; j2 += 1) {\r\n var distance = Math.sqrt((i2 - i) * (i2 - i) \r\n + (j2 - j) * (j2 - j));\r\n //mine itself and every cell within the explosion range\r\n //but not the other mines is turned into explosion\r\n if (distance <= EXPLOSION_RANGE \r\n && validPosition(i2, j2) \r\n && !(grid[i2][j2].variation === \"mine\" &&\r\n !(i === i2 && j === j2))) {\r\n grid[i2][j2].variation = \"explosion\";\r\n grid[i2][j2].dead = true;\r\n grid[i2][j2].fillStyle = CELL_EXPLOSION_COLOR;\r\n if (grid[i2][j2].uniqID === ID_IN_CONTROL) {\r\n ID_IN_CONTROL = 0;\r\n }\r\n \r\n //program operates by going row by row\r\n //so adjust to the cells that were \r\n //processed previously\r\n if ((i2 > i) || ((i2 === i) && (j2 > j))) {\r\n grid[i2][j2].ticker = 2;\r\n }\r\n else {\r\n grid[i2][j2].ticker = 1;\r\n }\r\n \r\n //create hot particles of explosion\r\n //more hot particles near to the center\r\n rand1 = Math.random();\r\n rand2 = Math.floor(Math.random() \r\n * 191869) % EXPLOSION_RANGE;\r\n if (distance < rand2 && rand1 > 0.5) {\r\n grid[i2][j2].ticker += 1;\r\n grid[i2][j2].fillStyle = CELL_EXPL_HOT_COLOR;\r\n }\r\n\r\n //update canvas\r\n new_canvas.fillStyle = grid[i2][j2].fillStyle;\r\n new_canvas.fillRect(grid[i2][j2].xPosition, \r\n grid[i2][j2].yPosition, CELL_SIZE, CELL_SIZE);\r\n } \r\n\r\n //explosion chain reaction\r\n //activate mines within explosion range\r\n if (distance <= EXPLOSION_RANGE && \r\n grid[i2][j2].variation === \"mine\" &&\r\n grid[i2][j2].ticker === EXPLOSION_DELAY) {\r\n grid[i2][j2].ticker = 2;\r\n //adjust to row-by-row movement of program\r\n if ((i2 > i) || ((i2 === i) && (j2 > j))) {\r\n grid[i2][j2].ticker = 3;\r\n }\r\n grid[i2][j2].fillStyle = CELL_MINE2_COLOR;\r\n staticUpdateCells(grid);\r\n }\r\n }\r\n }\r\n //some cells could die, so update neighbors\r\n updateLiveNeighbors(grid);\r\n }\r\n }\r\n\r\n if (grid[i][j].variation === \"pacmanCore\") {\r\n //pacman switches between open and notopen\r\n //every generations\r\n var isOpen = false;\r\n if (grid[i][j].ticker % 6 <= 2) {\r\n isOpen = true;\r\n }\r\n\r\n //draw pacman, its column depends\r\n //on ticker which is incremented every generation\r\n drawPacman(grid, i, grid[i][j].ticker, isOpen);\r\n grid[i][j].ticker += 1; \r\n //kill pacman when the end is reached\r\n if (grid[i][j].ticker === NUM_COLS + 1) {\r\n grid[i][j].variation = \"normal\";\r\n grid[i][j].ticker = 0;\r\n }\r\n\r\n //pacman core behaves as if it a regular cell\r\n if (!(grid[i][j].dead) && ((num != 2) && (num != 3))) {\r\n grid[i][j].dead = true;\r\n grid[i][j].fillStyle = CELL_DEAD_COLOR;\r\n }\r\n if (grid[i][j].dead && num === 3) {\r\n grid[i][j].dead = false;\r\n grid[i][j].fillStyle = CELL_ALIVE_COLOR;\r\n }\r\n }\r\n\r\n //decrement snake tail's ticker every generation\r\n //it ticker reached 0 fill the cell\r\n if (grid[i][j].variation === \"snakeTail\") {\r\n if (grid[i][j].ticker > 0) {\r\n grid[i][j].ticker -= 1;\r\n }\r\n else {\r\n grid[i][j].dead = true;\r\n grid[i][j].fillStyle = CELL_DEAD_COLOR;\r\n grid[i][j].variation = \"normal\";\r\n grid[i][j].uniqID = 0; \r\n }\r\n }\r\n\r\n if (grid[i][j].variation === \"snakeHead\" &&\r\n grid[i][j].direction < 4) {\r\n var dir = grid[i][j].direction;\r\n //with a certain chance snake might randomly turn\r\n var turnChance = 0.05;\r\n //if snake is close to the edge of canvas the turn\r\n //chance is increase proportionally to its size\r\n if ((dir === 0 && j > 9.0*NUM_COLS/10) ||\r\n (dir === 1 && i < 1.5*NUM_ROWS/10) ||\r\n (dir === 2 && j < 1.0*NUM_COLS/10) ||\r\n (dir === 3 && i > 8.5*NUM_ROWS/10)) {\r\n turnChance = Math.min(0.3, 0.13 + \r\n 1.0 * (grid[i][j].ticker) / 100);\r\n }\r\n if (snakeControlSelect === \"2\"){\r\n if (keyW && (dir === 0 || dir === 2)) {\r\n dir = 1;\r\n grid[i][j].direction = dir;\r\n }\r\n else if (keyA && (dir === 1 || dir === 3)) {\r\n dir = 2;\r\n grid[i][j].direction = dir;\r\n }\r\n else if (keyS && (dir === 2 || dir === 0)) {\r\n dir = 3;\r\n grid[i][j].direction = dir;\r\n }\r\n else if (keyD && (dir === 3 || dir === 1)) {\r\n dir = 0;\r\n grid[i][j].direction = dir;\r\n }\r\n } else if (grid[i][j].uniqID === ID_IN_CONTROL && (snakeControlSelect != \"3\")){\r\n\t\t\t\t\t\tif (keyW && (dir === 0 || dir === 2)) {\r\n\t\t\t\t\t\t\tdir = 1;\r\n\t\t\t\t\t\t\tgrid[i][j].direction = dir;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (keyA && (dir === 1 || dir === 3)) {\r\n\t\t\t\t\t\t\tdir = 2;\r\n\t\t\t\t\t\t\tgrid[i][j].direction = dir;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (keyS && (dir === 2 || dir === 0)) {\r\n\t\t\t\t\t\t\tdir = 3;\r\n\t\t\t\t\t\t\tgrid[i][j].direction = dir;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (keyD && (dir === 3 || dir === 1)) {\r\n\t\t\t\t\t\t\tdir = 0;\r\n\t\t\t\t\t\t\tgrid[i][j].direction = dir;\r\n\t\t\t\t\t\t}\r\n } else if (Math.random() < turnChance) {\r\n var changeDir = Math.floor(Math.random() * 19185) % 2;\r\n changeDir = changeDir * 2 - 1;\r\n dir += changeDir;\r\n if (dir === 4) {\r\n dir = 0;\r\n }\r\n if (dir === -1) {\r\n dir = 3;\r\n }\r\n grid[i][j].direction = dir;\r\n }\r\n //turn this cell into a snake tail\r\n grid[i][j].direction = 0;\r\n grid[i][j].variation = \"snakeTail\";\r\n\r\n //copy all info from this cell into the cell that\r\n //is ahead of it according to its direction\r\n //and turn that cell into a head\r\n if (validPosition(rowDir(i,dir),colDir(j,dir)) && \r\n !(grid[rowDir(i,dir)][colDir(j,dir)].variation \r\n === \"snakeHead\" || \r\n grid[rowDir(i,dir)][colDir(j,dir)].variation \r\n === \"snakeTail\" || \r\n grid[rowDir(i,dir)][colDir(j,dir)].variation \r\n === \"mine\")) {\r\n grid[rowDir(i,dir)][colDir(j,dir)].uniqID = \r\n grid[i][j].uniqID;\r\n grid[rowDir(i,dir)][colDir(j,dir)].direction = dir;\r\n grid[rowDir(i,dir)][colDir(j,dir)].variation = \r\n \"snakeHead\";\r\n grid[rowDir(i,dir)][colDir(j,dir)].ticker = \r\n grid[i][j].ticker;\r\n grid[rowDir(i,dir)][colDir(j,dir)].fillStyle = \r\n grid[i][j].fillStyle;\r\n //determine if anything was eaten\r\n if (!grid[rowDir(i,dir)][colDir(j,dir)].dead) {\r\n grid[rowDir(i,dir)][colDir(j,dir)].ticker += 1;\r\n }\r\n //adjust to row-by-row operation of the program\r\n grid[rowDir(i,dir)][colDir(j,dir)].dead = true;\r\n if (dir === 0 || dir === 3) {\r\n grid[rowDir(i,dir)][colDir(j,dir)].direction += 23;\r\n }\r\n else {\r\n staticUpdateCells(grid);\r\n }\r\n }\r\n //kill the snake if it reaches the border, \r\n //a mine, or another snake\r\n else {\r\n \r\n for (var i2 = 0; i2 < NUM_ROWS; i2 += 1) {\r\n for (var j2 = 0; j2 < NUM_COLS; j2 += 1) {\r\n //determine which snake to kill\r\n //using the SNAKE_ID\r\n if (grid[i2][j2].variation === \"snakeTail\" &&\r\n grid[i2][j2].uniqID === grid[i][j].uniqID) {\r\n grid[i2][j2].variation = \"snakeDeath\";\r\n grid[i2][j2].ticker = 6;\r\n //adjust to row-by-row operation of the program\r\n if ((i2 > i) || ((i2 === i) && (j2 >= j))) {\r\n grid[i2][j2].ticker += 1;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n //blow up the mine if snake hits it\r\n if (validPosition(rowDir(i,dir),colDir(j,dir)) && \r\n grid[rowDir(i,dir)][colDir(j,dir)].variation === \"mine\") {\r\n if ((i2 > i) || ((i2 === i) && (j2 > j))) {\r\n grid[rowDir(i,dir)][colDir(j,dir)].ticker = 2;\r\n }\r\n else {\r\n grid[rowDir(i,dir)][colDir(j,dir)].ticker = 1;\r\n }\r\n }\r\n\r\n }\r\n //adjust to row-by-row operation of the program\r\n if (grid[i][j].variation === \"snakeHead\" &&\r\n grid[i][j].direction > 4) {\r\n grid[i][j].direction -= 23;\r\n }\r\n\r\n //dead snake blinks for 3 generations\r\n //and then turns into dead cells \r\n if (grid[i][j].variation === \"snakeDeath\") {\r\n grid[i][j].ticker -= 1;\r\n if ((grid[i][j].ticker % 2) === 0) {\r\n if (grid[i][j].uniqID === ID_IN_CONTROL) {\r\n grid[i][j].fillStyle = CELL_SNAKE_CONTROL;\r\n }\r\n else {\r\n grid[i][j].fillStyle = CELL_SNAKE_COLOR;\r\n }\r\n }\r\n else {\r\n grid[i][j].fillStyle = CELL_DEAD_COLOR;\r\n }\r\n if (grid[i][j].ticker === 0) {\r\n if (grid[i][j].uniqID === ID_IN_CONTROL) {\r\n ID_IN_CONTROL = 0;\r\n }\r\n grid[i][j].dead = true;\r\n grid[i][j].fillStyle = CELL_DEAD_COLOR;\r\n grid[i][j].variation = \"normal\";\r\n grid[i][j].uniqID = 0;\r\n }\r\n }\r\n\r\n // show each cell's update on HTML canvus\r\n new_canvas.fillStyle = grid[i][j].fillStyle;\r\n new_canvas.fillRect(grid[i][j].xPosition, grid[i][j].yPosition, \r\n CELL_SIZE, CELL_SIZE);\r\n\r\n }\r\n }\r\n }", "update(grid, start, end) {\n function isValid(position){\n return position.x >= 0 && position.y >= 0 && position.x < grid.length && position.y < grid[0].length;\n }\n\n var directions = [{dx:1, dy:0}, {dx:0, dy:1}, {dx:-1, dy:0}, {dx:0, dy:-1}];\n var alreadyVisited = [];\n var nextHop = [];\n for(var x=0; x<grid.length; x++){\n alreadyVisited[x] = [];\n nextHop[x] = [];\n }\n alreadyVisited[end.x][end.y] = true;\n nextHop[end.x][end.y] = {x: end.x, y: end.y};\n\n var stack = [end];\n while (stack.length > 0) {\n const current = stack.shift();\n for(let direction of directions){\n let newPosition = {x:current.x+direction.dx, y:current.y+direction.dy};\n if(isValid(newPosition)){\n if(!alreadyVisited[newPosition.x][newPosition.y]){\n nextHop[newPosition.x][newPosition.y] = current;\n if(!grid[newPosition.x][newPosition.y]){\n stack.push(newPosition);\n }\n }\n alreadyVisited[newPosition.x][newPosition.y] = true;\n }\n }\n }\n this.nextHop = nextHop;\n this.start = start;\n this.end = end;\n }", "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 }", "initializeCoords() {\n // deltas between nodes\n let row_delta = 2 * this.m;\n let column_delta = 2;\n\n // top-left node has coordinates x=-0.45*(m-1)*distance_between_nodes,\n // y=0. Positions of the other nodes are based on this node\n for (let i = 0; i < this.n; ++i) { \n for (let j = 0; j < this.m; ++j) { \n this.coord[i * row_delta + j * column_delta] = (-0.45 * (this.m - 1) + j) * this.distance_between_nodes;\n this.coord[i * row_delta + j * column_delta + 1] = 1 - i * this.distance_between_nodes;\n this.old_coord[i * row_delta + j * column_delta] = this.coord[i * row_delta + j * column_delta];\n this.old_coord[i * row_delta + j * column_delta + 1] = this.coord[i * row_delta + j * column_delta + 1];\n }\n }\n }", "function connected(x1,y1,x2,y2)\r\n{\r\n\t// FOR ALL HEX'S IN A GRID AROUND HEX 1\r\n\tfor (var i=-1;i<2;i++)\r\n\t{\r\n\t\tfor (var j=-1;j<2;j++)\r\n\t\t{\r\n\t\t\tif ((x1+i >= 0 && x1+i < gridSize) && (y1+j >= 0 && y1+j < gridSize) && (i != j)) // ARE WE INSIDE GRID AND NOT A CORNER OR CENTER?\r\n\t\t\t{\r\n\t\t\t\tif (x1+i == x2 && y1+j == y2)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn false;\r\n}", "findWay(passedGrid) {\n // console.log('moj gridek', passedGrid)\n var pathFinder = (entranceX, entranceY, grid) => {\n var distanceFromTop = entranceX;\n var distanceFromLeft = entranceY;\n\n var location = {\n distanceFromTop: distanceFromTop,\n distanceFromLeft: distanceFromLeft,\n path: [],\n status: 'Start'\n }\n\n //inicjalizacja kolejki\n var queue = [];\n queue.push(location);\n\n //loop grida\n while (queue.length > 0) {\n //zwrocenie pierwszego elementu z kolejki\n var currentLocation = queue.shift();\n\n //polnoc\n var newLocation = explore(currentLocation, 'North', grid);\n //jesli wyjscie przekazac do stanu aplikacji kolejke z najkrotsza sciezka\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n //droga\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n\n //wschod\n var newLocation = explore(currentLocation, 'East', grid);\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n\n //poludnie\n var newLocation = explore(currentLocation, 'South', grid);\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n\n //zachod\n var newLocation = explore(currentLocation, 'West', grid);\n if (newLocation.status === 'Exit') {\n this.setState(prevState => ({\n exit: [...prevState.exit, newLocation.path]\n }))\n return newLocation.path;\n } else if (newLocation.status === 'Valid') {\n queue.push(newLocation);\n }\n }\n //nie znaleziono drogi\n this.setState(prevState => ({\n exit: [...prevState.exit, 'Nie znaleziono wyjścia, ten grobowiec będzie twoim grobowcem']\n }))\n return false;\n }\n\n //sprawdzenie typu lokacji\n var locationStatus = (location, grid) => {\n let gridSize = grid.length;\n let dft = location.distanceFromTop;\n let dfl = location.distanceFromLeft;\n // console.log(gridSize, 'size')\n // console.log(location)\n // console.log(grid, dft, dfl);\n\n if (location.distanceFromLeft < 0 ||\n location.distanceFromLeft >= gridSize ||\n location.distanceFromTop < 0 ||\n location.distanceFromTop >= gridSize) {\n //poza gridem\n return 'Invalid';\n //jesli wyjscie\n } else if (grid[dft][dfl].type === 'w') {\n return 'Exit';\n //jesli nie droga (zablokowana lub odwiedzona)\n } else if (grid[dft][dfl].type !== 'o') {\n return 'Blocked';\n //jesli droga\n } else {\n return 'Valid';\n }\n }\n\n //chodzenie\n var explore = (currentLocation, direction, grid) => {\n var newPath = currentLocation.path.slice();\n newPath.push(direction);\n\n var dft = currentLocation.distanceFromTop;\n var dfl = currentLocation.distanceFromLeft;\n\n if (direction === 'North') {\n dft -= 1;\n } else if (direction === 'East') {\n dfl += 1;\n } else if (direction === 'South') {\n dft += 1;\n } else if (direction === 'West') {\n dfl -= 1;\n }\n\n var newLocation = {\n distanceFromTop: dft,\n distanceFromLeft: dfl,\n path: newPath,\n status: 'Unknown'\n };\n\n newLocation.status = locationStatus(newLocation, grid);\n\n //jesli droga, to oznacz lokacje jako odwiedzoną\n if (newLocation.status === 'Valid') {\n grid[newLocation.distanceFromTop][newLocation.distanceFromLeft] = 'Visited';\n }\n\n return newLocation;\n }\n console.log(pathFinder(this.state.startY, this.state.startX, passedGrid));\n }", "function findNeighboring (thing, i , j) {\n var coords = {};\n\n if (A.world[i-1]) {\n // the row above exists....\n if (A.world[i-1][j-1] && A.world[i-1][j-1] === thing) { coords.row = i - 1; coords.col = j - 1; };\n if (A.world[i-1][j] === thing) { coords.row = i - 1; coords.col = j; };\n if (A.world[i-1][j+1] && A.world[i-1][j+1] === thing) { coords.row = i - 1; coords.col = j + 1; };\n }\n if (A.world[i][j-1] && A.world[i][j-1] === thing) { coords.row = i; coords.col = j - 1; }; // the 'current' row\n if (A.world[i][j+1] && A.world[i][j+1] === thing) { coords.row = i; coords.col = j + 1; };\n if (A.world[i+1]) {\n // the row below exists...\n if (A.world[i+1][j-1] && A.world[i+1][j-1] === thing) { coords.row = i + 1; coords.col = j - 1; };\n if (A.world[i+1][j] === thing) { coords.row = i + 1; coords.col = j; };\n if (A.world[i+1][j+1] && A.world[i+1][j+1] === thing) { coords.row = i + 1; coords.col = j + 1; };\n }\n return coords;\n}", "function getNeighborCoords(i, j) {\n return [\n [i - 1, j - 1], // The three cells in the row above.\n [i - 1, j],\n [i - 1, j + 1],\n [i, j - 1], // The two cells in the same row, to the left and right.\n [i, j + 1],\n [i + 1, j - 1], // The three cells in the row below.\n [i + 1, j],\n [i + 1, j + 1]\n ];\n}", "function Grid( )\n{\n\tthis.lowerLeft = [37.74027582404923, -122.51225523839999];\n\tthis.upperRight = [37.81323020595205, -122.38651514053345];\n\tthis.latStep = 0.004053 / 3;\n\tthis.lngStep = 0.006287 / 4;\n\tthis.widthN = (this.upperRight[1] - this.lowerLeft[1]) / this.lngStep;\n\tthis.heightN = (this.upperRight[0] - this.lowerLeft[0]) / this.latStep;\n\t\n\tthis.plotGrid = function( bbox, row, column ) {\n\t\tvar grid = drawRegion_bbox( bbox );\n\t\tgrid.row = row;\n\t\tgrid.column = column;\n\t\tgrid.id = row * this.widthN + column;\n\t\t\n\t\tgoogle.maps.event.addListener(grid, 'mouseover', function(event) {\n\t\t\tmessage('Grid row ' + this.row + ' column ' + this.column + ' id ' + this.id);\n\t\t});\n\t\t\n\t\tgoogle.maps.event.addListener(grid, 'mouseout', function(event) {\n\t\t\tmessage('');\n\t\t});\n\t\t\n\t\treturn grid;\n\t};\n\t\n\tthis.plotAllGrids= function() {\n\t\tfor (var row = 0; row < this.heightN; row ++)\n\t\t{\n\t\t\tfor (var column = 0; column < this.widthN; column ++)\n\t\t\t{\n\t\t\t\tbbox = [ this.lowerLeft[0] + this.latStep * (this.heightN - row -1), \n\t\t\t\t\t\tthis.lowerLeft[1] + this.lngStep * column,\n\t\t\t\t\t\tthis.upperRight[0] - this.latStep * row, \n\t\t\t\t\t\tthis.upperRight[1] - this.lngStep * (this.widthN - 1 - column)];\n\t\t\t\t\n\t\t\t\tthis.plotGrid( bbox, row, column );\n\t\t\t}\n\t\t}\n\t};\n\t\n\t\n\tthis.plotByID = function( id ) {\n\t\tvar row = Math.floor(id / this.widthN);\n\t\tvar column = id % this.widthN;\n\t\tvar bbox = [ this.lowerLeft[0] + this.latStep * (this.heightN - row -1), \n\t\t\t\t\t\tthis.lowerLeft[1] + this.lngStep * column,\n\t\t\t\t\t\tthis.upperRight[0] - this.latStep * row, \n\t\t\t\t\t\tthis.upperRight[1] - this.lngStep * (this.widthN - 1 - column)];\n\t\treturn this.plotGrid( bbox, row, column );\n\t};\n}", "getNeighborCoords({ x, y }) {\n return NEIGHBOR_VECTORS.reduce((memo, [dx, dy]) => {\n const coord = { x: x + dx, y: y + dy };\n if (this.isValidCoord(coord)) {\n memo.push(coord);\n }\n return memo;\n }, []);\n }", "function rightGrid() {\n // Solvent grid\n push();\n stroke(128, 0, 128, 80);\n for (let i = 0; i < 9; i++) {\n line(100 + 40 * (i + 1), 450, 100 + 40 * (i + 1), 40 * (i + 1) + 50);\n }\n pop();\n // Solute grid\n push();\n stroke(0, 0, 255, 80);\n for (let i = 0; i < 9; i++) {\n line(100, 450 - 40 * (i + 1), 500 - 40 * (i + 1), 450 - 40 * (i + 1))\n }\n pop();\n // Carrier grid\n push();\n stroke(255, 100, 0, 80);\n for (let i = 0; i < 9; i++) {\n line(100, 450 - 40 * (i + 1), 100 + 40 * (i + 1), 450);\n }\n pop();\n}", "function gridToGlobal(row, col, delta, dir) {\n /*console.log(`r,c=[${row},${col}], delta=${delta}, dir=${dir}`)\n console.log(`${delta * dir[0] * CELL_SIZE}`)\n console.log(`${delta * dir[1] * CELL_SIZE}`)\n console.log(typeof row)\n console.log(typeof col)\n console.log(typeof delta)\n console.log(typeof dir)*/\n var x = ORIGIN.x - Math.floor(delta * dir[0] * CELL_SIZE) + col * CELL_SIZE\n var y = ORIGIN.y - Math.floor(delta * dir[1] * CELL_SIZE) + row * CELL_SIZE\n // console.log(`x,y=${x},${y}`)\n return [x,y]\n}", "function newGrid() {\n // Checks how many living neighboring cells each cell has\n // Iterate the grid\n for (let i = 0; i < dimension; i++) {\n for (let j = 0; j < dimension; j++) {\n // Count surrounding living cells\n let cellsCount = 0;\n // Check the three cells above the current one\n if (i !== 0) { // continue only if this is not the first/zero row\n if (j !== 0) // continue only if this is not the first/zero column\n cellsCount += grid[i - 1][j - 1];\n cellsCount += grid[i - 1][j];\n if (j !== (dimension - 1)) // continue only if this is not the last column\n cellsCount += grid[i - 1][j + 1];\n }\n // Check the cell on the left\n if (j !== 0) // continue only if this is not the first/zero column\n cellsCount += grid[i][j - 1];\n // Check the cell on the right \n if (j !== (dimension - 1)) // continue only if this is not the last column\n cellsCount += grid[i][j + 1];\n // Check the three cells below the current one\n if (i !== (dimension - 1)) {\n if (j !== 0) // continue only if this is not the first/zero column\n cellsCount += grid[i + 1][j - 1];\n cellsCount += grid[i + 1][j];\n if (j !== (dimension - 1)) // continue only if this is not the last column\n cellsCount += grid[i + 1][j + 1];\n }\n\n // Check if the currnet cell is dead\n if (grid[i][j] === 0) {\n // Become alive if three surrounding cells are alive, else die\n if (cellsCount === 3) {\n copiedGrid[i][j] = 1;\n } else {\n copiedGrid[i][j] = 0;\n }\n } \n // Current cell is alive\n else if (grid[i][j] === 1) {\n // stay alive with 2 or 3 living neighbours, else die\n if (cellsCount === 2 || cellsCount === 3) {\n copiedGrid[i][j] = 1;\n } else {\n copiedGrid[i][j] = 0;\n }\n }\n }\n }\n\n // Copy the temporary grid in real one\n for (let j = 0; j < dimension; j++) {\n for (let k = 0; k < dimension; k++) {\n grid[j][k] = copiedGrid[j][k];\n }\n }\n\n drawGrid();\n}", "function countLiveCells(coords, grid) {\n let sum = 0;\n for (let coord of coords) { // `for..of` loop is much faster than `reduce()`\n sum += grid[coord[0]][coord[1]];\n }\n return sum;\n}", "cohesion(boids) {\n const neighborDist = 50\n const sum = new Vector(0, 0) // Start with empty vector to accumulate all positions\n let count = 0\n for (let other of boids) {\n const d = this.agent.location.dist(other.location)\n if ((d > 0) && (d < neighborDist)) {\n sum.add(other.position) // Add position\n count++\n }\n }\n if (count > 0) {\n sum.divide(count)\n return seek(sum) // Steer towards the position\n }\n else {\n return new Vector(0, 0)\n }\n }", "function setup(){\r\ncols = Math.floor(width/w);\r\nrows = Math.floor(height/w);\r\n//for each column in each row create a cell\r\nfor (let rn = 0; rn < rows; rn++){\r\n for(let cn = 0; cn < cols; cn++){\r\n const cell = new Maze(cn,rn);\r\n grid.push(cell);\r\n }\r\n current = grid[0]; \r\n}\r\n}", "computeCoords() {\n this.distanceFromEarthCenter = bv3.length(this.position)\n this.distanceFromEarthSurface = this.distanceFromEarthCenter - 6378\n\n this.lat = radians2degrees(Math.asin(-this.position[1] / this.distanceFromEarthCenter))\n\n\n const posAtEquator = [this.position[0], 0, this.position[2]]\n\n\n const distanceFromEarthCenterAtEquator = bv3.length(posAtEquator)\n const l90 = radians2degrees(Math.asin(-this.position[0] / distanceFromEarthCenterAtEquator))\n\n\n if (this.position[0] > 0 != this.position[2] > 0) {\n if (this.position[0] > 0) {\n //CCconsole.log(\"c1\")\n this.lon = l90;\n } else {\n //CCconsole.log(\"c2\")\n this.lon = 180 - l90;\n }\n } else {\n if (this.position[0] > 0) {\n //CCconsole.log(\"c3\")\n this.lon = -180 - l90;\n } else {\n //CCconsole.log(\"c4\")\n this.lon = l90;\n }\n }\n\n \n }", "function shipPositions(cells) {\n var result = \"\"\n for (var i = 0; i < cells.length; i++) {\n result += cells[i].dataset.x\n result += cells[i].dataset.y\n result += \" \";\n }\n return result;\n}", "getNeighbors(i, j) {\n\t\tlet neighbors = 0;\n // This section checks above the cell\n //checks up left\n if (i-1 >= 0 && j-1 >= 0 && this.grid[i-1][j-1] > 0){\n neighbors++;\n }\n //checks up\n if (i-1 >= 0 && this.grid[i-1][j] > 0){\n neighbors++;\n }\n //checks up right\n if (i-1 >= 0 && j+1 < this.cols && this.grid[i-1][j+1] > 0){\n neighbors++;\n }\n // This section checks the right and left neighbors\n //checks left\n if (j-1 >= 0 && this.grid[i][j-1] > 0){\n neighbors++;\n }\n //checks right\n if (j+1 < this.cols && this.grid[i][j+1] > 0){\n neighbors++;\n }\n //This section checks below the cell\n //checks down left\n if (i+1 < this.rows && j-1 >= 0 && this.grid[i+1][j-1] > 0){\n neighbors++;\n }\n //checks down\n if (i+1 < this.rows && this.grid[i+1][j] > 0){\n neighbors++;\n }\n //checks down right\n if (i+1 < this.rows && j+1 < this.cols && this.grid[i+1][j+1] > 0){\n neighbors++;\n }\n\t\treturn neighbors;\n\t}", "function randomGridVariablePosition() {\n return Math.floor(Math.random() * 10);\n}", "mutate() {\n\t\t// make a copy of grid and fill it with zeros\n\t\tlet temp = new Array(this.rows);\n\t\tfor (let i = 0; i < this.rows; i++) {\n\t\t\ttemp[i] = new Array(this.cols);\n\t\t\ttemp[i].fill(0);\n\t\t}\n\n for (let i = 0; i < this.rows; i++) {\n for (let j = 0; j < this.cols; j++) {\n //\"getNeighbors is not defined\"\n let liveNeighbor = this.getNeighbors(i, j);\n //a cell with less than 2 live neighbors dies\n if (this.grid[i][j] !== 0 && liveNeighbor < 2) {\n temp[i][j] = 0;\n }\n //a cell with 2 or 3 live neighbors lives\n else if (this.grid[i][j] !== 0 && (liveNeighbor === 2 || liveNeighbor === 3)) {\n temp[i][j] = 1;\n }\n //a cell with greater than 3 live neighbors dies\n else if (this.grid[i][j] !== 0 && liveNeighbor > 3) {\n temp[i][j] = 0;\n }\n // a dead cell with 3 live neighbors becomes live(gets birthed)\n else if (this.grid[i][j] === 0 && liveNeighbor === 3) {\n temp[i][j] = 1;\n }\n }\n }\n\t\t// set this.grid to temp grid\n\t\tthis.grid = temp;\n\t}", "function updatePosition(object, direction) {\n\n currentGrid = grid; //Save the grid before changes are made.\n\n xLoop:\n for (var i = 0; i < grid.length; i++) {\n yLoop:\n for (var j = 0; j < grid.length; j++) {\n\n if (grid[i][j] == object) {\n\n //player is moving down and the space is free\n if (direction == \"down\" && !isWall(grid[i + 1][j]) && !boxCollision(grid[i + 1][j], grid[i + 2][j])) {\n\n grid[i][j] = 0; //set current position to a blank space\n\n //Check if box can move\n if (checkBox(grid[i + 1][j]) && grid[i + 2][j] == 0 || grid[i + 2][j] == 4) {\n grid[i + 2][j] = 3; //Move box into position ahead of the new player position\n }\n\n grid[i + 1][j] = object; //Move object to new position\n stepCount += 1; //Increase the step count\n\n break xLoop; //break from outer loop\n\n }\n //player is moving up and the space is free\n else if (direction == \"up\" && !isWall(grid[i - 1][j]) && !boxCollision(grid[i - 1][j], grid[i - 2][j])) {\n\n grid[i][j] = 0; //Set current position to a blank space\n\n //Check if box can move\n if (checkBox(grid[i - 1][j]) && grid[i - 2][j] == 0 || grid[i - 2][j] == 4) {\n grid[i - 2][j] = 3; //Move box into position ahead of new player position\n }\n\n grid[i - 1][j] = object; //Move player to new position\n stepCount += 1; //Increase step count\n break xLoop; //Break from outer loop\n\n }\n\n //Player is moving left and the space is free\n else if (direction == \"left\" && !isWall(grid[i][j - 1]) && !boxCollision(grid[i][j - 1], grid[i][j - 2])) {\n grid[i][j] = 0; //Set current position to blank space\n\n //Check if a box can move\n if (checkBox(grid[i][j - 1]) && grid[i][j - 2] == 0 || grid[i][j - 2] == 4) {\n grid[i][j - 2] = 3; //Update box position ahead of new player position\n }\n\n grid[i][j - 1] = object; //Move player into new position\n stepCount += 1; //Increase step count\n break xLoop; //Break from outer loop\n\n }\n //Player is moving right and the space is free\n else if (direction == \"right\" && !isWall(grid[i][j + 1]) && !boxCollision(grid[i][j + 1], grid[i][j + 2])) {\n\n grid[i][j] = 0; //Set current position to blank space\n\n //Check if a box can move\n if (checkBox(grid[i][j + 1]) && grid[i][j + 2] == 0 || grid[i][j + 2] == 4) {\n grid[i][j + 2] = 3; //Update box position ahead of new player position\n }\n\n grid[i][j + 1] = object; //Move player into new position\n stepCount += 1; //Increase step count\n break xLoop; //Break from outer loop\n }\n }\n }\n }\n\n //This loop will check if any goals in the level are missing, then set the value to 4 so that they will be redrawn\n for (var i = 0; i < goalArray.length; i++) {\n\n if (grid[goalArray[i][0]][goalArray[i][1]] == 0) {\n grid[goalArray[i][0]][goalArray[i][1]] = 4;\n }\n\n }\n}", "T() {\n let dims = this.shape();\n let newGrid = [];\n for (let i = 0; i < dims[1]; i++) {\n let row = [];\n for (let j = 0; j < dims[0]; j++) {\n row.push(this.grid[j][i]);\n }\n newGrid.push(row);\n }\n this.grid = newGrid;\n }", "function xy2grid(x, y) {\n\tvar normXY = sketch.screentoworld(x, y);\n}", "printBall () {\n for (let i = this.ballPosition.latitude - 2; i < this.ballPosition.latitude + 2; i++) {\n for (let j = this.ballPosition.longitude - 2; j < this.ballPosition.longitude + 2; j++) {\n this.matrix.setElement(j, i, '#');\n }\n }\n }", "function DogOneMovingXandY(){\n // checkWinner();\n for (var i = 0; i < dogOne.move; i++){\n var boardX = boardPos[i][0] + \"px\"\n var boardY = boardPos[i][1] + 'px';\n $dogOne.css({transform: 'translate(' + boardX + ',' + boardY + ')'});\n }\n return;\n }", "function getWormCoords()\n{\n xyCoords = [];\n for(var i = 0; i < infections.length; i++)\n {\n xyCoords.push({id: i, targetX: infections[i].x\n , targetY: infections[i].y\n , sourceX: infections[i].infectedByx\n , sourceY: infections[i].infectedByy});\n }\n}", "function gridSetup() {\n for (var i = 0; i <= HEIGHT - 1; i++) {\n grid[i] = [];\n }\n\n for (i = 0; i <= HEIGHT - 1; i++) {\n for (var j = 0; j <= WIDTH - 1; j++) {\n grid[i][j] = new Cell(j * cellSide, i * cellSide, 'black');\n }\n }\n\n //drawGlider(54, 3);\n //drawRandom();\n\n for (var i = 0; i <= HEIGHT - 1; i++) {\n gridCopy[i] = [];\n }\n\n for (i = 0; i <= HEIGHT - 1; i++) {\n for (var j = 0; j <= WIDTH - 1; j++) {\n if (grid[i][j].isAlive == 0) {\n gridCopy[i][j] = 0;\n }\n else if (grid[i][j].isAlive == 1) {\n gridCopy[i][j] = 1;\n }\n }\n }\n}", "function getgridloc(x, y, size, grids, spacing){\n var numy = grids[0];\n var numx = grids[1];\n var w = size[1], h = size[0];\n var loc = new Array(numy); // one row\n for(var i = 0; i < numy; i++){\n loc[i] = new Array(numx);\n for(var j = 0; j < numx; j++){\n loc[i][j] = new Array(2);\n loc[i][j][0] = x + (j+1)*spacing + j*w;\n loc[i][j][1] = y + (i+1)*spacing + i*h;\n }\n }\n return loc;\n}", "function fnDefineOwnShips() {\n var canvasElement = event.target;\n var x = event.pageX - canvasElement.offsetLeft;\n var y = event.pageY - canvasElement.offsetTop;\n // console.log(\"canvas\", \"x\", x, \"y\", y);\n x = Math.floor(x / cellSize);\n y = Math.floor(y / cellSize);\n // console.log(\"board\", \"x\", x, \"y\", y);\n var cellStatus = fnGetCellStatus(gridsPlayer[OWN][x][y]);\n gridsPlayer[OWN][x][y] = cellStatus;\n fnColorCells(oCanvas[OWN].ctx, gridsPlayer[OWN], x, y);\n}", "wallSides(){\n this.boundaries = [];\n for (var i=0; i<this.grid.length; i++){\n for (var j=0; j<this.grid[i].length; j++){\n if(this.grid[i][j] === 1 || this.grid[i][j] === 2 || this.grid[i][j] === \"D\"){\n this.boundaries.push({top: 50*j, \n down: 50*j+50,\n left: 50*i,\n right: 50*i+50})\n }\n }\n } \n }", "function placePlayerCell(numCells) {\n var playerCoords = [];\n while (numCells > 0) {\n currRow = Math.floor(Math.random() * numRow);\n currCol = Math.floor(Math.random() * numCol);\n if (cellStatusArr[currRow][currCol] === \"floor\") {\n cellStatusArr[currRow][currCol] = \"player\";\n playerCoords.push(currRow);\n playerCoords.push(currCol);\n numCells--;\n }\n }\n return playerCoords;\n }" ]
[ "0.62123626", "0.613259", "0.6118437", "0.60855204", "0.60262376", "0.60201436", "0.5997682", "0.59947187", "0.59845924", "0.59799165", "0.59774256", "0.59708756", "0.5965862", "0.59564", "0.59511924", "0.59474653", "0.5912281", "0.59066796", "0.5904501", "0.5891351", "0.5890106", "0.5890007", "0.58899635", "0.58852357", "0.58817816", "0.58773786", "0.58770126", "0.58617806", "0.5858399", "0.5851892", "0.5845235", "0.58334035", "0.58333206", "0.5830131", "0.5820698", "0.58031696", "0.578507", "0.5773487", "0.57734257", "0.5770282", "0.5765082", "0.57630265", "0.57547385", "0.5747487", "0.5731888", "0.573153", "0.57214946", "0.57209027", "0.57111436", "0.56897104", "0.568832", "0.56869626", "0.56687367", "0.56686676", "0.56660974", "0.56659836", "0.56557614", "0.56496674", "0.56490946", "0.5636981", "0.5633641", "0.56301296", "0.56219155", "0.56142926", "0.5612462", "0.56078964", "0.56076175", "0.56046396", "0.5602351", "0.5596856", "0.5594346", "0.559233", "0.55898386", "0.5587738", "0.55829227", "0.55804104", "0.55794007", "0.5574307", "0.55710834", "0.55682003", "0.55568254", "0.555254", "0.55507445", "0.55499387", "0.55498695", "0.5549256", "0.5546714", "0.55460215", "0.554554", "0.5543215", "0.55426186", "0.5540116", "0.5535449", "0.55349016", "0.55319995", "0.5531459", "0.5527241", "0.5526367", "0.5520866", "0.55200356", "0.55185276" ]
0.0
-1
Retrieve the absolute room URL.
function getRoomURL() { return location.protocol + "//" + location.host + (location.pathname || "") + "?room=" + getRoom(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getRoomURL() {\n return location.protocol + \"//\" + location.host + (location.path || \"\") + \"?room=\" + this.getRoom();\n }", "getHref() {\n switch (this.type) {\n case \"room\":\n return \"room.html?\" + this.id + \"+\" + this.title.split(' ').join('_');\n case \"device\":\n return \"device.html?\" + this.id + \"+\" + this.title.split(' ').join('_');\n default:\n return \"home.html\";\n }\n }", "worldUrl() {\n return this.serverFolder.baseUrl+this.serverFolder.name;\n }", "getUrl() {\n if (!this._url) {\n this._url = new URL(location + \"\");\n }\n\n return this._url;\n }", "function localURL() { \n var pathWORes = location.pathname.substring(0, location.pathname.lastIndexOf(\"/\")+1);\n var protoWDom = location.href.substr(0, location.href.indexOf(\"/\", 8));\n return protoWDom + pathWORes;\n }", "get url() {\n return createUserUri(this.database.id, this.id);\n }", "function getURL() {\n var url = window.location.pathname.split('/').slice(0, 4).join('/')\n\n return url + '/' + cid + '/'\n}", "get url() {return '/';}", "getUri() {\n return super.getAsString(\"uri\");\n }", "url() {\n\t\treturn this._url;\n\t}", "getUrl() {\n var _a;\n const routerLink = (_a = this.routerLink) !== null && _a !== void 0 ? _a : this.routerLinkWithHref;\n return routerLink\n ? this.router.serializeUrl(routerLink.urlTree)\n : undefined;\n }", "function getRoomId() {\n var roomId = window.location.href.split('#')[1];\n if(!roomId) {\n roomId = Math.floor(Math.random() * 1000000);\n window.location.href += '#' + roomId;\n }\n return roomId;\n}", "get url() {\n return internalSlots.get(this).url.href;\n }", "function getURI() {\n var uri = document.location.href;\n\t\t\t\t\n var canonical = $$(\"link[rel=canonical]\")[0];\n\t\t\t\tif (canonical) {\t\t\t\n\t\t\t\t\tcanonical = canonical.readAttribute(\"href\")\n\t\t\t\t\tif (canonical && canonical.length > 0) {\n\t\t\t\t\t\t\tif (canonical.indexOf(\"http\") < 0) {\n\t\t\t\t\t\t\t\t\tcanonical = document.location.protocol + \"//\" + document.location.host + canonical;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\turi = canonical;\n\t\t\t\t\t}\n\t\t\t\t}\n\n return uri;\n }", "function get_open_url(url) {\n var curr = new builder.Url(url);\n var base = new builder.Url(builder.lastStep().url() || builder.storage.get('baseurl'));\n\n if (base.server() == curr.server()) {\n return curr.path();\n } else {\n return curr.href();\n }\n }", "get location() {\n if (this.#SAFMode === 'single') return null;\n if (this.#uri) {\n try {\n return Url.dirname(this.#uri)\n } catch (error) {\n return null;\n }\n }\n return null;\n }", "function getAbsolutePath() {\n var loc = window.location;\n var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') - 1);\n return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length));\n}", "getRoom() {\n var query = location.search && location.search.split(\"?\")[1];\n\n if (query) {\n return (location.search && decodeURIComponent(query.split(\"=\")[1]));\n }\n\n return \"no-id\"\n }", "getBaseUrl() {\r\n let $encodeURI = encodeURI;\r\n let fragment = decodeURI(this.fragment);\r\n if (fragment === '') {\r\n let nonEmptyRoute = this.router.routes.find(route => {\r\n return route.name === this.config.name &&\r\n route.route !== '';\r\n });\r\n if (nonEmptyRoute) {\r\n fragment = nonEmptyRoute.route;\r\n }\r\n }\r\n if (!this.params) {\r\n return $encodeURI(fragment);\r\n }\r\n let wildcardName = this.getWildCardName();\r\n let path = this.params[wildcardName] || '';\r\n if (!path) {\r\n return $encodeURI(fragment);\r\n }\r\n return $encodeURI(fragment.substr(0, fragment.lastIndexOf(path)));\r\n }", "function getAbsolutePath() {\n var loc = window.location;\n var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);\n return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length));\n}", "url() {\n return this.win.location.href;\n }", "static getFullPath() {\n return this.baseUrl() + this.apiRoute() + '/' + this.route() + '/'\n }", "function toString(){\n\t\treturn this.url;\n\t}", "get url() {\n\t\treturn this.__url;\n\t}", "get url() {\n\t\treturn this.__url;\n\t}", "get url() {\n\t\treturn this.__url;\n\t}", "get url() {\n\t\treturn this.__url;\n\t}", "get url() {\n\t\treturn this.__url;\n\t}", "function getBaseURL() {\n var protocol = window.location.protocol;\n var hostname = window.location.hostname;\n var port = window.location.port;\n return protocol + \"//\" + hostname + \":\" + port;\n}", "function getLocationHref() {\n try {\n return WINDOW$6.document.location.href;\n } catch (oO) {\n return '';\n }\n }", "function getURL() {\n return {\n omDbURL: \"http://www.omdbapi.com/?\",\n MDBurl: \"https://api.themoviedb.org/3/search/movie?api_key=838eabeda5ff3bb866d5c5fc023308d1\"\n };\n}", "function getSheetUrl() {\n const SS = SpreadsheetApp.getActiveSpreadsheet();\n const ss = SS.getActiveSheet();\n let url = '';\n url += SS.getUrl();\n url += '#gid=';\n url += ss.getSheetId();\n return url;\n}", "buildURL(){\n var url = this._super(...arguments);\n if (url.lastIndexOf('/') !== url.length - 1) {\n url += '/';\n }\n return url;\n }", "function getTargetUrl() {\n var url = options.server.url;\n if (options.server.zPort) {\n url = url.replace(/^https\\:/, 'http:');\n if (url.match(/\\:(\\d+)/)) {\n url = url.replace(/\\:(\\d+)/, ':' + options.server.zPort);\n } else {\n url += ':' + options.server.zPort;\n }\n }\n url += options.zendesk.path;\n return url;\n }", "function getBaseUrl() {\n var baseUrl = getOption('baseUrl');\n if (!baseUrl || baseUrl === '/') {\n baseUrl = (typeof location === 'undefined' ?\n 'http://localhost:8888/' : location.origin + '/');\n }\n return url_1.URLExt.parse(baseUrl).toString();\n }", "function getURL(){\n\treturn window.location;\n}", "function showRoomURL(adminId) {\n var roomHashURL = '#' + adminId;\n var roomQueryStringURL = '?cam=' + adminId;\n const base_url = location.origin + '/demos/'\n\n var html = '<h2>Endereço único da sua sala: ';\n html += '<a href=\"' + roomQueryStringURL + '\" target=\"_blank\">' + roomQueryStringURL.replace(`?cam=`, ``) + '</a></h2>';\n\n // html += 'Hash URL: <a href=\"' + roomHashURL + '\" target=\"_blank\">' + roomHashURL + '</a>';\n // html += '<br>';\n html += '<input class=\"input is-expanded\" value=\"' + base_url + roomQueryStringURL + '\" type=\"text\"> <br>';\n\n var roomURLsDiv = document.getElementById('room-urls');\n roomURLsDiv.innerHTML = html;\n\n roomURLsDiv.style.display = 'block';\n}", "static getBaseUri(loc) {\r\n var baseUri = loc.href.substring(0, loc.href.lastIndexOf(C.ST.WHACK)+1);\r\n return baseUri;\r\n }", "resource(fullUrl){\n //Pega o caminho da URL ou seja a string que vem após a porta e antes das querys\n //protocolo://domínio:porta/RECURSO/.../RECURSO?query_string#fragmento\n let parsedUrl = url.parse(fullUrl).pathname\n return parsedUrl\n }", "get url() {\n return artifactAttribute(this, 'URL');\n }", "toString() {\n return this.url();\n }", "toString() {\n return this.url();\n }", "function getLocationHref() {\n try {\n return WINDOW.document.location.href;\n } catch (oO) {\n return '';\n }\n}", "fullUrl( relpath ) {\n if ( /^([\\w\\-]+\\:)?\\/\\/.*$/.test( relpath ) ) return relpath;\n let loc = window.location;\n let path = String( loc.pathname || '' ).replace( /\\/+$/g, '' );\n let rel = String( relpath || '' ).replace( /^\\/+/g, '' );\n return loc.protocol +'//'+ loc.host + path +'/'+ rel;\n }", "get url () {\n\t\treturn this._url;\n\t}", "get url () {\n\t\treturn this._url;\n\t}", "get url () {\n\t\treturn this._url;\n\t}", "get url () {\n\t\treturn this._url;\n\t}", "get url () {\n\t\treturn this._url;\n\t}", "function baseUrl() {\n\n var protocol = window.location.protocol\n , host = window.location.host\n , pathName = window.location.pathname.split('/');\n\n return protocol + '//' + host + '/' + pathName[1];\n\n}", "get_url() {\n\t\treturn config.zeromq.proto + '://' + config.zeromq.host + ':' + config.zeromq.port;\n\t}", "function getHostURL() {\n var hostURL = window.location.protocol + '//' + window.location.hostname + ':' + host_port;\n return hostURL;\n}", "function getLocationHref() {\n\t try {\n\t return WINDOW$5.document.location.href;\n\t } catch (oO) {\n\t return '';\n\t }\n\t}", "uri() {\n let query = this.query || {};\n const schema = this.opts.secure ? \"wss\" : \"ws\";\n let port = \"\";\n // avoid port if default for schema\n if (this.opts.port &&\n ((\"wss\" === schema && Number(this.opts.port) !== 443) ||\n (\"ws\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n // append timestamp to URI\n if (this.opts.timestampRequests) {\n query[this.opts.timestampParam] = (0, yeast_1.default)();\n }\n // communicate binary support capabilities\n if (!this.supportsBinary) {\n query.b64 = 1;\n }\n const encodedQuery = parseqs_1.default.encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }", "function getURL(offer){\r\n\t\tif(offer.eURL && offer.eURL !== ''){\r\n\t\t\treturn offer.eURL;\r\n\t\t}else{\r\n\t\t\treturn offer.offerDetailUrl;\r\n\t\t}\r\n\t}", "function getURL(offer){\r\n\t\tif(offer.eURL && offer.eURL !== ''){\r\n\t\t\treturn offer.eURL;\r\n\t\t}else{\r\n\t\t\treturn offer.offerDetailUrl;\r\n\t\t}\r\n\t}", "uri() {\n let query = this.query || {};\n const schema = this.opts.secure ? \"wss\" : \"ws\";\n let port = \"\";\n // avoid port if default for schema\n if (this.opts.port &&\n ((\"wss\" === schema && Number(this.opts.port) !== 443) ||\n (\"ws\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n // append timestamp to URI\n if (this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n // communicate binary support capabilities\n if (!this.supportsBinary) {\n query.b64 = 1;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }", "function getFullUrl( url ) {\n if ( ! urlParser.parse( url, false, true ).protocol ) {\n\tvar protocol = urlParser.parse( url, false, true ).protocol || 'http:';\n\tvar host = urlParser.parse( url, false, true ).host || urlParser.parse( webUrl ).host;\n\tvar path = urlParser.parse( url, false, true ).path;\n\turl = protocol + '//' + host + path;\n }\n\n return url;\n}", "function showRoomURL(roomid) {\n var roomHashURL = '#' + roomid;\n var roomQueryStringURL = '?roomid=' + roomid;\n var html = '<h2>Unique URL for your room:</h2><br>';\n html += 'Hash URL: <a href=\"' + roomHashURL + '\" target=\"_blank\">' + roomHashURL + '</a>';\n html += '<br>';\n html += 'QueryString URL: <a href=\"' + roomQueryStringURL + '\" target=\"_blank\">' + roomQueryStringURL + '</a>';\n var roomURLsDiv = document.getElementById('room-urls');\n roomURLsDiv.innerHTML = html;\n roomURLsDiv.style.display = 'block';\n}", "function getURL() {\n return view.URL || view.webkitURL || view;\n}", "get url() {\n return this._data.url;\n }", "function _get_url( els ) {\n\treturn basepath + els.join('/');\n}", "get url() {\n return this._url;\n }", "function getFullURL(url) {\n var a = document.createElement('a');\n a.href = url;\n return a.href;\n }", "function showRoomURL(roomid) {\n var roomHashURL = '#' + roomid;\n var roomQueryStringURL = '?roomid=' + roomid;\n var html = '';\n html += 'Hash URL: <a href=\"' + roomHashURL + '\" target=\"_blank\">' + roomHashURL + '</a>';\n html += '<br>';\n html += 'QueryString URL: <a href=\"' + roomQueryStringURL + '\" target=\"_blank\">' + roomQueryStringURL + '</a>';\n var roomURLsDiv = document.getElementById('room-urls');\n roomURLsDiv.innerHTML = html;\n roomURLsDiv.style.display = 'block';\n}", "buildUrl() {\n let url = this.hostname;\n\n if (this.port !== 80) {\n url += ':' + this.port;\n }\n\n let path = this.path;\n if (path.substring(0, 1) !== '/') {\n path = '/' + path;\n }\n\n url += path;\n\n url = replaceUrlParams(url, this.givenArgs);\n url = url.replace('//', '/');\n url = 'https://' + url;\n return url;\n }", "function getBaseUrl() {\n return window.location.protocol + \"//\" + window.location.host;\n}", "get() {\n // generate the url\n const url = this.base_url ? this.base_url + this.parseQuery() : this.parseQuery();\n // reset the url so the query object can be re-used\n this.reset();\n return url;\n }", "function getBaseUrl(){\n return window.location.href.replace(/\\?.*/,'');\n}", "function getGalaxy() {\r\n var href = document.location.href;\r\n href = href.substr(\"http://\".length,href.indexOf(\".\") - \"http://\".length);\r\n return href;\r\n}", "function getCardUrl(id, absolute = false, includeProtocol = false) {\n let rv = '';\n if (includeProtocol) {\n rv += protocol;\n absolute = true;\n }\n if (absolute) {\n rv += canonicalDomain;\n }\n rv += '/' + id\n return rv;\n}", "function getLocationHref() {\n var global = global_1.getGlobalObject();\n try {\n return global.document.location.href;\n }\n catch (oO) {\n return '';\n }\n}", "getUrl() {\n if (this.state != remote_file) {\n return undefined;\n }\n let [ssName, storageService] = getStorageService();\n return storageService.getUrl(this._obj.location);\n }", "getFinalUrl() {\n let url = Request.mergeUrls(this.host, this.url);\n const urlParams = this.getUrlParams();\n if (urlParams.length > 0) {\n url += `?${urlParams}`;\n }\n return url;\n }", "function showRoomURL(roomid) {\n var roomQueryStringURL = '?roomid=' + roomid +'&password=' + document.getElementById('room-password').value;\n var html = 'Unique URL for your room:';\n html += '<a style=\"color: #E0E0E0; text-decoration: underline;\" href=\"' + roomQueryStringURL + '\" target=\"_blank\">' + roomQueryStringURL + '</a>';\n var roomURLsDiv = document.getElementById('room-urls');\n roomURLsDiv.innerHTML = html;\n roomURLsDiv.style.display = 'inline';\n roomURLsDiv.style.color = 'white';\n}", "function getFullPath(fragment) {\n return location.protocol + \"//\" + location.host +\n removeEndSlash(Router.urlRoot) + addStartSlash(fragment)\n }", "function getClosestBaseUrl( ele ) {\r\n\t\t// Find the closest page and extract out its url.\r\n\t\tvar url = $( ele ).closest( \".ui-page\" ).jqmData( \"url\" ), base = documentBase.hrefNoHash;\r\n\r\n\t\tif ( !url || !path.isPath( url ) ) {\r\n\t\t\turl = base;\r\n\t\t}\r\n\r\n\t\treturn path.makeUrlAbsolute( url, base );\r\n\t}", "uri() {\n let query = this.query || {};\n const schema = this.opts.secure ? \"https\" : \"http\";\n let port = \"\";\n // cache busting is forced\n if (false !== this.opts.timestampRequests) {\n query[this.opts.timestampParam] = yeast();\n }\n if (!this.supportsBinary && !query.sid) {\n query.b64 = 1;\n }\n // avoid port if default for schema\n if (this.opts.port &&\n ((\"https\" === schema && Number(this.opts.port) !== 443) ||\n (\"http\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n const encodedQuery = encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }", "function getUrl() {\n\t\t\tvar url = document.URL;\n\n\t\t\tvar parse_url = /^(?:([A-Za-z]+):)?(\\/{0,3})([0-9.\\-A-Za-z]+)(?::(\\d+))?(?:\\/([^?#]*))?(?:\\?([^#]*))?(?:#(.*))?$/;\n\t\t\tvar result = parse_url.exec(url);\n\t\t\tif (result[1] != undefined && result[1] != '') {\n\t\t\t\tvar scheme = result[1] + '://';\n\t\t\t\tvar host = result[3] + '/';\n\t\t\t\tvar path = result[5];\n\t\t\t} else {\n\t\t\t\tif ($.browser.msie) {\n\t\t\t\t\tvar scheme = 'http://';\n\t\t\t\t\tvar host = window.location.host + '/';\n\t\t\t\t\tvar path = result[3] + '/' + result[5];\n\t\t\t\t} else {\n\t\t\t\t\tvar scheme = '';\n\t\t\t\t\tvar host = '';\n\t\t\t\t\tvar path = result[3] + '/' + result[5];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (result[6] != undefined && result[6] != '') {\n\t\t\t\tvar query = '?' + result[6];\n\t\t\t} else {\n\t\t\t\tvar query = '?';\n\t\t\t}\n\n\t\t\tajaxUrl = scheme + host + path;\n\t\t\tajaxQuery = query;\n\t\t}", "function getUrl() {\n var loc = window.location;\n var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);\n return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length));\n}", "function getUserMapUrl() {\r\n var link = $(\".left-col .main-menu .mm-street\");\r\n return ( link.length > 0 ) ? link[0].href : null;\r\n}", "toRootUrl() { return this.toUrlPath() + this.toUrlQuery(); }", "_getPathFromUrl () {\n return window.location.toString().split(/[?#]/)[0]\n }", "get URI()\n\t{\n\t\t//exchWebService.commonAbFunctions.logInfo(\"exchangeAbFolderDirectory: get URI:\"+this._URI);\n\t\treturn this._URI;\n\t}", "getURL() {\n return Meteor.absoluteUrl(`${ UploadFS.config.storesPath }/${ this.name }`, {\n secure: UploadFS.config.https\n });\n }", "get url() {\n return createDocumentCollectionUri(this.database.id, this.id);\n }", "function localLink(location) {\n const threadUrlParts = location.split(/[\\/&=]/);\n const channelId = threadUrlParts[4];\n const threadId = threadUrlParts[6];\n let threadUrl = 'https://app.slack.com/client/' + workspaceId + '/' + channelId\n\n if (threadId) {\n threadUrl += '/thread/' + channelId + '-' + threadId;\n }\n\n return threadUrl;\n }", "get serverRelativeUrl() {\n return tag.configure(SharePointQueryable(this, \"serverRelativeUrl\"), \"f.serverRelativeUrl\");\n }", "function absoluteUri(res) {\n var uri = '';\n var parent = res;\n do {\n res = parent; //(parent instanceof RamlWrapper.ResourceImpl) ? <RamlWrapper.Resource>parent : null;\n uri = res.relativeUri().value() + uri;\n parent = res.parent();\n } while (parent.definition().key().name == universes.Universe08.Resource.name);\n uri = uri.replace(/\\/\\//g, '/');\n var buri = parent.baseUri();\n var base = buri ? buri.value() : \"\";\n base = base ? base : '';\n if (util.stringEndsWith(base, '/')) {\n uri = uri.substring(1);\n }\n uri = base + uri;\n return uri;\n}", "get __effectiveBaseUrl() {\n return this.baseUrl\n ? this.constructor\n .__createUrl(this.baseUrl, document.baseURI || document.URL)\n .href.replace(/[^\\/]*$/, \"\")\n : \"\";\n }", "function getAbsoluteUrl(url) {\n A_ELEMENT.href = url;\n return A_ELEMENT.href;\n }", "function getAbsoluteUrl(url) {\n A_ELEMENT.href = url;\n return A_ELEMENT.href;\n }", "uri() {\n let query = this.query || {};\n const schema = this.opts.secure ? \"https\" : \"http\";\n let port = \"\";\n // cache busting is forced\n if (false !== this.opts.timestampRequests) {\n query[this.opts.timestampParam] = (0, yeast_1.default)();\n }\n if (!this.supportsBinary && !query.sid) {\n query.b64 = 1;\n }\n // avoid port if default for schema\n if (this.opts.port &&\n ((\"https\" === schema && Number(this.opts.port) !== 443) ||\n (\"http\" === schema && Number(this.opts.port) !== 80))) {\n port = \":\" + this.opts.port;\n }\n const encodedQuery = parseqs_1.default.encode(query);\n const ipv6 = this.opts.hostname.indexOf(\":\") !== -1;\n return (schema +\n \"://\" +\n (ipv6 ? \"[\" + this.opts.hostname + \"]\" : this.opts.hostname) +\n port +\n this.opts.path +\n (encodedQuery.length ? \"?\" + encodedQuery : \"\"));\n }", "static REMOTE_SERVER_URL(collection, parameter, urlParametersAsString) {\n\t\tconst port = 1337;\n\t\tlet url = `http://localhost:${port}/${collection}/`;\n\t\tif (parameter) {\n\t\t\turl += `${parameter}/`;\n\t\t}\n\t\tif (urlParametersAsString) {\n\t\t\turl += `?${urlParametersAsString}`;\n\t\t}\n\t\treturn url;\n\t}", "get url() { return this.serializeUrl(this.currentUrlTree); }", "getURL(url) {\n return this.isDev() ? path.join(\"../\", url) : url\n }", "function getAppUrl() {\n return ScriptApp.getService().getUrl();\n}", "get url() {\n return this._url;\n }", "get url() {\n return this._url;\n }", "get url() {\n return this._url;\n }" ]
[ "0.85939044", "0.65802443", "0.6441155", "0.63101816", "0.6253491", "0.6249955", "0.6213188", "0.61693436", "0.61632526", "0.6115959", "0.60682034", "0.6053865", "0.6004255", "0.59871596", "0.5970671", "0.5953317", "0.5936661", "0.59359694", "0.5930209", "0.5926616", "0.592546", "0.5923854", "0.5917487", "0.58731514", "0.58731514", "0.58731514", "0.58731514", "0.58731514", "0.587219", "0.58717084", "0.5856171", "0.5855802", "0.58543485", "0.5847401", "0.5846148", "0.58317614", "0.5830958", "0.58203334", "0.578818", "0.5781151", "0.5776515", "0.5776515", "0.57645714", "0.5762014", "0.5750255", "0.5750255", "0.5750255", "0.5750255", "0.5750255", "0.5749318", "0.5741244", "0.57250524", "0.5721102", "0.5697534", "0.5695064", "0.5695064", "0.569326", "0.56819904", "0.56732714", "0.5660463", "0.56443924", "0.5640859", "0.56364673", "0.5636417", "0.56219125", "0.5618572", "0.5617255", "0.56149083", "0.56132865", "0.56085217", "0.5608518", "0.5602153", "0.55921686", "0.5588276", "0.5581988", "0.55774", "0.5576001", "0.5572625", "0.55709106", "0.55660576", "0.5549308", "0.55417573", "0.55348593", "0.5533653", "0.5531775", "0.5531018", "0.55300623", "0.55166173", "0.55163246", "0.55069137", "0.54967403", "0.54967403", "0.5494842", "0.5493682", "0.5491199", "0.5489993", "0.5488735", "0.5485659", "0.5485659", "0.5485659" ]
0.8568036
1
Determine whether or not we have a querystring.
function hasQueryString() { return location.href.indexOf("?") !== -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasQuery(url) {\n return (url.indexOf(\"?\") === -1);\n }", "function url_query( query ) {\n var results = new RegExp(\"[\\\\?&]\"+query.replace(/[\\[]/,\"\\\\\\[\").replace(/[\\]]/,\"\\\\\\]\")+\"=([^&#]*)\").exec( window.location.href );\n return results !== null ? results[1] : false\n}", "function checkURLParam ( term ) {\r\n var url = window.location.href;\r\n\r\n if( url.indexOf('?' + term) != -1 )\r\n return true;\r\n else if( url.indexOf('&' + term) != -1 )\r\n return true;\r\n\r\n return false\r\n }", "function isGet(){\n var url=window.location.href;\n return ( url.indexOf(\"?\")>0 );\n}", "static getQuery(url) {\n let pieces = url.split('?');\n if (pieces.length == 2) {\n return pieces[1];\n } else {\n return false;\n }\n }", "function hasUrlParameters() {\n return countUrlParameters() > 0;\n}", "function q(){\n\t// This function is anonymous, is executed immediately and\n\t// the return value is assigned to QueryString!\n\tvar query_string = {};\n\tvar query = window.location.search.substring(1);\n\tvar found = false;\n\tvar vars = query.split(\"&\");\n\tfor (var i=0;i<vars.length;i++) {\n\t\tvar pair = vars[i].split(\"=\");\n\t\tif(pair[i] != \"\"){\n\t\t\t// If first entry with this name\n\t\t\tif (typeof query_string[pair[0]] === \"undefined\") {\n\t\t\t\tquery_string[pair[0]] = decodeURIComponent(pair[1]);\n\t\t\t// If second entry with this name\n\t\t\t} else if (typeof query_string[pair[0]] === \"string\"){\n\t\t\t\tvar arr = [ query_string[pair[0]],decodeURIComponent(pair[1]) ];\n\t\t\t\tquery_string[pair[0]] = arr;\n\t\t\t// If third or later entry with this name\n\t\t\t} else {\n\t\t\t\tquery_string[pair[0]].push(decodeURIComponent(pair[1]));\n\t\t\t}\n\t\t\tfound = true;\n\t\t}\n\t}\n\t//if(found) console.log(\"query_string: \", query_string);\n\t//\telse console.log(\"no query_string\");\n\treturn query_string;\n}", "function QueryString() {\n var query_string = {};\n var query = window.location.search.substring(1);\n return query;\n}", "function QueryString() {\n var query_string = {};\n var query = window.location.search.substring(1);\n return query;\n}", "function isUrlSearchParams(value) {\n return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;\n}", "function ParsedQueryString() {}", "function ParsedQueryString() {}", "function matchQueryParams(str){var match=str.match(QUERY_PARAM_RE);return match?match[0]:'';}", "function getQueryParam(param) {\n var result = window.location.search.match(new RegExp('(\\\\?|&)' + param + '(\\\\[\\\\])?=([^&]*)'));\n\n return result ? result[3] : false;\n}", "function matchUrlQueryParamValue(str){var match=str.match(QUERY_PARAM_VALUE_RE);return match?match[0]:'';}", "function parseQueryString()\n{\n\tif (window.location.hash)\n\t\tcaddy.hash = window.location.hash.substr(1);\n\n\tvar qs = window.location.search;\n\tif (!qs)\n\t\treturn caddy.queryString;\n\tif (qs.length > 0 && qs[0] == \"?\")\n\t\tqs = qs.substring(1);\n\tvar pairs = qs.split(\"&\");\n\tfor (var i = 0; i < pairs.length; i++)\n\t{\n\t\tvar pair = pairs[i];\n\t\tkeyVal = pair.split(\"=\", 2);\n\t\tif (keyVal.length == 1)\n\t\t\tkeyVal.push(true);\t// empty values default to boolean true so we can know they exist (this is our convention)\n\t\tvar key = decodeURIComponent(keyVal[0].replace(/\\+/g, \" \"));\n\t\tvar val = typeof keyVal[1] === 'string'\n\t\t\t\t\t? decodeURIComponent(keyVal[1].replace(/\\+/g, \" \"))\n\t\t\t\t\t: keyVal[1];\n\t\tcaddy.queryString[key] = val;\n\t}\n\n\treturn caddy.queryString;\n}", "function isURLSearchParams(obj) {\n // Duck-typing as a necessary condition.\n if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n return false;\n }\n\n // Brand-checking and more duck-typing as optional condition.\n return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function $_GET(key) {\n var p = window.location.search;\n p = p.match(new RegExp(key + '=([^&=]+)'));\n return p ? p[1] : false;\n }", "hasNotValid() {\n return this.props.location.search.indexOf('not-valid') !== -1\n }", "getQueryString( key ) {\n var value = window.location.search.match( new RegExp( \"[?&]\" + key + \"=([^&]*)(&?)\", \"i\" ) );\n return value ? value[1] : value;\n }", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function isURLSearchParams(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function GetQueryString(name){\r\n\t var reg = new RegExp(\"(^|&)\"+ name +\"=([^&]*)(&|$)\");\r\n\t var r = window.location.search.substr(1).match(reg);\r\n\t if(r!=null)return unescape(r[2]); return null;\r\n\t}", "function isURLSearchParams(obj) {\n // Duck-typing as a necessary condition.\n if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n return false;\n } // Brand-checking and more duck-typing as optional condition.\n\n\n return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "get queryString(){\n\t\tconst qm = this._href.lastIndexOf('?');\n\t\tif(qm < 0){\n\t\t\treturn '';\n\t\t}\n\t\treturn this._href.substring(qm);\n\t}", "get isQuery()\n\t{\n\t\texchWebService.commonAbFunctions.logInfo(\"exchangeAbFolderDirectory: get isQuery\");\n\t\tif (this._searchQuery) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function GetQueryString(name) {\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\", \"i\");\n var r = window.location.search.substr(1).match(reg);\n if (r != null) return (r[2]);\n return null;\n}", "function isURLSearchParams$1(obj) {\n\t// Duck-typing as a necessary condition.\n\tif (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {\n\t\treturn false;\n\t}\n\n\t// Brand-checking and more duck-typing as optional condition.\n\treturn obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';\n}", "function getQuerystring(e,a){null==a&&(a=\"\"),e=e.replace(/[\\[]/,\"\\\\[\").replace(/[\\]]/,\"\\\\]\");var t=new RegExp(\"[\\\\?&]\"+e+\"=([^&#]*)\"),o=t.exec(window.location.href);return null==o?a:o[1]}", "function checkURL() {\n\t\tvar url = window.location.href;\n\t\t\n\t\tif(url != lastQuery) {\n\t\t\tvar parsedURL = parseURL(url);\n\t\t\t\n\t\t\tvar routeAndParams = findMatchingRoute(parsedURL);\n\t\t\t\n\t\t\tif(routeAndParams !== false) {\n\t\t\t\ttry {\n\t\t\t\t\tvar route = routeAndParams[0];\n\t\t\t\t\tvar params = routeAndParams[1];\n\t\t\t\t\t\n\t\t\t\t\troute[2].call(route[3], params);\n\t\t\t\t} catch(e) {\n\t\t\t\t\tif(e.message != \"StopProcessingHandlerException\") {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlastQuery = url;\n\t\t}\n\t}", "function checkUrl() {\n\t\t\t\t\tif (UriParameters.fromQuery(window.location.search).get(\"sap-ui-xx-asyncRouting\") === \"true\") {\n\t\t\t\t\t\tLog.warning(\"Activation of async view loading in routing via url parameter is only temporarily supported and may be removed soon\", \"Target\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "function checkUrl() {\n\t\t\t\t\tif (UriParameters.fromQuery(window.location.search).get(\"sap-ui-xx-asyncRouting\") === \"true\") {\n\t\t\t\t\t\tLog.warning(\"Activation of async view loading in routing via url parameter is only temporarily supported and may be removed soon\", \"Target\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "function umGetQueryString(name){\n var reg = new RegExp(\"(^|&)\"+ name +\"=([^&]*)(&|$)\");\n var r = window.location.search.substr(1).match(reg);\n if(r!=null)return unescape(r[2]); return null;\n}", "getQueryVariable(variable){\n var query = window.location.search.substring(1);\n var vars = query.split(\"&\");\n for (var i=0;i<vars.length;i++) {\n var pair = vars[i].split(\"=\");\n if(pair[0] === variable){return pair[1];}\n }\n return(false);\n }", "function isFiltered() {\n return (_queryText != undefined && _queryText.length);\n }", "function getQueryVariable( key, queryString ) {\n var query;\n var vars;\n\n if ( typeof queryString === 'string' ) {\n query = queryString;\n } else {\n query = window.location.search.substring( 1 );\n }\n\n vars = query.split( '&' );\n\n for ( var i = 0; i < vars.length; i++ ) {\n var pair = vars[i].split( '=' );\n if ( pair[0] === key ) {\n return pair[1];\n }\n }\n\n return false;\n}", "function checkUrl() {\n\t\t\t\t\tif (UriParameters.fromQuery(window.location.search).get(\"sap-ui-xx-asyncRouting\") === \"true\") {\n\t\t\t\t\t\tLog.warning(\"Activation of async view loading in routing via url parameter is only temporarily supported and may be removed soon\", \"Targets\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n }", "function getQueryString(name)\r\n {\r\n var reg = new RegExp(\"(^|&)\" + name + \"=([^&]*)(&|$)\", \"i\");\r\n var r = window.location.search.substr(1).match(reg);\r\n if (r !== null) return unescape(r[2]); return null;\r\n }", "function get_query_var( name ) {\n\n var match = RegExp('[?&]' + name + '=([^&#]*)').exec(location.href);\n return match && decodeURIComponent(match[1].replace(/\\+/g, ' ')); \n}", "function getQueryString() {\n var result = {}, queryString = location.search.substring(1),\n re = /([^&=]+)=([^&]*)/g, m;\n\n while (m = re.exec(queryString)) {\n result[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);\n }\n\n return result;\n }", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function hasTokensInUrl() {\n\t return Util.hasTokensInHash(window.location.hash);\n\t }", "function matchUrlQueryParamValue(str) {\n var match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function $_GET(q, s) {\n s = s ? s : window.location.search;\n var re = new RegExp(\"&\" + q + \"(?:=([^&]*))?(?=&|$)\", \"i\");\n return (s = s.replace(\"?\", \"&\").match(re)) ?\n typeof s[1] == \"undefined\" ?\n \"\" :\n decodeURIComponent(s[1]) :\n undefined;\n}", "function queryString(req) {\n if (!req.query) {\n var url = parseUrl(req);\n req.query = (url.query) ? qs.parse(url.query, qsOptions) : {};\n }\n return req.query;\n}", "function hashIsEmpty() {\n return !window.location.hash || window.location.hash == \"#\";\n }", "function matchQueryParams(str) {\n var match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n }", "function getQuery(q) {\n\t\t\treturn (window.location.search.match(new RegExp('[?&]' + q + '=([^&]+)')) || [, null])[1];\n\t\t}", "function getQueryString(){ \n zquery = parent.location.search; \n zquery = zquery.substring(1,zquery.length); \n return (zquery);\n}", "function getQuerystring(key) {\n var regex, qs;\n key = key.replace(/[\\[]/, \"\\\\\\[\").replace(/[\\]]/, \"\\\\\\]\");\n regex = new RegExp(\"[\\\\?&]\" + key + \"=([^&#]*)\");\n qs = regex.exec(window.location.href);\n if (qs === null) {\n return null;\n } else {\n return qs[1];\n }\n }", "function urlPathQuery() {\n var hashSlash = location.href.indexOf(hashSlashString);\n\n var pathQuery;\n\n if (hashSlash > -1) {\n pathQuery = location.href.slice(hashSlash + hashSlashString.length);\n }\n else if (isHashMode()) {\n pathQuery = '/';\n }\n else {\n pathQuery = (location.pathname + location.search).slice(1);\n }\n\n return util.normalizePathQuery(pathQuery);\n }", "function parseQuery() {\n var queryString = window.location.search.substr(1);\n // set all parameters to their default values\n param1 = default1;\n if (queryString.length > 0) {\n // if there's a query string, check for each param within it\n var val1 = queryString.match(/.*param1=([^&]+).*/i);\n if (val1) {\n param1 = val1[1];\n }\n }\n}", "function getURLParam(sParam) {\n var sPageURL = decodeURIComponent(window.location.search.substring(1)),\n sURLVariables = sPageURL.split('&'),\n sParameterName,\n i;\n for (i = 0; i < sURLVariables.length; i++) {\n sParameterName = sURLVariables[i].split('=');\n if (sParameterName[0] === sParam) {\n return sParameterName[1] === undefined ? true : sParameterName[1];\n }\n }\n }", "valid() {\n\n return !_.isNil(this.query) && this.query !== '';\n\n }", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function isEmptyQuery(query){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(( query === null || query === 'null' || query === $scope.prevSearchText) ) {\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$scope.prevSearchText = query;\n\t\t\t\t\t\t\t\t\treturn false\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "function matchQueryParams(str) {\n var match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}", "function matchUrlQueryParamValue(str) {\n const match = str.match(QUERY_PARAM_VALUE_RE);\n return match ? match[0] : '';\n}", "function getQueryParameters() {\n\t\tvar mParameters = {};\n\n\t\t// eslint-disable-next-line no-restricted-globals\n\t\tlocation.search.slice(1).split(\"&\").forEach(function (sParameter) {\n\t\t\tvar aParts = sParameter.split(\"=\", 2);\n\n\t\t\tmParameters[aParts[0]] = aParts[1] || true;\n\t\t});\n\n\t\treturn mParameters;\n\t}", "function matchQueryParams(str) {\n var match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}", "function matchQueryParams(str) {\n var match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}", "function matchQueryParams(str) {\n var match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}", "function matchQueryParams(str) {\n var match = str.match(QUERY_PARAM_RE);\n return match ? match[0] : '';\n}" ]
[ "0.76698405", "0.65296245", "0.64351815", "0.6426441", "0.64160204", "0.63882095", "0.63501287", "0.63081115", "0.63081115", "0.62288004", "0.59654313", "0.59654313", "0.59547794", "0.5949005", "0.59307843", "0.5913201", "0.59105915", "0.5848512", "0.5848331", "0.58311474", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5830771", "0.5781662", "0.5756923", "0.5734745", "0.57299334", "0.5713222", "0.56785697", "0.5674812", "0.56539625", "0.56424713", "0.56424713", "0.5641681", "0.5609616", "0.56079215", "0.5599351", "0.5597721", "0.5587824", "0.5587339", "0.5586723", "0.55857396", "0.55640125", "0.55640125", "0.55640125", "0.55640125", "0.5558294", "0.5551627", "0.55292994", "0.55181235", "0.54867685", "0.54797983", "0.54518867", "0.5450906", "0.5449206", "0.54487497", "0.54377604", "0.5430029", "0.5427804", "0.5424466", "0.5424466", "0.5424466", "0.5424466", "0.5424466", "0.5421993", "0.54206806", "0.5419268", "0.5417214", "0.54028547", "0.54028547", "0.54028547", "0.54028547" ]
0.8351022
0
Handle the user's login and what happens next.
function handleLogin() { // If the user is logging in for the first time... if (okta.token.hasTokensInUrl()) { okta.token.parseTokensFromUrl( function success(res) { // Save the tokens for later use, e.g. if the page gets refreshed: okta.tokenManager.add("accessToken", res[0]); okta.tokenManager.add("idToken", res[1]); // Redirect to this user's dedicated room URL. window.location = getRoomURL(); }, function error(err) { alert("We weren't able to log you in, something horrible must have happened. Please refresh the page."); } ); } // If the user is alrdy logged in... else { okta.session.get(function(res) { if (res.status === "ACTIVE") { // If the user is logged in on the home page, redirect to their room page. if (!hasQueryString()) window.location = getRoomURL(); else return enableVideo(); } // If we get here, the user is not logged in. // If there's a querystring in the URL, it means this person is in a // "room" so we should display our passive login notice. Otherwise, // we'll prompt them for login immediately. if (hasQueryString()) { document.getElementById("login").style.display = "block"; enableVideo(); } else { showLogin(); } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async handleLogin () {\n\t\tconst { email, password, teamId } = this.request.body;\n\t\tthis.user = await new LoginCore({\n\t\t\trequest: this\n\t\t}).login(email, password, teamId);\n\t}", "function login() {\n User.login(self.user, handleLogin);\n }", "handleLogin() {\n this.authenticate();\n }", "function handleLogin() {\n if (email === \"\" || password === \"\") {\n alert(\"Please fill out email and password\");\n return;\n }\n dispatch(loginUser(email, password));\n setLoginAttempts(loginAttempts + 1);\n }", "function processLogin() {\n\t\tif (ui.btnLogin.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar dta = {\n\t\t\tuser: ui.login.get(),\n\t\t\tpass: ui.password.get()\n\t\t};\n\n\t\tif (!dta.user.match(/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+$/)) {\n\t\t\tui.login.error(lang.login.errors.wrongMail).focus().select();\n\t\t\treturn;\n\t\t}\n\n\t\tif (!dta.pass) {\n\t\t\tui.password.error(lang.login.errors.noPass).focus();\n\t\t\treturn;\n\t\t}\n\n\t\tui.login.normal();\n\t\tui.password.normal();\n\t\tui.btnLogin.disable();\n\n\t\tapi('post', '/user/login', dta)\n\t\t\t\t.then(function (result) {\n\t\t\t\t\trequire(['central'], function (central) {\n\t\t\t\t\t\tlocalStorage.setItem('cmsLastLogin', dta.user);\n\t\t\t\t\t\tlocalStorage.setItem('cmsUserToken', result.token);\n\t\t\t\t\t\tlocalStorage.setItem('cmsTokenExpires', Date.now() + 28800000);\n\t\t\t\t\t\tui.root.hide();\n\t\t\t\t\t\tcentral.set(result.payload);\n\t\t\t\t\t\tcentral.set('token', result.token);\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(function (error) {\n\t\t\t\t\tui.btnLogin.enable();\n\n\t\t\t\t\tswitch (error.code) {\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\tui.login.error(lang.login.errors.unknownMail).focus().select();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\tui.password.error(lang.login.errors.wrongPass).focus().select();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\tloginLocked(error.data.remaining);\n\t\t\t\t\t\t\tui.password.error(lang.login.errors.accountLocked.replace(/%t/, error.data.remaining));\n\t\t\t\t\t}\n\t\t\t\t}).done();\n\t\t//ui.password.error('Wrong password!').focus().select();\n\t}", "function loginHandler(){\n\tif((usernameField.value != \"\") & (passwordField.value != \"\")){\n\t\tconsole.log(\"logging in...\");\n\t\tuser.set(\"username\", usernameField.value);\n\t\tuser.set(\"password\", passwordField.value);\n\t\tuser.logIn({\n\t\t\tsuccess:function (user){\n\t\t\t\tconsole.log(\"login worked\");\n\t\t\t\tcurrentUser = Parse.User.current();\n\t\t\t\tloggedIn();\n\t\t\t}, \n\t\t\terror: function (user, error){\n\t\t\t\tconsole.log(\"error \"+ error.code);\n\t\t\t}\n\t\t});\n\t} else if((usernameField.value == \"\") && (passwordField.value != \"\")) {\n\t\talert(\"Please enter your username\");\n\t} else if((usernameField.value != \"\") && (passwordField.value == \"\")) {\n\t\talert(\"Please enter your password\");\n\t} else {\n\t\talert(\"Error\");\n\t}\n}", "function handleLogin() {\r\n if ((!assetEmpty(email) && !assetEmpty(password))\r\n && assertEquals(email, registeredState.email)\r\n && assertEquals(password, registeredState.password)\r\n ) {\r\n setPassword('');\r\n global.nameLogin = registeredState.name;\r\n navigation.replace('BottomStack');\r\n } else {\r\n Alert.alert(\r\n 'Não foi possível entrar:',\r\n 'E-mail/senha incorretos!'\r\n );\r\n }\r\n }", "function handleLogin() {\n renderLoading(true);\n\n // check for valid password entry, and notifies user if invalid\n const password = document.getElementById('login-form-input').value;\n if (!password || typeof password !== 'string' || !password.trim()) {\n renderLoading(false);\n renderSubmitInfo(':(');\n return;\n }\n\n // signs user in with Firebase Authentication, and notifies user of error if occurring\n firebase.auth().signInWithEmailAndPassword(USER_EMAIL, password).catch((error) => {\n console.error(error);\n renderLoading(false);\n renderSubmitInfo(`:(`);\n });\n}", "function handleLogin(response) {\n\t\t\t// error handling\n\t\t\tif (response && response.error) {\n\t\t\t\tconsole.log('Error on UserModule', 'Can\\'t login', response);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// if there's any callback there, just call him\n\t\t\tif (typeof callback === 'function') { callback(args); }\n\t\t}", "function proceed () {\n\t\t\t/*\n\t\t\t\tIf the user has been loaded determine where we should\n\t\t\t\tsend the user.\n\t\t\t*/\n\t\t\tif (store.getters.getBearerToken) {\n\t\t\t\tnext();\n\t\t\t} else {\n\t\t\t\t//user is not logged in\n\t\t\t\tconsole.log('you are not logged in');\n\t\t\t}\n\t\t}", "function handleLoginOnsubmit(evt) {\n evt.preventDefault()\n const alluser = {...loginObject}\n\t\thttpClient.logIn(alluser).then(user => {\n console.log(\"user\", user )\n\t\t\tif(user) {\n window.location.replace(\"/home\") \n this.props.onLoginSuccess(user)\n\t\t\t\tthis.props.history.push('/')\n }\n validate(user)\n }).catch(validate);\n clearForm();\n \n }", "function login() {\n // We give username and password to log the user in\n // In case there is something wrong with the credentials\n // we use the setError to display it\n // If the user logs in successfully then the loginCallback is called.\n setLoading(true);\n databaseLogin(username, password, loginCallback, showError);\n }", "function handleLoginRequest(data) {\r\n if (loggedIn) {\r\n util.error(\"Already logged in.\");\r\n return;\r\n }\r\n\r\n // Cancel previously scheduled login timeout event\r\n clearTimeout(loginTimer);\r\n util.log(\"Detected login request\");\r\n loginTimer = scheduleLoginRequestTimeout(TIMEOUT_LOGIN_REQUEST_IN_SECONDS);\r\n\t\r\n var login = data.toString(\"utf-8\");\r\n\r\n if (login.length != 48) {\r\n util.error(\"Unexpected login packet size\");\r\n con.end(\"Malformed login packet [expected size=48, received=\" + login.length + \"]\");\r\n clearTimeout(loginTimer);\r\n } else {\r\n var uname = login.substr(1, 6);\r\n var password = login.substr(7, 10);\r\n var session = login.substr(17, 10).trim();\r\n var seqno = login.substr(27, 20);\r\n\r\n util.debug(util.format(\"Login request [uname=%s, password=%s, session=%s, seqno=%s]\", uname, password, session, seqno));\r\n\r\n if (!validLogin(uname, password)) {\r\n\tutil.error(\"Invalid login.\");\r\n\tcon.end(\"J\" + \"A\\n\");\r\n\tclearTimeout(loginTimer);\r\n\treturn;\r\n } \r\n debugger;\r\n if (session && session.match(/^\\s+/)) {\r\n if (!validSession(session)) {\r\n util.error(\"Invalid session.\");\r\n\t con.end(\"JS\\n\");\r\n\t clearTimeout(loginTimer);\r\n\t return;\r\n }\r\n } \r\n \r\n loggedIn = true;\r\n // TODO: handle bad input \r\n currentSeqno = parseInt(seqno);\r\n util.log(\"Successful login!\");\r\n con.write(\"A\" + s.pad(sessionid, 10) + s.pad(\"1\", 10) + \"\\n\")\r\n // schedule server heartbeats\r\n scheduleServerHeartbeat();\r\n scheduleClientHeartbeatMonitor();\r\n scheduleMessagePump(seqno);\r\n // schedule client heartbeat monitor\r\n\t \r\n }\r\n }", "function proceed() {\n\t\t/*\n\t\t\tIf the user has been loaded determine where we should\n\t\t\tsend the user.\n\t\t*/\n if (store.getters.getUserLoadStatus == 2) {\n next();\n } else if (store.getters.getUserLoadStatus == 3) {\n //user is not logged in\n console.log('you are not logged in');\n }\n }", "async function handleLogin() {\n if (username.match(/(^[A-Za-z]{1,10})([ ]{0,1})([A-Za-z]{3,10})$/)) {\n\n setItemStorage('username', username);\n\n const userExists = await findUser();\n if (userExists === false) {\n const data = { name: username };\n postUserData(data);\n }\n\n props.onLogin(username);\n }\n\n else if (username === null || username === \"\") {\n alert('Error: Please Fill the Required Field')\n }\n else {\n alert('Error: user input must only contain letters between 3 to 10 ')\n }\n }", "async handleLogin(event) {\n try {\n\n //prevent actual submit and page refresh\n event.preventDefault();\n\n const userRepository = new UserRepository();\n\n\n //Find the username and password\n const username = $(this).find(\"[name='login-username']\").val();\n const password = $(this).find(\"[name='login-password']\").val();\n\n // Check if value exists\n if (!username || !password) {\n notificationManager.alert(\"warning\", \"Vul alle velden in!\");\n return false;\n }\n\n\n if (password.length < 6) {\n notificationManager.alert(\"warning\", \"Wachtwoord is te kort!\");\n return false;\n }\n\n //await keyword 'stops' code until data is returned - can only be used in async function\n const user = await userRepository.login(username, password);\n\n sessionManager.set(\"userID\", user.userID);\n notificationManager.alert(\"success\", \"U wordt ingelogd!\");\n location.reload();\n } catch (e) {\n console.log(e);\n notificationManager.alert(\"error\", \"Account bestaat niet\");\n }\n }", "function doLogin() {\n vm.processing = true;\n\n // clear the error\n vm.error = '';\n\n Auth\n .login(vm.loginData.username, vm.loginData.password)\n .success(function(data) {\n vm.processing = false;\n\n // if a user successfully logs in, redirect to users page\n if (data.success) {\n $location.path('/users');\n } else {\n vm.error = data.message;\n }\n });\n }", "function handleLoginOnStartUp() {\n //if user is signed in, show their profile info\n if (blockstack.isUserSignedIn()) {\n var user = blockstack.loadUserData().profile\n //blockstack.loadUserData(function(userData) {\n // showProfile(userData.profile)\n //})\n }\n //signin pending, \n else if (blockstack.isSignInPending()) {\n blockstack.handlePendingSignIn.then((userData) => {window.location = window.location.origin})\n }\n\n}", "function handleLogin(event) {\n event.preventDefault();\n const elements = event.currentTarget.elements;\n const username = elements.username.value;\n const password = elements.password.value;\n const errors = validateForm({ username, password });\n setErrors(errors)\n if (!Object.keys(errors).length) {\n doLogin({ username, password });\n }\n }", "function loginUserCallback() {\n loginUser();\n }", "function handleLogin(request, response) {\r\n\tvar result = {success: false};\r\n\r\n\t// We should do better error checking here to make sure the parameters are present\r\n\tif (request.body.username == \"admin\" && request.body.password == \"password\") {\r\n\t\trequest.session.user = request.body.username;\r\n\t\tresult = {success: true};\r\n\t}\r\n\r\n\tresponse.json(result);\r\n}", "handleSignIn() {\n const loginRequest = {};\n loginRequest[USERNAME_ID] = this.state.formFields[USERNAME_ID];\n loginRequest[PASSWORD_ID] = this.state.formFields[PASSWORD_ID];\n sendLoginRequest(loginRequest, true, this.state.formFields[USERNAME_ID], null);\n }", "handleUserLogin(event) {\n event.preventDefault();\n\n Meteor.loginWithPassword({ email: this.state.email }, this.state.password, (err) => {\n if (err) this.setState({\n errorMessage: err.reason,\n });\n else this.setState({\n success: true,\n errorMessage: '',\n });\n });\n }", "function onLogin() {}", "function userLogin() {\n /**-----------------------------------------------------------------------*/\n /** Get the user's name and password as entered into the login form: */\n /**-----------------------------------------------------------------------*/\n var name = document.querySelector('[name=\"username\"]').value;\n var password = document.querySelector('[name=\"password\"]').value;\n\n /**-----------------------------------------------------------------------*/\n /** Check if the user is authorized to use the application: */\n /**-----------------------------------------------------------------------*/\n authenticateUser(name, password, userIsAuthorised);\n}", "function proceed () {\n\t\t/*\n\t\t\tIf the user has been loaded determine where we should\n\t\t\tsend the user.\n\t\t*/\n if ( store.getters.getUserLoadStatus() == 2 ) {\n\t\t\t/*\n\t\t\t\tIf the user is not empty, that means there's a user\n\t\t\t\tauthenticated we allow them to continue. Otherwise, we\n\t\t\t\tsend the user back to the home page.\n\t\t\t*/\n\t\t\tif( store.getters.getUser != '' ){\n \tnext();\n\t\t\t}else{\n\t\t\t\tnext('/cafes');\n\t\t\t}\n }\n\t}", "async function handleLogin(e) {\n e.preventDefault();\n setLoading(true);\n if (!email || !password) {\n toast.error(\"Preencha e-mail e senha para continuar!\");\n setLoading(false);\n } else {\n try {\n await api\n .post(\"/users/login\", {\n email,\n password,\n })\n .then(function (response) {\n if (response.data.token) {\n setLoading(false);\n login(response.data.token);\n history.push(\"/inicio\");\n }\n });\n } catch (err) {\n console.log(err.response);\n if (err.response.data.errorCode === 401) {\n toast.error(\"E-mail e/ou senha incorretos!\");\n setLoading(false);\n localStorage.clear();\n } else {\n toast.error(\"Desculpe, ocorreu um erro!\");\n setLoading(false);\n localStorage.clear();\n }\n }\n }\n }", "function login() {}", "function handleLogin(event){\n event.preventDefault();\n loginLoader.style.display = \"block\";\n\n const email = loginForm['username'].value;\n const password = loginForm['password'].value;\n\n auth.signInWithEmailAndPassword(email,password).then( cred =>{\n console.log(cred.user);\n errorLoader.style.display = \"none\";\n loginForm.reset();\n window.location.href = \"/pages/adminDashboard.html\";\n })\n .catch(function( error ){\n loginLoader.style.display = \"none\";\n errorLoader.style.display = \"block\";\n });\n\n\n}", "async function handleLogin () {\n const passLength = passInput.length;\n if (emailInput.length > 0 && passLength > 0) {\n if (passLength > 7) {\n setLoginStatus(\"Logging in\");\n try {\n await firebase.auth().signInWithEmailAndPassword(emailInput, passInput)\n setMessage(\"Logged in! Please wait while you are redirected.\")\n setOpen(true);\n setLoginStatus('Login success!')\n history.push(\"/homepage\")\n } catch (error) {\n setLoginStatus('')\n setMessage(\"Error. Double check your credentials!\")\n setOpen(true);\n }\n setLoginStatus('')\n }\n else {\n setLoginStatus(\"Error: password length has to be 8 or more characters\");\n }\n }\n }", "handleLogin(req, res) {\n self.services.getUser(req.validBody.username)\n .then(data => {\n if (!data) {\n self.sendError(res, self.CODES.UNAUTHORIZED, \"No such username: \" + req.validBody.username);\n } else if (data.password !== req.validBody.password) {\n self.sendError(res, self.CODES.UNAUTHORIZED, \"Invalid password given: \" + req.validBody.password);\n } else {\n self.sendData(res, data);\n }\n })\n .catch(error => {\n self.sendError(res, self.CODES.INTERNAL_ERROR, \"An error occured trying to login\");\n });\n }", "function handleSimpleLogin () {\n $scope.setFormStatus('simpleLogin');\n }", "handleLogin (username, password) \n\t{\n\t\t//Sends POST Request To Backend Requesting To Log User Into Uh-OH!\n\t\tvar url = 'http://localhost:8000/login/loginuser/';\n\t\tvar xhr = new XMLHttpRequest()\n\t\txhr.onreadystatechange = function() {\n\t\t\t//Case 1: Login Successful\n\t\t\tif (xhr.readyState == XMLHttpRequest.DONE) \n\t\t\t{\n\t\t\t\tif (xhr.status == 200)\n\t\t\t\t{\n\t\t\t\t\talert(\"Successfully Logged In!\");\n\t\t\t\t\t//Store Login Token Return By Backend = Name of Logged In User.\n\t\t\t\t\tthis.setState({loggedIn: xhr.responseText});\n\t\t\t\t\tlocalStorage.setItem('loggedinuser', xhr.responseText);\n\t\t\t\t\t//Redirect User Now To Homepage.\n\t\t\t\t\twindow.location.href = \"/\"\n\t\t\t\t} \n\t\t\t\t//Case 2: User Login Failed + Display Error Message.\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\talert(xhr.responseText);\n\t\t\t\t}\n\t\t\t}\n\t\t}.bind(this);\n\t\t//Send Appropriate Form Data To Backend.\n\t\txhr.open('POST', url)\n\t\tconst form = new FormData()\n\t\tform.set('username', username)\n\t\tform.set('password', password)\n\t\txhr.send(form)\n\t}", "function login(context) {\n const username = context.params.username;\n const password = context.params.password;\n\n userModel.login(username, password)\n .then(function (res) {\n userModel.saveSession(res);\n handler.showInfo(`Login successful.`);\n context.redirect('#/home/meme');\n }).catch((err) => {\n handler.handleError(err);\n $('input[name=\"username\"]').val('');\n $('input[name=\"password\"]').val('');\n });\n }", "function handleLogin(user) {\n clearLoginError()\n axios.post(`${process.env.REACT_APP_DB_URL}/users/login`, user)\n .then((loggedInUser) => {\n ls.setItem('token', loggedInUser.data.token)\n ls.setItem('user_id', loggedInUser.data.user_id)\n setLoginStatus(true)\n })\n .catch((err) => {\n setLoginError(err.response.data)\n })\n }", "function handleLoginResponse(_event) {\n let xhr = _event.target;\n if (xhr.readyState == XMLHttpRequest.DONE) {\n if (xhr.response == \"Login information correct\") {\n console.log(\"Login completed\");\n loadUserPictureOverview();\n }\n else if (xhr.response == \"Login information faulty\") {\n alert(\"User or Password incorrect\");\n initMSPaint(); //jeder hasst es, wenn man sich vertippt hat muss man alles neu eingeben hihihi\n }\n }\n }", "function proceed () {\n\t\t\tif (!store.getters.getBearerToken) {\n\t\t\t\tnext ();\n\t\t\t} else {\n\t\t\t\tconsole.log('Already logged in');\n\t\t\t} \n\t\t}", "function handleLogin(\n success,\n sessionKeyFromServer,\n userInfoFromServer,\n errorMessage)\n {\n if (success)\n {\n sessionKey = sessionKeyFromServer;\n userInfo = new UserInfo(userInfoFromServer);\n // The isPersistentSessionRequested property was set when\n // the Session object received the login request\n isPersistentSession = isPersistentSessionRequested;\n\n if (isPersistentSession === true)\n localStorage[STORAGEKEY_SESSIONKEY] = sessionKey;\n\n isPersistentSessionRequested = undefined;\n validationEnds();\n }\n else\n {\n isPersistentSessionRequested = undefined;\n validationEnds(errorMessage);\n }\n }", "function handleSubmit(e) {\n // prevent default\n e.preventDefault()\n // clear errors if any\n setUsernameError({\n status: false,\n message: ''\n })\n setPasswordError({\n status: false,\n message: ''\n })\n // log in\n handleLogin({\n username: username,\n password: password\n })\n }", "function login() {\n var user = null;\n command_line.prompt('login:');\n // don't stor logins in history\n if (settings.history) {\n command_line.history().disable();\n }\n command_line.commands(function(command) {\n try {\n echo_command(command);\n if (!user) {\n user = command;\n command_line.prompt('password:');\n command_line.mask(true);\n } else {\n command_line.mask(false);\n self.pause();\n if (typeof settings.login != 'function') {\n throw \"Value of login property must be a function\";\n }\n settings.login(user, command, function(user_data) {\n if (user_data) {\n var name = settings.name;\n name = (name ? '_' + name : '');\n $.Storage.set('token' + name, user_data);\n $.Storage.set('login' + name, user);\n //restore commands and run interpreter\n command_line.commands(commands);\n // move this to one function init.\n initialize();\n } else {\n self.error('Wrong password try again');\n command_line.prompt('login:');\n user = null;\n }\n self.resume();\n if (settings.history) {\n command_line.history().enable();\n }\n });\n }\n } catch (e) {\n display_exception(e, 'LOGIN', self);\n throw e;\n }\n });\n }", "function detectLogin()\n {\n $.when(api.whoami()).done(function(user)\n {\n // update the UI to reflect the currently logged in user.\n topnav.update(user.firstName + ' ' + user.lastName);\n }).fail(function()\n {\n topnav.clear();\n });\n }", "function login(ev) {\n ev.preventDefault();\n\n // Login and redirect to user page\n apiLogin(user.email, user.password).then((isSuccess) => {\n if (isSuccess) {\n // Fetch user data before redirecting\n const successFetch = fetchUserData();\n\n if (successFetch) {\n history.push(\"/feed\");\n } else {\n history.push(\"/login\");\n }\n } else {\n history.push(\"/login\");\n }\n });\n }", "function handleLogin (e) {\n e.preventDefault();\n userName = inputElUserName.value;\n localStorage.userName = JSON.stringify(userName);\n window.location = 'profile/profile.html';\n}", "login(e) {\n e.preventDefault();\n // Here, we call an external AuthService. We’ll create it in the next step\n // Auth.login(this.state.username, this.state.password)\n // .catch(function(err) {\n // console.log(\"Error logging in\", err);\n // });\n }", "handleSignIn() {\n // Sign in the user -- this will trigger the onAuthStateChanged() method\n\n }", "function authLogin() {\n\t\tpopup(tools.urlLogin, 'BOM - Login', 302, 320);\n\t\teventer(messageEvent, authLoginSuccess, false);\n\t}", "function handleLogin(socket, data) {\r\n\tvar path = 'users/' + data.user + '.json';\r\n\tif (data.isSkin) {\r\n\t\tvar p = getUserById(socket.id);\r\n\t\tif (!p.isLoggedIn) {\r\n\t\t\tlog(2, 'User uploaded skin before logging in');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tupdateSaveAttr(p.name, 'skin', data.skin);\r\n\t\treturn;\r\n\t}\r\n\tif (data.newUser) {\r\n\t\tvar newData = JSON.stringify({\r\n\t\t\tpass: data.pass\r\n\t\t});\r\n\t\tfs.writeFileSync(path, newData);\r\n\t\tconsole.log('New user has been created, \\'%s\\'', data.user);\r\n\t\tsocket.emit('loginReturn', 'created_user');\r\n\t} else {\r\n\t\tvar userExist = fs.existsSync(path);\r\n\t\tif (!userExist) {\r\n\t\t\tsocket.emit('loginReturn', 'unknown_user');\r\n\t\t\tlog(0, 'Unknown user, asking client if they want to create one');\r\n\t\t} else {\r\n\t\t\tvar user = JSON.parse(fs.readFileSync(path));\r\n\t\t\tif (user.pass == data.pass) {\r\n\t\t\t\tlog(0, 'User ' + data.user + ' has logged in');\r\n\t\t\t\tsocket.emit('loginReturn', 'logged_in');\r\n\t\t\t\tvar p = getUserById(socket.id);\r\n\t\t\t\tif (p) {\r\n\t\t\t\t\tp.isLoggedIn = true;\r\n\t\t\t\t\tp.name = data.user;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlog(2, 'No user object exists when logging in');\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsocket.emit('loginReturn', 'bad_password');\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "async doLogin () {\n\t\tconst loginHelper = new LoginHelper({\n\t\t\trequest: this.request,\n\t\t\tuser: this.user,\n\t\t\tloginType: this.loginType\n\t\t});\n\t\tif (this.notTrueLogin) {\n\t\t\tawait loginHelper.allowLogin();\n\t\t} \n\t\telse {\n\t\t\tthis.responseData = await loginHelper.login();\n\t\t}\n\t}", "login() {\n let that = this;\n if (!this.user) {\n this.clear();\n loadTemplate('templates/login.html',function(responseText) {\n hideMenu();\n $('#content').html(eval('`' + responseText + '`'));\n $('#loginAlert').hide();\n let loginForm = $('#loginForm');\n\n loginForm.submit(function(event) {\n event.preventDefault();\n deleteCookie('connect.sid');\n let username = $('input[name=username]').val();\n let password = $('input[name=password]').val();\n loadTemplate('api/login',function(userData) {\n that.user = JSON.parse(userData);\n /* First time we log in */\n if (that.user.defaultSubject === 'default') {\n console.log(\"addSubject in login\");\n addSubject(updateFromServer);\n //updateFromServer();\n /* We are veteran/recurrent users */\n }else {\n setCookie('user',userData,7);\n updateFromServer();\n }\n },'POST','username=' + username + '&password=' + password,false);\n return false; //Avoid form submit\n });\n });\n }else {\n generateMenu();\n that.getTemplateRanking();\n }\n }", "function checkUserLogin() {\n if (!user) {\n loginWithRedirect()\n } else {\n getUserTeam();\n }\n }", "function localLogin() {\n Message.loading();\n User.login({}, LoginModel.form).$promise\n .then(function(userWrapper) {\n Message.hide();\n console.log(\"---------- userWrapper ----------\");\n console.log(userWrapper);\n AppStorage.user = userWrapper.user;\n AppStorage.token = userWrapper.token;\n AppStorage.isFirstTime = false;\n U.goToState('Main.MainTab.PostList.PostListRecent', null, 'forward');\n })\n .catch(function(err) {\n console.log(\"---------- err ----------\");\n console.log(err);\n if (err.status === 403) {\n return Message.alert('로그인 알림', '비밀번호/이메일이 틀렸습니다. 다시 입력해주세요');\n } else {\n return Message.alert();\n }\n });\n }", "async doLogin () {\n\t\tthis.responseData = await new LoginHelper({\n\t\t\trequest: this,\n\t\t\tuser: this.user,\n\t\t\tloginType: this.loginType\n\t\t}).login();\n\t}", "function login() {\n\n\t\t// Check for arguments. The first argument, could be a callback\n\t\t// Because some actions need login first\n\t\tvar args = slice.call(arguments, 0), callback = args.shift();\n\n\t\t// Handle the response of login\n\t\tfunction handleLogin(response) {\n\t\t\t// error handling\n\t\t\tif (response && response.error) {\n\t\t\t\tconsole.log('Error on UserModule', 'Can\\'t login', response);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// if there's any callback there, just call him\n\t\t\tif (typeof callback === 'function') { callback(args); }\n\t\t}\n\n\t\t// Login with facebook\n\t\tFB.login(handleLogin, { scope: u.SCOPE });\n\n\t}", "function handleAuthRoute(state) {\n if (state.req.method === \"GET\" || state.req.method === \"HEAD\") {\n if (state.path.length === 4 && state.path[3] === \"login.html\") {\n server_types_1.serveFile(state, \"login.html\", path.join(state.settings.__assetsDir, \"authenticate\"));\n }\n else if (state.path.length === 4 && state.path[3] === \"transfer.html\") {\n server_types_1.serveFile(state, \"transfer.html\", path.join(state.settings.__assetsDir, \"authenticate\"));\n }\n else {\n state.throw(404);\n }\n return;\n }\n //state.path[3]: \"sendkey\" | \"recievekey\" | \"login\" | \"logout\" | \"pendingpin\"\n if (state.req.method !== \"POST\")\n return state.throw(405);\n if (state.path[3] === \"transfer\") {\n handleTransfer(state);\n }\n else if (state.path[3] === \"pendingpin\") {\n if (Object.keys(pko).length > 1000)\n return state.throwReason(509, \"Too many transfer requests in progress\");\n else\n state.respond(200).json({ pendingPin: getRandomPin() });\n }\n else if (state.path[3] === \"login\") {\n state.recieveBody(true).then(() => {\n if (state.body.length && !state.json)\n return; //recieve body sent a response already\n if (!state.body.length)\n return state.throwReason(400, \"Empty request body\");\n /** [username, type, timestamp, hash, sig] */\n let json = exports.parseAuthCookie(state.json.setCookie);\n if (json.length !== 5)\n return state.throwReason(400, \"Bad cookie format\");\n let { registerNotice } = state.settings.bindInfo.hostLevelPermissions[state.hostLevelPermissionsKey];\n let username = exports.validateCookie(json, registerNotice && [\n \" login attempted with unknown public key\",\n \" \" + state.json.publicKey,\n \" username: \" + json[1],\n \" timestamp: \" + json[2]\n ].join(\"\\n\"));\n if (username) {\n state.setHeader(\"Set-Cookie\", getSetCookie(\"TiddlyServerAuth\", state.json.setCookie, false, state.settings.authCookieAge));\n state.respond(200).empty();\n }\n else {\n state.throwReason(400, \"INVALID_CREDENTIALS\");\n }\n });\n }\n else if (state.path[3] === \"logout\") {\n state.setHeader(\"Set-Cookie\", getSetCookie(\"TiddlyServerAuth\", \"\", false, 0));\n state.respond(200).empty();\n }\n return;\n /* Create cookie for authentication. Can only be secured with HTTPS, otherwise anyone can \"borrow\" it */ {\n const { crypto_generichash_BYTES, crypto_sign_keypair, crypto_sign_detached, crypto_sign_verify_detached, crypto_generichash, from_base64 } = bundled_lib_1.libsodium;\n let keys = crypto_sign_keypair(\"uint8array\");\n // Never use the public key included in a message to check its signature.\n let publicHash = crypto_generichash(crypto_generichash_BYTES, keys.publicKey, undefined, \"base64\");\n let cookie = [\"key\", \"my username\", new Date().toISOString(), publicHash];\n let signed = crypto_sign_detached(cookie[0] + cookie[1] + cookie[2], keys.privateKey, \"base64\");\n cookie.push(signed);\n let request = {\n setCookie: JSON.stringify(signed),\n publicKey: keys.publicKey\n };\n //check the cookie on the server to make sure it is valid\n let valid = crypto_sign_verify_detached(from_base64(signed), cookie[0] + cookie[1] + cookie[2], keys.publicKey);\n }\n /* create secure channel for transferring private key */ {\n const { crypto_kx_client_session_keys, crypto_kx_server_session_keys, crypto_kx_keypair, from_base64, to_base64, randombytes_buf, crypto_secretbox_easy } = bundled_lib_1.libsodium;\n let clientKeys = crypto_kx_keypair(\"uint8array\");\n let clientPublicKey = to_base64(clientKeys.publicKey);\n let senderKeys = crypto_kx_keypair(\"uint8array\");\n let senderPublicKey = to_base64(senderKeys.publicKey);\n //exchange the public keys here\n let clientSession = crypto_kx_client_session_keys(clientKeys.publicKey, clientKeys.privateKey, from_base64(senderPublicKey), \"uint8array\");\n let clientCheck = bundled_lib_1.libsodium.crypto_generichash(Math.max(bundled_lib_1.libsodium.crypto_generichash_BYTES_MIN, 8), \n //server_to_client + client_to_server\n to_base64(clientSession.sharedRx) + to_base64(clientSession.sharedTx), undefined, \"uint8array\");\n let senderSession = crypto_kx_server_session_keys(senderKeys.publicKey, senderKeys.privateKey, from_base64(clientPublicKey), \"uint8array\");\n let senderCheck = bundled_lib_1.libsodium.crypto_generichash(Math.max(bundled_lib_1.libsodium.crypto_generichash_BYTES_MIN, 8), \n //server_to_client + client_to_server\n to_base64(senderSession.sharedTx) + to_base64(senderSession.sharedRx), undefined, \"uint8array\");\n // compare the two checks, they should be exactly the same\n if (senderCheck !== clientCheck)\n throw \"aghhhh!! someone messed with our key!!\";\n //encrypt the auth key on the sender\n let nonce = randombytes_buf(16);\n let encryptedKey = crypto_secretbox_easy(\"KEY PAIR OBJECT JSON\", nonce, senderSession.sharedTx, \"base64\");\n //decrypt on the client\n let decryptedKey = bundled_lib_1.libsodium.crypto_secretbox_open_easy(encryptedKey, nonce, clientSession.sharedRx);\n }\n}", "function doLogin ( event ) {\n\tif ( event ) {\n\t\tevent.preventDefault();\n\t}\n\tconsole.log ( \"doLogin\");\n\trenderForm25 ( event ) ;\n}", "function handleLoginFormSubmit(event){\n event.preventDefault()\n API.loginUser({\n email: loginFormObject.email,\n password: loginFormObject.password,\n })\n .then(res => {\n //if the email and password match a record in the database, send to the home page\n if(res.data){\n history.push(`/`)\n }\n //if the email and password do not match a record in the database, send an alert and keep on login page\n else{\n alert(\"login failed\")\n history.push(`/login`)\n }\n })\n .catch(err => console.log(err))\n }", "async function handleLogin(event) {\n event.preventDefault();\n const userName = formFields.userName.trim();\n const password = formFields.password.trim();\n if (userName !== \"\" && password !== \"\") {\n if (await props.handleLogin(userName, password) === false)\n setFormFields({\n ...formFields,\n error: 'User name or password is incorrect!'\n });\n } else {\n setFormFields({\n ...formFields,\n error: 'Please enter a user name and password!'\n });\n }\n }", "function processLogin( body ) {\n\tvar user, pw;\n\tvar indx = -1;\n\t\n\tsessionID = '';\n\t\n\t// sanity checks, in case someone is hitting this API with weird params - like using curl to break it\n\tif( typeof body.username == undefined) {\t\t\t\t// no username field\n\t\textendedfailure = \" missing first argument!\";\n\t\tconsole.log(extendedfailure);\t\t\t\t\t\t// don't tell them much in case they are trying to determine field names\n\t\treturn false;\n\t}\n\tif( typeof body.password == undefined ) {\t\t\t\t// no password field\n\t\textendedfailure = \" missing 2nd paramter!\";\n\t\tconsole.log(extendedfailure);\n\t\treturn false;\n\t}\n\tconsole.log(\"body.username = \" + body.username);\n\tconsole.log(\"body.password = \" + body.password);\n\t\n\tuser = body.username.trim();\t\t\t\t\t\t// extract the fields we want - remove leading and following spaces\n\tpw = body.password.trim();\n\t\n\tindx = findUser(user);\t\t\t\t\t\t\t\t// find the index of this username in the storage\n\tconsole.log(\"indx = \" + indx);\n\tconsole.log(\" at that point: \" + JSON.stringify(registeredUsers[indx]));\n\t\n\tif( indx === -1 ) {\t\t\t\t\t\t\t\t\t// username not found in array\n\t\textendedfailure = \" invalid username\";\n\t\tconsole.log(extendedfailure);\n\t\treturn false;\n\t}\n\tif( checkPw(indx, pw) === false ) {\t\t\t\t\t// check the input password with the stored hashed password for this user\n\t\textendedfailure = \" wrong password\";\n\t\tconsole.log(extendedfailure);\n\t\treturn false;\n\t}\n\t\n\t// if they get here, they matched username and password\n\tconsole.log (\"username : \" + user + \" successfully logged in!\");\n\t\n\t// use a limited time sessionID for this user\n\tsessionID = (Math.random()*100).toString(36).replace('.','');\n\tconsole.log(\"session id = \" + sessionID);\n\t\n\t// save the current username in this case\n\tusername = user;\n\t\n\t// time this sessionID out after 5 minutes, forcing them to log in again if authenticated function is called\n\tsetTimeout( clearSessionID, 5*60*1000 );\n\treturn true;\n}", "function goLogIn() {\n \n body.innerHTML = renderLoginDiv(email2, pass2, message2);\n assignListener('login2');\n }", "function handleSubmit(event) {\n event.preventDefault();\n\n theFrontApi.login({ email: email, password: password })\n .then((resp) => {\n if (resp.status == 201) {\n console.log('yeet')\n setUser(resp.data.user);\n history.push('/');\n }\n })\n .catch((error) => {\n console.log(error.response);\n if (error.response.status == 401) {\n setError(true);\n setEmail('');\n setPassword('');\n }\n });\n }", "function loginUser(e, data) {\n\t//Disable page refresh with preventDefault\n\t//preventDefault does have some weird behaviors\n\t//so it make cause some UI problems later\n\t//to avoid, use a div instead of a button or input\n\t//and do not submit\n\te.preventDefault();\n\n\t//map values to variables\n\tlet login = data.login[0];\n\tlet email = data.email;\n\tlet password = data.password;\n\n\t//call the graphQL endpoint with the given variables, since its an outside API call its a promise\n\tlogin({ variables: { email: email.value, password: password.value } })\n\t\t.then((res) => {\n\t\t\t//default prompt should display an error\n\t\t\tvar prompt = { title: 'Failed to Login', type: 'error' };\n\t\t\t//if logged in return true from the GRAPHQL API then change prompt\n\t\t\tif (res.data.login) {\n\t\t\t\tprompt = { title: 'Welcome back ' + res.data.login.email + '!', type: 'success' };\n\t\t\t}\n\n\t\t\t//function that calls UI component\n\t\t\tsweatAlert(prompt);\n\t\t})\n\t\t.catch((err) => {\n\t\t\t//This logs the error onto the console\n\t\t\tconsole.error(err + ' => LoginIn View : FAILED AT loginUser');\n\t\t\t//Displays error to user\n\t\t\tsweatAlert({ title: 'Internal Server Error', type: 'error' });\n\t\t});\n}", "_eventLogin() {\n console.info('Successfully logged in! Initializing wiki listeners...');\n this._readLine();\n }", "function login(context) {\n const username = this.params.username;\n const password = this.params.password;\n\n userModel.login(username, password)\n .then(function (res) {\n userModel.saveSession(res);\n handler.showInfo(`Successfully logged in!`);\n viewController.allListings(context);\n }).catch((err) => {\n handler.handleError(err);\n $('input[name=\"username\"]').val('');\n $('input[name=\"password\"]').val('');\n });\n }", "function handleLoginSuccess(data) {\n\n if (data.message) {\n // remove loader\n $scope.loginLoader = false;\n $scope.LoginMessage = data.message;\n } else {\n // handle login success (store info in cookies and redirect to dashboard)\n $cookies.put('managerId', data.id);\n $cookies.put('managerToken', data.token);\n $state.go('loggedIn.hotels');\n }\n }", "function proceed(next) {\n // Check load status\n if (store.getters['login/getUserLoadStatus'] === 2) {\n // Check if the user is logged in & cookies have not expired\n if (\n store.getters['login/isLoggedIn']\n && browserCookies.get('token')\n && browserCookies.get('user_id')\n ) {\n // Clear search bar\n store.commit('dashboard/setSearchTerm', '');\n next();\n } else {\n next({ path: '/login' });\n }\n }\n}", "authenticate(e) {\n e.preventDefault();\n\n if (this.state.username < 5 || !(this.state.username in this.state.data[0])) {\n this.state.usernameCheck = true;\n document.getElementById(\"loginError\").style.display = \"block\";\n } else {\n this.state.usernameCheck = true;\n document.getElementById(\"loginError\").style.display = \"none\";\n }\n\n if (this.state.password < 5 || this.state.password != this.state.data[0][this.state.username]) {\n this.state.passwordCheck = false;\n document.getElementById(\"loginError\").style.display = \"block\";\n } else {\n this.state.passwordCheck = true;\n document.getElementById(\"loginError\").style.display = \"none\";\n }\n\n if (this.state.usernameCheck && this.state.passwordCheck) {\n location.href = \"/\";\n }\n }", "async handleLogin(e)\n {\n await auth.signInWithEmailAndPassword(this.state.email, this.state.password).catch(function(error) {\n // Handle Errors here.\n var errorCode = error.code;\n var errorMessage = error.message;\n // [START_EXCLUDE]\n if (errorCode === 'auth/wrong-password') {\n alert('Wrong password.');\n } else {\n alert(errorMessage);\n }\n console.log(error);\n // [END_EXCLUDE]\n });\n \n //redirect to the homepage on success\n window.location.href=\"/\";\n }", "function login(event) {\n\t\tevent.preventDefault();\n\t\tvar validate = loginValidate(this.emailUser.value);\n\n\t\tif(validate) {\n\t\t\tfor (var key in validate) {\n\t\t\t\tthis[key].value = \"\";\n\t\t\t\tthis[key].placeholder = validate[key];\n\t\t\t\t// in questo modo gli errori vengono scritti come placeholder\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tlocalStorage.setItem(\"email\", emailUser.value);\n\t\tvar email = this.emailUser.value, password = this.passwordUser.value;\n\t\tvar user = {email, password};\n\t\tserverServices.login(user, function(response) {\n\t\t\tif(response.errorMessage) {\n\t\t\t\talert(response.errorMessage);\n\t\t\t} else {\n\t\t\t\tsessionStorage.setItem(\"email\", response.email);\n\t\t\t\tconsole.log(response.email);\n\t\t\t\tdocument.cookie = \"email=\" + sessionStorage.getItem(\"email\") + ';';\n\t\t\t\twindow.location.href = window.location.origin;\n\t\t\t}\n\t\t});\n\t}", "function login() {\n if (ctrl.remember) {\n $window.localStorage.setItem('ldap_username', ctrl.username);\n $window.localStorage.setItem('ldap_password', ctrl.password);\n }\n ctrl.loading = true;\n ipcRenderer.send('do-log-in', ctrl.username, ctrl.password);\n }", "submitLogin() {\n if (!login(this.state.values.get('username'), this.state.values.get('password')))\n window.location = '#login-failed';\n }", "function loginClick() {\n\t username = $(\"#userName\").val();\n\t password = $(\"#password\").val();\n\t getRememberMestatus();\n\t var params = {\"username\":username,\"password\":password};\n\t var callerId = \"login\";\n\t var url = \"/logon\";\n\t reqManager.sendPost(callerId, url, params, loginSuccessHandler, loginErrorHandler, null);\n\t}", "function handleAuthenticationResult(req, res, err, user, info) {\n\tif(err) {\n\t\tres.flash('server_error', 'Something went wrong. Please try again', req.body.email);\n\t\treturn res.redirect('/login');\n\t}\n\tif(!user) {\n\t\tres.flash('client_error', 'Invalid credentials', req.body.email);\n\t\treturn res.redirect('/login');\n\t}\n\treq.login(user, function(err) {\n\t\tif(err) {\n\t\t\tres.flash('server_error', 'Something went wrong. Please try again', req.body.email);\n\t\t\treturn res.redirect('/login');\n\t\t}\n\t\tif(res.locals && res.locals.flashMessage && res.locals.flashMessage.type && res.locals.flashMessage.type === 'return_to')\n\t\t\treturn res.redirect(res.locals.flashMessage.returnTo);\n\t\treturn res.redirect('/dashboard');\n\t});\n}", "processLogin(result, platform) {\n this.setUserData(result, platform);\n this.setState({ refresh: false });\n this.props.goHome(result, platform);\n }", "function loginUser(ev) {\n ev.preventDefault();\n let inputUsername = $('#loginUsername');\n let inputPassword = $('#loginPasswd');\n\n let usernameVal = inputUsername.val();\n let passwdVal = inputPassword.val();\n\n auth.login(usernameVal, passwdVal)\n .then((userInfo) => {\n saveSession(userInfo);\n inputUsername.val('');\n inputPassword.val('');\n showInfo('Login successful.');\n }).catch(handleError);\n }", "async function handlerLogin() {\n // alert('Entrando');\n MyContext.setTokenUser('aasdasd7as89d7as98d7a89sd7a9s8d7')\n navigation.navigate('logged')\n }", "function loginEvent () {\r\n\tif (playerID.value.length && password.value.length) {\r\n // Update visual state\r\n\t\tstatusContainer.setAttribute(\"local_innerHTML\", \"loginWindow.statusLoggingIn\");\r\n localizer.update(statusContainer.parentNode);\r\n\t\tdisableForm();\r\n\r\n // Save credentials if user has opted to do so\r\n if (rememberDetails.checked) {\r\n main.configurationManager.set(\"credentials.playerID\", playerID.value);\r\n main.configurationManager.set(\"credentials.password\", password.value);\r\n }\r\n\r\n\t\t// Transmit login information to main window\r\n\t\tmain.credentials = { id:playerID.value, pw:password.value };\r\n\t\tnativeApplication.dispatchEvent(new air.Event(\"login\"));\r\n\t}\r\n\telse {\r\n // Set focus to empty field\r\n\t\tif (!playerID.value.length) { playerID.focus(); }\r\n\t\telse { password.focus(); }\r\n\t}\r\n // Halt further processing of submit event\r\n\treturn false;\r\n}", "function login() {\n const username = (document.querySelector(\"#username\").value);\n const password = (document.querySelector(\"#password\").value);\n\n if (checkMatches(username, password) !== false) {\n postLoginHTTPRequest(username, password);\n }\n}", "function login_account () {\n\tdb_account_exists().then(function() {\n\t\tvar date;\n\t\tdate = new Date();\n\t\tdate = date.getUTCFullYear() + '-' +\n\t\t\t\t\t ('00' + (date.getUTCMonth() + 1)).slice(-2) + '-' +\n\t\t\t\t\t ('00' + date.getUTCDate()).slice(-2) + ' ' +\n\t\t\t\t\t ('00' + date.getUTCHours()).slice(-2) + ':' +\n\t\t\t\t\t ('00' + date.getUTCMinutes()).slice(-2) + ':' +\n\t\t\t\t\t ('00' + date.getUTCSeconds()).slice(-2);\n\t\tlet inputs = {\n\t\t\t\t\tusername: $(\"#loginuser\").val(),\n\t\t\t\t\tdate: date\n\t\t\t\t\t};\n\t\tlet params = {\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\turl: \"/api/user/lastlogin\",\n\t\t\t\t\tdata: inputs\n\t\t\t\t\t};\n\t\t$.ajax(params).done(function(data) {\n\t\t\t\tdocument.getElementById(\"greetings\").innerHTML = \"Welcome back \"+localStorage.getItem('username')+\"!\";\n\t\t\t\tset_local($(\"#loginuser\").val());\n\t\t\t\tset_update();\n\t\t\t\tyour_stats($(\"#loginuser\").val());\n\t\t\t\tcurrent_stage=\"stage\";\n\t\t\t\tswitch_stage();\n\t\t\t});\n\t\t}).catch(function (err) {\n\t\t\tconsole.log(err);\n\t\t});\n}", "onlog() {}", "function handleLogin(res) {\n var token = res.token ? res.token : null;\n if (token) {\n self.getUsers();\n self.user = TokenService.decodeToken();\n CurrentUser.saveUser(self.user)\n var socketId = socket.socket().io.engine.id;\n // console.log(socketId)\n var data = {\n user_id: self.user._id,\n socketId: socketId\n }\n socket.emit(\"login\", data);\n $state.go('home');\n }\n // console.log(res);\n // self.user = TokenService.decodeToken();\n // CurrentUser.saveUser(self.user)\n }", "loginHandler(username, password) {\n\n if (this.state.db.users[username] === password) {\n this.setState({\n mode: 'logged in'\n });\n return true;\n } else {\n alert('Uh oh, that username/password combination is not valid.\\nPlease check your entries and try again!')\n return false;\n } \n }", "handleSubmit(event){\n\t\tcogoToast.loading('Logging in...', {position: 'top-right'}).then(() => {\t\n\t\t\taxios.post(\"https://alarmbuddy-312620.uc.r.appspot.com/login\", {\n\t\t\t\tusername: this.state.username,\n\t\t\t\tpassword: this.state.password\n\t\t\t}\n\t\t\t//{ withCredentials: true }\n\t\t\t).then(response => {\n\t\t\t\tconsole.log(\"res from login: \", response);\n\t\t\t\tif(response.status === 200) {\n\t\t\t\t\t//console.log(response.data.token);\n\t\t\t\t\tcogoToast.success(\"Logged in!\", {position: 'top-right'});\n\t\t\t\t\tthis.props.handleSuccessfulAuth(response.data,\n\t\t\t\t\tthis.state.username,\n\t\t\t\t\tthis.state.password);\n\t\t\t\t}\t\n\t\t\t}).catch(error => {\n\t\t\t\tconsole.log(\"login error\", error);\n\t\t\t\tcogoToast.error(\"Error Logging in\", {position: 'top-right'});\n\t\t\t});\n\t\t});\n\t\tevent.preventDefault();\n\t\t\n\t}", "function login(error, data) {\n if(error) { console.log(error) }\n console.log(\"in loggingin.js: login()\")\n return db.checkLogin(data.username, data.password)\n}", "async login() {}", "async function handleSubmit(e) {\n // stop default refreshing\n e.preventDefault();\n // login\n try {\n await auth.login(email, password);\n } catch (error) {\n alert(\"Houston - we have an error logging in\");\n console.error(error);\n return;\n }\n // if no error redirect back - or \"./\"?\n history.push(\"/\");\n }", "function login() {\n var email = $(\"#loginEmail\").val();\n var password = $(\"#loginPassword\").val();\n var userid = \"\" + email + password;\n\n // call getUser in userHandler\n userHandler.getUser(userid);\n}", "function doLogin(username, password, callback) {\n\tmagic(\n\t\t\t\"GetUserAuthentication\",\n\t\t\tusername,\n\t\t\tappname,\n\t\t\t\"\",\n\t\t\ttoken,\n\t\t\tpassword,\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\n\t\t\tfunction(res) {\n\t\t\t\tif (res.status == \"error\") {\n\t\t\t\t\tconsole.log(\"error logging in: \" + res.data);\n\n\t\t\t\t\tcallback(\"error\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvar data = JSON.parse(res[\"data\"]);\n\n\t\t\t\t\tvar validUser = data[0][\"getuserauthenticationinfo\"][0][\"ValidUser\"];\n\t\t\t\t\tif (validUser.indexOf(\"YES\") != -1) {\n\t\t\t\t\t\twindow.ehrUsername = username;\n\t\t\t\t\t\twindow.ehrPassword = password;\n\n\t\t\t\t\t\tcallback(\"success\");\n\n\t\t\t\t\t} else\n\t\t\t\t\t\tcallback(\"invalid\");\n\t\t\t\t}\n\t\t\t});\n}", "function signIn(){\n var dataEntered = getLoginData();\n loginUser(dataEntered);\n}", "function hook_login_form() {\n console.log(\"hooking the login form\")\n \n\t$(\"#login-form\").submit(function(event) {\n\t\tevent.preventDefault();\n\t\tlogin_user();\n });\n}", "function login(){\n dispatch(findUser(document.getElementById('email').value,document.getElementById('password').value));\n }", "function beginLogin() {\n\treturn { type: types.MANUAL_LOGIN_USER };\n}", "function LoginHandler (request, reply) {\n var username = request.payload.user;\n var password = request.payload.password;\n\n db.query(\"SELECT * FROM persona where username = :username and password = :password\", {\n params: {username: username, password: password}}).then(function (data) {\n if(data.length == 0){\n reply().code(401)\n }else{\n\n var authToken = {\n sessionId: uuid.v4(),\n store: {\n user: data[0]\n },\n userAgent: request.headers['user-agent'],\n remoteAddress: request.info.remoteAddress,\n host: request.info.host\n }\n\n fs.writeFile(__dirname + '/../storage/session/' + authToken.sessionId, JSON.stringify(authToken));\n \n reply({\n sessionId: authToken.sessionId,\n store: _.pick(data[0], '@rid', 'username', 'nombre')\n });\n }\n });\n}", "function login() {\n self.isLoggedIn = true;\n }", "tableauLogin(event) {\n\n\t\t//\tPrevent the form from reloading the web page\n\t\tevent.preventDefault();\n\n\t\t//\tGet the email/password from the login form\n\t\tvar inputs = {\n\t\t\t'email': document.getElementById(formIds.email).value,\n\t\t\t'password': document.getElementById(formIds.password).value,\n\t\t}\n\n\t\t//\tSave a reference to this\n\t\tvar thisComponent = this;\n\n\t\t//\tMake the API call to login to Tableau Server\n\t\ttabLogin(this.props.tableauSettings, inputs.email, inputs.password).then( response => {\n\t\t\t\t\n\t\t\t\tif (response.error) {\n\t\t\t\t\tthisComponent.setState({\n\t\t\t\t\t\tloginError: true\n\t\t\t\t\t})\n\t\t\t\t} else {\n\n\t\t\t\t\t//\tUpdate the local state\n\t\t\t\t\tthisComponent.setState({\n\t\t\t\t\t\ttableauSession: response,\n\t\t\t\t\t\tloginError: false,\n\t\t\t\t\t\tshow: false,\n\t\t\t\t\t})\n\n\t\t\t\t\t//\tLift the state up\n\t\t\t\t\tthisComponent.props.onUserChange(response)\n\t\t\t\t}\t\n\t\t\t})\n\n\t}", "async doLogin () {\n\t\tthis.responseData = await new LoginHelper({\n\t\t\trequest: this,\n\t\t\tuser: this.user,\n\t\t\tloginType: this.loginType,\n\t\t\tdontSetFirstSession: this.signupToken.provider && !this.signupToken.teamId,\n\t\t\tnrAccountId: this.request.body.nrAccountId\n\t\t}).login();\n\t\tthis.responseData.signupStatus = this.signupToken.signupStatus;\n\t\tthis.responseData.provider = this.signupToken.provider;\n\t\tthis.responseData.providerAccess = this.signupToken.providerAccess;\n\t\tthis.responseData.teamId = this.signupToken.teamId;\n\t}", "function login() {\n var userName = document.getElementById(\"username\");\n var password = document.getElementById(\"password\");\n\n var logonForm = document.getElementById(\"logonForm\");\n logonForm.setAttribute(\"class\", \"hiddenPage\");\n\n request.userName = userName.value;\n\n // the password has not been protected / encyrpted - please change if required.\n request.password = password.value;\n\n // retry the call to the Epicor API\n makeServiceRequest();\n }", "async function login(evt) {\n evt.preventDefault();\n\n try {\n const username = $(\"#login-username\").val();\n const password = $(\"#login-password\").val();\n\n currentUser = await User.login(username, password);\n favTeam = await User.getPrefs(currentUser.userId);\n\n $loginForm.trigger(\"reset\");\n\n saveUserCredentialsInLocalStorage();\n updateUIOnUserLogin();\n } catch (err) {\n console.log(\"this is an error\");\n $message.show();\n $message.text(\"Invalid username/password\");\n }\n}", "handleLogin() {\n notification.success({\n message: 'Abrkadabra - Dokumentų valdymo sistema - 2019',\n description: \"Prisijungimas sėkmingas.\",\n });\n this.loadCurrentUser();\n this.props.history.push(\"/pagrindinis\");\n }", "function listenLogin() {\n\t$('.login-form').submit(event => {\n\t\tevent.preventDefault();\n\t\tlet userCreds = {\n \t\tusername: $(\".username\").val().toLowerCase(),\n \t\tpassword: $(\".password\").val()\n \t};\n\n \tlogin(userCreds);\n \t});\n\n}", "login(e){\n e.preventDefault();\n MeetupActions.loadSession(this.state.username, this.state.password);\n return false;\n }" ]
[ "0.7737474", "0.7673588", "0.76700723", "0.7550096", "0.7511059", "0.74928963", "0.7431305", "0.73327184", "0.7306218", "0.72850895", "0.7205128", "0.71557313", "0.7105174", "0.70841163", "0.7081847", "0.7039327", "0.70286876", "0.69903296", "0.69592965", "0.6940444", "0.68561846", "0.68559223", "0.6846941", "0.6837581", "0.6823031", "0.6815759", "0.6803742", "0.6767408", "0.67360765", "0.673541", "0.67222667", "0.6696151", "0.66908973", "0.665335", "0.6619044", "0.6614115", "0.66104686", "0.6602658", "0.6595773", "0.6590316", "0.65892124", "0.65888774", "0.65879464", "0.65751725", "0.6563367", "0.656335", "0.6560573", "0.6559669", "0.6557634", "0.6542536", "0.65366995", "0.65313095", "0.65100926", "0.65055037", "0.6499251", "0.64979964", "0.6493316", "0.64909905", "0.64851385", "0.6474288", "0.64730567", "0.64702725", "0.6469585", "0.6464339", "0.6442061", "0.64393806", "0.6438077", "0.643774", "0.6433983", "0.6431119", "0.64178014", "0.64169115", "0.64149463", "0.6414502", "0.64110506", "0.6405549", "0.64026976", "0.63894725", "0.63866025", "0.6383468", "0.63757867", "0.63738596", "0.6372377", "0.63717854", "0.6369418", "0.6365532", "0.63575", "0.6349028", "0.63485575", "0.6347243", "0.6342688", "0.6332907", "0.6327103", "0.632318", "0.63170224", "0.6314632", "0.63108826", "0.6308092", "0.63024426", "0.62971634" ]
0.80480117
0
display the video boxes and initialize the SimpleWebRTC code you just defined
function enableVideo() { document.getElementById("url").style.display = "block"; document.getElementById("remotes").style.visibility = "visible"; loadSimpleWebRTC(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "loadSimpleWebRTC() {\n var webrtc = new SFU({\n localVideoEl: document.getElementById(\"local\"),\n // the id/element dom element that will hold remote videos\n remoteVideosEl: \"\",\n autoRequestMedia: true,\n debug: false,\n detectSpeakingEvents: true,\n autoAdjustMic: false\n });\n\n // Set the publicly available room URL.\n // startButton.onclick = function () {\n webrtc.joinRoom(this.getRoom());\n this.disabled = true;\n // }\n\n // Immediately join room when loaded.\n webrtc.on(\"readyToCall\", function () {\n // webrtc.joinRoom(self.getRoom());\n webrtc.startBroadcast();\n });\n\n // Display the volume meter.\n webrtc.on(\"localStream\", function () {\n var button = document.querySelector(\"form>button\");\n if (button) button.removeAttribute(\"disabled\");\n startButton.disabled = false;\n document.getElementById(\"localVolume\").style.display = \"block\";\n });\n\n // If we didn't get access to the camera, raise an error.\n webrtc.on(\"localMediaError\", function (err) {\n alert(\"This service only works if you allow camera access.Please grant access and refresh the page.\");\n });\n\n // When another person joins the chat room, we'll display their video.\n webrtc.on(\"videoAdded\", function (peer) {\n if (peer.consumer._track.kind == \"audio\") {\n peer.video.srcObject.addTrack(peer.consumer._track);\n return;\n }\n var stream = new MediaStream([peer.consumer._track]);\n helper.setVideoSrc(peer.video, stream);\n console.log(\"user added to chat\", peer);\n });\n\n // If a user disconnects from chat, we need to remove their video feed.\n webrtc.on(\"videoRemoved\", function (id) {\n console.log(\"user removed from chat\", id);\n helper.closeVideo(id);\n return;\n });\n\n // If our volume has changed, update the meter.\n webrtc.on(\"volumeChange\", function (volume, treshold) {\n showVolume(document.getElementById(\"localVolume\"), volume);\n });\n\n // If a remote user's volume has changed, update the meter.\n webrtc.on(\"remoteVolumeChange\", function (peer, volume) {\n showVolume(document.getElementById(\"volume_\" + peer.id), volume);\n });\n\n // If there is a P2P failure, we need to error out.\n webrtc.on(\"iceFailed\", function (peer) {\n var connstate = document.querySelector(\"#container_\" + webrtc.getDomId(peer) + \" .connectionstate\");\n console.log(\"local fail\", connstate);\n if (connstate) {\n connstate.innerText = \"connection failed\";\n fileinput.disabled = \"disabled\";\n }\n });\n\n // remote p2p/ice failure\n webrtc.on(\"connectivityError\", function (peer) {\n var connstate = document.querySelector(\"#container_\" + webrtc.getDomId(peer) + \" .connectionstate\");\n console.log(\"remote fail\", connstate);\n if (connstate) {\n connstate.innerText = \"connection failed\";\n fileinput.disabled = \"disabled\";\n }\n });\n webrtc.init();\n }", "function initVideo() {\n log_d(\"Initializing the video subsystem\");\n\n var setVideoDev = function (devs) {\n log_d(\"Got video capture devices: \" + JSON.stringify(devs));\n var dev = '';\n $.each(devs, function (k, v) {\n dev = k;\n $('#webcamsSelect').append($('<option value=\"' + k + '\">' + v + '</option> '));\n });\n if (dev) {\n log_d(\"Using video capture device: \" + JSON.stringify(devs[dev]));\n window.configuredDevice = dev;\n service.setVideoCaptureDevice(CDO.createResponder(startLocalPreview), dev);\n } else {\n log_e(\"None video capture devices installed.\");\n }\n };\n log_d(\"Getting video capture devices\");\n service.getVideoCaptureDeviceNames(CDO.createResponder(setVideoDev));\n\n}", "enableVideo() {\n this.joined = true;\n this.loadSimpleWebRTC();\n }", "function setup() {\n createCanvas(640, 480, P2D); // canvas has same dimensions as my webcam\n background(0);\n stroke(0, 255, 0);\n noFill();\n\n // make sure the framerate is the same between sending and receiving\n frameRate(30);\n\n // Set to true to turn on logging for the webrtc client\n WebRTCPeerClient.setDebug(true);\n\n // To connect to server over public internet pass the ngrok address\n // See https://github.com/lisajamhoury/WebRTC-Simple-Peer-Examples#to-run-signal-server-online-with-ngrok\n WebRTCPeerClient.initSocketClient('https://XXXXXXXX.ngrok.io/');\n\n // Start the peer client\n WebRTCPeerClient.initPeerClient();\n\n // start your video\n // your webcam will always appear below the canvas\n myVideo = createCapture(VIDEO);\n myVideo.size(width, height);\n myVideo.hide();\n\n ////// HOW TO DEFINE OTHER PERSON'S VIDEO? //////\n // otherVideo = createCapture(VIDEO);\n // otherVideo.size(width, height);\n\n}", "function joinCall() { // deze functie word aangeroepen zodra de caller op \"Deelnemen aan gesprek\" klikt\n\nusername = document.getElementById(\"gebruikersnaam-input\").value\n\ndocument.getElementById(\"video-call-div\")\n.style.display = \"inline\" //in deze functie word de sectie video call div aangroepen \n // in deze sectie word de style vernaderd naar inline\n\n navigator.getUserMedia({ //deze functie handelt onder andere de permissions af\n video: {\n frameRate: 24,\n width: {\n min: 480, ideal: 720, max: 1280\n \n },\n aspectRatio: 1.33333\n }, \n \n audio: true\n\n \n }, (stream) => { // de getUserMedia functie return een callback function (als 2e parameter) stream die je uiteindelijk in de local-video element wilt plaatsen\n localstream = stream\n document.getElementById(\"local-video\").srcObject = localstream\n\n let configuration ={\n iceServers: [\n {\n \"urls\":[\"stun:stun.l.google.com:19302\", //meerdere STUN servers aangemaakt vóór het geval een andere server met betere ICE kandidaten komt\n \"stun:stun1.l.google.com:19302\",\n \"stun:stun2.l.google.com:19302\"]\n \n\n \n }\n ]\n }\n peerConn = new RTCPeerConnection(configuration) // deze functie is beschikbaar gemaakt door en voor de webRTC api, aan deze config geven we onze configuratie object mee\n peerConn.addStream(localstream) // hier geven we onze localstream mee aan de RTCpeerconnection\n\n peerConn.onaddstream = (e) => { //zodra de peerConnection verbinding heeft met de andere kant, dan geeft ie een callback function\n document.getElementById(\"remote-video\")\n .srcObject = e.stream // met e.stream kunnen we de stream 'uitpakken', en we willen het dus laten zien in de remote video element\n console.log(\"video van andere partij moet zichtbaar zijn\")\n }\n \n\n peerConn.onicecandidate = ((e) =>{\n if (e.candidate == null)\n return\n \n sendData({\n type:\"send_candidate\",\n candidate: e.candidate\n })\n \n })\n \n sendData({\n type: \"join_call\"\n }) \n\n },(error) => { // als de functie een eroor returned\n console.log(error)\n }\n )\n\n}", "function initVideo() {\n \n Enabler.loadModule(studio.module.ModuleId.VIDEO, function() {\n // Video module loaded.\n var videoElement = document.getElementById('video');\n studio.video.Reporter.attach('video', videoElement);\n });\n\n video.addEventListener('ended',OnComplete);\n video.oncanplaythrough = OnStart();\n videoContainer.style.visibility = \"visible\";\n}", "function onRemoteStreamAdded(event) {\n var remoteviddiv;\n // alert(type);\n var header;\n if (type == \"user\") {\n remoteviddiv = document.getElementById('webRTC_VideoWrapper');\n remotevid = document.getElementById('webRTC_remoteVideo');\n remotevid.style.display = \"block\";\n header = document.getElementById('webRTC_agentHeader');\n } else {\n remoteviddiv = document.getElementById('remotevidoediv');\n remotevid = document.getElementById('remotevid');\n header = document.getElementById('customerheader');\n }\n\n remotevid.src = URL.createObjectURL(event.stream);\n //remotevid.style.display=\"block\";\n\n remotevid.width = remoteviddiv.offsetWidth;\n remotevid.height = remoteviddiv.offsetHeight - header.offsetHeight;\n //alert(remotevid.height);\n if (type == \"user\") {\n btn = document.getElementById(\"webRTC_custStartCallButton\");\n btn.style.display = \"none\";\n var btn = document.getElementById(\"webRTC_custEndCallButton\");\n btn.style.display = \"block\";\n }\n\n remotevid.autoplay = true;\n if (type == \"user\") {\n var progbar = document.getElementById('webRTC_connectMessage');\n progbar.style.display = \"none\";\n }\n updateState(STATES.CONNECTED);\n if (type == \"user\") {\n var agentheader = document.getElementById('webRTC_agentHeader');\n //agentheader.innerHTML = \"AGENT\" + \" : \"+agentname.toUpperCase(); \n var string = agentheader.innerHTML;\n agentduration('webRTC_agentHeader', agentheader.innerHTML);\n }\n}", "async function init() {\n const constraints = {\n video: {\n width: innerWidth, height: innerHeight\n }\n };\n\n try {\n const stream = await navigator.mediaDevices.getUserMedia(constraints);\n window.stream = stream;\n video.srcObject = stream;\n } catch (e) {\n errorMsgElement.style.display = \"block\";\n if (onMobile()) {\n errorMsgElement.innerHTML = \"Welcome to RiemannWeb! To get started, click the \\\"Upload\\\" button to take a photo.\";\n }\n else {\n errorMsgElement.innerHTML = \"Uh oh, an error has occured starting a live video feed! Please upload an image instead.\";\n }\n snapButton.style.display = \"none\";\n }\n}", "function initialize() {\n key = (new URLSearchParams(window.location.search)).get('key') || null;\n // Create own peer object with connection to shared PeerJS server\n peer = new Peer(key, { host: 'obsp2pwebcanstream.herokuapp.com', secure:true, port:443, key: 'peerjs', debug: 3, path: '/peer'});\n //peer = new Peer(key, { });\n console.log(peer);\n\n peer.on('call', call => {\n const startChat = async () => {\n const localStream = await navigator.mediaDevices.getUserMedia(constraints);\n videoLocal.srcObject = localStream;\n call.answer(localStream);\n call.on('stream', remoteStream => {\n videoRemote.srcObject = remoteStream;\n })\n };\n startChat()\n });\n\n peer.on('open', function (id) {\n // Workaround for peer.reconnect deleting previous id\n if (peer.id === null) {\n console.log('Received null id from peer open');\n peer.id = lastPeerId;\n } else {\n lastPeerId = peer.id;\n }\n\n console.log(recvId, 'ID: ' + peer.id);\n recvId.innerHTML = \"ID: \" + peer.id;\n status.innerHTML = \"Awaiting connection...\";\n });\n peer.on('connection', function (c) {\n // Allow only a single connection\n if (conn) {\n c.on('open', function () {\n c.send(\"Already connected to another client\");\n /*setTimeout(function () {\n c.close();\n }, 500);*/\n });\n return;\n }\n\n conn = c;\n console.log(\"Connected to: \" + conn.peer);\n status.innerHTML = \"Connected\"\n ready();\n });\n peer.on('disconnected', function () {\n status.innerHTML = \"Connection lost. Please reconnect\";\n console.log('Connection lost. Please reconnect');\n\n // Workaround for peer.reconnect deleting previous id\n peer.id = lastPeerId;\n peer._lastServerId = lastPeerId;\n peer.reconnect();\n });\n peer.on('close', function () {\n conn = null;\n status.innerHTML = \"Connection destroyed. Please refresh\";\n console.log('Connection destroyed');\n });\n peer.on('error', function (err) {\n console.log(err);\n status.innerHTML = err;\n });\n }", "function initialize() {\n // will create HTML5 video element in staging area if not present\n getDOMVideo();\n isInitialized = true;\n }", "function inizializza_video() {\n navigator.getUserMedia( {'audio':true, 'video':true}, \n function(stream) {\n\n video_locale.src = URL.createObjectURL(stream);\n peer = new RTCPeerConnection(peer_config);\n peer.onicecandidate = onIceCandidate;\n peer.onaddstream = function(event){\n video_remoto.src = URL.createObjectURL(event.stream);\n };\n\n peer.addStream(stream);\n if (chiamante)\n peer.createOffer(sdpcreato, null, mediaConstraints);\n }\n );\n}", "function startStream() {\r\n\r\n if (navigator.platform == \"iPhone\" || navigator.platform == \"Linux armv8l\") {\r\n vid = createCapture(VIDEO, constraints)\r\n } else {\r\n\r\n vid = createCapture(VIDEO);\r\n }\r\n\r\n vid.position(0, 0)\r\n button.remove()\r\n select(\"#accept\").remove()\r\n\r\n classifyVideo()\r\n\r\n}", "function preInititiation(){\n\tsignalServer = new WebSocket(signalServerURL); // Set to local websocket for now\n\tsignalServer.binaryType = \"arraybuffer\";\n\n\tvar peerMediaElements = document.getElementById(\"peer-media-banner\");\n\tvar peerMediaDiv = document.createElement(\"div\");\n\tvar peerMediaVideo = document.createElement(\"img\");\n\tpeerMediaVideo.setAttribute(\"class\", \"z-depth-5\");\n\tpeerMediaVideo.setAttribute(\"height\", \"150\");\n\tpeerMediaVideo.src = avatarPath;\n\tpeerMediaVideo.id = \"user-media-\"+peerID;\n\tpeerMediaDiv.setAttribute(\"class\", \"col s4\");\n\tpeerMediaDiv.appendChild(peerMediaVideo);\n\tpeerMediaElements.appendChild(peerMediaDiv);\n\n\t\tif (peerID != senderID){\n\t\t\tcurrentPeer = 0; // Since server ID of the host will always be 0 for a new room\n\t\t\t// addPeer(); // Will resume this function while on the feature of video calling\n\t\t\tconsole.log(\"initiating connection with host peer\")\n\t\t\t// initiatePeerConnection(peerID);\n\t\t}else{\n\t\t\tnavigator.getUserMedia(constraints, function(stream){\n\t\t\t\tlocalStream = stream;\n\t\t\t\tconsole.log(localStream);\n\t\t\t\tgotLocalStream(localStream, currentPeer);\n\t\t\t}, fallbackUserMedia);\n\t\t\tconsole.log(signalServer.readyState);\n\t\t\t// signalServer.send(JSON.stringify({\"addRoom\": true, \"roomID\": peerID}));\n\t\t}\n\t// };\n\t// }, 2000);\n}", "function startLocalStream(){\n if(localStreamOn){ // check if this setup has already been done\n console.log('local stream already on');\n return;\n } else {\n localStreamOn = true;\n }\n\n var ctrl = window.ctrl = CONTROLLER(phone, get_xirsys_servers);\n ctrl.ready(function(){\n if(!faceTrackerStarted){\n startFaceTracker();\n faceTrackerStarted=true;\n }\n //Here we possibly want to minimise the user's screen\n //ctrl.addLocalStream(video);\n //addLog(\"Logged in as \" + form.username.value);\n });\n ctrl.receive(function(session){\n session.connected(function(session){\n sessionList.push(session);\n var listItem = document.createElement('li');\n listItem.id= \"callee\" +session.number;\n listItem.appendChild(session.video);\n othervideos.appendChild(listItem);\n //video_out.appendChild(session.video);\n var sessionRTCPeerConnection = session.pc;\n invokeGetStats(sessionRTCPeerConnection);\n //Adding button for kicking a session\n //var kickbtn = document.createElement(\"button\");\n //video_out.appendChild(kickbtn);\n //addLog(session.number + \" has joined.\");\n console.log(session.number + \" has joined.\");\n vidCount++; });\n\n session.ended(function(session) {\n var index = sessionList.indexOf(session);\n sessionList.splice(index,1);\n ctrl.getVideoElement(session.number).remove();\n var listItem = document.getElementById('callee'+session.number);\n listItem.outerHTML =\"\";\n delete listItem;\n //addLog(session.number + \" has left.\");\n console.log(session.number + \" has left.\");\n vidCount--;});\n });\n\n ctrl.videoToggled(function(session, isEnabled){\n ctrl.getVideoElement(session.number).toggle(isEnabled);\n //addLog(session.number+\": video enabled - \" + isEnabled);\n console.log(session.number+\": video enabled - \" + isEnabled);\n });\n ctrl.audioToggled(function(session, isEnabled){\n ctrl.getVideoElement(session.number).css(\"opacity\",isEnabled ? 1 : 0.75);\n //addLog(session.number+\": audio enabled - \" + isEnabled);\n console.log(session.number+\": audio enabled - \" + isEnabled);\n });\n\n phone.message(function(session,message){\n //console.log(\"received image\");\n if(message.hasOwnProperty(\"image\")){\n var img = new Image();\n img.src = message.image.data;\n facesReceived[session.number] = img;\n var height = 0\n Object.keys(facesReceived).forEach(function (key) {\n height += 200;\n })\n snap.width = 200;\n snap.height = height;\n var startY = 0;\n img.onload = function(){\n snap_context.clearRect(0, 0, snap.width, snap.height);\n Object.keys(facesReceived).forEach(function (key) {\n console.log(\"drawing face:\" + key);\n var value = facesReceived[key];\n snap_context.drawImage(value,0,startY);\n startY = startY + 200;\n })\n snap_out.innerHTML = \"\";\n var snap_img = new Image();\n snap_img.src = snap.toDataURL(\"image/jpeg\");\n snap_out.appendChild(snap_img);\n }\n }else if(message.hasOwnProperty(\"text\")){\n var friendDiv = document.createElement('div');\n friendDiv.className =\"chat friend\";\n var friendPhoto = document.createElement('div');\n friendPhoto.className =\"photo\";\n var image = document.createElement('img');\n image.src=\"icons/minion2.png\";\n friendPhoto.appendChild(image);\n var text = document.createElement('p');\n text.className=\"message\";\n text.innerHTML=message.text;\n friendDiv.appendChild(friendPhoto);\n friendDiv.appendChild(text);\n chatlogs.appendChild(friendDiv);\n chatlogs.scrollTop=chatlogs.scrollHeight;\n }else if (message.hasOwnProperty(\"toggleBandwidth\")){\n console.log(\"Toggle Bandwidth:\" + message.toggleBandwidth);\n //Code for user to execute when they recieve toggle message \n bandwidth = message.toggleBandwidth;\n if(bandwidth.toLowerCase() == \"high\"){\n if(send_loop_id == null){\n //do nothing\n }else{\n toggle_to_high();\n }\n \n }else if(bandwidth.toLowerCase() == \"low\"){\n if(send_loop_id == null){\n toggle_to_low();\n }else{\n //do nothing\n }\n }else{\n alert(\"Only High or Low accepted not: \" + bandwidth);\n }\n \n }\n });\n return false;\n}", "function setupGui(video,cameras, net) {\r\n netState.net = net;\r\n\r\n let button = document.getElementById('play');\r\n button.onclick = function () {\r\n if(videoConfig.videoState=='pause'||videoConfig.videoState=='ended'){\r\n video.play();\r\n }\r\n else{\r\n video.pause();\r\n }\r\n };\r\n\r\n if (cameras.length > 0) {\r\n netState.camera = cameras[0].deviceId;\r\n }\r\n}", "function joinVideo(){\n var rtc = require('../peer/peerConnection').rtc;\n (!videoInitialized) && initializeVideo(callPeers);\n function callPeers(){\n remotePeers.call(exports.videoStream, callHandler);\n }\n}", "function init() {\n\t\t\tconstructVideoPlayerContent(elems.container);\n\t\t\tshowControls();\n\t\t\t_.event(elems.btnBigPlay, 'click', play);\n\t\t\t_.event(elems.buttons.play, 'click', playPause);\n\t\t\t_.event(elems.video, 'click', pause);\n\t\t\t_.event(elems.buttons.volume, 'click', mute);\n\t\t\t_.event(elems.buttons.fullscreen, 'click', fullscreen);\n\t\t\t_.event(elems.video, 'loadedmetadata', function(e) {\n\t\t\t\tplaybackRate(opts.speed);\n\t\t\t\tvideoProgress = new Range(opts.progress / elems.video.duration, elems.ranges.video, {\n\t\t\t\t\tonDrop: (pct) => progress(pct, true),\n\t\t\t\t});\n\t\t\t\tvolumeSlider = new Range(opts.volume, elems.ranges.volume, {\n\t\t\t\t\tonDrag: volume,\n\t\t\t\t});\n\t\t\t\tvolume(opts.volume);\n\t\t\t\tprogress(opts.progress);\n\t\t\t\ttimestamp(0, elems.video.duration);\n\t\t\t\tif (opts.autoplay) play();\n\t\t\t});\n\t\t\t_.event(elems.video, 'timeupdate', progUpdate);\n\t\t\t_.event(elems.main, 'mousemove', showControls);\n\t\t\t_.event(elems.controls, 'mouseenter', () => showControls(true));\n\t\t\t_.event(elems.controls, 'mouseleave', () => showControls(false));\n\t\t\t_.event(window, 'keyup', handleKeyPress);\n\t\t\t_.event(document, 'fullscreenchange', handleFullscreenChange); // PREFIXES WHY\n\t\t\t_.event(document, 'msfullscreenchange', handleFullscreenChange);\n\t\t\t_.event(document, 'mozfullscreenchange', handleFullscreenChange);\n\t\t\t_.event(document, 'webkitfullscreenchange', handleFullscreenChange);\n\n\t\t\tif (opts.fullscreen) fullscreen(true);\n\t\t\telems.video.src = opts.src;\n\t\t}", "function Learn_show() {\n console.log('Learn_show()');\n\n setInterval(Learn_onVideoUpdate, 50);\n\n Learn_setGreenLights();\n Learn_setVideoControls();\n\n Learn_setInteractionCallbacksLearn();\n CheckClick(clickCount);\n NextButtonClick();\n\n console.log(arrVideoList[0].emotions);\n\n videoCounter = arrVideoList.length;\n\n window.onresize = Learn_onResize;\n\n //Learn_setFullscreen();\n\n Learn_video.play();\n}", "function loadMyMedia(stream) {\n\n console.log(\"Access granted to audio / video\");\n document.body.style.backgroundImage = \"none\";\n getId(\"loadingDiv\").style.display = \"none\";\n\n myMediaStream = stream;\n\n const videoWrap = document.createElement(\"div\");\n\n // my peer name video audio status\n const myHeader = document.createElement(\"div\");\n const myCallTimeImg = document.createElement(\"i\");\n const myCallTime = document.createElement(\"p\");\n const myInfoImg = document.createElement(\"i\");\n const myInfo = document.createElement(\"h4\");\n const myHandStatusIcon = document.createElement(\"button\");\n const myVideoStatusIcon = document.createElement(\"button\");\n const myAudioStatusIcon = document.createElement(\"button\");\n const myVideoImg = document.createElement(\"img\");\n\n // header\n myHeader.setAttribute(\"id\", \"myHeader\");\n myHeader.className = \"header\";\n // time\n myCallTimeImg.setAttribute(\"id\", \"callTimeImg\");\n myCallTimeImg.className = \"fas fa-clock\";\n myCallTime.setAttribute(\"id\", \"callTime\");\n tippy(myCallTime, { content: \"Session Time\", });\n // my name\n myInfoImg.setAttribute(\"id\", \"myInfoImg\");\n myInfoImg.className = \"fas fa-user\";\n myInfo.setAttribute(\"id\", \"myInfo\");\n myInfo.className = \"videoPeerName\";\n tippy(myInfo, { content: \"My name\", });\n // my hand status \n myHandStatusIcon.setAttribute(\"id\", \"myHandStatusIcon\");\n myHandStatusIcon.className = \"fas fa-hand-paper\";\n myHandStatusIcon.style.setProperty(\"color\", \"#9477CB\");\n tippy(myHandStatusIcon, { content: \"Raised\", });\n // my video status \n myVideoStatusIcon.setAttribute(\"id\", \"myVideoStatusIcon\");\n myVideoStatusIcon.className = \"fas fa-video\";\n tippy(myVideoStatusIcon, { content: \"On\", });\n // my audio status \n myAudioStatusIcon.setAttribute(\"id\", \"myAudioStatusIcon\");\n myAudioStatusIcon.className = \"fas fa-microphone\";\n tippy(myAudioStatusIcon, { content: \"On\", });\n // my video image\n myVideoImg.setAttribute(\"id\", \"myVideoImg\");\n myVideoImg.className = \"videoImg\";\n\n // add elements to myHeader div\n myHeader.appendChild(myCallTimeImg);\n myHeader.appendChild(myCallTime);\n myHeader.appendChild(myInfoImg);\n myHeader.appendChild(myInfo);\n myHeader.appendChild(myVideoStatusIcon);\n myHeader.appendChild(myAudioStatusIcon);\n myHeader.appendChild(myHandStatusIcon);\n // add elements to video wrap div\n videoWrap.appendChild(myHeader);\n videoWrap.appendChild(myVideoImg);\n\n // hand display none on default menad is raised == false\n myHandStatusIcon.style.display = \"none\";\n\n const myMedia = document.createElement(\"video\");\n videoWrap.className = \"video\";\n videoWrap.setAttribute(\"id\", \"myVideoWrap\");\n videoWrap.appendChild(myMedia);\n myMedia.setAttribute(\"id\", \"myVideo\");\n myMedia.setAttribute(\"playsinline\", true);\n myMedia.className = \"mirror\";\n myMedia.autoplay = true;\n myMedia.muted = true;\n myMedia.volume = 0;\n myMedia.controls = false;\n document.body.appendChild(videoWrap);\n\n // attachMediaStream is a part of the adapter.js library\n attachMediaStream(myMedia, myMediaStream);\n setVideos();\n setElements();\n setUsersBtn();\n setAudioBtn();\n setVideoBtn();\n setChatRoomBtn();\n setMyHandBtn();\n setMoreBtn();\n setLeaveRoomBtn();\n showBottomButtonsAndHeader();\n onMouseMove();\n setShareRoomBtn();\n setScreenShareBtn();\n setRecordStreamBtn();\n setFileShareBtn();\n setMuteEveryoneBtn();\n setHideEveryoneBtn();\n calculateCallTime();\n fullScreenVideoPlayer(\"myVideo\"); // full screen mode\n}", "showLocalVideo() {}", "function setupVideos() {\n vid2 = $('#vid02')[0];\n vidSB01 = $('#vidSB01')[0];\n }", "function beachCam() {\n // Get surf cam\n $.ajax({\n url: \"http://api.surfline.com/v1/cams/\" + beachID,\n type: \"GET\",\n dataType: \"jsonp\",\n success: function(responseData) {\n var options = {\n autoplay: true,\n html5: {\n hlsjsconfig: {\n debug: true,\n autoStartLoad: true,\n maxBufferLength: 30,\n maxBufferSize: 60 * 1000 * 1000,\n enableWorker: true,\n fragLoadingTimeOut: 20000,\n fragLoadingMaxRetry: 6,\n fragLoadingRetryDelay: 500,\n manifestLoadingTimeOut: 10000,\n manifestLoadingMaxRetry: 6,\n manifestLoadingRetryDelay: 500,\n fpsDroppedMonitoringPeriod: 5000,\n fpsDroppedMonitoringThreshold: 0.2,\n appendErrorMaxRetry: 200,\n }\n }\n },\n poster = document.getElementById('poster'),\n video = document.getElementById('videoId'),\n file = responseData.streamInfo.stream[0].file,\n player = videojs('videoId', options);\n\n console.log(responseData)\n\n if (videoLetterboxed) {\n document.querySelector('.video-wrapper').className += ' letterboxed';\n }\n\n poster.src = responseData.streamInfo.stream[0].camImage;\n\n player.src({ type: 'application/x-mpegURL', src: file });\n player.play();\n player.enterFullWindow();\n\n setTimeout(function (){\n video.style.display = 'block';\n poster.style.display = 'none';\n }, 1000);\n\n }, //end success\n error: function(err) {\n console.log(\"ERR\", err);\n }\n });\n}", "function initiateCall() {\n prepareCall();\n navigator.getUserMedia({\n \"audio\": false,\n \"video\": {\n mediaSource: \"screen\",\n width: 800,\n height: 600\n }\n }, function(stream) {\n localVideoStream = stream;\n peerConn.addStream(localVideoStream);\n createAndSendOffer();\n }, function(error) {\n console.log(error);\n });\n}", "function setupRemoteUI() {\n\tConnector.playerSelector = '[class^=AudioVideoPlayerView-container]';\n\n\tConnector.artistSelector = `${Connector.playerSelector} [class*=MetadataPosterTitle-title] > a:nth-child(1)`;\n\n\tConnector.trackSelector = `${Connector.playerSelector} a[class*=MetadataPosterTitle-singleLineTitle]`;\n\n\t// for watch-it-later videos\n\tConnector.artistTrackSelector = `${Connector.playerSelector} [class*=MetadataPosterTitle-title]`;\n\n\tConnector.filter = MetadataFilter.getYoutubeFilter();\n\n\tConnector.getTrack = () => {\n\t\tif (Connector.getArtist()) {\n\t\t\treturn $(Connector.trackSelector).text();\n\t\t}\n\t\treturn null;\n\t};\n\n\tConnector.albumSelector = `${Connector.playerSelector} [class*=MetadataPosterTitle-title] > a:nth-child(3)`;\n\n\tConnector.trackArtSelector = `${Connector.playerSelector} [class^=PosterCardImg-imageContainer] div`;\n\n\tConnector.playButtonSelector = `${Connector.playerSelector} [class^=plex-icon-player-play]`;\n\n\tConnector.timeInfoSelector = `${Connector.playerSelector} [class^=DurationRemaining-container]`;\n}", "async function startVideo() {\n console.log('Models loaded!!!')\n\n let stream\n try {\n stream = await navigator.mediaDevices.getUserMedia({ video: {}})\n } catch (err) {\n console.error(err)\n }\n video.srcObject = stream\n}", "async function startVideo() {\n //It is async because we need to AWAIT loading the files \n //The loadFromUrl method is locating the model data (shard file and json manifest) from the 'models folder')\n await faceapi.nets.tinyFaceDetector.loadFromUri(modelsPath),\n await faceapi.nets.faceLandmark68Net.loadFromUri(modelsPath),\n await faceapi.nets.faceRecognitionNet.loadFromUri(modelsPath),\n await faceapi.nets.faceExpressionNet.loadFromUri(modelsPath),\n //This requests the user to provide access to the camera \n navigator.mediaDevices\n .getUserMedia({\n video: true, \n })//Then a callback is invoked and the stream coming from our camera is directed towards the video element \n .then((stream) => (video.srcObject = stream))\n //Since you never will know if this might fail (it's a stream!) it is good practice to catch it \n .catch((err) => console.error(err));\n}", "function videoReady() { }", "function start(isInitiator) {\t\n\tdocument.querySelector('.init_form').style.display = \"none\";\n\tdocument.querySelector(\".chat_form\").style.display = \"block\";\n\t// document.querySelector('.view_form').style.display = \"block\";\n\tcallButton.disabled = true;\n\tpc = new RTCPeerConnection(configuration);\n\n\t// send any ice candidates to the other peer\n\tpc.onicecandidate = function (evt) {\n\t\tif (evt.candidate) {\n\t\t\tvar s = SDP.parse(\"m=application 0 NONE\\r\\na=\" + evt.candidate.candidate + \"\\r\\n\");\n\t\t\tvar candidateDescription = s.mediaDescriptions[0].ice.candidates[0];\n\t\t\tpeer.send(JSON.stringify({\n\t\t\t\t\"candidate\": {\n\t\t\t\t\t\"candidateDescription\": candidateDescription,\n\t\t\t\t\t\"sdpMLineIndex\": evt.candidate.sdpMLineIndex\n\t\t\t\t}\n\t\t\t}, null, 2));\n\t\t\tconsole.log(\"candidate emitted: \" + JSON.stringify(candidateDescription, null, 2));\n\t\t}\n\t};\n\n\tif (isInitiator) {// 채팅을 위한 dataChannel 생성\n\t\tchannel = pc.createDataChannel(\"chat\");\n\t\tsetupChat();\n\t} else { // 생성된 dataChannel 사용\n\t\tpc.ondatachannel = function (evt) {\n\t\t\tchannel = evt.channel;\n\t\t\tsetupChat();\n\t\t};\n\t}\n\n\t// once the remote stream arrives, show it in the remote video element\n\tpc.onaddstream = function (evt) {\n\t\tremoteView.srcObject = evt.stream;\n\t\tif (videoCheckBox.checked)\n\t\t\tremoteView.style.visibility = \"visible\";\n// else if (audioCheckBox.checked && !(chatCheckBox.checked))\n// audioOnlyView.style.visibility = \"visible\";\n\t\tsendOrientationUpdate();\n\t};\n var targetStream;\n\tif (screenCheckBox.checked) {\n\t\t// console.log(\"스크린\");\n\t\tpc.addStream(screenMediaStream);\n\t\ttargetStream = screenMediaStream;\n\t}else{\n\t\t// console.log(\"화상\");\n\t\tpc.addStream(localStream);\n\t\ttargetStream = localStream;\n\t}\n\n\tif (isInitiator)\n\t\tpc.createOffer(localDescCreated, logError);\n\n\t// 화상,음성 on/off\n\tdocument.querySelector('.setting-inline').style.display = \"block\";\n\tdocument.getElementById(\"videoToggleButton\").onclick = function(){\n\t\ttargetStream.getVideoTracks()[0].enabled =\n\t\t\t!(targetStream.getVideoTracks()[0].enabled);\n }\n\tdocument.getElementById(\"audioToggleButton\").onclick = function(){\n\t\ttargetStream.getAudioTracks()[0].enabled =\n\t\t\t!(targetStream.getAudioTracks()[0].enabled);\n }\n\tdocument.getElementById(\"chatToggleButton\").onclick = function(){\n\t\tvar chatToggleButton = document.getElementById(\"chatToggleButton\");\n\t\tchatToggleButton.checked = !chatToggleButton.checked;\n\t\tif(chatToggleButton.checked==true){\n\t\t\tdocument.querySelector('.chat_form').style.display = \"none\";\n\t\t\tdocument.querySelector('.view_form').style.display = \"block\";\n\t\t}else{\n\t\t\tdocument.querySelector('.chat_form').style.display = \"block\";\n\t\t\tdocument.querySelector('.view_form').style.display = \"none\";\n\t\t}\n }\n\tdocument.querySelector(\"#file_share\").style.visibility = \"visible\";\n\tpostChatMessage(\"[상대와 연결되었습니다]\");\n\t\n}", "async function setupVideos() {\r\n const video = document.getElementById('video');\r\n\r\n video.crossOrigin= \"Anonymous\";\r\n video.src = videoConfig.videoStreamURL+'/'+videoConfig.videoID;\r\n\r\n video.addEventListener('play',function () {\r\n videoConfig.videoState='play';\r\n });\r\n\r\n video.addEventListener('pause',function () {\r\n videoConfig.videoState='pause';\r\n });\r\n\r\n video.addEventListener('ended',function () {\r\n videoConfig.videoState='ended';\r\n video.pause();\r\n });\r\n\r\n\r\n\r\n return video;\r\n}", "function initUI() {\n $('#webcamsSelect').append($('<option value=\"none\">-- Select --</option> ')).val('none');\n $('#webcamsSelect').change(function () {\n var selected = $(this).val();\n service.setVideoCaptureDevice(CDO.createResponder(function () {\n window.configuredDevice = selected;\n startLocalPreview();\n }), selected);\n });\n $('#publishAudioChckbx').change(getPublishChckboxChangedHandler(CDO.MEDIA_TYPE_AUDIO));\n $('#publishVideoChckbx').change(getPublishChckboxChangedHandler(CDO.MEDIA_TYPE_VIDEO));\n}", "async initLocalStream(uid) {\r\n this.localStream = WebRTC2.createStream({\r\n uid,\r\n audio: true,\r\n video: true,\r\n screen: false,\r\n })\r\n\r\n this.localStream.setVideoProfile({\r\n resolution: WebRTC2.VIDEO_QUALITY_720p,\r\n frameRate: WebRTC2.CHAT_VIDEO_FRAME_RATE_15,\r\n })\r\n this.localStream.setAudioProfile('speech_low_quality')\r\n try {\r\n await this.localStream.init()\r\n console.warn(\r\n 'The audio and video have been turned on and can be played'\r\n )\r\n const div = self.$refs.large\r\n this.localStream.play(div)\r\n this.localStream.setLocalRenderMode({\r\n width: div.clientWidth,\r\n height: div.clientHeight,\r\n cut: true,\r\n })\r\n } catch (err) {\r\n console.warn('Audio and video initialization failed: ', err)\r\n console.error('Audio and video initialization failed')\r\n this.localStream = null\r\n }\r\n }", "function initialize() {\n webcamElement = document.getElementById('webcam');\n canvasElement = document.getElementById('canvas');\n webcam = new Webcam(webcamElement, 'user', canvasElement);\n snapButtonElement = document.getElementById('capture');\n startButtonElement = document.getElementById('retake');\n}", "function _startMultiple(isCaller, gumScreen, gumWebcam) {\n pc = new RTCPeerConnection(configuration);\n\n // send any ice candidates to the other peer\n pc.onicecandidate = function (evt) {\n if (evt.candidate) {\n sendMessage(JSON.stringify({\"candidate\": evt.candidate}));\n }\n };\n\n pc.oniceconnectionstatechange = function (evt) {\n };\n\n // once remote stream arrives, show it in the remote video element\n pc.onaddstream = function (evt) {\n if (!remoteVideo.src) {\n remoteVideo.src = URL.createObjectURL(evt.stream);\n } else if (!screenVideo.src) {\n screenVideo.src = URL.createObjectURL(evt.stream);\n }\n\n console.log('Received remote stream. ULTIMATE SUCCESS!');\n };\n\n // get the local stream, show it in the local video element and send it\n navigator.getUserMedia(gumScreen, function (screenStream) {\n navigator.getUserMedia(gumWebcam, function (webcamStream) {\n localVideo.src = URL.createObjectURL(webcamStream);\n screenVideo.src = URL.createObjectURL(screenStream);\n\n console.log('Adding webcam stream', webcamStream);\n pc.addStream(webcamStream);\n\n console.log('Adding screen stream', screenStream);\n pc.addStream(screenStream);\n\n if (isCaller) {\n pc.createOffer(gotOfferDescription, createOfferFailure);\n }\n else {\n pc.createAnswer(gotAnswerDescription, createAnswerFailure);\n }\n }, gumError);\n }, gumError);\n\n function gumError(err) {\n console.log('gUM error: ', err);\n }\n}", "function startVideo() {\n console.log(\"Inside Start Video\");\n stream.getVideoTracks()[0].enabled = true;\n }", "async function connect_camera() {\n\t\ttry {\n\t\t\tlet stream = await navigator.mediaDevices.getUserMedia({\n\t\t\t\tvideo: { facingMode: \"user\" },\n\t\t\t\taudio: false\n\t\t\t});\n\t\t\tvideo_element.srcObject = stream;\n\t\t\tvideo_element.setAttribute('playsinline', true);\n\t\t\tvideo_element.setAttribute('controls', true);\n\t\t\t// remove controls separately\n\t\t\tsetTimeout(function() { video_element.removeAttribute('controls'); });\n\t\t} catch(error) {\n\t\t\tconsole.error(\"Got an error while looking for video camera: \" + error);\n\t\t\treturn null;\n\t\t}\n\t}", "_initVideoStream () {\n const getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia ||\n navigator.mozGetUserMedia || navigator.msGetUserMedia\n if (!getUserMedia) {\n throw new Error('Webcam feature not supported! :(')\n }\n\n getUserMedia.call(navigator, { video: true }, (stream) => {\n this._stream = stream\n this._video.onloadedmetadata = this._onVideoReady.bind(this)\n this._video.src = window.URL.createObjectURL(stream)\n }, (err) => {\n throw err\n })\n }", "function start_conversation(){\n $(\"#body-wrapper\").hide();\n\n var video_peer = new Peer({key: '57jf1vutabvjkyb9'});\n var audio_peer = new Peer({key: '57jf1vutabvjkyb9'});\n \n //musician\n if(if_musician){\n //we need to await the call\n initialize_musician(video_peer, audio_peer);\n } else {\n initialize_critiquer(video_peer, audio_peer);\n }\n\n video_peer.on('error', function(err){\n alert(err.message);\n });\n\n audio_peer.on('error', function(err){\n alert(err.message);\n });\n\n //draws a new timeline with specified totalDuration\n makeTimeline();\n }", "function StartVidyoConnector(VC, webrtc) {\n\n //var vidyoConnector;\n var cameras = {};\n var microphones = {};\n var speakers = {};\n var cameraPrivacy = false;\n var microphonePrivacy = false;\n var configParams = {};\n\n\n $(\"#options\").removeClass(\"hidden\");\n $(\"#optionsVisibilityButton\").removeClass(\"hidden\");\n $(\"#renderer\").removeClass(\"hidden\");\n\n window.onresize = function() {\n HideRenderer(vidyoConnector);\n ShowRenderer(vidyoConnector);\n };\n\n window.onbeforeunload = function() {\n HideRenderer(vidyoConnector);\n }\n\n window.onmove = function() {\n HideRenderer(vidyoConnector);\n ShowRenderer(vidyoConnector);\n }\n\n VC.CreateVidyoConnector({\n viewId: \"renderer\", // Div ID where the composited video will be rendered, see VidyoConnector.html;\n viewStyle: \"VIDYO_CONNECTORVIEWSTYLE_Default\", // Visual style of the composited renderer\n remoteParticipants: 16, // Maximum number of participants to render\n logFileFilter: \"warning info@VidyoClient info@VidyoConnector\",\n logFileName: \"\",\n userData: \"\"\n }).then(function(vc) {\n vidyoConnector = vc;\n var position = {\n offsetLeft: 0,\n offsetTop: 0,\n width: 0,\n height: 0\n }\n console.log('**!!** CreateVidyoConnector ShowRenderer(vidyoConnector)');\n ShowRenderer(vidyoConnector, position);\n parseUrlParameters(configParams);\n registerDeviceListeners(vidyoConnector, cameras, microphones, speakers);\n handleDeviceChange(vidyoConnector, cameras, microphones, speakers);\n handleParticipantChange(vidyoConnector);\n handleSharing(vidyoConnector, webrtc);\n\n // Populate the connectionStatus with the client version\n vidyoConnector.GetVersion().then(function(version) {\n $(\"#clientVersion\").html(\"v \" + version);\n }).catch(function() {\n console.error(\"GetVersion failed\");\n });\n\n\n // If enableDebug is configured then enable debugging\n if (configParams.enableDebug === \"1\") {\n vidyoConnector.EnableDebug({ port: 7776, logFilter: \"warning info@VidyoClient info@VidyoConnector\" }).then(function() {\n console.log(\"EnableDebug success\");\n }).catch(function() {\n console.error(\"EnableDebug failed\");\n });\n }\n\n //always autojoin\n joinLeave();\n\n // Join the conference if the autoJoin URL parameter was enabled\n //if (configParams.autoJoin === \"1\") {\n // joinLeave();\n //} else {\n // // Handle the join in the toolbar button being clicked by the end user.\n // $(\"#joinLeaveButton\").one(\"click\", joinLeave);\n //}\n }).catch(function(err) {\n console.error(\"CreateVidyoConnector Failed \" + err);\n });\n // Handle the record function to toggle recording\n $(\"#recordButton\").click(function() {\n var temp = new Date() / 1000 | 0;\n if (recordingToggle) {\n if (temp - recordTime > 30) {\n document.getElementById(\"rec\").style.display = \"none\";\n $(\"#recordingStatus\").html();\n recordTime = temp;\n recordingToggle = !recordingToggle;\n $(\"#recordButton i\").removeClass(\"pulse\");\n console.log('BEFORE recordingCount = ', recordingCount);\n ToggleRecording(recordingToggle, roomKey, recordingCount);\n console.log('AFTER recordingCount = ', recordingCount);\n\n console.log('recording toggle = ', recordingToggle);\n } else {\n alert(\"Recording should last for at least 30 seconds\");\n }\n } else {\n if (temp - recordTime > 15) {\n document.getElementById(\"rec\").style.display = \"block\";\n $(\"#recordingStatus\").html(\"Recording\");\n recordTime = new Date() / 1000 | 0;\n recordingToggle = !recordingToggle;\n $(\"#recordButton i\").addClass(\"pulse\");\n console.log('BEFORE recordingCount = ', recordingCount);\n ToggleRecording(recordingToggle, roomKey, recordingCount);\n console.log('AFTER recordingCount = ', recordingCount);\n\n console.log('recording toggle = ', recordingToggle);\n } else {\n alert(\"Please keep 15 seconds in between pressing record.\");\n }\n }\n\n });\n // Handle the camera privacy button, toggle between show and hide.\n $(\"#cameraButton\").click(function() {\n // CameraPrivacy button clicked\n cameraPrivacy = !cameraPrivacy;\n vidyoConnector.SetCameraPrivacy({\n privacy: cameraPrivacy\n }).then(function() {\n if (cameraPrivacy) {\n $(\"#cameraButton\").addClass(\"cameraOff\").removeClass(\"cameraOn\");\n } else {\n $(\"#cameraButton\").addClass(\"cameraOn\").removeClass(\"cameraOff\");\n }\n console.log(\"SetCameraPrivacy Success\");\n }).catch(function() {\n console.error(\"SetCameraPrivacy Failed\");\n });\n });\n\n $(\"#fullScreenButtonTeacher\").click(function() {\n // FullScreen button clicked\n\n var position = {\n offsetLeft: 0,\n offsetTop: 0,\n width: $(window).width(),\n height: $(window).height() - 60\n };\n document.getElementById(\"fullScreenButtonClose\").style.display = \"block\";\n //console.log(\"check\")\n //console.log(document.getElementById(\"fullScreenButtonClose\").style.display);\n ShowRenderer(vidyoConnector, position);\n\n });\n\n //$(\"#fullScreenButtonStudent\").click(function () {\n // // FullScreen button clicked\n // var elem = document.getElementById(\"vidyoConnector\");\n // if (elem.requestFullscreen)\n // elem.requestFullscreen();\n // else if (elem.webkitRequestFullscreen)\n // elem.webkitRequestFullscreen();\n\n // document.getElementById(\"fullScreenButtonClose\").style.display = \"block\";\n // //console.log(\"check\")\n // //console.log(document.getElementById(\"fullScreenButtonClose\").style.display);\n // //ShowRenderer(vidyoConnector, position);\n\n //});\n\n $(\"#fullScreenButtonClose\").click(function() {\n // FullScreen button clicked\n\n document.getElementById(\"fullScreenButtonClose\").style.display = \"none\";\n //console.log(\"check\");\n //console.log(document.getElementById(\"fullScreenButtonClose\").style.display);\n ShowRenderer(vidyoConnector);\n\n\n });\n // Handle the microphone mute button, toggle between mute and unmute audio.\n $(\"#microphoneButton\").click(function() {\n // MicrophonePrivacy button clicked\n microphonePrivacy = !microphonePrivacy;\n vidyoConnector.SetMicrophonePrivacy({\n privacy: microphonePrivacy\n }).then(function() {\n if (microphonePrivacy) {\n $(\"#microphoneButton\").addClass(\"microphoneOff\").removeClass(\"microphoneOn\");\n } else {\n $(\"#microphoneButton\").addClass(\"microphoneOn\").removeClass(\"microphoneOff\");\n }\n console.log(\"SetMicrophonePrivacy Success\");\n }).catch(function() {\n console.error(\"SetMicrophonePrivacy Failed\");\n });\n });\n\n // Handle the options visibility button, toggle between show and hide options.\n $(\"#optionsVisibilityButton\").click(function() {\n // OptionsVisibility button clicked\n if ($(\"#optionsVisibilityButton\").hasClass(\"hideOptions\")) {\n $(\"#options\").addClass(\"hidden\");\n $(\"#optionsVisibilityButton\").addClass(\"showOptions\").removeClass(\"hideOptions\");\n $(\"#renderer\").addClass(\"rendererFullScreen\").removeClass(\"rendererWithOptions\");\n } else {\n $(\"#options\").removeClass(\"hidden\");\n $(\"#optionsVisibilityButton\").addClass(\"hideOptions\").removeClass(\"showOptions\");\n $(\"#renderer\").removeClass(\"rendererFullScreen\").addClass(\"rendererWithOptions\");\n }\n });\n\n $(\"#optionsButton\").click(function() {\n HideRenderer(vidyoConnector);\n });\n\n $(\"#shareScreenButton\").click(function() {\n HideRenderer(vidyoConnector);\n });\n\n $(\"#shareScreenButtonClose\").click(function() {\n ShowRenderer(vidyoConnector);\n });\n\n function joinLeave() {\n // join or leave dependent on the joinLeaveButton, whether it\n // contains the class callStart of callEnd.\n if ($(\"#joinLeaveButton\").hasClass(\"callStart\")) {\n $(\"#connectionStatus\").html(\"Connecting...\");\n $(\"#joinLeaveButton\").removeClass(\"callStart\").addClass(\"callEnd\");\n $('#joinLeaveButton').prop('title', 'Leave Conference');\n connectToConference(vidyoConnector);\n } else {\n $(\"#connectionStatus\").html(\"Disconnecting...\");\n vidyoConnector.Disconnect().then(function() {\n console.log(\"Disconnect Success\");\n }).catch(function() {\n console.error(\"Disconnect Failure\");\n });\n }\n $(\"#joinLeaveButton\").one(\"click\", joinLeave);\n }\n\n}", "function openVideoPage() {\n\n chatDiv.style.display = \"none\"; // Hide the chat\n sceneDiv.style.display = \"none\"; //Hide 3D scene\n videoDiv.style.display = \"inline-block\"; //Open videopage\n document.body.style.backgroundColor = \"grey\";\n\n chatButton.hidden = false;\n videoButton.hidden = true;\n roomButton.hidden = false;\n\n videoDisplay();\n}", "function videoReady() {\n console.log('Video is ready!!!');\n}", "function startVideo() {\n navigator.getUserMedia(\n { \n video: \n {\n //the ideal part is imp, it helps to get 16:9 ratio also\n height : { ideal : window.innerHeight } ,\n width : { ideal : window.innerWidth }\n } \n } ,\n stream => video.srcObject = stream,\n err => console.error(err)\n ) \n}", "function initialize_musician(video_peer, audio_peer){\n var toggle_critique = false;\n\n $(\"#start_session\").on(\"click\", function(snapshot){\n //on first button click, toggle to stop\n var audio = document.getElementById(\"their-audio\");\n if($(\"#start_session\").val() == \"Start recording\") {\n practice_session.child('practice_start').set(new Date().getTime());\n $(\"#start_session\").val(\"End recording\");\n $('#start_session').css({\"background-color\": \"#8A3E55\"});\n $(\"#recording\").fadeTo(\"slow\",1.0);\n $('#practice-container').show();\n $(\".musician_practice_item\").show();\n $(\".memo\").hide();\n $(\"#standby\").hide();\n \n audio.muted = true;\n start_recording();\n } else {\n practice_session.child('practice_end').set(new Date().getTime());\n stop_recording();\n audio.muted = false;\n $(\"#start_session\").fadeOut();\n $(\"#recording\").fadeOut();\n $('#practice-container').hide();\n begin_critique_session();\n } \n });\n \n var peers_logged_in = 0;\n video_peer.on('open', function(peer_id){\n \n practice_session.child(\"musician_video_peer_id\").set(peer_id);\n peers_logged_in += 1;\n\n //await the call from the crtiquer. Just chill out in the window\n video_peer.on('call', function(call){\n if(peers_logged_in == 2){\n $(\"#waiting_response\").hide(); \n $('#playback-container').show(); \n }\n call.answer(window.video_stream);\n call.on('stream', function(stream){\n $(\"#their-video\").prop('src', URL.createObjectURL(stream));\n });\n });\n });\n\n audio_peer.on('open', function(peer_id){\n peers_logged_in += 1;\n practice_session.child(\"musician_audio_peer_id\").set(peer_id);\n\n //await the call from the crtiquer. Just chill out in the window\n audio_peer.on('call', function(call){\n if(peers_logged_in == 2){\n // $(\".memo\").hide();\n $(\"#waiting_response\").hide(); \n $('#playback-container').show(); \n }\n call.answer(window.audio_stream);\n call.on('stream', function(stream){\n $(\"#their-audio\").prop('src', URL.createObjectURL(stream));\n });\n });\n });\n }", "function initVideo(callback){\n\t\tconsole.log('(ReachSDK::localstream::initVideo)');\n\t\tif (! initVideoProgress) {\n\t\t\tinitVideoProgress=true;\n\t\t\t_getAllVideoSources().then((sources)=>{\n\t\t\t\tnavigator.getMedia = getUserMedia;\n\t\t\t\tmLocalStreamVideo = document.createElement('VIDEO');\n\t\t\t\tmLocalStreamVideo.muted= true;\n\t\t\t\t// localVideoStreams.push(mLocalStreamVideo);\n\n\t\t\t\tlet audioSource;\n\t\t\t\tlet videoSource;\n\n\t\t\t\tif(sources[currentVideoSource]){\n\t\t\t\t\tvideoSource = sources[currentVideoSource].deviceId;\n\t\t\t\t}\n\n\t\t\t\tconst constraints = {\n\t\t\t\t\taudio: {deviceId: audioSource ? {exact: audioSource} : undefined},\n\t\t\t\t\tvideo: {deviceId: videoSource ? {exact: videoSource} : undefined}\n\t\t\t\t};\n\n\t\t\t\tif(streamVideo === null || videoSource){\n\t\t\t\t\tnavigator.getMedia(constraints,\n\t\t\t\t\t\t(s) => {\n\t\t\t\t\t\t\tconsole.log(s);\n\t\t\t\t\t\t\tstreamVideo = s;\n\n\t\t\t\t\t\t\tlocalVideoStreams.forEach((localVideoStream) => {\n\t\t\t\t\t\t\t\tattachMediaStream(localVideoStream, streamVideo);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t// localVideoStreams = [];\n\n\t\t\t\t\t\t\tlistenersVideo.forEach((listenerVideo) => {\n\t\t\t\t\t\t\t\tlistenerVideo(streamVideo);\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tstreamListenersVideo.forEach((streamListenerVideo) => {\n\t\t\t\t\t\t\t\tstreamListenerVideo(streamVideo);\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tlistenersVideo = [];\n\n\t\t\t\t\t\t\tinitVideoProgress=false;\n\n\t\t\t\t\t\t\tif (callback) {\n\t\t\t\t\t\t\t\tcallback();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t(error) => {\n\t\t\t\t\t\t\tconsole.error('Error on webrtcLocalStream - webkitGetUserMedia : error=');\n\t\t\t\t\t\t\tconsole.dir(error);\n\t\t\t\t\t\t\tinitVideoProgress = false;\n\n\t\t\t\t\t\t\tif (callback) {\n\t\t\t\t\t\t\t\tcallback(error);\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} else {\n\t\t\t\t\tlocalVideoStreams.forEach((localVideoStream) => {\n\t\t\t\t\t\tattachMediaStream(localVideoStream, streamVideo);\n\t\t\t\t\t});\n\t\t\t\t\t// localVideoStreams = [];\n\n\t\t\t\t\tlistenersVideo.forEach((listenerVideo) => {\n\t\t\t\t\t\tlistenerVideo(streamVideo);\n\t\t\t\t\t});\n\t\t\t\t\tlistenersVideo = [];\n\n\t\t\t\t\tinitVideoProgress = false;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "async function startVideo() {\n console.log(\"Requesting Local Media\");\n try {\n // TODO: Add checking for camera and audio\n const userMedia = await navigator.mediaDevices.getUserMedia({\n audio: false,\n video: true,\n });\n\n console.log(\"Recieved Local Media\");\n\n stream = userMedia;\n videoElementHTML.srcObject = stream;\n socket.emit(\"stream_online\");\n } catch (err) {\n console.error(`Error getting local media: ${err}`);\n }\n}", "async function populateVideo() {\n // We grab the feed off the user's webcam\n const stream = await navigator.mediaDevices.getUserMedia({\n video: { width: 1280, height: 720 },\n });\n\n // We set the object to be the stream\n video.srcObject = stream; // usually when dealing with video files we use video.src = 'videoName.mp4'\n await video.play();\n\n // size the canvases to be the same size as the video\n console.log(video.videoWidth, video.videoHeight);\n\n canvas.width = video.videoWidth;\n canvas.height = video.videoHeight;\n\n faceCanvas.width = video.videoWidth;\n faceCanvas.height = video.videoHeight;\n}", "async function init(options = {}) {\n session.client = undefined;\n initLivenessDesign();\n\n // request a sessionId from backend (if we are switching camera we use the same session)\n if (!session.sessionId || !options.switchCamera) {\n const createdSession = await commonutils.initLivenessSession(settings.basePath, session.sessionIdParam || '', session.identityIdParam || '')\n .catch(() => {\n session.sessionId = false;\n stopVideoCaptureAndProcessResult(false, __('Failed to initialize session'));\n });\n session.sessionId = createdSession.sessionId;\n session.identityId = createdSession.identityId;\n }\n if (!session.sessionId) {\n return;\n }\n // initialize the face capture client with callbacks\n const faceCaptureOptions = getFaceCaptureOptions();\n faceCaptureOptions.wspath = settings.videoBasePath + '/engine.io';\n faceCaptureOptions.bioserverVideoUrl = settings.videoUrl;\n faceCaptureOptions.rtcConfigurationPath = settings.videoUrlWithBasePath + '/coturnService?bioSessionId=' + encodeURIComponent(session.sessionId);\n session.client = await BioserverVideo.initFaceCaptureClient(faceCaptureOptions);\n\n if (session.client) {\n // get user camera video (front camera is default)\n session.videoStream = await BioserverVideo.getMediaStream({ videoId: 'user-video', video: { deviceId: options.deviceId } })\n .catch((e) => {\n let msg = __('Failed to get camera device stream');\n let extendedMsg;\n if (e.name && e.name.indexOf('NotAllowed') > -1) {\n msg = __('You denied camera permissions, either by accident or on purpose.');\n extendedMsg = __('In order to use this demo, you need to enable camera permissions in your browser settings or in your operating system settings.');\n }\n stopVideoCaptureAndProcessResult(false, msg, '', extendedMsg);\n });\n if (!session.videoStream) {\n session.videoOutput.srcObject = null;\n session.client.disconnect();\n return;\n }\n // display the video stream\n session.videoOutput.srcObject = session.videoStream;\n session.loadingInitialized.classList.add(settings.D_NONE_FADEOUT); // initialization successfully, remove loading for video\n session.headStartPositionOutline.classList.remove(settings.D_NONE_FADEOUT);\n }\n}", "function createVideoFeedButton() {\n // Send video to everyone\n $('#start-video-feed').on('click', function() {\n // Vendor specific madness\n navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia;\n window.URL = window.URL || window.webkitURL || window.mozURL || window.msURL;\n navigator.getUserMedia({\n video: true,\n audio: true\n }, function(stream) {\n $('#start-video-feed').hide();\n $('#stop-video-feed').show()\n .on('click',function(){\n $('#start-video-feed').show();\n $('#stop-video-feed').hide();\n stream.stop();\n eachActiveConnection(function(c,$c){\n if(c.label==='videoFeed'){\n c.send(\"close\");\n }\n });\n \n });\n\n eachActiveConnection(function(c, $c) {\n if (c.label === 'videoFeed') {\n var call = peer.call(c.peer, stream);\n openStreams.push(c.peer);\n }\n })\n }, function(err) {\n console.log('videoFeed: '+err)\n });\n })\n }", "function startLocalPreview() {\n log_d(\"Starting local video\");\n $('#webcamsSelect').val(window.configuredDevice);\n var succHandler = function (sinkId) {\n window.localPreviewStarted = true;\n log_d(\"Local video started. Setting up renderer\");\n var rendererContent = RENDER_LOCAL_TMPL.replace('#', '_local');\n $('.feeds-wrapper').append($(rendererContent));\n CDO.renderSink(sinkId, 'userFeed_local');\n };\n service.startLocalVideo(CDO.createResponder(succHandler));\n}", "function initNativeMedia(onSuccess, onFailure, options) {\n if(options){\n videoContainer = options.videoContainer;\n localVideoContainer = options.localVideoContainer;\n remoteVideoContainer = options.remoteVideoContainer;\n \n if(videoContainer){\n defaultVideoContainer = videoContainer;\n }\n }\n webRTCInitialized = true;\n checkMediaSourceAvailability(); \n onSuccess();\n }", "function init() {\n\t\tconsole.log('init');\n\t\t// Put event listeners into place\n\t\t// Notice that in this specific case handlers are loaded on the onload event\n\t\twindow.addEventListener(\n\t\t\t'DOMContentLoaded',\n\t\t\tfunction() {\n\t\t\t\t// Grab elements, create settings, etc.\n\t\t\t\tvar canvas = document.getElementById('canvas');\n\t\t\t\tvar context = canvas.getContext('2d');\n\t\t\t\t// context.transform(3,0,0,1,canvas.width,canvas.heigth);\n\t\t\t\tvar video = document.getElementById('video');\n\t\t\t\tvar mediaConfig = {\n\t\t\t\t\tvideo: true\n\t\t\t\t};\n\t\t\t\tvar errBack = function(e) {\n\t\t\t\t\tconsole.log('An error has occurred!', e);\n\t\t\t\t};\n\n\t\t\t\tlet aspectRatio = 2;\n\n\t\t\t\t// Put video listeners into place\n\t\t\t\tif (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {\n\t\t\t\t\tnavigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {\n\t\t\t\t\t\taspectRatio = stream.getVideoTracks()[0].getSettings().aspectRatio;\n\t\t\t\t\t\tdocument.getElementById('video-spinner').style.display = 'block';\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\t// Trigger photo take\n\t\t\t\tdocument.getElementById('snap').addEventListener('click', function() {\n\t\t\t\t\tdocument.getElementsByClassName('canvas-container')[0].style.visibility = 'visible';\n\t\t\t\t\tlet heigth = 480;\n\n\t\t\t\t\tcontext.save();\n\t\t\t\t\tcontext.translate(480 * aspectRatio, 0);\n\t\t\t\t\tcontext.scale(-1, 1);\n\t\t\t\t\tcontext.drawImage(video, 0, 0, aspectRatio * heigth, heigth);\n\t\t\t\t\tcontext.restore();\n\t\t\t\t\tstate.photoSnapped = true; // photo has been taken\n\t\t\t\t});\n\n\t\t\t\t// Trigger when upload button is pressed\n\t\t\t\tif (document.getElementById('upload'))\n\t\t\t\t\tdocument.getElementById('upload').addEventListener('click', () => {\n\t\t\t\t\t\tdocument.getElementById('video-spinner').style.display = 'block';\n\t\t\t\t\t\t// uploadImage();\n\t\t\t\t\t\tselectImage();\n\t\t\t\t\t});\n\n\t\t\t\tif (document.getElementById('upload_search'))\n\t\t\t\t\tdocument.getElementById('upload_search').addEventListener('click', () => {\n\t\t\t\t\t\tdocument.getElementById('video-spinner').style.display = 'block';\n\t\t\t\t\t\t// searchImage();\n\t\t\t\t\t});\n\t\t\t},\n\t\t\tfalse\n\t\t);\n\t}", "function startVideo() {\n const constraints = { video: true, audio: true };\n navigator.mediaDevices\n .getUserMedia(constraints)\n .then(function (stream) {\n // success\n window.stream = stream; // make variable available to browser console\n localVideo.srcObject = stream;\n\n localStream = stream;\n\n // auto start\n tellReady();\n })\n .catch(function (error) {\n // error\n console.error(\"An error occurred:\");\n console.error(error);\n return;\n });\n}", "function initPhoner() {\n try {\n phoner.init();\n if (browser.isSafariWebRTC()) {\n Phoner.playFirstVideo(localVideo, true);\n }\n } catch (e) {\n setStatus('error');\n throw new Error('[Caster] - cannot initiate phoner. Status degrading.');\n }\n }", "function init_camerabox(user, psk, boxid){\n\tvar cbox = $(\"#\" + boxid);\n\tif(cbox){\n\t\tgetUserLiveVideo(user, function(vid){\n\t\t\t\n\t\t\tshowVideo(cbox, vid, user, psk);\n\t\t},function(){\n\t\t\thideVideo(cbox, user, psk);\n\t\t});\n\t}\n}", "function startVideo() {\n navigator.getUserMedia(\n { video: {} },\n stream => video.srcObject = stream,\n error => console.error(error)\n )\n}", "async function invite(evt) {\n log(\"Starting to prepare an invitation\");\n if (myPeerConnection) {\n alert(\"You can't start a call because you already have one open!\");\n } else {\n createPeerConnection();\n try {\n webcamStream = await navigator.mediaDevices.getUserMedia(\n mediaConstraints\n );\n setMediaController(webcamStream);\n document.getElementById(\"localVideo\").srcObject = webcamStream;\n } catch (err) {\n handleGetUserMediaError(err);\n return;\n }\n\n // Add the tracks from the stream to the RTCPeerConnection\n\n try {\n webcamStream.getTracks().forEach(\n (transceiver = (track) =>\n myPeerConnection.addTransceiver(track, {\n streams: [webcamStream],\n }))\n );\n } catch (err) {\n handleGetUserMediaError(err);\n }\n }\n }", "async function init(constraints){\n\n if(navigator.userAgent.indexOf(\"Firefox\") != -1 ) \n {\n recordButton.disabled=true;\n startButton.disabled=true;\n errorMsgElement.innerHTML = \"<p style='color:#FF0000';>Webcam recording does not work in Firefox. Please try another browser.</p>\"\n }\n else{\n try{\n const stream = await navigator.mediaDevices.getUserMedia(constraints)\n handleSuccess(stream)\n startButton.textContent = \"Stop Camera\"\n }catch (e){\n console.error('navigator.getUserMedia error:', e)\n errorMsgElement.innerHTML = \"<p style='color:#FF0000';>Could not start the camera. Please try another browser.</p>\"\n }\n }\n}", "function startStream () {\n startButton.setAttribute('disabled', true)\n video.addEventListener('canplay', function() {\n videoWidth = video.videoWidth;\n videoHeight = video.videoHeight;\n var duration = video.duration;\n var i = 0;\n\n var interval = setInterval(function() {\n if ((socket == null) || (\"undefined\" === typeof socket)) {\n console.log(\"ROOM NOT CONNECTED >> no avatar broadcast\");\n return;\n }\n context.drawImage(video, 0, 0, 256, 256);\n var dataURL = canvas.toDataURL('image/jpeg', 0.1);\n // console.log(\"created avatar face with \" + dataURL);\n socket.emit(\"avatar-face\", JSON.stringify( {\"socket_id\": socket.id, 'type':'avatar-face', 'imagebuffer': dataURL} ) );\n }, 300);\n });\n navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia;\n if (navigator.getUserMedia) {\n navigator.getUserMedia({audio: true, video: { width: 320, height: 240}}, handleVideo, videoError);\n }\n function handleVideo(stream) {\n var video = document.querySelector(\"video\");\n video.src = window.URL.createObjectURL(stream);\n video.volume = 0;\n }\n function videoError(e) {console.log(e);}\n\n // Usually, this would use PubNub Phone WebRTC to do VOIP,\n // This is also availabel as a support mechanism\n document.getElementById('echobutton').addEventListener('click',function() { window.open('https://discord.gg/3j7XYqY','_blank'); });\n }", "function start() {\n canvasElement.style.display = \"none\";\n webcamElement.style.display = \"block\";\n snapButtonElement.style.display = \"block\";\n startButtonElement.style.display = \"none\";\n\n webcam.start()\n .then(result => {\n console.log(\"result\");\n })\n .catch(err => {\n alert(err);\n console.log(err);\n });\n}", "function init() {\n\t// Load the video data and populate the array of all video IDs\n\t$.getJSON('vids.json', function(data) {\n\t\tfor (var i=0;i<data.vids.length;i++) {\n\t\t\tif(i%2==0) {\n\t\t\t\tvid_array[(i/2)+1] = data.vids[i];\n\t\t\t}\n\t\t}\n\t\tswitchToVideo(vid_array.length-1);\n\t\tswitchToPage(1);\n\t\tchangeNowPlaying(vid_array.length-1);\n\t\tpopulatePages();\n\t\t$('#page-1').addClass('current-page');\n\t\t$('#scriptless').remove();\t\t\n\t}); \n}", "async init() {\n // FIXME: VideoLink appears after 1.5 seconds, it's too slow, find better way\n this.vidlink = null;\n this.video = await Player.untilVideoAppears();\n\n this.ads = new PlayerAds();\n this.events = new PlayerEvents(this.video);\n this.timeline = new PlayerTimeline(this.video);\n this.annotations = new PlayerAnnotations();\n\n this.rightControls = Player.findRightControls();\n this.controlsContainer = Player.findControlsContainer();\n\n Player.untilVideoLinkAppears().then((link) => { this.vidlink = link; });\n }", "async function setConnection(connid) //This function is used to set a new webRTC connection between peers\n {\n var connection = new RTCPeerConnection(iceConfiguration);\n\n connection.onnegotiationneeded = async function (event)//This event is fired when a change has occurred which requires session negotiation.\n {\n await setOffer(connid);\n };\n connection.onicecandidate = function (event) //This is called whenever the local ICE agent needs to deliver a message to the other peer through the signaling server\n {\n if (event.candidate) {\n serverProcess(\n JSON.stringify({ icecandidate: event.candidate }),\n connid\n );\n }\n };\n connection.ontrack = function (event) //This is an event handler which specifies a function to be called when the track event occurs, indicating that a track has been added to the RTCPeerConnection\n {\n if (!remote_vid_stream[connid]) {\n remote_vid_stream[connid] = new MediaStream(); //If remote vid stream is not already setup , this function does that\n }\n if (!remote_aud_stream[connid]) {\n remote_aud_stream[connid] = new MediaStream(); //If remote aud stream is not already setup , this function does that\n }\n\n if (event.track.kind == \"video\") //This loads video player tracks of the user\n {\n remote_vid_stream[connid]\n .getVideoTracks()\n .forEach((t) => remote_vid_stream[connid].removeTrack(t));\n remote_vid_stream[connid].addTrack(event.track);\n var remoteVideoPlayer = document.getElementById(\"v_\" + connid);\n remoteVideoPlayer.srcObject = null;\n remoteVideoPlayer.srcObject = remote_vid_stream[connid];\n remoteVideoPlayer.load();\n } else if (event.track.kind == \"audio\") //This loads audio player tracks of the user\n {\n remote_aud_stream[connid]\n .getAudioTracks()\n .forEach((t) => remote_aud_stream[connid].removeTrack(t));\n remote_aud_stream[connid].addTrack(event.track);\n var remoteAudioPlayer = document.getElementById(\"a_\" + connid);\n remoteAudioPlayer.srcObject = null;\n remoteAudioPlayer.srcObject = remote_aud_stream[connid];\n remoteAudioPlayer.load();\n }\n };\n peers_connection_ids[connid] = connid;\n peers_connection[connid] = connection;\n\n if (\n video_st == video_states.Camera ||\n video_st == video_states.ScreenShare\n ) {\n if (videoCamTrack) {\n updateMediaSenders(videoCamTrack, rtp_vid_senders); //Updates Camera state to media senders when the videocamtrack is true\n }\n }\n\n return connection;\n }", "function initVideo() {\n var $video = $(\"#myVideo\");\n\n var $btn = $(\"#myBtn\");\n // debugger;\n if ($video[0].paused) {\n $video[0].play();\n $btn.html(\"Pause\");\n } else {\n $video[0].pause();\n $btn.html(\"Play\");\n }\n }", "function initiateCall() {\n prepareCall();\n // get the local stream and send it\n requestScreenShare()\n .then((stream) => {\n localVideoStream = stream;\n peerConn.addStream(localVideoStream);\n createAndSendOffer();\n })\n .catch(console.error);\n}", "function manipulatevideo(){\n if( cameravideo || capturevideo ){\n cameravideo = false;\n capturevideo = false;\n capturestream = null;\n buttonOff(document.querySelector('.app__system--button.video'));\n camerastream.getVideoTracks()[0].enabled = cameravideo;\n document.getElementById('localvideo').srcObject = camerastream;\n //-------------------CREATE NEW PRODUCER-------------------------------------------\n removeOldVideoProducers();\n let videoProducer = mediasouproom.createProducer(camerastream.getVideoTracks()[0]);\n videoProducer.send(sendTransport);\n updatevideo();\n }\n}", "async function startStream() \n {\n \n if (localMediaStream)\n return;\n\n try {\n localMediaStream = await navigator.mediaDevices.getUserMedia({\n video: true,\n audio: true\n });\n\n }\n catch (e) {\n console.error('start camera error', e);\n }\n\n await soupclient.sendStream(localMediaStream);\n\n\n const ret = await window.drawsocket.on_newLocalStream(localMediaStream);\n if( ret != 1 )\n {\n defaultDisplay();\n }\n\n // default display when \n }", "function create_video_element( caller_rtc_id, cls )\n{\n\ttrace(\"Creating a video for \" + rtc_name( caller_rtc_id ) );\n\t$(\"#video-box\").append(\"<div class='slot \" + cls + \"'><video rtc_id='\"+caller_rtc_id+\"' rtc_name='\"+rtc_name(caller_rtc_id)+\"'></video><div class='video-button'><span class='name'>\"+rtc_name(caller_rtc_id)+\"</span><span class='kickout'>Kickout</span></div></div>\");\n\t\n\t/**\n\t * \n\t * 이 콜백 함수는\n\t * \n\t * 내가 들어가 있는 방에\n\t * \n\t * 나를 포함한, 입장하하는 사용자 마다 호출된다.\n\t * \n\t * 이 함수는 callback_connect_success() 다음에 호출된다.\n\t */\n\tif ( typeof callback_create_video_element == 'function' ) callback_create_video_element( caller_rtc_id, cls );\n\treturn $(\"#video-box video[rtc_id='\"+caller_rtc_id+\"']\")[0];\n}", "function startvideo() {\n webcam.style.width = document.width + 'px';\n webcam.style.height = document.height + 'px';\n webcam.setAttribute('autoplay', '');\n webcam.setAttribute('muted', '');\n\twebcam.setAttribute('playsinline', '');\n\n var constraints = {\n audio: false,\n video: {\n facingMode: 'user'\n }\n }\n \tnavigator.mediaDevices.getUserMedia(constraints).then(function success(stream) {\n webcam.srcObject = stream;\n initImages();\n animate();\n });\n}", "function attach() {\n\t\tvar player = getPlayer();\n\t\tplayer.addEventListener('onStateChange', function (state) {\n\t\t\tif (state == '0' && looping)\n\t\t\t\tplayer.playVideo();\n\t\t});\n\t}", "function displayStaticVideo(cameraName, port) {\n let socket = io.connect('http://127.0.0.1:' + port);\n socket.on('frame', function (data) {\n const base64String = btoa(new Uint8Array(data.buffer).reduce(function(data, byte) {\n return data + String.fromCharCode(byte);\n }, ''));\n if (!$('#block-button-' + cameraName).is(':disabled')) {\n $('#canvas-image-' + cameraName).attr('src', 'data:image/png;base64,' + base64String);\n }\n });\n}", "async function showVideo(videoSrc, videoType, videoLinkFromUrl) {\n // fetch video settings\n const videoPlayerSettings = await getVideoPlayerSettings(); \n // update info\n document.title = \"Watching Video By Provided Link\"; \n document.body.classList = \"watching-video-body\";\n basic.websiteContentContainer().classList = \"watching-video-websiteContentContainer\";\n let displayChromecast;\n try { \n if (videoPlayerSettings.chromecast == true) {\n displayChromecast = true;\n } else {\n displayChromecast = false;\n }\n } catch (error) {\n displayChromecast = false;\n }\n // create video player\n const videoPlayer = basic.createSection(basic.websiteContentContainer(), \"video-js\", \"vjs-default-skin vjs-big-play-centered\", \"video\");\n videoPlayer.style.width = \"100vw\";\n videoPlayer.style.height = \"100vh\";\n const Button = videojs.getComponent(\"Button\"); // eslint-disable-line\n if (videoType == \"application/x-mpegURL\") {\n const player = videojs(videoPlayer, { // eslint-disable-line\n controls: true,\n autoplay: true,\n preload: \"auto\",\n html5: {\n vhs: {\n overrideNative: true\n },\n nativeAudioTracks: false,\n nativeVideoTracks: false \n }\n }); \n\n // change icon from vjs-icon-cog to vjs-icon-hd - needs to be implemented better\n const httpSourceSelectorIconChange = document.createElement(\"style\");\n httpSourceSelectorIconChange.innerHTML = \".vjs-icon-cog:before { content: \\\"\\\\f114\\\"; font-size: 16px; }\";\n document.head.appendChild(httpSourceSelectorIconChange);\n\n const qualityLevels = player.qualityLevels(); \n // disable quality levels with less one qualityLevel options\n qualityLevels.on(\"addqualitylevel\", function(event) {\n let qualityLevel = event.qualityLevel; \n if(qualityLevels.levels_.length <= 1){ \n // dont show httpSourceSelector\n qualityLevel.enabled = false;\n } else{ \n // show httpSourceSelector\n player.httpSourceSelector();\n qualityLevel.enabled = true;\n } \n });\n\n let hlsVideoSrc; \n try { \n // check if desired chunklist is in videoSrc\n if(videoSrc.substr(videoSrc.length - 4) == \"m3u8\"){ \n // get chunklist\n const chunklist = videoSrc.substring( \n videoSrc.lastIndexOf(\"/\") + 1, \n videoSrc.lastIndexOf(\".m3u8\")\n ); \n // if chunklist contains chunklist \n if(chunklist.includes(\"chunklist\")){ \n // hls video src == new video src\n hlsVideoSrc = videoSrc.slice(0,videoSrc.lastIndexOf(\"/\")+1) + \"playlist\" + \".m3u8\";\n // replace url from orignial video src to new video src\n history.replaceState(null, \"\", `?t=${videoType}?v=${hlsVideoSrc}`);\n } else{ // orignial video src = hls video src\n hlsVideoSrc = videoSrc;\n } \n } else{ // orignial video src = hls video src\n hlsVideoSrc = videoSrc; \n }\n } catch (error) { // if error orignial video src = hls video src\n hlsVideoSrc = videoSrc; \n } \n \n // video hotkeys\n // eslint-disable-next-line no-undef\n videojs(videoPlayer).ready(function() {\n this.hotkeys({\n volumeStep: 0.05,\n seekStep: false,\n enableModifiersForNumbers: false,\n // just in case seekStep is active, return undefined\n forwardKey: function() {\n // override forwardKey to not trigger when pressed\n return undefined;\n },\n rewindKey: function() { \n // override rewindKey to not trigger when pressed\n return undefined;\n }\n });\n });\n\n // record stream\n const StopRecButton = videoButton.stopRecStreamButton(player, Button);\n const RecButton = videoButton.RecStreamButton(player, Button, StopRecButton, videoSrc, videoType);\n\n videojs.registerComponent(\"RecButton\", RecButton); // eslint-disable-line\n player.getChild(\"controlBar\").addChild(\"RecButton\", {}, 1);\n\n const topControls = videoButton.topPageControlBarContainer(player);\n videoButton.backToHomePageButton(topControls, videoLinkFromUrl); // closes player\n player.play(); // play video on load\n player.muted(videoPlayerSettings.muted); // set mute video settings on load\n player.volume(videoPlayerSettings.volume); // set volume video settings on load\n document.getElementById(\"video_html5_api\").onvolumechange = () => { // update global video player volume/mute settings\n updateVideoPlayerVolume(player.volume(), player.muted()); \n };\n player.src({ // video type and src\n type: videoType,\n src: hlsVideoSrc\n });\n // hide time from live video player\n const style = document.createElement(\"style\");\n style.innerHTML = `\n .video-js .vjs-time-control{display:none;}\n .video-js .vjs-remaining-time{display: none;}\n `;\n document.head.appendChild(style);\n } else if ( videoType == \"application/dash+xml\" ) {\n const player = videojs(videoPlayer, { // eslint-disable-line\n controls: true,\n autoplay: true,\n preload: \"auto\"\n });\n\n // video hotkeys\n // eslint-disable-next-line no-undef\n videojs(videoPlayer).ready(function() {\n this.hotkeys({\n volumeStep: 0.05,\n seekStep: 5,\n enableModifiersForNumbers: false\n });\n });\n\n const topControls = videoButton.topPageControlBarContainer(player);\n videoButton.backToHomePageButton(topControls, videoLinkFromUrl); // closes player\n player.play(); // play video on load\n player.muted(videoPlayerSettings.muted); // set mute video settings on load\n player.volume(videoPlayerSettings.volume); // set volume video settings on load\n document.getElementById(\"video_html5_api\").onvolumechange = () => { // update global video player volume/mute settings\n updateVideoPlayerVolume(player.volume(), player.muted()); \n };\n player.src({ // video type and src\n type: videoType,\n src: videoSrc\n });\n } else {\n const player = videojs(videoPlayer, { // eslint-disable-line\n \"playbackRates\":[0.25,0.5, 1, 1.25, 1.5, 2],\n controls: true,\n techOrder: [ \"chromecast\", \"html5\" ],\n plugins: {\n chromecast: {\n addButtonToControlBar: displayChromecast\n },\n seekButtons: {\n forward: 30,\n back: 10\n }\n }\n });\n \n // video hotkeys\n // eslint-disable-next-line no-undef\n videojs(videoPlayer).ready(function() {\n this.hotkeys({\n volumeStep: 0.05,\n seekStep: 5,\n enableModifiersForNumbers: false\n });\n });\n\n const topControls = videoButton.topPageControlBarContainer(player);\n const downloadVideoContainer = basic.createSection(topControls, \"div\", \"vjs-downloadVideo-container\");\n const downloadVideoButton = basic.createSection(downloadVideoContainer, \"button\", \"vjs-downloadVideo fa fa-download vjs-control vjs-button\", \"downloadVideoButton\");\n downloadVideoButton.title = \"Download Video\";\n\n const downloadVideoMenu = basic.createSection(downloadVideoContainer, \"section\", \"vjs-menu vjs-downloadVideo-menu\");\n downloadVideoMenu.style.display = \"none\";\n const downloadVideoMenuContent = basic.createSection(downloadVideoMenu, \"div\", \"vjs-menu-content\");\n\n videoButton.downloadVideoButton(downloadVideoMenuContent, videoSrc, videoType);\n videoButton.createTrimVideo(player, downloadVideoContainer, downloadVideoMenu,downloadVideoButton, downloadVideoMenuContent, videoSrc, videoType);\n\n downloadVideoContainer.onmouseover = function(){\n document.getElementById(\"downloadVideoButton\").focus();\n downloadVideoMenu.style.display = \"block\";\n document.getElementById(\"downloadVideoButton\").onclick = document.getElementById(\"downloadVideoButton\").blur();\n };\n downloadVideoContainer.onmouseout = function(){\n document.getElementById(\"downloadVideoButton\").blur();\n downloadVideoMenu.style.display = \"none\";\n };\n\n videoButton.backToHomePageButton(topControls, videoLinkFromUrl); // closes player\n player.play(); // play video on load\n player.muted(videoPlayerSettings.muted); // set mute video settings on load\n player.volume(videoPlayerSettings.volume); // set volume video settings on load \n document.getElementById(\"video_html5_api\").onvolumechange = () => { // update global video player volume/mute settings\n updateVideoPlayerVolume(player.volume(), player.muted()); \n }; \n player.src({ // video type and src\n type: videoType,\n src: videoSrc\n });\n }\n}", "function cam() {\n snapBtn.addEventListener('click', enroll);\n // detectButton.addEventListener('click', detect);\n navigator.mediaDevices.getUserMedia({\n audio: false,\n video: {\n width: 500,\n height: 500\n }\n })\n .then(stream => {\n video.srcObject = stream;\n video.onloadedmetadata = video.play()\n })\n .catch(err => console.error(err));\n}", "function startStream() {\n let url = 'http://' + ipAddress + '/webcam/?action=stream'\n var video = document.getElementById('video')\n\n video.setAttribute('src', url)\n\n}", "function startVideoChat(gCurrChatJid) {\r\n\tif(gCurrChatJid==null) {\r\n\t\talert(\"Please select a contact first.\");\r\n\t\treturn;\r\n\t}\r\n\tvar jid = gCurrChatJid;\r\n//\tstartTextChat(jid);\r\n\tif(gVideoChatState==VideoState.VIDEO_STATE_CONNECTING) {\r\n\t\talert(\"Connecting to mixserver please wait.\");\r\n\t\treturn;\r\n\t} else if(gVideoChatState==VideoState.VIDEO_STATE_CONNECTED) {\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tif(local_stream==null) {\r\n\t\tnavigator.webkitGetUserMedia({audio: true, video: true}, gotStream, gotStreamFailed);\r\n\t\tvar intervalId = setInterval(function() {\r\n\t//\t\t\tif(local_stream!=null) {\r\n\t\tgVideoChatState = VideoState.VIDEO_STATE_CONNECTING;\r\n\t\ttrace(\"sending an video chat invitation to \"+jid);\r\n\t\tvar videoInvt = $msg({to: jid, \"type\": \"chat\"}).c('video-chat', {type: \"video-invitation\"});\r\n // alert(videoInvt);\t\t\t\t\r\n \t\tGab.connection.send(videoInvt);\r\n\t\tclearInterval(intervalId);\r\n//\t\t}\r\n\t\t}, 200);\r\n\t} else {\r\n\t\ttrace(\"localstream not null!\");\r\n\t\tif(local_stream.audioTracks[1]) {\r\n\t\t\tlocal_stream.audioTracks[1].enabled = true;\r\n\t\t}\r\n\t\tif(local_stream.audioTracks[0]) {\r\n\t\t\tlocal_stream.audioTracks[0].enabled = true;\r\n\t\t}\r\n\t\tif(local_stream.videoTracks[1]) {\r\n\t\t\tlocal_stream.videoTracks[1].enabled = true;\r\n\t\t}\r\n\t\tif(local_stream.videoTracks[0]) {\r\n\t\t\tlocal_stream.videoTracks[0].enabled = true;\r\n\t\t}\r\n/*\t var url = webkitURL.createObjectURL(local_stream);\r\n\t document.getElementById(\"localView\").src = url;*/\r\n\t// moveChatArea(\"left\");\r\n\t \r\n\t\tgVideoChatState = VideoState.VIDEO_STATE_CONNECTING;\r\n\t\ttrace(\"sending an video chat invitation to \"+jid);\r\n\t var videoInvt = $msg({to: jid, \"type\": \"chat\"}).c('video-chat', {type: \"video-invitation\"});\r\n\t Gab.connection.send(videoInvt);\r\n\t}\r\n\r\n // createMultipleConnection();\r\n\r\n\t//\tgVideoChatState = VideoState.VIDEO_STATE_CONNECTED;\r\n}", "function startVideo() {\n video.isReady = true;\n}", "function renderWebCamVideo(webcamId, webcamObject, live) {\n // sample: <a name=\"lkr-timelapse-player\" data-id=\"1010244116\" data-play=\"live\" href=\"https://lookr.com/1010244116\" target=\"_blank\">Lausanne › South-East: Place de la Palud</a><script async type=\"text/javascript\" src=\"https://api.lookr.com/embed/script/player.js\"></script>\n var $webCam = $(\"<a>\");\n $webCam.attr(\"name\", \"lkr-timelapse-player\");\n $webCam.attr(\"data-id\", webcamId);\n $webCam.attr(\"data-play\", (live) ? \"live\" : \"day\");\n $webCam.attr(\"href\", (live) ? webcamObject.player.live.embed : webcamObject.player.day.embed);\n $webCam.attr(\"target\", \"_blank\");\n $webCam.text(webcamObject.title);\n\n $(\"#embedded-video\").empty();\n $(\"#embedded-video\").append($webCam);\n $(\"#embedded-video\").append('<script async type=\"text/javascript\" src=\"https://api.lookr.com/embed/script/player.js\"></script>');\n\n $(\"#video-title\").text(webcamObject.title);\n $(\"#video-city-country\").text(webcamObject.location.city + \", \" + webcamObject.location.country);\n\n scrollTo(0, 0); ///=======scrolling to top after button pressed\n }", "function initVideoData() {\n initCurrentSrc();\n initDuration();\n initVideoFrames();\n initReadyState();\n initNetworkState();\n initTextTracks();\n}", "async function init() {\n const modelURL = URL + 'model.json';\n const metadataURL = URL + 'metadata.json';\n\n // load the model and metadata\n // Refer to tmImage.loadFromFiles() in the API to support files from a file picker\n // or files from your local hard drive\n // Note: the pose library adds \"tmImage\" object to your window (window.tmImage)\n model = await tmImage.load(modelURL, metadataURL);\n maxPredictions = model.getTotalClasses();\n\n // Convenience function to setup a webcam\n const flip = true; // whether to flip the webcam\n webcam = new tmImage.Webcam(200, 200, flip); // width, height, flip\n await webcam.setup(); // request access to the webcam\n await webcam.play();\n window.requestAnimationFrame(loop);\n\n // append elements to the DOM\n myVideo.style.display = 'block';\n feed.innerHTML = 'Grrrrrr!!! Feed me your mugs, human!';\n document.getElementById('webcam-container').appendChild(webcam.canvas);\n labelContainer = document.getElementById('label-container');\n for (let i = 0; i < maxPredictions; i++) {\n // and class labels\n labelContainer.appendChild(document.createElement('div'));\n }\n }", "function videoReady() {\n videoStatus.innerText = 'Video ready!';\n}", "function displayVideoPanel() {\n var item = Office.context.mailbox.item;\n\n var entities = item.getEntities();\n \n if (entities.urls == null || entities.urls.length == 0)\n return;\n\n var pattern = /v\\=(\\w+)/i;\n\n for (var i = 0; i < entities.urls.length; i++) {\n var url = entities.urls[i].toString();\n var matches = pattern.exec(url);\n if (matches != null) {\n var videoId = matches[1];\n $('#content-tabs').append('<div class=\"content-tab\" data-videoId=\"' + videoId + '\">Video ' + (i + 1) + '</div>');\n }\n }\n\n $('.content-tab').click(function () {\n var videoId = $(this).data('videoid');\n $('#content-tabs .selected').removeClass('selected');\n $(this).addClass('selected');\n displayVideo(videoId);\n });\n $('.content-tab:first').click();\n }", "async function setUpVideo(v) {\n const stream = await navigator.mediaDevices.getUserMedia({\n video: true,\n });\n v.srcObject = stream;\n v.play();\n}", "function initConnection() {\n var room = inputRoomName.value;\n\n if (room == undefined || room.length <= 0) {\n alert('Please enter room name');\n return;\n }\n\n ///////////////START CONNECTION/////////////\n connect(room);\n\n btnVideoStart.disabled = true;\n btnVideoJoin.disabled = true;\n btnVideoStop.disabled = false;\n }", "function _start(isCaller, gumConstraints) {\n pc = new RTCPeerConnection(configuration);\n\n // send any ice candidates to the other peer\n pc.onicecandidate = function (evt) {\n if (evt.candidate) {\n sendMessage(JSON.stringify({\"candidate\": evt.candidate}));\n }\n };\n\n pc.oniceconnectionstatechange = function (evt) {\n };\n\n // once remote stream arrives, show it in the remote video element\n pc.onaddstream = function (evt) {\n if (!remoteVideo.src) {\n remoteVideo.src = URL.createObjectURL(evt.stream);\n } else if (!screenVideo.src) {\n screenVideo.src = URL.createObjectURL(evt.stream);\n }\n\n console.log('Received remote stream. ULTIMATE SUCCESS!');\n };\n\n // get the local stream, show it in the local video element and send it\n navigator.getUserMedia(gumConstraints, function (stream) {\n localVideo.src = URL.createObjectURL(stream);\n console.log('Adding local stream', stream);\n pc.addStream(stream);\n\n if (isCaller) {\n pc.createOffer(gotOfferDescription, createOfferFailure);\n }\n else {\n pc.createAnswer(gotAnswerDescription, createAnswerFailure);\n }\n }, function (err) {\n console.log('gUM error: ', err);\n });\n}", "function landingPlayVideo(e) {\n\n\t\t\t// play all videos\n\t\t\tvideoOne.play();\n\t\t\tvideoTwo.play();\n\t\t\tvideoThree.play();\n\n\t\t\taudioThree.play();\n\t\t\taudioOne.play();\n\n\t\t\taudioThree.volume = 0.15;\n\n\t\t\tvideoWindow.classList.add(\"move-content\");\n\n\t\t\t// change videoPlay button text to pause\n\t\t\tvideoPlay.innerHTML = \"Pause\";\n\t\t\t// add \"playing\" class to video play button\n\t\t\tvideoPlay.classList.add(\"playing\");\n\n\t\t}", "function start() {\n if (started === true) return;\n started = true;\n console.debug(scriptname, \"started\");\n let container = video.parentElement.closest('div[id]');\n if (container === null) {\n container = video.parentElement;\n }\n self.container = container;\n container.appendChild(self.elements.toolbar);\n container.appendChild(self.elements.notify);\n self.elements.buttons.download.href = self.videolink();\n /**\n * Events\n */\n self.on('click', e => {\n e.stopPropagation();\n let target = e.target, btn;\n if ((btn = e.target.closest('[class*=\"-bt\"]')) !== null) {\n if (btn.classList.contains('download-bt')) {\n btn.href = self.videolink();\n if (btn.href === doc.location.href) {\n e.preventDefault();\n }\n }\n if (btn.classList.contains('clipboard-bt')) {\n e.preventDefault();\n copyToClipboard(self.videolink());\n }\n if (btn.classList.contains('subtitles-bt')) {\n if (this.href === doc.location.href) e.preventDefault();\n }\n if (typeof btn.dataset.notify === s) {\n self.notify(btn.dataset.notify);\n }\n }\n return false;\n });\n self.on('contextmenu', e => e.preventDefault());\n\n self.ready = true;\n trigger(self.video, 'streamgrabber.ready');\n if (video.paused) self.show();\n }", "function installcanvas () {\n\n // if there's an iframe\n var iframe = document.getElementById('tool_content');\n if (iframe) {\n \t\taddEventListener(\"message\", installfromiframe('#content', 'about:blank', ''), false);\n } \n \n // multiple videos as per\n // https://canvas.harvard.edu/courses/340/wiki/supplemental-materials-for-lab-1-reporter-gene-analysis-using-transgenic-animals?module_item_id=630 \n else {\n\n // video locations that may need a click to access \n var containers = [].slice.call(document.getElementsByClassName('instructure_file_link_holder'));\n containers = containers.concat([].slice.call(document.getElementsByClassName('instructure_inline_media_comment')));\n // known video locations\n var matches = document.body.innerHTML.match(/me_flash_\\d_container/g);\n\n // if any known videos exist, launch those\n if (matches) {\n\n // loop through all known videos\n for (var i = 0; i < matches.length; i++) {\n\n // pull out the video number\n matches[i] = matches[i].replace(/\\D/g, \"\");\n\n // parameters for the videoplayer\n var parameter = {};\n\n // only supporting mp4 at the moment\n parameter.audio = false;\n\n // set number for video classes \n parameter.number = matches[i];\n\n // get source for available video\n parameter.source = document.getElementById('mep_' + matches[i]).childNodes[0].childNodes[0].childNodes[1].src + '?1';\n if (parameter.source) {\n\n // get locally stored data \n var hist = JSON.parse(localStorage.getItem(parameter.source));\n if (hist) {\n parameter.time = hist.time;\n }\n\n // prepare new container\n var container = $('<div/>');\n\n // maximize player's width\n container.css('margin', '10px 0 0 0');\n container.css('padding', '0');\n container.css('width', '100%');\n parameter.playing = false;\n\n // find if the video is playing\n if ($('#mep_' + matches[i]).find('.mejs-pause')[0]){\n parameter.playing = true;\n }\n\n // replace old container with new\n $('#mep_' + matches[i]).replaceWith(container);\n\n // install player\n install(container, parameter);\n }\n }\n }\n\n // click on all possible video containers, watch if things change\n if (containers.length != 0) {\n\n // watch for changes for each container\n for(var i = 0; i < containers.length; i++) {\n\n // use mutation observer as per \n // https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver\n var observer = new MutationObserver(function (mutations) {\n mutations.forEach(function (mutation) {\n\n // see if changes are to the child of the container\n if (mutation.type === 'childList') {\n\n // look through each child\n Array.prototype.forEach.call(mutation.target.children, function (child) {\n\n // match (only once per video) -- same code as if (matches) branch\n matches = document.body.innerHTML.match(/me_flash_\\d_container/g);\n if (matches) {\n for (var i = 0; i < matches.length; i++) {\n matches[i] = matches[i].replace(/\\D/g, '');\n\n // parameters for the videoplayer\n var parameter = {};\n parameter.audio = false;\n\n // set number for video classes \n parameter.number = matches[i];\n\n // get source for available video\n parameter.source = document.getElementById('mep_' + matches[i]).childNodes[0].childNodes[0].childNodes[1].src + '?1';\n if (parameter.source) {\n\n // get locally stored data for time\n var hist = JSON.parse(localStorage.getItem(parameter.source));\n if (hist) {\n parameter.time = hist.time;\n }\n\n // prepare new container\n var container = $('<div/>');\n\n // maximize player's width\n container.css('margin', '10px 0 0 0');\n container.css('padding', '0');\n container.css('width', '100%');\n\n // replace old container with new\n $('#mep_' + matches[i]).replaceWith(container);\n\n parameter.playing = false;\n\n // install player\n install(container, parameter);\n }\n }\n }\n });\n }\n });\n });\n\n // actually start observing\n observer.observe(containers[i], {\n childList: true,\n characterData: true,\n subtree: true\n });\n }\n\n // simulate click, waits for link to appear\n $('.media_comment_thumbnail').click(); \n } \n\n // no possible video containers, apologize\n else {\n apologize();\n }\n }\n}", "async initialize() {\n this.setLectureName();\n\n this.#eventController = new EventController();\n this.#video = new Video(this.#lecture, this.#eventController);\n this.#postIconFeedback = new PostIconFeedback(this.#lecture, this.#video);\n this.#transcript = new TranscriptArea(this.#lecture, this.#eventController);\n this.#discussion = new DiscussionArea(\n this.#lecture, this.#eventController, this.#transcript);\n\n await this.#video.loadVideoApi();\n await this.#transcript.initialize();\n await this.#discussion.initialize();\n this.#postIconFeedback.initialize();\n }", "function videoStarter() {\n\n\t$('#hero').vide({\n\t\tmp4:'videos/headerloop4.mp4',\n\t\togv:'videos/headerloop4.ogv',\n\t\twebm:'videos/headerloop4.webm'\n\t\t}, {\n\t\tloop: true,\n\t\tmuted: true,\n\t\tautoplay: true,\n\t\tposterType: \"jpg\",\n\t\tclassName: \"tn-video\"\n\t});\n\n}", "async start() {\n if (this.webcamConfig.facingMode) {\n util.assert((this.webcamConfig.facingMode === 'user') ||\n (this.webcamConfig.facingMode === 'environment'), () => `Invalid webcam facing mode: ${this.webcamConfig.facingMode}. ` +\n `Please provide 'user' or 'environment'`);\n }\n try {\n this.stream = await navigator.mediaDevices.getUserMedia({\n video: {\n deviceId: this.webcamConfig.deviceId,\n facingMode: this.webcamConfig.facingMode ?\n this.webcamConfig.facingMode :\n 'user',\n width: this.webcamVideoElement.width,\n height: this.webcamVideoElement.height\n }\n });\n }\n catch (e) {\n // Modify the error message but leave the stack trace intact\n e.message = `Error thrown while initializing video stream: ${e.message}`;\n throw e;\n }\n if (!this.stream) {\n throw new Error('Could not obtain video from webcam.');\n }\n // Older browsers may not have srcObject\n try {\n this.webcamVideoElement.srcObject = this.stream;\n }\n catch (error) {\n console.log(error);\n this.webcamVideoElement.src = window.URL.createObjectURL(this.stream);\n }\n // Start the webcam video stream\n this.webcamVideoElement.play();\n this.isClosed = false;\n return new Promise(resolve => {\n // Add event listener to make sure the webcam has been fully initialized.\n this.webcamVideoElement.onloadedmetadata = () => {\n resolve();\n };\n });\n }", "showVideo () {\n this.video.play()\n this.el.emit('activate')\n }", "function start(isCaller) {\n peerConnection = new RTCPeerConnection();\n\n // send any ice candidates to the other peer\n peerConnection.onicecandidate = evt => {\n socket.emit('new peer candidate', evt.candidate);\n };\n\n // once remote stream arrives, show it in the remote video element\n peerConnection.onaddstream = evt => {\n console.log(`evt.stream: ${evt.stream.id}`);\n remoteVideo.srcObject = evt.stream;\n };\n\n // get the local stream, show it in the local video element and send it\n navigator.getUserMedia(\n configuration,\n stream => {\n localVideo.srcObject = stream;\n console.log(`stream id: ${stream.id}`);\n peerConnection.addStream(stream);\n\n if (isCaller) {\n peerConnection.createOffer(gotDescription, err => {\n console.log(err);\n });\n } else {\n peerConnection.createAnswer(gotDescription, err => {\n console.log(err);\n });\n }\n },\n err => {\n console.log(err);\n }\n );\n}", "function startVideo(){\n //gets the webcam, takes object as the first param, video is key, empty object as param\n navigator.getUserMedia(\n {video: {}},\n //whats coming from our webcam, setting it as source\n stream =>video.srcObject = stream,\n err => console.log(err))\n}", "function initialize() {\n // Create a canvas element to which we will copy video.\n canvas = document.createElement('canvas');\n var webcamDimensions = webcam.getDimensions();\n canvas.width = webcamDimensions.width;\n canvas.height = webcamDimensions.height;\n\n // We need a context for the canvas in order to copy to it.\n context = canvas.getContext('2d');\n\n // create an AR Marker detector using the canvas as the data source\n detector = ardetector.create( canvas );\n\n // Create an AR View for displaying the augmented reality scene\n view = arview.create( webcam.getDimensions(), canvas );\n\n // Set the ARView camera projection matrix according to the detector\n view.setCameraMatrix( detector.getCameraMatrix(10,1000) );\n\n // Place the arview's GL canvas into the DOM.\n document.getElementById(\"application\").appendChild( view.glCanvas );\n }", "function takeVideoStream() {\n\tcleanElements(); // CLean all the elements\n\t\n\t// Create the start, stop and video elements for the video stream\n\tvar videoStreamElement = document.getElementById(\"videoStreamElement\");\n\tvideoStreamElement.innerHTML = '<br><button class=\"btn btn-dark\" id=\"startStream\">Start recording</button><br>';\n\tvideoStreamElement.innerHTML += '<button class=\"btn btn-dark\" id=\"stopStream\">Stop recording</button><br>';\n\tvideoStreamElement.innerHTML += '<br><br><video></video>';\n\tvideoStreamElement.innerHTML += '<br><br><video id=\"capturedVideoStream\" controls></video>';\n\n\tvar start = document.getElementById(\"startStream\");\n\tvar stop = document.getElementById(\"stopStream\");\n\tvar capturedVideoStream = document.getElementById(\"capturedVideoStream\");\n\tcapturedVideoStream.style.visibility = \"hidden\"; // Hide the second video element (the captured video element)\n\n\n\t// The constraints for the media\n\tlet constraint = {\n\t\taudio: false,\n\t\tvideo: { facingMode: \"user\" }\n\t}\n\n\t// Handle old browsers that do not support the medie capture API\n\tif (navigator.mediaDevices == undefined) {\n\t\t/*navigator.mediaDevices = {};\n\t\tnavigator.mediaDevices.getUserMedia = function(constraintObj) {\n\t\t\tlet getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;\n\t\t\tif (!getUserMedia) {\n\t\t\t\treturn Promise.reject(new Error('getUserMedia is not implemented in this browser'));\n\t\t\t}\n\t\t\treturn new Promise(function(resolve, reject) {\n\t\t\t\tgetUserMedia.call(navigator, constraintObj, resolve, reject);\n\t\t\t});\n\t\t}*/\n\t} else { // List all the devices ... this is where we can implement the select video capture device\n\t\tnavigator.mediaDevices.enumerateDevices().then(devices => {\n\t\t\tdevices.forEach(device => {\n\t\t\t\tconsole.log(device.kind.toUpperCase(), device.label);\n\t\t\t});\n\t\t}).catch( error => {\n\t\t\tconsole.log(error.name, error.message);\n\t\t});\n\t}\n\n\tnavigator.mediaDevices.getUserMedia(constraint).then(stream => {\n\t\t// Connect the video stream to the the video element\n\t\tlet video = document.querySelector('video');\n\t\tif (\"srcObject\" in video)\n\t\t\tvideo.srcObject = stream; // send the stream to the video element\n\t\telse\n\t\t\tvideo.src = window.URL.createObjectURL(stream); //For old browers\n\n\t\tvideo.onloadedmetadata = function(ev) {\n\t\t\tvideo.play(); // Display the video stream in the video element.\n\t\t}\n\n\t\t//store the blobs of the video stream\n\t\tlet mediaRecorder = new MediaRecorder(stream);\n\t\tlet recordedBlobs = [];\n\n\t\t// Start recording\n\t\tstart.addEventListener('click', (ev) => {\n\t\t\tmediaRecorder.start();\n\t\t\tconsole.log(mediaRecorder.state);\n\t\t\tcapturedVideoStream.style.visibility = \"hidden\"; // Hide the second video element (the captured video element)\n\t\t});\n\n\t\t// Stop recording\n\t\tstop.addEventListener('click', (ev)=> {\n\t\t\tmediaRecorder.stop();\n\t\t\tconsole.log(mediaRecorder.state);\n\t\t});\n\n\t\t// Record all of the blobs\n\t\tmediaRecorder.ondataavailable = function(ev) {\n\t\t\trecordedBlobs.push(ev.data);\n\t\t};\n\n\t\t// When the stop recoding button is clicked\n\t\tmediaRecorder.onstop = (ev)=> {\n\t\t\tlet blob = new Blob(recordedBlobs, { 'type': 'video/mp4;'});\n\n\t\t\trecordedBlobs = [];\n\t\t\tlet videoURL = window.URL.createObjectURL(blob);\n\n\t\t\tcapturedVideoStream.style.visibility = \"visible\"; // Make the captured video element visiable\n\t\t\tcapturedVideoStream.src = videoURL;\n\n\t\t\tsubmitVideo(blob, true); // Submit the video\n\t\t};\n\t}).catch(error => {\n\t\tconsole.log(error.name, error.message);\n\t});\n}", "function initializeVideo() {\n const videoDuration = Math.round(video.duration);\n seek.setAttribute('max', videoDuration);\n progressBar.setAttribute('max', videoDuration);\n const time = formatTime(videoDuration);\n duration.innerText = `${time.minutes}:${time.seconds}`;\n duration.setAttribute('datetime', `${time.minutes}m ${time.seconds}s`)\n}", "function connectToStream(){\n (function (red5prosdk) {\n // Create a new instance of the WebRTC subcriber.\n var subscriber = new red5prosdk.RTCSubscriber();\n // Initialize\n subscriber.init({\n protocol: 'wss',\n port: 443,\n host: 'xprowebinar.com',\n app: 'live',\n streamName: 'adminstream',\n rtcConfiguration: {\n iceServers: [{urls: 'stun:stun2.l.google.com:19302'}],\n iceCandidatePoolSize: 2,\n bundlePolicy: 'max-bundle'\n }, // See https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection#RTCConfiguration_dictionary\n mediaElementId: 'xprowebinar-subscriber',\n subscriptionId: 'adminstream' + Math.floor(Math.random() * 0x10000).toString(16),\n videoEncoding: 'NONE',\n audioEncoding: 'NONE',\n autoLayoutOrientation: true\n })\n .then(function(subscriber) {\n \n return subscriber.subscribe();\n })\n .then(function(subscriber) {\n })\n .catch(function(error) {\n return subscriber.subscribe();\n });\n })(window.red5prosdk);\n\n // Camera Share\n (function (red5prosdk2) { \n var subscriber = new red5prosdk.RTCSubscriber();\n subscriber.init({\n protocol: 'wss',\n port: 443,\n host: 'xprowebinar.com',\n app: 'live',\n streamName: 'xprowebinarscreenshare',\n rtcConfiguration: {\n iceServers: [{urls: 'stun:stun2.l.google.com:19302'}],\n iceCandidatePoolSize: 2,\n bundlePolicy: 'max-bundle'\n },\n mediaElementId: 'xprowebinarSubscriberCamera',\n subscriptionId: 'admincamera' + Math.floor(Math.random() * 0x10000).toString(16),\n videoEncoding: 'NONE',\n audioEncoding: 'NONE',\n autoLayoutOrientation: true\n })\n .then(function(subscriber) {\n return subscriber.subscribe();\n })\n .then(function(subscriber) {\n })\n .catch(function(error) {\n return subscriber.subscribe();\n });\n\n })(window.red5prosdk);\n }", "async function setupCamera() {\n const video = document.getElementById('video');\n const canvas = document.getElementById('canvas');\n if (!video || !canvas) return null;\n\n let msg = '';\n log('Setting up camera');\n // setup webcam. note that navigator.mediaDevices requires that page is accessed via https\n if (!navigator.mediaDevices) {\n log('Camera Error: access not supported');\n return null;\n }\n let stream;\n const constraints = {\n audio: false,\n video: { facingMode: 'user', resizeMode: 'crop-and-scale' },\n };\n if (window.innerWidth > window.innerHeight) constraints.video.width = { ideal: window.innerWidth };\n else constraints.video.height = { ideal: window.innerHeight };\n try {\n stream = await navigator.mediaDevices.getUserMedia(constraints);\n } catch (err) {\n if (err.name === 'PermissionDeniedError' || err.name === 'NotAllowedError') msg = 'camera permission denied';\n else if (err.name === 'SourceUnavailableError') msg = 'camera not available';\n log(`Camera Error: ${msg}: ${err.message || err}`);\n return null;\n }\n // @ts-ignore\n if (stream) video.srcObject = stream;\n else {\n log('Camera Error: stream empty');\n return null;\n }\n const track = stream.getVideoTracks()[0];\n const settings = track.getSettings();\n if (settings.deviceId) delete settings.deviceId;\n if (settings.groupId) delete settings.groupId;\n if (settings.aspectRatio) settings.aspectRatio = Math.trunc(100 * settings.aspectRatio) / 100;\n log(`Camera active: ${track.label}`); // ${str(constraints)}\n log(`Camera settings: ${str(settings)}`);\n canvas.addEventListener('click', () => {\n // @ts-ignore\n if (video && video.readyState >= 2) {\n // @ts-ignore\n if (video.paused) {\n // @ts-ignore\n video.play();\n detectVideo(video, canvas);\n } else {\n // @ts-ignore\n video.pause();\n }\n }\n // @ts-ignore\n log(`Camera state: ${video.paused ? 'paused' : 'playing'}`);\n });\n return new Promise((resolve) => {\n video.onloadeddata = async () => {\n // @ts-ignore\n canvas.width = video.videoWidth;\n // @ts-ignore\n canvas.height = video.videoHeight;\n // @ts-ignore\n video.play();\n detectVideo(video, canvas);\n resolve(true);\n };\n });\n}", "function init() {\n createRoomBtn.addEventListener(\"click\", createRoom);\n joinRoomBtn.addEventListener(\"click\", joinRoom);\n pc = new RTCPeerConnection(rtcconfig);\n\n initDataChannel();\n }", "function _startVideoAndUISync() {\n \n // this \"if\" statement prevents us from generating additional interval timers in the case that we already have one running\n // we want to be careful not to generate more than one due to the way garbage collection works with these timers\n // we just have to make sure that everytime we call clearInterval(ID) we need to set \"_videoAndUISyncTimerID\" to undefined\n if(_videoAndUISyncTimerID === undefined){\n (_consoleLogsOn === true) ? console.log(\"START - interval timer\") : undefined;\n \n _videoAndUISyncTimerID = window.setInterval( _syncUIWithVideo, _videoAndUISyncInterval);\n }\n\n}", "function StartVidyoConnector(VC) {\n\n\t var microphonePrivacy = false;\n\t\t\n\t\t\n\t\t\n\t var vidyoConnector;\n\t var cameras = {};\n\t var microphones = {};\n\t var speakers = {};\n\t var cameraPrivacy = false;\n\t var microphonePrivacy = false;\n\t var speakerPrivacy = false;\n\n\t window.onresize = function() {\n\t if (vidyoConnector) {\n\t ShowRenderer(vidyoConnector);\n\t }\n\t };\n\t \n\t VC.CreateVidyoConnector({\n\t viewId: \"renderer\", // Div ID where the composited video will be rendered, see VidyoConnector.html\n\t viewStyle: \"VIDYO_CONNECTORVIEWSTYLE_Default\", // Visual style of the composited renderer\n\t remoteParticipants: 2, // Maximum number of participants to render\n\t logFileFilter: \"warning\",\n\t logFileName:\"\",\n\t userData:\"\"\n\t }).then(function(vc) {\n\t vidyoConnector = vc;\n\t ShowRenderer(vidyoConnector);\n\t registerDeviceListeners(vidyoConnector, cameras, microphones, speakers);\n\t }).catch(function(err) {\n\t console.error(\"CreateVidyoConnector Failed \" + err);\n\t });\n\t \n $(\"#microphoneButton\").click(function() {\n microphonePrivacy = !microphonePrivacy;\n vidyoConnector.SetMicrophonePrivacy({\n privacy: microphonePrivacy\n }).then(function() {\n if (microphonePrivacy) {\n $(\"#microphoneButton\").addClass(\"microphoneOff\").removeClass(\"microphoneOn\");\n } else {\n $(\"#microphoneButton\").addClass(\"microphoneOn\").removeClass(\"microphoneOff\");\n }\n console.log(\"SetMicrophonePrivacy Success\");\n }).catch(function() {\n console.error(\"SetMicrophonePrivacy Failed\");\n });\n });\n \n\t \n\t \n\t}", "function onPlayerReady(event) {\n Controller.load_video();\n }" ]
[ "0.7209124", "0.7106987", "0.7102568", "0.70017177", "0.6905392", "0.6817607", "0.68031234", "0.6767405", "0.6732711", "0.673142", "0.67300206", "0.6648506", "0.65940773", "0.6564422", "0.6543409", "0.6532428", "0.65070444", "0.65054464", "0.6497853", "0.6490271", "0.64876515", "0.64845866", "0.64734066", "0.64705265", "0.6440964", "0.64305997", "0.6425758", "0.6410158", "0.64075875", "0.6404753", "0.6389396", "0.63871276", "0.637533", "0.6366406", "0.63540334", "0.6340645", "0.6332028", "0.6327195", "0.6325836", "0.6325535", "0.6322036", "0.63201207", "0.63188356", "0.63177073", "0.6312135", "0.6308868", "0.6302229", "0.62905645", "0.62887305", "0.62644756", "0.6263784", "0.6256961", "0.62515014", "0.6246981", "0.6240214", "0.623493", "0.62289065", "0.62250215", "0.62212706", "0.6221218", "0.62191755", "0.62111545", "0.6210447", "0.62045497", "0.6193798", "0.6193628", "0.6183137", "0.61827344", "0.618095", "0.6175094", "0.6174431", "0.6162401", "0.61595345", "0.61540794", "0.6144622", "0.6135833", "0.61232674", "0.61190575", "0.61189926", "0.6103298", "0.61013114", "0.6100474", "0.6093942", "0.60936725", "0.6093528", "0.60918915", "0.6089973", "0.6088729", "0.6087467", "0.6083136", "0.60677534", "0.6058739", "0.60422957", "0.60418564", "0.60416424", "0.6039039", "0.6033538", "0.60291433", "0.60288143", "0.6018109" ]
0.728624
0
Determines the distance of a point from a line.
static pointDistanceFromLine(point, start, end) { var tPoint = Utils.closestPointOnLine(point, start, end); var tDx = point.x - tPoint.x; var tDy = point.y - tPoint.y; return Math.sqrt(tDx * tDx + tDy * tDy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ClosestPointOnLine (pt, line)\n{\n\tvar X1 = line[0][0], Y1 = line[0][1];\n\tvar X2 = line[1][0], Y2 = line[1][1];\n\tvar px = pt[0], py = pt[1];\n\n\tvar dx = X2 - X1;\n\tvar dy = Y2 - Y1;\n\n\tvar nx,ny;\n\n\tif (dx == 0 && dy == 0)\n\t{\n\t\t// It's a point not a line segment.\n\t\t// dx = px - X1\n\t\t// dy = py - Y1\n\t\t// distance = Sqr(dx * dx + dy * dy)\n\t\tnx = X1;\n\t\tny = Y1;\n\t} else\n\t{\n\t\t// Calculate the t that minimizes the distance.\n\t\tvar t = ((px - X1) * dx + (py - Y1) * dy) / (dx * dx + dy * dy);\n\n\t\t// See if this represents one of the segment's\n\t\t// end points or a point in the middle.\n\t\tif (t <= 0)\n\t\t{\n\t\t\tnx = X1;\n\t\t\tny = Y1;\n\t\t} else if (t >= 1)\n\t\t{\n\t\t\tnx = X2;\n\t\t\tny = Y2;\n\t\t} else\n\t\t{\n\t\t\tnx = X1 + t * dx;\n\t\t\tny = Y1 + t * dy;\n\t\t}\n\t}\n\n\tdx = px - nx;\n\tdy = py - ny;\n\n\treturn [ [nx, ny], Math.sqrt (dx * dx + dy * dy) ];\n}", "function FastClosestPointOnLine (pt, line)\n{\n\tvar X1 = line[0][0], Y1 = line[0][1];\n\tvar X2 = line[1][0], Y2 = line[1][1];\n\tvar px = pt[0], py = pt[1];\n\n\tvar dx = X2 - X1;\n\tvar dy = Y2 - Y1;\n\n\tvar nx,ny;\n\n\tif (dx == 0 && dy == 0)\n\t{\n\t\t// It's a point not a line segment.\n\t\t// dx = px - X1\n\t\t// dy = py - Y1\n\t\t// distance = Sqr(dx * dx + dy * dy)\n\t\tnx = X1;\n\t\tny = Y1;\n\t} else\n\t{\n\t\t// Calculate the t that minimizes the distance.\n\t\tvar t = ((px - X1) * dx + (py - Y1) * dy) / (dx * dx + dy * dy);\n\n\t\t// See if this represents one of the segment's\n\t\t// end points or a point in the middle.\n\t\tif (t <= 0)\n\t\t{\n\t\t\tnx = X1;\n\t\t\tny = Y1;\n\t\t} else if (t >= 1)\n\t\t{\n\t\t\tnx = X2;\n\t\t\tny = Y2;\n\t\t} else\n\t\t{\n\t\t\tnx = X1 + t * dx;\n\t\t\tny = Y1 + t * dy;\n\t\t}\n\t}\n\n\tdx = px - nx;\n\tdy = py - ny;\n\n\treturn dx * dx + dy * dy;\n}", "function pointLineDistance(p, lstart, lend, overLine) {\n\tvar points = normalizeArguments(\"pppb\", arguments);\n\tvar x = points[0].x;\n\tvar y = points[0].y;\n\tvar x0 = points[1].x;\n\tvar y0 = points[1].y;\n\tvar x1 = points[2].x;\n\tvar y1 = points[2].y;\n\tvar o = points[3];\n\tif(o && !(o = function(x, y, x0, y0, x1, y1) {\n\t\tif(!(x1 - x0)) return {x: x0, y: y};\n\t\telse if(!(y1 - y0)) return {x: x, y: y0};\n\t\tvar left, tg = -1 / ((y1 - y0) / (x1 - x0));\n\t\treturn {x: left = (x1 * (x * tg - y + y0) + x0 * (x * - tg + y - y1)) / (tg * (x1 - x0) + y0 - y1), y: tg * left - tg * x + y};\n\t}(x, y, x0, y0, x1, y1), o.x >= Math.min(x0, x1) && o.x <= Math.max(x0, x1) && o.y >= Math.min(y0, y1) && o.y <= Math.max(y0, y1))) {\n\t\tvar l1 = lineLength(x, y, x0, y0), l2 = lineLength(x, y, x1, y1);\n\t\treturn l1 > l2 ? l2 : l1;\n\t}\n\telse {\n\t\tvar a = y0 - y1, b = x1 - x0, c = x0 * y1 - y0 * x1;\n\t\treturn Math.abs(a * x + b * y + c) / Math.sqrt(a * a + b * b);\n\t}\n}", "function lineDist(toPt, pt1, pt2) {\n var num = Math.abs((pt2.y - pt1.y) * toPt.x - (pt2.x - pt1.x) * toPt.y + pt2.x * pt1.y - pt2.y * pt1.x)\n var denom = Math.sqrt(Math.pow(pt2.y - pt1.y, 2) + Math.pow(pt2.x - pt1.x, 2))\n return num / denom;\n}", "function linePointDistance(pointA, pointB, pointC, isSegment) {\n \tvar dist = crossProduct(pointA, pointB, pointC) / distanceBetween(pointA, pointB);\n\tif (isSegment) {\n\t\tif (dotProduct(pointA, pointB, pointC) > 0) return distanceBetween(pointB, pointC);\n\t\tif (dotProduct(pointB, pointA, pointC) > 0) return distanceBetween(pointA, pointC);\n\t}\n\treturn Math.abs(dist);\n}", "static DistanceToLine() {}", "function distLineToPoint(a, b, p) {\n var n = vectDiff(b, a)\n n = vectScale(n, 1/Math.sqrt(n[0]*n[0]+n[1]*n[1]))\n \n var amp = vectDiff(a, p)\n var d = vectDiff(amp, vectScale(n,(dot(amp, n))))\n //return { d:d, a:amp, nn:n, n:dot(amp,n)}\n return Math.sqrt(d[0]*d[0]+d[1]*d[1])\n}", "function getClosestPointOfLine(lineStart, lineEnd, point) {\n var ab = lineEnd.sub(lineStart)\n var ap = point.sub(lineStart)\n var mul = (ab.x * ap.x + ab.y * ap.y) / (ab.x * ab.x + ab.y * ab.y)\n return lineStart.add(ab.mult(mul))\n}", "static DistancePointToLine() {}", "static DistanceToPolyLine() {}", "function findDistanceBetweenLineAndPoint(startPointCoords,endPointCoords,pointCoords){\r\n /*\r\n S----------H----E\r\n |\r\n |\r\n P\r\n\r\n */\r\n var distance;\r\n var ratio;\r\n var perpendicularPoint;\r\n\r\n var vectorS=startPointCoords.to2DVector();\r\n var vectorE=endPointCoords.to2DVector();\r\n var vectorP=pointCoords.to2DVector();\r\n\r\n var vectorSE=vectorE.sub(vectorS);\r\n var vectorSP=vectorP.sub(vectorS);\r\n var vectorSH=vectorSE.mult((vectorSP.dot(vectorSE))/(vectorSE.dot(vectorSE)));\r\n\r\n var vectorH=vectorSH.add(vectorS);\r\n var vectorHP=vectorSP.sub(vectorSH);\r\n\r\n perpendicularPoint=Coordinates.fromVector(vectorH);\r\n ratio=vectorSH.dot(vectorSE.normalize())/vectorSE.length();\r\n\r\n distance=vectorHP.length();\r\n\r\n return {\r\n \"perpendicularPoint\":perpendicularPoint,\r\n \"ratio\":ratio,\r\n \"distance\":distance\r\n };\r\n }", "function distPointToSegmentSquared(lineX1,lineY1,lineX2,lineY2,pointX,pointY){\n\tvar vx = lineX1 - pointX;\n\tvar vy = lineY1 - pointY;\n\tvar ux = lineX2 - lineX1;\n\tvar uy = lineY2 - lineY1;\n\n\tvar len = ux*ux + uy*uy;\n\tvar det = (-vx*ux) + (-vy*uy);\n\tif( det<0 || det>len ){\n\t\tux = lineX2 - pointX;\n\t\tuy = lineY2 - pointY;\n\t\treturn Math.min( (vx*vx)+(vy*vy) , (ux*ux)+(uy*uy) );\n\t}\n\n\tdet = ux*vy - uy*vx;\n\treturn (det*det) / len;\n}", "function lineLength(line){\n return Math.sqrt(Math.pow(line[1][0] - line[0][0], 2) + Math.pow(line[1][1] - line[0][1], 2));\n }", "function getLineDistance(start, end) {\n // return Math.sqrt(Math.abs(start.x - end.x) ** 2 + Math.abs(start.y - end.y) ** 2);\n return Math.sqrt(Math.pow(Math.abs(start.x - end.x), 2) + Math.pow(Math.abs(start.y - end.y), 2));\n}", "getYForLine(line) {\n const options = this.options;\n const spacing = options.spacing_between_lines_px;\n const headroom = options.space_above_staff_ln;\n\n const y = this.y + (line * spacing) + (headroom * spacing);\n\n return y;\n }", "function Position_DistanceToPoint(point)\n{\n\t//horizontal\n\tvar nHDist = this.left > point.x ? this.left - point.x : this.right < point.x ? point.x - this.right : 0;\n\t//vertical\n\tvar nVDist = this.top > point.y ? this.top - point.y : this.bottom < point.y ? point.y - this.bottom : 0;\n\t//return the distance\n\treturn Math.sqrt(nHDist * nHDist + nVDist * nVDist);\n}", "GetDistanceToPoint() {}", "function pointDistance(x1, y1, x2, y2) {\n return Math.sqrt((y2-y1)*(y2-y1) + (x2-x1)*(x2-x1));\n}", "function pointLineSegmentDistance(v, w, p) {\n\tl2 = Math.pow(v.x - w.x, 2) + Math.pow(v.y - w.y, 2);\n\tif (l2 == 0.0) return getDistance(p.x, p.y, v.x, v.y); \n\tpminusv = {x:p.x-v.x, y:p.y-v.y};\n\twminusv = {x:w.x-v.x, y:w.y-v.y};\n\tt = Math.max(0, Math.min(1, (pminusv.x*wminusv.x + pminusv.y*wminusv.y) / l2));\n\tprojection = {x:(w.x - v.x)*t+v.x, y:(w.y-v.y)*t+v.y}; \n\treturn getDistance(p.x,p.y, projection.x, projection.y);\n}", "function lineLength(x, y, x0, y0){\n return Math.sqrt((x -= x0) * x + (y -= y0) * y);\n}", "function _distance(point1, point2) {\n return Math.sqrt((point1[0] - point2[0]) * (point1[0] - point2[0]) + (point1[1] - point2[1]) * (point1[1] - point2[1]) + (point1[2] - point2[2]) * (point1[2] - point2[2]));\n}", "getLineLengthBetweenPoints (x, y, x0, y0){\n return Math.sqrt((x -= x0) * x + (y -= y0) * y);\n }", "function pointDistance(x1,y1, x2,y2) {\n return Math.sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) );\n}", "DistanceFromPoint(x,y,x2,y2) {\n return Math.abs(Math.sqrt(Math.pow((x-x2),2) + Math.pow((y-y2),2)));\n }", "function pointDistance(p1, p2) {\n var d1 = p1.x - p2.x;\n var d2 = p1.y - p2.y;\n return Math.sqrt(d1 * d1 + d2 * d2);\n}", "function distanceWithLine(p1, p2) \n{\n\tvar dist,\n\t\tdx = p1.x - p2.x;\n\t\tdy = p1.y - p2.y;\n\t\n\tdist = Math.sqrt(dx*dx + dy*dy);\n\t\t\t\n\t// Draw the line when distance is smaller\n\t// then the minimum distance\n\tif(dist <= minDist) \n\t{\n\t\t\n\t\t// Draw the line\n\t\tctx.beginPath();\n\t\tctx.strokeStyle = \"rgba(255,255,255,\"+ (1.2-dist/minDist) +\")\";\n\t\tctx.moveTo(p1.x, p1.y);\n\t\tctx.lineTo(p2.x, p2.y);\n\t\tctx.stroke();\n\t\tctx.closePath();\n\t\t\n\t\t\n\t\t\n\t\t// Some acceleration for the partcles \n\t\t// depending upon their distance\n\t\tvar ax = (document.getElementById(\"textInputPress\").value)*Math.random()/50000,\n\t\t\tay = (document.getElementById(\"textInputPress\").value)*Math.random()/50000;\n\t\t\n\t\t// Apply the acceleration on the particles\n\t\tp1.vx -= ax;\n\t\tp1.vy -= ay;\n\t\t\n\t\tp2.vx += ax;\n\t\tp2.vy += ay;\n\t}\n}", "function getDistance(point1, point2) {\n return Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2);\n}", "function calculateDistance(point1, point2) {\n\treturn Math.sqrt(Math.pow((point1.x - point2.x), 2) + Math.pow((point1.y - point2.y), 2));\n}", "function computeLineLength( x1, y1, x2, y2 ) {\n let xdiff = subtract( x2, x1 );\n let ydiff = subtract( y2, y1 );\n let total = add( square( xdiff ), square( ydiff ) );\n return Math.sqrt( total );\n}", "function closestXY(line, mx, my) {\n x0 = line.x0;\n y0 = line.y0;\n x1 = line.x1;\n y1 = line.y1;\n dx = x1 - x0;\n dy = y1 - y0;\n var t = ((mx - x0) * dx + (my - y0) * dy) / (dx * dx + dy * dy);\n t = Math.max(0, Math.min(1, t));\n var x = lerp(x0, x1, t);\n var y = lerp(y0, y1, t);\n if (line === lines[2]) {\n var d0 = Math.sqrt((x - line.x0) * (x - line.x0) + (y - line.y0) * (y - line.y0));\n var d1 = Math.sqrt((line.x1 - x) * (line.x1 - x) + (line.y1 - y) * (line.y1 - y));\n if (d0 < d1) {\n return {\n x: x0,\n y: y0\n }\n } else {\n return {\n x: x1,\n y: y1\n }\n }\n } else {\n return ({\n x: x,\n y: y\n });\n }\n}", "function pointDistance(x1,y1,x2,y2){\r\n\tvar dist = Math.sqrt( Math.abs((x2 - x1)*(x2-x1)) + Math.abs((y2 - y1)*(y2-y1)));\r\n\treturn dist;\r\n}", "function distance(point1, point2) {\n var xDiff = point2.cx - point1.cx;\n var\tyDiff = point2.cy - point1.cy;\n return Math.sqrt( xDiff*xDiff + yDiff*yDiff);\n}", "function vertical_distance(x, line1_p1, line1_p2, line2_p1, line2_p2){\n // detect invalid values (not between x-ranges of both segments)\n if (!(between(x, line1_p1[0], line1_p2[0]) && (between(x, line2_p1[0], line2_p2[0])))){\n return NaN;\n }\n // find corresponding points on both lines\n var slope1 = (line1_p1[1]-line1_p2[1]) / (line1_p1[0]-line1_p2[0]);\n var slope2 = (line2_p1[1]-line2_p2[1]) / (line2_p1[0]-line2_p2[0]);\n var y1 = line1_p1[1] + ((x - line1_p1[0]) * slope1);\n var y2 = line2_p1[1] + ((x - line2_p1[0]) * slope2);\n return Math.abs(y1-y2);\n}", "function distance (point1, point2) {\n var deltaX = point1[0] - point2[0]\n var deltaY = point1[1] - point2[1]\n\n var deltaXSquared = Math.pow(deltaX, 2)\n var deltaYSquared = Math.pow(deltaY, 2)\n\n var answer = Math.sqrt(deltaXSquared + deltaYSquared)\n return answer\n}", "function distance(pt1, pt2) { \n\n return Math.sqrt(Math.pow((pt1.x - pt2.x), 2) + Math.pow((pt1.y - pt2.y), 2));\n}", "function distance_to_point(x, y) {\n return Math.sqrt(Math.pow(character.real_x - x, 2) + Math.pow(character.real_y - y, 2));\n}", "function distance (point1, point2) {\n Math.sqrt(Math.pow(point1[0] - point1[1], 2) + Math.pow(point2[0] - point2[1], 2))\n}", "function distance_to_point(x, y) {\r\n\treturn Math.sqrt(Math.pow(character.real_x - x, 2) + Math.pow(character.real_y - y, 2));\r\n}", "static DistancePointToLineSegment() {}", "function getDistance(x1,y1,x2,y2){\r\n\tlet xOff = x1 - x2;\r\n\tlet yOff = y1 - y2;\r\n\treturn Math.sqrt(xOff * xOff + yOff * yOff);\r\n}", "function getLineLength(x1, y1, x2, y2) {\n var res = Math.sqrt(Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2));\n return res;\n}", "function getDistance(x1, y1, x2, y2) {\n return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n }", "function nearestPointOnLine( x, y, x1, y1, x2, y2 ) {\n let vx = x2 - x1,\n vy = y2 - y1,\n ux = x1 - x,\n uy = y1 - y,\n vu = vx * ux + vy * uy,\n vv = vx * vx + vy * vy,\n t = -vu / vv\n return { t, x: t * x2 + ( 1 - t ) * x1, y: t * y2 + ( 1 - t ) * y1 }\n}", "function getDistance(x1, x2, y1, y2) {\n var a = x1 - x2;\n var b = y1 - y2;\n var c = Math.sqrt( a*a + b*b );\n return c;\n }", "function distance(point1, point2) {\n return Math.hypot(point1.x-point2.x, point1.y-point2.y);\n}", "function getDistance(x1, y1, x2, y2)\r\n{\r\n\treturn (((x2-x1)**2)+((y2-y1)**2))**(1/2);\r\n}", "function angle_line_at_point(line_geo, point_on_line) {\n var search = Extent(Buffer(point_on_line, .01, \"meter\"));\n var segment = Clip(line_geo, search)[\"paths\"][0];\n\n // Get angle of line using the start and end vertex\n return Angle(segment[0], segment[-1])\n}", "projectionOfPointToLine(point, line) {\n const {\n p1: {\n x: x1,\n y: y1\n },\n p2: {\n x: x2,\n y: y2\n }\n } = line;\n\n const A = point.x - x1,\n B = point.y - y1,\n C = x2 - x1,\n D = y2 - y1,\n dot = A * C + B * D,\n lenSq = (C * C + D * D) || 2,\n param = dot / lenSq;\n\n // projection is an endpoint\n if (param <= 0) {\n return line.p1;\n } else if (param > 1) {\n return line.p2;\n }\n\n return {\n x: x1 + param * C,\n y: y1 + param * D\n };\n }", "function getDistance(x1, y1, x2, y2)\n{\n var l1 = x2 - x1;\n var l2 = y2 - y1;\n \n return Math.sqrt(l1 * l1 + l2 * l2);\n}", "function distanceFromOrigin(point) {\n let x = point[0];\n let y = point[1];\n return Math.pow(Math.pow(x, 2) + Math.pow(y, 2), 0.5);\n}", "function getDistance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n }", "distance(x0, y0, x1, y1) {\n return Math.sqrt(Math.pow(x1 - x0, 2) + Math.pow(y1 - y0, 2));\n }", "function getDistance(x1, y1, x2, y2) {\r\n var a = 0.0;\r\n var b = 0.0;\r\n a = x1 - x2;\r\n b = y1 - y2;\r\n return Math.sqrt(a * a + b * b);\r\n}", "function getTwoPointsDistance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n }", "function getDistance(x1,y1,x2,y2)\n{\n var xD = (x2-x1);\n var yD = (y2-y1);\n var power = Math.pow(xD,2)+Math.pow(yD,2);\n return Math.sqrt(power);\n}", "function getDistance(x1, y1, x2, y2) {\n\treturn Math.sqrt(Math.pow((x1 - x2), 2) + Math.pow((y1 - y2), 2));\n}", "function calculateDistance(point1X, point1Y, point2X, point2Y) {\n \n var xDistance = point1X - point2X,\n yDistance = point1Y - point2Y;\n \n return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));\n \n}", "static DistancePointLine() {}", "distance(x1, y1, x2, y2) {\n\t\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\t}", "function getDistance(x1,y1,x2,y2) {\n\treturn Math.sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)));\n}", "function distance(point1, point2){\n return Math.sqrt(Math.pow(point1[0]-point2[0], 2) + Math.pow(point1[1]-point2[1], 2));\n}", "function LineIntersection(lineVertex, lineVector, pointA, pointB)\r\n{\r\n\tdebugger;\r\n\tvar c = VecSub(lineVertex, pointA);\r\n\tvar v = VecSub(pointB, pointA);\r\n\tvar d = VecLength(v);\r\n\tvar t = VecDot(v, c);\r\n\tvar q = VecAdd(pointA, VecScale(v, t/d));\r\n\tvar vq = VecSub(q, lineVertex);\r\n\tvar r = VecLength(vq) / VecDot(q, vq);\r\n\tvar F = VecAdd(lineVertex, VecScale(lineVector, r));\r\n\treturn F;\r\n\t//var r = VecDot(v, q);\r\n\t//t = (t + r) / d;\r\n\t// if 0 <= t <= d, then it's on the segment; otherwise it's off in space\r\n\t//if (t >= 0 && t <= d)\r\n\t//\treturn VecAdd(pointA, VecScale(v, t / d));\r\n\treturn;\r\n}", "function d3_v3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function d3_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "distance() { // Method to compute distance from origin to point.\n return Math.sqrt( // Return the square root of x² + y².\n this.x * this.x + // this refers to the Point object on which\n this.y * this.y // the distance method is invoked.\n );\n }", "function getDistance(x1, y1, x2, y2) {\n var x = x2 - x1;\n var y = y2 - y1;\n return Math.sqrt((x * x) + (y * y));\n }", "function distance(P1, P2) {\n var x1 = P1[0];\n var y1 = P1[1];\n var x2 = P2[0];\n var y2 = P2[1];\n var d = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return d;\n}", "function calculateDistance(point, station) {\n const x1 = _.get(point, 'x', 0);\n const x2 = _.get(station, 'x', 0);\n const y1 = _.get(point, 'y', 0);\n const y2 = _.get(station, 'y', 0);\n const distance = Math.sqrt(Math.pow((x1 - x2), 2) + Math.pow((y1 - y2), 2));\n return distance;\n}", "function findIntersectionPoint(line1, line2) { //http://stackoverflow.com/a/565282/6283767\n\tconst p = line1[0];\n\tconst q = line2[0];\n\tconst r = line1[1].subtract(line1[0]);\n\tconst s = line2[1].subtract(line2[0]);\n\tconst t = q.subtract(p).crossProduct(s) / (r.crossProduct(s));\n\tconst u = q.subtract(p).crossProduct(r) / (r.crossProduct(s));\n\tif (line1[0] === line2[0] || line1[1] === line2[0] || line1[0] === line2[1] || line1[1] === line2[1]) { //They're touching each other on the edge\n\t\treturn new Point(0, 0);\n\t} else if (r.crossProduct(s) === 0 && (q.subtract(p).crossProduct(r) === 0)) { //Collinear\n\t\treturn new Point(0, 0);\n\t} else if (r.crossProduct(s) === 0 && (q.subtract(p).crossProduct(r) !== 0)) { //Parallel lines\n\t\treturn new Point(0, 0);\n\t} else if (r.crossProduct(s) !== 0 && ((0 <= t && t <= 1) && (0 <= u && u <= 1))) {\n\t\tconst newP = p.add(r.scale(t));\n\t\treturn newP;\n\t} else {\n\t\treturn new Point(0, 0);\n\t}\n}", "distanceToPoint (p0) {\n const dd = (this.a * p0.x + this.b * p0.y + this.c * p0.z + this.d) /\n Math.sqrt(this.a * this.a + this.b * this.b + this.c * this.c)\n return dd\n }", "static pointDistance(p1, p2) {\n return Math.sqrt((p2.x-p1.x)*(p2.x-p1.x) + (p2.y-p1.y)*(p2.y-p1.y));\n }", "function distance(x1, y1, x2, y2) {\r\n\t\t return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\r\n\t\t}", "function get_distance(point_a, point_b) {\n validate_object(point_a);\n validate_object(point_b);\n\n var x1 = point_a[\"x_pos\"];\n var x2 = point_b[\"x_pos\"];\n var y1 = point_a[\"y_pos\"];\n var y2 = point_b[\"y_pos\"];\n // Distance = square root of (x2-x1)2 + (y2-y1)2\n var dis_tance = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\n // get 5 digits result\n dis_tance = Number(dis_tance).toFixed(5);\n return dis_tance;\n}", "function d4_svg_lineSlope(p0, p1) {\n return (p1[1] - p0[1]) / (p1[0] - p0[0]);\n}", "function closestLine(mx, my) {\n var dist = 15;\n var index, point;\n for (var i = 0; i < lines.length; i++) {\n var xy = closestXY(lines[i], mx, my);\n var dx = mx - xy.x;\n var dy = my - xy.y;\n var thisDist = dx * dx + dy * dy;\n if (thisDist < dist) {\n dist = thisDist;\n point = xy;\n index = i;\n }\n }\n var line = lines[index];\n return ({\n point: point,\n line: line\n });\n}", "function distance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));\n }", "dist (x, y) {\n const dx = (this.x - x);\n const dy = (this.y - y);\n return dx ** 2 + dy ** 2 \n }", "function distance (x1, y1, x2, y2){\r\n return Math.sqrt( (x2-=x1)*x2 + (y2-=y1)*y2 );\r\n}", "function pointDistance(a, b) {\n // get the distance between two points.\n return Math.abs(Math.sqrt(((a.x - b.x) ** 2) + ((a.y - b.y) ** 2)))\n}", "function IntersectingLineSegmentDistance(sourceGeometry, intersectGeometry, interestedLines){\n // Loop through the intersecting lines and find the segment of the line\n for (var line in interestedLines) {\n var distanceAlongLine = 0;\n // Loop through the segments of the line. Handle multipart geometries\n for (var part in Geometry(line).paths) {\n var segment = Geometry(line).paths[part];\n\n // Loop through the points in the segment\n for (var i in segment) {\n if (i == 0) continue;\n\n // Construct a 2-point line segment from the current and previous point\n var firstPoint = segment[i-1];\n var secondPoint = segment[i]\n var twoPointLine = Polyline({ 'paths' : [[[firstPoint.x, firstPoint.y], [secondPoint.x, secondPoint.y]]], 'spatialReference' : firstPoint.spatialReference});\n\n // Test if the point intersects the 2-point line segment\n if (Intersects(intersectGeometry, twoPointLine)) {\n // Construct a 2-point line segment using the previous point and the address point\n var lastSegment = Polyline({ 'paths' : [[[firstPoint.x, firstPoint.y], [sourceGeometry.x, sourceGeometry.y]]], 'spatialReference' : firstPoint.spatialReference});\n // Add to the total distance along the line and break the loop\n distanceAlongLine += Length(lastSegment);\n return [line, twoPointLine, distanceAlongLine]\n }\n // Add to the toal distance along the line\n distanceAlongLine += Length(twoPointLine);\n }\n }\n }\n return null;\n}", "function distanceTo(pointA, pointB) {\n var dx = Math.abs(pointA.x - pointB.x);\n var dy = Math.abs(pointA.y - pointB.y);\n return Math.sqrt(dx * dx + dy * dy);\n }", "function distance( x1, y1, x2, y2 ) {\n var a = x2 - x1;\n var b = y2 - y1;\n return Math.sqrt( a * a + b * b );\n }", "function getDistanceBetweenPoints(point1, point2) {\n var left1 = point1.left || point1.x || 0;\n var top1 = point1.top || point1.y || 0;\n var left2 = point2.left || point2.x || 0;\n var top2 = point2.top || point2.y || 0;\n /* eslint-enable deprecation/deprecation */\n var distance = Math.sqrt(Math.pow(left1 - left2, 2) + Math.pow(top1 - top2, 2));\n return distance;\n}", "getDistance(x1, y1, x2, y2){\r\n let dx = x2 - x1;\r\n let dy = y2 - y1;\r\n\r\n return Math.sqrt(Math.pow(dx,2) + Math.pow(dy,2));\r\n }", "function getDistance(x1,y1,x2,y2){\n // this is the equation: square root of (x1-y1)*(x1-y2)+(y1-y2)*(y2-y1)\n return Math.sqrt( Math.pow((x1-x2), 2) + Math.pow((y1-y2), 2) );\n}", "function distBetweenPoints(x1, y1, x2, y2) {\n\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n}", "function getNormal(line) {\n\tlet [ax, ay, bx, by] = line;\n\tlet dx = bx - ax;\n\tlet dy = by - ay;\n\treturn [-dy, dx];\n}", "getDistance(pt) {\n var x = (this.x - this.y) * this.TILE_HEIGHT + this.MAP_OFFSET_X;\n var y = (this.x + this.y) * this.TILE_HEIGHT / 2 + this.MAP_OFFSET_Y;\n return Math.sqrt(Math.pow(x - pt.x, 2) + Math.pow(y - pt.y, 2));\n }", "function pointDistance(p1, p2) {\n var lon1 = p1[0] * deg2rad;\n var lon2 = p2[0] * deg2rad;\n var lat1 = p1[1] * deg2rad;\n var lat2 = p2[1] * deg2rad;\n\n a = Math.sin(lat1)*Math.sin(lat2) +\n Math.cos(lat1)*Math.cos(lat2) *\n Math.cos(lon2-lon1);\n // due to rounding errors a may exceed the legal argument range for acos\n if (a < -1.0) {\n a = -1.0;\n }\n if (a > 1.0) {\n a = 1.0;\n }\n return Math.acos(a) * R;\n}", "function pointDistance(p1, p2) {\n var lon1 = p1[0] * deg2rad;\n var lon2 = p2[0] * deg2rad;\n var lat1 = p1[1] * deg2rad;\n var lat2 = p2[1] * deg2rad;\n\n a = Math.sin(lat1)*Math.sin(lat2) +\n Math.cos(lat1)*Math.cos(lat2) *\n Math.cos(lon2-lon1);\n // due to rounding errors a may exceed the legal argument range for acos\n if (a < -1.0) {\n a = -1.0;\n }\n if (a > 1.0) {\n a = 1.0;\n }\n return Math.acos(a) * R;\n}", "function calculeDistance(x1, y1, x2, y2) {\r\n return Math.sqrt(Math.pow((y2 - y1),2) + Math.pow((x2 - x1),2));\r\n}", "function getDistanceBetweenPoints(point1, point2) {\n var distance = Math.sqrt(Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2));\n return distance;\n}", "function getDistanceBetweenPoints(point1, point2) {\n var distance = Math.sqrt(Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2));\n return distance;\n}", "function distance(x1, x2, y1, y2) {\n\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}" ]
[ "0.7365339", "0.7024283", "0.69624466", "0.68171215", "0.678794", "0.67519283", "0.6733547", "0.66921794", "0.6650434", "0.65769225", "0.6564171", "0.65492517", "0.6494417", "0.6494271", "0.64810455", "0.6479191", "0.6477092", "0.6468148", "0.64623284", "0.6443253", "0.63680184", "0.6367383", "0.6363663", "0.6316486", "0.6314787", "0.6284693", "0.62727267", "0.626489", "0.6262266", "0.6254619", "0.6209309", "0.61966586", "0.619324", "0.6169972", "0.61608154", "0.61545956", "0.6131407", "0.6124836", "0.61189413", "0.6107605", "0.6080025", "0.6074344", "0.6072223", "0.60706925", "0.6063923", "0.60619354", "0.6050158", "0.6046815", "0.6046037", "0.60433924", "0.60375506", "0.6037005", "0.6003", "0.5999568", "0.5995395", "0.5991909", "0.5980259", "0.59651995", "0.5952328", "0.59521955", "0.5951131", "0.59502506", "0.59449464", "0.59420145", "0.59420145", "0.59420145", "0.5940193", "0.5936948", "0.59341735", "0.59306514", "0.59237856", "0.592008", "0.5919963", "0.5915996", "0.5911082", "0.5909807", "0.5905912", "0.58868074", "0.5884747", "0.5878811", "0.587425", "0.58713317", "0.586748", "0.5866819", "0.5863016", "0.5855439", "0.58491415", "0.5849042", "0.5847449", "0.58415306", "0.58401406", "0.58401406", "0.58384055", "0.5832263", "0.5832263", "0.5832062", "0.5828478", "0.5828478", "0.5828478", "0.5828478" ]
0.7728379
0
Gets the projection of a point onto a line.
static closestPointOnLine(point, start, end) { // Inspired by: http://stackoverflow.com/a/6853926 var tA = point.x - start.x; var tB = point.y - start.y; var tC = end.x - start.x; var tD = end.y - start.y; var tDot = tA * tC + tB * tD; var tLenSq = tC * tC + tD * tD; var tParam = tDot / tLenSq; var tXx, tYy; if (tParam < 0 || (start.x === end.x && start.y === end.y)) { tXx = start.x; tYy = start.y; } else if (tParam > 1) { tXx = end.x; tYy = end.y; } else { tXx = start.x + tParam * tC; tYy = start.y + tParam * tD; } return new Vector2(tXx, tYy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "projectionOfPointToLine(point, line) {\n const {\n p1: {\n x: x1,\n y: y1\n },\n p2: {\n x: x2,\n y: y2\n }\n } = line;\n\n const A = point.x - x1,\n B = point.y - y1,\n C = x2 - x1,\n D = y2 - y1,\n dot = A * C + B * D,\n lenSq = (C * C + D * D) || 2,\n param = dot / lenSq;\n\n // projection is an endpoint\n if (param <= 0) {\n return line.p1;\n } else if (param > 1) {\n return line.p2;\n }\n\n return {\n x: x1 + param * C,\n y: y1 + param * D\n };\n }", "function projectOntoLine(point, line){\r\n //make the origin line.p1\r\n var lineVec = sub(line.p2, line.p1);\r\n var originPt = sub(point, line.p1);\r\n var newOriginPt = project(originPt, lineVec);\r\n return add(newOriginPt, line.p1);\r\n}", "function proj(point) {\n // Shift the point by the camera's position.\n var shifted = [point[0] - camera[0], point[1] - camera[1], point[2] - camera[2]];\n // Rotate the point by the camera's rotation.\n var rotated = rotateX(\n rotateY(\n rotateZ(\n [shifted[0], shifted[1], shifted[2]],\n rotation[2]),\n rotation[1]),\n rotation[0]);\n if (rotated[2] <= 0 || rotated[2] > 100) {\n // Return false for points behind the camera or too far in front of it, which shouldn't be drawn.\n return false;\n }\n return [rotated[0] / rotated[2] * zoom, rotated[1] / rotated[2] * zoom];\n}", "Project(line) {\n let dotvalue = line.direction.x * (this.x - line.origin.x)\n + line.direction.y * (this.y - line.origin.y);\n\n return new Vector({\n x: line.origin.x + line.direction.x * dotvalue,\n y: line.origin.y + line.direction.y * dotvalue,\n })\n\n }", "function projectPointToLine (p, a, ab) {\n var ap = [ p[0]-a[0], p[1]-a[1] ];\n var k = dot(ap,ab)/dot(ab,ab);\n return [\n a[0] + k * ab[0],\n a[1] + k * ab[1]\n ];\n }", "function linePoints(projection, place) {\n const sizes = appSizes();\n const line = {};\n line.x1 = projection([place.long, place.lat])[0];\n line.y1 = projection([place.long, place.lat])[1];\n line.x2 = line.x1 + place.offsetX + (sizes.maxWidth / 2);\n line.y2 = line.y1 + place.offsetY + (sizes.maxWidth / 2);\n return line;\n}", "function lineMidpoint(line){\n return [(line[0][0] + line[1][0]) / 2, (line[0][1] + line[1][1]) / 2];\n }", "get projectionMatrix() {\n\t\treturn this._p.matrix;\n\t}", "get projection() {\n if (!this.cache.projection) {\n var layer;\n for (var i=0, ii=this.layers.length; i<ii; ++i) {\n layer = this.layers[i];\n if (layer.projection) {\n this.projection = layer.projection;\n break;\n }\n }\n }\n return this.cache.projection;\n }", "pointToLatLon(point) {\n var projectedPoint = Point(point).add(this._originPoint);\n return this.unproject(projectedPoint);\n }", "function getProjection() {\n var N1 = get_N1();\n var N2 = get_N2();\n return mult(N1, N2);\n}", "get projection() {\n\t\treturn this._p;\n\t}", "function lineTo(point) {\n return \" L\" + _utils_Math__WEBPACK_IMPORTED_MODULE_0__[\"round\"](point.x, 4) + \",\" + _utils_Math__WEBPACK_IMPORTED_MODULE_0__[\"round\"](point.y, 4) + \" \";\n}", "function proj(coord){\n var x = (coord[0] - min_lon) / lon_width;\n var y = (coord[1] - min_lat) / lat_width;\n\n return [x * width, y * height]; \n}", "function getProjection () {\n return modelNode.projection;\n}", "intersection ( line ) {\n if ( line.a.x > this.x && line.b.x > this.x ) return null; // Right\n if ( line.a.x < this.x && line.b.x < this.x ) return null; // Left\n\n const cy = line.fy(this.x);\n if ( cy < this.a ) return null; // Below\n if ( cy > this.b ) return null; // Above\n return new Point(this.x, cy);\n }", "function point_plane_proj(p,v,y) {\n // normalized direction from p to v\n var r = norm_vec(from_to_vec(p,v));\n // assumed: the plane is for any x,z value and fixed Y=y\n var normal = [0,1,0];\n // for linear algebra\n var on_plane = [0,y,0];\n // solution from the written homework, saying v' = len*r + p\n var len = dot_vec(normal, from_to_vec(p,on_plane))/dot_vec(normal, r)\n var v_out = add_vec(scale_vec(r,len),p);\n // can do a sanity check: v_out's y-component should be essentially y\n if(Math.abs(v_out[1]-y)>0.001){\n console.log('WARNING: point_plane_proj made a bad projection on inputs (p,v,y) = ('+p+', '+v+', '+y+')');\n }\n // now to avoid colliding with the plane, add 0.001 to the y coord\n return [v_out[0],y+0.001,v_out[2]];\n}", "function getClosestPointOfLine(lineStart, lineEnd, point) {\n var ab = lineEnd.sub(lineStart)\n var ap = point.sub(lineStart)\n var mul = (ab.x * ap.x + ab.y * ap.y) / (ab.x * ab.x + ab.y * ab.y)\n return lineStart.add(ab.mult(mul))\n}", "function projectOntoLine( point, lA, lB ) {\n\n\tconst deltaPoint = point.clone().sub(lA);\n\tconst deltaLine = lB.clone().sub(lA);\n\n\n\tdeltaPoint.projectOnVector(deltaLine);\n\treturn deltaPoint.add(lA);\n\n}", "function project(c, p, y) {\n return {\n x: c.x + (p.x-c.x) / (p.y-c.y) * (y-c.y),\n y: y\n };\n}", "static projection(v1, v2) {\n\t\tlet dp = vector.dot(v1, v2)\n\t\tlet v2Normalized = vector.normalize(v2)\n\n\t\treturn new vector(dp*v2.x, dp*v2.y)\n\t}", "_projectCoordinates() {\n var _point;\n return this._coordinates.map(latlon => {\n _point = this._world.latLonToPoint(latlon);\n\n // TODO: Is offset ever being used or needed?\n if (!this._offset) {\n this._offset = Point(0, 0);\n this._offset.x = -1 * _point.x;\n this._offset.y = -1 * _point.y;\n\n this._options.pointScale = this._world.pointScale(latlon);\n }\n\n return _point;\n });\n }", "function axiom4(line, pt) {\n var x1 = line.c1.x;\n var y1 = line.c1.y;\n var x2 = line.c2.x;\n var y2 = line.c2.y;\n var x3 = pt.x;\n var y3 = pt.y;\n\n var m = (y2 - y1) / (x2 - x1);\n\n var thresh = .001;\n\n // Handle vert/horiz cases\n if (Math.abs(x2 - x1) < thresh) {\n return { x: x2, y: y3 };\n } else if (Math.abs(y2 - y1) < thresh) {\n return { x: x3, y: y2 };\n }\n\n var x = (-y1 + y3 + m * x1 + (x3 / m)) / (m + (1 / m));\n var y = y1 + m * x - m * x1;\n\n return { x: x, y: y };\n}", "function getProjectionPointOnSurface(point) {\n var radius = canvas.width/3; // Jari-jari virtual trackball kita tentukan sebesar 1/3 lebar kanvas\n var center = glMatrix.vec3.fromValues(canvas.width/2, canvas.height/2, 0); // Titik tengah virtual trackball\n var pointVector = glMatrix.vec3.subtract(glMatrix.vec3.create(), point, center);\n pointVector[1] = pointVector[1] * (-1); // Flip nilai y, karena koordinat piksel makin ke bawah makin besar\n var radius2 = radius * radius;\n var length2 = pointVector[0] * pointVector[0] + pointVector[1] * pointVector[1];\n if (length2 <= radius2) pointVector[2] = Math.sqrt(radius2 - length2); // Dapatkan nilai z melalui rumus Pytagoras\n else { // Atur nilai z sebagai 0, lalu x dan y sebagai paduan Pytagoras yang membentuk sisi miring sepanjang radius\n pointVector[0] *= radius / Math.sqrt(length2);\n pointVector[1] *= radius / Math.sqrt(length2);\n pointVector[2] = 0;\n }\n return glMatrix.vec3.normalize(glMatrix.vec3.create(), pointVector);\n }", "project(latlon) {\n return Geo.latLonToPoint(LatLon(latlon));\n }", "getProjection(projection, center, scale, offset) {\n return d3[projection]()\n .center(center)\n .scale(scale)\n .translate(offset);\n }", "function angle_line_at_point(line_geo, point_on_line) {\n var search = Extent(Buffer(point_on_line, .01, \"meter\"));\n var segment = Clip(line_geo, search)[\"paths\"][0];\n\n // Get angle of line using the start and end vertex\n return Angle(segment[0], segment[-1])\n}", "function getHalfWayThroughPointOfLine(linePointsSequence) {\n var halfWayThroughPoint;\n\n halfWayThroughPoint = linePointsSequence[Math.floor(linePointsSequence.length / 2)];\n\n return {\n lat: halfWayThroughPoint.latitude,\n lng: halfWayThroughPoint.longitude\n };\n }", "getPerpendicularLineFromPoint1() {\n\n var x1 = this.point1.getX();\n var y1 = this.point1.getY();\n var x2 = this.point2.getX();\n var y2 = this.point2.getY();\n\n var nearestAngle = getAngleOfLineBetweenPoints(x1, y1, x2, y2) + 90.0 * Math.PI / 180.0;\n\n var lineLength = GUIDE_LINE_LENGTH / 2.0;\n\n var newX1 = x1 + lineLength * Math.cos(nearestAngle);\n var newY1 = y1 + lineLength * Math.sin(nearestAngle);\n\n var newX2 = x1 - lineLength * Math.cos(nearestAngle);\n var newY2 = y1 - lineLength * Math.sin(nearestAngle);\n\n return new Line2D({x1: newX1, y1: newY1, x2: newX2, y2: newY2});\n }", "projectPoint(xyz, w = 1.0) {\n if (this._worldToLocalPerspective)\n return this._worldToLocalPerspective.multiplyPoint3d(xyz, w);\n if (this._worldToLocalAffine)\n return this._worldToLocalAffine.multiplyXYZW(xyz.x, xyz.y, xyz.z, w);\n return Point4d_1.Point4d.createFromPointAndWeight(xyz, w);\n }", "get projectionMatrix$() {\n\t\treturn this._p.matrix$;\n\t}", "function project(x) {\n var point = map.latLngToLayerPoint(new L.LatLng(x[1], x[0]));\n return [point.x, point.y];\n }", "function project(x) {\n var point = map.latLngToLayerPoint(new L.LatLng(x[1], x[0]));\n return [point.x, point.y];\n }", "calcProjectionCoords(points) {\n const projection = this.projection();\n return (points.map(point => {\n if ('geometry' in point) {\n return (projection(point.geometry.coordinates))\n }\n return (projection(point.coordinates))\n })\n )\n }", "function closestPointToLine3D(a,b,p,out){\n\tif(out == undefined) out = new Vec3();\n\tvar dx\t= b.x - a.x,\n\t\tdy\t= b.y - a.y,\n\t\tdz\t= a.z - a.z,\n\t\tt\t= ((p.x-a.x)*dx + (p.y-a.y)*dy + (p.z-a.z)*dz) / (dx*dx+dy*dy+dz*dz),\n\t\tx\t= a.x + (dx * t),\n\t\ty\t= a.y + (dy * t),\n\t\tz\t= a.z + (dz * t);\n\treturn out.set(x,y,z);\n}", "function project(x) {\n\t\t var point = map.latLngToLayerPoint(new L.LatLng(x[1], x[0]));\n\t\t return [point.x, point.y];\n\t\t}", "_transformedPoint(x, y) {\n let pt = this._svg.createSVGPoint()\n pt.x = x * this._pixelRatio()\n pt.y = y * this._pixelRatio()\n return pt.matrixTransform(this._transform.inverse())\n }", "function getNormal(line) {\n\tlet [ax, ay, bx, by] = line;\n\tlet dx = bx - ax;\n\tlet dy = by - ay;\n\treturn [-dy, dx];\n}", "function projectPoint(modelViewMatrix, projMatrix, viewport, src, dest) {\n\tif (!dest)\n\t\tdest = new Float32Array(3);\n\n\t_v0[0] = src[0]; _v0[1] = src[1]; _v0[2] = src[2]; _v0[3] = 1;\n\n\t// transform point from model space to clip space\n\ttransformVector4(modelViewMatrix, _v0, _v1);\n\ttransformVector4(projMatrix, _v1, _v0);\n\n\t/* to normalized device coordinates */\n\t_v0[0] /= _v0[3];\n\t_v0[1] /= _v0[3];\n\t_v0[2] /= _v0[3];\n\n\t/* to window coordinates */\n\tdest[0] = viewport[0] + 0.5 * (1 + _v0[0]) * viewport[2];\n\tdest[1] = -viewport[1] + 0.5 * (1 - _v0[1]) * viewport[3];\n\tdest[2] = 0.5 * (1 + _v0[2]);\n\n\treturn dest;\n}", "getProjection(other_vector) {\n\n }", "static ClosestPointToPolyLine() {}", "function findProjection(pos, a, b) {\n let v1 = p5.Vector.sub(a, pos);\n let v2 = p5.Vector.sub(b, pos);\n v2.normalize();\n let sp = v1.dot(v2);\n v2.mult(sp);\n v2.add(pos);\n return v2;\n}", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n}", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n}", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n}", "function pointLatLng( point ) {\n\treturn new GLatLng( point[0], point[1] );\n}", "function position(projection, point) {\n var spherical = projection.invert(point);\n return spherical && isFinite(spherical[0]) && isFinite(spherical[1]) && cartesian(spherical);\n}", "function projectPoint(x, y){\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function project(ratio, ls) {\n const length = lineLength(ls);\n const lngLat = getCoord(along(ls, length * ratio));\n // compute the approximate \"axis\" of the line (horizontal or vertical)\n // around the label position to chose an anchor minimizing the portion of line covered.\n const axis = getAxis(lineSliceAlong(ls, length * (ratio - 0.1), length * (ratio + 0.1)));\n\n return { lngLat, axis };\n}", "project(coord, transMat) {\n var point = BABYLON.Vector3.TransformCoordinates(coord, transMat);\n // The transformed coordinates will be based on coordinate system\n // starting on the center of the screen. But drawing on screen normally starts\n // from top left. We then need to transform them again to have x:0, y:0 on top left.\n var x = point.x * this.workingWidth + this.workingWidth / 2.0 >> 0; // >>0 二进制右移 相当于取整\n var y = -point.y * this.workingHeight + this.workingHeight / 2.0 >> 0;\n return (new BABYLON.Vector2(x, y));\n }", "function position(projection, point) {\n\t var spherical = projection.invert(point);\n\t return spherical && isFinite(spherical[0]) && isFinite(spherical[1]) && cartesian(spherical);\n\t}", "function position(projection, point) {\n\t var spherical = projection.invert(point);\n\t return spherical && isFinite(spherical[0]) && isFinite(spherical[1]) && cartesian(spherical);\n\t}", "unproject(point) {\n return Geo.pointToLatLon(Point(point));\n }", "static ProjectPointLine() {}", "getProjectionRenderer() {\n\t\treturn this._renderer;\n\t}", "latLonToPoint(latlon) {\n var projectedPoint = this.project(LatLon(latlon));\n return projectedPoint._subtract(this._originPoint);\n }", "function ClosestPointOnLine (pt, line)\n{\n\tvar X1 = line[0][0], Y1 = line[0][1];\n\tvar X2 = line[1][0], Y2 = line[1][1];\n\tvar px = pt[0], py = pt[1];\n\n\tvar dx = X2 - X1;\n\tvar dy = Y2 - Y1;\n\n\tvar nx,ny;\n\n\tif (dx == 0 && dy == 0)\n\t{\n\t\t// It's a point not a line segment.\n\t\t// dx = px - X1\n\t\t// dy = py - Y1\n\t\t// distance = Sqr(dx * dx + dy * dy)\n\t\tnx = X1;\n\t\tny = Y1;\n\t} else\n\t{\n\t\t// Calculate the t that minimizes the distance.\n\t\tvar t = ((px - X1) * dx + (py - Y1) * dy) / (dx * dx + dy * dy);\n\n\t\t// See if this represents one of the segment's\n\t\t// end points or a point in the middle.\n\t\tif (t <= 0)\n\t\t{\n\t\t\tnx = X1;\n\t\t\tny = Y1;\n\t\t} else if (t >= 1)\n\t\t{\n\t\t\tnx = X2;\n\t\t\tny = Y2;\n\t\t} else\n\t\t{\n\t\t\tnx = X1 + t * dx;\n\t\t\tny = Y1 + t * dy;\n\t\t}\n\t}\n\n\tdx = px - nx;\n\tdy = py - ny;\n\n\treturn [ [nx, ny], Math.sqrt (dx * dx + dy * dy) ];\n}", "function FastClosestPointOnLine (pt, line)\n{\n\tvar X1 = line[0][0], Y1 = line[0][1];\n\tvar X2 = line[1][0], Y2 = line[1][1];\n\tvar px = pt[0], py = pt[1];\n\n\tvar dx = X2 - X1;\n\tvar dy = Y2 - Y1;\n\n\tvar nx,ny;\n\n\tif (dx == 0 && dy == 0)\n\t{\n\t\t// It's a point not a line segment.\n\t\t// dx = px - X1\n\t\t// dy = py - Y1\n\t\t// distance = Sqr(dx * dx + dy * dy)\n\t\tnx = X1;\n\t\tny = Y1;\n\t} else\n\t{\n\t\t// Calculate the t that minimizes the distance.\n\t\tvar t = ((px - X1) * dx + (py - Y1) * dy) / (dx * dx + dy * dy);\n\n\t\t// See if this represents one of the segment's\n\t\t// end points or a point in the middle.\n\t\tif (t <= 0)\n\t\t{\n\t\t\tnx = X1;\n\t\t\tny = Y1;\n\t\t} else if (t >= 1)\n\t\t{\n\t\t\tnx = X2;\n\t\t\tny = Y2;\n\t\t} else\n\t\t{\n\t\t\tnx = X1 + t * dx;\n\t\t\tny = Y1 + t * dy;\n\t\t}\n\t}\n\n\tdx = px - nx;\n\tdy = py - ny;\n\n\treturn dx * dx + dy * dy;\n}", "screenToWorldCoordinates(point) {\n var _a, _b, _c, _d;\n let newX = point.x;\n let newY = point.y;\n // transform back to world space\n newX = (newX / this.viewport.width) * this.drawWidth;\n newY = (newY / this.viewport.height) * this.drawHeight;\n // transform based on zoom\n newX = newX - this.halfDrawWidth;\n newY = newY - this.halfDrawHeight;\n // shift by focus\n newX += (_b = (_a = this._camera) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : 0;\n newY += (_d = (_c = this._camera) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : 0;\n return new Vector(Math.floor(newX), Math.floor(newY));\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n /*jshint validthis:true */\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n var point = VMT.mapholder.map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function findPolygonPointsCorrectPosition(line) {\n var lengthOfCathetusFirstTriangle = Math.sqrt(line.getLength() * line.getLength() - line.getPoints().firstPoint.getRadius() * line.getPoints().firstPoint.getRadius());\n var lengthOfCathetusSecondTriangle = Math.sqrt(line.getLength() * line.getLength() - line.getPoints().secondPoint.getRadius() * line.getPoints().secondPoint.getRadius());\n var ya, yb, xa, xb, ya2, yb2, xa2, xb2;\n var center = {\n x: line.getPoints().firstPoint.getPosition().x - svgOffset.left,\n y: line.getPoints().firstPoint.getPosition().y - svgOffset.top\n };\n var point = {\n x: line.getPoints().secondPoint.getPosition().x - svgOffset.left,\n y: line.getPoints().secondPoint.getPosition().y - svgOffset.top\n };\n var result = {\n xa: null,\n xb: null,\n ya: null,\n yb: null,\n xa2: null,\n xb2: null,\n ya2: null,\n yb2: null\n };\n var e = center.x - point.x;\n var c = center.y - point.y;\n var q = (lengthOfCathetusFirstTriangle * lengthOfCathetusFirstTriangle - line.getPoints().firstPoint.getRadius() * line.getPoints().firstPoint.getRadius() + center.y * center.y - point.y * point.y + center.x * center.x - point.x * point.x) / 2;\n var A = c * c + e * e;\n var B = (center.x * e * c - c * q - center.y * e * e) * 2;\n var C = center.x * center.x * e * e - 2 * center.x * e * q + q * q + center.y * center.y * e * e - line.getPoints().firstPoint.getRadius() * line.getPoints().firstPoint.getRadius() * e * e;\n var e2 = point.x - center.x;\n var c2 = point.y - center.y;\n var q2 = (lengthOfCathetusSecondTriangle * lengthOfCathetusSecondTriangle - line.getPoints().secondPoint.getRadius() * line.getPoints().secondPoint.getRadius() + point.y * point.y - center.y * center.y + point.x * point.x - center.x * center.x) / 2;\n var A2 = c2 * c2 + e2 * e2;\n var B2 = (point.x * e2 * c2 - c2 * q2 - point.y * e2 * e2) * 2;\n var C2 = point.x * point.x * e2 * e2 - 2 * point.x * e2 * q2 + q2 * q2 + point.y * point.y * e2 * e2 - line.getPoints().secondPoint.getRadius() * line.getPoints().secondPoint.getRadius() * e2 * e2;\n\n result.ya = (Math.sqrt(B * B - 4 * A * C) - B) / (2 * A);\n result.yb = (-Math.sqrt(B * B - 4 * A * C) - B) / (2 * A);\n result.xa = (q - result.ya * c) / e;\n result.xb = (q - result.yb * c) / e;\n result.ya2 = (Math.sqrt(B2 * B2 - 4 * A2 * C2) - B2) / (2 * A2);\n result.yb2 = (-Math.sqrt(B2 * B2 - 4 * A2 * C2) - B2) / (2 * A2);\n result.xa2 = (q2 - result.ya2 * c2) / e2;\n result.xb2 = (q2 - result.yb2 * c2) / e2;\n\n return result;\n}", "getCenterPoint() {\n var x1 = this.point1.getX();\n var y1 = this.point1.getY();\n var x2 = this.point2.getX();\n var y2 = this.point2.getY();\n var centerX = (x1 - x2) / 2 + x2;\n var centerY = (y1 - y2) / 2 + y2;\n return new Point2D({x: centerX, y: centerY});\n }", "worldToScreenCoordinates(point) {\n var _a, _b, _c, _d;\n let screenX = point.x;\n let screenY = point.y;\n // shift by focus\n screenX -= (_b = (_a = this._camera) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : 0;\n screenY -= (_d = (_c = this._camera) === null || _c === void 0 ? void 0 : _c.y) !== null && _d !== void 0 ? _d : 0;\n // transform back on zoom\n screenX = screenX + this.halfDrawWidth;\n screenY = screenY + this.halfDrawHeight;\n // transform back to screen space\n screenX = (screenX * this.viewport.width) / this.drawWidth;\n screenY = (screenY * this.viewport.height) / this.drawHeight;\n return new Vector(Math.floor(screenX), Math.floor(screenY));\n }", "getPerpendicularInfiniteLinePoint2() {\n var x1 = this.point1.getX();\n var y1 = this.point1.getY();\n var x2 = this.point2.getX();\n var y2 = this.point2.getY();\n\n var nearestAngle = getAngleOfLineBetweenPoints(x1, y1, x2, y2) + 90.0 * Math.PI / 180.0;\n\n var lineLength = GUIDE_LINE_LENGTH / 2.0;\n\n var newX1 = x2 + lineLength * Math.cos(nearestAngle);\n var newY1 = y2 + lineLength * Math.sin(nearestAngle);\n\n var newX2 = x2 - lineLength * Math.cos(nearestAngle);\n var newY2 = y2 - lineLength * Math.sin(nearestAngle);\n\n return new Line2D({x1: newX1, y1: newY1, x2: newX2, y2: newY2});\n }", "intersect(line) {\n if (!(line instanceof Line)) return null;\n return createVector(this.x, line.getYAt(this.x));\n }", "dotPointToDrawPoint(point) {\n const { distanceBetweenDots, margin } = this\n const { x, y } = point\n\n return new Point(margin + x * distanceBetweenDots, margin + y * distanceBetweenDots)\n }", "function project(d) {\n return map.project(new mapboxgl.LngLat(d.LON, d.LAT));\n }", "toLine() {\n return {\n x1: this[0][0],\n y1: this[0][1],\n x2: this[1][0],\n y2: this[1][1]\n }\n }", "function projectPoint(x, y) {\n let self = this;\n let point = self.map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n let point = map.latLngToLayerPoint(new L.LatLng(y, x))\n this.stream.point(point.x, point.y);\n }", "function projection(width, height) {\n return [2 / width, 0, 0, 0, 0, -2 / height, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n}", "function position(line_r, line_s, point){\n\treturn Math.sign((line_s.x - line_r.x)*(point.y - line_r.y) - (line_s.y - line_r.y)*(point.x - line_r.x));\t\n}", "function closestXY(line, mx, my) {\n x0 = line.x0;\n y0 = line.y0;\n x1 = line.x1;\n y1 = line.y1;\n dx = x1 - x0;\n dy = y1 - y0;\n var t = ((mx - x0) * dx + (my - y0) * dy) / (dx * dx + dy * dy);\n t = Math.max(0, Math.min(1, t));\n var x = lerp(x0, x1, t);\n var y = lerp(y0, y1, t);\n if (line === lines[2]) {\n var d0 = Math.sqrt((x - line.x0) * (x - line.x0) + (y - line.y0) * (y - line.y0));\n var d1 = Math.sqrt((line.x1 - x) * (line.x1 - x) + (line.y1 - y) * (line.y1 - y));\n if (d0 < d1) {\n return {\n x: x0,\n y: y0\n }\n } else {\n return {\n x: x1,\n y: y1\n }\n }\n } else {\n return ({\n x: x,\n y: y\n });\n }\n}", "function getProjTransform(src, dest) {\n var clampSrc = isLatLngCRS(src);\n dest = dest.__mixed_crs || dest;\n return function(x, y) {\n var xy;\n if (clampSrc) {\n // snap lng to bounds\n if (x < -180) x = -180;\n else if (x > 180) x = 180;\n }\n xy = [x, y];\n mproj.pj_transform_point(src, dest, xy);\n return xy;\n };\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "getNormalPoint(p, a, b) {\n // Vector from a to p\n let ap = p5.Vector.sub(p, a);\n // Vector from a to b\n let ab = p5.Vector.sub(b, a);\n ab.normalize(); // Normalize the line\n // Project vector \"diff\" onto line by using the dot product\n ab.mult(ap.dot(ab));\n let normalPoint = p5.Vector.add(a, ab);\n return normalPoint;\n }", "function findIntersectionPoint(line1, line2) { //http://stackoverflow.com/a/565282/6283767\n\tconst p = line1[0];\n\tconst q = line2[0];\n\tconst r = line1[1].subtract(line1[0]);\n\tconst s = line2[1].subtract(line2[0]);\n\tconst t = q.subtract(p).crossProduct(s) / (r.crossProduct(s));\n\tconst u = q.subtract(p).crossProduct(r) / (r.crossProduct(s));\n\tif (line1[0] === line2[0] || line1[1] === line2[0] || line1[0] === line2[1] || line1[1] === line2[1]) { //They're touching each other on the edge\n\t\treturn new Point(0, 0);\n\t} else if (r.crossProduct(s) === 0 && (q.subtract(p).crossProduct(r) === 0)) { //Collinear\n\t\treturn new Point(0, 0);\n\t} else if (r.crossProduct(s) === 0 && (q.subtract(p).crossProduct(r) !== 0)) { //Parallel lines\n\t\treturn new Point(0, 0);\n\t} else if (r.crossProduct(s) !== 0 && ((0 <= t && t <= 1) && (0 <= u && u <= 1))) {\n\t\tconst newP = p.add(r.scale(t));\n\t\treturn newP;\n\t} else {\n\t\treturn new Point(0, 0);\n\t}\n}", "function nearestPointOnLine( x, y, x1, y1, x2, y2 ) {\n let vx = x2 - x1,\n vy = y2 - y1,\n ux = x1 - x,\n uy = y1 - y,\n vu = vx * ux + vy * uy,\n vv = vx * vx + vy * vy,\n t = -vu / vv\n return { t, x: t * x2 + ( 1 - t ) * x1, y: t * y2 + ( 1 - t ) * y1 }\n}", "function translate (slope, x0, y0, points){\n // defines each point relative to the line with a given slope passing through (x0,y0)\n var closest_points = []; // closest points along surface line\n var leftmost_point = [];\n var leftmost_x = 10000000; // arbitrarily large number\n for (var i = 0; i < points.length; i++){\n var current_point = points[i];\n var distance = Math.abs(-slope*current_point[0] + current_point[1] + slope*x0 - y0) / Math.sqrt(slope*slope + 1);\n var x = (current_point[0] + slope*current_point[1] + slope*(slope*x0-y0)) / (slope*slope + 1);\n var y = (-slope*(-current_point[0] - slope*current_point[1]) - slope*x0 + y0) / (slope*slope + 1);\n closest_points.push([x,y,distance]);\n if (x < leftmost_x){\n leftmost_point = [x,y];\n leftmost_x = x;\n }\n }\n // define points on new coordinate system with leftmost point along the surface line as the origin\n var new_points = [];\n for (var i = 0; i < closest_points.length; i++){\n var new_x = Math.sqrt(Math.pow(closest_points[i][0]-leftmost_point[0], 2) + Math.pow(closest_points[i][1]-leftmost_point[1], 2)); // distance from leftmost point\n var new_y = -closest_points[i][2];\n new_points.push([new_x,new_y]);\n }\n return new_points;\n}", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n\n this.stream.point(point.x, point.y);\n }", "intersect(line) {\n const sub = this.a - line.a;\n if (sub === 0) return null;\n \n const x = (line.b - this.b) / sub;\n const y = this.getYAt(x);\n return createVector(x, y);\n }", "function projectPoint(x, y) {\r\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\r\n this.stream.point(point.x, point.y);\r\n }", "toLine() {\n return {\n x1: this[0][0],\n y1: this[0][1],\n x2: this[1][0],\n y2: this[1][1]\n };\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n\t\tvar point = map1.latLngToLayerPoint(new L.LatLng(y, x));\n\t\tthis.stream.point(point.x, point.y);\n\t}", "getPath(projection) {\n return d3\n .geoPath()\n .projection(projection);\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }", "function projectPoint(x, y) {\n var point = map.latLngToLayerPoint(new L.LatLng(x, y));\n this.stream.point(point.x, point.y);\n }", "function transformedPoint(x, y) {\n\t\t\t\treturn {\n\t\t\t\t\t\"x\" : mapTranslate[0] + (x * mapScale),\n\t\t\t\t\t\"y\" : mapTranslate[1] + (y * mapScale)\n\t\t\t\t};\n\t\t\t}", "function getProjectedPosition(width, height, position) {\r\n\t/*\r\n\t\tUsing the coordinates of a country in the 3D space, this function will\r\n\t\treturn the 2D coordinates using the camera projection method.\r\n\t*/\r\n\tposition = position.clone();\r\n\tvar projected = position.project(camera.object);\r\n\treturn {\r\n\t\tx: (projected.x * width) + width,\r\n\t\ty: -(projected.y * height) + height\r\n\t};\r\n}", "function project(d) {\n\t\t\t\tvar point = map.latLngToLayerPoint(new L.LatLng(d[1], d[0]));\n\t\t\t\treturn [point.x, point.y];\n\t\t\t}", "get rel() {\n\tvar rev;\n\tvar xy;\n\t\n\trev = this._get_ac_rev();\n\txy = _pnt_transform(this.orig.x, this.orig.y, rev);\n\n\treturn {x: xy[0], y: xy[1]};\n }", "get viewProjectionMatrix$() {\n\t\treturn (this._vp.m || (this._vp.m = SpiderGL.Math.Mat4.mul(this.projectionMatrix$, this.viewMatrix$)));\n\t}", "function polylineToPoint(shp, arcs, opts) {\n var spherical = !arcs.isPlanar();\n var part = !shp ? null : (shp.length == 1 ? shp[0] : findLongestPolylinePart(shp, arcs, spherical));\n if (!part) return null;\n var bbox = arcs.getSimpleShapeBounds(part);\n var p = findNearestVertex(bbox.centerX(), bbox.centerY(), [part], arcs, spherical);\n return p;\n }", "function projectPoint(x, y) {\n var point = leafletMap.latLngToLayerPoint(new L.LatLng(y, x));\n this.stream.point(point.x, point.y);\n }" ]
[ "0.8686787", "0.71076924", "0.7048802", "0.68417716", "0.6404786", "0.63570285", "0.6310294", "0.62568635", "0.6184332", "0.6183051", "0.61012596", "0.6035388", "0.60039145", "0.6002718", "0.59502435", "0.5930932", "0.59251255", "0.59213686", "0.58848625", "0.58660525", "0.5827153", "0.5808974", "0.58075047", "0.5795618", "0.57903665", "0.5775794", "0.57447594", "0.57016593", "0.56972647", "0.56868696", "0.5683634", "0.5675697", "0.56744516", "0.567266", "0.5668206", "0.5663569", "0.5652717", "0.56334865", "0.56198144", "0.5606016", "0.55785006", "0.5556395", "0.5534073", "0.5534073", "0.5534073", "0.55320984", "0.5519505", "0.5503025", "0.5488288", "0.5487853", "0.54812986", "0.54812986", "0.5467944", "0.54479694", "0.5443426", "0.5437", "0.54333144", "0.54281294", "0.5421631", "0.54179925", "0.5412695", "0.5412153", "0.54078877", "0.54050773", "0.540466", "0.53983283", "0.53890747", "0.53811145", "0.53726673", "0.53695977", "0.5368005", "0.53625345", "0.5359802", "0.53508407", "0.535001", "0.53479433", "0.53479433", "0.53479433", "0.53461194", "0.53378475", "0.5337484", "0.5333496", "0.53317845", "0.53317845", "0.53310794", "0.5323324", "0.5320473", "0.5312068", "0.53092563", "0.53038126", "0.5301402", "0.5300293", "0.52957", "0.528259", "0.52797145", "0.5276432", "0.52756125", "0.52691764", "0.5259861", "0.5255459" ]
0.53825456
67
Gets the distance of two points.
static distance(start, end) { return Math.sqrt(Math.pow(end.x - start.x, 2) + Math.pow(end.y - start.y, 2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function distance(p1, p2) {\n var firstPoint;\n var secondPoint;\n var theXs;\n var theYs;\n var result;\n\n firstPoint = new createjs.Point();\n secondPoint = new createjs.Point();\n\n firstPoint.x = p1.x;\n firstPoint.y = p1.y;\n\n secondPoint.x = p2.x;\n secondPoint.y = p2.y;\n\n theXs = secondPoint.x - firstPoint.x;\n theYs = secondPoint.y - firstPoint.y;\n\n theXs = theXs * theXs;\n theYs = theYs * theYs;\n\n result = Math.sqrt(theXs + theYs);\n\n return result;\n}", "static distance(p1, p2) {\n const dx = (p1.x - p2.x);\n const dy = (p1.y - p2.y);\n return Math.sqrt(dx * dx + dy * dy);\n }", "function getDistance(point1, point2) {\n return Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2);\n}", "function distance(P1, P2) {\n var x1 = P1[0];\n var y1 = P1[1];\n var x2 = P2[0];\n var y2 = P2[1];\n var d = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return d;\n}", "function distance(p1, p2) { return length_v2(diff_v2(p1, p2)); }", "function distance(point1, point2) {\n return Math.hypot(point1.x-point2.x, point1.y-point2.y);\n}", "function getDistanceBetweenPoints(point1, point2) {\n var left1 = point1.left || point1.x || 0;\n var top1 = point1.top || point1.y || 0;\n var left2 = point2.left || point2.x || 0;\n var top2 = point2.top || point2.y || 0;\n /* eslint-enable deprecation/deprecation */\n var distance = Math.sqrt(Math.pow(left1 - left2, 2) + Math.pow(top1 - top2, 2));\n return distance;\n}", "function getTwoPointsDistance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n }", "distance(x1, y1, x2, y2) {\n\t\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\t}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function getDistance(x1, y1, x2, y2) {\r\n var a = 0.0;\r\n var b = 0.0;\r\n a = x1 - x2;\r\n b = y1 - y2;\r\n return Math.sqrt(a * a + b * b);\r\n}", "function getDistance(x1, y1, x2, y2) {\n var x = x2 - x1;\n var y = y2 - y1;\n return Math.sqrt((x * x) + (y * y));\n }", "static distance(x1, y1, x2, y2) {\n return Math.hypot(x2 - x1, y2 - y1);\n }", "function getDistance(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2)); \n }", "function getDistance(x1, y1, x2, y2)\n{\n var l1 = x2 - x1;\n var l2 = y2 - y1;\n \n return Math.sqrt(l1 * l1 + l2 * l2);\n}", "function distance (point1, point2) {\n var deltaX = point1[0] - point2[0]\n var deltaY = point1[1] - point2[1]\n\n var deltaXSquared = Math.pow(deltaX, 2)\n var deltaYSquared = Math.pow(deltaY, 2)\n\n var answer = Math.sqrt(deltaXSquared + deltaYSquared)\n return answer\n}", "function getDist(point1, point2) {\r\n\tif (samePoint(point1, nullPoint) || samePoint(point2, nullPoint))\r\n\t\treturn -1;\r\n\treturn game.math.distance(point1.x, point1.y, point2.x, point2.y);\r\n}", "function getDistance(x1, y1, x2, y2) {\n\treturn Math.sqrt(Math.pow((x1 - x2), 2) + Math.pow((y1 - y2), 2));\n}", "static distance(p1, p2) {\n return Math.sqrt((p1.x - p2.x) ** 2 + (p1.y - p2.y) ** 2);\n }", "getDistance(x1, y1, x2, y2){\r\n let dx = x2 - x1;\r\n let dy = y2 - y1;\r\n\r\n return Math.sqrt(Math.pow(dx,2) + Math.pow(dy,2));\r\n }", "function getDistance(x1, x2, y1, y2) {\n var a = x1 - x2;\n var b = y1 - y2;\n var c = Math.sqrt( a*a + b*b );\n return c;\n }", "function _distance(point1, point2) {\n return Math.sqrt((point1[0] - point2[0]) * (point1[0] - point2[0]) + (point1[1] - point2[1]) * (point1[1] - point2[1]) + (point1[2] - point2[2]) * (point1[2] - point2[2]));\n}", "function distance(p1, p2) {\n\treturn Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function distance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));\n }", "function getDistance(x1,y1,x2,y2)\n{\n var xD = (x2-x1);\n var yD = (y2-y1);\n var power = Math.pow(xD,2)+Math.pow(yD,2);\n return Math.sqrt(power);\n}", "function distance( x1, y1, x2, y2 ) {\n var a = x2 - x1;\n var b = y2 - y1;\n return Math.sqrt( a * a + b * b );\n }", "function distance(p1, p2) {\n return Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) +\n (p1.y - p2.y) * (p1.y - p2.y));\n }", "function getDistance(x1, y1, x2, y2)\r\n{\r\n\treturn (((x2-x1)**2)+((y2-y1)**2))**(1/2);\r\n}", "function getDistance(x1,y1,x2,y2){\r\n\tlet xOff = x1 - x2;\r\n\tlet yOff = y1 - y2;\r\n\treturn Math.sqrt(xOff * xOff + yOff * yOff);\r\n}", "function distance(p1, p2) {\n return Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) +\n (p1.y - p2.y) * (p1.y - p2.y));\n}", "function distance(p1, p2) {\n return Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n }", "function distance(p1, p2) {\n return Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n }", "function getDistance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n }", "function distance(p1, p2) {\n return Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n }", "function getDistanceBetweenPoints(point1, point2) {\n var distance = Math.sqrt(Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2));\n return distance;\n}", "function getDistanceBetweenPoints(point1, point2) {\n var distance = Math.sqrt(Math.pow(point1.x - point2.x, 2) + Math.pow(point1.y - point2.y, 2));\n return distance;\n}", "function distBetweenPoints(x1, y1, x2, y2) {\n\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n}", "function distance(x1, x2, y1, y2) {\n\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n}", "function distance(p1, p2) {\n return Math.floor(Math.sqrt(Math.pow((p2.x - p1.x), 2) + Math.pow((p2.y - p1.y), 2)));\n }", "function getDistance(x1, y1, x2, y2) {\n return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n }", "function distanceBetweenPoints(a, b) {\n \n return Math.hypot(a.x-b.x, a.y-b.y)\n}", "function distance(p1, p2) {\n\t\treturn Math.sqrt(Math.pow(p2.y - p1.y, 2) + Math.pow(p2.x - p1.x, 2));\n\t}", "function pointDistance(a, b) {\n // get the distance between two points.\n return Math.abs(Math.sqrt(((a.x - b.x) ** 2) + ((a.y - b.y) ** 2)))\n}", "function distance(p1, p2) {\n var deltaX = p1[0] - p2[0],\n deltaY = p1[1] - p2[1];\n return sqrt(deltaX * deltaX + deltaY * deltaY);\n }", "function distance (point1, point2) {\n Math.sqrt(Math.pow(point1[0] - point1[1], 2) + Math.pow(point2[0] - point2[1], 2))\n}", "function distance(point1, point2){\n return Math.sqrt(Math.pow(point1[0]-point2[0], 2) + Math.pow(point1[1]-point2[1], 2));\n}", "function dist(p1, p2) {\n var dx = p1.x - p2.x;\n var dy = p1.y - p2.y;\n return Math.sqrt(dx*dx + dy*dy);\n}", "function pointDistance(p1, p2) {\n var d1 = p1.x - p2.x;\n var d2 = p1.y - p2.y;\n return Math.sqrt(d1 * d1 + d2 * d2);\n}", "function getDistance(x1,y1,x2,y2) {\n\treturn Math.sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)));\n}", "function distance(p1, p2) {\n\t return Math.sqrt((p1.x - p2.x) * (p1.x - p2.x) + (p1.y - p2.y) * (p1.y - p2.y));\n\t}", "function getDistance(a, b) {\n const distX = a.x - b.x;\n const distY = a.y - b.y;\n return Math.sqrt(distX ** 2 + distY ** 2); // ** exponentiation\n}", "function getDistance(a, b) {\n return Math.sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));\n }", "function getDistance(a, b) {\n\tconst x = a.x - b.x;\n\tconst y = a.y - b.y;\n\n\treturn Math.sqrt(x * x + y * y);\n}", "function distance(pt1, pt2) { \n\n return Math.sqrt(Math.pow((pt1.x - pt2.x), 2) + Math.pow((pt1.y - pt2.y), 2));\n}", "function dist(x1, y1, x2, y2) {\r\n return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));\r\n }", "distanceBetweenPoints(p1, p2) {\n const dx = Math.abs(p1.x - p2.x),\n dy = Math.abs(p1.y - p2.y);\n return Math.sqrt((dx * dx) + (dy * dy));\n }", "function calculateDistance(point1, point2) {\n\treturn Math.sqrt(Math.pow((point1.x - point2.x), 2) + Math.pow((point1.y - point2.y), 2));\n}", "function distance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n}", "function getDistance(x2, y2, x1, y1) {\n var distance;\n var deltaX = x2 - x1;\n var deltaY = y2 - y1;\n\n distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n\n return distance;\n}", "function distance(x1, y1, x2, y2) {\n return Math.abs(x1 - x2) + Math.abs(y1 - y2)\n}", "function pointDistance(x1, y1, x2, y2) {\n return Math.sqrt((y2-y1)*(y2-y1) + (x2-x1)*(x2-x1));\n}", "function distance(p1, p2)\n{\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n}", "function distance(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2-x1, 2) + Math.pow(y2-y1, 2))\n}", "function distance(x1, y1, x2, y2){\n var s = Math.sqrt(Math.pow(x1-x2, 2) + Math.pow(y1-y2, 2));\n //console.log(\"s: \", s);\n return s;\n}", "function distance(point1, point2) {\n var xDiff = point2.cx - point1.cx;\n var\tyDiff = point2.cy - point1.cy;\n return Math.sqrt( xDiff*xDiff + yDiff*yDiff);\n}", "function pointDistance(x1,y1, x2,y2) {\n return Math.sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) );\n}", "function distance(pos1, pos2) {\n return dist(pos1.x, pos1.y, pos2.x, pos2.y);\n}", "static pointDistance(p1, p2) {\n return Math.sqrt((p2.x-p1.x)*(p2.x-p1.x) + (p2.y-p1.y)*(p2.y-p1.y));\n }", "function calculateDistanceBetweenTwoPoints(x1, y1, x2, y2) {\r\n let distance = Math.sqrt(Math.pow((x1-x2),2) + Math.pow((y1-y2),2));\r\n console.log(distance);\r\n}", "function distance(x1, y1, x2, y2) {\r\n\t\t return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\r\n\t\t}", "function dist(x1, x2, y1, y2) {\r\n var a = x1 - x2;\r\n var b = y1 - y2;\r\n\r\n var c = Math.sqrt(a * a + b * b);\r\n return c;\r\n}", "function dist(p1,p2) {\n return Math.hypot(p2.x-p1.x, p2.y-p1.y);\n}", "function distance(x1,y1, x2,y2){\n var dx = x2-x1;\n var dy = y2-y1;\n with(Math){ return sqrt(pow(dx,2)+pow(dy,2)); }\n}", "distance(x0, y0, x1, y1) {\n return Math.sqrt(Math.pow(x1 - x0, 2) + Math.pow(y1 - y0, 2));\n }", "function distance (x1, y1, x2, y2){\r\n return Math.sqrt( (x2-=x1)*x2 + (y2-=y1)*y2 );\r\n}", "function dist(x1, y1, x2, y2) {\n var a = x1 - x2;\n var b = y1 - y2;\n var c = Math.sqrt( a*a + b*b );\n return c;\n}", "function distance (p1, p2){\n return (google.maps.geometry.spherical.computeDistanceBetween(p1, p2)).toFixed(2);\n }", "function distance(x1,y1,x2,y2) {\n return sqrt(pow(x2-x1,2)+pow(y2-y1,2)) \n}", "function pointDistance(x1,y1,x2,y2){\r\n\tvar dist = Math.sqrt( Math.abs((x2 - x1)*(x2-x1)) + Math.abs((y2 - y1)*(y2-y1)));\r\n\treturn dist;\r\n}", "function get_distance(point_a, point_b) {\n validate_object(point_a);\n validate_object(point_b);\n\n var x1 = point_a[\"x_pos\"];\n var x2 = point_b[\"x_pos\"];\n var y1 = point_a[\"y_pos\"];\n var y2 = point_b[\"y_pos\"];\n // Distance = square root of (x2-x1)2 + (y2-y1)2\n var dis_tance = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\n // get 5 digits result\n dis_tance = Number(dis_tance).toFixed(5);\n return dis_tance;\n}", "function distance(x1, y1, x2, y2)\n{\n return Math.sqrt(\n Math.pow(Math.abs(x2 - x1), 2) +\n Math.pow(Math.abs(y2 - y1), 2));\n}", "function get_distance(x1, y1, x2, y2)\n{\n return Math.sqrt(Math.pow(x2-x1,2) + Math.pow(y2-y1,2));\n}", "function distance (x1, y1, x2, y2){\r\n\tvar a = x1 - x2;\r\n\tvar b = y1 - y2;\r\n\treturn Math.sqrt(a*a + b*b);\r\n}", "function getDistance(x1, y1, x2, y2) {\n\tlet xDistance = x2 - x1;\n\tlet yDistance = y2 - y1;\n\n\treturn Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));\n}", "function distance(p1, p2) {\r\n\treturn Math.sqrt(Math.pow(p1[0] - p2[0], 2) + Math.pow(p1[1] - p2[1], 2) + Math.pow(p1[2] - p2[2], 2));\r\n}", "function distance(x1, y1, x2, y2){ \n\t\treturn Math.abs(Math.sqrt( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) ));\n\t}", "function getDistance(x1, y1, x2, y2) {\n var xDistance = x2 - x1;\n var yDistance = y2 - y1;\n\n return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));\n}", "function distance(x1, x2, y1, y2){\n\treturn Math.sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)));\n}", "function getDistance(x1, y1, x2, y2) {\n return Math.max(Math.abs(x2 - x1), Math.abs(y2 - y1));\n}", "DistanceFromPoint(x,y,x2,y2) {\n return Math.abs(Math.sqrt(Math.pow((x-x2),2) + Math.pow((y-y2),2)));\n }", "function distBetweenPoints(a,b){\r\n return Math.sqrt((a.x-b.x)*(a.x-b.x) + (a.y-b.y)*(a.y-b.y));\r\n}", "function dist(x1, y1, x2, y2) {\n return Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n}", "function getDist(p1, p2) {\n return Math.sqrt(\n Math.pow(p2[0] - p1[0], 2) +\n Math.pow(p2[1] - p1[1], 2)\n );\n}", "function dist(p1, p2) {\n return Math.sqrt(Math.pow(p1[0] - p2[0], 2)\n + Math.pow(p1[1] - p2[1], 2));\n}", "getLength() {\n var x1 = this.point1.getX();\n var y1 = this.point1.getY();\n var x2 = this.point2.getX();\n var y2 = this.point2.getY();\n return Math.hypot(x1 - x2, y1 - y2);\n }", "function distanceTo(pointA, pointB) {\n var dx = Math.abs(pointA.x - pointB.x);\n var dy = Math.abs(pointA.y - pointB.y);\n return Math.sqrt(dx * dx + dy * dy);\n }", "function get_dist(x1,y1,x2,y2){\n return Math.sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));\n}", "function distance(a, b) {\n var dx = a.x - b.x;\n var dy = a.y - b.y;\n return Math.sqrt(dx * dx + dy * dy);\n}" ]
[ "0.78335756", "0.78329134", "0.7832853", "0.7808655", "0.7794204", "0.77934986", "0.77529514", "0.7744814", "0.77084076", "0.77018857", "0.77018857", "0.77018857", "0.77018857", "0.7696726", "0.7696226", "0.7676629", "0.7653338", "0.76246905", "0.7623407", "0.76233125", "0.76175237", "0.76171637", "0.7615315", "0.7611844", "0.7592529", "0.758654", "0.7574116", "0.75673044", "0.7563138", "0.75610584", "0.75576365", "0.75538015", "0.7550358", "0.75489426", "0.75489426", "0.75452673", "0.7543645", "0.7541085", "0.7541085", "0.7540569", "0.75401556", "0.75355726", "0.7527653", "0.7526977", "0.7526951", "0.7525902", "0.75222445", "0.75210273", "0.752043", "0.75179625", "0.7517804", "0.7511778", "0.7510656", "0.75102293", "0.7508099", "0.7503904", "0.7502272", "0.75022364", "0.75003135", "0.74892795", "0.7485591", "0.74845093", "0.7479617", "0.7476411", "0.74690586", "0.7468978", "0.74656427", "0.74572563", "0.74425805", "0.7435652", "0.7426988", "0.7426268", "0.7423675", "0.7418795", "0.7417947", "0.7416636", "0.7413044", "0.7409323", "0.74058914", "0.74041796", "0.7402067", "0.74014807", "0.7400764", "0.73942554", "0.73876804", "0.73736453", "0.73649186", "0.7350763", "0.7350166", "0.7350135", "0.73501086", "0.734936", "0.7348206", "0.7346728", "0.7346576", "0.7342032", "0.7337876", "0.7334632", "0.73059916", "0.73010683", "0.72930413" ]
0.0
-1
Gets the angle between point1 > start and 0,0 > point2 (pi to pi)
static angle(start, end) { var tDot = start.x * end.x + start.y * end.y; var tDet = start.x * end.y - start.y * end.x; var tAngle = -Math.atan2(tDet, tDot); return tAngle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAngleBetweenTwoPoints(x1, y1, x2, y2) {\n return Math.atan2(y2 - y1, x2 - x1);\n }", "calcAngleBetweenTwoPoints(p1,p2){\n return Math.atan2(p2.x - p1.x, p2.z - p1.z)/* * 180 / Math.PI */;\n }", "function getAngle(point1, point2) {\n if (!point2) {\n point2 = { x: point1.x * 2, y: point1.y * 2 };\n }\n var diffX = point2.x - point1.x;\n var diffY = point2.y - point1.y;\n var angle = Math.atan2(diffY, diffX) * DEGREES;\n if (angle < 0) {\n angle += 360;\n }\n return normalizeAngle(angle);\n}", "function findAngle(p0,p1,p2) {\n var b = Math.pow(p1.x-p0.x,2) + Math.pow(p1.y-p0.y,2),\n a = Math.pow(p1.x-p2.x,2) + Math.pow(p1.y-p2.y,2),\n c = Math.pow(p2.x-p0.x,2) + Math.pow(p2.y-p0.y,2),\n angle = Math.acos( (a+b-c) / Math.sqrt(4*a*b) );\n return (angle * (180 / Math.PI))\n}", "getAngleOfLineBetweenPoints() {\n var xDiff = this.point2.getX() - this.point1.getX();\n var yDiff = this.point2.getY() - this.point1.getY();\n return Math.atan2(yDiff, xDiff);\n }", "angleBetween(p1, p2) {\n if (this.equals(p1) || this.equals(p2)) {\n return NaN;\n }\n let angle = this.theta(p2) - this.theta(p1);\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n }", "function pointAngle(x1,y1,x2,y2) {\n return rad2deg(Math.atan2(-(y1-y2), x2-x1))+180;\n}", "function getAngle(x1, y1, x2, y2) {\n return Math.atan2(\n y1-y2,\n x1-x2\n );\n}", "function angle(x1, x2, y1, y2) {\n var dx = x2 - x1;\n var dy = y2 - y1;\n var theta = Math.atan2(dy, dx); // range (-PI, PI]\n return theta;\n}", "function getRotation(point1, startPoint1, point2, startPoint2) {\n // Get start and end angles\n var startAngle = getAngle(startPoint1, startPoint2);\n var angle = getAngle(point1, point2);\n // Calculate angle\n var diff = startAngle - angle;\n if (diff < 0) {\n diff += 360;\n }\n return diff;\n}", "function getAngle(x1,y1, x2,y2){\n let opposite = (y2-y1);\n let adjacent = (x2-x1);\n let angle = parseInt((Math.atan2(opposite, adjacent) * 180 / Math.PI).toFixed(0)) + 180;\n return angle;\n}", "function getAngle(x1, y1, x2, y2) {\n var x = x2 - x1;\n var y = y2 - y1;\n return Math.atan2(y, x) * 180 / Math.PI;\n }", "function calcAngle(x1, x2, y1, y2){\n\t\t\tvar calcAngle = Math.atan2(x1-x2,y1-y2);\n\t\t\treturn calcAngle;\n\t\t}", "function angleOfTwoPoints(initial, intersection, final){\n\tvar largerOccurance = 0;\n\tvar u = subtracted_vertex(initial, intersection);\n\tvar v = subtracted_vertex(final, intersection);\n\t/* console.log(subtracted_vertex(intersection, initial).Length()); */\n\tif(subtracted_vertex(intersection, initial).Length() == 0){\n\t\tinitial = new b2Vec2(intersection.x + 1, intersection.y);\n\t\tu = subtracted_vertex(initial, intersection);\n\t\tv = subtracted_vertex(final, intersection);\n\t}\n\n\tvar dotProduct = (u.x * v.x) + (u.y * v.y);\n\tvar angle_cos = dotProduct / (u.Length() * v.Length());\n\tvar angle = Math.acos(angle_cos) * 180 / Math.PI;\n\tif(u.x * v.y - u.y * v.x < 0)\n\t\tangle = -angle;\n\treturn angle;\n}", "function getAngle(x1, y1, x2, y2) {\n var distY = Math.abs(y2 - y1); //opposite\n var distX = Math.abs(x2 - x1); //adjacent\n var dist = Math.sqrt(distY * distY + distX * distX); //hypotenuse,\n var val = distY / dist;\n var aSine = Math.asin(val);\n return aSine;\n}", "function angle( v1, v2 ) {\n let z = cross( v1, v2 );\n let a = Math.acos( dot( norm( v1 ), norm( v2 ) ) );\n return z > 0 ? a : -a;\n}", "function getAngle(p1, p2, p3) {\n\tlet dxp1 = p3.X - p2.X;\n\tlet dyp1 = p3.Y - p2.Y;\n\tlet dxp0 = p2.X - p1.X;\n\tlet dyp0 = p2.Y - p1.Y;\n\treturn Math.atan(\n\t\t(dxp1 * dyp0 - dxp0 * dyp1) / (dxp1 * dxp0 + dyp1 * dyp0 + 0.01),\n\t); // adding 0.01 to avoid dividing by 0 and getting NaN\n}", "function angleTwoPoints(latlon1, latlon2){\n let r = (Math.atan2((latlon2[1] - latlon1[1]), (latlon2[0] - latlon1[0])) * 180 / Math.PI) * -1;\n if (isNaN(r)){\n return 0;\n }\n return r;\n}", "function angle(v1, v2) {\n var res = cosinedistance(v1, v2);\n res = Math.acos(res);\n return res;\n}", "function anglediff(x1,y1,x2,y2) {\n var rad = cart2rad(x2,y2) - cart2rad(x1,y1);\n return (rad < -Math.PI) ? rad+Math.PI : (rad >= Math.PI) ? rad-Math.PI : rad;\n }", "function get_angle(dir1, dir2){\n var dot = Leap.vec3.dot(dir1, dir2);\n var angle = Math.acos(dot);\n return angle;\n}", "angle(vec1, vec2){\n\t\tlet dot = vec1.dot(vec2);\n\t\tlet res = dot/(vec1.norm()*vec2.norm());\n\t\t//Temp fix?\n\t\tif(res > 1){\n\t\t\tres = 1;\n\t\t}\n\t\telse if(res < -1){\n\t\t\tres = -1;\n\t\t}\n\t\tlet red = Math.acos(res);\n\t\treturn red;\n\t}", "static calcClockwiseAngleBetween(v1, v2) {\n\t\tlet dot = v1.x*v2.x + v1.y*v2.y;\t// dot product between [x1, y1] and [x2, y2]\n\t\tlet det = v1.x*v2.y - v1.y*v2.x; // determinant\n\t\tlet angle = atan2(det, dot);\t\t// atan2(y, x) or atan2(sin, cos)\n\t\tif (angle < 0) {\n\t\t\tangle += TWO_PI;\n\t\t}\n\t\treturn angle;\n\t}", "static angle2pi(start, end) {\n var tTheta = Utils.angle(start, end);\n if (tTheta < 0) {\n tTheta += 2.0 * Math.PI;\n }\n return tTheta;\n }", "function getJoinAngle(direction1, direction2) {\n var delta = direction2 - direction1;\n if (delta > 180) {\n delta -= 360;\n }\n if (delta < -180) {\n delta += 360;\n }\n return delta;\n }", "function getAngle(lat1, lng1, lat2, lng2) {\n var dy = lng2 - lng1;\n var dx = lat2 - lat1;\n var theta = Math.atan2(dy, dx); // range (-PI, PI]\n theta *= 180 / Math.PI; // rads to degs, range (-180, 180]\n //if (theta < 0) theta = 360 + theta; // range [0, 360)\n return theta;\n}", "function direction(start, end){\n var deltaX = end[0]-start[0];\n var deltaY = end[1]-start[1];\n if(deltaX === 0) return deltaY > 0 ? Math.PI/2 : 3*Math.PI/2;\n if(deltaY === 0) return deltaX > 0 ? 0 : Math.PI;\n var atan = Math.atan(deltaY/deltaX);\n if(atan >= 0){\n return deltaY > 0 ? atan : atan + Math.PI;\n }else{\n return deltaY > 0 ? atan + Math.PI : atan + 2*Math.PI;\n }\n}", "function getAngle(x1,y1,x2,y2,radians) {\n\tif (radians == null || radians == false) {\n\t\treturn Math.atan2((y2-y1),(x2-x1))*180/Math.PI;\n\t}\n\treturn Math.atan2((y2-y1),(x2-x1));\n}", "function angle(a, b) {\n var t = Math.atan2(b.y, b.x) - Math.atan2(a.y, a.x);\n if (t < 0) {\n return 2 * Math.PI + t;\n }\n else {\n return t;\n }\n}", "function angle(A1x, A1y, A2x, A2y , B1x, B1y, B2x, B2y) {\n var dAx = A2x - A1x;\n var dAy = A2y - A1y;\n var dBx = B2x - B1x;\n var dBy = B2y - B1y;\n var angle = Math.atan2(dAx * dBy - dAy * dBx, dAx * dBx + dAy * dBy);\n if(angle < 0) {angle = angle * -1;}\n var degree_angle = angle * (180 / Math.PI);\n\n return degree_angle;\n}", "function computeAngleBetween(from, to) {\n return distanceRadians(toRadians(from.lat), toRadians(from.lng),\n toRadians(to.lat), toRadians(to.lng));\n}", "function degreeBetween2Points(x1, y1, x2, y2){\n return Math.atan2(y2-y1, x2-x1) * 180 / Math.PI;\n}", "function angle(a, b) {\n return atan2(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function getAngle() {\n var angleDeg = Math.atan2(loc2Y - loc1Y, loc2X - loc1X) * 180 / Math.PI;\n return angleDeg;\n}", "function getFollowAngle(x1,x2,y1,y2) {\n var angle = Math.atan2(y1-y2,x1-x2);\n angle = (180 / Math.PI) * angle;\n if (angle < 0) angle = 360 + angle;\n return angle; \n }", "GetAngle(First, Next) {\n let dRotateAngle = Math.atan2(Math.abs(First.Latitude - Next.Latitude), Math.abs(First.Longitude - Next.Longitude));\n if (Next.Latitude >= First.Latitude) {\n if (Next.Longitude >= First.Longitude) {\n } else {\n dRotateAngle = Math.PI - dRotateAngle;\n }\n } else {\n if (Next.Longitude >= First.Longitude) {\n dRotateAngle = 2 * Math.PI - dRotateAngle;\n } else {\n dRotateAngle = Math.PI + dRotateAngle;\n }\n }\n dRotateAngle = dRotateAngle * 180 / Math.PI;\n return dRotateAngle;\n\n}", "function findAngle(lat1,lat2,dLon){\t\r\n\tlat1=lat1*Math.PI/180;\r\n\tlat2=lat2*Math.PI/180;\r\n\tdLon=dLon*Math.PI/180;\r\n\tvar y = Math.sin(dLon) * Math.cos(lat2);\r\n\tvar x = Math.cos(lat1)*Math.sin(lat2) - Math.sin(lat1)*Math.cos(lat2)*Math.cos(dLon);\r\n\tvar brng = Math.atan2(y, x)*180/Math.PI;\r\n\treturn brng;\r\n}", "function estimate_angle_between( a, b ){\n\t// More accurate but slower:\n\t// return Math.acos( dot( a, b ) / a.length ) * 180.0/Math.PI;\n\n\t// Looking at example 3.21 in the book seems to suggest the version\n\t// below - but it is HORRIBLY inaccurate. `acos` is usually an\n\t// expensive function call though. The book never makes it clear\n\t// that this is actual calculation.\n\treturn 180.0 * dot( a, b ) / a.length;\n}", "function angle(a, b) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"g\" /* atan2 */])(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function angle(a, b) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"g\" /* atan2 */])(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function yget_angle(x,y,x2,y2)\n{\n\tdx = x2-x;\n\tdy = y2-y;\n\tangle = Math.atan2(dy,dx);\n\t//return -angle;//cool\n\t//angle *= 180 / Math.PI;\n\t\n\treturn angle;\n}", "function angleBetweenVectors(x1,y1,x2,y2) {\n var dotproduct = x1*x2 + y1*y2;\n var d1 = sqrt(x1*x1 + y1*y1);\n var d2 = sqrt(x2*x2 + y2*y2);\n var x = dotproduct/(d1*d2);\n // Rounding errors can cause x to be slightly greater than 1\n if (x > 1) x = 1;\n if (x < -1) x = -1;\n var angle = abs(acos(x));\n var sign = x1*y2 - y1*x2;\n if (sign === abs(sign)) return angle;\n else return -angle;\n }", "function angleDifference(a1, a2){\n return Math.abs((a1 + 180 - a2) % 360 - 180);\n}", "function calculateAngle(startPosition, endPosition)\n\t\t{\n\t\t\tlet xDisplacement = endPosition.x - startPosition.x,\n\t\t\t\tyDisplacement = endPosition.y - startPosition.y,\n\t\t\t\tangle;\n\t\t\t\n\t\t\tif(yDisplacement === 0)\n\t\t\t\tangle = (xDisplacement >= 0) ? 0 : 180;\n\t\t\telse if(xDisplacement === 0)\n\t\t\t\tangle = (yDisplacement > 0) ? 90 : -90;\n\t\t\telse\n\t\t\t\tangle = ((xDisplacement < 0) ? 180 : 0) + Math.atan(yDisplacement / xDisplacement) * 180 / Math.PI;\n\t\t\t\n\t\t\treturn angle;\n\t\t} // end calculateAngle()", "function computeAcuteAngle(d1, d2) {\n if (d1 > 90 || d1 < 0) {\n\tthrow (\"Degree one is an invalid degree\");\n }\n \n if (d2 > 90 || d2 < 0) {\n\tthrow (\"Degree two is an invalid degree\");\n }\n \n var diff = 0;\n if (d2 > d1) {\n\tdiff = d2 - d1;\n } else if (d1 > d2) {\n\tdiff = d1 - d2;\n }\n return diff;\n}", "function getAngle(center, point) {\n var x = point.x - center.x;\n var y = point.y - center.y;\n if (x == 0) return (y > 0) ? 180 : 0;\n var a = Math.atan(y / x) * 180 / Math.PI;\n a = (x > 0) ? a + 90 : a + 270;\n return a;\n}", "function Get_AngleFromPoint(point)\n{\n\t//calculate angle\n\tvar angle = Math.ceil(Math.atan(Math.abs(point.y) / Math.abs(point.x)) * (180 / Math.PI));\n\t//quad 1 or 4\n\tif (point.x > 0)\n\t{\n\t\t//quad 1 if negative y\n\t\tangle = point.y < 0 ? 90 - angle : 90 + angle;\n\t}\n\telse\n\t{\n\t\t//quad 2 if negative y\n\t\tangle = point.y < 0 ? 270 + angle : 270 - angle;\n\t}\n\t//finally ignore 360\n\tangle = angle % 360;\n\t//return angle\n\treturn angle;\n}", "function computeRotation(point1, point2) {\n var radians = Math.PI / 2 - Math.atan2(-(point2[1] - point1[1]), point2[0] - point1[0]);\n return normalizeRadians(radians);\n}", "function atan2(y, x) {\n\t var ax = Math.abs(x);\n\t var ay = Math.abs(y);\n\t //var a = (ax > ay) ? ay / ax : ax / ay;\n\t var a = Math.min(ax, ay) / Math.max(ax, ay);\n\t var s = a * a;\n\t var r = ((-0.0464964749 * s + 0.15931422) * s - 0.327622764) * s * a + a;\n\t if (ay > ax) r = 1.57079637 - r;\n\t if (x < 0) r = 3.14159274 - r;\n\t if (y < 0) r = -r;\n\t return r;\n\t }", "function m_angleRad(a, b)\n{\n return Math.atan2(a.x - b.x, a.y - b.y);\n}", "static AngleBetween(v0, v1) {\n v0.normalizeTo(Vector3D.__vtor3Stv0);\n v1.normalizeTo(Vector3D.__vtor3Stv1);\n return Math.acos(Vector3D.__vtor3Stv0.dot(Vector3D.__vtor3Stv1)) * MathConst_1.default.MATH_180_OVER_PI;\n }", "function getArcDirection(startAngle, endAngle) {\n\tvar startAngleMod = startAngle % (2 * Math.PI);\n\tvar endAngleMod = endAngle % (2 * Math.PI);\n\tvar diffAngle = Math.max(startAngleMod, endAngleMod) - Math.min(startAngleMod, endAngleMod);\n\n\tif (startAngleMod > endAngleMod){\n\t\treturn (diffAngle < Math.PI);\n\t}\n\telse if (startAngleMod < endAngleMod){\n\t\treturn !(diffAngle < Math.PI);\n\t}\n\telse{\n\t\t//PROBLEM\n\t}\n}", "_getAngleDifference(angle1, angle2) {\n const phi = Math.abs(angle2 - angle1) % 360,\n distance = phi > 180 ? 360 - phi : phi;\n\n return distance;\n }", "function getAnglesDif(angle1, angle2) {\n return 180 - Math.abs(Math.abs(angle1 - angle2) - 180);\n }", "function calcAngle (x, y){\n var theta = -Math.atan2(x,y);\n theta *= 180 / Math.PI;\n return Math.round(theta + 180);\n }", "function calcAngle (x, y){\n var theta = -Math.atan2(x,y);\n theta *= 180 / Math.PI;\n return Math.round(theta + 180);\n }", "angleBetween(vector) \r\n {\r\n var dotmagmag = this.dot(vector) / (this.mag() * vector.mag()); // Dot Product divided by magnitude multiplication\r\n var angle = Math.acos(Math.min(1, Math.max(-1, dotmagmag))); // Snap values between -1 and 1\r\n\r\n if (N.functions.degreesToRadians !== undefined)\r\n return N.functions.degreesToRadians(angle);\r\n return angle;\r\n }", "function getAngle(initPt,termPt){\r\n var x = termPt.x - initPt.x;\r\n var y = termPt.y - initPt.y;\r\n var l = Math.sqrt(x ** 2 + y **2);\r\n var co = x / l;\r\n var angle;\r\n\r\n if ( y > 0) {angle = Math.acos(co) * (180 / Math.PI)} else {angle = 360 - Math.acos(co) * (180 / Math.PI)}\r\n\r\n //flip the angle upon x-axis, because coords has y-axis inverted.\r\n angle = 360 - angle;\r\n\r\n return angle;\r\n}", "function angleDifference(from, to){\r\n let difference = to - from;\r\n while (difference < -180) difference += 360;\r\n while (difference > 180) difference -= 360;\r\n return difference;\r\n}", "function getRad(p1, p2) {\n return Math.atan2(p2[1] - p1[1], p2[0] - p1[0]);\n}", "function angle(a, b) {\n let dx = a.ox - b.ox;\n let dy = b.oy - a.oy;\n return Math.atan2(dx, dy);\n }", "function getAngle(obj1, obj2) {\n // angle in radians\n var angleRadians = Math.atan2(obj2.y - obj1.y, obj2.x - obj1.x);\n // angle in degrees\n var angleDeg = (Math.atan2(obj2.y - obj1.y, obj2.x - obj1.x) * 180 / Math.PI);\n return angleDeg;\n }", "angle () {\n \treturn Math.atan2(this.y,this.x );\n }", "function getAngleToRotate(pointA, pointB) {\n if(pointA[0] == pointB[0]) {\n return 90;\n } else {\n return Math.atan((pointB[1] - pointA[1]) / (pointB[0] - pointA[0])) / Math.PI * 180;\n }\n}", "getAngle(/* point */ ...args) {\n return toDegrees(this.getAngleInRadians(...args));\n }", "function findAngle(line) {\n var angle1 = Math.atan2(line.y0 - line.y1, line.x0 - line.x1);\n angle1 = angle1 * 180 / Math.PI;\n if (angle1 < 0)\n angle1 = -angle1;\n angle2 = 180 - angle1;\n writeAngle1(canvas, angle1.toFixed(0).toString());\n writeAngle2(canvas, angle2.toFixed(0).toString());\n}", "function angleCoordinatesXY(c1, c2) {\n let [x1, y1] = c1;\n let [x2, y2] = c2;\n let d_x = x2 - x1;\n let d_y = y2 - y1;\n let angle = Math.atan(d_y / d_x);\n let a;\n a = angle < 0 ? angle + Math.PI : angle;\n return Math.PI - a;\n}", "function getPointAngle(points, skip) {\n var unitAngle = 360 / points;\n var centerAngle = unitAngle * (skip + 1);\n return 180 - centerAngle;\n }", "function bearing(lat1, lon1, lat2, lon2) {\r\n lat1r = deg2rad(lat1);\r\n lon1r = deg2rad(lon1);\r\n lat2r = deg2rad(lat2);\r\n lon2r = deg2rad(lon2);\r\n\r\n y = Math.sin(lon2r - lon1r) * Math.cos(lat2r);\r\n x = Math.cos(lat1r) * Math.sin(lat2r) - Math.sin(lat1r) * Math.cos(lat2r) * Math.cos(lon2r - lon1r);\r\n\r\n //return rad2deg(Math.atan2(y, x));\r\n brng = rad2deg(Math.atan2(y, x));\r\n if (brng < 0)\r\n brng += 360;\r\n return brng;\r\n}", "getRotation() {\n var x1 = this.point1.getX();\n var y1 = this.point1.getY();\n var x2 = this.point2.getX();\n var y2 = this.point2.getY();\n return Math.atan2(x2 - x1, y2 - y1);\n }", "function getAngle(x,y){\n let alphaDegree;\n\n // Calcolo il raggio di una circonferenza che passa per il punto (x,y) in cui avviene il click\n // del mouse da parte dell'utente.\n let r = Math.sqrt(Math.pow(x,2) + Math.pow(y,2));\n\n // Durante la creazione degli assi avviene una minima traslazione per poterli\n // mettere in una posizione visivamente più bella. Il calcolo di angleError ha lo scopo di \n // risolvere questo margine di errore.\n let angleError = (angles[angles.length-1] * (180/Math.PI)) - 360; \n if (x>0) {\n alphaDegree = (Math.acos((x)/r)*(180/Math.PI));\n if (y>0) {\n alphaDegree = 90 - alphaDegree;\n }\n if (y<0) {\n alphaDegree += 90;\n }\n }\n if (x<0) {\n alphaDegree = (Math.asin((y)/r)*(180/Math.PI));\n if (y>0) {\n alphaDegree += 270;\n }\n if (y<0) {\n alphaDegree += 270\n }\n }\n alphaRad = (alphaDegree + angleError)*(Math.PI/180);\n\n return alphaRad;\n}", "static getAngleFacing(coords1, coords2) {\n\t\tconst dx = coords2[X] - coords1[X];\n\t\tconst dy = coords2[Y] - coords1[Y];\n\t\treturn Math.atan2(dy, dx);\n\t}", "function calcAngle(x, y) {\n var angle = 0;\n if (x === 0) {\n if (y !== 0) { angle = HALF_PI; }\n } else {\n angle = Math.atan(y/x);\n }\n return (x > 0) ? angle : angle+PI;\n}", "function clockwiseAngleFrom(a, b) {\n while (a < 0) {\n a += Math.PI * 2;\n }\n while (b < 0) {\n b += Math.PI * 2;\n }\n var a_b = a - b;\n if (a_b >= 0)\n return a_b;\n return Math.PI * 2 - (b - a);\n}", "function BearingBetweenCoordinates(lat1, lon1, lat2, lon2 ) {\n\tvar y = Math.sin(lon2-lon1) * Math.cos(lat2);\n\tvar x = Math.cos(lat1)*Math.sin(lat2) - Math.sin(lat1)*Math.cos(lat2)*Math.cos(lon2-lon1);\n\tvar brng = toDeg(Math.atan2(y, x));\n\n\t// Result is between -180 ... + 180. To change to 0 ... 360 use \"(brng+360)%360\"\n\tbrng = (brng+360)%360;\n\n\treturn brng;\n}", "vectorAngle(p) {\n const zero = new Point(0, 0);\n return zero.angleBetween(this, p);\n }", "function getAngle(obj, obj2) {\n return Math.atan2(\n obj.north - obj2.north,\n obj.east - obj2.east\n );\n}", "function getBearing(pt1Lat, pt1Lon, pt2Lat, pt2Lon) {\r\n\r\n\t\r\n\tvar xComponent = pt2Lat-pt1Lat;\r\n\tvar yComponent = pt2Lon-pt1Lon;\t\r\n\r\n\tif (xComponent == 0 && yComponent == 0) {\r\n\t\treturn -999;\r\n\t}; \r\n\t//\r\n\tvar dLon = yComponent*Math.PI/180;\r\n\tvar tmpY = Math.sin(dLon) * Math.cos(pt2Lat);\r\n\tvar tmpX = Math.cos(pt1Lat)*Math.sin(pt2Lat) - Math.sin(pt1Lat)*Math.cos(pt2Lat)*Math.cos(dLon);\r\n\tvar bearingRad = Math.atan2(tmpY, tmpX);\t\r\n\tvar bearingDeg = bearingRad*180/Math.PI;\r\n\t//alert(\"GPS and bearing : (\" + pt1Lat + \" : \" + pt1Lon + \") , (\" + pt2Lat + \" : \" + pt2Lon + \") : \" + bearingDeg + \" : \" + ans2 );\r\n\t//return bearingDeg;\r\n\t\r\n\t// new method\r\n\t\r\n\tvar tmp1 = Math.sin(pt1Lon-pt2Lon)*Math.cos(pt2Lat);\r\n\tvar tmp2 = Math.cos(pt1Lat)*Math.sin(pt2Lat)-Math.sin(pt1Lat)*Math.cos(pt2Lat)*Math.cos(pt1Lon-pt2Lon);\r\n\tvar tmp3 = Math.atan2(tmp1,tmp2);\r\n\tvar ans2 = tmp3 % Math.PI;\r\n\treturn ans2*180/Math.PI;\r\n\r\n\t\r\n\t//*/\r\n\t\r\n}//end method */", "function bearing(lat1,lng1,lat2,lng2) {\n var dLon = _toRad(lng2-lng1);\n var y = Math.sin(dLon) * Math.cos(_toRad(lat2));\n var x = Math.cos(_toRad(lat1))*Math.sin(_toRad(lat2)) - Math.sin(_toRad(lat1))*Math.cos(_toRad(lat2))*Math.cos(dLon);\n var brng = _toDeg(Math.atan2(y, x));\n return ((brng + 360) % 360);\n}", "function IndicativeAngle(points) {\n\tvar c = Centroid(points);\n\treturn Math.atan2(c.Y - points[0].Y, c.X - points[0].X);\n}", "angle() {\n return Math.atan2(this.y, this.x);\n }", "function angle(a, b, c) {\n\t\t\tvar x1 = points[a].x-points[b].x, y1 = points[a].y-points[b].y,\n\t\t\t x2 = points[c].x-points[b].x, y2 = points[c].y-points[b].y;\n\t\t\treturn -Math.atan2(x1*y2-y1*x2, x1*x2+y1*y2);\n\t\t}", "function getRad$1(pos1, pos2) {\n var distX = pos2[0] - pos1[0];\n var distY = pos2[1] - pos1[1];\n var rad = Math.atan2(distY, distX);\n return rad >= 0 ? rad : rad + Math.PI * 2;\n }", "_getAngleByCoordinate(x, y) {\n function isInRange(from, to, angle) {\n while (to < from) to += 360;\n\n while (angle < from) angle += 360;\n\n return angle >= from && angle <= to;\n }\n\n const that = this,\n center = that._measurements.center,\n angleRadians = Math.atan2(y - center.y, x - center.x);\n let angleDeg = -1 * angleRadians * 180 / Math.PI;\n\n if (angleDeg < 0) {\n angleDeg += 360;\n }\n\n that._actualAngle = angleDeg;\n\n if (that._normalizedStartAngle !== that.endAngle && !isInRange(that._normalizedStartAngle, that.endAngle, angleDeg)) {\n // coordinates are outside the range\n if (that._numericProcessor._getAngleDifference(angleDeg, that._normalizedStartAngle) <=\n that._numericProcessor._getAngleDifference(angleDeg, that.endAngle)) {\n angleDeg = that._normalizedStartAngle;\n that._outsideStart = true;\n that._outsideEnd = false;\n }\n else {\n angleDeg = that.endAngle;\n that._outsideEnd = true;\n that._outsideStart = false;\n }\n\n that._outsideRange = true;\n }\n else {\n that._outsideRange = false;\n that._outsideStart = false;\n that._outsideEnd = false;\n }\n\n return angleDeg;\n }", "function radiansBetweenThreePoints(v1, v2, v3) {\n\n\n\tlet v4 = BisectorVector(v1, v2, v3);\n\n\tlet adjacent = v2.distanceTo(v4);\n\tlet oppose = v1.distanceTo(v4);\n\n\n\t/*\n\tIt's very important to check which one of the two segments here is\n\tof the hypotenuse length, as the BisectorVector constructor place its\n\tvector a the middle point between the end of the shortest segment of\n\tthe angle, and a point of equal length on the longest segment.\n\t*/\n\n\tlet hypotenuse;\n\tlet v2v1 = v2.distanceTo(v1);\n\tlet v2v3 = v2.distanceTo(v3);\n\n\tif (v2v1 < v2v3) {\n\t\thypotenuse = v2v1;\n\t} else {\n\t\thypotenuse = v2v3;\n\t};\n\n\tlet angle = 2 * ( Math.acos(adjacent / hypotenuse) );\n\n\treturn angle ;\n\n}", "function computeArcThroughTwoPoints(p1, p2){\n var aDen = (p1.x * p2.y - p1.y * p2.x), bDen = aDen;\n var sq1 = p1.squaredNorm(), sq2 = p2.squaredNorm();\n // Fall back to a straight line\n if (aDen == 0)\n return {\n x: 0,\n y: 0,\n ratio: -1\n };\n \n var a = (p1.y * sq2 - p2.y * sq1 + p1.y - p2.y) / aDen;\n var b = (p2.x * sq1 - p1.x * sq2 + p2.x - p1.x) / bDen;\n var x = -a / 2;\n var y = -b / 2;\n var squaredRatio = (a * a + b * b) / 4 - 1;\n // Fall back to a straight line\n if (squaredRatio < 0)\n return {\n x: 0,\n y: 0,\n ratio: -1\n };\n var ratio = Math.sqrt(squaredRatio);\n var out = {\n x: x,\n y: y,\n ratio: ratio > 1000? -1 : ratio,\n a: a,\n b: b\n };\n \n return out;\n }", "function getAngle(c, p) {\n var dy = p.y - c.y;\n var dx = p.x - c.x;\n\n if (floatEq(dy, 0.0))\n return dx > 0 ? 0 : Math.PI;\n if (floatEq(dx, 0.0))\n return dy > 0 ? Math.PI/2 : 3 * Math.PI/2;\n\n if (dy > 0 && dx > 0)\n return Math.atan(dy/dx);\n if (dy > 0 && dx < 0)\n return Math.PI - Math.atan(-dy/dx);\n if (dy < 0 && dx > 0)\n return 2*Math.PI - Math.atan(-dy/dx);\n if (dy < 0 && dx < 0)\n return Math.PI + Math.atan(dy/dx);\n}", "function getAngle(a, b, projection) {\n\t a = projection(a.loc);\n\t b = projection(b.loc);\n\t return Math.atan2(b[1] - a[1], b[0] - a[0]);\n\t}", "function cheapatan2delta(from,to) {\n\tvar dx = to.x - from.x;\n\tvar dy = to.y - from.y;\n\tvar ax = Math.abs(dx);\n\tvar ay = Math.abs(dy);\n\tvar ang = dy/(ax+ay);\n\tif (dx<0)\n\t\tang = 2 - ang;\n\telse if (dy<0)\n\t\tang = 4 + ang;\n\treturn ang;\n}", "static directionAngleX(p) {\n // First quadrant(and positive x, y axes, origin)\n if (p.x >= 0 && p.y >= 0) {\n return Math.atan2(p.y, p.x);\n }\n // Second quadrant\n if (p.x < 0 && p.y > 0) {\n return (Math.PI - Math.atan2(p.y, -p.x));\n }\n // Third quadrant(and negative x, y axes)\n if (p.x <= 0 && p.y <= 0) {\n return (Math.PI + Math.atan2(-p.y, -p.x));\n }\n // Forth quadrant\n if (p.x > 0 && p.y < 0) {\n return (1.5 * Math.PI + Math.atan2(-p.y, p.x));\n }\n return 0;\n }", "function vectorRotationAngle(from, to) {\n let a = Math.atan2(vectorCrossProduct(from, to), vectorDotProduct(from, to));\n if (a < 0)\n a += Math.PI * 2;\n return a;\n}", "function calculateRotation(pos_start, pos_move)\n {\n if(pos_start.length == 2 && pos_move.length == 2) {\n var x, y;\n\n x = pos_start[0].x - pos_start[1].x;\n y = pos_start[0].y - pos_start[1].y;\n var start_rotation = Math.atan2(y, x) * 180 / Math.PI;\n\n x = pos_move[0].x - pos_move[1].x;\n y = pos_move[0].y - pos_move[1].y;\n var end_rotation = Math.atan2(y, x) * 180 / Math.PI;\n\n return end_rotation - start_rotation;\n }\n\n return 0;\n }", "function getRad2(p1, o, p2){\n var v1 = normalize(p1, o);\n var v2 = normalize(p2, o);\n return Math.acos(v1[0] * v2[0] + v1[1] * v2[1]);\n}", "function angle(d) {\n var a = (d.startAngle + d.endAngle) * 90 / Math.PI - 90;\n return a > 90 ? a - 180 : a;\n }", "function angle(d) {\n var a = (d.startAngle + d.endAngle) * 90 / Math.PI - 90;\n return a > 90 ? a - 180 : a;\n }", "function angle_line_at_point(line_geo, point_on_line) {\n var search = Extent(Buffer(point_on_line, .01, \"meter\"));\n var segment = Clip(line_geo, search)[\"paths\"][0];\n\n // Get angle of line using the start and end vertex\n return Angle(segment[0], segment[-1])\n}", "function angleDiff(angle1,angle2,directions){\n if (angle1>=directions/2){\n angle1 = angle1-directions;\n }\n if (angle2>=directions/2){\n angle2 = angle2-directions;\n }\n \n diff = angle2-angle1; \n \n if (diff<-directions/2){\n diff += directions;\n }\n if (diff>directions/2){\n diff -= directions;\n }\n \n return diff;\n}", "function getRad2(p1, o, p2){\n var t = Math.abs(getRad(o, p2) - getRad(o, p1));\n return t>Math.PI ? Math.PI*2 - t : t;\n}", "function getAnglePnt(p, idx1, dir){\n if(!dir) dir = -1;\n var idx2 = parseIdx(p, idx1 + dir);\n if(idx2 < 0) return null; // at the end of a open-path\n var p2 = p[idx2];\n with(p[idx1]){\n if(dir<0){\n if(arrEq(leftDirection, anchor)){\n if(arrEq(p2.anchor, anchor)) return [];\n if(arrEq(p2.anchor, p2.rightDirection)\n || arrEq(p2.rightDirection, anchor)) return p2.anchor;\n else return p2.rightDirection;\n } else {\n return leftDirection;\n }\n } else {\n if(arrEq(anchor, rightDirection)){\n if(arrEq(anchor, p2.anchor)) return [];\n if(arrEq(p2.anchor, p2.leftDirection)\n || arrEq(anchor, p2.leftDirection)) return p2.anchor;\n else return p2.leftDirection;\n } else {\n return rightDirection;\n }\n }\n }\n}", "function angle(d) {\n var a = (d.startAngle + d.endAngle) * 90 / Math.PI - 90;\n return a > 90 ? a - 180 : a;\n }" ]
[ "0.78749985", "0.7868608", "0.7783751", "0.77587044", "0.7610646", "0.7539805", "0.748276", "0.7428623", "0.7391279", "0.7373959", "0.73377174", "0.72937673", "0.7275923", "0.7248865", "0.7173254", "0.71696496", "0.7150021", "0.7071336", "0.70330447", "0.701369", "0.70014757", "0.69926894", "0.69422406", "0.6914309", "0.6891605", "0.68624187", "0.6849932", "0.6841759", "0.67871094", "0.6772345", "0.675403", "0.6752167", "0.675085", "0.6732415", "0.6716115", "0.67043954", "0.6667349", "0.66488147", "0.6640429", "0.6640429", "0.66363037", "0.6616951", "0.6589639", "0.6587192", "0.6565861", "0.6523547", "0.65227145", "0.6497886", "0.6493747", "0.6488177", "0.64851296", "0.6403802", "0.63901454", "0.6370411", "0.6345884", "0.6345884", "0.6332836", "0.6321772", "0.631798", "0.63152176", "0.63120204", "0.63059247", "0.6294174", "0.6292941", "0.6289122", "0.6260018", "0.6256046", "0.6248348", "0.6244751", "0.6214261", "0.62113804", "0.6211341", "0.6202858", "0.6202238", "0.6200633", "0.6189671", "0.6185048", "0.616161", "0.61563927", "0.6155414", "0.6139145", "0.6121425", "0.61201024", "0.6117999", "0.61125267", "0.6109617", "0.6099081", "0.6094772", "0.60778683", "0.60727197", "0.6069984", "0.6065856", "0.60583603", "0.6057036", "0.6057036", "0.6043487", "0.6032284", "0.60210377", "0.60197735", "0.6016305" ]
0.7884451
0
shifts angle to be 0 to 2pi
static angle2pi(start, end) { var tTheta = Utils.angle(start, end); if (tTheta < 0) { tTheta += 2.0 * Math.PI; } return tTheta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function angle(n) {\n\treturn (n - 2) * 180\n}", "function angleMod(angle) {\n return (angle % 360 + 540) % 360 - 180;\n}", "function angleMod(angle) {\n\twhile (angle < 0) { angle += Math.PI * 2 }\n\twhile (angle >= Math.PI * 2) { angle -= Math.PI * 2 }\n\treturn angle\n}", "function angleMod(angle) {\n\t return (angle % 360 + 540) % 360 - 180;\n\t}", "function angleMod(angle) {\n\t return (angle % 360 + 540) % 360 - 180;\n\t}", "function convertAngle(angle) {\n if (angle < 0) \n angle += 2 * Math.PI;\n angle = 2 * Math.PI - angle;\n angle += Math.PI / 2;\n if (angle >= 2 * Math.PI)\n angle -= 2 * Math.PI;\n return angle;\n}", "function fixangle(a)\n{\n return a - 360.0 * (Math.floor(a / 360.0));\n}", "static simplifyAngle(angle) {\n return angle % (2*Math.PI);\n }", "rotate(angle) {\n this.angle += angle % (2 * Math.PI)\n }", "function rads (x) { \n return Math.PI * x / 180; \n }", "static get TWO_ANGLE_ROTATION() { return 0; }", "oscillate() {\n this.angle += 0.02;\n }", "function toZeroPIRange(angle) {\n angle = angle % (2 * Math.PI);\n if (angle > Math.PI) {\n angle = 2 * Math.PI - angle;\n }\n return angle;\n }", "angle() {\n return this.get(Math.PI * 2, true)\n }", "function calculateNiceAngle(angle) {\n\t\tangle = deg(angle);\n\t\tangle = 360 - angle;\n\t\tangle -= 270;\n\t\tangle = angle % 360;\n\t\tif(angle < 0) angle += 360;\n\n\t\treturn angle;\n\t}", "function calcAngle (x, y){\n var theta = -Math.atan2(x,y);\n theta *= 180 / Math.PI;\n return Math.round(theta + 180);\n }", "function calcAngle (x, y){\n var theta = -Math.atan2(x,y);\n theta *= 180 / Math.PI;\n return Math.round(theta + 180);\n }", "function convertAngle(c,x) { return c._useDegrees ? (x*pi/180) : x; }", "function secondsToAngle(seconds) {\n return (360 / 60) * seconds;\n}", "function secondsToAngle(seconds) {\n return (360 / 60) * seconds;\n}", "function secondsToAngle(seconds) {\n return (360 / 60) * seconds;\n}", "function normalizeAngle(angle) {\n if (angle === undefined) {\n return undefined;\n }\n\n return (angle % 360 + 360) % 360;\n }", "function yget_angle(x,y,x2,y2)\n{\n\tdx = x2-x;\n\tdy = y2-y;\n\tangle = Math.atan2(dy,dx);\n\t//return -angle;//cool\n\t//angle *= 180 / Math.PI;\n\t\n\treturn angle;\n}", "function clockwiseAngleFrom(a, b) {\n while (a < 0) {\n a += Math.PI * 2;\n }\n while (b < 0) {\n b += Math.PI * 2;\n }\n var a_b = a - b;\n if (a_b >= 0)\n return a_b;\n return Math.PI * 2 - (b - a);\n}", "function getActualAngle(angle) {\n if (angle >= 0 && angle < 270) {\n // rotates the 0 point to where player craft renders\n return angle + 90;\n } else if (angle >= 270) {\n return angle - 270;\n } else if (angle >= -90 && angle < 0) {\n return 360 + angle - 270;\n } else {\n return 360 + angle + 90;\n }\n }", "function clampAngle(angle) {\n\twhile (angle > pi*2) {\n\t\tangle -= pi*2;\n\t}\n\twhile (angle < 0) {\n\t\tangle += pi*2;\n\t}\n\treturn angle;\n}", "function getActualAngle(angle) {\r\n if (angle >= 0 && angle < 270) {\r\n // rotates the 0 point to where player craft renders\r\n return angle + 90;\r\n } else if (angle >= 270) {\r\n return angle - 270;\r\n } else if (angle >= -90 && angle < 0) {\r\n return 360 + angle - 270;\r\n } else {\r\n return 360 + angle + 90;\r\n }\r\n }", "_normalizeAngle(angle) {\n angle = angle % 360;\n\n if (angle < 0) {\n angle += 360;\n }\n\n return angle;\n }", "function wrap360(degrees) { return (degrees%360+360) % 360; }", "rotateAntiClockwise()\r\n {\r\n this.rotation -= Math.PI / 180;\r\n }", "function getActualAngle(angle) {\n if (angle >= 0 && angle < 270) {\n // rotates the 0 point to where player craft renders\n return angle + 90;\n } else if (angle >= 270) {\n return angle - 270;\n } else if (angle >= -90 && angle < 0) {\n return 360 + angle - 270;\n } else {\n return 360 + angle;\n }\n}", "function getActualAngle(angle) {\r\n if (angle >= 0 && angle < 270) {\r\n // rotates the 0 point to where player craft renders\r\n return angle + 90;\r\n } else if (angle >= 270) {\r\n return angle - 270;\r\n } else if (angle >= -90 && angle < 0) {\r\n return 360 + angle - 270;\r\n } else {\r\n return 360 + angle;\r\n }\r\n}", "calculateAngle() {\n const normalizedData = this.gameOver ? ((this.time / -this.terminalVelocity) / 2) + 0.5 : this.time / -this.terminalVelocity;\n this.angle = this.gameOver ? normalizedData * -135 + 90 : normalizedData * -45;\n }", "angle () {\n \treturn Math.atan2(this.y,this.x );\n }", "function angle(v) {\n return Math.atan2(-v[1], v[0]) * 180 / Math.PI;\n}", "function normalize360(angle) {\n let result = 0;\n if (typeof angle === 'number') {\n result = angle % 360;\n if (result < 0) {\n result += 360\n }\n }\n return result;\n}", "function torad(angleInDegrees) {\n return Math.PI * angleInDegrees / 180;\n}", "function minutesToAngle(minutes) {\n return (360 / 60) * minutes;\n}", "function minutesToAngle(minutes) {\n return (360 / 60) * minutes;\n}", "function getTurnAngle() {\n if(up) {\n if(right) {\n return 45;\n }\n if(left) {\n return 315;\n }\n }\n \n if(down) {\n if(right) {\n return 135;\n }\n if(left) {\n return 225;\n }\n \n return 180;\n }\n \n if(right) {\n return 90;\n }\n if(left) {\n return 270;\n }\n \n return 0;\n }", "function AngleToOff(angle){\n var cycle = 1000/freq;\n var tickTime = 1000 * cycle / 4096;\n var ms = (angle * 100 / 9) + 500;\n return ms / tickTime;\n}", "rotate(rotateAmount) {\n }", "function cleanAngle(angle) {\n\treturn angle - 2 * Math.PI * Math.trunc(angle * i2pi + Math.sign(angle) * .5);\n}", "set secondaryUVHardAngle(value) {}", "function toCompass(angle){\n return -1*angle;\n }", "function toCompass(angle){\n return -1*angle;\n }", "function degrees(xx) {return (180.0 * xx / Math.PI);}", "rotateClockwise()\r\n {\r\n this.rotation += Math.PI / 180;\r\n }", "function rtd(r)\n{\n return (r * 180.0) / Math.PI;\n}", "static borderPI(radians) {\n const offset = Math.PI\n radians += offset\n const sign = Math.sign(radians)\n return radians -\n (sign * Math.floor(Math.abs(radians) / (2 * Math.PI)) * (2 * Math.PI)) -\n offset\n }", "function changeAngle1()\r\n\t\t{\r\n\t\t\tanglePercent = Math.abs((Math.abs(paddle1Y - y) - (paddle1YDimension/2))/(paddle1YDimension/2));\r\n\t\t\tif(anglePercent > 1)\r\n\t\t\t\tanglePercent = 1;\r\n\t\t\talfa = (2*Math.PI/3) * anglePercent; \r\n\t\t\tif (alfa > 2*Math.PI/3)\r\n\t\t\t\talfa = 2*Math.PI/3;\r\n\t\t\tdx = speed*Math.cos(alfa);\r\n\t\t\tif(dy >= 0)\r\n\t\t\t\tdy = speed*Math.sin(alfa);\r\n\t\t\telse\r\n\t\t\t\tdy = -speed*Math.sin(alfa);\r\n\t\t}", "function angleDifference(a1, a2){\n return Math.abs((a1 + 180 - a2) % 360 - 180);\n}", "function yAngle (y, max){\r\n\ty = y*max; // Spread a thinner angle over a larger area.\r\n\ty = (2*y)/sciMonk.Height;\r\n\treturn Math.asin(y);\r\n}", "angle() {\n return Math.atan2(this.y, this.x);\n }", "function angleToScreen(angle) {\n if (angle == 0)\n return 0;\n return Math.PI / 2 - angle;\n}", "function toDegrees(angle){return angle*180/Math.PI}", "function jitterFix(angle){\r\n var fixedAngle = angle;\r\n\r\n if(angle == 0){\r\n fixedAngle = fixedAngle+5;\r\n }else if(angle == 180){\r\n fixedAngle = fixedAngle-5;\r\n }\r\n\r\n return fixedAngle;\r\n}", "function atan2(y, x) {\n\t var ax = Math.abs(x);\n\t var ay = Math.abs(y);\n\t //var a = (ax > ay) ? ay / ax : ax / ay;\n\t var a = Math.min(ax, ay) / Math.max(ax, ay);\n\t var s = a * a;\n\t var r = ((-0.0464964749 * s + 0.15931422) * s - 0.327622764) * s * a + a;\n\t if (ay > ax) r = 1.57079637 - r;\n\t if (x < 0) r = 3.14159274 - r;\n\t if (y < 0) r = -r;\n\t return r;\n\t }", "function angle(a, b) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"g\" /* atan2 */])(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function angle(a, b) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"g\" /* atan2 */])(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function asinDeg(x) {\n return Math.asin(x) * 360.0 / PIx2;\n}", "function innerAngle2(ax, ay, bx, by, cx, cy) {\n var a1 = Math.atan2(ay - by, ax - bx),\n a2 = Math.atan2(cy - by, cx - bx),\n a3 = Math.abs(a1 - a2);\n if (a3 > Math.PI) {\n a3 = 2 * Math.PI - a3;\n }\n return a3;\n }", "function radians(xx) {return (Math.PI * xx / 180.0);}", "_degreeToRadian(angle) {\n return angle * Math.PI / 180;\n }", "function normalize_angle(theta) {\n\tif (theta < 0) { return normalize_angle(theta + 2*Math.PI) }\n\tif (theta >= 2*Math.PI) { return normalize_angle(theta - 2*Math.PI) }\n\treturn theta;\n}", "degreeToRad(angle){\n return Math.PI*angle/180;\n }", "function xAngle( x, max ){\r\n\tx = x*max; // INFO: Spread a thinner angle over a larger area. When max is 0.5 and x is 10, x will be given as 10*0.7 = 0.7\r\n\tx = (2*x)/sciMonk.Width;\r\n\treturn Math.acos(x);\r\n}", "set wristRotationDegree(value) { this._wristRotation = (value / 180.0 * Math.PI); }", "updateAngle () {\n this.angleRadians = (this.data.angle / 180) * Math.PI\n }", "function angle2_0360_by(rotDir, a, b)\n{\n\tvar interpretation = rotationDirectionInterpretation(rotDir),\n\t alpha = angle2_0360(a, b),\n\t alpha_ = interpretation(alpha);\n\treturn mod_0_360(alpha_);\n}", "function torad(degrees) {\n \treturn degrees * Math.PI / 180;\n }", "function calcAngle(x, y) {\n var angle = 0;\n if (x === 0) {\n if (y !== 0) { angle = HALF_PI; }\n } else {\n angle = Math.atan(y/x);\n }\n return (x > 0) ? angle : angle+PI;\n}", "function fixangr(a)\n{\n return a - (2 * Math.PI) * (Math.floor(a / (2 * Math.PI)));\n}", "function determineAngle(angle) {\n\treturn angle * Math.PI / 180;\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n }", "function pseudoAngle(dx, dy) {\n var p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n }", "updateAngleStep() {\n\n\t\tthis.defines.set(\"ANGLE_STEP\", (Math.PI * 2.0 * this.rings / this.samples).toFixed(11));\n\n\t}", "function radians_to_direction(angle) {\n\n if (angle <= (-0.875 * Math.PI) || angle > (0.875 * Math.PI)) {\n return 1;\n }\n else if (angle > (-0.875 * Math.PI) && angle <= (-0.625 * Math.PI)) {\n return 2;\n }\n else if (angle > (-0.625 * Math.PI) && angle <= (-0.375 * Math.PI)) {\n return 3;\n }\n else if (angle > (-0.375 * Math.PI) && angle <= (-0.125 * Math.PI)) {\n return 4;\n } \n else if (angle > (-0.125 * Math.PI) && angle <= (0.125 * Math.PI)) {\n return 5;\n }\n else if (angle > (0.125 * Math.PI) && angle <= (0.375 * Math.PI)) {\n return 6;\n }\n else if (angle > (0.375 * Math.PI) && angle <= (0.625 * Math.PI)) {\n return 7;\n }\n else if (angle > (0.625 * Math.PI) && angle <= (0.875 * Math.PI)) {\n return 0;\n }\n\n}", "function sin(a) {\n return Math.sin(a/360*Math.PI*2);\n}", "function toradians(deg)\n{\n return deg * Math.PI / 180.0;\n}", "function toRadians (angle) {\n if(angle < 0){\n angle = Math.abs(angle);\n }else if(angle>0){\n angle = 180 - angle;\n angle +=180;\n }\n \n angle = angle * (Math.PI / 180);\n return Number((angle).toFixed(2))\n }", "function projectX(x)\n{\n return ((x - 90) / 180 * Math.PI) - (Math.PI/2);\n}", "function projectX(x)\n{\n return ((x - 90) / 180 * Math.PI) - (Math.PI/2);\n}", "function m_angleRad(a, b)\n{\n return Math.atan2(a.x - b.x, a.y - b.y);\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function sin (a) {\n return Math.sin(a / 360 * Math.PI * 2)\n}", "function flip90(angle){\r\n if(angle >= 0){\r\n return 180-angle;\r\n }\r\n else if(angle < 0){\r\n return -180-angle;\r\n }\r\n}", "static angleAxis(degress, axis) {\n \tif (axis.lengthSq() === 0)\n return Quaternion.identity;\n\n \tlet result = Quaternion.identity;\n \tvar radians = degress * degToRad;\n \tradians *= 0.5;\n\n \taxis = axis.normalize();\n \taxis = axis.clone().multiplyScalar( Math.sin(radians) );\n\n \tresult.x = axis.x;\n \tresult.y = axis.y;\n \tresult.z = axis.z;\n \tresult.w = Math.cos(radians);\n\n \treturn result.normalize();\n }", "function rotateSwap(){\n rotFactor *= -1;\n}", "function degToRad(angle)\r\n{\r\n\treturn angle*(Math.PI)/180;\r\n}", "function rad(angle) {\n\treturn ((360 + (angle % 360)) % 360) * Math.PI / 180;\n}", "turnTo(angle) {\n this.CD = angle;\n }", "function angle(a, b) {\n var t = Math.atan2(b.y, b.x) - Math.atan2(a.y, a.x);\n if (t < 0) {\n return 2 * Math.PI + t;\n }\n else {\n return t;\n }\n}", "function angle(a, b) {\n return atan2(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "calculateRotationAngle(dy, dx) {\n let theta = Math.atan2(dy, dx);\n this.angle = theta;\n\n //console.log( \"Angle: \"+ this.angle);\n }", "function angle(d){\n var a=(d.startAngle+ d.endAngle)*90/Math.PI-90;\n return a>90 ? a-180 : a;\n }", "sin() {\n return round(Math.sin((((this.angle + 180) * pi) / 180)), 2);\n }" ]
[ "0.73161286", "0.72989815", "0.72601134", "0.7253099", "0.7253099", "0.7196971", "0.71876895", "0.71613544", "0.6954825", "0.685485", "0.67942953", "0.67721957", "0.6652456", "0.65818274", "0.65807766", "0.6565753", "0.6565753", "0.6526115", "0.652253", "0.652253", "0.652253", "0.65202796", "0.65049976", "0.64938277", "0.64910454", "0.6479469", "0.6468671", "0.64628917", "0.64201045", "0.64099854", "0.64088213", "0.64076", "0.6405129", "0.64005125", "0.6378614", "0.6364151", "0.6344501", "0.63227606", "0.63227606", "0.6290692", "0.6274059", "0.62622875", "0.62599987", "0.6256846", "0.6254504", "0.6254504", "0.62515634", "0.6234758", "0.6224516", "0.6222047", "0.6218659", "0.6200701", "0.61567605", "0.6144047", "0.61363184", "0.6121844", "0.61059016", "0.6095749", "0.6072399", "0.6072399", "0.60719466", "0.6071717", "0.6065475", "0.60615164", "0.60527736", "0.60259956", "0.60190666", "0.60138166", "0.6011729", "0.60000134", "0.5994214", "0.5993819", "0.5993295", "0.5991539", "0.5979666", "0.5969389", "0.5965214", "0.59523505", "0.59502864", "0.594377", "0.5938634", "0.59195435", "0.59195435", "0.591535", "0.5912954", "0.5912954", "0.5912954", "0.5912954", "0.5894229", "0.5880522", "0.5877546", "0.5869868", "0.58662176", "0.58651966", "0.5858115", "0.5850459", "0.58504415", "0.58485246", "0.5844931", "0.58421296" ]
0.63649106
35
shifts angle to be 0 to 2pi
static getCyclicOrder(points, start = undefined) { if (!start) { start = new Vector2(0, 0); } var angles = []; for (var i = 0; i < points.length; i++) { var point = points[i]; var vect = point.clone().sub(start); var radians = Math.atan2(vect.y, vect.x); var degrees = THREEMath.radToDeg(radians); degrees = (degrees > 0) ? degrees : (degrees + 360) % 360; angles.push(degrees); } var indices = Utils.argsort(angles); var sortedAngles = []; var sortedPoints = []; for (i = 0; i < indices.length; i++) { sortedAngles.push(angles[indices[i]]); sortedPoints.push(points[indices[i]]); } return { indices: indices, angles: sortedAngles, points: sortedPoints }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function angle(n) {\n\treturn (n - 2) * 180\n}", "function angleMod(angle) {\n return (angle % 360 + 540) % 360 - 180;\n}", "function angleMod(angle) {\n\twhile (angle < 0) { angle += Math.PI * 2 }\n\twhile (angle >= Math.PI * 2) { angle -= Math.PI * 2 }\n\treturn angle\n}", "function angleMod(angle) {\n\t return (angle % 360 + 540) % 360 - 180;\n\t}", "function angleMod(angle) {\n\t return (angle % 360 + 540) % 360 - 180;\n\t}", "function convertAngle(angle) {\n if (angle < 0) \n angle += 2 * Math.PI;\n angle = 2 * Math.PI - angle;\n angle += Math.PI / 2;\n if (angle >= 2 * Math.PI)\n angle -= 2 * Math.PI;\n return angle;\n}", "function fixangle(a)\n{\n return a - 360.0 * (Math.floor(a / 360.0));\n}", "static simplifyAngle(angle) {\n return angle % (2*Math.PI);\n }", "rotate(angle) {\n this.angle += angle % (2 * Math.PI)\n }", "function rads (x) { \n return Math.PI * x / 180; \n }", "static get TWO_ANGLE_ROTATION() { return 0; }", "oscillate() {\n this.angle += 0.02;\n }", "function toZeroPIRange(angle) {\n angle = angle % (2 * Math.PI);\n if (angle > Math.PI) {\n angle = 2 * Math.PI - angle;\n }\n return angle;\n }", "angle() {\n return this.get(Math.PI * 2, true)\n }", "function calculateNiceAngle(angle) {\n\t\tangle = deg(angle);\n\t\tangle = 360 - angle;\n\t\tangle -= 270;\n\t\tangle = angle % 360;\n\t\tif(angle < 0) angle += 360;\n\n\t\treturn angle;\n\t}", "function calcAngle (x, y){\n var theta = -Math.atan2(x,y);\n theta *= 180 / Math.PI;\n return Math.round(theta + 180);\n }", "function calcAngle (x, y){\n var theta = -Math.atan2(x,y);\n theta *= 180 / Math.PI;\n return Math.round(theta + 180);\n }", "function convertAngle(c,x) { return c._useDegrees ? (x*pi/180) : x; }", "function secondsToAngle(seconds) {\n return (360 / 60) * seconds;\n}", "function secondsToAngle(seconds) {\n return (360 / 60) * seconds;\n}", "function secondsToAngle(seconds) {\n return (360 / 60) * seconds;\n}", "function normalizeAngle(angle) {\n if (angle === undefined) {\n return undefined;\n }\n\n return (angle % 360 + 360) % 360;\n }", "function yget_angle(x,y,x2,y2)\n{\n\tdx = x2-x;\n\tdy = y2-y;\n\tangle = Math.atan2(dy,dx);\n\t//return -angle;//cool\n\t//angle *= 180 / Math.PI;\n\t\n\treturn angle;\n}", "function clockwiseAngleFrom(a, b) {\n while (a < 0) {\n a += Math.PI * 2;\n }\n while (b < 0) {\n b += Math.PI * 2;\n }\n var a_b = a - b;\n if (a_b >= 0)\n return a_b;\n return Math.PI * 2 - (b - a);\n}", "function getActualAngle(angle) {\n if (angle >= 0 && angle < 270) {\n // rotates the 0 point to where player craft renders\n return angle + 90;\n } else if (angle >= 270) {\n return angle - 270;\n } else if (angle >= -90 && angle < 0) {\n return 360 + angle - 270;\n } else {\n return 360 + angle + 90;\n }\n }", "function clampAngle(angle) {\n\twhile (angle > pi*2) {\n\t\tangle -= pi*2;\n\t}\n\twhile (angle < 0) {\n\t\tangle += pi*2;\n\t}\n\treturn angle;\n}", "function getActualAngle(angle) {\r\n if (angle >= 0 && angle < 270) {\r\n // rotates the 0 point to where player craft renders\r\n return angle + 90;\r\n } else if (angle >= 270) {\r\n return angle - 270;\r\n } else if (angle >= -90 && angle < 0) {\r\n return 360 + angle - 270;\r\n } else {\r\n return 360 + angle + 90;\r\n }\r\n }", "_normalizeAngle(angle) {\n angle = angle % 360;\n\n if (angle < 0) {\n angle += 360;\n }\n\n return angle;\n }", "function wrap360(degrees) { return (degrees%360+360) % 360; }", "rotateAntiClockwise()\r\n {\r\n this.rotation -= Math.PI / 180;\r\n }", "function getActualAngle(angle) {\n if (angle >= 0 && angle < 270) {\n // rotates the 0 point to where player craft renders\n return angle + 90;\n } else if (angle >= 270) {\n return angle - 270;\n } else if (angle >= -90 && angle < 0) {\n return 360 + angle - 270;\n } else {\n return 360 + angle;\n }\n}", "function getActualAngle(angle) {\r\n if (angle >= 0 && angle < 270) {\r\n // rotates the 0 point to where player craft renders\r\n return angle + 90;\r\n } else if (angle >= 270) {\r\n return angle - 270;\r\n } else if (angle >= -90 && angle < 0) {\r\n return 360 + angle - 270;\r\n } else {\r\n return 360 + angle;\r\n }\r\n}", "calculateAngle() {\n const normalizedData = this.gameOver ? ((this.time / -this.terminalVelocity) / 2) + 0.5 : this.time / -this.terminalVelocity;\n this.angle = this.gameOver ? normalizedData * -135 + 90 : normalizedData * -45;\n }", "angle () {\n \treturn Math.atan2(this.y,this.x );\n }", "function angle(v) {\n return Math.atan2(-v[1], v[0]) * 180 / Math.PI;\n}", "static angle2pi(start, end) {\n var tTheta = Utils.angle(start, end);\n if (tTheta < 0) {\n tTheta += 2.0 * Math.PI;\n }\n return tTheta;\n }", "function normalize360(angle) {\n let result = 0;\n if (typeof angle === 'number') {\n result = angle % 360;\n if (result < 0) {\n result += 360\n }\n }\n return result;\n}", "function torad(angleInDegrees) {\n return Math.PI * angleInDegrees / 180;\n}", "function minutesToAngle(minutes) {\n return (360 / 60) * minutes;\n}", "function minutesToAngle(minutes) {\n return (360 / 60) * minutes;\n}", "function getTurnAngle() {\n if(up) {\n if(right) {\n return 45;\n }\n if(left) {\n return 315;\n }\n }\n \n if(down) {\n if(right) {\n return 135;\n }\n if(left) {\n return 225;\n }\n \n return 180;\n }\n \n if(right) {\n return 90;\n }\n if(left) {\n return 270;\n }\n \n return 0;\n }", "function AngleToOff(angle){\n var cycle = 1000/freq;\n var tickTime = 1000 * cycle / 4096;\n var ms = (angle * 100 / 9) + 500;\n return ms / tickTime;\n}", "rotate(rotateAmount) {\n }", "function cleanAngle(angle) {\n\treturn angle - 2 * Math.PI * Math.trunc(angle * i2pi + Math.sign(angle) * .5);\n}", "set secondaryUVHardAngle(value) {}", "function toCompass(angle){\n return -1*angle;\n }", "function toCompass(angle){\n return -1*angle;\n }", "function degrees(xx) {return (180.0 * xx / Math.PI);}", "rotateClockwise()\r\n {\r\n this.rotation += Math.PI / 180;\r\n }", "function rtd(r)\n{\n return (r * 180.0) / Math.PI;\n}", "static borderPI(radians) {\n const offset = Math.PI\n radians += offset\n const sign = Math.sign(radians)\n return radians -\n (sign * Math.floor(Math.abs(radians) / (2 * Math.PI)) * (2 * Math.PI)) -\n offset\n }", "function changeAngle1()\r\n\t\t{\r\n\t\t\tanglePercent = Math.abs((Math.abs(paddle1Y - y) - (paddle1YDimension/2))/(paddle1YDimension/2));\r\n\t\t\tif(anglePercent > 1)\r\n\t\t\t\tanglePercent = 1;\r\n\t\t\talfa = (2*Math.PI/3) * anglePercent; \r\n\t\t\tif (alfa > 2*Math.PI/3)\r\n\t\t\t\talfa = 2*Math.PI/3;\r\n\t\t\tdx = speed*Math.cos(alfa);\r\n\t\t\tif(dy >= 0)\r\n\t\t\t\tdy = speed*Math.sin(alfa);\r\n\t\t\telse\r\n\t\t\t\tdy = -speed*Math.sin(alfa);\r\n\t\t}", "function angleDifference(a1, a2){\n return Math.abs((a1 + 180 - a2) % 360 - 180);\n}", "function yAngle (y, max){\r\n\ty = y*max; // Spread a thinner angle over a larger area.\r\n\ty = (2*y)/sciMonk.Height;\r\n\treturn Math.asin(y);\r\n}", "angle() {\n return Math.atan2(this.y, this.x);\n }", "function angleToScreen(angle) {\n if (angle == 0)\n return 0;\n return Math.PI / 2 - angle;\n}", "function toDegrees(angle){return angle*180/Math.PI}", "function jitterFix(angle){\r\n var fixedAngle = angle;\r\n\r\n if(angle == 0){\r\n fixedAngle = fixedAngle+5;\r\n }else if(angle == 180){\r\n fixedAngle = fixedAngle-5;\r\n }\r\n\r\n return fixedAngle;\r\n}", "function atan2(y, x) {\n\t var ax = Math.abs(x);\n\t var ay = Math.abs(y);\n\t //var a = (ax > ay) ? ay / ax : ax / ay;\n\t var a = Math.min(ax, ay) / Math.max(ax, ay);\n\t var s = a * a;\n\t var r = ((-0.0464964749 * s + 0.15931422) * s - 0.327622764) * s * a + a;\n\t if (ay > ax) r = 1.57079637 - r;\n\t if (x < 0) r = 3.14159274 - r;\n\t if (y < 0) r = -r;\n\t return r;\n\t }", "function angle(a, b) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"g\" /* atan2 */])(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function angle(a, b) {\n return Object(__WEBPACK_IMPORTED_MODULE_0__math__[\"g\" /* atan2 */])(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "function asinDeg(x) {\n return Math.asin(x) * 360.0 / PIx2;\n}", "function innerAngle2(ax, ay, bx, by, cx, cy) {\n var a1 = Math.atan2(ay - by, ax - bx),\n a2 = Math.atan2(cy - by, cx - bx),\n a3 = Math.abs(a1 - a2);\n if (a3 > Math.PI) {\n a3 = 2 * Math.PI - a3;\n }\n return a3;\n }", "function radians(xx) {return (Math.PI * xx / 180.0);}", "_degreeToRadian(angle) {\n return angle * Math.PI / 180;\n }", "function normalize_angle(theta) {\n\tif (theta < 0) { return normalize_angle(theta + 2*Math.PI) }\n\tif (theta >= 2*Math.PI) { return normalize_angle(theta - 2*Math.PI) }\n\treturn theta;\n}", "degreeToRad(angle){\n return Math.PI*angle/180;\n }", "function xAngle( x, max ){\r\n\tx = x*max; // INFO: Spread a thinner angle over a larger area. When max is 0.5 and x is 10, x will be given as 10*0.7 = 0.7\r\n\tx = (2*x)/sciMonk.Width;\r\n\treturn Math.acos(x);\r\n}", "set wristRotationDegree(value) { this._wristRotation = (value / 180.0 * Math.PI); }", "updateAngle () {\n this.angleRadians = (this.data.angle / 180) * Math.PI\n }", "function angle2_0360_by(rotDir, a, b)\n{\n\tvar interpretation = rotationDirectionInterpretation(rotDir),\n\t alpha = angle2_0360(a, b),\n\t alpha_ = interpretation(alpha);\n\treturn mod_0_360(alpha_);\n}", "function torad(degrees) {\n \treturn degrees * Math.PI / 180;\n }", "function calcAngle(x, y) {\n var angle = 0;\n if (x === 0) {\n if (y !== 0) { angle = HALF_PI; }\n } else {\n angle = Math.atan(y/x);\n }\n return (x > 0) ? angle : angle+PI;\n}", "function fixangr(a)\n{\n return a - (2 * Math.PI) * (Math.floor(a / (2 * Math.PI)));\n}", "function determineAngle(angle) {\n\treturn angle * Math.PI / 180;\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n }", "function pseudoAngle(dx, dy) {\n var p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n }", "updateAngleStep() {\n\n\t\tthis.defines.set(\"ANGLE_STEP\", (Math.PI * 2.0 * this.rings / this.samples).toFixed(11));\n\n\t}", "function radians_to_direction(angle) {\n\n if (angle <= (-0.875 * Math.PI) || angle > (0.875 * Math.PI)) {\n return 1;\n }\n else if (angle > (-0.875 * Math.PI) && angle <= (-0.625 * Math.PI)) {\n return 2;\n }\n else if (angle > (-0.625 * Math.PI) && angle <= (-0.375 * Math.PI)) {\n return 3;\n }\n else if (angle > (-0.375 * Math.PI) && angle <= (-0.125 * Math.PI)) {\n return 4;\n } \n else if (angle > (-0.125 * Math.PI) && angle <= (0.125 * Math.PI)) {\n return 5;\n }\n else if (angle > (0.125 * Math.PI) && angle <= (0.375 * Math.PI)) {\n return 6;\n }\n else if (angle > (0.375 * Math.PI) && angle <= (0.625 * Math.PI)) {\n return 7;\n }\n else if (angle > (0.625 * Math.PI) && angle <= (0.875 * Math.PI)) {\n return 0;\n }\n\n}", "function sin(a) {\n return Math.sin(a/360*Math.PI*2);\n}", "function toradians(deg)\n{\n return deg * Math.PI / 180.0;\n}", "function toRadians (angle) {\n if(angle < 0){\n angle = Math.abs(angle);\n }else if(angle>0){\n angle = 180 - angle;\n angle +=180;\n }\n \n angle = angle * (Math.PI / 180);\n return Number((angle).toFixed(2))\n }", "function projectX(x)\n{\n return ((x - 90) / 180 * Math.PI) - (Math.PI/2);\n}", "function projectX(x)\n{\n return ((x - 90) / 180 * Math.PI) - (Math.PI/2);\n}", "function m_angleRad(a, b)\n{\n return Math.atan2(a.x - b.x, a.y - b.y);\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function pseudoAngle(dx, dy) {\n const p = dx / (Math.abs(dx) + Math.abs(dy));\n return (dy > 0 ? 3 - p : 1 + p) / 4; // [0..1]\n}", "function sin (a) {\n return Math.sin(a / 360 * Math.PI * 2)\n}", "function flip90(angle){\r\n if(angle >= 0){\r\n return 180-angle;\r\n }\r\n else if(angle < 0){\r\n return -180-angle;\r\n }\r\n}", "static angleAxis(degress, axis) {\n \tif (axis.lengthSq() === 0)\n return Quaternion.identity;\n\n \tlet result = Quaternion.identity;\n \tvar radians = degress * degToRad;\n \tradians *= 0.5;\n\n \taxis = axis.normalize();\n \taxis = axis.clone().multiplyScalar( Math.sin(radians) );\n\n \tresult.x = axis.x;\n \tresult.y = axis.y;\n \tresult.z = axis.z;\n \tresult.w = Math.cos(radians);\n\n \treturn result.normalize();\n }", "function rotateSwap(){\n rotFactor *= -1;\n}", "function degToRad(angle)\r\n{\r\n\treturn angle*(Math.PI)/180;\r\n}", "function rad(angle) {\n\treturn ((360 + (angle % 360)) % 360) * Math.PI / 180;\n}", "turnTo(angle) {\n this.CD = angle;\n }", "function angle(a, b) {\n var t = Math.atan2(b.y, b.x) - Math.atan2(a.y, a.x);\n if (t < 0) {\n return 2 * Math.PI + t;\n }\n else {\n return t;\n }\n}", "function angle(a, b) {\n return atan2(a[0] * b[1] - a[1] * b[0], a[0] * b[0] + a[1] * b[1]);\n}", "calculateRotationAngle(dy, dx) {\n let theta = Math.atan2(dy, dx);\n this.angle = theta;\n\n //console.log( \"Angle: \"+ this.angle);\n }", "function angle(d){\n var a=(d.startAngle+ d.endAngle)*90/Math.PI-90;\n return a>90 ? a-180 : a;\n }", "sin() {\n return round(Math.sin((((this.angle + 180) * pi) / 180)), 2);\n }" ]
[ "0.73161286", "0.72989815", "0.72601134", "0.7253099", "0.7253099", "0.7196971", "0.71876895", "0.71613544", "0.6954825", "0.685485", "0.67942953", "0.67721957", "0.6652456", "0.65818274", "0.65807766", "0.6565753", "0.6565753", "0.6526115", "0.652253", "0.652253", "0.652253", "0.65202796", "0.65049976", "0.64938277", "0.64910454", "0.6479469", "0.6468671", "0.64628917", "0.64201045", "0.64099854", "0.64088213", "0.64076", "0.6405129", "0.64005125", "0.6378614", "0.63649106", "0.6364151", "0.6344501", "0.63227606", "0.63227606", "0.6290692", "0.6274059", "0.62622875", "0.62599987", "0.6256846", "0.6254504", "0.6254504", "0.62515634", "0.6234758", "0.6224516", "0.6222047", "0.6218659", "0.6200701", "0.61567605", "0.6144047", "0.61363184", "0.6121844", "0.61059016", "0.6095749", "0.6072399", "0.6072399", "0.60719466", "0.6071717", "0.6065475", "0.60615164", "0.60527736", "0.60259956", "0.60190666", "0.60138166", "0.6011729", "0.60000134", "0.5994214", "0.5993819", "0.5993295", "0.5991539", "0.5979666", "0.5969389", "0.5965214", "0.59523505", "0.59502864", "0.594377", "0.5938634", "0.59195435", "0.59195435", "0.591535", "0.5912954", "0.5912954", "0.5912954", "0.5912954", "0.5894229", "0.5880522", "0.5877546", "0.5869868", "0.58662176", "0.58651966", "0.5858115", "0.5850459", "0.58504415", "0.58485246", "0.5844931", "0.58421296" ]
0.0
-1
Checks if an array of points is clockwise.
static isClockwise(points) { // make positive let tSubX = Math.min(0, Math.min.apply(null, Utils.map(points, function(p) { return p.x; }))); let tSubY = Math.min(0, Math.min.apply(null, Utils.map(points, function(p) { return p.x; }))); var tNewPoints = Utils.map(points, function(p) { return { x: p.x - tSubX, y: p.y - tSubY }; }); // determine CW/CCW, based on: // http://stackoverflow.com/questions/1165647 var tSum = 0; for (var tI = 0; tI < tNewPoints.length; tI++) { var tC1 = tNewPoints[tI]; var tC2; if (tI === tNewPoints.length - 1) { tC2 = tNewPoints[0]; } else { tC2 = tNewPoints[tI + 1]; } tSum += (tC2.x - tC1.x) * (tC2.y + tC1.y); } return (tSum >= 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clockwise(cmds) {\n let sum = 0;\n for (let i = 0; i < cmds.length - 1; i++) {\n let a = cmds[i];\n let b = cmds[i + 1];\n if (!(a.hasOwnProperty('x') && b.hasOwnProperty('x'))) {\n continue;\n }\n sum += (b.x - a.x) * (b.y + a.y);\n }\n\n return sum < 0;\n}", "function isInShape(coords) {\n if (coords.length < 3)\n return (() => false);\n if (!isClockwise(coords))\n coords.reverse();\n let nbShapes = -1;\n let shapes = [];\n let [coords_prime, index_list] = [];\n while (shapes.length !== nbShapes) {\n nbShapes = shapes.length;\n [coords_prime, index_list] = removeInflexionPoint(coords);\n shapes = shapes.concat(shapeRemoveList(coords, index_list));\n coords = coords_prime;\n }\n\n /* Function : remove points that make the shape concave\n * \n * @param array an array of coordinates\n * @return an array of coordinates\n */\n function removeInflexionPoint(array) {\n const N = array.length;\n let a = array[N - 1];\n let b = array[0];\n let c = array[1];\n const result = [];\n const index_inf = [];\n for(let i = 0; i < N; i++) {\n const p = (a[1] - b[1]) / (c[1] - b[1]);\n if (b[1] > c[1] && a[0] - b[0] >= p * (c[0] - b[0]) || !(b[1] > c[1]) && a[0] - b[0] <= p * (c[0] - b[0]))\n result.push(b);\n else\n index_inf.push(i);\n a = b;\n b = c;\n c = array[(i + 2) % N];\n } \n return [result, index_inf];\n }\n\n /* Function is clockwise\n * \n * @param array an array of coordinates\n * @return a boolean according to the \"orientation\" of points\n */\n function isClockwise(array) {\n const N = array.length;\n let min = 0;\n for(let k = 1; k < N; k++) {\n if (array[k][0] < array[min][0] || array[k][0] === array[min][0] && array[k][1] < array[min][1])\n min = k;\n }\n const p1 = (array[(min + 1) % N][1] - array[min][1]) / (array[(min + 1) % N][0] - array[min][0]);\n const p2 = (array[(N + min - 1) % N][1] - array[min][1]) / (array[(N + min - 1) % N][0] - array[min][0]);\n if (p1 < p2)\n return true;\n else \n return false;\n }\n \n /* Function shapes that should be remove\n * \n * @param array an array of coordinates\n * @param index an array of indexes\n * @return a list of shapes\n */\n function shapeRemoveList(array, index) {\n const shapeList = [];\n const N = array.length;\n const N_ind = index.length;\n for(let n = 0, nbPoints; n < N_ind; n += nbPoints) {\n const ind = index[n];\n const shapeToRemove = [array[(N + ind - 1) % N], array[ind], array[(ind + 1) % N]];\n for(nbPoints = 1; index[(n + nbPoints) % N_ind] === (ind + nbPoints) % N; nbPoints++)\n shapeToRemove.push(array[(ind + 1 + nbPoints) % N]);\n shapeList.push(shapeToRemove.reverse());\n }\n return shapeList;\n }\n\n /* Function : is in convex shape\n *\n * @param array an array of coordinates\n * @param (x, y) coordinates of the pixel\n * @return a boolean telling if the pixel is in the shape\n */\n function convex(array, x, y) {\n const N = array.length;\n function convexREC(n) {\n if (n === N)\n return true;\n const p = (y - array[n][1]) / (array[(n + 1) % N][1] - array[n][1]);\n if (array[n][1] > array[(n + 1) % N][1]) {\n if (x - array[n][0] >= p * (array[(n + 1) % N][0] - array[n][0]))\n return convexREC(n + 1);\n else \n return false;\n } \n else if (x - array[n][0] <= p * (array[(n + 1) % N][0] - array[n][0]))\n return convexREC(n + 1);\n else \n return false;\n }\n return convexREC(0);\n }\n \n /* Function : remove concave part of the shape\n * \n * @param shapeList an array of shapes\n * @param (x, y) coordinates of the pixel\n * @return a boolean telling if the pixel is NOT in one of the concave part\n */\n function removeConcave(shapeList, x, y) {\n const N = shapeList.length;\n function removeConcaveREC(n) {\n if (n === N)\n return true;\n else if (!convex(shapeList[n], x, y))\n return removeConcaveREC(n + 1);\n else \n return false;\n }\n return removeConcaveREC(0);\n }\n\n /* Function test shape, compute tests that determine the belonging to the shape\n *\n * @param (x, y) coordinates of the pixel\n * @return a boolean corresponding to the belonging to the shape\n */\n return function testShape(x, y) {\n if (convex(coords_prime, x, y) && removeConcave(shapes, x, y))\n return true;\n else\n return false;\n };\n}", "function arePointsColinear(points, tolerance) {\r\n if (points.shape.length !== 2 || points.shape[1] !== 2) {\r\n throw new Error('points should be an array of points in 2D coord');\r\n }\r\n let x0 = points.getN(0, 0);\r\n let y0 = points.getN(0, 1);\r\n let xn = points.getN(points.length - 1, 0);\r\n let yn = points.getN(points.length - 1, 1);\r\n let A = yn - y0;\r\n let B = xn - x0;\r\n for (let i = 1; i < points.length - 1; i++) {\r\n let x = points.getN(i, 0);\r\n let y = points.getN(i, 1);\r\n // From the equation of the line of the form\r\n // y-mx-c = 0\r\n let value = y - (A / B) * x - (y0 - (A / B) * x0);\r\n if (!common_1.iszero(value, tolerance)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}", "isAngleInSweep(angle) { return this.isRadiansInSweep(angle.radians); }", "isRadiansInSweep(radians) {\n // quick out for simple inside ...\n const delta0 = radians - this._radians0;\n const delta1 = radians - this._radians1;\n if (delta0 * delta1 <= 0.0)\n return true;\n return this.radiansToPositivePeriodicFraction(radians) <= 1.0;\n }", "get isConvex() {\n const { _coords } = this\n const numCoords = _coords.length\n\n if (numCoords < 6) return true\n else {\n for (let i = 0; i < numCoords; i += 2) {\n if (\n !this.isConvexTriangle(\n _coords[i],\n _coords[i + 1],\n _coords[(i + 2) % numCoords],\n _coords[(i + 3) % numCoords],\n _coords[(i + 4) % numCoords],\n _coords[(i + 5) % numCoords]\n )\n ) {\n return false\n }\n }\n }\n\n return true\n }", "IsConvex()\n {\n\n let foundNegative = false;\n let foundPositive = false;\n for (let i = 0; i < this.vertices.length; i++)\n {\n // get 3 adjacent vertices\n let a = this.vertices[i];\n let b = this.vertices[(i + 1) % this.vertices.length];\n let c = this.vertices[(i + 2) % this.vertices.length];\n\n Vector.Cross();\n\n // if 1st pair, establish \n\n }\n }", "function isConvex(pts, righthanded){\n // 'pts' is an [x,y] pair\n // 'righthanded' is a boolean\n if (typeof(righthanded) === 'undefined') righthanded = true;\n if (pts.length != 3) throw new Error(\"This function requires an array of three points [x,y]\");\n var d = (pts[1][0] - pts[0][0]) * (pts[2][1] - pts[0][1]) - (pts[1][1] - pts[0][1]) * (pts[2][0] - pts[0][0]);\n return (d >= 0) == righthanded;\n}", "function in_ccw_order(a, b, c) {\n return (triangle_area(a, b, c) > 0);\n }", "function isCCW(face, vertices) {\r\n // Compute relative position of consecutive vertices of the face\r\n // as a sequence of vectors.\r\n var vectors = [];\r\n var p0 = vertices[face[face.length - 1]];\r\n var p1 = vertices[face[0]];\r\n var vector = [p1[0] - p0[0], p1[1] - p0[1]];\r\n vectors.push(vector);\r\n for (var i = 0; i + 1 < face.length; i++) {\r\n p0 = vertices[face[i]];\r\n p1 = vertices[face[i + 1]];\r\n vector = [p1[0] - p0[0], p1[1] - p0[1]];\r\n vectors.push(vector);\r\n }\r\n\r\n // Duplicate the first vector at the end,\r\n // to make the for-loop simpler.\r\n vectors.push([vectors[0][0], vectors[0][1]]);\r\n\r\n // Add the consecutive orientation (angle) changes.\r\n var angle_sum = 0;\r\n for (var i = 0; i + 1 < vectors.length; i++) {\r\n var u = vectors[i];\r\n var v = vectors[i + 1];\r\n angle_sum += angle(u, v);\r\n }\r\n // face is a closed polygon, hence angle_sum == 2*PI or -2*PI.\r\n\r\n if (angle_sum > 0)\r\n return true; // Overall positive (CCW) angle change\r\n else\r\n return false; // Overall negative (CW) angle change\r\n}", "function checkOrientation(orientation,x,y){\n for (let i of directions){\n if (i.orientation == orientation){\n if( x+i.xcor <=9 && x+i.xcor >=0 && y+i.ycor <=9 && y+i.ycor >= 0){\n if (myArray[x+i.xcor][y+i.ycor] === 0 || myArray[x+i.xcor][y+i.ycor] === 2){\n return [[x+i.xcor],[y+i.ycor]]\n }\n } \n }\n }\n return false;\n}", "function ringIsClockwise(ringToTest) {\n var total = 0,i = 0;\n var rLength = ringToTest.length;\n var pt1 = ringToTest[i];\n var pt2;\n for (i; i < rLength - 1; i++) {\n pt2 = ringToTest[i + 1];\n total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1]);\n pt1 = pt2;\n }\n return (total >= 0);\n }", "function canRotateClockwise() {\n var grid = null;\n var checkRow = 0;\n var checkColumn = 0;\n for(grid of GameData.activePiece.getClockwise()) {\n checkRow = GameData.row + grid.getRow();\n checkColumn = correctColumn(GameData.column + grid.getColumn());\n if(checkRow >= GameData.mainPlayField.getFieldHeight()) {\n return false;\n }\n if(GameData.mainPlayField.getBlockType(checkRow, checkColumn) !== 0) {\n return false;\n }\n }\n return true;\n}", "function checkDiag(curArray, posArray) {\n for (var iter = 0; iter < curArray.length; iter++) {\n for (var i = 0; i < posArray.length; i++) {\n if (\n ((posArray[i][0] === curArray[iter][0] + 1) &&\n (posArray[i][1] === curArray[iter][1] - 1)) ||\n ((posArray[i][0] === curArray[iter][0] - 1) &&\n (posArray[i][1] === curArray[iter][1] + 1)) ||\n ((posArray[i][0] === curArray[iter][0] - 1) &&\n (posArray[i][1] === curArray[iter][1] - 1)) ||\n ((posArray[i][0] === curArray[iter][0] + 1) &&\n (posArray[i][1] === curArray[iter][1] + 1))\n ) {\n\n return true;\n }\n }\n }\n\n return false;\n\n}", "function ringIsClockwise (ringToTest) {\n\t var total = 0;\n\t var i = 0;\n\t var rLength = ringToTest.length;\n\t var pt1 = ringToTest[i];\n\t var pt2;\n\t for (i; i < rLength - 1; i++) {\n\t pt2 = ringToTest[i + 1];\n\t total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1]);\n\t pt1 = pt2;\n\t }\n\t return (total >= 0);\n\t}", "function ringIsClockwise (ringToTest) {\n var total = 0;\n var i = 0;\n var rLength = ringToTest.length;\n var pt1 = ringToTest[i];\n var pt2;\n for (i; i < rLength - 1; i++) {\n pt2 = ringToTest[i + 1];\n total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1]);\n pt1 = pt2;\n }\n return (total >= 0);\n}", "function counterClockwise(point1,point2,point3){\n var slope_1_2 = (point3.y - point1.y) * (point2.x - point1.x);\n var slope_1_3 = (point2.y - point1.y) * (point3.x - point1.x);\n return(slope_1_2 > slope_1_3);\n }", "function ringIsClockwise (ringToTest) {\n var total = 0\n var i = 0\n var rLength = ringToTest.length\n var pt1 = ringToTest[i]\n var pt2\n for (i; i < rLength - 1; i++) {\n pt2 = ringToTest[i + 1]\n total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1])\n pt1 = pt2\n }\n return (total >= 0)\n}", "get isSimple() {\n const { _coords } = this\n const numCoords = _coords.length\n if (numCoords <= 6) return true\n\n for (let i = 0; i < numCoords; i += 2) {\n const ax = _coords[i]\n const ay = _coords[i + 1]\n const bx = _coords[(i + 2) % numCoords]\n const by = _coords[(i + 3) % numCoords]\n const endJ = i + numCoords - 2\n\n for (let j = i + 4; j < endJ; j += 2) {\n const cx = _coords[j % numCoords]\n const cy = _coords[(j + 1) % numCoords]\n const dx = _coords[(j + 2) % numCoords]\n const dy = _coords[(j + 3) % numCoords]\n\n if (this.areVectorsIntersecting(ax, ay, bx, by, cx, cy, dx, dy))\n return false\n }\n }\n\n return true\n }", "function ringIsClockwise(ringToTest) {\n var total = 0;\n var i = 0;\n var rLength = ringToTest.length;\n var pt1 = ringToTest[i];\n var pt2 = undefined;\n for (i; i < rLength - 1; i++) {\n pt2 = ringToTest[i + 1];\n total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1]);\n pt1 = pt2;\n }\n return total >= 0;\n}", "function ringIsClockwise(ringToTest) {\n let total = 0, i = 0, pt1 = ringToTest[i], pt2;\n const rLength = ringToTest.length;\n for (i; i < rLength - 1; i++) {\n pt2 = ringToTest[i + 1];\n total += (pt2[0] - pt1[0]) * (pt2[1] + pt1[1]);\n pt1 = pt2;\n }\n return (total >= 0);\n}", "function isPolystripe( coords ) {\n var baseline = $(coords).siblings('.Baseline');\n if ( ! $(coords).hasClass('Coords') ||\n baseline.length === 0 ||\n baseline[0].points.length*2 !== coords.points.length )\n return false;\n var n, m, prevbase, prevabove, prevbelow;\n baseline = baseline[0].points;\n coords = coords.points;\n for ( n = 0; n < baseline.length; n++ ) {\n m = coords.length-1-n;\n\n /// Check points are colinear ///\n if ( ! pointInSegment( coords[n], coords[m], baseline[n] ) )\n return false;\n\n /// Check lines are parallel ///\n if ( n > 0 ) {\n prevbase = Point2f(baseline[n-1]).subtract(baseline[n]).unit();\n prevabove = Point2f(coords[n-1]).subtract(coords[n]).unit();\n prevbelow = Point2f(coords[m+1]).subtract(coords[m]).unit();\n if ( Math.abs(1-Math.abs(prevabove.dot(prevbase))) > 1e-4 ||\n Math.abs(1-Math.abs(prevbelow.dot(prevbase))) > 1e-4 )\n return false;\n }\n\n /// Check stripe extremes perpendicular to baseline ///\n if ( n === 0 || n === baseline.length-1 ) {\n var\n base = n > 0 ? prevbase : Point2f(baseline[1]).subtract(baseline[0]).unit(),\n extr = Point2f(coords[n]).subtract(coords[m]).unit();\n if ( base.dot(extr) > 1e-4 )\n return false;\n }\n }\n\n var\n offup = Point2f(baseline[0]).subtract(coords[0]).norm(),\n offdown = Point2f(baseline[0]).subtract(coords[coords.length-1]).norm();\n return [ offup+offdown, offdown/(offup+offdown) ];\n }", "function checkDiagonal(position){\n //for position array, we are comparing change in index with change in value\n for(var i = 0; i < position.length; i++){\n for(var j = i + 1; j < position.length; j++){\n //i is the first piece, j are the ones after\n if (j - i == Math.abs(position[j] - position[i])) {\n return false;\n }\n }\n }\n return true;\n}", "isDiagonal() {\n return Math.abs(this.x) === Math.abs(this.y);\n }", "function isCrossing(i, k){\n\t\n\tif ( i == k || i == k + 1 || i == k - 1){\n\t\treturn false;\n\t}\n\t\n\t\n\tvar path1 = [pointarray[i].LatLng, pointarray[i + 1].LatLng, pointarray[k].LatLng];\n\tvar path2 = [pointarray[i].LatLng, pointarray[i + 1].LatLng, pointarray[k + 1].LatLng];\n\tvar path3 = [pointarray[k].LatLng, pointarray[k + 1].LatLng, pointarray[i].LatLng];\n\tvar path4 = [pointarray[k].LatLng, pointarray[k + 1].LatLng, pointarray[i + 1].LatLng];\n\t\n\tvar area1 = google.maps.geometry.spherical.computeSignedArea(path1);\n\tvar area2 = google.maps.geometry.spherical.computeSignedArea(path2);\n\n\tvar area3 = google.maps.geometry.spherical.computeSignedArea(path3);\n\tvar area4 = google.maps.geometry.spherical.computeSignedArea(path4);\n\tvar s1 = area1 * area2; var s2 = area3 * area4;\n\t\n\tif ((s1 < 0) && (s2 < 0))\n\t{\n\t\t// exclude some pathological cases\n\t\t// otherwise rounding errors in computeSignedArea can lead\n\t\t// two wrong results\n\t\tif (s1 < -1 && s2 < -1){\n\t\t\treturn true;\n\t\t} \n\t}\n\t\n\treturn false;\n}", "function inTriangle(arr){\n var c1 = crossProduct(arr[0], findPoint, arr[1]);\n var c2 = crossProduct(arr[1], findPoint, arr[2]);\n var c3 = crossProduct(arr[2], findPoint, arr[0]);\n if(c1*c2 >= 0 && c2*c3 >= 0 && c3*c1 >= 0){\n return true;\n }else{\n return false;\n }\n}", "isProperEdge(index) {\n const extents = this.extents;\n const nextIdx = (index + 1) % this.points.length;\n const curr = this.points[index];\n const next = this.points[nextIdx];\n if (this.clippedPointIndices !== undefined) {\n if (curr.x !== next.x && curr.y !== next.y) {\n // `curr` and `next` must be connected with a line\n // because they don't form a vertical or horizontal lines.\n return true;\n }\n const currAtEdge = curr.x % this.extents === 0 || curr.y % this.extents === 0;\n if (!currAtEdge) {\n // the points are connected with a line\n // because at least one of the points is not on\n // the tile boundary.\n return true;\n }\n const nextAtEdge = next.x % this.extents === 0 || next.y % this.extents === 0;\n if (!nextAtEdge) {\n // the points are connected with a line\n // because at least one of the points is not on\n // the tile boundary.\n return true;\n }\n const currWasClipped = this.clippedPointIndices.has(index);\n const nextWasClipped = this.clippedPointIndices.has(nextIdx);\n return !currWasClipped && !nextWasClipped;\n }\n return !((curr.x <= 0 && next.x <= 0) ||\n (curr.x >= extents && next.x >= extents) ||\n (curr.y <= 0 && next.y <= 0) ||\n (curr.y >= extents && next.y >= extents));\n }", "function isCCW() {\n if (area2D(_model.points, _model.points.count) < 0) {\n return false;\n } else {\n return true;\n }\n}", "function getShapeDirection(points) {\n var center = getCenterPoint(points);\n var pos1Rad = getRad$1(center, points[0]);\n var pos2Rad = getRad$1(center, points[1]);\n return pos1Rad < pos2Rad && pos2Rad - pos1Rad < Math.PI || pos1Rad > pos2Rad && pos2Rad - pos1Rad < -Math.PI ? 1 : -1;\n }", "ascendingDiagonalCheck() {\n for (let i = 3; i < this._ROW; i++) {\n for (let j = 0; j < this._COLUMN - 3; j++) {\n this._cellValue = this._grid[i][j];\n if (this._cellValue.color == COLOR.WHITE) {\n this._draw = false;\n }\n if (this._cellValue.color != COLOR.WHITE &&\n this._grid[i - 1][j + 1].color == this._cellValue.color &&\n this._grid[i - 2][j + 2].color == this._cellValue.color &&\n this._grid[i - 3][j + 3].color == this._cellValue.color) {\n /**\n * Ascending diagonal check pass\n */\n this._i = i;\n this._j = j;\n this._WIN_X = 1;\n this._WIN_Y = -1;\n return true;\n }\n }\n }\n return false;\n }", "function canRotateCounterClockwise() {\n var grid = null;\n var checkRow = 0;\n var checkColumn = 0;\n for(grid of GameData.activePiece.getCounterClockwise()) {\n checkRow = GameData.row + grid.getRow();\n checkColumn = correctColumn(GameData.column + grid.getColumn());\n if(checkRow >= GameData.mainPlayField.getFieldHeight()) {\n return false;\n }\n if(GameData.mainPlayField.getBlockType(checkRow, checkColumn) !== 0) {\n return false;\n }\n }\n return true;\n}", "function isStraight(cards) {\n cards = [...new Set(cards)];\n const cards1 = cards.sort((a, b) => a - b);\n const cards2 = cards.map((x) => (x == 14 ? 1 : x)).sort((a, b) => a - b);\n for (let j = 0; j < cards.length - 4; j++)\n if (\n [cards1, cards2].some((cards) =>\n [j + 1, j + 2, j + 3, j + 4].every((i) => cards[i] - cards[i - 1] == 1)\n )\n )\n return true;\n return false;\n}", "canRotate(activePiece, dir) {\n if (!activePiece) {\n return false;\n }\n return !activePiece\n .rotate(dir)\n .getCoords()\n .some(coord => {\n this.logger.info(coord);\n return this.hasCollision(coord);\n });\n }", "function didWinInDirection(pieces, startRow, startCol, dirX, dirY) {\n\tvar count = 1;\n\n\t// look in the x, y direction\n\tvar r = startRow + dirX;\n\tvar c = startCol + dirY;\n\n\twhile (pieceIsMine(r, c, pieces)) {\n\t\tcount++;\n\t\tr += dirX;\n\t\tc += dirY;\n\t}\n\n\t// look in the opposite direction\n\tr = startRow - dirX;\n\tc = startCol - dirY;\n\n\twhile (pieceIsMine(r, c, pieces)) {\n\t\tcount++;\n\t\tr -= dirX;\n\t\tc -= dirY;\n\t}\n\n\treturn count == 5;\n}", "isInTriangle(x1, y1, x2, y2, x3, y3, x, y){\r\n var l1 = ((y2-y3)*(x-x3)+(x3-x2)*(y-y3)) / ((y2-y3)*(x1-x3)+(x3-x2)*(y1-y3));\r\n var l2 = ((y3-y1)*(x-x3)+(x1-x3)*(y-y3)) / ((y2-y3)*(x1-x3)+(x3-x2)*(y1-y3));\r\n var l3 = 1 - l1 - l2;\r\n return (l1 >= 0 && l1 <= 1 && l2 >= 0 && l2 <= 1 && l3 >= 0 && l3 <= 1);\r\n }", "static isConvexTriangle(ax, ay, bx, by, cx, cy) {\n // dot product of [the normal of (a->b)] and (b->c) must be positive\n return (ay - by) * (cx - bx) + (bx - ax) * (cy - by) >= 0\n }", "static is_home_angles(angle_array){\n for(let i = 0; i < 5; i++){\n if(angle_array[i] !== 0) { return false }\n }\n return true\n }", "function checkDirection (currentPoint, point) {\n let alpha = (point.alpha - currentPoint.alpha > 1.8 * Math.PI ? \n point.alpha + ALPHA_DIRECTION * 2 * Math.PI :\n point.alpha),\n diffR = currentPoint.radius - point.radius,\n diffA = alpha - currentPoint.alpha,\n curDirR = currentPoint.direction.radius,\n curDirA = currentPoint.direction.alpha,\n candDirR = point.direction.radius,\n candDirA = point.direction.alpha;\n\n if (currentPoint.alpha - point.alpha > 1.8 * Math.PI) return false;\n\n return diffR * curDirR >= 0 && diffA * curDirA >= 0 &&\n diffR * candDirR >= 0 && diffA * candDirA >= 0;\n}", "function isAxisAligned( elem ) {\n if ( typeof elem === 'undefined' ||\n typeof elem.points === 'undefined' )\n return false;\n var\n ispolygon = $(elem).is('polygon'),\n pts = elem.points,\n N = pts.numberOfItems;\n if ( ispolygon && elem.points.numberOfItems % 2 !== 0 )\n return false;\n for ( var n=N-(ispolygon?1:2); n>=0; n-- )\n if ( ! ( pts[n].x === pts[(n+1)%N].x || pts[n].y === pts[(n+1)%N].y ) )\n return false;\n return true;\n }", "function isConnectedXY (polygonA, polygonB) {\n if (polygonA[0] instanceof Array) polygonA=polygonA[0]; //this takes care of the fact that jsclip will return inner array\n if (polygonB[0] instanceof Array) polygonB=polygonB[0];\n for (var y = 0; y < polygonA.length; y++) { //compare points\n\tfor (var z=0; z< polygonB.length; z++) {\n\t //IMPORTANT. rounding to two decimal places b/c of errors with matching points\n\t var aX = polygonA[y].X.toFixed(0),//rounded to zero decimals b/c that's what jsclipperdoes\n\t\tbX = polygonB[z].X.toFixed(0),\n\t\taY = polygonA[y].Y.toFixed(0),\n\t\tbY = polygonB[z].Y.toFixed(0);\n\t polygonA[y].X = +aX;\n\t polygonB[z].X = +bX;\n\t polygonA[y].Y = +aY;\n\t polygonB[z].Y = +bY;\n\t // reassigning rounded point values in polygons for future use\n\t if (aX===bX && aY===bY) //points match\n\t\treturn true;\n\t}\n }\n return false;\n}", "static isPointInPoly (poly, pt) {\n for (var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i)\n ((poly[i].z <= pt.z && pt.z < poly[j].z) || (poly[j].z <= pt.z && pt.z < poly[i].z)) && (pt.x < (poly[j].x - poly[i].x) * (pt.z - poly[i].z) / (poly[j].z - poly[i].z) + poly[i].x) && (c = !c);\n return c;\n }", "function rotated(n) {\n return [5, 6, 7, 8].indexOf(n) > -1;\n}", "function rotated(n) {\n return [5, 6, 7, 8].indexOf(n) > -1;\n}", "function checkAdjacentCells(x,y){\n for (let i of directions){\n if( x+i.xcor <=9 && x+i.xcor >=0 && y+i.ycor <=9 && y+i.ycor >= 0){\n if (myArray[x+i.xcor][y+i.ycor] === 0 || myArray[x+i.xcor][y+i.ycor] === 2){\n return [[x+i.xcor],[y+i.ycor]]\n }\n } \n }\n return false;\n}", "function isTriangle(angle1, angle2, angle3) {\n const angles = angle1 + angle2 + angle3;\n\n return angles === 180;\n\n}", "function balancePoint(arr){\n for (var i = 1; i < arr.length; i++){\n var left = 0;\n var right = 0;\n for (var leftidx = 0; leftidx < i; leftidx++){\n left += arr[leftidx];\n }\n for (var rightidx = i; rightidx < arr.length; rightidx++){\n right += arr[rightidx];\n }\n if (left == right){\n return true;\n }\n }\n return false;\n}", "descendingDiagonalCheck() {\n for (let i = 3; i < this._ROW; i++) {\n for (let j = 3; j < this._COLUMN; j++) {\n this._cellValue = this._grid[i][j];\n if (this._cellValue.color == COLOR.WHITE) {\n this._draw = false;\n }\n if (this._cellValue.color != COLOR.WHITE &&\n this._grid[i - 1][j - 1].color == this._cellValue.color &&\n this._grid[i - 2][j - 2].color == this._cellValue.color &&\n this._grid[i - 3][j - 3].color == this._cellValue.color) {\n /**\n * Descending diagonal check pass\n */\n this._i = i;\n this._j = j;\n this._WIN_X = -1;\n this._WIN_Y = -1;\n return true;\n }\n }\n }\n return false;\n }", "function checkValidity(ring) {\n if (ring.length < 3) {\n return false;\n //if the last point is the same as the first, it's not a triangle\n } else if (ring.length === 3 &&\n ((ring[2][0] === ring[0][0]) && (ring[2][1] === ring[0][1]))) {\n return false;\n } else {\n return true;\n }\n}", "function checkValidity(ring) {\n if (ring.length < 3) {\n return false;\n //if the last point is the same as the first, it's not a triangle\n } else if (ring.length === 3 &&\n ((ring[2][0] === ring[0][0]) && (ring[2][1] === ring[0][1]))) {\n return false;\n } else {\n return true;\n }\n}", "function checkPortals(direction) {\n for (const portal of portals) {\n if (portal.direction == direction) {\n if (direction == \"right\" || direction == \"left\") {\n if (Circle.y() > portal.rel_up && Circle.y() < portal.rel_low) {\n if (Circle.x() < -Circle.r() || (Circle.x() - Circle.r()) > SVG.w()) {\n Portal.traverse(Circle.x(), Circle.y(), dx, dy, portal);\n dy = 0;\n }\n return true;\n }\n } else {\n if (Circle.x() > portal.rel_up && Circle.x() < portal.rel_low) {\n if (Circle.y() < -Circle.r() || (Circle.y() - Circle.r()) > SVG.h()) {\n Portal.traverse(Circle.x(), Circle.y(), dx, dy, portal);\n dx = 0;\n }\n return true;\n }\n }\n }\n }\n}", "function balancePoint(arr){\n for(let i = 0; i < arr.length; i++){\n let sumLeft=0, sumRight=0;\n for(let j = 0; j < i; j++){\n sumLeft += arr[j];\n } \n for(let j=arr.length - 1; j >= i; j--){\n sumRight += arr[j];\n }\n if(sumLeft === sumRight) return true;\n }\n return false;\n}", "areCoordsWithinTriangle(coord, pointA, pointB, pointC) {\n let calcPointAB = ((coord.y - pointA.y) * (pointB.x - pointA.x) - (coord.x - pointA.x) * (pointB.y - pointA.y));\n let calcPointBC = ((coord.y - pointB.y) * (pointC.x - pointB.x) - (coord.x - pointB.x) * (pointC.y - pointB.y));\n let calcPointCA = ((coord.y - pointC.y) * (pointA.x - pointC.x) - (coord.x - pointC.x) * (pointA.y - pointC.y));\n\n if (calcPointAB * calcPointBC > 0 && calcPointBC * calcPointCA > 0) {\n return true;\n } else {\n return false;\n }\n }", "static isPointInPoly (poly, pt) {\n\t for (var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i)\n\t ((poly[i].z <= pt.z && pt.z < poly[j].z) || (poly[j].z <= pt.z && pt.z < poly[i].z)) && (pt.x < (poly[j].x - poly[i].x) * (pt.z - poly[i].z) / (poly[j].z - poly[i].z) + poly[i].x) && (c = !c);\n\t return c;\n\t }", "function check_for_isolated_squares(squares_pos) {\r\n\t//console.log(squares_pos);\r\n\tlet isolated = false;\r\n\tfor(let i in squares_pos) {\r\n\t\tif(squares_pos[i].x == -1 || squares_pos[i].y == -1) {\r\n\t\t\tconsole.log(\"Isolated square: \" + i);\r\n\t\t\tisolated = true;\r\n\t\t}\r\n\t}\r\n\treturn isolated;\r\n}", "function balancePoint(inputArray) {\n\tfor (let i = 1; i < inputArray.length; i++) {\n\t\tvar leftTotal = 0,\n\t\t\trightTotal = 0;\n\t\tinputArray.slice(0, i).map(element => { leftTotal += element; });\n\t\tinputArray.slice(i).map(element => { rightTotal += element; });\n\t\tif (leftTotal === rightTotal) return true;\n\t}\n\treturn false;\n}", "function checkDiagonal(params) {\r\n\r\n if ( diagonalDirection(params) >= 4 || diagonalDirection(params, true) >= 4 ) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function strikeOFF(arr) {\n if (arr[0][0] + 1 === arr[1][0])\n if (arr[0][1] + 1 === arr[1][1]) markIt(\"leftDiagonal\", arr);\n else {\n if (arr[0][1] - 1 === arr[1][1]) markIt(\"rightDiagonal\", arr);\n else markIt(\"vertical\", arr);\n }\n if (arr[0][1] + 1 === arr[1][1]) markIt(\"horizontal\", arr);\n}", "function arrayCircleCheck(iRows, iCols, iStartRow, iStartCol) {\n var i;\n var j;\n\n\n isMatch = true;\n\n for (i = iStartRow; i < iStartRow + iRows; i++) {\n for (j = iStartCol; j < iStartCol + iCols; j++) {\n if (iValues[i % iMapRows][j % iMapCols] == 0) {\n isMatch = false;\n } \n }\n } \n\n return isMatch;\n}", "function checkValidity(ring) {\n\t if (ring.length < 3) {\n\t return false;\n\t //if the last point is the same as the first, it's not a triangle\n\t } else if (ring.length === 3 &&\n\t ((ring[2][0] === ring[0][0]) && (ring[2][1] === ring[0][1]))) {\n\t return false;\n\t } else {\n\t return true;\n\t }\n\t}", "classifyPointContainment(points, onIsOutside) {\n let allInside = true;\n const onTolerance = onIsOutside ? 1.0e-8 : -1.0e-8;\n const interiorTolerance = 1.0e-8; // Interior tolerance should always be positive\n for (const plane of this._planes) {\n let nOutside = 0;\n for (const point of points) {\n if (plane.evaluatePoint(point) < (plane.interior ? interiorTolerance : onTolerance)) {\n nOutside++;\n allInside = false;\n }\n }\n if (nOutside === points.length)\n return 3 /* StronglyOutside */;\n }\n return allInside ? 1 /* StronglyInside */ : 2 /* Ambiguous */;\n }", "function checkDiagonalFromRightToLeft(){\n for (let i = gameSize-1; i >=0; i--) {\n let array = [i + 1];\n let iCounter = i;\n for (let j = 0; j <=i; j++ ) {\n array[j] = gameField[iCounter][j];\n iCounter--;\n }\n\n if (isContaineWinCombination(array, \"X\")) {\n printWinner();\n return true;\n }\n if (isContaineWinCombination(array, \"0\")) {\n printWinner();\n return true;\n }\n }\n\n for (let i = 0; i < gameSize; i++) {\n let array = [gameSize-i];\n let iCounter = i;\n for (let j = gameSize - 1; j >= i; j--) {\n array[j - i] = gameField[iCounter][j];\n iCounter++;\n }\n\n if (isContaineWinCombination(array, \"X\")) {\n printWinner();\n return true;\n }\n if (isContaineWinCombination(array, \"0\")) {\n printWinner();\n return true;\n }\n }\n\n return false;\n}", "static _isInside(a, b, c, x, y) {\n\t\t// If x, y are on the right side of ab, the point is outside the triangle\n\t\tif (Munsell._cross(x - a[0], y - a[1], b[0] - a[0], b[1] - a[1]) < 0) return false;\n\t\t// If x, y are on the right side of bc, the point is outside the triangle\n\t\tif (Munsell._cross(x - b[0], y - b[1], c[0] - b[0], c[1] - b[1]) < 0) return false;\n\t\t// If x, y are on the right side of ca, the point is outside the triangle\n\t\tif (Munsell._cross(x - c[0], y - c[1], a[0] - c[0], a[1] - c[1]) < 0) return false;\n\t\treturn true;\n\t}", "function isInside(lat, lon, polylineArray) {\n\n let yPoint = lat;\n let xPoint = lon;\n\n let numberOfCrossings = 0;\n // Connects each point in the polylineArray with the subseqent point via a straight line \n for (let i = 0; i < (polylineArray.length - 1); i++) {\n\n let y1 = polylineArray[i][0];\n let x1 = polylineArray[i][1];\n let y2 = polylineArray[i+1][0];\n let x2 = polylineArray[i+1][1];\n\n \n // Testing by drawing line straight up from point, and determining if it crosses current boundary line. Each crossing is added to tally.\n // An odd number of crossing means point is inside bounds, an even number of crossings means point is outside.\n if (!((x1 < xPoint) && (x2 < xPoint)) && // boundary coords aren't both to the left of the point\n !((x1 > xPoint) && (x2 > xPoint)) && // boundary coords aren't both to the right of the point\n !((y1 < yPoint) && (y2 < yPoint))) { // boundary coords aren't both below the point\n\n // If both points are above, crossing occurred.\n if ((y1 > yPoint) && (y2 > yPoint)) {\n\n numberOfCrossings += 1;\n\n // If both points arent above, determine if intersection point is. If so, crossing occurred.\n } else {\n\n let yIntersect = ((y2 - y1) / (x2 - x1)) * (xPoint - x1) + y1; // y = mx + c (straight line equation)\n\n if (yIntersect > yPoint) {\n\n numberOfCrossings += 1;\n\n }\n\n }\n\n }\n\n }\n\n // If number of crossings is odd, then point is inside\n if (numberOfCrossings % 2 == 1) {\n\n return true;\n\n }\n\n return false;\n\n}", "function checkDiagonalFromLeftToRight(){\n for (let i = 0; i < gameSize; i++) {\n let array = [i + 1];\n let iCounter = gameSize - 1 - i;\n for (let j = 0; j < i + 1; j++ ) {\n array[j] = gameField[iCounter][j];\n iCounter++;\n }\n\n if (isContaineWinCombination(array, \"X\")) {\n printWinner();\n return true;\n }\n if (isContaineWinCombination(array, \"0\")) {\n printWinner();\n return true;\n }\n }\n\n for (let i = 0; i < gameSize; i++) {\n let array = [i + 1];\n let iCounter = gameSize - 1 - i;\n for (let j = 0; j < i + 1; j++ ) {\n array[j] = gameField[j][iCounter];\n iCounter++;\n }\n\n if (isContaineWinCombination(array, \"X\")) {\n printWinner();\n return true;\n }\n if (isContaineWinCombination(array, \"0\")) {\n printWinner();\n return true;\n }\n }\n\n return false;\n}", "function isValidDiagonal(data, a, b) {\n return a.next.i !== b.i && a.prev.i !== b.i &&\n !intersectsPolygon(data, a, a.i, b.i) &&\n locallyInside(data, a, b) && locallyInside(data, b, a) &&\n middleInside(data, a, a.i, b.i);\n}", "isClear(positions) {\n const minX = min(positions.map(piece => piece.x));\n const maxX = max(positions.map(piece => piece.x));\n const minY = min(positions.map(piece => piece.y));\n const maxY = max(positions.map(piece => piece.y));\n\n if (minX < 0) { return false; }\n if (minY < 0) { return false; }\n if (maxX >= this.width) { return false; }\n if (maxY >= this.height) { return false; }\n\n return !some(positions, (position, a, b) => {\n if (this.getSquare(position.x, position.y)) { return true; }\n });\n }", "function isCoordinatesArray(obj) {\n\n //If is null or undefined, exit\n if (isNullOrUndefined(obj)) {\n return false;\n }\n\n //If non array, exit\n if (!isArray(obj)) {\n return false;\n }\n\n //Iterate all over elements\n for (var i = 0; i < obj.length; i++) {\n\n //if current element is not coordinate, fail\n if (!isCoordinate(obj[i])) {\n return false;\n }\n }\n\n //Confirm\n return true;\n }", "function isRotatable(x, y,tempCurrentX){\n var result = true;\n for(var xI = 0; xI < x.length; xI++){\n if(((y[xI] + currentY)) < (yGridAmount -1)){\n if(gridCellOccupied[(x[xI] + tempCurrentX)][(y[xI] + currentY)] == true\n && (y[xI] + currentY) < yGridAmount - 1){\n print(\"Cannot rotate: shape\");\n result = false;\n break;\n }\n }\n else{\n print(\"Cannot rotate: ground\");\n result = false;\n break;\n }\n }\n return result;\n}", "function triangleInCircle(tri, c ,r) {\n\tfor(var i = 0; i < 3; i++) {\n\t\tif(pointInCircle(tri[i], c, r)){\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function _getWinding(points) {\n var x1, y1, x2, y2,\n a = 0,\n i, il;\n for (i = 0, il = points.length-3; i < il; i += 2) {\n x1 = points[i];\n y1 = points[i+1];\n x2 = points[i+2];\n y2 = points[i+3];\n a += x1*y2 - x2*y1;\n }\n return (a/2) > 0 ? _clockwise : _counterClockwise;\n }", "function isWinningMove() {\n var hori = count(0, -1) + count(0, 1) - 1;\n var vert = count(-1, 0) + count(1, 0) - 1;\n var diag = count(1, -1) + count(-1, 1) - 1;\n var antd = count(1, 1) + count(-1, -1) - 1;\n // console.log(\"horizontal: \" + hori);\n // console.log(\"vertical: \" + vert);\n // console.log(\"diagonal: \" + diag);\n // console.log(\"anti-diagonal: \" + antd);\n if (hori >=4 | vert >= 4 | diag >= 4 | antd >= 4) {\n return true;\n }\n else return false;\n }", "function checkCoordinates (startCoordinate, direction, length) {\n let noOverlap = true\n for (let i = 0; i < length; i++) {\n let newCoordinate = [startCoordinate[0] + i * direction[0], startCoordinate[1] + i * direction[1]]\n this.reservedCoordinates.forEach(coordinate => {\n let reservedX = coordinate[0]\n let reservedY = coordinate[1]\n let newX = newCoordinate[0]\n let newY = newCoordinate[1]\n if (reservedX === newX && reservedY === newY) {\n noOverlap = false\n } \n })\n }\n return noOverlap\n}", "function checkSolved() {\n var orientation;\n for (i = 0; i < 3; i++) {\n for (j = 0; j < 3; j++) {\n orientation = cubeState[0][0][0][3];\n for (x = -1; x < 2; x++) {\n for (y = -1; y < 2; y++) {\n for (z = -1; z < 2; z++) {\n if (cubeState[x+1][y+1][z+1][3][i][j] !== orientation[i][j]) {\n if (x === 0 && z === 0) {\n if (cubeState[x+1][y+1][z+1][3][1][j] !== orientation[1][j])\n return false;\n } else if (x === 0 && y === 0) {\n if (cubeState[x+1][y+1][z+1][3][2][j] !== orientation[2][j])\n return false;\n } else if (y === 0 && z === 0) {\n if (cubeState[x+1][y+1][z+1][3][0][j] !== orientation[0][j])\n return false;\n } else\n return false;\n }\n }\n }\n }\n }\n }\n return true; // Only reached if all match\n}", "function isadjacentpoint(xc,yc)\n\t{\n\t\tvar davoid = whereisthespace();\n\t\tvar y = davoid[0];\n\t\tvar x = y.split(\",\");\n\t\tvar ydiff = yc - x[1];\n\t\tvar xdiff = xc - x[0];\n\t\tif ((xdiff == 0 && (ydiff < 200 && ydiff > -200)) || (ydiff == 0 && (xdiff < 200 && xdiff > -200)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "function checkIfPointIsInside(xp, yp, x, y) {\n var i, j, c = 0;\n for (i = 0, j = xp.length - 1; i < xp.length; j = i++) {\n if ((((yp[i] <= y) && (y < yp[j])) ||\n ((yp[j] <= y) && (y < yp[i]))) &&\n (x < (xp[j] - xp[i]) * (y - yp[i]) / (yp[j] - yp[i]) + xp[i]))\n c = !c;\n }\n return c;\n }", "function diffByOne(arr) {\n // let sequential = true;\n for(let i=0; i<4; i++) {\n if (arr[i]-arr[i+1] != 1) {\n // sequential = false;\n return false;\n }\n }\n return true;\n}", "function intersects(ab, cd) {\n\t var triplets = [[ab[0], ab[1], cd[0]], [ab[0], ab[1], cd[1]], [cd[0], cd[1], ab[0]], [cd[0], cd[1], ab[1]]];\n\n\t var orientations = _.map(triplets, function (triplet) {\n\t return sign(ccw.apply(null, triplet));\n\t });\n\n\t if (orientations[0] !== orientations[1] && orientations[2] !== orientations[3]) {\n\t return true;\n\t }\n\n\t for (var i = 0; i < 4; i++) {\n\t if (orientations[i] === 0 && pointInRect.apply(null, triplets[i])) {\n\t return true;\n\t }\n\t }\n\n\t return false;\n\t}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n}", "function checkDraw(squares) {\n let draw = null;\n const lines = [\n [0, 1, 2],\n [3, 4, 5],\n [6, 7, 8]\n ];\n for (let i=0; i<lines.length; i++) {\n const [a, b, c] = lines[i];\n if (squares[a] === null || squares[b] === null || squares[c] === null) {\n draw = false\n i = lines.length\n } else {\n draw = true\n }\n }\n return draw\n}", "function czyJednorodna(array) {\n var pierwszy = array[0];\n for (var i = 1; i < array.length; i++) {\n if (array[i] !== pierwszy) {\n return false;\n }\n }\n return true;\n}", "function balancePoint(arr){\n let sum = 0;\n for(let i = 0; i<arr.length; i++){\n sum += arr[i];\n }\n let checkSum = 0;\n for(let i=0; i<arr.length; i++){\n checkSum += arr[i];\n if(checkSum == sum/2){\n return true;\n }\n }\n return false;\n}", "isInQuadrant(q) {\n // Map quadrant to x & y coordinate pairs and multiply with coordinates,\n // then check sign:\n // 1: [ 1, 1]\n // 2: [-1, 1]\n // 3: [-1, -1]\n // 4: [ 1, -1]\n return this.x * (q > 1 && q < 4 ? -1 : 1) >= 0 && this.y * (q > 2 ? -1 : 1) >= 0;\n }", "function arePointsOk(arr){\r\n\r\n // console.log('[arePointsOk] - array to control is '+arr)\r\n //first element cannot be a restricted Operator\r\n if(arr[0]=='.') {\r\n console.log('First character cannot be ' + arr[0]);\r\n return 0;\r\n }\r\n\r\n //first element cannot be a restricted Operator\r\n if(arr[arr.length-1]=='.') {\r\n console.log('Last character cannot be ' + arr[arr.length-1]);\r\n return 0;\r\n }\r\n\r\n for (var i=1;i<arr.length-1;i++){\r\n //impossible to have two signs next to each other\r\n if(arr[i]==='.' && (numbers.indexOf(arr[i-1])==-1 || numbers.indexOf(arr[i+1])==-1)){\r\n console.log('Points must be surrounded by numbers');\r\n return 0;\r\n }\r\n }\r\n return 1;\r\n}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\t\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t\t\t\t( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t\t\t\t( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n\t}", "function symmetrical(card) {\n return (dirs(card).up === dirs(card).down && dirs(card).left === dirs(card).right);\n}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\t\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n\t}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\t\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n\t}", "function pointInTriangle( ax, ay, bx, by, cx, cy, px, py ) {\n\n\t\treturn ( cx - px ) * ( ay - py ) - ( ax - px ) * ( cy - py ) >= 0 &&\n\t\t ( ax - px ) * ( by - py ) - ( bx - px ) * ( ay - py ) >= 0 &&\n\t\t ( bx - px ) * ( cy - py ) - ( cx - px ) * ( by - py ) >= 0;\n\n\t}", "function canMove(coordinatesCallback,dir){\n if(pauseState){\n return false;\n }\n for(var i = 0; i < tetromino.cells.length; i++){\n var new_coord = coordinatesCallback(i,dir); // tulemus on kastides, mitte pikslites\n var new_x = new_coord[0];\n var new_y = new_coord[1];\n if(!validateCoordinates(new_x,new_y)){\n return false;\n }\n }\n return true;\n}", "contains(x, y) {\n const { _coords } = this\n // Algorithm & implementation thankfully taken from:\n // -> http://alienryderflex.com/polygon/\n\n let i,\n j = this.numVertices - 1\n let oddNodes = 0\n\n for (i = 0; i < this.numVertices; ++i) {\n const ix = _coords[i * 2]\n const iy = _coords[i * 2 + 1]\n const jx = _coords[j * 2]\n const jy = _coords[j * 2 + 1]\n\n if (((iy < y && jy >= y) || (jy < y && iy >= y)) && (ix <= x || jx <= x))\n oddNodes ^= Math.floor(ix + ((y - iy) / (jy - iy)) * (jx - ix) < x) //todo:\n\n j = i\n }\n\n return oddNodes !== 0\n }", "function collision(array){\n for(let i = 1; i < array.length; i++){\n if(array[0].x == array[i].x && array[0].y == array[i].y){\n return true;\n }\n }\n return false;\n}", "get isCCW() { return this._radians1 >= this._radians0; }", "function checkLoop () {\n\n //loop when approaching 360/0 from a clockwise spin\n if (orientation >= 361) {\n orientation = 0 + SPIN_DEG;\n }\n //loop when approaching 360/0 from a counter clockwise spin\n else if (orientation <= -1) {\n orientation = 360 - SPIN_DEG;\n }\n //use 0 in place of 360\n else if (orientation == 360) {\n orientation = 0;\n }\n}", "function checkWindings(){\n // console.log(\"checkWindings\");\n // check if there is less than three vertices to inspect\n\n if (index < 2 ){\n return true;\n } // set initial rotation based on current winding\n else if (index == 2) {\n rotation = RHTwinding(vertices); // set initial rotation based on current winding\n if ( rotation )\n return true; // only return true if the first triangle is ANTI-CLOCKWISE :)\n else\n return false; // oh my it seems the vertices are CLOCKWISE\n }\n else {\n // windings is what the rotation should be based on the index\n var windings = ( ( index % 2 ) == 0 ? rotation : !rotation );\n \n // check that the winding of the currrent traingle are not equal to\n // previous triangle requirment of a triangle_strip\n return RHTwinding(vertices) == windings ? true : false;\n }\n}", "function checkWiningDiagonalMove(p) {\n //0,4,8 2,4,6\n var ret = false;\n var d1 = _matrix[0][0] + _matrix[1][1] + _matrix[2][2];\n var d2 = _matrix[0][2] + _matrix[1][1] + _matrix[2][0];\n\n if ( d1 === p.repeat(3) || d2 === p.repeat(3) ) ret = true;\n\n return ret;\n }", "function isPointInPoly(poly, pt){\n\t\tfor(var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i)\n\t\t\t((poly[i].y <= pt.y && pt.y < poly[j].y) || (poly[j].y <= pt.y && pt.y < poly[i].y))\n\t\t\t&& (pt.x < (poly[j].x - poly[i].x) * (pt.y - poly[i].y) / (poly[j].y - poly[i].y) + poly[i].x)\n\t\t\t&& (c = !c);\n\t\t\t\n\treturn c;\n\t}", "function isValidDiagonal( a, b ) {\n\n\treturn a.next.i !== b.i && a.prev.i !== b.i && ! intersectsPolygon( a, b ) &&\n\t\tlocallyInside( a, b ) && locallyInside( b, a ) && middleInside( a, b );\n\n}" ]
[ "0.6825948", "0.65444165", "0.63776314", "0.6067621", "0.5941429", "0.5894455", "0.5882528", "0.58608145", "0.5825334", "0.57433397", "0.5739705", "0.57124496", "0.5707815", "0.56963706", "0.56712186", "0.56601596", "0.5654734", "0.5646363", "0.56347936", "0.5605038", "0.5589742", "0.5560026", "0.5552969", "0.5517824", "0.55141824", "0.5460908", "0.5451893", "0.5436682", "0.54286885", "0.54158765", "0.539982", "0.53948027", "0.53946906", "0.5382471", "0.53683805", "0.535705", "0.5327378", "0.5292794", "0.52659136", "0.5247054", "0.5243369", "0.5212258", "0.5212258", "0.52121735", "0.5209867", "0.52095413", "0.5209122", "0.52035505", "0.52035505", "0.51984876", "0.51940876", "0.51925623", "0.51810414", "0.51744634", "0.51739186", "0.51376754", "0.513208", "0.51310545", "0.5125905", "0.5119965", "0.51079696", "0.5105045", "0.51006263", "0.5094871", "0.5090595", "0.50833964", "0.5074491", "0.50727147", "0.5063114", "0.5058691", "0.5056458", "0.50487244", "0.5043999", "0.5041063", "0.50360495", "0.5034181", "0.503274", "0.5014223", "0.5014223", "0.5014223", "0.5014223", "0.5012752", "0.5005213", "0.5004016", "0.50000346", "0.49978253", "0.4996268", "0.49939924", "0.49839002", "0.49839002", "0.49839002", "0.49803722", "0.49748248", "0.49640223", "0.49581632", "0.49560943", "0.4944876", "0.49439391", "0.49420542", "0.49368986" ]
0.7258016
0
both arguments are arrays of corners with x,y attributes
static polygonPolygonIntersect(firstCorners, secondCorners) { for (var tI = 0; tI < firstCorners.length; tI++) { var tFirstCorner = firstCorners[tI], tSecondCorner; if (tI === firstCorners.length - 1) { tSecondCorner = firstCorners[0]; } else { tSecondCorner = firstCorners[tI + 1]; } if (Utils.linePolygonIntersect(tFirstCorner, tSecondCorner, secondCorners)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "getCorners(){\n\t\treturn [\n\t\t\t{x:-(this.width/2), y:-(this.height/2)},\n\t\t\t{x:-(this.width/2)+this.width, y:-(this.height/2)},\n\t\t\t{x:-(this.width/2)+this.width, y:-(this.height/2)+this.height},\n\t\t\t{x:-(this.width/2), y:-(this.height/2)+this.height}\n\t\t];\n\t}", "getCorners(){\n //Order for corners is left top, left bottom, right bottom, right top\n var lt = {x:this.position.x, y:this.position.y + this.size.y - 1};\n var lb = {x:this.position.x, y:this.position.y};\n var rb = {x:this.position.x + this.size.x - 1, y:this.position.y};\n var rt = {x:this.position.x + this.size.x - 1, y:this.position.y + this.size.y - 1};\n\n return [lt,lb,rb,rt];\n }", "function ComputeCorners (iNumCorners, iOffsetAngle, iLength)\n{\n var corners = [];\n\n for (var i = 0; i < iNumCorners; i++)\n {\n // compute the angles (in radians) of the corner points\n var angle = iOffsetAngle + i * (360 / iNumCorners);\n angle *= Math.PI / 180;\n \n var xLoc = Math.round (iLength * Math.cos (angle));\n var yLoc = Math.round (iLength * Math.sin (angle));\n\n corners.push ( [ xLoc, yLoc ] );\n\n //console.log (xLoc, yLoc);\n }\n\n return corners;\n}", "cornerCoords(b,t){\n let bTL = {x: b.x-b.width/2, y: b.y-b.height/2};\n let bBR = {x: b.x+b.width/2, y: b.y+b.height/2};\n let tTL = t.getTopLeft();\n let tBR = t.getBottomRight();\n let minX = Math.min(bTL.x, tTL.x);\n let maxX = Math.max(bBR.x, tBR.x);\n let minY = Math.min(bTL.y, tTL.y);\n let maxY = Math.max(bBR.y, tBR.y);\n\n //ordered from top left, clockwise\n return [{x:minX, y:minY},\n {x:maxX, y:minY},\n {x:maxX, y:maxY},\n {x:minX, y:maxY}];\n }", "_coord(arr) {\n var a = arr[0], d = arr[1], b = arr[2];\n var sum, pos = [0, 0];\n sum = a + d + b;\n if (sum !== 0) {\n a /= sum;\n d /= sum;\n b /= sum;\n pos[0] = corners[0][0] * a + corners[1][0] * d + corners[2][0] * b;\n pos[1] = corners[0][1] * a + corners[1][1] * d + corners[2][1] * b;\n }\n return pos;\n }", "function getXYCorners(corners) {\n var positions = [];\n\n _.each(corners, function (corner) {\n var xy = merc.forward([corner.lng, corner.lat]);\n positions.push({x: xy[0], y: xy[1]});\n });\n\n return positions;\n}", "function hexagon_points(x, y, r) {\n var sq = Math.sqrt(3) * 0.5;\n var rh = 0.5 * r;\n\n return [x, y-r, x+r*sq, y-rh, x+r*sq, y+rh, x, y+r, x-r*sq, y+rh, x-r*sq, y-rh];\n}", "function processCorners() {\n let c;\n let points = {};\n for (let key in corners) {\n if (corners.hasOwnProperty(key)) {\n c = corners[key];\n for (let i = Math.min(c[0][0],c[1][0]); i <= Math.max(c[0][0],c[1][0]); ++i) {\n for (let j = Math.min(c[0][1],c[1][1]); j <= Math.max(c[0][1],c[1][1]); ++j) {\n //points.push({ x: i, y: j, type: \"point\", color: rooms[key] });\n if (!points[rooms[key]])\n points[rooms[key]] = new Set();\n points[rooms[key]].add([\n i + defaultConfig.xMin,\n defaultConfig.yMax - j\n ]);\n }\n }\n }\n }\n\n return points;\n}", "getPieceCorners({piece, x, y}) {\n\t\tconst topLeft = {x, y};\n\t\tconst topRight = {x: x + piece.width - 1, y};\n\t\tconst bottomLeft = {x, y: y + piece.height - 1};\n\t\tconst bottomRight = {x: x + piece.width - 1, y: y + piece.height - 1};\n\n\t\treturn {topLeft, topRight, bottomLeft, bottomRight};\n\t}", "function getCornerPoints($element) {\n var offset = $element[0].getBoundingClientRect();\n var top = offset.top;\n var left = offset.left;\n var width = $element[0].offsetWidth;\n var height = $element[0].offsetHeight;\n return [\n [left, top], // top left [x, y]\n [left + width, top], // top right [x, y]\n [left, top + height], // bottom left [x, y]\n [left + width, top + height] // bottom right [x, y]\n ];\n}", "getCoords() {\n return [this.x, this.y, this.z];\n }", "function evaluate_corners () {\r\n\tfor (a = 0; a < 2; a++) {\r\n\t\tif (start[a] < end[a]) {\r\n\t\t\ttop_left[a] = start[a];\r\n\t\t\tbottom_right[a] = end[a];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttop_left[a] = end[a];\r\n\t\t\tbottom_right[a] = start[a];\r\n\t\t}\r\n\t}\r\n\trwidth = bottom_right[0] - top_left[0];\r\n\trheight = bottom_right[1] - top_left[1];\r\n\t// set text\r\n\ttlc.innerHTML = \"Top Left: [\" + top_left[0] + \",\" + top_left[1] + \"]\";\r\n\tbrc.innerHTML = \"Bottom Right: [\" + bottom_right[0] + \",\" + bottom_right[1] + \"]\";\r\n}", "buildCorners(corners) {\n const newBoard = this.init2dArray(this.board.length);\n\n newBoard[0][0] = corners[0]; // top left\n newBoard[0][newBoard.length - 1] = corners[1]; // top right\n newBoard[newBoard.length - 1][newBoard.length - 1] = corners[2]; // bottom right\n newBoard[newBoard.length - 1][0] = corners[3]; // bottom left\n\n while (newBoard[0][0].top !== 0 || newBoard[0][0].left !== 0) newBoard[0][0].ror(); \n while (newBoard[0][newBoard.length - 1].top !== 0 || newBoard[0][newBoard.length - 1].right !== 0) newBoard[0][newBoard.length - 1].ror(); \n while (newBoard[newBoard.length - 1][newBoard.length - 1].bottom !== 0 || newBoard[newBoard.length - 1][newBoard.length - 1].right !== 0) newBoard[newBoard.length - 1][newBoard.length - 1].ror(); \n while (newBoard[newBoard.length - 1][0].bottom !== 0 || newBoard[newBoard.length - 1][0].left !== 0) newBoard[newBoard.length - 1][0].ror(); \n\n return newBoard;\n }", "function correctCorners(points, x, y, px, py) {\n for (let i = 0; i < px.p1.length; ++i) {\n if (points[i].type === PointType.CORNER) {\n px.p1[i] = x[i];\n py.p1[i] = y[i];\n }\n if (points[i + 1 < points.length ? i + 1 : 0].type === PointType.CORNER) {\n px.p2[i] = x[i + 1];\n py.p2[i] = y[i + 1];\n }\n }\n}", "static getBLCorner(corners){\n var cornersInPSCoordinates = []\n\n var cornersSortedByLeftness = DrawingArea.sortCornersByLeftnessPS(corners)\n\n var leftCorners = cornersSortedByLeftness.slice(0,2)\n var cornersSortedByTopness = DrawingArea.sortCornersByTopnessPS(leftCorners)\n var lowerLeftCorner = cornersSortedByTopness[1];\n return lowerLeftCorner\n }", "function getTopLeftBottomRightCorners(range) {\n if(!range || !range.from || !range.to) {\n return [];\n }\n var topLeft = null, bottomRight = null;\n if( (typeof range.from.row == 'number') && (typeof range.from.col == 'number') && (typeof range.to.row == 'number') && (typeof range.to.col == 'number') ){\n topLeft = {\n row: Math.min(range.from.row, range.to.row),\n col: Math.min(range.from.col, range.to.col)\n };\n bottomRight = {\n row: Math.max(range.from.row, range.to.row),\n col: Math.max(range.from.col, range.to.col)\n };\n }\n \n return [topLeft, bottomRight];\n }", "function constructCoordinates(cords) {\n // Corners\n // 1 - bottom left\n // 2 - top left\n // 3 - top right\n // 4 - bottom right\n\n // Note: 0,0 starts in top left. Remember this when doing calculations for corners, the y axis calculations\n // need to be flipped vs bottom left orientation\n\t\t\tvar lineWidth = getLineWidth();\n var r = lineWidth / 2;\n return {\n 1: {\n x: cords.x - r,\n y: cords.y + r\n },\n 2: {\n x: cords.x - r,\n y: cords.y - r\n },\n 3: {\n x: cords.x + r,\n y: cords.y - r\n },\n 4: {\n x: cords.x + r,\n y: cords.y + r\n }\n }\n }", "function eyeBoundsFromCorners(leftCorner, rightCorner){\n eyeLen = leftCorner[0] - rightCorner[0]\n xshift = eyeLen / 5\n eyeLen += 2 * xshift;\n yshift = eyeLen / 2\n yref = (leftCorner[1] + rightCorner[1]) / 2\n\n tmp = [rightCorner[0] - xshift, leftCorner[0] + xshift, yref - yshift, yref + yshift]\n tmp.push(tmp[1]-tmp[0]); // Add width\n tmp.push(tmp[3]-tmp[2]); // Add height\n\n tmp.forEach((elem, ind) => {\n tmp[ind] = elem*videoDivisor;\n });\n\n return tmp\n} // return [left, right, top, bottom, width, height]", "function getWormCoords()\n{\n xyCoords = [];\n for(var i = 0; i < infections.length; i++)\n {\n xyCoords.push({id: i, targetX: infections[i].x\n , targetY: infections[i].y\n , sourceX: infections[i].infectedByx\n , sourceY: infections[i].infectedByy});\n }\n}", "cells() {\n var start = typeof this.topLeft === 'function' ? this.topLeft() : this.topLeft,\n end = typeof this.bottomRight === 'function' ? this.bottomRight() : this.bottomRight,\n\tthat = this;\n \n return Array.apply(start, Array(end+1)).map(function (x, y) {\n return y; \n });\n }", "function calculateCorners(square) {\n let result = [];\n result[0] = square.x - square.width / 2;\n result[1] = square.y - square.height / 2;\n result[2] = result[0] + square.width;\n result[3] = result[1];\n result[4] = result[2];\n result[5] = result[3] + square.height;\n result[6] = result[0];\n result[7] = result[5];\n return result;\n}", "getAdjacent() {\n return [\n new Coord([this.x + 1, this.y]), // RIGHT >\n new Coord([this.x - 1, this.y]), // LEFT >\n new Coord([this.x, this.y - 1]), // UP >\n new Coord([this.x, this.y + 1]), // DOWN >\n ];\n }", "function boundingBoxToEyeCorners(right_bb, left_bb, h, w){\n const leftY = (left_bb[2] + left_bb[3])/2/h\n const rightY = (right_bb[2] + right_bb[3])/2/h\n\n return [[[left_bb[1]/w, leftY], [left_bb[0]/w, leftY]],\n [[right_bb[0]/w, rightY], [right_bb[1]/w, rightY]]]\n}", "static getScreenCorners(position, size){\n var lt = {x:position.x, y:position.y};\n var lb = {x:position.x, y:position.y + size.y - 1};\n var rb = {x:position.x + size.x - 1, y:position.y + size.y - 1};\n var rt = {x:position.x + size.x - 1, y:position.y};\n\n return [lt,lb,rb,rt];\n }", "function isHourGlassTopLeft(x, y, arr){\n\t//console.log(\"isHourGlassTopLeft(): \" + x + \",\" + y);\n\t//if upper right and lower left corners exist, then true\n\tif( (y + 2) > 5 || (typeof arr[x][y + 2] === 'undefined') ){\n\t\t//console.log(\"false\");\n\t\treturn false;\n\t\t\n\t}\n\telse if ( (x + 2) > 5 || (typeof arr[x + 2][y] === 'undefined') ){\n\t\t//console.log(\"false\");\n\t\treturn false;\n\t}\n\telse{\n\t\treturn true;\n\t}\n}", "function selectiveRoundedRect(x, y, w, h, rTopLeft, rTopRight, rBottomRight, rBottomLeft) {\n return [\n ['M', x + rTopLeft, y],\n // top side\n ['L', x + w - rTopRight, y],\n // top right corner\n ['C', x + w - rTopRight / 2, y, x + w, y + rTopRight / 2, x + w, y + rTopRight],\n // right side\n ['L', x + w, y + h - rBottomRight],\n // bottom right corner\n ['C', x + w, y + h - rBottomRight / 2, x + w - rBottomRight / 2, y + h, x + w - rBottomRight, y + h],\n // bottom side\n ['L', x + rBottomLeft, y + h],\n // bottom left corner\n ['C', x + rBottomLeft / 2, y + h, x, y + h - rBottomLeft / 2, x, y + h - rBottomLeft],\n // left side\n ['L', x, y + rTopLeft],\n // top left corner\n ['C', x, y + rTopLeft / 2, x + rTopLeft / 2, y, x + rTopLeft, y],\n ['Z']\n ];\n}", "function cornerTangents(x0,y0,x1,y1,r1,rc,cw){var x01=x0-x1,y01=y0-y1,lo=(cw?rc:-rc)/sqrt(x01*x01+y01*y01),ox=lo*y01,oy=-lo*x01,x11=x0+ox,y11=y0+oy,x10=x1+ox,y10=y1+oy,x00=(x11+x10)/2,y00=(y11+y10)/2,dx=x10-x11,dy=y10-y11,d2=dx*dx+dy*dy,r=r1-rc,D=x11*y10-x10*y11,d=(dy<0?-1:1)*sqrt(max(0,r*r*d2-D*D)),cx0=(D*dy-dx*d)/d2,cy0=(-D*dx-dy*d)/d2,cx1=(D*dy+dx*d)/d2,cy1=(-D*dx+dy*d)/d2,dx0=cx0-x00,dy0=cy0-y00,dx1=cx1-x00,dy1=cy1-y00;\n// Pick the closer of the two intersection points.\n// TODO Is there a faster way to determine which intersection to use?\nif(dx0*dx0+dy0*dy0>dx1*dx1+dy1*dy1)cx0=cx1,cy0=cy1;return{cx:cx0,cy:cy0,x01:-ox,y01:-oy,x11:cx0*(r1/r-1),y11:cy0*(r1/r-1)}}", "function selectiveRoundedRect(x, y, w, h, rTopLeft, rTopRight, rBottomRight, rBottomLeft) {\n return [\n ['M', x + rTopLeft, y],\n // top side\n ['L', x + w - rTopRight, y],\n // top right corner\n [\n 'C',\n x + w - rTopRight / 2,\n y,\n x + w,\n y + rTopRight / 2,\n x + w,\n y + rTopRight\n ],\n // right side\n ['L', x + w, y + h - rBottomRight],\n // bottom right corner\n [\n 'C', x + w, y + h - rBottomRight / 2,\n x + w - rBottomRight / 2, y + h,\n x + w - rBottomRight, y + h\n ],\n // bottom side\n ['L', x + rBottomLeft, y + h],\n // bottom left corner\n [\n 'C',\n x + rBottomLeft / 2,\n y + h,\n x,\n y + h - rBottomLeft / 2,\n x,\n y + h - rBottomLeft\n ],\n // left side\n ['L', x, y + rTopLeft],\n // top left corner\n ['C', x, y + rTopLeft / 2, x + rTopLeft / 2, y, x + rTopLeft, y],\n ['Z']\n ];\n }", "constructor({\n x,\n y,\n innerRadius,\n outerRadius,\n points\n }) {\n this.x = x;\n this.y = y;\n this.innerRadius = innerRadius;\n this.outerRadius = outerRadius;\n this.points = points;\n }", "ij_xy(x, y) {\n if (Array.isArray(x)) [x, y] = x;\n\n return [y / this.tileSizeDrawn | 0,\n x / this.tileSizeDrawn | 0];\n }", "function upperRightCorner(x,y,w,h,angle){\n var coor = new Array();\n \n angle = toRadians(angle);\n var angle_off = Math.tan(h/w);\n var distance = (Math.sqrt(Math.pow(w,2) +Math.pow(h,2)))/2;\n var angle_rel = angle + angle_off;\n var relPoint = toRect(distance,angle_rel);\n \n var cx = x + (w/2);\n var cy = y + (h/2);\n \n coor[0] = cx + relPoint[0];\n coor[1] = cy + relPoint[1];\n \n return coor;\n }", "function upperRightCorner(x,y,w,h,angle){\n var coor = new Array();\n \n angle = toRadians(angle);\n var angle_off = Math.tan(h/w);\n var distance = (Math.sqrt(Math.pow(w,2) +Math.pow(h,2)))/2;\n var angle_rel = angle + angle_off;\n var relPoint = toRect(distance,angle_rel);\n \n var cx = x + (w/2);\n var cy = y + (h/2);\n \n coor[0] = cx + relPoint[0];\n coor[1] = cy + relPoint[1];\n \n return coor;\n }", "function getCordinates() {\n let corArray = [];\n let x = getRndInteger(0, canvas.width);\n let y = getRndInteger(0, canvas.height);\n corArray.push(x, y);\n return corArray;\n}", "get points() {\n return [\n new Point(this.x, this.y),\n new Point(this.x + this.w, this.y),\n new Point(this.x + this.w, this.y + this.h),\n new Point(this.x, this.y + this.h),\n ];\n }", "function convertCoords(x,y) {\n var sidelen = 400 / board.size();\n\n x = x - 154 - sidelen / 2;\n y = y - 10 - sidelen / 2;\n return [x,y];\n}", "function Rect2d () {\n /**\n * x0\n * @type Float\n */\n this.fX0 = 0;\n /**\n * x1\n * @type Float\n */\n this.fX1 = 0;\n /**\n * y0\n * @type Float\n */\n this.fY0 = 0;\n /**\n * y1\n * @type Float\n */\n this.fY1 = 0;\n switch (arguments.length) {\n case 1:\n if (arguments[0] instanceof Rect2d) {\n this.fX0 = arguments[0].fX0;\n this.fX1 = arguments[0].fX1;\n this.fX0 = arguments[0].fY0;\n this.fX1 = arguments[0].fY1;\n }\n else {\n this.fX1 = arguments[0].X * 0.5;\n this.fX0 = -this.fX1;\n this.fY1 = arguments[0].Y * 0.5;\n this.fY0 = -this.fY1;\n }\n break;\n case 2:\n this.fX1 = arguments[0] * 0.5;\n this.fX0 = -this.fX1;\n this.fY1 = arguments[1] * 0.5;\n this.fY0 = -this.fY1;\n break;\n case 4:\n this.fX0 = arguments[0];\n this.fX1 = arguments[1];\n this.fY0 = arguments[2];\n this.fY1 = arguments[3];\n break;\n }\n ;\n}", "_atRoomCorner(room) {\n if (room.isCornerPoint(this.x, this.y)) {\n return true\n }\n if (room.isCornerPoint((this.x+this.width)-1, this.y)) {\n return true\n }\n if (room.isCornerPoint(this.x, (this.y+this.height)-1)) {\n return true\n }\n if (room.isCornerPoint((this.x+this.width)-1, (this.y+this.height)-1)) {\n return true\n }\n return false\n }", "getScreenCoordinatesTLCorner(){\n var cornersInScreenCoordinates = []\n var cornersInPSCoordinates = this.getCorners();\n for (var i = 0; i < 4; i++){\n cornersInScreenCoordinates[i] = this.parent.getScreenCoordinatesFromPSCoordinates(cornersInPSCoordinates[i]);\n }\n\n var cornersSortedByLeftness = DrawingArea.sortCornersByLeftness(cornersInScreenCoordinates)\n\n var leftCorners = cornersSortedByLeftness.slice(0,2)\n var cornersSortedByTopness = DrawingArea.sortCornersByTopness(leftCorners)\n var upperLeftCorner = cornersSortedByTopness[0];\n return upperLeftCorner\n }", "getPoints() {\n return [\n new Point(this.x, this.y),\n new Point(this.x + this.w, this.y),\n new Point(this.x + this.w, this.y + this.h),\n new Point(this.x, this.y + this.h),\n ];\n }", "function getCorner(rect, num) {\n // console.log('Corner')\n // console.log('Case ' + num );\n const shift = svgWindowDifference();\n\n switch (num) {\n case 1:\n return [rect.x + shift, rect.y];\n case 2:\n return [rect.right + shift, rect.y];\n case 3:\n return [rect.x + shift, rect.bottom];\n case 4:\n return [rect.right + shift, rect.bottom];\n default:\n console.log(\"Unknown Corner Number\");\n }\n\n}", "function axialCoords(q, r) {\r\n\tthis.q = q;\r\n\tthis.r = r;\r\n}", "function cornerCheck(x, y){\n\t\t\treturn (y0-y1)*x + (x1-x0)*y + (x0*y1-x1*y0);\n\t\t}", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0].slice());\n return polygon([vertices]);\n}", "function getEyeCorners(eyePred, h, w){\n let mesh = eyePred.scaledMesh;\n const left_leftcorner = mesh[263].slice(0,2)\n const left_rightcorner = mesh[362].slice(0,2)\n const right_rightcorner = mesh[33].slice(0,2)\n const right_leftcorner = mesh[133].slice(0,2)\n\n return [left_leftcorner[0]/w, left_leftcorner[1]/h, left_rightcorner[0]/w, left_rightcorner[1]/h,\n right_rightcorner[0]/w, right_rightcorner[1]/h, right_leftcorner[0]/w, right_leftcorner[1]/h]\n}", "function getOuterBeamCoords(rect, angleCase) {\n // console.log('AngleCase: ' + angleCase );\n switch (angleCase) {\n\n case 1:\n // console.log('Returns 1');\n return [getCorner(rect, 3),\n getCorner(rect, 1),\n getCorner(rect, 2)];\n case 2:\n // console.log('Returns 2');\n return [getCorner(rect, 4),\n getCorner(rect, 2),\n getCorner(rect, 1)];\n case 3:\n // console.log('Returns 3');\n return [getCorner(rect, 4),\n getCorner(rect, 3),\n getCorner(rect, 1)];\n case 4:\n // console.log('Returns 4');\n return [getCorner(rect, 3),\n getCorner(rect, 4),\n getCorner(rect, 2)];\n case 5:\n // console.log('Returns 5');\n return [getCorner(rect, 3),\n getCorner(rect, 1),\n getCorner(rect, 2),\n getCorner(rect, 4)];\n case 6:\n // console.log('Returns 6');\n return [getCorner(rect, 1),\n getCorner(rect, 3),\n getCorner(rect, 4),\n getCorner(rect, 2)];\n case 7:\n // console.log('Returns 7');\n return [getCorner(rect, 3),\n getCorner(rect, 1),\n getCorner(rect, 2),\n getCorner(rect, 2)];\n case 8:\n // console.log('Returns 8');\n return [getCorner(rect, 2),\n getCorner(rect, 1),\n getCorner(rect, 3),\n getCorner(rect, 4)];\n case 9:\n // console.log('Returns 9');\n return [getCorner(rect, 1),\n getCorner(rect, 2),\n getCorner(rect, 4),\n getCorner(rect, 3)];\n case 10:\n // console.log('Returns 10');\n return [getCorner(rect, 4),\n getCorner(rect, 2),\n getCorner(rect, 1),\n getCorner(rect, 3)];\n default:\n console.log(\"Unknown AngleCase\");\n\n }\n\n}", "getPoints(width, height) {\n /*\n Return star point coordinates as [x, y] arrays.\n */\n const cornerWidth = width < 13 ? 3 : 4;\n const cornerHeight = height < 13 ? 3 : 4;\n\n // Points is a list of [x, y] coordinates.\n // Initialize it with all the corner points.\n let points = [\n [cornerWidth, cornerHeight],\n [width - cornerWidth + 1, cornerHeight],\n [cornerWidth, height - cornerHeight + 1],\n [width - cornerWidth + 1, height - cornerHeight + 1],\n ];\n\n // Add a star point in the middle if the board has odd dimensions.\n if (width % 2 == 1 && height % 2 == 1) {\n points.push([Math.ceil(width / 2), Math.ceil(height / 2)]);\n }\n\n // Add star points between corners if the board is big enough and that\n // dimension is odd.\n if (width > 13 && width % 2 == 1) {\n points.push([Math.ceil(width / 2), cornerHeight]);\n points.push([Math.ceil(width / 2), height - cornerHeight + 1]);\n }\n if (height > 13 && height % 2 == 1) {\n points.push([cornerWidth, Math.ceil(height / 2)]);\n points.push([width - cornerWidth + 1, Math.ceil(height / 2)]);\n }\n\n return points;\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / _mathJs.sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * _mathJs.sqrt(_mathJs.max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00;\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "xy_ij(i, j) {\n if (Array.isArray(i)) [i, j] = i;\n\n return [j * this.tileSizeDrawn,\n i * this.tileSizeDrawn];\n }", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0]);\n return polygon([vertices]);\n}", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0]);\n return polygon([vertices]);\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1, y01 = y0 - y1, lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x0 + ox, y11 = y0 + oy, x10 = x1 + ox, y10 = y1 + oy, x00 = (x11 + x10) / 2, y00 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x00, dy0 = cy0 - y00, dx1 = cx1 - x00, dy1 = cy1 - y00;\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) (cx0 = cx1, cy0 = cy1);\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n }", "get coords() {\n return [this.x, this.y];\n }", "function lineThemUp(x,y,z) {\n return [x,y,z];\n}", "get bounds () {\n const xMin = Math.min.apply(null, this.pointArr.map(pt => pt.x))\n const yMin = Math.min.apply(null, this.pointArr.map(pt => pt.y))\n const xMax = Math.max.apply(null, this.pointArr.map(pt => pt.x))\n const yMax = Math.max.apply(null, this.pointArr.map(pt => pt.y))\n\n return {\n x: xMin,\n y: yMin,\n width: xMax - xMin,\n height: yMax - yMax\n }\n }", "static sortCornersByTopness(corners_array){\n var corners_array_to_be_returned = []\n for (var i = 0; i < corners_array.length; i++){\n corners_array_to_be_returned[i] = {x:corners_array[i].x,y:corners_array[i].y}\n }\n\n var sorted = false;\n //The greater value of y gets the \n while (!sorted){\n var sort_occurred = false;\n for (var i = 0; i < corners_array_to_be_returned.length - 1; i++){\n if (corners_array_to_be_returned[i].y > corners_array_to_be_returned[i+1].y){\n Tile.switchIndices(corners_array_to_be_returned, i, i+1)\n sort_occurred = true\n }\n }\n\n if (!sort_occurred){\n sorted = true;\n }\n }\n\n return corners_array_to_be_returned;\n }", "toArray()\r\n {\r\n return [this.x, this.y];\r\n }", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0]);\n return polygon([vertices]);\n }", "function hexagon(length, x_start, y_start) {\n\t\"use strict\";\n\tvar hex = [\n\t\t[length + x_start, y_start],\n\t\t[((length / 2) + x_start), (length * Math.sqrt(length / 2)) + y_start],\n\t\t[((-length / 2) + x_start), (length * Math.sqrt(length / 2)) + y_start],\n\t\t[(-length + x_start), y_start],\n\t\t[((-length / 2) + x_start), (-length * Math.sqrt(length / 2)) + y_start],\n\t\t[(length / 2) + x_start, (-length * Math.sqrt(length / 2)) + y_start],\n\t\t[length + x_start, y_start]];\n\treturn hex;\n\n}", "function getCoordinates(p1, p2, p3, answer) {\n var xArr = [],\n yArr = [];\n if (answer == 'flat') {\n xArr.push(p1.anchor[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p3.anchor[0]);\n \n yArr.push(p1.anchor[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p3.anchor[1]);\n }\n if (answer == 'l_zero') {\n xArr.push(p3.anchor[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p2.rightDirection[0]);\n\n yArr.push(p3.anchor[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p2.rightDirection[1]);\n }\n\n if (answer == 'r_zero') {\n xArr.push(p2.leftDirection[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p1.anchor[0]);\n\n yArr.push(p2.leftDirection[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p1.anchor[1]);\n }\n return { 'x': xArr, 'y': yArr };\n}", "function rectangleEdges(rect) {\n // Return the 4 edges coordinate of the rectangle according the the rotation\n // at the center of the rectangle.\n var distance = sjs.math.hypo(rect.w / 2, rect.h / 2);\n var angle = Math.atan2(rect.h, rect.w);\n // 4 angles to reach the edges, starting up left (down left in the sprite.js coordinate)\n // and turning counter-clockwise\n var angles = [Math.PI - angle, angle, -angle, Math.PI + angle];\n var points = [];\n for(var i=0; i < 4; i++) {\n points.push([\n distance * Math.cos(rect.angle + angles[i]) + rect.x + rect.w/2,\n distance * Math.sin(rect.angle + angles[i]) + rect.y + rect.h/2\n ]);\n }\n return points;\n}", "static sortCornersByTopnessPS(corners_array){\n var corners_array_to_be_returned = []\n for (var i = 0; i < corners_array.length; i++){\n corners_array_to_be_returned[i] = {x:corners_array[i].x,y:corners_array[i].y}\n }\n\n var sorted = false;\n //The greater value of y gets the \n while (!sorted){\n var sort_occurred = false;\n for (var i = 0; i < corners_array_to_be_returned.length - 1; i++){\n if (corners_array_to_be_returned[i].y < corners_array_to_be_returned[i+1].y){\n Tile.switchIndices(corners_array_to_be_returned, i, i+1)\n sort_occurred = true\n }\n }\n\n if (!sort_occurred){\n sorted = true;\n }\n }\n\n return corners_array_to_be_returned;\n }", "function hex_corner(centerX, centerY, i){\n\t var angle_deg = 60 * i + 30;\n\t var angle_rad = Math.PI / 180 * angle_deg;\n\t var x = centerX + size * Math.cos(angle_rad);\n\t var y = centerY + size * Math.sin(angle_rad);\n\t var point = {xPos: toInt(x), yPos: toInt(y)};\n\t return point;\n\t}", "function defineRectangleData() {\n // baseLength defined above, usually == 100\n var len = baseLength;\n // Corner vertices on a rectangle\n rectCorners = [\n // if we're facing the -z direction:\n // the front face\n [-len, len, len], // 0 top left\n [-len, -len, len], // 1 bot left\n [ len, len, len], // 2 top right\n [ len, -len, len], // 3 bot right\n\n // the back face\n [ len, len, -len], // 4 top right\n [ len, -len, -len], // 5 bot right\n [-len, len, -len], // 6 top left\n [-len, -len, -len], // 7 bot left\n ];\n}", "getNeighborCoords({ x, y }) {\n return NEIGHBOR_VECTORS.reduce((memo, [dx, dy]) => {\n const coord = { x: x + dx, y: y + dy };\n if (this.isValidCoord(coord)) {\n memo.push(coord);\n }\n return memo;\n }, []);\n }", "isCorner(x, y) {\n //check if the random number give a cell in the corner\n if (x == 1) {\n if (y >= 1 && y <= spawnCorner)\n return true;\n else\n if (y <= this.columns && y >= this.columns - spawnCorner - 1)\n return true;\n }\n if (x == this.rows - 2) {\n if (y >= 1 && y <= spawnCorner)\n return true;\n else\n if (y <= this.columns && y >= this.columns - spawnCorner - 1)\n return true;\n }\n if (y == 1) {\n if (x >= 1 && x <= spawnCorner)\n return true;\n else\n if (x <= this.rows && x >= this.rows - spawnCorner - 1)\n return true;\n }\n if (y == this.columns - 2) {\n if (x >= 1 && x <= spawnCorner)\n return true;\n else\n if (x <= this.rows && y >= this.rows - spawnCorner - 1)\n return true;\n }\n return false;\n }", "function Origin(){\n this.x = midWidth;\n this.y = midHeight;\n}", "constructor(x, y, x2, y2) {\n\t\tthis.beings = [];\n\t\tthis.users = [];\n\t\tthis.x;\n\t\tthis.y;\n\t\tthis.x2;\n\t\tthis.y2;\n\t}", "function PolarCoordinates() {\r\n}", "function Corner(left, top) {\n this.left = Math.min(1, Math.max(0, left));\n this.top = Math.min(1, Math.max(0, top));\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / math_sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * math_sqrt(src_math_max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function hexagon(center, rx, ry) {\n\t var vertices = [];\n\t for (var i = 0; i < 6; i++) {\n\t var x = center[0] + rx * cosines[i];\n\t var y = center[1] + ry * sines[i];\n\t vertices.push([x, y]);\n\t }\n\t //first and last vertex must be the same\n\t vertices.push(vertices[0]);\n\t return polygon([vertices]);\n\t}", "function polyCoordinates(result, coords, corner)\n\t{\n\t\tvar i = 0,\n\t\t\tcompareX = 1, compareY = 1,\n\t\t\trealX = 0, realY = 0,\n\t\t\tnewWidth = result.width,\n\t\t\tnewHeight = result.height;\n\n\t\t// Use a binary search algorithm to locate most suitable coordinate (hopefully)\n\t\twhile(newWidth > 0 && newHeight > 0 && compareX > 0 && compareY > 0)\n\t\t{\n\t\t\tnewWidth = Math.floor(newWidth / 2);\n\t\t\tnewHeight = Math.floor(newHeight / 2);\n\n\t\t\tif(corner.x === 'left'){ compareX = newWidth; }\n\t\t\telse if(corner.x === 'right'){ compareX = result.width - newWidth; }\n\t\t\telse{ compareX += Math.floor(newWidth / 2); }\n\n\t\t\tif(corner.y === 'top'){ compareY = newHeight; }\n\t\t\telse if(corner.y === 'bottom'){ compareY = result.height - newHeight; }\n\t\t\telse{ compareY += Math.floor(newHeight / 2); }\n\n\t\t\ti = coords.length; while(i--)\n\t\t\t{\n\t\t\t\tif(coords.length < 2){ break; }\n\n\t\t\t\trealX = coords[i][0] - result.offset.left;\n\t\t\t\trealY = coords[i][1] - result.offset.top;\n\n\t\t\t\tif((corner.x === 'left' && realX >= compareX) ||\n\t\t\t\t(corner.x === 'right' && realX <= compareX) ||\n\t\t\t\t(corner.x === 'center' && (realX < compareX || realX > (result.width - compareX))) ||\n\t\t\t\t(corner.y === 'top' && realY >= compareY) ||\n\t\t\t\t(corner.y === 'bottom' && realY <= compareY) ||\n\t\t\t\t(corner.y === 'center' && (realY < compareY || realY > (result.height - compareY)))) {\n\t\t\t\t\tcoords.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn { left: coords[0][0], top: coords[0][1] };\n\t}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n\t var x01 = x0 - x1,\n\t y01 = y0 - y1,\n\t lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n\t ox = lo * y01,\n\t oy = -lo * x01,\n\t x11 = x0 + ox,\n\t y11 = y0 + oy,\n\t x10 = x1 + ox,\n\t y10 = y1 + oy,\n\t x00 = (x11 + x10) / 2,\n\t y00 = (y11 + y10) / 2,\n\t dx = x10 - x11,\n\t dy = y10 - y11,\n\t d2 = dx * dx + dy * dy,\n\t r = r1 - rc,\n\t D = x11 * y10 - x10 * y11,\n\t d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n\t cx0 = (D * dy - dx * d) / d2,\n\t cy0 = (-D * dx - dy * d) / d2,\n\t cx1 = (D * dy + dx * d) / d2,\n\t cy1 = (-D * dx + dy * d) / d2,\n\t dx0 = cx0 - x00,\n\t dy0 = cy0 - y00,\n\t dx1 = cx1 - x00,\n\t dy1 = cy1 - y00;\n\t\n\t // Pick the closer of the two intersection points.\n\t // TODO Is there a faster way to determine which intersection to use?\n\t if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\t\n\t return {\n\t cx: cx0,\n\t cy: cy0,\n\t x01: -ox,\n\t y01: -oy,\n\t x11: cx0 * (r1 / r - 1),\n\t y11: cy0 * (r1 / r - 1)\n\t };\n\t}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt$2(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt$2(max$2(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt$2(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt$2(max$2(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt$2(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt$2(max$2(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt$2(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt$2(max$2(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(math_max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n\t var x01 = x0 - x1,\n\t y01 = y0 - y1,\n\t lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n\t ox = lo * y01,\n\t oy = -lo * x01,\n\t x11 = x0 + ox,\n\t y11 = y0 + oy,\n\t x10 = x1 + ox,\n\t y10 = y1 + oy,\n\t x00 = (x11 + x10) / 2,\n\t y00 = (y11 + y10) / 2,\n\t dx = x10 - x11,\n\t dy = y10 - y11,\n\t d2 = dx * dx + dy * dy,\n\t r = r1 - rc,\n\t D = x11 * y10 - x10 * y11,\n\t d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n\t cx0 = (D * dy - dx * d) / d2,\n\t cy0 = (-D * dx - dy * d) / d2,\n\t cx1 = (D * dy + dx * d) / d2,\n\t cy1 = (-D * dx + dy * d) / d2,\n\t dx0 = cx0 - x00,\n\t dy0 = cy0 - y00,\n\t dx1 = cx1 - x00,\n\t dy1 = cy1 - y00;\n\n\t // Pick the closer of the two intersection points.\n\t // TODO Is there a faster way to determine which intersection to use?\n\t if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n\t return {\n\t cx: cx0,\n\t cy: cy0,\n\t x01: -ox,\n\t y01: -oy,\n\t x11: cx0 * (r1 / r - 1),\n\t y11: cy0 * (r1 / r - 1)\n\t };\n\t}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n\t var x01 = x0 - x1,\n\t y01 = y0 - y1,\n\t lo = (cw ? rc : -rc) / sqrt$2(x01 * x01 + y01 * y01),\n\t ox = lo * y01,\n\t oy = -lo * x01,\n\t x11 = x0 + ox,\n\t y11 = y0 + oy,\n\t x10 = x1 + ox,\n\t y10 = y1 + oy,\n\t x00 = (x11 + x10) / 2,\n\t y00 = (y11 + y10) / 2,\n\t dx = x10 - x11,\n\t dy = y10 - y11,\n\t d2 = dx * dx + dy * dy,\n\t r = r1 - rc,\n\t D = x11 * y10 - x10 * y11,\n\t d = (dy < 0 ? -1 : 1) * sqrt$2(max$2(0, r * r * d2 - D * D)),\n\t cx0 = (D * dy - dx * d) / d2,\n\t cy0 = (-D * dx - dy * d) / d2,\n\t cx1 = (D * dy + dx * d) / d2,\n\t cy1 = (-D * dx + dy * d) / d2,\n\t dx0 = cx0 - x00,\n\t dy0 = cy0 - y00,\n\t dx1 = cx1 - x00,\n\t dy1 = cy1 - y00;\n\t\n\t // Pick the closer of the two intersection points.\n\t // TODO Is there a faster way to determine which intersection to use?\n\t if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\t\n\t return {\n\t cx: cx0,\n\t cy: cy0,\n\t x01: -ox,\n\t y01: -oy,\n\t x11: cx0 * (r1 / r - 1),\n\t y11: cy0 * (r1 / r - 1)\n\t };\n\t}", "function markRect({ x1, y1, x2, y2 }) {\n for (let i = x1; i <= x2; ++i) {\n for (let j = y1; j <= y2; ++j) {\n mat[j][i] = 2;\n }\n }\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max$1(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n\t var x01 = x0 - x1,\n\t y01 = y0 - y1,\n\t lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n\t ox = lo * y01,\n\t oy = -lo * x01,\n\t x11 = x0 + ox,\n\t y11 = y0 + oy,\n\t x10 = x1 + ox,\n\t y10 = y1 + oy,\n\t x00 = (x11 + x10) / 2,\n\t y00 = (y11 + y10) / 2,\n\t dx = x10 - x11,\n\t dy = y10 - y11,\n\t d2 = dx * dx + dy * dy,\n\t r = r1 - rc,\n\t D = x11 * y10 - x10 * y11,\n\t d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n\t cx0 = (D * dy - dx * d) / d2,\n\t cy0 = (-D * dx - dy * d) / d2,\n\t cx1 = (D * dy + dx * d) / d2,\n\t cy1 = (-D * dx + dy * d) / d2,\n\t dx0 = cx0 - x00,\n\t dy0 = cy0 - y00,\n\t dx1 = cx1 - x00,\n\t dy1 = cy1 - y00;\n\t\n\t // Pick the closer of the two intersection points.\n\t // TODO Is there a faster way to determine which intersection to use?\n\t if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\t\n\t return {\n\t cx: cx0,\n\t cy: cy0,\n\t x01: -ox,\n\t y01: -oy,\n\t x11: cx0 * (r1 / r - 1),\n\t y11: cy0 * (r1 / r - 1)\n\t };\n\t}", "function Rect3d () {\n /**\n * x0\n * @type Float\n */\n this.fX0 = 0;\n /**\n * x1\n * @type Float\n */\n this.fX1 = 0;\n /**\n * y0\n * @type Float\n */\n this.fY0 = 0;\n /**\n * y1\n * @type Float\n */\n this.fY1 = 0;\n /**\n * z0\n * @type Float\n */\n this.fZ0 = 0;\n /**\n * z1\n * @type Float\n */\n this.fZ1 = 0;\n switch (arguments.length) {\n case 1:\n if (arguments[0] instanceof Rect3d) {\n this.fX0 = arguments[0].fX0;\n this.fX1 = arguments[0].fX1;\n this.fY0 = arguments[0].fY0;\n this.fY1 = arguments[0].fY1;\n this.fZ0 = arguments[0].fZ0;\n this.fZ1 = arguments[0].fZ1;\n }\n else {\n this.fX1 = arguments[0].X * 0.5;\n this.fX0 = -this.fX1;\n this.fY1 = arguments[0].Y * 0.5;\n this.fY0 = -this.fY1;\n this.fZ1 = arguments[0].Z * 0.5;\n this.fZ0 = -this.fZ1;\n }\n break;\n case 3:\n this.fX1 = arguments[0] * 0.5;\n this.fX0 = -this.fX1;\n this.fY1 = arguments[1] * 0.5;\n this.fY0 = -this.fY1;\n this.fZ1 = arguments[2] * 0.5;\n this.fZ0 = -this.fZ1;\n break;\n case 6:\n this.fX0 = arguments[0];\n this.fX1 = arguments[1];\n this.fY0 = arguments[2];\n this.fY1 = arguments[3];\n this.fZ0 = arguments[4];\n this.fZ1 = arguments[5];\n break;\n }\n ;\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n\t var x01 = x0 - x1,\n\t y01 = y0 - y1,\n\t lo = (cw ? rc : -rc) / sqrt$2(x01 * x01 + y01 * y01),\n\t ox = lo * y01,\n\t oy = -lo * x01,\n\t x11 = x0 + ox,\n\t y11 = y0 + oy,\n\t x10 = x1 + ox,\n\t y10 = y1 + oy,\n\t x00 = (x11 + x10) / 2,\n\t y00 = (y11 + y10) / 2,\n\t dx = x10 - x11,\n\t dy = y10 - y11,\n\t d2 = dx * dx + dy * dy,\n\t r = r1 - rc,\n\t D = x11 * y10 - x10 * y11,\n\t d = (dy < 0 ? -1 : 1) * sqrt$2(max$2(0, r * r * d2 - D * D)),\n\t cx0 = (D * dy - dx * d) / d2,\n\t cy0 = (-D * dx - dy * d) / d2,\n\t cx1 = (D * dy + dx * d) / d2,\n\t cy1 = (-D * dx + dy * d) / d2,\n\t dx0 = cx0 - x00,\n\t dy0 = cy0 - y00,\n\t dx1 = cx1 - x00,\n\t dy1 = cy1 - y00;\n\n\t // Pick the closer of the two intersection points.\n\t // TODO Is there a faster way to determine which intersection to use?\n\t if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n\t return {\n\t cx: cx0,\n\t cy: cy0,\n\t x01: -ox,\n\t y01: -oy,\n\t x11: cx0 * (r1 / r - 1),\n\t y11: cy0 * (r1 / r - 1)\n\t };\n\t}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n }", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}", "function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * Math.sqrt(Math.max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}" ]
[ "0.68733513", "0.6769763", "0.6398585", "0.63596135", "0.63350445", "0.62954396", "0.62164265", "0.61121756", "0.6070231", "0.60623175", "0.60395396", "0.6033291", "0.5939309", "0.5928091", "0.59161675", "0.58897084", "0.5847636", "0.58082026", "0.5794414", "0.5791413", "0.5752446", "0.57501966", "0.57460284", "0.5690621", "0.5679659", "0.56772184", "0.5664439", "0.5660907", "0.56562805", "0.56081074", "0.5575034", "0.5575034", "0.5554961", "0.5527236", "0.552382", "0.5492732", "0.54899365", "0.5476796", "0.54697394", "0.54568607", "0.5432806", "0.54215074", "0.5420853", "0.54186", "0.54112095", "0.5410473", "0.54103464", "0.5410337", "0.53985757", "0.53985757", "0.5376962", "0.5376254", "0.53693765", "0.5362677", "0.53549516", "0.5347443", "0.5347335", "0.5341385", "0.53405267", "0.5324562", "0.53169495", "0.5316642", "0.53133804", "0.5308902", "0.53014314", "0.5298122", "0.52904224", "0.5285287", "0.52842414", "0.52801704", "0.52784675", "0.5276091", "0.5273203", "0.5269372", "0.52623916", "0.52623916", "0.52623916", "0.52623916", "0.5261429", "0.5258993", "0.5258993", "0.5258993", "0.5258993", "0.5258993", "0.5258993", "0.5258993", "0.5258993", "0.5258993", "0.52584326", "0.52563465", "0.52551866", "0.5255085", "0.52532667", "0.52524847", "0.52461004", "0.5245229", "0.5245229", "0.52431583", "0.52431583", "0.52431583", "0.52431583" ]
0.0
-1
Corners is an array of points with x,y attributes
static linePolygonIntersect(point, point2, corners) { for (var tI = 0; tI < corners.length; tI++) { var tFirstCorner = corners[tI], tSecondCorner; if (tI === corners.length - 1) { tSecondCorner = corners[0]; } else { tSecondCorner = corners[tI + 1]; } if (Utils.lineLineIntersect(point, point2, { x: tFirstCorner.x, y: tFirstCorner.y }, { x: tSecondCorner.x, y: tSecondCorner.y })) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function processCorners() {\n let c;\n let points = {};\n for (let key in corners) {\n if (corners.hasOwnProperty(key)) {\n c = corners[key];\n for (let i = Math.min(c[0][0],c[1][0]); i <= Math.max(c[0][0],c[1][0]); ++i) {\n for (let j = Math.min(c[0][1],c[1][1]); j <= Math.max(c[0][1],c[1][1]); ++j) {\n //points.push({ x: i, y: j, type: \"point\", color: rooms[key] });\n if (!points[rooms[key]])\n points[rooms[key]] = new Set();\n points[rooms[key]].add([\n i + defaultConfig.xMin,\n defaultConfig.yMax - j\n ]);\n }\n }\n }\n }\n\n return points;\n}", "function getXYCorners(corners) {\n var positions = [];\n\n _.each(corners, function (corner) {\n var xy = merc.forward([corner.lng, corner.lat]);\n positions.push({x: xy[0], y: xy[1]});\n });\n\n return positions;\n}", "getCorners(){\n\t\treturn [\n\t\t\t{x:-(this.width/2), y:-(this.height/2)},\n\t\t\t{x:-(this.width/2)+this.width, y:-(this.height/2)},\n\t\t\t{x:-(this.width/2)+this.width, y:-(this.height/2)+this.height},\n\t\t\t{x:-(this.width/2), y:-(this.height/2)+this.height}\n\t\t];\n\t}", "function correctCorners(points, x, y, px, py) {\n for (let i = 0; i < px.p1.length; ++i) {\n if (points[i].type === PointType.CORNER) {\n px.p1[i] = x[i];\n py.p1[i] = y[i];\n }\n if (points[i + 1 < points.length ? i + 1 : 0].type === PointType.CORNER) {\n px.p2[i] = x[i + 1];\n py.p2[i] = y[i + 1];\n }\n }\n}", "function ComputeCorners (iNumCorners, iOffsetAngle, iLength)\n{\n var corners = [];\n\n for (var i = 0; i < iNumCorners; i++)\n {\n // compute the angles (in radians) of the corner points\n var angle = iOffsetAngle + i * (360 / iNumCorners);\n angle *= Math.PI / 180;\n \n var xLoc = Math.round (iLength * Math.cos (angle));\n var yLoc = Math.round (iLength * Math.sin (angle));\n\n corners.push ( [ xLoc, yLoc ] );\n\n //console.log (xLoc, yLoc);\n }\n\n return corners;\n}", "getPieceCorners({piece, x, y}) {\n\t\tconst topLeft = {x, y};\n\t\tconst topRight = {x: x + piece.width - 1, y};\n\t\tconst bottomLeft = {x, y: y + piece.height - 1};\n\t\tconst bottomRight = {x: x + piece.width - 1, y: y + piece.height - 1};\n\n\t\treturn {topLeft, topRight, bottomLeft, bottomRight};\n\t}", "getCorners(){\n //Order for corners is left top, left bottom, right bottom, right top\n var lt = {x:this.position.x, y:this.position.y + this.size.y - 1};\n var lb = {x:this.position.x, y:this.position.y};\n var rb = {x:this.position.x + this.size.x - 1, y:this.position.y};\n var rt = {x:this.position.x + this.size.x - 1, y:this.position.y + this.size.y - 1};\n\n return [lt,lb,rb,rt];\n }", "buildCorners(corners) {\n const newBoard = this.init2dArray(this.board.length);\n\n newBoard[0][0] = corners[0]; // top left\n newBoard[0][newBoard.length - 1] = corners[1]; // top right\n newBoard[newBoard.length - 1][newBoard.length - 1] = corners[2]; // bottom right\n newBoard[newBoard.length - 1][0] = corners[3]; // bottom left\n\n while (newBoard[0][0].top !== 0 || newBoard[0][0].left !== 0) newBoard[0][0].ror(); \n while (newBoard[0][newBoard.length - 1].top !== 0 || newBoard[0][newBoard.length - 1].right !== 0) newBoard[0][newBoard.length - 1].ror(); \n while (newBoard[newBoard.length - 1][newBoard.length - 1].bottom !== 0 || newBoard[newBoard.length - 1][newBoard.length - 1].right !== 0) newBoard[newBoard.length - 1][newBoard.length - 1].ror(); \n while (newBoard[newBoard.length - 1][0].bottom !== 0 || newBoard[newBoard.length - 1][0].left !== 0) newBoard[newBoard.length - 1][0].ror(); \n\n return newBoard;\n }", "function calculateCorners(square) {\n let result = [];\n result[0] = square.x - square.width / 2;\n result[1] = square.y - square.height / 2;\n result[2] = result[0] + square.width;\n result[3] = result[1];\n result[4] = result[2];\n result[5] = result[3] + square.height;\n result[6] = result[0];\n result[7] = result[5];\n return result;\n}", "static getBLCorner(corners){\n var cornersInPSCoordinates = []\n\n var cornersSortedByLeftness = DrawingArea.sortCornersByLeftnessPS(corners)\n\n var leftCorners = cornersSortedByLeftness.slice(0,2)\n var cornersSortedByTopness = DrawingArea.sortCornersByTopnessPS(leftCorners)\n var lowerLeftCorner = cornersSortedByTopness[1];\n return lowerLeftCorner\n }", "static getScreenCorners(position, size){\n var lt = {x:position.x, y:position.y};\n var lb = {x:position.x, y:position.y + size.y - 1};\n var rb = {x:position.x + size.x - 1, y:position.y + size.y - 1};\n var rt = {x:position.x + size.x - 1, y:position.y};\n\n return [lt,lb,rb,rt];\n }", "computeFrustrumCorners() {\n let view_inv = mat4.create();\n let proj_inv = mat4.create();\n let transform = mat4.create();\n mat4.invert(view_inv, this.viewMatrix);\n mat4.invert(proj_inv, this.projectionMatrix);\n mat4.multiply(transform, view_inv, proj_inv);\n\n let points = [\n vec4.fromValues(-1.0, -1.0, -1.0, 1.0),\n vec4.fromValues(-1.0, -1.0, 1.0, 1.0),\n vec4.fromValues(-1.0, 1.0, -1.0, 1.0),\n vec4.fromValues(-1.0, 1.0, 1.0, 1.0),\n vec4.fromValues( 1.0, -1.0, -1.0, 1.0),\n vec4.fromValues( 1.0, -1.0, 1.0, 1.0),\n vec4.fromValues( 1.0, 1.0, -1.0, 1.0),\n vec4.fromValues( 1.0, 1.0, 1.0, 1.0)\n ];\n for (let p of points) {\n vec4.transformMat4(p, p, transform);\n // Divide by p.w\n vec4.divide(p, p, vec4.fromValues(p[3], p[3], p[3], p[3]));\n }\n return points;\n }", "function getCornerPoints($element) {\n var offset = $element[0].getBoundingClientRect();\n var top = offset.top;\n var left = offset.left;\n var width = $element[0].offsetWidth;\n var height = $element[0].offsetHeight;\n return [\n [left, top], // top left [x, y]\n [left + width, top], // top right [x, y]\n [left, top + height], // bottom left [x, y]\n [left + width, top + height] // bottom right [x, y]\n ];\n}", "function getMinMaxCorners(points) {\n\tvar ul = points[0],\n\t\t\tur = points[0],\n\t\t\tll = points[0],\n\t\t\tlr = points[0];\n\n\tpoints.forEach(function(p) {\n\t\tif (-p.x - p.y > -ul.x - ul.y) ul = p;\n\t\tif ( p.x - p.y > ur.x - ur.y) ur = p;\n\t\tif (-p.x + p.y > -ll.x + ll.y) ll = p;\n\t\tif ( p.x + p.y > lr.x + lr.y) lr = p;\n\t});\n\n\treturn { ul: ul, ur: ur, ll: ll, lr: lr };\n}", "createCorners () {\n // Create cropper square div, set id and class\n this.corners.el = document.createElement('div')\n this.corners.el.id = 'corners'\n this.corners.el.classList.add('corners')\n // Create north east corner point of square, set id and classes, append to square\n this.corners.neCorner = document.createElement('div')\n this.corners.neCorner.classList.add('corner')\n this.corners.neCorner.classList.add('ne')\n this.corners.el.appendChild(this.corners.neCorner)\n // Create south east corner point of square, set id and classes, append to square\n this.corners.seCorner = document.createElement('div')\n this.corners.seCorner.classList.add('corner')\n this.corners.seCorner.classList.add('se')\n this.corners.el.appendChild(this.corners.seCorner)\n // Create south west corner point of square, set id and classes, append to square\n this.corners.swCorner = document.createElement('div')\n this.corners.swCorner.classList.add('corner')\n this.corners.swCorner.classList.add('sw')\n this.corners.el.appendChild(this.corners.swCorner)\n // Create north west corner point of square, set id and classes, append to square\n this.corners.nwCorner = document.createElement('div')\n this.corners.nwCorner.classList.add('corner')\n this.corners.nwCorner.classList.add('nw')\n this.corners.el.appendChild(this.corners.nwCorner)\n // Create center point of square, set class, append to square\n var center = document.createElement('div')\n center.classList.add('center')\n this.corners.el.appendChild(center)\n // Append cropper square to DOM\n this.el.appendChild(this.corners.el)\n // Set parent element's position as relative\n this.el.style.position = 'relative'\n }", "function transformCorners(M, oldCorners) {\n var pt = oldCorners;\n var z = 0.0, i = 0, px = 0.0, py = 0.0;\n for (; i < 4; ++i) {\n px = M[0] * pt[i].x + M[1] * pt[i].y + M[2];\n py = M[3] * pt[i].x + M[4] * pt[i].y + M[5];\n z = M[6] * pt[i].x + M[7] * pt[i].y + M[8];\n pt[i].x = px / z;\n pt[i].y = py / z;\n }\n\n return pt;\n}", "cornerCoords(b,t){\n let bTL = {x: b.x-b.width/2, y: b.y-b.height/2};\n let bBR = {x: b.x+b.width/2, y: b.y+b.height/2};\n let tTL = t.getTopLeft();\n let tBR = t.getBottomRight();\n let minX = Math.min(bTL.x, tTL.x);\n let maxX = Math.max(bBR.x, tBR.x);\n let minY = Math.min(bTL.y, tTL.y);\n let maxY = Math.max(bBR.y, tBR.y);\n\n //ordered from top left, clockwise\n return [{x:minX, y:minY},\n {x:maxX, y:minY},\n {x:maxX, y:maxY},\n {x:minX, y:maxY}];\n }", "function getEyeCorners(eyePred, h, w){\n let mesh = eyePred.scaledMesh;\n const left_leftcorner = mesh[263].slice(0,2)\n const left_rightcorner = mesh[362].slice(0,2)\n const right_rightcorner = mesh[33].slice(0,2)\n const right_leftcorner = mesh[133].slice(0,2)\n\n return [left_leftcorner[0]/w, left_leftcorner[1]/h, left_rightcorner[0]/w, left_rightcorner[1]/h,\n right_rightcorner[0]/w, right_rightcorner[1]/h, right_leftcorner[0]/w, right_leftcorner[1]/h]\n}", "function evaluate_corners () {\r\n\tfor (a = 0; a < 2; a++) {\r\n\t\tif (start[a] < end[a]) {\r\n\t\t\ttop_left[a] = start[a];\r\n\t\t\tbottom_right[a] = end[a];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttop_left[a] = end[a];\r\n\t\t\tbottom_right[a] = start[a];\r\n\t\t}\r\n\t}\r\n\trwidth = bottom_right[0] - top_left[0];\r\n\trheight = bottom_right[1] - top_left[1];\r\n\t// set text\r\n\ttlc.innerHTML = \"Top Left: [\" + top_left[0] + \",\" + top_left[1] + \"]\";\r\n\tbrc.innerHTML = \"Bottom Right: [\" + bottom_right[0] + \",\" + bottom_right[1] + \"]\";\r\n}", "function hexagon_points(x, y, r) {\n var sq = Math.sqrt(3) * 0.5;\n var rh = 0.5 * r;\n\n return [x, y-r, x+r*sq, y-rh, x+r*sq, y+rh, x, y+r, x-r*sq, y+rh, x-r*sq, y-rh];\n}", "getScreenCoordinatesTLCorner(){\n var cornersInScreenCoordinates = []\n var cornersInPSCoordinates = this.getCorners();\n for (var i = 0; i < 4; i++){\n cornersInScreenCoordinates[i] = this.parent.getScreenCoordinatesFromPSCoordinates(cornersInPSCoordinates[i]);\n }\n\n var cornersSortedByLeftness = DrawingArea.sortCornersByLeftness(cornersInScreenCoordinates)\n\n var leftCorners = cornersSortedByLeftness.slice(0,2)\n var cornersSortedByTopness = DrawingArea.sortCornersByTopness(leftCorners)\n var upperLeftCorner = cornersSortedByTopness[0];\n return upperLeftCorner\n }", "function RoundCornersModifier() {\n }", "function getTopLeftBottomRightCorners(range) {\n if(!range || !range.from || !range.to) {\n return [];\n }\n var topLeft = null, bottomRight = null;\n if( (typeof range.from.row == 'number') && (typeof range.from.col == 'number') && (typeof range.to.row == 'number') && (typeof range.to.col == 'number') ){\n topLeft = {\n row: Math.min(range.from.row, range.to.row),\n col: Math.min(range.from.col, range.to.col)\n };\n bottomRight = {\n row: Math.max(range.from.row, range.to.row),\n col: Math.max(range.from.col, range.to.col)\n };\n }\n \n return [topLeft, bottomRight];\n }", "static sortCornersByTopnessPS(corners_array){\n var corners_array_to_be_returned = []\n for (var i = 0; i < corners_array.length; i++){\n corners_array_to_be_returned[i] = {x:corners_array[i].x,y:corners_array[i].y}\n }\n\n var sorted = false;\n //The greater value of y gets the \n while (!sorted){\n var sort_occurred = false;\n for (var i = 0; i < corners_array_to_be_returned.length - 1; i++){\n if (corners_array_to_be_returned[i].y < corners_array_to_be_returned[i+1].y){\n Tile.switchIndices(corners_array_to_be_returned, i, i+1)\n sort_occurred = true\n }\n }\n\n if (!sort_occurred){\n sorted = true;\n }\n }\n\n return corners_array_to_be_returned;\n }", "static sortCornersByTopness(corners_array){\n var corners_array_to_be_returned = []\n for (var i = 0; i < corners_array.length; i++){\n corners_array_to_be_returned[i] = {x:corners_array[i].x,y:corners_array[i].y}\n }\n\n var sorted = false;\n //The greater value of y gets the \n while (!sorted){\n var sort_occurred = false;\n for (var i = 0; i < corners_array_to_be_returned.length - 1; i++){\n if (corners_array_to_be_returned[i].y > corners_array_to_be_returned[i+1].y){\n Tile.switchIndices(corners_array_to_be_returned, i, i+1)\n sort_occurred = true\n }\n }\n\n if (!sort_occurred){\n sorted = true;\n }\n }\n\n return corners_array_to_be_returned;\n }", "static sortCornersByLeftness(corners_array){\n var corners_array_to_be_returned = []\n for (var i = 0; i < corners_array.length; i++){\n corners_array_to_be_returned[i] = {x:corners_array[i].x,y:corners_array[i].y}\n }\n\n var sorted = false;\n while (!sorted){\n var sort_occurred = false;\n for (var i = 0; i < corners_array_to_be_returned.length - 1; i++){\n if (corners_array_to_be_returned[i].x >corners_array_to_be_returned[i+1].x){\n Tile.switchIndices(corners_array_to_be_returned, i, i+1)\n sort_occurred = true\n }\n }\n\n if (!sort_occurred){\n sorted = true;\n }\n }\n\n return corners_array_to_be_returned;\n }", "get points() {\n return [\n new Point(this.x, this.y),\n new Point(this.x + this.w, this.y),\n new Point(this.x + this.w, this.y + this.h),\n new Point(this.x, this.y + this.h),\n ];\n }", "function setPoints(){\n pointObjects = [];\n for(var i=0; i<4; i++){\n pointObjects[i] = stage.getChildByName(\"corner\"+i);\n points[i] = new createjs.Point(pointObjects[i].x, pointObjects[i].y);\n }\n}", "getPoints() {\n return [\n new Point(this.x, this.y),\n new Point(this.x + this.w, this.y),\n new Point(this.x + this.w, this.y + this.h),\n new Point(this.x, this.y + this.h),\n ];\n }", "function boundingBoxToEyeCorners(right_bb, left_bb, h, w){\n const leftY = (left_bb[2] + left_bb[3])/2/h\n const rightY = (right_bb[2] + right_bb[3])/2/h\n\n return [[[left_bb[1]/w, leftY], [left_bb[0]/w, leftY]],\n [[right_bb[0]/w, rightY], [right_bb[1]/w, rightY]]]\n}", "constructor({\n x,\n y,\n innerRadius,\n outerRadius,\n points\n }) {\n this.x = x;\n this.y = y;\n this.innerRadius = innerRadius;\n this.outerRadius = outerRadius;\n this.points = points;\n }", "drawBezier(points) {\n for (let i = 0, e = points.length; i < e; i += 3) {\n let [p1, p2, p3] = points.slice(i, i + 3);\n this.ctx.bezierCurveTo(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y);\n }\n }", "plotRoutesCornerPoints() {\n for (let r of this.mapRoutes) {\n r.plotRouteCornerPoints(this.map);\n }\n }", "function eyeBoundsFromCorners(leftCorner, rightCorner){\n eyeLen = leftCorner[0] - rightCorner[0]\n xshift = eyeLen / 5\n eyeLen += 2 * xshift;\n yshift = eyeLen / 2\n yref = (leftCorner[1] + rightCorner[1]) / 2\n\n tmp = [rightCorner[0] - xshift, leftCorner[0] + xshift, yref - yshift, yref + yshift]\n tmp.push(tmp[1]-tmp[0]); // Add width\n tmp.push(tmp[3]-tmp[2]); // Add height\n\n tmp.forEach((elem, ind) => {\n tmp[ind] = elem*videoDivisor;\n });\n\n return tmp\n} // return [left, right, top, bottom, width, height]", "function getOuterBeamCoords(rect, angleCase) {\n // console.log('AngleCase: ' + angleCase );\n switch (angleCase) {\n\n case 1:\n // console.log('Returns 1');\n return [getCorner(rect, 3),\n getCorner(rect, 1),\n getCorner(rect, 2)];\n case 2:\n // console.log('Returns 2');\n return [getCorner(rect, 4),\n getCorner(rect, 2),\n getCorner(rect, 1)];\n case 3:\n // console.log('Returns 3');\n return [getCorner(rect, 4),\n getCorner(rect, 3),\n getCorner(rect, 1)];\n case 4:\n // console.log('Returns 4');\n return [getCorner(rect, 3),\n getCorner(rect, 4),\n getCorner(rect, 2)];\n case 5:\n // console.log('Returns 5');\n return [getCorner(rect, 3),\n getCorner(rect, 1),\n getCorner(rect, 2),\n getCorner(rect, 4)];\n case 6:\n // console.log('Returns 6');\n return [getCorner(rect, 1),\n getCorner(rect, 3),\n getCorner(rect, 4),\n getCorner(rect, 2)];\n case 7:\n // console.log('Returns 7');\n return [getCorner(rect, 3),\n getCorner(rect, 1),\n getCorner(rect, 2),\n getCorner(rect, 2)];\n case 8:\n // console.log('Returns 8');\n return [getCorner(rect, 2),\n getCorner(rect, 1),\n getCorner(rect, 3),\n getCorner(rect, 4)];\n case 9:\n // console.log('Returns 9');\n return [getCorner(rect, 1),\n getCorner(rect, 2),\n getCorner(rect, 4),\n getCorner(rect, 3)];\n case 10:\n // console.log('Returns 10');\n return [getCorner(rect, 4),\n getCorner(rect, 2),\n getCorner(rect, 1),\n getCorner(rect, 3)];\n default:\n console.log(\"Unknown AngleCase\");\n\n }\n\n}", "function find3Corners(sorted_candidates){\n if(sorted_candidates.length < 4){\n return undefined;\n }\n\n for(var i= 0; i < sorted_candidates.length-3; ++i){\n if(checkAreasRatio(sorted_candidates, i, i+3)){\n return [[sorted_candidates[i], sorted_candidates[i+1], sorted_candidates[i+2]],i];\n }\n }\n\n return undefined;\n}", "static sortCornersByLeftnessPS(corners){\n return DrawingArea.sortCornersByLeftness(corners)\n }", "function windowCorners(){\n var distanceFromEye = 0.5;\n var windowWidth = 1;\n var windowHeight = 1;\n\n var center = Vector.add(eye, Vector.scale(distanceFromEye, lookAt)); // center = eye + distanceFromEye(lookAt)\n var right = Vector.cross(up, lookAt); // vector normal to both up and lookAt\n\n return ({ul:Vector.add(center, Vector.add(Vector.scale(-windowWidth/2, right), Vector.scale(windowHeight/2, up))),\n ur:Vector.add(center, Vector.add(Vector.scale(windowWidth/2, right), Vector.scale(windowHeight/2, up))),\n ll:Vector.add(center, Vector.add(Vector.scale(-windowWidth/2, right), Vector.scale(-windowHeight/2, up))),\n lr:Vector.add(center, Vector.add(Vector.scale(windowWidth/2, right), Vector.scale(-windowHeight/2, up)))});\n}", "positionPoints() {\n const padding = this.getBoundsPadding();\n\n const centerX = (this.content.width / (this.edgePointsAmount) / 2); // center on the X axis\n const rightX = this.getBoundsRightX(); // get the right point position\n const centerY = (this.content.height / (this.edgePointsAmount) / 2); // center on the Y axis\n const bottomY = this.content.height; // the bottom point position\n\n this.topPoint.x = centerX;\n this.topPoint.y = -padding.top;\n this.bottomPoint.x = centerX;\n this.bottomPoint.y = bottomY + padding.bottom;\n this.rightPoint.x = rightX + padding.right;\n this.rightPoint.y = centerY;\n this.leftPoint.x = -padding.left;\n this.leftPoint.y = centerY;\n }", "function Corner(left, top) {\n this.left = Math.min(1, Math.max(0, left));\n this.top = Math.min(1, Math.max(0, top));\n }", "function hex_corner(centerX, centerY, i){\n\t var angle_deg = 60 * i + 30;\n\t var angle_rad = Math.PI / 180 * angle_deg;\n\t var x = centerX + size * Math.cos(angle_rad);\n\t var y = centerY + size * Math.sin(angle_rad);\n\t var point = {xPos: toInt(x), yPos: toInt(y)};\n\t return point;\n\t}", "_getNearPlaneIntersections(corners, mvpCorners, clippedCorners) {\n // rebuild the clipped corners based on non clipped ones\n const mVPMatrix = this._matrices.modelViewProjection.matrix;\n\n if(clippedCorners.length === 1) {\n // we will have 5 corners to check so we'll need to push a new entry in our mvpCorners array\n if(clippedCorners[0] === 0) {\n // top left is culled\n // get intersection iterating from top right\n mvpCorners[0] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from bottom left\n mvpCorners.push(this._getIntersection(mvpCorners[3], tempCulledCorner2.set(-1, -0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 1) {\n // top right is culled\n // get intersection iterating from top left\n mvpCorners[1] = this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from bottom right\n mvpCorners.push(this._getIntersection(mvpCorners[2], tempCulledCorner2.set(1, -0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 2) {\n // bottom right is culled\n // get intersection iterating from bottom left\n mvpCorners[2] = this._getIntersection(mvpCorners[3], tempCulledCorner1.set(-0.95, -1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from top right\n mvpCorners.push(this._getIntersection(mvpCorners[1], tempCulledCorner2.set(1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 3) {\n // bottom left is culled\n // get intersection iterating from bottom right\n mvpCorners[3] = this._getIntersection(mvpCorners[2], tempCulledCorner1.set(0.95, -1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from top left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set( -1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n }\n else if(clippedCorners.length === 2) {\n if(clippedCorners[0] === 0 && clippedCorners[1] === 1) {\n // top part of the plane is culled by near plane\n // find intersection using bottom corners\n mvpCorners[0] = this._getIntersection(mvpCorners[3], tempCulledCorner1.set(-1, -0.95, 0).applyMat4(mVPMatrix));\n mvpCorners[1] = this._getIntersection(mvpCorners[2], tempCulledCorner2.set( 1, -0.95, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 1 && clippedCorners[1] === 2) {\n // right part of the plane is culled by near plane\n // find intersection using left corners\n mvpCorners[1] = this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix));\n mvpCorners[2] = this._getIntersection(mvpCorners[3], tempCulledCorner2.set(-0.95, -1, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 2 && clippedCorners[1] === 3) {\n // bottom part of the plane is culled by near plane\n // find intersection using top corners\n mvpCorners[2] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(1, 0.95, 0).applyMat4(mVPMatrix));\n mvpCorners[3] = this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1, 0.95, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 0 && clippedCorners[1] === 3) {\n // left part of the plane is culled by near plane\n // find intersection using right corners\n mvpCorners[0] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix));\n mvpCorners[3] = this._getIntersection(mvpCorners[2], tempCulledCorner2.set(0.95, -1, 0).applyMat4(mVPMatrix));\n }\n }\n else if(clippedCorners.length === 3) {\n // get the corner that is not clipped\n let nonClippedCorner = 0;\n for(let i = 0; i < corners.length; i++) {\n if(!clippedCorners.includes(i)) {\n nonClippedCorner = i;\n }\n }\n\n // we will have just 3 corners so reset our mvpCorners array with just the visible corner\n mvpCorners = [\n mvpCorners[nonClippedCorner]\n ];\n if(nonClippedCorner === 0) {\n // from top left corner to right\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix)));\n // from top left corner to bottom\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 1) {\n // from top right corner to left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix)));\n // from top right corner to bottom\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 2) {\n // from bottom right corner to left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(0.95, -1, 0).applyMat4(mVPMatrix)));\n // from bottom right corner to top\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(1,-0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 3) {\n // from bottom left corner to right\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, -1, 0).applyMat4(mVPMatrix)));\n // from bottom left corner to top\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1 -0.95, 0).applyMat4(mVPMatrix)));\n }\n }\n else {\n // all 4 corners are culled! artificially apply wrong coords to force plane culling\n for(let i = 0; i < corners.length; i++) {\n mvpCorners[i][0] = 10000;\n mvpCorners[i][1] = 10000;\n }\n }\n\n return mvpCorners;\n }", "async getParams(){\n\t\tconst allCorners = this.layers.map(layer => {\n\t\t\treturn layer.getCorners().map(corner=>{\n\t\t\t\treturn Canvas.absolutePoint(corner.x, corner.y, layer.x, layer.y, layer.rotation);\n\t\t\t});\n\t\t});\n\t\t\n\t\tconst allBounds = [];\n\t\tallCorners.forEach(corners=>{\n\t\t\tallBounds.push(...corners);\n\t\t});\n\n\t\tvar pos = {\n\t\t\tleft: allBounds.reduce((acc, cur)=>Math.min(acc, cur.x), Infinity),\n\t\t\ttop: allBounds.reduce((acc, cur)=>Math.min(acc, cur.y), Infinity),\n\t\t\tright: allBounds.reduce((acc, cur)=>Math.max(acc, cur.x),0),\n\t\t\tbottom: allBounds.reduce((acc, cur)=>Math.max(acc, cur.y),0)\n\t\t};\n\t\tpos.width = pos.right - pos.left;\n\t\tpos.height = pos.bottom - pos.top;\n\t\tpos.x = pos.left+(pos.width/2);\n\t\tpos.y = pos.top+(pos.height/2);\n\n\t\tvar ele = document.createElement('canvas');\n\t\tele.width = pos.right+2;\n\t\tele.height = pos.bottom+2;\n\t\tvar canvas = new Canvas(ele);\n\t\tthis.layers.forEach(layer=>canvas.addLayer(layer));\n\t\t\n\t\tpos.uri = await canvas.extractPortion(pos.x, pos.y, pos.width, pos.height, 0, false);\n\t\t\n\t\tpos.forceBoundary = this.layers.reduce((acc, itm)=>itm.forceBoundary||acc,false);\n\t\tpos.draggable = this.layers.reduce((acc, itm)=>acc===false?false:itm.draggable,true);\n\t\tpos.rotateable = this.layers.reduce((acc, itm)=>acc===false?false:itm.draggable,true);\n\t\tpos.resizable = this.layers.reduce((acc, itm)=>acc===false?false:itm.draggable,true);\n\t\tpos.selectable = this.layers.reduce((acc, itm)=>acc===false?false:itm.draggable,true);\n\t\t\n\t\tthis.layers.forEach(l=>{\n\t\t\tl.xoffset = l.x - pos.x;\n\t\t\tl.yoffset = l.y - pos.y;\n\t\t\tl.roffset = l.rotation;\n\t\t\tl.owidth = l.width;\n\t\t\tl.oheight = l.height;\n\t\t});\n\t\t\n\t\treturn pos;\n\t}", "getCoords() {\n return [this.x, this.y, this.z];\n }", "map(fullImage, srcCorners, width, height) {\n let data = fullImage.data\n let destination = [[0, 0], [width, 0], [width, height], [0, height]]\n\n this.transformationMatrix(destination, srcCorners)\n let img = document\n .createElement('canvas')\n .getContext('2d')\n .createImageData(width, height)\n\n for (let ys = 0; ys < height; ys++) {\n for (let xs = 0; xs < width; xs++) {\n let srcCoord = this.transform([xs, ys])\n let x = srcCoord[0]\n let y = srcCoord[1]\n\n let indexDest = (xs + ys * width) * 4\n let index = (x + y * width) * 4\n\n img.data[indexDest] = data[index]\n img.data[indexDest + 1] = data[index + 1]\n img.data[indexDest + 2] = data[index + 2]\n img.data[indexDest + 3] = data[index + 3]\n }\n }\n return img\n }", "_coord(arr) {\n var a = arr[0], d = arr[1], b = arr[2];\n var sum, pos = [0, 0];\n sum = a + d + b;\n if (sum !== 0) {\n a /= sum;\n d /= sum;\n b /= sum;\n pos[0] = corners[0][0] * a + corners[1][0] * d + corners[2][0] * b;\n pos[1] = corners[0][1] * a + corners[1][1] * d + corners[2][1] * b;\n }\n return pos;\n }", "function roundCorners(element) {\r\n\tvar size = 20;\r\n\tvar settings = {\r\n\t\ttl: { radius: size },\r\n\t\ttr: { radius: size },\r\n\t\tbl: { radius: size },\r\n\t\tbr: { radius: size },\r\n\t\tantiAlias: true\r\n\t}\r\n\tcurvyCorners(settings, element);\r\n}", "buildVertices_() {\n const vertices = [];\n const width = this.config_.style.width;\n const height = this.config_.style.height;\n const stroke = this.config_.style.stroke;\n const hasAngle = this.config_.style.hasAngle;\n\n if (hasAngle) {\n // start corner\n this.addCornerVertices_(vertices, -width/2 + stroke, -height/2, stroke/2, -90);\n\n // outer radius\n const outerRadius = stroke*2.5;\n this.addOuterRadiusVertices_(vertices, width/2, -height/2, outerRadius);\n\n // end corner\n this.addCornerVertices_(vertices, width/2, height/2 - stroke, stroke/2, 180);\n\n // inner radius\n const innerRadius = stroke*2;\n this.addInnerRadiusVertices_(vertices, width/2, -height/2, innerRadius, stroke);\n }\n else {\n // start corner\n this.addCornerVertices_(vertices, -width/2 + height, -height/2, height/2, -90);\n\n // end corner\n this.addCornerVertices_(vertices, width/2, -height/2, height/2, 90);\n }\n\n return vertices;\n }", "function updateContentBoundaryCornersUI(contentBoundaryCorners) {\n contentBoundaryCorners1Position.innerHTML = convertPositionToArray(contentBoundaryCorners[0]);\n contentBoundaryCorners2Position.innerHTML = convertPositionToArray(contentBoundaryCorners[1]);\n}", "_atRoomCorner(room) {\n if (room.isCornerPoint(this.x, this.y)) {\n return true\n }\n if (room.isCornerPoint((this.x+this.width)-1, this.y)) {\n return true\n }\n if (room.isCornerPoint(this.x, (this.y+this.height)-1)) {\n return true\n }\n if (room.isCornerPoint((this.x+this.width)-1, (this.y+this.height)-1)) {\n return true\n }\n return false\n }", "function getCorner(rect, num) {\n // console.log('Corner')\n // console.log('Case ' + num );\n const shift = svgWindowDifference();\n\n switch (num) {\n case 1:\n return [rect.x + shift, rect.y];\n case 2:\n return [rect.right + shift, rect.y];\n case 3:\n return [rect.x + shift, rect.bottom];\n case 4:\n return [rect.right + shift, rect.bottom];\n default:\n console.log(\"Unknown Corner Number\");\n }\n\n}", "getPoints(width, height) {\n /*\n Return star point coordinates as [x, y] arrays.\n */\n const cornerWidth = width < 13 ? 3 : 4;\n const cornerHeight = height < 13 ? 3 : 4;\n\n // Points is a list of [x, y] coordinates.\n // Initialize it with all the corner points.\n let points = [\n [cornerWidth, cornerHeight],\n [width - cornerWidth + 1, cornerHeight],\n [cornerWidth, height - cornerHeight + 1],\n [width - cornerWidth + 1, height - cornerHeight + 1],\n ];\n\n // Add a star point in the middle if the board has odd dimensions.\n if (width % 2 == 1 && height % 2 == 1) {\n points.push([Math.ceil(width / 2), Math.ceil(height / 2)]);\n }\n\n // Add star points between corners if the board is big enough and that\n // dimension is odd.\n if (width > 13 && width % 2 == 1) {\n points.push([Math.ceil(width / 2), cornerHeight]);\n points.push([Math.ceil(width / 2), height - cornerHeight + 1]);\n }\n if (height > 13 && height % 2 == 1) {\n points.push([cornerWidth, Math.ceil(height / 2)]);\n points.push([width - cornerWidth + 1, Math.ceil(height / 2)]);\n }\n\n return points;\n }", "function getBoxCorners(centerCornerPos, minLineLengthInitialY, maxLineLengthInitialY, minVPDistance, maxVPDistance, minDistortionDistance, maxDistortionDistance) {\n \n\n // Initialize arrays\n var correctCorners = [centerCornerPos,(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0)]\n var distortedCorners = [centerCornerPos,(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0)]\n var movementRestrictions = [-2,-2,-2,-2,-2,-2,-2,-2]\n\n // Set the lengths of the lines of the initial Y (must be in range (minLineLengthInitialY, maxLineLengthInitialY))\n var line1OfInitialYLength = minLineLengthInitialY + Math.random() * (maxLineLengthInitialY - minLineLengthInitialY)\n var line2OfInitialYLength = minLineLengthInitialY + Math.random() * (maxLineLengthInitialY - minLineLengthInitialY)\n var line3OfInitialYLength = minLineLengthInitialY + Math.random() * (maxLineLengthInitialY - minLineLengthInitialY)\n\n // Set the distances of the vanishing points to the center points (must be in range [line_OfInitialYLength, maxVPDistance])\n var VP1dist = line1OfInitialYLength + minVPDistance + Math.random() * (maxVPDistance - minVPDistance)\n var VP2dist = line2OfInitialYLength + minVPDistance + Math.random() * (maxVPDistance - minVPDistance)\n var VP3dist = line3OfInitialYLength + minVPDistance + Math.random() * (maxVPDistance - minVPDistance)\n\n\n\n // First line of initial Y is just a random direction\n var line1OfInitialYDegree = Math.random() * 360\n // Second line of initial Y is a random direction so that it is at least 90 degrees different from line 1\n var line2OfInitialYDegree = (line1OfInitialYDegree + 90 + Math.random() * 180) % 360\n // Third line of initial Y is a random direction to that it is at least 90 degrees different from line 1 and 2\n // Get the size of the smaller interval, then invert it (would be 360 - size), then subtract 180 (because of 90 degrees buffer to both lines)\n var line3Range = 180 - getAbsoluteDifferenceOfTwoDegreeValues(line1OfInitialYDegree, line2OfInitialYDegree)\n var startLine3 = getLowerEndOfBiggerIntervalOfTwoDegreeValues(line1OfInitialYDegree, line2OfInitialYDegree)\n var line3OfInitialYDegree = (startLine3 + 90 + Math.random() * line3Range) % 360\n \n\n // Calculate Positions of outer corners of the initial Y\n var corner1 = new Point(\n centerCornerPos.x + line1OfInitialYLength * Math.cos(deg2rad(line1OfInitialYDegree)),\n centerCornerPos.y + line1OfInitialYLength * Math.sin(deg2rad(line1OfInitialYDegree)),\n ) \n var corner2 = new Point(\n centerCornerPos.x + line2OfInitialYLength * Math.cos(deg2rad(line2OfInitialYDegree)),\n centerCornerPos.y + line2OfInitialYLength * Math.sin(deg2rad(line2OfInitialYDegree)),\n ) \n var corner3 = new Point(\n centerCornerPos.x + line3OfInitialYLength * Math.cos(deg2rad(line3OfInitialYDegree)),\n centerCornerPos.y + line3OfInitialYLength * Math.sin(deg2rad(line3OfInitialYDegree)),\n ) \n\n // Add corners to both return arrays (positions of initial Y are always correct)\n correctCorners[1] = corner1\n correctCorners[2] = corner2\n correctCorners[3] = corner3\n\n distortedCorners[1] = corner1\n distortedCorners[2] = corner2\n distortedCorners[3] = corner3\n \n // Calculate vanishing points\n var vanishingPoint1 = centerCornerPos.add( ( corner1.sub(centerCornerPos) ).normalized().mult(VP1dist) )\n var vanishingPoint2 = centerCornerPos.add( ( corner2.sub(centerCornerPos) ).normalized().mult(VP2dist) )\n var vanishingPoint3 = centerCornerPos.add( ( corner3.sub(centerCornerPos) ).normalized().mult(VP3dist) )\n\n // Calculate remaining correct corners\n // outer corners\n correctCorners[4] = getIntersectionOfTwoLinesThatIntersect(corner1, vanishingPoint2, corner2, vanishingPoint1)\n correctCorners[5] = getIntersectionOfTwoLinesThatIntersect(corner1, vanishingPoint3, corner3, vanishingPoint1)\n correctCorners[6] = getIntersectionOfTwoLinesThatIntersect(corner2, vanishingPoint3, corner3, vanishingPoint2)\n // back corner\n correctCorners[7] = getIntersectionOfTwoLinesThatIntersect(correctCorners[4], vanishingPoint3, correctCorners[6], vanishingPoint1)\n\n\n // Distort corners\n // TODO: Wrong values\n\n // Set movement restrictions for corners and distort box\n // Always set 4 as the immovable corner. Since angles are random this should be the same as choosing a random \n // value of [4,6]\n movementRestrictions[4] = -2\n movementRestrictions[5] = -1\n movementRestrictions[6] = -1\n movementRestrictions[7] = -1\n var restrictedCorner = 5 + Math.floor(Math.random() * 3);\n if (restrictedCorner == 5) {\n movementRestrictions[restrictedCorner] = 1\n } else if (restrictedCorner == 6) {\n movementRestrictions[restrictedCorner] = 2 \n } else {\n movementRestrictions[restrictedCorner] = 4\n }\n\n\n // Distort box\n distortedCorners[4] = correctCorners[4]\n var distortionDistance1 = minDistortionDistance + (Math.random() * (maxDistortionDistance-minDistortionDistance))\n var distortionDistance2 = minDistortionDistance + (Math.random() * (maxDistortionDistance-minDistortionDistance))\n var distortionDistance3 = minDistortionDistance + (Math.random() * (maxDistortionDistance-minDistortionDistance))\n distortedCorners[5] = distortCorner(correctCorners[5], distortionDistance1, movementRestrictions[5] == -1 ? null : correctCorners[movementRestrictions[5]])\n distortedCorners[6] = distortCorner(correctCorners[6], distortionDistance2, movementRestrictions[6] == -1 ? null : correctCorners[movementRestrictions[6]])\n distortedCorners[7] = distortCorner(correctCorners[7], distortionDistance3, movementRestrictions[7] == -1 ? null : correctCorners[movementRestrictions[7]])\n\n\n\n\n\n\n return [correctCorners, distortedCorners, movementRestrictions, [vanishingPoint1, vanishingPoint2, vanishingPoint3]]\n\n}", "adaptPoints(control){\n var buffer = [];\n /*Se pasa al plano XZ*/\n for (var i = 0; i < 7; i++){ //La curva tiene siempre 7 puntos de control\n var point = new Point((control[i].x - 200)/15, 0, (control[i].y - 212)/15);\n buffer.push(point);\n }\n return buffer;\n }", "function HornersMethod() {\n y = a[n];\n for (i = n - 1; i >= 0; i--) {\n y = x * y + a[i];\n }\n}", "pointList() {\n let bottom = this.bottom.screen,\n top = this.top.screen;\n\n return [bottom.x - bottom.w, bottom.y,\n bottom.x + bottom.w, bottom.y,\n top.x + top.w, top.y,\n top.x - top.w, top.y];\n }", "function transformActiveLayer( newCorners )\n{\n\tfunction pxToNumber( px )\n\t{\n\t\treturn px.as(\"px\");\n\t}\n\t\n\tvar saveUnits = app.preferences.rulerUnits;\n\tapp.preferences.rulerUnits = Units.PIXELS;\n\n\tvar i;\n\tvar setArgs = new ActionDescriptor();\n\tvar chanArg = new ActionReference();\n\t\n\tchanArg.putProperty( classChannel, keySelection );\n\tsetArgs.putReference( keyNull, chanArg );\n\t\n\tvar boundsDesc = new ActionDescriptor();\n\tvar layerBounds = app.activeDocument.activeLayer.bounds;\n\tboundsDesc.putUnitDouble( keyTop, unitPixels, pxToNumber( layerBounds[1] ) );\n\tboundsDesc.putUnitDouble( keyLeft, unitPixels, pxToNumber( layerBounds[0] ) );\n\tboundsDesc.putUnitDouble( keyRight, unitPixels, pxToNumber( layerBounds[2] ) );\n\tboundsDesc.putUnitDouble( keyBottom, unitPixels, pxToNumber( layerBounds[3] ) );\n\t\n\tsetArgs.putObject( keyTo, classRectangle, boundsDesc );\n\texecuteAction( eventSet, setArgs );\n\t\n\tvar result = new ActionDescriptor();\n\tvar args = new ActionDescriptor();\n\tvar quadRect = new ActionList();\n\tquadRect.putUnitDouble( unitPixels, pxToNumber( layerBounds[0] ) );\t// ActionList put is different from ActionDescriptor put\n\tquadRect.putUnitDouble( unitPixels, pxToNumber( layerBounds[1] ) );\n\tquadRect.putUnitDouble( unitPixels, pxToNumber( layerBounds[2] ) );\n\tquadRect.putUnitDouble( unitPixels, pxToNumber( layerBounds[3] ) );\n\t\n\tvar quadCorners = new ActionList();\n\tfor (i = 0; i < 4; ++i)\n\t{\n\t\tquadCorners.putUnitDouble( unitPixels, newCorners[i].fX );\n\t\tquadCorners.putUnitDouble( unitPixels, newCorners[i].fY );\n\t}\n\targs.putList( krectangleStr, quadRect );\n\targs.putList( kquadrilateralStr, quadCorners );\n\texecuteAction( eventTransform, args );\n\t\n\t// Deselect\n\tdeselArgs = new ActionDescriptor();\n\tdeselRef = new ActionReference();\n\tdeselRef.putProperty( classChannel, keySelection );\n\tdeselArgs.putReference( keyNull, deselRef );\n\tdeselArgs.putEnumerated( keyTo, typeOrdinal, enumNone );\n\texecuteAction( eventSet, deselArgs );\n\tapp.preferences.rulerUnits = saveUnits;\n}", "function selectiveRoundedRect(x, y, w, h, rTopLeft, rTopRight, rBottomRight, rBottomLeft) {\n return [\n ['M', x + rTopLeft, y],\n // top side\n ['L', x + w - rTopRight, y],\n // top right corner\n [\n 'C',\n x + w - rTopRight / 2,\n y,\n x + w,\n y + rTopRight / 2,\n x + w,\n y + rTopRight\n ],\n // right side\n ['L', x + w, y + h - rBottomRight],\n // bottom right corner\n [\n 'C', x + w, y + h - rBottomRight / 2,\n x + w - rBottomRight / 2, y + h,\n x + w - rBottomRight, y + h\n ],\n // bottom side\n ['L', x + rBottomLeft, y + h],\n // bottom left corner\n [\n 'C',\n x + rBottomLeft / 2,\n y + h,\n x,\n y + h - rBottomLeft / 2,\n x,\n y + h - rBottomLeft\n ],\n // left side\n ['L', x, y + rTopLeft],\n // top left corner\n ['C', x, y + rTopLeft / 2, x + rTopLeft / 2, y, x + rTopLeft, y],\n ['Z']\n ];\n }", "function selectiveRoundedRect(x, y, w, h, rTopLeft, rTopRight, rBottomRight, rBottomLeft) {\n return [\n ['M', x + rTopLeft, y],\n // top side\n ['L', x + w - rTopRight, y],\n // top right corner\n ['C', x + w - rTopRight / 2, y, x + w, y + rTopRight / 2, x + w, y + rTopRight],\n // right side\n ['L', x + w, y + h - rBottomRight],\n // bottom right corner\n ['C', x + w, y + h - rBottomRight / 2, x + w - rBottomRight / 2, y + h, x + w - rBottomRight, y + h],\n // bottom side\n ['L', x + rBottomLeft, y + h],\n // bottom left corner\n ['C', x + rBottomLeft / 2, y + h, x, y + h - rBottomLeft / 2, x, y + h - rBottomLeft],\n // left side\n ['L', x, y + rTopLeft],\n // top left corner\n ['C', x, y + rTopLeft / 2, x + rTopLeft / 2, y, x + rTopLeft, y],\n ['Z']\n ];\n}", "static polygonInsidePolygon(insideCorners, outsideCorners, start) {\n for (var tI = 0; tI < insideCorners.length; tI++) {\n let flag = Utils.pointInPolygon(insideCorners[tI], outsideCorners, start);\n if (!flag) {\n return false;\n }\n }\n return true;\n }", "function constructCoordinates(cords) {\n // Corners\n // 1 - bottom left\n // 2 - top left\n // 3 - top right\n // 4 - bottom right\n\n // Note: 0,0 starts in top left. Remember this when doing calculations for corners, the y axis calculations\n // need to be flipped vs bottom left orientation\n\t\t\tvar lineWidth = getLineWidth();\n var r = lineWidth / 2;\n return {\n 1: {\n x: cords.x - r,\n y: cords.y + r\n },\n 2: {\n x: cords.x - r,\n y: cords.y - r\n },\n 3: {\n x: cords.x + r,\n y: cords.y - r\n },\n 4: {\n x: cords.x + r,\n y: cords.y + r\n }\n }\n }", "isCorner(x, y) {\n //check if the random number give a cell in the corner\n if (x == 1) {\n if (y >= 1 && y <= spawnCorner)\n return true;\n else\n if (y <= this.columns && y >= this.columns - spawnCorner - 1)\n return true;\n }\n if (x == this.rows - 2) {\n if (y >= 1 && y <= spawnCorner)\n return true;\n else\n if (y <= this.columns && y >= this.columns - spawnCorner - 1)\n return true;\n }\n if (y == 1) {\n if (x >= 1 && x <= spawnCorner)\n return true;\n else\n if (x <= this.rows && x >= this.rows - spawnCorner - 1)\n return true;\n }\n if (y == this.columns - 2) {\n if (x >= 1 && x <= spawnCorner)\n return true;\n else\n if (x <= this.rows && y >= this.rows - spawnCorner - 1)\n return true;\n }\n return false;\n }", "function defineRectangleData() {\n // baseLength defined above, usually == 100\n var len = baseLength;\n // Corner vertices on a rectangle\n rectCorners = [\n // if we're facing the -z direction:\n // the front face\n [-len, len, len], // 0 top left\n [-len, -len, len], // 1 bot left\n [ len, len, len], // 2 top right\n [ len, -len, len], // 3 bot right\n\n // the back face\n [ len, len, -len], // 4 top right\n [ len, -len, -len], // 5 bot right\n [-len, len, -len], // 6 top left\n [-len, -len, -len], // 7 bot left\n ];\n}", "calculateControlPoints(){\n \n\tthis.controlPoints = \n\t [ \n [\n [-this.base/2, 0, 0, 1],\n [-this.base/2, 0.7*this.base, 0, 1],\n [this.base/2, 0.7*this.base, 0 , 1],\n [this.base/2, 0, 0, 1]\n ],\n\n [\n [-this.top/2, 0, this.height, 1],\n [-this.top/2, 0.7*this.top, this.height, 1],\n [this.top/2, 0.7*this.top, this.height, 1],\n [this.top/2, 0, this.height, 1]\n ],\n ];\n\n \n }", "function makeCrossings(pathinfo) {\n\t var z = pathinfo[0].z,\n\t m = z.length,\n\t n = z[0].length, // we already made sure z isn't ragged in interp2d\n\t twoWide = m === 2 || n === 2,\n\t xi,\n\t yi,\n\t startIndices,\n\t ystartIndices,\n\t label,\n\t corners,\n\t mi,\n\t pi,\n\t i;\n\t\n\t for(yi = 0; yi < m - 1; yi++) {\n\t ystartIndices = [];\n\t if(yi === 0) ystartIndices = ystartIndices.concat(BOTTOMSTART);\n\t if(yi === m - 2) ystartIndices = ystartIndices.concat(TOPSTART);\n\t\n\t for(xi = 0; xi < n - 1; xi++) {\n\t startIndices = ystartIndices.slice();\n\t if(xi === 0) startIndices = startIndices.concat(LEFTSTART);\n\t if(xi === n - 2) startIndices = startIndices.concat(RIGHTSTART);\n\t\n\t label = xi + ',' + yi;\n\t corners = [[z[yi][xi], z[yi][xi + 1]],\n\t [z[yi + 1][xi], z[yi + 1][xi + 1]]];\n\t for(i = 0; i < pathinfo.length; i++) {\n\t pi = pathinfo[i];\n\t mi = getMarchingIndex(pi.level, corners);\n\t if(!mi) continue;\n\t\n\t pi.crossings[label] = mi;\n\t if(startIndices.indexOf(mi) !== -1) {\n\t pi.starts.push([xi, yi]);\n\t if(twoWide && startIndices.indexOf(mi,\n\t startIndices.indexOf(mi) + 1) !== -1) {\n\t // the same square has starts from opposite sides\n\t // it's not possible to have starts on opposite edges\n\t // of a corner, only a start and an end...\n\t // but if the array is only two points wide (either way)\n\t // you can have starts on opposite sides.\n\t pi.starts.push([xi, yi]);\n\t }\n\t }\n\t }\n\t }\n\t }\n\t}", "function upperRightCorner(x,y,w,h,angle){\n var coor = new Array();\n \n angle = toRadians(angle);\n var angle_off = Math.tan(h/w);\n var distance = (Math.sqrt(Math.pow(w,2) +Math.pow(h,2)))/2;\n var angle_rel = angle + angle_off;\n var relPoint = toRect(distance,angle_rel);\n \n var cx = x + (w/2);\n var cy = y + (h/2);\n \n coor[0] = cx + relPoint[0];\n coor[1] = cy + relPoint[1];\n \n return coor;\n }", "function upperRightCorner(x,y,w,h,angle){\n var coor = new Array();\n \n angle = toRadians(angle);\n var angle_off = Math.tan(h/w);\n var distance = (Math.sqrt(Math.pow(w,2) +Math.pow(h,2)))/2;\n var angle_rel = angle + angle_off;\n var relPoint = toRect(distance,angle_rel);\n \n var cx = x + (w/2);\n var cy = y + (h/2);\n \n coor[0] = cx + relPoint[0];\n coor[1] = cy + relPoint[1];\n \n return coor;\n }", "constructor () {\n this.grid[this.topLeftCorner] = 'W';\n }", "function squareCornerWin(){\n}", "initPoints() {\n this._points = [\n { id: 1, x: 4845196.3236, y: 8538521.2622 },\n { id: 40991, x: 4833644.7969, y: 8851764.3741 },\n { id: 3, x: 4840744.855, y: 8533088.6782 },\n { id: 49192, x: 4886186.3963, y: 8735776.8481 },\n { id: 40994, x: 4831870.068, y: 8843991.9019 },\n { id: 6, x: 4837763.3101, y: 8522427.4171 },\n { id: 7, x: 4837078.6992, y: 8539194.421 },\n { id: 49196, x: 4882592.8273, y: 8724040.2113 },\n { id: 40999, x: 4829746.821, y: 8859707.0537 },\n { id: 49198, x: 4882361.9601, y: 8731239.2658 },\n { id: 45108, x: 4785255.6563, y: 8736415.4892 },\n { id: 45111, x: 4783436.382, y: 8741565.3575 },\n { id: 45112, x: 4781506.5049, y: 8723980.5635 },\n { id: 45115, x: 4778448.2647, y: 8730727.894 },\n { id: 45121, x: 4774029.912, y: 8737457.7923 },\n { id: 45123, x: 4771837.4088, y: 8730847.2473 },\n { id: 45124, x: 4770400.618, y: 8724229.9787 },\n { id: 45126, x: 4770499.4249, y: 8742629.9617 },\n { id: 57430, x: 4650775.8241, y: 8564243.1184 },\n { id: 57431, x: 4649590.2675, y: 8574603.1762 },\n { id: 57432, x: 4648063.0178, y: 8582007.6803 },\n { id: 57433, x: 4646342.5335, y: 8566964.3161 },\n { id: 24642, x: 4671382.7823, y: 8648558.4637 },\n { id: 8247, x: 4852374.9012, y: 8441466.4075 },\n { id: 24645, x: 4669805.9782, y: 8656269.1397 },\n { id: 8249, x: 4850390.8286, y: 8449553.921 },\n { id: 57437, x: 4643507.9267, y: 8582628.1467 },\n { id: 57438, x: 4642690.6807, y: 8575128.4801 },\n { id: 57440, x: 4641127.5278, y: 8568976.0612 },\n { id: 24651, x: 4665307.5445, y: 8662304.316 },\n { id: 8255, x: 4846724.9528, y: 8444503.3914 },\n { id: 24652, x: 4664368.3197, y: 8645368.2937 },\n { id: 57444, x: 4637203.741, y: 8581061.2033 },\n { id: 57445, x: 4636612.5921, y: 8571933.0244 },\n { id: 57447, x: 4634995.3452, y: 8565334.4165 },\n { id: 24656, x: 4662356.542, y: 8651817.1346 },\n { id: 8260, x: 4842963.0587, y: 8449164.7733 },\n { id: 24657, x: 4661955.5825, y: 8658406.4574 },\n { id: 24658, x: 4661977.6057, y: 8663118.0352 },\n { id: 8262, x: 4841144.4604, y: 8458800.7543 },\n { id: 8264, x: 4839893.8899, y: 8442815.5277 },\n { id: 24662, x: 4658775.3503, y: 8645983.8338 },\n { id: 8266, x: 4837333.3711, y: 8456810.2902 },\n { id: 24663, x: 4657881.5861, y: 8664044.317 },\n { id: 8267, x: 4837625.327, y: 8447787.0568 },\n { id: 24664, x: 4657462.9008, y: 8654224.8825 },\n { id: 24667, x: 4655247.0718, y: 8659177.7171 },\n { id: 36978, x: 4815446.5932, y: 8629092.0781 },\n { id: 36980, x: 4814068.7107, y: 8639488.5807 },\n { id: 36986, x: 4808852.2493, y: 8629707.6407 },\n { id: 36987, x: 4807414.7475, y: 8622297.8737 },\n { id: 36993, x: 4802238.9547, y: 8640756.5897 },\n { id: 36994, x: 4801734.0043, y: 8630205.1323 },\n { id: 61596, x: 4759486.6127, y: 8429038.0365 },\n { id: 61597, x: 4758641.6908, y: 8438783.8508 },\n { id: 61599, x: 4758366.8187, y: 8424841.386 },\n { id: 49302, x: 4883959.4894, y: 8716189.4969 },\n { id: 61601, x: 4758323.8844, y: 8419697.473 },\n { id: 49304, x: 4882412.6839, y: 8708668.917 },\n { id: 61602, x: 4756967.4668, y: 8434411.0399 },\n { id: 20612, x: 4727247.3073, y: 8712704.8842 },\n { id: 20615, x: 4726347.0307, y: 8719332.2008 },\n { id: 61608, x: 4754305.9834, y: 8428351.3131 },\n { id: 20618, x: 4721766.3141, y: 8719011.1448 },\n { id: 20619, x: 4721402.7657, y: 8711204.4786 },\n { id: 61612, x: 4752959.9224, y: 8422787.2783 },\n { id: 20624, x: 4716782.7853, y: 8721143.3353 },\n { id: 61615, x: 4750986.8881, y: 8434632.3865 },\n { id: 20625, x: 4716063.5516, y: 8709786.4158 },\n { id: 20628, x: 4712473.3755, y: 8717753.5293 },\n { id: 53421, x: 4687440.4836, y: 8532828.8067 },\n { id: 53422, x: 4686510.5651, y: 8521368.1555 },\n { id: 61621, x: 4748065.9641, y: 8418657.8795 },\n { id: 12434, x: 4778935.7205, y: 8451080.8125 },\n { id: 61623, x: 4747015.4702, y: 8423560.8911 },\n { id: 12435, x: 4777336.1153, y: 8457338.597 },\n { id: 61624, x: 4745858.8766, y: 8428891.7655 },\n { id: 53426, x: 4681765.1535, y: 8539545.2625 },\n { id: 12436, x: 4776343.4395, y: 8442966.2149 },\n { id: 61625, x: 4744681.0893, y: 8435384.0016 },\n { id: 53427, x: 4679518.0852, y: 8527123.3353 },\n { id: 53428, x: 4678737.5137, y: 8532985.4268 },\n { id: 53432, x: 4672808.2188, y: 8523080.5666 },\n { id: 53433, x: 4671743.5054, y: 8537772.7908 },\n { id: 12443, x: 4772971.6282, y: 8439392.5927 },\n { id: 12444, x: 4771278.742, y: 8454979.7101 },\n { id: 12447, x: 4769632.7761, y: 8447176.1296 },\n { id: 154, x: 4837546.2851, y: 8503768.8028 },\n { id: 155, x: 4837082.798, y: 8512085.8075 },\n { id: 12453, x: 4766703.0307, y: 8439750.1014 },\n { id: 69859, x: 4684010.9171, y: 8436196.4252 },\n { id: 69861, x: 4682838.5734, y: 8425470.4579 },\n { id: 32973, x: 4857122.7117, y: 8695990.1652 },\n { id: 32976, x: 4853541.795, y: 8687079.3727 },\n { id: 69869, x: 4675012.1618, y: 8435702.9995 },\n { id: 32978, x: 4849736.0425, y: 8692972.3151 },\n { id: 32979, x: 4849108.2752, y: 8685361.5363 },\n { id: 32981, x: 4846768.5624, y: 8700386.5976 },\n { id: 32984, x: 4842835.6161, y: 8687112.8444 },\n { id: 4296, x: 4798840.4037, y: 8564652.3306 },\n { id: 4297, x: 4798287.8631, y: 8573882.1154 },\n { id: 28893, x: 4651620.4881, y: 8635263.597 },\n { id: 16596, x: 4748553.6246, y: 8775562.7244 },\n { id: 16597, x: 4747277.249, y: 8782411.3328 },\n { id: 41192, x: 4825411.4956, y: 8850441.5601 },\n { id: 28895, x: 4649871.1415, y: 8625167.2618 },\n { id: 41194, x: 4824765.7621, y: 8843780.4093 },\n { id: 28898, x: 4647233.5759, y: 8632798.3433 },\n { id: 16601, x: 4742928.8987, y: 8767227.0928 },\n { id: 4304, x: 4793155.612, y: 8565362.3567 },\n { id: 28899, x: 4646960.8939, y: 8637513.7143 },\n { id: 28901, x: 4647065.1338, y: 8643091.7158 },\n { id: 16604, x: 4740241.5164, y: 8771611.6541 },\n { id: 41200, x: 4821755.3087, y: 8857313.4801 },\n { id: 16606, x: 4740095.6642, y: 8777148.6227 },\n { id: 28904, x: 4643059.9294, y: 8629307.5664 },\n { id: 16607, x: 4739331.4793, y: 8786015.9181 },\n { id: 211, x: 4841382.8941, y: 8574380.9496 },\n { id: 41202, x: 4819000.5697, y: 8849289.5667 },\n { id: 28906, x: 4643159.1115, y: 8643284.5583 },\n { id: 4312, x: 4787818.6312, y: 8574921.7418 },\n { id: 28907, x: 4642769.6994, y: 8638963.8339 },\n { id: 28908, x: 4642374.5974, y: 8635140.5631 },\n { id: 4314, x: 4786838.4559, y: 8563494.7058 },\n { id: 215, x: 4837948.9329, y: 8562787.8843 },\n { id: 41206, x: 4816393.974, y: 8857630.5762 },\n { id: 28909, x: 4640562.8239, y: 8631074.2336 },\n { id: 216, x: 4838142.6879, y: 8569979.4298 },\n { id: 28913, x: 4639526.3344, y: 8644635.0087 },\n { id: 16616, x: 4731984.8403, y: 8781553.4017 },\n { id: 4319, x: 4783071.6172, y: 8571201.0678 },\n { id: 28916, x: 4636531.2125, y: 8639719.7747 },\n { id: 28917, x: 4636309.6663, y: 8635408.9937 },\n { id: 49413, x: 4890823.6958, y: 8760810.1049 },\n { id: 45314, x: 4783301.9421, y: 8715570.9869 },\n { id: 28918, x: 4635709.6328, y: 8628809.8305 },\n { id: 49418, x: 4882680.5438, y: 8778124.8092 },\n { id: 49419, x: 4882110.1834, y: 8765438.536 },\n { id: 49421, x: 4881310.4756, y: 8772592.5879 },\n { id: 45322, x: 4777319.9389, y: 8710693.9784 },\n { id: 45323, x: 4775568.1393, y: 8706510.1336 },\n { id: 45324, x: 4775869.6493, y: 8718632.7153 },\n { id: 12536, x: 4777692.2303, y: 8434815.5071 },\n { id: 45330, x: 4768555.4905, y: 8713701.3537 },\n { id: 12539, x: 4776659.9744, y: 8428380.1498 },\n { id: 45332, x: 4767568.0541, y: 8708627.1262 },\n { id: 12540, x: 4775456.5012, y: 8423833.0984 },\n { id: 12544, x: 4772479.0176, y: 8432247.1443 },\n { id: 12547, x: 4770470.3044, y: 8436314.1842 },\n { id: 12548, x: 4768934.4016, y: 8419734.0048 },\n { id: 12549, x: 4768639.3872, y: 8427181.1184 },\n { id: 255, x: 4845110.0987, y: 8546729.2103 },\n { id: 259, x: 4841604.9114, y: 8553640.6107 },\n { id: 260, x: 4840853.3019, y: 8541480.2643 },\n { id: 65846, x: 4703934.6143, y: 8401892.0061 },\n { id: 262, x: 4838371.5187, y: 8544904.4627 },\n { id: 65848, x: 4703421.9803, y: 8409776.9106 },\n { id: 65853, x: 4695224.3211, y: 8412051.1341 },\n { id: 65859, x: 4690262.2901, y: 8404584.5274 },\n { id: 20785, x: 4729215.8743, y: 8728025.9993 },\n { id: 20786, x: 4727391.8577, y: 8733698.7694 },\n { id: 20788, x: 4725810.498, y: 8742993.5002 },\n { id: 20790, x: 4724162.6782, y: 8725641.8225 },\n { id: 20793, x: 4721902.7791, y: 8732512.0606 },\n { id: 20797, x: 4719274.3126, y: 8740345.4916 },\n { id: 20798, x: 4718735.9551, y: 8736031.2095 },\n { id: 20801, x: 4716118.8574, y: 8745789.1329 },\n { id: 57693, x: 4632315.3087, y: 8571117.1988 },\n { id: 20802, x: 4714447.6208, y: 8729809.6305 },\n { id: 57695, x: 4630260.3685, y: 8580316.583 },\n { id: 20805, x: 4713071.7449, y: 8737354.9842 },\n { id: 57697, x: 4629678.6652, y: 8574660.7259 },\n { id: 8509, x: 4850578.9858, y: 8430361.7403 },\n { id: 57702, x: 4624897.4416, y: 8569261.133 },\n { id: 8514, x: 4847110.0358, y: 8420284.3172 },\n { id: 57703, x: 4623956.8043, y: 8563605.1537 },\n { id: 8515, x: 4846318.6683, y: 8437846.0786 },\n { id: 57704, x: 4623611.4643, y: 8575351.9171 },\n { id: 57705, x: 4623531.3613, y: 8581380.7974 },\n { id: 37210, x: 4835145.7911, y: 8680941.2719 },\n { id: 37211, x: 4834965.4487, y: 8676228.8768 },\n { id: 37212, x: 4834227.5845, y: 8671034.5829 },\n { id: 57708, x: 4621549.2709, y: 8567804.7674 },\n { id: 37213, x: 4833698.8527, y: 8665783.8714 },\n { id: 57710, x: 4619845.8701, y: 8575663.42 },\n { id: 37216, x: 4829693.076, y: 8661734.3745 },\n { id: 8524, x: 4840265.7713, y: 8429645.7882 },\n { id: 37219, x: 4827554.7576, y: 8680148.0247 },\n { id: 57715, x: 4616587.5891, y: 8570299.013 },\n { id: 37220, x: 4826867.9773, y: 8674547.7427 },\n { id: 57717, x: 4615627.0313, y: 8577886.2287 },\n { id: 70026, x: 4685533.9566, y: 8451108.6709 },\n { id: 70029, x: 4682847.8049, y: 8444694.8573 },\n { id: 33141, x: 4852567.6896, y: 8676283.5465 },\n { id: 33143, x: 4852073.142, y: 8669766.3451 },\n { id: 33147, x: 4847918.9192, y: 8663990.3472 },\n { id: 70041, x: 4672139.8671, y: 8453433.5074 },\n { id: 70042, x: 4671315.5787, y: 8439476.4201 },\n { id: 33151, x: 4845715.6409, y: 8676397.0296 },\n { id: 33157, x: 4840936.9928, y: 8669040.4401 },\n { id: 24985, x: 4668807.7302, y: 8643206.4267 },\n { id: 24987, x: 4667772.225, y: 8636716.6527 },\n { id: 24988, x: 4666006.5614, y: 8631514.0125 },\n { id: 24994, x: 4661687.9395, y: 8640229.9524 },\n { id: 24996, x: 4658356.5306, y: 8631942.9465 },\n { id: 24999, x: 4656108.9299, y: 8637774.5863 },\n { id: 25000, x: 4654754.9499, y: 8627472.7345 },\n { id: 25001, x: 4653540.5659, y: 8630712.8563 },\n { id: 16806, x: 4748500.0003, y: 8752939.7574 },\n { id: 16811, x: 4744197.1825, y: 8749627.6362 },\n { id: 16815, x: 4741338.3237, y: 8758716.8525 },\n { id: 70103, x: 4664964.2249, y: 8451047.1805 },\n { id: 16817, x: 4739965.3745, y: 8748317.9856 },\n { id: 70106, x: 4660960.9343, y: 8439783.4252 },\n { id: 16821, x: 4736934.8524, y: 8765354.2687 },\n { id: 70109, x: 4658422.5005, y: 8453722.642 },\n { id: 16826, x: 4734065.1019, y: 8755338.621 },\n { id: 70114, x: 4651751.0091, y: 8448752.2424 },\n { id: 16827, x: 4732833.6814, y: 8748826.8871 },\n { id: 66018, x: 4707297.8897, y: 8381375.2603 },\n { id: 66026, x: 4699342.3582, y: 8386123.4877 },\n { id: 66028, x: 4698322.0743, y: 8396979.9259 },\n { id: 4543, x: 4778733.2341, y: 8577088.4885 },\n { id: 41435, x: 4824414.6358, y: 8827905.1508 },\n { id: 41437, x: 4822507.168, y: 8836577.2438 },\n { id: 4546, x: 4777522.3553, y: 8564871.387 },\n { id: 66033, x: 4694836.3949, y: 8382738.6968 },\n { id: 41445, x: 4816879.5564, y: 8838439.0084 },\n { id: 41447, x: 4815229.6338, y: 8830178.4105 },\n { id: 4556, x: 4771029.4327, y: 8572882.736 },\n { id: 4560, x: 4768511.7242, y: 8580840.9903 },\n { id: 4562, x: 4766524.7601, y: 8564835.4789 },\n { id: 57852, x: 4632709.1336, y: 8546396.1578 },\n { id: 16862, x: 4754446.0448, y: 8792182.4664 },\n { id: 57853, x: 4632879.7801, y: 8561497.1511 },\n { id: 16863, x: 4753478.4325, y: 8799447.422 },\n { id: 4566, x: 4764728.3967, y: 8575775.0557 },\n { id: 61954, x: 4756959.5054, y: 8452288.6795 },\n { id: 49657, x: 4893131.1819, y: 8741699.6035 },\n { id: 61955, x: 4756509.0957, y: 8457090.6428 },\n { id: 61956, x: 4756014.4021, y: 8443468.3688 },\n { id: 57857, x: 4628124.7258, y: 8552666.0854 },\n { id: 49661, x: 4890537.3426, y: 8749196.2107 },\n { id: 57860, x: 4624837.4908, y: 8546554.7066 },\n { id: 61960, x: 4751810.4902, y: 8448850.8157 },\n { id: 475, x: 4832556.0028, y: 8516169.9961 },\n { id: 61962, x: 4751091.5334, y: 8457428.0913 },\n { id: 477, x: 4830522.5745, y: 8509763.2798 },\n { id: 61963, x: 4749608.0521, y: 8440032.5861 },\n { id: 57864, x: 4621903.2777, y: 8550007.4327 },\n { id: 49666, x: 4888604.6573, y: 8756662.8034 },\n { id: 61964, x: 4748639.3542, y: 8453112.7135 },\n { id: 49667, x: 4887777.3225, y: 8741464.3253 },\n { id: 20974, x: 4710512.1161, y: 8726610.2275 },\n { id: 479, x: 4829450.3734, y: 8501009.9382 },\n { id: 20976, x: 4709852.5505, y: 8740955.7227 },\n { id: 61967, x: 4746128.8888, y: 8452009.9363 },\n { id: 20977, x: 4709394.5453, y: 8745403.6732 },\n { id: 61968, x: 4745442.7762, y: 8457386.137 },\n { id: 57869, x: 4617443.236, y: 8555517.7228 },\n { id: 20978, x: 4708013.1619, y: 8730758.9389 },\n { id: 61969, x: 4745233.4922, y: 8440776.3017 },\n { id: 49672, x: 4885178.249, y: 8750886.2229 },\n { id: 484, x: 4825331.5471, y: 8501443.8635 },\n { id: 485, x: 4825734.9125, y: 8514632.761 },\n { id: 20981, x: 4704263.458, y: 8737981.2182 },\n { id: 20982, x: 4703822.1015, y: 8728798.9087 },\n { id: 487, x: 4823987.3429, y: 8508510.0644 },\n { id: 20983, x: 4702359.3021, y: 8733663.3461 },\n { id: 20984, x: 4702019.979, y: 8726360.7794 },\n { id: 20986, x: 4700861.3395, y: 8742876.7171 },\n { id: 493, x: 4819023.8385, y: 8501372.4258 },\n { id: 20992, x: 4696281.8876, y: 8733175.6031 },\n { id: 29192, x: 4652746.0283, y: 8650514.2304 },\n { id: 20994, x: 4694679.0276, y: 8741805.3068 },\n { id: 29193, x: 4651225.6965, y: 8645060.3781 },\n { id: 29194, x: 4651463.5398, y: 8661552.2134 },\n { id: 29195, x: 4650944.7322, y: 8655434.9539 },\n { id: 29198, x: 4647465.7827, y: 8655418.4811 },\n { id: 49695, x: 4764772.3861, y: 8501250.5202 },\n { id: 29202, x: 4645978.7274, y: 8659325.0012 },\n { id: 45599, x: 4799305.7561, y: 8753815.5975 },\n { id: 45601, x: 4796542.4044, y: 8761275.0003 },\n { id: 29207, x: 4641569.7632, y: 8655218.5133 },\n { id: 45604, x: 4793280.7898, y: 8747027.567 },\n { id: 29209, x: 4640788.9037, y: 8660699.8683 },\n { id: 8714, x: 4843200.0241, y: 8497440.3446 },\n { id: 8715, x: 4843504.3958, y: 8484158.7755 },\n { id: 45607, x: 4790457.73, y: 8754611.0294 },\n { id: 8717, x: 4840626.9997, y: 8490518.6227 },\n { id: 45610, x: 4788080.3603, y: 8762794.2187 },\n { id: 29216, x: 4636583.1822, y: 8652435.0102 },\n { id: 8721, x: 4837919.1645, y: 8482202.0182 },\n { id: 29217, x: 4636529.6799, y: 8657115.3002 },\n { id: 37420, x: 4839192.0381, y: 8698484.5386 },\n { id: 37424, x: 4833161.1317, y: 8685492.6952 },\n { id: 37425, x: 4833093.7519, y: 8693478.2403 },\n { id: 16933, x: 4757943.5748, y: 8815865.2542 },\n { id: 37429, x: 4829680.2456, y: 8699277.8109 },\n { id: 37430, x: 4827716.8906, y: 8688814.0622 },\n { id: 33332, x: 4877198.1998, y: 8717704.9556 },\n { id: 16936, x: 4754970.3786, y: 8811386.4788 },\n { id: 33335, x: 4875215.0529, y: 8706156.0081 },\n { id: 37435, x: 4822340.1177, y: 8686697.0548 },\n { id: 37437, x: 4821969.253, y: 8696792.6717 },\n { id: 33341, x: 4870804.1933, y: 8713672.1884 },\n { id: 33345, x: 4866585.159, y: 8703705.6653 },\n { id: 33350, x: 4863278.3241, y: 8719556.066 },\n { id: 33351, x: 4861936.5992, y: 8711792.9938 },\n { id: 49784, x: 4746553.0635, y: 8511610.4528 },\n { id: 53895, x: 4666998.9222, y: 8527685.7334 },\n { id: 53897, x: 4665575.7197, y: 8533468.1507 },\n { id: 53901, x: 4661556.0389, y: 8538780.1542 },\n { id: 41606, x: 4843453.6392, y: 8864930.0851 },\n { id: 53908, x: 4653006.9465, y: 8537139.6176 },\n { id: 41612, x: 4833907.2648, y: 8871077.3014 },\n { id: 41615, x: 4829564.2059, y: 8867328.5101 },\n { id: 49828, x: 4749377.4988, y: 8539149.5762 },\n { id: 49830, x: 4747071.7496, y: 8521202.2762 },\n { id: 49831, x: 4746824.4196, y: 8531672.8673 },\n { id: 12941, x: 4795447.0686, y: 8470384.8893 },\n { id: 12943, x: 4794594.7468, y: 8475257.0691 },\n { id: 12944, x: 4794681.4661, y: 8459965.4285 },\n { id: 12945, x: 4792636.3048, y: 8465105.6843 },\n { id: 12949, x: 4789788.8454, y: 8469572.2253 },\n { id: 12952, x: 4788363.0165, y: 8475375.7997 },\n { id: 12953, x: 4788515.5104, y: 8462320.483 },\n { id: 12957, x: 4784667.9907, y: 8460073.062 },\n { id: 12958, x: 4784128.5686, y: 8470685.3928 },\n { id: 8861, x: 4850907.7149, y: 8462718.2729 },\n { id: 58050, x: 4651286.1153, y: 8594874.0302 },\n { id: 12961, x: 4781897.1933, y: 8464777.2225 },\n { id: 8862, x: 4850409.6292, y: 8472179.265 },\n { id: 58051, x: 4648589.8933, y: 8587888.2231 },\n { id: 58053, x: 4647364.8782, y: 8601791.5723 },\n { id: 58054, x: 4646684.0306, y: 8592984.6472 },\n { id: 8868, x: 4845746.0711, y: 8475885.3063 },\n { id: 58057, x: 4642256.4253, y: 8589117.0426 },\n { id: 8870, x: 4845728.7383, y: 8460124.4251 },\n { id: 58059, x: 4641113.8802, y: 8599262.9502 },\n { id: 8871, x: 4843929.6668, y: 8469411.0607 },\n { id: 29370, x: 4632144.3863, y: 8651743.484 },\n { id: 58064, x: 4635582.5368, y: 8594541.406 },\n { id: 29371, x: 4631318.2118, y: 8646187.6109 },\n { id: 58065, x: 4634792.3039, y: 8585159.1609 },\n { id: 29372, x: 4631802.188, y: 8665154.5049 },\n { id: 29373, x: 4630724.9392, y: 8654858.4696 },\n { id: 8879, x: 4838133.7511, y: 8471937.9166 },\n { id: 41672, x: 4822005.7629, y: 8864828.127 },\n { id: 8881, x: 4828445.414, y: 8378764.8144 },\n { id: 17080, x: 4748423.4395, y: 8814332.8774 },\n { id: 17081, x: 4745691.1405, y: 8818112.9112 },\n { id: 29380, x: 4625100.5814, y: 8646485.7623 },\n { id: 29381, x: 4624275.6954, y: 8656728.6524 },\n { id: 17084, x: 4742596.0805, y: 8807783.9981 },\n { id: 29382, x: 4623866.4001, y: 8661934.6953 },\n { id: 17085, x: 4739529.681, y: 8817204.9252 },\n { id: 29383, x: 4623015.118, y: 8650525.342 },\n { id: 691, x: 4836288.2447, y: 8532935.9735 },\n { id: 693, x: 4835158.8636, y: 8538763.6823 },\n { id: 29390, x: 4617144.5351, y: 8656630.7413 },\n { id: 25292, x: 4690126.8467, y: 8674030.3924 },\n { id: 25293, x: 4689990.2667, y: 8681410.5557 },\n { id: 699, x: 4829447.5043, y: 8523594.0837 },\n { id: 700, x: 4829560.7298, y: 8532916.0795 },\n { id: 4801, x: 4780864.9237, y: 8557245.7687 },\n { id: 702, x: 4827910.7803, y: 8538081.312 },\n { id: 25297, x: 4686938.9483, y: 8681550.7473 },\n { id: 70387, x: 4667676.0465, y: 8429626.6523 },\n { id: 25298, x: 4684492.9735, y: 8671182.9436 },\n { id: 25299, x: 4684428.6779, y: 8678642.4498 },\n { id: 4804, x: 4778051.8854, y: 8550238.6239 },\n { id: 70389, x: 4667209.1662, y: 8422439.6821 },\n { id: 709, x: 4821839.4248, y: 8527494.6026 },\n { id: 25304, x: 4678654.0745, y: 8672190.4295 },\n { id: 25305, x: 4678496.3579, y: 8680805.4593 },\n { id: 711, x: 4819670.2541, y: 8533461.2159 },\n { id: 70395, x: 4658395.1271, y: 8424818.5627 },\n { id: 4811, x: 4773409.8443, y: 8543995.0958 },\n { id: 25307, x: 4676805.3921, y: 8666939.3506 },\n { id: 4812, x: 4773247.017, y: 8556403.0085 },\n { id: 25310, x: 4673896.2234, y: 8684912.5107 },\n { id: 70400, x: 4654554.292, y: 8428060.3854 },\n { id: 25311, x: 4672847.869, y: 8677204.1038 },\n { id: 70401, x: 4653586.1974, y: 8418136.0025 },\n { id: 4824, x: 4765068.6407, y: 8552909.5021 },\n { id: 4825, x: 4763417.2916, y: 8541913.7245 },\n { id: 33532, x: 4876448.8303, y: 8739719.6005 },\n { id: 45830, x: 4803777.5306, y: 8781598.8451 },\n { id: 45831, x: 4801265.8848, y: 8768485.416 },\n { id: 33534, x: 4873928.4571, y: 8730593.6443 },\n { id: 45832, x: 4800481.9672, y: 8778267.0345 },\n { id: 33535, x: 4872764.0313, y: 8722496.2763 },\n { id: 33537, x: 4871332.9743, y: 8733944.5039 },\n { id: 45837, x: 4796441.7865, y: 8772932.3716 },\n { id: 33542, x: 4866472.3784, y: 8740563.7341 },\n { id: 45840, x: 4793980.3499, y: 8782320.3501 },\n { id: 45841, x: 4792585.5728, y: 8769392.7344 },\n { id: 45842, x: 4791875.1686, y: 8775145.8129 },\n { id: 33546, x: 4863110.6008, y: 8727175.7812 },\n { id: 54050, x: 4665196.6263, y: 8505383.9546 },\n { id: 54052, x: 4662857.8674, y: 8512784.6368 },\n { id: 54057, x: 4657782.1742, y: 8508199.6768 },\n { id: 54059, x: 4656162.7228, y: 8501454.3045 },\n { id: 54061, x: 4654642.6258, y: 8518665.4194 },\n { id: 54064, x: 4651818.7051, y: 8512384.9743 },\n { id: 49969, x: 4739708.7799, y: 8540621.526 },\n { id: 58171, x: 4632628.4325, y: 8596328.6231 },\n { id: 49973, x: 4735866.3884, y: 8526625.8721 },\n { id: 49975, x: 4735015.304, y: 8533519.3512 },\n { id: 58175, x: 4631158.9257, y: 8601237.9394 },\n { id: 37684, x: 4812931.1996, y: 8698468.4858 },\n { id: 13090, x: 4796431.0522, y: 8493778.2589 },\n { id: 37685, x: 4812200.7036, y: 8688529.7953 },\n { id: 13092, x: 4795444.3645, y: 8499460.86 },\n { id: 58182, x: 4625217.1263, y: 8589636.5258 },\n { id: 49984, x: 4726399.2374, y: 8522159.7294 },\n { id: 13094, x: 4794629.738, y: 8488443.2858 },\n { id: 58184, x: 4621196.7133, y: 8586267.9911 },\n { id: 58185, x: 4621015.1445, y: 8598328.7185 },\n { id: 13096, x: 4793632.7276, y: 8480188.4761 },\n { id: 58186, x: 4620716.9083, y: 8592436.1001 },\n { id: 37691, x: 4804703.1364, y: 8689871.6726 },\n { id: 13099, x: 4791880.9457, y: 8497188.3433 },\n { id: 58189, x: 4617536.998, y: 8588503.7314 },\n { id: 58190, x: 4616686.7312, y: 8583655.1793 },\n { id: 13101, x: 4791064.7699, y: 8491106.3002 },\n { id: 13103, x: 4789782.4319, y: 8485195.3489 },\n { id: 13110, x: 4785656.2815, y: 8480783.4396 },\n { id: 13113, x: 4783823.7073, y: 8493044.715 },\n { id: 13115, x: 4782965.0561, y: 8488356.1469 },\n { id: 70547, x: 4683466.689, y: 8460996.9808 },\n { id: 70548, x: 4682821.1619, y: 8469752.4582 },\n { id: 70555, x: 4676166.4047, y: 8472334.1275 },\n { id: 70556, x: 4671828.7006, y: 8479071.9291 },\n { id: 70557, x: 4671398.2865, y: 8465938.5993 },\n { id: 21378, x: 4709643.4324, y: 8707710.5987 },\n { id: 21382, x: 4706305.5317, y: 8715911.4774 },\n { id: 21383, x: 4705610.9179, y: 8709639.7 },\n { id: 29582, x: 4632156.9857, y: 8632721.8077 },\n { id: 21384, x: 4705578.442, y: 8720447.5974 },\n { id: 41880, x: 4798913.1245, y: 8611292.9216 },\n { id: 29583, x: 4631225.5622, y: 8637420.9912 },\n { id: 29585, x: 4629449.2822, y: 8640666.6502 },\n { id: 41883, x: 4796310.3282, y: 8618535.1919 },\n { id: 29586, x: 4628111.6113, y: 8629499.2053 },\n { id: 29587, x: 4627577.5616, y: 8624840.6533 },\n { id: 29588, x: 4626476.0939, y: 8636845.8871 },\n { id: 21390, x: 4700765.1788, y: 8714311.6314 },\n { id: 17292, x: 4751167.2828, y: 8806158.9269 },\n { id: 29590, x: 4625331.7601, y: 8640066.6729 },\n { id: 29591, x: 4624693.9039, y: 8633558.5802 },\n { id: 21395, x: 4697391.6962, y: 8722841.8941 },\n { id: 29594, x: 4623033.262, y: 8638101.2904 },\n { id: 21396, x: 4695994.2982, y: 8715226.8377 },\n { id: 17297, x: 4747815.6788, y: 8790660.2308 },\n { id: 29595, x: 4621118.2899, y: 8624899.8769 },\n { id: 17298, x: 4747315.7382, y: 8799060.4866 },\n { id: 29597, x: 4621048.2759, y: 8629601.1655 },\n { id: 21399, x: 4692514.3119, y: 8708730.1677 },\n { id: 41895, x: 4789150.8327, y: 8619263.4644 },\n { id: 29598, x: 4620126.2097, y: 8641276.1681 },\n { id: 41897, x: 4788371.6743, y: 8606445.2771 },\n { id: 29600, x: 4619030.2863, y: 8635252.0638 },\n { id: 29603, x: 4616736.6562, y: 8642398.0128 },\n { id: 17306, x: 4737481.7047, y: 8800147.0098 },\n { id: 58308, x: 4611989.3787, y: 8510402.8984 },\n { id: 25523, x: 4691554.8004, y: 8698397.7705 },\n { id: 929, x: 4815665.1253, y: 8521077.6839 },\n { id: 58317, x: 4599541.0169, y: 8502521.3853 },\n { id: 58318, x: 4599705.1468, y: 8516498.5514 },\n { id: 932, x: 4812884.0869, y: 8535881.508 },\n { id: 934, x: 4811263.6479, y: 8526384.1475 },\n { id: 25530, x: 4686381.2633, y: 8701626.8075 },\n { id: 9135, x: 4837287.2013, y: 8389877.3273 },\n { id: 5036, x: 4798179.5166, y: 8582801.0328 },\n { id: 25532, x: 4684274.1001, y: 8694487.3916 },\n { id: 938, x: 4807596.0729, y: 8534265.6929 },\n { id: 25533, x: 4683835.9107, y: 8685705.2551 },\n { id: 9138, x: 4836222.2853, y: 8379682.324 },\n { id: 9139, x: 4833054.3962, y: 8395878.324 },\n { id: 5040, x: 4795047.7322, y: 8589934.9169 },\n { id: 13239, x: 4779122.3034, y: 8499381.8177 },\n { id: 25537, x: 4679818.5287, y: 8699574.2484 },\n { id: 13240, x: 4779501.8721, y: 8481432.5658 },\n { id: 5042, x: 4794193.5567, y: 8598677.5955 },\n { id: 943, x: 4803202.172, y: 8527601.1577 },\n { id: 25538, x: 4679276.6629, y: 8693400.4734 },\n { id: 9143, x: 4831825.6218, y: 8385497.3845 },\n { id: 13243, x: 4776209.5206, y: 8490656.4447 },\n { id: 5047, x: 4787943.3562, y: 8583577.7563 },\n { id: 25543, x: 4675029.2879, y: 8701400.3278 },\n { id: 13248, x: 4773069.9173, y: 8496756.505 },\n { id: 5050, x: 4785304.3077, y: 8594346.5764 },\n { id: 13249, x: 4773391.5861, y: 8482273.5515 },\n { id: 9151, x: 4825851.6242, y: 8391140.9366 },\n { id: 13256, x: 4767969.4649, y: 8497196.2775 },\n { id: 13257, x: 4768014.3432, y: 8488550.8305 },\n { id: 13258, x: 4766094.1323, y: 8483071.7933 },\n { id: 9160, x: 4820844.9453, y: 8382810.5424 },\n { id: 66550, x: 4725576.5331, y: 8424654.4504 },\n { id: 66552, x: 4724200.6296, y: 8432268.4075 },\n { id: 46062, x: 4784211.5035, y: 8768145.5307 },\n { id: 46063, x: 4784496.3235, y: 8781086.5818 },\n { id: 66561, x: 4717538.9374, y: 8429313.3766 },\n { id: 66565, x: 4715137.0231, y: 8418800.9964 },\n { id: 46070, x: 4779169.7321, y: 8774996.5223 },\n { id: 46071, x: 4778184.7606, y: 8783631.35 },\n { id: 46072, x: 4776812.3821, y: 8769882.4565 },\n { id: 66571, x: 4708290.7049, y: 8426841.5312 },\n { id: 46079, x: 4770453.3085, y: 8769028.2258 },\n { id: 46081, x: 4769415.4619, y: 8775483.6104 },\n { id: 33792, x: 4859720.5305, y: 8735574.4591 },\n { id: 33794, x: 4857537.0055, y: 8726174.214 },\n { id: 33800, x: 4852579.7596, y: 8731284.8422 },\n { id: 33807, x: 4848340.9965, y: 8723486.4975 },\n { id: 33810, x: 4846697.3758, y: 8728529.547 },\n { id: 33815, x: 4843787.5263, y: 8740806.0415 },\n { id: 58429, x: 4608035.0923, y: 8523612.4556 },\n { id: 58430, x: 4608024.5386, y: 8530670.0558 },\n { id: 58435, x: 4601852.3582, y: 8530076.0756 },\n { id: 58436, x: 4601932.3733, y: 8541406.4352 },\n { id: 50242, x: 4741266.6643, y: 8504436.9801 },\n { id: 50246, x: 4736428.8516, y: 8509418.381 },\n { id: 50247, x: 4736177.6975, y: 8517238.2981 },\n { id: 50251, x: 4732901.6648, y: 8504057.877 },\n { id: 50260, x: 4725905.1766, y: 8509989.2064 },\n { id: 29767, x: 4653382.0233, y: 8666827.1296 },\n { id: 42066, x: 4779623.9036, y: 8603638.7652 },\n { id: 42067, x: 4779835.1629, y: 8613937.2262 },\n { id: 29772, x: 4651349.7226, y: 8679500.0105 },\n { id: 50268, x: 4734198.228, y: 8602721.0285 },\n { id: 54374, x: 4686800.3785, y: 8556983.239 },\n { id: 29780, x: 4645936.1845, y: 8671663.3363 },\n { id: 29781, x: 4644149.4466, y: 8677330.7071 },\n { id: 54376, x: 4684829.3026, y: 8548259.386 },\n { id: 29783, x: 4644026.1531, y: 8682244.6934 },\n { id: 42081, x: 4769613.5479, y: 8611500.7453 },\n { id: 54379, x: 4683125.9147, y: 8560661.6194 },\n { id: 29787, x: 4639680.4067, y: 8673421.1595 },\n { id: 54382, x: 4678361.1403, y: 8545991.8315 },\n { id: 29788, x: 4639567.428, y: 8680770.1156 },\n { id: 42086, x: 4766821.8546, y: 8618863.8957 },\n { id: 29789, x: 4637801.8868, y: 8667485.8834 },\n { id: 54384, x: 4677173.0192, y: 8556523.3104 },\n { id: 42087, x: 4765715.2456, y: 8604561.0182 },\n { id: 29791, x: 4636495.3194, y: 8680026.7392 },\n { id: 29792, x: 4636122.4313, y: 8685741.4217 },\n { id: 21596, x: 4729438.1884, y: 8760004.4477 },\n { id: 54389, x: 4673036.0016, y: 8561664.8854 },\n { id: 21597, x: 4728488.1427, y: 8754291.926 },\n { id: 54390, x: 4671723.5425, y: 8552404.7515 },\n { id: 21599, x: 4726281.986, y: 8749244.8501 },\n { id: 21601, x: 4725670.1418, y: 8763471.1162 },\n { id: 21602, x: 4723998.9556, y: 8755793.8231 },\n { id: 21606, x: 4721029.1955, y: 8764765.8754 },\n { id: 21607, x: 4719821.4867, y: 8751651.0764 },\n { id: 38006, x: 4819547.389, y: 8677198.4209 },\n { id: 21610, x: 4717464.8373, y: 8759343.6544 },\n { id: 38008, x: 4818912.7452, y: 8664504.008 },\n { id: 21612, x: 4714760.7325, y: 8764067.5072 },\n { id: 38009, x: 4818478.7318, y: 8670702.8702 },\n { id: 21613, x: 4714410.046, y: 8756066.6341 },\n { id: 21615, x: 4712791.0207, y: 8749911.6291 },\n { id: 38012, x: 4814429.6052, y: 8681130.2112 },\n { id: 38015, x: 4808186.7511, y: 8670753.1381 },\n { id: 38017, x: 4807948.9807, y: 8677443.1566 },\n { id: 38018, x: 4807352.7266, y: 8662765.146 },\n { id: 25722, x: 4670815.4759, y: 8705027.2841 },\n { id: 70812, x: 4680323.7934, y: 8497946.8849 },\n { id: 25723, x: 4670276.6924, y: 8698728.6739 },\n { id: 70814, x: 4678915.182, y: 8486665.0759 },\n { id: 25725, x: 4668891.3742, y: 8692028.3059 },\n { id: 25730, x: 4665213.4858, y: 8700455.0644 },\n { id: 25732, x: 4663870.9329, y: 8690047.375 },\n { id: 25736, x: 4660548.0905, y: 8694377.6111 },\n { id: 25739, x: 4659313.5849, y: 8700458.0461 },\n { id: 25741, x: 4657102.0458, y: 8688285.0962 },\n { id: 17543, x: 4724985.0584, y: 8610830.9438 },\n { id: 25742, x: 4656866.157, y: 8700527.6193 },\n { id: 17546, x: 4723079.0114, y: 8616175.7216 },\n { id: 17548, x: 4721481.3489, y: 8622382.7646 },\n { id: 17550, x: 4719795.6619, y: 8603321.0636 },\n { id: 17554, x: 4717676.6367, y: 8608946.6252 },\n { id: 9357, x: 4836935.834, y: 8406643.5109 },\n { id: 17556, x: 4716189.6024, y: 8620476.389 },\n { id: 17557, x: 4714722.8942, y: 8604536.6624 },\n { id: 17558, x: 4713589.2377, y: 8614883.7443 },\n { id: 9360, x: 4834809.181, y: 8414087.4629 },\n { id: 46253, x: 4781732.9119, y: 8756382.2372 },\n { id: 46254, x: 4780230.5233, y: 8749450.0828 },\n { id: 17562, x: 4710197.7753, y: 8615254.5888 },\n { id: 46256, x: 4780056.7697, y: 8761284.5658 },\n { id: 13465, x: 4779627.4456, y: 8475219.0758 },\n { id: 9367, x: 4829382.4116, y: 8413829.596 },\n { id: 17566, x: 4707935.6671, y: 8605302.8493 },\n { id: 13467, x: 4778001.5057, y: 8465448.0137 },\n { id: 46260, x: 4775763.9284, y: 8746128.6132 },\n { id: 13468, x: 4777871.1478, y: 8460724.2761 },\n { id: 46261, x: 4774800.7463, y: 8762208.9113 },\n { id: 13470, x: 4776302.2965, y: 8470514.499 },\n { id: 9371, x: 4827127.4472, y: 8407351.136 },\n { id: 13472, x: 4775111.2696, y: 8477182.401 },\n { id: 46265, x: 4771627.6288, y: 8753417.0011 },\n { id: 13474, x: 4774617.5152, y: 8460857.6692 },\n { id: 9377, x: 4823202.2094, y: 8418795.457 },\n { id: 13477, x: 4772069.0392, y: 8466613.4436 },\n { id: 13479, x: 4769937.7323, y: 8477668.8092 },\n { id: 9381, x: 4821282.7825, y: 8399500.7118 },\n { id: 13481, x: 4768812.4193, y: 8471112.4141 },\n { id: 9383, x: 4819728.4732, y: 8408733.1978 },\n { id: 5284, x: 4779111.7068, y: 8589878.3198 },\n { id: 13485, x: 4767190.6503, y: 8460884.4817 },\n { id: 5293, x: 4769171.5013, y: 8589780.8676 },\n { id: 5294, x: 4768827.999, y: 8597040.4669 },\n { id: 1226, x: 4817059.0367, y: 8507951.9821 },\n { id: 1232, x: 4811521.6167, y: 8517351.5591 },\n { id: 50421, x: 4721438.5646, y: 8501823.0467 },\n { id: 1236, x: 4809423.2886, y: 8509617.7993 },\n { id: 50425, x: 4717462.837, y: 8513276.1085 },\n { id: 1238, x: 4806867.8669, y: 8502252.156 },\n { id: 42231, x: 4797746.1476, y: 8626217.8568 },\n { id: 34035, x: 4858491.3627, y: 8705232.6055 },\n { id: 1243, x: 4801879.7844, y: 8501907.7042 },\n { id: 1244, x: 4801747.5501, y: 8510319.6959 },\n { id: 50434, x: 4710609.0154, y: 8503338.9441 },\n { id: 34038, x: 4855747.4715, y: 8712127.127 },\n { id: 1246, x: 4800943.1559, y: 8516690.3047 },\n { id: 42241, x: 4790821.69, y: 8630819.6224 },\n { id: 50440, x: 4707764.781, y: 8518712.7859 },\n { id: 34044, x: 4850769.2422, y: 8716969.5646 },\n { id: 29945, x: 4653778.1941, y: 8686600.5753 },\n { id: 29946, x: 4653887.3772, y: 8692841.4474 },\n { id: 34047, x: 4848154.9271, y: 8707516.1085 },\n { id: 29948, x: 4652473.3517, y: 8703698.8143 },\n { id: 29949, x: 4651785.7385, y: 8694029.7705 },\n { id: 34051, x: 4844396.1647, y: 8718909.424 },\n { id: 42250, x: 4784298.3587, y: 8636520.8073 },\n { id: 34054, x: 4840696.6717, y: 8712061.3476 },\n { id: 29956, x: 4645258.5368, y: 8700138.3372 },\n { id: 29958, x: 4643479.917, y: 8688184.4671 },\n { id: 29959, x: 4643986.288, y: 8705607.5581 },\n { id: 29960, x: 4642326.8653, y: 8696710.8297 },\n { id: 29966, x: 4638886.9605, y: 8699930.7745 },\n { id: 29969, x: 4638269.3163, y: 8705998.9538 },\n { id: 70968, x: 4669756.13, y: 8493632.092 },\n { id: 70972, x: 4666740.7693, y: 8485001.999 },\n { id: 70975, x: 4663826.7664, y: 8496970.1588 },\n { id: 70977, x: 4660311.2908, y: 8483017.1353 },\n { id: 70980, x: 4658091.953, y: 8492306.4865 },\n { id: 70982, x: 4656712.5461, y: 8483676.2571 },\n { id: 9504, x: 4814927.2408, y: 8417641.0893 },\n { id: 9512, x: 4810876.7033, y: 8401598.882 },\n { id: 9514, x: 4809455.9346, y: 8408189.0627 },\n { id: 25913, x: 4671429.0349, y: 8670651.6287 },\n { id: 9517, x: 4807614.3094, y: 8415471.1648 },\n { id: 9519, x: 4805929.0612, y: 8405115.0301 },\n { id: 25917, x: 4667613.1412, y: 8683975.1691 },\n { id: 25918, x: 4666966.7441, y: 8672159.5094 },\n { id: 9523, x: 4802650.0024, y: 8417669.5026 },\n { id: 25920, x: 4666837.5775, y: 8677262.8325 },\n { id: 9524, x: 4802555.6508, y: 8412180.6029 },\n { id: 25923, x: 4664393.4554, y: 8680379.8519 },\n { id: 9527, x: 4801359.4942, y: 8402427.9705 },\n { id: 25924, x: 4663297.354, y: 8670823.2535 },\n { id: 25926, x: 4662340.2417, y: 8685335.5291 },\n { id: 25927, x: 4660354.5238, y: 8674662.1339 },\n { id: 25928, x: 4659783.4943, y: 8667074.6634 },\n { id: 25933, x: 4657749.1387, y: 8677716.9805 },\n { id: 25934, x: 4657065.1286, y: 8670842.4872 },\n { id: 58727, x: 4613641.1489, y: 8561007.5433 },\n { id: 58730, x: 4611181.062, y: 8556746.4668 },\n { id: 30038, x: 4635378.5906, y: 8703842.7836 },\n { id: 58732, x: 4610136.5952, y: 8545386.8332 },\n { id: 30039, x: 4634769.5606, y: 8694599.5133 },\n { id: 30040, x: 4632192.4347, y: 8689236.23 },\n { id: 58734, x: 4608014.2437, y: 8550804.1118 },\n { id: 5447, x: 4757743.8068, y: 8507802.0237 },\n { id: 58735, x: 4607336.0474, y: 8548082.6419 },\n { id: 30042, x: 4627662.3295, y: 8692015.0816 },\n { id: 58736, x: 4606699.246, y: 8555104.4901 },\n { id: 58739, x: 4602906.3729, y: 8557192.1152 },\n { id: 58740, x: 4602389.0254, y: 8552893.3796 },\n { id: 58742, x: 4600467.1865, y: 8550047.3629 },\n { id: 17758, x: 4706671.9338, y: 8622849.206 },\n { id: 17759, x: 4706077.2713, y: 8612013.8696 },\n { id: 17762, x: 4703612.3222, y: 8604277.8626 },\n { id: 17763, x: 4702785.4737, y: 8620382.3274 },\n { id: 38261, x: 4835283.2067, y: 8705100.2251 },\n { id: 17766, x: 4700683.6203, y: 8607757.7704 },\n { id: 17769, x: 4699342.5916, y: 8613980.2902 },\n { id: 9572, x: 4818809.6461, y: 8390111.5153 },\n { id: 50564, x: 4723385.8559, y: 8533636.0537 },\n { id: 17772, x: 4698781.3712, y: 8622016.6187 },\n { id: 38268, x: 4828415.6694, y: 8704937.9509 },\n { id: 9575, x: 4816887.0359, y: 8395609.5189 },\n { id: 38269, x: 4828241.8075, y: 8711510.4798 },\n { id: 17774, x: 4695405.8789, y: 8605173.8789 },\n { id: 17775, x: 4695620.3052, y: 8611774.1059 },\n { id: 50568, x: 4718948.863, y: 8538067.1967 },\n { id: 17776, x: 4694990.4026, y: 8619352.275 },\n { id: 9578, x: 4815011.7769, y: 8384946.4983 },\n { id: 50569, x: 4717222.386, y: 8526706.9436 },\n { id: 50572, x: 4712544.9763, y: 8534326.3216 },\n { id: 9582, x: 4811587.7728, y: 8389976.0336 },\n { id: 17782, x: 4691141.7524, y: 8621510.6383 },\n { id: 9585, x: 4807221.0647, y: 8393069.8903 },\n { id: 54687, x: 4687330.8925, y: 8576739.276 },\n { id: 54688, x: 4686064.7473, y: 8568212.3218 },\n { id: 54689, x: 4683785.7424, y: 8581327.1913 },\n { id: 54693, x: 4680650.718, y: 8574678.6258 },\n { id: 54695, x: 4676359.4387, y: 8567379.2605 },\n { id: 54696, x: 4676273.0184, y: 8577749.0222 },\n { id: 42400, x: 4795764.7133, y: 8660835.9237 },\n { id: 54699, x: 4671010.722, y: 8565412.288 },\n { id: 42402, x: 4792125.8768, y: 8643298.3852 },\n { id: 54700, x: 4671216.0876, y: 8577753.6033 },\n { id: 42404, x: 4791799.0471, y: 8649722.0282 },\n { id: 42410, x: 4787891.0536, y: 8655213.4099 },\n { id: 42414, x: 4784154.1578, y: 8645642.3606 },\n { id: 71117, x: 4668678.8142, y: 8459052.1519 },\n { id: 71123, x: 4662828.3892, y: 8464826.7056 },\n { id: 71127, x: 4658797.3048, y: 8475486.9926 },\n { id: 71132, x: 4652061.9721, y: 8465976.9594 },\n { id: 34242, x: 4878180.9195, y: 8749135.2923 },\n { id: 34243, x: 4877852.5506, y: 8759559.9664 },\n { id: 71136, x: 4628095.0397, y: 8468691.2526 },\n { id: 71137, x: 4623048.6514, y: 8468377.3513 },\n { id: 34248, x: 4872721.6215, y: 8745321.2516 },\n { id: 34249, x: 4872479.5171, y: 8756272.4253 },\n { id: 71142, x: 4616703.1383, y: 8468229.0479 },\n { id: 71143, x: 4614631.0094, y: 8460616.347 },\n { id: 34252, x: 4867697.0747, y: 8752306.841 },\n { id: 34255, x: 4864808.5465, y: 8759653.8217 },\n { id: 1463, x: 4836027.6563, y: 8551906.8251 },\n { id: 1465, x: 4833047.9991, y: 8546667.749 },\n { id: 1469, x: 4831078.9257, y: 8559551.7409 },\n { id: 1473, x: 4827017.7532, y: 8548793.6107 },\n { id: 1482, x: 4821744.0553, y: 8553967.675 },\n { id: 5597, x: 4760672.3833, y: 8526955.4798 },\n { id: 30194, x: 4633667.6714, y: 8670363.0734 },\n { id: 5600, x: 4757283.2626, y: 8537397.4417 },\n { id: 5602, x: 4756462.36, y: 8520593.742 },\n { id: 13802, x: 4892588.9762, y: 8400164.3485 },\n { id: 5604, x: 4754613.4808, y: 8528931.4251 },\n { id: 30199, x: 4632116.2566, y: 8676186.6142 },\n { id: 30200, x: 4632173.1978, y: 8682226.5723 },\n { id: 13805, x: 4886687.5127, y: 8407020.5886 },\n { id: 30204, x: 4628781.4408, y: 8675163.631 },\n { id: 30205, x: 4629007.5304, y: 8686276.782 },\n { id: 13809, x: 4884480.276, y: 8416438.2174 },\n { id: 30207, x: 4627402.3926, y: 8679469.502 },\n { id: 13811, x: 4884001.7971, y: 8400983.8956 },\n { id: 30211, x: 4622571.7669, y: 8668804.7214 },\n { id: 13818, x: 4878621.1266, y: 8411019.0339 },\n { id: 13820, x: 4877425.8136, y: 8405188.3734 },\n { id: 13821, x: 4876073.6044, y: 8416060.5371 },\n { id: 22021, x: 4730751.7831, y: 8773867.4016 },\n { id: 22023, x: 4729223.3877, y: 8778478.7703 },\n { id: 22025, x: 4727332.1133, y: 8767200.5625 },\n { id: 22029, x: 4724694.4728, y: 8783971.4297 },\n { id: 22032, x: 4721842.8161, y: 8774149.989 },\n { id: 22033, x: 4719816.8626, y: 8780560.0209 },\n { id: 22034, x: 4719000.5711, y: 8769428.9797 },\n { id: 22039, x: 4714959.7554, y: 8773065.5063 },\n { id: 22040, x: 4715156.8654, y: 8784284.9033 },\n { id: 38438, x: 4840100.3654, y: 8728118.2258 },\n { id: 38442, x: 4836412.1605, y: 8721999.612 },\n { id: 38443, x: 4835763.5509, y: 8737644.2427 },\n { id: 38448, x: 4830170.9605, y: 8722421.9854 },\n { id: 38450, x: 4829584.9605, y: 8733119.6861 },\n { id: 38456, x: 4822687.0335, y: 8728327.3118 },\n { id: 26167, x: 4689736.9553, y: 8722051.6278 },\n { id: 26168, x: 4689152.6602, y: 8706311.2545 },\n { id: 26171, x: 4686777.6016, y: 8716876.0352 },\n { id: 26177, x: 4681932.6244, y: 8707676.5782 },\n { id: 26178, x: 4680874.0505, y: 8716061.6121 },\n { id: 26181, x: 4678283.7276, y: 8721959.1139 },\n { id: 71272, x: 4632740.8239, y: 8499780.1052 },\n { id: 71273, x: 4632621.2235, y: 8481666.9857 },\n { id: 46679, x: 4803708.1788, y: 8785235.1561 },\n { id: 26184, x: 4675457.4273, y: 8717310.3223 },\n { id: 26185, x: 4674840.6648, y: 8708267.3896 },\n { id: 71275, x: 4627880.401, y: 8489096.1304 },\n { id: 46682, x: 4800637.0213, y: 8797628.4404 },\n { id: 30286, x: 4655198.2442, y: 8710892.6317 },\n { id: 46683, x: 4800260.8733, y: 8788885.055 },\n { id: 71278, x: 4622378.8747, y: 8482156.4016 },\n { id: 46684, x: 4799572.8976, y: 8801361.8202 },\n { id: 30288, x: 4653550.6023, y: 8724582.1682 },\n { id: 30290, x: 4653035.3723, y: 8717244.2807 },\n { id: 71281, x: 4618692.4633, y: 8493050.2033 },\n { id: 46688, x: 4794280.0668, y: 8795507.3192 },\n { id: 42589, x: 4778588.0568, y: 8658471.9054 },\n { id: 30292, x: 4650871.8626, y: 8708096.7544 },\n { id: 46690, x: 4793081.2637, y: 8788092.6265 },\n { id: 42591, x: 4775871.1554, y: 8653048.023 },\n { id: 30294, x: 4647000.4524, y: 8709555.1239 },\n { id: 46691, x: 4793101.5615, y: 8804213.8106 },\n { id: 30297, x: 4638419.341, y: 8711977.6541 },\n { id: 18000, x: 4724991.854, y: 8631458.9709 },\n { id: 46694, x: 4789157.2764, y: 8791370.0758 },\n { id: 18001, x: 4724901.9551, y: 8629719.8064 },\n { id: 18003, x: 4724741.1738, y: 8641277.9873 },\n { id: 42600, x: 4769623.3504, y: 8643339.6175 },\n { id: 42602, x: 4769197.6828, y: 8655817.963 },\n { id: 30305, x: 4656041.0589, y: 8745739.1752 },\n { id: 30308, x: 4654726.7383, y: 8730957.1796 },\n { id: 18011, x: 4719036.3214, y: 8632024.828 },\n { id: 63101, x: 4743066.5503, y: 8445964.714 },\n { id: 18013, x: 4718177.4623, y: 8642871.6114 },\n { id: 18014, x: 4716736.1002, y: 8628494.0696 },\n { id: 63105, x: 4740876.2034, y: 8458269.6155 },\n { id: 63108, x: 4738743.3621, y: 8439543.2516 },\n { id: 9821, x: 4835406.1997, y: 8437233.1752 },\n { id: 63110, x: 4737680.5633, y: 8443960.2388 },\n { id: 18021, x: 4711024.2854, y: 8625503.5534 },\n { id: 63111, x: 4737241.4739, y: 8444186.0542 },\n { id: 63112, x: 4737048.8881, y: 8447710.7072 },\n { id: 18023, x: 4710224.9077, y: 8633897.1791 },\n { id: 9825, x: 4832634.6413, y: 8424976.897 },\n { id: 9826, x: 4831055.6194, y: 8431600.7872 },\n { id: 67213, x: 4724730.5893, y: 8452300.0984 },\n { id: 67216, x: 4723280.5016, y: 8441793.8615 },\n { id: 67220, x: 4719966.8922, y: 8454720.4419 },\n { id: 30329, x: 4654169.2177, y: 8789292.7734 },\n { id: 63122, x: 4730398.6007, y: 8441920.5126 },\n { id: 67223, x: 4718372.6308, y: 8447853.4419 },\n { id: 9838, x: 4824739.0265, y: 8425817.7056 },\n { id: 63126, x: 4727987.9469, y: 8447524.9085 },\n { id: 9841, x: 4822749.3846, y: 8435254.0819 },\n { id: 67228, x: 4714381.8898, y: 8441910.513 },\n { id: 67229, x: 4714276.6871, y: 8440971.5821 },\n { id: 67230, x: 4713245.8803, y: 8450445.7806 },\n { id: 34440, x: 4877273.5155, y: 8778349.8286 },\n { id: 67236, x: 4708488.999, y: 8451584.4225 },\n { id: 34447, x: 4872054.8331, y: 8770175.3929 },\n { id: 34448, x: 4872210.6241, y: 8777830.6893 },\n { id: 34449, x: 4871436.8006, y: 8763767.1789 },\n { id: 1657, x: 4833300.7454, y: 8573917.0422 },\n { id: 50848, x: 4706756.9059, y: 8537337.5556 },\n { id: 50852, x: 4704428.1446, y: 8525375.0516 },\n { id: 1664, x: 4827841.2224, y: 8567059.1553 },\n { id: 1666, x: 4827285.998, y: 8576907.1537 },\n { id: 13965, x: 4891216.2178, y: 8393061.4563 },\n { id: 34461, x: 4863485.0884, y: 8775088.4716 },\n { id: 1669, x: 4824086.6376, y: 8561107.4356 },\n { id: 34464, x: 4861514.9148, y: 8768565.5774 },\n { id: 1673, x: 4822123.0753, y: 8569830.4282 },\n { id: 50862, x: 4697236.758, y: 8525439.5875 },\n { id: 13972, x: 4882811.7457, y: 8389705.6711 },\n { id: 50864, x: 4696354.1787, y: 8534155.1587 },\n { id: 13973, x: 4880947.6615, y: 8395881.3559 },\n { id: 50869, x: 4691017.8061, y: 8527504.4432 },\n { id: 13979, x: 4877348.6191, y: 8382556.301 },\n { id: 71382, x: 4650930.8152, y: 8484208.0119 },\n { id: 71388, x: 4645012.5484, y: 8493146.4529 },\n { id: 71391, x: 4642764.1947, y: 8484710.9697 },\n { id: 71397, x: 4637092.4558, y: 8485874.6504 },\n { id: 71400, x: 4634650.5141, y: 8493562.1969 },\n { id: 30410, x: 4656376.7885, y: 8798675.0585 },\n { id: 30415, x: 4649829.6235, y: 8794774.3428 },\n { id: 30419, x: 4658912.2275, y: 8825639.8295 },\n { id: 30422, x: 4656614.272, y: 8812162.9576 },\n { id: 30433, x: 4659183.8161, y: 8833206.4483 },\n { id: 26340, x: 4692780.0181, y: 8727152.1976 },\n { id: 59134, x: 4607766.348, y: 8573690.4402 },\n { id: 26342, x: 4692361.0518, y: 8744433.0287 },\n { id: 59135, x: 4607500.6086, y: 8566109.6119 },\n { id: 26343, x: 4690331.1339, y: 8732763.3905 },\n { id: 59136, x: 4607309.1239, y: 8580024.3205 },\n { id: 26346, x: 4686901.1679, y: 8737777.9617 },\n { id: 26347, x: 4686044.659, y: 8728284.4112 },\n { id: 26348, x: 4685464.6706, y: 8733073.2497 },\n { id: 26349, x: 4684866.6158, y: 8745299.1018 },\n { id: 59143, x: 4602029.4538, y: 8565330.6067 },\n { id: 59144, x: 4600148.6929, y: 8571582.7377 },\n { id: 26352, x: 4681715.3099, y: 8727381.9355 },\n { id: 59146, x: 4598579.4632, y: 8580446.8309 },\n { id: 26354, x: 4680932.4569, y: 8739177.6372 },\n { id: 59148, x: 4596996.9577, y: 8566917.924 },\n { id: 26359, x: 4677408.3543, y: 8733400.6029 },\n { id: 26365, x: 4674276.6894, y: 8727300.9582 },\n { id: 38675, x: 4822569.092, y: 8733893.7805 },\n { id: 38677, x: 4818232.5864, y: 8738792.4594 },\n { id: 5886, x: 4757076.167, y: 8555158.2225 },\n { id: 38679, x: 4817352.7008, y: 8725737.6838 },\n { id: 38682, x: 4812040.4113, y: 8732335.8236 },\n { id: 38683, x: 4811520.3172, y: 8726304.466 },\n { id: 5891, x: 4752559.5722, y: 8548375.6469 },\n { id: 38688, x: 4806946.8411, y: 8740916.8166 },\n { id: 5896, x: 4747999.4146, y: 8556078.6175 },\n { id: 5899, x: 4746360.3044, y: 8547006.1561 },\n { id: 67411, x: 4705644.0668, y: 8456371.6006 },\n { id: 67414, x: 4703973.9957, y: 8448960.9749 },\n { id: 67422, x: 4697128.786, y: 8455020.3575 },\n { id: 67423, x: 4695592.7558, y: 8448359.2123 },\n { id: 34631, x: 4855204.0964, y: 8769099.9985 },\n { id: 67425, x: 4695043.1958, y: 8439460.5385 },\n { id: 34635, x: 4853915.5279, y: 8776748.5258 },\n { id: 34641, x: 4849963.3723, y: 8762715.6844 },\n { id: 71537, x: 4648363.5533, y: 8477770.801 },\n { id: 34648, x: 4845333.0319, y: 8776063.733 },\n { id: 71541, x: 4644834.4999, y: 8468494.9424 },\n { id: 34651, x: 4843243.4213, y: 8763885.4732 },\n { id: 71544, x: 4640403.1304, y: 8475006.3424 },\n { id: 71546, x: 4637631.7335, y: 8463524.4849 },\n { id: 18277, x: 4724404.7308, y: 8650278.6417 },\n { id: 18278, x: 4723008.0863, y: 8659008.9845 },\n { id: 18283, x: 4718360.2878, y: 8647734.1149 },\n { id: 18284, x: 4717659.9272, y: 8661779.6806 },\n { id: 18286, x: 4716019.9148, y: 8653611.5683 },\n { id: 10089, x: 4829034.4372, y: 8454191.4575 },\n { id: 18288, x: 4713841.9048, y: 8644265.7871 },\n { id: 10090, x: 4829123.2867, y: 8445012.8046 },\n { id: 18290, x: 4713537.1617, y: 8644399.3054 },\n { id: 10093, x: 4826336.0187, y: 8439785.8867 },\n { id: 18293, x: 4711307.9075, y: 8654519.9574 },\n { id: 51087, x: 4705835.5309, y: 8512623.9647 },\n { id: 10101, x: 4820453.4973, y: 8452010.7667 },\n { id: 10104, x: 4819212.8504, y: 8443969.4667 },\n { id: 51095, x: 4700055.8982, y: 8507117.2756 },\n { id: 22402, x: 4711093.4162, y: 8769598.6174 },\n { id: 22406, x: 4708461.2092, y: 8778087.8303 },\n { id: 22408, x: 4707452.8714, y: 8785657.6189 },\n { id: 51102, x: 4695686.8511, y: 8514234.5801 },\n { id: 22410, x: 4705884.3566, y: 8772029.8142 },\n { id: 1916, x: 4815182.0766, y: 8561991.7227 },\n { id: 22413, x: 4703075.3993, y: 8781031.7262 },\n { id: 1919, x: 4813813.5899, y: 8567884.605 },\n { id: 22416, x: 4698587.3462, y: 8778230.2097 },\n { id: 22419, x: 4697491.8713, y: 8771551.4243 },\n { id: 22420, x: 4696982.1275, y: 8783167.849 },\n { id: 1925, x: 4810298.5609, y: 8574782.7213 },\n { id: 1930, x: 4806021.3588, y: 8561510.9093 },\n { id: 1934, x: 4803791.1471, y: 8578486.3416 },\n { id: 1935, x: 4803097.1773, y: 8568512.8147 },\n { id: 26548, x: 4673421.3853, y: 8742944.8432 },\n { id: 26549, x: 4672534.6986, y: 8735559.0813 },\n { id: 26555, x: 4667785.02, y: 8728676.3739 },\n { id: 26556, x: 4667588.0416, y: 8736427.9353 },\n { id: 26558, x: 4666901.8679, y: 8744493.7191 },\n { id: 26560, x: 4664167.8987, y: 8731193.2951 },\n { id: 26561, x: 4663881.0931, y: 8736275.2024 },\n { id: 26567, x: 4659036.6227, y: 8737507.1742 },\n { id: 26568, x: 4658438.5275, y: 8730189.6008 },\n { id: 71679, x: 4632188.3683, y: 8421480.183 },\n { id: 71680, x: 4630382.7395, y: 8426720.0781 },\n { id: 71683, x: 4627432.3826, y: 8431539.1019 },\n { id: 71685, x: 4626505.1233, y: 8422427.2211 },\n { id: 71689, x: 4620802.4525, y: 8419874.2662 },\n { id: 71690, x: 4619176.2984, y: 8427585.3168 },\n { id: 71693, x: 4616940.5385, y: 8423727.8517 },\n { id: 30717, x: 4611241.5007, y: 8606395.2529 },\n { id: 30718, x: 4610548.1354, y: 8622076.464 },\n { id: 55313, x: 4669820.566, y: 8570354.564 },\n { id: 55314, x: 4666113.5418, y: 8581981.0753 },\n { id: 30720, x: 4608173.7814, y: 8617085.1332 },\n { id: 55318, x: 4661765.757, y: 8566778.443 },\n { id: 55320, x: 4657966.7189, y: 8575440.2407 },\n { id: 30728, x: 4603590.2204, y: 8611694.4631 },\n { id: 30729, x: 4603021.7598, y: 8621876.267 },\n { id: 30731, x: 4599153.025, y: 8622353.4752 },\n { id: 30732, x: 4598534.589, y: 8613730.1981 },\n { id: 38957, x: 4820750.9823, y: 8717027.6504 },\n { id: 38958, x: 4819189.9885, y: 8703599.6936 },\n { id: 34859, x: 4859611.5549, y: 8747811.088 },\n { id: 34860, x: 4858501.0437, y: 8756948.7022 },\n { id: 38960, x: 4817604.3283, y: 8709827.204 },\n { id: 38966, x: 4811548.6322, y: 8704357.7042 },\n { id: 6176, x: 4756810.065, y: 8579623.2023 },\n { id: 34869, x: 4852732.1717, y: 8741595.5961 },\n { id: 38969, x: 4809731.9414, y: 8714360.9887 },\n { id: 34870, x: 4852447.4067, y: 8751561.5923 },\n { id: 6178, x: 4755929.7782, y: 8572296.6182 },\n { id: 6180, x: 4753406.5489, y: 8561969.3366 },\n { id: 6184, x: 4750952.5556, y: 8569305.8629 },\n { id: 6186, x: 4749332.2774, y: 8575892.9707 },\n { id: 34880, x: 4845620.2568, y: 8753152.4126 },\n { id: 34884, x: 4844034.0596, y: 8747845.7773 },\n { id: 14412, x: 4759599.3499, y: 8613812.5164 },\n { id: 14414, x: 4755767.3238, y: 8603810.1447 },\n { id: 14417, x: 4753957.7908, y: 8610048.7911 },\n { id: 14419, x: 4751321.1026, y: 8617732.4857 },\n { id: 67710, x: 4704882.2782, y: 8436939.2339 },\n { id: 22622, x: 4711162.9318, y: 8759530.1104 },\n { id: 10325, x: 4813553.1442, y: 8457455.3909 },\n { id: 51315, x: 4721292.2293, y: 8556611.2321 },\n { id: 14425, x: 4746628.2619, y: 8621745.523 },\n { id: 51316, x: 4720926.7745, y: 8550209.9947 },\n { id: 14426, x: 4746114.2137, y: 8608446.9381 },\n { id: 51317, x: 4719067.8409, y: 8542295.4335 },\n { id: 67714, x: 4701080.9831, y: 8425500.006 },\n { id: 59517, x: 4595179.6252, y: 8583429.7968 },\n { id: 10331, x: 4810140.0031, y: 8443855.1508 },\n { id: 59519, x: 4594676.9358, y: 8574715.2298 },\n { id: 22629, x: 4707326.0061, y: 8755238.7487 },\n { id: 51322, x: 4715221.7245, y: 8544079.5149 },\n { id: 22631, x: 4705973.472, y: 8750525.3669 },\n { id: 59522, x: 4591702.869, y: 8569949.0755 },\n { id: 51324, x: 4714247.3373, y: 8551096.6551 },\n { id: 26731, x: 4671760.8966, y: 8722057.213 },\n { id: 67721, x: 4695132.5711, y: 8420085.6931 },\n { id: 51326, x: 4713650.9087, y: 8557174.9736 },\n { id: 10336, x: 4805899.1962, y: 8458529.4895 },\n { id: 22634, x: 4705423.6522, y: 8759437.0769 },\n { id: 51328, x: 4710373.6765, y: 8550121.8393 },\n { id: 22636, x: 4702446.9198, y: 8762727.4253 },\n { id: 10339, x: 4802800.936, y: 8449799.6853 },\n { id: 59527, x: 4589341.2926, y: 8575318.3347 },\n { id: 26736, x: 4668509.3383, y: 8715229.6873 },\n { id: 59528, x: 4589434.9117, y: 8580185.2057 },\n { id: 51331, x: 4707651.8733, y: 8541987.1921 },\n { id: 22638, x: 4701947.5217, y: 8757149.751 },\n { id: 71826, x: 4627726.5314, y: 8442640.7938 },\n { id: 67727, x: 4689834.7048, y: 8427996.8031 },\n { id: 26738, x: 4667762.1541, y: 8710578.4612 },\n { id: 71827, x: 4626482.7723, y: 8458055.082 },\n { id: 71828, x: 4625734.4546, y: 8450223.4141 },\n { id: 22641, x: 4697880.6246, y: 8754078.3163 },\n { id: 59533, x: 4585134.9247, y: 8574488.3362 },\n { id: 26742, x: 4664795.437, y: 8725105.2283 },\n { id: 22643, x: 4696908.9542, y: 8765906.7885 },\n { id: 71831, x: 4620997.6861, y: 8458288.7841 },\n { id: 59534, x: 4584535.2807, y: 8563383.2165 },\n { id: 71832, x: 4621165.1515, y: 8437978.7265 },\n { id: 59535, x: 4580627.8514, y: 8565865.8014 },\n { id: 26744, x: 4662375.2392, y: 8712924.404 },\n { id: 22645, x: 4696191.545, y: 8748297.0485 },\n { id: 71833, x: 4619999.8358, y: 8445306.254 },\n { id: 26746, x: 4661631.9532, y: 8719226.2575 },\n { id: 26748, x: 4659425.0943, y: 8708195.3329 },\n { id: 26750, x: 4658280.3828, y: 8726095.8872 },\n { id: 18552, x: 4708933.7124, y: 8647042.5407 },\n { id: 26752, x: 4656339.2859, y: 8720409.5787 },\n { id: 18554, x: 4707771.0016, y: 8653317.2736 },\n { id: 18556, x: 4706761.6085, y: 8658877.1957 },\n { id: 18557, x: 4705543.2044, y: 8650173.3981 },\n { id: 18562, x: 4701465.8699, y: 8663288.7109 },\n { id: 18563, x: 4700739.4316, y: 8653575.5712 },\n { id: 18567, x: 4698144.3956, y: 8663590.857 },\n { id: 43165, x: 4780604.5597, y: 8622098.6352 },\n { id: 18571, x: 4696362.4184, y: 8659743.2085 },\n { id: 18572, x: 4694691.2874, y: 8647304.5297 },\n { id: 18573, x: 4694289.2379, y: 8653828.7581 },\n { id: 43170, x: 4776610.4949, y: 8629943.3843 },\n { id: 18577, x: 4691341.1224, y: 8657364.8864 },\n { id: 43172, x: 4775490.5011, y: 8638137.5292 },\n { id: 43183, x: 4768220.0356, y: 8635368.5077 },\n { id: 59581, x: 4595234.7323, y: 8547556.0825 },\n { id: 43185, x: 4766680.5433, y: 8627501.8824 },\n { id: 59582, x: 4595383.4063, y: 8556676.5086 },\n { id: 59583, x: 4593637.1719, y: 8562674.6211 },\n { id: 59584, x: 4592955.0027, y: 8551369.6599 },\n { id: 59586, x: 4587601.9917, y: 8551557.2599 },\n { id: 59587, x: 4587051.7245, y: 8558155.8733 },\n { id: 35019, x: 4879590.197, y: 8787548.8914 },\n { id: 63715, x: 4739497.8218, y: 8431596.5145 },\n { id: 63716, x: 4739481.0905, y: 8426601.507 },\n { id: 35023, x: 4877384.6937, y: 8797242.3208 },\n { id: 63717, x: 4739144.2825, y: 8419847.4972 },\n { id: 35028, x: 4873570.3551, y: 8794181.5387 },\n { id: 71920, x: 4646636.5246, y: 8457252.3991 },\n { id: 71921, x: 4645483.7375, y: 8446962.926 },\n { id: 71922, x: 4644820.075, y: 8440896.072 },\n { id: 63724, x: 4733761.7139, y: 8432451.4094 },\n { id: 35031, x: 4872138.6697, y: 8787286.7615 },\n { id: 6339, x: 4742609.0692, y: 8567356.2592 },\n { id: 6340, x: 4742898.8837, y: 8580177.0872 },\n { id: 71925, x: 4635485.0402, y: 8454413.4016 },\n { id: 63727, x: 4732786.9398, y: 8424384.7314 },\n { id: 35034, x: 4869422.2441, y: 8783658.2319 },\n { id: 71927, x: 4634657.8689, y: 8441472.009 },\n { id: 6343, x: 4740544.472, y: 8561776.0539 },\n { id: 35037, x: 4867617.5451, y: 8797138.1198 },\n { id: 6344, x: 4737961.1436, y: 8571236.2512 },\n { id: 35038, x: 4866361.019, y: 8790095.714 },\n { id: 71930, x: 4650494.3725, y: 8434735.6331 },\n { id: 35039, x: 4864530.14, y: 8783942.4474 },\n { id: 63733, x: 4726237.0376, y: 8436251.0177 },\n { id: 71932, x: 4646807.3869, y: 8427077.6152 },\n { id: 6352, x: 4731674.865, y: 8564162.3276 },\n { id: 6353, x: 4731511.138, y: 8575340.0154 },\n { id: 6354, x: 4731278.077, y: 8575187.406 },\n { id: 71939, x: 4640796.88, y: 8421993.4072 },\n { id: 71940, x: 4640311.7768, y: 8432193.5362 },\n { id: 71946, x: 4634834.9888, y: 8431063.6534 },\n { id: 39163, x: 4837870.8478, y: 8760242.1741 },\n { id: 39164, x: 4837340.6051, y: 8753024.4883 },\n { id: 39166, x: 4835570.9801, y: 8748175.0076 },\n { id: 39175, x: 4827549.4061, y: 8756898.5928 },\n { id: 39176, x: 4826429.0478, y: 8748992.1751 },\n { id: 39178, x: 4824355.6222, y: 8744398.3049 },\n { id: 30985, x: 4595349.8197, y: 8605654.0843 },\n { id: 30988, x: 4593989.1158, y: 8618072.1112 },\n { id: 30992, x: 4591446.9534, y: 8610572.7684 },\n { id: 26893, x: 4693360.7122, y: 8756550.5548 },\n { id: 30993, x: 4590658.5918, y: 8624043.5176 },\n { id: 26897, x: 4690041.0473, y: 8754556.3245 },\n { id: 30998, x: 4588458.8648, y: 8604682.4897 },\n { id: 26899, x: 4689776.7542, y: 8761240.9113 },\n { id: 30999, x: 4586625.3045, y: 8613450.8809 },\n { id: 26900, x: 4688427.131, y: 8749326.8283 },\n { id: 31000, x: 4586273.1857, y: 8617865.4775 },\n { id: 31001, x: 4585611.2471, y: 8608034.1051 },\n { id: 31002, x: 4586014.6205, y: 8621731.8646 },\n { id: 31005, x: 4582740.2095, y: 8610875.7412 },\n { id: 26907, x: 4682941.0748, y: 8756818.0029 },\n { id: 31007, x: 4581326.8892, y: 8615631.5307 },\n { id: 31008, x: 4580964.4083, y: 8607048.4136 },\n { id: 31009, x: 4580979.1204, y: 8621077.1751 },\n { id: 31011, x: 4578958.1984, y: 8608327.9797 },\n { id: 31012, x: 4578540.3713, y: 8615433.6147 },\n { id: 26913, x: 4678919.6929, y: 8750032.6147 },\n { id: 31013, x: 4578263.73, y: 8611802.3848 },\n { id: 26915, x: 4678163.8433, y: 8761535.1114 },\n { id: 26917, x: 4676598.8318, y: 8758278.8278 },\n { id: 14655, x: 4741185.458, y: 8615236.5636 },\n { id: 47456, x: 4807143.2188, y: 8819693.3871 },\n { id: 14664, x: 4733942.7419, y: 8616694.0101 },\n { id: 35162, x: 4880198.7703, y: 8816436.9322 },\n { id: 47462, x: 4802682.338, y: 8810433.1766 },\n { id: 2373, x: 4816960.8214, y: 8547361.6119 },\n { id: 47463, x: 4801873.2607, y: 8820883.8125 },\n { id: 47465, x: 4800373.3395, y: 8813464.2895 },\n { id: 47467, x: 4798668.7049, y: 8816546.5967 },\n { id: 35170, x: 4873726.592, y: 8812674.043 },\n { id: 35171, x: 4872144.6348, y: 8806432.3031 },\n { id: 47469, x: 4798140.1662, y: 8819896.4793 },\n { id: 35175, x: 4871008.0715, y: 8819462.8873 },\n { id: 2384, x: 4810007.9078, y: 8555729.9642 },\n { id: 47474, x: 4795474.826, y: 8808895.2903 },\n { id: 2385, x: 4807927.1325, y: 8545509.8756 },\n { id: 35181, x: 4866151.9555, y: 8805532.0617 },\n { id: 47479, x: 4790415.9365, y: 8814131.8386 },\n { id: 35184, x: 4863763.3979, y: 8813572.3447 },\n { id: 2392, x: 4801956.7376, y: 8541759.1943 },\n { id: 2394, x: 4801508.9418, y: 8550511.563 },\n { id: 43395, x: 4801057.2249, y: 8665271.5174 },\n { id: 43396, x: 4799771.3312, y: 8672854.0576 },\n { id: 43400, x: 4796003.5928, y: 8681652.0076 },\n { id: 22909, x: 4732246.9246, y: 8793415.4107 },\n { id: 43406, x: 4790897.9284, y: 8671151.0768 },\n { id: 22911, x: 4732356.3099, y: 8804955.1213 },\n { id: 63903, x: 4760867.0657, y: 8463148.6152 },\n { id: 43408, x: 4788963.442, y: 8662906.3742 },\n { id: 63905, x: 4758337.0267, y: 8474508.1054 },\n { id: 63907, x: 4757836.2532, y: 8469399.1801 },\n { id: 22918, x: 4721839.6061, y: 8791074.0529 },\n { id: 63909, x: 4756629.2426, y: 8460772.9975 },\n { id: 43414, x: 4785919.0598, y: 8669381.4514 },\n { id: 43415, x: 4784423.8827, y: 8677201.173 },\n { id: 22920, x: 4720069.0897, y: 8799459.8651 },\n { id: 63914, x: 4751943.286, y: 8474926.2008 },\n { id: 63915, x: 4751525.5934, y: 8467029.649 },\n { id: 6529, x: 4736576.9397, y: 8552683.3734 },\n { id: 63918, x: 4748964.9138, y: 8464448.4331 },\n { id: 63919, x: 4748462.7376, y: 8477205.6069 },\n { id: 68019, x: 4724711.7902, y: 8474927.6816 },\n { id: 14733, x: 4749760.5598, y: 8641075.8602 },\n { id: 63922, x: 4746336.6659, y: 8467217.2413 },\n { id: 39329, x: 4839645.9509, y: 8774100.6435 },\n { id: 63924, x: 4743977.7849, y: 8473098.3167 },\n { id: 68026, x: 4721503.0128, y: 8467453.2641 },\n { id: 6541, x: 4725819.542, y: 8545046.8808 },\n { id: 39338, x: 4833178.9951, y: 8767599.8236 },\n { id: 68032, x: 4718152.2314, y: 8474415.4412 },\n { id: 68035, x: 4716174.3646, y: 8461011.6208 },\n { id: 39346, x: 4829645.0942, y: 8776519.0927 },\n { id: 39347, x: 4827830.8064, y: 8764153.2413 },\n { id: 68042, x: 4710457.2001, y: 8472629.5884 },\n { id: 10665, x: 4818059.6473, y: 8437964.6099 },\n { id: 59854, x: 4614439.8374, y: 8596877.2996 },\n { id: 10666, x: 4816685.8852, y: 8431079.6413 },\n { id: 59855, x: 4614220.9456, y: 8591551.7845 },\n { id: 59856, x: 4614482.7348, y: 8602709.6901 },\n { id: 10671, x: 4813231.1876, y: 8425370.0882 },\n { id: 59860, x: 4610907.6393, y: 8586913.2705 },\n { id: 59861, x: 4610782.3639, y: 8595846.0999 },\n { id: 59862, x: 4608791.2609, y: 8603935.1152 },\n { id: 14774, x: 4751899.0273, y: 8654578.0064 },\n { id: 51666, x: 4720385.2055, y: 8569423.51 },\n { id: 10676, x: 4809743.3234, y: 8430989.4252 },\n { id: 59865, x: 4606686.8178, y: 8590130.3761 },\n { id: 51667, x: 4718604.7357, y: 8564137.05 },\n { id: 27073, x: 4692008.6011, y: 8775605.1729 },\n { id: 51668, x: 4718561.524, y: 8579342.9068 },\n { id: 27074, x: 4689902.9025, y: 8769781.9585 },\n { id: 27075, x: 4690404.3563, y: 8787682.539 },\n { id: 14778, x: 4747782.1346, y: 8646647.7243 },\n { id: 59868, x: 4605455.7787, y: 8599065.1447 },\n { id: 27076, x: 4690178.9398, y: 8782684.3874 },\n { id: 59869, x: 4603958.7874, y: 8603565.196 },\n { id: 10682, x: 4806521.2999, y: 8420210.4919 },\n { id: 51674, x: 4712750.6611, y: 8571726.4485 },\n { id: 51675, x: 4711807.8534, y: 8563737.861 },\n { id: 27081, x: 4685404.7719, y: 8774254.7793 },\n { id: 59874, x: 4599924.2667, y: 8585653.282 },\n { id: 27083, x: 4684629.9109, y: 8770015.2139 },\n { id: 10687, x: 4802675.131, y: 8430544.2717 },\n { id: 59876, x: 4598049.3222, y: 8595700.5741 },\n { id: 51678, x: 4709655.6478, y: 8580500.8676 },\n { id: 10688, x: 4801940.7213, y: 8438759.4553 },\n { id: 51680, x: 4707204.9475, y: 8564643.3972 },\n { id: 31185, x: 4615893.3179, y: 8631144.2956 },\n { id: 72175, x: 4628523.4738, y: 8414163.2174 },\n { id: 31186, x: 4615151.0607, y: 8624810.2699 },\n { id: 27088, x: 4680044.352, y: 8768669.6076 },\n { id: 10692, x: 4800337.1418, y: 8422466.3753 },\n { id: 27090, x: 4678607.181, y: 8785040.1566 },\n { id: 31190, x: 4612360.8365, y: 8637747.4811 },\n { id: 27091, x: 4678186.2101, y: 8775595.4422 },\n { id: 31193, x: 4609608.9735, y: 8644876.7117 },\n { id: 31194, x: 4609398.1222, y: 8639825.0714 },\n { id: 31195, x: 4608793.6865, y: 8631475.5906 },\n { id: 72186, x: 4647697.9983, y: 8416357.0455 },\n { id: 31197, x: 4605786.1801, y: 8642426.419 },\n { id: 72187, x: 4644041.5257, y: 8409847.0192 },\n { id: 31200, x: 4602653.4746, y: 8634140.6425 },\n { id: 72190, x: 4638515.4979, y: 8415973.4632 },\n { id: 72193, x: 4635433.5832, y: 8411452.0902 },\n { id: 31204, x: 4599708.8108, y: 8628258.8899 },\n { id: 31207, x: 4598139.0679, y: 8636837.1402 },\n { id: 55820, x: 4669708.4415, y: 8544694.2377 },\n { id: 55823, x: 4666868.1325, y: 8560709.385 },\n { id: 55825, x: 4664666.9649, y: 8547889.6201 },\n { id: 55827, x: 4661602.9191, y: 8557393.5652 },\n { id: 55829, x: 4659936.1593, y: 8544456.3756 },\n { id: 55830, x: 4658707.855, y: 8549496.5181 },\n { id: 55832, x: 4656442.6311, y: 8561826.2366 },\n { id: 55836, x: 4652047.7326, y: 8556716.6653 },\n { id: 72249, x: 4608610.1456, y: 8412800.6944 },\n { id: 2570, x: 4835330.1343, y: 8580805.1983 },\n { id: 2571, x: 4835238.4291, y: 8591130.8754 },\n { id: 47662, x: 4788170.1665, y: 8817470.7547 },\n { id: 47665, x: 4786236.268, y: 8811264.0114 },\n { id: 72259, x: 4590632.896, y: 8416260.5907 },\n { id: 72261, x: 4578700.7635, y: 8411101.3854 },\n { id: 27173, x: 4674612.8051, y: 8771043.9432 },\n { id: 2581, x: 4827327.7128, y: 8589534.2358 },\n { id: 2582, x: 4826660.1984, y: 8596106.352 },\n { id: 47672, x: 4781739.2251, y: 8812724.8994 },\n { id: 27177, x: 4672103.8061, y: 8788649.2748 },\n { id: 35376, x: 4862464.4096, y: 8821254.0082 },\n { id: 27178, x: 4670388.0509, y: 8781244.2646 },\n { id: 2584, x: 4825568.6479, y: 8582415.3217 },\n { id: 35377, x: 4861401.7269, y: 8803570.3458 },\n { id: 27179, x: 4669314.9376, y: 8773789.2402 },\n { id: 47675, x: 4779350.0733, y: 8817468.5507 },\n { id: 27180, x: 4668911.754, y: 8770295.3586 },\n { id: 47676, x: 4777674.5731, y: 8808566.2917 },\n { id: 35381, x: 4857843.6647, y: 8807247.9522 },\n { id: 27186, x: 4665638.8657, y: 8778259.7438 },\n { id: 27187, x: 4663979.83, y: 8787619.9281 },\n { id: 35387, x: 4853593.8325, y: 8815063.349 },\n { id: 2595, x: 4818999.2766, y: 8595455.8926 },\n { id: 35389, x: 4852257.2483, y: 8821020.7362 },\n { id: 27192, x: 4658132.7472, y: 8782202.8425 },\n { id: 35392, x: 4851212.8828, y: 8802562.4796 },\n { id: 35393, x: 4849615.7601, y: 8809044.068 },\n { id: 39495, x: 4822589.7986, y: 8765017.4966 },\n { id: 39498, x: 4820867.8332, y: 8772915.4407 },\n { id: 39506, x: 4814239.3935, y: 8771645.7971 },\n { id: 39509, x: 4812753.5373, y: 8780896.1142 },\n { id: 39513, x: 4809930.261, y: 8765986.7239 },\n { id: 39515, x: 4807574.0265, y: 8774552.3343 },\n { id: 68210, x: 4722034.5947, y: 8494117.7524 },\n { id: 68214, x: 4718510.4682, y: 8482683.1664 },\n { id: 43625, x: 4799005.7158, y: 8699115.414 },\n { id: 43626, x: 4796827.4022, y: 8689573.5109 },\n { id: 68222, x: 4712676.5368, y: 8490411.7564 },\n { id: 68223, x: 4712851.0936, y: 8479883.5916 },\n { id: 43632, x: 4793194.6677, y: 8698047.5367 },\n { id: 43634, x: 4790611.3001, y: 8684714.9987 },\n { id: 43635, x: 4790643.0074, y: 8691994.4716 },\n { id: 43639, x: 4786543.2421, y: 8694599.662 },\n { id: 43641, x: 4786128.5885, y: 8686145.3477 },\n { id: 27259, x: 4673798.4591, y: 8751701.5339 },\n { id: 27261, x: 4671578.1456, y: 8764673.425 },\n { id: 27268, x: 4666724.9337, y: 8754057.8102 },\n { id: 27269, x: 4666676.9669, y: 8760588.4776 },\n { id: 27271, x: 4665203.2299, y: 8748219.1803 },\n { id: 23178, x: 4708860.2512, y: 8794975.7507 },\n { id: 23180, x: 4707424.7554, y: 8803684.3762 },\n { id: 23185, x: 4702672.118, y: 8790908.2559 },\n { id: 23186, x: 4702564.4261, y: 8797036.2187 },\n { id: 23188, x: 4700595.0638, y: 8804306.2877 },\n { id: 14992, x: 4740877.9547, y: 8661421.2473 },\n { id: 14995, x: 4737796.221, y: 8650707.1907 },\n { id: 14996, x: 4737531.2019, y: 8643870.9701 },\n { id: 19099, x: 4708887.1, y: 8639559.6486 },\n { id: 15002, x: 4734318.8327, y: 8662824.6862 },\n { id: 19103, x: 4707698.3422, y: 8626632.5698 },\n { id: 51897, x: 4707066.2147, y: 8572389.6192 },\n { id: 19106, x: 4706120.9876, y: 8634570.2826 },\n { id: 51899, x: 4706205.5089, y: 8576647.6423 },\n { id: 51900, x: 4704877.0012, y: 8580180.3511 },\n { id: 15009, x: 4728485.7306, y: 8654815.4316 },\n { id: 31406, x: 4613594.9895, y: 8648240.153 },\n { id: 31407, x: 4612695.4402, y: 8658844.6088 },\n { id: 51904, x: 4702266.3138, y: 8567718.46 },\n { id: 72399, x: 4608546.2186, y: 8419678.0711 },\n { id: 19113, x: 4703987.5196, y: 8642450.3095 },\n { id: 72400, x: 4608219.5997, y: 8425637.4754 },\n { id: 31411, x: 4608305.5541, y: 8650662.4064 },\n { id: 51907, x: 4700414.1277, y: 8574502.5665 },\n { id: 31412, x: 4607903.2279, y: 8654640.9979 },\n { id: 19116, x: 4701703.2185, y: 8629506.029 },\n { id: 72403, x: 4602578.4227, y: 8432431.7638 },\n { id: 19117, x: 4701335.8345, y: 8637491.1311 },\n { id: 51910, x: 4699181.5997, y: 8578129.9638 },\n { id: 31415, x: 4606677.5677, y: 8665049.7637 },\n { id: 72405, x: 4601181.2023, y: 8426066.5387 },\n { id: 72406, x: 4601004.6889, y: 8418912.9704 },\n { id: 31417, x: 4603795.5295, y: 8647548.5496 },\n { id: 19120, x: 4697918.4783, y: 8642134.3444 },\n { id: 31418, x: 4603533.856, y: 8654860.0165 },\n { id: 19121, x: 4696150.591, y: 8625467.9761 },\n { id: 10923, x: 4835279.007, y: 8463506.2347 },\n { id: 51914, x: 4694806.2946, y: 8572059.0987 },\n { id: 19122, x: 4696383.0374, y: 8633724.987 },\n { id: 72409, x: 4596873.3162, y: 8432461.4456 },\n { id: 51915, x: 4693308.8484, y: 8577419.6623 },\n { id: 31420, x: 4603235.48, y: 8659000.4789 },\n { id: 19124, x: 4693901.7257, y: 8629377.357 },\n { id: 10927, x: 4832040.6141, y: 8467115.9129 },\n { id: 31423, x: 4599363.3273, y: 8664361.7965 },\n { id: 19126, x: 4692751.416, y: 8640965.4495 },\n { id: 64218, x: 4761357.9066, y: 8487566.775 },\n { id: 10932, x: 4828614.8939, y: 8475851.0184 },\n { id: 64221, x: 4759163.7423, y: 8495135.9646 },\n { id: 64223, x: 4756235.8971, y: 8484081.8672 },\n { id: 10939, x: 4825884.0544, y: 8460703.501 },\n { id: 10940, x: 4824710.4575, y: 8471606.1947 },\n { id: 64228, x: 4750710.8684, y: 8499401.6794 },\n { id: 35535, x: 4859212.3878, y: 8797951.8654 },\n { id: 35538, x: 4857444.7413, y: 8787253.6582 },\n { id: 64235, x: 4746428.6298, y: 8489506.5606 },\n { id: 10948, x: 4818459.6322, y: 8468742.2262 },\n { id: 35548, x: 4850718.6662, y: 8785373.0765 },\n { id: 6856, x: 4760771.3705, y: 8591058.6977 },\n { id: 6857, x: 4759384.2021, y: 8598708.2506 },\n { id: 6858, x: 4758483.8526, y: 8585049.2302 },\n { id: 35552, x: 4847767.9372, y: 8792818.561 },\n { id: 6870, x: 4747347.5237, y: 8595411.0004 },\n { id: 6871, x: 4745672.3005, y: 8587803.6068 },\n { id: 60162, x: 4595388.8246, y: 8589684.9349 },\n { id: 60166, x: 4593208.1647, y: 8601995.8886 },\n { id: 60168, x: 4590960.2134, y: 8585538.2496 },\n { id: 60170, x: 4588274.8525, y: 8590024.6386 },\n { id: 60172, x: 4585722.3166, y: 8594548.2272 },\n { id: 60176, x: 4581751.7687, y: 8588647.1344 },\n { id: 47882, x: 4785630.1777, y: 8787629.4504 },\n { id: 47883, x: 4785768.8261, y: 8803612.4503 },\n { id: 47884, x: 4783935.5482, y: 8798306.9912 },\n { id: 47886, x: 4781723.9517, y: 8791531.5405 },\n { id: 47892, x: 4776813.0744, y: 8795607.0472 },\n { id: 2804, x: 4818038.0652, y: 8589286.8396 },\n { id: 47894, x: 4774493.8263, y: 8804424.2758 },\n { id: 2805, x: 4816577.9813, y: 8581888.0155 },\n { id: 60192, x: 4575224.8056, y: 8599172.0814 },\n { id: 47896, x: 4770444.7373, y: 8790755.2841 },\n { id: 39703, x: 4820792.3285, y: 8759051.2205 },\n { id: 2812, x: 4813160.8972, y: 8599569.5121 },\n { id: 2813, x: 4811428.4104, y: 8587209.6933 },\n { id: 2814, x: 4811611.6278, y: 8593702.396 },\n { id: 39707, x: 4817622.9699, y: 8749888.3869 },\n { id: 39709, x: 4815794.9646, y: 8758297.3624 },\n { id: 56107, x: 4686143.1177, y: 8589936.3828 },\n { id: 56108, x: 4682872.767, y: 8587219.6776 },\n { id: 56109, x: 4683060.1962, y: 8596468.7239 },\n { id: 2822, x: 4805894.8112, y: 8583154.1858 },\n { id: 56111, x: 4679470.7951, y: 8599121.0309 },\n { id: 56112, x: 4677315.6725, y: 8583553.9271 },\n { id: 39717, x: 4809276.8044, y: 8746935.6669 },\n { id: 56114, x: 4677352.2667, y: 8594664.1399 },\n { id: 2828, x: 4801603.1481, y: 8590857.3075 },\n { id: 39720, x: 4807084.7992, y: 8754373.149 },\n { id: 27423, x: 4695124.7457, y: 8799648.7953 },\n { id: 39721, x: 4805768.2586, y: 8747134.7247 },\n { id: 56118, x: 4672501.7295, y: 8593279.3896 },\n { id: 27425, x: 4694089.3052, y: 8791347.1212 },\n { id: 27426, x: 4694237.8626, y: 8804883.1781 },\n { id: 56121, x: 4670683.5462, y: 8598445.5325 },\n { id: 31527, x: 4597842.3731, y: 8652423.824 },\n { id: 31528, x: 4596103.4601, y: 8657763.1503 },\n { id: 31530, x: 4594218.7363, y: 8664395.9695 },\n { id: 27432, x: 4689226.4915, y: 8802755.5747 },\n { id: 31533, x: 4589445.0806, y: 8655980.5215 },\n { id: 27434, x: 4688056.0242, y: 8798070.6538 },\n { id: 27435, x: 4686527.6211, y: 8794440.8547 },\n { id: 27439, x: 4684614.4087, y: 8808817.1043 },\n { id: 27440, x: 4682153.3189, y: 8790511.2089 },\n { id: 31540, x: 4586227.9215, y: 8648530.5099 },\n { id: 60235, x: 4765279.8113, y: 8416212.0139 },\n { id: 31542, x: 4584928.3451, y: 8652772.3201 },\n { id: 27443, x: 4680421.0829, y: 8802680.595 },\n { id: 60236, x: 4765057.4406, y: 8407948.9639 },\n { id: 31544, x: 4583888.932, y: 8666835.4192 },\n { id: 27448, x: 4677286.3138, y: 8790837.9696 },\n { id: 31548, x: 4580094.668, y: 8648646.3098 },\n { id: 27449, x: 4677235.5525, y: 8797652.4971 },\n { id: 31549, x: 4580326.0889, y: 8657305.099 },\n { id: 35653, x: 4854844.2942, y: 8849886.8343 },\n { id: 35654, x: 4853919.3229, y: 8843163.8878 },\n { id: 35658, x: 4853071.4069, y: 8861999.3246 },\n { id: 15163, x: 4744596.7124, y: 8630109.2193 },\n { id: 35660, x: 4851243.5784, y: 8856817.3308 },\n { id: 35663, x: 4848619.9021, y: 8845465.6361 },\n { id: 6972, x: 4738198.9838, y: 8595161.9545 },\n { id: 35666, x: 4847728.7797, y: 8850536.7503 },\n { id: 6973, x: 4737462.928, y: 8583561.1702 },\n { id: 68459, x: 4706387.8582, y: 8479628.7925 },\n { id: 68461, x: 4703473.9061, y: 8495548.0239 },\n { id: 15174, x: 4736498.0965, y: 8630784.1194 },\n { id: 68463, x: 4702332.2769, y: 8488505.7439 },\n { id: 6978, x: 4731677.1661, y: 8589591.7816 },\n { id: 15179, x: 4732710.609, y: 8627096.2584 },\n { id: 15182, x: 4730105.5885, y: 8641061.3319 },\n { id: 68470, x: 4695395.597, y: 8480706.3325 },\n { id: 68472, x: 4693878.1873, y: 8494051.1866 },\n { id: 43880, x: 4779183.2615, y: 8691576.5241 },\n { id: 43881, x: 4777915.6713, y: 8699947.3476 },\n { id: 43882, x: 4776090.8427, y: 8687118.5916 },\n { id: 68478, x: 4688832.3965, y: 8494421.4852 },\n { id: 68480, x: 4689063.9855, y: 8480645.2539 },\n { id: 43886, x: 4773787.0499, y: 8700675.1284 },\n { id: 43888, x: 4772748.2172, y: 8695859.9798 },\n { id: 43894, x: 4767561.0844, y: 8690915.4424 },\n { id: 47997, x: 4807944.3251, y: 8828998.8007 },\n { id: 48000, x: 4803282.2218, y: 8825138.0013 },\n { id: 48002, x: 4800358.9477, y: 8824947.7754 },\n { id: 64403, x: 4741663.1889, y: 8497791.0462 },\n { id: 64405, x: 4740212.045, y: 8482515.3676 },\n { id: 72603, x: 4613293.6418, y: 8444767.4602 },\n { id: 72604, x: 4612529.9797, y: 8453858.2632 },\n { id: 64407, x: 4738183.9594, y: 8491663.5775 },\n { id: 72606, x: 4612037.5058, y: 8438249.0745 },\n { id: 64409, x: 4735254.4573, y: 8498171.1681 },\n { id: 64411, x: 4734104.9962, y: 8485282.6087 },\n { id: 72611, x: 4604679.3097, y: 8454921.49 },\n { id: 64414, x: 4730976.1633, y: 8491862.9113 },\n { id: 72612, x: 4603844.7606, y: 8439772.9919 },\n { id: 64416, x: 4728855.3626, y: 8498211.1297 },\n { id: 60317, x: 4764575.8714, y: 8443847.5467 },\n { id: 60319, x: 4763738.0464, y: 8454332.3603 },\n { id: 72616, x: 4598010.0657, y: 8447522.8763 },\n { id: 64419, x: 4726777.6238, y: 8487437.4114 },\n { id: 60320, x: 4763529.5237, y: 8448628.5135 },\n { id: 7042, x: 4868754.2589, y: 8372372.4941 },\n { id: 7043, x: 4867219.0322, y: 8379172.1238 },\n { id: 15242, x: 4753129.3089, y: 8682368.8545 },\n { id: 15243, x: 4752053.7308, y: 8676514.7431 },\n { id: 15245, x: 4751337.8168, y: 8666416.6843 },\n { id: 7049, x: 4858908.3346, y: 8375833.0054 },\n { id: 39844, x: 4839810.8658, y: 8785329.2799 },\n { id: 39847, x: 4838091.4439, y: 8796812.0066 },\n { id: 52151, x: 4706483.0708, y: 8553551.78 },\n { id: 39855, x: 4831787.8277, y: 8785559.9725 },\n { id: 11163, x: 4833746.5114, y: 8490092.7359 },\n { id: 52154, x: 4705408.403, y: 8546138.843 },\n { id: 39857, x: 4830286.7117, y: 8792527.1563 },\n { id: 11164, x: 4833280.6183, y: 8496288.5743 },\n { id: 52156, x: 4702599.2547, y: 8550378.097 },\n { id: 11166, x: 4831066.7378, y: 8481157.6617 },\n { id: 52158, x: 4701118.193, y: 8560170.5229 },\n { id: 52159, x: 4700040.0851, y: 8555086.747 },\n { id: 52161, x: 4698537.3106, y: 8545666.7669 },\n { id: 39864, x: 4825958.9872, y: 8783537.953 },\n { id: 39865, x: 4826256.5593, y: 8792926.2964 },\n { id: 11173, x: 4825474.5707, y: 8490653.0701 },\n { id: 52164, x: 4695042.7223, y: 8552557.8781 },\n { id: 52165, x: 4692226.1933, y: 8560689.3803 },\n { id: 11175, x: 4825047.9508, y: 8480312.2946 },\n { id: 52167, x: 4690019.6047, y: 8541998.7741 },\n { id: 11177, x: 4822333.9082, y: 8499729.4569 },\n { id: 11181, x: 4820350.8382, y: 8490850.9351 },\n { id: 27584, x: 4693191.7347, y: 8809969.977 },\n { id: 27586, x: 4682312.9575, y: 8812053.9628 },\n { id: 19388, x: 4727272.1608, y: 8674688.3971 },\n { id: 15289, x: 4750309.4983, y: 8697266.2738 },\n { id: 19389, x: 4726606.7054, y: 8668749.4595 },\n { id: 27590, x: 4678391.4078, y: 8818281.3508 },\n { id: 60383, x: 4765411.4275, y: 8431800.6173 },\n { id: 19394, x: 4724028.4251, y: 8666297.1964 },\n { id: 19395, x: 4722156.2727, y: 8681823.8644 },\n { id: 60386, x: 4764569.5738, y: 8425651.2377 },\n { id: 19396, x: 4721481.9624, y: 8677296.8754 },\n { id: 60387, x: 4763025.8021, y: 8436378.2132 },\n { id: 19397, x: 4719829.723, y: 8672061.491 },\n { id: 19401, x: 4716862.8446, y: 8680939.5422 },\n { id: 19406, x: 4712728.2689, y: 8668975.5613 },\n { id: 35804, x: 4860033.0301, y: 8831256.4991 },\n { id: 19408, x: 4712078.6765, y: 8684350.6866 },\n { id: 23508, x: 4688454.5503, y: 8604992.6057 },\n { id: 19409, x: 4711210.3193, y: 8675944.2516 },\n { id: 23509, x: 4688369.2069, y: 8614034.601 },\n { id: 35808, x: 4857123.4624, y: 8824599.3088 },\n { id: 23512, x: 4683534.4352, y: 8605793.0749 },\n { id: 7118, x: 4856070.0676, y: 8369210.8724 },\n { id: 23515, x: 4683131.8755, y: 8618714.842 },\n { id: 35814, x: 4853970.1562, y: 8833429.5095 },\n { id: 35815, x: 4853416.085, y: 8827207.4816 },\n { id: 35816, x: 4852802.6878, y: 8837658.9185 },\n { id: 7123, x: 4849262.8388, y: 8377785.1442 },\n { id: 23520, x: 4679037.0126, y: 8622751.5463 },\n { id: 23522, x: 4677053.592, y: 8613479.5956 },\n { id: 7126, x: 4843357.2698, y: 8371646.0911 },\n { id: 7127, x: 4842867.0934, y: 8376820.4894 },\n { id: 23524, x: 4674778.3581, y: 8606124.0563 },\n { id: 60420, x: 4763464.1203, y: 8492901.8334 },\n { id: 35826, x: 4847128.2007, y: 8826419.4386 },\n { id: 31743, x: 4597277.5497, y: 8633120.1862 },\n { id: 31744, x: 4597450.5965, y: 8645147.373 },\n { id: 31745, x: 4596162.5636, y: 8639302.856 },\n { id: 31746, x: 4595645.0887, y: 8627752.5578 },\n { id: 60440, x: 4765324.0445, y: 8466103.8737 },\n { id: 60441, x: 4764887.4543, y: 8476667.9555 },\n { id: 60442, x: 4763944.8813, y: 8471029.5284 },\n { id: 31755, x: 4590952.1853, y: 8638229.4684 },\n { id: 31756, x: 4589282.5261, y: 8632992.8608 },\n { id: 31759, x: 4587664.3974, y: 8643796.6222 },\n { id: 31760, x: 4586961.9638, y: 8637002.7908 },\n { id: 31761, x: 4584571.0832, y: 8629482.6993 },\n { id: 31763, x: 4583327.1653, y: 8626759.0388 },\n { id: 44061, x: 4780447.6831, y: 8666821.5238 },\n { id: 31764, x: 4583531.3456, y: 8633778.5304 },\n { id: 31766, x: 4581158.2815, y: 8637647.8985 },\n { id: 31767, x: 4580955.8401, y: 8643458.3159 },\n { id: 44067, x: 4775658.6719, y: 8673180.581 },\n { id: 44068, x: 4774464.9264, y: 8679664.1808 },\n { id: 60467, x: 4744256.5908, y: 8372878.4236 },\n { id: 44071, x: 4772669.3454, y: 8664944.2319 },\n { id: 44072, x: 4770558.4534, y: 8676857.5367 },\n { id: 60469, x: 4737754.3284, y: 8375501.3177 },\n { id: 35876, x: 4851543.3163, y: 8868267.8369 },\n { id: 60471, x: 4727579.9762, y: 8375293.7036 },\n { id: 44075, x: 4768743.7346, y: 8670801.6107 },\n { id: 72791, x: 4591572.0711, y: 8449694.7073 },\n { id: 72792, x: 4591439.9144, y: 8438230.5163 },\n { id: 72794, x: 4588672.4202, y: 8455523.1021 },\n { id: 72798, x: 4585684.8697, y: 8440964.7702 },\n { id: 48218, x: 4758780.7586, y: 8623885.5308 },\n { id: 48221, x: 4756726.9752, y: 8637147.7793 },\n { id: 48223, x: 4754285.8444, y: 8630084.5607 },\n { id: 52328, x: 4725517.2208, y: 8595626.414 },\n { id: 27736, x: 4676359.0637, y: 8811461.7709 },\n { id: 52331, x: 4722461.5515, y: 8583605.0228 },\n { id: 60530, x: 4750616.9005, y: 8397351.5804 },\n { id: 27739, x: 4673474.0969, y: 8812510.7063 },\n { id: 60532, x: 4749792.561, y: 8389127.6967 },\n { id: 27741, x: 4671671.4947, y: 8818172.0885 },\n { id: 60534, x: 4748221.4055, y: 8383794.5289 },\n { id: 52336, x: 4719510.9647, y: 8591118.7705 },\n { id: 27742, x: 4670924.0199, y: 8826375.5843 },\n { id: 68733, x: 4704996.2458, y: 8461317.3221 },\n { id: 52337, x: 4719254.0978, y: 8595174.3189 },\n { id: 68735, x: 4702205.432, y: 8471648.7923 },\n { id: 60539, x: 4745884.7613, y: 8394744.0371 },\n { id: 52341, x: 4714961.5716, y: 8592323.9786 },\n { id: 52342, x: 4714065.1577, y: 8584651.1421 },\n { id: 68739, x: 4697439.474, y: 8475521.7964 },\n { id: 52343, x: 4712846.6237, y: 8598549.6347 },\n { id: 68741, x: 4695084.0944, y: 8466758.4806 },\n { id: 27752, x: 4664432.1318, y: 8830383.2379 },\n { id: 52347, x: 4708739.1642, y: 8587122.084 },\n { id: 27753, x: 4663872.4386, y: 8816924.881 },\n { id: 52348, x: 4708435.6668, y: 8594915.6724 },\n { id: 27754, x: 4663136.3293, y: 8823218.6289 },\n { id: 68747, x: 4690063.7767, y: 8461650.0691 },\n { id: 27758, x: 4660055.7574, y: 8811298.3959 },\n { id: 27759, x: 4659241.8572, y: 8818552.0282 },\n { id: 31887, x: 4614541.5392, y: 8673747.2401 },\n { id: 3194, x: 4796004.9385, y: 8507115.5303 },\n { id: 31888, x: 4612033.4621, y: 8666708.3609 },\n { id: 31889, x: 4611611.2157, y: 8671203.0356 },\n { id: 3197, x: 4794935.5602, y: 8517187.1112 },\n { id: 56485, x: 4666098.4577, y: 8587695.805 },\n { id: 31891, x: 4610739.5985, y: 8679341.2458 },\n { id: 56486, x: 4664776.4282, y: 8599750.6383 },\n { id: 3199, x: 4791842.4949, y: 8502234.2177 },\n { id: 56487, x: 4663275.7241, y: 8593575.2538 },\n { id: 3200, x: 4791880.9457, y: 8497188.3433 },\n { id: 3201, x: 4789221.0539, y: 8505176.37 },\n { id: 31895, x: 4604392.6348, y: 8671736.6201 },\n { id: 3202, x: 4788717.4196, y: 8511719.0603 },\n { id: 31896, x: 4604154.5454, y: 8677067.9851 },\n { id: 3203, x: 4788808.8966, y: 8519875.1813 },\n { id: 56491, x: 4658844.5055, y: 8599452.9037 },\n { id: 56492, x: 4657129.8892, y: 8593094.1495 },\n { id: 3205, x: 4787191.1063, y: 8506636.4606 },\n { id: 56493, x: 4655713.9641, y: 8585114.977 },\n { id: 31899, x: 4600758.5301, y: 8681513.8436 },\n { id: 31900, x: 4598900.7148, y: 8672209.9799 },\n { id: 3207, x: 4785636.1791, y: 8500388.7728 },\n { id: 68792, x: 4680141.4656, y: 8371400.8466 },\n { id: 56495, x: 4652216.6165, y: 8584549.5751 },\n { id: 31901, x: 4597027.9591, y: 8678280.3536 },\n { id: 56497, x: 4652528.2078, y: 8599971.7714 },\n { id: 3211, x: 4781904.1642, y: 8508814.1359 },\n { id: 31905, x: 4592432.2957, y: 8681833.1852 },\n { id: 3212, x: 4781703.7309, y: 8520373.8049 },\n { id: 31906, x: 4590885.6118, y: 8673943.5775 },\n { id: 31911, x: 4583251.3604, y: 8673897.5435 },\n { id: 15518, x: 4746555.3993, y: 8686558.4927 },\n { id: 15524, x: 4741965.3441, y: 8698512.6935 },\n { id: 7327, x: 4872741.0176, y: 8389977.2002 },\n { id: 15527, x: 4737731.3002, y: 8690076.7923 },\n { id: 48321, x: 4761955.1596, y: 8651904.515 },\n { id: 7331, x: 4869074.3107, y: 8395360.9809 },\n { id: 36025, x: 4830235.9792, y: 8605860.7738 },\n { id: 48323, x: 4761268.5356, y: 8645013.3555 },\n { id: 36027, x: 4829724.2643, y: 8617403.7435 },\n { id: 15533, x: 4733824.3428, y: 8699786.0884 },\n { id: 7335, x: 4866661.8217, y: 8386486.3367 },\n { id: 48329, x: 4754929.8065, y: 8649259.134 },\n { id: 15537, x: 4730241.2577, y: 8685806.969 },\n { id: 36033, x: 4826454.5703, y: 8610345.2415 },\n { id: 36035, x: 4823811.9969, y: 8601722.3075 },\n { id: 7342, x: 4859824.9779, y: 8395202.7435 },\n { id: 7343, x: 4859167.7492, y: 8384052.2848 },\n { id: 36040, x: 4821012.2341, y: 8611280.6128 },\n { id: 11452, x: 4816868.7491, y: 8483258.2779 },\n { id: 11453, x: 4815748.8347, y: 8496617.434 },\n { id: 11458, x: 4811593.6727, y: 8486239.4403 },\n { id: 11466, x: 4805601.9187, y: 8495821.1732 },\n { id: 11472, x: 4801110.2662, y: 8487217.9165 },\n { id: 31968, x: 4575196.6023, y: 8619941.5703 },\n { id: 31969, x: 4573497.9853, y: 8604928.4258 },\n { id: 31970, x: 4573786.8075, y: 8615871.9918 },\n { id: 31971, x: 4573348.4566, y: 8623554.5339 },\n { id: 31978, x: 4567288.7884, y: 8608174.8576 },\n { id: 23792, x: 4670554.0987, y: 8610995.2425 },\n { id: 23794, x: 4670652.5327, y: 8620441.5862 },\n { id: 23796, x: 4667896.306, y: 8607701.9259 },\n { id: 23798, x: 4666264.1594, y: 8616880.4041 },\n { id: 23800, x: 4664380.3277, y: 8621784.7848 },\n { id: 31999, x: 4577775.1905, y: 8630603.1433 },\n { id: 32000, x: 4577751.3627, y: 8645928.3212 },\n { id: 23803, x: 4661785.7729, y: 8605929.4978 },\n { id: 23805, x: 4660755.3052, y: 8616480.7258 },\n { id: 32006, x: 4578402.0423, y: 8663089.0317 },\n { id: 23809, x: 4658781.221, y: 8622306.5512 },\n { id: 32009, x: 4837564.1143, y: 8600394.9365 },\n { id: 48406, x: 4763358.4967, y: 8664546.485 },\n { id: 23812, x: 4656473.2251, y: 8605786.3903 },\n { id: 48409, x: 4760951.5571, y: 8679780.1778 },\n { id: 48412, x: 4757983.8977, y: 8670145.9577 },\n { id: 56611, x: 4647796.4277, y: 8504856.921 },\n { id: 56613, x: 4646859.936, y: 8518572.0535 },\n { id: 40220, x: 4843737.911, y: 8817588.2486 },\n { id: 56618, x: 4639817.2741, y: 8501974.2713 },\n { id: 27925, x: 4677086.8467, y: 8803751.5141 },\n { id: 56619, x: 4639856.0284, y: 8512146.8865 },\n { id: 40224, x: 4841233.0209, y: 8805613.712 },\n { id: 73019, x: 4594347.5366, y: 8422005.8295 },\n { id: 27931, x: 4671981.9733, y: 8798673.0096 },\n { id: 27934, x: 4669209.5321, y: 8804832.3776 },\n { id: 27936, x: 4668162.0574, y: 8794702.6854 },\n { id: 40234, x: 4836701.503, y: 8816862.4043 },\n { id: 27937, x: 4667164.4488, y: 8809205.5905 },\n { id: 27938, x: 4666809.8342, y: 8801114.1305 },\n { id: 73027, x: 4585494.4464, y: 8421418.7549 },\n { id: 40237, x: 4833502.8153, y: 8811450.2868 },\n { id: 73029, x: 4584807.5495, y: 8429986.7386 },\n { id: 40239, x: 4832813.8669, y: 8804884.8136 },\n { id: 40241, x: 4830282.4453, y: 8819223.3453 },\n { id: 27944, x: 4663558.1236, y: 8807834.8599 },\n { id: 27946, x: 4662013.5176, y: 8795456.0804 },\n { id: 73036, x: 4579402.1801, y: 8423759.4187 },\n { id: 40247, x: 4826384.9697, y: 8804074.8506 },\n { id: 27952, x: 4658870.8828, y: 8793004.9217 },\n { id: 64851, x: 4741348.6389, y: 8461988.6749 },\n { id: 64853, x: 4739759.556, y: 8466373.6831 },\n { id: 64857, x: 4736868.2256, y: 8478944.5029 },\n { id: 64858, x: 4735557.6411, y: 8469120.3996 },\n { id: 64860, x: 4733919.5872, y: 8460095.8484 },\n { id: 3375, x: 4795072.0812, y: 8536497.8047 },\n { id: 3376, x: 4794342.1805, y: 8521808.0066 },\n { id: 3377, x: 4793807.8536, y: 8529869.05 },\n { id: 36171, x: 4817957.9655, y: 8605760.3838 },\n { id: 64865, x: 4730705.3085, y: 8463825.9248 },\n { id: 3386, x: 4786182.3416, y: 8528393.1645 },\n { id: 64872, x: 4727459.7065, y: 8470055.2774 },\n { id: 52575, x: 4703290.2801, y: 8595110.6867 },\n { id: 48476, x: 4765971.2495, y: 8698729.1247 },\n { id: 36179, x: 4813596.4089, y: 8618295.5138 },\n { id: 52576, x: 4701582.8561, y: 8586680.0637 },\n { id: 3388, x: 4785406.4494, y: 8538559.1285 },\n { id: 64874, x: 4725648.2351, y: 8461437.215 },\n { id: 52577, x: 4701160.3735, y: 8600347.4761 },\n { id: 52578, x: 4700739.8894, y: 8592220.6088 },\n { id: 36183, x: 4810188.9996, y: 8613784.6781 },\n { id: 3391, x: 4782071.6932, y: 8528527.8105 },\n { id: 48481, x: 4760788.4154, y: 8684404.0639 },\n { id: 48482, x: 4759681.5769, y: 8694629.1322 },\n { id: 52582, x: 4696657.4473, y: 8597070.3685 },\n { id: 52583, x: 4696314.7775, y: 8591056.0895 },\n { id: 48484, x: 4758167.0227, y: 8701024.9604 },\n { id: 52586, x: 4692358.4787, y: 8586622.4089 },\n { id: 36190, x: 4806608.5276, y: 8603528.4267 },\n { id: 60785, x: 4760696.5097, y: 8410761.8253 },\n { id: 52587, x: 4691892.4511, y: 8597104.6548 },\n { id: 48488, x: 4753842.6326, y: 8688335.1806 },\n { id: 36191, x: 4804969.8603, y: 8613247.919 },\n { id: 60786, x: 4760739.1376, y: 8403768.8107 },\n { id: 52589, x: 4690308.0032, y: 8592641.6279 },\n { id: 64887, x: 4715353.5869, y: 8372057.8912 },\n { id: 60789, x: 4757153.1486, y: 8415331.5247 },\n { id: 60792, x: 4755019.1683, y: 8409202.7512 },\n { id: 60794, x: 4754032.2021, y: 8404084.6499 },\n { id: 64894, x: 4693385.5119, y: 8373772.518 },\n { id: 60796, x: 4752611.2557, y: 8418317.0676 },\n { id: 60802, x: 4750113.4373, y: 8407382.111 },\n { id: 60803, x: 4749429.3471, y: 8412954.074 },\n { id: 19814, x: 4727921.6797, y: 8689153.6155 },\n { id: 19817, x: 4727672.0596, y: 8697728.9999 },\n { id: 60809, x: 4745765.6149, y: 8404313.8738 },\n { id: 60810, x: 4745053.8303, y: 8412841.7553 },\n { id: 19822, x: 4723255.8906, y: 8696397.6378 },\n { id: 19823, x: 4722687.609, y: 8688327.2973 },\n { id: 19824, x: 4722803.8073, y: 8703890.4295 },\n { id: 19826, x: 4720281.0829, y: 8694445.0917 },\n { id: 19830, x: 4718455.4206, y: 8690323.8357 },\n { id: 19831, x: 4716257.3047, y: 8697010.5202 },\n { id: 19832, x: 4715940.3239, y: 8703321.2251 },\n { id: 19834, x: 4713792.4895, y: 8690854.3728 },\n { id: 7575, x: 4873297.1974, y: 8410593.0796 },\n { id: 7576, x: 4872560.3016, y: 8400001.2466 },\n { id: 7577, x: 4871756.0101, y: 8403980.3799 },\n { id: 56770, x: 4649530.3899, y: 8527979.3088 },\n { id: 7583, x: 4864829.0681, y: 8399759.8214 },\n { id: 56772, x: 4646976.6335, y: 8531405.4367 },\n { id: 56773, x: 4646149.6756, y: 8523322.7068 },\n { id: 15783, x: 4745684.9844, y: 8680721.731 },\n { id: 56775, x: 4642744.5662, y: 8541029.4645 },\n { id: 15785, x: 4744436.9763, y: 8673313.9072 },\n { id: 7588, x: 4857904.2761, y: 8402304.7359 },\n { id: 48579, x: 4760666.0667, y: 8709717.9576 },\n { id: 15787, x: 4740010.6334, y: 8669468.4667 },\n { id: 7589, x: 4855875.9769, y: 8407396.3938 },\n { id: 56778, x: 4641143.3787, y: 8527582.8985 },\n { id: 48580, x: 4759488.1451, y: 8721667.7175 },\n { id: 11689, x: 4816851.2826, y: 8476074.1615 },\n { id: 56779, x: 4638677.6874, y: 8520986.2433 },\n { id: 44482, x: 4802181.617, y: 8708125.2388 },\n { id: 15789, x: 4739869.2891, y: 8679332.9377 },\n { id: 56782, x: 4638191.6975, y: 8532844.6956 },\n { id: 56783, x: 4636327.3904, y: 8525823.1049 },\n { id: 48585, x: 4755190.2709, y: 8719017.914 },\n { id: 56784, x: 4635492.0022, y: 8529339.1215 },\n { id: 44488, x: 4797298.8661, y: 8714667.8946 },\n { id: 11696, x: 4812012.5515, y: 8463971.3762 },\n { id: 56786, x: 4633098.3156, y: 8531908.6787 },\n { id: 15796, x: 4734265.4472, y: 8683641.8627 },\n { id: 44490, x: 4796064.2248, y: 8706831.4354 },\n { id: 11698, x: 4810707.6656, y: 8476241.7467 },\n { id: 73184, x: 4614159.6147, y: 8476818.3512 },\n { id: 15800, x: 4731517.1069, y: 8675358.1972 },\n { id: 11703, x: 4807083.3217, y: 8469455.2821 },\n { id: 44496, x: 4791506.0805, y: 8718738.368 },\n { id: 73189, x: 4605022.279, y: 8478169.4311 },\n { id: 44497, x: 4790913.9484, y: 8711764.108 },\n { id: 73191, x: 4604728.479, y: 8469502.7124 },\n { id: 44500, x: 4787568.2322, y: 8704674.2151 },\n { id: 40401, x: 4823717.1007, y: 8812227.6132 },\n { id: 11708, x: 4803077.4569, y: 8479287.4966 },\n { id: 73193, x: 4603759.3674, y: 8467892.4506 },\n { id: 11712, x: 4800708.6906, y: 8460792.7642 },\n { id: 40406, x: 4820059.9439, y: 8822304.4871 },\n { id: 11714, x: 4799711.7181, y: 8467612.8748 },\n { id: 40408, x: 4818692.5736, y: 8815930.0526 },\n { id: 73200, x: 4598049.1684, y: 8461485.9362 },\n { id: 73201, x: 4597128.6787, y: 8471031.379 },\n { id: 40411, x: 4816936.5151, y: 8808099.8009 },\n { id: 40416, x: 4813922.5295, y: 8821905.0099 },\n { id: 69112, x: 4688494.077, y: 8395164.0239 },\n { id: 40419, x: 4811263.502, y: 8817513.0413 },\n { id: 40421, x: 4810417.4956, y: 8804932.7723 },\n { id: 69115, x: 4688045.3884, y: 8379617.8478 },\n { id: 40425, x: 4808518.3726, y: 8808492.4676 },\n { id: 69119, x: 4684623.3659, y: 8382303.1315 },\n { id: 69122, x: 4679048.3337, y: 8389378.1019 },\n { id: 15839, x: 4751308.6691, y: 8704848.6122 },\n { id: 69127, x: 4674801.5967, y: 8383433.8476 },\n { id: 15844, x: 4748330.3245, y: 8722829.9845 },\n { id: 65047, x: 4726112.0881, y: 8381469.3745 },\n { id: 65048, x: 4724627.2475, y: 8393510.4991 },\n { id: 11766, x: 4797291.7365, y: 8411945.5916 },\n { id: 65054, x: 4719719.7365, y: 8396751.5565 },\n { id: 11767, x: 4796930.4369, y: 8405947.2813 },\n { id: 65055, x: 4719427.71, y: 8379259.7458 },\n { id: 48659, x: 4765217.5245, y: 8735950.6428 },\n { id: 11769, x: 4794874.0422, y: 8417653.0767 },\n { id: 65059, x: 4716914.2003, y: 8386119.8202 },\n { id: 11772, x: 4792796.7274, y: 8408386.1123 },\n { id: 48665, x: 4760561.7345, y: 8732364.9226 },\n { id: 48666, x: 4759042.918, y: 8742735.8554 },\n { id: 48667, x: 4757923.8897, y: 8727436.033 },\n { id: 3578, x: 4779273.9463, y: 8538693.2879 },\n { id: 11777, x: 4786664.7249, y: 8413092.3058 },\n { id: 32273, x: 4856191.9404, y: 8658462.6586 },\n { id: 3580, x: 4776680.612, y: 8529817.3267 },\n { id: 36373, x: 4834046.7353, y: 8632682.4889 },\n { id: 65069, x: 4709149.9719, y: 8392510.4881 },\n { id: 36376, x: 4831174.5878, y: 8622491.7678 },\n { id: 32277, x: 4851593.5945, y: 8653081.5571 },\n { id: 36377, x: 4831601.6252, y: 8641058.2636 },\n { id: 36380, x: 4828911.4502, y: 8635007.9889 },\n { id: 32281, x: 4847236.4422, y: 8655939.3853 },\n { id: 36381, x: 4826830.3387, y: 8639832.6016 },\n { id: 32282, x: 4845752.9815, y: 8647783.1695 },\n { id: 3589, x: 4770395.145, y: 8527991.7494 },\n { id: 3592, x: 4767633.5606, y: 8535406.765 },\n { id: 32286, x: 4842327.7488, y: 8651543.1164 },\n { id: 36386, x: 4823804.7401, y: 8621433.3464 },\n { id: 32287, x: 4840387.9734, y: 8642649.2463 },\n { id: 28188, x: 4652017.1438, y: 8617639.3957 },\n { id: 32288, x: 4840846.6561, y: 8657821.9815 },\n { id: 36388, x: 4822255.895, y: 8631664.5035 },\n { id: 28190, x: 4650184.7079, y: 8607652.2605 },\n { id: 28191, x: 4649525.1499, y: 8612935.8029 },\n { id: 28196, x: 4646977.9429, y: 8617778.4931 },\n { id: 24098, x: 4688735.1382, y: 8633744.3408 },\n { id: 28199, x: 4644974.209, y: 8614629.5321 },\n { id: 24100, x: 4686397.942, y: 8626826.5714 },\n { id: 15903, x: 4751749.7393, y: 8739433.0608 },\n { id: 28201, x: 4641627.3574, y: 8621465.1435 },\n { id: 24102, x: 4684829.4864, y: 8635423.6228 },\n { id: 28202, x: 4641084.174, y: 8607726.881 },\n { id: 24103, x: 4684638.2779, y: 8640054.254 },\n { id: 15905, x: 4750413.6594, y: 8732297.1285 },\n { id: 28203, x: 4641244.1222, y: 8616929.5302 },\n { id: 28204, x: 4638984.3236, y: 8604160.2007 },\n { id: 24107, x: 4679897.6884, y: 8638498.8286 },\n { id: 24108, x: 4679282.4709, y: 8627390.799 },\n { id: 28208, x: 4637369.3469, y: 8615434.3417 },\n { id: 24110, x: 4678489.2831, y: 8642541.8127 },\n { id: 24111, x: 4676805.1217, y: 8634537.9127 },\n { id: 28211, x: 4634366.6961, y: 8620903.568 },\n { id: 24112, x: 4676112.8471, y: 8624142.6068 },\n { id: 24113, x: 4674948.7712, y: 8629620.895 },\n { id: 24115, x: 4674416.9789, y: 8638937.3015 },\n { id: 20024, x: 4710178.6801, y: 8700088.2827 },\n { id: 20027, x: 4709360.4928, y: 8696315.4241 },\n { id: 20028, x: 4708820.4124, y: 8692012.5872 },\n { id: 20031, x: 4705736.0953, y: 8698774.5918 },\n { id: 11835, x: 4776425.0538, y: 8417636.5797 },\n { id: 20034, x: 4703249.2814, y: 8694087.2207 },\n { id: 20035, x: 4702506.2026, y: 8702188.3 },\n { id: 11837, x: 4771929.3044, y: 8412137.4719 },\n { id: 20040, x: 4699860.6045, y: 8704578.8007 },\n { id: 20043, x: 4697489.6704, y: 8697090.2002 },\n { id: 20045, x: 4695564.4261, y: 8704528.551 },\n { id: 20046, x: 4694549.7994, y: 8687866.2338 },\n { id: 61038, x: 4744323.5448, y: 8400676.1526 },\n { id: 56939, x: 4630660.3044, y: 8526662.7568 },\n { id: 48742, x: 4766960.8425, y: 8761878.6955 },\n { id: 61040, x: 4741866.0633, y: 8415670.7553 },\n { id: 56942, x: 4629219.6096, y: 8532377.6678 },\n { id: 7754, x: 4851212.127, y: 8414027.4322 },\n { id: 56943, x: 4626303.9249, y: 8529387.3563 },\n { id: 61043, x: 4740723.7788, y: 8404517.598 },\n { id: 56944, x: 4625991.7911, y: 8524568.6023 },\n { id: 61044, x: 4739508.8428, y: 8411334.5586 },\n { id: 56945, x: 4626201.8411, y: 8539507.3239 },\n { id: 48748, x: 4761619.674, y: 8756402.6596 },\n { id: 7758, x: 4849018.3748, y: 8407542.6506 },\n { id: 48749, x: 4760896.2079, y: 8750446.4125 },\n { id: 61047, x: 4738160.5577, y: 8407712.0368 },\n { id: 48750, x: 4759333.6517, y: 8764935.1113 },\n { id: 56951, x: 4619772.8264, y: 8529476.7827 },\n { id: 56952, x: 4618868.961, y: 8521302.492 },\n { id: 48754, x: 4756744.1576, y: 8758439.0929 },\n { id: 61052, x: 4735329.4782, y: 8416570.7364 },\n { id: 48755, x: 4755704.4552, y: 8747666.6302 },\n { id: 7765, x: 4845384.8592, y: 8400408.7165 },\n { id: 61054, x: 4734817.9288, y: 8402938.3851 },\n { id: 56956, x: 4615549.2921, y: 8536976.254 },\n { id: 7768, x: 4843376.0399, y: 8411700.3626 },\n { id: 61056, x: 4732963.3446, y: 8411240.0312 },\n { id: 61059, x: 4731264.4153, y: 8417161.0815 },\n { id: 7773, x: 4841766.2565, y: 8405692.8031 },\n { id: 61063, x: 4729697.102, y: 8403424.7809 },\n { id: 61065, x: 4727690.237, y: 8412142.3381 },\n { id: 7778, x: 4838038.9865, y: 8418938.593 },\n { id: 7779, x: 4837592.8862, y: 8401393.1813 },\n { id: 61067, x: 4726559.7303, y: 8417807.0847 },\n { id: 61069, x: 4726095.3598, y: 8408042.792 },\n { id: 40611, x: 4820021.7439, y: 8795326.6502 },\n { id: 40616, x: 4817213.65, y: 8787867.7451 },\n { id: 73409, x: 4611587.0072, y: 8488270.1559 },\n { id: 40618, x: 4816252.214, y: 8803406.0848 },\n { id: 73411, x: 4608979.2568, y: 8482107.7195 },\n { id: 73414, x: 4606694.1633, y: 8495418.3411 },\n { id: 40623, x: 4813858.6694, y: 8797260.1928 },\n { id: 40625, x: 4812737.0424, y: 8791226.1534 },\n { id: 73417, x: 4605061.3507, y: 8486333.6665 },\n { id: 48825, x: 4769053.7369, y: 8785191.0902 },\n { id: 48827, x: 4767119.7841, y: 8780368.8473 },\n { id: 73421, x: 4598597.0002, y: 8484500.7147 },\n { id: 48828, x: 4766248.2635, y: 8766248.2224 },\n { id: 48830, x: 4764301.4976, y: 8772195.2729 },\n { id: 48834, x: 4758744.4846, y: 8774545.6647 },\n { id: 48835, x: 4758583.7377, y: 8781217.6725 },\n { id: 52952, x: 4687572.7921, y: 8505325.4764 },\n { id: 16061, x: 4744828.6824, y: 8742611.3333 },\n { id: 16062, x: 4744215.6812, y: 8728789.083 },\n { id: 16067, x: 4738490.705, y: 8736349.5791 },\n { id: 52959, x: 4679694.0945, y: 8516946.243 },\n { id: 52960, x: 4676434.6614, y: 8502634.5998 },\n { id: 16069, x: 4736330.5201, y: 8725463.3815 },\n { id: 52961, x: 4676281.7927, y: 8508517.2404 },\n { id: 52963, x: 4672599.1019, y: 8516320.1755 },\n { id: 16072, x: 4734523.7808, y: 8743179.5437 },\n { id: 16075, x: 4731639.0821, y: 8733823.6133 },\n { id: 73469, x: 4593540.1341, y: 8493327.7612 },\n { id: 73473, x: 4589279.7883, y: 8486675.4802 },\n { id: 73474, x: 4585767.2938, y: 8479826.6443 },\n { id: 57081, x: 4631412.2349, y: 8509838.1414 },\n { id: 36586, x: 4837224.866, y: 8653921.004 },\n { id: 57082, x: 4631374.4318, y: 8518458.2157 },\n { id: 57083, x: 4627888.1343, y: 8501372.2374 },\n { id: 57084, x: 4627255.0172, y: 8512286.2567 },\n { id: 36593, x: 4831928.6473, y: 8651624.1996 },\n { id: 57089, x: 4622390.0199, y: 8506517.4815 },\n { id: 3807, x: 4779900.4579, y: 8504197.8248 },\n { id: 36603, x: 4824112.8048, y: 8648609.7695 },\n { id: 3811, x: 4775969.8485, y: 8514207.0592 },\n { id: 12010, x: 4797804.0929, y: 8435554.8845 },\n { id: 3812, x: 4774518.8459, y: 8504961.4102 },\n { id: 36606, x: 4821477.3999, y: 8653641.4095 },\n { id: 12012, x: 4795569.9534, y: 8430264.8052 },\n { id: 48905, x: 4768260.1536, y: 8797730.1631 },\n { id: 3817, x: 4771054.9502, y: 8511031.1158 },\n { id: 3818, x: 4769993.8993, y: 8520382.0014 },\n { id: 12017, x: 4794060.3406, y: 8421407.0365 },\n { id: 69404, x: 4682841.9663, y: 8413835.9288 },\n { id: 3820, x: 4767538.8773, y: 8514440.1305 },\n { id: 32514, x: 4873959.2936, y: 8675655.5362 },\n { id: 12020, x: 4790446.5349, y: 8427014.6981 },\n { id: 3822, x: 4766276.0608, y: 8504768.3197 },\n { id: 48912, x: 4761894.7976, y: 8791566.7161 },\n { id: 69408, x: 4679371.4453, y: 8400419.3427 },\n { id: 48913, x: 4760345.6946, y: 8787403.7406 },\n { id: 12022, x: 4788740.9872, y: 8435890.0413 },\n { id: 69409, x: 4677361.1047, y: 8407407.3327 },\n { id: 32518, x: 4869715.2247, y: 8668404.9842 },\n { id: 48915, x: 4760047.4692, y: 8798128.7189 },\n { id: 48916, x: 4758367.8144, y: 8804724.1841 },\n { id: 12025, x: 4787551.9197, y: 8421092.6143 },\n { id: 32522, x: 4866488.4891, y: 8678038.166 },\n { id: 12029, x: 4784271.7818, y: 8432511.1901 },\n { id: 69416, x: 4671749.992, y: 8402720.4003 },\n { id: 32526, x: 4862067.8589, y: 8672702.6759 },\n { id: 12031, x: 4783324.8639, y: 8426572.5744 },\n { id: 12032, x: 4782223.0425, y: 8423136.4875 },\n { id: 32529, x: 4860068.3715, y: 8665669.2677 },\n { id: 32530, x: 4860288.9969, y: 8680096.9834 },\n { id: 7955, x: 4854464.5725, y: 8391281.6093 },\n { id: 28453, x: 4632511.1147, y: 8612368.0501 },\n { id: 7958, x: 4851178.5957, y: 8398601.2056 },\n { id: 7959, x: 4851211.6729, y: 8385672.0799 },\n { id: 28455, x: 4629936.3541, y: 8605507.2068 },\n { id: 28458, x: 4628183.8249, y: 8616587.1205 },\n { id: 28459, x: 4628305.0842, y: 8620228.4862 },\n { id: 7964, x: 4847103.0014, y: 8392043.4284 },\n { id: 28460, x: 4626046.0957, y: 8613582.3004 },\n { id: 28462, x: 4625455.1253, y: 8605759.5854 },\n { id: 28465, x: 4623744.4429, y: 8621905.5339 },\n { id: 7971, x: 4844526.0244, y: 8385883.8286 },\n { id: 28468, x: 4620930.2706, y: 8610078.7846 },\n { id: 28469, x: 4620743.4623, y: 8619173.6213 },\n { id: 28470, x: 4618687.8914, y: 8615846.0154 },\n { id: 7975, x: 4841219.7602, y: 8394112.1811 },\n { id: 28472, x: 4617338.0043, y: 8606034.0478 },\n { id: 73561, x: 4594980.678, y: 8478746.2866 },\n { id: 28473, x: 4617236.4401, y: 8611493.9436 },\n { id: 28474, x: 4617232.9811, y: 8621811.7328 },\n { id: 24379, x: 4690481.195, y: 8662970.671 },\n { id: 73567, x: 4589132.9471, y: 8462561.9718 },\n { id: 24382, x: 4686568.1651, y: 8651425.192 },\n { id: 73570, x: 4584768.3466, y: 8470139.4113 },\n { id: 24384, x: 4685660.7137, y: 8657205.6041 },\n { id: 24386, x: 4684803.406, y: 8663175.7179 },\n { id: 73574, x: 4577559.5472, y: 8416758.2468 },\n { id: 24388, x: 4682255.4664, y: 8644857.933 },\n { id: 7992, x: 4855790.1323, y: 8452054.7621 },\n { id: 73576, x: 4576346.3505, y: 8431127.0297 },\n { id: 24389, x: 4682102.4065, y: 8653836.6986 },\n { id: 73577, x: 4576324.0389, y: 8426590.6965 },\n { id: 24390, x: 4681606.1588, y: 8660518.0315 },\n { id: 73578, x: 4576317.169, y: 8426587.2087 },\n { id: 24392, x: 4680290.7749, y: 8664213.1009 },\n { id: 24394, x: 4676503.3959, y: 8659750.0787 },\n { id: 24397, x: 4674599.5572, y: 8652758.0351 },\n { id: 40797, x: 4844744.0455, y: 8833834.2848 },\n { id: 40798, x: 4844718.8576, y: 8841026.0488 },\n { id: 40806, x: 4839611.0905, y: 8835475.368 },\n { id: 40809, x: 4837281.517, y: 8823726.3139 },\n { id: 44910, x: 4802878.8087, y: 8724149.9763 },\n { id: 40811, x: 4835912.0226, y: 8828813.6967 },\n { id: 44913, x: 4799881.6694, y: 8743341.8272 },\n { id: 40814, x: 4834682.379, y: 8836092.3053 },\n { id: 44915, x: 4798673.4848, y: 8734689.1736 },\n { id: 61313, x: 4743918.8636, y: 8379470.4062 },\n { id: 61314, x: 4743435.5421, y: 8389883.4572 },\n { id: 40819, x: 4830500.4924, y: 8829853.8153 },\n { id: 40820, x: 4830087.1214, y: 8823692.3541 },\n { id: 44920, x: 4794278.7978, y: 8736648.2304 },\n { id: 44922, x: 4793111.8152, y: 8729494.4095 },\n { id: 40823, x: 4828848.9803, y: 8837025.9599 },\n { id: 16231, x: 4746901.9039, y: 8714789.2849 },\n { id: 61321, x: 4739457.2455, y: 8383548.2445 },\n { id: 69520, x: 4670298.7069, y: 8413391.6623 },\n { id: 61322, x: 4738517.8315, y: 8396126.3161 },\n { id: 57224, x: 4648604.2372, y: 8545803.6176 },\n { id: 44928, x: 4788386.6414, y: 8743062.9579 },\n { id: 20334, x: 4707299.2162, y: 8664666.1126 },\n { id: 57226, x: 4647629.9674, y: 8553057.2325 },\n { id: 16236, x: 4741902.9186, y: 8719943.4188 },\n { id: 57227, x: 4647061.446, y: 8561294.2496 },\n { id: 20336, x: 4706197.8631, y: 8683722.1987 },\n { id: 20337, x: 4705072.2327, y: 8677979.4901 },\n { id: 69526, x: 4664917.1846, y: 8401764.7265 },\n { id: 61328, x: 4735057.9381, y: 8390321.6047 },\n { id: 57229, x: 4644687.5995, y: 8553858.687 },\n { id: 20338, x: 4704106.1439, y: 8671283.3795 },\n { id: 16239, x: 4739124.137, y: 8707418.0216 },\n { id: 61330, x: 4734476.9098, y: 8377613.8749 },\n { id: 57231, x: 4644058.513, y: 8547820.014 },\n { id: 20340, x: 4702404.0038, y: 8684455.0274 },\n { id: 57232, x: 4643563.2577, y: 8560396.8322 },\n { id: 57233, x: 4640491.7608, y: 8553966.1408 },\n { id: 20342, x: 4700634.8266, y: 8674296.7911 },\n { id: 16244, x: 4735340.3521, y: 8715392.7874 },\n { id: 69532, x: 4660364.9454, y: 8399085.5527 },\n { id: 57235, x: 4639003.3967, y: 8544909.9603 },\n { id: 49037, x: 4768191.8163, y: 8813664.9438 },\n { id: 69533, x: 4656441.342, y: 8407141.8378 },\n { id: 16246, x: 4731933.505, y: 8707217.3878 },\n { id: 69534, x: 4655325.397, y: 8402027.8843 },\n { id: 61336, x: 4731199.1878, y: 8382385.2421 },\n { id: 57237, x: 4638902.6883, y: 8561200.8098 },\n { id: 49039, x: 4766048.7573, y: 8806843.3993 },\n { id: 20346, x: 4697255.7682, y: 8683791.2833 },\n { id: 61337, x: 4729949.5638, y: 8390171.9591 },\n { id: 20347, x: 4696041.4764, y: 8678262.7776 },\n { id: 16248, x: 4731199.8137, y: 8724455.6351 },\n { id: 61338, x: 4729766.2199, y: 8395184.6765 },\n { id: 57239, x: 4636256.6768, y: 8551889.7921 },\n { id: 20349, x: 4694359.474, y: 8669137.9256 },\n { id: 49045, x: 4760759.3696, y: 8812601.3048 },\n { id: 61343, x: 4726446.7769, y: 8386436.4624 },\n { id: 49047, x: 4881587.2805, y: 8699642.5128 },\n { id: 49049, x: 4879915.2357, y: 8689605.2556 },\n { id: 36759, x: 4818863.7275, y: 8644172.3477 },\n { id: 36766, x: 4814265.858, y: 8658483.3341 },\n { id: 36767, x: 4813557.181, y: 8650150.9526 },\n { id: 69567, x: 4670015.7153, y: 8377590.0597 },\n { id: 69568, x: 4669349.4154, y: 8393126.642 },\n { id: 36776, x: 4808550.3979, y: 8644665.4626 },\n { id: 69569, x: 4667285.8207, y: 8386442.9765 },\n { id: 36782, x: 4804425.5989, y: 8653201.4073 },\n { id: 65481, x: 4724422.9506, y: 8413641.54 },\n { id: 65487, x: 4721463.3565, y: 8406125.8213 },\n { id: 65492, x: 4714766.4258, y: 8398818.1209 },\n { id: 65494, x: 4713821.5844, y: 8410140.8159 },\n { id: 16311, x: 4752045.5195, y: 8759185.2983 },\n { id: 16312, x: 4751625.0577, y: 8751153.211 },\n { id: 32733, x: 4873679.9381, y: 8689644.7076 },\n { id: 4040, x: 4798939.1344, y: 8557472.0341 },\n { id: 32734, x: 4871099.785, y: 8682734.8177 },\n { id: 32735, x: 4871622.4821, y: 8698525.8362 },\n { id: 4045, x: 4796018.1379, y: 8542992.1925 },\n { id: 32742, x: 4866945.1021, y: 8689552.1385 },\n { id: 12247, x: 4798150.8365, y: 8454829.4926 },\n { id: 32743, x: 4865825.5832, y: 8685129.1092 },\n { id: 32745, x: 4865185.7616, y: 8696609.4463 },\n { id: 12250, x: 4796668.3017, y: 8447019.7245 },\n { id: 12251, x: 4796498.1316, y: 8442453.2646 },\n { id: 4053, x: 4789235.8033, y: 8554421.035 },\n { id: 32751, x: 4859829.7006, y: 8687081.9622 },\n { id: 12256, x: 4791941.8552, y: 8439614.6038 },\n { id: 4058, x: 4785129.4183, y: 8546492.7777 },\n { id: 12257, x: 4791135.2537, y: 8448825.1264 },\n { id: 12258, x: 4790422.3751, y: 8454168.7017 },\n { id: 16359, x: 4755145.6688, y: 8769149.4626 },\n { id: 12262, x: 4787251.9206, y: 8441684.2865 },\n { id: 16362, x: 4753005.7909, y: 8776248.0305 },\n { id: 16364, x: 4751874.9249, y: 8782814.6807 },\n { id: 16365, x: 4750185.2021, y: 8767339.299 },\n { id: 12266, x: 4783742.5442, y: 8449725.0194 },\n { id: 12267, x: 4782780.1114, y: 8439591.4123 },\n { id: 12270, x: 4781946.1129, y: 8445409.8931 },\n { id: 40973, x: 4845728.6031, y: 8859786.9432 },\n { id: 40977, x: 4842705.7258, y: 8850353.2106 },\n { id: 40978, x: 4842658.8493, y: 8856154.9764 },\n { id: 40984, x: 4838745.9974, y: 8852030.5924 },\n { id: 40985, x: 4838146.5315, y: 8843351.8153 },\n { id: 40989, x: 4836293.1855, y: 8860538.6722 },\n { id: 49188, x: 4887709.7199, y: 8728348.7824 }\n ];\n }", "moveCorner(ref) {\n let newCp = [];\n let newCo = [];\n for (let to = 0; to < cornerNum; ++to) { // for each position\n // \"from\" is the patch at position \"to\" (cube: other).\n // Remeber that patch \"from\" was at position \"from\" initially,\n // we can say that, after the magic tranformations, the patch \"from\"\n // was moved from initial position \"from\" to the current position \"to\".\n // Similarly, if we apply the same tranformations on this cube, \n // the patch now at position \"from\" will also be moved to position \"to\",\n // so we have the sentences below\n let from = ref.cp[to];\n newCp[to] = this.cp[from];\n newCo[to] = (this.co[from] + ref.co[to]) % 3;\n }\n this.cp = newCp;\n this.co = newCo;\n }", "function cornerDrag (paper, cornerGridMap)\n {\n var grid = paper.draggable.current();\n \n grid[cornerGridMap.drag_index[0]].attr({ cy : _cy });\n grid[cornerGridMap.drag_index[1]].attr({ cx : _cx });\n grid[cornerGridMap.drag_index[2]].attr({ cx : _cx, cy : _cy });\n grid[0].attr(calculateBBox(paper));\n }", "function getWormCoords()\n{\n xyCoords = [];\n for(var i = 0; i < infections.length; i++)\n {\n xyCoords.push({id: i, targetX: infections[i].x\n , targetY: infections[i].y\n , sourceX: infections[i].infectedByx\n , sourceY: infections[i].infectedByy});\n }\n}", "function hexPath(x,y,H,S,C,cornerSize,extra){\n\treturn \"M \"+x+\" \"+y + \n\t\t \" h \"+(H*(1-2 *cornerSize)/2) +\n\t\t \" q \"+(cornerSize*H)+\" 0 \" + (cornerSize * (S + H) ) + \" \" + (cornerSize * C) +\n\t\t \" l \"+(S * (1 - 2 * cornerSize)*(1+extra)) + \" \" + (C * (1 - 2 * cornerSize)*(1+extra)) + \n\t\t \" q \"+(cornerSize*S)+ \" \" + (cornerSize * C) + \" \" + \" 0 \" + (2 * cornerSize * C) +\n\t\t \" l \"+(-S * (1 - 2 * cornerSize) * (1+extra)) + \" \" + (C * (1 - 2 * cornerSize) * (1+extra)) +\n\t\t \" q \"+(-cornerSize * S) + \" \" + (cornerSize*C) + \" \" + (-(S+H) * cornerSize) + \" \" + (cornerSize*C) +\n\t\t \" h \"+(-H*(1-2*cornerSize)) +\n\t\t \" q \"+(-cornerSize * H) + \" 0 \" + (-cornerSize * (H + S)) + \" \" + (-cornerSize*C) +\n\t\t \" l \"+(-(1-2*cornerSize)*S * (1+extra)) + \" \" + (-(1-2*cornerSize)*C * (1+extra)) +\n\t\t \" q \"+(-cornerSize*S) + \" \" + (-cornerSize*C) + \" 0 \" + (-2 * cornerSize*C) +\n\t\t \" l \"+((1-2*cornerSize)*S * (1+extra)) + \" \" + (-(1-2*cornerSize)*C * (1+extra)) +\n\t\t \" q \"+(cornerSize*S) + \" \" + (-cornerSize*C) + \" \" + (cornerSize*(S+H)) + \" \" + (-cornerSize*C) +\n\t\t \" z\";\n}", "drawCones(){\r\n // might be place where we add the x and y coords to the canvas to draw the cones\r\n for (let i = 0; i < this.numCones; i++)\r\n {\r\n cones[i].x = ((this.coneLoc[i].x));\r\n cones[i].y = (this.coneLoc[i].y);\r\n }\r\n }", "static build(x, y, r, isPreview) {\n //60 degrees in radians = 1.04718\n // OffsetX = length between center and a point (r) * cos(60 degrees)\n // OffsetX = length between center and a point (r) * sin(60 degrees)\n // This will produce the point at the bottom right of the hex (with 0,0 being at the top left of the canvas)\n const xOffset = Math.floor(r * Math.cos(1.04718));\n const yOffset = Math.floor(r * Math.sin(1.04718));\n\n const points = [\n getPointWithOffsets(x, r, y, 0),\n getPointWithOffsets(x, xOffset, y, yOffset),\n getPointWithOffsets(x, -xOffset, y, yOffset),\n getPointWithOffsets(x, -r, y, 0),\n getPointWithOffsets(x, -xOffset, y, -yOffset),\n getPointWithOffsets(x, xOffset, y, -yOffset),\n getPointWithOffsets(x, r, y, 0),\n ];\n\n const shape = new PIXI.Graphics()\n .lineStyle(1, LINE_COLOUR, isPreview? 0.3 : 1)\n .drawPolygon(points);\n\n shape.hitArea = new PIXI.Polygon(points);\n shape.interactive = true;\n\n return new Tile(x, y, r, points, shape, isPreview);\n }", "function buildArrays() {\n var xPos = 124;\n var yPos = 153;\n\n rowOne.push(new Point(59, 153));\n rowOne.push(new Point(76, 153));\n\n\n rowTwo.push(new Point(59, 199));\n rowTwo.push(new Point(76, 199));\n\n\n rowThree.push(new Point(59, 248));\n rowThree.push(new Point(76, 248));\n\n\n for (var i = 1; i <= 35; i++) {\n rowOne.push(new Point(xPos, yPos));\n rowTwo.push(new Point(xPos, yPos + 46));\n rowThree.push(new Point(xPos, yPos + 46 + 49));\n xPos += 16.45;\n if (i % 5 == 0) {\n xPos += 24;\n }\n\n }\n\n rowOne.push(new Point(886, 158.5));\n rowOne.push(new Point(942, 208.5));\n rowOne.push(new Point(965.5, 284));\n rowOne.push(new Point(948.5, 359));\n rowOne.push(new Point(896.5, 417.5));\n\n rowTwo.push(new Point(868.5, 209));\n rowTwo.push(new Point(905, 240.5));\n rowTwo.push(new Point(916.5, 284.5));\n rowTwo.push(new Point(907, 327.5));\n rowTwo.push(new Point(879, 366));\n\n rowThree.push(new Point(854, 257));\n rowThree.push(new Point(866, 270));\n rowThree.push(new Point(869.5, 287));\n rowThree.push(new Point(867.5, 305));\n rowThree.push(new Point(860, 319.5));\n\n\n xPos -= 35;\n yPos = 429;\n\n for (var n = 1; n <= 35; n++) {\n rowOne.push(new Point(xPos, yPos));\n rowTwo.push(new Point(xPos, yPos - 46));\n rowThree.push(new Point(xPos, yPos - 46 - 47));\n xPos -= 16.8;\n if (n % 5 == 0) {\n xPos -= 9.9;\n }\n\n }\n\n rowOne.push(new Point(169.5, 441.5));\n rowOne.push(new Point(159.5, 457.5));\n rowOne.push(new Point(155.5, 474));\n rowOne.push(new Point(158.5, 492));\n rowOne.push(new Point(170.5, 506.5));\n\n rowTwo.push(new Point(156.5, 384));\n rowTwo.push(new Point(121, 419));\n rowTwo.push(new Point(104, 471));\n rowTwo.push(new Point(117.5, 521.5));\n rowTwo.push(new Point(156.5, 555));\n\n rowThree.push(new Point(142.5, 338));\n rowThree.push(new Point(77.5, 393.5));\n rowThree.push(new Point(58.5, 469.5));\n rowThree.push(new Point(79, 548));\n rowThree.push(new Point(139, 605));\n\n xPos += 24;\n yPos = 517.5;\n\n for (var m = 1; m <= 40; m++) {\n rowOne.push(new Point(xPos, yPos));\n rowTwo.push(new Point(xPos, yPos + 46));\n rowThree.push(new Point(xPos, yPos + 46 + 49));\n xPos += 16.5;\n if (m % 5 == 0) {\n xPos += 10.8;\n }\n\n }\n\n rowOne.push(new Point(970.5, 561.5));\n\n rowTwo.push(new Point(970.5, 561.5));\n\n rowThree.push(new Point(970.5, 561.5));\n}", "drawCatmullRom(points, f) {\n // invent a virtual first and last point\n const f0 = points[0],\n f1 = points[1],\n fn = f0.reflect(f1),\n l1 = points[points.length - 2],\n l0 = points[points.length - 1],\n ln = l0.reflect(l1),\n cpoints = [fn, ...points, ln];\n\n // four point sliding window over the segment\n for (let i = 0, e = cpoints.length - 3; i < e; i++) {\n let [c1, c2, c3, c4] = cpoints.slice(i, i + 4);\n let p2 = {\n x: c2.x + (c3.x - c1.x) / (6 * f),\n y: c2.y + (c3.y - c1.y) / (6 * f),\n };\n let p3 = {\n x: c3.x - (c4.x - c2.x) / (6 * f),\n y: c3.y - (c4.y - c2.y) / (6 * f),\n };\n this.ctx.bezierCurveTo(p2.x, p2.y, p3.x, p3.y, c3.x, c3.y);\n }\n }", "getHexCornerCoord( center, i ) {\n // KEY pointy or flat\n\n // flat\n // let angleDeg = 60 * i\n\n // pointy\n let angleDeg = 60 * i + 30\n\n let angleRad = Math.PI / 180 * angleDeg\n let x = center.x + this.state.hexSize * Math.cos( angleRad )\n let y = center.y + this.state.hexSize * Math.sin( angleRad )\n\n return this.Point( x, y )\n }", "function cornerCheck(x, y){\n\t\t\treturn (y0-y1)*x + (x1-x0)*y + (x0*y1-x1*y0);\n\t\t}", "initPoints() {\n this._points = [\n { id: 1, x: 4845573.7636, y: 8538444.1986 },\n { id: 40991, x: 4833272.2905, y: 8851879.3016 },\n { id: 3, x: 4841121.9158, y: 8533011.0179 },\n { id: 49192, x: 4885807.9349, y: 8735902.9555 },\n { id: 40994, x: 4831497.6883, y: 8844107.6121 },\n { id: 6, x: 4838140.2016, y: 8522348.6552 },\n { id: 7, x: 4837455.3198, y: 8539117.3266 },\n { id: 49196, x: 4882214.6475, y: 8724167.5077 },\n { id: 40999, x: 4829374.7513, y: 8859821.2174 },\n { id: 49198, x: 4881983.8495, y: 8731365.8486 },\n { id: 45108, x: 4784887.2271, y: 8736542.1748 },\n { id: 45111, x: 4783068.1658, y: 8741691.5428 },\n { id: 45112, x: 4781138.3706, y: 8724108.5082 },\n { id: 45115, x: 4778080.4764, y: 8730855.1873 },\n { id: 45121, x: 4773662.6047, y: 8737584.4445 },\n { id: 45123, x: 4771470.2781, y: 8730974.57 },\n { id: 45124, x: 4770033.5888, y: 8724357.968 },\n { id: 45126, x: 4770132.5006, y: 8742756.1221 },\n { id: 57430, x: 4651133.5325, y: 8564166.3124 },\n { id: 57431, x: 4649947.7363, y: 8574527.3911 },\n { id: 57432, x: 4648420.2475, y: 8581932.6169 },\n { id: 57433, x: 4646699.7672, y: 8566887.7299 },\n { id: 24642, x: 4671025.1343, y: 8648694.5889 },\n { id: 8247, x: 4852754.2341, y: 8441379.725 },\n { id: 24645, x: 4669448.5337, y: 8656404.5069 },\n { id: 8249, x: 4850769.8648, y: 8449468.0238 },\n { id: 57437, x: 4643864.6942, y: 8582553.0918 },\n { id: 57438, x: 4643047.4543, y: 8575052.6667 },\n { id: 57440, x: 4641484.2172, y: 8568899.615 },\n { id: 24651, x: 4664950.584, y: 8662439.1097 },\n { id: 8255, x: 4847103.6831, y: 8444416.9443 },\n { id: 24652, x: 4664011.3503, y: 8645504.779 },\n { id: 57444, x: 4637559.8974, y: 8580985.9182 },\n { id: 57445, x: 4636968.7959, y: 8571856.8208 },\n { id: 57447, x: 4635351.4645, y: 8565257.5349 },\n { id: 24656, x: 4661999.8118, y: 8651952.99 },\n { id: 8260, x: 4843341.3559, y: 8449078.7471 },\n { id: 24657, x: 4661598.9319, y: 8658541.6593 },\n { id: 24658, x: 4661620.9814, y: 8663252.7681 },\n { id: 8262, x: 4841522.4591, y: 8458715.6703 },\n { id: 8264, x: 4840271.9566, y: 8442728.8288 },\n { id: 24662, x: 4658418.9411, y: 8646120.2916 },\n { id: 8266, x: 4837711.0123, y: 8456724.9609 },\n { id: 24663, x: 4657525.3749, y: 8664178.9824 },\n { id: 8267, x: 4838003.1065, y: 8447700.828 },\n { id: 24664, x: 4657106.6719, y: 8654360.5278 },\n { id: 24667, x: 4654891.0932, y: 8659312.8827 },\n { id: 36978, x: 4815074.4873, y: 8629229.2459 },\n { id: 36980, x: 4813696.8075, y: 8639624.7224 },\n { id: 36986, x: 4808480.8037, y: 8629844.7891 },\n { id: 36987, x: 4807043.3983, y: 8622435.769 },\n { id: 36993, x: 4801868.2368, y: 8640892.6804 },\n { id: 36994, x: 4801363.2704, y: 8630342.2764 },\n { id: 61596, x: 4759856.792, y: 8428948.9905 },\n { id: 61597, x: 4759011.6692, y: 8438695.7709 },\n { id: 61599, x: 4758736.9359, y: 8424751.9062 },\n { id: 49302, x: 4883581.1233, y: 8716317.5643 },\n { id: 61601, x: 4758694.0585, y: 8419607.4773 },\n { id: 49304, x: 4882034.4233, y: 8708797.7416 },\n { id: 61602, x: 4757337.3297, y: 8434322.502 },\n { id: 20612, x: 4726884.4955, y: 8712834.2867 },\n { id: 20615, x: 4725984.3492, y: 8719460.95 },\n { id: 61608, x: 4754675.6519, y: 8428262.1365 },\n { id: 20618, x: 4721404.0859, y: 8719139.9542 },\n { id: 20619, x: 4721040.5256, y: 8711334.0662 },\n { id: 61612, x: 4753329.5224, y: 8422697.5282 },\n { id: 20624, x: 4716421.0654, y: 8721271.9634 },\n { id: 61615, x: 4751356.1493, y: 8434543.7994 },\n { id: 20625, x: 4715701.8335, y: 8709916.1772 },\n { id: 20628, x: 4712112.0631, y: 8717882.5207 },\n { id: 53421, x: 4687802.2242, y: 8532749.2921 },\n { id: 53422, x: 4686872.3477, y: 8521287.4844 },\n { id: 61621, x: 4748435.1229, y: 8418567.6572 },\n { id: 12434, x: 4779307.5841, y: 8450994.2065 },\n { id: 61623, x: 4747384.4654, y: 8423471.1476 },\n { id: 12435, x: 4777707.744, y: 8457252.5984 },\n { id: 61624, x: 4746227.6925, y: 8428802.5423 },\n { id: 53426, x: 4682126.2479, y: 8539466.3525 },\n { id: 12436, x: 4776715.1407, y: 8442878.7654 },\n { id: 61625, x: 4745049.71, y: 8435295.4147 },\n { id: 53427, x: 4679879.1011, y: 8527043.1572 },\n { id: 53428, x: 4679098.3825, y: 8532905.8255 },\n { id: 53432, x: 4673168.6113, y: 8522999.9055 },\n { id: 53433, x: 4672103.619, y: 8537693.5858 },\n { id: 12443, x: 4773343.0344, y: 8439304.745 },\n { id: 12444, x: 4771649.7924, y: 8454893.4028 },\n { id: 12447, x: 4770003.7549, y: 8447089.0213 },\n { id: 154, x: 4837923.3803, y: 8503688.173 },\n { id: 155, x: 4837459.7464, y: 8512006.0036 },\n { id: 12453, x: 4767073.8049, y: 8439662.2146 },\n { id: 69859, x: 4684373.4519, y: 8436107.2015 },\n { id: 69861, x: 4683201.117, y: 8425380.1458 },\n { id: 32973, x: 4856746.8842, y: 8696120.4124 },\n { id: 32976, x: 4853166.2667, y: 8687210.5286 },\n { id: 69869, x: 4675373.8011, y: 8435613.6206 },\n { id: 32978, x: 4849360.9302, y: 8693102.9097 },\n { id: 32979, x: 4848733.1769, y: 8685492.8914 },\n { id: 32981, x: 4846393.7924, y: 8700516.4742 },\n { id: 32984, x: 4842461.1527, y: 8687244.0655 },\n { id: 4296, x: 4799212.8973, y: 8564577.3201 },\n { id: 4297, x: 4798660.1907, y: 8573808.0204 },\n { id: 28893, x: 4651264.7262, y: 8635401.1655 },\n { id: 16596, x: 4748189.0844, y: 8775685.7499 },\n { id: 16597, x: 4746912.8779, y: 8782533.6861 },\n { id: 41192, x: 4825039.7972, y: 8850556.6709 },\n { id: 28895, x: 4649515.493, y: 8625305.8466 },\n { id: 41194, x: 4824394.0857, y: 8843896.1854 },\n { id: 28898, x: 4646878.2358, y: 8632936.1838 },\n { id: 16601, x: 4742564.8655, y: 8767350.981 },\n { id: 4304, x: 4793527.5292, y: 8565287.349 },\n { id: 28899, x: 4646605.6093, y: 8637651.0868 },\n { id: 28901, x: 4646709.8724, y: 8643228.5321 },\n { id: 16604, x: 4739877.7771, y: 8771735.1234 },\n { id: 41200, x: 4821384.0162, y: 8857427.9319 },\n { id: 16606, x: 4739731.9736, y: 8777271.5431 },\n { id: 28904, x: 4642704.9837, y: 8629445.7797 },\n { id: 16607, x: 4738967.9193, y: 8786137.9626 },\n { id: 211, x: 4841759.5197, y: 8574307.4225 },\n { id: 41202, x: 4818629.4998, y: 8849404.8323 },\n { id: 28906, x: 4642804.24, y: 8643421.3789 },\n { id: 4312, x: 4788189.9008, y: 8574847.6252 },\n { id: 28907, x: 4642414.8407, y: 8639101.0871 },\n { id: 28908, x: 4642019.755, y: 8635278.1995 },\n { id: 4314, x: 4787209.7644, y: 8563419.4359 },\n { id: 215, x: 4838325.3555, y: 8562713.1577 },\n { id: 41206, x: 4816023.2152, y: 8857745.0303 },\n { id: 28909, x: 4640208.1374, y: 8631212.2859 },\n { id: 216, x: 4838519.043, y: 8569905.424 },\n { id: 28913, x: 4639171.8324, y: 8644771.7166 },\n { id: 16616, x: 4731621.9822, y: 8781675.9347 },\n { id: 4319, x: 4783442.4572, y: 8571126.5227 },\n { id: 28916, x: 4636176.9791, y: 8639856.99 },\n { id: 28917, x: 4635955.429, y: 8635546.6397 },\n { id: 49413, x: 4890444.9347, y: 8760933.6966 },\n { id: 45314, x: 4782933.5767, y: 8715699.7561 },\n { id: 28918, x: 4635355.4158, y: 8628948.1374 },\n { id: 49418, x: 4882302.7025, y: 8778246.7343 },\n { id: 49419, x: 4881732.3174, y: 8765561.7243 },\n { id: 49421, x: 4880932.7349, y: 8772715.071 },\n { id: 45322, x: 4776952.1376, y: 8710823.2698 },\n { id: 45323, x: 4775200.4861, y: 8706639.8519 },\n { id: 45324, x: 4775502.0418, y: 8718761.2267 },\n { id: 12536, x: 4778064.1641, y: 8434727.2576 },\n { id: 45330, x: 4768188.5791, y: 8713830.4009 },\n { id: 12539, x: 4777031.8817, y: 8428291.2434 },\n { id: 45332, x: 4767201.2093, y: 8708756.684 },\n { id: 12540, x: 4775828.3423, y: 8423743.722 },\n { id: 12544, x: 4772850.4599, y: 8432158.5751 },\n { id: 12547, x: 4770841.497, y: 8436225.9983 },\n { id: 12548, x: 4769305.6383, y: 8419644.1396 },\n { id: 12549, x: 4769010.5054, y: 8427091.9958 },\n { id: 255, x: 4845487.4308, y: 8546652.9657 },\n { id: 259, x: 4841981.8098, y: 8553565.0144 },\n { id: 260, x: 4841230.272, y: 8541403.4438 },\n { id: 65846, x: 4704299.5496, y: 8401799.5793 },\n { id: 262, x: 4838748.1995, y: 8544827.9545 },\n { id: 65848, x: 4703786.7711, y: 8409685.2683 },\n { id: 65853, x: 4695588.2636, y: 8411959.6229 },\n { id: 65859, x: 4690625.8234, y: 8404492.2092 },\n { id: 20785, x: 4728852.9613, y: 8728153.8668 },\n { id: 20786, x: 4727029.1609, y: 8733826.0844 },\n { id: 20788, x: 4725448.0154, y: 8743119.9013 },\n { id: 20790, x: 4723800.2526, y: 8725769.9581 },\n { id: 20793, x: 4721540.6203, y: 8732639.5273 },\n { id: 20797, x: 4718912.4631, y: 8740472.1961 },\n { id: 20798, x: 4718374.1326, y: 8736158.346 },\n { id: 20801, x: 4715757.3548, y: 8745915.3159 },\n { id: 57693, x: 4632671.0929, y: 8571040.8634 },\n { id: 20802, x: 4714086.1862, y: 8729937.4116 },\n { id: 57695, x: 4630615.8402, y: 8580241.1424 },\n { id: 20805, x: 4712710.4933, y: 8737482.0239 },\n { id: 57697, x: 4630034.1448, y: 8574584.7136 },\n { id: 8509, x: 4850958.2733, y: 8430273.9243 },\n { id: 57702, x: 4625252.5066, y: 8569184.5257 },\n { id: 8514, x: 4847489.0979, y: 8420195.45 },\n { id: 57703, x: 4624311.8412, y: 8563527.9704 },\n { id: 8515, x: 4846697.4386, y: 8437758.9601 },\n { id: 57704, x: 4623966.3299, y: 8575275.9031 },\n { id: 57705, x: 4623886.1487, y: 8581305.3845 },\n { id: 37210, x: 4834772.0532, y: 8681073.1557 },\n { id: 37211, x: 4834591.6988, y: 8676361.2304 },\n { id: 37212, x: 4833853.8751, y: 8671167.4577 },\n { id: 57708, x: 4621904.0184, y: 8567727.9756 },\n { id: 37213, x: 4833325.1626, y: 8665917.2718 },\n { id: 57710, x: 4620200.356, y: 8575587.3931 },\n { id: 37216, x: 4829319.7587, y: 8661868.2033 },\n { id: 8524, x: 4840644.0345, y: 8429557.7753 },\n { id: 37219, x: 4827181.7696, y: 8680280.0359 },\n { id: 57715, x: 4616941.812, y: 8570222.4124 },\n { id: 37220, x: 4826495.0222, y: 8674680.3151 },\n { id: 57717, x: 4615981.0701, y: 8577810.3746 },\n { id: 70026, x: 4685896.4685, y: 8451020.9586 },\n { id: 70029, x: 4683210.1232, y: 8444606.4711 },\n { id: 33141, x: 4852192.1893, y: 8676415.7819 },\n { id: 33143, x: 4851697.6494, y: 8669899.2317 },\n { id: 33147, x: 4847543.8031, y: 8664123.8349 },\n { id: 70041, x: 4672501.0106, y: 8453345.8705 },\n { id: 70042, x: 4671676.8035, y: 8439387.3757 },\n { id: 33151, x: 4845340.8229, y: 8676529.2977 },\n { id: 33157, x: 4840562.6033, y: 8669173.4703 },\n { id: 24985, x: 4668450.3059, y: 8643343.1004 },\n { id: 24987, x: 4667414.8645, y: 8636853.9789 },\n { id: 24988, x: 4665649.3451, y: 8631651.8676 },\n { id: 24994, x: 4661331.2057, y: 8640366.9656 },\n { id: 24996, x: 4658000.0783, y: 8632080.8051 },\n { id: 24999, x: 4655752.7365, y: 8637911.8777 },\n { id: 25000, x: 4654398.8291, y: 8627611.0601 },\n { id: 25001, x: 4653184.5856, y: 8630850.8664 },\n { id: 16806, x: 4748135.3253, y: 8753065.0303 },\n { id: 16811, x: 4743832.9144, y: 8749753.2647 },\n { id: 16815, x: 4740974.3958, y: 8758841.5958 },\n { id: 70103, x: 4665324.6779, y: 8450959.2204 },\n { id: 16817, x: 4739601.5187, y: 8748443.7704 },\n { id: 70106, x: 4661321.1185, y: 8439694.2902 },\n { id: 16821, x: 4736571.4028, y: 8765478.3799 },\n { id: 70109, x: 4658782.2673, y: 8453634.8732 },\n { id: 16826, x: 4733701.8755, y: 8755463.7448 },\n { id: 70114, x: 4652110.166, y: 8448663.8978 },\n { id: 16827, x: 4732470.5371, y: 8748952.6654 },\n { id: 66018, x: 4707663.4045, y: 8381280.8154 },\n { id: 66026, x: 4699707.0193, y: 8386029.4252 },\n { id: 66028, x: 4698686.505, y: 8396886.9402 },\n { id: 4543, x: 4779103.5704, y: 8577014.4798 },\n { id: 41435, x: 4824042.894, y: 8828022.5049 },\n { id: 41437, x: 4822135.6702, y: 8836693.7491 },\n { id: 4546, x: 4777892.7168, y: 8564796.1432 },\n { id: 66033, x: 4695200.6442, y: 8382644.2414 },\n { id: 41445, x: 4816508.6286, y: 8838555.3643 },\n { id: 41447, x: 4814858.8176, y: 8830295.5968 },\n { id: 4556, x: 4771399.0499, y: 8572808.2151 },\n { id: 4560, x: 4768880.995, y: 8580767.2344 },\n { id: 4562, x: 4766894.0235, y: 8564760.1003 },\n { id: 57852, x: 4633065.2455, y: 8546317.3575 },\n { id: 16862, x: 4754081.0227, y: 8792303.8049 },\n { id: 57853, x: 4633235.7329, y: 8561419.8615 },\n { id: 16863, x: 4753113.5515, y: 8799568.0452 },\n { id: 4566, x: 4765097.3501, y: 8575700.7486 },\n { id: 61954, x: 4757329.1544, y: 8452201.9318 },\n { id: 49657, x: 4892752.0686, y: 8741825.078 },\n { id: 61955, x: 4756878.6424, y: 8457004.3705 },\n { id: 61956, x: 4756384.0616, y: 8443380.7266 },\n { id: 57857, x: 4628480.3065, y: 8552587.858 },\n { id: 49661, x: 4890158.5352, y: 8749320.9575 },\n { id: 57860, x: 4625192.8143, y: 8546475.8303 },\n { id: 61960, x: 4752179.6646, y: 8448763.6623 },\n { id: 475, x: 4832932.4492, y: 8516090.5459 },\n { id: 61962, x: 4751460.5337, y: 8457341.7881 },\n { id: 477, x: 4830898.8949, y: 8509683.1646 },\n { id: 61963, x: 4749977.111, y: 8439944.5235 },\n { id: 57864, x: 4622258.2678, y: 8549928.8672 },\n { id: 49666, x: 4888226.0899, y: 8756786.8212 },\n { id: 61964, x: 4749008.1604, y: 8453025.9491 },\n { id: 49667, x: 4887398.7396, y: 8741589.8577 },\n { id: 20974, x: 4710151.053, y: 8726738.3507 },\n { id: 479, x: 4829826.6921, y: 8500928.9349 },\n { id: 20976, x: 4709491.6408, y: 8741082.4244 },\n { id: 61967, x: 4746497.4568, y: 8451923.0316 },\n { id: 20977, x: 4709033.7083, y: 8745529.9358 },\n { id: 61968, x: 4745811.2115, y: 8457299.7624 },\n { id: 57869, x: 4617797.7163, y: 8555439.6558 },\n { id: 20978, x: 4707652.3725, y: 8730886.6651 },\n { id: 61969, x: 4745602.1042, y: 8440688.2615 },\n { id: 49672, x: 4884799.9848, y: 8751010.8363 },\n { id: 484, x: 4825707.4486, y: 8501362.8539 },\n { id: 485, x: 4826110.6954, y: 8514553.0748 },\n { id: 20981, x: 4703903.0853, y: 8738108.2496 },\n { id: 20982, x: 4703461.7165, y: 8728926.8553 },\n { id: 487, x: 4824363.0249, y: 8508429.7451 },\n { id: 20983, x: 4701999.0922, y: 8733790.8183 },\n { id: 20984, x: 4701659.7581, y: 8726488.9794 },\n { id: 20986, x: 4700501.3347, y: 8743003.2829 },\n { id: 493, x: 4819399.1101, y: 8501291.3331 },\n { id: 20992, x: 4695922.2785, y: 8733303.1609 },\n { id: 29192, x: 4652390.2464, y: 8650650.2735 },\n { id: 20994, x: 4694319.6305, y: 8741932.0169 },\n { id: 29193, x: 4650870.033, y: 8645196.9733 },\n { id: 29194, x: 4651107.9519, y: 8661687.1655 },\n { id: 29195, x: 4650589.1591, y: 8655570.518 },\n { id: 29198, x: 4647110.5557, y: 8655554.0677 },\n { id: 49695, x: 4765142.233, y: 8501168.7649 },\n { id: 29202, x: 4645623.6717, y: 8659460.2079 },\n { id: 45599, x: 4798936.0403, y: 8753940.4663 },\n { id: 45601, x: 4796173.0098, y: 8761399.1455 },\n { id: 29207, x: 4641215.1215, y: 8655354.1553 },\n { id: 45604, x: 4792911.6299, y: 8747153.1479 },\n { id: 29209, x: 4640434.3726, y: 8660834.9694 },\n { id: 8714, x: 4843577.7612, y: 8497359.1505 },\n { id: 8715, x: 4843882.324, y: 8484076.2569 },\n { id: 45607, x: 4790088.898, y: 8754735.8747 },\n { id: 8717, x: 4841004.5631, y: 8490436.7053 },\n { id: 45610, x: 4787711.8156, y: 8762918.2661 },\n { id: 29216, x: 4636229.0199, y: 8652570.9592 },\n { id: 8721, x: 4838296.5575, y: 8482119.2363 },\n { id: 29217, x: 4636175.551, y: 8657250.7836 },\n { id: 37420, x: 4838818.0092, y: 8698614.6527 },\n { id: 37424, x: 4832787.62, y: 8685624.1392 },\n { id: 37425, x: 4832720.2976, y: 8693608.8909 },\n { id: 16933, x: 4757578.3525, y: 8815984.2197 },\n { id: 37429, x: 4829307.1674, y: 8699407.9067 },\n { id: 37430, x: 4827343.9414, y: 8688945.2107 },\n { id: 33332, x: 4876820.5155, y: 8717832.916 },\n { id: 16936, x: 4754605.4235, y: 8811505.9074 },\n { id: 33335, x: 4874837.4917, y: 8706285.1288 },\n { id: 37435, x: 4821967.6898, y: 8686828.4479 },\n { id: 37437, x: 4821596.9258, y: 8696923.0636 },\n { id: 33341, x: 4870427.1187, y: 8713800.5907 },\n { id: 33345, x: 4866208.44, y: 8703835.085 },\n { id: 33350, x: 4862902.0352, y: 8719683.9321 },\n { id: 33351, x: 4861560.394, y: 8711921.6397 },\n { id: 49784, x: 4746920.965, y: 8511529.5164 },\n { id: 53895, x: 4667358.6799, y: 8527605.4645 },\n { id: 53897, x: 4665935.2674, y: 8533388.4431 },\n { id: 53901, x: 4661915.1225, y: 8538700.9303 },\n { id: 41606, x: 4843080.2435, y: 8865043.6437 },\n { id: 53908, x: 4653365.1949, y: 8537060.1295 },\n { id: 41612, x: 4833534.8544, y: 8871190.3103 },\n { id: 41615, x: 4829192.2024, y: 8867441.9185 },\n { id: 49828, x: 4749745.355, y: 8539071.4265 },\n { id: 49830, x: 4747439.5889, y: 8521122.3051 },\n { id: 49831, x: 4747192.1095, y: 8531593.94 },\n { id: 12941, x: 4795820.3538, y: 8470300.4134 },\n { id: 12943, x: 4794967.8882, y: 8475173.0704 },\n { id: 12944, x: 4795054.7997, y: 8459879.9008 },\n { id: 12945, x: 4793009.3719, y: 8465020.6464 },\n { id: 12949, x: 4790161.5741, y: 8469487.6003 },\n { id: 12952, x: 4788735.5329, y: 8475291.7382 },\n { id: 12953, x: 4788888.1985, y: 8462235.1169 },\n { id: 12957, x: 4785040.3205, y: 8459987.4248 },\n { id: 12958, x: 4784500.7174, y: 8470600.8113 },\n { id: 8861, x: 4851286.6435, y: 8462633.6993 },\n { id: 58050, x: 4651643.5161, y: 8594800.2894 },\n { id: 12961, x: 4782269.1895, y: 8464692.023 },\n { id: 8862, x: 4850788.3933, y: 8472095.6318 },\n { id: 58051, x: 4648947.1068, y: 8587813.7531 },\n { id: 58053, x: 4647721.8067, y: 8601718.4762 },\n { id: 58054, x: 4647040.9942, y: 8592910.6638 },\n { id: 8868, x: 4846124.3237, y: 8475801.9873 },\n { id: 58057, x: 4642612.9921, y: 8589042.6212 },\n { id: 8870, x: 4846107.1799, y: 8460039.5291 },\n { id: 58059, x: 4641470.2144, y: 8599189.5284 },\n { id: 8871, x: 4844307.8159, y: 8469327.072 },\n { id: 29370, x: 4631790.6614, y: 8651879.5284 },\n { id: 58064, x: 4635938.374, y: 8594467.448 },\n { id: 29371, x: 4630964.5359, y: 8646324.2134 },\n { id: 58065, x: 4635148.1716, y: 8585084.2569 },\n { id: 29372, x: 4631448.5776, y: 8665289.2165 },\n { id: 29373, x: 4630371.3743, y: 8654994.2124 },\n { id: 8879, x: 4838511.2897, y: 8471854.1106 },\n { id: 41672, x: 4821634.493, y: 8864941.8313 },\n { id: 8881, x: 4828823.1075, y: 8378671.56 },\n { id: 17080, x: 4748059.1523, y: 8814452.054 },\n { id: 17081, x: 4745327.1478, y: 8818231.7296 },\n { id: 29380, x: 4624747.526, y: 8646622.3722 },\n { id: 29381, x: 4623922.7832, y: 8656864.2475 },\n { id: 17084, x: 4742232.3311, y: 8807903.8611 },\n { id: 29382, x: 4623513.5598, y: 8662069.7747 },\n { id: 17085, x: 4739166.2941, y: 8817323.8719 },\n { id: 29383, x: 4622662.2942, y: 8650661.5622 },\n { id: 691, x: 4836664.8619, y: 8532858.2441 },\n { id: 693, x: 4835535.2975, y: 8538686.5217 },\n { id: 29390, x: 4616792.3318, y: 8656766.3887 },\n { id: 25292, x: 4689767.4887, y: 8674163.8685 },\n { id: 25293, x: 4689630.9673, y: 8681543.2985 },\n { id: 699, x: 4829823.5503, y: 8523515.3381 },\n { id: 700, x: 4829936.6747, y: 8532838.267 },\n { id: 4801, x: 4781235.7103, y: 8557169.8029 },\n { id: 702, x: 4828286.4981, y: 8538003.9958 },\n { id: 25297, x: 4686579.9531, y: 8681683.4947 },\n { id: 70387, x: 4668037.0224, y: 8429536.5785 },\n { id: 25298, x: 4684134.1586, y: 8671316.7374 },\n { id: 25299, x: 4684069.9147, y: 8678775.5018 },\n { id: 4804, x: 4778422.4747, y: 8550161.9244 },\n { id: 70389, x: 4667570.1796, y: 8422348.8826 },\n { id: 709, x: 4822214.6633, y: 8527416.1552 },\n { id: 25304, x: 4678295.8464, y: 8672324.1585 },\n { id: 25305, x: 4678138.1978, y: 8680938.3322 },\n { id: 711, x: 4820045.2039, y: 8533383.3388 },\n { id: 70395, x: 4658755.2297, y: 8424727.8983 },\n { id: 4811, x: 4773780.0444, y: 8543917.7169 },\n { id: 25307, x: 4676447.316, y: 8667073.6134 },\n { id: 4812, x: 4773617.0526, y: 8556326.8675 },\n { id: 25310, x: 4673538.5456, y: 8685045.0029 },\n { id: 70400, x: 4654913.9718, y: 8427970.0009 },\n { id: 25311, x: 4672490.2488, y: 8677337.3692 },\n { id: 70401, x: 4653945.8964, y: 8418044.6121 },\n { id: 4824, x: 4765437.9008, y: 8552832.9145 },\n { id: 4825, x: 4763786.5179, y: 8541836.0183 },\n { id: 33532, x: 4876071.3617, y: 8739845.3791 },\n { id: 45830, x: 4803407.5452, y: 8781720.9265 },\n { id: 45831, x: 4800896.0664, y: 8768608.8154 },\n { id: 33534, x: 4873551.1804, y: 8730720.3455 },\n { id: 45832, x: 4800112.288, y: 8778389.4674 },\n { id: 33535, x: 4872386.8184, y: 8722623.7893 },\n { id: 33537, x: 4870955.977, y: 8734070.8889 },\n { id: 45837, x: 4796072.4751, y: 8773055.3597 },\n { id: 33542, x: 4866095.9064, y: 8740689.4928 },\n { id: 45840, x: 4793611.3417, y: 8782442.4214 },\n { id: 45841, x: 4792216.6221, y: 8769516.0982 },\n { id: 45842, x: 4791506.3244, y: 8775268.6098 },\n { id: 33546, x: 4862734.3772, y: 8727302.8913 },\n { id: 54050, x: 4665556.4654, y: 8505301.4347 },\n { id: 54052, x: 4663217.3859, y: 8512702.8295 },\n { id: 54057, x: 4658141.2389, y: 8508117.3515 },\n { id: 54059, x: 4656521.7045, y: 8501371.2857 },\n { id: 54061, x: 4655001.2539, y: 8518584.1039 },\n { id: 54064, x: 4652177.1244, y: 8512302.9977 },\n { id: 49969, x: 4740075.6523, y: 8540543.4086 },\n { id: 58171, x: 4632983.9539, y: 8596254.809 },\n { id: 49973, x: 4736233.043, y: 8526546.31 },\n { id: 49975, x: 4735381.7916, y: 8533440.4682 },\n { id: 58175, x: 4631514.2431, y: 8601164.5982 },\n { id: 37684, x: 4812559.7815, y: 8698598.7683 },\n { id: 13090, x: 4796804.1552, y: 8493696.135 },\n { id: 37685, x: 4811829.2955, y: 8688661.0705 },\n { id: 13092, x: 4795817.3007, y: 8499379.2927 },\n { id: 58182, x: 4625571.9858, y: 8589561.9569 },\n { id: 49984, x: 4726764.9985, y: 8522079.6086 },\n { id: 13094, x: 4795002.7248, y: 8488360.6068 },\n { id: 58184, x: 4621551.2107, y: 8586193.0389 },\n { id: 58185, x: 4621369.4833, y: 8598254.9684 },\n { id: 13096, x: 4794005.7136, y: 8480104.9593 },\n { id: 58186, x: 4621071.2859, y: 8592361.7582 },\n { id: 37691, x: 4804332.4823, y: 8690002.8619 },\n { id: 13099, x: 4792253.5527, y: 8497106.506 },\n { id: 58189, x: 4617891.104, y: 8588428.9598 },\n { id: 58190, x: 4617040.8087, y: 8583579.9137 },\n { id: 13101, x: 4791437.3682, y: 8491023.8447 },\n { id: 13103, x: 4790154.9727, y: 8485112.2868 },\n { id: 13110, x: 4786028.4623, y: 8480699.8868 },\n { id: 13113, x: 4784195.5579, y: 8492962.3667 },\n { id: 13115, x: 4783336.877, y: 8488273.3193 },\n { id: 70547, x: 4683828.8775, y: 8460910.2343 },\n { id: 70548, x: 4683183.1828, y: 8469666.5805 },\n { id: 70555, x: 4676527.7292, y: 8472248.4299 },\n { id: 70556, x: 4672189.5119, y: 8478986.8549 },\n { id: 70557, x: 4671759.2089, y: 8465852.2056 },\n { id: 21378, x: 4709282.3397, y: 8707840.6059 },\n { id: 21382, x: 4705944.821, y: 8716040.6897 },\n { id: 21383, x: 4705250.2378, y: 8709769.5401 },\n { id: 29582, x: 4631803.1457, y: 8632859.7462 },\n { id: 21384, x: 4705217.8313, y: 8720576.3633 },\n { id: 41880, x: 4799285.0658, y: 8611222.5707 },\n { id: 29583, x: 4630871.843, y: 8637558.4673 },\n { id: 29585, x: 4629095.7592, y: 8640803.8136 },\n { id: 41883, x: 4796681.9229, y: 8618465.5332 },\n { id: 29586, x: 4627758.1547, y: 8629637.4889 },\n { id: 29587, x: 4627224.1302, y: 8624979.4043 },\n { id: 29588, x: 4626122.844, y: 8636983.4488 },\n { id: 21390, x: 4700405.0089, y: 8714441.0366 },\n { id: 17292, x: 4750802.6728, y: 8806278.8981 },\n { id: 29590, x: 4624978.6433, y: 8640203.9206 },\n { id: 29591, x: 4624340.8116, y: 8633696.4799 },\n { id: 21395, x: 4697031.9137, y: 8722970.4721 },\n { id: 29594, x: 4622680.3621, y: 8638238.7476 },\n { id: 21396, x: 4695634.6082, y: 8715356.1811 },\n { id: 17297, x: 4747451.3054, y: 8790781.7616 },\n { id: 29595, x: 4620765.5018, y: 8625038.6605 },\n { id: 17298, x: 4746951.4664, y: 8799181.1864 },\n { id: 29597, x: 4620695.5229, y: 8629739.4811 },\n { id: 21399, x: 4692154.9281, y: 8708860.1783 },\n { id: 41895, x: 4789521.7043, y: 8619193.7927 },\n { id: 29598, x: 4619773.6181, y: 8641413.3264 },\n { id: 41897, x: 4788742.6216, y: 8606374.3159 },\n { id: 29600, x: 4618677.7678, y: 8635389.8286 },\n { id: 29603, x: 4616384.4086, y: 8642535.0796 },\n { id: 17306, x: 4737118.4156, y: 8800267.6626 },\n { id: 58308, x: 4612343.8384, y: 8510320.2592 },\n { id: 25523, x: 4691195.4489, y: 8698528.8143 },\n { id: 929, x: 4816039.8238, y: 8520998.5207 },\n { id: 58317, x: 4599894.3231, y: 8502437.8136 },\n { id: 58318, x: 4600058.3074, y: 8516416.379 },\n { id: 932, x: 4813258.3293, y: 8535803.7911 },\n { id: 934, x: 4811637.8425, y: 8526305.4619 },\n { id: 25530, x: 4686022.4459, y: 8701757.5616 },\n { id: 9135, x: 4837665.647, y: 8389785.2943 },\n { id: 5036, x: 4798551.7264, y: 8582727.8275 },\n { id: 25532, x: 4683915.4487, y: 8694618.8685 },\n { id: 938, x: 4807969.8062, y: 8534187.751 },\n { id: 25533, x: 4683477.2494, y: 8685837.6081 },\n { id: 9138, x: 4836600.7475, y: 8379589.256 },\n { id: 9139, x: 4833432.345, y: 8395786.841 },\n { id: 5040, x: 4795419.5438, y: 8589862.3866 },\n { id: 13239, x: 4779493.608, y: 8499300.047 },\n { id: 25537, x: 4679460.3511, y: 8699705.2465 },\n { id: 13240, x: 4779873.4293, y: 8481349.0041 },\n { id: 5042, x: 4794565.1782, y: 8598605.9282 },\n { id: 943, x: 4803575.5462, y: 8527522.497 },\n { id: 25538, x: 4678918.5017, y: 8693532.0888 },\n { id: 9143, x: 4832203.5728, y: 8385404.8461 },\n { id: 13243, x: 4776580.6381, y: 8490573.7664 },\n { id: 5047, x: 4788314.5346, y: 8583504.5059 },\n { id: 25543, x: 4674671.5975, y: 8701531.1735 },\n { id: 13248, x: 4773440.6478, y: 8496674.3993 },\n { id: 5050, x: 4785675.0937, y: 8594274.3701 },\n { id: 13249, x: 4773762.5218, y: 8482190.0009 },\n { id: 9151, x: 4826228.9083, y: 8391048.8914 },\n { id: 13256, x: 4768339.68, y: 8497114.1549 },\n { id: 13257, x: 4768384.666, y: 8488467.8437 },\n { id: 13258, x: 4766464.3284, y: 8482988.2353 },\n { id: 9160, x: 4821221.8279, y: 8382717.6014 },\n { id: 66550, x: 4725943.3676, y: 8424564.5615 },\n { id: 66552, x: 4724567.2361, y: 8432179.2652 },\n { id: 46062, x: 4783843.3765, y: 8768269.0709 },\n { id: 46063, x: 4784128.2491, y: 8781208.835 },\n { id: 66561, x: 4717904.9116, y: 8429223.8592 },\n { id: 66565, x: 4715502.8811, y: 8418710.3972 },\n { id: 46070, x: 4778802.1486, y: 8775119.4135 },\n { id: 46071, x: 4777817.3287, y: 8783753.39 },\n { id: 46072, x: 4776445.0006, y: 8770005.8703 },\n { id: 66571, x: 4708655.7819, y: 8426751.6567 },\n { id: 46079, x: 4770086.5532, y: 8769151.7641 },\n { id: 46081, x: 4769048.8498, y: 8775606.5141 },\n { id: 33792, x: 4859344.6974, y: 8735700.7566 },\n { id: 33794, x: 4857161.3294, y: 8726301.4593 },\n { id: 33800, x: 4852204.6086, y: 8731411.6116 },\n { id: 33807, x: 4847966.2171, y: 8723614.0686 },\n { id: 33810, x: 4846322.7919, y: 8728656.6276 },\n { id: 33815, x: 4843413.3096, y: 8740931.9212 },\n { id: 58429, x: 4608389.0032, y: 8523531.091 },\n { id: 58430, x: 4608378.3665, y: 8530589.3964 },\n { id: 58435, x: 4602205.576, y: 8529995.2852 },\n { id: 58436, x: 4602285.4677, y: 8541326.778 },\n { id: 50242, x: 4741634.1224, y: 8504355.2635 },\n { id: 50246, x: 4736795.7667, y: 8509337.1051 },\n { id: 50247, x: 4736544.4947, y: 8517157.8012 },\n { id: 50251, x: 4733268.2907, y: 8503976.0232 },\n { id: 50260, x: 4726271.0326, y: 8509907.8628 },\n { id: 29767, x: 4653026.2764, y: 8666961.5452 },\n { id: 42066, x: 4779994.0114, y: 8603567.4191 },\n { id: 42067, x: 4780205.1687, y: 8613866.9111 },\n { id: 29772, x: 4650994.2542, y: 8679633.1774 },\n { id: 50268, x: 4734563.8127, y: 8602649.0497 },\n { id: 54374, x: 4687161.7707, y: 8556906.1308 },\n { id: 29780, x: 4645581.2073, y: 8671797.3154 },\n { id: 29781, x: 4643794.6812, y: 8677464.1331 },\n { id: 54376, x: 4685190.6006, y: 8548181.3828 },\n { id: 29783, x: 4643671.4296, y: 8682377.6313 },\n { id: 42081, x: 4769982.5627, y: 8611430.0649 },\n { id: 54379, x: 4683486.8966, y: 8560584.8355 },\n { id: 29787, x: 4639326.0623, y: 8673555.0013 },\n { id: 54382, x: 4678721.8186, y: 8545913.5257 },\n { id: 29788, x: 4639213.139, y: 8680903.2269 },\n { id: 42086, x: 4767190.5029, y: 8618793.9172 },\n { id: 29789, x: 4637447.6936, y: 8667620.327 },\n { id: 54384, x: 4677533.455, y: 8556446.0429 },\n { id: 42087, x: 4766083.9541, y: 8604489.5981 },\n { id: 29791, x: 4636141.3314, y: 8680159.9429 },\n { id: 29792, x: 4635768.5147, y: 8685874.0592 },\n { id: 21596, x: 4729075.4503, y: 8760129.1366 },\n { id: 54389, x: 4673395.9638, y: 8561588.083 },\n { id: 21597, x: 4728125.4638, y: 8754417.1882 },\n { id: 54390, x: 4672083.4823, y: 8552327.0085 },\n { id: 21599, x: 4725919.4952, y: 8749370.6272 },\n { id: 21601, x: 4725307.7992, y: 8763595.4839 },\n { id: 21602, x: 4723636.7318, y: 8755918.9637 },\n { id: 21606, x: 4720667.3218, y: 8764890.1431 },\n { id: 21607, x: 4719459.6524, y: 8751776.6543 },\n { id: 38006, x: 4819175.1788, y: 8677330.7762 },\n { id: 21610, x: 4717103.2843, y: 8759468.4826 },\n { id: 38008, x: 4818540.5179, y: 8664637.6299 },\n { id: 21612, x: 4714399.477, y: 8764191.8828 },\n { id: 38009, x: 4818106.5868, y: 8670835.8784 },\n { id: 21613, x: 4714048.7763, y: 8756191.8066 },\n { id: 21615, x: 4712429.874, y: 8750037.423 },\n { id: 38012, x: 4814057.9288, y: 8681262.2081 },\n { id: 38015, x: 4807815.6301, y: 8670886.2065 },\n { id: 38017, x: 4807577.9256, y: 8677575.5611 },\n { id: 38018, x: 4806981.6383, y: 8662899.0143 },\n { id: 25722, x: 4670458.2265, y: 8705157.7947 },\n { id: 70812, x: 4680685.2328, y: 8497863.7988 },\n { id: 25723, x: 4669919.4583, y: 8698859.814 },\n { id: 70814, x: 4679276.6132, y: 8486580.8447 },\n { id: 25725, x: 4668534.2373, y: 8692160.1207 },\n { id: 25730, x: 4664856.7655, y: 8700586.0635 },\n { id: 25732, x: 4663514.2831, y: 8690179.4172 },\n { id: 25736, x: 4660191.7973, y: 8694509.2428 },\n { id: 25739, x: 4658957.4512, y: 8700589.0805 },\n { id: 25741, x: 4656746.0584, y: 8688417.3545 },\n { id: 17543, x: 4725349.6274, y: 8610759.6656 },\n { id: 25742, x: 4656510.267, y: 8700658.6616 },\n { id: 17546, x: 4723443.3268, y: 8616104.9545 },\n { id: 17548, x: 4721845.4314, y: 8622312.5984 },\n { id: 17550, x: 4720159.8019, y: 8603248.9739 },\n { id: 17554, x: 4718040.4986, y: 8608875.0722 },\n { id: 9357, x: 4837314.0417, y: 8406553.1538 },\n { id: 17556, x: 4716553.1795, y: 8620405.9697 },\n { id: 17557, x: 4715086.5135, y: 8604464.634 },\n { id: 17558, x: 4713952.6214, y: 8614812.7357 },\n { id: 9360, x: 4835187.0857, y: 8413997.8257 },\n { id: 46253, x: 4781364.9575, y: 8756506.9612 },\n { id: 46254, x: 4779862.6748, y: 8749575.5049 },\n { id: 17562, x: 4710560.8162, y: 8615183.5771 },\n { id: 46256, x: 4779689.0124, y: 8761408.8134 },\n { id: 13465, x: 4779999.0897, y: 8475134.894 },\n { id: 9367, x: 4829759.7756, y: 8413739.8672 },\n { id: 17566, x: 4708298.5999, y: 8605230.8171 },\n { id: 13467, x: 4778373.1039, y: 8465362.8347 },\n { id: 46260, x: 4775396.5029, y: 8746254.3931 },\n { id: 13468, x: 4778242.7895, y: 8460638.6227 },\n { id: 46261, x: 4774433.5168, y: 8762333.0998 },\n { id: 13470, x: 4776673.6641, y: 8470429.8067 },\n { id: 9371, x: 4827504.6635, y: 8407260.7308 },\n { id: 13472, x: 4775482.4383, y: 8477098.3615 },\n { id: 46265, x: 4771260.6596, y: 8753542.0828 },\n { id: 13474, x: 4774988.8297, y: 8460771.9903 },\n { id: 9377, x: 4823578.8943, y: 8418706.1509 },\n { id: 13477, x: 4772440.0298, y: 8466528.3102 },\n { id: 13479, x: 4770308.3775, y: 8477584.7566 },\n { id: 9381, x: 4821659.5077, y: 8399409.4492 },\n { id: 13481, x: 4769183.0302, y: 8471027.692 },\n { id: 9383, x: 4820104.9313, y: 8408642.8415 },\n { id: 5284, x: 4779481.928, y: 8589805.5931 },\n { id: 13485, x: 4767561.2209, y: 8460798.7166 },\n { id: 5293, x: 4769540.7313, y: 8589708.0126 },\n { id: 5294, x: 4769197.108, y: 8596968.3329 },\n { id: 1226, x: 4817434.0326, y: 8507871.5236 },\n { id: 1232, x: 4811895.9458, y: 8517271.9736 },\n { id: 50421, x: 4721804.0706, y: 8501740.8335 },\n { id: 1236, x: 4809797.5008, y: 8509537.4155 },\n { id: 50425, x: 4717827.8098, y: 8513194.9935 },\n { id: 1238, x: 4807241.912, y: 8502171.005 },\n { id: 42231, x: 4797375.7856, y: 8626355.4232 },\n { id: 34035, x: 4858115.4581, y: 8705361.9254 },\n { id: 1243, x: 4802253.3348, y: 8501826.4588 },\n { id: 1244, x: 4802120.9863, y: 8510239.29 },\n { id: 50434, x: 4710973.4204, y: 8503256.7544 },\n { id: 34038, x: 4855371.8837, y: 8712255.7795 },\n { id: 1246, x: 4801316.4352, y: 8516610.5261 },\n { id: 42241, x: 4790452.0461, y: 8630956.7745 },\n { id: 50440, x: 4708128.7199, y: 8518632.0999 },\n { id: 34044, x: 4850394.18, y: 8717097.7678 },\n { id: 29945, x: 4653422.527, y: 8686733.0212 },\n { id: 29946, x: 4653531.7369, y: 8692973.272 },\n { id: 34047, x: 4847780.0646, y: 8707645.2678 },\n { id: 29948, x: 4652117.9175, y: 8703829.5677 },\n { id: 29949, x: 4651430.3143, y: 8694161.4895 },\n { id: 34051, x: 4844021.7482, y: 8719037.4751 },\n { id: 42250, x: 4783929.3998, y: 8636657.4329 },\n { id: 34054, x: 4840322.5795, y: 8712190.1027 },\n { id: 29956, x: 4644903.7983, y: 8700269.4881 },\n { id: 29958, x: 4643125.2835, y: 8688316.8174 },\n { id: 29959, x: 4643631.7089, y: 8705738.1728 },\n { id: 29960, x: 4641972.3977, y: 8696842.339 },\n { id: 29966, x: 4638532.8542, y: 8700061.9842 },\n { id: 29969, x: 4637915.3079, y: 8706129.5639 },\n { id: 70968, x: 4670116.563, y: 8493548.4502 },\n { id: 70972, x: 4667101.002, y: 8484917.4584 },\n { id: 70975, x: 4664186.5672, y: 8496886.7813 },\n { id: 70977, x: 4660670.9034, y: 8482932.3207 },\n { id: 70980, x: 4658451.2348, y: 8492222.5753 },\n { id: 70982, x: 4657071.791, y: 8483591.4663 },\n { id: 9504, x: 4815303.1105, y: 8417551.5674 },\n { id: 9512, x: 4811252.3603, y: 8401507.7038 },\n { id: 9514, x: 4809831.3699, y: 8408098.5278 },\n { id: 25913, x: 4671071.5161, y: 8670785.5547 },\n { id: 9517, x: 4807989.4726, y: 8415381.3373 },\n { id: 9519, x: 4806304.18, y: 8405024.1446 },\n { id: 25917, x: 4667256.0826, y: 8684107.7927 },\n { id: 25918, x: 4666609.6782, y: 8672293.3124 },\n { id: 9523, x: 4803024.6417, y: 8417579.8354 },\n { id: 25920, x: 4666480.5553, y: 8677396.1285 },\n { id: 9524, x: 4802930.3466, y: 8412090.3847 },\n { id: 25923, x: 4664036.6952, y: 8680512.8526 },\n { id: 9527, x: 4801734.1874, y: 8402336.7606 },\n { id: 25924, x: 4662940.6451, y: 8670957.2116 },\n { id: 25926, x: 4661983.7156, y: 8685468.0492 },\n { id: 25927, x: 4659998.1307, y: 8674795.7278 },\n { id: 25928, x: 4659427.1122, y: 8667209.0157 },\n { id: 25933, x: 4657393.0231, y: 8677850.2863 },\n { id: 25934, x: 4656709.0396, y: 8670976.481 },\n { id: 58727, x: 4613995.1856, y: 8560929.9803 },\n { id: 58730, x: 4611534.9024, y: 8556668.4496 },\n { id: 30038, x: 4635024.8566, y: 8703973.6254 },\n { id: 58732, x: 4610490.4632, y: 8545307.6689 },\n { id: 30039, x: 4634415.8316, y: 8694731.2778 },\n { id: 30040, x: 4631838.9298, y: 8689368.5433 },\n { id: 58734, x: 4608367.8368, y: 8550725.4641 },\n { id: 5447, x: 4758112.8727, y: 8507720.8397 },\n { id: 58735, x: 4607689.6043, y: 8548003.7145 },\n { id: 30042, x: 4627309.2917, y: 8692147.1457 },\n { id: 58736, x: 4607052.6578, y: 8555026.2567 },\n { id: 58739, x: 4603259.3815, y: 8557114.0463 },\n { id: 58740, x: 4602742.0321, y: 8552814.8752 },\n { id: 58742, x: 4600820.0343, y: 8549968.552 },\n { id: 17758, x: 4707034.5331, y: 8622778.9109 },\n { id: 17759, x: 4706439.9393, y: 8611942.4856 },\n { id: 17762, x: 4703974.8356, y: 8604205.6769 },\n { id: 17763, x: 4703147.7144, y: 8620311.7401 },\n { id: 38261, x: 4834909.6084, y: 8705229.7066 },\n { id: 17766, x: 4701045.8003, y: 8607685.8976 },\n { id: 17769, x: 4699704.5644, y: 8613909.0229 },\n { id: 9572, x: 4819186.2366, y: 8390019.2816 },\n { id: 50564, x: 4723751.1798, y: 8533557.0444 },\n { id: 17772, x: 4699143.1932, y: 8621946.1472 },\n { id: 38268, x: 4828042.7528, y: 8705067.4921 },\n { id: 9575, x: 4817263.3675, y: 8395517.8131 },\n { id: 38269, x: 4827868.9498, y: 8711639.3689 },\n { id: 17774, x: 4695767.5626, y: 8605101.6857 },\n { id: 17775, x: 4695981.9325, y: 8611702.5743 },\n { id: 50568, x: 4719313.6909, y: 8537988.5777 },\n { id: 17776, x: 4695351.8777, y: 8619281.4927 },\n { id: 9578, x: 4815388.0489, y: 8384853.7008 },\n { id: 50569, x: 4717587.1758, y: 8526627.1686 },\n { id: 50572, x: 4712909.2084, y: 8534247.2529 },\n { id: 9582, x: 4811963.641, y: 8389883.699 },\n { id: 17782, x: 4691502.818, y: 8621440.026 },\n { id: 9585, x: 4807596.4579, y: 8392977.8131 },\n { id: 54687, x: 4687692.1052, y: 8576664.1478 },\n { id: 54688, x: 4686425.9339, y: 8568136.3268 },\n { id: 54689, x: 4684146.547, y: 8581252.4795 },\n { id: 54693, x: 4681011.2878, y: 8574603.213 },\n { id: 54695, x: 4676719.6657, y: 8567303.0681 },\n { id: 54696, x: 4676633.1149, y: 8577673.8646 },\n { id: 42400, x: 4795394.7657, y: 8660970.0572 },\n { id: 54699, x: 4671370.4379, y: 8565335.8361 },\n { id: 42402, x: 4791756.1813, y: 8643434.2868 },\n { id: 54700, x: 4671575.679, y: 8577678.3867 },\n { id: 42404, x: 4791429.4244, y: 8649857.2926 },\n { id: 42410, x: 4787521.8542, y: 8655348.1525 },\n { id: 42414, x: 4783785.2703, y: 8645778.0792 },\n { id: 71117, x: 4669039.5452, y: 8458965.037 },\n { id: 71123, x: 4663188.4669, y: 8464740.1001 },\n { id: 71127, x: 4659156.8542, y: 8475401.4068 },\n { id: 71132, x: 4652420.9587, y: 8465890.3429 },\n { id: 34242, x: 4877803.3392, y: 8749260.1247 },\n { id: 34243, x: 4877475.0697, y: 8759683.7657 },\n { id: 71136, x: 4628451.5958, y: 8468604.6282 },\n { id: 71137, x: 4623404.7061, y: 8468290.6367 },\n { id: 34248, x: 4872344.5591, y: 8745446.4977 },\n { id: 34249, x: 4872102.5488, y: 8756396.5855 },\n { id: 71142, x: 4617058.5596, y: 8468142.2447 },\n { id: 71143, x: 4614986.3118, y: 8460528.7577 },\n { id: 34252, x: 4867320.5561, y: 8752431.4257 },\n { id: 34255, x: 4864432.3617, y: 8759777.6952 },\n { id: 1463, x: 4836404.0183, y: 8551830.9882 },\n { id: 1465, x: 4833424.1267, y: 8546591.3527 },\n { id: 1469, x: 4831454.7011, y: 8559476.6082 },\n { id: 1473, x: 4827393.2525, y: 8548717.3542 },\n { id: 1482, x: 4822118.9654, y: 8553891.872 },\n { id: 5597, x: 4761041.5137, y: 8526876.2458 },\n { id: 30194, x: 4633313.9067, y: 8670497.2555 },\n { id: 5600, x: 4757651.9297, y: 8537319.211 },\n { id: 5602, x: 4756831.1453, y: 8520513.8218 },\n { id: 13802, x: 4892972.8401, y: 8400074.0216 },\n { id: 5604, x: 4754981.982, y: 8528852.3164 },\n { id: 30199, x: 4631762.6811, y: 8676320.2261 },\n { id: 30200, x: 4631819.6528, y: 8682359.5831 },\n { id: 13805, x: 4887070.7015, y: 8406930.876 },\n { id: 30204, x: 4628428.1908, y: 8675297.3646 },\n { id: 30205, x: 4628654.3245, y: 8686409.4088 },\n { id: 13809, x: 4884863.1288, y: 8416349.4208 },\n { id: 30207, x: 4627049.3055, y: 8679602.8155 },\n { id: 13811, x: 4884384.7904, y: 8400893.5455 },\n { id: 30211, x: 4622219.0965, y: 8668939.1249 },\n { id: 13818, x: 4879003.4584, y: 8410929.623 },\n { id: 13820, x: 4877808.0966, y: 8405098.3638 },\n { id: 13821, x: 4876455.6195, y: 8415971.5999 },\n { id: 22021, x: 4730389, y: 8773990.7055 },\n { id: 22023, x: 4728860.7848, y: 8778601.6256 },\n { id: 22025, x: 4726969.6287, y: 8767324.5495 },\n { id: 22029, x: 4724332.3533, y: 8784093.7674 },\n { id: 22032, x: 4721480.9193, y: 8774273.3197 },\n { id: 22033, x: 4719455.2064, y: 8780682.7274 },\n { id: 22034, x: 4718638.9275, y: 8769552.7967 },\n { id: 22039, x: 4714598.5353, y: 8773188.987 },\n { id: 22040, x: 4714795.6947, y: 8784407.2686 },\n { id: 38438, x: 4839726.4344, y: 8728245.3894 },\n { id: 38442, x: 4836038.5572, y: 8722127.4069 },\n { id: 38443, x: 4835390.1112, y: 8737770.4874 },\n { id: 38448, x: 4829797.9801, y: 8722549.778 },\n { id: 38450, x: 4829212.1061, y: 8733246.4195 },\n { id: 38456, x: 4822314.8342, y: 8728454.5652 },\n { id: 26167, x: 4689377.9287, y: 8722180.331 },\n { id: 26168, x: 4688793.5958, y: 8706441.526 },\n { id: 26171, x: 4686418.8376, y: 8717005.2709 },\n { id: 26177, x: 4681574.286, y: 8707806.7579 },\n { id: 26178, x: 4680515.8682, y: 8716190.9647 },\n { id: 26181, x: 4677925.8387, y: 8722087.896 },\n { id: 71272, x: 4633097.4825, y: 8499696.6453 },\n { id: 71273, x: 4632978.0813, y: 8481581.7125 },\n { id: 46679, x: 4803338.2231, y: 8785356.8769 },\n { id: 26184, x: 4675099.791, y: 8717439.5836 },\n { id: 26185, x: 4674483.0349, y: 8708397.5536 },\n { id: 71275, x: 4628236.698, y: 8489011.5452 },\n { id: 46682, x: 4800267.4483, y: 8797748.9499 },\n { id: 30286, x: 4654842.5826, y: 8711022.6534 },\n { id: 46683, x: 4799891.2827, y: 8789006.435 },\n { id: 71278, x: 4622734.702, y: 8482071.0581 },\n { id: 46684, x: 4799203.4537, y: 8801481.9657 },\n { id: 30288, x: 4653195.1871, y: 8724710.8391 },\n { id: 30290, x: 4652679.9639, y: 8717373.6842 },\n { id: 71281, x: 4619047.7951, y: 8492965.9067 },\n { id: 46688, x: 4793911.1115, y: 8795628.0792 },\n { id: 42589, x: 4778219.8033, y: 8658606.3823 },\n { id: 30292, x: 4650516.6141, y: 8708227.0802 },\n { id: 46690, x: 4792712.381, y: 8788214.1303 },\n { id: 42591, x: 4775503.1383, y: 8653183.0566 },\n { id: 30294, x: 4646645.5975, y: 8709685.328 },\n { id: 46691, x: 4792732.7777, y: 8804333.7136 },\n { id: 30297, x: 4638065.3536, y: 8712107.6689 },\n { id: 18000, x: 4724628.7665, y: 8631596.4707 },\n { id: 46694, x: 4788788.8037, y: 8791491.2787 },\n { id: 18001, x: 4724538.8658, y: 8629857.48 },\n { id: 18003, x: 4724378.1717, y: 8641414.5109 },\n { id: 42600, x: 4769255.8946, y: 8643475.6566 },\n { id: 42602, x: 4768830.347, y: 8655952.7629 },\n { id: 30305, x: 4655685.5239, y: 8745865.7288 },\n { id: 30308, x: 4654371.2446, y: 8731085.21 },\n { id: 18011, x: 4718673.8302, y: 8632162.3083 },\n { id: 63101, x: 4743434.8835, y: 8445877.1675 },\n { id: 18013, x: 4717815.1231, y: 8643008.0168 },\n { id: 18014, x: 4716373.8163, y: 8628631.9157 },\n { id: 63105, x: 4741244.1711, y: 8458183.275 },\n { id: 63108, x: 4739111.3387, y: 8439455.0106 },\n { id: 9821, x: 4835783.8845, y: 8437145.8631 },\n { id: 63110, x: 4738048.3811, y: 8443872.4275 },\n { id: 18021, x: 4710662.5517, y: 8625641.7325 },\n { id: 63111, x: 4737609.245, y: 8444098.2603 },\n { id: 63112, x: 4737416.598, y: 8447623.264 },\n { id: 18023, x: 4709863.305, y: 8634034.5271 },\n { id: 9825, x: 4833012.1965, y: 8424888.3241 },\n { id: 9826, x: 4831432.9365, y: 8431512.8585 },\n { id: 67213, x: 4725097.0114, y: 8452212.9685 },\n { id: 67216, x: 4723646.9031, y: 8441705.6624 },\n { id: 67220, x: 4720332.8088, y: 8454633.4978 },\n { id: 30329, x: 4653814.1316, y: 8789415.0129 },\n { id: 63122, x: 4730765.7135, y: 8441832.4105 },\n { id: 67223, x: 4718738.4691, y: 8447765.7914 },\n { id: 9838, x: 4825115.7807, y: 8425729.1213 },\n { id: 63126, x: 4728354.7518, y: 8447437.3391 },\n { id: 9841, x: 4823125.8257, y: 8435166.4185 },\n { id: 67228, x: 4714747.3987, y: 8441822.2201 },\n { id: 67229, x: 4714642.1966, y: 8440883.1939 },\n { id: 67230, x: 4713611.1746, y: 8450358.329 },\n { id: 34440, x: 4876896.2126, y: 8778471.766 },\n { id: 67236, x: 4708853.8035, y: 8451497.0287 },\n { id: 34447, x: 4871677.996, y: 8770298.1753 },\n { id: 34448, x: 4871833.8205, y: 8777952.7106 },\n { id: 34449, x: 4871059.9838, y: 8763890.6016 },\n { id: 1657, x: 4833676.5694, y: 8573843.3714 },\n { id: 50848, x: 4707120.524, y: 8537258.7196 },\n { id: 50852, x: 4704791.6711, y: 8525294.9923 },\n { id: 1664, x: 4828216.5839, y: 8566984.7336 },\n { id: 1666, x: 4827661.1853, y: 8576833.7091 },\n { id: 13965, x: 4891600.0308, y: 8392970.4011 },\n { id: 34461, x: 4863109.1336, y: 8775210.8211 },\n { id: 1669, x: 4824461.6957, y: 8561032.3742 },\n { id: 34464, x: 4861139.1141, y: 8768688.5871 },\n { id: 1673, x: 4822497.8322, y: 8569756.2146 },\n { id: 50862, x: 4697599.5649, y: 8525359.4498 },\n { id: 13972, x: 4883194.7571, y: 8389614.1765 },\n { id: 50864, x: 4696716.7947, y: 8534075.8818 },\n { id: 13973, x: 4881330.4108, y: 8395790.4572 },\n { id: 50869, x: 4691379.967, y: 8527424.4386 },\n { id: 13979, x: 4877731.1699, y: 8382464.023 },\n { id: 71382, x: 4651289.4753, y: 8484123.2067 },\n { id: 71388, x: 4645370.5119, y: 8493062.4727 },\n { id: 71391, x: 4643122.0319, y: 8484626.1194 },\n { id: 71397, x: 4637449.7119, y: 8485789.8503 },\n { id: 71400, x: 4635007.4363, y: 8493478.1373 },\n { id: 30410, x: 4656021.54, y: 8798796.3532 },\n { id: 30415, x: 4649475.0013, y: 8794896.0643 },\n { id: 30419, x: 4658556.8905, y: 8825758.4324 },\n { id: 30422, x: 4656259.0815, y: 8812282.912 },\n { id: 30433, x: 4658828.4979, y: 8833324.2987 },\n { id: 26340, x: 4692420.7202, y: 8727280.3753 },\n { id: 59134, x: 4608119.6505, y: 8573614.0756 },\n { id: 26342, x: 4692001.901, y: 8744559.4919 },\n { id: 59135, x: 4607853.9727, y: 8566032.4871 },\n { id: 26343, x: 4689972.1135, y: 8732891.0255 },\n { id: 59136, x: 4607662.3072, y: 8579948.5831 },\n { id: 26346, x: 4686542.5189, y: 8737905.1193 },\n { id: 26347, x: 4685686.0373, y: 8728412.5175 },\n { id: 26348, x: 4685106.1357, y: 8733200.8836 },\n { id: 26349, x: 4684508.2148, y: 8745425.5245 },\n { id: 59143, x: 4602382.2803, y: 8565253.3405 },\n { id: 59144, x: 4600501.2591, y: 8571506.0739 },\n { id: 26352, x: 4681357.1129, y: 8727510.1577 },\n { id: 59146, x: 4598931.7699, y: 8580371.034 },\n { id: 26354, x: 4680574.4094, y: 8739304.692 },\n { id: 59148, x: 4597349.2632, y: 8566840.7578 },\n { id: 26359, x: 4677050.6218, y: 8733528.2532 },\n { id: 26365, x: 4673919.2311, y: 8727429.2337 },\n { id: 38675, x: 4822196.9396, y: 8734020.4816 },\n { id: 38677, x: 4817860.8958, y: 8738918.7012 },\n { id: 5886, x: 4757444.6018, y: 8555081.7644 },\n { id: 38679, x: 4816981.0152, y: 8725865.2283 },\n { id: 38682, x: 4811669.2952, y: 8732462.746 },\n { id: 38683, x: 4811149.2148, y: 8726431.991 },\n { id: 5891, x: 4752927.6366, y: 8548298.4572 },\n { id: 38688, x: 4806576.2852, y: 8741042.9187 },\n { id: 5896, x: 4748366.9316, y: 8556002.1433 },\n { id: 5899, x: 4746727.7656, y: 8546928.7557 },\n { id: 67411, x: 4706008.5299, y: 8456284.6525 },\n { id: 67414, x: 4704338.3791, y: 8448873.265 },\n { id: 67422, x: 4697492.4126, y: 8454933.1735 },\n { id: 67423, x: 4695956.3071, y: 8448271.3433 },\n { id: 34631, x: 4854828.9257, y: 8769222.9954 },\n { id: 67425, x: 4695406.797, y: 8439371.7717 },\n { id: 34635, x: 4853540.5339, y: 8776870.7715 },\n { id: 34641, x: 4849588.6814, y: 8762839.3487 },\n { id: 71537, x: 4648722.0318, y: 8477685.3217 },\n { id: 34648, x: 4844958.8857, y: 8776186.1013 },\n { id: 71541, x: 4645192.7337, y: 8468408.4935 },\n { id: 34651, x: 4842869.4052, y: 8764009.0641 },\n { id: 71544, x: 4640760.8446, y: 8474920.4935 },\n { id: 71546, x: 4637989.3044, y: 8463437.4544 },\n { id: 18277, x: 4724041.8175, y: 8650414.2713 },\n { id: 18278, x: 4722645.3657, y: 8659143.7538 },\n { id: 18283, x: 4717997.9603, y: 8647870.0351 },\n { id: 18284, x: 4717297.7556, y: 8661914.2071 },\n { id: 18286, x: 4715657.8563, y: 8653746.9178 },\n { id: 10089, x: 4829411.2792, y: 8454105.7657 },\n { id: 18288, x: 4713480.0056, y: 8644402.0804 },\n { id: 10090, x: 4829500.2484, y: 8444926.1953 },\n { id: 18290, x: 4713175.2936, y: 8644535.5873 },\n { id: 10093, x: 4826712.7644, y: 8439698.7204 },\n { id: 18293, x: 4710946.3234, y: 8654655.2455 },\n { id: 51087, x: 4706199.3488, y: 8512542.6471 },\n { id: 10101, x: 4820829.5066, y: 8451924.7531 },\n { id: 10104, x: 4819588.8323, y: 8443882.6332 },\n { id: 51095, x: 4700419.2031, y: 8507035.3391 },\n { id: 22402, x: 4710732.5588, y: 8769722.4661 },\n { id: 22406, x: 4708100.6652, y: 8778210.8521 },\n { id: 22408, x: 4707092.4739, y: 8785779.8951 },\n { id: 51102, x: 4696049.6351, y: 8514153.3038 },\n { id: 22410, x: 4705524.0313, y: 8772153.4533 },\n { id: 1916, x: 4815556.2346, y: 8561916.6426 },\n { id: 22413, x: 4702715.4081, y: 8781154.4885 },\n { id: 1919, x: 4814187.5403, y: 8567810.0971 },\n { id: 22416, x: 4698227.7834, y: 8778353.2777 },\n { id: 22419, x: 4697132.3765, y: 8771675.1623 },\n { id: 22420, x: 4696622.7543, y: 8783290.4365 },\n { id: 1925, x: 4810672.0772, y: 8574708.8603 },\n { id: 1930, x: 4806394.6074, y: 8561435.6711 },\n { id: 1934, x: 4804163.969, y: 8578412.7725 },\n { id: 1935, x: 4803470.0497, y: 8568438.2409 },\n { id: 26548, x: 4673064.1069, y: 8743071.5694 },\n { id: 26549, x: 4672177.4634, y: 8735686.5466 },\n { id: 26555, x: 4667428.215, y: 8728804.552 },\n { id: 26556, x: 4667231.3032, y: 8736555.3443 },\n { id: 26558, x: 4666545.2466, y: 8744620.3309 },\n { id: 26560, x: 4663811.4684, y: 8731321.245 },\n { id: 26561, x: 4663524.7221, y: 8736402.649 },\n { id: 26567, x: 4658680.7404, y: 8737634.5277 },\n { id: 26568, x: 4658082.6604, y: 8730317.685 },\n { id: 71679, x: 4632545.8844, y: 8421388.878 },\n { id: 71680, x: 4630740.0137, y: 8426629.2771 },\n { id: 71683, x: 4627789.3051, y: 8431448.7494 },\n { id: 71685, x: 4626862.059, y: 8422335.9447 },\n { id: 71689, x: 4621158.8466, y: 8419782.6677 },\n { id: 71690, x: 4619532.4399, y: 8427494.4721 },\n { id: 71693, x: 4617296.5008, y: 8423636.5945 },\n { id: 30717, x: 4611594.7702, y: 8606322.194 },\n { id: 30718, x: 4610901.1534, y: 8622004.9621 },\n { id: 55313, x: 4670180.105, y: 8570278.5919 },\n { id: 55314, x: 4666472.5741, y: 8581906.221 },\n { id: 30720, x: 4608526.6205, y: 8617013.1054 },\n { id: 55318, x: 4662124.5334, y: 8566702.0191 },\n { id: 55320, x: 4658325.0144, y: 8575364.6374 },\n { id: 30728, x: 4603942.6648, y: 8611621.8439 },\n { id: 30729, x: 4603374.0292, y: 8621804.6574 },\n { id: 30731, x: 4599504.903, y: 8622281.8681 },\n { id: 30732, x: 4598886.5053, y: 8613657.7232 },\n { id: 38957, x: 4820378.9041, y: 8717156.0389 },\n { id: 38958, x: 4818817.9806, y: 8703729.4265 },\n { id: 34859, x: 4859235.8107, y: 8747936.1709 },\n { id: 34860, x: 4858125.4681, y: 8757072.8847 },\n { id: 38960, x: 4817232.5173, y: 8709956.3279 },\n { id: 38966, x: 4811177.3887, y: 8704487.4101 },\n { id: 6176, x: 4757178.1818, y: 8579549.1853 },\n { id: 34869, x: 4852357.0713, y: 8741721.3402 },\n { id: 38969, x: 4809360.9414, y: 8714489.7118 },\n { id: 34870, x: 4852072.3981, y: 8751686.3485 },\n { id: 6178, x: 4756297.8943, y: 8572221.8588 },\n { id: 6180, x: 4753774.5361, y: 8561893.5153 },\n { id: 6184, x: 4751320.2102, y: 8569230.7454 },\n { id: 6186, x: 4749699.6918, y: 8575818.492 },\n { id: 34880, x: 4845245.9364, y: 8753277.0543 },\n { id: 34884, x: 4843659.8631, y: 8747970.9562 },\n { id: 14412, x: 4759967.3378, y: 8613741.9474 },\n { id: 14414, x: 4756135.0483, y: 8603738.5311 },\n { id: 14417, x: 4754325.2605, y: 8609977.779 },\n { id: 14419, x: 4751688.2177, y: 8617662.2095 },\n { id: 67710, x: 4705246.8946, y: 8436850.3308 },\n { id: 22622, x: 4710802.0058, y: 8759654.9587 },\n { id: 10325, x: 4813928.3971, y: 8457369.839 },\n { id: 51315, x: 4721657.0719, y: 8556534.4941 },\n { id: 14425, x: 4746994.861, y: 8621675.5918 },\n { id: 51316, x: 4721291.6563, y: 8550132.6127 },\n { id: 14426, x: 4746480.9196, y: 8608375.6727 },\n { id: 51317, x: 4719432.6307, y: 8542217.2385 },\n { id: 67714, x: 4701445.3537, y: 8425409.9119 },\n { id: 59517, x: 4595531.5579, y: 8583354.2582 },\n { id: 10331, x: 4810515.0778, y: 8443768.1964 },\n { id: 59519, x: 4595028.9192, y: 8574638.8153 },\n { id: 22629, x: 4706965.4348, y: 8755364.0468 },\n { id: 51322, x: 4715586.1088, y: 8544001.4528 },\n { id: 22631, x: 4705613.0062, y: 8750651.1416 },\n { id: 59522, x: 4592054.6106, y: 8569872.1506 },\n { id: 51324, x: 4714611.5413, y: 8551019.2827 },\n { id: 26731, x: 4671403.6565, y: 8722186.0249 },\n { id: 67721, x: 4695496.4097, y: 8419994.9862 },\n { id: 51326, x: 4714014.9812, y: 8557098.2016 },\n { id: 10336, x: 4806273.6699, y: 8458443.9529 },\n { id: 22634, x: 4705063.2956, y: 8759561.9697 },\n { id: 51328, x: 4710737.5049, y: 8550044.3237 },\n { id: 22636, x: 4702086.8789, y: 8762852.0095 },\n { id: 10339, x: 4803175.2044, y: 8449713.2376 },\n { id: 59527, x: 4589692.7362, y: 8575241.9185 },\n { id: 26736, x: 4668152.3799, y: 8715359.1975 },\n { id: 59528, x: 4589786.3083, y: 8580109.2765 },\n { id: 51331, x: 4708015.5259, y: 8541908.8313 },\n { id: 22638, x: 4701587.4963, y: 8757274.8922 },\n { id: 71826, x: 4628083.3541, y: 8442551.5568 },\n { id: 67727, x: 4690197.9194, y: 8427906.8265 },\n { id: 26738, x: 4667405.2418, y: 8710708.4383 },\n { id: 71827, x: 4626839.2909, y: 8457967.3741 },\n { id: 71828, x: 4626090.9895, y: 8450134.9134 },\n { id: 22641, x: 4697520.9844, y: 8754203.7875 },\n { id: 59533, x: 4585485.9578, y: 8574411.7883 },\n { id: 26742, x: 4664438.9075, y: 8725233.7794 },\n { id: 22643, x: 4696549.4828, y: 8766031.0907 },\n { id: 71831, x: 4621353.6529, y: 8458201.0357 },\n { id: 59534, x: 4584886.3824, y: 8563305.5526 },\n { id: 71832, x: 4621521.3713, y: 8437888.9463 },\n { id: 59535, x: 4580978.5341, y: 8565788.3403 },\n { id: 26744, x: 4662018.8765, y: 8713054.1805 },\n { id: 22645, x: 4695832.0372, y: 8748423.1043 },\n { id: 71833, x: 4620355.8537, y: 8445217.1941 },\n { id: 26746, x: 4661275.7024, y: 8719355.4121 },\n { id: 26748, x: 4659068.9962, y: 8708325.5973 },\n { id: 26750, x: 4657924.5067, y: 8726224.3792 },\n { id: 18552, x: 4708572.3187, y: 8647178.5878 },\n { id: 26752, x: 4655983.5683, y: 8720538.6476 },\n { id: 18554, x: 4707409.7619, y: 8653452.7031 },\n { id: 18556, x: 4706400.5033, y: 8659012.078 },\n { id: 18557, x: 4705182.1672, y: 8650309.1542 },\n { id: 18562, x: 4701105.3185, y: 8663423.1867 },\n { id: 18563, x: 4700378.8932, y: 8653711.0181 },\n { id: 18567, x: 4697784.1764, y: 8663725.323 },\n { id: 43165, x: 4780235.8783, y: 8622236.7201 },\n { id: 18571, x: 4696002.3531, y: 8659878.0683 },\n { id: 18572, x: 4694331.3124, y: 8647440.6379 },\n { id: 18573, x: 4693929.3428, y: 8653964.2192 },\n { id: 43170, x: 4776242.2601, y: 8630080.7132 },\n { id: 18577, x: 4690981.5421, y: 8657500.0136 },\n { id: 43172, x: 4775122.4289, y: 8638274.0494 },\n { id: 43183, x: 4767852.6698, y: 8635505.3492 },\n { id: 59581, x: 4595587.0861, y: 8547476.9619 },\n { id: 43185, x: 4766313.2817, y: 8627639.5168 },\n { id: 59582, x: 4595735.6693, y: 8556598.3008 },\n { id: 59583, x: 4593989.1909, y: 8562596.9921 },\n { id: 59584, x: 4593307.0845, y: 8551290.8938 },\n { id: 59586, x: 4587953.5366, y: 8551478.4505 },\n { id: 59587, x: 4587403.1381, y: 8558077.7166 },\n { id: 35019, x: 4879212.723, y: 8787669.9007 },\n { id: 63715, x: 4739865.9684, y: 8431507.4866 },\n { id: 63716, x: 4739849.2948, y: 8426511.9785 },\n { id: 35023, x: 4877007.5008, y: 8797362.382 },\n { id: 63717, x: 4739512.5333, y: 8419757.2879 },\n { id: 35028, x: 4873193.5211, y: 8794301.9281 },\n { id: 71920, x: 4646995.0701, y: 8457164.8458 },\n { id: 71921, x: 4645842.2879, y: 8446874.329 },\n { id: 71922, x: 4645178.6297, y: 8440806.8596 },\n { id: 63724, x: 4734129.2758, y: 8432362.3989 },\n { id: 35031, x: 4871761.9338, y: 8787407.8446 },\n { id: 6339, x: 4742975.9137, y: 8567280.8477 },\n { id: 6340, x: 4743265.6047, y: 8580102.96 },\n { id: 71925, x: 4635842.5025, y: 8454325.4339 },\n { id: 63727, x: 4733154.4999, y: 8424294.9012 },\n { id: 35034, x: 4869045.7546, y: 8783779.6925 },\n { id: 71927, x: 4635015.3993, y: 8441382.7357 },\n { id: 6343, x: 4740911.1765, y: 8561700.0604 },\n { id: 35037, x: 4867241.3209, y: 8797258.2538 },\n { id: 6344, x: 4738327.4778, y: 8571161.1721 },\n { id: 35038, x: 4865984.8745, y: 8790216.5552 },\n { id: 71930, x: 4650853.5676, y: 8434645.8699 },\n { id: 35039, x: 4864154.138, y: 8784063.9111 },\n { id: 63733, x: 4726603.8008, y: 8436162.2984 },\n { id: 71932, x: 4647166.3022, y: 8426987.0416 },\n { id: 6352, x: 4732040.6552, y: 8564086.4672 },\n { id: 6353, x: 4731876.7793, y: 8575265.2697 },\n { id: 6354, x: 4731643.6968, y: 8575112.6423 },\n { id: 71939, x: 4641155.2526, y: 8421902.254 },\n { id: 71940, x: 4640669.9817, y: 8432103.3993 },\n { id: 71946, x: 4635192.6583, y: 8430973.3395 },\n { id: 39163, x: 4837497.3421, y: 8760366.161 },\n { id: 39164, x: 4836967.1064, y: 8753149.1954 },\n { id: 39166, x: 4835197.6263, y: 8748300.2076 },\n { id: 39175, x: 4827176.9044, y: 8757022.9771 },\n { id: 39176, x: 4826056.6073, y: 8749117.3519 },\n { id: 39178, x: 4823983.3587, y: 8744523.9511 },\n { id: 30985, x: 4595701.5117, y: 8605580.7663 },\n { id: 30988, x: 4594340.5281, y: 8618000.0166 },\n { id: 30992, x: 4591798.1989, y: 8610499.8959 },\n { id: 26893, x: 4693001.536, y: 8756675.808 },\n { id: 30993, x: 4591009.6026, y: 8623971.9801 },\n { id: 26897, x: 4689682.1886, y: 8754681.796 },\n { id: 30998, x: 4588809.8803, y: 8604608.9945 },\n { id: 26899, x: 4689417.9625, y: 8761365.7204 },\n { id: 30999, x: 4586976.0356, y: 8613378.2395 },\n { id: 26900, x: 4688068.4008, y: 8749452.8292 },\n { id: 31000, x: 4586623.8305, y: 8617793.2726 },\n { id: 31001, x: 4585961.9396, y: 8607960.9114 },\n { id: 31002, x: 4586365.1948, y: 8621660.0424 },\n { id: 31005, x: 4583090.5827, y: 8610802.7977 },\n { id: 26907, x: 4682582.9351, y: 8756943.293 },\n { id: 31007, x: 4581677.0663, y: 8615559.0453 },\n { id: 31008, x: 4581314.6485, y: 8606975.0676 },\n { id: 31009, x: 4581329.1999, y: 8621005.2291 },\n { id: 31011, x: 4579308.2236, y: 8608254.738 },\n { id: 31012, x: 4578890.2727, y: 8615361.0772 },\n { id: 26913, x: 4678561.9113, y: 8750158.6033 },\n { id: 31013, x: 4578613.6457, y: 8611729.4817 },\n { id: 26915, x: 4677806.2067, y: 8761659.962 },\n { id: 26917, x: 4676241.3309, y: 8758404.0113 },\n { id: 14655, x: 4741551.5913, y: 8615165.9176 },\n { id: 47456, x: 4806773.1388, y: 8819811.6651 },\n { id: 14664, x: 4734308.1353, y: 8616623.4236 },\n { id: 35162, x: 4879821.421, y: 8816555.0701 },\n { id: 47462, x: 4802312.6425, y: 8810552.402 },\n { id: 2373, x: 4817335.3331, y: 8547285.0913 },\n { id: 47463, x: 4801503.7111, y: 8821002.0054 },\n { id: 47465, x: 4800003.8921, y: 8813583.2285 },\n { id: 47467, x: 4798299.446, y: 8816665.2404 },\n { id: 35170, x: 4873349.8608, y: 8812792.5958 },\n { id: 35171, x: 4871768.0207, y: 8806551.4856 },\n { id: 47469, x: 4797770.9808, y: 8820014.7937 },\n { id: 35175, x: 4870631.6535, y: 8819580.7836 },\n { id: 2384, x: 4810381.6241, y: 8555654.1962 },\n { id: 47474, x: 4795105.836, y: 8809014.7135 },\n { id: 2385, x: 4808300.7637, y: 8545433.0614 },\n { id: 35181, x: 4865775.9304, y: 8805651.3718 },\n { id: 47479, x: 4790047.4814, y: 8814250.7737 },\n { id: 35184, x: 4863387.6612, y: 8813690.8719 },\n { id: 2392, x: 4802329.8173, y: 8541681.9336 },\n { id: 2394, x: 4801881.8716, y: 8550435.1716 },\n { id: 43395, x: 4800686.7787, y: 8665405.1762 },\n { id: 43396, x: 4799401.0606, y: 8672986.9703 },\n { id: 43400, x: 4795633.7521, y: 8681784.0691 },\n { id: 22909, x: 4731884.1136, y: 8793536.7642 },\n { id: 43406, x: 4790528.5297, y: 8671284.2149 },\n { id: 22911, x: 4731993.5592, y: 8805075.3284 },\n { id: 63903, x: 4761236.9764, y: 8463063.0012 },\n { id: 43408, x: 4788594.184, y: 8663040.3446 },\n { id: 63905, x: 4758706.5487, y: 8474423.598 },\n { id: 63907, x: 4758205.7861, y: 8469314.1555 },\n { id: 22918, x: 4721477.8137, y: 8791195.7029 },\n { id: 63909, x: 4756998.7574, y: 8460687.0951 },\n { id: 43414, x: 4785550.1452, y: 8669514.7968 },\n { id: 43415, x: 4784055.1658, y: 8677333.75 },\n { id: 22920, x: 4719707.5246, y: 8799580.6934 },\n { id: 63914, x: 4752312.1632, y: 8474841.659 },\n { id: 63915, x: 4751894.5229, y: 8466944.3121 },\n { id: 6529, x: 4736943.3559, y: 8552606.4242 },\n { id: 63918, x: 4749333.6176, y: 8464362.8074 },\n { id: 63919, x: 4748831.2394, y: 8477121.2519 },\n { id: 68019, x: 4725077.9423, y: 8474842.8164 },\n { id: 14733, x: 4749395.0666, y: 8641212.2487 },\n { id: 63922, x: 4746705.0737, y: 8467131.8614 },\n { id: 39329, x: 4839272.3569, y: 8774223.2429 },\n { id: 63924, x: 4744345.8868, y: 8473013.4973 },\n { id: 68026, x: 4721868.9323, y: 8467367.6128 },\n { id: 6541, x: 4726184.9739, y: 8544969.0408 },\n { id: 39338, x: 4832806.002, y: 8767723.1096 },\n { id: 68032, x: 4718517.7331, y: 8474330.4471 },\n { id: 68035, x: 4716539.827, y: 8460925.2617 },\n { id: 39346, x: 4829272.5085, y: 8776641.5153 },\n { id: 39347, x: 4827458.3226, y: 8764276.9034 },\n { id: 68042, x: 4710821.9528, y: 8472544.3246 },\n { id: 10665, x: 4818435.5861, y: 8437877.1612 },\n { id: 59854, x: 4614793.5368, y: 8596803.3278 },\n { id: 10666, x: 4817061.7693, y: 8430991.4867 },\n { id: 59855, x: 4614574.685, y: 8591477.2786 },\n { id: 59856, x: 4614836.3706, y: 8602636.3011 },\n { id: 10671, x: 4813606.7944, y: 8425281.3201 },\n { id: 59860, x: 4611261.1019, y: 8586838.2628 },\n { id: 59861, x: 4611135.7102, y: 8595771.9825 },\n { id: 59862, x: 4609144.3144, y: 8603861.7822 },\n { id: 14774, x: 4751533.405, y: 8654713.0376 },\n { id: 51666, x: 4720749.8057, y: 8569348.0414 },\n { id: 10676, x: 4810118.5132, y: 8430901.1778 },\n { id: 59865, x: 4607039.8216, y: 8590055.6404 },\n { id: 51667, x: 4718969.2207, y: 8564061.0322 },\n { id: 27073, x: 4691649.6754, y: 8775728.5417 },\n { id: 51668, x: 4718925.8246, y: 8579268.4075 },\n { id: 27074, x: 4689544.1505, y: 8769905.9186 },\n { id: 27075, x: 4690045.6636, y: 8787804.7184 },\n { id: 14778, x: 4747416.8728, y: 8646783.5705 },\n { id: 59868, x: 4605808.5559, y: 8598991.2867 },\n { id: 27076, x: 4689820.239, y: 8782807.0644 },\n { id: 59869, x: 4604311.3629, y: 8603491.7697 },\n { id: 10682, x: 4806896.2966, y: 8420121.126 },\n { id: 51674, x: 4713114.4715, y: 8571651.1196 },\n { id: 51675, x: 4712171.6641, y: 8563661.7228 },\n { id: 27081, x: 4685046.4937, y: 8774378.3225 },\n { id: 59874, x: 4600276.6473, y: 8585578.0206 },\n { id: 27083, x: 4684271.6838, y: 8770139.1829 },\n { id: 10687, x: 4803049.6182, y: 8430455.8945 },\n { id: 59876, x: 4598401.3991, y: 8595626.2939 },\n { id: 51678, x: 4710019.0454, y: 8580426.3786 },\n { id: 10688, x: 4802315.0362, y: 8438671.892 },\n { id: 51680, x: 4707568.2878, y: 8564567.2951 },\n { id: 31185, x: 4615541.0872, y: 8631282.4883 },\n { id: 72175, x: 4628880.708, y: 8414071.1363 },\n { id: 31186, x: 4614798.8661, y: 8624949.0979 },\n { id: 27088, x: 4679686.572, y: 8768793.7382 },\n { id: 10692, x: 4800711.4918, y: 8422377.1609 },\n { id: 27090, x: 4678249.6433, y: 8785162.6702 },\n { id: 31190, x: 4612008.9966, y: 8637885.037 },\n { id: 27091, x: 4677828.6568, y: 8775718.8963 },\n { id: 31193, x: 4609257.4499, y: 8645013.574 },\n { id: 31194, x: 4609046.5895, y: 8639962.438 },\n { id: 31195, x: 4608442.1643, y: 8631613.7924 },\n { id: 72186, x: 4648057.1282, y: 8416265.4079 },\n { id: 31197, x: 4605435.0224, y: 8642563.548 },\n { id: 72187, x: 4644400.3652, y: 8409754.6863 },\n { id: 31200, x: 4602302.5793, y: 8634278.6152 },\n { id: 72190, x: 4638873.7122, y: 8415881.6799 },\n { id: 72193, x: 4635791.5414, y: 8411359.8178 },\n { id: 31204, x: 4599358.1737, y: 8628397.466 },\n { id: 31207, x: 4597788.6379, y: 8636974.871 },\n { id: 55820, x: 4670068.2705, y: 8544615.7005 },\n { id: 55823, x: 4667227.4898, y: 8560632.4147 },\n { id: 55825, x: 4665026.2526, y: 8547811.3431 },\n { id: 55827, x: 4661961.7892, y: 8557316.2019 },\n { id: 55829, x: 4660295.0145, y: 8544377.7 },\n { id: 55830, x: 4659066.5285, y: 8549418.3317 },\n { id: 55832, x: 4656800.9338, y: 8561749.2555 },\n { id: 55836, x: 4652405.6561, y: 8556639.1223 },\n { id: 72249, x: 4608965.4002, y: 8412708.2453 },\n { id: 2570, x: 4835706.0778, y: 8580732.24 },\n { id: 2571, x: 4835614.2389, y: 8591058.9473 },\n { id: 47662, x: 4787801.955, y: 8817589.3724 },\n { id: 47665, x: 4785868.2097, y: 8811383.2574 },\n { id: 72259, x: 4590986.3092, y: 8416168.2804 },\n { id: 72261, x: 4579053.0406, y: 8411008.4203 },\n { id: 27173, x: 4674255.579, y: 8771167.8709 },\n { id: 2581, x: 4827702.752, y: 8589462.053 },\n { id: 2582, x: 4827035.0918, y: 8596034.8176 },\n { id: 47672, x: 4781371.6221, y: 8812844.0285 },\n { id: 27177, x: 4671746.9359, y: 8788771.4695 },\n { id: 35376, x: 4862088.8507, y: 8821371.7812 },\n { id: 27178, x: 4670031.3061, y: 8781367.205 },\n { id: 2584, x: 4825943.5973, y: 8582342.4067 },\n { id: 35377, x: 4861026.1607, y: 8803689.8809 },\n { id: 27179, x: 4668958.2542, y: 8773912.9275 },\n { id: 47675, x: 4778982.737, y: 8817587.2237 },\n { id: 27180, x: 4668555.0893, y: 8770419.3953 },\n { id: 47676, x: 4777307.3475, y: 8808685.8589 },\n { id: 35381, x: 4857468.475, y: 8807367.1449 },\n { id: 27186, x: 4665282.5743, y: 8778383.0094 },\n { id: 27187, x: 4663623.7599, y: 8787742.2743 },\n { id: 35387, x: 4853219.1143, y: 8815181.793 },\n { id: 2595, x: 4819373.413, y: 8595384.2011 },\n { id: 35389, x: 4851882.7006, y: 8821138.5973 },\n { id: 27192, x: 4657777.2249, y: 8782325.762 },\n { id: 35392, x: 4850838.3214, y: 8802682.1797 },\n { id: 35393, x: 4849241.3984, y: 8809163.1347 },\n { id: 39495, x: 4822217.8408, y: 8765141.106 },\n { id: 39498, x: 4820496.0962, y: 8773038.2766 },\n { id: 39506, x: 4813868.3067, y: 8771768.801 },\n { id: 39509, x: 4812382.6563, y: 8781018.2088 },\n { id: 39513, x: 4809559.5665, y: 8766110.317 },\n { id: 39515, x: 4807203.6199, y: 8774675.0915 },\n { id: 68210, x: 4722400.2516, y: 8494034.7756 },\n { id: 68214, x: 4718875.908, y: 8482599.0039 },\n { id: 43625, x: 4798635.6862, y: 8699245.7202 },\n { id: 43626, x: 4796457.5293, y: 8689704.7795 },\n { id: 68222, x: 4713041.3014, y: 8490328.298 },\n { id: 68223, x: 4713216.0002, y: 8479799.0819 },\n { id: 43632, x: 4792825.2092, y: 8698177.9857 },\n { id: 43634, x: 4790242.0148, y: 8684846.7896 },\n { id: 43635, x: 4790273.7646, y: 8692125.5384 },\n { id: 43639, x: 4786174.4233, y: 8694730.4956 },\n { id: 43641, x: 4785759.758, y: 8686277.0245 },\n { id: 27259, x: 4673441.1964, y: 8751827.3878 },\n { id: 27261, x: 4671221.1821, y: 8764798.0038 },\n { id: 27268, x: 4666368.3878, y: 8754183.4729 },\n { id: 27269, x: 4666320.4654, y: 8760713.4919 },\n { id: 27271, x: 4664846.7998, y: 8748345.4322 },\n { id: 23178, x: 4708499.7711, y: 8795097.0931 },\n { id: 23180, x: 4707064.4711, y: 8803804.8628 },\n { id: 23185, x: 4702312.2272, y: 8791030.0401 },\n { id: 23186, x: 4702204.5835, y: 8797157.395 },\n { id: 23188, x: 4700235.4611, y: 8804426.7544 },\n { id: 14992, x: 4740513.4711, y: 8661555.6661 },\n { id: 14995, x: 4737431.9778, y: 8650842.6949 },\n { id: 14996, x: 4737166.9429, y: 8644007.1564 },\n { id: 19099, x: 4708525.6651, y: 8639696.4409 },\n { id: 15002, x: 4733955.0103, y: 8662959.0059 },\n { id: 19103, x: 4707336.9464, y: 8626770.6569 },\n { id: 51897, x: 4707429.4496, y: 8572314.2894 },\n { id: 19106, x: 4705759.7974, y: 8634707.5888 },\n { id: 51899, x: 4706568.6075, y: 8576572.7277 },\n { id: 51900, x: 4705239.9254, y: 8580105.7737 },\n { id: 15009, x: 4728122.4392, y: 8654950.5844 },\n { id: 31406, x: 4613243.0894, y: 8648376.6567 },\n { id: 31407, x: 4612343.6927, y: 8658980.0622 },\n { id: 51904, x: 4702629.1244, y: 8567642.6068 },\n { id: 72399, x: 4608901.387, y: 8419586.3106 },\n { id: 19113, x: 4703626.5899, y: 8642586.8441 },\n { id: 72400, x: 4608574.6662, y: 8425546.3083 },\n { id: 31411, x: 4607954.1946, y: 8650798.7004 },\n { id: 51907, x: 4700776.6733, y: 8574427.3691 },\n { id: 31412, x: 4607551.9321, y: 8654776.8983 },\n { id: 19116, x: 4701342.437, y: 8629643.8666 },\n { id: 72403, x: 4602932.8454, y: 8432341.2121 },\n { id: 19117, x: 4700975.1384, y: 8637628.1757 },\n { id: 51910, x: 4699543.9794, y: 8578055.1143 },\n { id: 31415, x: 4606326.4558, y: 8665184.6353 },\n { id: 72405, x: 4601535.5588, y: 8425975.3331 },\n { id: 72406, x: 4601359.1106, y: 8418821.0459 },\n { id: 31417, x: 4603444.6002, y: 8647685.1804 },\n { id: 19120, x: 4697558.1507, y: 8642270.9476 },\n { id: 31418, x: 4603182.9962, y: 8654995.9209 },\n { id: 19121, x: 4695790.3377, y: 8625606.25 },\n { id: 10923, x: 4835656.3617, y: 8463421.5505 },\n { id: 51914, x: 4695168.309, y: 8571983.591 },\n { id: 19122, x: 4696022.8113, y: 8633862.4371 },\n { id: 72409, x: 4597227.1671, y: 8432370.8309 },\n { id: 51915, x: 4693670.6501, y: 8577344.6725 },\n { id: 31420, x: 4602884.6745, y: 8659135.9729 },\n { id: 19124, x: 4693541.72, y: 8629515.2552 },\n { id: 10927, x: 4832417.601, y: 8467031.5507 },\n { id: 31423, x: 4599012.9388, y: 8664496.7798 },\n { id: 19126, x: 4692391.5954, y: 8641102.2007 },\n { id: 64218, x: 4761727.5752, y: 8487483.6102 },\n { id: 10932, x: 4828991.4326, y: 8475767.4888 },\n { id: 64221, x: 4759533.1011, y: 8495053.5308 },\n { id: 64223, x: 4756605.0948, y: 8483998.2928 },\n { id: 10939, x: 4826260.5025, y: 8460618.4229 },\n { id: 10940, x: 4825086.6567, y: 8471522.1933 },\n { id: 64228, x: 4751079.3309, y: 8499319.5716 },\n { id: 35535, x: 4858837.003, y: 8798071.9723 },\n { id: 35538, x: 4857069.4639, y: 8787374.8384 },\n { id: 64235, x: 4746796.7817, y: 8489423.412 },\n { id: 10948, x: 4818835.2402, y: 8468657.8629 },\n { id: 35548, x: 4850344.0444, y: 8785494.4863 },\n { id: 6856, x: 4761139.7466, y: 8590985.8702 },\n { id: 6857, x: 4759752.3485, y: 8598636.1705 },\n { id: 6858, x: 4758852.0719, y: 8584975.7751 },\n { id: 35552, x: 4847393.6557, y: 8792939.2503 },\n { id: 6870, x: 4747714.5078, y: 8595338.4477 },\n { id: 6871, x: 4746039.2078, y: 8587730.2744 },\n { id: 60162, x: 4595740.7057, y: 8589610.0233 },\n { id: 60166, x: 4593559.6854, y: 8601922.1805 },\n { id: 60168, x: 4591311.7003, y: 8585462.8725 },\n { id: 60170, x: 4588626.0194, y: 8589949.6782 },\n { id: 60172, x: 4586073.1763, y: 8594473.6887 },\n { id: 60176, x: 4582102.3003, y: 8588571.9608 },\n { id: 47882, x: 4785262.0317, y: 8787751.0468 },\n { id: 47883, x: 4785400.7663, y: 8803732.4589 },\n { id: 47884, x: 4783567.6371, y: 8798427.538 },\n { id: 47886, x: 4781356.2178, y: 8791652.7738 },\n { id: 47892, x: 4776445.8534, y: 8795727.9066 },\n { id: 2804, x: 4818412.18, y: 8589214.5203 },\n { id: 47894, x: 4774126.8905, y: 8804544.2741 },\n { id: 2805, x: 4816952.0393, y: 8581814.9397 },\n { id: 60192, x: 4575574.564, y: 8599097.8826 },\n { id: 47896, x: 4770078.1182, y: 8790876.6649 },\n { id: 39703, x: 4820420.5115, y: 8759175.4338 },\n { id: 2812, x: 4813534.4014, y: 8599498.1614 },\n { id: 2813, x: 4811801.8901, y: 8587137.0872 },\n { id: 2814, x: 4811985.0478, y: 8593630.4406 },\n { id: 39707, x: 4817251.4098, y: 8750013.5303 },\n { id: 39709, x: 4815423.6392, y: 8758421.6822 },\n { id: 56107, x: 4686504.0564, y: 8589862.5587 },\n { id: 56108, x: 4683233.4111, y: 8587145.5436 },\n { id: 56109, x: 4683420.7502, y: 8596395.5158 },\n { id: 2822, x: 4806267.7872, y: 8583081.1082 },\n { id: 56111, x: 4679830.9596, y: 8599048.0454 },\n { id: 56112, x: 4677675.8049, y: 8583479.3615 },\n { id: 39717, x: 4808906.0549, y: 8747061.1563 },\n { id: 56114, x: 4677712.2721, y: 8594590.6844 },\n { id: 2828, x: 4801975.6031, y: 8590784.9479 },\n { id: 39720, x: 4806714.3142, y: 8754497.9134 },\n { id: 27423, x: 4694765.6575, y: 8799769.7578 },\n { id: 39721, x: 4805397.8588, y: 8747260.2165 },\n { id: 56118, x: 4672861.267, y: 8593205.7387 },\n { id: 27425, x: 4693730.269, y: 8791468.9142 },\n { id: 27426, x: 4693878.8943, y: 8805003.6263 },\n { id: 56121, x: 4671042.8416, y: 8598372.3761 },\n { id: 31527, x: 4597492.0651, y: 8652560.0046 },\n { id: 31528, x: 4595753.3567, y: 8657898.8097 },\n { id: 31530, x: 4593868.8598, y: 8664530.9799 },\n { id: 27432, x: 4688868.0075, y: 8802876.2647 },\n { id: 31533, x: 4589095.6291, y: 8656116.3976 },\n { id: 27434, x: 4687697.6279, y: 8798191.8161 },\n { id: 27435, x: 4686169.3544, y: 8794562.3867 },\n { id: 27439, x: 4684256.4194, y: 8808937.2207 },\n { id: 27440, x: 4681795.4624, y: 8790633.1577 },\n { id: 31540, x: 4585878.746, y: 8648667.1466 },\n { id: 60235, x: 4765650.7239, y: 8416121.7521 },\n { id: 31542, x: 4584579.3239, y: 8652908.5421 },\n { id: 27443, x: 4680063.4724, y: 8802801.3462 },\n { id: 60236, x: 4765428.4296, y: 8407857.8713 },\n { id: 31544, x: 4583540.0974, y: 8666970.2477 },\n { id: 27448, x: 4676928.9424, y: 8790959.9156 },\n { id: 31548, x: 4579746.1034, y: 8648782.9711 },\n { id: 27449, x: 4676878.2276, y: 8797773.7668 },\n { id: 31549, x: 4579977.5523, y: 8657440.8969 },\n { id: 35653, x: 4854469.6736, y: 8850001.8137 },\n { id: 35654, x: 4853544.7512, y: 8843279.5405 },\n { id: 35658, x: 4852697.039, y: 8862113.1131 },\n { id: 15163, x: 4744231.6652, y: 8630246.732 },\n { id: 35660, x: 4850869.3589, y: 8856931.6452 },\n { id: 35663, x: 4848245.8707, y: 8845581.0938 },\n { id: 6972, x: 4738565.0575, y: 8595089.2682 },\n { id: 35666, x: 4847354.8688, y: 8850651.7104 },\n { id: 6973, x: 4737829.0661, y: 8583487.3164 },\n { id: 68459, x: 4706752.1211, y: 8479544.181 },\n { id: 68461, x: 4703837.6894, y: 8495464.9706 },\n { id: 15174, x: 4736133.8596, y: 8630921.6152 },\n { id: 68463, x: 4702696.0291, y: 8488421.9726 },\n { id: 6978, x: 4732042.6549, y: 8589518.4615 },\n { id: 15179, x: 4732346.7264, y: 8627234.1449 },\n { id: 15182, x: 4729742.0512, y: 8641197.8439 },\n { id: 68470, x: 4695758.7472, y: 8480621.6991 },\n { id: 68472, x: 4694241.0284, y: 8493967.8704 },\n { id: 43880, x: 4778815.1556, y: 8691707.7044 },\n { id: 43881, x: 4777547.7437, y: 8700077.7035 },\n { id: 43882, x: 4775723.0165, y: 8687250.2345 },\n { id: 68478, x: 4689194.7286, y: 8494338.1466 },\n { id: 68480, x: 4689426.5029, y: 8480560.5398 },\n { id: 43886, x: 4773419.5373, y: 8700805.4379 },\n { id: 43888, x: 4772380.7778, y: 8695990.7745 },\n { id: 43894, x: 4767194.13, y: 8691046.7612 },\n { id: 47997, x: 4807574.2241, y: 8829116.1499 },\n { id: 48000, x: 4802912.5591, y: 8825255.7631 },\n { id: 48002, x: 4799989.5738, y: 8825065.5745 },\n { id: 64403, x: 4742030.7656, y: 8497708.6697 },\n { id: 64405, x: 4740579.658, y: 8482431.4457 },\n { id: 72603, x: 4613648.9944, y: 8444678.2684 },\n { id: 72604, x: 4612885.1503, y: 8453769.9729 },\n { id: 64407, x: 4738551.2609, y: 8491580.5467 },\n { id: 72606, x: 4612392.8084, y: 8438159.2152 },\n { id: 64409, x: 4735621.3885, y: 8498088.7535 },\n { id: 64411, x: 4734471.9654, y: 8485198.8911 },\n { id: 72611, x: 4605033.6819, y: 8454833.2151 },\n { id: 64414, x: 4731342.7414, y: 8491779.8149 },\n { id: 72612, x: 4604199.225, y: 8439683.1904 },\n { id: 64416, x: 4729221.6532, y: 8498128.6431 },\n { id: 60317, x: 4764946.3837, y: 8443760.0447 },\n { id: 60319, x: 4764108.3496, y: 8454245.8981 },\n { id: 72616, x: 4598363.8559, y: 8447433.7833 },\n { id: 64419, x: 4727143.8343, y: 8487353.8224 },\n { id: 60320, x: 4763899.8742, y: 8448541.4778 },\n { id: 7042, x: 4869136.0719, y: 8372279.0901 },\n { id: 7043, x: 4867600.6086, y: 8379079.3827 },\n { id: 15242, x: 4752763.7365, y: 8682501.1131 },\n { id: 15243, x: 4751688.2291, y: 8676647.5907 },\n { id: 15245, x: 4750972.3237, y: 8666550.541 },\n { id: 7049, x: 4859289.1182, y: 8375739.8279 },\n { id: 39844, x: 4839437.3266, y: 8785450.7633 },\n { id: 39847, x: 4837718.1482, y: 8796932.3609 },\n { id: 52151, x: 4706846.4699, y: 8553474.5612 },\n { id: 39855, x: 4831415.0865, y: 8785681.4838 },\n { id: 11163, x: 4834123.3917, y: 8490010.6927 },\n { id: 52154, x: 4705771.7823, y: 8546060.8707 },\n { id: 39857, x: 4829914.1636, y: 8792647.9854 },\n { id: 11164, x: 4833657.3771, y: 8496207.1451 },\n { id: 52156, x: 4702962.3033, y: 8550300.5151 },\n { id: 11166, x: 4831443.4578, y: 8481074.6925 },\n { id: 52158, x: 4701480.9781, y: 8560093.902 },\n { id: 52159, x: 4700402.8225, y: 8555009.6054 },\n { id: 52161, x: 4698900.0089, y: 8545588.6663 },\n { id: 39864, x: 4825586.8119, y: 8783659.702 },\n { id: 39865, x: 4825884.4138, y: 8793047.1113 },\n { id: 11173, x: 4825850.6167, y: 8490570.9832 },\n { id: 52164, x: 4695404.9902, y: 8552480.4248 },\n { id: 52165, x: 4692588.0839, y: 8560612.7064 },\n { id: 11175, x: 4825424.0788, y: 8480229.1682 },\n { id: 52167, x: 4690381.4951, y: 8541920.2064 },\n { id: 11177, x: 4822709.5306, y: 8499648.2397 },\n { id: 11181, x: 4820726.3692, y: 8490768.8062 },\n { id: 27584, x: 4692832.9013, y: 8810089.9267 },\n { id: 27586, x: 4681955.2163, y: 8812173.7719 },\n { id: 19388, x: 4726909.1125, y: 8674821.5799 },\n { id: 15289, x: 4749944.2986, y: 8697397.0685 },\n { id: 19389, x: 4726243.6867, y: 8668883.2374 },\n { id: 27590, x: 4678034.0936, y: 8818400.5657 },\n { id: 60383, x: 4765782.1672, y: 8431711.9188 },\n { id: 19394, x: 4723665.6478, y: 8666431.2341 },\n { id: 19395, x: 4721793.777, y: 8681956.369 },\n { id: 60386, x: 4764940.3026, y: 8425561.9132 },\n { id: 19396, x: 4721119.5059, y: 8677429.8344 },\n { id: 60387, x: 4763396.2482, y: 8436289.9447 },\n { id: 19397, x: 4719467.3987, y: 8672194.9811 },\n { id: 19401, x: 4716500.8699, y: 8681072.1674 },\n { id: 19406, x: 4712366.6321, y: 8669109.4021 },\n { id: 35804, x: 4859657.7761, y: 8831373.2947 },\n { id: 19408, x: 4711717.1985, y: 8684483.0018 },\n { id: 23508, x: 4688815.5424, y: 8604920.3124 },\n { id: 19409, x: 4710848.8761, y: 8676077.4084 },\n { id: 23509, x: 4688730.084, y: 8613963.2096 },\n { id: 35808, x: 4856748.4547, y: 8824716.7837 },\n { id: 23512, x: 4683894.9269, y: 8605720.8035 },\n { id: 7118, x: 4856450.6469, y: 8369116.9962 },\n { id: 23515, x: 4683492.1749, y: 8618643.8561 },\n { id: 35814, x: 4853595.5175, y: 8833546.128 },\n { id: 35815, x: 4853041.4617, y: 8827324.7212 },\n { id: 35816, x: 4852428.1918, y: 8837775.1246 },\n { id: 7123, x: 4849642.6315, y: 8377692.0447 },\n { id: 23520, x: 4679396.8559, y: 8622680.9151 },\n { id: 23522, x: 4677413.3464, y: 8613408.0154 },\n { id: 7126, x: 4843736.5447, y: 8371552.3041 },\n { id: 7127, x: 4843246.2565, y: 8376727.2153 },\n { id: 23524, x: 4675137.972, y: 8606051.7149 },\n { id: 60420, x: 4763833.936, y: 8492819.2274 },\n { id: 35826, x: 4846754.1962, y: 8826536.7963 },\n { id: 31743, x: 4596927.1834, y: 8633258.2923 },\n { id: 31744, x: 4597100.2843, y: 8645284.2803 },\n { id: 31745, x: 4595812.3449, y: 8639440.353 },\n { id: 31746, x: 4595294.8531, y: 8627891.2083 },\n { id: 60440, x: 4765694.366, y: 8466018.6087 },\n { id: 60441, x: 4765257.6061, y: 8476583.7424 },\n { id: 60442, x: 4764315.006, y: 8470944.7399 },\n { id: 31755, x: 4590602.4788, y: 8638367.103 },\n { id: 31756, x: 4588932.9547, y: 8633131.0268 },\n { id: 31759, x: 4587315.051, y: 8643933.7218 },\n { id: 31760, x: 4586612.6471, y: 8637140.5711 },\n { id: 31761, x: 4584221.96, y: 8629621.2427 },\n { id: 31763, x: 4582978.1498, y: 8626897.8609 },\n { id: 44061, x: 4780079.2968, y: 8666955.1583 },\n { id: 31764, x: 4583182.3512, y: 8633916.652 },\n { id: 31766, x: 4580809.5462, y: 8637785.6486 },\n { id: 31767, x: 4580607.1591, y: 8643595.4886 },\n { id: 44067, x: 4775290.8016, y: 8673313.6129 },\n { id: 44068, x: 4774097.2153, y: 8679796.5753 },\n { id: 60467, x: 4744625.9125, y: 8372783.5654 },\n { id: 44071, x: 4772301.7212, y: 8665078.1019 },\n { id: 44072, x: 4770191.1134, y: 8676990.2348 },\n { id: 60469, x: 4738122.9668, y: 8375406.6451 },\n { id: 35876, x: 4851169.1398, y: 8868381.0129 },\n { id: 60471, x: 4727947.5968, y: 8375198.8891 },\n { id: 44075, x: 4768376.5373, y: 8670934.9226 },\n { id: 72791, x: 4591925.1916, y: 8449605.7573 },\n { id: 72792, x: 4591793.1543, y: 8438140.4167 },\n { id: 72794, x: 4589025.1829, y: 8455434.7022 },\n { id: 72798, x: 4586037.5016, y: 8440874.8779 },\n { id: 48218, x: 4758414.2609, y: 8624023.5748 },\n { id: 48221, x: 4756360.7643, y: 8637284.5155 },\n { id: 48223, x: 4753919.8326, y: 8630222.0155 },\n { id: 52328, x: 4725882.023, y: 8595553.6236 },\n { id: 27736, x: 4676001.9097, y: 8811581.6751 },\n { id: 52331, x: 4722826.1911, y: 8583530.9955 },\n { id: 60530, x: 4750986.5686, y: 8397259.2529 },\n { id: 27739, x: 4673117.2356, y: 8812630.5239 },\n { id: 60532, x: 4750162.2444, y: 8389034.5346 },\n { id: 27741, x: 4671314.8466, y: 8818291.3551 },\n { id: 60534, x: 4748590.9949, y: 8383700.8132 },\n { id: 52336, x: 4719875.2208, y: 8591045.4587 },\n { id: 27742, x: 4670567.4956, y: 8826494.0412 },\n { id: 68733, x: 4705360.5856, y: 8461230.8615 },\n { id: 52337, x: 4719618.2802, y: 8595101.4092 },\n { id: 68735, x: 4702569.3706, y: 8471563.3328 },\n { id: 60539, x: 4746253.9861, y: 8394651.3917 },\n { id: 52341, x: 4715325.3592, y: 8592250.7333 },\n { id: 52342, x: 4714428.9466, y: 8584577.1198 },\n { id: 68739, x: 4697802.8899, y: 8475436.6682 },\n { id: 52343, x: 4713210.1265, y: 8598476.9862 },\n { id: 68741, x: 4695447.3779, y: 8466672.4476 },\n { id: 27752, x: 4664076.2759, y: 8830501.3366 },\n { id: 52347, x: 4709102.3921, y: 8587048.2455 },\n { id: 27753, x: 4663516.5567, y: 8817044.3187 },\n { id: 52348, x: 4708798.7722, y: 8594842.6087 },\n { id: 27754, x: 4662780.5586, y: 8823337.4465 },\n { id: 68747, x: 4690426.6179, y: 8461563.4656 },\n { id: 27758, x: 4659700.2201, y: 8811418.4152 },\n { id: 27759, x: 4658886.4446, y: 8818671.3326 },\n { id: 31887, x: 4614189.6969, y: 8673881.1995 },\n { id: 3194, x: 4796377.8389, y: 8507034.7352 },\n { id: 31888, x: 4611681.8273, y: 8666843.0356 },\n { id: 31889, x: 4611259.6497, y: 8671337.2656 },\n { id: 3197, x: 4795308.2329, y: 8517107.3102 },\n { id: 56485, x: 4666457.4214, y: 8587621.5212 },\n { id: 31891, x: 4610388.1676, y: 8679474.6713 },\n { id: 56486, x: 4665135.1186, y: 8599677.5428 },\n { id: 3199, x: 4792215.0375, y: 8502152.8846 },\n { id: 56487, x: 4663634.3371, y: 8593501.524 },\n { id: 3200, x: 4792253.5527, y: 8497106.506 },\n { id: 3201, x: 4789593.2991, y: 8505095.2996 },\n { id: 31895, x: 4604041.7899, y: 8671870.8398 },\n { id: 3202, x: 4789089.536, y: 8511638.638 },\n { id: 31896, x: 4603803.7559, y: 8677201.6758 },\n { id: 3203, x: 4789180.9244, y: 8519795.5757 },\n { id: 56491, x: 4659202.6072, y: 8599379.7088 },\n { id: 56492, x: 4657487.8943, y: 8593020.2995 },\n { id: 3205, x: 4787563.1309, y: 8506555.5119 },\n { id: 56493, x: 4656071.9213, y: 8585040.3136 },\n { id: 31899, x: 4600408.1047, y: 8681647.1122 },\n { id: 31900, x: 4598550.4189, y: 8672344.185 },\n { id: 3207, x: 4786008.1231, y: 8500307.1807 },\n { id: 68792, x: 4680504.3747, y: 8371305.0802 },\n { id: 56495, x: 4652574.2311, y: 8584474.8142 },\n { id: 31901, x: 4596677.8856, y: 8678413.9659 },\n { id: 56497, x: 4652885.673, y: 8599898.5541 },\n { id: 3211, x: 4782275.6341, y: 8508733.3417 },\n { id: 31905, x: 4592082.7002, y: 8681966.4712 },\n { id: 3212, x: 4782075.0425, y: 8520294.164 },\n { id: 31906, x: 4590536.1233, y: 8674077.6575 },\n { id: 31911, x: 4582902.6309, y: 8674031.6731 },\n { id: 15518, x: 4746190.5066, y: 8686690.3756 },\n { id: 15524, x: 4741600.9817, y: 8698643.4161 },\n { id: 7327, x: 4873123.0162, y: 8389885.6094 },\n { id: 15527, x: 4737367.3066, y: 8690208.3799 },\n { id: 48321, x: 4761588.5201, y: 8652039.7496 },\n { id: 7331, x: 4869455.8762, y: 8395269.8847 },\n { id: 36025, x: 4830611.1119, y: 8605790.2567 },\n { id: 48323, x: 4760901.9216, y: 8645149.2803 },\n { id: 36027, x: 4830099.2068, y: 8617334.3729 },\n { id: 15533, x: 4733460.7976, y: 8699916.7346 },\n { id: 7335, x: 4867043.2533, y: 8386394.3218 },\n { id: 48329, x: 4754563.8496, y: 8649394.6757 },\n { id: 15537, x: 4729877.9826, y: 8685939.0275 },\n { id: 36033, x: 4826829.2716, y: 8610275.1266 },\n { id: 36035, x: 4824186.5383, y: 8601651.2998 },\n { id: 7342, x: 4860205.6182, y: 8395111.5186 },\n { id: 7343, x: 4859548.459, y: 8383959.9344 },\n { id: 36040, x: 4821386.381, y: 8611210.526 },\n { id: 11452, x: 4817244.0232, y: 8483175.3476 },\n { id: 11453, x: 4816123.836, y: 8496535.8263 },\n { id: 11458, x: 4811968.3832, y: 8486156.7447 },\n { id: 11466, x: 4805975.9145, y: 8495739.3638 },\n { id: 11472, x: 4801483.916, y: 8487135.1927 },\n { id: 31968, x: 4575546.118, y: 8619869.4438 },\n { id: 31969, x: 4573847.5049, y: 8604854.7815 },\n { id: 31970, x: 4574136.2295, y: 8615799.4428 },\n { id: 31971, x: 4573697.7461, y: 8623482.7465 },\n { id: 31978, x: 4567637.6508, y: 8608101.4653 },\n { id: 23792, x: 4670913.2338, y: 8610923.3377 },\n { id: 23794, x: 4671011.5666, y: 8620370.6256 },\n { id: 23796, x: 4668255.2145, y: 8607629.661 },\n { id: 23798, x: 4666622.7972, y: 8616809.0364 },\n { id: 23800, x: 4664738.7201, y: 8621713.8846 },\n { id: 31999, x: 4577426.7503, y: 8630741.615 },\n { id: 32000, x: 4577403.0152, y: 8646065.2668 },\n { id: 23803, x: 4662144.0923, y: 8605856.9841 },\n { id: 23805, x: 4661113.3981, y: 8616409.2534 },\n { id: 32006, x: 4578053.7313, y: 8663224.2653 },\n { id: 23809, x: 4659139.0486, y: 8622235.6372 },\n { id: 32009, x: 4837940.0445, y: 8600323.9616 },\n { id: 48406, x: 4762991.7962, y: 8664680.4528 },\n { id: 23812, x: 4656831.016, y: 8605713.7999 },\n { id: 48409, x: 4760585.1907, y: 8679912.6452 },\n { id: 48412, x: 4757617.7666, y: 8670279.402 },\n { id: 56611, x: 4648154.5328, y: 8504774.1446 },\n { id: 56613, x: 4647217.7871, y: 8518490.6375 },\n { id: 40220, x: 4843364.1868, y: 8817706.5045 },\n { id: 56618, x: 4640174.6149, y: 8501891.1134 },\n { id: 27925, x: 4676729.5736, y: 8803872.1792 },\n { id: 56619, x: 4640213.2543, y: 8512064.7463 },\n { id: 40224, x: 4840859.4693, y: 8805733.1725 },\n { id: 73019, x: 4594701.2556, y: 8421914.138 },\n { id: 27931, x: 4671625.176, y: 8798794.2099 },\n { id: 27934, x: 4668853.0473, y: 8804952.9833 },\n { id: 27936, x: 4667805.6151, y: 8794824.3031 },\n { id: 40234, x: 4836328.4724, y: 8816980.7769 },\n { id: 27937, x: 4666808.1934, y: 8809325.7745 },\n { id: 27938, x: 4666453.565, y: 8801235.1198 },\n { id: 73027, x: 4585847.2851, y: 8421326.9022 },\n { id: 40237, x: 4833130.0678, y: 8811569.2169 },\n { id: 73029, x: 4585160.2204, y: 8429895.7366 },\n { id: 40239, x: 4832441.1462, y: 8805004.3998 },\n { id: 40241, x: 4829910.0666, y: 8819341.5242 },\n { id: 27944, x: 4663202.2178, y: 8807955.2018 },\n { id: 27946, x: 4661657.6902, y: 8795577.6605 },\n { id: 73036, x: 4579754.3815, y: 8423667.7304 },\n { id: 40247, x: 4826012.8819, y: 8804194.5579 },\n { id: 27952, x: 4658515.3525, y: 8793126.7642 },\n { id: 64851, x: 4741716.6096, y: 8461902.7123 },\n { id: 64853, x: 4740127.3156, y: 8466288.1405 },\n { id: 64857, x: 4737235.5465, y: 8478860.184 },\n { id: 64858, x: 4735924.9475, y: 8469035.082 },\n { id: 64860, x: 4734286.8368, y: 8460009.608 },\n { id: 3375, x: 4795444.5359, y: 8536419.9356 },\n { id: 3376, x: 4794714.7384, y: 8521728.6605 },\n { id: 3377, x: 4794180.2614, y: 8529790.5032 },\n { id: 36171, x: 4818331.874, y: 8605689.7089 },\n { id: 64865, x: 4731072.1921, y: 8463740.0196 },\n { id: 3386, x: 4786554.0049, y: 8528314.3789 },\n { id: 64872, x: 4727826.1914, y: 8469969.9573 },\n { id: 52575, x: 4703652.8696, y: 8595037.5817 },\n { id: 48476, x: 4765604.5018, y: 8698859.6765 },\n { id: 36179, x: 4813969.7314, y: 8618226.0384 },\n { id: 52576, x: 4701945.3746, y: 8586606.0965 },\n { id: 3388, x: 4785777.9134, y: 8538481.3497 },\n { id: 64874, x: 4726014.6408, y: 8461351.0108 },\n { id: 52577, x: 4701522.6886, y: 8600274.8689 },\n { id: 52578, x: 4701102.2585, y: 8592147.1851 },\n { id: 36183, x: 4810562.0363, y: 8613714.7113 },\n { id: 3391, x: 4782442.9439, y: 8528448.9891 },\n { id: 48481, x: 4760422.094, y: 8684536.0725 },\n { id: 48482, x: 4759315.429, y: 8694760.1308 },\n { id: 52582, x: 4697019.3516, y: 8596997.3808 },\n { id: 52583, x: 4696676.7185, y: 8590982.4972 },\n { id: 48484, x: 4757801.0651, y: 8701155.3325 },\n { id: 52586, x: 4692720.077, y: 8586548.3271 },\n { id: 36190, x: 4806981.3301, y: 8603457.3927 },\n { id: 60785, x: 4761067.0281, y: 8410670.9625 },\n { id: 52587, x: 4692253.8793, y: 8597031.6144 },\n { id: 48488, x: 4753477.0263, y: 8688466.8415 },\n { id: 36191, x: 4805342.3825, y: 8613177.836 },\n { id: 60786, x: 4761109.7437, y: 8403677.2475 },\n { id: 52589, x: 4690669.3258, y: 8592568.1231 },\n { id: 64887, x: 4715720.0197, y: 8371962.6068 },\n { id: 60789, x: 4757523.2575, y: 8415241.0775 },\n { id: 60792, x: 4755389.1364, y: 8409111.6643 },\n { id: 60794, x: 4754402.1323, y: 8403993.0382 },\n { id: 64894, x: 4693749.7214, y: 8373677.1458 },\n { id: 60796, x: 4752980.8739, y: 8418226.8654 },\n { id: 60802, x: 4750482.9355, y: 8407290.783 },\n { id: 60803, x: 4749798.7104, y: 8412863.2964 },\n { id: 19814, x: 4727558.6558, y: 8689285.3555 },\n { id: 19817, x: 4727309.1134, y: 8697859.8887 },\n { id: 60809, x: 4746134.7139, y: 8404222.1864 },\n { id: 60810, x: 4745422.7565, y: 8412750.9143 },\n { id: 19822, x: 4722893.3752, y: 8696528.6861 },\n { id: 19823, x: 4722325.1005, y: 8688459.1518 },\n { id: 19824, x: 4722441.3829, y: 8704020.7356 },\n { id: 19826, x: 4719918.8513, y: 8694576.3525 },\n { id: 19830, x: 4718093.3452, y: 8690455.5176 },\n { id: 19831, x: 4715895.4889, y: 8697141.5507 },\n { id: 19832, x: 4715578.5783, y: 8703451.63 },\n { id: 19834, x: 4713430.881, y: 8690986.0307 },\n { id: 7575, x: 4873679.0009, y: 8410503.5609 },\n { id: 7576, x: 4872942.1601, y: 8399910.658 },\n { id: 7577, x: 4872137.7396, y: 8403890.1801 },\n { id: 56770, x: 4649888.398, y: 8527898.8645 },\n { id: 7583, x: 4865210.1547, y: 8399669.1141 },\n { id: 56772, x: 4647334.3463, y: 8531325.305 },\n { id: 56773, x: 4646507.4002, y: 8523241.7574 },\n { id: 15783, x: 4745320.1421, y: 8680854.1997 },\n { id: 56775, x: 4643101.7436, y: 8540950.2451 },\n { id: 15785, x: 4744072.2123, y: 8673447.1206 },\n { id: 7588, x: 4858284.6377, y: 8402214.1992 },\n { id: 48579, x: 4760299.9148, y: 8709847.45 },\n { id: 15787, x: 4739646.2859, y: 8669602.0901 },\n { id: 7589, x: 4856256.0735, y: 8407306.3423 },\n { id: 56778, x: 4641500.5531, y: 8527502.3165 },\n { id: 48580, x: 4759122.1844, y: 8721796.0294 },\n { id: 11689, x: 4817226.6415, y: 8475990.5123 },\n { id: 56779, x: 4639034.6923, y: 8520904.9731 },\n { id: 44482, x: 4801811.3283, y: 8708254.6294 },\n { id: 15789, x: 4739505.0165, y: 8679465.5806 },\n { id: 56782, x: 4638548.5154, y: 8532764.605 },\n { id: 56783, x: 4636684.1039, y: 8525742.2908 },\n { id: 48585, x: 4754824.7209, y: 8719146.5161 },\n { id: 56784, x: 4635848.5912, y: 8529258.649 },\n { id: 44488, x: 4796929.1039, y: 8714796.6656 },\n { id: 11696, x: 4812387.5717, y: 8463886.4578 },\n { id: 56786, x: 4633454.6353, y: 8531828.4351 },\n { id: 15796, x: 4733901.7586, y: 8683774.1118 },\n { id: 44490, x: 4795694.5361, y: 8706960.9931 },\n { id: 11698, x: 4811082.4076, y: 8476158.0403 },\n { id: 73184, x: 4614514.6816, y: 8476732.378 },\n { id: 15800, x: 4731153.6405, y: 8675491.2872 },\n { id: 11703, x: 4807457.7826, y: 8469370.8531 },\n { id: 44496, x: 4791136.9196, y: 8718866.7709 },\n { id: 73189, x: 4605376.4159, y: 8478083.487 },\n { id: 44497, x: 4790544.8026, y: 8711893.2078 },\n { id: 73191, x: 4605082.6871, y: 8469415.8977 },\n { id: 44500, x: 4787199.3746, y: 8704804.0407 },\n { id: 40401, x: 4823345.3291, y: 8812346.528 },\n { id: 11708, x: 4803451.3988, y: 8479204.0031 },\n { id: 73193, x: 4604113.4972, y: 8467805.4635 },\n { id: 11712, x: 4801082.6176, y: 8460707.3917 },\n { id: 40406, x: 4819688.5988, y: 8822422.4246 },\n { id: 11714, x: 4800085.4634, y: 8467528.1728 },\n { id: 40408, x: 4818321.324, y: 8816048.6315 },\n { id: 73200, x: 4598402.8008, y: 8461398.2417 },\n { id: 73201, x: 4597482.1084, y: 8470944.6292 },\n { id: 40411, x: 4816565.3904, y: 8808219.1682 },\n { id: 40416, x: 4813551.7908, y: 8822023.0257 },\n { id: 69112, x: 4688857.544, y: 8395070.7402 },\n { id: 40419, x: 4810892.9995, y: 8817631.5099 },\n { id: 40421, x: 4810046.9979, y: 8805052.4951 },\n { id: 69115, x: 4688408.9935, y: 8379522.9991 },\n { id: 40425, x: 4808148.0858, y: 8808611.849 },\n { id: 69119, x: 4684986.5962, y: 8382208.5119 },\n { id: 69122, x: 4679410.9219, y: 8389284.1266 },\n { id: 15839, x: 4750943.417, y: 8704978.6468 },\n { id: 69127, x: 4675163.8289, y: 8383339.2259 },\n { id: 15844, x: 4747965.4799, y: 8722958.2503 },\n { id: 65047, x: 4726479.4883, y: 8381375.1622 },\n { id: 65048, x: 4724994.3561, y: 8393417.477 },\n { id: 11766, x: 4797665.9077, y: 8411855.2864 },\n { id: 65054, x: 4720086.3147, y: 8396658.8012 },\n { id: 11767, x: 4797304.644, y: 8405856.3708 },\n { id: 65055, x: 4719794.4661, y: 8379165.2324 },\n { id: 48659, x: 4764851.0833, y: 8736077.4997 },\n { id: 11769, x: 4795247.9026, y: 8417563.3143 },\n { id: 65059, x: 4717280.6231, y: 8386025.9653 },\n { id: 11772, x: 4793170.491, y: 8408295.3964 },\n { id: 48665, x: 4760195.7336, y: 8732492.1648 },\n { id: 48666, x: 4758677.1325, y: 8742862.0765 },\n { id: 48667, x: 4757558.1204, y: 8727563.7814 },\n { id: 3578, x: 4779644.7958, y: 8538615.4491 },\n { id: 11777, x: 4787037.8176, y: 8413001.9877 },\n { id: 32273, x: 4855815.966, y: 8658596.6429 },\n { id: 3580, x: 4777051.3084, y: 8529738.5698 },\n { id: 36373, x: 4833672.8007, y: 8632819.1804 },\n { id: 65069, x: 4709515.5408, y: 8392417.1822 },\n { id: 36376, x: 4830800.8744, y: 8622629.4921 },\n { id: 32277, x: 4851218.0433, y: 8653216.1062 },\n { id: 36377, x: 4831227.987, y: 8641194.1372 },\n { id: 36380, x: 4828538.0414, y: 8635144.4819 },\n { id: 32281, x: 4846861.3427, y: 8656073.6781 },\n { id: 36381, x: 4826457.1676, y: 8639968.6277 },\n { id: 32282, x: 4845377.9777, y: 8647918.2833 },\n { id: 3589, x: 4770765.2349, y: 8527912.735 },\n { id: 3592, x: 4768003.286, y: 8535328.4588 },\n { id: 32286, x: 4841953.1098, y: 8651677.878 },\n { id: 36386, x: 4823431.7537, y: 8621571.2233 },\n { id: 32287, x: 4840013.4709, y: 8642784.9053 },\n { id: 28188, x: 4652374.3512, y: 8617567.9364 },\n { id: 32288, x: 4840472.2043, y: 8657956.128 },\n { id: 36388, x: 4821883.1275, y: 8631801.3718 },\n { id: 28190, x: 4650541.8493, y: 8607579.7826 },\n { id: 28191, x: 4649882.1636, y: 8612863.8448 },\n { id: 28196, x: 4647334.6459, y: 8617706.9886 },\n { id: 24098, x: 4688375.6733, y: 8633881.8356 },\n { id: 28199, x: 4645330.7488, y: 8614557.6896 },\n { id: 24100, x: 4686038.6676, y: 8626964.7695 },\n { id: 15903, x: 4751384.6578, y: 8739559.6554 },\n { id: 28201, x: 4641983.4834, y: 8621393.9442 },\n { id: 24102, x: 4684470.4205, y: 8635560.9742 },\n { id: 28202, x: 4641440.4064, y: 8607654.3039 },\n { id: 24103, x: 4684279.2591, y: 8640191.1454 },\n { id: 15905, x: 4750048.6664, y: 8732424.4404 },\n { id: 28203, x: 4641600.263, y: 8616857.8736 },\n { id: 28204, x: 4639340.388, y: 8604087.2429 },\n { id: 24107, x: 4679539.132, y: 8638635.9038 },\n { id: 24108, x: 4678923.9083, y: 8627528.9842 },\n { id: 28208, x: 4637725.1185, y: 8615362.4905 },\n { id: 24110, x: 4678130.8914, y: 8642678.4939 },\n { id: 24111, x: 4676446.8491, y: 8634675.4011 },\n { id: 28211, x: 4634722.1043, y: 8620832.2276 },\n { id: 24112, x: 4675754.5803, y: 8624281.1349 },\n { id: 24113, x: 4674590.6535, y: 8629758.8845 },\n { id: 24115, x: 4674058.9706, y: 8639074.3663 },\n { id: 20024, x: 4709817.4875, y: 8700219.0444 },\n { id: 20027, x: 4708999.3584, y: 8696446.566 },\n { id: 20028, x: 4708459.3053, y: 8692144.1604 },\n { id: 20031, x: 4705375.3363, y: 8698905.5114 },\n { id: 11835, x: 4776797.0661, y: 8417546.5941 },\n { id: 20034, x: 4702888.741, y: 8694218.6216 },\n { id: 20035, x: 4702145.7856, y: 8702318.8999 },\n { id: 11837, x: 4772300.932, y: 8412046.8814 },\n { id: 20040, x: 4699500.4651, y: 8704709.1791 },\n { id: 20043, x: 4697129.7209, y: 8697221.3377 },\n { id: 20045, x: 4695204.7134, y: 8704658.9607 },\n { id: 20046, x: 4694190.0859, y: 8687998.3067 },\n { id: 61038, x: 4744692.5426, y: 8400584.0834 },\n { id: 56939, x: 4631016.4416, y: 8526581.9605 },\n { id: 48742, x: 4766594.3896, y: 8762002.9658 },\n { id: 61040, x: 4742234.6365, y: 8415580.1598 },\n { id: 56942, x: 4629575.5362, y: 8532297.4258 },\n { id: 7754, x: 4851591.6759, y: 8413937.9882 },\n { id: 56943, x: 4626659.5948, y: 8529306.7815 },\n { id: 61043, x: 4741092.3701, y: 8404425.871 },\n { id: 56944, x: 4626347.4859, y: 8524487.5422 },\n { id: 61044, x: 4739877.2313, y: 8411243.5004 },\n { id: 56945, x: 4626557.3829, y: 8539427.7593 },\n { id: 48748, x: 4761253.7175, y: 8756527.5071 },\n { id: 7758, x: 4849397.7824, y: 8407452.5303 },\n { id: 48749, x: 4760530.2861, y: 8750571.8561 },\n { id: 61047, x: 4738528.8542, y: 8407620.5995 },\n { id: 48750, x: 4758967.9752, y: 8765059.1254 },\n { id: 56951, x: 4620127.8425, y: 8529396.1408 },\n { id: 56952, x: 4619223.9818, y: 8521221.0225 },\n { id: 48754, x: 4756378.6979, y: 8758563.7683 },\n { id: 61052, x: 4735697.3858, y: 8416480.1533 },\n { id: 48755, x: 4755339.0319, y: 8747792.3823 },\n { id: 7765, x: 4845763.9891, y: 8400317.8373 },\n { id: 61054, x: 4735185.9469, y: 8402846.4295 },\n { id: 56956, x: 4615903.7988, y: 8536896.3124 },\n { id: 7768, x: 4843754.8318, y: 8411610.5902 },\n { id: 61056, x: 4733331.0783, y: 8411148.8857 },\n { id: 61059, x: 4731631.9085, y: 8417070.5093 },\n { id: 7773, x: 4842144.9598, y: 8405602.4094 },\n { id: 61063, x: 4730064.6012, y: 8403332.8132 },\n { id: 61065, x: 4728057.4316, y: 8412051.2204 },\n { id: 7778, x: 4838417.1561, y: 8418849.4809 },\n { id: 7779, x: 4837971.2232, y: 8401302.3061 },\n { id: 61067, x: 4726926.7445, y: 8417716.5214 },\n { id: 61069, x: 4726462.4432, y: 8407951.2445 },\n { id: 40611, x: 4819650.2324, y: 8795447.2662 },\n { id: 40616, x: 4816842.3702, y: 8787989.1194 },\n { id: 73409, x: 4611941.6837, y: 8488185.2985 },\n { id: 40618, x: 4815881.1276, y: 8803525.9224 },\n { id: 73411, x: 4609333.744, y: 8482022.2154 },\n { id: 73414, x: 4607048.2673, y: 8495334.1419 },\n { id: 40623, x: 4813487.7818, y: 8797380.6557 },\n { id: 40625, x: 4812366.2281, y: 8791347.2225 },\n { id: 73417, x: 4605415.3968, y: 8486248.5397 },\n { id: 48825, x: 4768687.2213, y: 8785313.0322 },\n { id: 48827, x: 4766753.4304, y: 8780491.2801 },\n { id: 73421, x: 4598950.4208, y: 8484415.3296 },\n { id: 48828, x: 4765881.9084, y: 8766372.0631 },\n { id: 48830, x: 4763935.3729, y: 8772318.5351 },\n { id: 48834, x: 4758378.9263, y: 8774668.728 },\n { id: 48835, x: 4758218.2367, y: 8781340.0742 },\n { id: 52952, x: 4687934.8698, y: 8505243.2136 },\n { id: 16061, x: 4744464.3082, y: 8742737.655 },\n { id: 16062, x: 4743851.2824, y: 8728916.782 },\n { id: 16067, x: 4738126.9217, y: 8736476.5622 },\n { id: 52959, x: 4680055.2476, y: 8516865.0495 },\n { id: 52960, x: 4676795.6567, y: 8502551.9369 },\n { id: 16069, x: 4735966.8843, y: 8725591.4597 },\n { id: 52961, x: 4676642.7036, y: 8508435.164 },\n { id: 52963, x: 4672959.5529, y: 8516238.836 },\n { id: 16072, x: 4734160.4339, y: 8743305.8727 },\n { id: 16075, x: 4731275.964, y: 8733950.8897 },\n { id: 73469, x: 4593892.9466, y: 8493243.2005 },\n { id: 73473, x: 4589632.2516, y: 8486590.2048 },\n { id: 73474, x: 4586119.4848, y: 8479740.6432 },\n { id: 57081, x: 4631768.6434, y: 8509755.6718 },\n { id: 36586, x: 4836850.7498, y: 8654055.5618 },\n { id: 57082, x: 4631730.736, y: 8518376.6075 },\n { id: 57083, x: 4628244.289, y: 8501288.8801 },\n { id: 57084, x: 4627610.9814, y: 8512203.9834 },\n { id: 36593, x: 4831555.0436, y: 8651759.0198 },\n { id: 57089, x: 4622745.5648, y: 8506434.5748 },\n { id: 3807, x: 4780271.7826, y: 8504116.545 },\n { id: 36603, x: 4823739.9596, y: 8648744.9395 },\n { id: 3811, x: 4776340.6605, y: 8514126.7332 },\n { id: 12010, x: 4798178.032, y: 8435466.9505 },\n { id: 3812, x: 4774889.6233, y: 8504880.1424 },\n { id: 36606, x: 4821104.8488, y: 8653776.0957 },\n { id: 12012, x: 4795943.7322, y: 8430176.3145 },\n { id: 48905, x: 4767893.7948, y: 8797850.8649 },\n { id: 3817, x: 4771425.3087, y: 8510950.4135 },\n { id: 3818, x: 4770364.04, y: 8520302.2214 },\n { id: 12017, x: 4794434.0745, y: 8421317.6404 },\n { id: 69404, x: 4683204.6471, y: 8413744.4506 },\n { id: 3820, x: 4767908.8434, y: 8514359.7271 },\n { id: 32514, x: 4873581.6616, y: 8675787.6963 },\n { id: 12020, x: 4790819.8395, y: 8426925.8203 },\n { id: 3822, x: 4766646.0161, y: 8504686.9341 },\n { id: 48912, x: 4761529.0322, y: 8791688.0696 },\n { id: 69408, x: 4679733.936, y: 8400326.4786 },\n { id: 48913, x: 4759980.0572, y: 8787525.517 },\n { id: 12022, x: 4789114.0146, y: 8435802.0319 },\n { id: 69409, x: 4677723.3118, y: 8407315.1456 },\n { id: 32518, x: 4869337.9685, y: 8668537.8925 },\n { id: 48915, x: 4759681.928, y: 8798249.4322 },\n { id: 48916, x: 4758002.4808, y: 8804844.2531 },\n { id: 12025, x: 4787925.0054, y: 8421003.1085 },\n { id: 32522, x: 4866111.6155, y: 8678170.1375 },\n { id: 12029, x: 4784644.4021, y: 8432422.7886 },\n { id: 69416, x: 4672111.6919, y: 8402627.6773 },\n { id: 32526, x: 4861691.3909, y: 8672835.2063 },\n { id: 12031, x: 4783697.4605, y: 8426483.5668 },\n { id: 12032, x: 4782595.5698, y: 8423047.1225 },\n { id: 32529, x: 4859692.0574, y: 8665802.5103 },\n { id: 32530, x: 4859912.753, y: 8680228.79 },\n { id: 7955, x: 4854844.7231, y: 8391189.9261 },\n { id: 28453, x: 4632866.4372, y: 8612295.8359 },\n { id: 7958, x: 4851558.3282, y: 8398510.2158 },\n { id: 7959, x: 4851591.5654, y: 8385579.7948 },\n { id: 28455, x: 4630291.4997, y: 8605434.2776 },\n { id: 28458, x: 4628538.6665, y: 8616515.2768 },\n { id: 28459, x: 4628659.8954, y: 8620157.0074 },\n { id: 7964, x: 4847482.4049, y: 8391951.7319 },\n { id: 28460, x: 4626400.7589, y: 8613510.1318 },\n { id: 28462, x: 4625809.8208, y: 8605686.629 },\n { id: 28465, x: 4624098.7795, y: 8621834.1691 },\n { id: 7971, x: 4844905.2441, y: 8385791.4833 },\n { id: 28468, x: 4621284.4642, y: 8610006.2064 },\n { id: 28469, x: 4621097.5313, y: 8619101.9488 },\n { id: 28470, x: 4619041.794, y: 8615773.9868 },\n { id: 7975, x: 4841598.5488, y: 8394020.6203 },\n { id: 28472, x: 4617691.8865, y: 8605961.024 },\n { id: 73561, x: 4595333.8034, y: 8478660.2839 },\n { id: 28473, x: 4617590.2486, y: 8611421.4636 },\n { id: 28474, x: 4617586.6691, y: 8621740.2826 },\n { id: 24379, x: 4690121.7344, y: 8663105.2455 },\n { id: 73567, x: 4589485.6745, y: 8462474.2818 },\n { id: 24382, x: 4686209.0235, y: 8651560.9395 },\n { id: 73570, x: 4585120.5496, y: 8470052.4293 },\n { id: 24384, x: 4685301.6976, y: 8657340.7817 },\n { id: 24386, x: 4684444.5114, y: 8663310.3066 },\n { id: 73574, x: 4577911.6447, y: 8416665.8356 },\n { id: 24388, x: 4681896.714, y: 8644994.3606 },\n { id: 7992, x: 4856169.6788, y: 8451969.1808 },\n { id: 73576, x: 4576698.1607, y: 8431036.0443 },\n { id: 24389, x: 4681743.7239, y: 8653972.2333 },\n { id: 73577, x: 4576675.8992, y: 8426499.2564 },\n { id: 24390, x: 4681247.5662, y: 8660652.9042 },\n { id: 73578, x: 4576669.0287, y: 8426495.7681 },\n { id: 24392, x: 4679932.3355, y: 8664347.6138 },\n { id: 24394, x: 4676145.3063, y: 8659885.0588 },\n { id: 24397, x: 4674241.6145, y: 8652893.7227 },\n { id: 40797, x: 4844370.3246, y: 8833950.9217 },\n { id: 40798, x: 4844345.1848, y: 8841141.972 },\n { id: 40806, x: 4839237.8892, y: 8835591.8745 },\n { id: 40809, x: 4836908.4723, y: 8823844.0015 },\n { id: 44910, x: 4802508.5515, y: 8724277.7698 },\n { id: 40811, x: 4835539.146, y: 8828930.8879 },\n { id: 44913, x: 4799511.8306, y: 8743467.7328 },\n { id: 40814, x: 4834309.6705, y: 8836208.7818 },\n { id: 44915, x: 4798303.7117, y: 8734815.9464 },\n { id: 61313, x: 4744288.073, y: 8379376.2054 },\n { id: 61314, x: 4743804.5792, y: 8389790.2952 },\n { id: 40819, x: 4830128.1592, y: 8829970.9375 },\n { id: 40820, x: 4829714.7902, y: 8823810.0905 },\n { id: 44920, x: 4793909.4736, y: 8736774.8363 },\n { id: 44922, x: 4792742.5621, y: 8729621.7335 },\n { id: 40823, x: 4828476.8563, y: 8837142.3806 },\n { id: 16231, x: 4746537.1515, y: 8714918.3587 },\n { id: 61321, x: 4739825.959, y: 8383454.3996 },\n { id: 69520, x: 4670660.1361, y: 8413299.9922 },\n { id: 61322, x: 4738886.3014, y: 8396033.7215 },\n { id: 57224, x: 4648961.9443, y: 8545724.9439 },\n { id: 44928, x: 4788017.9428, y: 8743188.9633 },\n { id: 20334, x: 4706938.0929, y: 8664800.4155 },\n { id: 57226, x: 4647987.4923, y: 8552979.2721 },\n { id: 16236, x: 4741538.6949, y: 8720072.0112 },\n { id: 57227, x: 4647418.8178, y: 8561217.1055 },\n { id: 20336, x: 4705836.9661, y: 8683854.6125 },\n { id: 20337, x: 4704711.4125, y: 8678112.482 },\n { id: 69526, x: 4665278.2108, y: 8401671.8275 },\n { id: 61328, x: 4735426.1301, y: 8390228.3868 },\n { id: 57229, x: 4645044.821, y: 8553780.7723 },\n { id: 20338, x: 4703745.3787, y: 8671417.0436 },\n { id: 16239, x: 4738760.1121, y: 8707547.8763 },\n { id: 61330, x: 4734845.1945, y: 8377519.3754 },\n { id: 57231, x: 4644415.7423, y: 8547741.4886 },\n { id: 20340, x: 4702043.4885, y: 8684587.3915 },\n { id: 57232, x: 4643920.2906, y: 8560319.5575 },\n { id: 57233, x: 4640848.5619, y: 8553888.1878 },\n { id: 20342, x: 4700274.4251, y: 8674430.1766 },\n { id: 16244, x: 4734976.7525, y: 8715521.8727 },\n { id: 69532, x: 4660725.5468, y: 8398992.3317 },\n { id: 57235, x: 4639360.1549, y: 8544831.085 },\n { id: 49037, x: 4767825.5634, y: 8813784.064 },\n { id: 69533, x: 4656801.4558, y: 8407049.3787 },\n { id: 16246, x: 4731570.1936, y: 8707347.3069 },\n { id: 69534, x: 4655685.4588, y: 8401934.8994 },\n { id: 61336, x: 4731567.0872, y: 8382291.1822 },\n { id: 57237, x: 4639259.2462, y: 8561123.5609 },\n { id: 49039, x: 4765682.6747, y: 8806963.2101 },\n { id: 20346, x: 4696895.7608, y: 8683923.7449 },\n { id: 61337, x: 4730317.2456, y: 8390078.6654 },\n { id: 20347, x: 4695681.556, y: 8678395.7966 },\n { id: 16248, x: 4730836.6815, y: 8724583.8452 },\n { id: 61338, x: 4730133.8238, y: 8395091.8834 },\n { id: 57239, x: 4636613.079, y: 8551811.582 },\n { id: 20349, x: 4693999.6652, y: 8669271.8627 },\n { id: 49045, x: 4760393.8476, y: 8812720.5768 },\n { id: 61343, x: 4726814.1517, y: 8386342.7524 },\n { id: 49047, x: 4881209.044, y: 8699772.2396 },\n { id: 49049, x: 4879537.1009, y: 8689735.9906 },\n { id: 36759, x: 4818491.3767, y: 8644307.9927 },\n { id: 36766, x: 4813894.055, y: 8658617.5844 },\n { id: 36767, x: 4813185.396, y: 8650286.0365 },\n { id: 69567, x: 4670377.5363, y: 8377494.7954 },\n { id: 69568, x: 4669710.9872, y: 8393032.9287 },\n { id: 36776, x: 4808179.0765, y: 8644801.1242 },\n { id: 69569, x: 4667647.2641, y: 8386348.5685 },\n { id: 36782, x: 4804054.7417, y: 8653336.2456 },\n { id: 65481, x: 4724789.8, y: 8413550.5338 },\n { id: 65487, x: 4721829.9985, y: 8406034.0266 },\n { id: 65492, x: 4715132.4831, y: 8398725.5141 },\n { id: 65494, x: 4714187.4131, y: 8410049.3331 },\n { id: 16311, x: 4751680.5311, y: 8759309.9288 },\n { id: 16312, x: 4751260.0612, y: 8751278.642 },\n { id: 32733, x: 4873302.4236, y: 8689775.479 },\n { id: 4040, x: 4799311.724, y: 8557396.3074 },\n { id: 32734, x: 4870722.4828, y: 8682866.2925 },\n { id: 32735, x: 4871245.2292, y: 8698655.7383 },\n { id: 4045, x: 4796390.6093, y: 8542914.9838 },\n { id: 32742, x: 4866568.2567, y: 8689682.9625 },\n { id: 12247, x: 4798524.579, y: 8454743.4924 },\n { id: 32743, x: 4865448.8209, y: 8685260.3801 },\n { id: 32745, x: 4864809.1363, y: 8696739.5802 },\n { id: 12250, x: 4797041.9895, y: 8446932.9247 },\n { id: 12251, x: 4796871.8571, y: 8442366.0056 },\n { id: 4053, x: 4789607.46, y: 8554344.8872 },\n { id: 32751, x: 4859453.547, y: 8687213.0774 },\n { id: 12256, x: 4792315.1585, y: 8439527.0058 },\n { id: 4058, x: 4785500.7597, y: 8546415.7885 },\n { id: 12257, x: 4791508.3658, y: 8448738.4409 },\n { id: 12258, x: 4790795.3518, y: 8454082.5426 },\n { id: 16359, x: 4754780.4343, y: 8769273.0841 },\n { id: 12262, x: 4787624.7294, y: 8441596.8395 },\n { id: 16362, x: 4752640.8129, y: 8776370.9604 },\n { id: 16364, x: 4751510.0999, y: 8782936.9655 },\n { id: 16365, x: 4749820.4489, y: 8767463.1311 },\n { id: 12266, x: 4784114.9053, y: 8449638.3353 },\n { id: 12267, x: 4783152.4975, y: 8439503.7021 },\n { id: 12270, x: 4782318.3458, y: 8445322.7555 },\n { id: 40973, x: 4845354.9492, y: 8859900.9979 },\n { id: 40977, x: 4842332.3119, y: 8850468.2208 },\n { id: 40978, x: 4842285.4768, y: 8856269.411 },\n { id: 40984, x: 4838372.9868, y: 8852145.4612 },\n { id: 40985, x: 4837773.5254, y: 8843467.5493 },\n { id: 40989, x: 4835920.4719, y: 8860652.712 },\n { id: 49188, x: 4887331.0593, y: 8728475.6178 }\n ];\n }", "function getCordinates() {\n let corArray = [];\n let x = getRndInteger(0, canvas.width);\n let y = getRndInteger(0, canvas.height);\n corArray.push(x, y);\n return corArray;\n}", "function tp_select_rounded_corner(doc, x0, y0, x1, y1, corner)\n{\n\tvar w, h;\n\n\tw = x1 - x0;\n\th = y1 - y0;\n\n\tdoc.selection.select([\n\t\t[x0, y0],\n\t\t[x0, y1],\n\t\t[x1, y1],\n\t\t[x1, y0]\n\t]);\n\n\tswitch (corner) {\n\t\tcase TOP_LEFT:\n\t\t\ttp_intersect_circle(x0, y0, x1 + w, y1 + h);\n\t\t\tbreak;\n\n\t\tcase TOP_RIGHT:\n\t\t\ttp_intersect_circle(x0 - w, y0, x1, y1 + h);\n\t\t\tbreak;\n\n\t\tcase BOTTOM_RIGHT:\n\t\t\ttp_intersect_circle(x0 - w, y0 - h, x1, y1);\n\t\t\tbreak;\n\n\t\tcase BOTTOM_LEFT:\n\t\t\ttp_intersect_circle(x0, y0 - h, x1 + w, y1);\n\t\t\tbreak;\n\t}\n}", "function makeCube(x, y, z) {\n return [\n { x: x - 1, y: y, z: z + 1 }, // FRONT TOP LEFT\n { x: x - 1, y: 0, z: z + 1 }, // FRONT BOTTOM LEFT\n { x: x + 1, y: 0, z: z + 1 }, // FRONT BOTTOM RIGHT\n { x: x + 1, y: y, z: z + 1 }, // FRONT TOP RIGHT\n { x: x - 1, y: y, z: z - 1 }, // BACK TOP LEFT\n { x: x - 1, y: 0, z: z - 1 }, // BACK BOTTOM LEFT\n { x: x + 1, y: 0, z: z - 1 }, // BACK BOTTOM RIGHT\n { x: x + 1, y: y, z: z - 1 }, // BACK TOP RIGHT\n ];\n }", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0].slice());\n return polygon([vertices]);\n}", "toString () {\n let brd = [];\n\n let rowMin = this.topLeftCorner.row;\n let rowMax = this.bottomRightCorner.row;\n let colMin = this.topLeftCorner.col;\n let colMax = this.bottomRightCorner.col;\n\n for (let i=rowMin; i<= rowMax; i++) {\n for (let j=colMin; j<=colMax; j++) {\n if (this.isWhite(i, j)) {\n brd.push('W');\n } else {\n brd.push('B');\n }\n }\n brd.push('\\n');\n }\n\n return brd.toString();\n }", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0]);\n return polygon([vertices]);\n}", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0]);\n return polygon([vertices]);\n}", "function draw_escutcheon(points,ctx)\n{\n ctx.beginPath();\n ctx.moveTo(points[0].x,points[0].y);\n for (var x =1; x < points.length; x++)\n {\n ctx.lineTo(points[x].x, points[x].y);\n }\n\n ctx.closePath();\n //ctx.stroke();\n \n return new Array(points);\n}", "function lineThemUp(x,y,z) {\n return [x,y,z];\n}", "function _buildRoundRectPath(x, y, width, height, radius) {\r\n var w = width, h = height,\r\n r0 = radius[0], r1 = radius[1],\r\n r2 = radius[2], r3 = radius[3],\r\n w2 = (width / 2) | 0, h2 = (height / 2) | 0;\r\n\r\n r0 < 0 && (r0 = 0);\r\n r1 < 0 && (r1 = 0);\r\n r2 < 0 && (r2 = 0);\r\n r3 < 0 && (r3 = 0);\r\n (r0 >= w2 || r0 >= h2) && (r0 = Math.min(w2, h2) - 2);\r\n (r1 >= w2 || r1 >= h2) && (r1 = Math.min(w2, h2) - 2);\r\n (r2 >= w2 || r2 >= h2) && (r2 = Math.min(w2, h2) - 2);\r\n (r3 >= w2 || r3 >= h2) && (r3 = Math.min(w2, h2) - 2);\r\n\r\n return [\" M\", x, \" \", y + h2, // ctx.moveTo(x, y + h2)\r\n \" L\", x, \" \", y + h - r3, // ctx.lineTo(x, y + h - r3);\r\n \" Q\", x, \" \", y + h, \" \", x + r3, \" \", y + h, // ctx.quadraticCurveTo(x, y + h, x + r3, y + h); // bottom-left\r\n \" L\", x + w - r2, \" \", y + h, // ctx.lineTo(x + w - r2, y + h);\r\n \" Q\", x + w, \" \", y + h, \" \", x + w, \" \",\r\n y + h - r2, // ctx.quadraticCurveTo(x + w, y + h, x + w, y + h - r2); // bottom-right\r\n \" L\", x + w, \" \", y + r1, // ctx.lineTo(x + w, y + r1);\r\n \" Q\", x + w, \" \", y, \" \", x + w - r1, \" \", y, // ctx.quadraticCurveTo(x + w, y, x + w - r1, y); // top-left\r\n \" L\", x + r0, \" \", y, // ctx.lineTo(x + r0, y);\r\n \" Q\", x, \" \", y, \" \", x, \" \", y + r0, // ctx.quadraticCurveTo(x, y, x, y + r0); // top-right\r\n \" Z\"].join(\"\"); // ctx.closePath();\r\n}", "constructor(x,y,w,h,clr){\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.clr = clr;\n}", "function getClosestCorner(pt1, pt2) {\n var dx = pt2[0] - pt1[0];\n var m = (pt2[1] - pt1[1]) / dx;\n var b = (pt1[1] * pt2[0] - pt2[1] * pt1[0]) / dx;\n if (b > 0) return [m > 0 ? xEdge0 : xEdge1, yEdge1];else return [m > 0 ? xEdge1 : xEdge0, yEdge0];\n }", "function polyCoordinates(result, coords, corner)\n\t{\n\t\tvar i = 0,\n\t\t\tcompareX = 1, compareY = 1,\n\t\t\trealX = 0, realY = 0,\n\t\t\tnewWidth = result.width,\n\t\t\tnewHeight = result.height;\n\n\t\t// Use a binary search algorithm to locate most suitable coordinate (hopefully)\n\t\twhile(newWidth > 0 && newHeight > 0 && compareX > 0 && compareY > 0)\n\t\t{\n\t\t\tnewWidth = Math.floor(newWidth / 2);\n\t\t\tnewHeight = Math.floor(newHeight / 2);\n\n\t\t\tif(corner.x === 'left'){ compareX = newWidth; }\n\t\t\telse if(corner.x === 'right'){ compareX = result.width - newWidth; }\n\t\t\telse{ compareX += Math.floor(newWidth / 2); }\n\n\t\t\tif(corner.y === 'top'){ compareY = newHeight; }\n\t\t\telse if(corner.y === 'bottom'){ compareY = result.height - newHeight; }\n\t\t\telse{ compareY += Math.floor(newHeight / 2); }\n\n\t\t\ti = coords.length; while(i--)\n\t\t\t{\n\t\t\t\tif(coords.length < 2){ break; }\n\n\t\t\t\trealX = coords[i][0] - result.offset.left;\n\t\t\t\trealY = coords[i][1] - result.offset.top;\n\n\t\t\t\tif((corner.x === 'left' && realX >= compareX) ||\n\t\t\t\t(corner.x === 'right' && realX <= compareX) ||\n\t\t\t\t(corner.x === 'center' && (realX < compareX || realX > (result.width - compareX))) ||\n\t\t\t\t(corner.y === 'top' && realY >= compareY) ||\n\t\t\t\t(corner.y === 'bottom' && realY <= compareY) ||\n\t\t\t\t(corner.y === 'center' && (realY < compareY || realY > (result.height - compareY)))) {\n\t\t\t\t\tcoords.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn { left: coords[0][0], top: coords[0][1] };\n\t}", "function getClosestCorner(pt1, pt2) {\n var dx = pt2[0] - pt1[0];\n var m = (pt2[1] - pt1[1]) / dx;\n var b = (pt1[1] * pt2[0] - pt2[1] * pt1[0]) / dx;\n\n if(b > 0) return [m > 0 ? xEdge0 : xEdge1, yEdge1];\n else return [m > 0 ? xEdge1 : xEdge0, yEdge0];\n }", "function getBezierPoints(points, isClosed)\r\n{\r\n if(points.length == 1)\r\n return points;\r\n var x = new Array();\r\n var y = new Array();\r\n for(var i=0;i<points.length;++i)\r\n {\r\n x[i] = points[i].x;\r\n y[i] = points[i].y;\r\n }\r\n var count = 0;\r\n if(isClosed)\r\n {\r\n var size = points.length;\r\n for(var i=0;i<size && i<4;i++)\r\n {\r\n x[size+i] = points[i].x;\r\n y[size+i] = points[i].y;\r\n count++;\r\n }\r\n\r\n\r\n }\r\n\r\n var result = updateSplines(x, y);\r\n var len = result.length;\r\n return isClosed?result.slice(3, len-(count-2)*3):result;\r\n}", "function getCorners(board, boardNodes, head) {\n return [\n makeCorner(0, 0, board, boardNodes),\n makeCorner(0, board.height - 1, board, boardNodes),\n makeCorner(board.width - 1, 0, board, boardNodes),\n makeCorner(0, board.height - 1, board, boardNodes),\n ].sort((a, b) => {\n return (a.numSnakeParts - b.numSnakeParts) ||\n (distanceBetweenPoints(b, head) - distanceBetweenPoints(a, head));\n });\n}", "function outlineBuckyPoints()\n{\n var offset = [0,1,1,8,-2,-3];\n var count = 0;\n for(var i = 0; i < 240; i+= offset[count])\n {\n vertices.push(buckyBall[i]);\n count++;\n if (count == 6)\n {\n count = 0;\n i+=7;\n } \n }\n}", "getAdjacent() {\n return [\n new Coord([this.x + 1, this.y]), // RIGHT >\n new Coord([this.x - 1, this.y]), // LEFT >\n new Coord([this.x, this.y - 1]), // UP >\n new Coord([this.x, this.y + 1]), // DOWN >\n ];\n }", "function hexagon(center, rx, ry) {\n var vertices = [];\n for (var i = 0; i < 6; i++) {\n var x = center[0] + rx * cosines[i];\n var y = center[1] + ry * sines[i];\n vertices.push([x, y]);\n }\n //first and last vertex must be the same\n vertices.push(vertices[0]);\n return polygon([vertices]);\n }", "function aiOpposingCorner() {\n var spaces = getAvailableSpaces();\n var enemyCorners = [];\n data.board.forEach(function(move, space){\n if (CORNERS.includes(space) && move == data.player1) {\n enemyCorners.push(space);\n }\n });\n\n for (var i = 0; i < enemyCorners.length; i++) {\n var copyBoard = getBoardCopy(data.board);\n var enemyCorner = enemyCorners[i];\n var oppositeCorner = null;\n\n switch(enemyCorner) {\n case 0:\n oppositeCorner = 8;\n break;\n case 2:\n oppositeCorner = 6;\n break;\n case 6:\n oppositeCorner = 2;\n break;\n case 8:\n oppositeCorner = 0;\n }\n if (spaces.includes(oppositeCorner)) {\n placeMoveByIndex(oppositeCorner);\n return true;\n }\n }\n return false;\n}" ]
[ "0.7152081", "0.710977", "0.71054775", "0.69690377", "0.6883812", "0.68744695", "0.68693686", "0.6867067", "0.6774058", "0.67471164", "0.6579971", "0.6546678", "0.65427226", "0.63573945", "0.6302345", "0.6171074", "0.6074183", "0.6016276", "0.59106755", "0.59104335", "0.59090483", "0.5902929", "0.5874016", "0.5852467", "0.58290714", "0.58234286", "0.5818962", "0.58123964", "0.5789605", "0.57866216", "0.5652869", "0.563923", "0.56276023", "0.56193995", "0.55798155", "0.55700696", "0.55688876", "0.5561768", "0.55528814", "0.5551341", "0.5528883", "0.55243176", "0.5524305", "0.55108947", "0.5492662", "0.5486698", "0.5479974", "0.5473604", "0.54605323", "0.54534394", "0.5452722", "0.5449616", "0.5423314", "0.5423192", "0.54210806", "0.5393387", "0.538225", "0.5379948", "0.53528875", "0.53162825", "0.5302192", "0.52980036", "0.529264", "0.5262583", "0.52621794", "0.5247386", "0.5247386", "0.5217254", "0.52169865", "0.52038246", "0.5200707", "0.51816887", "0.51780933", "0.5167586", "0.51665545", "0.5165623", "0.5155531", "0.51526296", "0.51455283", "0.51422143", "0.51388776", "0.51291347", "0.5129101", "0.51088905", "0.5105806", "0.5091356", "0.5088853", "0.5088853", "0.50838894", "0.5078551", "0.5073518", "0.5067392", "0.50657225", "0.5054034", "0.5053967", "0.5053005", "0.50462145", "0.5043795", "0.50393564", "0.5038157", "0.50344926" ]
0.0
-1
Checks if all corners of insideCorners are inside the polygon described by outsideCorners
static polygonInsidePolygon(insideCorners, outsideCorners, start) { for (var tI = 0; tI < insideCorners.length; tI++) { let flag = Utils.pointInPolygon(insideCorners[tI], outsideCorners, start); if (!flag) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static polygonOutsidePolygon(insideCorners, outsideCorners, start) {\n for (var tI = 0; tI < insideCorners.length; tI++) {\n if (Utils.pointInPolygon(insideCorners[tI], outsideCorners, start)) {\n return false;\n }\n }\n return true;\n }", "function checkInboundsPolygon(corners, myx, myy) {\r\n var areas = [];\r\n var allpositive = true;\r\n var allnegative = true;\r\n var allzero = true;\r\n for (var i=0;i<corners.length;i++) {\r\n var j = i == corners.length - 1 ? 0 : i + 1;\r\n // area of triangle: c[i], c[j], my\r\n areas[areas.length] = myx*corners[j].v - corners[j].u*myy - myx*corners[i].v + corners[i].u*myy + corners[j].u*corners[i].v - corners[i].u*corners[j].v;\r\n if ((areas[areas.length-1]) > inboundsCheckZeroThresh) {\r\n allnegative = false;\r\n allzero = false;\r\n }\r\n if ((areas[areas.length-1]) < -inboundsCheckZeroThresh) {\r\n allpositive = false;\r\n allzero = false;\r\n }\r\n }\r\n return { inbounds: (allnegative || allpositive) && !allzero, areas: areas, allzero: allzero };\r\n }", "outside (vertices)\n\t{\n\t\tfor (var i = 0; i < vertices.length; i++)\n\t\t\tif (this.contains(vertices[i]) != Primitives.VERTEX_OUT) return false;\n\n\t\treturn true;\n\t}", "static polygonPolygonIntersect(firstCorners, secondCorners) {\n for (var tI = 0; tI < firstCorners.length; tI++) {\n var tFirstCorner = firstCorners[tI],\n tSecondCorner;\n if (tI === firstCorners.length - 1) {\n tSecondCorner = firstCorners[0];\n } else {\n tSecondCorner = firstCorners[tI + 1];\n }\n if (Utils.linePolygonIntersect(tFirstCorner, tSecondCorner, secondCorners)) {\n return true;\n }\n }\n return false;\n }", "isObstacleBetween(corners, tileMap) {\n const enemyCorners = [];\n enemyCorners.push({x: this.x, y: this.y});\n enemyCorners.push({x: this.x + this.w * 0.999, y: this.y});\n enemyCorners.push({x: this.x, y: this.y + this.h * 0.999});\n enemyCorners.push({x: this.x + this.w * 0.999, y: this.y + this.h * 0.999});\n\n for (let i = 0; i < 4; i++) {\n const differenceX = corners[i].x - enemyCorners[i].x;\n const differenceY = corners[i].y - enemyCorners[i].y;\n const distance = Math.sqrt(Math.pow(differenceX, 2) + Math.pow(differenceY, 2));\n\n const ray = new Ray(enemyCorners[i], {x: differenceX, y: differenceY});\n const intersection = ray.castWalls(tileMap.boundaries);\n if (intersection == null)\n continue;\n\n const intersectionDistance = Math.sqrt(Math.pow(intersection.x - enemyCorners[i].x, 2) + Math.pow(intersection.y - enemyCorners[i].y, 2));\n if (intersectionDistance < distance) \n return true; \n \n // enemy corner may be on a boundary, and casting a ray to the boundary will always give no intersection\n // check if there is a intersection by checking first tile square in direction of ray\n if (enemyCorners[i].x == Math.floor(enemyCorners[i].x) || enemyCorners[i].y == Math.floor(enemyCorners[i].y)) {\n let varianceX, varianceY;\n varianceX = differenceX > 0 ? 0.00001 : -0.00001;\n varianceY = differenceY > 0 ? 0.00001 : -0.00001;\n if (differenceX == 0) \n varianceX = 0;\n if (differenceY == 0)\n varianceY = 0;\n let square;\n if (enemyCorners[i].x == Math.floor(enemyCorners[i].x) && enemyCorners[i].y == Math.floor(enemyCorners[i].y)) {\n square = tileMap.array[Math.floor(enemyCorners[i].y + varianceY)][Math.floor(enemyCorners[i].x + varianceX)];\n }\n else if (enemyCorners[i].x == Math.floor(enemyCorners[i].x)) {\n square = tileMap.array[Math.floor(enemyCorners[i].y)][Math.floor(enemyCorners[i].x + varianceX)];\n }\n else if (enemyCorners[i].y == Math.floor(enemyCorners[i].y)) {\n square = tileMap.array[Math.floor(enemyCorners[i].y + varianceY)][Math.floor(enemyCorners[i].x)];\n }\n if (square == 1) { // if a wall\n return true;\n } \n }\n }\n return false;\n }", "_isHole(outterPoly, innerPoly) {\n for(let ptI = 0; ptI < innerPoly.length; ptI++) {\n if(!__WEBPACK_IMPORTED_MODULE_2__utils_mesh_guru__[\"b\" /* contains */](outterPoly, innerPoly[ptI]))\n return false;\n }\n return true;\n }", "function areBoxesIntersecting(closed) {\n return (a, b) => {\n let [[ax0, ay0], [ax1, ay1]] = a;\n let [[bx0, by0], [bx1, by1]] = b;\n // If open then if both boxes have zero area then they are both \n // considered closed.\n /*if ((ax0 === ax1 || ay0 === ay1) && (bx0 === bx1 || by0 === by1)) {\n closed = true;\n }*/\n // Swap so smaller coordinate comes first\n if (ay0 > ay1) {\n [ay0, ay1] = [ay1, ay0];\n }\n ;\n if (by0 > by1) {\n [by0, by1] = [by1, by0];\n }\n ;\n if (ax0 > ax1) {\n [ax0, ax1] = [ax1, ax0];\n }\n ;\n if (bx0 > bx1) {\n [bx0, bx1] = [bx1, bx0];\n }\n ;\n return closed\n ? (ax0 <= bx1 && ax1 >= bx0 &&\n by0 <= ay1 && by1 >= ay0)\n : (ax0 < bx1 && ax1 > bx0 &&\n by0 < ay1 && by1 > ay0);\n };\n}", "function isInside(x1, y1, x2, y2, x3, y3, x, y) {\n\n /* Calculate area of triangle ABC */\n let A = area(x1, y1, x2, y2, x3, y3);\n\n /* Calculate area of triangle PBC */\n let A1 = area(x, y, x2, y2, x3, y3);\n\n /* Calculate area of triangle PAC */\n let A2 = area(x1, y1, x, y, x3, y3);\n\n /* Calculate area of triangle PAB */\n let A3 = area(x1, y1, x2, y2, x, y);\n\n /* Check if sum of A1, A2 and A3 is same as A */\n return (10 > Math.abs(A - (A1 + A2 + A3)));\n}", "inside (vertices)\n\t{\n\t\tfor (var i = 0; i < vertices.length; i++)\n\t\t\tif (this.contains(vertices[i]) != Primitives.VERTEX_IN) return false;\n\n\t\treturn true;\n\t}", "inside(x, y) {\n let box = this.bbox();\n return x > box.x && y > box.y && x < box.x + box.width && y < box.y + box.height;\n }", "function inside(pt, polygon) {\n var polys = polygon.geometry.coordinates\n // normalize to multipolygon\n if (polygon.geometry.type === 'Polygon')\n polys = [polys]\n\n var insidePoly = false\n var i = 0\n while (i < polys.length && !insidePoly) {\n // check if it is in the outer ring first\n if (inRing(pt, polys[i][0])) {\n var inHole = false\n var k = 1\n // check for the point in any of the holes\n while (k < polys[i].length && !inHole) {\n if (inRing(pt, polys[i][k])) {\n inHole = true\n }\n k++\n }\n if(!inHole)\n insidePoly = true\n }\n i++\n }\n return insidePoly\n }", "static _isInside(a, b, c, x, y) {\n\t\t// If x, y are on the right side of ab, the point is outside the triangle\n\t\tif (Munsell._cross(x - a[0], y - a[1], b[0] - a[0], b[1] - a[1]) < 0) return false;\n\t\t// If x, y are on the right side of bc, the point is outside the triangle\n\t\tif (Munsell._cross(x - b[0], y - b[1], c[0] - b[0], c[1] - b[1]) < 0) return false;\n\t\t// If x, y are on the right side of ca, the point is outside the triangle\n\t\tif (Munsell._cross(x - c[0], y - c[1], a[0] - c[0], a[1] - c[1]) < 0) return false;\n\t\treturn true;\n\t}", "_atRoomCorner(room) {\n if (room.isCornerPoint(this.x, this.y)) {\n return true\n }\n if (room.isCornerPoint((this.x+this.width)-1, this.y)) {\n return true\n }\n if (room.isCornerPoint(this.x, (this.y+this.height)-1)) {\n return true\n }\n if (room.isCornerPoint((this.x+this.width)-1, (this.y+this.height)-1)) {\n return true\n }\n return false\n }", "function content_isInPolygon(coords, x, y) {\n if (coords.length < 6 || coords.length % 2 === 1) {\n return false;\n }\n\n // Number of vertexes in the polygon.\n let nv = coords.length / 2;\n\n // X and Y coordinates of the polygon's vertexes.\n let vx = [], vy = [];\n\n coords.forEach((value, i) => {\n if (i % 2 === 0) {\n vx.push(value);\n }\n else {\n vy.push(value);\n }\n });\n\n let isInside = false;\n\n for (let i = 0, j = nv - 1; i < nv; j = i++) {\n if ((y < vy[i]) !== (y < vy[j]) &&\n x < (vx[j] - vx[i]) * (y - vy[i]) / (vy[j] - vy[i]) + vx[i]) {\n isInside = !isInside;\n }\n }\n\n return isInside;\n }", "classifyPointContainment(points, onIsOutside) {\n let allInside = true;\n const onTolerance = onIsOutside ? 1.0e-8 : -1.0e-8;\n const interiorTolerance = 1.0e-8; // Interior tolerance should always be positive\n for (const plane of this._planes) {\n let nOutside = 0;\n for (const point of points) {\n if (plane.evaluatePoint(point) < (plane.interior ? interiorTolerance : onTolerance)) {\n nOutside++;\n allInside = false;\n }\n }\n if (nOutside === points.length)\n return 3 /* StronglyOutside */;\n }\n return allInside ? 1 /* StronglyInside */ : 2 /* Ambiguous */;\n }", "isOutside(tetroSquare) {\n // If x index is too left or right.\n if (tetroSquare.xIndex < 0 || tetroSquare.xIndex > SQUARES_IN_WIDTH - 1) {\n return true;\n }\n\n // Note it doesn't check the case that y index is too large, which might be a valid case.\n if (tetroSquare.yIndex < 0) {\n return true;\n }\n\n return false;\n }", "function processCorners() {\n let c;\n let points = {};\n for (let key in corners) {\n if (corners.hasOwnProperty(key)) {\n c = corners[key];\n for (let i = Math.min(c[0][0],c[1][0]); i <= Math.max(c[0][0],c[1][0]); ++i) {\n for (let j = Math.min(c[0][1],c[1][1]); j <= Math.max(c[0][1],c[1][1]); ++j) {\n //points.push({ x: i, y: j, type: \"point\", color: rooms[key] });\n if (!points[rooms[key]])\n points[rooms[key]] = new Set();\n points[rooms[key]].add([\n i + defaultConfig.xMin,\n defaultConfig.yMax - j\n ]);\n }\n }\n }\n }\n\n return points;\n}", "isInside(x,y) {\r\n return ((x >= 0) && (x < this.width) && (y >= 0) && (y < this.height));\r\n }", "function isWithin(pointX, pointY, rectX1, rectX2, rectY1, rectY2) {\n // if all 4 of these conditions are true, then it was inside,\n // otherwise it was outside\n if ((pointX > rectX1) &&\t// to the right of the left edge\n (pointX < rectX2) &&\t// to the left of the right edge\n (pointY > rectY1) &&\t// below the top edge\n (pointY < rectY2)) {\t// above the bottom edge\n return true;\n } else {\n return false;\n }\n\n}", "function cornersMatch(corners1, corners2){\n \t \tif (corners1.length != corners2.length){\n \t \t\treturn false;\n \t \t}\n \t \treturn corners1.every((c, index) =>\n \t \t\tc.every((val, i) => val === corners2[index][i]));\n \t }", "function isInsideOf(pos, rectArr){\r\n\tif(!pos) return false;\r\n\tif (pos.x < rectArr[0]) return false;\r\n\tif (pos.x > rectArr[0]+rectArr[2]) return false;\r\n\tif (pos.y < rectArr[1]-rectArr[3]) return false;\r\n\tif (pos.y > rectArr[1]) return false;\r\n\treturn true;\r\n}", "function check_border() {\n for (let i = 0; i < invaders.length; i++) {\n return invaders[i].x <= 0 || invaders[i].x >= 155;\n }\n}", "_getNearPlaneIntersections(corners, mvpCorners, clippedCorners) {\n // rebuild the clipped corners based on non clipped ones\n const mVPMatrix = this._matrices.modelViewProjection.matrix;\n\n if(clippedCorners.length === 1) {\n // we will have 5 corners to check so we'll need to push a new entry in our mvpCorners array\n if(clippedCorners[0] === 0) {\n // top left is culled\n // get intersection iterating from top right\n mvpCorners[0] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from bottom left\n mvpCorners.push(this._getIntersection(mvpCorners[3], tempCulledCorner2.set(-1, -0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 1) {\n // top right is culled\n // get intersection iterating from top left\n mvpCorners[1] = this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from bottom right\n mvpCorners.push(this._getIntersection(mvpCorners[2], tempCulledCorner2.set(1, -0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 2) {\n // bottom right is culled\n // get intersection iterating from bottom left\n mvpCorners[2] = this._getIntersection(mvpCorners[3], tempCulledCorner1.set(-0.95, -1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from top right\n mvpCorners.push(this._getIntersection(mvpCorners[1], tempCulledCorner2.set(1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 3) {\n // bottom left is culled\n // get intersection iterating from bottom right\n mvpCorners[3] = this._getIntersection(mvpCorners[2], tempCulledCorner1.set(0.95, -1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from top left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set( -1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n }\n else if(clippedCorners.length === 2) {\n if(clippedCorners[0] === 0 && clippedCorners[1] === 1) {\n // top part of the plane is culled by near plane\n // find intersection using bottom corners\n mvpCorners[0] = this._getIntersection(mvpCorners[3], tempCulledCorner1.set(-1, -0.95, 0).applyMat4(mVPMatrix));\n mvpCorners[1] = this._getIntersection(mvpCorners[2], tempCulledCorner2.set( 1, -0.95, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 1 && clippedCorners[1] === 2) {\n // right part of the plane is culled by near plane\n // find intersection using left corners\n mvpCorners[1] = this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix));\n mvpCorners[2] = this._getIntersection(mvpCorners[3], tempCulledCorner2.set(-0.95, -1, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 2 && clippedCorners[1] === 3) {\n // bottom part of the plane is culled by near plane\n // find intersection using top corners\n mvpCorners[2] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(1, 0.95, 0).applyMat4(mVPMatrix));\n mvpCorners[3] = this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1, 0.95, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 0 && clippedCorners[1] === 3) {\n // left part of the plane is culled by near plane\n // find intersection using right corners\n mvpCorners[0] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix));\n mvpCorners[3] = this._getIntersection(mvpCorners[2], tempCulledCorner2.set(0.95, -1, 0).applyMat4(mVPMatrix));\n }\n }\n else if(clippedCorners.length === 3) {\n // get the corner that is not clipped\n let nonClippedCorner = 0;\n for(let i = 0; i < corners.length; i++) {\n if(!clippedCorners.includes(i)) {\n nonClippedCorner = i;\n }\n }\n\n // we will have just 3 corners so reset our mvpCorners array with just the visible corner\n mvpCorners = [\n mvpCorners[nonClippedCorner]\n ];\n if(nonClippedCorner === 0) {\n // from top left corner to right\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix)));\n // from top left corner to bottom\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 1) {\n // from top right corner to left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix)));\n // from top right corner to bottom\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 2) {\n // from bottom right corner to left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(0.95, -1, 0).applyMat4(mVPMatrix)));\n // from bottom right corner to top\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(1,-0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 3) {\n // from bottom left corner to right\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, -1, 0).applyMat4(mVPMatrix)));\n // from bottom left corner to top\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1 -0.95, 0).applyMat4(mVPMatrix)));\n }\n }\n else {\n // all 4 corners are culled! artificially apply wrong coords to force plane culling\n for(let i = 0; i < corners.length; i++) {\n mvpCorners[i][0] = 10000;\n mvpCorners[i][1] = 10000;\n }\n }\n\n return mvpCorners;\n }", "function intersects(iTopLeft) {\n return !iViewRects.every(\n function (iViewRect) {\n return !intersectRect(iViewRect,\n {\n x: iTopLeft.x,\n y: iTopLeft.y,\n width: iItemRect.width,\n height: iItemRect.height\n });\n });\n }", "function polygonInPolygon(polygonA, polygonB){\n var inside = true;\n\n for (var i = 0, l = polygonA.length; i < l; i++){\n var p = polygonA[i];\n if (!pointInPolygon(p, polygonB)){\n inside = false;\n break;\n }\n }\n\n return inside;\n }", "isInside(x, y) {\n return !((x < 0) || (x >= this.width) || (y < 0) || (y >= this.height));\n }", "function aiOpposingCorner() {\n var spaces = getAvailableSpaces();\n var enemyCorners = [];\n data.board.forEach(function(move, space){\n if (CORNERS.includes(space) && move == data.player1) {\n enemyCorners.push(space);\n }\n });\n\n for (var i = 0; i < enemyCorners.length; i++) {\n var copyBoard = getBoardCopy(data.board);\n var enemyCorner = enemyCorners[i];\n var oppositeCorner = null;\n\n switch(enemyCorner) {\n case 0:\n oppositeCorner = 8;\n break;\n case 2:\n oppositeCorner = 6;\n break;\n case 6:\n oppositeCorner = 2;\n break;\n case 8:\n oppositeCorner = 0;\n }\n if (spaces.includes(oppositeCorner)) {\n placeMoveByIndex(oppositeCorner);\n return true;\n }\n }\n return false;\n}", "function squares() {\n for (let row = 0; row <= GRID - 1; row++) {\n for (let col = 0; col <= GRID - 1; col++) {\n\n\n let cornerBottomLeft = [(CELL_W * row), (CELL_H * col)];\n let cornerBottomRight = [(CELL_W * row) + CELL_W, (CELL_H * col)];\n let cornerTopLeft = [(CELL_W * row), (CELL_H * col) + CELL_H];\n let cornerTopRight = [(CELL_W * row) + CELL_W, (CELL_H * col) + CELL_H];\n\n /*\n console.log(cornerBottomLeft);\n console.log(cornerBottomRight);\n console.log(cornerTopLeft);\n console.log(cornerTopRight);\n */\n\n\n if (\n isEdgeInArray(cornerBottomLeft,cornerBottomRight, playerEdges) &&\n isEdgeInArray(cornerBottomRight,cornerTopRight, playerEdges) &&\n isEdgeInArray(cornerTopRight,cornerTopLeft, playerEdges) &&\n isEdgeInArray(cornerTopLeft,cornerBottomLeft, playerEdges)\n ) {\n console.log(\"You made a square!\");\n \n gameGraphics.fillStyle = \"#FF4136\";\n gameGraphics.beginPath();\n gameGraphics.rect(cornerBottomLeft[0],CANVAS_H - cornerBottomLeft[1] - CELL_H,CELL_W,CELL_H);\n gameGraphics.stroke();\n gameGraphics.fill();\n\n }\n\n if (\n isEdgeInArray(cornerBottomLeft,cornerBottomRight, computerEdges) &&\n isEdgeInArray(cornerBottomRight,cornerTopRight, computerEdges) &&\n isEdgeInArray(cornerTopRight,cornerTopLeft, computerEdges) &&\n isEdgeInArray(cornerTopLeft,cornerBottomLeft, computerEdges)\n ) {\n console.log(\"Enemy made a square!\");\n \n gameGraphics.fillStyle = \"#0074D9\";\n gameGraphics.beginPath();\n gameGraphics.rect(cornerBottomLeft[0],CANVAS_H - cornerBottomLeft[1] - CELL_H,CELL_W,CELL_H);\n gameGraphics.stroke();\n gameGraphics.fill();\n\n }\n\n\n\n }\n }\n}", "boxesIntersect(x, y, w, h){\n\n\t\t// loop through existing boxes\n\t\tfor(let i = 0; i < this.polygons.length; i ++){\n\n\t\t\t// if the box intersects the existing i-th box...\n\t\t\tif(x < this.polygons[i][1][0] && x + w > this.polygons[i][0][0] && y < this.polygons[i][3][1] && y + h > this.polygons[i][0][1]){\n\n\t\t\t\t// return true\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// if we reach the end of the loop, return false\n\t\treturn false;\n\t}", "function check_for_isolated_squares(squares_pos) {\r\n\t//console.log(squares_pos);\r\n\tlet isolated = false;\r\n\tfor(let i in squares_pos) {\r\n\t\tif(squares_pos[i].x == -1 || squares_pos[i].y == -1) {\r\n\t\t\tconsole.log(\"Isolated square: \" + i);\r\n\t\t\tisolated = true;\r\n\t\t}\r\n\t}\r\n\treturn isolated;\r\n}", "function isInsideCircleOutsideRectangle(point) {\n return (isInsideCircle(point) && isOutsideRectangle(point)) ? 'yes' : 'no';\n}", "intersects(ray, outIR) {\r\n // Are we intersecting bounds, if any?\r\n if(typeof this.bounds !== \"undefined\") {\r\n this.localIR.reset();\r\n if(!this.bounds.intersects(ray, this.localIR)) {\r\n return false;\r\n }\r\n }\r\n \r\n // Actual test inside\r\n const rayMax = ray.max;\r\n for(let i = 0; i < this.children.length; i++) {\r\n this.localIR.reset();\r\n if(this.children[i].intersects(ray, this.localIR)) {\r\n outIR.setOther(this.localIR);\r\n ray.setMax(outIR.t);\r\n }\r\n }\r\n ray.setMax(rayMax);\r\n return outIR.connects;\r\n }", "function isInside(point, polygon){\n\tvar x = point.x, y = point.y;\n\tvar inside = false;\n\n\tfor(var i = 0, j = polygon.length - 1; i < polygon.length; j = i++){\n\t\tvar xi = polygon[i].x, yi = polygon[i].y;\n\t\tvar xj = polygon[j].x, yj = polygon[j].y;\n\n\t\tvar intersect = ((yi > y) != (yj > y))\n && (x < (xj - xi) * (y - yi) / (yj - yi) + xi);\n if (intersect) inside = !inside;\n\t}\n\n\treturn inside;\n}", "testCloseablePolygon() {\n const degree = this.degree;\n const blockSize = this.poleLength;\n const indexDelta = (this.numPoles - this.degree) * blockSize;\n const data = this.packedData;\n const numValuesToTest = degree * blockSize;\n for (let i0 = 0; i0 < numValuesToTest; i0++) {\n if (!Geometry_1.Geometry.isSameCoordinate(data[i0], data[i0 + indexDelta]))\n return false;\n }\n return true;\n }", "contains(x, y) {\n const { _coords } = this\n // Algorithm & implementation thankfully taken from:\n // -> http://alienryderflex.com/polygon/\n\n let i,\n j = this.numVertices - 1\n let oddNodes = 0\n\n for (i = 0; i < this.numVertices; ++i) {\n const ix = _coords[i * 2]\n const iy = _coords[i * 2 + 1]\n const jx = _coords[j * 2]\n const jy = _coords[j * 2 + 1]\n\n if (((iy < y && jy >= y) || (jy < y && iy >= y)) && (ix <= x || jx <= x))\n oddNodes ^= Math.floor(ix + ((y - iy) / (jy - iy)) * (jx - ix) < x) //todo:\n\n j = i\n }\n\n return oddNodes !== 0\n }", "buildCorners(corners) {\n const newBoard = this.init2dArray(this.board.length);\n\n newBoard[0][0] = corners[0]; // top left\n newBoard[0][newBoard.length - 1] = corners[1]; // top right\n newBoard[newBoard.length - 1][newBoard.length - 1] = corners[2]; // bottom right\n newBoard[newBoard.length - 1][0] = corners[3]; // bottom left\n\n while (newBoard[0][0].top !== 0 || newBoard[0][0].left !== 0) newBoard[0][0].ror(); \n while (newBoard[0][newBoard.length - 1].top !== 0 || newBoard[0][newBoard.length - 1].right !== 0) newBoard[0][newBoard.length - 1].ror(); \n while (newBoard[newBoard.length - 1][newBoard.length - 1].bottom !== 0 || newBoard[newBoard.length - 1][newBoard.length - 1].right !== 0) newBoard[newBoard.length - 1][newBoard.length - 1].ror(); \n while (newBoard[newBoard.length - 1][0].bottom !== 0 || newBoard[newBoard.length - 1][0].left !== 0) newBoard[newBoard.length - 1][0].ror(); \n\n return newBoard;\n }", "function isInside(pos, rect){\n return pos.x > rect.x && pos.x < rect.x+rect.width && pos.y < rect.y+rect.height && pos.y > rect.y\n }", "function evaluate_corners () {\r\n\tfor (a = 0; a < 2; a++) {\r\n\t\tif (start[a] < end[a]) {\r\n\t\t\ttop_left[a] = start[a];\r\n\t\t\tbottom_right[a] = end[a];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttop_left[a] = end[a];\r\n\t\t\tbottom_right[a] = start[a];\r\n\t\t}\r\n\t}\r\n\trwidth = bottom_right[0] - top_left[0];\r\n\trheight = bottom_right[1] - top_left[1];\r\n\t// set text\r\n\ttlc.innerHTML = \"Top Left: [\" + top_left[0] + \",\" + top_left[1] + \"]\";\r\n\tbrc.innerHTML = \"Bottom Right: [\" + bottom_right[0] + \",\" + bottom_right[1] + \"]\";\r\n}", "function checkOverlap(x,y){\n\tfor(var i = 0; i < holeArray.length; i++){\n\t\tif(x >= holeArray[i].x-100&&x <= holeArray[i].x+100&&y >= holeArray[i].y - 100&& y<= holeArray[i].y+100){\n\t\t\treturn false;\n\t\t}\n\t}\n\treturn true;\n}", "checkCoordinates(obj) {\n for (let elem of game.coordinates) {\n if (obj.x === elem.x && obj.y === elem.y) {\n if (elem.occupied) {\n return true;\n } else {\n return false;\n }\n }\n }\n }", "function checkAvoidAreasIntersectThemselves() {\n\t\t\t//code adapted from http://lists.osgeo.org/pipermail/openlayers-users/2012-March/024285.html\n\t\t\tvar layer = this.theMap.getLayersByName(this.AVOID)[0];\n\t\t\tvar intersect = false;\n\t\t\tfor (var ftNum = 0; ftNum < layer.features.length; ftNum++) {\n\t\t\t\tvar fauxpoint = [];\n\t\t\t\tvar line = [];\n\t\t\t\tvar led = layer.features[ftNum];\n\n\t\t\t\tvar strng = led.geometry.toString();\n\t\t\t\tvar coord = strng.split(',');\n\t\t\t\t// remove the 'Polygon((' from the 1st coord\n\t\t\t\tcoord[0] = coord[0].substr(9);\n\t\t\t\t// Remove the '))' from the last coord\n\t\t\t\tcoord[coord.length - 1] = coord[coord.length - 1].substr(0, coord[coord.length - 1].length - 2);\n\n\t\t\t\t//convert to lines\n\t\t\t\tfor ( i = 0; i < coord.length; i++) {\n\t\t\t\t\tvar lonlat = coord[i].split(' ');\n\t\t\t\t\tfauxpoint.push(new OpenLayers.Geometry.Point(lonlat[0], lonlat[1]));\n\t\t\t\t\tif (i > 0) {\n\t\t\t\t\t\t// create an array with the 2 last points\n\t\t\t\t\t\tvar point = [fauxpoint[i - 1], fauxpoint[i]];\n\t\t\t\t\t\t//create the line\n\t\t\t\t\t\tline.push(new OpenLayers.Geometry.LineString(point));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Check every line against every line\n\t\t\t\tfor (var i = 1; i < line.length; i++) {\n\t\t\t\t\tfor (var j = 1; j < line.length; j++) {\n\t\t\t\t\t\t// get points of the I line in an array\n\t\t\t\t\t\tvar vi = line[i].getVertices();\n\t\t\t\t\t\t// get points of the J line in an array\n\t\t\t\t\t\tvar vj = line[j].getVertices();\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * the lines must be differents and not adjacents.\n\t\t\t\t\t\t * The end or start point of an adjacent line will be intersect,\n\t\t\t\t\t\t * and adjacent lines never intersect in other point than the ends.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif (i != j && vi[1].toString() != vj[0].toString() && vi[0].toString() != vj[1].toString()) {\n\t\t\t\t\t\t\t// the intersect check\n\t\t\t\t\t\t\tif (line[i].intersects(line[j])) {\n\t\t\t\t\t\t\t\tintersect = true;\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}\n\t\t\t}\n\t\t\treturn intersect;\n\t\t}", "function inRing(pt, ring, ignoreBoundary) {\n var isInside = false;\n if (ring[0][0] === ring[ring.length - 1][0] && ring[0][1] === ring[ring.length - 1][1]) ring = ring.slice(0, ring.length - 1);\n\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n var xi = ring[i][0], yi = ring[i][1];\n var xj = ring[j][0], yj = ring[j][1];\n var onBoundary = (pt[1] * (xi - xj) + yi * (xj - pt[0]) + yj * (pt[0] - xi) === 0) &&\n ((xi - pt[0]) * (xj - pt[0]) <= 0) && ((yi - pt[1]) * (yj - pt[1]) <= 0);\n if (onBoundary) return !ignoreBoundary;\n var intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n (pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi);\n if (intersect) isInside = !isInside;\n }\n return isInside;\n}", "function inRing(pt, ring, ignoreBoundary) {\n var isInside = false;\n if (ring[0][0] === ring[ring.length - 1][0] && ring[0][1] === ring[ring.length - 1][1]) ring = ring.slice(0, ring.length - 1);\n\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n var xi = ring[i][0], yi = ring[i][1];\n var xj = ring[j][0], yj = ring[j][1];\n var onBoundary = (pt[1] * (xi - xj) + yi * (xj - pt[0]) + yj * (pt[0] - xi) === 0) &&\n ((xi - pt[0]) * (xj - pt[0]) <= 0) && ((yi - pt[1]) * (yj - pt[1]) <= 0);\n if (onBoundary) return !ignoreBoundary;\n var intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n (pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi);\n if (intersect) isInside = !isInside;\n }\n return isInside;\n}", "function ringHasHoles(ring, rings, arcs) {\n var bbox = arcs.getSimpleShapeBounds2(ring);\n var sibling, p;\n for (var i=0, n=rings.length; i<n; i++) {\n sibling = rings[i];\n // try to avoid expensive point-in-ring test\n if (sibling && sibling != ring && ringIntersectsBBox(sibling, bbox, arcs)) {\n p = arcs.getVertex(sibling[0], 0);\n if (geom.testPointInRing(p.x, p.y, ring, arcs)) {\n return true;\n }\n }\n }\n return false;\n }", "ContainsRadius(radius) {\n return radius >= this._innerRadius && radius <= this._outerRadius;\n }", "function isInside(pos, rect) {\n return pos.x > rect.x && pos.x < rect.x + rect.width && pos.y < rect.y + rect.height && pos.y > rect.y\n }", "function checkBoxIsWithinBounds(xml, coordinates) {\n\tif (xml.getAttribute('min_lat') * 1 > coordinates.getSouth(),\n\t\txml.getAttribute('min_lon') * 1 > coordinates.getWest(),\n\t\txml.getAttribute('max_lat') * 1 < coordinates.getNorth(),\n\t\txml.getAttribute('max_lon') * 1 < coordinates.getEast()) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "function checkSelfIntersection(polygon) {\n if(polygon.CLASS_NAME==\"OpenLayers.Geometry.Polygon\") {\n // checking only outer ring\n var outer = polygon.components[0].components;\n var segments = [];\n for(var i=1;i<outer.length;i++) {\n var segment= new OpenLayers.Geometry.LineString([outer[i-1].clone(),outer[i].clone()]);\n segments.push(segment);\n }\n for(var j=0;j<segments.length;j++) {\n if(segmentIntersects(segments[j],segments)) {\n return true;\n }\n }\n }\n return false;\n}", "function inRect(x, y, left, top, right, bottom) {\n\t\tif ((x > left) && (x < right) && (y > top) && (y < bottom)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function testGeoPolygonPolygonCase2(geopolygon, polygon) {\n let intersects = false;\n const { numPolygons, polygons } = geopolygon;\n for (let n = 0; n < numPolygons; n++) {\n intersects = testPolygonPolygon(polygon, polygons[n]);\n if (intersects === true) {\n return true;\n }\n }\n return false;\n}", "hitsEdges() {\n return (\n this.coordinates.x - this.radius <= 0 ||\n this.coordinates.x + this.radius >= width ||\n this.coordinates.y - this.radius <= 0 ||\n this.coordinates.y + this.radius >= height\n );\n }", "inBoundary(mouseCoordinates){\n if (this.x <= mouseCoordinates.x && this.y<=mouseCoordinates.y) {\n const boxEdgeX = this.x + this.width;\n const boxEdgeY = this.y + this.height;\n if (mouseCoordinates.x <= boxEdgeX && mouseCoordinates.y <= boxEdgeY) {\n return true;\n }\n }\n return false;\n }", "function contains(a, b) {\n\n var aa = abs(area(a));\n var ab = abs(area(b));\n\n // the containing polygon's area should be larger\n // than the contained polygon\n if (ab > aa) {\n return false;\n }\n\n // all points should be contained\n var pl = b.length;\n for (var i=0; i<pl; i++) {\n if (intest(a, b[i]) >= 0) {\n return false;\n }\n }\n\n // last chance, let's test for intersections\n var al = a.length;\n var bl = b.length;\n for (var ai=0; ai<al; ai++) {\n var astart = a[ai];\n var aend = a[(ai+1) % al];\n for (var bi=0; bi<bl; bi++) {\n var bstart = b[bi];\n var bend = b[(bi+1) % bl];\n\n if (isect(astart, aend, bstart, bend)) {\n return false;\n }\n }\n }\n\n return true;\n}", "function testGeoPolygonGeoPolygonSubCase(geopolygon1, geopolygon2) {\n let intersects = false;\n const { numPolygons, polygons } = geopolygon2;\n for (let n = 0; n < numPolygons; n++) {\n let polygon = polygons[n];\n intersects = testGeoPolygonPolygon(geopolygon1, polygon);\n if (intersects === true) {\n return true;\n }\n }\n return false;\n}", "function checkIfInsideState(textElement, angleRad, halfwidth, halfheight, stateIds, stateId) {\n const bbox = textElement.getBBox();\n const [cx, cy] = [bbox.x + bbox.width / 2, bbox.y + bbox.height / 2];\n\n const points = [\n [-halfwidth, -halfheight],\n [+halfwidth, -halfheight],\n [+halfwidth, halfheight],\n [-halfwidth, halfheight],\n [0, halfheight],\n [0, -halfheight]\n ];\n\n const sin = Math.sin(angleRad);\n const cos = Math.cos(angleRad);\n const rotatedPoints = points.map(([x, y]) => [cx + x * cos - y * sin, cy + x * sin + y * cos]);\n\n let pointsInside = 0;\n for (const [x, y] of rotatedPoints) {\n const isInside = stateIds[findCell(x, y)] === stateId;\n if (isInside) pointsInside++;\n if (pointsInside > 4) return true;\n }\n\n return false;\n }", "isInside(pos, rect){\n return pos.x > rect.x && pos.x < rect.x+rect.width && pos.y < rect.y+rect.height && pos.y > rect.y && (this.lives==0 || this.level == this.levels.length)\n}", "isInsideURect(x, y, rect) {\n if (x >= rect.X1 && x < rect.X2 && y >= rect.Y1 && y < rect.Y2) {\n return true;\n }\n else {\n return false;\n }\n }", "function isRectAOutsideRectB(a, b) {\n if (a.left > b.left + b.width) return true; // to the right\n if (a.left + a.width < b.left) return true; // to the left\n if (a.top > b.top + b.height) return true; // below\n if (a.top + a.height < b.top) return true; // above\n return false;\n }", "function inRing(pt, ring) {\n\t\t\t\tvar isInside = false;\n\t\t\t\tfor (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n\t\t\t\t\tvar xi = ring[i][0], yi = ring[i][1];\n\t\t\t\t\tvar xj = ring[j][0], yj = ring[j][1];\n\t\t\t\t\tvar intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n\t\t\t\t\t(pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi);\n\t\t\t\t\tif (intersect) isInside = !isInside;\n\t\t\t\t}\n\t\t\t\treturn isInside;\n\t\t\t}", "function isInsideCountry(lat, lon, multiPolylineArray) {\n\n let inside = false;\n\n // Loops through each boundary for the current country and determines if point is inside.\n // returns true for the first boundary that the point is found to be inside. Returns false if the point is not inside any.\n for (let i = 0; i < multiPolylineArray.length; i++) {\n\n if (isInside(lat, lon, multiPolylineArray[i])) {\n\n return true;\n\n }\n\n }\n\n return false;\n\n}", "function _inBox(p, s, x) {\n var minX = p[0];\n var minY = p[1];\n\n var maxX = p[0] + s[0];\n var maxY = p[1] + s[1];\n\n return (\n minX <= x[0] && x[0] <= maxX &&\n minY <= x[1] && x[1] <= maxY\n );\n}", "validLocation(piece) {\n let cornerTouch = false;\n let invalidSquare = false;\n const boardIndex = piece.boardIndex;\n piece.cells.forEach(cell => {\n const x = piece.centerX + cell[0];\n const y = piece.centerY + cell[1];\n const center = this.getCells(y, x, boardIndex);\n const sides = [\n this.getCells(y + 1, x, boardIndex),\n this.getCells(y - 1, x, boardIndex),\n this.getCells(y, x + 1, boardIndex),\n this.getCells(y, x - 1, boardIndex),\n ];\n\n const corners = [\n this.getCells(y + 1, x + 1, boardIndex),\n this.getCells(y - 1, x + 1, boardIndex),\n this.getCells(y + 1, x - 1, boardIndex),\n this.getCells(y - 1, x - 1, boardIndex),\n ];\n\n // test non-overlap\n if (center.inactivePiecePlayerIndex !== null) {\n return invalidSquare = true;\n // test if any sides touch the same piece\n } else if (sides.some(side => { return side && side.inactivePiecePlayerIndex === piece.playerIndex })) {\n return invalidSquare = true;\n // test if piece is in corner OR at least one corner touches the same player's corner\n } else if ((x === boardCorners[piece.playerIndex].x && y === boardCorners[piece.playerIndex].y) || corners.some(corner => corner && corner.inactivePiecePlayerIndex === piece.playerIndex)) {\n cornerTouch = true;\n }\n });\n return (!invalidSquare && cornerTouch); // no invalid pieces and one corner touching\n }", "function inRing(pt, ring) {\n\t var isInside = false;\n\t for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n\t var xi = ring[i][0], yi = ring[i][1];\n\t var xj = ring[j][0], yj = ring[j][1];\n\t var intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n\t (pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi);\n\t if (intersect) isInside = !isInside;\n\t }\n\t return isInside;\n\t}", "function isInside(pos, rect) {\r\n return pos.x > rect.x && pos.x < rect.x + rect.width && pos.y < rect.y + rect.height && pos.y > rect.y\r\n }", "function pointsInRect(arrNum) {\n let [x, y, xMin, xMax, yMin, yMax] = arrNum;\n console.log((x >= xMin && x <= xMax && y >= yMin && y <= yMax) ? \"inside\" : \"outside\");\n}", "function inRing (pt, ring) {\n var isInside = false\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n var xi = ring[i][0], yi = ring[i][1]\n var xj = ring[j][0], yj = ring[j][1]\n var intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n (pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi)\n if (intersect) isInside = !isInside\n }\n return isInside\n }", "function isInsideClientRect(clientRect, x, y) {\n var top = clientRect.top,\n bottom = clientRect.bottom,\n left = clientRect.left,\n right = clientRect.right;\n return y >= top && y <= bottom && x >= left && x <= right;\n }", "function containsPoint(square, x, y) {\n let corners = calculateCorners(square);\n return (corners[0] < x && corners[2] > x && corners[1] < y && corners[5] > y);\n\n}", "function _isEdgeInBounds(rect, bounds, edge) {\n var adjustedRectValue = _getRelativeRectEdgeValue(edge, rect);\n return adjustedRectValue > _getRelativeRectEdgeValue(edge, bounds);\n}", "function _isEdgeInBounds(rect, bounds, edge) {\n var adjustedRectValue = _getRelativeRectEdgeValue(edge, rect);\n return adjustedRectValue > _getRelativeRectEdgeValue(edge, bounds);\n}", "intersects(_rect, _insetByX, _insetByY) {\n if (this.isNumber(_insetByX)) {\n _rect = new HRect(_rect);\n if (this.isUndefined(_insetByY)) {\n _insetByY = _insetByX;\n }\n _rect.insetBy(_insetByX, _insetByY);\n }\n return !(this.left > _rect.right || this.right < _rect.left ||\n this.top > _rect.bottom || this.bottom < _rect.top);\n }", "function testPolygonPolygonSubCase(polygon1, polygon2) {\n let intersects = false;\n for (let i = 0, len = polygon2.edges.length; i < len; i++) {\n intersects = testPolygonLine(polygon1, pointsToLine(polygon2.edges[i]));\n if (intersects === true) {\n return true;\n }\n }\n return false;\n}", "function multiPolygonContainsPoint(rings, p) {\n\t var c = false,\n\t ring, p1, p2;\n\n\t for (var k = 0; k < rings.length; k++) {\n\t ring = rings[k];\n\t for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n\t p1 = ring[i];\n\t p2 = ring[j];\n\t if (((p1.y > p.y) !== (p2.y > p.y)) && (p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x)) {\n\t c = !c;\n\t }\n\t }\n\t }\n\t return c;\n\t}", "function fillingPointsInOrOutside(r) {\n for (let index_route = 0; index_route < r.length; index_route++) { //iterating over each point in the route\n pointsInOrOutsideArray[index_route] = isPointInPolygon(r[index_route]);\n }\n}", "function isMouseOutside(){\n var outLeft = (pageX < (elLeft - settings.threshold - settings.offsetLeft)) && (pageX < (tipLeft - settings.threshold - settings.offsetLeft)),\n outRight = (pageX > (elLeft + elWidth + settings.threshold + settings.offsetLeft)) && (pageX > (tipLeft + tipWidth + settings.threshold + settings.offsetLeft)),\n outAbove = (pageY < (elTop - settings.threshold - settings.offsetTop)) && (pageY < (tipTop - settings.threshold - settings.offsetTop)),\n outBelow = (pageY > (elTop + elHeight + settings.threshold + settings.offsetTop)) && (pageY > (tipTop + tipHeight + settings.threshold + settings.offsetTop));\n\n return ( ( outLeft || outRight ) || ( outAbove || outBelow ) );\n }", "function inPoly(x, y, arr) {\r\n var cornersX = [];\r\n var cornersY = [];\r\n\r\n for (i = 1; i < arr.length; i++) {\r\n cornersX[i - 1] = arr[i][0];\r\n cornersY[i - 1] = arr[i][1];\r\n }\r\n\r\n var i, j = cornersX.length - 1;\r\n var oddNodes = false;\r\n\r\n var polyX = cornersX;\r\n var polyY = cornersY;\r\n for (i = 0; i < cornersX.length; i++) {\r\n if (\r\n ((polyY[i] < y && polyY[j] >= y) || (polyY[j] < y && polyY[i] >= y)) &&\r\n (polyX[i] <= x || polyX[j] <= x)\r\n ) {\r\n oddNodes ^=\r\n polyX[i] +\r\n (y - polyY[i]) / (polyY[j] - polyY[i]) * (polyX[j] - polyX[i]) <\r\n x;\r\n }\r\n j = i;\r\n }\r\n\r\n return oddNodes;\r\n}", "function pointInCircleAndOutsideRectangle(args) {\n var x = +args[0],\n y = +args[1],\n output;\n\n var isInCircle = (x - 1) * (x - 1) + (y - 1) * (y - 1) <= (1.5 * 1.5);\n var isOutRectangle = (x >= -1 && x <= 5) && (y <= 1 && y >= -1);\n\n if (isInCircle) {\n output = 'inside circle ' + (isOutRectangle ? 'inside rectangle' : 'outside rectangle');\n } else {\n output = 'outside circle ' + (isOutRectangle ? 'inside rectangle' : 'outside rectangle');\n }\n\n console.log(output);\n}", "function areCoordinatesInBounds (body) {\n var coordsValid = isMarkerInSFRectangleBoundary(parseFloat(body['loc_lat']), parseFloat(body['loc_long']))\n if (coordsValid) {\n console.log('coord in SF: pass')\n return true\n } else {\n console.log('coord in SF: fail')\n return false\n }\n}", "function checkIsInCircleOutRectangle(x, y) {\n return isInCircle(x, y) && !isInRectangle(x, y) ? 'yes' : 'no';\n}", "function solve(args) {\n var x = parseFloat(args[0]),\n y = parseFloat(args[1]);\n\n var inCircle = (x - 1) * (x - 1) + (y - 1) * (y - 1) <= 1.5 * 1.5;\n var insideRectangle = (x >= -1) && (x <= (-1 + 6)) && (y <= 1) && (y >= (1 - 6));\n\n if (inCircle == true && insideRectangle == true) {\n console.log(\"inside circle inside rectangle\");\n } else if (inCircle == false && insideRectangle == false) {\n console.log(\"outside circle outside rectangle\");\n } else if (inCircle == true && insideRectangle == false) {\n console.log(\"inside circle outside rectangle\");\n } else {\n console.log(\"outside circle inside rectangle\");\n }\n}", "function multiPolygonContainsPoint(rings, p) {\n\t var c = false,\n\t ring, p1, p2;\n\t\n\t for (var k = 0; k < rings.length; k++) {\n\t ring = rings[k];\n\t for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n\t p1 = ring[i];\n\t p2 = ring[j];\n\t if (((p1.y > p.y) !== (p2.y > p.y)) && (p.x < (p2.x - p1.x) * (p.y - p1.y) / (p2.y - p1.y) + p1.x)) {\n\t c = !c;\n\t }\n\t }\n\t }\n\t return c;\n\t}", "function insideTriangle(ax, ay, bx, by, cx, cy, px, py) {\n var aX, aY, bX, bY,\n cX, cY, apx, apy,\n bpx, bpy, cpx, cpy,\n cCROSSap, bCROSScp, aCROSSbp;\n\n aX = cx - bx;\n aY = cy - by;\n bX = ax - cx;\n bY = ay - cy;\n cX = bx - ax;\n cY = by - ay;\n apx = px - ax;\n apy = py - ay;\n bpx = px - bx;\n bpy = py - by;\n cpx = px - cx;\n cpy = py - cy;\n\n aCROSSbp = aX * bpy - aY * bpx;\n cCROSSap = cX * apy - cY * apx;\n bCROSScp = bX * cpy - bY * cpx;\n\n return ((aCROSSbp >= 0.0) && (bCROSScp >= 0.0) && (cCROSSap >= 0.0));\n }", "function isIn(x, y, p) {\n if (x >= p.x\n && x <= p.x + p.w\n && y >= p.y\n && y <= p.y + p.h) {\n return true;\n }\n\n return false;\n }", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\t\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\t\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\t\n\t return false;\n\t}", "function intersects(circle, left) {\n var areaX = left.x - circle.x;\n var areaY = left.y - circle.y;\n return areaX * areaX + areaY * areaY <= circle.radius * circle.radius;\n}", "function isInside(containerX, containerY, containerW, containerH, testX, testY) {\n\t\treturn (containerX <= testX) && (containerX + containerW >= testX) &&\n\t \t\t (containerY <= testY) && (containerY + containerH >= testY);\n\t}", "_isInBounds(f, r) {\n return !!(f >=0 && f <= 7 && r >=0 && r <= 7)\n }", "isClear(positions) {\n const minX = min(positions.map(piece => piece.x));\n const maxX = max(positions.map(piece => piece.x));\n const minY = min(positions.map(piece => piece.y));\n const maxY = max(positions.map(piece => piece.y));\n\n if (minX < 0) { return false; }\n if (minY < 0) { return false; }\n if (maxX >= this.width) { return false; }\n if (maxY >= this.height) { return false; }\n\n return !some(positions, (position, a, b) => {\n if (this.getSquare(position.x, position.y)) { return true; }\n });\n }", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\n\t return false;\n\t}", "rectIntersectsGround(x, y, w, h) {\n for (let i = x; i < x + w; i++) {\n for (let j = y; j < y + h; j++) {\n if (this.isGround(i, j)) {\n return true;\n }\n }\n }\n return false;\n }", "function isInside(lat, lon, polylineArray) {\n\n let yPoint = lat;\n let xPoint = lon;\n\n let numberOfCrossings = 0;\n // Connects each point in the polylineArray with the subseqent point via a straight line \n for (let i = 0; i < (polylineArray.length - 1); i++) {\n\n let y1 = polylineArray[i][0];\n let x1 = polylineArray[i][1];\n let y2 = polylineArray[i+1][0];\n let x2 = polylineArray[i+1][1];\n\n \n // Testing by drawing line straight up from point, and determining if it crosses current boundary line. Each crossing is added to tally.\n // An odd number of crossing means point is inside bounds, an even number of crossings means point is outside.\n if (!((x1 < xPoint) && (x2 < xPoint)) && // boundary coords aren't both to the left of the point\n !((x1 > xPoint) && (x2 > xPoint)) && // boundary coords aren't both to the right of the point\n !((y1 < yPoint) && (y2 < yPoint))) { // boundary coords aren't both below the point\n\n // If both points are above, crossing occurred.\n if ((y1 > yPoint) && (y2 > yPoint)) {\n\n numberOfCrossings += 1;\n\n // If both points arent above, determine if intersection point is. If so, crossing occurred.\n } else {\n\n let yIntersect = ((y2 - y1) / (x2 - x1)) * (xPoint - x1) + y1; // y = mx + c (straight line equation)\n\n if (yIntersect > yPoint) {\n\n numberOfCrossings += 1;\n\n }\n\n }\n\n }\n\n }\n\n // If number of crossings is odd, then point is inside\n if (numberOfCrossings % 2 == 1) {\n\n return true;\n\n }\n\n return false;\n\n}", "function inRing(pt, ring) {\n var isInside = false;\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n var xi = ring[i][0], yi = ring[i][1];\n var xj = ring[j][0], yj = ring[j][1];\n var intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n (pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi);\n if (intersect) isInside = !isInside;\n }\n return isInside;\n}", "function inRing(pt, ring) {\n var isInside = false;\n for (var i = 0, j = ring.length - 1; i < ring.length; j = i++) {\n var xi = ring[i][0], yi = ring[i][1];\n var xj = ring[j][0], yj = ring[j][1];\n var intersect = ((yi > pt[1]) !== (yj > pt[1])) &&\n (pt[0] < (xj - xi) * (pt[1] - yi) / (yj - yi) + xi);\n if (intersect) isInside = !isInside;\n }\n return isInside;\n}", "isExoplanetOutsideExclusionZones(primary) {\n var primary_angle = App.arithmetics.angleBetweenMercatorVectors(primary, [0, 0]),\n earth_exclusion = App.targeting.settings.earth_exclusion_deg,\n sun_exclusion = 180 - App.targeting.settings.sun_exclusion_deg;\n\n return primary_angle > earth_exclusion && primary_angle < sun_exclusion;\n }", "function insideOrOut(x, y, z) {\n let isInside = (point, borderBottom, borderTop) => (point >= borderBottom && point <= borderTop);\n //chcek if one point is inside 3D\n if (isInside(x, 10, 50) && isInside(y, 20, 80) && isInside(z, 15, 50)) {\n return \"inside\";\n } else {\n return \"outside\";\n }\n }", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) { return true; }\n\t p = p.next;\n\t } while (p !== a);\n\n\t return false;\n\t}", "function checkGameOver()\r\n{\r\n var lf = pieces[0].polyLocs[0][0][0].x;\r\n var rt = pieces[0].polyLocs[0][0][0].x;\r\n var dn = pieces[0].polyLocs[0][0][0].y;\r\n var up = pieces[0].polyLocs[0][0][0].y;\r\n var fw = pieces[0].polyLocs[0][0][0].z;\r\n var bk = pieces[0].polyLocs[0][0][0].z;\r\n\r\n // Preliminary check\r\n for (var i = 1; i < pieces.length; i++)\r\n {\r\n if (pieces[i].polyLocs[0][0][0].x < lf)\r\n lf = pieces[i].polyLocs[0][0][0].x;\r\n if (pieces[i].polyLocs[0][0][0].x > rt)\r\n rt = pieces[i].polyLocs[0][0][0].x;\r\n if (pieces[i].polyLocs[0][0][0].y < dn)\r\n dn = pieces[i].polyLocs[0][0][0].y;\r\n if (pieces[i].polyLocs[0][0][0].y > up)\r\n up = pieces[i].polyLocs[0][0][0].y;\r\n if (pieces[i].polyLocs[0][0][0].z < fw)\r\n fw = pieces[i].polyLocs[0][0][0].z;\r\n if (pieces[i].polyLocs[0][0][0].z > bk)\r\n bk = pieces[i].polyLocs[0][0][0].z;\r\n }\r\n\r\n if (rt - lf + 1 > level[currLvl].x\r\n || up - dn + 1 > level[currLvl].y\r\n || bk - fw + 1 > level[currLvl].z)\r\n return false;\r\n\r\n // Serious check\r\n for (var pc = 0; i < pieces.length; i++)\r\n for (var i = 0; i < pieces[pc].polyLocs.length; i++)\r\n for (var j = 0; j < pieces[pc].polyLocs[i].length; j++)\r\n for (var k = 0; k < pieces[pc].polyLocs[i][j].length; k++)\r\n if (pieces[pc].polyLocs[i][j][k] != false)\r\n {\r\n if (pieces[i].polyLocs[i][i][i].x < lf)\r\n lf = pieces[i].polyLocs[i][i][i].x;\r\n if (pieces[i].polyLocs[i][i][i].x > rt)\r\n rt = pieces[i].polyLocs[i][i][i].x;\r\n if (pieces[i].polyLocs[i][i][i].y < dn)\r\n dn = pieces[i].polyLocs[i][i][i].y;\r\n if (pieces[i].polyLocs[i][i][i].y > up)\r\n up = pieces[i].polyLocs[i][i][i].y;\r\n if (pieces[i].polyLocs[i][i][i].z < fw)\r\n fw = pieces[i].polyLocs[i][i][i].z;\r\n if (pieces[i].polyLocs[i][i][i].z > bk)\r\n bk = pieces[i].polyLocs[i][i][i].z;\r\n }\r\n\r\n if (rt - lf + 1 > level[currLvl].x\r\n || up - dn + 1 > level[currLvl].y\r\n || bk - fw + 1 > level[currLvl].z)\r\n return false;\r\n\r\n return true;\r\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i && intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}" ]
[ "0.8327274", "0.6895669", "0.66014713", "0.6582443", "0.6263587", "0.6252742", "0.62435335", "0.6223305", "0.60686684", "0.59998775", "0.597992", "0.5922873", "0.58456063", "0.5843642", "0.5826626", "0.5780555", "0.57796186", "0.57775974", "0.5763631", "0.57547235", "0.57253534", "0.57168704", "0.5705832", "0.5696029", "0.5622982", "0.5585781", "0.5584318", "0.5543876", "0.55362093", "0.5526199", "0.55176646", "0.5513159", "0.55026525", "0.5497402", "0.54966563", "0.54803044", "0.5475971", "0.5473234", "0.5472439", "0.5471771", "0.54597545", "0.5455042", "0.5455042", "0.54548633", "0.5445841", "0.5444984", "0.5444043", "0.5436726", "0.5429908", "0.54261225", "0.5420245", "0.5420244", "0.5419567", "0.541209", "0.5389074", "0.53818107", "0.5378828", "0.537162", "0.5366375", "0.53527963", "0.53508246", "0.53498846", "0.5346513", "0.534314", "0.5341771", "0.5339452", "0.53351593", "0.5323118", "0.5322828", "0.5322828", "0.5319117", "0.5307682", "0.53053784", "0.5301218", "0.5297132", "0.52931607", "0.5290948", "0.52898073", "0.52885026", "0.5287836", "0.52820414", "0.52808094", "0.5279853", "0.52739215", "0.52739215", "0.52739215", "0.5270393", "0.52681196", "0.5265631", "0.52605206", "0.52561593", "0.52535564", "0.5244718", "0.5241661", "0.5241661", "0.52409935", "0.52388465", "0.5236847", "0.52358985", "0.52318484" ]
0.83201474
1
Checks if any corners of firstCorners is inside the polygon described by secondCorners
static polygonOutsidePolygon(insideCorners, outsideCorners, start) { for (var tI = 0; tI < insideCorners.length; tI++) { if (Utils.pointInPolygon(insideCorners[tI], outsideCorners, start)) { return false; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static polygonPolygonIntersect(firstCorners, secondCorners) {\n for (var tI = 0; tI < firstCorners.length; tI++) {\n var tFirstCorner = firstCorners[tI],\n tSecondCorner;\n if (tI === firstCorners.length - 1) {\n tSecondCorner = firstCorners[0];\n } else {\n tSecondCorner = firstCorners[tI + 1];\n }\n if (Utils.linePolygonIntersect(tFirstCorner, tSecondCorner, secondCorners)) {\n return true;\n }\n }\n return false;\n }", "static polygonInsidePolygon(insideCorners, outsideCorners, start) {\n for (var tI = 0; tI < insideCorners.length; tI++) {\n let flag = Utils.pointInPolygon(insideCorners[tI], outsideCorners, start);\n if (!flag) {\n return false;\n }\n }\n return true;\n }", "function cornersMatch(corners1, corners2){\n \t \tif (corners1.length != corners2.length){\n \t \t\treturn false;\n \t \t}\n \t \treturn corners1.every((c, index) =>\n \t \t\tc.every((val, i) => val === corners2[index][i]));\n \t }", "function checkInboundsPolygon(corners, myx, myy) {\r\n var areas = [];\r\n var allpositive = true;\r\n var allnegative = true;\r\n var allzero = true;\r\n for (var i=0;i<corners.length;i++) {\r\n var j = i == corners.length - 1 ? 0 : i + 1;\r\n // area of triangle: c[i], c[j], my\r\n areas[areas.length] = myx*corners[j].v - corners[j].u*myy - myx*corners[i].v + corners[i].u*myy + corners[j].u*corners[i].v - corners[i].u*corners[j].v;\r\n if ((areas[areas.length-1]) > inboundsCheckZeroThresh) {\r\n allnegative = false;\r\n allzero = false;\r\n }\r\n if ((areas[areas.length-1]) < -inboundsCheckZeroThresh) {\r\n allpositive = false;\r\n allzero = false;\r\n }\r\n }\r\n return { inbounds: (allnegative || allpositive) && !allzero, areas: areas, allzero: allzero };\r\n }", "doesIntersect(e1x0, e1y0, e1x1, e1y1, e2x0, e2y0, e2x1, e2y1) {\n if (this.isWithinBounds(e1x1, e1y0, e2x0, e2y0, e2x1, e2y1)) { // e1 bottom left corner in e2\n return true;\n } else if (this.isWithinBounds(e1x1, e1y0, e2x0, e2y0, e2x1, e2y1)) { // e1 bottom right corner in e2\n return true;\n } else if (this.isWithinBounds(e1x0, e1y0, e2x0, e2y0, e2x1, e2y1)) { // e1 bottom left corner in e2\n return true;\n } else if (this.isWithinBounds(e1x1, e1y1, e2x0, e2y0, e2x1, e2y1)) { // e1 top right corner in e2\n return true;\n } else if (this.isWithinBounds(e1x0, e1y1, e2x0, e2y0, e2x1, e2y1)) { // e1 top left corner in e2\n return true;\n } else {\n return false\n }\n }", "static linePolygonIntersect(point, point2, corners) {\n for (var tI = 0; tI < corners.length; tI++) {\n var tFirstCorner = corners[tI],\n tSecondCorner;\n if (tI === corners.length - 1) {\n tSecondCorner = corners[0];\n } else {\n tSecondCorner = corners[tI + 1];\n }\n if (Utils.lineLineIntersect(point, point2, { x: tFirstCorner.x, y: tFirstCorner.y }, { x: tSecondCorner.x, y: tSecondCorner.y })) {\n return true;\n }\n }\n return false;\n }", "function testGeoPolygonGeoPolygonSubCase(geopolygon1, geopolygon2) {\n let intersects = false;\n const { numPolygons, polygons } = geopolygon2;\n for (let n = 0; n < numPolygons; n++) {\n let polygon = polygons[n];\n intersects = testGeoPolygonPolygon(geopolygon1, polygon);\n if (intersects === true) {\n return true;\n }\n }\n return false;\n}", "function areBoxesIntersecting(closed) {\n return (a, b) => {\n let [[ax0, ay0], [ax1, ay1]] = a;\n let [[bx0, by0], [bx1, by1]] = b;\n // If open then if both boxes have zero area then they are both \n // considered closed.\n /*if ((ax0 === ax1 || ay0 === ay1) && (bx0 === bx1 || by0 === by1)) {\n closed = true;\n }*/\n // Swap so smaller coordinate comes first\n if (ay0 > ay1) {\n [ay0, ay1] = [ay1, ay0];\n }\n ;\n if (by0 > by1) {\n [by0, by1] = [by1, by0];\n }\n ;\n if (ax0 > ax1) {\n [ax0, ax1] = [ax1, ax0];\n }\n ;\n if (bx0 > bx1) {\n [bx0, bx1] = [bx1, bx0];\n }\n ;\n return closed\n ? (ax0 <= bx1 && ax1 >= bx0 &&\n by0 <= ay1 && by1 >= ay0)\n : (ax0 < bx1 && ax1 > bx0 &&\n by0 < ay1 && by1 > ay0);\n };\n}", "function testPolygonPolygonSubCase(polygon1, polygon2) {\n let intersects = false;\n for (let i = 0, len = polygon2.edges.length; i < len; i++) {\n intersects = testPolygonLine(polygon1, pointsToLine(polygon2.edges[i]));\n if (intersects === true) {\n return true;\n }\n }\n return false;\n}", "function checkIntersection(r1, r2) {\n console.log(`checking instersetions`);\n let intersects = !(\n r2.left > r1.right ||\n r2.right < r1.left ||\n r2.top > r1.bottom ||\n r2.bottom < r1.top\n );\n if (!intersects) {\n console.log(intersects);\n return false;\n }\n\n let leftX = Math.max(r1.x, r2.x);\n let rightX = Math.min(r1.x + r1.w, r2.x + r2.w);\n let topY = Math.max(r1.y, r2.y);\n let bottomY = Math.min(r1.y + r1.h, r2.y + r2.h);\n\n if (leftX < rightX && topY < bottomY) {\n rect4 = new Block(leftX, topY, rightX - leftX, bottomY - topY, true);\n let a1 = r1.area;\n let a2 = r2.area;\n let a3 = rect4.area;\n if (a1 == a2) return true;\n return !(a3 >= a2 || a3 >= a1);\n } else {\n intersects = false;\n return intersects;\n // Rectangles do not overlap, or overlap has an area of zero (edge/corner overlap)\n }\n console.log(intersects);\n return intersects;\n}", "function isInside(x1, y1, x2, y2, x3, y3, x, y) {\n\n /* Calculate area of triangle ABC */\n let A = area(x1, y1, x2, y2, x3, y3);\n\n /* Calculate area of triangle PBC */\n let A1 = area(x, y, x2, y2, x3, y3);\n\n /* Calculate area of triangle PAC */\n let A2 = area(x1, y1, x, y, x3, y3);\n\n /* Calculate area of triangle PAB */\n let A3 = area(x1, y1, x2, y2, x, y);\n\n /* Check if sum of A1, A2 and A3 is same as A */\n return (10 > Math.abs(A - (A1 + A2 + A3)));\n}", "function has_intersection(x1, x2, y1, y2, bound){\n\t \n\t//top edge\n\tvar tx = (bound.min_y - y1) * (x2-x1)/(y2-x2) + x1;\n\tif((tx >= x1 && tx <= x2 || tx <= x1 && tx >= x2) && tx >= bound.min_x && tx <= bound.max_x){\n\t\treturn true;\n\t}\n\t\n\t//bottom edge\n\tvar bx = (bound.max_y - y1) * (x2-x1)/(y2-x2) + x1;\n\tif((bx >= x1 && bx <= x2 || bx <= x1 && bx >= x2) && bx >= bound.min_x && bx <= bound.max_x){\n\t\treturn true;\n\t}\n\t//left edge\n\tvar ly = (bound.min_x - x1) * (y2-x2) / (x2 - x1) + x1;\n\tif((ly >= y1 && ly <= y2 || ly <= y1 && ly >= y2) && ly >= bound.min_y && ly <= bound.max_y){\n\t\treturn true;\n\t}\n\t//right edge\n\tvar ry = (bound.max_x - x1) * (y2-x2) / (x2 - x1) + x1;\n\tif((ry >= y1 && ry <= y2 || ry <= y1 && ry >= y2) && ry >= bound.min_y && ry <= bound.max_y){\n\t\treturn true;\n\t}\n\treturn false;\n}", "isObstacleBetween(corners, tileMap) {\n const enemyCorners = [];\n enemyCorners.push({x: this.x, y: this.y});\n enemyCorners.push({x: this.x + this.w * 0.999, y: this.y});\n enemyCorners.push({x: this.x, y: this.y + this.h * 0.999});\n enemyCorners.push({x: this.x + this.w * 0.999, y: this.y + this.h * 0.999});\n\n for (let i = 0; i < 4; i++) {\n const differenceX = corners[i].x - enemyCorners[i].x;\n const differenceY = corners[i].y - enemyCorners[i].y;\n const distance = Math.sqrt(Math.pow(differenceX, 2) + Math.pow(differenceY, 2));\n\n const ray = new Ray(enemyCorners[i], {x: differenceX, y: differenceY});\n const intersection = ray.castWalls(tileMap.boundaries);\n if (intersection == null)\n continue;\n\n const intersectionDistance = Math.sqrt(Math.pow(intersection.x - enemyCorners[i].x, 2) + Math.pow(intersection.y - enemyCorners[i].y, 2));\n if (intersectionDistance < distance) \n return true; \n \n // enemy corner may be on a boundary, and casting a ray to the boundary will always give no intersection\n // check if there is a intersection by checking first tile square in direction of ray\n if (enemyCorners[i].x == Math.floor(enemyCorners[i].x) || enemyCorners[i].y == Math.floor(enemyCorners[i].y)) {\n let varianceX, varianceY;\n varianceX = differenceX > 0 ? 0.00001 : -0.00001;\n varianceY = differenceY > 0 ? 0.00001 : -0.00001;\n if (differenceX == 0) \n varianceX = 0;\n if (differenceY == 0)\n varianceY = 0;\n let square;\n if (enemyCorners[i].x == Math.floor(enemyCorners[i].x) && enemyCorners[i].y == Math.floor(enemyCorners[i].y)) {\n square = tileMap.array[Math.floor(enemyCorners[i].y + varianceY)][Math.floor(enemyCorners[i].x + varianceX)];\n }\n else if (enemyCorners[i].x == Math.floor(enemyCorners[i].x)) {\n square = tileMap.array[Math.floor(enemyCorners[i].y)][Math.floor(enemyCorners[i].x + varianceX)];\n }\n else if (enemyCorners[i].y == Math.floor(enemyCorners[i].y)) {\n square = tileMap.array[Math.floor(enemyCorners[i].y + varianceY)][Math.floor(enemyCorners[i].x)];\n }\n if (square == 1) { // if a wall\n return true;\n } \n }\n }\n return false;\n }", "function square_square_overlap(rect1, rect2) {\n // rect: pos (lower left), size (w || h)\n // test each corner of one rect against dimension bounds of other\n // crit: if ANY corner is inside BOTH dimensions (x, y)\n\n // 1. calculate each point of rect2\n var list_of_points = [];\n list_of_points.push({x: rect2.pos.x, y: rect2.pos.y});\n list_of_points.push({x: rect2.pos.x + rect2.size, y: rect2.pos.y});\n list_of_points.push({x: rect2.pos.x, y: rect2.pos.y + rect2.size});\n list_of_points.push({x: rect2.pos.x + rect2.size, y: rect2.pos.y + rect2.size});\n\n // test each point, break if any overlap\n for (let i = 0; i < list_of_points.length; i++) {\n const c = list_of_points[i];\n if ((c.x >= rect1.pos.x && c.x <= rect1.pos.x + rect1.size) \n && ( c.y >= rect1.pos.y && c.y <= rect1.pos.y + rect1.size)) {\n return true;\n }\n }\n\n return false;\n}", "static _isInside(a, b, c, x, y) {\n\t\t// If x, y are on the right side of ab, the point is outside the triangle\n\t\tif (Munsell._cross(x - a[0], y - a[1], b[0] - a[0], b[1] - a[1]) < 0) return false;\n\t\t// If x, y are on the right side of bc, the point is outside the triangle\n\t\tif (Munsell._cross(x - b[0], y - b[1], c[0] - b[0], c[1] - b[1]) < 0) return false;\n\t\t// If x, y are on the right side of ca, the point is outside the triangle\n\t\tif (Munsell._cross(x - c[0], y - c[1], a[0] - c[0], a[1] - c[1]) < 0) return false;\n\t\treturn true;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\t\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\t\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\t\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) return true;\n\t p = p.next;\n\t } while (p !== a);\n\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n\t var p = a;\n\t do {\n\t if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t intersects(p, p.next, a, b)) { return true; }\n\t p = p.next;\n\t } while (p !== a);\n\n\t return false;\n\t}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "static intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n GraphicsGeometry.intersects(p, p.next, a, b)) {\n return true;\n }\n p = p.next;\n } while (p !== a);\n return false;\n }", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i && intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function intersectsPolygon(a, b) {\n var p = a;\n do {\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i && intersects(p, p.next, a, b)) return true;\n p = p.next;\n } while (p !== a);\n\n return false;\n}", "function boundsIntersect(bounds1, bounds2) {\n let topEdge1 = bounds1.endY;\n let rightEdge1 = bounds1.endX;\n let leftEdge1 = bounds1.startX;\n let bottomEdge1 = bounds1.startY;\n let topEdge2 = bounds2.endY;\n let rightEdge2 = bounds2.endX;\n let leftEdge2 = bounds2.startX;\n let bottomEdge2 = bounds2.startY;\n\n return (\n leftEdge1 < rightEdge2 &&\n rightEdge1 > leftEdge2 &&\n bottomEdge1 < topEdge2 &&\n topEdge1 > bottomEdge2\n );\n}", "function polygonInPolygon(polygonA, polygonB){\n var inside = true;\n\n for (var i = 0, l = polygonA.length; i < l; i++){\n var p = polygonA[i];\n if (!pointInPolygon(p, polygonB)){\n inside = false;\n break;\n }\n }\n\n return inside;\n }", "function isWithin(pointX, pointY, rectX1, rectX2, rectY1, rectY2) {\n // if all 4 of these conditions are true, then it was inside,\n // otherwise it was outside\n if ((pointX > rectX1) &&\t// to the right of the left edge\n (pointX < rectX2) &&\t// to the left of the right edge\n (pointY > rectY1) &&\t// below the top edge\n (pointY < rectY2)) {\t// above the bottom edge\n return true;\n } else {\n return false;\n }\n\n}", "function _oneOfPointsWithinRect(aX, aY, aW, aH, bX, bY, bW, bH) {\n\t// calculate corner points\n\tvar aTopLeft = {'x':aX, 'y':aY};\n\tvar aTopRight = {'x':aX + aW,'y':aY};\n\tvar aBotLeft = {'x':aX, 'y':aY + aH};\n\tvar aBotRight = {'x':aX + aW,'y':aY + aH};\n\n\tvar aPoints = [aTopLeft, aTopRight, aBotLeft, aBotRight];\n\n\t// go through aPoints from end to start because\n\t// presumed most common collision is player\n\t// with front to something, and just why not\n\tfor (var i = aPoints.length - 1; i >= 0; i--) {\n\t\tvar x = aPoints[i].x;\n\t\tvar y = aPoints[i].y;\n\t\tif (y >= bY && y <= bY + bH) {\n\t\t\t// we have vertical collision\n\t\t\tif (x >= bX && x <= bX + bW) {\n\t\t\t\t// we have horizontal collision as well\n\t\t\t\t// and therefore a total collision\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn false;\n}", "function intersectsPolygon(a, b) {\n\n\tvar p = a;\n\n\tdo {\n\n\t\tif (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i && intersects(p, p.next, a, b)) {\n\n\t\t\treturn true;\n\t\t}\n\n\t\tp = p.next;\n\t} while (p !== a);\n\n\treturn false;\n}", "function isIntersecting(shape1, shape2) {\n // Cut a triangle after another off the shape until they intersect.\n // Challenge is to detect whether the vertices are listed clockwise.\n // whether two triangles intersect can be detected using the sameSide function.\n}", "function intersectsPolygon( a, b ) {\n\n\t\tlet p = a;\n\t\tdo {\n\n\t\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\tintersects( p, p.next, a, b ) ) return true;\n\t\t\tp = p.next;\n\n\t\t} while ( p !== a );\n\n\t\treturn false;\n\n\t}", "function rectIntersects(rect1, rect2) {\r\n return (rect1[TOP_LEFT][X] <= rect2[BOTTOM_RIGHT][X] &&\r\n rect2[TOP_LEFT][X] <= rect1[BOTTOM_RIGHT][X] &&\r\n rect1[TOP_LEFT][Y] <= rect2[BOTTOM_RIGHT][Y] &&\r\n rect2[TOP_LEFT][Y] <= rect1[BOTTOM_RIGHT][Y]);\r\n}", "function intersectsPolygon( a, b ) {\n\n\t\tvar p = a;\n\n\t\tdo {\n\n\t\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t\tp = p.next;\n\n\t\t} while ( p !== a );\n\n\t\treturn false;\n\n\t}", "function intersectsPolygon( a, b ) {\n\n\t\tvar p = a;\n\n\t\tdo {\n\n\t\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t\tp = p.next;\n\n\t\t} while ( p !== a );\n\n\t\treturn false;\n\n\t}", "function intersectsPolygon( a, b ) {\n\n\t\tvar p = a;\n\n\t\tdo {\n\n\t\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\t\treturn true;\n\n\t\t\t}\n\n\t\t\tp = p.next;\n\n\t\t} while ( p !== a );\n\n\t\treturn false;\n\n\t}", "function intersectsPolygon( a, b ) {\n\n\tlet p = a;\n\tdo {\n\n\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\tintersects( p, p.next, a, b ) ) return true;\n\t\tp = p.next;\n\n\t} while ( p !== a );\n\n\treturn false;\n\n}", "isInside(x,y) {\r\n return ((x >= 0) && (x < this.width) && (y >= 0) && (y < this.height));\r\n }", "function intersectsPolygon( a, b ) {\n\n\tvar p = a;\n\n\tdo {\n\n\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t\tp = p.next;\n\n\t} while ( p !== a );\n\n\treturn false;\n\n}", "function intersectsPolygon( a, b ) {\n\n\tvar p = a;\n\n\tdo {\n\n\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t\tp = p.next;\n\n\t} while ( p !== a );\n\n\treturn false;\n\n}", "function intersectsPolygon( a, b ) {\n\n\tvar p = a;\n\n\tdo {\n\n\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t\tp = p.next;\n\n\t} while ( p !== a );\n\n\treturn false;\n\n}", "function intersectsPolygon( a, b ) {\n\n\tvar p = a;\n\n\tdo {\n\n\t\tif ( p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\n\t\t\t\t\t\tintersects( p, p.next, a, b ) ) {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t\tp = p.next;\n\n\t} while ( p !== a );\n\n\treturn false;\n\n}", "function isWithinBounds(rectArr, rect2) {\n var match = null;\n rectArr.forEach(rect1 => {\n var r1 = {\n top: rect1.position().y,\n bottom: rect1.position().y + rect1.height(),\n left: rect1.position().x,\n right: rect1.position().x + rect1.width()\n };\n var r2 = {\n top: rect2.position().y,\n bottom: rect2.position().y + rect2.height(),\n left: rect2.position().x,\n right: rect2.position().x + rect2.width()\n };\n\n if(!(r2.left > r1.right || \n r2.right < r1.left || \n r2.top > r1.bottom ||\n r2.bottom < r1.top)) {\n match = rect1;\n }\n });\n \n return match;\n}", "function contains(a, b) {\n\n var aa = abs(area(a));\n var ab = abs(area(b));\n\n // the containing polygon's area should be larger\n // than the contained polygon\n if (ab > aa) {\n return false;\n }\n\n // all points should be contained\n var pl = b.length;\n for (var i=0; i<pl; i++) {\n if (intest(a, b[i]) >= 0) {\n return false;\n }\n }\n\n // last chance, let's test for intersections\n var al = a.length;\n var bl = b.length;\n for (var ai=0; ai<al; ai++) {\n var astart = a[ai];\n var aend = a[(ai+1) % al];\n for (var bi=0; bi<bl; bi++) {\n var bstart = b[bi];\n var bend = b[(bi+1) % bl];\n\n if (isect(astart, aend, bstart, bend)) {\n return false;\n }\n }\n }\n\n return true;\n}", "function intersect(rect1, rect2) {\n rect1left = rect1.x + 3;\n rect1top = rect1.y + 5;\n rect1right = rect1.x + rect1.width - 3;\n rect1bottom = rect1.y + rect1.height - 5;\n\n rect2left = rect2.x + 3;\n rect2top = rect2.y + 5;\n rect2right = rect2.x + rect2.width - 3;\n rect2bottom = rect2.y + rect2.height - 5;\n\n return !(\n rect1left > rect2right ||\n rect1right < rect2left ||\n rect1top > rect2bottom ||\n rect1bottom < rect2top\n );\n }", "function intersectRects(rect1,rect2){var res={left:Math.max(rect1.left,rect2.left),right:Math.min(rect1.right,rect2.right),top:Math.max(rect1.top,rect2.top),bottom:Math.min(rect1.bottom,rect2.bottom)};if(res.left<res.right&&res.top<res.bottom){return res;}return false;}", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n\n return false;\n }", "_getNearPlaneIntersections(corners, mvpCorners, clippedCorners) {\n // rebuild the clipped corners based on non clipped ones\n const mVPMatrix = this._matrices.modelViewProjection.matrix;\n\n if(clippedCorners.length === 1) {\n // we will have 5 corners to check so we'll need to push a new entry in our mvpCorners array\n if(clippedCorners[0] === 0) {\n // top left is culled\n // get intersection iterating from top right\n mvpCorners[0] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from bottom left\n mvpCorners.push(this._getIntersection(mvpCorners[3], tempCulledCorner2.set(-1, -0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 1) {\n // top right is culled\n // get intersection iterating from top left\n mvpCorners[1] = this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from bottom right\n mvpCorners.push(this._getIntersection(mvpCorners[2], tempCulledCorner2.set(1, -0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 2) {\n // bottom right is culled\n // get intersection iterating from bottom left\n mvpCorners[2] = this._getIntersection(mvpCorners[3], tempCulledCorner1.set(-0.95, -1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from top right\n mvpCorners.push(this._getIntersection(mvpCorners[1], tempCulledCorner2.set(1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(clippedCorners[0] === 3) {\n // bottom left is culled\n // get intersection iterating from bottom right\n mvpCorners[3] = this._getIntersection(mvpCorners[2], tempCulledCorner1.set(0.95, -1, 0).applyMat4(mVPMatrix));\n\n // get intersection iterating from top left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set( -1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n }\n else if(clippedCorners.length === 2) {\n if(clippedCorners[0] === 0 && clippedCorners[1] === 1) {\n // top part of the plane is culled by near plane\n // find intersection using bottom corners\n mvpCorners[0] = this._getIntersection(mvpCorners[3], tempCulledCorner1.set(-1, -0.95, 0).applyMat4(mVPMatrix));\n mvpCorners[1] = this._getIntersection(mvpCorners[2], tempCulledCorner2.set( 1, -0.95, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 1 && clippedCorners[1] === 2) {\n // right part of the plane is culled by near plane\n // find intersection using left corners\n mvpCorners[1] = this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix));\n mvpCorners[2] = this._getIntersection(mvpCorners[3], tempCulledCorner2.set(-0.95, -1, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 2 && clippedCorners[1] === 3) {\n // bottom part of the plane is culled by near plane\n // find intersection using top corners\n mvpCorners[2] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(1, 0.95, 0).applyMat4(mVPMatrix));\n mvpCorners[3] = this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1, 0.95, 0).applyMat4(mVPMatrix));\n }\n else if(clippedCorners[0] === 0 && clippedCorners[1] === 3) {\n // left part of the plane is culled by near plane\n // find intersection using right corners\n mvpCorners[0] = this._getIntersection(mvpCorners[1], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix));\n mvpCorners[3] = this._getIntersection(mvpCorners[2], tempCulledCorner2.set(0.95, -1, 0).applyMat4(mVPMatrix));\n }\n }\n else if(clippedCorners.length === 3) {\n // get the corner that is not clipped\n let nonClippedCorner = 0;\n for(let i = 0; i < corners.length; i++) {\n if(!clippedCorners.includes(i)) {\n nonClippedCorner = i;\n }\n }\n\n // we will have just 3 corners so reset our mvpCorners array with just the visible corner\n mvpCorners = [\n mvpCorners[nonClippedCorner]\n ];\n if(nonClippedCorner === 0) {\n // from top left corner to right\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, 1, 0).applyMat4(mVPMatrix)));\n // from top left corner to bottom\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 1) {\n // from top right corner to left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(0.95, 1, 0).applyMat4(mVPMatrix)));\n // from top right corner to bottom\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(1, 0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 2) {\n // from bottom right corner to left\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(0.95, -1, 0).applyMat4(mVPMatrix)));\n // from bottom right corner to top\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(1,-0.95, 0).applyMat4(mVPMatrix)));\n }\n else if(nonClippedCorner === 3) {\n // from bottom left corner to right\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner1.set(-0.95, -1, 0).applyMat4(mVPMatrix)));\n // from bottom left corner to top\n mvpCorners.push(this._getIntersection(mvpCorners[0], tempCulledCorner2.set(-1 -0.95, 0).applyMat4(mVPMatrix)));\n }\n }\n else {\n // all 4 corners are culled! artificially apply wrong coords to force plane culling\n for(let i = 0; i < corners.length; i++) {\n mvpCorners[i][0] = 10000;\n mvpCorners[i][1] = 10000;\n }\n }\n\n return mvpCorners;\n }", "function intersect (r1, r2) {\n return r1.left < r2.right\n && r1.right > r2.left\n && r1.top < r2.bottom\n && r1.bottom > r2.top;\n }", "isOverlap(other) {\n var rects = [this, other];\n for (var r in rects) {\n var rect = rects[r];\n for (var i = 0; i < 4; i++) {\n var _i = (i + 1) % 4;\n var p1 = rect.points[i];\n var p2 = rect.points[_i];\n var norm = new Vector2D(p2.y - p1.y, p1.x - p2.x);\n var minA = 0, maxA = 0;\n for (var j in this.points) {\n var p = this.points[j];\n var proj = norm.x * p.x + norm.y * p.y;\n if (minA == 0 || proj < minA)\n minA = proj;\n if (maxA == 0 || proj > maxA)\n maxA = proj;\n }\n var minB = 0, maxB = 0;\n for (var j in other.points) {\n var p = other.points[j];\n var proj = norm.x * p.x + norm.y * p.y;\n if (minB == 0 || proj < minB)\n minB = proj;\n if (maxB == 0 || proj > maxB)\n maxB = proj;\n }\n if (maxA < minB || maxB < minA)\n return false;\n }\n }\n return true;\n }", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n }", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n }", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n }", "contains(x, y) {\n const { _coords } = this\n // Algorithm & implementation thankfully taken from:\n // -> http://alienryderflex.com/polygon/\n\n let i,\n j = this.numVertices - 1\n let oddNodes = 0\n\n for (i = 0; i < this.numVertices; ++i) {\n const ix = _coords[i * 2]\n const iy = _coords[i * 2 + 1]\n const jx = _coords[j * 2]\n const jy = _coords[j * 2 + 1]\n\n if (((iy < y && jy >= y) || (jy < y && iy >= y)) && (ix <= x || jx <= x))\n oddNodes ^= Math.floor(ix + ((y - iy) / (jy - iy)) * (jx - ix) < x) //todo:\n\n j = i\n }\n\n return oddNodes !== 0\n }", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom),\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n }", "function isIntersecting (hitbox1, hitbox2) {\n return (\n // top of hitbox1\n hitbox1.y < hitbox2.y + hitbox2.height &&\n // right of hitbox1\n hitbox1.x + hitbox1.width > hitbox2.x &&\n // bottom of hitbox1\n hitbox1.y + hitbox1.height > hitbox2.y &&\n // left of hitbox1\n hitbox1.x < hitbox2.x + hitbox2.width\n );\n}", "isInside(x, y) {\n return !((x < 0) || (x >= this.width) || (y < 0) || (y >= this.height));\n }", "function isCollision(loc1, dim1, loc2, dim2) {\n // Define corner points for both shapes\n // These are the critical points for comparison.\n var firstP1 = loc1;\n var firstP2 = {\n x: loc1.x + dim1.x,\n y: loc1.y + dim1.y\n };\n var secondP1 = loc2;\n var secondP2 = {\n x: loc2.x + dim2.x,\n y: loc2.y + dim2.y\n };\n\n return !(firstP2.x < secondP1.x\n || firstP1.x > secondP2.x\n || firstP2.y < secondP1.y\n || firstP1.y > secondP2.y);\n}", "boxesIntersect(x, y, w, h){\n\n\t\t// loop through existing boxes\n\t\tfor(let i = 0; i < this.polygons.length; i ++){\n\n\t\t\t// if the box intersects the existing i-th box...\n\t\t\tif(x < this.polygons[i][1][0] && x + w > this.polygons[i][0][0] && y < this.polygons[i][3][1] && y + h > this.polygons[i][0][1]){\n\n\t\t\t\t// return true\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// if we reach the end of the loop, return false\n\t\treturn false;\n\t}", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n }", "function collision_detector(first, second) {\r\n var x1 = first.get(\"X\");\r\n var y1 = first.get(\"Y\");\r\n var width1 = first.get(\"width\");\r\n var height1 = first.get(\"height\");\r\n var x2 = second.get(\"X\");\r\n var y2 = second.get(\"Y\");\r\n var width2 = second.get(\"width\");\r\n var height2 = second.get(\"height\");\r\n\r\n if (x2 > x1 && x2 < x1 + width1 || x1 > x2 && x1 < x2 + width2) {\r\n if (y2 > y1 && y2 < y1 + height1 || y1 > y2 && y1 < y2 + height2) {\r\n return true;\r\n }\r\n } else {\r\n return false;\r\n }\r\n}", "function intersects(x1, y1, w1, h1, x2, y2, w2, h2)\n{\nif(y2 + h2 < y1 ||\nx2 + w2 < x1 ||\nx2 > x1 + w1 ||\ny2 > y1 + h1)\n{\nreturn false;\n}\nreturn true;\n}", "function intersects(iTopLeft) {\n return !iViewRects.every(\n function (iViewRect) {\n return !intersectRect(iViewRect,\n {\n x: iTopLeft.x,\n y: iTopLeft.y,\n width: iItemRect.width,\n height: iItemRect.height\n });\n });\n }", "intersects(otherRectangle: _Rectangle): boolean {\n return !(\n this.right < otherRectangle.left ||\n this.bottom < otherRectangle.top ||\n this.left > otherRectangle.right ||\n this.top > otherRectangle.bottom\n )\n }", "inside(x, y) {\n let box = this.bbox();\n return x > box.x && y > box.y && x < box.x + box.width && y < box.y + box.height;\n }", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}", "function intersectRects(rect1, rect2) {\n var res = {\n left: Math.max(rect1.left, rect2.left),\n right: Math.min(rect1.right, rect2.right),\n top: Math.max(rect1.top, rect2.top),\n bottom: Math.min(rect1.bottom, rect2.bottom)\n };\n if (res.left < res.right && res.top < res.bottom) {\n return res;\n }\n return false;\n}", "function doesIntersect(p0, b0, p1, b1) {\r\n\t\tif(p0.x + b0.width - 1 < p1.x) return false;\r\n\t\tif(p0.y + b0.height - 1 < p1.y) return false;\r\n\t\t\r\n\t\tif(p1.x + b1.width - 1 < p0.x) return false;\r\n\t\tif(p1.y + b1.height - 1 < p0.y) return false;\r\n\t\t\r\n\t\treturn true;\r\n\t}", "function content_isInPolygon(coords, x, y) {\n if (coords.length < 6 || coords.length % 2 === 1) {\n return false;\n }\n\n // Number of vertexes in the polygon.\n let nv = coords.length / 2;\n\n // X and Y coordinates of the polygon's vertexes.\n let vx = [], vy = [];\n\n coords.forEach((value, i) => {\n if (i % 2 === 0) {\n vx.push(value);\n }\n else {\n vy.push(value);\n }\n });\n\n let isInside = false;\n\n for (let i = 0, j = nv - 1; i < nv; j = i++) {\n if ((y < vy[i]) !== (y < vy[j]) &&\n x < (vx[j] - vx[i]) * (y - vy[i]) / (vy[j] - vy[i]) + vx[i]) {\n isInside = !isInside;\n }\n }\n\n return isInside;\n }", "static intersects(p1, q1, p2, q2) {\n if ((GraphicsGeometry.equals(p1, q1) && GraphicsGeometry.equals(p2, q2)) ||\n (GraphicsGeometry.equals(p1, q2) && GraphicsGeometry.equals(p2, q1))) {\n return true;\n }\n return GraphicsGeometry.area(p1, q1, p2) > 0 !== GraphicsGeometry.area(p1, q1, q2) > 0 &&\n GraphicsGeometry.area(p2, q2, p1) > 0 !== GraphicsGeometry.area(p2, q2, q1) > 0;\n }", "function intersection(rect1, rect2) {\n return (\n within(rect1.x, rect1.x + rect1.width, rect2.x, rect2.x + rect2.width) &&\n within(rect1.y, rect1.y + rect1.height, rect2.y, rect2.y + rect2.height);\n );\n}", "function processCorners() {\n let c;\n let points = {};\n for (let key in corners) {\n if (corners.hasOwnProperty(key)) {\n c = corners[key];\n for (let i = Math.min(c[0][0],c[1][0]); i <= Math.max(c[0][0],c[1][0]); ++i) {\n for (let j = Math.min(c[0][1],c[1][1]); j <= Math.max(c[0][1],c[1][1]); ++j) {\n //points.push({ x: i, y: j, type: \"point\", color: rooms[key] });\n if (!points[rooms[key]])\n points[rooms[key]] = new Set();\n points[rooms[key]].add([\n i + defaultConfig.xMin,\n defaultConfig.yMax - j\n ]);\n }\n }\n }\n }\n\n return points;\n}", "function containsPoint(square, x, y) {\n let corners = calculateCorners(square);\n return (corners[0] < x && corners[2] > x && corners[1] < y && corners[5] > y);\n\n}", "function evaluate_corners () {\r\n\tfor (a = 0; a < 2; a++) {\r\n\t\tif (start[a] < end[a]) {\r\n\t\t\ttop_left[a] = start[a];\r\n\t\t\tbottom_right[a] = end[a];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttop_left[a] = end[a];\r\n\t\t\tbottom_right[a] = start[a];\r\n\t\t}\r\n\t}\r\n\trwidth = bottom_right[0] - top_left[0];\r\n\trheight = bottom_right[1] - top_left[1];\r\n\t// set text\r\n\ttlc.innerHTML = \"Top Left: [\" + top_left[0] + \",\" + top_left[1] + \"]\";\r\n\tbrc.innerHTML = \"Bottom Right: [\" + bottom_right[0] + \",\" + bottom_right[1] + \"]\";\r\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}", "function intersectRects(rect1, rect2) {\n\tvar res = {\n\t\tleft: Math.max(rect1.left, rect2.left),\n\t\tright: Math.min(rect1.right, rect2.right),\n\t\ttop: Math.max(rect1.top, rect2.top),\n\t\tbottom: Math.min(rect1.bottom, rect2.bottom)\n\t};\n\n\tif (res.left < res.right && res.top < res.bottom) {\n\t\treturn res;\n\t}\n\treturn false;\n}" ]
[ "0.8492463", "0.79719144", "0.7253318", "0.65789825", "0.63777953", "0.63655084", "0.63481855", "0.6331432", "0.63139343", "0.6306006", "0.6234206", "0.6219819", "0.6212392", "0.6202383", "0.61774415", "0.6176543", "0.6176543", "0.6176543", "0.61706597", "0.61549556", "0.61416805", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6140029", "0.6130324", "0.612923", "0.612923", "0.6090209", "0.6083755", "0.6077393", "0.605796", "0.60557055", "0.6040713", "0.60051906", "0.5977743", "0.5975046", "0.5975046", "0.5975046", "0.5967451", "0.596598", "0.5956591", "0.5956591", "0.5956591", "0.5956591", "0.59484005", "0.59382415", "0.5915171", "0.5868534", "0.58610946", "0.586055", "0.5850394", "0.58478945", "0.5837016", "0.5837016", "0.5837016", "0.5836382", "0.58336496", "0.5833074", "0.5821544", "0.5819091", "0.58183765", "0.5804862", "0.5797629", "0.57954794", "0.5791845", "0.5781832", "0.5781619", "0.5778326", "0.5778326", "0.5778326", "0.5778326", "0.5778326", "0.5777451", "0.5777244", "0.57757723", "0.57596356", "0.5756066", "0.5751312", "0.5740154", "0.5734927", "0.5734927", "0.5734927", "0.5734927", "0.5734927", "0.5734927", "0.5734927" ]
0.76078033
2
Remove elements in array if func(element) returns true
static removeIf(array, func) { var tResult = []; array.forEach((element) => { if (!func(element)) { tResult.push(element); } }); return tResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dropElements(arr, func) {\n let myArr = arr.map(func);\n arr.splice(0,myArr.indexOf(true));\n if(arr.length === myArr.length && myArr[myArr.length-1] === false){\n return [];\n }\n return arr;\n}", "function dropElements(arr, func) {\n const index = arr.map(item => func(item) ? true : false).indexOf(true)\n return index > -1 ? arr.slice(index) : [] ;\n}", "function dropElements(arr, func) {\n var limit = arr.length;\n\n for (i = 0; i < limit; i++) {\n var isTrue = func(arr[0]);\n\n if (isTrue) {\n return arr;\n }\n arr.shift();\n }\n\n return arr;\n}", "function dropElements(arr, func) {\n var i;\n for(i =0; i<arr.length; i++){\n if(func(arr[i])){\n break;\n }\n }\n return arr.slice(i,arr.length);\n}", "function dropElements(arr, func) {\n\n for(var i=0; i < arr.length; i++){\n\n if (func(arr[i])) {\n break;\n }\n }\n\n return arr.slice(i);\n}", "function dropElements(arr, func) {\n for (var i = 0; i < arr.length; ) {\n if(!func(arr[i])){\n arr.shift();\n }else{\n break;\n }\n }\n return arr;\n}", "function dropElements(arr, func) {\n // Drop them elements.\n \n var finalArray = [];\n var predicateReturnedTrue = false;\n \n // Convert arguments list into array\n var prototypeArray = arr.slice.call(arguments);\n \n // Harvest array and remaining argument details\n var actualArray = arguments[0];\n var testFn = arguments[1];\n \n for (var x = 0; x < actualArray.length; x++){\n if (predicateReturnedTrue){\n finalArray.push(actualArray[x]);\n } else {\n if (testFn(actualArray[x])){\n finalArray.push(actualArray[x]);\n predicateReturnedTrue = true;\n }\n }\n }\n \n return finalArray;\n}", "function dropElements(arr, func) {\n // Creating args variable from arguments object\n var args = [...arguments];\n // Setting - array of numbers to be checked - equal to first element of args array\n var numArray = args[0];\n /* untiTrue returns passed array with values dropped from front - that return false from \n function from arguments (args[1]) - until an element returns true*/\n function untilTrue(array) {\n // While first element of array returns false from args[1] -- remove first element\n while (!args[1](array[0])) {\n array.shift();\n }\n // return array with removed elements array[0] now returns true for args[1]\n return array;\n }\n \n console.log(untilTrue(numArray));\n }", "function dropElements (arr, func) {\n let idx = 0;\n while (!func(arr[idx])) {\n idx++;\n }\n return arr.slice(idx);\n}", "function dropElements(arr, func) {\n const firstTrueIndex = arr.findIndex(func)\n return firstTrueIndex !== -1 ? arr.slice(firstTrueIndex) : []\n}", "function dropElements(arr, func) {\n let count = 0\n for(let i = 0; i < arr.length; i++){\n if (func(arr[i]) === false){\n count = (arr[i]);\n if(count == 0){\n count = 1\n }\n } \n }\n return arr.slice(count);\n}", "function dropElements(arr, func) {\n let originalLen = arr.length;\n for (let i = 0; i < originalLen; i++) {\n if (func(arr[0])) {\n break;\n } else {\n arr.shift();\n }\n }\n return arr;\n}", "function dropElements(arr, func) {\r\n\tfor (var i in arr) {\r\n\t\tif (func(arr[i])) {\r\n\t\t\treturn arr.slice(i);\r\n\t\t}\r\n\t}\r\n\treturn [];\r\n}", "function dropElements(arr, func) {\n\tconst cases = [...arr];\n\tlet i = 0;\n\twhile (!func(cases[i])) {\n\t\tarr.shift();\n\t\ti = i + 1;\n\t}\n\n\treturn arr;\n}", "function dropElements(arr, func) {\n\twhile (!func(arr[0])) {\n\t\tarr.shift();\n\t}\n\n\treturn arr;\n}", "function dropElements(arr, func) {\n\n // Drop them elements.\n let element = arr.filter(func).shift();\n return element == undefined ? [] : arr.slice(arr.indexOf(element));\n \n }", "function dropElements(arr, func) {\n // Drop them elements.\n var len = arr.length; \n\n for(var i = 0; i < len; i++){\n if(func(arr[0])){\n break;\n } else {\n arr.shift();\n }\n }\n\n return arr;\n\n}", "function dropElements(arr, func) {\n var times = arr.length;\n for(var i = 0; i < times; i++){\n if(func(arr[0])){\n break;\n } else {\n arr.shift();\n }\n }\n return arr;\n }", "function dropElements(arr, func) {\r\n let newArr=[]\r\n for(let i=0;i<arr.length; i++){\r\n console.log(func(arr[i]), arr.slice(i))\r\n if(func(arr[i])){\r\n return arr.slice(i)\r\n \r\n }\r\n }\r\n return newArr\r\n}", "function dropElements1(arr, func) {\n while (arr.length > 0 && !func(arr[0])) {\n arr.shift();\n }\n return arr;\n}", "function myDropElements(arr, func) {\n let indexTrueCondition = arr.length; //3\n return arr.reduce((arrReduce, curr, index)=> {\n const acc = arrReduce;\n if (indexTrueCondition > index) {\n if (func(curr) ) {\n acc.push(curr);\n indexTrueCondition = index;\n }\n } else {\n acc.push(curr);\n }\n return acc;\n }, []);\n}", "function filter(array, fn) {\n let filteredArray = [];\n array.forEach(element => {\n if (!fn(element)) {\n filteredArray.push(element);\n }\n });\n console.log(filteredArray); \n}", "function dropElements(arr, func) {\n // Drop them elements.\n const copy = arr.map(func);\n let slicedArr = [];\n \n copy.find((bool, idx) => {\n if(bool){\n slicedArr = arr.slice(idx);\n } else {\n return null; \n }\n return slicedArr;\n });\n \n return slicedArr;\n }", "function dropIt(arr, func) {\n var times = arr.length;\n for (var i = 0; i < times; i++) {\n if (func(arr[0])) {\n break;\n } else {\n arr.shift(); // delete first elem\n }\n }\n return arr;\n}", "function filter(arr, fn) {\n let newArray = [];\n\n arr.forEach(element => { if (fn(element) === true) {\n newArray.push(element);\n }\n });\n\n return newArray;\n}", "function dropElements(arr, func) {\n var times = arr.length;\n for (var i = 0; i < times; i++) {\n if (func(arr[0])) {\n break;\n } else {\n arr.shift();\n }\n }\n //return arr;\n console.log(arr);\n}", "function filter(arr, fn) {\n let results = [];\n\n // iterate over the array\n // apply the function to that specific element\n // add it to my results array if it's true\n // or leave it out if it's false\n for (let element of arr) {\n let result = fn(element);\n\n if (result == true) {\n results.push(element);\n }\n }\n\n return results;\n}", "arrayRemove(arr, value) {\n return arr.filter(function(ele){\n return ele != value;\n });\n }", "function arrayRemove(arr, value) { \n return arr.filter(function(ele){ \n return ele != value; \n });\n}", "function remove(arr) {\n return arr.filter(e => e)\n}", "function arrayRemove(arr, value) {\n\n return arr.filter(function(ele){\n return ele != value;\n });\n\n}", "function filter(arr, fn) {\n let newArray = [];\n\n for (let elem of arr) {\n if(fn(elem)) newArray.push(elem);\n }\n\n return newArray;\n}", "function remove(array,element){\n return array.filter(e =>e !== element)\n}", "removeValueArray(array, element) {\n array = array.filter(e => e !== element);\n return array;\n }", "function filter(arr, fn) {\n let newArray = [];\n for (i=0; i<arr.length; i++) {\n if(fn(arr[i])===true) {\n newArray.push(arr[i]);\n }\n }\n return newArray;\n}", "function filter(arr, fn) {\n let newArray = [];\n\n for (let i=0; i<arr.length; i++){\n if(fn(arr[i]) === true){\n newArray.push(arr[i]);\n }\n }\n return newArray;\n}", "function filterArray(arr,func){\n return arr.filter(func);\n}", "function dropIt(arr, func) {\r\n return arr.slice(arr.findIndex(func) > -1 ? arr.findIndex(func) : arr.length, arr.length);\r\n}", "function arrayRemove(arr, value) {\n\n return arr.filter(function(ele){\n return ele != value;\n });\n\n }", "function filter(arr, fn) {\n let newArray = [];\n for (const item of arr) {\n if (fn(item)) newArray.push(item);\n }\n return newArray;\n}", "function filter(arr, func){\n let filtered = []\n for(let i=0; i < arr.length; i++){\n if(func(arr[i])){\n filtered.push(arr[i])\n }\n }\n return filtered;\n}", "function arrayRemove(arr, value) { \r\n return arr.filter(function(ele){ \r\n return ele != value; \r\n });\r\n }", "function filter(arr, fn) {\n\tlet test = [];\n\tfor(let item of arr){\n\t\tif(fn(item)){\n\t\t\ttest.push(item);\n\t\t}\n\t\n\t}\n\treturn test;\n}", "function arrayRemove(arr, value) {\n return arr.filter(function(ele){\n return ele != value;\n });\n}", "function filter(arr,fn) {\n const 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}", "function removeAll (f, a) {\n var l = a.length\n var b = new Array(l)\n var j = 0\n for (var x, i = 0; i < l; ++i) {\n x = a[i]\n if (!f(x)) {\n b[j] = x\n ++j\n }\n }\n\n b.length = j\n return b\n}", "function removeAll(f, a) {\n var l = a.length;\n var b = new Array(l);\n var j = 0;\n for (var x, i = 0; i < l; ++i) {\n x = a[i];\n if (!f(x)) {\n b[j] = x;\n ++j;\n }\n }\n\n b.length = j;\n return b;\n}", "function removeArray(a, f)\r\n{\r\n if (typeof(f) === 'function') {\r\n for (var i = a.length-1; 0 <= i; i--) {\r\n if (f(a[i])) {\r\n\ta.splice(i, 1);\r\n }\r\n }\r\n } else {\r\n var i = a.indexOf(f);\r\n if (0 <= i) {\r\n a.splice(i, 1);\r\n }\r\n }\r\n return a;\r\n}", "function filter(arr,fn){\n let filteredArray=[];\n for(let i =0;i<arr.length;i++){\n if(fn(arr[i])===true){\n filteredArray.push(arr[i]);\n }\n }\n return filteredArray;\n}", "function destroyer(arr) {\n var mustDelete = [];\n for (var i = 1; i < arguments.length; i++) {\n mustDelete.push(arguments[i]);\n }\n return arr.filter(function(x) {\n if (mustDelete.indexOf(x) >= 0) {\n return false;\n } else {\n return true;\n }\n });\n}", "function removeAll (f, a) {\n\t var l = a.length\n\t var b = new Array(l)\n\t var j = 0\n\t for (var x, i = 0; i < l; ++i) {\n\t x = a[i]\n\t if (!f(x)) {\n\t b[j] = x\n\t ++j\n\t }\n\t }\n\t\n\t b.length = j\n\t return b\n\t}", "function remove(array, element) {\n\treturn array.filter(el => el !== element);\n}", "function destroyer(arr) {\n let newArr = [...arguments].slice(1);\n return arr.filter(a => !newArr.includes(a));\n}", "function every(array, test) {\n\treturn !(array.some(element => !test(element)))\n}", "function myFilter(array, func) {\n var results = [];\n var i;\n for (i = 0; i < array.length; i++) {\n if (func(array[i])) {\n results.push(array[i]);\n }\n };\n\n return results;\n}", "function bouncer(arr) {\n return arr.filter(Boolean); \n}", "function removeArrayElement(arr, element) {\n return arr.filter(e => e !== element)\n}", "removeElements (elems, checkFunc) {\n // checkFunc returns true if an element is to be deleted\n super.removeElements (elems, checkFunc);\n }", "removeElements (elems, checkFunc) {\n // checkFunc returns true if an element is to be deleted\n super.removeElements (elems, checkFunc);\n }", "function arrayRemove(arr, value) {\n return arr.filter(function(ele){\n return ele !== value;\n });\n }", "function filter(array, func) {\n const newArr = [];\n for (let i = 0; i < array.length; i++) {\n func(array[i]) && newArr.push(func(array[i]));\n }\n return newArr;\n}", "function arrayRemoveByVal(value, arr) {\n return arr.filter(function(ele){return ele != value; });\n}", "function destroyer(arr) {\n var args = Array.prototype.slice.call(arguments);\n for(var i = 0; i < arr.length; i++){\n for(var j = 0; j < args.length; j++){\n if(arr[i] === args[j]){\n delete arr[i];\n }\n }\n }\n \n return arr.filter(Boolean);\n \n }", "function destroy(arr){\n let newArr = Array.from(arguments).slice(1);\n return arr.filter(a => !newArr.includes(a));\n}", "function bouncer(arr) {\r\n return arr.filter(Boolean);\r\n}", "function filter (arr, fn) {\n let newArr = [];\n for (let i = 0, max = arr.length; i < max; i += 1) {\n if (fn(arr[i], i, arr)) {\n newArr.push(arr[i]);\n }\n }\n return newArr;\n}", "function passTesting(arr, func) {\n // let new_array = [];\n\n // Let's try this with a simple for() loop // *** THIS WORKS BUT LETS IMPROVE IT ***\n // for(let i = 0; i < arr.length; i++) {\n // let result = func(arr[i]);\n // if(result == true) {\n // new_array.push(arr[i]);\n // }\n // }\n // return the NEW_ARRAY\n\n // ** This is how we can use higher order functions and improve the above code\n let new_array = arr.filter( elem => func(elem));\n \n console.log(new_array);\n return new_array;\n}", "function myFilter(fn) {\n var res = [];\n for (var i = 0; i < arr.length; i++) {\n var ret = fn(arr[i]);\n if (ret) res.push(arr[i]);\n }\n\n return res;\n}", "function bouncer(arr) {\n return arr.filter((val) => Boolean(val));\n}", "function bouncer(arr) {\n return arr.filter(val => Boolean(val));\n}", "function bouncer(arr) {\n return arr.filter(Boolean);\n}", "function bouncer(arr) {\n return arr.filter(Boolean);\n}", "function bouncer(arr) {\n return arr.filter(Boolean);\n}", "function bouncer(arr) {\n return arr.filter(Boolean);\n}", "function bouncer(arr) {\n return arr.filter(Boolean);\n}", "function remove_from_array(array, match_function){\n\tlet remove = array.map((a,i) => match_function(a,i));\n\tlet s = 0, shift = remove.map(rem => rem ? --s : s);\n\tarray = array.filter(e => match_function(e));\n\treturn shift;\n}", "function filtrarLista(lista, fn) {\n for(let i = 0; i < lista.length; i++) {\n if (!fn(lista[i])) {\n lista.splice(i, 1);\n i--;\n }\n }\n return lista\n}", "function destroyer(arr) {\n\n var args = [].slice.call(arguments);\n args.shift();\n\n arr = arr.filter(function (item) {\n\n for (var i = 0; i < args.length; i++) {\n if (item == args[i]) {\n return false;\n }\n }\n return true;\n\n });\n // Remove all the values\n return arr;\n}", "function bouncer(arr) {\r\n return arr.filter(Boolean);\r\n }", "function every1(array, test){\n return !array.some(element => !test(element));\n}", "function every(array, test) {\n // Your code here.\n return !(array.some(item => !test(item)));\n}", "function destroyer(arr) {\n let array = Array.from(arguments).slice(1);\n return arr.filter(function(item){\n return !array.includes(item)\n });\n }", "function falsyFilter(){\n for(var i = 0; i < mixedArray.length; i++){\n\tif(mixedArray[i] === false)\n {mixedArray.splice(i, 1)};\n\treturn mixedArray;\n }\n}", "function removeElement(arr, ele) {\n let result = [];\n if (arr instanceof Array) {\n if (ele instanceof Array) {\n result = arr.filter(function (item) {\n let isInEle = ele.some(function (eleItem) {\n return item === eleItem;\n });\n return !isInEle;\n });\n } else {\n result = arr.filter(function (item) {\n return item !== ele;\n });\n }\n } else {\n console.log(\"parameter error of function removeElement\");\n }\n return result;\n}", "function removeElement(arr, value) {\n // https://love2dev.com/blog/javascript-remove-from-array/\n return arr.filter(function(ele){\n return ele != value;\n });\n }", "function myFilter(arr, f){\n let ans = [] ;\n\n for(let i = 0; i < arr.length; i++){\n if(f(arr[i]) == true){\n ans.push(arr[i]) ;\n }\n }\n return ans ;\n}", "function removeElementFromArray(arr, element){\n // console.log('hi');\n // printPrettyArrays(arr);\n\n for(var i = 0; i < arr.length; i++){\n // console.log(\"The element is : \" + element + \" the index value is: \" + arr[i]);\n if(element == arr[i]){\n // console.log('****element and index value are equal****');\n arr.splice(i,1);\n return true; // stop looking for element, we found it!\n // printPrettyArrays(arr);\n }\n }\n\n return false;\n\n\n}", "function removeElement(element, array) {\n array.splice($.inArray(element, array), 1);\n}", "function filter (array,fn) {\n return array.filter(fn)\n}", "function destroyer(arr) {\n // Remove all the values\n let args = Array.from(arguments).splice(1);\n return arr.filter(element => !args.includes(element));\n}", "function removeArrayElement(arr,el) {\r\n var r = new Array();\r\n for (var i = 0; i<arr.length;i++) {\r\n if(!(arr[i]==el))\r\n r.push(arr[i]);\r\n }\r\n return r;\r\n }", "function untilTrue(array) {\n // While first element of array returns false from args[1] -- remove first element\n while (!args[1](array[0])) {\n array.shift();\n }\n // return array with removed elements array[0] now returns true for args[1]\n return array;\n }", "function trueValues(arr) {\n\n arr = arr.filter(Boolean);\n}", "function destroyer(arr) {\n\n var args = Array.prototype.slice.call(arguments);\n\n for (var i = 0; i < arguments.length; i++) {\n for (var j = 0; j < args.length; j++) {\n if (arr[i] === args[j]) {\n delete arr[i];\n }\n }\n }\n return arr.filter(Boolean);\n}", "function destroyer(arr) {\n // Remove all the values\n for (var i = 1; i < arguments.length; i++) {\n var skip = arguments[i];\n arr = arr.filter(function (e) {\n return e !== skip;\n });\n }\n return arr;\n}", "function filter(array, f) {\n if (array) {\n var len = array.length;\n var i = 0;\n while (i < len && f(array[i]))\n i++;\n if (i < len) {\n var result = array.slice(0, i);\n i++;\n while (i < len) {\n var item = array[i];\n if (f(item)) {\n result.push(item);\n }\n i++;\n }\n return result;\n }\n }\n return array;\n }", "function destroyer(arr) {\n var r = arguments[0];\n var x = [];\n\n for(var i = 1; i < arguments.length; i++) {\n x.push(arguments[i]);\n }\n\n return r.filter(\n function (z) {\n for (var i = 0; i <x.length; i++) {\n if (x[i] === z){\n return false;\n }\n }\n return true;\n }\n );\n}", "function removeElement(arr, element){\n for(let i = 0; i < arr.length; i++){\n if(arr[i] === element) arr.splice(i, 1);\n }\n return arr;\n}", "function without(arr, value) {\n return arr.filter(function(item) { return item !== value; });\n}", "function removeFromArray(arr, elt) {\n for (var i = arr.length - 1; i >= 0; i--) {\n if (arr[i] == elt) {\n arr.splice(i, 1);\n }\n }\n }" ]
[ "0.80194587", "0.8001144", "0.79558223", "0.7896047", "0.7866592", "0.78441274", "0.7832108", "0.7814228", "0.7762214", "0.7645773", "0.7639379", "0.7630885", "0.76181346", "0.7578574", "0.7533573", "0.7452475", "0.7449164", "0.7414614", "0.73758304", "0.73661035", "0.73556334", "0.7345301", "0.7312721", "0.73119426", "0.7139196", "0.7107967", "0.7063696", "0.7018813", "0.6993864", "0.6984237", "0.6967195", "0.69546276", "0.69436", "0.6930237", "0.69156235", "0.69008505", "0.68936896", "0.68402725", "0.68171865", "0.6808256", "0.6790992", "0.67873377", "0.6776722", "0.6738557", "0.6723029", "0.671743", "0.6714304", "0.6713203", "0.67072284", "0.66964054", "0.6688622", "0.6685414", "0.66783625", "0.66597897", "0.6653005", "0.66410816", "0.66331613", "0.66315085", "0.66315085", "0.6622768", "0.6612796", "0.66030085", "0.657825", "0.6575273", "0.65676016", "0.6565237", "0.65522784", "0.6535299", "0.6487069", "0.6485134", "0.64850754", "0.64850754", "0.64850754", "0.64850754", "0.64850754", "0.6478571", "0.64733374", "0.6463873", "0.64503664", "0.64458686", "0.6445073", "0.6435122", "0.6433189", "0.6432469", "0.64247775", "0.64207315", "0.64194775", "0.6411339", "0.6410048", "0.6401384", "0.64011556", "0.6385943", "0.6383184", "0.63814616", "0.6374231", "0.6356469", "0.6351583", "0.63463986", "0.6340436", "0.6337865" ]
0.8209332
0
Shift the items in an array by shift (positive integer)
static cycle(arr, shift) { var tReturn = arr.slice(0); for (var tI = 0; tI < shift; tI++) { var tmp = tReturn.shift(); tReturn.push(tmp); } return tReturn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ShiftArrayValsLeft(arr){\n}", "function shift(array) {\n var newLen = array.length - 1;\n var value = array[0];\n\n for (var i = 0; i < array.length; i++) {\n array[i] = array[i + 1];\n }\n\n array.length = newLen;\n return value;\n}", "function applyShift(array) {\n\t// create a shifted variable\n\tlet shifted;\n\t// assign it to an expression removing the first element from the array\n\tshifted = array.shift();\n\t// return the shifted variable\n\treturn shifted;\n}", "function shift(arr) {\n var firstElement = arr[0];\n var i;\n for (i = 1; i < arr.length; i++) {\n arr[i - 1] = arr[i];\n }\n arr.length = arr.length - 1;\n return firstElement;\n}", "function arrShift(arr) {\n var newArray = [];\n for (var i = 1; i <= arr.length; i++) {\n if (i <= arr.length - 1) {\n newArray.push(arr[i]);\n } else if (i = arr.length) {\n newArray.push(0);\n }\n\n }\n var arr = newArray;\n return arr;\n\n}", "function shift(array) {\n return [array[0], array.splice(0, 1)][0];\n}", "function shiftLeft(arr){\n arr.push(arr.shift(0));\n return arr;\n}", "function shift(arr) {\n var shifted = splice(arr, 0, 1);\n return {\n array: shifted.array,\n val: arr[0]\n };\n}", "function shift(arr, datum) {\n var ret = arr[0];\n for (var i = 1; i < arr.length; i++) {\n arr[i-1] = arr[i];\n }\n arr[arr.length - 1] = datum;\n return ret;\n }", "function shiftLeft(arr) {\n var temp = 0;\n\n for (i = 0; i < arr.length; i++) {\n temp = arr[i + 1];\n arr[i] = temp\n\n }\n\n arr.pop()\n arr.push(0)\n return arr\n}", "function shiftLeft(array, index) {\n var length = array.length;\n for (var i = index; i < length; ++i) {\n array[i - index] = array[i];\n }\n array.length = length - index;\n}", "function shiftArray(a)\n {\n let tmp = a[0];\n\n for (let j = 1; j < a.length; j++)\n {\n a[a.length-1] = a[j]\n a[j] = tmp;\n tmp = a[a.length-1];\n }\n\n return a;\n }", "function shift(arr){\n console.log(arr.shift())\n console.log(arr)\n}", "function shiftArrayValues(arr){\n for (let i=1;i<arr.length;i++){\n arr[i-1] = arr[i];\n }\n arr[arr.length-1] = 0;\n return arr;\n}", "function WithoutShift(arr){\n for(var i = 0; i < arr.length -1; i++){\n arr[i] = arr[i + 1];\n }\n arr[arr.length - 1] = 0\n console.log(arr);\n}", "function shift(arr) {\r\n let result;\r\n\r\n if (arr.length !== 0) {\r\n result = arr.splice(0, 1).pop();\r\n }\r\n\r\n return result;\r\n}", "function shiftArrayValsLeft(arr){\n for(var i = 1; i < arr.length; i++){\n arr[i - 1] = arr[i]\n }\n arr[arr.length - 1] = 0\n return arr\n}", "function leftShiftOne(arr)\n{\n\tvar tmp = arr[0];\n\tfor (var i = 1; i < arr.length; i++)\n\t{\n\t\tarr[i - 1] = arr[i];\n\t}\n\tarr[arr.length - 1] = tmp;\n}", "function shiftValues(arrX) {\r\n var length = arrX.length\r\n for (var i = 0; i < length - 1; i++) {\r\n arrX[i] = arrX[i + 1];\r\n }\r\n arrX[arrX.length - 1] = 0\r\n console.log(\"\\n\\nShift Array Values: [1, 2, 3]\")\r\n console.log(arrX)\r\n}", "function unshift(arr, val) {\n var i;\n for (i = arr.length - 1; i >= 0; i--) {\n arr[i + 1] = arr[i];\n }\n arr[0] = val;\n return arr.length;\n}", "function shiftArrayValsLeft(arr) {\n for (var ix = 1; ix < arr.length; ix++) {\n arr[ix -1] = arr[ix];\n }\n arr.length--;\n return arr;\n}", "function inssortshift(A) {\n for (var i = 1; i < A.length; i++) { // Insert i'th record\n var j;\n var temp = A[i];\n for (j = i; (j > 0) && (temp < A[j-1]); j--)\n A[j] = A[j-1];\n A[j] = temp;\n }\n}", "function shift() {\n myArray.shift();\n showAray();\n}", "function shiftArrayValsLeft(arr) {\n for (var ix = 1; ix < arr.length; ix++) {\n arr[ix -1] = arr[ix];\n }\n arr[arr.length - 1] = 0;\n return arr;\n}", "function shiftToRight(arr) {\n for ( let j = arr.length -1; j >= 0; j--) {\n arr[j+1] = arr[j];\n }\n return arr;\n}", "function shiftToRight(arr) {\n for ( let j = arr.length -1; j >= 0; j--) {\n arr[j+1] = arr[j];\n }\n return arr;\n}", "function shiftIt(nums){\n\tlet y = 0;\n\n\tfor ( let i = 0 ; i < nums.length ; i ++ ){\n\t\n\t\tif( nums[i] !== 0 ){\n\t\t\t\tlet temp = nums[i]\n\t\t\t\tnums[i] = nums[y]\n\t\t\t\tnums[y] = temp;\n\t\t\t\ty++;\n\t\t\t}\n\t\t}\n\t}", "rotateArr(arr, shift) {\n return _.flatten([arr.slice(-shift), arr.slice(0, -shift)], true);\n }", "function shift(ary) {\n if (ary === []) { return }\n else {\n return ary.splice(0, 1)[0]\n }\n}", "function popShift(arr) {\n let popped = arr.pop();\n let shifted = arr.shift();\n return [shifted, popped];\n}", "function rotate(arr, shiftBy){\n add_index = arr.length;\n for (i=0; i < arr.length; i++){\n if(i !== shiftBy+1){\n arr[add_index] = arr[i];\n add_index = add_index + 1;\n }\n else{\n break;\n }\n }\n for(j = 0; j < shiftBy+1; j ++){\n arr.shift();\n }\n return arr;\n}", "shift() {\n if (this.isEmpty()) {\n console.warn(`Cannot do operation shift on empty list`);\n return;\n }\n\n let temp = this.arr[0];\n\n shiftLeft(this, 0);\n\n --this.lastIndex;\n\n shrinkIfSparse(this);\n\n return temp;\n }", "function popShift(arr) {\n let popped = arr.pop(); // Change this line\n let shifted = arr.shift(); // Change this line\n return [shifted, popped];\n}", "function unshift(array, value) {\n for (var i = array.length; i >= 0; i--) {\n array[i] = array[i -1];\n }\n\n array[0] = value;\n return array.length;\n}", "function shiftIntegers(arrayEntered) {\n let resultingArray = [];\n for (let num of arrayEntered) {\n resultingArray.push(num % 2 === 0 ? num - 1 : num + 1);\n }\n return resultingArray;\n}", "function unshift(array, value) {\n for (var i = array.length; i > 0; i--) {\n array[i] = array[i - 1];\n }\n\n array[0] = value;\n return array.length;\n}", "function shiftToLeft(arr) {\n for ( let i = 0; i < arr.length-1; i++) {\n arr[i] = arr[i+1];\n }\n arr.pop();\n // console.log(arr);\n return arr;\n}", "function shiftToLeft(arr) {\n for ( let i = 0; i < arr.length-1; i++) {\n arr[i] = arr[i+1];\n }\n arr.pop();\n // console.log(arr);\n return arr;\n}", "function popShift(arr) {\n let popped = arr.pop(); // change this line\n let shifted = arr.shift();// change this line\n return [shifted, popped];\n}", "function popShift(arr) {\r\n let popped = arr.pop(); // Change this line\r\n let shifted = arr.shift(); // Change this line\r\n return [shifted, popped];\r\n}", "function rotateArr(arr, shiftBy){\n if(shiftBy === 0){\n return arr;\n } else {\n let numShift = Math.abs(shiftBy) % arr.length;\n for(let i = 0; i < Math.abs(numShift); i++){ \n let tempLast = arr[0];\n for(let j = 0; j < arr.length-1; j++){\n arr[j] = arr[j+1];\n } \n arr[arr.length - 1] = tempLast;\n }\n return arr;\n }\n}", "function shift(array, k){\n let tempOne = 0;\n let tempTwo = 0;\n for(let i = 0; i < 1; i++){\n if(array.length < 2){\n return false;\n }\n tempOne = array[0]; // 0 = 1\n array[0] = array[array.length - 1]; // 1 = 4\n array[array.length - 1] = tempOne; \n }\n return array;\n}", "function shiftToLeft(arr, ind){\n if(arr.length >= 3 && arr[ind+1] && arr[ind+2]){\n var temp1 = arr[ind+1];\n var temp2 = arr[ind+2];\n arr[ind+2] = arr[ind];\n arr[ind+1] = temp2;\n arr[ind] = temp1;\n return arr;\n }else{\n console.log(\"out of bounds\");\n }\n}", "function inssortshift2(A) {\n for (var i = 1; i !== A.length; i++) { // Insert i'th record\n var j;\n var temp = A[i];\n for (j = i; (j !== 0) && (temp < A[j - 1]); j--)\n A[j] = A[j-1];\n A[j] = temp;\n }\n}", "function myUnshift(arr, newVal) {\n let newArr = [newVal];\n for (let i = 0; i < arr.length; i++) {\n newArr.push(arr[i]);\n }\n return newArr;\n}", "function shift(arr, elementIndex, steps) {\n\n let leftIndex = elementIndex - steps, arrLeft = arr.slice(0, leftIndex), arrRight = arr.slice(elementIndex + 1);\n let shiftedArr = arrLeft.concat(arr[elementIndex]).concat(arr.slice(leftIndex, elementIndex)).concat(arrRight);\n\n return shiftedArr;\n }", "function rltshift () {\n}", "function shiftArrayButSkip(a, e) \n{\n let tmp = a[0];\n\n for (let i=0, j = 1; j < a.length && i < a.length; j++, i++)\n {\n \n if (a[j]==e)\n {\n \n tmp = a[a.length-1];\n a[j] = a[i];\n \n //a.pop();\n\n }\n else\n {\n a[a.length-1] = a[j]\n a[j] = tmp;\n tmp = a[a.length-1];\n }\n\n \n \n }\n\n return a;\n}", "function rotateLeft(array){\n var x = array.shift()\n array.push(x)\n console.log(array)\n}", "shiftItems(index) {\n for (let i = index; i < this.length - 1; i++) {\n this.data[i] = this.data[i + 1];\n }\n delete this.data[this.length - 1];\n this.length--;\n }", "function ObservableArray$shift() {\n var originalLength = this.length;\n var removed = Array.prototype.shift.apply(this, arguments);\n if (this.length !== originalLength) {\n this.__ob__.raiseEvents({ type: ArrayChangeType.remove, startIndex: 0, endIndex: 0, items: [removed] });\n }\n return removed;\n}", "function shiftArray(arr, n) {\n if (n==0) return arr;\n if (n<0) return [\n ...arr.slice(arr.length+n, arr.length),\n ...arr.slice(0, arr.length+n),\n ]\n if (n>0) return [\n ...arr.slice(n, arr.length),\n ...arr.slice(0, n),\n ]\n}", "function myUnshift(arr, newVal) {\n return [newVal, ...arr];\n}", "function shift(arr, direction, places) {\n let actualPlaces = 0;\n let startIndex = 0;\n let shiftedArr = [];\n\n if (arr.length > places) {\n actualPlaces = places;\n } else {\n actualPlaces = places % arr.length;\n }\n console.log('actualPlaces: ', actualPlaces);\n\n if (actualPlaces === 0) {\n return arr;\n }\n\n if (direction === 'left') {\n startIndex = actualPlaces;\n arr.splice(startIndex).forEach(element => {\n shiftedArr.push(element);\n });\n arr.splice(0).forEach(element => {\n shiftedArr.push(element);\n });\n\n } else if (direction === 'right') {\n startIndex = arr.length - actualPlaces;\n arr.splice(startIndex).forEach(element => {\n shiftedArr.push(element);\n });\n arr.splice(0).forEach(element => {\n shiftedArr.push(element);\n }); \n }\n\n return shiftedArr;\n}", "function rotateArr(arr, shiftBy){\n  // to rotate to the right once, create temp var that holds the last value, then move all items in the array to the right one index, and then put the temp value at the beginning of the array\n// handles to the right\nif(shiftBy > 0){\n // loops through rotations\n for(var i = 0; i < shiftBy; i++){\n var temp = arr[arr.length - 1];\n // loop moves items to the right one idx\n for(var r = arr.length - 2; r >= 0; r--){\n arr[r+1] = arr[r];\n }\n // put temp val at the beginning\n arr[0] = temp;\n }\n} else {\n var numRotate = Math.abs(shiftBy);\n for(var i = 0; i < numRotate; i++){\n var temp = arr[0];\n for(var r = 0; r < arr.length; r++){\n arr[r-1] = arr[r];\n }\n arr[arr.length - 1] = temp;\n }\n }\n}", "function shiftValues(arr) {\n for ( let i = 0 ; i < arr.length ; i++) {\n console.log('index is ', i);\n if ( i === 0 ) {\n }\n else if ( i === arr.length-1 ) {\n console.log('index is ', i)\n arr[arr.length-1] = 0;\n } \n else {\n arr[i-1] = arr[i]\n }\n }\n console.log(arr);\n}", "function rotate(array) {\n let movingNum = array.shift()\n array.push(movingNum)\n return array\n}", "function cyclicShiftLeft(theArray, positions) {\r\n var temp = theArray.slice(0, positions);\r\n theArray = theArray.slice(positions).concat(temp);\r\n return theArray;\r\n}", "function unshift(arr) {\n var items = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n items[_i - 1] = arguments[_i];\n }\n arr = arr.concat(flatten(items));\n return {\n array: arr,\n val: arr.length\n };\n}", "function insertShiftArray1([...arr], num) {\n let middleIndex = Math.ceil(arr.length / 2);\n arr.splice(middleIndex, 0, num);\n return arr;\n}", "function rotate(arr, shiftBy){\n var temp;\n //Shift Left\n if (shiftBy < 0){\n for (var i = shiftBy; i < 0; i++){\n for (var j = 0; j < arr.length-1; j++){\n if (j == 0){\n temp = arr[j];\n arr[j] = arr[j+1];\n }\n else{\n arr[j] = arr[j+1];\n }\n // console.log(arr[i]);\n }\n arr[arr.length-1] = temp;\n }\n }\n //Shift Right\n else{\n for (var i = shiftBy; i > 0; i--){\n for (var j = arr.length-1; j > 0; j--){\n if (j == arr.length-1){\n temp = arr[j];\n arr[j] = arr[j-1];\n }\n else{\n arr[j] = arr[j-1];\n }\n // console.log(arr[i]);\n }\n arr[0] = temp;\n }\n }\n console.log(arr);\n}", "static rotateLeft(array, n) {\n // todo: 🙌 do magic !\n // get the desired shifted elements in separate array \n let shiftedElements = []\n for (let i = 0; i < n; i++) {\n shiftedElements[i] = array[i]\n }\n // do the shifts here \n let arrayLength = array.length\n let shiftedArrayIndex = 0\n for (let j = 0; j < arrayLength; j++) {\n if (j < arrayLength - n) {\n array[j] = array[j + n]\n }\n else {\n array[j] = shiftedElements[shiftedArrayIndex]\n shiftedArrayIndex++\n }\n }\n return array\n }", "shift() {\n return this.removeAt(0);\n\n }", "function rotateArrL(arr,shiftBy){\n var len = arr.length;\n arr.length = arr.length + shiftBy;\n \n for (var i = 0; i < shiftBy; i++){\n arr[len+i] = arr[i];\n }\n for (var i = 0; i < arr.length; i++){\n arr[i] = arr[i+shiftBy];\n }\n arr.length = len;\n return arr\n}", "function dropZero(arr){\n arr.shift(arr[0]);\n arr.push(0);\n document.getElementById(\"2\").innerHTML = arr;\n return arr;\n}", "shift() {\n return this.splice(0, 1)[0];\n }", "function moveToBack (inArr, outArr, numOfElements) {\n for (var i = 0; i < numOfElements; i++) {\n var temp = inArr.shift();\n outArr.push(temp);\n }\n}", "shift() {\n return this.removeAt(0);\n }", "function shiftArr(arrayObj) {\n if (Array.isArray(arrayObj) && (arrayObj.length == 4)) {\n for (var i = 0; i < 3; i++) {\n for (var j = 0; j < 7; j++) {\n for (var k = 0; k < 48; k++) {\n arrayObj[i][j][k] = arrayObj[i + 1][j][k];\n }\n }\n }\n }\n\n}", "shift(x, y) {\n this.x += x;\n this.y += y;\n }", "shift(delta) { start+=delta }", "shift(delta) { start+=delta }", "function rotateArr(arr,shiftBy){\n shiftBy %= arr.length;\n if(shiftBy == 0){return arr}\n else if(shiftBy > 0){\n for(var i = arr.length; i > 0; i--){\n arr[i] = arr[i-1];\n }\n arr[0] = arr.pop();\n return rotateArr(arr,shiftBy-1);\n }\n else if(shiftBy < 0){\n arr.push(arr[0]);\n for(var i = 0; i < arr.length-1; i++){\n arr[i] = arr[i+1];\n }\n arr.pop();\n return rotateArr(arr,shiftBy+1);\n }\n}", "function unshift(array, ...values) {\n values.forEach(function (value) {\n array.splice(0, 0, value)\n });\n // or shorter (Nick Johnson):\n // arr.splice(0, 0, ...values);\n\n return array.length;\n}", "function steamrollArray(arr) {\n \n var output = [],\n iteration = 1;\n \n // iterate as long as arr has length\n while (arr.length > 0) {\n \n console.log('--------- Loop ' + iteration + ' ---------');\n console.log(' Input: ', arr);\n \n // capture 1st element of innput array\n var elem = arr.shift();\n console.log(' Shifting: ', elem);\n console.log(' Leftovers: ', arr);\n \n if (Array.isArray(elem)) {\n // elem = array, reassign arr, adding \n arr = elem.concat(arr);\n } else {\n // elem != array, push elem to output\n output.push(elem);\n }\n \n console.log(' New array: ', arr);\n console.log('Output arr: ', output);\n \n // increment iteration - only used for console output\n iteration += 1;\n \n }\n \n return output;\n \n}", "function steamrollArray(arr) {\r\n// Create a copy of the array\r\nvar flat = [].concat(arr);\r\n\r\nfor(var i = 0; i < flat.length; i++) {\r\n if(Array.isArray(flat[i])) {\r\n // Replace with the items and backtrack 1 position\r\n // Use ES6 spread operator to make code simpler\r\n flat.splice(i, 1, ...flat[i--]);\r\n }\r\n}\r\n\r\n return flat;\r\n}", "shift() {\n let ret = this[0];\n for (let i = 0; i < __classPrivateFieldGet(this, _length); ++i)\n this[i] = this[i + 1];\n delete this[__classPrivateFieldSet(this, _length, +__classPrivateFieldGet(this, _length) - 1)];\n return ret;\n }", "function unshift(array, args) {\n array.splice(0, 0, ...Object.values(arguments).slice(1));\n return array.length;\n}", "shift() {\n if (this.length === 0) return undefined;\n let itemToShift = this.head.val;\n this.head = this.head.next;\n this.length -= 1;\n if (this.length === 0) this.tail = null;\n return itemToShift;\n }", "shift() {\n const ret = [].shift.call(this);\n this._registerAtomic('$set', this);\n this._markModified();\n return ret;\n }", "shift() {\n const ret = [].shift.call(this);\n this._registerAtomic('$set', this);\n this._markModified();\n return ret;\n }", "function slasher(arr, howMany) {\n var counter = 0;\n while (counter < howMany) {\n arr.shift(0); //shift method mutates original array. \n counter++;\n }\n return arr;\n}", "function demo() {\n let array1 = [1, 2, 3];\n\n let firstElement = array1.shift();\n\n console.log(array1);\n // expected output: Array [2, 3]\n\n console.log(firstElement);\n // expected output: 1\n\n removingAnElementFromAnArray();\n usingShiftInWhileLoop();\n}", "function applyUnshift(array, element) {\n\t// add the element to the front of the array\n\tarray.unshift(element);\n\t// return the array\n\treturn array;\n}", "function rightShift_(x,n) {\n var i;\n var k=Math.floor(n/bpe);\n if (k) {\n for (i=0;i<x.length-k;i++) //right shift x by k elements\n x[i]=x[i+k];\n for (;i<x.length;i++)\n x[i]=0;\n n%=bpe;\n }\n for (i=0;i<x.length-1;i++) {\n x[i]=mask & ((x[i+1]<<(bpe-n)) | (x[i]>>n));\n }\n x[i]>>=n;\n }", "shift() {\n if (this.isEmpty()) {\n throw new RangeError('Ring buffer is empty.');\n }\n const result = this.get(this.begin);\n this.set(this.begin, undefined);\n this.begin = this.wrap(this.begin + 1);\n return result;\n }", "shift(x, y)\n\t{\n\t\tthis.x += x;\n\t\tthis.y += y;\n\t}", "function unshift(arr){\n console.log(arr.unshift('bananana','pansies'))\n console.log(arr)\n}", "function task14_16_13(){\n var arr = [];\n arr.unshift(\"keyboard\");\n arr.unshift(\"mouse\");\n arr.unshift(\"printer\");\n arr.unshift(\"monitor\");\n document.write(\" TOTAL \");\n document.write(\"<br>\");\n document.write(\"Array : \" + arr);\n\n document.write(\"<br>\");\n document.write(\" Removal \");\n document.write(\"<br>\");\n document.write(\"Array : \" + arr);\n document.write(\"<br>\");\n arr.shift(\"keyboard\");\n document.write(\"Array : \" + arr);\n document.write(\"<br>\");\n arr.shift(\"mouse\");\n document.write(\"Array : \" + arr);\n document.write(\"<br>\");\n arr.shift(\"printer\");\n document.write(\"Array : \" + arr);\n document.write(\"<br>\");\n arr.shift(\"monitor\");\n document.write(\"<br>\");\n}", "unshift(...items) {\n const newThis = [...items, ...this];\n const newLength = newThis.length;\n for (let i = 0; i < newLength; i++) {\n if (i < this.length) {\n this[i] = newThis[i];\n }\n else {\n this.push(newThis[i]);\n }\n }\n return newLength;\n }", "shift() {\n if(!this.head) throw new Error(\"no items in list\");\n let shiftNode = this.head;\n\n if(this.head.next){\n this.head = shiftNode.next;\n }else {\n this.head = null;\n this.tail = null;\n }\n\n this.length--;\n\n return shiftNode.val;\n }", "function rotate(array, steps) {\n var i = Math.abs(steps);\n while (i > 0) {\n var x;\n if (steps < 0) {\n x = array.shift();\n array.push(x);\n } else if (steps > 0) {\n x = array.pop();\n array.unshift(x);\n }\n i--;\n }\n}", "function insertShiftArray(array, value) {\n const newArray = [];\n let midpoint = array.length / 2;\n\n if (array.length % 2 !== 0) {\n midpoint = midpoint + 0.5;\n }\n\n for (let i = 0; i < midpoint; i++) {\n newArray[i] = array[i];\n }\n\n newArray[newArray.length] = value;\n\n for (let i = midpoint; i < array.length; i++) {\n newArray[i + 1] = array[i];\n }\n return newArray;\n}", "function rotLeft(a, d) {\n while (d > 0) {\n let element = a.shift(); //will get the 1st element of the array a\n a.push(element); //this adds the element we shifted back to the array\n d--; //decrease counter\n }\n return a;\n}", "function shiftLeft(o,n) {\r\n var r = [];\r\n if(n < 0) bnpRShiftTo(o,-n,r); else bnpLShiftTo(o,n,r);\r\n return r;\r\n}", "shift(delta) {\n this.start+=delta\n this.end+=delta\n }", "shift(delta) {\n this.start+=delta\n this.end+=delta\n }", "function swaptocenter(arr){\n for(var i=0;i<arr.length/2;i+=2){\n var temp=arr[i];\n arr[i]=arr[arr.length-1-i];\n arr[arr.length-1-i]=temp;\n }\n return arr;\n}", "function a(t,i){for(;i+1<t.length;i++)t[i]=t[i+1];t.pop()}", "function demovingShift(arr, shift) {\n var joined = arr.join('')\n\n var alphLower = 'abcdefghijklmnopqrstuvwxyz'.split('').reverse();\n var alphUpper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('').reverse();\n var letter;\n var howManyMove = shift;\n var decoded = '';\n\n for (var i = 0; i < joined.length; i++) {\n letter = joined[i];\n\n if (alphUpper.indexOf(letter) > -1){\n decoded+= alphUpper[(alphUpper.indexOf(letter) + howManyMove) % 26]\n } else if (alphLower.indexOf(letter) > -1){\n decoded+= alphLower[(alphLower.indexOf(letter) + howManyMove) % 26]\n } else {\n decoded+= letter;\n }\n howManyMove++\n }\n return decoded;\n}" ]
[ "0.80267024", "0.78786844", "0.77921", "0.7740542", "0.7702695", "0.7626341", "0.7562594", "0.74453676", "0.7431043", "0.74150217", "0.73147315", "0.7275517", "0.72440416", "0.7216972", "0.7190529", "0.7160268", "0.71554637", "0.71386373", "0.712193", "0.7106804", "0.7022292", "0.69923556", "0.6988032", "0.696413", "0.6918165", "0.6918165", "0.6915444", "0.6908876", "0.69038373", "0.6864146", "0.68600184", "0.68454593", "0.68399096", "0.6831731", "0.68164676", "0.6813933", "0.68135035", "0.68135035", "0.67976415", "0.67926043", "0.67771095", "0.6773971", "0.6773565", "0.6740992", "0.67344284", "0.66834843", "0.66723853", "0.6661687", "0.66384846", "0.6590729", "0.65750873", "0.65516126", "0.6495206", "0.64842284", "0.64728856", "0.6457718", "0.6455041", "0.6433354", "0.64302146", "0.64018226", "0.63709295", "0.63506013", "0.6346343", "0.6333838", "0.63235873", "0.63221294", "0.63177925", "0.62767017", "0.6272221", "0.62481546", "0.6227867", "0.6227867", "0.6227557", "0.6225325", "0.6179181", "0.6164089", "0.6153867", "0.61361706", "0.60871965", "0.6069999", "0.6069999", "0.6059657", "0.60380024", "0.6030569", "0.60238314", "0.6017828", "0.5987581", "0.59802127", "0.5975362", "0.59684813", "0.5957868", "0.5939467", "0.5936349", "0.59243846", "0.5871712", "0.584591", "0.584591", "0.5784315", "0.57746136", "0.5767536" ]
0.6637945
49
Returns in the unique elemnts in arr
static unique(arr, hashFunc) { var tResults = []; var tMap = {}; for (var tI = 0; tI < arr.length; tI++) { if (!tMap.hasOwnProperty(arr[tI])) { tResults.push(arr[tI]); tMap[hashFunc(arr[tI])] = true; } } return tResults; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function unique(arr){\n return arr.filter(function(value, index, self){ return self.indexOf(value) === index; });\n }", "function unique(arr) {\n\treturn Array.from(new Set(arr)); //makes an array out of the the set that was made with the initial arr\n\t// this is a cool trick;\n}", "function uniqueArray (arr){\n return arr.filter(function(x,i,ar){\n return ar.indexOf(x) == i;\n });\n}", "function uniqNoSet(arr) {\n \tvar ret = [];\n \n \tfor (var i = 0; i < arr.length; i++) {\n \t\tif (ret.indexOf(arr[i]) === -1) {\n \t\t\tret.push(arr[i]);\n \t\t}\n \t}\n \n \treturn ret;\n }", "function uniq(arr) {\n\treturn arr.filter(function (el, i) {\n\t\treturn arr.indexOf(el, i + 1) == -1;\n\t});\n}", "function uniteUnique(arr) {\nlet args = Array.protoype.slice.call(arguments);\nreturn args.reduce(function(a,b) {\n\nreturn a.concat(b.filter(function(subArray) {\n\nreturn a.indexOf(subArray) <0;\n\n}));\n});\n}", "function uniqNoSet(arr) {\n\t\tvar ret = [];\n\n\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\t\tret.push(arr[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n }", "function uniqSet(arr) {\n \tvar seen = new Set();\n \treturn arr.filter(function (el) {\n \t\tif (!seen.has(el)) {\n \t\t\tseen.add(el);\n \t\t\treturn true;\n \t\t}\n \t});\n }", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}", "function uniqSet(arr) {\n\t\tvar seen = new Set();\n\t\treturn arr.filter(function (el) {\n\t\t\tif (!seen.has(el)) {\n\t\t\t\tseen.add(el);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t}", "function uniq(arr) {\n\t var theSet = new ExportedSet(arr);\n\t var result = new Array(theSet.size);\n\t var index = -1;\n\t theSet.forEach(function (value) {\n\t result[++index] = value;\n\t });\n\t return result;\n\t}", "function uniteUnique(...arr) {\n //join all elements in arrays provided in function argument as top-level elements, regardless of uniqueness\n var unitedArr = [...arr].reduce(function(unite, element){\n return unite.concat(element);\n }, []);\n //keep only the first occurence of certain element in the array\n return unitedArr.filter((element, index, self) => index === self.indexOf(element));\n}", "function uniteUnique(arr) {\n var newArray = [].concat.apply([], arguments);\n var result = newArray.reduce((accumulator, current) => {\n \n if (accumulator.indexOf(current) === -1) {\n accumulator.push(current);\n }\n return accumulator;\n }, []);\n\n return result;\n \n}", "function unique2(arr) {\r\n return Array.from(new Set(arr));\r\n}", "function uniqueArray(elem)\n{\n\tvar n = {},r=[];\n\tfor(var i = 0; i < elem.length; i++) \n\t{\n\t\tif (!n[elem[i]]) \n\t\t{\n\t\t\tn[elem[i]] = true; \n\t\t\tr.push(elem[i]); \n\t\t}\n\t}\n\treturn r;\n}", "function uniteUnique(arr) {\n\n\t// use a set as handily keeps insertion order, and unique elems only\n\tlet result = new Set();\n\tfor (let prop in arguments) {\n\t\t\n\t\targuments[prop].forEach( function(element, index) {\n\t\t\tresult.add(element);\n\t\t\t//console.log(result);\n\t\t});\n\t \n\t}\n return Array.from(result);\n}", "function uniq (arr) {\n return arr.reduce((acc, current) => {\n\n if (!acc.includes(current)) {\n acc.push(current);\n }\n return acc;\n }, []);\n}", "function unique(arr) {\n var n = []; //一个新的临时数组\n //遍历当前数组\n for (var i = 0; i < arr.length; i++) {\n //如果当前数组的第i已经保存进了临时数组,那么跳过,\n //否则把当前项push到临时数组里面\n if (!_contains(n, arr[i])) n.push(arr[i]);\n }\n return n;\n}", "function unique(arr) {\n return arr.filter(function (item, index) {\n return arr.indexOf(item) === index;\n });\n}", "function nonUniqueElements(arr){\n\tvar arrlen = arr.length;\n\tvar i = 0;\n\tvar nonUniqueArr = [];\n\t//cycle through each array element,\n\tfor (i; i < arrlen; i++){\n\t\tvar j =0;\n\t\t//compare each element to each \n\t\tfor (j; j < arrlen; j++){\n\t\t\tif (j === i){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//compare each value and if i is not unique then add toooo\n\t\t\tif (arr[i]=== arr[j]){\n\t\t\t\tnonUniqueArr.push(arr[i]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\tconsole.log(nonUniqueArr);\n\treturn nonUniqueArr;\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\t});\n}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function uniq(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function unique(arr) {\n\t var u = {}, a = [];\n\t for(var i = 0, l = arr.length; i < l; ++i){\n\t if(!u.hasOwnProperty(arr[i])) {\n\t a.push(arr[i]);\n\t u[arr[i]] = 1;\n\t }\n\t }\n\t return a;\n\t}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n}", "function uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t});\n}", "function uniqueElements(arr) {\n var uniqueArray = [];\n for (var i = 0; i < arr.length; i++) {\n var timesFound = 0;\n for (var j = 0; j < uniqueArray.length; j++) {\n if (arr[i] === uniqueArray[j]) {\n timesFound++;\n }\n }\n \n if (timesFound < 1) {\n uniqueArray.push(arr[i]);\n }\n }\n \n return uniqueArray;\n}", "function uniq(arr) {\n var theSet = new __WEBPACK_IMPORTED_MODULE_0_pouchdb_collections__[\"b\" /* Set */](arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function uniqSetWithForEach(arr) {\n \tvar ret = [];\n \n \t(new Set(arr)).forEach(function (el) {\n \t\tret.push(el);\n \t});\n \n \treturn ret;\n }", "function manual_uniquearr(array){\r\n return $.grep(array,function(el,index){\r\n return index == $.inArray(el,array);\r\n });\r\n}", "function uniteUnique(arr) {\n var finalArray = [];\n // Making the function work with any number of arguments, not just three\n for(var i = 0; i < arguments.length; i++){\n var arrayArguments = arguments[i];\n // loops through the array at hand \n for(var j = 0; j < arrayArguments.length; j++){\n var indexValue = arrayArguments[j];\n if(finalArray.indexOf(indexValue) < 0){\n finalArray.push(indexValue);\n }\n }\n }\n return finalArray;\n }", "function uniteUnique(arr) {\n\tconst args = [...arguments];\n\n\tconst unifiedArr = [].concat(...args);\n\n\t//for loop could work too\n\t//Sets can only contain one of each element\n\treturn [...new Set(unifiedArr)];\n}", "function uniqSetWithForEach(arr) {\n\t\tvar ret = [];\n\n\t\t(new Set(arr)).forEach(function (el) {\n\t\t\tret.push(el);\n\t\t});\n\n\t\treturn ret;\n\t}", "function uniteUnique(...arr) {\n const array = arr.flat();\n return [...new Set(array)];\n}", "function uniq$1(arr) {\n\t var theSet = new ExportedSet$1(arr);\n\t var result = new Array(theSet.size);\n\t var index = -1;\n\t theSet.forEach(function (value) {\n\t result[++index] = value;\n\t });\n\t return result;\n\t}", "function uniqueArr(a) {\n var temp = [], i;\n for (i = 0; i < a.length; i += 1) {\n if (!contains(temp, a[i])) {\n temp.length += 1;\n temp[temp.length - 1] = a[i];\n }\n }\n return temp;\n\n }", "function uniq(arr) {\n let newArr = [];\n for (let i = 0; i < arr.length; i++) {\n if (newArr.indexOf(arr[i]) === -1) {\n newArr.push(arr[i])\n }\n }\n return newArr\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}", "function uniteUnique(arr) {\n \n var result = [];\n \n // the number of arguments are unknown\n // use a for loop to iterate over all the arguments and push them into result\n for (var i = 0; i < arguments.length; i++) {\n result = result.concat(arguments[i])\n };\n\n // filter the result array by checking the index of the element against the current index\n // if the indexof is different, the element has already been encountered, so return false and remove the element\n result = result.filter(function(element, index) {\n return (result.indexOf(element) === index) }\n );\n\n return result;\n}", "function uniq$1(arr) {\n var theSet = new ExportedSet(arr);\n var result = new Array(theSet.size);\n var index = -1;\n theSet.forEach(function (value) {\n result[++index] = value;\n });\n return result;\n}", "function unique(arr) {\n var u = {}, a = [];\n for(var i = 0, l = arr.length; i < l; ++i){\n if(!u.hasOwnProperty(arr[i])) {\n a.push(arr[i]);\n u[arr[i]] = 1;\n }\n }\n return a;\n}", "function uniteUnique(arr) {\n let args = Array.prototype.slice.call(arguments)\n for (let i = 0; i < args.length; i++){\n for (let j = 0; j < args[i].length; j++){\n if (arr.indexOf(args[i][j]) < 0){\n arr.push(args[i][j])\n }\n }\n }\n return arr;\n}", "function myUniq(arr) {\n const uniques = Object.create(null);\n arr.forEach( element => {\n uniques[element] = true;\n });\n return Object.keys(uniques);\n}", "function uniteUnique(a,...arr) {\n const flattenArray = a.concat(arr.reduce((a, b) => a.concat(b)));\n return Array.from(new Set(flattenArray));\n}", "function uniqNoSet(arr) {\n var ret = [];\n\n for (var i = 0; i < arr.length; i++) {\n if (ret.indexOf(arr[i]) === -1) {\n ret.push(arr[i]);\n }\n }\n\n return ret;\n} // 2 - a simple Set type is defined", "function arrayUnique(arr) {\n var u = {},\n a = [];\n\n for (var i = 0, l = arr.length; i < l; i++) {\n var k = arr[i];\n if (u[k]) {\n continue;\n }\n a.push(k);\n u[k] = true;\n }\n\n return a;\n}", "function arrayUnique(arr) {\n var u = {},\n a = [];\n\n for (var i = 0, l = arr.length; i < l; i++) {\n var k = arr[i];\n if (u[k]) {\n continue;\n }\n a.push(k);\n u[k] = true;\n }\n\n return a;\n}", "function uniqueArray(arr) {\n if (Array.isArray(arr) && arr.length > 0) {\n return arr.filter((item, index) => {\n return arr.indexOf(item) >= index;\n });\n }\n return arr;\n}", "function uniteUnique(arr) {\r\n /* the arguments object, despite not being an array, is made to support iteration */\r\n return [...new Set(Array.prototype.concat.call(...arguments))]\r\n}", "function removeArrayDuplicates(arr) {\n return Array.from(new Set(arr));\n}", "function removeDuplicates(arr){\n return arr.filter(function(elem, pos, self){\n return self.indexOf(elem) == pos;\n });\n }", "function uniq (arr) {\n return reduce(arr, function (prev, curr) {\n if (prev.indexOf(curr) === -1) prev.push(curr)\n return prev\n }, [])\n}", "function unique(arr) {\n var u = {}, a = [];\n for(var i = 0, l = arr.length; i < l; ++i){\n if(!u.hasOwnProperty(arr[i])) {\n a.push(arr[i]);\n u[arr[i]] = 1;\n }\n }\n return a;\n}", "unique() {\n var arr = [];\n for(var i = 0; i < this.length; i++) {\n if(!arr.contains(this[i])) {\n arr.push(this[i]);\n }\n }\n return arr; \n}", "function uniqueArr(a) {\r\n temp = new Array();\r\n for(i=0;i<a.length;i++){\r\n if(!contains(temp, a[i])){\r\n temp.length+=1;\r\n temp[temp.length-1]=a[i];\r\n }\r\n }\r\n return temp;\r\n}", "array_unique(array) {\n return Array.from(new Set(array));\n }", "function distinct(arr){\n let newArr=[];\n for(let i=0; i<arr.length; i++){\n if(newArr.includes(arr[i])===false){\n newArr.push(arr[i]);\n }\n }\n return newArr;\n}", "function uniteUnique(arr) {\n var args = [...arguments];\n var result = [];\n for (var i = 0; i < args.length; i++) {\n for (var j = 0; j< args[i].length; j++) {\n if(!result.includes(args[i][j]))\n result.push(args[i][j]);\n }\n }\n return result;\n}", "function unique(array) {\n return $.grep(array, function(el, index) {\n return index == $.inArray(el, array);\n });\n }", "function uniteUnique(arr) {\n let args = [...arguments];\n let finalArr = [];\n\n for (var i = 0; i < args.length; i++) {\n for (var j = 0; j < args[i].length; j++) {\n if (!finalArr.includes(args[i][j])) {\n finalArr.push(args[i][j]);\n }\n }\n }\n\n return finalArr;\n}", "function noDuplicates(arr){\n const removeDups = [...new Set(arr)];\n return removeDups;\n }", "function removeDuplicates(arr){\n let unique_array = []\n for(let i = 0;i < arr.length; i++){\n if(unique_array.indexOf(arr[i]) == -1){\n unique_array.push(arr[i])\n }\n }\n return unique_array\n }", "function unique(array) {\n\t\treturn $.grep(array, function(el, index) {\n\t\t\treturn index === $.inArray(el, array);\n\t\t});\n\t}", "function unique (array){\n uniqueArray = array.filter(function(elem, pos) {\n return array.indexOf(elem) == pos;\n });\n return uniqueArray;\n}", "function unique(array) {\r\n return array.filter(function (el, index, arr) {\r\n return index == arr.indexOf(el);\r\n });\r\n}", "function removeusingSet(arr) {\n\tlet outputArray = Array.from(new Set(arr));\n\treturn outputArray;\n}", "function unique(array) {\n return $.grep(array, function(el, index) {\n return index === $.inArray(el, array);\n });\n }", "function unique(arr) {\n arr.sort();\n const modArr = [];\n modArr.push(arr[0]);\n for (let i = 1; i < arr.length; i++) {\n if (arr[i] !== arr[i - 1]) {\n modArr.push(arr[i]);\n }\n }\n return modArr;\n}", "function makeArrayUnique(arr) {\n var u = {},\n a = [];\n for (var i = 0, l = arr.length; i < l; ++i) {\n if (!u.hasOwnProperty(arr[i])) {\n a.push(arr[i]);\n u[arr[i]] = 1;\n }\n }\n return a;\n}", "function sortedUniq(arr) {\n if (!arr.length) {\n return [];\n }\n\n const result = [];\n const { length } = arr;\n\n let i = 0;\n while (i < length) {\n result.push(arr[i]);\n if (i + 1 > length - 1) {\n break;\n }\n\n let j = i + 1;\n while (arr[i] === arr[j]) {\n j++;\n }\n\n i = j;\n }\n\n return result;\n}", "function uniqueArray (a) {\n var seen = {};\n return a.filter(function(item) {\n return seen.hasOwnProperty(item) ? false : (seen[item] = true);\n });\n}", "function uniqueArray4(a) {\n return [...new Set(a)];\n}", "function unique(array) {\n var result = [];\n for (var i = 0, n = array.length; i < n; i++) {\n var found = false;\n for (var x = i + 1; x < n; x++) {\n if (array[x] == array[i]) {\n found = true;\n break;\n }\n }\n if (found) continue;\n result.push(array[i]);\n }\n return result;\n }", "function getUnique(arr, comp) {\n // store the comparison values in array\n const unique = arr\n .map((e) => e[comp])\n // store the indexes of the unique objects\n .map((e, i, final) => final.indexOf(e) === i && i)\n // delete the false indexes & return unique objects\n .filter((e) => arr[e])\n .map((e) => arr[e]);\n return unique;\n}" ]
[ "0.84523433", "0.8208648", "0.81968135", "0.8191207", "0.81726617", "0.81422937", "0.80937445", "0.80785114", "0.8062712", "0.80433774", "0.80433774", "0.80433774", "0.80433774", "0.80433774", "0.80433774", "0.80433774", "0.80433774", "0.80433774", "0.8031896", "0.7985621", "0.7974378", "0.79490757", "0.7945967", "0.7927474", "0.792456", "0.79213023", "0.79143447", "0.7914146", "0.79096246", "0.7906004", "0.7906004", "0.7906004", "0.78760105", "0.78760105", "0.78760105", "0.78760105", "0.78760105", "0.78760105", "0.7851954", "0.78271043", "0.78271043", "0.78271043", "0.78271043", "0.78271043", "0.78271043", "0.7811163", "0.7779872", "0.7775755", "0.774428", "0.77352804", "0.77276284", "0.77261454", "0.77116376", "0.7707707", "0.76942277", "0.768395", "0.76820046", "0.76820046", "0.76820046", "0.76820046", "0.76820046", "0.76820046", "0.76820046", "0.76820046", "0.76820046", "0.76745355", "0.7665912", "0.766116", "0.76596344", "0.7652872", "0.7643582", "0.7641038", "0.7626027", "0.7626027", "0.7622613", "0.76199985", "0.7617703", "0.7599723", "0.75990117", "0.7590952", "0.7582211", "0.7580711", "0.7574504", "0.7564137", "0.75586194", "0.7544391", "0.75394183", "0.75286645", "0.75281435", "0.75154173", "0.75028825", "0.7495846", "0.74883485", "0.7483712", "0.7476222", "0.7470235", "0.7455449", "0.74483603", "0.74481326", "0.7443892", "0.7430538" ]
0.0
-1
Remove value from array, if it is present
static removeValue(array, value) { for (var tI = array.length - 1; tI >= 0; tI--) { if (array[tI] === value) { array.splice(tI, 1); return tI; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function arrayRemoveByVal(value, arr) {\n return arr.filter(function(ele){return ele != value; });\n}", "arrayRemove(arr, value) {\n return arr.filter(function(ele){\n return ele != value;\n });\n }", "function arrayRemove(arr, value) { \r\n return arr.filter(function(ele){ \r\n return ele != value; \r\n });\r\n }", "function arrayRemove(arr, value) {\n return arr.filter(function(ele){\n return ele !== value;\n });\n }", "function arrayRemove(arr, value) {\n\n return arr.filter(function(ele){\n return ele != value;\n });\n\n }", "function arrayRemove(arr, value) { \n return arr.filter(function(ele){ \n return ele != value; \n });\n}", "function arrayRemove(array, value) {\n var index = array.indexOf(value);\n if (index > -1) {\n array.splice(index, 1);\n }\n }", "function arrayRemove(arr, value) {\n\n return arr.filter(function(ele){\n return ele != value;\n });\n\n}", "function arrayRemove(arr, value) {\n return arr.filter(function(ele){\n return ele != value;\n });\n}", "removeValueArray(array, element) {\n array = array.filter(e => e !== element);\n return array;\n }", "function removeFromArray(array, value) {\n return array.filter(function (e) { return e !== value; });\n }", "function removeElement(arr, value) {\n // https://love2dev.com/blog/javascript-remove-from-array/\n return arr.filter(function(ele){\n return ele != value;\n });\n }", "function removeFromArray(array, value) {\n for (let x = array.length - 1; x >= 0; x--) {\n if (array[x] === value) {\n array.splice(x, 1);\n }\n }\n}", "function removeFromArray(array, value) {\n for (let x = array.length - 1; x >= 0; x--) {\n if (array[x] === value) {\n array.splice(x, 1);\n }\n }\n}", "function without(arr, value) {\n return arr.filter(function(item) { return item !== value; });\n}", "function removeFromArray(arr, value) {\n\twhile ( arr.indexOf(value) > 0 ) {\n\t\tarr.splice( arr.indexOf(value) )\n\t}\n\treturn arr\n}", "function remove(arr, valueToRemove) {\n let index = arr.indexOf(valueToRemove);\n return arr = arr.slice(0, index).concat(arr.slice(index + 1)); // complete this statement\n}", "function removeElement(array, value) {\n var arr = array;\n var index = arr.indexOf(value);\n arr.splice(index, 1);\n return arr;\n}", "function removeValue(array, value, can_fail) {\n var idx = array.indexOf(value);\n ASSERT(can_fail || idx != -1, 'Unable to Remove Value ' + value);\n if (idx != -1) array.splice(idx, 1);\n return idx != -1;\n}", "function remove(array, key, value) {\n const index = array.findIndex(obj => obj[key] === value);\n\n // return copy of array without found item\n return index >= 0 ? \n [ ...array.slice(0, index), ...array.slice(index + 1) ] : \n array;\n }", "function removeFromArray(arr,x){\n\tfor (i=0 ; i<arr.length;i++){\n\t\tif(arr[i] == x){\n\t\tarr.splice(i,1);\n\t\ti = i-1;\n\t\t} \n\t}\n\treturn arr;\n}", "function pop(arr, value) {\n var index = arr.indexOf(value);\n if (index > -1) {\n arr.splice(index, 1);\n }\n return arr;\n}", "function removeAt(arr, value) {\n return arr[value]\n}", "function array_remove(array, obj) {\n index = $.inArray(obj, array);\n if(index > -1) {\n console.log(array.splice(index, 1));\n return array.splice(index, 1);\n } else {\n return array;\n }\n}", "function arrDel(list, value) {\n var clone = list.slice();\n var index = clone.indexOf(value);\n\n if (index >= 0) {\n clone.splice(index, 1);\n }\n\n return clone;\n}", "function remove$1(arr,item){if(arr.length){var index=arr.indexOf(item);if(index>-1){return arr.splice(index,1);}}}", "function remove(arr) {\n return arr.filter(e => e)\n}", "function arrayRemove(arr, elem) {\r\n var x, newArr = new Array();\r\n for (x in arr) {\r\n if (arr[x] != elem) {\r\n newArr.push(arr[x]);\r\n }\r\n }\r\n return newArr;\r\n }", "function removeFromArray(arr, elt) {\n for (var i = arr.length - 1; i >= 0; i--) {\n if (arr[i] == elt) {\n arr.splice(i, 1);\n }\n }\n }", "function without(array, item) {\n if (!array) {\n return [];\n }\n const indexOfItem = array.indexOf(item);\n if (indexOfItem !== -1) {\n array.splice(indexOfItem, 1);\n }\n return array;\n}", "function removeFromArray(arr,ele){\r\n\tvar arr2=[]\r\n\tfor(i=0;i<arr.length;i++){\r\n\t\tif(arr[i]!=ele){\r\n\t\t\tarr2.push(arr[i]);\r\n\t\t}\r\n\t}\r\n\treturn arr2\r\n}", "removeByValue (value) {\n\t\tthis.remove(this.findFirst(value));\n\t}", "function remove(array, value) {\n var j = -1;\n for (var i = 0, n = array.length; i < n; ++i) {\n if (array[i] === value) {\n j = i;\n break;\n }\n }\n if (j === -1) {\n return -1;\n }\n for (var i = j + 1, n = array.length; i < n; ++i) {\n array[i - 1] = array[i];\n }\n array.length -= 1;\n return j;\n}", "function removeFromArray(arr, elt) {\n // Could use indexOf here instead to be more efficient\n for (var i = arr.length - 1; i >= 0; i--) {\n if (arr[i] == elt) {\n arr.splice(i, 1);\n }\n }\n }", "function removeElement(element, array) {\n array.splice($.inArray(element, array), 1);\n}", "function remove(array,element){\n return array.filter(e =>e !== element)\n}", "function remove(arr, valueToRemove) {\n var indexOfRemoved = arr.indexOf(valueToRemove);\n // console.log(indexOfRemoved);\n // console.log(arr.slice(0, indexOfRemoved));\n // console.log(arr.slice(indexOfRemoved + 1));\n return arr.slice(0, indexOfRemoved).concat(arr.slice(indexOfRemoved + 1)); // complete this statement\n}", "function arrayRemove(array, element) {\n var index = array.indexOf(element);\n if (index > -1) {\n array.splice(index, 1);\n }\n }", "function removeFromArray(arr, elt)\n{\n // Could use indexOf here instead to be more efficient\n for (var i = arr.length - 1; i >= 0; i--)\n if (arr[i] == elt)\n arr.splice(i, 1);\n}", "function removeArrayElement(arr, element) {\n return arr.filter(e => e !== element)\n}", "static removeFromArray(array, element) {\n\t\tconst index = array.indexOf(element);\n\t\tarray.splice(index, 1);\n\t}", "function removeArrayItem(arr, item){\r\n\tvar i = 0;\r\n\twhile(i < arr.length){\r\n\t\tif(arr[i] == item)\r\n\t\t\tarr.splice(i,1);\r\n\t\telse\r\n\t\t\ti++;\r\n\t}\r\n}", "function removeMatch(array, itemToRemove) {\n for (var i = 0; i < array.length - 1; i++) {\n if (array[i] === itemToRemove) {\n array.splice(i, 1);\n }\n }\n\n}", "function arrayRemoveItem(arr, it) {\n var a = [];\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] !== it) {\n a.push(arr[i]);\n }\n }\n return a;\n}", "function removeChoice(arr, item) {\n if (angular.isArray(arr)) {\n for (var i = 0; i < arr.length; i++) {\n if (angular.equals(arr[i], item)) {\n // remove from array\n arr.splice(i, 1);\n break;\n }\n }\n }\n // return new array\n return arr;\n }", "function removeFromArray(arr, selector) {\n var idx = arr.indexOf(selector);\n if (idx !== -1) {\n return arr.splice(idx, 1);\n }\n return false;\n }", "function destroyer(arr) {\n var args = (arguments.length === 1) \n ? [arguments[0]] \n : Array.apply(null, arguments);\n\n // Array with the values to remove only\n var remove = args.splice(1);\n\n // Remove all the values\n return args[0].filter(function(item){\n return remove.indexOf(item) < 0;\n });\n}", "function destroyer(arr) {\n let valsToRemove = Object.values(arguments).slice(1);\n \n for (let i = 0; i < arr.length; i++) {\n for (let j = 0; j < valsToRemove.length; j++) {\n if (arr[i] === valsToRemove[j]) {\n delete arr[i];\n }\n }\n }\n return arr.filter(item => item !== null);\n }", "function remove_fa(array,element){\n\tif(in_array(array,element)){\n\t\tindex=array.indexOf(element);\n\t\tarray.splice(index,1);\n\t};\n}", "function remove(array, elem) {\n\t var i = array.indexOf(elem);\n\t if (i !== -1) {\n\t array.splice(i, 1);\n\t }\n\t}", "function destroyer(arr) {\n\n var args = [].slice.call(arguments);\n args.shift();\n\n arr = arr.filter(function (item) {\n\n for (var i = 0; i < args.length; i++) {\n if (item == args[i]) {\n return false;\n }\n }\n return true;\n\n });\n // Remove all the values\n return arr;\n}", "function findAndRemove(array, property, value) {\n array.forEach(function (result, index) {\n if (result[property] === value) {\n //Remove from array\n array.splice(index, 1);\n }\n });\n}", "function remove(arr,item){if(arr.length){var index=arr.indexOf(item);if(index>-1){return arr.splice(index,1);}}}", "function remove(arr,item){if(arr.length){var index=arr.indexOf(item);if(index>-1){return arr.splice(index,1);}}}", "function removeArrayElement(arr,el) {\r\n var r = new Array();\r\n for (var i = 0; i<arr.length;i++) {\r\n if(!(arr[i]==el))\r\n r.push(arr[i]);\r\n }\r\n return r;\r\n }", "function removeArrayItem(arr, item) {\n var i = arr.indexOf(item);\n if (i >= 0) arr.splice(i, 1);\n}", "function destroyer(arr, ...values) {\n\treturn arr.filter((el) => !values.includes(el));\n}", "function removeItemFromArray(array, element) {\r\n var index = array.indexOf(element);\r\n if (index !== -1) { array.splice(index, 1); }\r\n}", "function remove(arr, item){\n\t var idx = indexOf(arr, item);\n\t if (idx !== -1) arr.splice(idx, 1);\n\t }", "function remDupItem(arr) {\n return arr.filter((value, index, self) => {\n return self.indexOf(value) === index;\n })\n}", "delete(element) {\n this.arraySet = this.arraySet.filter(el => el !== element);\n }", "function arrayRemove(array) {\r\n var i, param, params = ArrayProto.slice.call(arguments, 1), len = params.length;\r\n\r\n for (i = 0; i < len; ++i) {\r\n param = params[i];\r\n if (inArray(param, array)) {\r\n array.splice(arrayIndex(param, array), 1);\r\n }\r\n }\r\n return array;\r\n }", "function removeFromArray(arr, target) {\n // Could use indexOf here instead to be more efficient\n for (let i = arr.length - 1; i >= 0; i--) {\n if (arr[i] == target) {\n arr.splice(i, 1);\n }\n }\n}", "function removeElement(arr, element){\n for(let i = 0; i < arr.length; i++){\n if(arr[i] === element) arr.splice(i, 1);\n }\n return arr;\n}", "function removeFromArray(array, element) {\n\t var index = array.indexOf(element);\n\t if (index !== -1) {\n\t array.splice(index, 1);\n\t }\n\t}", "remove(num, arr) {\n let arr2 = [];\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] !== num) {\n arr2.push(arr[i]);\n }\n }\n return arr2;\n\n }", "function removeFirst(array, item) {\n var idx = array.indexOf(item);\n idx !== -1 && array.splice(idx, 1);\n}", "function destroyer(arr) {\n // Remove all the values\n let args = Array.from(arguments).splice(1);\n return arr.filter(element => !args.includes(element));\n}", "function array_delete($idx,$array) { \n unset($array[$idx]); \n return (is_array($array)) ? array_values($array) : null; \n}", "function removeElement(myArray) {\n // zde pracuju s objektem, ktery byl funkci predan a pokud\n // to je reference na jinny objekt tak zmenim ten puvodni (input)\n myArray.pop();\n}", "function removeArrayItem(arr, item) {\n var i = arr.indexOf(item);\n if (i >= 0) {\n arr.splice(i, 1);\n }\n}", "function destroyer(arr) {\n // Remove all the values\n for (var i = 1; i < arguments.length; i++) {\n var skip = arguments[i];\n arr = arr.filter(function (e) {\n return e !== skip;\n });\n }\n return arr;\n}", "function removeArrayItem(arr, item) {\n var i = 0;\n while (i < arr.length) {\n if (arr[i] == item) {\n arr.splice(i, 1);\n } else {\n i++;\n }\n }\n}", "function remove(arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n\n if (index > -1) {\n return arr.splice(index, 1);\n }\n }\n} // check object have own property", "function remove(arr, item){\n var idx = indexOf(arr, item);\n if (idx !== -1) arr.splice(idx, 1);\n }", "function remove(array, elem) {\r\n var i = array.indexOf(elem);\r\n if (i !== -1) {\r\n array.splice(i, 1);\r\n }\r\n}", "function remove$1 (arr, item) {\n\t if (arr.length) {\n\t var index = arr.indexOf(item)\n\t if (index > -1) {\n\t return arr.splice(index, 1)\n\t }\n\t }\n\t}", "function remove(array, element) {\n\treturn array.filter(el => el !== element);\n}", "function destroyer1(arr) {\n let valsToRemove = Object.values(arguments).slice(1);\n\n for (let i = 0; i < arr.length; i++) {\n for (let j = 0; j < valsToRemove.length; j++) {\n if (arr[i] === valsToRemove[j]) {\n delete arr[i];\n }\n }\n }\n return arr.filter(item => item !== null);\n}", "function remove$1 (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}", "function remove$1 (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}", "function remove$1 (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}", "function remove$1 (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}", "function remove$1 (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}", "function remove$1 (arr, item) {\n\t if (arr.length) {\n\t var index = arr.indexOf(item);\n\t if (index > -1) {\n\t return arr.splice(index, 1)\n\t }\n\t }\n\t}", "function remove$1 (arr, item) {\n\t if (arr.length) {\n\t var index = arr.indexOf(item);\n\t if (index > -1) {\n\t return arr.splice(index, 1)\n\t }\n\t }\n\t}", "function remove$1 (arr, item) {\n\t if (arr.length) {\n\t var index = arr.indexOf(item);\n\t if (index > -1) {\n\t return arr.splice(index, 1)\n\t }\n\t }\n\t}", "function remove(array, item) {\n var index = _.indexOf(array, item);\n if (index >= 0) {\n array.splice(index, 1);\n }\n }", "function remove(array, elem) {\n var i = array.indexOf(elem);\n\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function removeElementFromArray(arr, element){\n // console.log('hi');\n // printPrettyArrays(arr);\n\n for(var i = 0; i < arr.length; i++){\n // console.log(\"The element is : \" + element + \" the index value is: \" + arr[i]);\n if(element == arr[i]){\n // console.log('****element and index value are equal****');\n arr.splice(i,1);\n return true; // stop looking for element, we found it!\n // printPrettyArrays(arr);\n }\n }\n\n return false;\n\n\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}", "function remove(array, elem) {\n var i = array.indexOf(elem);\n if (i !== -1) {\n array.splice(i, 1);\n }\n}" ]
[ "0.79086626", "0.79004335", "0.787566", "0.783627", "0.7813778", "0.776556", "0.7745942", "0.7743792", "0.7701474", "0.7677491", "0.7636963", "0.7521625", "0.7455023", "0.7455023", "0.7381038", "0.73625994", "0.72130054", "0.72066367", "0.7154609", "0.7154214", "0.7131632", "0.69769776", "0.69234157", "0.6917373", "0.68817556", "0.68160695", "0.68093395", "0.6804507", "0.6795669", "0.6792393", "0.67888093", "0.6763061", "0.6762577", "0.67593753", "0.67581457", "0.67423403", "0.6740427", "0.6736998", "0.67276853", "0.67078525", "0.6705363", "0.6704362", "0.6683983", "0.6680431", "0.6678435", "0.6675145", "0.6671198", "0.6654394", "0.6636025", "0.66326374", "0.66284996", "0.662255", "0.6618079", "0.6618079", "0.66102743", "0.6592257", "0.6584039", "0.6582206", "0.65764636", "0.6568669", "0.6566425", "0.65646124", "0.65619653", "0.6559884", "0.65544766", "0.65457034", "0.6544007", "0.65312773", "0.6531095", "0.6529301", "0.65275884", "0.6521957", "0.6521495", "0.65181893", "0.65014964", "0.6498176", "0.64943516", "0.6493811", "0.6487357", "0.64859015", "0.64859015", "0.64859015", "0.64859015", "0.64859015", "0.6481424", "0.6481424", "0.6481424", "0.647987", "0.64761275", "0.6475411", "0.64738315", "0.64738315", "0.64738315", "0.64738315", "0.64738315", "0.64738315", "0.64738315", "0.64738315", "0.64738315", "0.64738315" ]
0.71906763
18
Checks if value is in array
static hasValue(array, value) { for (var tI = 0; tI < array.length; tI++) { if (array[tI] === value) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function inArray(value, array){\n\t\t for(var i=0;i<array.length;i++){\n\t\t if(array[i]==value) {return false;}\n\t\t \t}\n\t\t\t}", "function isInArray(value, array) {\n \treturn array.indexOf(value) > -1;\n }", "function isInArray(value, array) {\n return array.indexOf(value) > -1;\n }", "function IsInArray(value, array) {\n return array.indexOf(value) > -1;\n}", "function isInArray(value, array) {\n return array.indexOf(value) > -1;\n }", "function isInArray(value, array) {\n return array.indexOf(value) > -1;\n }", "function isInArray(value, array) {\n return array.indexOf(value) > -1;\n }", "function checkIn(value, arr) {\n for (var i = 0; i < arr.length; i++) {\n if (value == arr[i]) {\n return true;\n }\n }\n return false;\n }", "function isInArray(value, array) {\n return array.indexOf(value) > -1;\n}", "function isInArray(value, array) {\n return array.indexOf(value) > -1;\n}", "function isInArray(array, value) {\n return array.indexOf(value) > -1;\n }", "function in_array(value, array)\n{\n\tfor (var i in array)\n\t\tif (array[i] == value)\n\t\t\treturn true;\n\treturn false;\n}", "function inArray(val, arr) {\n\tfor (var i=0; i < arr.length; i++) {\n\t\tif (arr[i] == val) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function isInArray(value, array) {\n\n for ( var item of array ) {\n if ( item == value ) { return true; }\n }\n return false;\n}", "function contains(arr, value) {\n\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] == value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function contains(arr, value) {\n\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] === value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function contains(arr, value) {\n\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] === value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function contains(arr, value) {\n\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\tif (arr[i] === value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function contains(arr, value) {\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (arr[i] === value) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function arrayContains(inputArr, val) { return inputArr.indexOf(val) !== -1; }", "function arrayContains(inputArr, val) { return inputArr.indexOf(val) !== -1; }", "function arrayContainsValue(array, value) {\n if (array.indexOf(value) != -1) {\n return true;\n } else {\n return false;\n }\n}", "function existsInArray(arr, value){\n for(i in arr){\n if(value === arr[i]){\n return true;\n }\n }\n return false;\n}", "isInArray(valor, array) {\r\n let existe = array;\r\n return existe.includes(valor);\r\n }", "function isInArray(array, value)\r\n{\r\n\tvar found = false;\r\n\r\n\tfor(var i = 0; i < array.length; i++)\r\n\t{\r\n\t\tif(value === array[i])\r\n\t\t{\r\n\t\t\tfound = true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\treturn found;\r\n}", "function arrayContains(array, value) {\n for (var i = 0; i < array.length; i++) {\n var cur = array[i];\n if (cur = value) {\n return true;\n }\n }\n}", "function contains(arr, val) {\n return arr.indexOf(val) !== -1;\n }", "function existsInArray(arr, val){\n\tvar res = false;\n\tfor(var i = 0; i < arr.length; ++i){\n\t\tif(arr[i] == val){\n\t\t\tres = true;\n\t\t\tbreak;\n\t\t}\n\t}\n\treturn res;\n}", "function exists(value, array) {\n return array.some((e) => e === value);\n}", "function contains(arr, val) {\n\t return indexOf(arr, val) !== -1;\n\t }", "function in_array(variable, theArray)\n{\n\treturn $.inArray(variable, theArray) != -1;\n}", "function inArray(value, array){\n\tvar i;\n\tfor (i=0; i < array.length; i++) {\n\t\tif (array[i] === value) {\n\t\t\treturn value;\n\t\t}\n\t}\n\treturn false;\n}", "includes(value) {\n for (const ele of this.arr) {\n if (ele === value) {\n return true;\n }\n }\n\n return false;\n }", "function includes(array, value) {\n for (var i = 0; i < array.length; i++) {\n if (array[i] === value)\n return true;\n }\n return false;\n}", "function arrayIncludes(array, value) {\n return array.indexOf(value) !== -1;\n}", "function inArr(arr, e){\n\tif(arr.length == 0)\n\t\treturn false;\n\treturn arr.indexOf(e) !== -1\n}", "function inArr(arr, e){\n\tif(arr.length == 0)\n\t\treturn false;\n\treturn arr.indexOf(e) !== -1\n}", "function inArray(user, arr){\n var count=arr.length;\n for(var i=0;i<count;i++){\n if(arr[i]===user){return true;}\n }\n return false;\n }", "function contains(arr, val) {\n return indexOf(arr, val) !== -1;\n }", "function contains(arr, val) {\n return indexOf(arr, val) !== -1;\n }", "function isInArray(item, arr){\n\t\treturn item.indexOf(arr) > -1;\n\t}", "function arrayValueExist(array, value){\r\n\t\tfor(var i = 0; i < array.length; i++) if (array[i] == value) return true;\r\n\r\n\t\treturn false;\r\n\t}", "function arrayValueExist(array, value){\n\t\tfor(var i = 0; i < array.length; i++) if (array[i] == value) return true;\n\t\treturn false;\n\t}", "function inArray(el, arr) {\n return arr.indexOf(el) > -1;\n}", "function contains(arr, val) {\n for (var i = 0; i < arr.length; i ++) {\n if (arr[i]===val) {\n return true;\n }\n }\n return false;\n}", "function in_array(item,arr) {\r\n for(p=0;p<arr.length;p++) if (item == arr[p]) return true;\r\n return false;\r\n}", "function tool_isInArray(item,arr) {\n\n\tfor(x=0;x<arr.length;x++) {\n\t\tif (arr[x] == item) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function inArray(arr, item) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }", "function is_new_value_in_array(array, value) {\n\tfor (u=0; u < array.length; u++) {\n\t\tif (array[u] == value) \n\t\t\treturn false;\n\t}\n\treturn true;\n}", "function inArray(arr, item) {\n var i, len;\n for (i = 0, len = arr.length; i < len; i++) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }", "function int_in_array(value, arr) {\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (parseInt(arr[i], 10) == parseInt(value, 10)) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}", "function inArray( arr, item ) {\n for ( var i = 0, len = arr.length; i < len; i++ ) {\n if ( arr[ i ] === item ) {\n return true;\n }\n }\n return false;\n }", "function inArray(arr, item) {\n var i, len;\n for (i = 0, len = arr.length; i < len; i++) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }", "function inArray(arr, item) {\n var i, len;\n for (i = 0, len = arr.length; i < len; i++) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }", "function inArray(arr, item) {\n var i, len;\n for (i = 0, len = arr.length; i < len; i++) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }", "function inArray(arr, item) {\n var i, len;\n for (i = 0, len = arr.length; i < len; i++) {\n if (arr[i] === item) {\n return true;\n }\n }\n return false;\n }", "function isInArray(item, array) {\n itemin = false\n for(i = 0; i < array.length; i++) {\n if(array[i] == item) {\n itemin = true\n }\n }\n return itemin\n}", "function in_array(array,element){\n\tindex=array.indexOf(element);\n\tif (index>-1){\n\t\treturn true;\n\t};\n\treturn false;\n}", "function checkValue(arr, val) {\n\treturn arr.indexOf(val) > -1;\n}", "function arrayHasValue(arr, value) {\n var idx = arr.indexOf(value);\n if (idx !== -1) {\n return true;\n }\n return false;\n }", "function inArray(array, value){\n arrLength = array.length;\n //While loop in reverse is the fastest way to loop through an array\n while(arrLength--){\n if(value == array[arrLength]){\n return true;\n }\n }\n return false;\n}", "function inArray(key, arr) {\n for (var i = 0; i < arr.length; i++) {\n if (key == arr[i]) {\n return true\n }\n }\n return false\n}", "function inArray(param, array) {\r\n var i, len = array.length;\r\n\r\n for (i = 0; i < len; ++i) {\r\n if (array[i] === param) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "function inArray(number) {\n\tfor (i = 0; i < unavailableSpot.length; i++) {\n\t\tif (number == unavailableSpot[i]) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "function isInArray(array, search)\n{\n if (array.indexOf(search) >= 0) {\n return true;\n }\n else{\n return false;\n }\n}", "contains(num, arr) {\n\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] === num) {\n return true;\n }\n }\n return false;\n }", "function in_array(variable, theArray)\n{\n\tfor (var i = 0; i < theArray.length; i++)\n\t{\n\t\tif (theArray[i] == variable)\n\t\t\treturn true;\n\t}\n\treturn false;\n}", "function arrayContains(arr, val) {\n return arr.some(function (arrVal) {\n return val[0] == arrVal[0] && val[1] == arrVal[1];\n })\n }", "function inArray(array,item) {\n\t\t\t\t\t\t\t\tvar present = false;\n\t\t\t\t\t\t\t\t_.each(array, function (testItem) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(item.identifier===testItem.identifier){\n\t\t\t\t\t\t\t\t\t\t\t\t\tpresent = 1;\n\t\t\t\t\t\t\t\t\t\t\t\t}//function\n\t\t\t\t\t\t\t\t})//angular.forEach\n\t\t\t\t\t\t\t\treturn present;\n\t\t\t\t\t\t\t}", "function isInArray(elem,arr) {\n return (arr.slice(0,arr.length).indexOf(elem) > -1);\n }", "function findValue(array, x) {\n if (array.includes(x)) {\n return true;\n }\n else {\n return false;\n }\n \n }", "function arrayContains(item, array) {\n return array.includes(item);\n}", "function contains(array, elem) {\n\t return array.indexOf(elem) !== -1;\n\t}", "function isInArray (element, array) {\n for (var i = 0; i < array.length; i++) {\n if (element == array[i]) {\n return true;\n }\n }\n return false;\n}", "function findInArray(arr, value) {\n // code\n for (let i = 0; i < arr.length; i++) {\n if (arr[i] == value) {\n return true;\n }\n }\n return false;\n}", "function isInArray (element, array) {\n for (var i = 0; i < array.length; i++) {\n if (element == array[i]) {\n return true;\n }\n\n }\n return false;\n}", "function inArray(array,elemento) {\n var i =0;\n\n while (i < array.length) {\n if (array[i] == elemento) {\n return true;\n }\n i ++;\n }\n return false;\n}", "contains(array, obj) {\n var i = array.length;\n while (i--) {\n if (array[i] == obj) {\n return true;\n }\n }\n return false;\n }", "function contains(arr, item){\r\n\tfor(var i = 0; i < arr.length; i++){\r\n\t\tif(arr[i] == item)\r\n\t\t\treturn true;\r\n\t}\r\n\r\n\treturn false;\r\n}", "function isInArray(random_array, num) {\n if (random_array.indexOf(num) !== -1) {\n return true;\n }\n else {\n return false;\n }\n}", "function contains(array, obj) {\n for (var i = 0; i < array.length; i++) {\n if (array[i] === obj) {\n return true;\n }\n }\n return false;\n }", "function onList(arr, value) {\n for(var i = 0; i < arr.length; i++) {\n if(arr[i] === value) {\n return true;\n }\n }\n return false;\n}", "function In_Array(search_val, tab)\r\n{\r\n\tfor (current_index_tab in tab)\r\n\t\tif (tab[current_index_tab] == search_val)\r\n\t\t\treturn true;\r\n\treturn false;\r\n}", "function arrayContains(element, array) {\n return (array.indexOf(element) > -1);\n}", "function contains(arr, x) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] === x) return true;\n }\n return false;\n }", "function checkIfElementIsInArray(elem, theArray) {\r\n\tvar i,\r\n\t\tfound = false;\r\n\t\r\n\tif (theArray.length != 0) {\r\n\t\tfor (i = 0; i < theArray.length; i++) {\r\n\t\t\tif (elem == theArray[i]) {\r\n\t\t\t\tfound = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} \t\t\r\n\t}\r\n\t\r\n\treturn found;\r\n}", "function exists(eVal, eArray) {\n\t for (ii in eArray)\n\t \tif (eArray[ii] == eVal) return true;\n\t return false;\n}", "function arrayContains( curArr, item )\n{\n var nElements = curArr.length;\n for( var i = 0; i < nElements; i++ )\n if ( curArr[i] == item )\n return true;\n\n return false;\n}", "function findInArray (value, array) {\r\n var found = false;\r\n var i = 0;\r\n while (found == false && i < array.length) {\r\n if (array[i] == value) {\r\n found = true;\r\n }\r\n i++\r\n }\r\n return found; \r\n}", "function contains(array, obj) {\n for (var i = 0; i < array.length; i++) {\n if (array[i] == obj) {\n return true;\n }\n }\n return false;\n}", "function arrayContains(array, object) {\n return true ? array.indexOf(object) !== -1 : false;\n}", "contains(value) {\n for(var i = 0; i < this.length; i++) {\n if(this[i] === value) return true;\n }\n return false;\n}", "function checkForValue(arr, item) {\n return arr.includes(item);\n }", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}", "function contains(array, elem) {\n return array.indexOf(elem) !== -1;\n}" ]
[ "0.85272187", "0.8465186", "0.8425205", "0.8414105", "0.8334011", "0.8334011", "0.8334011", "0.8285396", "0.8243156", "0.8243156", "0.8223024", "0.82207465", "0.8200914", "0.81359303", "0.8045296", "0.80379707", "0.80379707", "0.80379707", "0.802219", "0.8020772", "0.8020772", "0.79508775", "0.7880543", "0.782641", "0.7825209", "0.78081954", "0.7768067", "0.7762739", "0.7757716", "0.77530056", "0.77421504", "0.7736144", "0.7672552", "0.7664829", "0.7655689", "0.7652132", "0.7652132", "0.7636936", "0.76323885", "0.76323885", "0.7628823", "0.7611302", "0.76085085", "0.75705564", "0.7569389", "0.7536914", "0.7530858", "0.7527148", "0.7515094", "0.75101656", "0.7469664", "0.74584657", "0.74543726", "0.74543726", "0.74543726", "0.74543726", "0.74278075", "0.7418793", "0.74037546", "0.73618144", "0.7360617", "0.73488444", "0.7346657", "0.73361653", "0.7320352", "0.7314426", "0.7305942", "0.72984993", "0.7288453", "0.7274982", "0.72734123", "0.72705144", "0.7245907", "0.7231438", "0.7219403", "0.721523", "0.721215", "0.7178506", "0.71753824", "0.7173118", "0.7171747", "0.7169934", "0.7168732", "0.7150352", "0.714632", "0.71147245", "0.7113889", "0.7107811", "0.7105775", "0.70998967", "0.7098003", "0.70858413", "0.7069817", "0.70658845", "0.70658845", "0.70658845", "0.70658845", "0.70658845", "0.70658845", "0.70658845" ]
0.78142756
25
Subtracts the elements in subArray from array
static subtract(array, subArray) { return Utils.removeIf(array, function(el) { return Utils.hasValue(subArray, el); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function subtractArrFromSingle(single, array) {\n var subtracted = [];\n for (var i = 0; i < array.length; i++) {\n \tif ( !(single.overlaps(array[i])) ) { continue }\n \telse if (single.isSame(array[i])) {\n return subtracted;\n } else {\n\t subtracted = single.subtract(array[i]);\n\t if (subtracted.length === 2) {\n\t return subtractArrFromSingle(subtracted[0], array.slice(i + 1))\n\t .concat(subtractArrFromSingle(subtracted[1], array.slice(i + 1)));\n\t } else {\n\t return subtractArrFromSingle(subtracted[0], array.slice(i + 1));\n\t }\n \t}\n }\n return [single];\n}", "function arraySubtract(arr1, arr2) {\n return arr1.filter(function(elt) {\n return arr2.indexOf(elt) < 0;\n });\n}", "static sub(array1, array2) {\n if (!Array.isArray(array2)) {\n array2 = Kbase_1.Kbase.repeat(array2, array1.length);\n }\n let sub = [];\n if (array1.length === array2.length) {\n //add only when two arraies have the save length\n for (let i = 0; i < array1.length; i++) {\n if (array2[i] === undefined || isNaN(array2[i]) || array1[i] === undefined || isNaN(array1[i])) {\n //illegal oprand check\n sub.push(NaN);\n }\n else {\n sub.push(array1[i] - array2[i]);\n }\n }\n }\n else {\n throw new Error(\"must have the same length\");\n }\n return sub;\n }", "function ArraySubtr(ArrayA, ArrayB) {\n let ArraySubtr = new Array(ArrayA.length);\n for (let j = 0; j < ArraySubtr.length; j++) {\n ArraySubtr[j] = ArrayA[j] - ArrayB[j];\n }\n return ArraySubtr;\n}", "function arraySubtract (a, b) {\n if (!Array.isArray(b)) b = [b];\n const res = [];\n for (let i = 0; i < a.length; i++) {\n if (!b.includes(a[i])) res.push(a[i]);\n }\n return res\n }", "function caml_array_sub(x, offset, len) {\n var result = new Array(len);\n var j = 0;\n var i = offset;\n while(j < len) {\n result[j] = x[i];\n j = j + 1 | 0;\n i = i + 1 | 0;\n } return result;\n }", "function subtractArrays(arr1, arr2) {\n var condensed1 = addArray(arr1);\n var condensed2 = addArray(arr2);\n var subtracted = [];\n for (var i = 0; i < condensed1.length; i++) {\n subtracted = subtracted.concat(subtractArrFromSingle(condensed1[i], condensed2));\n }\n return subtracted;\n}", "function caml_array_sub(x, offset, len) {\n var result = new Array(len);\n var j = 0;\n var i = offset;\n while(j < len) {\n result[j] = x[i];\n j = j + 1 | 0;\n i = i + 1 | 0;\n } return result;\n}", "function caml_array_sub(x, offset, len) {\n var result = new Array(len);\n var j = 0;\n var i = offset;\n while(j < len) {\n result[j] = x[i];\n j = j + 1 | 0;\n i = i + 1 | 0;\n }\n return result;\n}", "function subtract(arr1, arr2) {\n return arr2.map(function (el, i) {\n return Math.abs(el - arr1[i]);\n });\n }", "function subtractObjectArrays(largerArray, smallerArray) {\n const hashObject = (object) => JSON.stringify(object);\n const hashSet = new Set(smallerArray.map(hashObject))\n return largerArray.filter(object => !hashSet.has(hashObject(object)))\n}", "function reverseMinus(array){\n\n}", "function subarray(sum) {\n\n}", "function removeElementFromEndOfArray(array){\nreturn array.slice(0,array.length -1);\n}", "function subtractReverse(array) {\n //Write your code here\n}", "function SumSub(arrayExpression) {\n\n var stopCount = false;\n\n while (stopCount == false) {\n stopCount = true;\n for (var i = 0; i < arrayExpression.length; i++) {\n if (arrayExpression[i] == \"+\") {\n arrayExpression.splice(i - 1, 3, Summ(arrayExpression[i - 1], arrayExpression[i + 1]));\n stopCount = false;\n break;\n }\n\n if (arrayExpression[i] == \"-\") {\n arrayExpression.splice(i - 1, 3, Subtraction(arrayExpression[i - 1], arrayExpression[i + 1]));\n stopCount = false;\n break;\n }\n }\n }\n return arrayExpression;\n}", "function removeAt(array, idx) {\n if (idx >= array.length || idx < 0) return array;\n return array.slice(0, idx).concat(array.slice(idx + 1));\n}", "function removedAtIndex(array,index) {\n let arr1 = array.slice(0,index);\n let arr2 = array.slice(index + 1);\n return arr1.concat(arr2)\n}", "sub(a, b) {\r\n this.data[0] = a.data[0] - b.data[0];\r\n this.data[1] = a.data[1] - b.data[1];\r\n this.data[2] = a.data[2] - b.data[2];\r\n this.data[3] = a.data[3] - b.data[3];\r\n this.data[4] = a.data[4] - b.data[4];\r\n this.data[5] = a.data[5] - b.data[5];\r\n this.data[6] = a.data[6] - b.data[6];\r\n this.data[7] = a.data[7] - b.data[7];\r\n this.data[8] = a.data[8] - b.data[8];\r\n this.data[9] = a.data[9] - b.data[9];\r\n }", "function removeElementFromEndOfArray(array){\nreturn array.slice(0,array.length-1);\n}", "function raw_array_sub (a,i,l) {\n var b = new Array(l);\n for(var j = 0; j < l; j++) b[j] = a[i+j];\n return b\n}", "function remove( array, index )\n{\n\treturn array.slice( 0, index ) + array.slice( index + 1, array.length );\n}", "function sumSub(arr) {\n let arrLength = arr.length;\n let lastSum = 0;\n\n for (let i = 0; i < arrLength; i++) {\n for (let j = 1 + i; j < arrLength; j++) {\n arr.push(arr[i] + arr[j]);\n }\n lastSum += arr[i];\n }\n\n arr.push(lastSum);\n arr.unshift(0);\n\n return arr;\n}", "function difference(arr, other) {\n var index = arrayToIndex(other);\n return arr.filter(function(el) {\n return !Object.prototype.hasOwnProperty.call(index, el);\n });\n }", "function arrayDiff(array) {\n var others = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n others[_i - 1] = arguments[_i];\n }\n array = array || [];\n var tmp = [], rest = tmp.concat.apply(tmp, others);\n return array.filter(function (item) { return rest.indexOf(item) === -1; });\n }", "minus(b) {\r\n return this.map((x, i) => x - b[i]);\r\n }", "function removeElementFromEndOfArray(array){\n return array.slice(0,array.length -1)\n}", "function destructivelyRemoveElementFromEndOfArray(array){\n array.pop();\n return array;\n }", "function arrNegative(arr) {\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] > 0) {\n var a = 2 * arr[i];\n arr[i] -= a;\n }\n }\n return arr;\n}", "function removeElementFromEndOfArray(array){\n return array.slice(0, array.length - 1);\n }", "function difference(arr) {\n\t var arrs = slice(arguments, 1),\n\t result = filter(unique(arr), function(needle){\n\t return !some(arrs, function(haystack){\n\t return contains(haystack, needle);\n\t });\n\t });\n\t return result;\n\t }", "function arrayRemove(array) {\r\n var i, param, params = ArrayProto.slice.call(arguments, 1), len = params.length;\r\n\r\n for (i = 0; i < len; ++i) {\r\n param = params[i];\r\n if (inArray(param, array)) {\r\n array.splice(arrayIndex(param, array), 1);\r\n }\r\n }\r\n return array;\r\n }", "function destructivelyRemoveElementFromEndOfArray(array){\narray.pop();\nreturn array;\n}", "function remove_from_array(array, match_function){\n\tlet remove = array.map((a,i) => match_function(a,i));\n\tlet s = 0, shift = remove.map(rem => rem ? --s : s);\n\tarray = array.filter(e => match_function(e));\n\treturn shift;\n}", "static removeFromArray(array, element) {\n\t\tconst index = array.indexOf(element);\n\t\tarray.splice(index, 1);\n\t}", "function subVectors() {\n let vector = [];\n for (var vec of arguments) {\n for (var elem = 0; elem < vec.length; elem++) {\n if (isNaN(vector[elem])) {\n vector[elem] = vec[elem];\n } else {\n vector[elem] -= vec[elem];\n }\n }\n }\n return vector;\n}", "function sub( v1, v2 ) { return [ v1[0] - v2[0], v1[1] - v2[1], v1[2] - v2[2] ]; }", "static subtract(v1, v2) {\r\n return v1.map((a, i) => a - v2[i]);\r\n }", "static subtract(v1, v2) {\r\n return v1.map((a, i) => a - v2[i]);\r\n }", "function removeElement(myArray) {\n // zde pracuju s objektem, ktery byl funkci predan a pokud\n // to je reference na jinny objekt tak zmenim ten puvodni (input)\n myArray.pop();\n}", "function destructivelyRemoveElementFromEndOfArray(array){\n array.pop();\n return array;\n}", "function vecSub(a, b) {\n\t// console.log(typeof [b[0] - a[0], b[1] - a[1]][0]);\n\treturn [b[0] - a[0], b[1] - a[1]];\n}", "function destructivelyRemoveElementFromEndOfArray(array){\n \n array.pop()\n \n return array\n}", "function ArrayRemove (array, from) {\r\n var rest = array.slice((from) + 1 || array.length);\r\n array.length = from < 0 ? array.length + from : from;\r\n return array.push.apply(array, rest);\r\n }", "function minusLastItem(array) {\n return array.slice(0, array.length - 1);\n}", "function subtract (num) {\n //cara looping\n let num1 = num[0];\n for (let i=1; i< num.length; i++) {\n num1 -= num[i];\n }\n return num1;\n}", "function removeFromArray(arr, item) {\n for (let i = 0; i < item; i++) {\n arr.pop();\n }\n }", "function removeElementFromEndOfArray(array) {\n array = array.slice(0, array.length - 1)\n return array;\n}", "function delElement(array,e){\n newArray = [];\n for(i=0; i<array.length; i++){\n if(e !== array[i]){\n newArray[newArray.length] = array[i];\n }\n }\n return newArray\n}", "function subctractArray(arr1, arr2) {\n\n arr1.sort(sortNumber);\n arr2.sort(sortNumber);\n for (let i = 0; i < arr1.length; i++) {\n for (let j = 0; j < arr2.length; j++) {\n if (arr1[i] === arr2[j])\n arr1.splice(i, 1);\n }\n }\n return arr1;\n}", "function destructivelyRemoveElementFromEndOfArray(array){\n array.pop()\n return array\n}", "function difference(arr1, arr2) {\n \n \n \n}", "function removeElement(index , array){\n for(let i = index ; i<array.length-1 ; i++){\n array[i] = array[i+1];//shifting to left to override element\n }\n array.pop(); //reducing size of array\n}", "function removeElement(newArr) {\n newArr.pop();\n}", "function changeArray(array1, array2){\r\n\tvar diff = [];\r\n\tfor(var i=0; i<59; i++){\r\n\t\tdiff[i] = array1[i] - array2[i];\r\n\t}\r\n\treturn diff;\r\n}", "function ArrayRemove(array, from, to) {\n var rest = array.slice((to || from) + 1 || array.length);\n array.length = from < 0 ? array.length + from : from;\n return array.push.apply(array, rest);\n}", "function difference(arr) {\n var arrs = slice(arguments, 1),\n result = filter(unique(arr), function(needle){\n return !some(arrs, function(haystack){\n return contains(haystack, needle);\n });\n });\n return result;\n }", "function arrayDiff(a, b) {\n newArray = a\n b.map(num => {\n for(i = 0; i < a.length; i++) {\n // console.log(i, a[i], b.find(num => num))\n if (a[i] === num) {\n newArray.splice(i, 1);\n i--;\n }\n }\n })\n return newArray\n}", "function destructivelyRemoveElementFromEndOfArray(array) {\n array.pop()\n return array;\n}", "function removeFromArray(array, block) {\n var index = array.indexOf(block);\n if (index > -1) {\n array.splice(index, 1);\n }\n }", "function arrayRemove(arr1, arr2) {\n return arr1.filter(ele1 => {\n return ele1 != arr2.filter(ele2 => {\n return ele2 == ele1;\n });\n });\n}", "function array_diff(a, b) {\r\n let finalArr = a.filter(function(a) {\r\n return !b.includes(a)});\r\n return finalArr;\r\n }", "function removeFromArray(arr,ele){\r\n\tvar arr2=[]\r\n\tfor(i=0;i<arr.length;i++){\r\n\t\tif(arr[i]!=ele){\r\n\t\t\tarr2.push(arr[i]);\r\n\t\t}\r\n\t}\r\n\treturn arr2\r\n}", "static subtract(vectorX, vectorY, n) {\n\t\tvar result = new Array(n);\n\t\tfor (var i = 0; i < n; i++) {\n\t\t\tresult[i] = vectorX[i] - vectorY[i];\n\t\t}\n\t\treturn result;\n\t}", "function sliceAndConcatArray(arr, indexOfItemToBeRemoved) {\n // Give 2 arrays that you want to remove items from and return the removed array\n if (arr) {\n if (typeof indexOfItemToBeRemoved !== 'number') \n return console.error('error, number param is not a number');\n else {\n let fromArrBeginTillMatch = arr.slice(0, indexOfItemToBeRemoved);\n let fromArrExcludeTillEnd = arr.slice(indexOfItemToBeRemoved+1, arr.length);\n return fromArrBeginTillMatch.concat(fromArrExcludeTillEnd);\n }\n }\n }", "function sliceAndConcatArray(arr, indexOfItemToBeRemoved) {\n // Give 2 arrays that you want to remove items from and return the removed array\n if (arr) {\n if (typeof indexOfItemToBeRemoved !== 'number') \n return console.error('error, number param is not a number');\n else {\n let fromArrBeginTillMatch = arr.slice(0, indexOfItemToBeRemoved);\n let fromArrExcludeTillEnd = arr.slice(indexOfItemToBeRemoved+1, arr.length);\n return fromArrBeginTillMatch.concat(fromArrExcludeTillEnd);\n }\n }\n }", "function arrayDiff(array, ...arrays) {\n\n return arrayUnique(arrays.reduce(function (array1, array2) {\n\n var arr = arrayFrom(array2);\n\n return array1.filter(function (entry) {\n return arr.indexOf(entry) < 0;\n });\n\n }, arrayFrom(array)));\n\n }", "function array_diff(a, b) {\n//loops through the elements in b\n for (i = 0; i < b.length; i++){\n \t\tvar j = 0;\n //checks against the elements of a\n \t\twhile (j < a.length){\n //if it finds the element, remove it\n \t\t\tif (a[j] === b[i]){\n\t \t\t\ta.splice(j, 1);\n\t \t\t}\n //if it doesnt find the element, increase the index of j\n\t \t\telse {\n\t \t\t\tj++;\n\t \t\t}\n \t\t}\n \t}\n \treturn a;\n}", "function removeFromBack(arr) {\n // code here\n}", "function reduceThisNoDivision(newArray) {\n return newArray.map((index) => {\n return newArray.filter(i => i !== index).reduce((total, current) => total * current);\n });\n}", "function array_diff(arr1, arr2) {\n arr1 = arr1.filter(num => !arr2.includes(num)); // reassign cuz we need to mutate the array a\n return arr1;\n}", "function removeNegatives (array) {\n if(!(array instanceof Array)) {return 'Please pass an array.'};\n let copyTo;\n let negativeCount = 0;\n for (var i = 0; i < array.length; i++) {\n if (array[i] < 0) {\n negativeCount++;\n copyTo = i;\n break;\n };\n };\n if (negativeCount > 0) {\n for (let j = i + 1; j < array.length; j++) {\n if (array[j] < 0) {\n negativeCount++;\n } else {\n array[copyTo] = array[j];\n copyTo++;\n };\n };\n array.length -= negativeCount;\n };\n return array;\n}", "function arrayDiff(a, b) {\n let arr = [...a];\n b.forEach(d => {\n arr = arr.filter(x => x != d);\n });\n return arr;\n}", "function _subtract(a, b, r, s) {\n\n\t\tfor (var i = 0; i < s; i++) {\n\n\t\t\tfor (var j = 0; j < s; j++) {\n\n\t\t\t\tr[s*i + j] = OP.subtract(a[s*i + j], b[s*i + j]);\n\n\t\t\t}\n\n\t\t}\n\n\t}", "function arraypop(thearray) {\r\n\tthearraysize = getarraysize(thearray);\r\n\tretval = thearray[thearraysize - 1];\r\n\tdelete thearray[thearraysize - 1];\r\n\treturn retval;\r\n}", "function sub(val)\n{\n\tif(typeof val != typeof this)\n\t{\n\t\tthrow \"Incompatible types\";\n\t}\n\telse\n\t{\n\t\tif(val.size.x != this.size.x || val.size.y != this.size.y)\n\t\t{\n\t\t\tthrow \"Matrix has different size\";\n\t\t}\n\n\t\tfor(var i = 0; i < this.size.x; i++)\n\t\t{\n\t\t\tfor(var j = 0; j < this.size.y; j++)\n\t\t\t{\n\t\t\t\tthis.matrix[i][j] -= val.matrix[i][j];\n\t\t\t}\n\t\t}\n\t}\n}", "function arrayDiff(a, b) {\n\treturn a.filter(ar => !b.includes(ar));\n}", "function arrayExceptLast(array){\n array.pop()\n return array ;\n}", "function arrayDiff(a, b) {\n return a.filter((el) => !b.includes(el));\n}", "function removeFromArray(startingPoint) {\n let myArray = [1, 2, 3, 4];\n\n // Grab the additional arguments which will be removed from myArray\n let toBeRemoved = Array.prototype.slice.call(arguments, 1);\n\n // Go through myArray from starting point\n for (i = startingPoint; i < myArray.length; i++) {\n // Go through tobeRemoved array from 0\n for (j = 0;j < toBeRemoved.length; j++) {\n if(myArray[i] == toBeRemoved[j]) {\n myArray.splice(i,1);\n }\n }\n }\n\n return myArray;\n }", "function _difference(baseArray, otherArray, propName) {\n return baseArray.filter((obj) => {\n return !otherArray.find((otherObj) => {\n return otherObj[propName] === obj[propName];\n });\n });\n}", "function inverti_array(a){\n var array = new Array();\n //copio l'array in modo da non modificare i valori iniziali\n for(var i=0;i<a.length;i++){\n array[i] = copia_array(a[i])\n }\n for(var i=0;i<array.length/2;i++){\n var a_supp = array[i];\n array[i] = array[array.length-1-i];\n array[array.length-1-i] = a_supp;\n }\n return array;\n }", "function destructivelyRemoveElementFromBeginningOfArray(array){\n array.shift();\n return array;\n }", "function removeElements() {\n var array = document.getElementById('array').value;\n var remove = document.getElementById('removeFromArray').value;\n var arr = array.split(' ');\n var removeArr = remove.split(' ');\n var index = removeArr.length - 1;\n\n for (var i = arr.length - 1; i >= 0; i--) {\n if (arr[i] === removeArr[index]) {\n arr.splice(i, 1);\n index--;\n }\n }\n\n document.getElementById('result2').innerHTML = '<h4>Result Task 2:</h4> Left array -> <span style=\"color: red;\">' + arr + '</span>';\n}", "function arrayRemove(arr, elem) {\r\n var x, newArr = new Array();\r\n for (x in arr) {\r\n if (arr[x] != elem) {\r\n newArr.push(arr[x]);\r\n }\r\n }\r\n return newArr;\r\n }", "function subArr(arr,posORneg){\n for(i = 0, len = arr.length; i < len; i += 1){\n if(arr[i] === arr[i+1] + posORneg){\n flag = false;\n tmp.push(arr[i]);\n // Pushing last element to tmp because if will not check when i = length.\n if(i === len - 2){\n tmp.push(arr[i+1]);\n }\n } else {\n // If in the middle last element of subarray push it to tmp for negative subarray.\n if(posORneg === 1 && i !== len -1){\n tmp.push(arr[i]);\n }\n // If for correct work of reduce(). And skip it when negative subarray.\n if(tmp.length > 0 && posORneg === -1){\n // If in the middle last element of subarray push it to tmp.\n if (i !== len -1){\n tmp.push(arr[i]);\n }\n cash = tmp.reduce(function(previousValue, currentValue) {\n return previousValue + currentValue;\n });\n // Max sum.\n if (sum < cash){\n sum = cash;\n }\n // Clearing tmp.\n tmp = [];\n }\n }\n }\n }", "function negativeArray(arr){\n var newarr = [];\n for(var i = 0; i < arr.length; i++){\n if(arr[i] > 0){\n arr[i] = arr[i] - arr[i] * 2;\n newarr.push(arr[i]);\n }\n else{\n arrnew.push(arr[i]);\n }\n }\n return newarr;\n}", "function removeElementFromBeginningOfArray(array){\n var newArray = array\n newArray.shift()\n return newArray\n}", "removeValueArray(array, element) {\n array = array.filter(e => e !== element);\n return array;\n }", "function removeElements (array, selector) {\n for(const index of array) {\n selector.removeChild(index);\n }\n}", "function arrayDiff(a, b) {\n let result = []\n\n result = a.filter(ele => !b.includes(ele)) \n \n\n return result\n}", "function removeFromArray(array, element) {\n\t var index = array.indexOf(element);\n\t if (index !== -1) {\n\t array.splice(index, 1);\n\t }\n\t}", "function slice(){\n let secArr = myArray.slice(1,myArray.length-1);\n showArayCopy(secArr);\n}", "function remove_in_array(itemToRemove,originalArray) {\n \n var j = 0;\n while (j < originalArray.length) {\n \tif (originalArray[j] == itemToRemove) {\n \t\toriginalArray.splice(j, 1);\n \t\tbreak;\n }else{ \n j++; \n }\n } \n \n}", "function removeAt(array, idx) {\n if (idx >= array.length || idx < 0) return array;\n return array.slice(0, idx).concat(array.slice(idx + 1));\n} // -- #### replaceAt()", "function diff(A) {\n return A.slice(1).map(function(n, i) { return n - A[i]; });\n }", "function array_diff(a, b) {\n if (a.length === 0 || b.length === 0) {\n return a;\n } else {\n while (b.length > 0) {\n a = a.filter(num => num != b[0])\n b.shift();\n }\n return a\n }\n}", "function decreaseArray(list){\r\n list.unshift(10);\r\n var answer =list.reduce(function(element1, element2){\r\n return element1 + element2; \r\n });\r\n return answer ;\r\n}", "static subtract(a, b) {\n return Matrix.map(new Matrix(a.rows, a.cols), (_, i, j) => a.data[i][j] - b.data[i][j]);\n }", "function destructivelyRemoveElementFromBeginningOfArray(array){\narray.shift();\nreturn array;\n}" ]
[ "0.72379345", "0.7161804", "0.7006875", "0.693381", "0.687383", "0.68192285", "0.673738", "0.6688355", "0.66559446", "0.6539686", "0.6359454", "0.6348116", "0.63152903", "0.6230526", "0.6178454", "0.61597705", "0.6157106", "0.61524355", "0.6150979", "0.61355215", "0.60955304", "0.60776985", "0.6040875", "0.6035922", "0.60334563", "0.6024106", "0.60119224", "0.59890515", "0.59869957", "0.59775406", "0.5977233", "0.5967531", "0.5966824", "0.59503573", "0.59458447", "0.5926292", "0.5924249", "0.5923502", "0.5923502", "0.5916038", "0.5891876", "0.5886465", "0.58837086", "0.58630425", "0.58594227", "0.5850165", "0.58453566", "0.5837182", "0.58253235", "0.5823765", "0.58206475", "0.58189356", "0.581798", "0.5806851", "0.5806571", "0.58062804", "0.5800372", "0.5796905", "0.5795953", "0.5783005", "0.5774324", "0.5773136", "0.5770564", "0.5751931", "0.5744332", "0.5744332", "0.57382697", "0.57374686", "0.5725942", "0.5725554", "0.5723067", "0.5716768", "0.57156897", "0.5704787", "0.56971943", "0.5680539", "0.56746083", "0.5674051", "0.56634426", "0.5656063", "0.5648948", "0.56410515", "0.5636132", "0.56331736", "0.56294984", "0.56266624", "0.56206983", "0.56147236", "0.5609592", "0.560546", "0.5598342", "0.5597251", "0.55957115", "0.55924857", "0.5591316", "0.55823445", "0.5570551", "0.5567525", "0.55613995", "0.5561296" ]
0.86874455
0
Mouse Events for Nodes mouseenter events
function enterThis(p) { //Grow node d3.select(this) .attr("x", -72) .attr("y", -16) .attr("width", 176) .attr("height", 32); //select node parents var nodes = []; nodes.push(p); while(p.parent) { p = p.parent; nodes.push(p); } //color the node parents node.filter(function(d) { if ( nodes.indexOf(d) !== -1) return true;} ) .select('rect') .style("fill", fillhover); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_handleMouseEnter() {\n this._hovered.next(this);\n }", "mouseEnter(event) {\n this.setHover();\n }", "function OnMouseEnter() {\n\tisMouseEnter = true;\n\t\n}", "onMouseEnter() {}", "function nodeMouseEnter(d,i) {\n\t\tvar buttonClassId = 'node-buttons-' + i;\n //TODO: Implement fade-in and fade-out logic for buttons on the node\n }", "e_mouseEnter(e)\n\t{\n\t\t\n\t}", "function mouseEntered(e) {\r\n DoHover(this, true, e);\r\n e.stopPropagation();\r\n }", "function _mouseEnter(e) {\n e.preventDefault();\n if (mouseOver === false) {\n console.log(name);\n setMouseOver(true);\n }\n }", "function mouseEntered(this: HTMLElement, e: MouseEvent) {\r\n DoHover(this, true, e);\r\n e.stopPropagation();\r\n }", "function handleMouseEnterFix() {\n !mouseEntered.current && handleMouseEnter();\n }", "mouseEnter() {\n this.set('hasHover', true);\n }", "function nodeMouseOver(n){\n if (bOverrideMouseOver()) {\n return;\n }\n setState(STATE.HOVERNODE);\n setSelection(n, TYPE.NODE);\n}", "_elementMouseEnterHandler() {\n const that = this;\n\n if (that.clickMode === 'hover' && !that.disabled && !that.readonly) {\n that._handleMouseInteraction();\n }\n }", "_elementMouseEnterHandler() {\n const that = this;\n\n if (that.clickMode === 'hover' && !that.disabled && !that.readonly) {\n that._handleMouseInteraction();\n }\n }", "_enterNewNodes (source, nodes) {\n const toolTip = this.getToolTip();\n let nodeEnter = nodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .attr(\"transform\", (d) => {\n return \"translate(\" + source.y + \",\" + source.x + \")\";\n })\n .on(\"click\", this._onNodeClick.bind(this));\n\n nodeEnter.append(\"circle\")\n .attr(\"r\", 8)\n .attr(\"class\", (d) => {\n let nodeClass = '';\n\n if (d.event.tags && d.event.tags.status) {\n const status = d.event.tags.status[d.event.tags.status.length - 1];\n if (status == 'fail') {\n nodeClass = 'fail-event';\n }\n } else if (d._children) {\n nodeClass = 'collapsed';\n }\n\n return nodeClass;\n })\n .on('mouseover', this._showToolTip.bind(this))\n .on('mouseout', this._hideToolTip.bind(this));\n\n nodeEnter.append(\"text\")\n .attr(\"dy\", \"3em\")\n .attr(\"text-anchor\", \"middle\")\n .text((d) => {\n return d[\"event\"][\"tags\"][\"source\"][0];\n })\n .style(\"fill-opacity\", 1);\n\n nodeEnter.append(\"text\")\n .attr(\"dy\", \"4.3em\")\n .attr(\"text-anchor\", \"middle\")\n .text((d) => {\n let text = '';\n\n if (d[\"event\"][\"tags\"][\"type\"][0] !== d[\"event\"][\"tags\"][\"source\"][0]) {\n text = d[\"event\"][\"tags\"][\"type\"][0];\n }\n\n return text;\n })\n .style(\"fill-opacity\", 1);\n }", "_buttonMouseEnterHandler() {\n const that = this;\n\n that.setAttribute('hover', '');\n\n if ((that.disabled) || (that.readonly) || (that.clickMode !== 'hover')) {\n return;\n }\n\n that._changeCheckState('pointer');\n that.focus();\n that._updateHidenInputNameAndValue();\n }", "function handlePointHoverEnter (e) {\n var point = $(this).data(\"point\");\n point.style = pointStyleHover;\n point.redraw();\n }", "function handlePointHoverEnter (e) {\n var point = $(this).data(\"point\");\n point.style = pointStyleHover;\n point.redraw();\n }", "function handleMouseEnter() {\n setHoverRestaurant(restaurant);\n }", "function node_mouseover(d) {\r\n if (drawing_line && d !== selected_node) {\r\n // highlight and select target node\r\n selected_target_node = d;\r\n }\r\n}", "function mouseEnterHandler(e) {\n\t\t$(this).siblings(\".active\").removeClass(\"active\");\n\t\t$(this).addClass(\"active\");\n\t}", "function mouseOverNode(node) {\n showNode(node, \"select\");\n }", "function dragEnter(e) {\n catchEvent(e)\n toggleDragHover(true)\n return false\n }", "_headerMouseEnterHandler() {\n const that = this;\n\n if (that.disabled) {\n return;\n }\n\n that.setAttribute('hovered', '');\n }", "function node_mouseover(d) {\n d3.select(this).transition()\n .duration(150)\n .attr(\"r\", 10);\n if (drawing_line && d !== selected_node) {\n // highlight and select target node\n selected_target_node = d;\n }\n}", "_mouseEnterHandler() {\n const that = this;\n\n that._isElementHovered = true;\n\n if (that.dropDownOpenMode === 'auto' && !that.disabled && !that.readonly) {\n that.open();\n }\n }", "handleMouseEnter(row, col) {\n if (!this.state.mouseIsPressed) return;\n\n if (this.state.draggingStartNode){\n toggleStart(this.state.grid, row, col);\n this.setState({draggingStartNode: true});\n this.setState({mouseIsPressed: true});\n\n // ----------\n START_NODE_ROW = row;\n START_NODE_COL = col;\n return;\n \n }\n\n if (this.state.draggingEndNode) {\n toggleEnd(this.state.grid, row, col);\n this.setState({draggingEndNode: true});\n this.setState({mouseIsPressed: true});\n\n // -------\n FINISH_NODE_ROW = row;\n FINISH_NODE_COL = col;\n return;\n }\n\n toggleWall(this.state.grid, row, col);\n this.setState({mouseIsPressed: true});\n \n }", "function onMouseMove() {\n\n // Find node below mouse\n [x,y] = d3.mouse(this)\n var node = simulation.find((x - width / 2 ), ( y - height / 2), 16);\n\n if (node) {\n tooltip.transition().duration(200).style(\"opacity\", 0.8);\n\n tooltip.html(getPath(node))\n .style(\"left\", (d3.event.pageX + 8) + \"px\")\n .style(\"top\", (d3.event.pageY + 8) + \"px\");\n } else {\n tooltip.transition().duration(100).style(\"opacity\", 0.);\n }\n }", "_switchButtonOnMouseEnter() {\n const that = this;\n\n if (that.disabled || that.readonly) {\n return;\n\n }\n\n that.$.addClass('hovered');\n }", "function MouseEnterHandler() {\n //css\n var objCss = {\n 'font-size':'larger',\n 'font':'bold',\n 'color': 'black',\n 'background-color': 'orange'\n }\n $(this).css('opacity', '1').addClass('anim');\n $(this).siblings('input').css(objCss);\n \n\n var test = $('#divInfo');\n $('#infoGif').show();\n $('#info').html('Consultation du produit : '\n + $(this).siblings('label').text()\n + ' du rayon '\n + $(this).parents('.drow').attr('id')\n //+ $(this).parentsUntil('.dtable').attr('id')\n + 'avec une commande en cours de '\n + $(this).siblings('input').val()\n )\n }", "function node_mouseover(d) {\n d3.select(this).transition()\n .duration(150)\n .attr(\"r\", 10);\n //update the target node\n if (drawing_line && d !== selected_node) {\n // highlight and select target node\n selected_target_node = d;\n }\n}", "function NamTreeMouseOver(evt){\n\tNamTreeMouseInOut(evt, false);\n}", "function onMousemoveNodeHandler(d) {\r\n\t\t\t\t\t\t\toCtrl.fireHover(d);\r\n\t\t\t\t\t\t\t// console.log('onMousemoveNodeHandler: pos X '+ d.x\r\n\t\t\t\t\t\t\t// + \" pos Y \" + d.y);\r\n\t\t\t\t\t\t}", "_mouseEnterHandler() {\n const that = this;\n\n that._isElementHovered = true;\n\n if (that.tagName.indexOf('JQX-DROP-DOWN-') > -1 && that.dropDownOpenMode === 'auto' && !that.disabled && !that.readonly) {\n that.open();\n }\n }", "function handleOnMouseEnter() {\n debouncedHandleMouseLeave.cancel()\n debouncedHandleMouseEnter()\n }", "function hoverEnter(e) {\n var $div = $(e.target).closest(\"div\");\n $div.css(BACKGROUND_COLOR, $div.data(BUTTON_NAME) ? \"#FFF\" : \"#FFC\");\n }", "_trackOnMouseEnterHandler() {\n const that = this;\n\n if (!that.readonly && !that.disabled) {\n that.$track.addClass('track-hovered');\n that.$.track.setAttribute('hover', '');\n }\n }", "function handleMouseOver(){\r\n d3.select(this)\r\n .transition(\"mouse\")\r\n .attr(\"fill\",\"#A04000\")\r\n .attr(\"stroke\", \"#641E16\")\r\n .attr(\"stroke-width\", 5)\r\n .style(\"cursor\", \"pointer\")\r\n }", "function HandleMouseEnter(tag, event) {\n $(tag).css(\"border\", \"3px solid #967259\");\n}", "function _handleMouseEnter(_obj){\n if(!_isPlaying){ //Don't let interactions if paused\n logger.logEvent({'msg': 'mouse hover but player paused'});\n return;\n }\n var enter_time = new Date().getTime();\n var _node = __findObjectNode(_obj);\n var enter_animation = _node['animation']['hover_animation'];\n logger.logEvent({'msg': 'Object hovered', 'animation': enter_animation});\n for (var i = 0; i<enter_animation['animations'].length;i++){\n enter_animation['animations'][i]['anim'] = _parseStringToDict(enter_animation['animations'][i]['anim']);\n enter_animation['animations'][i]['pre'] = _parseStringToDict(enter_animation['animations'][i]['pre']);\n enter_animation['animations'][i]['object'] = _node['animation']['object'];\n }\n if(enter_animation['stop_current_animation']){\n _obj.parent().stop(true);\n }\n if(enter_animation['clear_further_animations']){\n __clearObjectAnimationsFromQueues(_obj.parent());\n }\n if(enter_animation['disable_further_interaction']){\n _obj.unbind('click');\n _obj.unbind('mouseenter');\n }\n\n //Add performed operations to the user interaction queue to be able to imitate it later\n _userInteractionQueue.push({'animation':{'type':'sleep','duration':(enter_time-lastUserInteraction)}});\n _userInteractionQueue.push({'animation':{'type':'hover','object':_obj}});\n __addInteractionAnimationLayerForObject(jQuery.extend(true,[],enter_animation['animations']));\n lastUserInteraction=enter_time;\n }", "handleMouseEnter() {\n this.setState({ hovered: true });\n }", "e_mouseOver(e)\n\t{\n\n\t}", "dragEnter(ev) {\n this.dragOver(ev);\n }", "function f_addMouseOver(){\n mxGraph.addMouseListener({\n //set tmp cell\n cell: null,\n mouseMove: function(sender, me) {\n //check, if selected cell changed\n var currentCell = me.getCell();\n if (me.getCell() !== this.cell) {\n if (this.cell !== null) {\n this.dragLeave(me.getEvent(), this.cell);\n }\n this.cell = currentCell;\n if (this.cell !== null) {\n this.dragEnter(me.getEvent(), this.cell);\n }\n }\n },\n dragEnter: function(evt, cell) {\n f_updateStyle(this.cell, true);\n f_highlightPublications(this.cell.id);\n },\n dragLeave: function(evt, cell) {\n f_clearHighlightPublications();\n f_updateStyle(cell, false);\n },\n mouseDown: function(sender, me) {\n //do nothing\n },\n mouseUp: function(sender, me) {\n //do nothing\n }\n });\n}", "registerEvents() {\n let self = this;\n this.element.addEventListener('mouseenter', function () {\n if (self.get('pauseOnMouseEnter')) {\n self.set('isMouseHovering', true);\n self.get('cycle').cancelAll();\n self.get('waitIntervalToInitCycle').cancelAll();\n }\n });\n this.element.addEventListener('mouseleave', function () {\n if (self.get('pauseOnMouseEnter') && (self.get('transitioner.last') !== null || self.get('waitIntervalToInitCycle.last') !== null)) {\n self.set('isMouseHovering', false);\n self.get('waitIntervalToInitCycle').perform();\n }\n });\n }", "function mouseEnter () {\r\n // Get data\r\n const data = this.__data__;\r\n\r\n // Get width of graphBox (needed to set label position)\r\n const graphBoxEl = this.parentElement.parentElement;\r\n const graphBoxData = graphBoxEl.components.graph.data;\r\n const graphBoxWidth = graphBoxData.width;\r\n\r\n // Look for an existing label\r\n const oldLabel = d3.select('#tempDataLabel');\r\n const oldLabelParent = oldLabel.select(function () { return this.parentNode; });\r\n\r\n // Look for an existing beam\r\n const oldBeam = d3.select('#tempDataBeam');\r\n \r\n // Look for an existing background\r\n const oldBackground = d3.select('#tempDataBackground');\r\n\r\n const labelMakerOptions = {\r\n xLabelText,\r\n yLabelText,\r\n zLabelText,\r\n xVariable,\r\n yVariable,\r\n zVariable\r\n }\r\n\r\n // If there is no existing label, make one\r\n if (oldLabel[0][0] === null) {\r\n labelMaker(this, graphBoxWidth, labelMakerOptions);\r\n } else {\r\n // Remove old label\r\n oldLabel.remove();\r\n // Remove beam\r\n oldBeam.remove();\r\n // Remove background\r\n oldBackground.remove();\r\n // Create new label\r\n labelMaker(this, graphBoxWidth, labelMakerOptions);\r\n }\r\n }", "function mouseEnter() {\n const destinationText = document.querySelector('.content-destination');\n destinationText.addEventListener(\"mouseenter\", (e) => e.target.style.color = \"red\");\n}", "function nodeMouseover(d) {\n svg.selectAll(\"g path\").classed(\"active\", function(p) {\n return p.source === d || p.target === d;\n });\n d3.select(this).classed(\"active\", true);\n }", "function flexiCSSMenus_mouseEnterHandlerForIpad(event) {\n }", "function ToolBarButton_MouseEnter(event)\n{\n\t//get source element\n\tvar sourceElement = Browser_GetEventSourceElement(event);\n\t//ensure we have the right one\n\twhile (sourceElement && !sourceElement.InterpreterObject)\n\t{\n\t\t//iterate\n\t\tsourceElement = sourceElement.parentNode;\n\t}\n\t//valid?\n\tif (sourceElement)\n\t{\n\t\t//set button border\n\t\tsourceElement.style.border = sourceElement.InterpreterObject.HTML.TB_BORDER;\n\t\t//has mouseover bg?\n\t\tif (sourceElement.InterpreterObject.HTML.TB_BG_MOUSEOVER)\n\t\t{\n\t\t\t//set it\n\t\t\tsourceElement.style.background = sourceElement.InterpreterObject.HTML.TB_BG_MOUSEOVER;\n\t\t}\n\t\t//not a scroll element?\n\t\tif (!sourceElement.SCROLL)\n\t\t{\n\t\t\t//trigger on mouse over\n\t\t\t__SIMULATOR.ProcessEvent(new Event_Event(sourceElement.InterpreterObject, __NEMESIS_EVENT_MOUSEOVER, new Array(\"\" + sourceElement.TB_INDEX)));\n\t\t}\n\t}\n}", "function mouseoverNodes(nodes_){\n var str = \" \";\n for (var i=0; i<nodes_.length;i++) {\n str += nodes_[i].id+\" \";\n }\n mouseoverIDs(str);\n mouseoverLinksIDs(str);\n}", "_itemOnMouseEnter() {\n const that = this;\n\n if (that.disabled || !that.ownerListBox) {\n return;\n }\n\n if (JQX.ListBox.DragDrop.Dragging && that.ownerListBox.allowDrop) {\n JQX.ListBox.DragDrop.DropDetails = { item: that, position: 'bottom' };\n }\n\n if (that.ownerListBox.$.verticalScrollBar.thumbCapture || that.ownerListBox.$.horizontalScrollBar.thumbCapture) {\n return;\n }\n\n that.setAttribute('hover', '');\n }", "function enter(ev) {\n return true;\n}", "pointerenter(payload) {\n domEventSequences.pointerenter(node, payload);\n }", "function dragEnter(e){\n e.preventDefault();\n this.className += ' hovered';\n\n}", "function MouseEnters(menuButton) {\n\t// Get the index where the id of the menuButton resides\n\tvar previousIndex = g_SelectedID;\n\tfor(var i = 0; i < g_MainMenuElements.length; ++i) {\n\t\tif(menuButton.id == g_MainMenuElements[i]) {\n\t\t\tg_SelectedID = i;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tResolveChange(previousIndex,g_SelectedID);\n}", "function onMouseoverChart(e) {\n if (e['target'] === 'node') {\n var nodeSplit = e['targetid'].split('-');\n var nodeId = nodeSplit[nodeSplit.length - 1];\n if (Number.isInteger(parseInt(nodeId)) && parseInt(nodeId) < globalEnergyData['values'].length) {\n renderPieChart(parseInt(nodeId));\n }\n } \n }", "mouseClicked() {\n this.inputNode.mouseClicked();\n }", "function handleMouseEnter(e) {\n if (nav.classList.contains(\"nav--transition\")) return; // don't handle mouse events while nav is transitioning\n handleMouseEnterOrFocus(e);\n}", "onIntersectedByMouse(){\n }", "function handleMouseOverDist(e) {\n\t\t\t\te.currentTarget.addClassName('active');\n\t\t\t\tvar parent = $(e.currentTarget).parent().get(0);\n\n\t\t\t\ttheInterface.emit('ui:emphElement', {\n\t\t\t\t\tid : e.currentTarget.getAttribute('id'),\n\t\t\t\t\tlayer : parent.getAttribute('data-layer')\n\t\t\t\t});\n\n\t\t\t}", "function doOnSliderMouseEnter() {\r\n\t\t\tif(o.buttons) {\r\n\t\t\t\t//show the buttons\r\n\t\t\t\t$nav.stop().fadeIn(function() {\r\n\t\t\t\t\t$nav.animate({\r\n\t\t\t\t\t\topacity: 1\r\n\t\t\t\t\t}, 0);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tif(o.autoplay && o.pauseOnHover) {\r\n\t\t\t\t//pause the animation\r\n\t\t\t\tstopAnimation();\r\n\t\t\t}\r\n\t\t}", "function dragenter(e){\n e.stopPropagation();\n e.preventDefault();\n elem.addClass('dragenter');\n }", "function dragenter(e){\n e.stopPropagation();\n e.preventDefault();\n elem.addClass('dragenter');\n }", "onMouseEnter() {\n\t\t// Refresh sizing while hovering over the element.\n\t\tthis.cacheElementSizing()\n\t\trenderQueue.add(this.renderInner)\n\t}", "function logMouseEnter() {\n log('hover:scatterlegend', { numLabels })\n }", "configureNodes() {\n this.node\n .attr(\"class\", \"lgv-node\")\n .attr(\"data-node-label\", d => this.extractLabel(d))\n .attr(\"data-node-depth\", d => d.depth)\n .attr(\"data-node-children\", d => d.children ? true : false)\n .attr(\"cx\", d => d.x)\n .attr(\"cy\", d => d.y)\n .attr(\"r\", d => d.r)\n .on(\"click\", (e,d) => {\n\n // node label\n let label = this.extractLabel(d);\n\n // update class\n document.querySelectorAll(`[data-node-label=\"${label}\"]`).forEach(d => d.classList.toggle(\"selected\"));\n\n // send event to parent\n this.artboard.dispatch(\"nodeclick\", {\n bubbles: true,\n detail: {\n label: label\n }\n });\n\n })\n .on(\"mouseover\", (e,d) => {\n\n // node label\n let label = this.extractLabel(d);\n\n // update class\n document.querySelectorAll(`[data-node-label=\"${label}\"]`).forEach(d => d.classList.add(\"active\"));\n\n // send event to parent\n this.artboard.dispatch(\"nodemouseover\", {\n bubbles: true,\n detail: {\n label: label,\n xy: [e.clientX + (this.artboardUnit / 2), e.clientY + (this.artboardUnit / 2)]\n }\n });\n\n })\n .on(\"mouseout\", (e,d) => {\n\n // node label\n let label = this.extractLabel(d);\n\n // update class\n document.querySelectorAll(`[data-node-label=\"${label}\"]`).forEach(d => d.classList.remove(\"active\"));\n\n // send event to parent\n this.artboard.dispatch(\"nodemouseout\", {\n bubbles: true,\n detail: {\n label: label\n }\n });\n\n });\n }", "function mpMouseover() {\n // Get mouse positions from the main canvas.\n var mousePos = d3.mouse(this)\n // Get the data from our map!\n if (typeof (transform) !== \"undefined\") {\n var nodeData = quadtree.find((mousePos[0] - margin.left - transform[\"x\"]) / transform[\"k\"],\n (mousePos[1] - margin.top - transform[\"y\"]) / transform[\"k\"], 50)\n } else {\n nodeData = quadtree.find(mousePos[0] - margin.left, mousePos[1] - margin.top, 50)\n }\n\n // Only show mouseover if hovering near a point\n if (typeof (nodeData) !== \"undefined\") {\n // If we're dealing with mp nodes\n if (typeof (nodeData.id) !== \"undefined\") {\n slide5_show_mp_tooltip(nodeData, mousePos)\n } else {\n median_mouseover(nodeData, mousePos)\n }\n }\n d3.event.preventDefault()\n\n }", "function _labelHoverEnter() {\r\n\tvar menuItem = Utils.getObjForId(this);\t// this.view ;\r\n\tif( !menuItem || !menuItem.isSelectable() || !menuItem.isEnabled() ) return;\r\n\r\n\tmenuItem.fTopRowOuter.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fTopRow.style.background = LookAndFeel.url(\"highlight_tr.png\") + ' no-repeat top right';\r\n\tmenuItem.fTopRowImage.style.display = \"block\";\r\n\r\n\tmenuItem.fBotRowOuter.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fBotRow.style.background = LookAndFeel.url(\"highlight_br.png\") + ' no-repeat top right';\r\n\tmenuItem.fBotRowImage.style.display = \"block\";\r\n\r\n\tmenuItem.fMidRowOuter.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fMidRow.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\t// setting row content a must for IE\r\n\tif( menuItem.fMidRowContent.style )\r\n\t menuItem.fMidRowContent.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fMidRowOuter.style.color = \"#EEEEEE\";\r\n\tif( menuItem.fSelectListener && menuItem.fSelectListener.onItemHover )\r\n\t menuItem.fSelectListener.onItemHover(menuItem, menuItem.fSelectListener);\r\n }", "mouseenter(e) {\n e.preventDefault();\n const $listItem = this.$el.prev('tr.list-item');\n $listItem.addClass('hover');\n }", "function mouseOverGraph(e,ix,node){\n stopDwellTimer(); // Mouse movement: reset the dwell timer.\n var ownTooltip = // Check if the hovered element already has the tooltip.\n (ix>=0 && ix==tooltipInfo.ixActive) ||\n (ix==-2 && tooltipInfo.idNodeActive==node.id);\n if(ownTooltip) stopCloseTimer(); // ownTooltip: clear the close timer.\n else resumeCloseTimer(); // !ownTooltip: resume the close timer.\n tooltipInfo.ixHover = ix;\n tooltipInfo.nodeHover = node;\n tooltipInfo.posX = e.clientX;\n tooltipInfo.posY = e.clientY;\n if(ix!=-1 && !ownTooltip && tooltipInfo.dwellTimeout>0){ // Go dwell timer.\n tooltipInfo.idTimer = setTimeout(function(){\n tooltipInfo.idTimer = 0;\n stopCloseTimer();\n showGraphTooltip();\n },tooltipInfo.dwellTimeout);\n }\n }", "onMouseMove(e) {\n var offset = this._$canvas.offset();\n var mousePosition = arbor.Point(e.pageX - offset.left, e.pageY - offset.top)\n \n // find the nearest node to the mouse\n var nearest = this._ps.nearest(mousePosition);\n\n // if it doesn't exist or its not within 20 pixels, clear\n // current item \n if (!nearest || !nearest.node || nearest.distance > REN.MOUSE_DISTANCE) {\n this._currentNodeFocus = null;\n return;\n }\n\n // set the nearest node to the current node \n this._currentNodeFocus = nearest.node;\n }", "_onHoverItemMouseEnter(evt) {\n $(evt.target).closest('.infobox-hover-item')\n .addClass('infobox-hover-item-opened');\n }", "function handleMouseOver(d, i) {\n\t\tlet v = d3.select(this)\n\t\tif(!v.attr('clique-part'))\n\t\t\tv.attr('fill', nodesMouseOverFillColor)\n\t\tshowNodeLabelText(v.attr('label'))\n\t\tfillNeighborhoodNodes(v.attr('index'), nodesMouseOverNeighborsFillColor) // Fill neighborhood second option\n\t}", "mainContainerHandleOnMouseEnter(){\n this.setState({\n mainContainerIsHovered: true\n });\n }", "function OnMouseEnter (event)\n{\n if (event.target != currSelCell && event.target.getAttribute ('CellState') != 'error')\n {\n event.target.style.backgroundColor = preselectedColour;\n }\n}", "function nodeMouseOut(){\n if(bOverrideMouseOver()) {\n return;\n }\n setState(STATE.HOVEREMPTY);\n setSelection({}, TYPE.EMPTY);\n}", "function setupEvents(){\n var nodes = graphSVG.selectAll(\".node\");\n var edges = graphSVG.selectAll(\".edge\");\n var items = listSVG.selectAll(\".item\");\n \n // Set up node selection events\n var select = Selectable().getrange(function(a, b) {\n var path = getNodesBetween(a, b).concat(getNodesBetween(b, a));\n return nodes.data(path, DAG.nodeid());\n }).on(\"select\", function() {\n var selected = {};\n graphSVG.selectAll(\".node.selected\").data().forEach(function(d) { selected[d.id]=true; });\n edges.classed(\"selected\", function(d) {\n return selected[d.source.id] && selected[d.target.id]; \n });\n attachContextMenus();\n DAGTooltip.hide();\n });\n select(nodes);\n \n \n nodes.on(\"mouseover\", function(d) {\n graphSVG.classed(\"hovering\", true);\n highlightPath(d);\n }).on(\"mouseout\", function(d){\n graphSVG.classed(\"hovering\", false);\n edges.classed(\"hovered\", false).classed(\"immediate\", false);\n nodes.classed(\"hovered\", false).classed(\"immediate\", false);\n });\n \n edges.on(\"mouseover\", function(d) {\n \tgraphSVG.classed(\"hovering\", true);\n \thighlightEdge(d);\n }).on(\"mouseout\", function(d) {\n graphSVG.classed(\"hovering\", false);\n edges.classed(\"hovered\", false).classed(\"immediate\", false);\n nodes.classed(\"hovered\", false).classed(\"immediate\", false);\n })\n \n // When a list item is clicked, it will be removed from the history and added to the graph\n // So we override the DAG node transition behaviour so that the new nodes animate from the click position\n items.on(\"click\", function(d, i) {\n // Remove the item from the history and redraw the history\n history.remove(d);\n listSVG.datum(history).call(DAGHistory);\n \n // Now update the location that the new elements of the graph will enter from\n var transform = zoom.getTransform(DAGHistory.bbox().call(this, d));\n DAG.newnodetransition(function(d) {\n if (DAG.animate()) {\n d3.select(this).attr(\"transform\", transform).transition().duration(800).attr(\"transform\", DAG.nodeTranslate);\n } else {\n d3.select(this).attr(\"transform\", transform).attr(\"transform\", DAG.nodeTranslate); \n }\n })\n \n // Redraw the graph and such\n dag.draw();\n })\n \n function highlightEdge(edge) {\n \tedges.classed(\"hovered immediate\", function(d) {\n \t\treturn d == edge;\n \t});\n \tnodes.classed(\"hovered immediate\", function(d) {\n \t\treturn d == edge.source || d == edge.target;\n \t});\n }\n \n function highlightPath(center) { \n var path = getEntirePathLinks(center);\n \n var pathnodes = {};\n var pathlinks = {};\n \n path.forEach(function(p) {\n pathnodes[p.source.id] = true;\n pathnodes[p.target.id] = true;\n pathlinks[p.source.id+p.target.id] = true;\n });\n \n edges.classed(\"hovered\", function(d) {\n return pathlinks[d.source.id+d.target.id]; \n })\n nodes.classed(\"hovered\", function(d) {\n return pathnodes[d.id];\n });\n \n var immediatenodes = {};\n var immediatelinks = {};\n immediatenodes[center.id] = true;\n center.getVisibleParents().forEach(function(p) {\n immediatenodes[p.id] = true;\n immediatelinks[p.id+center.id] = true;\n })\n center.getVisibleChildren().forEach(function(p) {\n immediatenodes[p.id] = true;\n immediatelinks[center.id+p.id] = true;\n })\n \n edges.classed(\"immediate\", function(d) {\n return immediatelinks[d.source.id+d.target.id];\n })\n nodes.classed(\"immediate\", function(d) {\n return immediatenodes[d.id];\n })\n }\n }", "mouseEnter () {\r\n this.setState({bgColor: this.props.theme.headerMarketsHover})\r\n }", "createNodeAndListeners() {\n super.createNodeAndListeners();\n this.hoverListenerOn();\n }", "function hovering(e) {\n console.log('enter');\n $(e.target).css('color', 'red');\n}", "handleMouseEnter(row, col) {\n if (!this.state.mouseIsPressed) return;\n const newGrid = getNewGridWithWallToggled(this.state.grid, row, col);\n this.setState({ grid: newGrid });\n }", "handleMouseOver() {\n // Expand/Collapse: hide button if displayed\n if (this._node && this._node.handleMouseOver) {\n this._node.handleMouseOver();\n }\n }", "handleMouseEnter(row, col) {\n if (!this.state.mouseIsPressed) return;\n const newGrid = getNewGridWithWallToggled(this.state.grid, row, col);\n this.setState({grid: newGrid});\n }", "mouseEnter() {\n this.setState(state => ({\n isMouseHovering: true\n }));\n }", "function mouseOverHandle(){\n circle.transition().duration(200).attr('opacity',1);\n caption.transition().duration(200).attr('opacity',1);\n curYear.transition().duration(200).attr('opacity',1);\n d3.selectAll(\".x.axis\")\n .transition()\n .duration(500)\n .attr('opacity',0);\n }", "function hover(parentSelector, childSelector, mouseEnter, mouseLeave) {\n $(parentSelector).on({\n mouseenter: function() {\n if(mouseEnter != null) {\n mouseEnter(this);\n }\n },\n mouseleave: function() {\n if(mouseLeave != null) {\n mouseLeave(this);\n }\n }\n }, childSelector);\n}", "_mouseEventsHandler(event) {\n const that = this;\n\n event.type === 'mouseenter' ? that.setAttribute('hover', '') : that.removeAttribute('hover');\n }", "function handleMouseOverElement(e) {\n\t\t\te.currentTarget.addClassName('highlight');\n\t\t\ttheInterface.emit('ui:emphElement', {\n\t\t\t\tid : e.currentTarget.getAttribute('id'),\n\t\t\t\tlayer : e.currentTarget.getAttribute('data-layer')\n\t\t\t});\n\t\t}", "handleMouseEnter() {\n if (\n this._triggers === 'hover' &&\n this.popoverVisible &&\n !this._disabled &&\n !this._cancelBlur\n ) {\n this.cancelBlur();\n }\n if (\n this._triggers === 'hover' &&\n !this.popoverVisible &&\n !this._disabled\n ) {\n this.allowBlur();\n this.toggleMenuVisibility();\n }\n }", "function mouseEnteredCanvas(event) {\n\tmouseInOutLabel.innerHTML = \"Mouse inside of Canvas\";\n\tdocument.body.style.cursor = 'crosshair';\n\tcanvas.style.border = activeCanvasBorder;\n\tinsideCanvas = true;\n}", "function dragEnter(e) {\n item = e.target;\n e.preventDefault();\n if (item.classList.contains('todo-item')){\n item.classList.add('hovered');\n }\n }", "function handleMouseClickNode(d) {\n var data = data_display.getNearLinksAndNodes(d, links);\n data_display.highlightElements(data, d, svg);\n data_display.getInfoForSelectedNode($element, d);\n exposeSiblingNodes(data.nodes);\n }", "function mousedown() {\n // because :active only works in WebKit?\n svg.classed(\"active\", true);\n\n if (d3.event.shiftKey || mousedownNode || mousedownLink) return;\n\n else if (d3.event.ctrlKey) {\n // insert new node at point\n const point = d3.mouse(this);\n \n var text = prompt(\"What do you want to name the new Node?\");\n \n if(text !== null){\n \n const node = { id: ++lastNodeId, name: text, h: 50, w: 50, reflexive: false, x: point[0], y: point[1] };\n dataset.nodes.push(node);\n\n update(); \n }\n\n svg.classed(\"ctrl\", false);\n }\n \n}", "function onEnterNode(ci, userId, workflow, nodeId) {\r\n log.debug(\"onEnterNode(\");\r\n log.debug(\")onEnterNode\");\r\n}", "StartMouseover() {\n window.addEventListener(\"mousemove\", this.MouseoverMove);\n }", "function firstContact() {\n\tlet gridItem = document.querySelectorAll('.gridItem');\n gridItem.forEach((div) => {\n div.addEventListener('mouseenter', colorIn);\n })\n}", "_addEvents () {\n this.container.classList.add(\"tooltiped\");\n\n this.container.addEventListener(\"mouseenter\", this._mouseOver.bind(this));\n this.container.addEventListener(\"mousemove\", this._mouseMove.bind(this));\n this.container.addEventListener(\"mouseleave\", this._mouseOut.bind(this));\n }", "function registerItemEvents(item) {\n item.addEventListener('mouseenter', itemMouseEnter);\n item.addEventListener('mouseleave', itemMouseLeave);\n}", "function Ctr700_DO_NodeHandler_OnNodesStarted ()\n {\n\n TraceMsg ('{Ctr700_DO_Node} process initial input state...');\n\n return;\n\n }" ]
[ "0.75314426", "0.7472995", "0.7363172", "0.7354481", "0.7317155", "0.7239587", "0.6869569", "0.6854707", "0.67540354", "0.6735572", "0.67253107", "0.6723072", "0.6722547", "0.6722547", "0.6636972", "0.6628364", "0.6599741", "0.6599741", "0.65604305", "0.6559505", "0.65539724", "0.6549534", "0.6534561", "0.6413373", "0.64102376", "0.6372378", "0.6355133", "0.63165635", "0.6304257", "0.6293793", "0.6282282", "0.625727", "0.62431836", "0.6241097", "0.6217305", "0.62087756", "0.62046516", "0.61893827", "0.61891043", "0.61856705", "0.6181353", "0.6176264", "0.61633843", "0.61570996", "0.6133021", "0.6128562", "0.61203885", "0.6120248", "0.61086804", "0.60830784", "0.60551167", "0.60256094", "0.60106415", "0.5995214", "0.5987343", "0.5956738", "0.5956643", "0.5945621", "0.59385574", "0.5925772", "0.59252065", "0.5923614", "0.59196454", "0.59196454", "0.59136695", "0.5897578", "0.5897105", "0.58776253", "0.5872974", "0.5870201", "0.58685464", "0.5860815", "0.58591855", "0.58585185", "0.5857251", "0.58544797", "0.5853218", "0.58439714", "0.58427155", "0.5838543", "0.58197", "0.58073574", "0.58065444", "0.57997864", "0.5794035", "0.57897586", "0.5779824", "0.5779704", "0.57796395", "0.57795244", "0.57764477", "0.5769721", "0.57655257", "0.5765103", "0.57482874", "0.574761", "0.57475114", "0.5746336", "0.57337296", "0.57276917" ]
0.5770123
91
links section Create link paths
function diagonal(d) { return "M" + d.y + "," + d.x + "V" + d.parent.x + "H" + d.parent.y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setupLinks() {\n\tfor(let i = 0; i < 11; i++) {\n\t\tif(i == 10) { \n\t\t\tlinks[i] = createA('/resilience-repository/about.html', proj_names[i]);\n\t\t}\n\t\telse {\n\t\t\tlinks[i] = createA('/resilience-repository/projects/proj'+i+'.html', proj_names[i]);\n\t\t}\n\t}\n}", "function genLinks(map){\n map.forEach(function(value){ // For each JSON object in the Map\n value.linksTo.forEach(function(linkKey) { // For each destination node description\n var targetAxis = findLink(value.type); // Get the axis that this axis links to\n if(targetAxis !== \"\"){\n var targetObject = nodeMaps[targetAxis].get(linkKey); // Now that we have the name of the axis to link to, get the corresponding object.\n var jsonObj = {source: value, target: targetObject}; // Construct a relationship between the linked objects\n links.push(jsonObj);\n }\n });\n });\n}", "function nodeLinks(baseUrl, nodePath, addColonAtEnd) {\n var node_url = baseUrl;\n var span = $('<span/>');\n for (var i in nodePath) {\n node_url += '/' + nodePath[i];\n span.append($('<a>').attr('href', node_url).append(nodePath[i]));\n if (i < nodePath.length - 1) {\n span.append(' / ');\n } else if (addColonAtEnd) {\n span.append(': ');\n }\n }\n return span;\n}", "function drawLinks(links) {\n // Define arrowhead shape\n svgPointer.append('svg:defs').append('svg:marker')\n .attr('id', 'arrow')\n .attr('viewBox', '0 -5 10 10')\n .attr('refX', 2) // Move away from line's end\n .attr('markerWidth', 20)\n .attr('markerHeight', 20)\n .attr('orient', 'auto')\n .append('svg:path')\n .style('fill', 'rgb(150,150,150)')\n .attr('d', 'M0, -3L3, 0L0,3');\n\n // Add links\n linkPointer = svgPointer.selectAll('line.link')\n .data(links)\n .enter().append('path')\n .attr('class', 'link')\n .style('stroke', 'rgb(150,150,150)')\n .style( 'stroke-width', 1)\n .style('fill', 'transparent');\n\n linkPointer.filter( function(d) { return d.source.type === INTERMEDIATE || d.source === d.target; } )\n .attr('marker-end', 'url(#arrow)');\n}", "function environmentalLinks() {\n $('.la-link').each(function (i, link) {\n href = linuxacademyPath + removeBaseUrl($(link).attr('href'));\n $(link).attr('href', href);\n });\n\n $('.beta-link').each(function (i, link) {\n href = betaPath + removeBaseUrl($(link).attr('href'));\n $(link).attr('href', href);\n });\n\n $('.app-link').each(function (i, link) {\n href = appPath + removeBaseUrl($(link).attr('href'));\n $(link).attr('href', href);\n });\n}", "function link() {\n var LINKY_URL_REGEXP =\n /((ftp|https?):\\/\\/|(www\\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\\S*[^\\s.;,(){}<>\"”’]$/;\n var sub = selection.anchorNode.data.substring(0, selection.anchorOffset - 1);\n if (LINKY_URL_REGEXP.test(sub)) {\n var matchs = sub.match(LINKY_URL_REGEXP);\n if (matchs && matchs.length) {\n var st = selection.anchorOffset - matchs[0].length - 1;\n range.setStart(selection.anchorNode, st);\n scope.doCommand(null, {\n name: 'createLink',\n param: matchs[0]\n });\n }\n }\n }", "function link_generator(data){\n\n var i = 0,\n title = data[1],\n description = data[2],\n link = data[3];\n\n for(i; i < data[3].length; i++){\n var list_link = '<a href=\"'+link[i]+'\">'+title[i]+'</a><br/>';\n list_description = list_link+description[i]+'<hr>';\n links.append(list_description);\n }\n }", "startLinkRouting() {}", "toLinkUrl() {\r\n return this.urlPath + this._stringifyAux() +\r\n (isPresent(this.child) ? this.child._toLinkUrl() : '');\r\n }", "function insertLinks () {\n var pages = {\n RecentChanges: {\n title: i18n('recent_changes').escape(),\n links: ['WikiActivity', 'DiscussionsActivity']\n },\n WikiActivity: {\n title: i18n('wiki_activity').escape(),\n links: ['WikiActivity/watchlist', 'RecentChanges', 'DiscussionsActivity']\n },\n DiscussionsActivity: {\n title: i18n('discussions_activity').escape(),\n links: ['RecentChanges', 'WikiActivity']\n },\n 'WikiActivity/watchlist': {\n title: i18n('watchlist').escape(),\n links: ['RecentChanges', 'WikiActivity', 'DiscussionsActivity']\n }\n };\n // Terminates the function if the current page is not in the list\n if (Object.keys(pages).every(function (p) { return 'Special:' + p !== config.wgCanonicalNamespace + ':' + config.wgTitle; })) {\n return;\n }\n var headerSubtitle = document.getElementsByClassName('page-header__page-subtitle')[0];\n var pagesLinked = pages[config.wgTitle].links;\n var links = [];\n\n pagesLinked.forEach(function (page) {\n links.push('<a href=\"/wiki/Special:' + page + '\" title=\"Special:' + page + '\">' + pages[page].title + ' ></a>');\n });\n // Doesn't include link to followed pages if it's an anonymous user\n links = (config.wgTitle === 'WikiActivity' && !config.wgUserName ? links.slice(1) : links);\n // Inserts links\n headerSubtitle.innerHTML = links.join(' | ');\n }", "_setupLinks() {\n\t\tthis.$links = this.$control.find( '.link' );\n\n\t\tthis._bindLinked();\n\t}", "function createlinks() {\n $('#links').html('');\n $.each($imgpath, function ($precounter) {\n $('<img />').attr('src', $imgpath[$precounter]);\n $('#links').append('<a class=\"navbtn\" id=\"' + $precounter + '\">' + ($precounter + 1) + '</a>');\n $('.status').append('<img class=\"preload\" id=\"' + $precounter + '\" src=\"' + $galleryajax.thumbarray[$precounter] + '\" >');\n $('#arraysize').html($arraysize + ' Total images <br>');\n });\n }", "function addLinks() {\n\t\tsetLoggedUserName();\n\n\t\tif(loggedUserName == null) return;\n\n\t\t// Search for the div element in which tag are listed\n\t\tvar rightDiv = \n\t\t\t\tgetElementByClass(getElementsByName(document,'div'),'right list');\n\t\t\n\t\t// For each tag item in the div add the edit link and delete link\n\t\tvar itemBundles = getElementByClass(getElementsByName(rightDiv,'ul'),'bundles');\n\t\tvar bundleFold = getElementByClass(getElementsByName(itemBundles,'li'),'bundle fold');\n\t\tvar itemsGroupUL= getElementsByName(bundleFold,'ul')[0];\n\t\tvar itemsGroup = getElementsByName(itemsGroupUL,'li');\n\t\t\n\t\tfor(var index=0; index < itemsGroup.length; ++index) {\n\t\t\tvar item = itemsGroup[index];\n\t\t\tvar itemAnchor = getElementsByName(item,'a')[0];\n\t\t\tvar editLinkElem = createRenameLinkElement(item);\n\t\t\tvar delLinkElem = createDeleteLinkElement(item);\n\t\t\tif(editLinkElem != null) item.insertBefore(editLinkElem,itemAnchor);\n\t\t\tif(delLinkElem != null) item.insertBefore(delLinkElem,itemAnchor);\t\t\t\n\t\t}\n\t}", "function linkAttach(links, directory){\n\tvar linkList = links.split(\"]\");\n\tlinkList.forEach(function(link, index){\n\t\t\t this[index] = link.substring(1).split(\"#\")}, linkList);\n\tvar full = \"\";\n\tvar linklen = 0;\n\tlinkList.forEach(function(link){\n\t\t\t if(link.length == 3){\n\t\t\t\tfull += \"<p>\"+link[1]+\"</p> -<a href=data/\"+directory+'/'+link[0]+\" download>Download</a> -<a href=data/\"+directory+'/'+link[2]+\" target='_blank'>View</a><br>$ \";\n\t\t\t\tlinklen+=1;\n\t\t\t }\n\t\t\t if(link.length == 2){\n\t\t\t\tfull += \"<p>\"+link[1]+\"</p> -<a href=data/\"+directory+'/'+link[0]+\" download>Download</a><br>$ \";\n\t\t\t\tlinklen+=1;\n\t\t\t }\n\t\t\t});\n\tif (full.length == 0) return \"No relevant examples.\"\n\telse if (linklen == 1) return \"Example:\"+ toolList(full, \"$ \");\n\treturn \"Examples:\"+ toolList(full, \"$ \");\n}", "function initLinks(links){\n return svg.append(\"g\")\n .attr(\"class\", \"links\")\n .selectAll(\"line\")\n .data(links).enter().append(\"line\")\n .attr(\"stroke\", \"black\")\n .attr(\"stroke-width\", \"2px\")\n .style(\"marker-end\", \"url(#arrow)\");\n}", "function makeLink() {\n // var a=\"http://www.geocodezip.com/v3_MW_example_linktothis.html\"\n var url = window.location.pathname;\n var a = url.substring(url.lastIndexOf(\n '/') + 1) + \"?lat=\" +\n map.getCenter()\n .lat()\n .toFixed(6) + \"&lng=\" +\n map.getCenter()\n .lng()\n .toFixed(6) +\n \"&zoom=\" + map.getZoom() +\n \"&type=\" +\n MapTypeId2UrlValue(map.getMapTypeId());\n if (filename !=\n \"TrashDays40.xml\") a +=\n \"&filename=\" + filename;\n document.getElementById(\n \"link\")\n .innerHTML =\n '<a href=\"' + a +\n '\">Link to this page<\\/a>';\n }", "function formatLinks() {\n\t$('#allLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('grp')\");\n\t$('#abtLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('\"+category[0]+\"')\");\n\t$('#invLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('\"+category[1]+\"')\");\n\t$('#mediaLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('\"+category[2]+\"')\");\n\t$('#bankLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('\"+category[3]+\"')\");\n\t$('#susLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('\"+category[4]+\"')\");\n\t$('#careerLink').attr( \"href\",\"javascript:loadSearchDetailsByGroup('\"+category[5]+\"')\");\n}", "function drawLinks(links) {\n // scale to generate radians (just for lower-half of circle)\n var radians = d3.scale.linear()\n .range([Math.PI / 2, 3 * Math.PI / 2]);\n\n // path generator for arcs (uses polar coordinates)\n var arc = d3.svg.line.radial()\n .interpolate(\"basis\")\n .tension(0)\n .angle(function(d) { return radians(d); });\n\n //console.log(links);\n\n // add links\n d3.select(\"#plot\").selectAll(\".link\")\n .data(links)\n .enter()\n .append(\"path\")\n .attr(\"class\", \"link\")\n .attr(\"transform\", function(d, i) {\n\n //console.log(d);\n var xshift = d.source.x + (d.target.x - d.source.x) / 2;\n var yshift = yfixed; \n return \"translate(\" + xshift + \", \" + yshift + \")\";\n })\n .attr(\"d\", function(d, i) {\n // get x distance between source and target\n var xdist = Math.abs(d.source.x - d.target.x);\n\n // set arc radius based on x distance\n arc.radius(xdist / 2);\n\n // want to generate 1/3 as many points per pixel in x direction\n var points = d3.range(0, Math.ceil(xdist / 3));\n\n // set radian scale domain\n radians.domain([0, points.length - 1]);\n\n // return path for arc\n return arc(points);\n })\n .on(\"mouseover\", MouseOverArc)\n .on(\"mouseout\", MouseOut );\n}", "get links () {\n return this.items.filter(v => v.tag === 'a').map(v => {\n let { href } = new URL(v.attributes.href, this.base);\n return href;\n });\n }", "function drawLinks() {\n\t\t\tpanel.empty();\n\t\t\tvar interval = getInterval();\n\t\t\tvar np = numPages();\n\t\t\t// This helper function returns a handler function that calls pageSelected with the right page_id\n\t\t\tvar getClickHandler = function(page_id) {\n\t\t\t\treturn function(evt){ return pageSelected(page_id,evt); }\n\t\t\t}\n\t\t\t\n\t\t\t// Helper function for generating a single link (or a span tag if it'S the current page)\n\t\t\tvar appendItem = function(page_id, appendopts){\n\t\t\t\tpage_id = page_id<0?0:(page_id<np?page_id:np-1); // Normalize page id to sane value\n\t\t\t\tappendopts = jQuery.extend({text:page_id+1, classes:\"\"}, appendopts||{});\n\t\t\t\tif(page_id == current_page){\n\t\t\t\t\t/*var lnk = $(\"<span class='current' va='ttt'>\"+(appendopts.text)+\"</span>\");*/\n\t\t\t\t\tif(appendopts.classes==\"\"){\n\t\t\t\t\t\tvar lnk = $(\"<div class='current'><div class='btncenter'>\"+(appendopts.text)+\"</div></div>\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tvar lnk = $(\"<div class='disabled'><div class='btncenter'>\"+(appendopts.text)+\"</div></div>\");\n\t\t\t\t\t}\n\t\t \t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t/*var lnk = $(\"<a>\"+(appendopts.text)+\"</a>\")*/\n\t\t\t\t\tvar lnk = $(\"<div><div class='btncenter'>\"+(appendopts.text)+\"</div></div>\")\n\t\t\t\t\t\t.bind(\"click\", getClickHandler(page_id))\n\t\t\t\t\t\t.attr('href', opts.link_to.replace(/__id__/,page_id));\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(appendopts.classes){lnk.addClass(appendopts.classes);}\n\t\t\t\tpanel.append(lnk);\n\t\t\t}\n\n // Radys Add\n\t\t\t// Generate \"First\"-Link\n\t\t\tif(opts.first_text && (current_page > 0 || opts.prev_show_always)){\n\t\t\t\tappendItem(0,{text:opts.first_text, classes:\"first\"});\n\t\t\t}\n\n\t\t\t// Generate \"Previous\"-Link\n\t\t\tif(opts.prev_text && (current_page > 0 || opts.prev_show_always)){\n\t\t\t\tappendItem(current_page-1,{text:opts.prev_text, classes:\"prev\"});\n\t\t\t}\n\t\t\t// Generate starting points\n\t\t\tif (interval[0] > 0 && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tvar end = Math.min(opts.num_edge_entries, interval[0]);\n\t\t\t\tfor(var i=0; i<end; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\tif(opts.num_edge_entries < interval[0] && opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<div class='ellipsis'><div class='btncenter'>\"+opts.ellipse_text+\"</div></div>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Generate interval links\n\t\t\tfor(var i=interval[0]; i<interval[1]; i++) {\n\t\t\t\tappendItem(i);\n\t\t\t}\n\t\t\t// Generate ending points\n\t\t\tif (interval[1] < np && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tif(np-opts.num_edge_entries > interval[1]&& opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<div class='ellipsis'><div class='btncenter'>\"+opts.ellipse_text+\"</div></div>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t\tvar begin = Math.max(np-opts.num_edge_entries, interval[1]);\n\t\t\t\tfor(var i=begin; i<np; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// Generate \"Next\"-Link\n\t\t\tif(opts.next_text && (current_page < np-1 || opts.next_show_always)){\n\t\t\t\tappendItem(current_page+1,{text:opts.next_text, classes:\"next\"});\n\t\t\t}\n\n // Radys Add\n\t\t\t// Generate \"Last\"-Link\n\t\t\tif(opts.last_text && (current_page < np-1 || opts.next_show_always)){\n\t\t\t\tappendItem(np-1,{text:opts.last_text, classes:\"last\"});\n\t\t\t}\n\t\t\t\n\t\t\tif(opts.perpageview!=''){\n\t\t\t\t\n\t\t\t\tvar perpageviewObject = opts.perpageview;\n\t\t\t\t// alert(perpageviewObject);\n\t\t\t\tvar perpageOption = \"\";\n\t\t\t\tif($.trim(perpageviewObject).length>0){\n\t\t\t\t\tvar perPageView_array = perpageviewObject.split(\",\");\n\t\t\t\t\tif(perPageView_array.length>0){\n\t\t\t\t\t\tfor(var i =0;i<perPageView_array.length;i++){\n\t\t\t\t\t\t\t//perpageOption +=\"<option value='\"+perPageView_array[i]+\"'>\"+perPageView_array[i]+\"</option>\";\n\t\t\t\t\t\t\t//修改为“每页显示”选中 页面最大记录数 wl 2012-11-21\n\t\t\t\t\t\t\tif(opts.items_per_page==perPageView_array[i]){\n\t\t\t\t\t\t\t\tperpageOption +=\"<option selected='selected' value='\"+perPageView_array[i]+\"'>\"+perPageView_array[i]+\"</option>\";\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\tperpageOption +=\"<option value='\"+perPageView_array[i]+\"'>\"+perPageView_array[i]+\"</option>\";\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}\n\t\t\t\t\n\t\t\t\t//创建显示的页数\n\t\t\t/*\tvar gotopage= jQuery(\"<select class='perpagecount' name='perpagecount'>\" +\n\t\t\t\t\t\tperpageOption+\n\t\t\t\t\"</select>\").change(function(){\n\t\t\t\t\tvar selectCount = $(this).val();\n\t\t\t\t\tchagePerPageCount(selectCount);\n\t\t\t\t});*/\n\t\t\t\tvar gotopage= jQuery(\"<select class='perpagecount' name='perpagecount'>\" +\n\t\t\t\t\t\tperpageOption+\n\t\t\t\t\"</select>\").change(function(){\n\t\t\t\t\tvar selectCount = $(this).val();\n\t\t\t\t\tchagePerPageCount(selectCount);\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t//alert('opts.go_page:'+opts.go_page+\",opts.current_page:\"+opts.current_page);\n\t\t\t\t\n\t\t\t\tvar inputObj = jQuery(\"<div><input type='text' value='\"+(opts.current_page+1)+\"'></div>\");\n\t\t\t\t//绑定回车事件\n\t\t\t\tinputObj.children().eq(0).bind('keypress',function(event){\n\t\t if(event.keyCode == \"13\") \n\t\t {\n\t\t \tvar selectCount = inputObj.children().eq(0).val();\n\t\t\t\t\t\tgoToPage(selectCount); \n\t\t }\n\t\t });\n\t\t\t\tvar gotopage = jQuery(\"<div class='page_go'>go</div>\").click(function(){\n\t\t\t\t\tvar selectCount = inputObj.children().eq(0).val();\n\t\t\t\t\tgoToPage(selectCount); \n\t\t\t\t});\n\t\t\t\t//gotopage = jQuery(inputObj.append(gotopage));\n\t\t\t\tvar gotoPagePanel = jQuery(\"<div class='total'><div>共\"+opts.total_count+\"条 </div> </div>\").append(inputObj).append(\"<div>页</div>\").append(gotopage);\n\t\t\t\t//var gotoPagePanel = \"<div class='total'><label>共\"+opts.total_count+\"条 </label></div> 到\"+inputHtml+ \"页\";\n\t\t\t\tpanel.append(gotoPagePanel); \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t// \talert($(panel).html());\n\n\t\t}//end drawlinks", "function bindLinks() {\n const links = document.querySelectorAll('a.page');\n links.forEach(link => {\n const linked = link.hasAttribute('linked');\n const href = link.getAttribute('href');\n const pathName = getPathName(href);\n\n // bail on already bound\n if (linked) return;\n\n // bail out if not defined route\n if (routes[pathName] === undefined) return;\n\n // bind click event\n link.addEventListener('click', e => {\n e.preventDefault();\n loadPage(pathName);\n });\n\n // flag has been bound\n link.setAttribute('linked', '');\n });\n}", "linksHandler() {\n\t\treplaceLinks(this.content, (href) => {\n\t\t\tthis.emit(EVENTS.CONTENTS.LINK_CLICKED, href);\n\t\t});\n\t}", "function addLinks(links) {\r\n\t\tgraph.edges =graph.edges || [];\r\n\t\tif (links!==undefined && links.length) {\r\n\t\t\tlinks.forEach(function(link, index) {\r\n\t\t\t\tvar indexOfSourceAndTarget= getIndexOfSourceAndTarget(link);\r\n\t\t\t\tif (indexOfSourceAndTarget!==undefined && indexOfSourceAndTarget.sourceIndex!==undefined && indexOfSourceAndTarget.targetIndex!==undefined) {\r\n\t\t\t\t\tlink.source =indexOfSourceAndTarget.sourceIndex;\r\n\t\t\t\t\tlink.target = indexOfSourceAndTarget.targetIndex;\r\n\t\t\t\t\tgraph.edges.push(link);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "function genLinks(courses){\n //TODO: cleaner code\n let links = [];\n courses.forEach((course)=>{\n course.prerequisites.forEach((pre)=>{\n links.push({\"source\": pre, \"target\": course.id});\n });\n });\n\n return links;\n}", "function makeLinksClickable () {\n // Bring the layer with arrows forward.\n var $links = getLinkLayer();\n $divViewControlLayer.append($links);\n\n if (properties.browser === 'mozilla') {\n // A bug in Firefox? The canvas in the div element with the largest z-index.\n $divViewControlLayer.append($canvas);\n } else if (properties.browser === 'msie') {\n $divViewControlLayer.insertBefore($divLabelDrawingLayer);\n }\n }", "function drawLinks() {\n\t\t\tpanel.empty();\n\t\t\tvar interval = getInterval();\n\t\t\tvar np = numPages();\n\t\t\t// This helper function returns a handler function that calls pageSelected with the right page_id\n\t\t\tvar getClickHandler = function(page_id) {\n\t\t\t\treturn function(evt){ return pageSelected(page_id,evt); }\n\t\t\t}\n\t\t\t// Helper function for generating a single link (or a span tag if it's the current page)\n\t\t\tvar appendItem = function(page_id, appendopts){\n\t\t\t\tpage_id = page_id<0?0:(page_id<np?page_id:np-1); // Normalize page id to sane value\n\t\t\t\tappendopts = jQuery.extend({text:page_id+1, classes:\"\"}, appendopts||{});\n\t\t\t\tif(page_id == current_page){\n\t\t\t\t\tvar lnk = jQuery(\"<span class='current'>\"+(appendopts.text)+\"</span>\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tvar lnk = jQuery(\"<a>\"+(appendopts.text)+\"</a>\")\n\t\t\t\t\t\t.bind(\"click\", getClickHandler(page_id))\n\t\t\t\t\t\t.attr('href', opts.link_to.replace(/__id__/,page_id));\n\n\n\t\t\t\t}\n\t\t\t\tif(appendopts.classes){lnk.addClass(appendopts.classes);}\n\t\t\t\tpanel.append(lnk);\n\t\t\t}\n\t\t\t// Generate \"Previous\"-Link\n\t\t\tif(opts.prev_text && (current_page > 0 || opts.prev_show_always)){\n\t\t\t\tappendItem(current_page-1,{text:opts.prev_text, classes:\"prev\"});\n\t\t\t}\n\t\t\t// Generate starting points\n\t\t\tif (interval[0] > 0 && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tvar end = Math.min(opts.num_edge_entries, interval[0]);\n\t\t\t\tfor(var i=0; i<end; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\tif(opts.num_edge_entries < interval[0] && opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Generate interval links\n\t\t\tfor(var i=interval[0]; i<interval[1]; i++) {\n\t\t\t\tappendItem(i);\n\t\t\t}\n\t\t\t// Generate ending points\n\t\t\tif (interval[1] < np && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tif(np-opts.num_edge_entries > interval[1]&& opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t\tvar begin = Math.max(np-opts.num_edge_entries, interval[1]);\n\t\t\t\tfor(var i=begin; i<np; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// Generate \"Next\"-Link\n\t\t\tif(opts.next_text && (current_page < np-1 || opts.next_show_always)){\n\t\t\t\tappendItem(current_page+1,{text:opts.next_text, classes:\"next\"});\n\t\t\t}\n\t\t}", "function makeLinks(site, node) {\r\n\tvar container = $(\"<span class='torrentLinkSpan'></span>\");\r\n\tvar artistName = getText(site.artistPath ? $(site.artistPath, node) : $(node));\r\n\tvar albumName = site.albumPath ? getText($(site.albumPath, node)) : \"\";\r\n\tif(albumName && site.albumFunction) albumName = site.albumFunction(albumName).replace(/^\\s+/,\"\");\r\n\tfor(j = 0;search=searches[j];j++)\r\n\t\tif(search != site.search) addLink(container, search, {artist:artistName, album:albumName});\r\n\tif (site.beforePath) $(site.beforePath, node).before(container);\r\n\telse (site.placePath ? $(site.placePath, node) : $(node)).append(container);\t\t\r\n}", "function drawLinks(svg, graph, path) {\n var link = svg.append('g')\n .selectAll('.link')\n .data(graph.edges)\n .enter()\n .append('path')\n .attr('class', 'link')\n .attr('d', path)\n .style('stroke-width', function(d) {\n return Math.max(1, Math.abs(d.dy));\n })\n .style('stroke', function(d) {\n return getColor(d.source);\n })\n .sort(function(a, b) { return b.dy - a.dy; });\n \n link.append(\"title\")\n .text(function (d) {\n return '$' + d.value.toFixed(2);\n });\n}", "function drawLinks() {\n\t\t\tpanel.empty();\n\t\t\tvar interval = getInterval();\n\t\t\tvar np = numPages();\n\t\t\t// This helper function returns a handler function that calls pageSelected with the right page_id\n\t\t\tvar getClickHandler = function(page_id) {\n\t\t\t\treturn function(evt){ return pageSelected(page_id,evt); }\n\t\t\t}\n\t\t\t// Helper function for generating a single link (or a span tag if it's the current page)\n\t\t\tvar appendItem = function(page_id, appendopts){\n\t\t\t\tpage_id = page_id<0?0:(page_id<np?page_id:np-1); // Normalize page id to sane value\n\t\t\t\tappendopts = jQuery.extend({text:page_id+1, classes:\"\"}, appendopts||{});\n\t\t\t\tif(page_id == current_page){\n\t\t\t\t\tvar lnk = jQuery(\"<span class='ui-state-active ui-corner-all'>\"+(appendopts.text)+\"</span>\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tvar lnk = jQuery(\"<a class='ui-state-default ui-corner-all'>\"+(appendopts.text)+\"</a>\")\n\t\t\t\t\t\t.bind(\"click\", getClickHandler(page_id))\n\t\t\t\t\t\t.attr('href', opts.link_to.replace(/__id__/,page_id));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(appendopts.classes){lnk.addClass(appendopts.classes);}\n\t\t\t\tpanel.append(lnk);\n\t\t\t}\n\t\t\t// Generate \"Previous\"-Link\n\t\t\tif(opts.prev_text && (current_page > 0 || opts.prev_show_always)){\n\t\t\t\tappendItem(current_page-1,{text:opts.prev_text, classes:\"prev\"});\n\t\t\t}\n\t\t\t// Generate starting points\n\t\t\tif (interval[0] > 0 && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tvar end = Math.min(opts.num_edge_entries, interval[0]);\n\t\t\t\tfor(var i=0; i<end; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\tif(opts.num_edge_entries < interval[0] && opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Generate interval links\n\t\t\tfor(var i=interval[0]; i<interval[1]; i++) {\n\t\t\t\tappendItem(i);\n\t\t\t}\n\t\t\t// Generate ending points\n\t\t\tif (interval[1] < np && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tif(np-opts.num_edge_entries > interval[1]&& opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t\tvar begin = Math.max(np-opts.num_edge_entries, interval[1]);\n\t\t\t\tfor(var i=begin; i<np; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// Generate \"Next\"-Link\n\t\t\tif(opts.next_text && (current_page < np-1 || opts.next_show_always)){\n\t\t\t\tappendItem(current_page+1,{text:opts.next_text, classes:\"next\"});\n\t\t\t}\n\t\t}", "function drawLinks() {\n\t\t\tpanel.empty();\n\t\t\tvar interval = getInterval();\n\t\t\tvar np = numPages();\n\t\t\t// This helper function returns a handler function that calls pageSelected with the right page_id\n\t\t\tvar getClickHandler = function(page_id) {\n\t\t\t\treturn function(evt){ return pageSelected(page_id,evt); }\n\t\t\t}\n\t\t\t// Helper function for generating a single link (or a span tag if it's the current page)\n\t\t\tvar appendItem = function(page_id, appendopts){\n\t\t\t\tpage_id = page_id<0?0:(page_id<np?page_id:np-1); // Normalize page id to sane value\n\t\t\t\tappendopts = jQuery.extend({text:page_id+1, classes:\"\"}, appendopts||{});\n\t\t\t\tif(page_id == current_page){\n\t\t\t\t\tvar lnk = jQuery(\"<span class='current'>\"+(appendopts.text)+\"</span>\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tvar lnk = jQuery(\"<a>\"+(appendopts.text)+\"</a>\")\n\t\t\t\t\t\t.bind(\"click\", getClickHandler(page_id))\n\t\t\t\t\t\t.attr('href', opts.link_to.replace(/__id__/,page_id));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(appendopts.classes){lnk.addClass(appendopts.classes);}\n\t\t\t\tpanel.append(lnk);\n\t\t\t}\n\t\t\t// Generate \"Previous\"-Link\n\t\t\tif(opts.prev_text && (current_page > 0 || opts.prev_show_always)){\n\t\t\t\tappendItem(current_page-1,{text:opts.prev_text, classes:\"prev\"});\n\t\t\t}\n\t\t\t// Generate starting points\n\t\t\tif (interval[0] > 0 && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tvar end = Math.min(opts.num_edge_entries, interval[0]);\n\t\t\t\tfor(var i=0; i<end; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\tif(opts.num_edge_entries < interval[0] && opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Generate interval links\n\t\t\tfor(var i=interval[0]; i<interval[1]; i++) {\n\t\t\t\tappendItem(i);\n\t\t\t}\n\t\t\t// Generate ending points\n\t\t\tif (interval[1] < np && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tif(np-opts.num_edge_entries > interval[1]&& opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t\tvar begin = Math.max(np-opts.num_edge_entries, interval[1]);\n\t\t\t\tfor(var i=begin; i<np; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// Generate \"Next\"-Link\n\t\t\tif(opts.next_text && (current_page < np-1 || opts.next_show_always)){\n\t\t\t\tappendItem(current_page+1,{text:opts.next_text, classes:\"next\"});\n\t\t\t}\n\t\t}", "function drawLinks() {\n\t\t\tpanel.empty();\n\t\t\tvar interval = getInterval();\n\t\t\tvar np = numPages();\n\t\t\t// This helper function returns a handler function that calls pageSelected with the right page_id\n\t\t\tvar getClickHandler = function(page_id) {\n\t\t\t\treturn function(evt){ return pageSelected(page_id,evt); }\n\t\t\t}\n\t\t\t// Helper function for generating a single link (or a span tag if it's the current page)\n\t\t\tvar appendItem = function(page_id, appendopts){\n\t\t\t\tpage_id = page_id<0?0:(page_id<np?page_id:np-1); // Normalize page id to sane value\n\t\t\t\tappendopts = jQuery.extend({text:page_id+1, classes:\"\"}, appendopts||{});\n\t\t\t\tif(page_id == current_page){\n\t\t\t\t\tvar lnk = jQuery(\"<span class='current'>\"+(appendopts.text)+\"</span>\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tvar lnk = jQuery(\"<a>\"+(appendopts.text)+\"</a>\")\n\t\t\t\t\t\t.bind(\"click\", getClickHandler(page_id))\n\t\t\t\t\t\t.attr('href', opts.link_to.replace(/__id__/,page_id));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(appendopts.classes){lnk.addClass(appendopts.classes);}\n\t\t\t\tpanel.append(lnk);\n\t\t\t}\n\t\t\t// Generate \"Previous\"-Link\n\t\t\tif(opts.prev_text && (current_page > 0 || opts.prev_show_always)){\n\t\t\t\tappendItem(current_page-1,{text:opts.prev_text, classes:\"prev\"});\n\t\t\t}\n\t\t\t// Generate starting points\n\t\t\tif (interval[0] > 0 && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tvar end = Math.min(opts.num_edge_entries, interval[0]);\n\t\t\t\tfor(var i=0; i<end; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\tif(opts.num_edge_entries < interval[0] && opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Generate interval links\n\t\t\tfor(var i=interval[0]; i<interval[1]; i++) {\n\t\t\t\tappendItem(i);\n\t\t\t}\n\t\t\t// Generate ending points\n\t\t\tif (interval[1] < np && opts.num_edge_entries > 0)\n\t\t\t{\n\t\t\t\tif(np-opts.num_edge_entries > interval[1]&& opts.ellipse_text)\n\t\t\t\t{\n\t\t\t\t\tjQuery(\"<span>\"+opts.ellipse_text+\"</span>\").appendTo(panel);\n\t\t\t\t}\n\t\t\t\tvar begin = Math.max(np-opts.num_edge_entries, interval[1]);\n\t\t\t\tfor(var i=begin; i<np; i++) {\n\t\t\t\t\tappendItem(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// Generate \"Next\"-Link\n\t\t\tif(opts.next_text && (current_page < np-1 || opts.next_show_always)){\n\t\t\t\tappendItem(current_page+1,{text:opts.next_text, classes:\"next\"});\n\t\t\t}\n\t\t}", "function createPollLinks(key) {\n\n var pollURL = \"/poll/\";\n var resultURL = \"/result/\";\n var result1 = pollURL + key;\n var result2 = resultURL + key;\n\n var link1 = $(\"<a>Link to Poll</a>\").attr('href', result1);\n $('#links').append(link1).append('<br>');\n\n // var link2 = $(\"<a>Link to Results</a>\").attr('href', result2);\n // $('#links').append(link2).append('<br>');\n\n }", "function drawLinks() {\r\n\r\n\t\t// Helper function for generating a single link (or a span tag if it's\r\n\t\t// the current page)\r\n\t\tvar appendItem = function(page_id, appendopts) {\r\n\t\t\tpage_id = page_id < 0 ? 0 : (page_id < np ? page_id : np); // Normalize\r\n\t\t\t// page\r\n\t\t\t// id to\r\n\t\t\t// sane\r\n\t\t\t// value\r\n\t\t\tappendopts = jQuery.extend({\r\n\t\t\t\ttext : page_id,\r\n\t\t\t\tclasses : \"\"\r\n\t\t\t}, appendopts || {});\r\n\r\n\t\t\tvar lnk;\r\n\r\n\t\t\tif (page_id == 0) {\r\n\t\t\t\tpage_id = 1; // 이전페이지가 0으로가는걸 막음. 위에서 페이지를 바꾸지 않은건 버튼을 생성하기\r\n\t\t\t\t// 위해.\r\n\t\t\t} else if (page_id == np + 1) {\r\n\t\t\t\tpage_id = np; // 다음페이지가 마지막을 초과하지 않게\r\n\t\t\t}\r\n\t\t\tif (page_id == current_page) {\r\n\t\t\t\tlnk = jQuery(\"<span class='current'>\" + (appendopts.text)\r\n\t\t\t\t\t\t+ \"</span>\"); // 현재페이지는 클릭없음\r\n\t\t\t} else {\r\n\t\t\t\tlnk = jQuery(\"<a>\" + (appendopts.text) + \"</a>\").attr(\r\n\t\t\t\t\t\t'onClick',\r\n\t\t\t\t\t\t'javascript:' + opts.user_function + '(' + page_id\r\n\t\t\t\t\t\t\t\t+ ');').attr('id', opts.obj_id + '_' + page_id);\r\n\t\t\t}\r\n\r\n\t\t\tif (appendopts.classes) {\r\n\t\t\t\tlnk.addClass(appendopts.classes);\r\n\t\t\t}\r\n\t\t\tpanel.append(lnk);\r\n\t\t};\r\n\r\n\t\tpanel.empty(); // 이전정보 비우고\r\n\t\tvar interval = getInterval(); // 시작과 끝지정\r\n\t\tvar np = numPages(); // 전체페이지개수\r\n\r\n\t\t// Generate \"First\"-Link\r\n\t\tif (opts.first_text && (opts.first_show_always)) {\r\n\t\t\tappendItem(1, {\r\n\t\t\t\ttext : opts.first_text,\r\n\t\t\t\tclasses : \"prev\"\r\n\t\t\t}); // 처음으로\r\n\t\t}\r\n\r\n\t\t// Generate \"Previous\"-Link\r\n\t\tif (opts.prev_text && (current_page > 0 || opts.prev_show_always)) {\r\n\t\t\tappendItem(current_page - 1, {\r\n\t\t\t\ttext : opts.prev_text,\r\n\t\t\t\tclasses : \"prev\"\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// Generate interval links\r\n\t\tfor ( var i = interval[0]; i <= interval[1]; i++) {\r\n\t\t\tappendItem(i);\r\n\t\t}\r\n\r\n\t\t// Generate \"Next\"-Link\r\n\t\tif (opts.next_text && (current_page < np - 1 || opts.next_show_always)) {\r\n\t\t\tappendItem(current_page + 1, {\r\n\t\t\t\ttext : opts.next_text,\r\n\t\t\t\tclasses : \"next\"\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// Generate \"last\"-Link\r\n\t\tif (opts.last_text && (opts.last_show_always)) {\r\n\t\t\tappendItem(np, {\r\n\t\t\t\ttext : opts.last_text,\r\n\t\t\t\tclasses : \"next\"\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t}", "function drawLinks(link)\n{\n link.attr(\"x1\", function(d) { return isNaN(d.source.x)?defaultX:d.source.x; })\n .attr(\"y1\", function(d) { return isNaN(d.source.y)?defaultY:d.source.y; })\n .attr(\"x2\", function(d) { return isNaN(d.target.x)?defaultX:d.target.x; })\n .attr(\"y2\", function(d) { return isNaN(d.target.y)?defaultY:d.target.y; });\nif (curvedLinks){\n\tlink.attr(\"d\", function(d) {\n\t\tvar even=d.source.id%2;\n\t\tvar intermediateX=d.source.x+((even==0)?1:-1)*(100);\n\t\t//console.log(d.source.name+\":\"+d.target.name+\" intermediateX: \"+intermediateX);\n\t\t//console.log(even+\":\"+d);\n\t linkOrientation=linkOrientation*-1;\t\n return \"M\" + d.source.x + \",\" + d.source.y\n + \"S\" + intermediateX + \",\" + d.source.y\n + \" \" + d.target.x + \",\" + d.target.y;\n });\n}\n}", "_link() {\r\n if(this.store.activeTab === \"n0\") {\r\n this.push(\"/\")\r\n }\r\n else {\r\n this.push(`/console/${this.connections[this.store.activeTab]}`)\r\n }\r\n }", "function atLinks() {\n linklist = [\"239MTG\", \"affinityforartifacts\", \"alliesmtg\", \"AllStandards\", \"Alphabetter\", \"Amonkhet\", \"architectMTG\", \"ArclightPhoenixMTG\", \"aristocratsMTG\", \"BadMTGCombos\", \"basementboardgames\", \"BaSE_MtG\", \"BudgetBrews\", \"budgetdecks\", \"BulkMagic\", \"cardsphere\", \"casualmtg\", \"CatsPlayingMTG\", \"CircuitContest\", \"cocomtg\", \"CompetitiveEDH\", \"custommagic\", \"DeckbuildingPrompts\", \"edh\", \"EDHug\", \"EggsMTG\", \"ElvesMTG\", \"enchantress\", \"EsperMagic\", \"findmycard\", \"fishmtg\", \"FlickerMTG\", \"freemagic\", \"goblinsMTG\", \"HamiltonMTG\", \"HardenedScales\", \"humansmtg\", \"infect\", \"johnnys\", \"kikichord\", \"lanternmtg\", \"lavaspike\", \"locketstorm\", \"lrcast\", \"magicarena\", \"Magicdeckbuilding\", \"MagicDuels\", \"magicTCG\", \"magicTCG101\", \"MakingMagic\", \"marchesatheblackrose\", \"marduMTG\", \"MentalMentalMagic\", \"millMTG\", \"ModernLoam\", \"modernmagic\", \"ModernRecMTG\", \"modernspikes\", \"ModernZombies\", \"monobluemagic\", \"mtg\", \"MTGAngels\", \"mtgbattlebox\", \"mtgbracket\", \"mtgbrawl\", \"mtgbudgetmodern\", \"mtgcardfetcher\", \"mtgcube\", \"MTGDredge\", \"mtgfinalfrontier\", \"mtgfinance\", \"mtgfrontier\", \"mtglegacy\", \"MTGManalessDredge\", \"MTGMaverick\", \"mtgmel\", \"mtgrules\", \"mtgspirits\", \"mtgtreefolk\", \"mtgvorthos\", \"neobrand\", \"nicfitmtg\", \"oathbreaker_mtg\", \"oldschoolmtg\", \"pauper\", \"PauperArena\", \"PauperEDH\", \"peasantcube\", \"PennyDreadfulMTG\", \"PioneerMTG\", \"planeshiftmtg\", \"ponzamtg\", \"RatsMTG\", \"RealLifeMTG\", \"RecklessBrewery\", \"rpg_brasil\", \"scapeshift\", \"shittyjudgequestions\", \"sistersmtg\", \"skredred\", \"Sligh\", \"spikes\", \"stoneblade\", \"StrangeBrewEDH\", \"SuperUltraBudgetEDH\", \"therandomclub\", \"Thoptersword\", \"threecardblind\", \"TinyLeaders\", \"TronMTG\", \"UBFaeries\", \"uwcontrol\", \"xmage\", \"reddit.com/message\", \"reddit.com/user/MTGCardFetcher\"]\n\n for (j = 0; j < linklist.length; j++) {\n if (location.href.toLowerCase().includes(linklist[j].toLowerCase()))\n return true;\n }\n return false;\n}", "function generatePathLinkout(pathArray) {\n // Build an html string of the paths\n // pathArray is a list of dicts for each edge in the path:\n // pathArray[i] gives a dict for the support of edge i\n // pathArray[i][stmt type j] is a list of all statements of type j supporting edge i\n // pathArray[i][stmt type j][k] is statement k of type j supporting edge i\n let htmlString = '';\n for (let edgeDict of pathArray) {\n if (Object.keys(edgeDict).length > 0) {\n let subj = edgeDict.subj;\n let obj = edgeDict.obj;\n htmlString += `<h5><b>${subj} &rarr; ${obj}</b><span class=\"float-right\">Statement types: ${(Object.keys(edgeDict).length-2).toString()}</span></h5>`;\n for (let stmt_type in edgeDict) {\n if ((stmt_type !== 'subj') && (stmt_type !== 'obj') &&\n (stmt_type !== 'weight_to_show') && (edgeDict[stmt_type])) {\n // FixMe: edgeDict[stmt_type] is added because all statement\n // types had to be added explicitly in the BaseModel. This is\n // something that needs to be fixed where the results are\n // assembled into JSONs. Either via adding dynamic name\n // attributes or by restructuring the JSON.\n // let dbLink = '';\n // if (stmt.stmt_hash.startsWith('http')) dbLink = stmt.stmt_hash;\n // ?subject=BRCA1&object=BRCA2&type=activation&ev_limit=1\n let agentsString = '';\n if (stmt_type.toLowerCase() === 'complex') agentsString = `agent0=${subj}&agent1=${obj}&`;\n else agentsString = `subject=${subj}&object=${obj}&`;\n let dbLink = INDRA_DB_URL_AGENTS + agentsString + `type=${stmt_type}&ev_limit=1`;\n let sourceBadges = generateSourceBadges(edgeDict[stmt_type]);\n htmlString += '<a href=\"' + dbLink + '\" target=\"_blank\">' + subj + ', ' +\n stmt_type + ', ' + obj + '</a>' + sourceBadges + '<br>'\n }\n }\n }\n }\n return htmlString.substring(0, htmlString.length-4); // Cut out the last <br>\n}", "function drawLink() {\n var stat = getState(cm);\n var url = \"http://\";\n _replaceSelection(cm, stat.link, insertTexts.link, url);\n}", "static buildUrls(reflection, urls) {\n const mapping = DefaultTheme.getMapping(reflection);\n if (mapping) {\n if (!reflection.url ||\n !DefaultTheme.URL_PREFIX.test(reflection.url)) {\n const url = [\n mapping.directory,\n DefaultTheme.getUrl(reflection) + \".html\",\n ].join(\"/\");\n urls.push(new UrlMapping_1.UrlMapping(url, reflection, mapping.template));\n reflection.url = url;\n reflection.hasOwnDocument = true;\n }\n for (const child of reflection.children || []) {\n if (mapping.isLeaf) {\n DefaultTheme.applyAnchorUrl(child, reflection);\n }\n else {\n DefaultTheme.buildUrls(child, urls);\n }\n }\n }\n else if (reflection.parent) {\n DefaultTheme.applyAnchorUrl(reflection, reflection.parent);\n }\n return urls;\n }", "getLinks() {\n return [];\n }", "function getAmuleLink(links, cat) {\r\n\r\n\tif(cat == \"0\") {\r\n\t\tcat = \"all\";\r\n\t}\r\n\t\r\n\t// Url to add ed2k links to amule\r\n\treturn emuleUrl + \"footer.php?selectcat=\" + cat + \"&Submit=Download+link&ed2klink=\" + links;\r\n}", "link() {\n //this.models\n //this.sequences\n //this.genericTopLevels\n //this.ranges\n //this.cuts\n //this.genericLocations\n\n this.moduleDefinitions.forEach(function(moduleDefinition) {\n moduleDefinition.link();\n });\n \n this.modules.forEach(function(module) {\n module.link();\n });\n \n this.mappings.forEach(function(mapping) {\n mapping.link();\n });\n\n this.sequenceAnnotations.forEach(function(sequenceAnnotation) {\n sequenceAnnotation.link();\n });\n\n this.sequenceConstraints.forEach(function(sequenceConstraint) {\n sequenceConstraint.link();\n });\n\n this.componentDefinitions.forEach(function(componentDefinition) {\n componentDefinition.link();\n });\n\n this.functionalComponents.forEach(function(functionalComponent) {\n functionalComponent.link();\n });\n\n this.components.forEach(function(component) {\n component.link();\n });\n\n this.interactions.forEach(function(interaction) {\n interaction.link();\n });\n\n this.participations.forEach(function(participation) {\n participation.link();\n });\n\n this.collections.forEach(function(collection) {\n collection.link();\n });\n\n this.implementations.forEach(function(implementation) {\n implementation.link();\n });\n\n\t\t// All classes that inherit from Top Level (Identified) must be linked to link members of Top Level i.e.: attachments\n\t\tthis.attachments.forEach(function(attachment) {\n\t\t\tattachment.link();\n\t\t});\n\n\t\tthis.sequences.forEach(function(sequence) {\n\t\t\tsequence.link();\n\t\t});\n\n\t\tthis.models.forEach(function(model) {\n\t\t\tmodel.link();\n\t\t});\n\n\t\tthis.genericTopLevels.forEach(function(genericTopLevel) {\n\t\t\tgenericTopLevel.link();\n\t\t});\n\n this.provActivities.forEach(function(activity) {\n activity.link();\n });\n\n\t\tthis.provPlans.forEach(function(provPlan) {\n\t\t\tprovPlan.link();\n\t\t});\n\n\t\tthis.provAgents.forEach(function(provAgent) {\n\t\t\tprovAgent.link();\n\t\t});\n\n\t\tthis.provAssociations.forEach(function(association) {\n\t\t\tassociation.link();\n\t\t});\n\n\t\tthis.provUsages.forEach(function(usage) {\n\t\t\tusage.link();\n\t\t});\n\n this.combinatorialDerivations.forEach(function(derivation) {\n derivation.link();\n });\n\n this.variableComponents.forEach(function(component) {\n component.link();\n });\n }", "link() {\n this._locations = this._sbolDocument.lookupURIs(this._locations);\n this._component = this._sbolDocument.lookupURI(this._component);\n }", "link() {\n\t\t// Call super link to link members of Top Level (Identified)\n\t\tsuper.link();\n\t\t\n this._built = this._sbolDocument.lookupURI(this._built);\t\t\n }", "function addLink() {\n SC.RunLoop.begin();\n Nodelink.store.createRecord(Nodelink.Link, { guid: 'node2', startNode: 'node1', endNode: 'node2' } );\n SC.RunLoop.end();\n}", "setupLinks() {\n for (let link in this.links) {\n this.links[link].addEventListener(\"click\", (e) => {\n let linkID = e.target.id;\n let viewToShow = linkID.slice(0, -5);\n let pointerToShow = `${viewToShow}-pointer`;\n this.showView(viewToShow);\n this.showPointer(pointerToShow);\n });\n\n // Events mouseover and mouseout simulates a hover effect for links.\n this.links[link].addEventListener(\"mouseover\", (e) => {\n let linkID = e.target.id;\n let pointerToShow = `${linkID.slice(0, -5)}-pointer`;\n this.showPointer(pointerToShow);\n });\n\n this.links[link].addEventListener(\"mouseout\", (e) => {\n for (let view in this.views) {\n if (this.views[view].classList != \"hidden\") {\n let activeView = `${this.views[view].id}-pointer`;\n this.showPointer(activeView);\n }\n }\n });\n }\n }", "function createLinks(txt){\n let xp =/((?:https?|ftp):\\/\\/[\\-A-Z0-9+\\u0026\\u2019@#\\/%?=()~_|!:,.;]*[\\-A-Z0-9+\\u0026@#\\/%=~(_|])/gi\n \n if (_.isString(txt)){\n return txt.replace(xp, \"<br><a target='_blank' href='$1'>$1</a>\") \n }\n}", "function drawLinks() {\n panel.empty();\n var interval = getInterval();\n var np = numPages();\n // This helper function returns a handler function that calls pageSelected with the right page_id\n var getClickHandler = function(page_id) {\n return function(evt) { return pageSelected(page_id, evt); }\n }\n // Helper function for generating a single link (or a span tag if it'S the current page)\n var appendItem = function(page_id, appendopts) {\n page_id = page_id < 0 ? 0 : (page_id < np ? page_id : np - 1); // Normalize page id to sane value\n appendopts = jQuery.extend({ text: page_id + 1, classes: \"\" }, appendopts || {});\n if (page_id == current_page) {\n var lnk = $(\"<span class='this_p'>\" + (appendopts.text) + \"</span>\");\n }\n else {\n var lnk = $(\"<a>\" + (appendopts.text) + \"</a>\")\n\t\t\t\t\t\t.bind(\"click\", getClickHandler(page_id))\n\t\t\t\t\t\t.attr('href', opts.link_to.replace(/__id__/, page_id));\n\n\n }\n if (appendopts.classes) { lnk.removeAttr('class'); lnk.addClass(appendopts.classes); }\n panel.append(lnk);\n }\n // Generate \"Previous\"-Link\n if (opts.prev_text && (current_page > 0 || opts.prev_show_always)) {\n appendItem(current_page - 1, { text: opts.prev_text, classes: \"disabled\" });\n }\n // Generate starting points\n if (interval[0] > 0 && opts.num_edge_entries > 0) {\n var end = Math.min(opts.num_edge_entries, interval[0]);\n for (var i = 0; i < end; i++) {\n appendItem(i);\n }\n if (opts.num_edge_entries < interval[0] && opts.ellipse_text) {\n jQuery(\"<span class='ellipse'>\" + opts.ellipse_text + \"</span>\").appendTo(panel);\n }\n }\n // Generate interval links\n for (var i = interval[0]; i < interval[1]; i++) {\n appendItem(i);\n }\n // Generate ending points\n if (interval[1] < np && opts.num_edge_entries > 0) {\n if (np - opts.num_edge_entries > interval[1] && opts.ellipse_text) {\n jQuery(\"<span class='ellipse'>\" + opts.ellipse_text + \"</span>\").appendTo(panel);\n }\n var begin = Math.max(np - opts.num_edge_entries, interval[1]);\n for (var i = begin; i < np; i++) {\n appendItem(i);\n }\n\n }\n // Generate \"Next\"-Link\n if (opts.next_text && (current_page < np - 1 || opts.next_show_always)) {\n appendItem(current_page + 1, { text: opts.next_text, classes: \"disabled\" });\n }\n\t\t\t//新增跳页20130613\n\t\t\tif(opts.jump){\n\t\t\t\tjQuery(\"<span class='pagjump_box'>跳到<input class='\"+opts.jump_input_style+\"' type='text' /><button type='button' class='\"+opts.jump_button_style+\"'>确定</button>\").appendTo(panel).delegate(\"button\",\"click\",function(e){\n\t\t\t\t\tvar page_id = jQuery(this).prev(\".pagjump_txt\").val();\n\t\t\t\t\tif(page_id == \"\"){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else if(page_id > np || page_id < 0){\n\t\t\t\t\t\talert(\"超出页码范围!\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t};\n\t\t\t\t\tpageSelected(page_id-1,e);\n\t\t\t\t});\n\t\t\t};\n }", "function ini_breadcrumb_genLink(root, name2href, name2title,\r\n\t\t\t\t\t\t\t\tind, ub, name) {\r\n\tvar typ = (ind == ub) ? \"tail\" : \"mid\";\r\n\treturn ini_breadcrumb_getLink(root, name2href[name], name2title[name], typ);\r\n}", "link() {\n\t\t// Call super link to link members of Top Level (Identified)\n\t\tsuper.link();\n\n this._modules = this._sbolDocument.lookupURIs(this._modules);\n this._functionalComponents = this._sbolDocument.lookupURIs(this._functionalComponents);\n this._interactions = this._sbolDocument.lookupURIs(this._interactions);\n this._models = this._sbolDocument.lookupURIs(this._models);\n }", "function createLinkLines(links, svg){\n\tvar link = {};\n\tfor(seqnum in links){\n\t\tlink[seqnum] = svg[seqnum].selectAll(\".link\")\n\t\t.data(links[seqnum])\n\t\t.enter().append(\"line\")\n\t\t.style(\"stroke\", linkColour)\n\t\t.attr(\"class\", \"link\");\n\t}\n\treturn link;\n}", "function _getlinks ()\n\t{\n\t\treturn links;\n\t}", "function insertingLinksToCollection (item, linked) {\n let linksNumbering=0;\n for( let i=0; i<linked.length; i++ ) {\n item.links[linksNumbering++] = {\n 'rel': linked[i][0],\n 'href': linked[i][1],\n 'prompt': linked[i][0]\n }\n }\n }", "get links(){\r\n\t\tvar data = this.data || {}\r\n\t\tvar links = data.links = data.links\r\n\t\t\t|| (this.raw.match(this.__wiki_link__) || [])\r\n\t\t\t\t// unwrap explicit links...\r\n\t\t\t\t.map(function(e){ \r\n\t\t\t\t\treturn e[0] == '[' ? \r\n\t\t\t\t\t\te.slice(1, -1) \r\n\t\t\t\t\t\t: e })\r\n\t\t\t\t// unique...\r\n\t\t\t\t.filter(function(e, i, l){ \r\n\t\t\t\t\treturn l.slice(0, i).indexOf(e) == -1 })\r\n\t\treturn links }", "function AddLink(link, sender) {\n var targetUrlStr = UrlHostPathname(link.target);\n\n if (blackListedUrls.has(targetUrlStr))\n return;\n\n var nodes = sessions[currentSession].nodes;\n\n // insert target node\n if (!(nodes[targetUrlStr])) {\n nodes[targetUrlStr] = {\n url: targetUrlStr,\n rawUrl: link.target,\n title: link.title,\n };\n } else {\n nodes[targetUrlStr].title = link.title;\n }\n\n // timestamp\n //if (!(nodes[targetUrlStr].timestamps)) {\n // nodes[targetUrlStr].timestamps = [];\n //}\n //nodes[targetUrlStr].timestamps.push(Date.now());\n var date = new Date();\n nodes[targetUrlStr].hours = date.getHours();\n nodes[targetUrlStr].minutes = date.getMinutes();\n\n // check that source URL is a nonempty string\n if (link.source.length > 0) {\n var sourceUrlStr = UrlHostPathname(link.source);\n\n // check for a self loop\n if (sourceUrlStr != targetUrlStr) {\n var forwardLinks = sessions[currentSession].forwardLinks;\n var backLinks = sessions[currentSession].backLinks;\n\n // insert source vertex\n if (!(nodes[sourceUrlStr])) {\n nodes[sourceUrlStr] = {\n url: sourceUrlStr,\n rawUrl: link.source\n };\n }\n\n if (!(forwardLinks[sourceUrlStr])) {\n forwardLinks[sourceUrlStr] = new Set();\n }\n if (!(backLinks[targetUrlStr])) {\n backLinks[targetUrlStr] = new Set();\n }\n\n // add vertices to the adjacency lists\n forwardLinks[sourceUrlStr].add(targetUrlStr);\n backLinks[targetUrlStr].add(sourceUrlStr);\n }\n }\n}", "function genLinks(key, mvName) {\n var links = '';\n links += '<a href=\"javascript:edit(\\'' + key + '\\',\\'' + mvName + '\\')\"> Edit</a> | ';\n links += '<a href=\"javascript:del(\\'' + key + '\\',\\'' + mvName + '\\')\"> X </a>';\n return links;\n}", "function updateGeneratedLinks() {\n var fileUrl = $('#input-file-url').val();\n var numFrom = '' + sequentialSttngs.from;\n var numSec = '' + (sequentialSttngs.from + 1);\n var numTo = '' + sequentialSttngs.to;\n numTo = +numTo > +numFrom ? numTo : numSec;\n var numWildcard = sequentialSttngs.wildcard;\n while (numFrom.length < numWildcard) numFrom = \"0\" + numFrom;\n while (numSec.length < numWildcard) numSec = \"0\" + numSec;\n while (numTo.length < numWildcard) numTo = \"0\" + numTo;\n\n $('#link-1').text(fileUrl.replace(/\\*/g, numFrom));\n $('#link-2').text(fileUrl.replace(/\\*/g, numSec));\n $('#link-n').text(fileUrl.replace(/\\*/g, numTo));\n}", "function getCustomLink(links, cat) {\r\n\t// Url to add ed2k links to custom application\r\n\r\n\treturn 'http://192.168.0.43/ed2k.php?cat=' + cat + '&post=' + encodeURIComponent(window.location) + '&ed2k=' + links;\r\n\t//return emuleUrl +'ed2k.php?cat=' + cat + '&post=' + encodeURIComponent(window.location) + '&ed2k=' + links;\r\n}", "function processLinks() {\n\t\n\t//Indicates internal domains\n\tvar internalDomains = (conf.trackExternalLinks && conf.internalDomains) ? conf.internalDomains.split(PARAM_SEPARATOR) : null;\n\t//Indicates the types of file to be downloaded\n\tvar downloadFileTypes = (conf.trackDownloadLinks && conf.downloadFileTypes) ? conf.downloadFileTypes.split(PARAM_SEPARATOR) : null;\n\t\n\t// Get the current GA instance\n\tvar plattforms = HAF._int.getPlattformInstances();\n\tvar gaRef = null; \n\tfor(var x = 0; x < plattforms.length; x++) {\n\t\tif(plattforms[x].name === HAF._int.Constants.GA ){\n\t\t\tgaRef = plattforms[x];\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\tfunction createOnclickHandler(link){\n\t\t// this complex syntax creates a closure around the href property of the link\n\t\tvar href = link.href;\t\t\t\n\t\treturn function(){\n\t\t\t//checks if link corresponds to a external link.\n\t\t\tif (internalDomains != null) {\n\t\t\t\tvar findInternalDomain = false;\n\t\t\t\tfor (var j = 0; j < internalDomains.length; j++) {\t\t\t\t\n\t\t\t\t\tvar patter = new RegExp(internalDomains[j], \"i\");\n\t\t\t\t\tif (href.match(patter) != null) {\n\t\t\t\t\t\tfindInternalDomain = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!findInternalDomain) {\n\t\t\t\t\tgaRef.recordOutboundLink(href);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//checks if link corresponds to a file download link.\n\t\t\tif (downloadFileTypes != null) {\n\t\t\t\tvar findFileType = false;\n\t\t\t\tvar fileType = \"\";\n\t\t\t\tfor (var j = 0; j < downloadFileTypes.length; j++) {\t\t\t\t\n\t\t\t\t\tvar patter = new RegExp(\"[\\x2E]\" + downloadFileTypes[j], \"i\");\n\t\t\t\t\tif (href.match(patter) != null) {\n\t\t\t\t\t\tfindFileType = true;\n\t\t\t\t\t\tfileType = downloadFileTypes[j];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (findFileType) {\n\t\t\t\t\tgaRef.recordDownloadFileLink(fileType, href);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\tvar links = window.document.getElementsByTagName(\"a\");\n\t//for earch link on the page.\n\tfor ( var i = 0; i < links.length; i++) {\n\t\tvar inlineOnclick = links[i].onclick || '';\n\t\tinlineOnclick = inlineOnclick ? ''+inlineOnclick : ''; \n\t\tif(inlineOnclick && inlineOnclick.indexOf('yellSendTrackLinkEvent') != -1)\n\t\t\tcontinue;\n\t\tif(inlineOnclick && inlineOnclick.indexOf('HAF.lnk_event') != -1)\n\t\t\tcontinue;\n\t\t// Event was changed to mousedown, since it happens around 50ms before onclick thus avoids need to \n\t\t// create some bogus sleep method to block the \n\t\teventClick(links[i], \"mousedown\", createOnclickHandler(links[i]));\t\n\t}\t\n}", "function _decorate_urls(text) {\n var pattern = XRegExp('[a-zA-z]+://[^\\\\s]*', 'g');\n return _decorate_process(text, pattern, function(m) {\n return '<span onclick=\"window.open(\\''+m+'\\', \\'_blank\\');\" class=\"content-link\">' + m + '</span>';\n });\n\n\n }", "function linkHeadings() {\n \n var headings = getHeadings();\n \n headings.forEach(function (heading) {\n heading.element.innerHTML = '<a href=\"#' + heading.id + '\">' +\n heading.element.innerHTML + \"</a>\";\n });\n }", "function set_links(link_set) {\n\n\tfor(var id in link_set) {\n\n\t\tvar a = document.getElementById(id);\n\t\tif(a)\n\t\t\ta.setAttribute('href', link_set[id]);\n\t}\n}", "function processLinks() {\n $(document).find('*').each(function () {\n var localName = $(this)[0].localName;\n if (localName.startsWith(\"link-\")) {\n\n var parts = localName.split(\"-\");\n var txt = $(this).text() || parts[1];\n\n $(this).empty();\n $(this).append('<a href=\"#\" onclick=\"$(\\'#list-' + parts[1] + '-list\\').click()\">' + txt + '</a>');\n }\n })\n}", "function resolve_links(line){\n // categories, images, files\n var re= /\\[\\[:?(category|catégorie|Kategorie|Categoría|Categoria|Categorie|Kategoria|تصنيف):[^\\]\\]]{2,80}\\]\\]/gi\n line=line.replace(re, \"\")\n\n // [[Common links]]\n line=line.replace(/\\[\\[:?([^|]{2,80}?)\\]\\](\\w{0,5})/g, \"$1$2\")\n // [[Replaced|Links]]\n line=line.replace(/\\[\\[:?(.{2,80}?)\\|([^\\]]+?)\\]\\](\\w{0,5})/g, \"$2$3\")\n // External links\n line=line.replace(/\\[(https?|news|ftp|mailto|gopher|irc):\\/\\/[^\\]\\| ]{4,1500}([\\| ].*?)?\\]/g, \"$2\")\n return line\n }", "function computeNodeLinks() {\n nodes.forEach(function (node) {\n node.sourceLinks = [];\n node.targetLinks = [];\n });\n links.forEach(function (link) {\n var source = link.source, target = link.target;\n link.source_index = source;\n link.target_index = target;\n if (typeof source === \"number\") source = link.source = nodes[link.source];\n if (typeof target === \"number\") target = link.target = nodes[link.target];\n source.sourceLinks.push(link);/////the link in which node as souce/link\n target.targetLinks.push(link);\n });\n }", "_toLinkUrl() {\r\n return this._stringifyPathMatrixAuxPrefixed() +\r\n (isPresent(this.child) ? this.child._toLinkUrl() : '');\r\n }", "function Links() {\n this.list = [];\n this.count = 0;\n this.ambiguousIndex = 0;\n this.ambiguousCount = 0;\n this.internalCount = 0;\n this.externalCount = 0;\n }", "render() {\n const path = this.props.linkData.path;\n const title = this.props.linkData.title\n return (\n <li><Link to={path}>{title}</Link></li>\n );\n }", "function createLinks(divId, pageReference) {\n var linkDiv = document.getElementById(divId);\n\n for (var row = 0; row < pages.length; row++) {\n linkDiv.appendChild(document.createTextNode(\"| \"));\n var linkElement = document.createElement('a');\n linkElement.setAttribute('href', pages[row][1]);\n linkElement.appendChild(document.createTextNode(pages[row][0]));\n var cls = 'navbar-menu-item';\n if (pageReference == pages[row][0]) {\n \t\t cls = cls + ' disabled';\n }\n linkElement.setAttribute('class', cls)\n linkDiv.appendChild(linkElement);\n linkDiv.appendChild(document.createTextNode(\"\"));\n }\n}", "addLinks(jq) {\n const enabled = config.settings.markup.links;\n\n const linkRegex = /\\b((?:https?|s?ftp):\\/\\/[^\\s\"']+[^\\s.,;:()\"'>])(\\)*)/g;\n const link = (url, closeParens) => {\n // Allow URLs to finish with a parenthesized part.\n const open = Array.from(url).reduce((open, c) => {\n if (c == '(') return open + 1;\n else if (c == ')') return Math.max(0, open - 1);\n else return open;\n }, 0);\n\n url += closeParens.substring(0, open);\n closeParens = closeParens.substring(open);\n\n const link = enabled ?\n $('<a class=\"url-link\"></a>').attr('href', url)\n : $('<span class=\"url-link\"></span>');\n\n return [link.text(url), closeParens];\n }\n\n // First discard the whole thing if it's a link,\n // then add all elements that are not links,\n // then discard all of those that have a link as a parent.\n const contexts = jq.not('a').add(':not(a)', jq).filter(function() {\n return $(this).parents('a').length < 1;\n });\n contexts.replaceText(linkRegex, link);\n }", "function addLinkStyle() {\n graph.links\n .selectAll('.linkPath')\n .style('fill', 'none')\n .style('stroke', 'darkgrey')\n .style('stroke-width', `${graph.style.links_size}px`)\n .style('font', `${graph.style.labels_size}px sans-serif`)\n }", "static createLink(name, link) {\n return Helper_1.createEntry(name, true, `Object.assign(exports, require('${link}'));`);\n }", "function createLink(currentIndex, nextIndex) {\n\tvar link = {};\n\tlink.source = currentIndex;\n\tlink.target = nextIndex;\n\treturn link;\n}", "function do_links( link_snap, get_char, header ) {\r\n var link_letter_order = []\r\n\r\n\r\n for( var i = 0; i< link_snap.snapshotLength; i++ ) {\r\n var link = link_snap.snapshotItem(i)\r\n\r\n var char = get_char(link)\r\n\r\n if( ! char ) continue\r\n\r\n // if the char is different from the last char...\r\n if( link_letter_order.length == 0 || char != link_letter_order[link_letter_order.length-1] ) {\r\n link_letter_order.push( char )\r\n\r\n var s = $e('div')\r\n s.style.background = '#aaa'\r\n s.style.borderTop = 'solid #777 1px'\r\n\r\n s.style.padding = '3px'\r\n s.style.marginTop = '20px'\r\n s.style.marginBottom = '-7px'\r\n\r\n s.innerHTML = \" &middot; \"\r\n\r\n var a = mk_link(char)\r\n a.name = char\r\n\r\n var top = mk_link('^top')\r\n top.target = '_self'\r\n\r\n\r\n s.appendChild( a )\r\n s.appendChild( $t(' ') )\r\n s.appendChild( top )\r\n\r\n var br = $e('br')\r\n\r\n link.parentNode.insertBefore(br,link)\r\n link.parentNode.insertBefore(s,br)\r\n \r\n /* link.parentNode.insertBefore($e('hr'),s) */\r\n }\r\n }\r\n\r\n for( var j=0; j<link_letter_order.length; j++ ) {\r\n var char = link_letter_order[j]\r\n header.innerHTML += \" <a href='#\" + char + \"' target='_self' style='color:#999'>\" + char + \"</a>\"\r\n }\r\n}", "function addLinkLabels() {\n graph.style.linkLabels = !graph.style.linkLabels\n updateLinkLabels(graph.style.linkLabels)\n }", "function buildLink(xx,yy,ii,jj,kk,ll,colonyData){\r\n\tgetCell(xx,yy,ii,jj).innerHTML = createLink(constructionUrl(kk,ll,colonyData),getCell(xx,yy,ii,jj).innerHTML);\r\n}", "function linker () {\r\n // create anchors for h1 links in major sections\r\n $(\".section\").prepend (function(){\r\n var s = $(this).prev(\"h1\").text();\r\n s = getMajor(s) + \"_0\";\r\n return \"<a id='\" + s + \"' style='font-size:0px;'>\"+s+\"</a>\";\r\n });\r\n \r\n // create anchors for h(2,3,...,MAX_HEADINGS) in minor sections\r\n for (var i=2; i<=MAX_HEADINGS; i+=1) {\r\n $(\".module h\" + i).prepend (function (n,html) {\r\n var s = html.substr (0,html.indexOf(\" \"));\r\n s = replaceChar (s, \".\", \"_\");\r\n return \"<a id='\" + s + \"'></a>\";\r\n });\r\n }\r\n \r\n // create links in TOC to anchors created in sections\r\n $(\"#toc li\").wrapInner (function () {\r\n var s = $(this).html().substr(0,$(this).html().indexOf(\" \"));\r\n s = replaceChar(s,\".\",\"_\");\r\n return \"<a href='#\"+ s + \"'></a>\";\r\n });\r\n \r\n // create links to go to top of section (located at end of every section)\r\n for (var i=2;i<=MAX_HEADINGS;i++) {\r\n $(\".section h\" + i).next().after (function(){\r\n var s = $(this).prev().text();\r\n s = s[0];\r\n s = $.trim(s);\r\n return \"<a href='#\" + s + \"_0' class='scroll'>[top]</a>\";\r\n });\r\n }\r\n}", "function AddLink(thetype) {\n\tAddTag(\"[\" + thetype + \"]\", \"[/\" + thetype + \"]\", '');\n}", "function getLinks() {\n return[\n {\n \"name\": \"Cloudflare\",\n \"url\": \"https://www.cloudflare.com/\" \n },\n {\n \"name\": \"Google\",\n \"url\": \"https://www.google.com/\" \n },\n {\n \"name\": \"Netflix\",\n \"url\": \"https://www.netflix.com/\" \n },\n {\n \"name\": \"Hulu\",\n \"url\": \"https://www.Hulu.com/\" \n }\n ]\n}", "function createLinks(linksObject) {\n\tvar object = JSON.parse(linksObject);\n\tvar linksHTML = document.querySelector('.links');\n\tfor(id in object) {\n\t\tvar a = document.createElement('a');\n\t\tvar i = document.createElement('i');\n\t\ti.id = id;\n\t\tfor (var j = 1; j < data[id].length; j++) {\n\t\t\ti.classList.add(data[id][j]);\n\t\t\t// console.log(data[id][j]);\n\t\t}\n\t\ta.href = data[id][0];\n\t\ta.target = '_blank';\n\t\ta.append(i);\n\t\tlinksHTML.append(a);\n\t}\n}", "function createAllLinksArray () {\n var sourceName, targetName;\n for (i = 0; i < allConcentrations.length; i=i+1) {\n for (j = 0; j < courseTypes.length; j=j+1) {\n for (k = 0; k < allConcentrations[i].data[courseTypes[j]].length; k=k+1) {\n sourceName = allConcentrations[i].name;\n targetName = allConcentrations[i].data[courseTypes[j]][k].code;\n allLinks.push({\"source\": sourceName, \"target\": targetName});\n }\n }\n }\n console.log({\"links\": allLinks});\n}", "function addLink(link) {\n links.push(link);\n console.log('Connecting node [' + link.firstId + '] and [' + link.secondId + ']');\n }", "function createLink(start, end){\n startId = \"tool_\" + start;\n endId = \"tool_\" + end;\n if(!document.getElementById(\"ele_\"+start)){\n addToCanvas(document.getElementById(startId));\n }\n if(!document.getElementById(\"ele_\"+end)){\n addToCanvas(document.getElementById(endId));\n }\n // link;\n jsPlumb.connect({\n uuids: [\"ele_\" + start + \"_output\", \"ele_\" + end + \"_input\"],\n });\n}", "function scanLinks() {\r\n\t\tvar links = getLinks();\r\n\r\n\t\tfor (var i=0; i < links.length; i++){\r\n\t\t\tvar link = links[i];\r\n\t\t\tif (match(link.href)) {\r\n\t\t\t\t// do private link first so it appears after normal link\r\n\t\t\t\tif (wtorrent_showprivatelinks == true && wtorrent_alwaysdownloadprivate == false) {\r\n\t\t\t\t\tvar wTorrentPrivateLink = makeWTorrentLink(link,true);\r\n\t\t\t\t\tlink.parentNode.insertBefore(wTorrentPrivateLink, link.nextSibling);\r\n\t\t\t\t\t}\r\n\t\t\t\t// normal wTorrent link\r\n\t\t\t\tvar wTorrentLink = makeWTorrentLink(link,false);\r\n\t\t\t\tlink.parentNode.insertBefore(wTorrentLink, link.nextSibling);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "async function main() {\n const newLink = await prisma.link.create({\n data: {\n description: \"Fullstack tutorial for GraphQL\",\n url: \"www.howtographql.com\",\n },\n });\n const allLinks = await prisma.link.findMany();\n console.log(allLinks);\n}", "function addLinks(apples){ //parameter\n\tapples.innerHTML += \"<a href='#home'>Home</a> \";\n\t// apples.innerHTML += \"<a href=\"about.html\">About</a> \";\n\t// apples.innerHTML += \"<a href=\"add.html\">+add</a> \";\n\n}", "getLinks() {\n var self = this\n fetchLinkList(function(links) {\n self.links = links;\n })\n\n }", "generateLink() {\n return `\n <a href='https://en.wikipedia.org/wiki/${encodeURI(this.options[0])}' property='rdf:seeAlso'>\n ${this.options[0]}\n </a>&nbsp;\n `;\n }", "function drawLink(x,y,href,title){\n var linkTitle = title,\n linkX = x,\n linkY = y,\n linkWidth = ctx.measureText(linkTitle).width,\n linkHeight = parseInt(ctx.font); // Get lineheight out of fontsize\n\n // Draw the link\n // ctx.fillText(linkTitle, linkX, linkY);\n\n // Underline the link (you can delete this block)\n ctx.beginPath();\n // ctx.moveTo(linkX, linkY + linkHeight);\n // ctx.lineTo(linkX + linkWidth, linkY + linkHeight);\n // ctx.lineWidth = 1;\n // ctx.strokeStyle = \"#0000ff\";\n // ctx.stroke();\n\n // Add mouse listeners\n canvas.addEventListener(\"mousemove\", on_mousemove, false);\n //canvas.addEventListener(\"click\", on_click, false);\n canvas.addEventListener(\"mousedown\", on_click, false);\n canvas.addEventListener(\"mouseup\", on_mouseup, false);\n canvas.addEventListener(\"mouseleave\", on_mouseup, false);\n\n // Add link params to array\n Links.push(x + \";\" + y + \";\" + linkWidth + \";\" + linkHeight + \";\" + href);\n }", "function computeNodeLinks() {\n _(nodes).each(function(node) {\n node.sourceLinks = [];\n node.targetLinks = [];\n });\n _(links).each(function(link) {\n var source = link.source,\n target = link.target;\n if (typeof source === \"number\") source = link.source = nodes[link.source];\n if (typeof target === \"number\") target = link.target = nodes[link.target];\n source.sourceLinks.push(link);\n target.targetLinks.push(link);\n });\n }", "function computeNodeLinks() {\n nodes.forEach(function(node) {\n node.sourceLinks = [];\n node.targetLinks = [];\n });\n links.forEach(function(link) {\n var source = link.source,\n target = link.target;\n if (typeof source === \"number\") source = link.source = nodes[link.source];\n if (typeof target === \"number\") target = link.target = nodes[link.target];\n source.sourceLinks.push(link);\n target.targetLinks.push(link);\n });\n }", "function helper_generateLinks(lists) {\n \n for (let i=0; i<lists.length; i++) {\n const listName = lists[i][1];\n notesToLinks += `\n <a href=\"javascript: \" id=\"${(lists[i][0])}\"\n onClick=\"openList(this.id)\">${listName}</a>`;\n }\n \n return notesToLinks;\n }", "function generateLinks(text) {\n const reg = /\\b__([\\w\\/]+)__\\b/g;\n let tags;\n if (text) {\n tags = text.replace(reg, \"<a href=$1>$1</a>\");\n } else {\n console.log(\"Warning, text sent to generateLinks() was undefined.\");\n }\n return tags;\n }", "computeLinkInfos(link, points) {\n if (!(link.from in points)) {\n throw new Error('The point ' + link.from + ' does not exist');\n }\n if (!(link.to in points)) {\n throw new Error('The point ' + link.to + ' does not exist');\n }\n\n const from = points[link.from];\n const to = points[link.to];\n\n link.name = link.from + '-' + link.to;\n link.angle = Math.atan((to.y - from.y) / (to.x - from.x));\n link.width = Math.sqrt(Math.pow(to.x - from.x, 2) + Math.pow(to.y - from.y, 2));\n link.x = Math.min(from.x, to.x) - ((link.width / 2) - (Math.cos(link.angle) * (link.width / 2))) + 9;\n link.y = (from.y + to.y) / 2 + 5;\n\n return link;\n }", "function computeNodeLinks() {\n nodes.forEach(function(node) {\n node.sourceLinks = [];\n node.targetLinks = [];\n });\n links.forEach(function(link) {\n var source = link.source,\n target = link.target;\n if (typeof source === \"number\") source = link.source = nodes[link.source];\n if (typeof target === \"number\") target = link.target = nodes[link.target];\n source.sourceLinks.push(link);\n target.targetLinks.push(link);\n });\n }", "function appendToLinks() {\n let snapTextElements = document.evaluate(\"//a[contains(translate(@href, 'HTTP', 'http'), 'http') and contains(@href, 'assetstore.unity')]\",\n document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);\n for (let i = snapTextElements.snapshotLength - 1; i >= 0; i--) {\n let elmLink = snapTextElements.snapshotItem(i);\n let latest = $(elmLink).attr('href').split('/').pop().trim();\n let data_id = Number.isInteger(latest) ? latest : latest.split('-').pop().trim();\n $(elmLink).wrap(`<span class=\"unitystore-holder\" data-id=\"${data_id}\"></span>`);\n $(elmLink).addClass('unitystore-link');\n }\n }", "function addlinks(data) {\n //Add link to all http:// links within tweets\n data = data.replace(/((https?|s?ftp|ssh)\\:\\/\\/[^\"\\s\\<\\>]*[^.,;'\">\\:\\s\\<\\>\\)\\]\\!])/g, function(url) {\n return '<a href=\"'+url+'\" >'+url+'</a>';\n });\n\n //Add link to @usernames used within tweets\n data = data.replace(/\\B@([_a-z0-9]+)/ig, function(reply) {\n return '<a href=\"http://twitter.com/'+reply.substring(1)+'\" style=\"font-weight:lighter;\" >'+reply.charAt(0)+reply.substring(1)+'</a>';\n });\n return data;\n }", "function setUrlAdr(link) {\n //url_adr = link.onclick;\n if (link.onclick !== null) { url_adr = link.onclick.toString().split(\"'\")[1]; }\n else {url_adr = link.href.toString().split(\"#\")[1];}\n}", "function populateURLS() {\n urls.push('https://s3.amazonaws.com/limbforge/' + this.specs.design + \"/Ebe_forearm_\" + this.specs.hand + \"/forearm_\" + this.specs.hand + \"_C4-\" + this.specs.c4 + \"_L1-\" + this.specs.l1+ '.stl');\n // add on terminal device adaptor\n if (this.specs.design == \"EbeArm\"){\n urls.push('https://s3.amazonaws.com/limbforgestls/EbeArm/EbeArm_wrist_unit+v1.stl');\n }\n }", "function fetch_links(str){\n var links=[]\n var tmp=str.match(/\\[\\[(.{2,80}?)\\]\\](\\w{0,10})/g)//regular links\n if(tmp){\n tmp.forEach(function(s){\n var link, txt;\n if(s.match(/\\|/)){ //replacement link [[link|text]]\n s=s.replace(/\\[\\[(.{2,80}?)\\]\\](\\w{0,10})/g,\"$1$2\") //remove ['s and keep suffix\n link=s.replace(/(.{2,60})\\|.{0,200}/,\"$1\")//replaced links\n txt=s.replace(/.{2,60}?\\|/,'')\n //handle funky case of [[toronto|]]\n if(!txt && link.match(/\\|$/)){\n link=link.replace(/\\|$/,'')\n txt=link\n }\n }else{ // standard link [[link]]\n link=s.replace(/\\[\\[(.{2,60}?)\\]\\](\\w{0,10})/g,\"$1\") //remove ['s\n }\n //kill off non-wikipedia namespaces\n if(link.match(/^:?(category|catégorie|Kategorie|Categoría|Categoria|Categorie|Kategoria|تصنيف|image|file|image|fichier|datei|media|special|wp|wikipedia|help|user|mediawiki|portal|talk|template|book|draft|module|topic|wiktionary|wikisource):/i)){\n return\n }\n //kill off just anchor links [[#history]]\n if(link.match(/^#/i)){\n return\n }\n //remove anchors from end [[toronto#history]]\n link=link.replace(/#[^ ]{1,100}/,'')\n link=helpers.capitalise(link)\n var obj={\n page:link,\n src: txt\n }\n links.push(obj)\n })\n }\n links=links.filter(helpers.onlyUnique)\n if(links.length==0){\n return undefined\n }\n return links\n }", "link () {\n\t this._attachments = this._sbolDocument.lookupURIs(this._attachments);\n\t this._wasGeneratedBys = this._sbolDocument.lookupURIs(this._wasGeneratedBys);\n\t}" ]
[ "0.7128191", "0.64805174", "0.6458308", "0.64286697", "0.6373507", "0.63541555", "0.6353787", "0.62928617", "0.6284714", "0.6280411", "0.62643343", "0.62139344", "0.6167139", "0.61422414", "0.61379534", "0.61117446", "0.61057734", "0.6081", "0.6079601", "0.60776377", "0.60775787", "0.60569644", "0.60405886", "0.60384434", "0.60230964", "0.5982411", "0.5980189", "0.5972201", "0.5968832", "0.59547544", "0.59547544", "0.5925946", "0.59211373", "0.59176993", "0.5912268", "0.5909148", "0.5908168", "0.5902705", "0.58991104", "0.5896805", "0.58936846", "0.5884806", "0.58797914", "0.58625454", "0.5856661", "0.5855833", "0.58458227", "0.58428544", "0.5835262", "0.5827881", "0.5823623", "0.5818582", "0.58169365", "0.58143413", "0.58089405", "0.58011025", "0.5798785", "0.5785362", "0.5781585", "0.5779177", "0.5778548", "0.5761811", "0.5759208", "0.57396275", "0.5720391", "0.5719832", "0.5716143", "0.57150024", "0.570554", "0.5696385", "0.5696116", "0.56876665", "0.56805813", "0.5665682", "0.5653916", "0.5635684", "0.5632271", "0.56260204", "0.5620759", "0.56180924", "0.5612681", "0.5600449", "0.55998075", "0.5595078", "0.5594617", "0.5593203", "0.5588524", "0.55843544", "0.5582505", "0.55798227", "0.5578882", "0.5575006", "0.557356", "0.55706674", "0.5569978", "0.55691224", "0.5567372", "0.5563915", "0.55607444", "0.55581075", "0.55577105" ]
0.0
-1
FUNZIONE AGGIUNGI ZERO AD ORARIO
function addZero(number) { if(number < 10) { number = '0' + number; } return number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function unDoIVAGastosVenta(IVAxGtos,costoDesProd,IVA) {\n\nvar nvoIVAGtosVenta;\n\n if (IVAxGtos==0) {\n nvoIVAGtosVenta = 0;\n }else {\n nvoIVAGtosVenta = ((IVAxGtos) + (IVAxGastosVenta(costoDesProd,IVA)));\n }\n return nvoIVAGtosVenta;\n}", "function condiçaoVitoria(){}", "function operacion(){\r\n if (numeros.segundo === null || numeros.segundo === \"\" || Number.isNaN(numeros.segundo)){ \r\n return raiz(); // Si hay un solo número, llamar a la funcion raiz\r\n } else {\r\n return aritmetica(); // Si hay dos a la función aritmética\r\n }\r\n }", "function reglaRebajaPrecios(){\n if(producto.super_avance.sellIn = 0)\n {\n precio_SuperAvance - 2;\n\n if(producto.fc_superduper.sellIn = 0){\n precio_FullSuperDuper - 2;\n\n if(producto.f_cobertura.sellIn = 0){\n precio_FullCobertura - 2;\n }\n }\n }else{\n }\n}", "function ocen_statycznie()\n{\n return szachownica.ocena.material + (szachownica.ocena.faza_gry * szachownica.ocena.tablice + (70 - szachownica.ocena.faza_gry) * szachownica.ocena.tablice_koncowka) * 0.03;\n}", "function zero(){ return 0;}", "function calculandoElementos(){\n const co = cot.value;\n const ca = cat.value;\n //CRIANDO CONDICAO\n if(!co){\n alert('Digite o valor do Cateto Oposto');\n }else if(!ca){\n alert('Digite o valor do Cateto Adjacente');\n }else if(ca <= 0 || co <= 0){\n alert('Digite um número MAIOR do que 0');\n }else{\n hipotenusa1.value = Math.hypot(ca,co).toFixed(2);\n }\n}", "function reglaAumPrecioFullCobertura(){\n if(producto.f_cobertura.sellIn -1){\n precio_FullCobertura + 1;\n }else{\n\n }\n}", "function IndicadorTotal () {}", "function IndicadorGradoAcademico () {}", "function calcul_Omegar(h, c, k, t0, H0parsec) {\r\n \r\n // Matière et Lambda\r\n var Or = 0;\r\n sigma = (2 * Math.pow(Math.PI, 5) * Math.pow(k, 4)) / (15 * Math.pow(h, 3) * Math.pow(c, 2)); //OK\r\n\r\n // Matière Lambda, RFC et neutrinos\r\n if (document.getElementById(\"liste\").options[0].selected) {\r\n rho_r = (4 * sigma * Math.pow(t0, 4)) / (Math.pow(c, 3));\r\n Or = (8 * Math.PI * G * rho_r) / (3 * Math.pow(H0parsec, 2));\r\n Or = 1.68 * Or; // neutrinos\r\n Or = Or.toExponential(4);\r\n \r\n // Matière Lambda & RFC\r\n } else if (document.getElementById(\"liste\").options[1].selected) {\r\n rho_r = (4 * sigma * Math.pow(t0, 4)) / (Math.pow(c, 3));\r\n Or = (8 * Math.PI * G * rho_r) / (3 * Math.pow(H0parsec, 2));\r\n Or = Or.toExponential(4);\r\n }\r\n return Or;\r\n}", "function getBaseCalculo() {\n var pfaEng = config_isEng && isEng ? Number($('#pct-pfa-eng').html()) : 0;\n var pfaDes = config_isDes && isDes ? Number($('#pct-pfa-des').html()) : 0;\n var pfaImp = config_isImp && isImp ? Number($('#pct-pfa-imp').html()) : 0;\n var pfaTes = config_isTes && isTes ? Number($('#pct-pfa-tes').html()) : 0;\n var pfaHom = config_isHom && isHom ? Number($('#pct-pfa-hom').html()) : 0;\n var pfaImpl = config_isImpl && isImpl ? Number($('#pct-pfa-impl').html()) : 0;\n var V = Number((pfaEng + pfaDes + pfaImp + pfaTes + pfaHom + pfaImpl) * config_aumentoEsforco).toFixed(4);\n return V;\n}", "function calculosGanado(fila) {\n\n var mermaObtenida, pesoPagar, precioXkilo, total, pesoFinal;\n var genero = fila[GENERO].value;\n var peso = Number.parseFloat(GetKilosSinSimbolo(fila[PESO].value));\n var repeso = Number.parseFloat(GetKilosSinSimbolo(fila[REPESO].value));\n\n //NO hay repeso\n if (repeso <= 0) {\n repeso = peso;\n }\n //merma\n if (repeso >= peso) {\n mermaObtenida = 0;\n }\n else{\n mermaObtenida = MermaGenerada(peso, repeso);\n }\n pesoPagar = PesoSugerido(peso, repeso, mermaObtenida);\n precioXkilo = PrecioSugerido(pesoPagar, genero);\n total = TotalPagar(pesoPagar, precioXkilo);\n fila[MERMA].value = mermaObtenida;\n fila[PESOPAGAR].value = pesoPagar;\n fila[COSTOPORKILO].value = precioXkilo;\n fila[TOTAL].value = total;\n\n $(\".merma\").maskMoney('mask');\n $(\".kg\").maskMoney('mask');\n $(\".money\").maskMoney('mask');\n\n }", "function formule_z(omegak0){\n\t\t//d騁ermine les formules qui sont utilent pour la distance metrique, omegak positif 0 ou negatif\n\tif (omegak0>0){\n\t return Sk_sin_x;\n \n\t\t}\n\telse if (omegak0===0){\n\t return Sk_x;\n\n\t\t}\n\telse{\n\t return Sk_sinh_x;\n\t}\n}", "function potencia(base, expoente) {\n return 0\n}", "nuevoCiclo() {\n let suma = 0;\n for (let i = 0; i < this.vecinos.length; i++) {\n if (this.vecinos[i].estado === 1) {\n suma++;\n }\n }\n\n // Aplicamos las normas\n this.estadoProx = this.estado; // Por defecto queda igual\n\n // Vida: tiene 3 vecinos\n if (this.estado === 0 && suma === 3) {\n this.estadoProx = 1;\n }\n\n // Muerte: menos de 2(soledad) o mas de 3 (inanicion)\n if (this.estado == 1 && (suma < 2 || suma > 3)) {\n this.estadoProx = 0;\n }\n }", "function calcola_jddata(giorno,mese,anno,ora,minuti,secondi){\n\n // funzione per il calcolo del giorno giuliano per una data qualsiasi. \n // by Salvatore Ruiu Irgoli-Sardegna (Italy) dicembre 2009\n // restituisce il valore numerico dataGiuliana_annox\n// ATTENZIONE! inserire i valori dei tempi come T.U. di GREENWICH\n \nvar dataGiuliana=costanti_jd(giorno,mese,anno,ora,minuti,secondi); // valore del giorno giuliano per una data qualsiasi.\n\n dataGiuliana=dataGiuliana*1 // definire come valore numerico.\n\nreturn dataGiuliana;\n\n}", "function afase_luna(njd){\n\n // calcola l'angolo di fase della luna per la data (njd)\n // gennaio 2012\n\n var dati_luna=pos_luna(njd); // recupero fase/elongazione (1)\n var dati_sole=pos_sole(njd);\n\n var elongazione1=dati_luna[4]; // elongazione in gradi sessadecimali.\n var dist_luna=dati_luna[7]/149597870; \n var dist_sole=dati_sole[4]; // distanza del sole in UA.\n\n elongazione=Math.abs(elongazione1)*1;\n\n var dist_sl=dist_luna*dist_luna+dist_sole*dist_sole-2*dist_luna*dist_sole*Math.cos(Rad(elongazione)); // distanza sole-luna\n dist_sl=Math.sqrt(dist_sl);\n\n // calcolo dell'angolo di fase in gradi . \n\n var Dpt= dist_luna; // distanza pianeta-terra.\n var Dts= dist_sole; // distanza terra-sole.\n var Dps= dist_sl; // distanza pianeta-sole.\n\n // teorema del coseno\n\n var delta_fase=(Dts*Dts+Dps*Dps-Dpt*Dpt)/(2*Dps*Dts);\n delta_fase=Math.acos(delta_fase); \n delta_fase=Rda(delta_fase);\n\n var angolo_fase=180-elongazione-delta_fase; // angolo di fase in gradi.\n\n if(elongazione1<0) {angolo_fase=-angolo_fase; }\n\n return angolo_fase;\n\n}", "function caixa(values) {\n let result = [];\n\n for (let i = 0 ; i < values.length; i++) {\n if (values[i] !== 0) {\n result.push(values[i]);\n } else {\n result.pop();\n }\n }\n return result.reduce(((a, b) => a + b), 0);\n}", "function fatorial(numero) {\n return 0\n}", "function salta(Nio_lvl1_2, grupo_lvl1_2){\n this.salta=0;\n }", "function zmien_ocene(ruch_t)\n{\n let nr_bierki_p = szachownica.pola[ruch_t.wiersz_p][ruch_t.kolumna_p];\n let nr_bierki_k = szachownica.pola[ruch_t.wiersz_k][ruch_t.kolumna_k];\n\n if(nr_bierki_k !== 0)\n zmien_ocene_usun(ruch_t.wiersz_k, ruch_t.kolumna_k);\n\n szachownica.ocena.tablice += wartosc_tabela(ruch_t.wiersz_k, ruch_t.kolumna_k, nr_bierki_p) - wartosc_tabela(ruch_t.wiersz_p, ruch_t.kolumna_p, nr_bierki_p);\n szachownica.ocena.tablice_koncowka += wartosc_tabela_konc(ruch_t.wiersz_k, ruch_t.kolumna_k, nr_bierki_p) - wartosc_tabela_konc(ruch_t.wiersz_p, ruch_t.kolumna_p, nr_bierki_p);\n}", "function sumuoti(sk1 = 0,sk2 = 0) {\n let masyvas;\n masyvas = [sk1, sk2];\n let suma;\n\n //suma = masyvas[0] + masyvas[1];\n suma = sk1 + sk2;\n\n return suma ; //grazinti bet koki kintamojo tipa\n}", "function afficherLesZeros() {\n\tif ( typeof ordZer != \"undefined\") {//si l'object existe on le retire.\n\t\tboard.removeObject(ordZer);\n\t}\n\tif ( typeof zero1 != \"undefined\") {\n\t\tboard.removeObject(zero1);\n\t}\n\tif ( typeof zero2 != \"undefined\") {\n\t\tboard.removeObject(zero2);\n\t}\n\tordZer = board.create('point', [0, (dynamiqueC())], {\n\t\tstyle : 6,\n\t\tname : '',\n\t\tfixed : true\n\t});\n\tordZer.setAttribute({\n\t\tstrokeColor : 'black',\n\t\tfillColor : 'red',\n\t\tsize : 4\n\t});\n\tvar discriminant = dynamiqueB() * dynamiqueB() - (4 * dynamiqueA() * dynamiqueC());\n\tvar valDiscriminant = Math.sqrt(discriminant);\n\tif (discriminant > 0) {\n\t\tvar premierZero = ((-dynamiqueB() + valDiscriminant) / (2 * dynamiqueA())).toFixed(2);\n\t\tvar deuxiemeZero = ((-dynamiqueB() - valDiscriminant) / (2 * dynamiqueA())).toFixed(2);\n\t\tzero1 = board.create('point', [premierZero, 0], {\n\t\t\tstyle : 6,\n\t\t\tname : premierZero,\n\t\t\tfixed : true\n\t\t});\n\t\tzero1.setAttribute({\n\t\t\tstrokeColor : 'black',\n\t\t\tfillColor : 'red',\n\t\t\tsize : 4\n\t\t});\n\t\tzero2 = board.create('point', [deuxiemeZero, 0], {\n\t\t\tstyle : 6,\n\t\t\tname : deuxiemeZero,\n\t\t\tfixed : true\n\t\t});\n\t\tzero2.setAttribute({\n\t\t\tstrokeColor : 'black',\n\t\t\tfillColor : 'red',\n\t\t\tsize : 4\n\t\t});\n\t\t// Afficher les 2 zéros\n\t\tboard.on('update', function() {\n\t\t\tdocument.getElementById('lesZeros').innerHTML = \"Les zéros sont: \" + premierZero + \" et \" + deuxiemeZero;\n\t\t});\n\t} else if (discriminant < 0) {\n\t\tvar bulleAucuneSolution = board.create('text', [-2, 0, \" L'équation n'a aucune solution \"], {\n\t\t\tanchor : ordZer,\n\t\t\tstrokeColor : \"#fff\",\n\t\t\tcssClass : 'mytext'\n\t\t});\n\t\t// équation test: x²- 3x+4\n\n\t\t// si le discriminant est < 0, Afficher que l'équation n'a pas de zéros\n\t\tboard.on('update', function() {\n\t\t\tdocument.getElementById('lesZeros').innerHTML = \"L'équation n'a pas de zéros\";\n\t\t});\n\n\t} else if (discriminant == 0) {\n\t\tvar seulZero = point1.X();\n\t\t// si le discriminant ==0, Afficher le seul zéro de l'équation\n\t\tboard.on('update', function() {\n\t\t\tdocument.getElementById('lesZeros').innerHTML = \"Il y a un seul zéro: \" + seulZero;\n\t\t});\n\n\t}\n\n\t//injecter les valeurs des paramètres a, b et c dans la formule quadratique pour\n\t//qu'ils s'affichent de façon dynamique\n\n\tboard.on('update', function() {\n\t\tdocument.getElementById('paraB').innerHTML = dynamiqueB();\n\t});\n\tboard.on('update', function() {\n\t\tdocument.getElementById('paraB2').innerHTML = dynamiqueB();\n\t});\n\tboard.on('update', function() {\n\t\tdocument.getElementById('paraA').innerHTML = \"(\" + dynamiqueA() + \")\";\n\t});\n\tboard.on('update', function() {\n\t\tdocument.getElementById('paraC').innerHTML = \"(\" + dynamiqueC() + \")\";\n\t});\n\tboard.on('update', function() {\n\t\tdocument.getElementById('paraA2').innerHTML = \"(\" + dynamiqueA() + \")\";\n\t});\n\tpoint1.on('move', function() {//function pour cacher le bulles avec un event.\n\t\tif ( typeof ordZer != \"undefined\") {//si l'object existe on le detruis.\n\t\t\tordZer.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t\tif ( typeof zero1 != \"undefined\") {\n\t\t\tzero1.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t\tif ( typeof zero2 != \"undefined\") {\n\t\t\tzero2.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t\tif ( typeof bulleAucuneSolution != \"undefined\") {\n\t\t\tbulleAucuneSolution.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t});\n\tpoint2.on('move', function() {//function pour cacher la bulle et les zeros avec un event.\n\t\tif ( typeof ordZer != \"undefined\") {//si l'object existe on le retire.\n\t\t\tordZer.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t\tif ( typeof zero1 != \"undefined\") {\n\t\t\tzero1.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t\tif ( typeof zero2 != \"undefined\") {\n\t\t\tzero2.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t\tif ( typeof bulleAucuneSolution != \"undefined\") {\n\t\t\tbulleAucuneSolution.setAttribute({\n\t\t\t\tvisible : false\n\t\t\t});\n\t\t}\n\t});\n}", "function zero(operation) {\n\tif(arguments.length === 0){\n\t\treturn 0;\n\t}\n\treturn operation(0);\n}", "static genereazaVariabilaNormala01() {\n\t\t\t// Lista pentru numere aleatoare U1...U12\n\t\t\tlet U = [];\n\n\t\t\t// Se genereaza cu RNG 12 numere aleatoare U1...U12\n\t\t\t// uniforme si independente pe (0, 1)\n\t\t\tfor(let i = 0; i < 12; i++) {\n\t\t\t\t// Atasam numerele in lista\n\t\t\t\tU.push(Math.random());\n\t\t\t}\n\n\t\t\t// Iesire Z = U1+...+U12 - 6 \n\t\t\treturn (U.reduce((a, b) => a + b, 0) - 6);\n\t\t}", "function EntradasAdicionarFerimentos(valor, nao_letal) {\n var tipo = nao_letal ? \"ferimentos_nao_letais\" : \"ferimentos\";\n gEntradas[tipo] += valor;\n if (gEntradas[tipo] < 0) {\n gEntradas[tipo] = 0;\n }\n}", "function EntradasAdicionarFerimentos(valor, nao_letal) {\n var tipo = nao_letal ? \"ferimentos_nao_letais\" : \"ferimentos\";\n gEntradas[tipo] += valor;\n if (gEntradas[tipo] < 0) {\n gEntradas[tipo] = 0;\n }\n}", "function IndicadorAntiguedad () {}", "function listadoGuiaremEstadoDeseleccionado(){\n\t\t var total=$('input[id^=\"accionAsociacionGuiarem\"][value!=\"0\"]').length;\n\t\t\tif(total!=0){\n\t\t\t\tn = document.getElementById('idTableGuiaRelacion').rows.length;\n\t\t\t\tif(n>1){\n\t\t\t\t\tfor(x=1;x<n;x++){\n\t\t\t\t\t\taAG=\"accionAsociacionGuiarem[\"+x+\"]\";\n\t\t\t\t\t\tdocument.getElementById(aAG).value=0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t}", "function AtrazoBoco (mês, valorAnuidade) {\n switch(mês) {\n case 1:\n return `Valor da Anuidade: ${valorAnuidade}`\n break\n\n case 2:\n const juroscomposto1 = valorAnuidade * ((1 + 0.05)**1)\n return `Valor da Anuidade com Juros: ${juroscomposto1.toFixed(2)}`\n break\n\n case 3:\n const juroscomposto2 = valorAnuidade * ((1 + 0.05)**2)\n return `Valor da Anuidade com Juros: ${juroscomposto2.toFixed(2)}`\n break\n\n case 4:\n const juroscomposto3 = valorAnuidade * ((1 + 0.05)**3)\n return `Valor da Anuidade com Juros: ${juroscomposto3.toFixed(2)}`\n break\n\n case 5:\n const juroscomposto4 = valorAnuidade * ((1 + 0.05)**4)\n return `Valor da Anuidade com Juros: ${juroscomposto4.toFixed(2)}`\n break\n\n case 6:\n const juroscomposto5 = valorAnuidade * ((1 + 0.05)**5)\n return `Valor da Anuidade com Juros: ${juroscomposto5.toFixed(2)}`\n break\n\n case 7:\n const juroscomposto6 = valorAnuidade * ((1 + 0.05)**6)\n return `Valor da Anuidade com Juros: ${juroscomposto6.toFixed(2)}`\n break\n\n case 8:\n const juroscomposto7 = valorAnuidade * ((1 + 0.05)**7)\n return `Valor da Anuidade com Juros: ${juroscomposto7.toFixed(2)}`\n break\n\n case 9:\n const juroscomposto8 = valorAnuidade * ((1 + 0.05)**8)\n return `Valor da Anuidade com Juros: ${juroscomposto8.toFixed(2)}`\n break\n\n case 10:\n const juroscomposto9 = valorAnuidade * ((1 + 0.05)**9)\n return `Valor da Anuidade com Juros: ${juroscomposto9.toFixed(2)}` \n break\n\n case 11:\n const juroscomposto10 = valorAnuidade * ((1 + 0.05)**10)\n return `Valor da Anuidade com Juros: ${juroscomposto10.toFixed(2)}`\n break\n\n case 12:\n const juroscomposto11 = valorAnuidade * ((1 + 0.05)**11)\n return `Valor da Anuidade com Juros: ${juroscomposto11.toFixed(2)}`\n break\n }\n }", "function calcola_jdUT0(){\n\n // funzione per il calcolo del giorno giuliano per l'ora 0 di oggi in T.U.\n // by Salvatore Ruiu Irgoli-Sardegna (Italy) giugno 2010.\n // restituisce il valore numerico dataGiuliana.\n \n \n var data=new Date();\n\n var anno = data.getYear(); // anno\n var mese = data.getMonth(); // mese 0 a 11 \n var giorno= data.getDate(); // numero del giorno da 1 a 31\n var ora = 0; // ora del giorno da 0 a 23 in T.U.\n var minuti= 0; // minuti da 0 a 59\n var secondi=0; // secondi da 0 a 59\n \n mese =mese+1;\n\nif (anno<1900) {anno=anno+1900;} // correzione anno per il browser.\n\nvar dataGiuliana=costanti_jd(giorno,mese,anno,ora,minuti,secondi);\n\n dataGiuliana=dataGiuliana*1 // definire come valore numerico.\n\nreturn dataGiuliana; // restituisce il giorno giuliano\n\n}", "getResultatCodificat(){ // SI EL MÈTODE NO PASSA ALGUN VALOR, SE LI POSSA this. MÉS EL ATRIBUT CORRESPONENT.\n this.eliminarEspaisBlanc();\n this.senseAccent();\n for (var i = 0; i < this._entrada.length; i++){\n\n // IGUALEM LA LLARGADA DE LA CLAU A LA DE L'ENTRADA\n var y = 0;\n var max_lenght = this._entrada.length;\n while (this._entrada.length != this._clau.length){\n\n this._clau = this._clau + this._clau[y];\n\n if(y >= max_lenght){\n\n y = 0;\n }\n else{\n\n y++;\n }\n }\n\n // BUSQUEM ON ESTAN SITUATS TANT LA LLETRA DE L'ENTRADA COM DE LA CLAU\n var posicio_lletra_entrada = this._alfabet.indexOf(this._entrada[i]);\n var posicio_lletra_clau = this._alfabet.indexOf(this._clau[i]);\n\n // SUMEM LES DUES POSICIONS\n var suma_posicions = posicio_lletra_entrada + posicio_lletra_clau;\n\n // ANEM RESTANT MENTRE QUE EL MOD SIGUI MÉS GRAN QUE EL LENGTH DEL ABECEDARI\n while (suma_posicions >= this._alfabet.length){\n\n suma_posicions = suma_posicions - this._alfabet.length;\n }\n \n // ARA BUSQUEM LA LLETRA AMB LA QUAL SUBSTITUIREM L'ENTRADA\n this._resultat = this._resultat + this._alfabet[suma_posicions];\n }\n\n // RETORNEM EL RESULTAT\n return (document.form.sortida.value = this._resultat);\n }", "function bba_forte(nivel) {\n if (nivel == 0) return 0;\n return nivel;\n}", "function calculoangulochoquejug(ofjug, ofbola, tamjug, angulo) {\n let angulofinal = angulo;\n let aux;\n let poschoque = ofbola - ofjug;\n if ((angulo >= 90) && (angulo <= 270)) {\n if (poschoque == tamjug / 2) {\n angulofinal = 90;\n\n\n } else if (poschoque > tamjug / 2) {\n aux = (poschoque - (tamjug / 2)) / (tamjug / 2);\n aux = aux * 70;\n angulofinal = 10 + aux;\n\n } else if (poschoque < tamjug / 2) {\n aux = poschoque / (tamjug / 2);\n aux = aux * 70;\n angulofinal = 280 + aux;\n }\n }\n\n return angulofinal;\n }", "function soma1(a,b){\n return a+b //o return ele não mostra na tela \n}", "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}", "function StringSinalizada(valor, imprime_zero) {\n if (imprime_zero == null) {\n imprime_zero = true;\n }\n if (!imprime_zero && valor == 0) {\n return '';\n }\n var return_value = '';\n if (valor >= 0) {\n return_value = '+';\n }\n return return_value + valor;\n}", "function dos_en_uno(x,y){\n\n\tvar obtener_funcion_ao = arreglo_ordenado(x);\n\tvar arreglo_listo = obtener_funcion_ao[0];\n\tvar tamano_arreglo = obtener_funcion_ao[1];\n\n\tvar obtener_funcion_ao_2 = arreglo_ordenado(y);\n\tvar arreglo_listo_2 = obtener_funcion_ao_2[0];\n\tvar tamano_arreglo_2 = obtener_funcion_ao_2[1];\n\n\tvar arreglo_final = [];\n\n\n\t for(var i =0; i<=tamano_arreglo; i++){\n\n\t \tarreglo_final[i] = arreglo_listo[i];\n\t }\n\t\n\t for(var j=0; j<= tamano_arreglo_2; j++ ){\n\n\t \tarreglo_final[i] = arreglo_listo_2[j];\n\t \ti++;\n\n\t }\n\n\t return orden(arreglo_final, i);\n}", "function soma(a, b = 0) { // Ja inidica valor inicial para variavel b\n return a + b;\n}", "function escogerValorMasGrande(elemetos){\n\n}", "function perimetroTriangulo(lado1, lado2, base){\n return lado1 + lado2 + base;\n}", "function sc_angolo_gm(angolo_dec,dec){\n\n // by Salvatore Ruiu Irgoli-Sardegna (Italy). settembre 2010\n // scomposizione degli angoli decimali in °|'\n // [angolo_dec] in ore decimali.\n // la funzione restituisce la variabile stringa [angolo_gms]. \n \n var angolo=Math.abs(angolo_dec); // recupera il valore assoluto del numero\n\n\t var gradi= parseInt(angolo); // Gradi.\n var minuti= ((angolo-gradi)*60).toFixed(dec); // Minuti.\n \n if ( minuti>=60 ){ minuti= minuti-60; gradi=gradi+1;}\n //if ( gradi>=360){ gradi= gradi-360;} \n\n // trasforma il numero in stringa. \n\n var gradi_st=String(gradi);\n var minuti_st=String(minuti);\n \n if (angolo_dec<0) { gradi_st=\"-\"+gradi_st;} \n \n if ( gradi_st.length<2) { gradi_st='0'+gradi_st; }\n if ( minuti_st.length<=4-dec){ minuti_st='0'+minuti_st; }\n \n var angolo_gms=gradi_st+\"&ordm; \"+minuti_st+\"' \"; \n\t \nreturn angolo_gms; \n\n}", "function Puntaje(combos,de_donde){\r\n if(combos==\"reset\"){\r\n $(de_donde).text(\"0\")\r\n }\r\n else{\r\n var Puntaje_actual = $(de_donde).text()\r\n var Total = Number(Puntaje_actual)+combos;\r\n $(de_donde).text(Total.toString())\r\n }\r\n}", "function IndicadorRangoEdad () {}", "function convertGI() {\n //Cria copia da CTMC\n ctmcGI = [];\n for (var i = 0; i < ctmc.length; i++) {\n ctmcGI.push(ctmc[i].slice());\n }\n //Executa logica na diagonal principal da ctmcGI\n for (let i = 0; i < ctmcGI.length; i++) {\n let soma = 0;\n for (let j = 0; j < ctmcGI[i].length; j++) {\n soma += ctmcGI[i][j];\n }\n ctmcGI[i][i] = soma * (-1);\n }\n console.log(\"Gerador Infinitesimal:\");\n console.log(ctmcGI);\n}", "function calcNiveau(){\r\n var ancienNiveau = perso.niveau\r\n while (perso.exp > perso.levelLimit){\r\n perso.exp = perso.exp - perso.levelLimit\r\n perso.levelLimit = Math.round(perso.levelLimit * 1.5)\r\n perso.niveau++\r\n niveauPlus = true\r\n gainDeNiveau()\r\n }\r\n\r\n if (niveauPlus){\r\n var message = \"Aurora a gagné \" + (perso.niveau - ancienNiveau) + \" niveau !!!\"\r\n niveauPlus = false\r\n }else {\r\n var message = \"aurora a gagné \" + perso.exp + \" pts d'experience\"\r\n }\r\n return message\r\n}", "function generarPoblacionInicial(){\n\tarrayAux = new Array(GENES);\n\tfor(i=0;i<POBLACION;i++) {\n\n\t\t//aux con los numeros del 0 al 22\n\t\tfor(j=0;j<GENES;j++) {\n\t\t\tarrayAux[j] = j;\n\t\t}\n\n\t\t//rellenar cromosomas con el aux en orden aleatorio\n\t\tfor(j=0;j<GENES;j++) {\n\t\t\tcromosoma[i][j] = parseInt((arrayAux.splice(Math.floor(Math.random() * arrayAux.length), 1)).join(\"\"));\n\t\t}\n\t}\n}", "function faltaVisitar(paisesVisitados){\n var totalPaises = 193;\n return `Faltam visitar ${totalPaises - paisesVisitados} paises`;\n\n\n}", "function Puissance4(lig,col,l,c){\r\n //commencement de l'analyse\r\n console.log(\"Valeurs: \"+lig+\" \"+col+\" / Incrément \"+i+ \" \"+c);\r\n if(c == 0 && l == 0){\r\n //pour moi c'est inversé a verticale, b horizontal, c diag gauche et d diag droit\r\n // horizontalité\r\n var va = 1 +Puissance4(lig +1,col,1,0) + Puissance4(lig-1,col,-1,0);\r\n // verticalité\r\n var vb = 1 +Puissance4(lig,col+1,0,1) + Puissance4(lig,col-1,0,-1);\r\n // diagonale de droite\r\n var vc = 1 +Puissance4(lig+1,col+1,1,1) + Puissance4(lig-1,col-1,-1,-1); \r\n // diagonale de gauche\r\n var vd = 1 +Puissance4(lig-1,col+1,-1,1) + Puissance4(lig+1,col-1,1,-1);\r\n console.log(va,vb,vc,vd);\r\n if(va == 4 || vb == 4 || vc == 4 || vd == 4)return true;\r\n else return false; \r\n }\r\n //On vérifie que \"lig\" et \"col\" ne sortent pas du tableau \r\n if (lig<this.ligne && lig>=0 && col<this.colonne && col>=0){\r\n if(this.plateau[lig][col]==joueur){\r\n return 1+ Puissance4(lig + l, col + c, l, c);}\r\n else {return 0;}\r\n }\r\n else return 0;\r\n }", "function testaSegundo(a){\n if(sc < 10){\n var a = \"0\";\n return a + sc;\n }else{\n return sc;\n }\n }", "function procesoPrecio(){\n\n var getMinimo = minimo.slice(-1);\n var getMaximo = maximo.slice(-1);\n \nif(getMinimo != 0 && getMaximo != 0){\n formdata.append(\"minimo\",getMinimo);\n formdata.append(\"maximo\",getMaximo);\n}\n}", "function calcularTotalAPrazo() {\n var subTotalChequesECartao = parseFloat(trim(document.formPagamento.totalChequesAPrazo.value.toString())) + parseFloat(trim(document.formPagamento.totalCartaoAPrazo.value.toString()));\n\n // Verifica se foi inserido cheque ou cartao verificando a soma dos valores dos campos hidden 'totalChequesAVista' e 'totalCartaoAVista'\n if (subTotalChequesECartao > parseFloat(\"0\")) {\n // Marca o totalAPrazoEmDinheiro igual a zero\n document.formPagamento.totalAPrazoEmDinheiro.value = parseFloat(\"0\");\n // ...O subtotal com o subtotal de cheques mais cartao\n document.formPagamento.subtotalAPrazo.value = subTotalChequesECartao.toFixed(2);\n // ...E o total com o subtotal\n document.formPagamento.totalAPrazo.value = document.formPagamento.subtotalAPrazo.value;\n }\n else {\n // Marca o subtotal com total em dinheiro\n document.formPagamento.subtotalAPrazo.value = document.formPagamento.totalAPrazoEmDinheiro.value;\n // ...E o total com o subtotal\n document.formPagamento.totalAPrazo.value = document.formPagamento.subtotalAPrazo.value;\n }\n}", "function atualizaEstoque(estoqueTotal, gatos = 0, cachorros = 0){\n let movimentoGatos = validaMovimentoGatos(estoqueTotal.gatos, gatos); \n let movimentoCachorros = validaMovimentoCachorros(estoqueTotal.cachorros, cachorros); \n let saldoGatos = estoqueTotal.gatos + movimentoGatos //atualiza o estique de gatos\n let saldoCachorros = estoqueTotal.cachorros + movimentoCachorros // atualiza o esstoque de cachorros\n\n let saldoTotal = saldoGatos + saldoCachorros;\n\n return {\n gatos: saldoGatos,\n cachorros: saldoCachorros,\n total: saldoTotal,\n }\n}", "function zerarTransformacao () {\n botaoT = 0; \n botaoS = 0;\n botaoR = 0;\n}", "function escogerValorMasGrande(elemetos) {\n var resultado = 0;\n if (elemetos instanceof Array) {\n if (elemetos.length > 0) {}\n }\n}", "function anularCurso(codigoAsig){\n //alert(\"JARM\");\n for(var i=0;i<codigoAsignatura.length;i++){\n if (codigoAsignatura[i]==codigoAsig) {\n //cursoEstado(codigoAsig,false);\n matriculableAsignatura[i]=true;\n selecAsignatura[i]=false;\n turnoAsignatura[i]=\"0\";\n qui_cupo(i);\n for (var j=0;j<codigoAsignatura.length;j++){\n if(parseInt(ciclosSeleccionados[j])==parseInt(nivelAsignatura[i])){\n ciclosSeleccionados_creditos[j]=parseInt(ciclosSeleccionados_creditos[j])-parseInt(creditosAsignatura[i]);\n if (parseInt(ciclosSeleccionados_creditos[j])==0) {\n ciclosSeleccionados.splice(j,1);\n ciclosSeleccionados_creditos.splice(j,1);\n \n }\n }\n \n }\n \n \n }\n }\n imprimirCursosSelectos();\n listarAsignaturasPorNivel();\n }", "static GetUtilidad(cadenaDeConexion, fI, fF, idSucursal, result) {\n\n var sucursal = '';\n if (idSucursal != 1) {\n sucursal = `AND info_ingresos.codSucursal=` + idSucursal;\n }\n console.log(\"sucursal \", sucursal);\n sqlNegocio(\n cadenaDeConexion,\n ` SELECT base.codMes, SUM(base.precioVenta) as totalVenta from (SELECT info_grupopartidas.nombreGrupo,info_ingresos.codMes,\n\n CASE info_grupopartidas.nombreGrupo\n WHEN 'EGRESOS' THEN -(SUM(info_ingresos.sumPrecioVenta))\n WHEN 'INGRESOS' THEN SUM(info_ingresos.sumPrecioVenta)\n END as precioVenta\n \n \n from info_ingresos LEFT JOIN\n info_partidas on info_ingresos.idPartida = info_partidas.idPartida LEFT JOIN \n info_grupopartidas on info_grupopartidas.idGrupoPartida = info_partidas.idGrupo \n where info_ingresos.fecEmision BETWEEN '`+ fI + `' AND '` + fF + `' AND info_ingresos.estado=1 ` + sucursal + ` AND ( info_grupopartidas.nombreGrupo = 'EGRESOS' or info_grupopartidas.nombreGrupo = 'INGRESOS')\n group by info_grupopartidas.nombreGrupo,info_ingresos.codMes)as base group by base.codMes\n order by base.codMes ASC`,\n [],\n function (err, res) {\n if (err) {\n console.log(\"error: \", err);\n result(null, err);\n }\n else {\n result(null, res);\n }\n });\n }", "function sum(awalderet, akhirderet, step){\n if(awalderet != null && akhirderet != null && step == null){ //jika step kosong maka nilainya 1\n step = 1;\n var tampung = rangeWithStep(awalderet, akhirderet, step);\n var total = 0;\n\n for(i = 0; i < tampung.length; i++){\n total += tampung [i]\n }\n return total;\n\n }//jika semua parameter tidak null maka masuk ke sini\n else if(awalderet != null && akhirderet != null && step != null){\n var tampung = rangeWithStep(awalderet, akhirderet, step);\n var total = 0;\n\n for(i = 0; i < tampung.length; i++){\n total += tampung [i]\n }\n return total;\n\n }//jika hanya terdapat parameter awalderet maka sum bernilai awalderet\n else if(awalderet != null && akhirderet == null && step == null){\n total = awalderet;\n return total;\n }//jika parameter kosong semua maka return 0;\n else{\n return 0;\n }\n\n}", "function calculadora(){\n\tconsole.log(\"soy una calculadora\");\n}", "function soma(a,b = 0){\r\n return a+b;\r\n}", "function agregarCeros(tiempo){\n if(tiempo < 10){\n tiempo = \"0\"+tiempo\n }\n return tiempo\n}", "function sumatorioBombas(coordX, coordY) {\n var sumatorio = 0;\n if (coordX < 0 || coordX >= longitud || coordY < 0 || coordY >= longitud) {\n sumatorio = 0;\n\n } else {\n if (minas[coordX][coordY] == \"*\") {\n sumatorio = 1;\n\n }\n }\n return sumatorio;\n\n }", "function _AtualizaAtaque() {\n ImprimeSinalizado(gPersonagem.bba, DomsPorClasse('bba'));\n ImprimeNaoSinalizado(gPersonagem.numero_ataques,\n DomsPorClasse('numero-ataques'));\n // Corpo a corpo.\n var span_bba_cac = Dom('bba-corpo-a-corpo');\n ImprimeSinalizado(gPersonagem.bba_cac, span_bba_cac);\n var titulo_span_bba_cac = {};\n titulo_span_bba_cac[Traduz('bba')] = gPersonagem.bba;\n titulo_span_bba_cac[Traduz('força')] = gPersonagem.atributos['forca'].modificador;\n titulo_span_bba_cac[Traduz('tamanho')] = gPersonagem.tamanho.modificador_ataque_defesa;\n TituloChaves(titulo_span_bba_cac, span_bba_cac);\n\n // Distancia.\n var span_bba_distancia = Dom('bba-distancia');\n ImprimeSinalizado(gPersonagem.bba_distancia, span_bba_distancia);\n var titulo_span_bba_distancia = {};\n titulo_span_bba_distancia[Traduz('bba')] = gPersonagem.bba;\n titulo_span_bba_distancia[Traduz('destreza')] = gPersonagem.atributos['destreza'].modificador;\n titulo_span_bba_distancia[Traduz('tamanho')] = gPersonagem.tamanho.modificador_ataque_defesa;\n TituloChaves(titulo_span_bba_distancia, span_bba_distancia);\n\n // Agarrar\n var span_bba_agarrar = Dom('bba-agarrar');\n ImprimeSinalizado(gPersonagem.agarrar, span_bba_agarrar);\n var titulo_span_bba_agarrar = {};\n titulo_span_bba_agarrar[Traduz('bba')] = gPersonagem.bba;\n titulo_span_bba_agarrar[Traduz('força')] = gPersonagem.atributos['forca'].modificador;\n titulo_span_bba_agarrar[Traduz('tamanho especial')] = gPersonagem.tamanho.modificador_agarrar;\n TituloChaves(titulo_span_bba_agarrar, span_bba_agarrar);\n}", "function upisGoreFunc()\n{\n\tif (brojBacanja === 0)\n\t\treturn;\n\n\tif (indNajave > 0)\n\t{\n\t\talert(\"Igrali ste najavu!\")\n\t\treturn;\n\t}\n\n\t/* get the value of the field clicked */\n\tvar vred = Number(this.id.slice(1, ));\n\n\t/* see if the previous field is not -1 */\n\t/* else disable writting to preserve order */\n\tif(vred < 12 && kGore[vred] < 0)\n\t{\n\t\talert(\"Nedozvoljen upis!\");\n\t\treturn;\n\t}\n\t\n\t/* did we already write into this field */\n\tif(kGore[vred-1] >= 0)\n\t{\n\t\talert(\"Vec ste upisali u ovo polje!\");\n\t\treturn;\n\t}\n\n\tvar tmp = 0;\n\tvar tmpNiz = [];\n\n\t/* splice izabraneKockice and baceneKockice */\n\tfor(var i=0; i<5; ++i)\n\t{\n\t\tif (Number(izabraneKockice[i].innerText))\n\t\t\ttmpNiz.push(Number(izabraneKockice[i].innerText));\n\t}\n\n\tfor(var i=0; i<5; ++i)\n\t{\n\t\tif (Number(baceneKockice[i].innerText))\n\t\t\ttmpNiz.push(Number(baceneKockice[i].innerText));\n\t}\n\n\tif(tmpNiz.length != 5)\n\t\talert(\"Niz nije 5! vec: \" + tmpNiz.length);\n\n\t/* decide which field was clicked: broj, maxmin ili igra */\n\tswitch(vred)\n\t{\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:\n\t\tcase 4:\n\t\tcase 5:\n\t\tcase 6:\n\t\t\tfor(var i=0; i<5; ++i)\n\t\t\t{\n\t\t\t\tif(tmpNiz[i] == vred)\n\t\t\t\t\ttmp += tmpNiz[i]\n\t\t\t}\n\t\t\tkGore[vred-1] = tmp;\n\t\t\tsumaKolFunc(kGore, \"suma3\");\n\t\t\tsumaRazFunc(kGore, \"suma7\")\n\t\t\tbreak;\n\t\tcase 7:\n\t\tcase 8:\n\t\t\ttmp = zbir(tmpNiz);\n\t\t\tkGore[vred-1] = tmp;\n\t\t\tsumaRazFunc(kGore, \"suma7\")\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\ttmp = jelFul(tmpNiz);\n\t\t\tkGore[vred-1] = tmp;\n\t\t\tsumaIgFunc(kGore, \"suma11\");\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\ttmp = jelPoker(tmpNiz);\n\t\t\tkGore[vred-1] = tmp;\n\t\t\tsumaIgFunc(kGore, \"suma11\");\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\ttmp = jelKenta(tmpNiz);\n\t\t\tkGore[vred-1] = tmp;\n\t\t\tsumaIgFunc(kGore, \"suma11\");\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\ttmp = jelYamb(tmpNiz);\n\t\t\tkGore[vred-1] = tmp;\n\t\t\tsumaIgFunc(kGore, \"suma11\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t}\n\n\t/* write number of vred thrown */\n\tdocument.getElementById(this.id).innerText=Number(tmp);\n\n\tresetuj(izabraneKockice, baceneKockice);\n}", "function sumar(e) {\n resultado = Number(numero1.value) + Number(numero2.value);\n imprimir();\n }", "function calculocompraslocales(cant,costo)\n{\n var ret; \n var pu//preciounitario\n pu=costo/cant;// calculamos el costo unitario \n //if($(\"#nfact_imp\").val()!=\"SF\") //si tiene el texto SF es sin factura \n // ret=pu*glob_factorIVA; //confactura\n //else \n // ret=pu*glob_factorRET+pu; //sinfactura \n // return ret;\n\n}", "function AjPoFo() {\r\n \r\n if (perso.Por < 2) { //Test si assez d'argent\r\n alert(\"Vous n'avez pas assez d'argent\");\r\n console.log(\"Pas assez d'argent / nombre de potion = \"+ perso.Pinv[0]);\r\n } else {\r\n perso.Por -= 2; //Or du perso -2\r\n perso.Pinv[0] += 1; //Nombre de potion +1 \r\n document.getElementById('or').value = perso.Por; //affiche Or du perso dans la div caracteristique\r\n document.getElementById('nbPoFo').value = perso.Pinv[0]; //affiche le nombre de potion\r\n console.log(\"Achat d'une potion de force / nombre de potion = \"+ perso.Pinv[0]);\r\n }\r\n\r\n}", "function amelioration(){\n return nbMultiplicateurAmelioAutoclick +9;\n}", "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 }", "function impostaTotaliInDataTable(totaleStanziamentiEntrata, totaleStanziamentiCassaEntrata, totaleStanziamentiResiduiEntrata, totaleStanziamentiEntrata1, totaleStanziamentiEntrata2,\n \t\ttotaleStanziamentiSpesa, totaleStanziamentiCassaSpesa, totaleStanziamentiResiduiSpesa, totaleStanziamentiSpesa1, totaleStanziamentiSpesa2){\n\n \tvar totaleStanziamentiEntrataNotUndefined = getStanziamentoNotUndefined(totaleStanziamentiEntrata);\n var totaleStanziamentiCassaEntrataNotUndefined = getStanziamentoNotUndefined(totaleStanziamentiCassaEntrata);\n var totaleStanziamentiResiduiEntrataNotUndefined = getStanziamentoNotUndefined(totaleStanziamentiResiduiEntrata);\n //anno = anno bilancio +1\n var totaleStanziamentiEntrata1NotUndefined = getStanziamentoNotUndefined(totaleStanziamentiEntrata1);\n //anno = anno bilancio +2\n var totaleStanziamentiEntrata2NotUndefined = getStanziamentoNotUndefined(totaleStanziamentiEntrata2);\n \n \n var totaleStanziamentiSpesaNotUndefined = getStanziamentoNotUndefined(totaleStanziamentiSpesa);\n var totaleStanziamentiCassaSpesaNotUndefined = getStanziamentoNotUndefined(totaleStanziamentiCassaSpesa);\n var totaleStanziamentiResiduiSpesaNotUndefined = getStanziamentoNotUndefined(totaleStanziamentiResiduiSpesa);\n //anno = anno bilancio +1\n var totaleStanziamentiSpesa1NotUndefined = getStanziamentoNotUndefined(totaleStanziamentiSpesa1);\n //anno = anno bilancio +2\n var totaleStanziamentiSpesa2NotUndefined = getStanziamentoNotUndefined(totaleStanziamentiSpesa2);\n\n capVarImp.impostaValutaEAllineaADestra(\"#totaleEntrateCompetenzaVariazione\", totaleStanziamentiEntrataNotUndefined);\n capVarImp.impostaValutaEAllineaADestra(\"#totaleEntrateResiduoVariazione\", totaleStanziamentiResiduiEntrataNotUndefined);\n capVarImp.impostaValutaEAllineaADestra(\"#totaleEntrateCassaVariazione\", totaleStanziamentiCassaEntrataNotUndefined);\n //anno = anno bilancio +1\n capVarImp.impostaValutaEAllineaADestra(\"#totaleEntrateCompetenzaVariazioneAnnoPiuUno\", totaleStanziamentiEntrata1NotUndefined);\n //anno = anno bilancio +2\n capVarImp.impostaValutaEAllineaADestra(\"#totaleEntrateCompetenzaVariazioneAnnoPiuDue\", totaleStanziamentiEntrata2NotUndefined);\n \n\n capVarImp.impostaValutaEAllineaADestra(\"#totaleSpeseCompetenzaVariazione\", totaleStanziamentiSpesaNotUndefined);\n capVarImp.impostaValutaEAllineaADestra(\"#totaleSpeseCassaVariazione\", totaleStanziamentiCassaSpesaNotUndefined);\n capVarImp.impostaValutaEAllineaADestra(\"#totaleSpeseResiduoVariazione\", totaleStanziamentiResiduiSpesaNotUndefined);\n //anno = anno bilancio +1\n capVarImp.impostaValutaEAllineaADestra(\"#totaleSpeseCompetenzaVariazioneAnnoPiuUno\", totaleStanziamentiSpesa1NotUndefined);\n //anno = anno bilancio +2\n capVarImp.impostaValutaEAllineaADestra(\"#totaleSpeseCompetenzaVariazioneAnnoPiuDue\", totaleStanziamentiSpesa2NotUndefined);\n \n\n capVarImp.impostaValutaEAllineaADestra(\"#differenzaCompetenzaVariazione\", (totaleStanziamentiEntrataNotUndefined - totaleStanziamentiSpesaNotUndefined));\n capVarImp.impostaValutaEAllineaADestra(\"#differenzaResiduoVariazione\", (totaleStanziamentiResiduiEntrataNotUndefined - totaleStanziamentiResiduiSpesaNotUndefined));\n capVarImp.impostaValutaEAllineaADestra(\"#differenzaCassaVariazione\", (totaleStanziamentiCassaEntrataNotUndefined - totaleStanziamentiCassaSpesaNotUndefined));\n \n //anno = anno bilancio +1\n capVarImp.impostaValutaEAllineaADestra(\"#differenzaCompetenzaVariazioneAnnoPiuUno\", (totaleStanziamentiEntrata1NotUndefined - totaleStanziamentiSpesa1NotUndefined));\n //anno = anno bilancio +2\n capVarImp.impostaValutaEAllineaADestra(\"#differenzaCompetenzaVariazioneAnnoPiuDue\", (totaleStanziamentiEntrata2NotUndefined - totaleStanziamentiSpesa2NotUndefined));\n }", "function sum_ingnorantissima(a) {\n var trovato = false;\n var array = a.map(\n function(x) {\n if (x < 0) \n trovato = true;\n if (!trovato)\n return x;\n return 0;\n });\n \n return array.reduce(\n function (acc, x) {\n return acc + x;\n });\n}", "static soma (...operadores) {\n return operadores.reduce((total, proximo) => total + proximo);\n }", "function reestablece(){\n colector = \"0\";\n operacion = \"\";\n operador0 = 0;\n operador1 = 0;\n resultado = 0;\n iteracion = 0;\n }", "function sumar() {\n num1 = obtenerResultado();\n operacion = \"+\";\n limpiar();\n}", "function calcNeto( ) {\r\n\t\t\treturn $scope.pes_br-$scope.pes_ta;\r\n//\t\t\treturn toString(accounting.unformat($scope.pes_br)-accounting.unformat($scope.pes_ta)); /*\r\n\t\t}", "come(suma){\n console.log(`${this.nombre} esta comiendo`)\n this.energia += suma\n }", "function perimetroTriangulo(lado1, lado2, base) {\n return lado1 + lado2 + base ;\n}", "function GeraResumoArmaEstilo(arma_personagem, primaria, estilo) {\n var resumo = '';\n var arma_estilo = primaria ? estilo.arma_primaria : estilo.arma_secundaria;\n for (var categoria in arma_estilo.bonus_por_categoria) {\n var bonus = arma_estilo.bonus_por_categoria[categoria];\n var string_ataque = '';\n bonus.ataque.forEach(function(at) {\n string_ataque += StringSinalizada(at) + '/';\n });\n string_ataque = string_ataque.slice(0, -1);\n resumo += Traduz(categoria) + ': ' + string_ataque + ', ';\n var arma_tabela = arma_personagem.arma_tabela;\n var nivel_monge = PersonagemNivelClasse('monge');\n if (estilo.nome == 'arma_dupla' && !primaria) {\n resumo += arma_tabela.dano_secundario[gPersonagem.tamanho.categoria];\n } else if (arma_personagem.entrada.chave == 'desarmado' && nivel_monge > 0) {\n resumo += tabelas_monge_desarmado[nivel_monge].dano[gPersonagem.tamanho.categoria];\n } else {\n resumo += arma_tabela.dano[gPersonagem.tamanho.categoria];\n }\n resumo += StringSinalizada(bonus.dano, false);\n resumo += ' (' + arma_personagem.critico + ')';\n resumo += '; ';\n }\n return resumo.slice(0, -2);\n}", "function soma (n1=0,n2=0){\n return n1+n2\n}", "function arrayTambah() {\n var hasil = 0;\n\n for (var i = 0; i < arguments.length; i++) {\n hasil += arguments[i];\n }\n return hasil;\n}", "function operator(angka, angkalain, perhitungan){\n var hasil = 0\n if(perhitungan=='tambah'){\n hasil=angka+angkalain\n }else if(perhitungan=='kurang'){\n hasil=angka-angkalain\n }else if(perhitungan=='bagi'){\n hasil=angka/angkalain\n }else if(perhitungan=='kali'){\n hasil=angka*angkalain\n }\n return hasil //return untuk apa yg kita pengen\n}", "function hitungLuasSegitiga(alas,tinggi) {\n var luas = 1/2 * alas * tinggi;\n\n return luas;\n\n}", "UCB(c){\n //console.log(\"Victorias simulacion: \" + this.numVictoriasSimulacion + \"jugadas finales \" + this.numJugadasSimulacion + \"jugadas padre \" + this.padre.numJugadasSimulacion + \" jugadas simuladas \" + this.numJugadasSimulacion)\n return (this.numVictoriasSimulacion / this.numJugadasSimulacion) + c * Math.sqrt(Math.log(this.padre.numJugadasSimulacion) / this.numJugadasSimulacion)\n }", "function falso(){\n\tif(cont==2||cont==3||cont==5||cont==6||cont==7||cont==8||cont==10||cont==11||cont==13||cont==17||cont==19){\n\t\talert(\"ESA ES MI CHICA! CORRECTO\");\n\t\tpuntos = puntos + 1;\n\t}else{\n\t\talert(\"MALA NOVIA!!! ERROR\");\n\t}\n\tconsole.log(puntos);\n\tcambiarPagina();\n}", "function contrari(fantasma){\n var vContrari;\r\n if(fantasma[3] == 1) vContrari = 3;\n if(fantasma[3] == 2) vContrari = 4;\n if(fantasma[3] == 3) vContrari = 1;\n if(fantasma[3] == 4) vContrari = 2;\n return vContrari;\r\n}", "function perimetroTriangulo(lado1,lado2,lado3){\n return lado1+lado2+lado3;\n}", "function soma(a, b = 0) {\n return a + b;\n}", "siguienteNivel() {\n this.subnivel = 0\n this.iluminar()\n this.agregarSecuencia()\n }", "calcolaArea() {\n\n return (this.base * this.altezza) / 2; \n }", "function tambah(){\n\n var i;\n var hasil = 0;\n\n for(i = 0; i < arguments.length ; i++){\n hasil += arguments[i];\n }\n\n return hasil;\n\n}", "liikkumislogiikka_jahtaus(oma_x, oma_y, jahti_x, jahti_y){\n var jahdattavan_suhteellinen_suunta_x = jahti_x - oma_x;\n var jahdattavan_suhteellinen_suunta_y = jahti_y - oma_y;\n \n var suunta;\n if (Math.abs(jahdattavan_suhteellinen_suunta_x) <= Math.abs(jahdattavan_suhteellinen_suunta_y)) {\n if (jahdattavan_suhteellinen_suunta_y >= 0) {\n suunta = suunnat.ALAS;\n }\n else {\n suunta = suunnat.YLOS;\n }\n }\n else {\n if (jahdattavan_suhteellinen_suunta_x <= 0){\n if (oma_x - 1 >= this.alue_x1) {\n suunta = suunnat.VASEN;\n }\n else {\n suunta = suunnat.PAIKKA;\n }\n }\n else {\n if (oma_x + 1 <= this.alue_x2) {\n suunta = suunnat.OIKEA;\n }\n else {\n suunta = suunnat.PAIKKA;\n }\n }\n }\n \n return suunta;\n }", "function auxNaipes(promedio) {\n let simbolo;\n\n if(promedio > 0 && promedio <= 19) \n simbolo = 'A';\n else if(promedio >= 20 && promedio <= 38) \n simbolo = 'B';\n else if(promedio >= 39 && promedio <= 57) \n simbolo = 'C';\n else if(promedio >= 58 && promedio <= 76) \n simbolo = 'D';\n else if(promedio >= 77 && promedio <= 95) \n simbolo = 'E';\n else if(promedio >= 96 && promedio <= 114) \n simbolo = 'F';\n else if(promedio >= 115 && promedio <= 133) \n simbolo = 'G';\n else if(promedio >= 134 && promedio <= 152) \n simbolo = 'H';\n else if(promedio >= 153 && promedio <= 171) \n simbolo = 'I';\n else if(promedio >= 172 && promedio <= 190) \n simbolo = 'J';\n else if(promedio >= 191 && promedio <= 209) \n simbolo = 'K';\n else if(promedio >= 210 && promedio <= 228) \n simbolo = 'L';\n else if(promedio >= 229 && promedio <= 256) \n simbolo = 'M';\n return simbolo;\n\n}", "function kalkulasi(a, b) {\n return {\n tambah: a + b,\n kurang: a - b,\n kali: a * b,\n bagi: a / b\n }\n}", "function botonera_push_btn3_0() \n {\n var txt3_respuesta =$(\"#p3_respuesta\").text();\n\n if(isNaN(txt3_respuesta))\n {\n // txt3_respuesta = 0;\n }else\n {\n txt3_respuesta = txt3_respuesta + 0;\n }\n\n $(\"#p3_respuesta\").text(txt3_respuesta);\n \n }", "function afase_pianeta(njd,AR,DE,dist_ps,dist_pt){\n\n // funzione per il calcolo dell'angolo di fase per un pianeta.\n // AR,DE sono le coordinate equatoriali decimali, del pianeta.\n // njd= numero del giorno giuliano.\n // dist_ps=distanza pianeta-sole in UA.\n // dist_pt=distanza pianeta-Terra in UA.\n // by Salvatore Ruiu - gennaio 2013.\n\n var coo_sole=pos_sole(njd); // coordinate equatoriali decimali del Sole.\n var Rs=coo_sole[4]; // distanza Terra-Sole. \n var elongaz=elong(AR,DE,coo_sole[0],coo_sole[1]); // elongazione in gradi dal Sole.\n\n // calcolo dell'angolo di fase in gradi . \n\n var Dpt= dist_pt; // distanza pianeta-terra.\n var Dts= Rs; // distanza terra-sole.\n var Dps= dist_ps; // distanza pianeta-sole.\n\n // risolve il teorema del coseno (noti i 3 lati del triangolo).\n\n var delta_fase=(Dts*Dts+Dps*Dps-Dpt*Dpt)/(2*Dps*Dts);\n delta_fase=Math.acos(delta_fase); \n delta_fase=Rda(delta_fase);\n\n var angolo_fase=180-Math.abs(elongaz)-delta_fase; // risultato: angolo di fase in gradi.\n\nreturn angolo_fase;\n\n}", "total(){\n return this.contador1 + this.contador2 + this.contador3;\n }", "function munculkanAngkaDua() {\n return 2;\n}", "function PersonagemLimpaGeral() {\n gPersonagem.classes.length = 0;\n gPersonagem.pontos_vida.bonus.Limpa();\n gPersonagem.pontos_vida.temporarios = 0;\n gPersonagem.pontos_vida.ferimentos_nao_letais = 0;\n gPersonagem.armas.length = 1; // para manter desarmado.\n gPersonagem.armaduras.length = 0;\n gPersonagem.ca.bonus.Limpa();\n gPersonagem.iniciativa.Limpa();\n gPersonagem.outros_bonus_ataque.Limpa();\n gPersonagem.atributos.pontos.gastos.disponiveis = 0;\n gPersonagem.atributos.pontos.gastos.length = 0;\n for (var atributo in tabelas_atributos) {\n gPersonagem.atributos[atributo].bonus.Limpa();\n }\n for (var i = 0; i < gPersonagem.pericias.lista.length; ++i) {\n gPersonagem.pericias.lista[i].bonus.Limpa();\n }\n for (var chave_classe in gPersonagem.feiticos) {\n gPersonagem.feiticos[chave_classe].em_uso = false;\n gPersonagem.feiticos[chave_classe].nivel_maximo = 0;\n for (var i = 0; i <= 9; ++i) {\n gPersonagem.feiticos[chave_classe].conhecidos[i].length = 0;\n gPersonagem.feiticos[chave_classe].slots[i].feiticos.length = 0;\n gPersonagem.feiticos[chave_classe].slots[i].feitico_dominio = null;\n }\n }\n gPersonagem.estilos_luta.length = 0;\n for (var tipo_salvacao in gPersonagem.salvacoes) {\n if (tipo_salvacao in { fortitude: '', reflexo: '', vontade: '' }) {\n gPersonagem.salvacoes[tipo_salvacao].Limpa();\n } else {\n delete gPersonagem.salvacoes[tipo_salvacao];\n }\n }\n for (var tipo_item in tabelas_itens) {\n gPersonagem[tipo_item].length = 0;\n }\n gPersonagem.especiais = {};\n gPersonagem.imunidades.length = 0;\n gPersonagem.resistencia_magia.length = 0;\n PersonagemLimpaPericias();\n PersonagemLimpaTalentos();\n}", "function calcularClasseDeArmadura(modificadorDeDestreza, modificadorDeClasseDeArmadura) {\n return 10 + modificadorDeDestreza + (modificadorDeClasseDeArmadura || 0);\n}", "function suma (alojamiento, transporte, comida){\r\n\r\n let gastos = parseInt(alojamiento) + parseInt (transporte) + parseInt (comida);\r\n\r\n document.write(\"El destino que elegiste es \" + destino + \"<br>\");\r\n\r\n document.write(\"La suma de tus gastos es de: \" + gastos + \"<br>\" );\r\n\r\n}" ]
[ "0.6326228", "0.62226504", "0.6148622", "0.59948635", "0.59726524", "0.59057826", "0.58613014", "0.5856627", "0.57960993", "0.577517", "0.5767869", "0.5762447", "0.57331544", "0.5719623", "0.5694293", "0.56720793", "0.56613547", "0.56238776", "0.5622329", "0.56171143", "0.56139576", "0.5601021", "0.55976397", "0.55896616", "0.55819803", "0.5558872", "0.5547354", "0.5547354", "0.55435073", "0.5541553", "0.55364114", "0.5528101", "0.55067086", "0.550438", "0.5502669", "0.5501794", "0.54867035", "0.54861784", "0.548446", "0.54807806", "0.54561746", "0.5455323", "0.54547155", "0.5453645", "0.54475206", "0.54421294", "0.543769", "0.54261726", "0.5413779", "0.540816", "0.5393617", "0.5393372", "0.5379925", "0.53782314", "0.5377709", "0.53655255", "0.5363049", "0.53573525", "0.53573275", "0.53533363", "0.53525555", "0.53481215", "0.5345273", "0.53439325", "0.53427863", "0.5340825", "0.533808", "0.5336461", "0.5332882", "0.5328273", "0.5327247", "0.5322844", "0.5318951", "0.53174967", "0.5317175", "0.5316511", "0.5315142", "0.5312425", "0.5309861", "0.52958965", "0.5294156", "0.5284133", "0.52822655", "0.52810603", "0.5280596", "0.5280344", "0.5277213", "0.52766645", "0.52761984", "0.5257737", "0.5254058", "0.5245964", "0.52442235", "0.52421576", "0.523992", "0.52398854", "0.5239714", "0.5237826", "0.52374387", "0.5236551", "0.5233675" ]
0.0
-1
FUNZIONE RISPOSTA DA COMPUTER
function pcMessage(){ var messaggioComputer = $('.template .messaggio').clone(); console.log(messaggioComputer); messaggioComputer.find('.message-text').text('Ok'); messaggioComputer.addClass('computer'); $('.spazio-messaggi').append(messaggioComputer); var data = new Date(); var hours = addZero(data.getHours()); var minutes = addZero(data.getMinutes()); var time = hours +':'+ minutes; messaggioComputer.find('.message-time').text(time); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function comportement (){\n\t }", "function coherencia(objeto){\n // extrae las variables nesesarias para la evaluacion\n var estructura= objeto.structure;\n var nivelagregacion=objeto.aggregationlevel;\n var tipointeractividad=objeto.interactivitytype; \n var nivelinteractivo=objeto.interactivitylevel;\n var tiporecursoeducativo=objeto.learningresourcetype;\n \n //inicializa las reglas y las variables de los pesos\n var r=0;\n var pesor1=0;\n var pesor2=0;\n var pesor3=0;\n\n //verifica las reglas que se van a evaluar\n if (estructura===\"atomic\" && nivelagregacion===\"1\"){\n r++;\n pesor1=1;\n }else if (estructura===\"atomic\" && nivelagregacion===\"2\"){\n r++;\n pesor1=0.5;\n }else if (estructura===\"atomic\" && nivelagregacion===\"3\"){\n r++;\n pesor1=0.25;\n }else if (estructura===\"atomic\" && nivelagregacion===\"4\"){\n r++;\n pesor1=0.125;\n }else if (estructura===\"collection\" && nivelagregacion===\"1\"){\n r++;\n pesor1=0.5;\n }else if (estructura===\"networked\" && nivelagregacion===\"1\"){\n r++;\n pesor1=0.5; \n }else if (estructura===\"hierarchical\" && nivelagregacion===\"1\"){\n r++;\n pesor1=0.5; \n }else if (estructura===\"linear\" && nivelagregacion===\"1\"){\n r++;\n pesor1=0.5; \n }else if (estructura===\"collection\" && (nivelagregacion===\"2\" || \n nivelagregacion===\"3\" || \n nivelagregacion===\"4\") ){\n r++;\n pesor1=1; \n }else if (estructura===\"networked\" && (nivelagregacion===\"2\" || \n nivelagregacion===\"3\" || \n nivelagregacion===\"4\") ){\n r++;\n pesor1=1; \n }else if (estructura===\"hierarchical\" && (nivelagregacion===\"2\" || \n nivelagregacion===\"3\" || \n nivelagregacion===\"4\") ){\n r++;\n pesor1=1; \n }else if (estructura===\"linear\" && (nivelagregacion===\"2\" || \n nivelagregacion===\"3\" || \n nivelagregacion ===\"4\") ){\n r++;\n pesor1=1; \n }\n\n if (tipointeractividad===\"active\" && (nivelinteractivo===\"very high\" || \n nivelinteractivo===\"high\" || \n nivelinteractivo===\"medium\" || \n nivelinteractivo===\"low\" ||\n nivelinteractivo===\"very low\") ){\n $r++;\n $pesor2=1; \n }else if (tipointeractividad===\"mixed\" && (nivelinteractivo===\"very high\" || \n nivelinteractivo===\"high\" || \n nivelinteractivo===\"medium\" || \n nivelinteractivo===\"low\" ||\n nivelinteractivo===\"very low\") ){\n r++;\n pesor2=1;\n }else if (tipointeractividad===\"expositive\" && (nivelinteractivo===\"very high\" || \n nivelinteractivo===\"high\") ){\n r++;\n pesor2=0;\n }else if (tipointeractividad===\"expositive\" && nivelinteractivo===\"medium\" ){\n r++;\n pesor2=0.5;\n }else if (tipointeractividad===\"expositive\" && ( nivelinteractivo===\"low\" ||\n nivelinteractivo===\"very low\") ){\n r++;\n pesor2=1;\n } \n if ( tipointeractividad===\"active\" && (tiporecursoeducativo===\"exercise\" || \n tiporecursoeducativo===\"simulation\" || \n tiporecursoeducativo===\"questionnaire\" || \n tiporecursoeducativo===\"exam\" ||\n tiporecursoeducativo===\"experiment\" ||\n tiporecursoeducativo===\"problem statement\" ||\n tiporecursoeducativo===\"self assessment\") ){\n r++;\n pesor3=1; \n }else if (tiporecursoeducativo===\"active\" && (tiporecursoeducativo===\"diagram\" || \n tiporecursoeducativo===\"figure\" || \n tiporecursoeducativo===\"graph\" || \n tiporecursoeducativo===\"index\" ||\n tiporecursoeducativo===\"slide\" ||\n tiporecursoeducativo===\"table\" ||\n tiporecursoeducativo===\"narrative text\" ||\n tiporecursoeducativo===\"lecture\") ){\n r++;\n pesor3=0;\n \n }else if (tipointeractividad===\"expositive\" && (tiporecursoeducativo===\"exercise\" || \n tiporecursoeducativo===\"simulation\" || \n tiporecursoeducativo===\"questionnaire\" || \n tiporecursoeducativo===\"exam\" ||\n tiporecursoeducativo===\"experiment\" ||\n tiporecursoeducativo===\"problem statement\" ||\n tiporecursoeducativo===\"self assessment\") ){\n r++;\n pesor3=0; \n }else if (tipointeractividad===\"expositive\" && (tiporecursoeducativo===\"diagram\" || \n tiporecursoeducativo===\"figure\" || \n tiporecursoeducativo===\"graph\" || \n tiporecursoeducativo===\"index\" ||\n tiporecursoeducativo===\"slide\" ||\n tiporecursoeducativo===\"table\" ||\n tiporecursoeducativo===\"narrative text\" ||\n tiporecursoeducativo===\"lecture\") ){\n r++;\n pesor3=1;\n }else if (tipointeractividad===\"mixed\" && (tiporecursoeducativo===\"exercise\" || \n tiporecursoeducativo===\"simulation\" || \n tiporecursoeducativo===\"questionnaire\" || \n tiporecursoeducativo===\"exam\" ||\n tiporecursoeducativo===\"experiment\" ||\n tiporecursoeducativo===\"problem statement\" ||\n tiporecursoeducativo===\"self assessment\" ||\n tiporecursoeducativo===\"diagram\" ||\n tiporecursoeducativo===\"figure\" ||\n tiporecursoeducativo===\"graph\" ||\n tiporecursoeducativo===\"index\" ||\n tiporecursoeducativo===\"slide\" ||\n tiporecursoeducativo===\"table\" ||\n tiporecursoeducativo===\"narrative text\" ||\n tiporecursoeducativo===\"lecture\" )){\n r++;\n pesor3=1; \n } \n m_coherencia=0;\n if (r>0) {\n\n // hace la sumatoria de los pesos \n m_coherencia= ( pesor1 + pesor2 + pesor3) / r;\n \n \n //alert(mensaje);\n return m_coherencia;\n //echo \"* Coherencia de: \". m_coherencia.\"; \". evaluacion.\"<br><br>\";\n }else{\n \n return m_coherencia;\n \n }\n\n\n }", "function compras() {\n\n\tvar arroz = 1;\n\n\tthis.qualQtdArroz = function() {\n\t\treturn 'Comprar ' + arroz + ' arroz!';\n\t}\n\n\n}", "function crepuscolo(njd,tempo_rif,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo astronomico.\n // FUNZIONE DA ELIMINARE e sostituire con crepuscolo_UT\n \n var tempo_rifst=0; // tempo di riferimento per il sorgere e il tramonto.\n // \nif (tempo_rif==\"TL\") { tempo_rifst=-fuso_loc(); } // riferimento al tempo locale.\nelse if (tempo_rif==\"TU\") { tempo_rifst=0 ;} // il riferimento rimane il TU\n\n\n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1];\n\n var LATr=latitudine/180*Math.PI;\n var DEr=DEs/180*Math.PI;\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr));\n\n var H1=Math.acos((Math.cos(1.88495556)-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= H*180/Math.PI;\n var H1=H1*180/Math.PI;\n\n var T=((H1-H)/15)*0.9973;\n\n// new Array(azimut_sorgere,azimut_tramonto,tempo_sorgere,tempo_transito,tempo_tramonto)\n// 0 1 2 3 4\n\n var p_sole=ST_ASTRO_DATA(njd,ps_sole[0],ps_sole[1],longitudine,latitudine,altitudine,0.25);\n\n var crep_m=ore_24(p_sole[2]-T+tempo_rifst); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T+tempo_rifst); // crepuscolo serale\n\n crep_m=sc_ore_hm(crep_m); // crepuscolo del mattino.\n crep_s=sc_ore_hm(crep_s); // crepuscolo serale\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function crepuscolo_CV(njd,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo civile per il T.U. di Greenwich\n // aggiornata al 03/12/2011.\n // by Salvatore Ruiu - Irgoli (Italy).\n // IL Sole si trova a -6 gradi sotto l'orizzonte locale. 90+6 .\n \n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1]; // declinazione del Sole.\n\n var LATr=Rad(latitudine); // angolo in radianti.\n var DEr=Rad(DEs); // angolo in radianti.\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr)); // angolo orario\n\n var H1=Math.acos((Math.cos(Rad(96))-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= Rda(H); // angolo da radiante a sessadecimale.\n var H1=Rda(H1); // angolo da radiante a sessadecimale. \n\n var T=((H1-H)/15)*0.9973;\n\n var p_sole=ST_SOLE(njd,longitudine,latitudine,altitudine);\n\n var crep_m=ore_24(p_sole[2]-T); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T); // crepuscolo serale.\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function cargarpista1 (){\n \n}", "function ocen_statycznie()\n{\n return szachownica.ocena.material + (szachownica.ocena.faza_gry * szachownica.ocena.tablice + (70 - szachownica.ocena.faza_gry) * szachownica.ocena.tablice_koncowka) * 0.03;\n}", "function curp(primerApellido, segundoApellido, nombres, fechaNacimiento, entidadNacimiento, genero) {\r\r\n\r\r\n primerApellido = prepareNombresApellidos(primerApellido, false);\r\r\n segundoApellido = prepareNombresApellidos(segundoApellido, false);\r\r\n nombres = prepareNombresApellidos(nombres, true);\r\r\n fechaNacimiento = fechaNacimiento.trim();\r\r\n entidadNacimiento = entidadNacimiento.toUpperCase().trim();\r\r\n genero = genero.toUpperCase().trim();\r\r\n\r\r\n var curp = rfc(primerApellido, segundoApellido, nombres, fechaNacimiento);\r\r\n curp += genero + getEntidadFederativaNacimiento(entidadNacimiento);\r\r\n curp += getConsonantesInternas(primerApellido);\r\r\n curp += getConsonantesInternas(segundoApellido);\r\r\n curp += getConsonantesInternas(nombres);\r\r\n\r\r\n return curp;\r\r\n}", "function ispisCene(){\n \n let ispisCena=racunajCenu(findDestPrice(dest),brOsoba);\n document.querySelector(\"#cena\").innerHTML = `${ispisCena}&euro;`;\n }", "function reestablece(){\n colector = \"0\";\n operacion = \"\";\n operador0 = 0;\n operador1 = 0;\n resultado = 0;\n iteracion = 0;\n }", "function Copcar(){}", "function getPaletaCores() {\n\t\t\t\n\t\t\tvar cores = [{\n\t\t\t\t\tnome: \"Amarelo\",\n\t\t\t\t\tcodigo: \"f8ec42\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Azul Marinho\",\n\t\t\t\t\tcodigo: \"232749\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Azul Royal\",\n\t\t\t\t\tcodigo: \"3366ff\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Bege\",\n\t\t\t\t\tcodigo: \"fff5de\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Pink\",\n\t\t\t\t\tcodigo: \"ea257f\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Branco\",\n\t\t\t\t\tcodigo: \"ffffff\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Amarelo\",\n\t\t\t\t\tcodigo: \"f8ec42\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Preto\",\n\t\t\t\t\tcodigo: \"000000\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Coral\",\n\t\t\t\t\tcodigo: \"d53b52\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Verde Abacate\",\n\t\t\t\t\tcodigo: \"d3db7b\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Verde Turquesa\",\n\t\t\t\t\tcodigo: \"00a6a6\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Vermelho\",\n\t\t\t\t\tcodigo: \"d32433\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Pink Fluorescente\",\n\t\t\t\t\tcodigo: \"ff66ff\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Laranja Fluorescente\",\n\t\t\t\t\tcodigo: \"ff6666\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Verde Fluorescente\",\n\t\t\t\t\tcodigo: \"dfff69\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Azul Royal Fluorescente\",\n\t\t\t\t\tcodigo: \"3366ff\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Azul\",\n\t\t\t\t\tcodigo: \"24a2fd\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Verde\",\n\t\t\t\t\tcodigo: \"35ac75\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Verde Escuro\",\n\t\t\t\t\tcodigo: \"00584b\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Cinza\",\n\t\t\t\t\tcodigo: \"939393\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Laranja\",\n\t\t\t\t\tcodigo: \"e38724\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tnome: \"Rosa\",\n\t\t\t\t\tcodigo: \"e66187\",\n\t\t\t\t\tselecionada: false\n\t\t\t\t}\n\t\t\t];\n\t\t\t\n\t\t\treturn cores;\n\t\t}", "function mostrarprmaelementocequiv(habp,com){\n\n\t\t\t//////////////////////////////////PLAN HABILITADORAS ////////////////////////////////////////////////\t\t\t\n\t\t\t\t\t\t// ESFUERZO PROPIO PLAN EN BOLIVARES \t\t\t\t\t\n\t\t\t\t\t\tvar laborep = filtrarcostohab(habp,filtrolabor,5,com,1);\n\t\t\t\t\t\tvar bbep = filtrarcostohab(habp,filtrobb,5,com,1);\n\t\t\t\t\t\tvar mep = filtrarcostohab(habp,filtrom,5,com,1);\n\t\t\t\t\t\tvar scep = filtrarcostohab(habp,filtrosc,5,com,1);\n\t\t\t\t\t\tvar oep = filtrarcostohab(habp,filtroo,5,com,1);\n\t\t\t\t\t\tvar totalep = filtrartotal(laborep,bbep,mep,scep,oep);\n \n \t\t\t\t\t\t \t\t // ESFUERZOS PROPIOS PLAN EN DOLARES\n \t\t\t\t\t\t var laborepdol = filtrarcostohab(habp,filtrolabor,5,com,2);\n \t\t\t\t\t\t var bbepdol = filtrarcostohab(habp,filtrobb,5,com,2);\n \t\t\t\t\t\t var mepdol = filtrarcostohab(habp,filtrom,5,com,2);\n \t\t\t\t\t\t var scepdol = filtrarcostohab(habp,filtrosc,5,com,2);\n \t\t\t\t\t\t var oepdol = filtrarcostohab(habp,filtroo,5,com,2);\n \t\t\t\t\t\t var totalepdol = filtrartotal(laborepdol,bbepdol,mepdol,scepdol,oepdol);\n\n \t\t\t\t\t\t // DTTO ORIENTAL PLAN EN BOLIVARES\n\t\t\t\t\t \t var labordtto = filtrarcostohab(habp,filtrolabor,4,com,1);\n \t\t\t\t\t\t var bbdtto = filtrarcostohab(habp,filtrobb,4,com,1);\n \t\t\t\t\t\t var mdtto = filtrarcostohab(habp,filtrom,4,com,1);\n \t\t\t\t\t\t var scdtto = filtrarcostohab(habp,filtrosc,4,com,1);\n \t\t\t\t\t\t var odtto = filtrarcostohab(habp,filtroo,4,com,1);\n \t\t\t\t\t\t var totaldtto = filtrartotal(labordtto,bbdtto,mdtto,scdtto,odtto);\n\n \t\t\t\t\t\t // DTTO ORIENTAL PLAN EN DOLARES\n \t\t\t\t\t\t var labordttodol = filtrarcostohab(habp,filtrolabor,4,com,2);\n \t\t\t\t\t\t var bbdttodol = filtrarcostohab(habp,filtrobb,4,com,2);\n \t\t\t\t\t\t var mdttodol = filtrarcostohab(habp,filtrom,4,com,2);\n \t\t\t\t\t\t var scdttodol = filtrarcostohab(habp,filtrosc,4,com,2);\n \t\t\t\t\t\t var odttodol = filtrarcostohab(habp,filtroo,4,com,2);\n \t\t\t\t\t\t var totaldttodol = filtrartotal(labordttodol,bbdttodol,mdttodol,scdttodol,odttodol);\n\n\n \t\t\t\t\t\t /// DIVISION ORIENTAL PLAN EN BOLIVARES\n \t\t\t\t\t\t var labordivo = filtrardivo(labordtto,laborep);\n \t\t\t\t\t\t var bbdivo = filtrardivo(bbdtto,bbep);\n \t\t\t\t\t\t var mdivo = filtrardivo(mdtto,mep);\n \t\t\t\t\t\t var scdivo = filtrardivo(scdtto,scep);\n \t\t\t\t\t\t var odivo = filtrardivo(odtto,oep);\n \t\t\t\t\t\t var totaldivo = filtrartotal(labordivo,bbdivo,mdivo,scdivo,odivo);\n\n \t\t\t\t\t\t /// DIVISION ORIENTAL PLAN EN DOLARES\n \t\t\t\t\t\t var labordivodol = filtrardivo(labordttodol,laborepdol);\n \t\t\t\t\t\t var bbdivodol = filtrardivo(bbdttodol,bbepdol);\n \t\t\t\t\t\t var mdivodol = filtrardivo(mdttodol,mepdol);\n \t\t\t\t\t\t var scdivodol = filtrardivo(scdttodol,scepdol);\n \t\t\t\t\t\t var odivodol = filtrardivo(odttodol,oepdol);\n \t\t\t\t\t\t var totaldivodol = filtrartotal(labordivodol,bbdivodol,mdivodol,scdivodol,odivodol);\n\n \t\t\t\t\t\t /// DIVISION ORIENTAL PLAN EN DOLARES EQUIVALENTES\n \t\t\t\t\t\t var labordivoDeqv = filtroequivalente(labordivo,labordivodol);\n \t\t\t\t\t\t var bbdivoDeqv = filtroequivalente(bbdivo,bbdivodol);\n \t\t\t\t\t\t var mdivoDeqv = filtroequivalente(mdivo,mdivodol);\n \t\t\t\t\t\t var scdivoDeqv = filtroequivalente(scdivo,scdivodol);\n \t\t\t\t\t\t var odivoDeqv = filtroequivalente(odivo,odivodol);\n \t\t\t\t\t\t var totaldivoDeqv = filtrartotal(labordivoDeqv,bbdivoDeqv,mdivoDeqv,scdivoDeqv,odivoDeqv);\n\n \t\t\t\t\t\t ////////////////////// FIN PLAN ////////////////////////////////////////////////\n \t\t\t\t\t\t var laborybbdivoDeqv = filtrardivo(labordivoDeqv,bbdivoDeqv);\n\n \t\t\t\t\t\t\n \t\t\t\t\t\tvar\tinformacion = cabeceracategoriaprmva('red-header','ELEMENTO DE COSTO');\n \t\t\t\t\t\t\tinformacion += mostrarcategoriaprmva('','Labor y Beneficios',laborybbdivoDeqv); \n \t\t\t\t\t\t\tinformacion += mostrarcategoriaprmva('','Materiales',mdivoDeqv);\n \t\t\t\t\t\t\tinformacion += mostrarcategoriaprmva('','Servicios y Contratos',scdivoDeqv);\n \t\t\t\t\t\t\tinformacion += mostrarcategoriaprmva('','Otros Costos y Gastos',odivoDeqv);\n \t\t\t\t\t\t\tinformacion += mostrarcategoriaprmva('red-header','Total',totaldivoDeqv); \n \t\t\t\t\treturn informacion;\n\n}", "function BdDescGeneralInmuebleComple(pIdInmConstruccion, pValorUniRepoNuevo, pLosaConcreto,\n pUsuarioOperacion) {\n\n let etiquetaLOG = ruta + '[Usuario: ' + pUsuarioOperacion + '] METODO: BdDescGeneralInmuebleComple ';\n\n try {\n logger.info(etiquetaLOG);\n\n const client = new Pool(configD);\n\n logger.info(etiquetaLOG + 'SELECT * FROM fInmConstrucComplemento (pIdInmConstruccion, pValorUniRepoNuevo, pLosaConcreto, pUsuarioOperacion);');\n let sQuery = `SELECT * FROM fInmConstrucComplemento (${pIdInmConstruccion}, (${pValorUniRepoNuevo}::decimal), (${pLosaConcreto}::char), ${pUsuarioOperacion});`;\n\n logger.info(`${ etiquetaLOG } ${sQuery} `);\n\n return new Promise(function(resolve, reject) {\n client.query(sQuery)\n .then(response => {\n client.end()\n logger.info(etiquetaLOG + 'RESULTADO: ' + JSON.stringify(response.rows));\n resolve(response.rows);\n })\n .catch(err => {\n client.end()\n logger.error(etiquetaLOG + 'ERROR: ' + err + ' CODIGO_BD(' + err.code + ')');\n reject(err.message + ' CODIGO_BD(' + err.code + ')');\n })\n });\n } catch (err) {\n logger.error(`${ ruta } ERROR: ${ err }`);\n throw (`Se presentó un error en BdDescGeneralInmuebleComple: ${err}`);\n }\n}", "function completitud(oa, es){\n var titulo=0; var keyword=0; var descripcion=0; var autor=0;\n var tipoRE=0; var formato=0; var contexto=0; var idioma=0;\n var tipointer=0; var rangoedad=0; var nivelagregacion=0;\n var ubicacion=0; var costo=0; var estado=0; var copyright=0;\n\n // verifica que la variable tenga un valor y asigna el peso a las variables\n if (oa.title!=\"\") {\n titulo=0.15;\n }\n if (oa.keyword!=\"\") {\n keyword=0.14;\n }\n if (oa.description!=\"\") {\n descripcion=0.12;\n }\n if (oa.entity!=\"\") {\n autor=0.11;\n }\n if (oa.learningresourcetype!=\"\") {\n tipoRE=0.09;\n }\n if (oa.format!=\"\") {\n formato=0.08;\n }\n\n \n // hace la comprobacion cuantos contextos existe en el objeto\n var context=oa.context;\n // cuenta cuantas ubicaciones tiene el objeto\n var can=context.length;\n // asigna el nuevo peso que tendra cada contexto\n var pesocontexto=0.06/can;\n // comprueba que los contextos sean diferentes a vacio o a espacio \n for (var w=0; w <can ; w++) { \n if (context[w]!=\"\") {\n // calcula el nuevo peso para entregar para el calculo de la metrica\n contexto=contexto+pesocontexto;\n }\n }\n\n\n\n\n\n if (oa.language!=\"\") {\n idioma=0.05;\n }\n if (oa.interactivitytype!=\"\") {\n tipointer=0.04;\n }\n if (oa.typicalagerange!=\"\") {\n rangoedad=0.03;\n }\n if (oa.aggregationlevel!=\"\") {\n nivelagregacion=0.03;\n }\n // hace la comprobacion cuantas ubicaciones existe en el objeto\n var location=oa.location;\n // cuenta cuantas ubicaciones tiene el objeto\n var can=location.length;\n // asigna el nuevo peso que tendra cada ubicacion\n var peso=0.03/can;\n // comprueba que las ubicaciones sean diferentes a vacio o a espacio \n for (var i=0; i <can ; i++) { \n if (location[i]!=\"\") {\n // calcula el nuevo peso para entregar para el calculo de la metrica\n ubicacion=ubicacion+peso;\n }\n }\n \n\n if (oa.cost!=\"\") {\n costo=0.03;\n }\n if (oa.status!=\"\") {\n estado=0.02;\n }\n if (oa.copyrightandotherrestrictions!=\"\") {\n copyright=0.02;\n }\n\n \n \n // hace la sumatoria de los pesos \n var m_completitud=titulo + keyword + descripcion + autor + tipoRE + formato + contexto + idioma +\n tipointer + rangoedad + nivelagregacion + ubicacion + costo + estado + copyright;\n\n \n //alert(mensaje);\n return m_completitud;\n \n //echo \"* Completitud de: \".m_completitud.\"; \".evaluacion.\"<br>\";\n }", "getResultatCodificat(){ // SI EL MÈTODE NO PASSA ALGUN VALOR, SE LI POSSA this. MÉS EL ATRIBUT CORRESPONENT.\n this.eliminarEspaisBlanc();\n this.senseAccent();\n for (var i = 0; i < this._entrada.length; i++){\n\n // IGUALEM LA LLARGADA DE LA CLAU A LA DE L'ENTRADA\n var y = 0;\n var max_lenght = this._entrada.length;\n while (this._entrada.length != this._clau.length){\n\n this._clau = this._clau + this._clau[y];\n\n if(y >= max_lenght){\n\n y = 0;\n }\n else{\n\n y++;\n }\n }\n\n // BUSQUEM ON ESTAN SITUATS TANT LA LLETRA DE L'ENTRADA COM DE LA CLAU\n var posicio_lletra_entrada = this._alfabet.indexOf(this._entrada[i]);\n var posicio_lletra_clau = this._alfabet.indexOf(this._clau[i]);\n\n // SUMEM LES DUES POSICIONS\n var suma_posicions = posicio_lletra_entrada + posicio_lletra_clau;\n\n // ANEM RESTANT MENTRE QUE EL MOD SIGUI MÉS GRAN QUE EL LENGTH DEL ABECEDARI\n while (suma_posicions >= this._alfabet.length){\n\n suma_posicions = suma_posicions - this._alfabet.length;\n }\n \n // ARA BUSQUEM LA LLETRA AMB LA QUAL SUBSTITUIREM L'ENTRADA\n this._resultat = this._resultat + this._alfabet[suma_posicions];\n }\n\n // RETORNEM EL RESULTAT\n return (document.form.sortida.value = this._resultat);\n }", "function calcoloRisultato(nPc, nUt, sclt) {\n // Inizializzo una variabile che contenga la somma dei due numeri giocati\n var somma = nPc + nUt;\n console.log(\"La somma dei valori é: \" + somma);\n // Calcolo incrociato tra risultato numerico e la scelta del giocatore\n if(somma % 2 != 0 && sclt == pari ){\n console.log(\"Hai perso...\")\n }\n else{\n console.log(\"Hai vinto\")\n }\n\n }", "function principal() {\n choquecuerpo();\n choquepared();\n dibujar();\n movimiento();\n \n if(cabeza.choque (comida)){\n comida.colocar();\n cabeza.meter();\n } \n}", "function operacion(){\r\n if (numeros.segundo === null || numeros.segundo === \"\" || Number.isNaN(numeros.segundo)){ \r\n return raiz(); // Si hay un solo número, llamar a la funcion raiz\r\n } else {\r\n return aritmetica(); // Si hay dos a la función aritmética\r\n }\r\n }", "function zmien_ocene(ruch_t)\n{\n let nr_bierki_p = szachownica.pola[ruch_t.wiersz_p][ruch_t.kolumna_p];\n let nr_bierki_k = szachownica.pola[ruch_t.wiersz_k][ruch_t.kolumna_k];\n\n if(nr_bierki_k !== 0)\n zmien_ocene_usun(ruch_t.wiersz_k, ruch_t.kolumna_k);\n\n szachownica.ocena.tablice += wartosc_tabela(ruch_t.wiersz_k, ruch_t.kolumna_k, nr_bierki_p) - wartosc_tabela(ruch_t.wiersz_p, ruch_t.kolumna_p, nr_bierki_p);\n szachownica.ocena.tablice_koncowka += wartosc_tabela_konc(ruch_t.wiersz_k, ruch_t.kolumna_k, nr_bierki_p) - wartosc_tabela_konc(ruch_t.wiersz_p, ruch_t.kolumna_p, nr_bierki_p);\n}", "function wykonaj_ruch_SI()\n{\n let ruchy = generuj_ruchy(), ruch_t;\n\n // sprawdzanie czy jest mat/pat\n if(ruchy.ruchy.length + ruchy.zbicia.length === 0)\n {\n if(czy_szach(szachownica.biale_ruch))\n {\n // mat, SI przegralo\n napisz_wynik(szachownica.biale_ruch ? 2 : 1);\n }\n else\n {\n // pat, remis\n napisz_wynik(3);\n }\n\n zablokowane = true;\n\n return;\n }\n\n // sprawdzanie pozostalych remisow\n if(szachownica.liczba_polowek_od_r > 100 || poprzednie_pozycje[szachownica.hash] >= 3 || !czy_wystarczajacy_material())\n {\n napisz_wynik(3);\n\n szachownica.biale_ruch = !szachownica.biale_ruch;\n zablokowane = true;\n\n return;\n }\n\n tablica_transp = new Map();\n\n let nr = Math.floor(Math.random() * (ruchy.ruchy.length + ruchy.zbicia.length));\n\n if(nr < ruchy.ruchy.length)\n ruch_t = ruchy.ruchy[nr];\n else\n ruch_t = ruchy.zbicia[nr - ruchy.ruchy.length];\n\n wykonaj_ruch(ruch_t);\n if(szachownica.pola[ruch_t.wiersz_k][ruch_t.kolumna_k] === 6 && ruch_t.wiersz_k === 7)\n {\n // promocja biale\n promuj_piona(ruch_t.wiersz_k, ruch_t.kolumna_k, Math.floor(Math.random() * 4) + 2);\n }\n else if(szachownica.pola[ruch_t.wiersz_k][ruch_t.kolumna_k] === 12 && ruch_t.wiersz_k === 0)\n {\n // promocja czarne\n promuj_piona(ruch_t.wiersz_k, ruch_t.kolumna_k, Math.floor(Math.random() * 4) + 8);\n }\n\n narysuj();\n}", "function copiafyv(principal, copia) {\n try {\n /*Analizo primero el root principal */\n principal.lista_Nodo.forEach(function (element) {\n if (element.tipo == \"Clase\") {\n MYFPrincipal = [];\n MYFfCopia = [];\n /*por cada calse encontrada, la busco en el otro arbol*/\n copia.lista_Nodo.forEach(function (element2) {\n if (element2.tipo == \"Clase\") {\n /*Por cada clase que encuentro en el otro root compruebo si son los mismos*/\n if (element.descripcion == element2.descripcion) {\n /*recorro para encontrar los metodos y funciones de la clase principal*/\n element.lista_Nodo.forEach(function (element3) {\n if (element3.tipo == \"Funcion\") {\n MYFPrincipal.push(element3.descripcion);\n /*encontramos si tiene parametros la funcion*/\n element3.lista_Nodo.forEach(function (parametrosMF) {\n if (parametrosMF.tipo == \"Parametros\") {\n var parametroslst = returnLst(parametrosMF.lista_Nodo);\n element2.lista_Nodo.forEach(function (fmCopia) {\n if (fmCopia.tipo == \"Funcion\" && element3.tipodato == fmCopia.tipodato) {\n fmCopia.lista_Nodo.forEach(function (paramCopia) {\n if (paramCopia.tipo == \"Parametros\") {\n var parametroslstCopia = returnLst(paramCopia.lista_Nodo);\n if (parametroslst.toString() == parametroslstCopia.toString()) {\n console.log(\"las funciones \" + element3.descripcion + \" Son iguales en ambos archivos,por tener los mismos tipos de parametros en el mismo orden\" + \" de la calse \" + element.descripcion);\n MYFfCopia_Clase.push(element.descripcion);\n MYFfCopia.push(element3.descripcion);\n }\n }\n });\n }\n });\n }\n });\n }\n else if (element3.tipo == \"Metodo\") {\n MYFPrincipal.push(element3.descripcion);\n /*encontramos si tiene parametros la funcion*/\n element3.lista_Nodo.forEach(function (parametrosF) {\n if (parametrosF.tipo == \"Parametros\") {\n var parametroslstM = returnLst(parametrosF.lista_Nodo);\n element2.lista_Nodo.forEach(function (mCopia) {\n if (mCopia.tipo == \"Metodo\" && element3.descripcion == mCopia.descripcion) {\n mCopia.lista_Nodo.forEach(function (paramCopiaM) {\n if (paramCopiaM.tipo == \"Parametros\") {\n var parametroslstCopiaM = returnLst(paramCopiaM.lista_Nodo);\n if (parametroslstM.toString() == parametroslstCopiaM.toString()) {\n console.log(\"los metodos \" + element3.descripcion + \" Son iguales en ambos archivos,por tener los mismos tipos de parametros en el mismo orden\" + \" de la calse \" + element.descripcion);\n MYFfCopia.push(element3.descripcion);\n MYFfCopia.push(element3.descripcion);\n }\n }\n });\n }\n });\n }\n });\n }\n });\n if (MYFPrincipal.toString() == MYFfCopia.toString()) {\n console.log(\"las clases \" + element.descripcion + \" Son iguales en ambos archivos\");\n }\n }\n }\n });\n }\n });\n }\n catch (error) {\n }\n}", "function prepararejercicio(){\n resetearimagenejercicio();\n brillo = 0;\n contraste = 0;\n saturacion = 0;\n exposicion = 0;\n ruido = 0;\n difuminacion = 0; \n elegido = prepararejerciciorandom();\n Caman(\"#canvasejercicio\", imgejercicio , function () {\n this.brightness(elegido[0]);\n this.contrast(elegido[1]);\n this.saturation(elegido[2]); \n this.exposure(elegido[3]);\n this.noise(elegido[4]);\n this.stackBlur(elegido[5]); \n this.render();\n });\n}", "function principal(){\n\n borraCanvas();\n\n console.log(ratonX + ' - ' + ratonY);\n\n for(i=0; i<numParticulas;i++){\n particulas[i].actualiza();\n }\n\n}", "function semicerchioR (r,scala) {\n var funzione = function (p) { \n var u = p[0] * PI/2;\n var x = r * SIN(u);\n var y = 0;\n var z = r * COS(u);\n \n return ruotaPunti([x,y,z*scala]);\n };\n\n return funzione;\n}", "function pulaCorda() {\n console.log('Pulei 1x com function')\n console.log('Pulei 2x com function')\n console.log('Pulei 3x com function')\n console.log('Pulei 4x com function')\n console.log('Pulei 5x com function')\n console.log('Pulei 6x com function')\n console.log('Pulei 7x com function')\n console.log('Pulei 8x com function')\n console.log('Pulei 9x com function')\n console.log('Pulei 10x com function')\n}", "function crepuscolo_NA(njd,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo civile per il T.U. di Greenwich\n // aggiornata al 03/12/2011.\n // by Salvatore Ruiu - Irgoli (Italy).\n // IL Sole si trova a -12 gradi sotto l'orizzonte locale. 90+12 .\n \n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1]; // declinazione del Sole.\n\n var LATr=Rad(latitudine); // angolo in radianti.\n var DEr=Rad(DEs); // angolo in radianti.\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr)); // angolo orario\n\n var H1=Math.acos((Math.cos(Rad(102))-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n var H= Rda(H); // angolo da radiante a sessadecimale.\n var H1=Rda(H1); // angolo da radiante a sessadecimale. \n\n var T=((H1-H)/15)*0.9973;\n\n var p_sole=ST_SOLE(njd,longitudine,latitudine,altitudine);\n\n var crep_m=ore_24(p_sole[2]-T); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T); // crepuscolo serale.\n\n var tempi_crep= new Array(crep_m,crep_s);\n\n return tempi_crep;\n \n}", "function prepararejerciciorandom() {\n brillo = 0;\n contraste = 0;\n saturacion = 0;\n exposicion = 0;\n ruido = 0;\n difuminacion = 0; \n var elegido = [];\n var valores = [-40,-30,-20,-10,10,20,30,40];\n var valoresespeciales = [0,0,0,0,0,10,0,0,0,0,0];\n brilloejercicio = valores[Math.floor(Math.random()*(valores.length))];\n contrasteejercicio = valores[Math.floor(Math.random()*(valores.length))];\n saturacionejercicio = valores[Math.floor(Math.random()*(valores.length))];\n exposicionejercicio = valores[Math.floor(Math.random()*(valores.length))];\n ruidoejercicio = valoresespeciales[Math.floor(Math.random()*(valores.length))];\n difuminacionejercicio = valoresespeciales[Math.floor(Math.random()*(valores.length))];\n Caman(\"#canvasejercicio\", imgejercicio , function () {\n this.brightness(brilloejercicio);\n this.contrast(contrasteejercicio);\n this.saturation(saturacionejercicio); \n this.exposure(exposicionejercicio);\n this.noise(ruidoejercicio);\n this.stackBlur(difuminacionejercicio); \n this.render();\n });\n elegido = [brilloejercicio,contrasteejercicio,saturacionejercicio,exposicionejercicio,ruidoejercicio,difuminacionejercicio]\n return elegido;\n}", "function ResultadoInteresCompuestoConCap(C, i, r, n) {\n var x = (i / r); \n var y = (1 + x);\n var z = (C * y);\n var w = (n * r);\n var resultado = Math.pow(z, w); \n return resultado;\n}", "function cruzamiento(poblacion,seleccion,ciudades,elite)\n\t\t\t{\n\t\t\t\tvar numPobla = poblacion.length;\n\t\t\t\tvar indice1,indice2;\n\t\t\t\tvar k = 0;\n\t\t\t\tvar new_poblation = new Array();\n\t\t\t\t/*Genero nueva poblacion*/\n\t\t\t\twhile(k < parseInt(numPobla / 2))\n\t\t\t\t{\n\t\t\t\t\t//Escogo el metodo de seleccion para tener dos PADRES\n\t\t\t\t\tswitch(seleccion)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Torneo\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\tindice1 = torneo(poblacion,elite);\n\t\t\t\t\t\t\t\tindice2 = torneo(poblacion,elite);\n\t\t\t\t\t\t\t}while(indice1 == indice2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//Ranking\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t//Aleatorio\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\tindice1 = parseInt( Math.random() * numPobla*elite);\n\t\t\t\t\t\t\t\tindice2 = parseInt( Math.random() * numPobla*elite);\n\t\t\t\t\t\t\t}while(indice1 == indice2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//console.log(indice1);\n\t\t\t\t\t//console.log(indice2);\n\t\t\t\t\t/*Padres*/\n\t\t\t\t\tvar dad = poblacion[indice1].recorrido; \n\t\t\t\t\tvar mom = poblacion[indice2].recorrido;\n\t\t\t\t\t/*Camino para Hijos*/\n\t\t\t\t\tvar camino1 = new Array();\n\t\t\t\t\tvar camino2 = new Array();\n\t\t\t\t\t/*Numero entre 0 y numero de ciudades menos 1*/\n\t\t\t\t\tbp = parseInt( Math.random() * ciudades ); /*Punto de roptura*/\n\n\t\t\t\t/*-----------Genero 2 nuevos caminos-----------*/\n\t\t\t\t\t//Respaldo caminos de papa y mama hasta bp\n\t\t\t\t\tfor(var i = 0; i < bp; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tcamino1.push(dad[i]);\n\t\t\t\t\t\tcamino2.push(mom[i]);\n\t\t\t\t\t}\n\t\t\t\t\tfor(var i = 0; i < ciudades; i++)\n\t\t\t\t\t{\t\n\t\t\t\t\t\t//Tomo el elemento a buscar en el segundo vector\n\t\t\t\t\t\tvar busca1 = mom[i];\n\t\t\t\t\t\tvar busca2 = dad[i];\n\t\t\t\t\t\tfor(var j = bp; j < ciudades; j++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(busca1 == dad[j])\n\t\t\t\t\t\t\t\tcamino1.push(busca1);\n\t\t\t\t\t\t\tif(busca2 == mom[j])\n\t\t\t\t\t\t\t\tcamino2.push(busca2); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*Hijos generados*/\n\t\t\t\t\tvar hijo1 = {recorrido: camino1, distancia: aptitud(camino1,region)}\n\t\t\t\t\tvar hijo2 = {recorrido: camino2,distancia : aptitud(camino2,region)}\n\n\t\t\t\t\tnew_poblation.push(hijo1);\n\t\t\t\t\tnew_poblation.push(hijo2);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t\treturn new_poblation;\n\t\t\t}", "function anularCurso(codigoAsig){\n //alert(\"JARM\");\n for(var i=0;i<codigoAsignatura.length;i++){\n if (codigoAsignatura[i]==codigoAsig) {\n //cursoEstado(codigoAsig,false);\n matriculableAsignatura[i]=true;\n selecAsignatura[i]=false;\n turnoAsignatura[i]=\"0\";\n qui_cupo(i);\n for (var j=0;j<codigoAsignatura.length;j++){\n if(parseInt(ciclosSeleccionados[j])==parseInt(nivelAsignatura[i])){\n ciclosSeleccionados_creditos[j]=parseInt(ciclosSeleccionados_creditos[j])-parseInt(creditosAsignatura[i]);\n if (parseInt(ciclosSeleccionados_creditos[j])==0) {\n ciclosSeleccionados.splice(j,1);\n ciclosSeleccionados_creditos.splice(j,1);\n \n }\n }\n \n }\n \n \n }\n }\n imprimirCursosSelectos();\n listarAsignaturasPorNivel();\n }", "function rc(){}", "calculRebond(hauteur){\n\t\t//rebond sur les bords du plateau\n\t\tif (hauteur){\n\t\t\tthis.angle = 2*Math.PI - this.angle;\n\t\t\tthis.compteur += 1;\n\t\t\tif (compteur == 5 ){\n\t\t\t\tcompteur = 0;\n\t\t\t\tif(this.vitesse <= this.vitesseMax){\n\t\t\t\t\tthis.vitesse = this.vitesse * 1.2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//rebond sur une raquette\n\t\telse {\n\t\t\t//augmentation de la vitesse pour plus de difficultee\n\t\t\tthis.angle = Math.PI - this.angle;\n\t\t\tif(this.vitesse <= this.vitesseMax){\n\t\t\t\tthis.vitesse = this.vitesse * 1.2;\n\t\t\t}\n\t\t}\n\t}", "recorrerArbolConsulta(nodo) {\n //NODO INICIO \n if (this.tipoNodo('INICIO', nodo)) {\n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n //NODO L, ES LA LISTA DE CONSULTAS \n if (this.tipoNodo('L', nodo)) {\n //SE RECORREN TODOS LOS NODOS QUE REPRESENTAN UNA CONSULTA \n for (var i = 0; i < nodo.hijos.length; i++) {\n this.recorrerArbolConsulta(nodo.hijos[i]);\n this.reiniciar();\n // this.codigoTemporal += \"xxxxxxxxxxxxxxxxxxxx-\"+this.contadorConsola+\".\"+\"\\n\";\n }\n }\n //PARA RECORRER TODOS LOS ELEMENTOS QUE COMPONEN LA CONSULTA \n if (this.tipoNodo('CONSULTA', nodo)) {\n for (var i = 0; i < nodo.hijos.length; i++) {\n this.pathCompleto = false;\n this.controladorAtributoImpresion = false;\n this.controladorDobleSimple = false;\n this.controladorPredicado = false;\n this.recorrerArbolConsulta(nodo.hijos[i]);\n }\n }\n //PARA RECORRER TODOS LOS ELEMENTOS QUE COMPONEN LA CONSULTA \n if (this.tipoNodo('VAL', nodo)) {\n for (var i = 0; i < nodo.hijos.length; i++) {\n this.pathCompleto = false;\n this.controladorAtributoImpresion = false;\n this.controladorDobleSimple = false;\n this.controladorPredicado = false;\n this.recorrerArbolConsulta(nodo.hijos[i]);\n }\n }\n //PARA VERIFICAR EL TIPO DE ACCESO, EN ESTE CASO // \n if (this.tipoNodo('DOBLE', nodo)) {\n this.controladorDobleSimple = true;\n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n //PARA VERIFICAR EL TIPO DE ACCESO, EN ESTE CASO: /\n if (this.tipoNodo('SIMPLE', nodo)) {\n //Establecemos que se tiene un acceso de tipo DOBLE BARRA \n this.controladorDobleSimple = false;\n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n //PARA VERIFICAR SI EL ELEMENTO A BUSCAR ES UN IDENTIFICADOR \n if (this.tipoNodo('identificador', nodo)) {\n const str = nodo.hijos[0];\n this.busquedaElemento(str);\n }\n //PARA VERIFICAR SI LO QUE SE VA A ANALIZAR ES UN PREDICADO \n if (this.tipoNodo('PREDICADO', nodo)) {\n this.controladorPredicado = true;\n const identificadorPredicado = nodo.hijos[0];\n //Primero se procede a la búsqueda del predicado\n this.codigoTemporal += \"//Inicio ejecucion predicado\\n\";\n this.busquedaElemento(identificadorPredicado);\n //Seguidamente se resuelve la expresión\n let resultadoExpresion = this.resolverExpresion(nodo.hijos[1]);\n let anteriorPredicado = this.temporalGlobal.retornarString();\n this.temporalGlobal.aumentar();\n this.codigoTemporal += this.temporalGlobal.retornarString() + \"=\" + anteriorPredicado + \";\\n\";\n let predicadoVariable = this.temporalGlobal.retornarString();\n this.codigoTemporal += \"PXP = \" + predicadoVariable + \";\\n\";\n this.codigoTemporal += \"ubicarPredicado();\\n\";\n //SI EL RESULTADO ES DE TIPO ETIQUETA\n if (resultadoExpresion.tipo == 4) {\n let datos = resultadoExpresion.valor;\n let a = datos[0];\n let b = datos[1];\n let c = datos[2];\n let limite = this.consolaSalidaXPATH.length;\n for (var i = this.contadorConsola; i < limite; i++) {\n // salidaXPATH.getInstance().push(this.consolaSalidaXPATH[i].dameID());\n this.auxiliarPredicado(a, b, c, this.consolaSalidaXPATH[i]);\n }\n }\n //SI EL RESULTADO ES DE TIPO ETIQUETA\n if (resultadoExpresion.tipo == 1) {\n this.consolaSalidaXPATH.push(this.consolaSalidaXPATH[(this.contadorConsola + resultadoExpresion.valor) - 1]);\n this.contadorConsola = this.consolaSalidaXPATH.length - 1;\n }\n this.controladorPredicadoInicio = false;\n }\n //PARA VERIFICAR QUE ES UN PREDICADO DE UN ATRIBUTO\n if (this.tipoNodo('PREDICADO_A', nodo)) {\n //return this.recorrer(nodo.hijos[0]);\n const identificadorPredicadoAtributo = nodo.hijos[0];\n //RECORREMOS LO QUE VA DENTRO DE LLAVES PARA OBTENER EL VALOR\n //AQUI VA EL METODO RESOLVER EXPRESION DE SEBAS PUTO \n return this.recorrerArbolConsulta(nodo.hijos[1]);\n }\n //PARA VERIFICAR SI EL ELEMENTO A BUSCAR ES UN ATRIBUTO \n if (this.tipoNodo('atributo', nodo)) {\n this.controladorAtributoImpresion = true;\n const identificadorAtributo = nodo.hijos[0];\n if (this.inicioRaiz) {\n let limite = this.consolaSalidaXPATH.length;\n for (var i = this.contadorConsola; i < limite; i++) {\n let x = this.consolaSalidaXPATH[i];\n //let nodoBuscarAtributo = this.consolaSalidaXPATH[this.consolaSalidaXPATH.length - 1];\n let nodoBuscarAtributo = x;\n //CODIGO DE 3 DIRECCIONES \n this.codigoTemporal += \"P=\" + nodoBuscarAtributo.posicion + \";\\n\";\n let inicioRaizXML = this.temporalGlobal.retornarString();\n this.temporalGlobal.aumentar();\n //Ubicamos nuestra variabel a buscar en el principio del heap \n this.codigoTemporal += this.temporalGlobal.retornarString() + \"=HXP;\\n\";\n //Escribimos dentro del heap de XPATH el nombre del identificador a buscar \n for (var z = 0; z < identificadorAtributo.length; z++) {\n this.codigoTemporal += `heapXPATH[(int)HXP] = ${identificadorAtributo.charCodeAt(z)};\\n`;\n this.codigoTemporal += `HXP = HXP+1;\\n`;\n }\n this.codigoTemporal += `heapXPATH[(int)HXP] =-1;\\n`;\n this.codigoTemporal += `HXP = HXP+1;\\n`;\n let anteriorGlobal = this.temporalGlobal.retornarString();\n this.codigoTemporal += \"stackXPATH[(int)PXP]=\" + anteriorGlobal + \";\\n\";\n this.temporalGlobal.aumentar();\n this.codigoTemporal += \"busquedaAtributo();\\n\";\n //CODIGO DE 3 DIRECCIONES \n //Se procede a la búsqueda de los atributos en todos los nodos\n for (let entry of nodoBuscarAtributo.atributos) {\n let atributoTemporal = entry;\n let nombreAbributo = atributoTemporal.dameNombre();\n if (nombreAbributo == identificadorAtributo) {\n this.atributoID = identificadorAtributo;\n this.pathCompleto = true;\n // this.contadorConsola = i;\n // this.consolaSalidaXPATH.push(nodoBuscarAtributo);\n }\n }\n /*for (let entry of nodoBuscarAtributo.hijos) {\n this.busquedaAtributo(entry, identificadorAtributo);\n }*/\n if (this.controladorDobleSimple) {\n this.busquedaAtributo(x, identificadorAtributo);\n }\n }\n }\n else {\n this.inicioRaiz = true;\n for (let entry of this.ArrayEtiquetas) {\n let temp = entry;\n //CODIGO DE 3 DIRECCIONES \n this.codigoTemporal += \"P=\" + temp.posicion + \";\\n\";\n let inicioRaizXML = this.temporalGlobal.retornarString();\n this.temporalGlobal.aumentar();\n //Ubicamos nuestra variabel a buscar en el principio del heap \n this.codigoTemporal += this.temporalGlobal.retornarString() + \"=HXP;\\n\";\n //Escribimos dentro del heap de XPATH el nombre del identificador a buscar \n for (var z = 0; z < identificadorAtributo.length; z++) {\n this.codigoTemporal += `heapXPATH[(int)HXP] = ${identificadorAtributo.charCodeAt(z)};\\n`;\n this.codigoTemporal += `HXP = HXP+1;\\n`;\n }\n this.codigoTemporal += `heapXPATH[(int)HXP] =-1;\\n`;\n this.codigoTemporal += `HXP = HXP+1;\\n`;\n let anteriorGlobal = this.temporalGlobal.retornarString();\n this.codigoTemporal += \"stackXPATH[(int)PXP]=\" + anteriorGlobal + \";\\n\";\n this.temporalGlobal.aumentar();\n this.codigoTemporal += \"busquedaAtributo();\\n\";\n //CODIGO DE 3 DIRECCIONES \n for (let entry2 of temp.atributos) {\n let aTemp = entry2;\n let nameAtt = aTemp.dameNombre();\n if (nameAtt == identificadorAtributo) {\n this.atributoID = identificadorAtributo;\n this.pathCompleto = true;\n }\n }\n if (this.controladorDobleSimple) {\n this.busquedaAtributo(entry, identificadorAtributo);\n }\n }\n }\n }\n //PARA VERIFICAR SI EL ELEMENTO A BUSCAR ES CUALQUIER ELEMENTO \n if (this.tipoNodo('any', nodo)) {\n //SIGNIFICA ACCESO DOBLE\n if (this.controladorDobleSimple) {\n let controladorNuevoInicio = -1;\n let limite = this.consolaSalidaXPATH.length;\n for (var i = this.contadorConsola; i < limite; i++) {\n let temporal = this.consolaSalidaXPATH[i];\n for (let entry of temporal.hijos) {\n //insertamos TODOS los hijos\n this.codigoTemporal += \"P =\" + entry.posicion + \";\\n\";\n this.codigoTemporal += \"imprimirContenido();\\n\";\n this.consolaSalidaXPATH.push(entry);\n if (controladorNuevoInicio == -1)\n controladorNuevoInicio = this.consolaSalidaXPATH.length - 1;\n this.complementoAnyElement(entry);\n }\n }\n this.contadorConsola = controladorNuevoInicio;\n this.pathCompleto = true;\n }\n //SIGNIFICA ACCESO SIMPLE \n else {\n //Controlamos el nuevo acceso para cuando coloquemos un nuevo elemento en la lista \n let controladorNuevoInicio = -1;\n let limite = this.consolaSalidaXPATH.length;\n for (var i = this.contadorConsola; i < limite; i++) {\n let temporal = this.consolaSalidaXPATH[i];\n for (let entry of temporal.hijos) {\n //insertamos TODOS los hijos\n this.consolaSalidaXPATH.push(entry);\n if (controladorNuevoInicio == -1)\n controladorNuevoInicio = this.consolaSalidaXPATH.length - 1;\n }\n }\n this.contadorConsola = controladorNuevoInicio;\n this.pathCompleto = true;\n }\n }\n //PARA VERIFICAR SI EL ELEMENTO A BUSCAR ES UNA PALABRA RESERVADA que simplicaria un AXE \n if (this.tipoNodo('reservada', nodo)) {\n //return this.recorrer(nodo.hijos[0]);\n const identificador = nodo.hijos[0];\n this.auxiliarAxe = identificador;\n //VERIFICAMOS EL TIPO DE ACCESO DE AXE \n if (this.controladorDobleSimple)\n this.dobleSimpleAxe = true;\n }\n if (this.tipoNodo('AXE', nodo)) {\n //return this.recorrer(nodo.hijos[0]);\n if (this.dobleSimpleAxe)\n this.controladorDobleSimple = true;\n this.temporalGlobal.aumentar();\n //Ubicamos nuestra variabel a buscar en el principio del heap \n this.codigoTemporal += this.temporalGlobal.retornarString() + \"=HXP;\\n\";\n //Escribimos dentro del heap de XPATH el nombre del identificador a buscar \n for (var i = 0; i < this.auxiliarAxe.length; i++) {\n this.codigoTemporal += `heapXPATH[(int)HXP] = ${this.auxiliarAxe.charCodeAt(i)};\\n`;\n this.codigoTemporal += `HXP = HXP+1;\\n`;\n }\n this.codigoTemporal += `heapXPATH[(int)HXP] =-1;\\n`;\n this.codigoTemporal += `HXP = HXP+1;\\n`;\n this.codigoTemporal += \"PXP =\" + this.temporalGlobal.retornarString() + \";\\n\";\n this.codigoTemporal += \"ejecutarAxe();\\n\";\n //Si Solicita implementar el axe child\n if (this.auxiliarAxe == \"child\") {\n //ESCRIBIMOS LOS IFS RESPECTIVOS \n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n //Si necesitsa implementar el axe attribute\n if (this.auxiliarAxe == \"attribute\") {\n //Le cambiamos la etiqueta de identificador a atributo para fines de optimizacion de codigo\n nodo.hijos[0].label = \"atributo\";\n //Escribimos el codigo en C3D para la ejecución del axe atributo \n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n //Si necesitsa implementar el ancestor\n if (this.auxiliarAxe == \"ancestor\") {\n //Va a resolver el predicado o identificador que pudiese venir \n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n if (this.auxiliarAxe == \"descendant\") {\n this.controladorDobleSimple = true;\n this.recorrerArbolConsulta(nodo.hijos[0]);\n }\n //Reiniciamos la variable cuando ya se acabe el axe\n this.auxiliarAxe = \"\";\n }\n //PARA VERIFICAR SI EL ELEMENTO A BUSCAR ES UN ATRIBUTO \n if (this.tipoNodo('X', nodo)) {\n //return this.recorrer(nodo.hijos[0]);\n //const identificadorAtributo = nodo.hijos[0] as string;\n this.controladorDobleSimple = true;\n this.recorrerArbolConsulta(nodo.hijos[0]);\n /*\n EN ESTA PARTE SE VA A PROCEDER PARA IR A BUSCAR EL ELEMENTO SEGÚN TIPO DE ACCESO\n */\n }\n //PARA VERIFICAR SI SE NECESITAN TODOS LOS ATRIBUTOS DEL NODO ACTUAL \n if (this.tipoNodo('any_att', nodo)) {\n this.controladorText = true;\n const identificadorAtributo = nodo.hijos[0];\n //Verificamos el tipo de acceso\n //Significa acceso con prioridad\n if (this.controladorDobleSimple) {\n //VERIFICAMOS DESDE DONDE INICIAMOS\n if (!this.inicioRaiz) {\n this.inicioRaiz = true;\n for (let entry of this.ArrayEtiquetas) {\n this.codigoTemporal += \"P =\" + entry.posicion + \";\\n\";\n this.codigoTemporal += \"imprimirAtributoAny();\\n\";\n for (let att of entry.atributos) {\n // salidaXPATH.getInstance().push(att.dameNombre()+\"=\"+att.dameValor());\n }\n this.complementoAnnyAtributte(entry);\n }\n }\n else {\n let limite = this.consolaSalidaXPATH.length;\n for (var i = this.contadorConsola; i < limite; i++) {\n let entry = this.consolaSalidaXPATH[i];\n this.codigoTemporal += \"P =\" + entry.posicion + \";\\n\";\n this.codigoTemporal += \"imprimirAtributoAny();\\n\";\n for (let att of entry.atributos) {\n // salidaXPATH.getInstance().push(att.dameNombre()+\"=\"+att.dameValor());\n }\n this.complementoAnnyAtributte(entry);\n }\n }\n }\n //Acceso sin prioridad\n else {\n if (!this.inicioRaiz) {\n for (let entry of this.ArrayEtiquetas) {\n this.codigoTemporal += \"P =\" + entry.posicion + \";\\n\";\n this.codigoTemporal += \"imprimirAtributoAny();\\n\";\n for (let att of entry.atributos) {\n // salidaXPATH.getInstance().push(att.dameNombre()+\"=\"+att.dameValor());\n }\n }\n }\n else {\n let limite = this.consolaSalidaXPATH.length;\n for (var i = this.contadorConsola; i < limite; i++) {\n let entry = this.consolaSalidaXPATH[i];\n this.codigoTemporal += \"P =\" + entry.posicion + \";\\n\";\n this.codigoTemporal += \"imprimirAtributoAny();\\n\";\n for (let att of entry.atributos) {\n // salidaXPATH.getInstance().push(att.dameNombre()+\"=\"+att.dameValor());\n }\n }\n }\n }\n } //FIN ANNY ATT\n //PARA VERIFICAR SI SE ESTÁ INVOCANDO A LA FUNCIÓN TEXT() \n if (this.tipoNodo('text', nodo)) {\n this.controladorText = true;\n const identificadorAtributo = nodo.hijos[0];\n //Si se necesita el texto de el actual y los descendientes\n if (this.controladorDobleSimple) {\n for (var i = this.contadorConsola; i < this.consolaSalidaXPATH.length; i++) {\n /*if (this.consolaSalidaXPATH[i].dameValor() == \"\" || this.consolaSalidaXPATH[i].dameValor() == \" \") {\n \n } else {\n // salidaXPATH.getInstance().push(this.consolaSalidaXPATH[i].dameValor());\n }*/\n this.codigoTemporal += \"P=\" + this.consolaSalidaXPATH[i].posicion + \";\\n\";\n this.codigoTemporal += \"text();\\n\";\n this.complementoText(this.consolaSalidaXPATH[i]);\n }\n }\n else {\n //si necesita solo el texto del actual \n for (var i = this.contadorConsola; i < this.consolaSalidaXPATH.length; i++) {\n /* if (this.consolaSalidaXPATH[i].dameValor() == \"\" || this.consolaSalidaXPATH[i].dameValor() == \" \") {\n \n } else {\n //salidaXPATH.getInstance().push(this.consolaSalidaXPATH[i].dameValor());\n }*/\n this.codigoTemporal += \"P=\" + this.consolaSalidaXPATH[i].posicion + \";\\n\";\n this.codigoTemporal += \"text();\\n\";\n }\n }\n }\n //PARA VERIFICAR SI ES EL TIPO DE ACCESO AL PADRE: \":\" \n if (this.tipoNodo('puntos', nodo)) {\n const cantidad = nodo.hijos[0];\n //DOSPUNTOSSSSSSSSS\n if (cantidad.length == 2) {\n this.pathCompleto = true;\n if (this.auxiliarArrayPosicionPadres == -1) {\n this.auxiliarArrayPosicionPadres = this.arrayPosicionPadres.length - 1;\n }\n for (var i = this.auxiliarArrayPosicionPadres; i >= 0; i--) {\n let contadorHermanos = this.arrayPosicionPadres[i];\n let controladorInicio = 0;\n if (i > 0) {\n while (contadorHermanos != this.arrayPosicionPadres[i - 1]) {\n this.consolaSalidaXPATH.push(this.consolaSalidaXPATH[contadorHermanos]);\n this.codigoTemporal += \"P =\" + this.consolaSalidaXPATH[contadorHermanos].posicion + \";\\n\";\n if (controladorInicio == 0) {\n this.contadorConsola = this.consolaSalidaXPATH.length - 1;\n }\n controladorInicio++;\n contadorHermanos--;\n this.auxiliarArrayPosicionPadres = contadorHermanos;\n }\n }\n else {\n while (contadorHermanos >= 0) {\n this.consolaSalidaXPATH.push(this.consolaSalidaXPATH[contadorHermanos]);\n this.codigoTemporal += \"P =\" + this.consolaSalidaXPATH[contadorHermanos].posicion + \";\\n\";\n if (controladorInicio == 0) {\n this.contadorConsola = this.consolaSalidaXPATH.length - 1;\n }\n controladorInicio++;\n contadorHermanos--;\n this.auxiliarArrayPosicionPadres = contadorHermanos;\n }\n }\n break;\n }\n this.codigoTemporal += \"busquedaSimple();\\n\";\n }\n //SIGNIFICA QUE TIENE SOLO UN PUNTO \n else {\n this.pathCompleto = true;\n }\n ///DOS PUNTOOOOOOOOOOOOOOOOS\n }\n }", "function mostrarDatosCompra() {\n //Tomo los datos que pasé en la funcion navegar\n const unaCompra = this.data;\n if (unaCompra) {\n const idProd = unaCompra.idProducto;\n const productoComprado = obtenerProductoPorID(idProd);\n const subTotal = unaCompra.cantidad * productoComprado.precio;\n //Escribo el mensaje a mostrar\n const mensaje = `Producto <strong>${productoComprado.nombre}</strong>.\n <br> Cantidad comprada: <strong>${unaCompra.cantidad}</strong>.<br>\n Sub Total: <strong> $${subTotal}</strong>`;\n //Muestro el mensaje\n $(\"#pDetalleCompraMensaje\").html(mensaje);\n } else {\n ons.notification.alert(\"Ocurrió un error, por favor contacte al administrador\", { title: 'Oops!' });\n }\n}", "function ricercaCespite(){\n \tvar oggettoPerChiamataAjax = unqualify(this.$fieldset.serializeObject());\n this.$alertErrori.slideUp();\n this.$divRisultati.slideUp();\n this.$spinnerRicerca.addClass('activated');\n selectedDatas = {};\n this.$pulsanteSelezionaTutto.removeProp('checked');\n \n return $.postJSON('ricercaCespite_effettuaRicercaModale.do', oggettoPerChiamataAjax)\n .then(this.ricercaCespiteCallback.bind(this))\n .always(this.$spinnerRicerca.removeClass.bind(this.$spinnerRicerca, 'activated'));\n }", "getBuscaProfundidade(verticeEscolhido) {\n\t\tif(this.trep == 1) {\n\t\t\tlet lista = this.getRepresentacao()\n\t\t\tlet quantVertice = this.getQNos()\n\t\t\tlet principal = verticeEscolhido\n\t\t\tlet backtracking = [];\n\t\t\tlet buscaProf = [];\n\t\t\tlet arrayVertices = [];\n\t\t\tlet tempo = 0;\n\n\t\t //Criação de uma lista de array contendo todos os vertices diferentes do\n\t\t //vertice escolhido pelo usuário\n\t\t for(let i = 0; i < quantVertice; i++) {\n\t\t \tif(verticeEscolhido != i) arrayVertices.push(i);\n\t\t }\n\t\t /*Estrutura auxiliar de array bidimensional contendo na primeira posição da\n\t\t segunda dimensão um objeto tendo cor, tempo da primeira passagem,\n\t\t tempo da segunda passagem e antecessor. Na segunda posição da mesma dimensão a grafo*/\n\t\t for(let i = 0; i < quantVertice; i++){\n\t\t \tbuscaProf[i] = {\n\t\t \t\tcor: \"branco\",\n\t\t \t\ttempoInicial: \"indef\",\n\t\t \t\ttempoFinal: \"indef\",\n\t\t \t\tantecessor: \"indef\",\n\t\t \t\tadj: lista[i]\n\t\t \t}\n\t\t }\n while(arrayVertices.length > 0){\n\n\t\t \tif(buscaProf[verticeEscolhido].cor == \"branco\"){\n\n\t\t \t\tbuscaProf[verticeEscolhido].cor = \"cinza\"\n\t\t \t\tbuscaProf[verticeEscolhido].tempoInicial = ++tempo\n\t\t \t\tbuscaProf[verticeEscolhido].antecessor = null\n\n\t\t \t\tbacktracking.push(verticeEscolhido);\n\n\t\t \t\tvar verticeSecundario\n\n\t\t \t\twhile(backtracking.length > 0){\n\n\t\t \t\t\tif(buscaProf[verticeEscolhido].adj.length > 0){\n\n\t\t \t\t\t\tverticeSecundario = buscaProf[verticeEscolhido].adj.shift().vertice;\n\n\t\t \t\t\t\tif(buscaProf[verticeSecundario].cor == \"branco\"){\n\n\t\t \t\t\t\t\tbuscaProf[verticeSecundario].cor = \"cinza\"\n\t\t \t\t\t\t\tbuscaProf[verticeSecundario].tempoInicial = ++tempo\n\t\t \t\t\t\t\tbuscaProf[verticeSecundario].antecessor = verticeEscolhido\n\t\t \t\t\t\t\tbacktracking.push(verticeEscolhido)\n\t\t \t\t\t\t\tverticeEscolhido = verticeSecundario\n\t\t \t\t\t\t}\n\n\n\t\t \t\t\t}\n\t\t \t\t\telse{\n\t\t \t\t\t\tbuscaProf[verticeEscolhido].cor = \"preto\"\n\t\t \t\t\t\tbuscaProf[verticeEscolhido].tempoFinal = ++tempo\n\t\t \t\t\t\tverticeEscolhido = backtracking.pop()\n\n\t\t \t\t\t}\n\t\t \t\t}\n\n\t\t \t}\n\t\t \tverticeEscolhido = arrayVertices.shift();\n\t\t }\n\n\t\t buscaProf[principal].antecessor = null\n\n\t\t return buscaProf;\n\t\t}\n\t\telse {\n\t\t\tlet matriz = this.getRepresentacao()\n\t\t\tlet quantVertice = this.getQNos()\n\t\t\tlet principal = verticeEscolhido\n\t\t\tlet backtracking = []\n\t\t\tlet buscaProf = []\n\t\t\tlet arrayVertices = []\n\t\t\tlet tempo = 0\n\n\t\t\tfor(let i = 0; i < quantVertice; i++) {\n\t\t\t\tif(verticeEscolhido != i) arrayVertices.push(i);\n\t\t\t}\n\n\t\t\tfor(let j = 0; j < quantVertice; j++){\n\t\t\t\tvar obj = {\n\t\t\t\t\tcor: \"branco\",\n\t\t\t\t\ttempoInicial: \"indef\",\n\t\t\t\t\ttempoFinal: \"indef\",\n\t\t\t\t\tantecessor: \"indef\"\n\t\t\t\t}\n\t\t\t\tbuscaProf[j] = obj\n\t\t\t}\n //contador de vertices, recebe a quantidade de vértices - 1, para ir até o penúltimo na busca\n\t\t\tlet contVert = quantVertice - 1\n\n\t\t\twhile(contVert > 0){\n\t\t\t\tif(buscaProf[verticeEscolhido].cor == \"branco\"){\n\t\t\t\t\tbuscaProf[verticeEscolhido].cor = \"cinza\"\n\t\t\t\t\tbuscaProf[verticeEscolhido].tempoInicial = ++tempo\n\t\t\t\t\tbuscaProf[verticeEscolhido].antecessor = null\n\n\t\t\t\t\tbacktracking.push(verticeEscolhido)\n\n\t\t\t\t\tvar verticeSecundario\n\n\n\t\t\t\t\twhile(backtracking.length > 0){\n\n\t\t\t\t\t\tfor(verticeSecundario = 0; verticeSecundario < quantVertice; verticeSecundario++){\n\t\t\t\t\t\t\tif(matriz[verticeEscolhido][verticeSecundario] != \"inf\"){\n\t\t\t\t\t\t\t\tif(buscaProf[verticeSecundario].cor == \"branco\"){\n\t\t\t\t\t\t\t\t\tbuscaProf[verticeSecundario].cor = \"cinza\"\n\t\t\t\t\t\t\t\t\tbuscaProf[verticeSecundario].tempoInicial = ++tempo\n\t\t\t\t\t\t\t\t\tbuscaProf[verticeSecundario].antecessor = verticeEscolhido\n\n\t\t\t\t\t\t\t\t\tbacktracking.push(verticeEscolhido)\n\t\t\t\t\t\t\t\t\tverticeEscolhido = verticeSecundario\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}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(verticeSecundario == quantVertice){\n\t\t\t\t\t\t\tbuscaProf[verticeEscolhido].cor = \"preto\"\n\t\t\t\t\t\t\tbuscaProf[verticeEscolhido].tempoFinal = ++tempo\n\t\t\t\t\t\t\tverticeEscolhido = backtracking.pop()\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tverticeEscolhido = arrayVertices.shift();\n\t\t\t\tcontVert--\n\t\t\t}\n\n\t\t\tbuscaProf[principal].antecessor = null\n\t\t\treturn buscaProf\n\t\t}\n }", "calcularIMC() {\n const peso = this.peso;\n const altura = this.altura;\n return (peso / altura * altura)\n }", "function MetodoCruzamento(){\n //Nivel+1 para sabermos que não são os pais, e um o fruto de um cruzamento do nivel 1.\n\tNivel++;\n\tswitch(MetodoCruzamen){\n\t\tcase 1:\n\t\t\tKillError(\"-s [1:Não definido,2]\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tconsole.log(\"Cruzamento em andamento!\");\n\t\t\tconsole.log(\"- Crossover PMX\");\n\t\t\tconsole.log(\"- - Geração: \"+Geracao);\n\t\t\tif(Torneio==1){\n\t\t\t\tconsole.log(\"- - - Torneio\");\n\t\t\t}else{\n\t\t\t\tconsole.log(\"- - - Roleta\");\n\t\t\t}\n\t\t\twhile(Geracao>=0){\n\t\t\t\tCrossover_PMX();\n\t\t\t\tGeracao=Geracao-1;\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tKillError(\"-s [1,2]\");\n\t}\n\tQualidadeCheck();\n}", "static GetUtilidad(cadenaDeConexion, fI, fF, idSucursal, result) {\n\n var sucursal = '';\n if (idSucursal != 1) {\n sucursal = `AND info_ingresos.codSucursal=` + idSucursal;\n }\n console.log(\"sucursal \", sucursal);\n sqlNegocio(\n cadenaDeConexion,\n ` SELECT base.codMes, SUM(base.precioVenta) as totalVenta from (SELECT info_grupopartidas.nombreGrupo,info_ingresos.codMes,\n\n CASE info_grupopartidas.nombreGrupo\n WHEN 'EGRESOS' THEN -(SUM(info_ingresos.sumPrecioVenta))\n WHEN 'INGRESOS' THEN SUM(info_ingresos.sumPrecioVenta)\n END as precioVenta\n \n \n from info_ingresos LEFT JOIN\n info_partidas on info_ingresos.idPartida = info_partidas.idPartida LEFT JOIN \n info_grupopartidas on info_grupopartidas.idGrupoPartida = info_partidas.idGrupo \n where info_ingresos.fecEmision BETWEEN '`+ fI + `' AND '` + fF + `' AND info_ingresos.estado=1 ` + sucursal + ` AND ( info_grupopartidas.nombreGrupo = 'EGRESOS' or info_grupopartidas.nombreGrupo = 'INGRESOS')\n group by info_grupopartidas.nombreGrupo,info_ingresos.codMes)as base group by base.codMes\n order by base.codMes ASC`,\n [],\n function (err, res) {\n if (err) {\n console.log(\"error: \", err);\n result(null, err);\n }\n else {\n result(null, res);\n }\n });\n }", "function crepuscolo_UT(njd,longitudine,latitudine,altitudine){\n\n // funzione per il calcolo del crepuscolo astronomico per il T.U. di Greenwich\n // aggiornata al 03/12/2011.\n // by Salvatore Ruiu - Irgoli (Italy).\n // (in sostituzione della funzione crepuscolo.)\n // IL Sole si trova a -18 gradi sotto l'orizzonte locale. 90+18=108\n \n var ps_sole=pos_sole(njd);\n var DEs=ps_sole[1]; // declinazione del Sole.\n\n var LATr=Rad(latitudine); // angolo in radianti.\n var DEr=Rad(DEs); // angolo in radianti.\n\n var H=Math.acos(-Math.tan(LATr)*Math.tan(DEr)); // angolo orario\n\n var H1=Math.acos((Math.cos(Rad(108))-Math.sin(LATr)*Math.sin(DEr))/(Math.cos(LATr)*Math.cos(DEr)));\n\n \n var H= Rda(H); // angolo da radiante a sessadecimale.\n var H1=Rda(H1); // angolo da radiante a sessadecimale. \n\n var T=((H1-H)/15)*0.9973;\n\n var p_sole=ST_SOLE(njd,longitudine,latitudine,altitudine); //Sorgere e tramontare del Sole.\n\n var crep_m=ore_24(p_sole[2]-T); // crepuscolo del mattino.\n var crep_s=ore_24(p_sole[4]+T); // crepuscolo serale.\n\n var leng_day=p_sole[4]-p_sole[2]; // durata del giorno= ttramonto-tsorge del sole.\n var leng_crp=crep_s-crep_m; // durata del crepuscolo astronomico.\n var le_night=24-leng_crp; // durata della notte astronomica.\n\n var tempi_crep= new Array(crep_m,crep_s,leng_day,leng_crp,le_night);\n\n return tempi_crep;\n \n}", "function corrExam()\r\n{\r\n if (comprobar())\r\n {\r\n corregirText1();\r\n corregirSelect1();\r\n corregirMulti1();\r\n corregirCheckbox1();\r\n corregirRadio1();\r\n corregirText2();\r\n corregirSelect2();\r\n corregirMulti2();\r\n corregirCheckbox2();\r\n corregirRadio2();\r\n presentarNota();\r\n }\r\n}", "function comprovarEscriu () {\r\n this.validate=1;\r\n index=cerca(this.paraules,this.actual);\r\n this.capa.innerHTML=\"\";\r\n if (index != -1) {\r\n paraula = this.paraules[index];\r\n this.putImg (this.dirImg+\"/\"+paraula.imatge);\r\n this.capa.innerHTML += \"<br>\" + this.paraules[index].paraula.toUpperCase();\r\n this.putSound (paraula.so);\r\n this.ant = this.actual;\r\n this.actual = \"\";\r\n }\r\n else {\r\n this.putImg (\"imatges/error.gif\");\r\n this.putSound (\"so/error.wav\");\r\n this.actual = \"\";\r\n }\r\n}", "function compilar()\r\n{\r\n\t// limpar tabelas\r\n\tvar tabela = document.getElementById('tabela-binario');\r\n\ttbody = tabela.getElementsByTagName('tbody')[0];\r\n\ttbody.innerHTML = '';\r\n\tvar tabela = document.getElementById('tabela-verdade');\r\n\ttbody = tabela.getElementsByTagName('tbody')[0];\r\n\ttbody.innerHTML = '';\r\n\t\r\n\tvar instrucoes = document.getElementById('instrucoes'); // div com as instrucoes\r\n\tvar divs = instrucoes.getElementsByTagName('div'); // divs de dentro - cada uma eh uma instrucao\r\n\t\r\n\t// para cada instrucao\r\n\tfor (var i = 0; i < divs.length; i++) {\r\n\t\ttry {\r\n\t\t\t// select - operacao selecionada\r\n\t\t\tvar op_funct = divs[i].getElementsByTagName('select')[0];\r\n\t\t\top_funct_selected = op_funct.options[op_funct.selectedIndex];\r\n\t\t\tvar instrucao = op_funct_selected.value;\r\n\t\t\tvar op = Number(op_funct_selected.getAttribute('data-op'));\r\n\t\t\tvar funct = Number(op_funct_selected.getAttribute('data-funct'));\r\n\t\t\t\r\n\t\t\t// input - comando digitado\r\n\t\t\tvar comandos = divs[i].getElementsByTagName('input')[0].value;\r\n\t\t\tcomandos = comandos.replace(/\\$/g, '').replace(/\\s/g, ''); // remover espacos e $\r\n\t\t\t\r\n\t\t\tif (!empty(comandos)) {\r\n\t\t\t\tcomandos = comandos.split(','); // dividir comando pela virgula\r\n\t\t\t\t\r\n\t\t\t\tvar rd = 0;\r\n\t\t\t\tvar rs = 0;\r\n\t\t\t\tvar rt = 0;\r\n\t\t\t\tvar imm = 0;\r\n\t\t\t\tvar addr = 0;\r\n\t\t\t\t\r\n\t\t\t\tif (op == TIPO_R) {\r\n\t\t\t\t\trd = Number(comandos[0]);\r\n\t\t\t\t\trs = Number(comandos[1]);\r\n\t\t\t\t\tif (instrucao != 'not') {\r\n\t\t\t\t\t\trt = Number(comandos[2]);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (op == TIPO_J) {\r\n\t\t\t\t\taddr = Number(comandos[0]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trt = Number(comandos[0]);\r\n\t\t\t\t\tif (instrucao == 'lw' || instrucao == 'sw') {\r\n\t\t\t\t\t\tvar index1 = comandos[1].indexOf('(');\r\n\t\t\t\t\t\tvar index2 = comandos[1].indexOf(')');\r\n\t\t\t\t\t\timm = comandos[1].substring(0, index1);\r\n\t\t\t\t\t\trs = comandos[1].substring(index1+1, index2);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\trs = Number(comandos[1]);\r\n\t\t\t\t\t\timm = Number(comandos[2]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\timprimir(instrucao, op, rs, rt, rd, funct, imm, addr);\r\n\t\t\t} // if empty\r\n\t\t} catch (error) {}\r\n\t} // for\r\n}", "function buscaCorrelativo(idSerie){\r\n\tvar seriecompret = nlapiLookupField('customrecord_lmry_serie_compro_retencion', idSerie, [ 'custrecord_lmry_valor_actual', 'custrecord_lmry_cant_digitos' ] );\r\n\tnumeroActual = parseFloat(seriecompret.custrecord_lmry_valor_actual);\r\n\tcantDigitos = seriecompret.custrecord_lmry_cant_digitos;\r\n}", "function couleur()\n {\n\treturn 25000 * (0|pos_actuelle()/5 + 1);\n }", "efficacitePompes(){\n\n }", "function prikaziRezultat(){\r\n // na samom pocetku nije imao tacnih odgovora\r\n let brTacnih = 0;\r\n const listaPitanja = document.querySelectorAll(\".pitanje\")\r\n // prolazimo kroz globalni niz svih pitanja\r\n // tu poredimo odgovor koji je igrac dao na to pitanja sa tacnim odgovorom pitanja \r\n pitanja.forEach(function(trenutnoPitanje, pitanjeInd){\r\n // selektor koji trazi cekirani input na trenutno pitanje\r\n const selektor = `input[name=odgovor${pitanjeInd}]:checked`;\r\n // igrac je odgovorio ono sto je vrijednost cekiranog input-a (radio button-a)\r\n const odgovoreno = (document.querySelector(selektor) || {} ).value;\r\n\r\n // ako je ono sto je igrac odgovorio jednako tacnom odgovoru na trenutno pitanje\r\n // to znaci da je igrac tacno odgovorio i povecavamo ukupan broj tacnih odgovora\r\n \r\n if(odgovoreno === trenutnoPitanje.tacanOdgovor){\r\n brTacnih = brTacnih + 1;\r\n\r\n /* DOMACI */\r\n listaPitanja[pitanjeInd].style.color = \"green\"\r\n }else {\r\n listaPitanja[pitanjeInd].style.color = \"red\" \r\n } /* DOMACI */\r\n\r\n\r\n });\r\n // na kraju samo popunjavamo div za prikaz rezultata\r\n rezultatDiv.innerHTML = `rezultat: <h3>${brTacnih} od ${pitanja.length}</h3>`; \r\n}", "function afficherLegendeCarte() {\n if (couvertureQoS == \"couverture\") {\n if (carteCouverture == \"voix\") afficherLegendeCarteCouvVoix();\n else if (carteCouverture == \"data\") afficherLegendeCarteCouvData();\n } else if (couvertureQoS == \"QoS\") {\n actualiserMenuSelectionOperateurs();\n if (agglosTransports == \"transports\") afficherLegendeCarteQoSTransport();\n else if(agglosTransports == 'agglos') afficherLegendeCarteQoSAgglos();\n else if(driveCrowd == \"crowd\") afficherLegendeCarteQoSAgglos();\n }\n}", "function comprobarRecursividad(cadenaNt,cadenaNnT){\r\n var banderaRecursividad=false;\r\n //verifico si exte recusividad por la izquierda si exite devuelve true\r\n var resultado = (cadenaNt.substr(0,cadenaNt.length)==cadenaNnT.substr(0,cadenaNt.length))?banderaRecursividad=true:banderaRecursividad=false;\r\n return banderaRecursividad;\r\n}", "getEleccionPaquete(){\r\n\r\n if( eleccion == \"IGZ\" ){\r\n //Igz - descuento del 15\r\n console.log(\"Elegiste Iguazú y tiene el 15% de decuento\");\r\n return this.precio - (this.precio*0.15);\r\n }\r\n else if (eleccion == \"MDZ\"){\r\n //mdz - descuento del 10\r\n console.log(\"Elegiste Mendoza y tiene el 10% de descuento\");\r\n return this.precio - (this.precio*0.10);\r\n }\r\n else if (eleccion == \"FTE\"){\r\n //fte - no tiene descuento \r\n console.log(\"Elegiste El Calafate, lamentablemente no tiene descuento\");\r\n return \"\";\r\n }\r\n \r\n }", "function Compra(productos, importe, metodoDePago,cantCuotas){\n this.productos = productos;\n this.importe = importe;\n this.metodoDePago = metodoDePago;\n this.cantCuotas = cantCuotas;\n financiar = function(){\n if (this.metodoDePago = 'C' && this.cantCuotas > 1){\n importe = importe/cantCuotas\n }\n }\n recibo = function(){\n \n\n return `Productos ${Array.from(productos.nombre)}\\n Importe final = ${importe} en ${cantCuotas}` \n }\n}", "function obli_ecli(njd){\n\n // calcola l'obliquità dell'eclittica.\n // per l'equinozio della data.\n // T= numero di secoli giuliani dallo 0.5 gennaio 1900.\n\n var T=(njd-2415020.0)/36525;\n\n var obli_eclittica=23.452294-0.0130125*T-0.00000164*T*T+0.000000503*T*T*T;\n\nreturn obli_eclittica; //obliquità in gradi\n\n}", "function condiçaoVitoria(){}", "getCR() {\n this.CI = (this._getEigenvalue().maxEigenvalue - this.dim) / (this.dim - 1)\n this.CR = this.CI/this.RI\n\n return this.CR\n }", "function carregaOpcoesUnidadeSuporte(){\n\tcarregaTipoGerencia();\t\n\tcarregaTecnicos();\n\tcarregaUnidadesSolicitantes();\t\n\tcarregaEdicaoTipos();//no arquivo tipoSubtipo.js\n\tcarregaComboTipo();//no arquivo tipoSubtipo.js\n}", "function crea_cerchione(raggio,spessore){\n var dominio = DOMAIN([[0,1],[0,1]])([45,60]);\n\n var c1 = punti_controllo_cerchio(raggio)\n var c2 = cambia_valore_coordinata(c1,1,spessore)\n var c3 = proporzione(cambia_valore_coordinata(c1,1,spessore/2),90)\n\n var nodi = calcola_nodi(c1,2)\n\n var nn1 = NUBS(S0)(2)(nodi)(c1);\n var nn2 = NUBS(S0)(2)(nodi)(c2);\n var nn3 = NUBS(S0)(2)(nodi)(c3);\n\n var bezier = BEZIER(S1)([nn1,nn3,nn2]);\n var unione = COLOR(rgb(grigio))(MAP(bezier)(dominio));\n\n return unione;\n }", "function cerchio (r,tz) { \n var funzione = function (p) { \n var u = p[0] * 2 * PI;\n\n return [r * SIN(u),r * COS(u),tz];\n };\n\n return funzione;\n}", "auxiliarPredicado(tipo, nombre, valor, objeto) {\n //Verificamos si lo que se buscó en el predicado es un atributo o etiqueta\n if (tipo == \"atributo\") {\n //Recorremos los atributos del objecto en cuestion\n for (let att of objeto.atributos) {\n //Si los nombres de atributos son iguales\n if (att.dameNombre() == nombre) {\n //Si los valores de los atributos son iguales al valor ingresado en el predicado\n if (att.dameValor() == valor) {\n //Guardamos el elemento que contiene el atributo\n this.consolaSalidaXPATH.push(objeto);\n //Esta linea de codigo para para verificar el nuevo punto de inicio de la consola final, para no redundar\n if (!this.controladorPredicadoInicio) {\n this.contadorConsola = this.consolaSalidaXPATH.length - 1;\n this.controladorPredicadoInicio = true;\n }\n } //Cierre comparacion valor\n } //Cierre comparacion nombre\n } //Cierre for para recorrer atributos\n for (let entry of objeto.hijos) {\n for (let att of entry.atributos) {\n //Si los nombres de atributos son iguales\n if (att.dameNombre() == nombre) {\n //Si los valores de los atributos son iguales al valor ingresado en el predicado\n if (att.dameValor() == valor) {\n //Guardamos el elemento que contiene el atributo\n this.consolaSalidaXPATH.push(objeto);\n //Esta linea de codigo para para verificar el nuevo punto de inicio de la consola final, para no redundar\n if (!this.controladorPredicadoInicio) {\n this.contadorConsola = this.consolaSalidaXPATH.length - 1;\n this.controladorPredicadoInicio = true;\n }\n } //Cierre comparacion valor\n } //Cierre comparacion nombre\n } //Ci\n }\n }\n else {\n //Si lo que se busca es una etiqueta en el predicado\n for (let entry of objeto.hijos) {\n //Recorremos cada uno de los hijos y verificamos el nombre de la etiqueta\n if (entry.dameID() == nombre) {\n //Sí hay concidencia, se procede a examinar si el valor es el buscado\n if (entry.dameValor().substring(1) == valor) {\n //Agregamos el objeto a la consola de salida\n this.consolaSalidaXPATH.push(objeto);\n //Al iguar que n fragmento anteriores, se establece el nuevo punto de inicio\n if (!this.controladorPredicadoInicio) {\n this.contadorConsola = this.consolaSalidaXPATH.length - 1;\n this.controladorPredicadoInicio = true;\n } //cierreControladorInicio\n } //CIERRE VALOR\n } //CIERREID\n } //CIERRE RECORRIDO DE HIJOS\n }\n //La siguiente linea comentada es para recursividad, pendiente de uso.\n }", "function refCabecera() {\n if (currentSetId == 'analitico') {\n resumAnali();\n } else if (currentSetId == 'sinoptico') {\n resumSinop();\n } else if (currentSetId == 'recorrido') {\n resumRecorr();\n } else if (currentSetId == 'bimanual') {\n resumBim();\n } else if (currentSetId == 'hom-maq') {\n resumHM();\n }\n}", "function BdConsultaDescGeneralInmuebleComple(pFolio, pTipoConstruccion, pUsuarioOperacion) {\n let etiquetaLOG = `${ ruta } [Usuario: ${ pUsuarioOperacion }] METODO: BdConsultaDescGeneralInmuebleComple `;\n try {\n logger.info(etiquetaLOG);\n const client = new Pool(configD);\n\n let sQuery = `SELECT * FROM fConsultaInmConstrucComplemento('${pFolio}','${pTipoConstruccion}');`;\n\n logger.info(`${ etiquetaLOG } ${sQuery} `);\n\n return new Promise(function(resolve, reject) {\n client.query(sQuery)\n .then(response => {\n client.end();\n logger.info(etiquetaLOG + 'RESULTADO: ' + JSON.stringify(response.rows));\n resolve(response.rows);\n })\n .catch(err => {\n client.end()\n logger.error(etiquetaLOG + 'ERROR: ' + err.message + ' CODIGO_BD(' + err.code + ')');\n reject(err.message + ' CODIGO_BD(' + err.code + ')');\n })\n });\n } catch (err) {\n logger.error(`${ ruta } ERROR: ${ err } `);\n throw (`Se presentó un error en BdConsultaDescGeneralInmuebleComple: ${err}`);\n }\n}", "function cilindro (r,h,gradi,alpha,trasla) {\n if (trasla === undefined) {\n trasla = [];\n };\n var x = trasla[0] || 0;\n var y = trasla[1] || 0;\n var z = trasla[2] || 0;\n\n var funzione = function (p) {\n var u = alpha + p[0] * gradi;\n var w = p[1] * h;\n\n return [x + r * COS(u), y + r * SIN(u), z + w];\n }\n\n return funzione;\n}", "function buscar_CompradorVehiculo() {\n \t//alert('metodo buscar comprado');\n\t\t\tExt.Ajax.request({\n\t\t\t\turl : 'menu_admin/buscar_CompradorVehiculo',\n\t\t\t\tparams : {\n\t\t\t\t\tajax : 'true',\n\t\t\t\t\tfuncion : 'buscar_CompradorVehiculo',\n\t\t\t\t\tidcomprador : idcomprador,\n\t\t\t\t},\n\t\t\t\t//Retorno exitoso de la pagina servidora a traves del formato JSON\n\t\t\t\tsuccess : function(exito, request) {\n\t\t\t\t\tdatos = Ext.JSON.decode(exito.responseText);\n\t\t\t\t\tif (datos.exito == 'false') {\n\t\t\t\t\t\tExt.Msg.alert(\"Error\", datos.msg);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//alert(datos.cedula);\n\t\t\t\t\t\tExt.getCmp('cedula_comp').setValue(datos.cedula);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t//No hay retorno de la pagina servidora\n\t\t\t\tfailure : function() {\n\t\t\t\t\tExt.Msg.alert(\"Error\", \"Servidor no conectado\");\n\n\t\t\t\t}\n\t\t\t});\n}", "function getCheminWin (plat, pal) {\n\tthis.plateau = plat;\t\t// Plateau de depart\n\tthis.palette = pal;\t\t\t// Palette de couleur\n\tvar chemin = new Array ();\t// Chemin le plus court pour gagner\n\n\twhile (this.plateau.isWin() == false) {\n\t\tvar cptColor = new Array ();\t// 1 case represente une couleur, dans l'ordre des couleurs de la palette\n\t\tfor (var i=0 ; i<this.palette.tabCouleurs.length ; i++) {\n\t\t\tcptColor.push(0);\n\t\t} // Ici, les compteurs de couleurs sont init a 0\n\t\t\n\t\t\n\n\n\t\t// Pour chaque case controlee (->A)\n\t\tfor (var contr=0 ; contr<this.plateau.tabPosCasesControl.length ; contr++) {\n\t\t\t// Balaye les cases adjacentes de A (1 a 4) (->B)\n\t\t\tfor (var i=0 ; i<this.getCasesAdj() ; i++) {\n\t\t// Incremente cmpt couleur avec les couleurs de ces cases adjacentes\n\t\t// Balaye les cases adjacentes de B (->C) :\n\t\t\t// Si C est de la meme couleur que B, incremente compteur et balaye aussi ses cases adj (meme traitement que B)\n\t\t\t}\n\t\t}\n\n\t}\n\n\t/*On balaye toutes les cases controlees\n\tOn compte combien il y a d'occurrences de chaque couleur sur les cases adjacentes\n\tChange la couleur des cases controlees pour prendre le control du plus grand nombre de cases adjacentes\n\t---------\n\tFaire une methode qui appelle Plateau.getCasesAdjColor(case) de manière récursive, en ajoutant dans un tableau chaque return de la methode\n\t\tOn regarde les cases adjacentes (soit A) : incremente compteur couleur\n\t\tOn regarde les cases adjacentes des cases adjacentes (B adj à A) : \n\t\t\tsi une case B est de la meme couleur que A, regarde les cases adjacentes à B et incremente le compteur couleurs\n\t*/\n}", "function accionBuscar ()\n {\n configurarPaginado (mipgndo,'DTOBuscarMatricesDTOActivas','ConectorBuscarMatricesDTOActivas',\n 'es.indra.sicc.cmn.negocio.auditoria.DTOSiccPaginacion', armarArray());\n }", "function dibujarFresado110(modelo,di,pos,document){\n\t\n\t//ESTABLECER CAPA\n\tvar op_fresado = new RAddObjectsOperation();\n\tdi.setCurrentLayer(\"Fresado\"); //Seleccionar la capa de fresado\n\t\n\t\n\tvar plieguesInf=[pliegueInf1, pliegueInf2, pliegueInf3, pliegueInf4]\n\t\n\t//sacar el mayor pliegue\n\tpliegueInferior=pliegueInf1\n\tfor (var n=0; n<4 ;n=n+1){\n\t\tif (pliegueInferior<plieguesInf[n]){\n\t\t\tpliegueInferior=plieguesInf[n]\n }\n }\n\t\n\t\n\tvar fresado11 = new RVector(pos.x+anchura1,pos.y+alaInferior+pliegueInferior)\n\tvar fresado12 = new RVector(pos.x+anchura1+anchura2,pos.y+alaInferior+pliegueInferior)\n\tvar fresado13 = new RVector(pos.x+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior)\n\tvar fresado14 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior)\n\t\n\t\n\t\n\tvar fresado16 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior) \n\tvar fresado17 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado18 = new RVector(pos.x+anchura1,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado19 = new RVector(pos.x+anchura1+anchura2,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado20 = new RVector(pos.x+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado21 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado22 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\n\t\n\tif (anchura4>pliegueInf4){\n\t\tvar fresado15 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior-pliegueInf4-alaInferior)\n var line = new RLineEntity(document, new RLineData( fresado15 , fresado22 ));\n\t op_fresado.addObject(line,false);\n\t\t\n }else{\n var line = new RLineEntity(document, new RLineData( fresado14 , fresado22 ));\n\t op_fresado.addObject(line,false);\n\n }\n\t var line = new RLineEntity(document, new RLineData( fresado16 , fresado14 ));\n\t op_fresado.addObject(line,false);\n var line = new RLineEntity(document, new RLineData( fresado20 , fresado13 ));\n\t op_fresado.addObject(line,false);\n var line = new RLineEntity(document, new RLineData( fresado12 , fresado19 ));\n\t op_fresado.addObject(line,false);\n var line = new RLineEntity(document, new RLineData( fresado18 , fresado11 ));\n\t op_fresado.addObject(line,false);\n var line = new RLineEntity(document, new RLineData( fresado17 , fresado21 ));\n\t op_fresado.addObject(line,false);\n\t\n\t\n\t\n\t\n\t\n\t\n\t//anchura1 - Inferior\n\tif (anchura1>pliegueInf1){\n\t\t//var fresado10 = new RVector(pos.x,pos.y+pliegueInferior+alaInferior) \n\t\tvar fresado1 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t//var fresado2 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\tvar fresado3 = new RVector(pos.x+anchura1-pliegueInf1,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t\n\t\t//dibujarFresado_auxiliar(doc,fresado10,fresado1)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado1 , fresado3 ));\n\t op_fresado.addObject(line,false);\n\t\t//dibujarFresado_auxiliar(doc,fresado2,fresado11)\n }\n\t\n\t//anchura2 - Inferior\n\tif (anchura2>(pliegueInf2*2)){\n\t\tvar fresado4 = new RVector(pos.x+anchura1+pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar fresado5 = new RVector(pos.x+anchura1+anchura2-pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n var line = new RLineEntity(document, new RLineData( fresado4 , fresado5 ));\n\t op_fresado.addObject(line,false);\n\t\t\n }\n\t\n\t//anchura3 - Inferior\n\tif (anchura3>(pliegueInf3*2)){\n\t\tvar fresado6 = new RVector(pos.x+anchura1+anchura2+pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar fresado7 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n var line = new RLineEntity(document, new RLineData( fresado6 , fresado7 ));\n\t op_fresado.addObject(line,false);\n\t\t\n }\n\t\n\t//anchura4 - Inferior\n\tif (anchura4>pliegueInf4){\n\t\tvar fresado8 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar fresado9 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n var line = new RLineEntity(document, new RLineData( fresado8 , fresado9 ));\n\t op_fresado.addObject(line,false);\n\t\t\n } \n\t\n\t\n\t\n\n\t\n\t\n\n\t\n\t//anchura1 - Superior\n\tif (anchura1>(pliegueSuperior*2)){\n\t\tvar fresado25 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado26 = new RVector(pos.x+anchura1-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado25 , fresado26 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ //Esto es para hacer el fresado externo o no\n\t\t\tvar fresado27 = new RVector(pos.x+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado28 = new RVector(pos.x+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n var line = new RLineEntity(document, new RLineData( fresado27 , fresado28 ));\n\t op_fresado.addObject(line,false);\n\t\t\n }\n }\n\t\n\t//anchura2 - Superior\n\tif (anchura2>(pliegueSuperior*2)){\n\t\tvar fresado31 = new RVector(pos.x+anchura1+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado32 = new RVector(pos.x+anchura1+anchura2-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado31 , fresado32 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado29 = new RVector(pos.x+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado30 = new RVector(pos.x+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado29 , fresado30 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado33 = new RVector(pos.x+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado34 = new RVector(pos.x+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n var line = new RLineEntity(document, new RLineData( fresado33 , fresado34 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n }\n }\n\t\n\t//anchura3 - Superior\n\tif (anchura3>pliegueSuperior*2){\n\t\tvar fresado37 = new RVector(pos.x+anchura1+anchura2+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado38 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado37 , fresado38 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado35 = new RVector(pos.x+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado36 = new RVector(pos.x+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado35 , fresado36 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado39 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado40 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n var line = new RLineEntity(document, new RLineData( fresado39 , fresado40 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n }\n }\n\t\n\t//anchura4 - Superior\n\tif (anchura4>pliegueSuperior){ \n\t\tvar fresado43 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado44 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado43 , fresado44 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado41 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado42 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado41 , fresado42 ));\n\t op_fresado.addObject(line,false);\n }\n }\n\t\n\t\n\t\n\treturn op_fresado;\n}", "UCB(c){\n //console.log(\"Victorias simulacion: \" + this.numVictoriasSimulacion + \"jugadas finales \" + this.numJugadasSimulacion + \"jugadas padre \" + this.padre.numJugadasSimulacion + \" jugadas simuladas \" + this.numJugadasSimulacion)\n return (this.numVictoriasSimulacion / this.numJugadasSimulacion) + c * Math.sqrt(Math.log(this.padre.numJugadasSimulacion) / this.numJugadasSimulacion)\n }", "function acu_fondosolidaridadredistribucioningresos_cargardatostemporal(){\n\t\n\t\tif(acu_fsri_panel_datanuevo)\n\t\t{\n\t\t\tacu_fsri_panel_dataviejo=acu_fsri_panel_datanuevo;\n\t\t}\n\t\tacu_fsri_panel_datanuevo=new Array();\n\t\tacu_fsri_panel_datanuevo['acu_fsi_sol_tranferencia_recursos'] = Ext.getCmp('acu_fsi_sol_tranferencia_recursos').getValue().getGroupValue();\n\t\t\n\t\tacu_fsri_panel_datanuevo['acu_fsi_recibo_recursos'] =Ext.getCmp('acu_fsi_recibo_recursos').getValue().getGroupValue();\n\t\tacu_fsri_panel_datanuevo['acu_fsi_recibo_recursos_valor_recib'] = Ext.getCmp('acu_fsi_recibo_recursos_valor_recib').getValue();\n\t\tacu_fsri_panel_datanuevo['acu_fsi_aporte_recursos'] = Ext.getCmp('acu_fsi_aporte_recursos').getValue().getGroupValue();\n\t\tacu_fsri_panel_datanuevo['acu_fsi_aporte_recursos_valor_apor'] = Ext.getCmp('acu_fsi_aporte_recursos_valor_apor').getValue();\n\t\tacu_fsri_panel_datanuevo['acu_vas_suscripcion_contrato'] = Ext.getCmp('acu_vas_suscripcion_contrato').getValue().getGroupValue();\n\t\t\n\t\t\n\t}", "function montaConjuntos(){\r\n\treturn quantidadeDeLinha() / valorDeN();\r\n}", "function trataColisoes()\n{\n //lateral esquerda - 1\n if(esfera.posicao[0] - esfera.raio < parametrosMesa.xMin)\n {\n if(ultimaColisao != 1)\n {\n veloc[0] = -parametrosMesa.coeficienteRestituicao * veloc[0];\n ultimaColisao = 1;\n } \n }\n\n //lateral direita - 2\n if(esfera.posicao[0] + esfera.raio > parametrosMesa.xMax)\n {\n if(ultimaColisao != 2)\n {\n veloc[0] = -parametrosMesa.coeficienteRestituicao * veloc[0];\n ultimaColisao = 2;\n } \n }\n\n //cima - 3\n if(esfera.posicao[1] - esfera.raio < parametrosMesa.zMax)\n {\n if(ultimaColisao != 3)\n {\n veloc[2] = -parametrosMesa.coeficienteRestituicao * veloc[2];\n ultimaColisao = 3; \n }\n \n }\n\n //corredor direito - 4\n if(esfera.posicao[1] - esfera.raio > -30)\n { \n if( ( (esfera.posicao[0] - esfera.raio < -19.75) && (esfera.posicao[0] + esfera.raio > -17.75) ) || \n ( (esfera.posicao[0] + esfera.raio > -18.75) && (esfera.posicao[0] - esfera.raio < -20.75) ) )\n {\n if(ultimaColisao != 4)\n {\n veloc[0] = -parametrosMesa.coeficienteRestituicao * veloc[0];\n ultimaColisao = 4;\n } \n }\n \n\n //corredor esquerdo - 5\n if( (esfera.posicao[0] + esfera.raio > 19.04) && (esfera.posicao[0] - esfera.raio < 21.04) || \n (esfera.posicao[0] - esfera.raio < 20.04) && (esfera.posicao[0] + esfera.raio > 18.04) )\n {\n if(ultimaColisao != 5)\n {\n veloc[0] = -parametrosMesa.coeficienteRestituicao * veloc[0];\n ultimaColisao = 5;\n } \n }\n }\n\n /*//corner direito - 6\n if(esfera.posicao[0] - esfera.posicao[1] >= 50)\n {\n if(ultimaColisao != 6)\n {\n //TODO \n var normal = [-0.7, 0, -0.7];\n var normalx2 = [-1.4, 0, -1.4];\n var cosseno = mult(normal, normalize(veloc));\n var quase = mult(normalx2, cosseno);\n var vetorRefletido = subtract(quase, normalize(veloc) );\n veloc[0] = vetorRefletido[0]; veloc[2] = vetorRefletido[2];\n ultimaColisao = 6;\n }\n }\n\n //corner esquerdo - 7\n if(-esfera.posicao[0] + esfera.posicao[1] >= 50){\n if(ultimaColisao != 7)\n {\n //TODO \n var normal = [-0.7, 0, -0.7];\n var normalx2 = [-1.4, 0, -1.4];\n var cosseno = mult(normal, normalize(veloc));\n var quase = mult(normalx2, cosseno);\n var vetorRefletido = subtract(quase, normalize(veloc) );\n veloc[0] = vetorRefletido[0]; veloc[2] = vetorRefletido[2];\n ultimaColisao = 7;\n }\n }*/\n}", "get EAC_R() {}", "function RC(x, y){\n\n // define constants\n ERRTOL = 0.04;\n TINY = 1.69e-38;\n SQRTNY = 1.3e-19;\n BIG = 3.e37;\n TNBG = (TINY*BIG);\n COMP1 = (2.236/SQRTNY);\n COMP2 = (TNBG*TNBG/25.0);\n THIRD = (1.0/3.0);\n C1 = 0.3;\n C2 = (1.0/7.0);\n C3 = 0.375;\n C4 = (9.0/22.0);\n\n // float alamb,ave,s,w,xt,yt;\n\n if (x < 0.0 || y == 0.0 || (x+math.abs(y)) < TINY || (x+math.abs(y)) > BIG ||\n (y<-COMP1 && x > 0.0 && x < COMP2))\n console.log(\"invalid arguments in rc\");\n if (y > 0.0) {\n xt=x;\n yt=y;\n w=1.0;\n } else {\n xt=x-y;\n yt = -y;\n w=math.sqrt(x)/math.sqrt(xt);\n }\n do {\n alamb=2.0*math.sqrt(xt)*math.sqrt(yt)+yt;\n xt=0.25*(xt+alamb);\n yt=0.25*(yt+alamb);\n ave=THIRD*(xt+yt+yt);\n s=(yt-ave)/ave;\n } while (math.abs(s) > ERRTOL);\n return w*(1.0+s*s*(C1+s*(C2+s*(C3+s*C4))))/math.sqrt(ave);\n}", "function RetornarOperadorOptimizado(raiz){\n var valor = '';\n \n try\n {\n var InfoToken = raiz.Nodes[0].FindTokenAndGetInfo();\n \n if(InfoToken == '(temporal)') valor = raiz.Nodes[0].FindTokenAndGetText();\n else if(InfoToken == '(numero)') valor = raiz.Nodes[0].FindTokenAndGetText();\n else if(InfoToken == '(p)') valor = 'P';\n else if(InfoToken == '(h)') valor = 'H';\n else if(InfoToken == '(s)') valor = 'S';\n }\n catch(err)\n {\n console.log(err);\n TablaError.push(new Errores('Semántico',err,raiz.Fila));\n }\n \n return valor;\n}", "function dibujarFresado109(modelo,di,pos,document){\n\t\n\t//ESTABLECER CAPA\n\tvar op_fresado = new RAddObjectsOperation();\n\tdi.setCurrentLayer(\"Fresado\"); //Seleccionar la capa de fresado\n\t\n\tvar plieguesInf=[pliegueInf1, pliegueInf2, pliegueInf3, pliegueInf4]\n\t\n\t//sacar el mayor pliegue\n\tpliegueInferior=pliegueInf1\n\tfor (var n=0; n<4 ;n=n+1){\n\t\tif (pliegueInferior<plieguesInf[n]){\n\t\t\tpliegueInferior=plieguesInf[n]\n\t\t}\n\t} \n\t\n\t\n\t//Puntos trayectoria \n \n\t\n\tvar fresado11 = new RVector(pos.x+alaIzquierda+pliegueIzq,pos.y+alaInferior+pliegueInferior)\n\tvar fresado12 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1,pos.y+alaInferior+pliegueInferior)\n\tvar fresado13 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2,pos.y+alaInferior+pliegueInferior)\n\tvar fresado14 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior)\n\tvar fresado15 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior)\n\t\n\tvar fresado16 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior+pliegueIzq)\n\tvar fresado17 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado18 = new RVector(pos.x+alaIzquierda+pliegueIzq,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado19 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado20 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado21 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado22 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\n\tvar line = new RLineEntity(document, new RLineData( fresado11 , fresado15 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado22 , fresado17 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado17 , fresado16 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado11 , fresado18 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado19 , fresado12 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado13 , fresado20 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado21 , fresado14 ));\n\top_fresado.addObject(line,false);\n\n\t\n\t\n\t\n\t\n\t\n\t//anchura1 - Inferior\n\tif (anchura1>pliegueInf1){\n\t\tvar fresado10 = new RVector(pos.x+alaIzquierda,pos.y+pliegueInferior+alaInferior-pliegueIzq) \n\t\tvar fresado1 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\tvar fresado2 = new RVector(pos.x+alaIzquierda+pliegueIzq,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\tvar fresado3 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1-pliegueInf1,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t\n\t\tvar line = new RLineEntity(document, new RLineData( fresado10 , fresado1 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado1 , fresado3 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado2 , fresado11 ));\n\t\top_fresado.addObject(line,false);\n\n\t} \n\t\n\t//anchura2 - Inferior\n\tif (anchura2>(pliegueInf2*2)){\n\t\tvar fresado4 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar fresado5 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2-pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado4 , fresado5 ));\n\t\top_fresado.addObject(line,false);\n\t}\n\t\n\t//anchura3 - Inferior\n\tif (anchura3>(pliegueInf3*2)){\n\t\tvar fresado6 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar fresado7 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3-pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado6 , fresado7 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t} \n\t\n\t//anchura4 - Inferior\n\tif (anchura4>pliegueInf4){\n\t\tvar fresado8 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar fresado9 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado8 , fresado9 ));\n\t\top_fresado.addObject(line,false);\n\t} \n\t\n\t\n\t\n\n\t\n\t\t\n\n\t\n\t//anchura1 - Superior\n\tif (anchura1>(pliegueSuperior*2)){\n\t\tvar fresado25 = new RVector(pos.x+alaIzquierda+pliegueIzq+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado26 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado25 , fresado26 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ //Esto es para hacer el fresado externo o no\n\t\t\tvar fresado23 = new RVector(pos.x+alaIzquierda+pliegueIzq+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado24 = new RVector(pos.x+alaIzquierda+pliegueIzq+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado23 , fresado24 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado27 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado28 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado27 , fresado28 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura2 - Superior\n\tif (anchura2>(pliegueSuperior*2)){\n\t\tvar fresado31 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado32 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado31 , fresado32 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado29 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado30 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado29 , fresado30 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado33 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado34 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado33 , fresado34 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura3 - Superior\n\tif (anchura3>pliegueSuperior*2){ \n\t\tvar fresado37 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado38 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado37 , fresado38 ));\n\t\top_fresado.addObject(line,false);\n\t \n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado35 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado36 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado35 , fresado36 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado39 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado40 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado39 , fresado40 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura4 - Superior\n\tif (anchura4>pliegueSuperior){\n\t\tvar fresado43 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado44 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado43 , fresado44 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado41 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado42 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado41 , fresado42 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t\n\t\n\treturn op_fresado;\n}", "function ex3(){\n const cotacao = 4.1\n\tlet nome = prompt('Informe seu nome completo por favor.')\n\tlet tipoJogo = prompt('Jogo Nacional (NA) ou Internacional (IN)? (digitar a sigla)')\n\tif (tipoJogo==='IN'){\n\t tipoJogo='Internacional'\n\t}else if(tipoJogo==='NA'){\n\t tipoJogo='Nacional'}\n\tif(tipoJogo==='Nacional'){\n\t let jogo = prompt('Digite a sigla em maiusculo, SF - Semifinais, DT - Decisao do 3 lugar, FI - Final')\n if (jogo==='SF'){jogo='Semifinais'}\n else if (jogo==='DT'){jogo='Decisao do 3 lugar'}\n else if (jogo==='FI'){jogo='Final'}\n\t if (jogo==='semifinais'){\n\t\tlet categoria= Number(prompt ('Qual Categoria? 1,2,3 ou 4'))\n\t\tif(categoria===1){\n let valor = 1320\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===2){\n\t\t\tlet valor = 880\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===3){\n\t\t\tlet valor = 550\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===4){\n\t\t\tlet valor = 220\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse{\n\t\t console.log('Categoria Inexistente')\n\t\t}\n\t }\n\t else if (jogo==='Decisao do 3 lugar'){\n\t\tlet categoria= Number(prompt ('Qual Categoria? 1,2,3 ou 4'))\n\t\tif(categoria===1){\n let valor = 660\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===2){\n\t\t\tlet valor = 440\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===3){\n\t\t\tlet valor = 330\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===4){\n\t\t\tlet valor = 170\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse{\n\t\t console.log('Categoria Inexistente')\n\t\t}\n\t }\n\t else if (jogo==='Final'){\n\t\tlet categoria= Number(prompt ('Qual Categoria? 1,2,3 ou 4'))\n\t\tif(categoria===1){\n let valor = 1980\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===2){\n\t\t\tlet valor = 1320\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===3){\n\t\t\tlet valor = 880\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse if(categoria===4){\n\t\t\tlet valor = 330\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra : R$'+ total+',00')\n\t\t}\n\t\telse{\n \n\t\t console.log('Categoria Inexistente')\n\t\t}\n\t }\n\t else{\n \n\t\tconsole.log('Por Favor verifique se digitou a sigla corretamente.')\n\t }\n \n\t}else if (tipoJogo==='Internacional'){\n \t let jogo = prompt('Digite a sigla em maiusculo, SF - Semifinais, DT - Decisao do 3 lugar, FI - Final')\n if (jogo==='SF'){jogo='Semifinais'}\n else if (jogo==='DT'){jogo='Decisao do 3 lugar'}\n else if (jogo==='FI'){jogo='Final'}\n\t if (jogo==='semifinais'){\n\t\tlet categoria= Number(prompt ('Qual Categoria? 1,2,3 ou 4'))\n\t\tif(categoria===1){\n let valor = 1320\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t \tconsole.log('---Dados da compra---')\n \t\tconsole.log('Nome do cliente : '+ nome)\n\t \tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t \tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n console.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs +',00')\n console.log('Valor do Ingresso : R$'+ valor +',00')\n console.log('Valor total da compra em R$ :'+ total +',00')\n console.log('Valor total da compra em US$ :'+ totalUs +',00')\n\t\t}\n\t\telse if(categoria===2){\n\t\t\tlet valor = 880\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===3){\n\t\t\tlet valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===4){\n\t\t\tlet valor = 220\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\t console.log('---Dados da compra---')\n\t console.log('Nome do cliente : '+ nome)\n\t\t console.log('Tipo de Jogo : '+ tipoJogo)\n\t\t console.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n console.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n console.log('Valor do Ingresso : R$'+ valor+',00')\n console.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse{\n\t\t console.log('Categoria Inexistente')\n\t\t}\n\t }\n\t else if (jogo==='Decisao do 3 lugar'){\n\t\tlet categoria= Number(prompt ('Qual Categoria? 1,2,3 ou 4'))\n\t\tif(categoria===1){\n let valor = 660\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===2){\n\t\t\tlet valor = 440\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===3){\n\t\t\tlet valor = 330\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===4){\n\t\t\tlet valor = 170\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse{\n\t\t console.log('Categoria Inexistente')\n\t\t}\n\t }\n\t else if (jogo==='Final'){\n\t\tlet categoria= Number(prompt ('Qual Categoria? 1,2,3 ou 4'))\n\t\tif(categoria===1){\n let valor = 1980\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===2){\n\t\t\tlet valor = 1320\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===3){\n\t\t\tlet valor = 880\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse if(categoria===4){\n\t\t\tlet valor = 330\n let valorUs = valor/cotacao\n let quantos = Number(prompt('Quantos ingressos?'))\n let total= quantos*valor\n let totalUs = total/cotacao\n\t\tconsole.log('---Dados da compra---')\n\t\tconsole.log('Nome do cliente : '+ nome)\n\t\tconsole.log('Tipo de Jogo : '+ tipoJogo)\n\t\tconsole.log('Etapa do Jogo : '+ jogo)\n \tconsole.log('Categoria : '+ categoria)\n \tconsole.log('Quantidade de Ingressos : '+ quantos)\n \tconsole.log('---Valores---')\n console.log('Valor do Ingresso : US$'+ valorUs+',00')\n \tconsole.log('Valor do Ingresso : R$'+ valor+',00')\n \tconsole.log('Valor total da compra em R$ :'+ total+',00')\n console.log('Valor total da compra em US$ :'+ totalUs+',00')\n\t\t}\n\t\telse{\n \n\t\t console.log('Categoria Inexistente')\n\t\t}\n\t }\n\t else{\n \n\t\tconsole.log('Por Favor verifique se digitou a sigla corretamente.')\n\t }\n \n\t}\n else{\n\tconsole.log('Por Favor verifique se digitou a sigla corretamente.')\n }}", "function Carnivorus(){\n\n}", "function proposer(element){\n\t\t\t\t\t\n\t\t\t\t\t// Si la couleur de fond est lightgreen, c'est qu'on a déja essayé - on quitte la fonction\n\t\t\t\t\tif(element.style.backgroundColor==\"lightGreen\" ||fini) return;\n\t\t\t\t\t\n\t\t\t\t\t// On récupere la lettre du clavier et on met la touche en lightgreen (pour signaler qu'elle est cliqu�e)\n\t\t\t\t\tvar lettre=element.innerHTML;\n\t\t\t\t\tchangeCouleur(element,\"lightGrey\");\n\t\t\t\t\t\n\t\t\t\t\t// On met la variable trouve false;\n\t\t\t\t\tvar trouve=false;\n\t\t\t\t\t\n\t\t\t\t\t// On parcours chaque lettre du mot, on cherche si on trouve la lettre s�l�ectionn�e au clavier\n\t\t\t\t\tfor(var i=0; i<tailleMot; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Si c'est le cas :\n\t\t\t\t\t\tif(tableauMot[i].innerHTML==lettre) {\n\t\t\t\t\t\t\ttableauMot[i].style.visibility='visible';\t// On affiche la lettre\n\t\t\t\t\t\t\ttrouve=true;\n\t\t\t\t\t\t\tlettresTrouvees++;\n\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\t\t// Si la lettre n'est pas présente, trouve vaut toujours false :\n\t\t\t\t\tif(!trouve){\n\t\t\t\t\t\tcoupsManques++;\n\t\t\t\t\t\tdocument.images['pendu'].src=\"asset/image/pendu_\"+coupsManques+\".jpg\"; // On change l'image du pendu\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Si on a rate 9 fois :\n\t\t\t\t\t\tif(coupsManques==8){\n\t\t\t\t\t\t\talert(\"Vous avez perdu !\");\n\t\t\t\t\t\t\tfor(var i=0; i<tailleMot; i++) tableauMot[i].style.visibility='visible';\n\t\t\t\t\t\t\tfini=true;\n\t\t\t\t\t\t\t// on affiche le mot, on fini le jeu\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(lettresTrouvees==tailleMot){\n\t\t\t\t\t\talert(\"Bravo ! Vous avez découvert le mot secret !\");\n\t\t\t\t\t\tfini=true;\n\t\t\t\t\t}\n\t\t\t\t}", "cambio(){\n\n productos.forEach(producto => {\n if(producto.nombre === this.productoSeleccionado) this.productoActual = producto;\n });\n\n //Ver si el producto actual tiene varios precios\n if(this.productoActual.variosPrecios){\n //Verificar si sobrepasa algun precio extra\n\n //Si es menor al tope del primer precio\n if(this.cantidadActual < this.productoActual.precios.primerPrecio.hasta){\n this.precioActual = this.productoActual.precios.primerPrecio.precio;\n //Seteamos el precio tachado a 0 de nuevo\n this.precioPorUnidadTachado = 0;\n }\n //Si es mayor o igual al tope del primer precio pero menor al tope del segundo\n else if(this.cantidadActual >= this.productoActual.precios.primerPrecio.hasta && this.cantidadActual < this.productoActual.precios.segundoPrecio.hasta){\n this.precioActual = this.productoActual.precios.segundoPrecio.precio;\n //Asignamos un nuevo precio tachado\n this.precioPorUnidadTachado = this.productoActual.precios.primerPrecio.precio;\n }\n //Si es igual o mayor al tope del segundo precio\n else if(this.cantidadActual >= this.productoActual.precios.segundoPrecio.hasta){\n this.precioActual = this.productoActual.precios.tercerPrecio.precio;\n //Asignamos un nuevo precio tachado\n this.precioPorUnidadTachado = this.productoActual.precios.primerPrecio.precio;\n }\n }\n }", "function compilazione(elm,commessa,name,note){\r\n\t\r\n\tvar ore = \"ore\"+name;\r\n\tvar straordinario = \"straordinario\"+name;\r\n\tvar assenze = \"assenze\"+name;\r\n\tvar tipologiaAssenze = \"tipologiaAssenze\"+name;\r\n\tvar parametri = \"parametri\"+name;\r\n\t\r\n\t\r\n\tdocument.compilaOre.oreOrd.style.border = \"1px solid #CCC\";\r\n\tdocument.compilaOre.oreStrao.style.border = \"1px solid #CCC\";\r\n\tdocument.compilaOre.assenze.style.border = \"1px solid #CCC\";\r\n\t\r\n\t// effettuo questo tipo di controllo per effettuare la modifica o inserimento ore\r\n\tif($(\"#\"+ore).val() > 0.0 || $(\"#\"+assenze).val() > 0.0){\r\n\t\t\r\n\t\t//carico l'azione da compiere\r\n\t\tdocument.compilaOre.azione.value = \"modificaOre\";\r\n\t\t\r\n\t\tdocument.compilaOre.parametro.value = name;\r\n\t\t\r\n\t\t// carico le ore ordinare\r\n\t\tdocument.compilaOre.oreOrd.value = $(\"#\"+ore).val();\r\n\t\t\r\n\t\t//carico le ore straordinarie\r\n\t\tdocument.compilaOre.oreStrao.value = $(\"#\"+straordinario).val();\r\n\t\t\r\n\t\t//carico le ore assenze\r\n\t\tdocument.compilaOre.assenze.value = $(\"#\"+assenze).val();\r\n\t\t\r\n\t\tif($(\"#\"+assenze).val() != 0.0){\r\n\t\t\t$(\"#oreOrdinare select\").css(\"display\",\"inline\");\r\n \t\r\n \tif($(\"#\"+tipologiaAssenze).text() == \"(Fe)\"){\r\n \t\tvar $select = $('#oreOrdinare select');\r\n var $options = $('option', $select);\r\n for(var x = 0; x < $options.length; x++){\r\n\t \t\tif($options[x].value == \"ferie\"){\r\n\t \t\t$options[x].selected = true;\r\n\t \t}\r\n }\r\n \t\t\t}else if($(\"#\"+tipologiaAssenze).text() == \"(Pr)\"){\r\n \t\t\t\tvar $selectPermessi = $('#oreOrdinare select');\r\n \t var $optionsPermessi = $('option', $selectPermessi);\r\n \t for(var xPermessi = 0; xPermessi < $optionsPermessi.length; xPermessi++){\r\n\t \t\t\t\tif($optionsPermessi[xPermessi].value == \"permessi\"){\r\n\t \t\t\t\t\t$optionsPermessi[xPermessi].selected = true;\r\n\t \t}\r\n \t }\r\n \t\t\t}else if($(\"#\"+tipologiaAssenze).text() == \"(M)\"){\r\n \t\t\t\tvar $selectMutua = $('#oreOrdinare select');\r\n \t var $optionsMutua = $('option', $selectMutua);\r\n \t for(var xMutua = 0; xMutua < $optionsMutua.length; xMutua++){\r\n\t \t\t\t\tif($optionsMutua[xMutua].value == \"mutua\"){\r\n\t \t\t\t\t\t$optionsMutua[xMutua].selected = true;\r\n\t \t}\r\n \t }\r\n \t\t\t}else if($(\"#\"+tipologiaAssenze).text() == \"(PNR)\"){\r\n \t\t\t\tvar $selectPeN = $('#oreOrdinare select');\r\n \t var $optionsPeN = $('option', $selectPeN);\r\n \t for(var xPeN = 0; xPeN < $optionsPeN.length; xPeN++){\r\n\t \t\t\t\tif($optionsPeN[xPeN].value == \"permessiNonRetribuiti\"){\r\n\t \t\t$optionsPeN[xPeN].selected = true;\r\n\t \t}\r\n \t }\r\n \t\t\t}\r\n\t\t}else{\r\n\t\t\t$(\"#oreOrdinare select\").css(\"display\",\"none\");\r\n\t\t}\r\n\t\t\r\n\t\t// carico le note\r\n\t\tif(note != \"\" && note != \"null\"){\r\n\t\t\tdocument.compilaOre.note.value = note;\r\n\t\t}else{\r\n\t\t\tdocument.compilaOre.note.value = \"Inserisci qui le Note\";\r\n\t\t}\r\n\t\t\r\n\t\t//carico la voce del bottone\r\n\t\t$(\".save input\").val(\"modifica ore\");\r\n\t\t\r\n\t\t\r\n\t\t$('#compilade').dialog({\r\n\t\t\tmodal: true,\r\n\t\t\tautoOpen: true,\r\n\t\t\theight: 400,\r\n\t\t\twidth: 550,\r\n\t\t\tposition: [350,200],\r\n\t\t\tshow: {\r\n\t\t\t\teffect: \"blind\",\r\n\t\t\t\tduration: 1000\r\n\t\t\t},\r\n\t\t\thide: {\r\n\t\t\t\teffect: \"explode\",\r\n\t\t\t\tduration: 1000\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}else{\r\n\t\t\r\n\t\tdocument.compilaOre.azione.value = \"salvaBozza\";\r\n\t\t\r\n\t\tdocument.compilaOre.parametro.value = commessa;\r\n\t\t\r\n\t\tdocument.compilaOre.parametri.value = $(\"#parametri\"+name).val();\r\n\t\t\r\n\t\t// carico le ore ordinare\r\n\t\tdocument.compilaOre.oreOrd.value = $(\"#\"+ore).val();\r\n\t\t\r\n\t\t//carico le ore straordinarie\r\n\t\tdocument.compilaOre.oreStrao.value = $(\"#\"+straordinario).val();\r\n\t\t\r\n\t\t//carico le ore assenze\r\n\t\tdocument.compilaOre.assenze.value = $(\"#\"+assenze).val();\r\n\t\t\r\n\t\t$(\"#oreOrdinare select\").css(\"display\",\"none\");\r\n\t\t\r\n\t\t//faccio questo ciclo per resettare il menu di gestione delle assenze.\r\n\t\tvar $selectDefault = $('#oreOrdinare select');\r\n var $optionsDefault = $('option', $selectDefault);\r\n for(var xDefault = 0; xDefault < $optionsDefault.length; xDefault++){\r\n\t\t\tif($optionsDefault[xDefault].value == \"\"){\r\n \t\t$optionsDefault[xDefault].selected = true;\r\n \t}\r\n }\r\n\t\t\r\n\t\t// carico le note\r\n\t\tif(note != \"\" && note != \"null\"){\r\n\t\t\tdocument.compilaOre.note.value = note;\r\n\t\t}else{\r\n\t\t\tdocument.compilaOre.note.value = \"Inserisci qui le Note\";\r\n\t\t}\r\n\t\t\r\n\t\t//carico la voce del bottone\r\n\t\t$(\".save input\").val(\"salva bozza\");\r\n\t\t\r\n\t\t$('#compilade').dialog({\r\n\t\t\tmodal: true,\r\n\t\t\tautoOpen: true,\r\n\t\t\theight: 400,\r\n\t\t\twidth: 550,\r\n\t\t\tposition: [350,200],\r\n\t\t\tshow: {\r\n\t\t\t\teffect: \"blind\",\r\n\t\t\t\tduration: 1000\r\n\t\t\t},\r\n\t\t\thide: {\r\n\t\t\t\teffect: \"explode\",\r\n\t\t\t\tduration: 1000\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n\t\r\n\treturn false;\r\n}", "nombreCompleeto(){\n //return this._nombre+ ' '+this._apellido+ ', '+this._departamento;\n //super es par aceder metodo padre\n return super.nombreCompleeto()+ ', '+this._departamento;\n }", "function revisarColisiones() {\n //Colision con bloques\n for (let i = 0; i < bloques.length; i++) {\n if (posicionActualBola[0] > bloques[i].bottomLeft[0] && posicionActualBola[0] < bloques[i].bottomRigth[0] && posicionActualBola[1] + diametro > bloques[i].bottomLeft[1] && posicionActualBola[1] < bloques[i].topLeft[1]) {\n const todosLosBloques = Array.from(document.querySelectorAll(\".bloque\"));\n todosLosBloques[i].classList.remove(\"bloque\");\n bloques.splice(i, 1);\n cambiarDireccion();\n }\n }\n\n //Colisiones con las paredes\n if (posicionActualBola[0] >= anchoTablero - diametro || posicionActualBola[1] >= altoTablero - diametro || posicionActualBola[0] <= 0 || posicionActualBola[1] <= 0) {\n cambiarDireccion();\n }\n //revision colision con usuario\n if (posicionActualBola[0] > posicionActualUsuario[0] && posicionActualBola[0] < posicionActualUsuario[0] + anchoBloque && posicionActualBola[1] > posicionActualUsuario[1] && posicionActualBola[1] < posicionActualUsuario[1] + altoBloque) {\n cambiarDireccion();\n }\n}", "operation() {\n let result = 'Iniciando operacion atender cliente \\n';\n result += this.subsystem1.operation1();\n result += this.subsystem2.operation1();\n \n result += '\\nEmpesar a realizar Operacion\\n';\n result += this.subsystem1.operationN();\n result += this.subsystem2.operationZ();\n return result;\n }", "function dibujarFresado115(modelo,di,pos,document){\n\t\n\t//ESTABLECER CAPA\n\tvar op_fresado = new RAddObjectsOperation();\n\tdi.setCurrentLayer(\"Fresado\"); //Seleccionar la capa de fresado\n\t\n\t\n\tvar plieguesInf=[pliegueInf1, pliegueInf2, pliegueInf3, pliegueInf4]\n\t\n\t//sacar el mayor pliegue\n\tpliegueInferior=pliegueInf1\n\tfor (n=1 ; n<4 ; n=n+1){\n\t\tif (pliegueInferior<plieguesInf[n]) {\n\t\t\tpliegueInferior=plieguesInf[n]\n\t\t}\n\t}\n\t\n\t\n\t\n\t//Puntos trayectoria\t\n\tvar fresado11 = new RVector(pos.x+alaIzquierda+anchura1,pos.y+alaInferior+pliegueInferior)\n\tvar fresado12 = new RVector(pos.x+alaIzquierda+anchura1+anchura2,pos.y+alaInferior+pliegueInferior)\n\tvar fresado13 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior)\n\tvar fresado14 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior)\n\t\n\tvar fresado16 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior) \n\tvar fresado17 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado18 = new RVector(pos.x+alaIzquierda+anchura1,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado19 = new RVector(pos.x+alaIzquierda+anchura1+anchura2,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado20 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado21 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado22 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\tvar fresado2 = new RVector(pos.x+alaIzquierda,pos.y)\n\t\n\t\n\tvar line = new RLineEntity(document, new RLineData( fresado16 , fresado14 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado20 , fresado13 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado12 , fresado19 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado18 , fresado11 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado17 , fresado21 ));\n\top_fresado.addObject(line,false);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t//anchura1 - Inferior\n\tif (anchura1>pliegueInf1) {\n\t\tvar fresado1 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\tvar fresado3 = new RVector(pos.x+alaIzquierda+anchura1-pliegueInf1,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t\n\t\tvar line = new RLineEntity(document, new RLineData( fresado1 , fresado3 ));\n\t\top_fresado.addObject(line,false);\n\t} \n\t\n\t//anchura2 - Inferior\n\tif (anchura2>(pliegueInf2*2)) {\n\t\tvar fresado4 = new RVector(pos.x+alaIzquierda+anchura1+pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar fresado5 = new RVector(pos.x+alaIzquierda+anchura1+anchura2-pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado4 , fresado5 ));\n\t\top_fresado.addObject(line,false);\n\t}\n\t\n\t//anchura3 - Inferior\n\tif (anchura3>(pliegueInf3*2)) {\n\t\tvar fresado6 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar fresado7 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3-pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado6 , fresado7 ));\n\t\top_fresado.addObject(line,false);\n\t} \n\t\n\t//anchura4 - Inferior\n\tif (anchura4>pliegueInf4) {\n\t\tvar fresado8 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar fresado9 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado8 , fresado9 ));\n\t\top_fresado.addObject(line,false);\n\t} \n\t\n\t\n\t\n\n\t\n\t\n\n\t\n\t//anchura1 - Superior\n\tif (anchura1>(pliegueSuperior*2)) {\n\t\tvar fresado25 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado26 = new RVector(pos.x+alaIzquierda+anchura1-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado25 , fresado26 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\tif (crearFresado==1) { //Esto es para hacer el fresado externo o no\n\t\t\tvar fresado27 = new RVector(pos.x+alaIzquierda+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado28 = new RVector(pos.x+alaIzquierda+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado27 , fresado28 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t}\n\t}\n\t\n\t//anchura2 - Superior\n\tif (anchura2>(pliegueSuperior*2)) {\n\t\tvar fresado31 = new RVector(pos.x+alaIzquierda+anchura1+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado32 = new RVector(pos.x+alaIzquierda+anchura1+anchura2-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado31 , fresado32 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\tif (crearFresado==1) {\n\t\t\tvar fresado29 = new RVector(pos.x+alaIzquierda+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado30 = new RVector(pos.x+alaIzquierda+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado29 , fresado30 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\tvar fresado33 = new RVector(pos.x+alaIzquierda+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado34 = new RVector(pos.x+alaIzquierda+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado33 , fresado34 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t}\n\t}\n\t\n\t//anchura3 - Superior\n\tif (anchura3>pliegueSuperior*2) {\n\t\tvar fresado37 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado38 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado37 , fresado38 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\tif (crearFresado==1) {\n\t\t\tvar fresado35 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado36 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado35 , fresado36 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\tvar fresado39 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado40 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado39 , fresado40 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t}\n\t}\n\t\n\t//anchura4 - Superior\n\tif (anchura4>pliegueSuperior) {\n\t\tvar fresado43 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado44 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado43 , fresado44 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\tif (crearFresado==1) {\n\t\t\tvar fresado41 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado42 = new RVector(pos.x+alaIzquierda+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado41 , fresado42 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t}\n\t}\n\t\n\t\n\tvar fresado2 = new RVector(pos.x+alaIzquierda,pos.y)\n\tvar fresado25 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\tvar line = new RLineEntity(document, new RLineData( fresado2 , fresado25 ));\n\top_fresado.addObject(line,false);\n\t\n\t\n\t\n\treturn op_fresado; \n}", "function dibujarFresado118(modelo,di,pos,document){\n\t\n\t\n\t\n\t//ESTABLECER CAPA\n\tvar op_fresado = new RAddObjectsOperation();\n\tdi.setCurrentLayer(\"Fresado\"); //Seleccionar la capa de fresado\n\t\n\tvar plieguesInf=[pliegueInf1, pliegueInf2, pliegueInf3, pliegueInf4, pliegueInf5]\n\tEAction.handleUserMessage(\"ha entrado 11111111111111111 \");\n\t//sacar el mayor pliegue\n\tpliegueInferior=pliegueInf1\n\tfor (n=0;n<5;n=n+1){ \n\t\tif (pliegueInferior<plieguesInf[n]){\n\t\t\tpliegueInferior=plieguesInf[n]\n\t\t}\n\t}\n\t\n\t\n\t\n\t//Puntos trayectoria \n\t\n\t\n\tvar fresado11 = new RVector(pos.x-anchura1,pos.y+alaInferior+pliegueInferior)\n\tvar fresado12 = new RVector(pos.x-anchura1-anchura2,pos.y+alaInferior+pliegueInferior)\n\tvar fresado13 = new RVector(pos.x-anchura1-anchura2-anchura3,pos.y+alaInferior+pliegueInferior)\n\tvar fresado14 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4,pos.y+alaInferior+pliegueInferior)\n\tvar fresado15 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-anchura5,pos.y+alaInferior+pliegueInferior) //nuevo\n\t\n\t\n\t\n\tvar fresado16 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior) \n\tvar fresado17 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado18 = new RVector(pos.x-anchura1,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado19 = new RVector(pos.x-anchura1-anchura2,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado20 = new RVector(pos.x-anchura1-anchura2-anchura3,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado21 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado22 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-anchura5,pos.y+alaInferior+pliegueInferior+alturaPlaca) //muevo\n\t\n\tvar fresado23 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-anchura5,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\n\t\n\t\n\t\n\t\n\tif (anchura5>pliegueInf5){ \n\t\tvar fresado14b = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-anchura5,pos.y+alaInferior+pliegueInferior-pliegueInf5-alaInferior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado14b , fresado23 ));\n\t\top_fresado.addObject(line,false);\n\n\t}else{\n\t\tvar line = new RLineEntity(document, new RLineData( fresado15 , fresado23 ));\n\t\top_fresado.addObject(line,false);\n\t}\n\t\n\t\tvar line = new RLineEntity(document, new RLineData( fresado16 , fresado15 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado15 , fresado22 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado21 , fresado14 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado13 , fresado20 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado19 , fresado12 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado11 , fresado18 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado17 , fresado22 ));\n\t\top_fresado.addObject(line,false);\n\n\t\n\t\n\t\n\tEAction.handleUserMessage(\"ha entrado 44444444444444444444444444 \");\n\t\n\t\n\t//anchura1 - Inferior\n\tif (anchura1>pliegueInf1){\n\t\t//var fresado10 = new RVector(pos.x,pos.y+pliegueInferior+alaInferior) \n\t\tvar fresado1 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t//var fresado2 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\tvar fresado3 = new RVector(pos.x-anchura1+pliegueInf1,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t\n\t\t//dibujarFresado_auxiliar(doc,fresado10,fresado1)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado1 , fresado3 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t//dibujarFresado_auxiliar(doc,fresado2,fresado11)\n\t}\n\t\n\t//anchura2 - Inferior\n\tif (anchura2>(pliegueInf2*2)){ \n\t\tvar fresado4 = new RVector(pos.x-anchura1-pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar fresado5 = new RVector(pos.x-anchura1-anchura2+pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado4 , fresado5 ));\n\t\top_fresado.addObject(line,false);\n\n\t}\n\t\n\t//anchura3 - Inferior\n\tif (anchura3>(pliegueInf3*2)){ \n\t\tvar fresado6 = new RVector(pos.x-anchura1-anchura2-pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar fresado7 = new RVector(pos.x-anchura1-anchura2-anchura3+pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado6 , fresado7 ));\n\t\top_fresado.addObject(line,false);\n\t} \n\t\n\t//anchura4 - Inferior\n\tif (anchura4>(pliegueInf4*2)){ \n\t\tvar fresado8 = new RVector(pos.x-anchura1-anchura2-anchura3-pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar fresado9 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4+pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado8 , fresado9 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t} \n\n\t//anchura4 - Inferior\n\tif (anchura5>pliegueInf5){ \n\t\tvar fresado10 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-pliegueInf5,pos.y+alaInferior+pliegueInferior-pliegueInf5)\n\t\tvar fresado11 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-anchura5,pos.y+alaInferior+pliegueInferior-pliegueInf5)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado10 , fresado11 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t} \n\t\n\t\n\t\n\n\tEAction.handleUserMessage(\"ha entrado 555555555555555555555555555555555555555555555555 \");\n\t\n\n\t\n\t//anchura1 - Superior\n\tif (anchura1>(pliegueSuperior*2)){ \n\t\tvar fresado25 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado26 = new RVector(pos.x-anchura1+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado25 , fresado26 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ //Esto es para hacer el fresado externo o no\n\t\t\tvar fresado27 = new RVector(pos.x-anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado28 = new RVector(pos.x-anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado27 , fresado28 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura2 - Superior\n\tif (anchura2>(pliegueSuperior*2)){ \n\t\tvar fresado31 = new RVector(pos.x-anchura1-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado32 = new RVector(pos.x-anchura1-anchura2+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado31 , fresado32 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado29 = new RVector(pos.x-anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado30 = new RVector(pos.x-anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado29 , fresado30 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado33 = new RVector(pos.x-anchura1-anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado34 = new RVector(pos.x-anchura1-anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado33 , fresado34 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura3 - Superior\n\tif (anchura3>pliegueSuperior*2){\n\t\tvar fresado37 = new RVector(pos.x-anchura1-anchura2-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado38 = new RVector(pos.x-anchura1-anchura2-anchura3+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado37 , fresado38 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado35 = new RVector(pos.x-anchura1-anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado36 = new RVector(pos.x-anchura1-anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado35 , fresado36 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado39 = new RVector(pos.x-anchura1-anchura2-anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado40 = new RVector(pos.x-anchura1-anchura2-anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado39 , fresado40 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura4 - Superior\n\tif (anchura4>pliegueSuperior*2){ \n\t\tvar fresado43 = new RVector(pos.x-anchura1-anchura2-anchura3-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado44 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado43 , fresado44 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado41 = new RVector(pos.x-anchura1-anchura2-anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado42 = new RVector(pos.x-anchura1-anchura2-anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado41 , fresado42 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado45 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado46 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado45 , fresado46 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t//anchura5 - Superior\n\tif (anchura5>pliegueSuperior){ \n\t\tvar fresado49 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado50 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-anchura5,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar line = new RLineEntity(document, new RLineData( fresado49 , fresado50 ));\n\t\top_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado47 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado48 = new RVector(pos.x-anchura1-anchura2-anchura3-anchura4-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado47 , fresado48 ));\n\t\t\top_fresado.addObject(line,false);\n\t\t\t\n\t\t}\n\t}\n\t\n\t\n\treturn op_fresado;\n\t\n\t\n\t\n\t\n\t\n}", "function reglaRebajaPrecios(){\n if(producto.super_avance.sellIn = 0)\n {\n precio_SuperAvance - 2;\n\n if(producto.fc_superduper.sellIn = 0){\n precio_FullSuperDuper - 2;\n\n if(producto.f_cobertura.sellIn = 0){\n precio_FullCobertura - 2;\n }\n }\n }else{\n }\n}", "function hipotesis_nula_comprobada(tabla_de_contingencia, alpha) {\n let chi2_calculado = calcular_chi2_calculado(tabla_de_contingencia);\n let chi2_critico = calcular_chi2_critico(tabla_de_contingencia, alpha);\n // Siguiendo la regla, si calculado es menor que critico, los parametros entonces son independientes (hipotesis nula)\n if (chi2_calculado < chi2_critico) {\n return true;\n } else {\n return false;\n }\n}", "cocina(){}", "function gen_op_rorl_T1_im_cc(param1)\n{\n //gen_opparam_ptr.push(param1);\n gen_opc_ptr.push({func:op_rorl_T1_im_cc, param: param1});\n}", "calculerPourUnelement(element,bacterie,col){\n\t\tlet glucose = element.glucose;//\n\t\tlet color = ['#000000','#800000','#008000','#cc99ff','#ccff99','#ffe699','#ff6384','#36a2eb','#cc65fe','#ffce56'];\n\t\tlet bacterieTab = new Array(this.nombreHeurs);\n\t\tbacterieTab[0] = this.bacteriesBase;\n\t\tfor(let i = 1 ; i < this.nombreHeurs ; i++){\n\t\t\tconsole.log(\"Etape : \"+i+\" glucose : \"+glucose+\"\\n\");\n\t\t\tif(glucose > 0){\n\t\t\t\tlet ajoutTemp = bacterieTab[i-1] * element.facteurMultiplication * bacterie.division * this.facteurTemperature(element,bacterie) * this.facteurPh(element,bacterie);\n\t\t\t\tbacterieTab[i] = ajoutTemp;\n\t\t\t\tif(glucose - GlucoseParDivision*ajoutTemp >= 0){\n\t\t\t\t\tglucose = glucose - GlucoseParDivision*ajoutTemp ;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tglucose = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbacterieTab[i] = bacterieTab[i-1]\n\t\t\t}\n\t\t\tif(i >= cycleBacterien ){\n\t\t\t\tif(bacterieTab[i] - bacterieTab[i-cycleBacterien] >= 0){\n\t\t\t\tbacterieTab[i] = bacterieTab[i] - bacterieTab[i-cycleBacterien];//mort de bacteries\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbacterieTab[i] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn {data : bacterieTab , label : element.nom ,borderColor : color[col],fill : false ,borderWidth : 1 };\n\t}", "function buscarCerca(posicion) {\n /* Completar la función buscarCerca que realice la búsqueda de los lugares\n del tipo (tipodeLugar) y con el radio indicados en el HTML cerca del lugar\n pasado como parámetro y llame a la función marcarLugares. */\n let radio = parseInt(document.getElementById(\"radio\").value);\n let tipoLugar = document.getElementById(\"tipoDeLugar\").value;\n let request = {\n location: posicion,\n radius: radio,\n type: tipoLugar\n };\n servicioLugares.nearbySearch(request, marcadorModulo.marcarLugares);\n }", "function nombreFuncion(parametro){\n return \"regresan algo\"\n}", "function calculate(){\r\n let str\r\n let y=math.complex(0,1/Xc);\r\n let z = math.complex(R*l,Xl);\r\n \r\n\r\n let drop=document.getElementById('drop')\r\n if(drop.value===\"short\"){\r\n console.log(\"Short\");\r\n str=\"Short\"\r\n abcdParams(\"S\",z)\r\n\r\n }else if(drop.value===\"nominalpi\"){\r\n console.log(\"Nominal-Pi\");\r\n str=\"Nominal-Pi\"\r\n abcdParams(\"N\",z,y)\r\n \r\n }else if(drop.value===\"long\"){\r\n console.log(\"Long\");\r\n str=\"Long\"\r\n abcdParams(\"L\",z,y)\r\n }\r\n\r\n if(pfr<0){\r\n pfr=math.abs(pfr)\r\n Ir= math.complex({r:receivingCurr(Pr,pfr,V),phi:-math.acos(pfr)});\r\n sign =1;\r\n }\r\n else{\r\n pfr=math.abs(pfr)\r\n Ir= math.complex({r:receivingCurr(Pr,pfr,V),phi:math.acos(pfr)});\r\n sign =-1;\r\n }\r\n\r\n let a =math.multiply(A,parseFloat(V)/math.sqrt(3))\r\n let b= math.multiply(B,Ir)\r\n let c=math.multiply(C,parseFloat(V)/math.sqrt(3))\r\n let d =math.multiply(D,Ir)\r\n\r\n Vs=math.add(a,b);\r\n Is=math.add(c,d);\r\n\r\n let Vr=VR(parseFloat(V)/math.sqrt(3))\r\n let eff=effc(Pr,Vs,Is)\r\n let comp\r\n let Cs=[]\r\n let Cr=[]\r\n let Vp=parseFloat(V)/math.sqrt(3)\r\n \r\n if(drop.value===\"short\"){\r\n Cs.push((math.abs(D)*Math.pow(math.abs(Vs),2)*math.cos(math.atan(B.im/B.re)))/math.abs(B))\r\n Cs.push((math.abs(D)*Math.pow(math.abs(Vs),2)*math.sin(math.atan(B.im/B.re)))/math.abs(B))\r\n Cr.push((math.abs(A)*Math.pow(Vp,2)*math.cos(math.atan(B.im/B.re)))/math.abs(B))\r\n Cr.push((math.abs(A)*Math.pow(Vp,2)*math.sin(math.atan(B.im/B.re)))/math.abs(B))\r\n }\r\n else{\r\n Cs.push((math.abs(D)*Math.pow(math.abs(Vs),2)*math.cos(math.atan(B.im/B.re)-math.atan(D.im/D.re)))/math.abs(B))\r\n Cs.push((math.abs(D)*Math.pow(math.abs(Vs),2)*math.sin(math.atan(B.im/B.re)-math.atan(D.im/D.re)))/math.abs(B))\r\n Cr.push((math.abs(A)*Math.pow(Vp,2)*math.cos(math.atan(B.im/B.re)-math.atan(A.im/A.re)))/math.abs(B))\r\n Cr.push((math.abs(A)*Math.pow(Vp,2)*math.sin(math.atan(B.im/B.re)-math.atan(A.im/A.re)))/math.abs(B))\r\n }\r\n\r\n let Rc = math.abs(Vs)*Vp/math.abs(B);\r\n graph(Cs,Cr,Rc)\r\n\r\n\r\n let inputDiv=document.getElementById(\"visible\");\r\n let inputHead=document.getElementById(\"inputhead\");\r\n inputDiv.style.display=\"none\";\r\n inputHead.style.display=\"none\";\r\n let outputDiv=document.getElementById(\"invisible\");\r\n let outputHead=document.getElementById(\"outputhead\");\r\n let graphDiv=document.getElementById(\"graphsec\");\r\n graphDiv.style.display=\"flex\"\r\n let op = document.getElementsByClassName(\"op\");\r\n outputDiv.style.display=\"flex\"\r\n outputHead.style.display=\"flex\"\r\n Ich=chargingCurr();\r\n op[0].innerText=str;\r\n \r\n\r\n op[1].innerText=math.round(L,5);\r\n op[2].innerText=math.round(Cap,12);\r\n op[3].innerText=math.round(Xl,5);\r\n op[4].innerText=math.round(Xc,5);\r\n op[5].innerText=math.round(A,5);\r\n op[6].innerText=math.round(B,5);\r\n op[7].innerText=math.round(C,5);\r\n op[8].innerText=math.round(D,5);\r\n op[9].innerText=math.round(Vs,5);\r\n op[10].innerText=math.round(Is,5);\r\n op[11].innerText=math.round(Vr,5);\r\n op[12].innerText=math.round((Ps-Pr)/math.pow(10,6),5);\r\n op[13].innerText=math.round(eff,5);\r\n op[14].innerText=math.round(Ich,5);\r\n \r\n if(drop.value ===\"short\"){\r\n comp=compensation()\r\n \r\n if(comp){\r\n op[15].innerText=math.round(comp,5)\r\n }\r\n else{\r\n op[15].innerText=\"invalid\"\r\n }\r\n document.getElementsByClassName('h')[0].style.display=\"block\"\r\n if(comp<0)\r\n document.getElementsByClassName('h')[1].style.display=\"block\"\r\n else\r\n document.getElementsByClassName('h')[2].style.display=\"block\"\r\n }\r\n else{\r\n op[15].style.display=\"none\"\r\n document.getElementsByClassName('h')[0].style.display=\"none\"\r\n \r\n }\r\n \r\n}", "regenerar(puntos, longitud, numeroObstaculos,\r\n\t\t \t\tnumeroRecompensas = 10, maxDesplzamientoObstaculo = 5,\r\n\t\t\t\tmaxDesplzamientoRecompensa = 5) {\r\n\r\n\t\tthis.remove (this.apariencia);\t// quitar antigua representacion grafica\r\n\r\n\t\t// nuevo recorrido aleatorio\r\n\t\tthis.spline = this.generarRecorridoAleatorio(puntos, longitud);\r\n\r\n\t\t// nuevos items del camino\r\n\t\tthis.generarObstaculos(this.spline, numeroObstaculos, maxDesplzamientoObstaculo);\r\n\t\tthis.generarRecompensas(this.spline, numeroRecompensas, maxDesplzamientoRecompensa);\r\n\r\n\t\t// forma del camino\r\n\t\tvar options = {bevelEnabled: false, depth : 1 , steps : puntos * puntos , curveSegments : 25, extrudePath: this.spline};\r\n\t\tvar geometry = new THREE.ExtrudeBufferGeometry(this.forma, options);\r\n\t\tvar material = new THREE.MeshPhongMaterial({\r\n\t\t\ttransparent: true,\r\n\t\t\topacity: 0.8,\r\n\t\t\tside: THREE.BackSide,\r\n\t\t\tsmoothShading: true,\r\n\t\t\tshading: THREE.smoothShading,\r\n\t\t\tcolor: 0x0000FF,\r\n\t\t\t// wireframe: true,\r\n\t\t\t// map: textura\r\n\t\t});\r\n\r\n\t\tthis.apariencia = new THREE.Mesh( geometry, material ) ;\r\n\t\tthis.add( this.apariencia );\r\n\t}", "function dibujarFresado111(modelo,di,pos,document){\n\t\n\t//ESTABLECER CAPA\n\tvar op_fresado = new RAddObjectsOperation();\n\tdi.setCurrentLayer(\"Fresado\"); //Seleccionar la capa de fresado\n\t\n\t\n\t\n\tvar plieguesInf=[pliegueInf1, pliegueInf2, pliegueInf3, pliegueInf4, pliegueInf5]\n\t\n\t//sacar el mayor pliegue\n\tpliegueInferior=pliegueInf1\n\tfor (var n=0 ; n<5 ; n=n+1){\n\t\tif (pliegueInferior<plieguesInf[n]){\n\t\t\tpliegueInferior=plieguesInf[n]\n }\n }\n\t\n\t\n\t\n\t//Puntos trayectoria \n\n\t\n\tvar fresado11 = new RVector(pos.x+anchura1,pos.y+alaInferior+pliegueInferior)\n\tvar fresado12 = new RVector(pos.x+anchura1+anchura2,pos.y+alaInferior+pliegueInferior)\n\tvar fresado13 = new RVector(pos.x+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior)\n\tvar fresado14 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior)\n\tvar fresado15 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+anchura5,pos.y+alaInferior+pliegueInferior) //nuevo\n\t\n\t\n\t\n\tvar fresado16 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior) \n\tvar fresado17 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\t\n\tvar fresado18 = new RVector(pos.x+anchura1,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado19 = new RVector(pos.x+anchura1+anchura2,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado20 = new RVector(pos.x+anchura1+anchura2+anchura3,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado21 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+pliegueInferior+alturaPlaca)\n\tvar fresado22 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+anchura5,pos.y+alaInferior+pliegueInferior+alturaPlaca) //muevo\n\t\n\tvar fresado23 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+anchura5,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\n\t\n\t\n\t\n\t\n\tif (anchura5>pliegueInf5){\n\t\tvar fresado14b = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+anchura5,pos.y+alaInferior+pliegueInferior-pliegueInf5-alaInferior)\n var line = new RLineEntity(document, new RLineData( fresado14b , fresado23 ));\n\t op_fresado.addObject(line,false);\n\t\t\n }else{\n var line = new RLineEntity(document, new RLineData( fresado15 , fresado23 ));\n\t op_fresado.addObject(line,false);\n }\n\t\n\tvar line = new RLineEntity(document, new RLineData( fresado16 , fresado15 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado15 , fresado22 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado21 , fresado14 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado13 , fresado20 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado19 , fresado12 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado11 , fresado18 ));\n\top_fresado.addObject(line,false);\n\tvar line = new RLineEntity(document, new RLineData( fresado17 , fresado22 ));\n\top_fresado.addObject(line,false);\n\t\n\t\n\t\n\t\n\t\n\t//anchura1 - Inferior\n\tif (anchura1>pliegueInf1){\n\t\t//var fresado10 = new RVector(pos.x,pos.y+pliegueInferior+alaInferior) \n\t\tvar fresado1 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t//var fresado2 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\tvar fresado3 = new RVector(pos.x+anchura1-pliegueInf1,pos.y+alaInferior+pliegueInferior-pliegueInf1)\n\t\t\n\t\t//dibujarFresado_auxiliar(doc,fresado10,fresado1)\n var line = new RLineEntity(document, new RLineData( fresado1 , fresado3 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t//dibujarFresado_auxiliar(doc,fresado2,fresado11)\n } \n\t\n\t//anchura2 - Inferior\n\tif (anchura2>(pliegueInf2*2)){\n\t\tvar fresado4 = new RVector(pos.x+anchura1+pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n\t\tvar fresado5 = new RVector(pos.x+anchura1+anchura2-pliegueInf2,pos.y+alaInferior+pliegueInferior-pliegueInf2)\n var line = new RLineEntity(document, new RLineData( fresado4 , fresado5 ));\n\t op_fresado.addObject(line,false);\n\t\t\n }\n\t\n\t//anchura3 - Inferior\n\tif (anchura3>(pliegueInf3*2)){\n\t\tvar fresado6 = new RVector(pos.x+anchura1+anchura2+pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n\t\tvar fresado7 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueInf3,pos.y+alaInferior+pliegueInferior-pliegueInf3)\n var line = new RLineEntity(document, new RLineData( fresado6 , fresado7 ));\n\t op_fresado.addObject(line,false);\n } \n\t\n\t//anchura4 - Inferior\n\tif (anchura4>(pliegueInf4*2)){\n\t\tvar fresado8 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n\t\tvar fresado9 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4-pliegueInf4,pos.y+alaInferior+pliegueInferior-pliegueInf4)\n var line = new RLineEntity(document, new RLineData( fresado8 , fresado9 ));\n\t op_fresado.addObject(line,false);\n\t\t\n } \n\t\n\t//anchura4 - Inferior\n\tif (anchura5>pliegueInf5){\n\t\tvar fresado10 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+pliegueInf5,pos.y+alaInferior+pliegueInferior-pliegueInf5)\n\t\tvar fresado11 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+anchura5,pos.y+alaInferior+pliegueInferior-pliegueInf5)\n var line = new RLineEntity(document, new RLineData( fresado10 , fresado11 ));\n\t op_fresado.addObject(line,false);\n\t\t\n } \n\t\n\t\n\t\n\n\t\n\t\n\n\t\n\t//anchura1 - Superior\n\tif (anchura1>(pliegueSuperior*2)){\n\t\tvar fresado25 = new RVector(pos.x,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado26 = new RVector(pos.x+anchura1-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado25 , fresado26 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ //Esto es para hacer el fresado externo o no\n\t\t\tvar fresado27 = new RVector(pos.x+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado28 = new RVector(pos.x+anchura1-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado27 , fresado28 ));\n\t op_fresado.addObject(line,false);\n }\n }\n\t\n\t//anchura2 - Superior\n\tif (anchura2>(pliegueSuperior*2)){\n\t\tvar fresado31 = new RVector(pos.x+anchura1+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado32 = new RVector(pos.x+anchura1+anchura2-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado31 , fresado32 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado29 = new RVector(pos.x+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado30 = new RVector(pos.x+anchura1+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado29 , fresado30 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado33 = new RVector(pos.x+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado34 = new RVector(pos.x+anchura1+anchura2-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n var line = new RLineEntity(document, new RLineData( fresado33 , fresado34 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n }\n }\n\t\n\t//anchura3 - Superior\n\tif (anchura3>pliegueSuperior*2){\n\t\tvar fresado37 = new RVector(pos.x+anchura1+anchura2+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado38 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado37 , fresado38 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){ \n\t\t\tvar fresado35 = new RVector(pos.x+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado36 = new RVector(pos.x+anchura1+anchura2+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado35 , fresado36 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado39 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado40 = new RVector(pos.x+anchura1+anchura2+anchura3-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n var line = new RLineEntity(document, new RLineData( fresado39 , fresado40 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n }\n }\n\t\n\t//anchura4 - Superior\n\tif (anchura4>pliegueSuperior*2){\n\t\tvar fresado43 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado44 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4-pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado43 , fresado44 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado41 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado42 = new RVector(pos.x+anchura1+anchura2+anchura3+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado41 , fresado42 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n\t\t\tvar fresado45 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\t\tvar fresado46 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4-pliegueSuperior+margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar line = new RLineEntity(document, new RLineData( fresado45 , fresado46 ));\n\t op_fresado.addObject(line,false);\n }\n }\n\t\n\t//anchura5 - Superior\n\tif (anchura5>pliegueSuperior){\n\t\tvar fresado49 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+pliegueSuperior,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n\t\tvar fresado50 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+anchura5,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado49 , fresado50 ));\n\t op_fresado.addObject(line,false);\n\t\t\n\t\t\n\t\tif (crearFresado==1){\n\t\t\tvar fresado47 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior+alaSuperior)\n\t\t\tvar fresado48 = new RVector(pos.x+anchura1+anchura2+anchura3+anchura4+pliegueSuperior-margenFresado,pos.y+alaInferior+pliegueInferior+alturaPlaca+pliegueSuperior)\n var line = new RLineEntity(document, new RLineData( fresado47 , fresado48 ));\n\t op_fresado.addObject(line,false);\n\t\t\t\n }\n }\n\t\n\t\n\treturn op_fresado;\n}", "function ControlliPagamento(contr) {\r\n var PranzoAbbonamento = document.getElementById(\"AbbonamentoPranzo\");\r\n \tvar CenaAbbonamento = document.getElementById(\"AbbonamentoCena\");\r\n\t\t\tif (IsStringNumeric(document.getElementById(\"prezzoCenaFinale\").innerHTML)) {\r\n\t\t\t\tCostoCenaFinale = document.getElementById(\"prezzoCenaFinale\").innerHTML;\r\n\t\t\t} else {\r\n\t\t\t\tCostoCenaFinale = \"10,00\";\r\n\t\t\t}\r\n\t\t\tif (IsStringNumeric(document.getElementById(\"prezzoCena\").innerHTML)) {\r\n\t\t\t\tCostoCena = document.getElementById(\"prezzoCena\").innerHTML;\r\n\t\t\t} else {\r\n\t\t\t\tCostoCena = \"3,00\";\r\n\t\t\t}\r\n\t\t\tif (IsStringNumeric(document.getElementById(\"prezzoPranzo\").innerHTML)) {\r\n\t\t\t\tCostoPranzo = document.getElementById(\"prezzoPranzo\").innerHTML;\r\n\t\t\t} else {\r\n\t\t\t\tCostoPranzo = \"3,00\";\r\n\t\t\t}\r\n\t\t\t//var Pranzo = null;\r\n\t\t\t//var PrezzoPranzo = null;\r\n\t\t\t//var GratisPranzo = null;\r\n\t\t\tvar cella = null;\r\n\t\t\t\r\n\t\t\tswitch (contr.name) {\r\n\t\t\t\tcase \"Pranzo[]\":\r\n\t\t\t\t\t// individuo i tre controlli nella cella\r\n\t\t\t\t\tcella = CercaControlliPranzo(contr)\r\n\t\t\t\t\t// controlla se l'utente ha selezionato il check gratis \r\n\t\t\t\t\tif (!PranzoAbbonamento.checked) {\r\n\t\t\t\t\t\tif (cella.Pranzo.checked) {\r\n\t\t\t\t\t\t\t//if (cella.CostoPranzo.value==\"\" || cella.CostoPranzo.value==\"0\") {\r\n\t\t\t\t\t\t\tcella.CostoPranzo.value = CostoPranzo;\r\n\t\t\t\t\t\t\tcella.CostoPranzo.disabled = false;\r\n\t\t\t\t\t\t\tcampoLocale = cella.CostoPranzo;\t\t\t\t// per fare funzionare la focus su FF\r\n\t\t\t\t\t\t\tsetTimeout(\"campoLocale.focus();\", 1);\t\t\t// per fare funzionare la focus su FF\r\n\t\t\t\t\t\t\tcella.CostoPranzo.select();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t cella.CostoPranzo.disabled=true;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"Cena[]\":\r\n\t\t\t\t\t// individuo i tre controlli nella cella\r\n\t\t\t\t\tcella = CercaControlliCena(contr)\r\n\t\t\t\t\t// controlla se l'utente ha selezionato il check gratis \r\n\t\t\t\t\tif (!CenaAbbonamento.checked) {\r\n\t\t\t\t\t\tif (cella.Cena.checked) {\r\n\t\t\t\t\t\t\t//if (cella.CostoCena.value==\"\" || cella.CostoCena.value==\"0\") {\r\n\t\t\t\t\t\t\tcella.CostoCena.value=CostoCena;\r\n\t\t\t\t\t\t\tcella.CostoCena.disabled=false;\r\n\t\t\t\t\t\t\tcampoLocale = cella.CostoCena;\t\t\t\t\t\t// per fare funzionare la focus su FF\r\n\t\t\t\t\t\t\tsetTimeout(\"campoLocale.focus();\", 1);\t\t\t// per fare funzionare la focus su FF\r\n\t\t\t\t\t\t\tcella.CostoCena.select();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t cella.CostoCena.disabled=true;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"GratisPranzo[]\":\r\n\t\t\t\t\t// individuo i tre controlli nella cella\r\n\t\t\t\t\tcella = CercaControlliPranzo(contr)\r\n\t\t\t\t\t// controlla se l'utente ha selezionato il check gratis \r\n\t\t\t\t\tif (!PranzoAbbonamento.checked) {\r\n\t\t\t\t\t\tif (cella.GratisPranzo.checked) {\r\n\t\t\t\t\t\t\tcella.Pranzo.checked = true;\r\n\t\t\t\t\t\t\tcella.Pranzo.disabled = true;\r\n\t\t\t\t\t\t\tcella.CostoPranzo.value = \"0,00\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcella.Pranzo.checked = false;\r\n\t\t\t\t\t\t\tcella.Pranzo.disabled = false;\r\n\t\t\t\t\t\t\tcella.CostoPranzo.value=\"\";\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"GratisCena[]\":\r\n\t\t\t\t\t// individuo i tre controlli nella cella\r\n\t\t\t\t\tcella = CercaControlliCena(contr)\r\n\t\t\t\t\t// controlla se l'utente ha selezionato il check gratis \r\n\t\t\t\t\tif (!CenaAbbonamento.checked) {\r\n\t\t\t\t\t\tif (cella.GratisCena.checked) {\r\n\t\t\t\t\t\t\tcella.Cena.checked = true;\r\n\t\t\t\t\t\t\tcella.Cena.disabled = true;\r\n\t\t\t\t\t\t\tcella.CostoCena.value = \"0,00\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcella.Cena.checked = false;\r\n\t\t\t\t\t\t\tcella.Cena.disabled = false;\r\n\t\t\t\t\t\t\tcella.CostoCena.value=\"\";\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdocument.getElementById(\"CostoTotaleEuroCalcolato\").value = CalcolaCostoTotale().toFixed(2).replace(\".\", \",\");\r\n\t\t\treturn;\r\n\t\t}", "coupurePrecedente() {\n return this.coupure(this.precedents.reste(), this.suivants.cons(this.precedents.tete()));\n }", "function dibujarFresado125(modelo,di,pos,document){\n\t\n\t//ESTABLECER CAPA\n\tvar op_fresado = new RAddObjectsOperation();\n\tdi.setCurrentLayer(\"Fresado\"); //Seleccionar la capa de fresado\n\t\n\t\n\t\n\tvar fresado1 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior)\n\tvar fresado2 = new RVector(pos.x+alaIzquierda+pliegueIzq,pos.y+alaInferior)\n\tvar fresado3 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1,pos.y+alaInferior)\n\tvar fresado4 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2,pos.y+alaInferior)\n\tvar fresado5 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3,pos.y+alaInferior)\n\tvar fresado6 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior)\n\tvar fresado7 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4+pliegueDer,pos.y+alaInferior)\n\t\n\tvar fresado8 = new RVector(pos.x+alaIzquierda,pos.y+alaInferior+altura1)\n\tvar fresado9 = new RVector(pos.x+alaIzquierda+pliegueIzq,pos.y+alaInferior+altura1)\n\tvar fresado10 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1,pos.y+alaInferior+altura1)\n\tvar fresado11 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2,pos.y+alaInferior+altura1)\n\tvar fresado12 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2,pos.y+alaInferior+altura2)\n\tvar fresado13 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3,pos.y+alaInferior+altura2)\n\tvar fresado14 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4,pos.y+alaInferior+altura2)\n\tvar fresado15 = new RVector(pos.x+alaIzquierda+pliegueIzq+anchura1+anchura2+anchura3+anchura4+pliegueDer,pos.y+alaInferior+altura2)\n\t\n\t\n\t\tvar line = new RLineEntity(document, new RLineData( fresado1 , fresado7 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado1 , fresado8 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado2 , fresado9 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado3 , fresado10 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado4 , fresado12 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado5 , fresado13 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado6 , fresado14 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado7 , fresado15 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado8 , fresado11 ));\n\t\top_fresado.addObject(line,false);\n\t\tvar line = new RLineEntity(document, new RLineData( fresado12 , fresado15 ));\n\t\top_fresado.addObject(line,false);\n\t\n\t\n\n\n\treturn op_fresado; \n\n\t\n\t\n}", "function Puissance4(lig,col,l,c){\r\n //commencement de l'analyse\r\n console.log(\"Valeurs: \"+lig+\" \"+col+\" / Incrément \"+i+ \" \"+c);\r\n if(c == 0 && l == 0){\r\n //pour moi c'est inversé a verticale, b horizontal, c diag gauche et d diag droit\r\n // horizontalité\r\n var va = 1 +Puissance4(lig +1,col,1,0) + Puissance4(lig-1,col,-1,0);\r\n // verticalité\r\n var vb = 1 +Puissance4(lig,col+1,0,1) + Puissance4(lig,col-1,0,-1);\r\n // diagonale de droite\r\n var vc = 1 +Puissance4(lig+1,col+1,1,1) + Puissance4(lig-1,col-1,-1,-1); \r\n // diagonale de gauche\r\n var vd = 1 +Puissance4(lig-1,col+1,-1,1) + Puissance4(lig+1,col-1,1,-1);\r\n console.log(va,vb,vc,vd);\r\n if(va == 4 || vb == 4 || vc == 4 || vd == 4)return true;\r\n else return false; \r\n }\r\n //On vérifie que \"lig\" et \"col\" ne sortent pas du tableau \r\n if (lig<this.ligne && lig>=0 && col<this.colonne && col>=0){\r\n if(this.plateau[lig][col]==joueur){\r\n return 1+ Puissance4(lig + l, col + c, l, c);}\r\n else {return 0;}\r\n }\r\n else return 0;\r\n }", "function main(entradas) {\n const linhas = entradas.trim().split(\"\\n\"); //separa as entradas por linha e converte em um ARRAY de STRINGS.\n let Vsize = 0, V = [], Csize = 0, C = [];\n let rproc = [];\n for (let i = 0; i < linhas.length; i++) {\n let linha_entrada;\n try {\n linha_entrada = eval(linhas[i]); //tenta converter a string pra inteiro ou array se falhar, cai no catch.\n } catch {\n linha_entrada = linhas[i]; //mantem como string porque o eval falhou em converter pra inteiro ou array.\n }\n if (!linha_entrada || linha_entrada !== \"\") {\n const resultado_processado = processarLinha(linha_entrada);\n if (resultado_processado) {\n rproc.push(resultado_processado);\n }\n }\n }\n\n \n Vsize = (rproc[0]);\n V = rproc[1].split(\" \");\n Csize = (rproc[2]);\n C = rproc[3].split(\" \");\n let Vi = [], Ci = [];\n for (let i = 0; i < V.length; i++) /// c 3\n {\n Vi.push((V[i]));\n }\n for (let i = 0; i < C.length; i++) /// c 3\n {\n Ci.push((C[i]));\n }\n //console.log(Vsize + \" \" + V + Csize+ C);\n\n //console.log(Ci);\n let nvS = Vi.sort(function (a, b) { return b - a });\n //console.log(\"nv=\" +nvS);\n let nV = [...new Set(nvS)];\n //console.log(\"nv=\" +V);\n let contador = 0, valorC = 0, valorV = 0;\n\n for (let i = 0; i < Ci.length; i++) /// c 3\n {\n contador = 1;\n valorC = Ci[i];\n //console.log(\"C \" +valorC);\n for (let j = 0; j < nV.length; j++) { /// nV 3 \n valorV = nV[j];\n if (valorV > valorC) {\n contador++;\n }\n }\n console.log(contador);\n }\n}", "function colision() {\r\n for(c=0; c<brickColumnCount; c++) {\r\n for(r=0; r<brickRowCount; r++) {\r\n var b = Ladrillo[c][r];\r\n // comprueba si el ladrillo esta activo\r\n if(b.status == 1) {\r\n // si la posicion de la pelota mas su radio esta en contacto con la posicion del ladrillo mas su ancho y alto\r\n if(x + PelotaRadius >= b.x && x <= b.x+anchoLadrillo && y + PelotaRadius >= b.y && y <= b.y+altoLadrillo) {\r\n // si entra en contacto la pelota cambia de direccion\r\n dy = -dy;\r\n // cambia el estado del ladrillo a no activo\r\n b.status = 0;\r\n // suma un punto\r\n puntuacion++;\r\n // si los puntos igualan al numero de ladrillos se gana\r\n if(puntuacion == brickRowCount*brickColumnCount) {\r\n // borra el canvas\r\n ctx.clearRect(0, 0, canvas.width, canvas.height);\r\n // muestra la imagen de victoria\r\n ctx.drawImage(youWin, 0, 0, canvas.width, canvas.height);\r\n // reinicia el juego\r\n clearInterval(id);\r\n inicio = 0;\r\n // muestra la puntuación\r\n document.getElementById(\"instrucciones\").style.display = \"block\";\r\n document.getElementById(\"punt\").innerHTML = \"Tu puntuacion es de: \" + (puntuacionTotal + puntuacion)\r\n document.getElementById(\"text\").style.display = \"none\";\r\n // sube de nivel\r\n nivel += 0.2;\r\n // suma la puntuacion de esta fase a la total de la partida\r\n puntuacionTotal += puntuacion\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}", "function desarrolloMercado(desMercado,costoDesProd) {//se van sumando los desarrolloMercado de cada producto, e.i, su precio de desarrollo\n var nvoDesMercado = desMercado + costoDesProd;\n return nvoDesMercado\n}" ]
[ "0.7077941", "0.6485625", "0.62452126", "0.6155984", "0.6072537", "0.5949752", "0.5839933", "0.5764558", "0.5747324", "0.57220936", "0.5703695", "0.57001835", "0.5696839", "0.5659428", "0.56110924", "0.5600231", "0.5597241", "0.559215", "0.55880606", "0.55861753", "0.55481863", "0.55327207", "0.5497371", "0.5481951", "0.5477007", "0.54583406", "0.5455732", "0.5450261", "0.54320073", "0.5427348", "0.5423651", "0.54217", "0.541398", "0.54083234", "0.5401075", "0.53938466", "0.5385972", "0.53765774", "0.53682005", "0.5355412", "0.5350177", "0.5344669", "0.5340032", "0.5336741", "0.533663", "0.5336493", "0.53361547", "0.53319347", "0.53240305", "0.5321319", "0.53200734", "0.5318815", "0.53158903", "0.5314722", "0.53087056", "0.5306713", "0.53040403", "0.5303462", "0.5298684", "0.5297216", "0.5296093", "0.5295504", "0.52892566", "0.52857685", "0.5285166", "0.5280738", "0.52800834", "0.5277267", "0.52765024", "0.5276055", "0.5264676", "0.5258169", "0.5244762", "0.5243036", "0.5230629", "0.52206486", "0.5218075", "0.5216739", "0.5205223", "0.5190603", "0.5189956", "0.51892334", "0.51827306", "0.517993", "0.5179695", "0.5179385", "0.51753724", "0.5165439", "0.5160518", "0.5157789", "0.5157698", "0.51574415", "0.515439", "0.5154144", "0.51499206", "0.5148616", "0.5146815", "0.5146169", "0.51420087", "0.51413316", "0.51371" ]
0.0
-1
Nombre : genera_tabla Descripcion : Genera tabla HTML dinamicamente Parametros : Parametro | Descripcion ===================================================== nombrecontenedor | Indica el nombre del contenedor donde sera mostrada la tabla | puede ser un DIV u otra TABLA nombretabla | Indica el id que se le asignara a la tabla Creada : 25/06/2015 Autor : epollongo
function genera_tabla(nombrecontenedor, nombretabla) { //// Obtener la referencia del elemento body //var body = document.getElementsByTagName("body")[0]; //// Crea un elemento <table> y un elemento <tbody> //var tabla = document.createElement("table"); //var tblBody = document.createElement("tbody"); //// Crea las celdas //for (var i = 0; i < 2; i++) { // // Crea las hileras de la tabla // var hilera = document.createElement("tr"); // for (var j = 0; j < 2; j++) { // // Crea un elemento <td> y un nodo de texto, haz que el nodo de // // texto sea el contenido de <td>, ubica el elemento <td> al final // // de la hilera de la tabla // var celda = document.createElement("td"); // var textoCelda = document.createTextNode("celda en la hilera " + i + ", columna " + j); // celda.appendChild(textoCelda); // hilera.appendChild(celda); // } // // agrega la hilera al final de la tabla (al final del elemento tblbody) // tblBody.appendChild(hilera); //} //// posiciona el <tbody> debajo del elemento <table> //tabla.appendChild(tblBody); //// appends <table> into <body> //body.appendChild(tabla); //// modifica el atributo "border" de la tabla y lo fija a "2"; //tabla.setAttribute("border", "2"); //var resultArr = JSON.parse(datos); //alert(resultArr[0].name); var tabla = '<table id="' + nombretabla + '">'; tabla += '<caption>Lista de Items</caption>'; tabla += '<thead>'; tabla += '<tr>'; tabla += '<th>Codigo</th>'; tabla += '<th>Descripcion</th>'; tabla += '<th>Tipo Item</th>'; tabla += '<th>Uni. Med.</th>'; tabla += '<th>Stck. Min.</th>'; tabla += '<th>Stck. Max</th>'; tabla += '<th>Cantidad</th>'; tabla += '<th>Id</th>'; tabla += '</tr>'; tabla += '</thead>'; tabla += '<tr class="color">'; tabla += '<td>11' + datos + '</td>'; tabla += '<td>Daniel</td>'; tabla += '</tr>'; tabla += '<tr class="coloralter">'; tabla += '<td>12</td>'; tabla += '<td>Carlos</td>'; tabla += '</tr>'; tabla += '<tr class="color"">'; tabla += '<td>13</td>'; tabla += '<td>kike</td>'; tabla += '</tr>'; tabla += '</table>'; //var tabla = '<table id="table">'; //tabla += '<tr><td>Celda 1</td><td>Celda 2</td><td> Celda 3</td></tr>'; //tabla += '<tr><td>Celda 1</td><td>Celda 2</td><td> Celda 3</td></tr>'; //tabla += '<tr><td>Celda 1</td><td>Celda 2</td><td> Celda 3</td></tr>'; //tabla += '</table>'; document.getElementById(nombrecontenedor).innerHTML = tabla; //alert('hola'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function generarTablaEj (){\r\n buscarEjXNivDocEntrega();\r\n document.querySelector(\"#divEjalumnos\").innerHTML = `<table id=\"tabEjAlumno\" border='2px' style='background-color: #FA047F; position: relative;'>\r\n <th>Título</th><th>Docente</th><th>Nivel</th>`;\r\n for(let iterador = 0; iterador<= ejerciciosAMostrar.length-1; iterador ++){\r\n document.querySelector(\"#tabEjAlumno\").innerHTML += `<tr id=\"${iterador}\" class=\"filaEjercicioAlumno\"> <td style=\"padding: 10px\"> ${ejerciciosAMostrar[iterador].titulo} </td> <td style=\"padding: 10px\"> ${ejerciciosAMostrar[iterador].Docente.nombre} </td><td style=\"padding: 10px\"> ${ejerciciosAMostrar[iterador].nivel} </td> </tr>`;\r\n }\r\n addEventsTablaEj();\r\n}", "function generateTable(lloc,name,fila,col) {\r\n div=document.getElementById(lloc);\r\n cadena='<table id=\"'+name+'\">\\n\\t';\r\n for(i=0;i<fila;i++) {\r\n cadena+=\"<tr>\\n\\t\";\r\n for(j=0;j<col;j++) {\r\n cadena+=\"<td>\\n\\t\";\r\n cadena+=\"</td>\\n\\t\";\r\n }\r\n cadena+=\"</tr>\\n\\t\";\r\n }\r\n cadena+=\"</table>\";\r\n div.innerHTML=cadena;\r\n\r\n}", "function construirTabla() {\n let tabla = document.createElement(\"table\");\n let body = document.getElementById(\"paraTablas\");\n body.appendChild(tabla);\n tabla.setAttribute(\"id\", \"table\");\n tabla.setAttribute(\"class\", \"table table-hover\");\n let trheadcabeza = document.createElement(\"thead\");\n tabla.appendChild(trheadcabeza);\n trheadcabeza.setAttribute(\"class\", \"tabla_primerFila\");\n let trhead = document.createElement(\"tr\");\n trheadcabeza.appendChild(trhead);\n let tdhead0 = document.createElement(\"td\");\n tdhead0.innerHTML = \"Número de cuota\";\n trhead.appendChild(tdhead0);\n let tdhead1 = document.createElement(\"td\");\n tdhead1.innerHTML = \"Saldo pendiente al inicio\";\n trhead.appendChild(tdhead1);\n let tdhead2 = document.createElement(\"td\");\n tdhead2.innerHTML = \"Intereses sobre saldo\";\n trhead.appendChild(tdhead2);\n let tdhead3 = document.createElement(\"td\");\n tdhead3.innerHTML = \"Saldo con intereses\";\n trhead.appendChild(tdhead3);\n let tdhead4 = document.createElement(\"td\");\n tdhead4.innerHTML = \"Cuota a pagar\";\n trhead.appendChild(tdhead4);\n let tdhead5 = document.createElement(\"td\");\n tdhead5.innerHTML = \"Remanente post pago\";\n trhead.appendChild(tdhead5);\n let tbody = document.createElement(\"tbody\");\n tabla.appendChild(tbody);\n let prestamo = datosDePrestamo.length;\n for (let i = 0; i < prestamo; i++) {\n let tr1 = document.createElement(\"tr\");\n tbody.appendChild(tr1);\n let info0 = document.createElement(\"td\");\n info0.innerHTML = i + 1;\n tr1.appendChild(info0);\n let info = document.createElement(\"td\");\n info.innerHTML = redondear(datosDePrestamo[i].capital);\n tr1.appendChild(info);\n let info4 = document.createElement(\"td\");\n info4.innerHTML = redondear(datosDePrestamo[i].intereses);\n tr1.appendChild(info4);\n let info5 = document.createElement(\"td\");\n info5.innerHTML = redondear(datosDePrestamo[i].capitalPostInt);\n tr1.appendChild(info5);\n let info2 = document.createElement(\"td\");\n info2.innerHTML = redondear(datosDePrestamo[i].cuota);\n tr1.appendChild(info2);\n let info3 = document.createElement(\"td\");\n info3.innerHTML = redondear(datosDePrestamo[i].saldoRem);\n tr1.appendChild(info3);\n }\n $(\"#paraTablas\").append(`<button id=\"solicitarPrestamo\" class=\"btn btn-dark btn-align btn-margin\" onclick=\"solicitarPrestamo()\">Solicitar prestamo</button>`)\n $(\".tablaa\").fadeIn(\"slow\");\n}", "function generarTablaEnt(){\r\n document.querySelector(\"#divEntAlumno\").innerHTML = `<table id=\"tabEntAlumno\" border='2px' style='background-color: #FA047F; position: relative;'>\r\n <th>Título</th><th>Nivel</th><th>Imagen</th><th>Entrega</th><th>Corrección</th>`;\r\n for (let i = 0; i < entregas.length; i++) {\r\n const element = entregas[i].Alumno.nombreUsuario;\r\n if(element === usuarioLoggeado){\r\n document.querySelector(\"#tabEntAlumno\").innerHTML += `\r\n <tr id=\"filaEntregas${i}\" class=\"filaEntregaAlumno\">\r\n <td style=\"padding: 10px\"> ${entregas[i].Ejercicio.titulo} </td>\r\n <td style=\"padding: 10px\"> ${entregas[i].Ejercicio.nivel} </td>\r\n <td style=\"padding: 10px\"><img src=\"${entregas[i].Ejercicio.imgPath}\" height=\"75px\" width=\"125px\"/> </td> \r\n <td style=\"padding: 10px\"><audio controls> <source src=\"${entregas[i].audPath}\"/></audio></td>\r\n <td style=\"padding: 10px\"> ${entregas[i].correccion} </td> \r\n </tr>`; \r\n }\r\n } \r\n \r\n}", "function creazioneTabella() {\n\tvar n = 1;\n\tdocument.write('<table class=\"table table-borderless\" id=\"tabella\">');\n\n\tfor (i = 1; i <= 9; i++) {\n\t\tdocument.write('<tr>');\n\t\tfor (j = 1; j <= 10; j++) {\n\t\t\tdocument.write('<td class=\"casella\" id=\"' + n + '\">' + n + '</td>');\n\t\t\tn++;\n\t\t}\n\t\tdocument.write('</tr>');\n\t}\n\n\tdocument.write('</table>');\n}", "function make_table(tabla){\n $(tabla).dataTable({\n \"bDestroy\": true,\n \"sPaginationType\": \"full_numbers\", \n \"oLanguage\": {\n \"sProcessing\": \"Procesando...\",\n \"sLengthMenu\": \"Mostrar _MENU_ registros\",\n \"sZeroRecords\": \"No se encontraron resultados\",\n \"sEmptyTable\": \"No se encontraron disponibles para liberar o rechazar\",\n \"sInfo\": \"Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros\",\n \"sInfoEmpty\": \"Mostrando registros del 0 al 0 de un total de 0 registros\",\n \"sInfoFiltered\": \"(filtrado de un total de _MAX_ registros)\",\n \"sInfoPostFix\": \"\",\n \"sSearch\": \"Buscar:\",\n \"sUrl\": \"\",\n \"sInfoThousands\": \",\",\n \"sLoadingRecords\": \"Cargando...\",\n \"oPaginate\": {\n \"sFirst\": \"Primero\",\n \"sLast\": \"Ultimo\",\n \"sNext\": \"Siguiente\",\n \"sPrevious\": \"Anterior\"\n },\n \"oAria\": {\n \"sSortAscending\": \": Activar para ordenar la columna de manera ascendente\",\n \"sSortDescending\": \": Activar para ordenar la columna de manera descendente\"\n }\n }\n });//fin data table\n}", "function tabelDataPegawai()\n {\n var table = \"<table id='datapegawaifinger' class='table table-bordered thead-dark table-striped table-hover'><thead class='bg bg-navy'>\";\n var row = \"<tr>\";\n var column = \"<th class='col-md-1'>ID</th><th class='col-md-1'>NIP</th><th class='col-md-6'>Nama</th><th class='col-md-1'>Aksi</th>\";\n var row_end = \"</tr>\";\n var table_end = \"</thead><tbody></tbody></table>\";\n $(\"#datadarieabsen\").html(table+row+column+row_end+table_end);\n }", "function crearTablaTransicionResultados(automata,resultado){ \n let transiciones = ['Entrada','Lectura','Destino'];\n var tablaPadre = document.createElement('table'),\n filaTitulo = document.createElement('tr'); \n\n for(let i=0; i<transiciones.length ; i++){\n var columnaTitulo = document.createElement('td');\n columnaTitulo.className='tablatransicion';\n columnaTitulo.textContent = transiciones[i];\n filaTitulo.appendChild(columnaTitulo);\n }\n tablaPadre.appendChild(filaTitulo);\n for(let i=0; i<automata.est_entrada.length; i++){\n for(let j=0; j<automata.arr_alfabeto.length; j++){\n var filaDatos = document.createElement('tr'), \n columnaEstados = document.createElement('td'),\n columnaAlfabeto = document.createElement('td'),\n columnaDestinos = document.createElement('td');\n \n if(automata.arr_estados[i].estado_to[j] != null){\n //estilos y contenido a las columnas\n columnaEstados.className='tablatransicionHijos';\n columnaEstados.textContent = automata.est_entrada[i];\n columnaAlfabeto.className='tablatransicionHijos';\n columnaAlfabeto.textContent = automata.arr_alfabeto[j];\n columnaDestinos.className='tablatransicionHijos';\n columnaDestinos.textContent = automata.arr_estados[i].estado_to[j];\n //agrego los elementos a sus nodos padres\n filaDatos.appendChild(columnaEstados);\n filaDatos.appendChild(columnaAlfabeto);\n filaDatos.appendChild(columnaDestinos);\n tablaPadre.appendChild(filaDatos);\n }\n }\n }\n resultado.appendChild(tablaPadre);\n}", "function create_table(data){\n var html=\"\";\n\t\thtml+=\"<table class='table table-bordered'>\";\n\t\thtml+=\"<thead>\";\n\t\t\thtml+=\"<tr>\";\n\t\t\t\thtml+=\"<th>#</th>\";\n\t\t\t\thtml+=\"<th>Nombre(s)</th>\";\n\t\t\t\thtml+=\"<th>Apellido(s)</th>\";\n html+=\"<th>Acciones</th>\";\n\t\t\t\thtml+=\"</tr>\";\n\t\t\thtml+=\"</thead>\";\n\t\t\t html+=\"<tbody >\";\n if(data.length == 0){\n html+=\"<tr>\";\n html+=\"<td colspan='3'>No hay clientes registrados</td>\";\n html+=\"</tr>\";\n }else{\n for(var x=0;x<data.length;x++){\n html+=\"<tr data-id='\"+data[x]['id']+\"' data-nombre='\"+data[x]['nombre']+\"' data-apellidos='\"+data[x]['apellidos']+\"'>\";\n html+=\"<td>\"+data[x]['id']+\"</td>\";\n html+=\"<td>\"+data[x]['nombre']+\"</td>\";\n html+=\"<td>\"+data[x]['apellidos']+\"</td>\";\n html+=\"<td>\";\n html+=\"<div class='dropdown'>\";\n html+=\"<button class='btn btn-secondary dropdown-toggle' type='button' id='dropdownMenuButton1' data-bs-toggle='dropdown' aria-expanded='false'>Selecciona </button>\";\n html+=\"<ul class='dropdown-menu' aria-labelledby='dropdownMenuButton1'>\";\n html+=\"<li class='dropdown-item actualizar'>Editar</li>\";\n html+=\"<li class='dropdown-item borrar'>Borrar</li>\";\n html+=\"</ul>\";\n html+=\"</div>\";\n html+=\"</td>\";\n html+=\"</tr>\";\n }\n }\n\t\t\t\n\t\t\thtml+=\"</tbody>\";\n\t\thtml+=\"</table>\";\n $(\"#information\").html(html);\n }", "function remplirTableau() {\r\n tabIsEmpty = false;\r\n tbody.empty();\r\n var html = \"\";\r\n data.forEach(function (element) {\r\n html = '<tr>' +\r\n '<th>' + element.order + '</th>' +\r\n '<td>' + element.activity + '</td>' +\r\n '<td>' + element.manager + '</td>' +\r\n '<td>' + element.numofsub + '</td>' +\r\n '</tr>';\r\n tbody.append(html);\r\n });\r\n }", "function crearTablaTransicion(entrada,alfabeto,tablaTransicion){\n var tablaPadre = document.createElement('table'),\n filaTitulo = document.createElement('tr');\n for(let i=0; i<transiciones.length ; i++){\n var columnaTitulo = document.createElement('td');\n columnaTitulo.className='formatoTablaTitulo';\n columnaTitulo.textContent = transiciones[i];\n filaTitulo.appendChild(columnaTitulo);\n }\n tablaPadre.appendChild(filaTitulo);\n for(let i=0; i<entrada.length; i++){\n for(let j=0; j<alfabeto.length; j++){\n var filaDatos = document.createElement('tr'), \n columnaEstados = document.createElement('td'), \n columnaAlfabeto = document.createElement('td'),\n columnaInput = document.createElement('td'),\n input = document.createElement('input');\n //estilos y contenido a las columnas\n columnaEstados.className='formatoTabla';\n columnaEstados.textContent = entrada[i];\n columnaAlfabeto.className='formatoTabla';\n columnaAlfabeto.textContent = alfabeto[j];\n input.className='form-control';\n input.setAttribute('placeholder','Estado Destino');\n input.setAttribute('type','text');\n input.id=`${entrada[i]}-${alfabeto[j]}`;\n //agrego los elementos a sus nodos padres\n columnaInput.appendChild(input);\n filaDatos.appendChild(columnaEstados);\n filaDatos.appendChild(columnaAlfabeto);\n filaDatos.appendChild(columnaInput);\n tablaPadre.appendChild(filaDatos);\n }\n }\n tablaTransicion.appendChild(tablaPadre);\n}", "function insertarTabla(name, cantidad, precio) {\n return `\n <tr>\n <td>\n ${name}\n </td>\n <td>\n ${cantidad}\n </td>\n <td>\n $${precio}\n </td>\n </tr>`;\n}", "function creaStringaTabellaDaInserireNelDom(arrayIntestazioni){\n var stringaTh = '<table id =\"tabellaRisultatiConsultazioneEntitaCollegate\" class=\"table table-bordered\"><thead>';\n var stringaTd = '</thead><tbody>';\n\n arrayIntestazioni.forEach(function(value){\n stringaTh = stringaTh + '<th>' + value.name + '</th>';\n stringaTd = stringaTd + '<td></td>';\n });\n\n return stringaTh +'<th class = \"span2\"></th>' + stringaTd + '<td class = \"span2\"></td></tbody></table>';\n }", "function CrearRegistro(Titulo){\n\n var ElementoCajaTabla=document.createElement('div');\n ElementoCajaTabla.setAttribute('class','CajaTabla');\n var ElementoTituloTab=document.createElement('h1');\n ElementoTituloTab.setAttribute('class','TituloTabla');\n var contenidoTitulo=document.createTextNode(Titulo);\n ElementoTituloTab.appendChild(contenidoTitulo);\n var ElementoSubMenu=document.createElement('div');\n ElementoSubMenu.setAttribute('class','Csubmenu');\n var CajaBoton=document.createElement('div');\n CajaBoton.setAttribute('class','btns');\n var btnmenu=document.createElement('button');\n btnmenu.setAttribute('class','btnmenu');\n btnmenu.setAttribute('id','btnagregar');\n //btnmenu.setAttribute('type','button');\n //btnmenu.setAttribute('value','Agregar');\n var icon=document.createElement('i');\n icon.setAttribute('class','fas fa-plus-square');\n icon.setAttribute('id','btnagregar');\n btnmenu.appendChild(icon);\n CajaBoton.appendChild(btnmenu);\n ElementoSubMenu.appendChild(CajaBoton);\n CrearEventoBtn(btnmenu);\n var ElementoTabla=document.createElement('table');\n ElementoTabla.setAttribute('class','tabla');\n ElementoTabla.setAttribute('id','tablaRegistros');\n var fil=[],col=[],valor='';\n let filas=1,columnas=7;\n for (let i=0; i<filas; i++){\n fil[i]=document.createElement('tr');\n fil[i].setAttribute('class','fila');\n ElementoTabla.appendChild(fil[i]);\n for(let j=0; j<columnas; j++){\n if(i===0){\n col[j]=document.createElement('th');\n if(j>0 && j<6){\n valor=document.createTextNode('Nota '+(j));\n }else if(j===0){\n valor=document.createTextNode('NOMBRE');\n }else{valor=document.createTextNode('PROMEDIO');\n }}\n else{\n col[j]=document.createElement('td');\n if(j>0 && j<6){\n valor=document.createElement('input');\n valor.setAttribute('id','campo'+i+j);\n valor.setAttribute('type','number');\n valor.setAttribute('min','0');\n valor.setAttribute('max','100');\n Eventos.eventoInput(valor,i,columnas);\n Eventos.eventoPromedio(valor,i);\n }else if(j===0){\n valor=document.createElement('label');\n valor.setAttribute('id','Promedio'+i);\n }else{\n valor=document.createElement('label');\n valor.appendChild(document.createTextNode('0'));\n valor.setAttribute('id','Promedio'+i);\n }\n \n }\n \n\n \n col[j].setAttribute('class','columna fil-'+i+' col-'+j);\n col[j].appendChild(valor);\n fil[i].appendChild(col[j]);\n \n }\n }\n ElementoCajaTabla.appendChild(ElementoTituloTab);\n ElementoCajaTabla.appendChild(ElementoSubMenu);\n ElementoCajaTabla.appendChild(ElementoTabla);\n return ElementoCajaTabla;\n}", "function MostrarRegistro(){\n // declaramos una variable para guardar los datos\n var listaregistro=Mostrar();\n // selecciono el tbody de la tabla donde voy a guardar\n tbody=document.querySelector(\"#tbRegistro tbody\");\n tbody.innerHTML=\"\";\n // agregamos las columnas que se registren\n for(var i=0; i<listaregistro.length;i++){\n // declaramos una variable para la fila\n var fila=tbody.insertRow(i);\n // declaramos variables para los titulos\n var titulonombre=fila.insertCell(0);\n var tituloprecio=fila.insertCell(1);\n var titulocategoria=fila.insertCell(2);\n var titulocantidad=fila.insertCell(3);\n // agregamos los valores\n titulonombre.innerHTML=listaregistro[i].nombre;\n tituloprecio.innerHTML=listaregistro[i].precio;\n titulocategoria.innerHTML=listaregistro[i].categoria\n titulocantidad.innerHTML=listaregistro[i].cantidad;\n tbody.appendChild(fila);\n }\n}", "function generarFilaTabla(event, controlador) {\n const fila = $(document.createElement('tr'));\n const fecha = limpiarNull(event.fecha);\n const tipo_ev = limpiarNull(event.descripcion);\n const turno = limpiarNull(event.turno);\n const casino = limpiarNull(event.nombre);\n const hora = limpiarNull(event.hora);\n const estado = event.id_estado_eventualidad;\n const archivo = event.id_archivo;\n console.log(event);\n\n fila.attr('id', event.id_eventualidad)\n .append($('<td>')\n .addClass('col-xs-2')\n .text(convertirDate(fecha))\n )\n .append($('<td>')\n .addClass('col-xs-1')\n .text(hora)\n )\n .append($('<td>')\n .addClass('col-xs-2')\n .text(tipo_ev)\n )\n if (estado == 4) {\n fila.append($('<td>')\n .addClass('col-xs-1')\n .append($('<i>').addClass('fa').addClass('fa-fw').addClass('fa-check').css('color', '#4CAF50').css('align', 'center')))\n }\n else {\n fila.append($('<td>')\n .addClass('col-xs-1')\n .append($('<i>').addClass('fas').addClass('fa-fw').addClass('fa-times').css('color', '#EF5350').css('align', 'center')))\n }\n\n fila.append($('<td>')\n .addClass('col-xs-2')\n .addClass('text-align=\"center\"')\n .text(turno)\n )\n .append($('<td>')\n .addClass('col-xs-2')\n .text(casino)\n );\n\n let td = $('<td>').addClass('col-xs-2').append($('<span>').text(' '))\n .append($('<button>')\n .addClass('boton_imprimirEv')\n .append($('<i>').addClass('fa').addClass('fa-fw').addClass('fa-print'))\n .append($('<span>').text('IMPRIMIR'))\n .addClass('btn').addClass('btn-success')\n .attr('value', event.id_eventualidad).attr('id', 'btn_imprimirEv')\n );\n\n if (controlador == 0 && estado == 6) {\n td\n .append($('<button>')\n .addClass('boton_cargarEv')\n .append($('<i>').addClass('fa').addClass('fa-fw').addClass('fa-upload')\n )\n .append($('<span>').text('CARGAR'))\n .addClass('btn').addClass('btn-success')\n .attr('value', event.id_eventualidad)\n .attr('data-casino', event.id_casino).attr('id', 'btn_cargarEv'))\n\n .append($('<button>')\n .addClass('btn btn-danger borrarEventualidad')\n .append($('<i>').addClass('fa fa-fw fa-trash')\n )\n .append($('<span>').text('BORRAR'))\n .addClass('btn').addClass('btn-success')\n .attr('value', event.id_eventualidad).attr('id', 'btn_borrarEv'));\n }\n\n if (controlador == 1 && estado == 1) {\n td\n .append($('<button>')\n .addClass('btn-validarEventualidad')\n .append($('<i>').addClass('fa fa-fw fa-check')\n )\n .append($('<span>').text('VALIDAR'))\n .addClass('btn').addClass('btn-success')\n .attr('value', event.id_eventualidad).attr('id', 'btn_validarEv'));\n }\n if (controlador == 1 && estado == 6) {\n td.append(\n $('<button>')\n .addClass('btn btn-danger borrarEventualidad')\n .append($('<i>').addClass('fa fa-fw fa-trash'))\n .append($('<span>').text('BORRAR'))\n .addClass('btn').addClass('btn-success')\n .attr('value', event.id_eventualidad).attr('id', 'btn_borrarEv'));\n }\n\n if (estado != 6) {\n const deshab = archivo === null;\n const icono = deshab? \"far fa-edit\" : \"fas fa-edit\";\n let boton = $('<button>')\n .addClass('btn-verPDF')\n .append($('<i>').addClass(icono))\n .append($('<span>').text('VER PDF'))\n .addClass('btn').addClass('btn-success')\n .attr('value',event.id_eventualidad)\n .prop('disabled',deshab);\n td.append(boton);\n if(!deshab){\n boton.click(function(){\n window.open('eventualidades/leerArchivoEventualidad/' + boton.val(),'_blank');\n });\n }\n }\n\n fila.append(td);\n\n return fila;\n}", "function crearTablasArticulos() {\n let contenedor = document.createElement(\"div\");\n contenedor.setAttribute('class', 'container-fluid');\n contenedor.setAttribute('id', 'prueba');\n let titulo = document.createElement(\"h1\");\n titulo.setAttribute('class', 'h3 mb-2 text-gray-800');\n let textoTitulo = document.createTextNode('CONTROL DE ARTICULOS');\n let parrafoTitulo = document.createElement(\"p\");\n parrafoTitulo.setAttribute('class', 'mb-4');\n let textoParrafo = document.createTextNode('ELIMINA O EDITA ARTICULOS');\n let capa1 = document.createElement(\"div\");\n capa1.setAttribute('class', 'card shadow mb-4');\n let capa2 = document.createElement(\"div\");\n capa2.setAttribute('class', 'card-header py-3');\n let tituloCapas = document.createElement(\"h6\");\n tituloCapas.setAttribute('class', 'm-0 font-weight-bold text-primary');\n let textoTituloCapas = document.createTextNode('Artículos');\n let cuerpo = document.createElement(\"div\");\n cuerpo.setAttribute('class', 'card-body');\n let tablaResponsiva = document.createElement(\"div\");\n tablaResponsiva.setAttribute('class', 'table-responsive');\n let tablas = document.createElement(\"table\");\n tablas.setAttribute('class', 'table table-bordered');\n tablas.setAttribute('id', 'dataTable');\n tablas.setAttribute('width', '100%');\n tablas.setAttribute('cellspacing', '0');\n\n let principal = document.getElementsByClassName(\"marca\");\n principal[0].appendChild(contenedor);\n contenedor.appendChild(titulo);\n titulo.appendChild(textoTitulo);\n contenedor.appendChild(parrafoTitulo);\n parrafoTitulo.appendChild(textoParrafo);\n contenedor.appendChild(capa1);\n capa1.appendChild(capa2);\n capa2.appendChild(tituloCapas);\n tituloCapas.appendChild(textoTituloCapas);\n capa1.appendChild(cuerpo);\n cuerpo.appendChild(tablaResponsiva);\n tablaResponsiva.appendChild(tablas);\n}", "function mostrar() {\n const divTabela = document.getElementById(\"tabela\");\n let conteudo = \"<table class>\";\n let indice = 0;\n let contador = 1;\n for (const valor of lista) {\n conteudo += `\n <tr>\n <td class=\"col-1\">${contador}</td>\n <td class=\"col-3\">${valor.des}</td>\n <td class=\"col-6\">${valor.deta}</td> \n <td class=\"col-2 text-end\"><button onclick='editar(${indice})' type=\"button\" class=\"btn btn-primary btn-sm\" onclick=\"criarconta()\"> Editar </button>\n <button onclick='apagar(${indice})' type=\"button\" class=\"btn btn-dark btn-sm\" onclick=\"entrar()\">Apagar</button></td> \n </tr> \n `;\n indice++;\n contador++;\n }\n conteudo += \"</table>\"\n divTabela.innerHTML = conteudo;\n}", "function tablaGramaticaXml(tabla) {\n let tbodyRef = document.getElementById('gramTabla').getElementsByTagName('tbody')[0];\n\n let rows = '';\n let contador = 1;\n\n tabla.forEach(element => {\n let newRow = tbodyRef.insertRow(tbodyRef.rows.length);\n\n rows = `<tr>\n <td>${ contador }</td>\n <td>${ element.produccion }</td>\n <td>${ element.accion }</td>\n </tr>`;\n\n newRow.innerHTML = rows;\n contador++;\n });\n}", "function tablaCoS(data){\n var tabuladoCoS = '<table class=\"striped tablaArmada\"><thead><tr>';\n var cabezera = false;\n console.log(data);\n for (var i = 0; i < data.Coberturas.length; i++) {\n\n //tomamos las cabezeras, años del primer dato\n if(!cabezera){\n tabuladoCoS += '<th> Entidad Federativa </th>';\n for (var j = 0; j < data.Coberturas[i].ValorDato.length; j++) {\n if(data.Coberturas[i].ValorDato[j].Leyenda_ser == '' || data.Coberturas[i].ValorDato[j].Leyenda_ser == null){\n tabuladoCoS += '<th>' + data.Coberturas[i].ValorDato[j].AADato_ser + '</th>';\n }else{\n tabuladoCoS += '<th>' + data.Coberturas[i].ValorDato[j].Leyenda_ser + '</th>';\n }\n\n }//fin for j\n cabezera = true;\n }\n\n tabuladoCoS += '</tr></thead><tr><td>' + '<span style=\"display:none;\">'+data.Coberturas[i].ClaveCobGeo_cg+ '</span>' + data.Coberturas[i].Descrip_cg +'</td>';\n for (var j = 0; j < data.Coberturas[i].ValorDato.length; j++) {\n if(data.Coberturas[i].ValorDato[j].Dato_Formato == \"\"){\n tabuladoCoS += '<td style=\"text-align:right;\"> '+ data.Coberturas[i].ValorDato[j].NoDatos.Codigo_nd +' </td>';\n }else{\n tabuladoCoS += '<td style=\"text-align:right;\">' + data.Coberturas[i].ValorDato[j].Dato_Formato + '</td>';\n }\n }//fin for j\n tabuladoCoS += '</tr>';\n }//fin for i\n tabuladoCoS += '</table>';\n\n //$('#tabla').html(tabuladoCoS);\n return tabuladoCoS;\n}//fin funcion", "function kreiranjeTabele2(brojRedova, brojKolona){\n let redovi = document.createElement(\"tr\");\n let kolone = document.createElement(\"td\");\n let tabela = document.createElement(\"table\");\n\n for (let i=0; i<brojRedova; i++){\n for (let j=0; j<brojKolona; j++){\n redovi.textContent(Math.ceil(Math.random()*20) + \"\");\n kolone.appendChild(redovi);\n }\n redovi.appendChild(kolone);\n }\n\n tabela.appendChild(redovi);\n document.getElementById(\"id_tabela2\").appendChild(tabela);\n}", "function generarTablaEntregasSinDevolucion(){\r\n document.querySelector(\"#divEntregas\").style.display = \"block\";\r\n document.querySelector(\"#divEntregas\").innerHTML = `<table id=\"tabEntregas\" border='2px' style='background-color: #FA047F; position: relative;'>\r\n <th>Alumno</th><th>Nivel</th><th>Título</th><th>Audio</th><th>Corrección</th><th>Realizar devolución</th>\r\n </table>`\r\n ;\r\n for (let i = 0; i < entregas.length; i++) {\r\n const element = entregas[i].Alumno.Docente.nombreUsuario;\r\n if(element === usuarioLoggeado && !entregas[i].devolucion){\r\n document.querySelector(\"#tabEntregas\").innerHTML += `<tr id=\"${i}\" class=\"filaEntregasSinDev\"> \r\n <td style=\"padding: 10px\"> ${entregas[i].Alumno.nombre} </td>\r\n <td style=\"padding: 10px\"> ${entregas[i].Alumno.nivel} </td>\r\n <td style=\"padding: 10px\"> ${entregas[i].Ejercicio.titulo} </td>\r\n <td style=\"padding: 10px\"><audio controls><source src=\"${entregas[i].audPath}\"></audio></td> \r\n <td><textarea id=\"devolucion${i}\"></textarea> \r\n <td style=\"padding: 10px\"> <input type=\"button\" id=\"i${i}\" class=\"btnEntrega \"value=\"Enviar\"></td>\r\n </tr>`;\r\n }\r\n }\r\n let botones = document.querySelectorAll(\".btnEntrega\");\r\n for(let i=0; i<botones.length; i++){\r\n const element = botones[i];\r\n element.addEventListener(\"click\", realizarDevolucion);\r\n }\r\n}", "function initTable() {\r\n\r\n const TaskTable = document.getElementById('task-table'); //recupero tabella da svuotare, attarverso il suo id\r\n \r\n TaskTable.innerHTML = ''; //svuoto la tabella, e poi inserisco nulla('')\r\n\r\n }", "function cargarResumen() {\n var resumen = \"\";\n for (let i = 0; i < agenda.length; i++) {\n let persona = agenda[i];\n resumen += `<tr>\n <th scope='row'>${i}</th>\n <td>${persona.nombre}</td>\n <td>${persona.apellidos}</td>\n <td>${persona.telefono}</td>\n <td>${persona.fecha}</td>\n </tr>`\n persona.id = i;\n }\n document.getElementById(\"tbody\").innerHTML = resumen;\n}", "function crea_tabella(carb, grassi, prot, blocco) {\r\n const tab = document.createElement('table');\r\n const r1 = document.createElement('tr');\r\n const c = document.createElement('th');\r\n c.textContent = 'Carb';\r\n const f = document.createElement('th');\r\n f.textContent = 'Grassi';\r\n const p = document.createElement('th');\r\n p.textContent = 'Prot';\r\n const r2 = document.createElement('tr');\r\n const c2 = document.createElement('td');\r\n c2.textContent = carb + 'g';\r\n const f2 = document.createElement('td');\r\n f2.textContent = grassi + 'g';\r\n const p2 = document.createElement('td');\r\n p2.textContent = prot + 'g';\r\n\r\n r1.appendChild(c);\r\n r1.appendChild(f);\r\n r1.appendChild(p);\r\n tab.appendChild(r1);\r\n r2.appendChild(c2);\r\n r2.appendChild(f2);\r\n r2.appendChild(p2);\r\n tab.appendChild(r2);\r\n blocco.appendChild(tab);\r\n}", "function MostrarRegistro(){\n //declaramos una variable para guardar los datos\n var listaproductos=Mostrar();\n //selecciono el tbody de la tabla donde voy a guardar\n tbody = document.querySelector(\"#tbRegistro tbody\");\n tbody.innerHTML=\"\";\n //Agregamos las columnas que se registren\n for(var i=0; i<listaproductos.length;i++){\n //Declaramos una variable para la fila\n var fila=tbody.insertRow(i);\n //declaramos variables para los titulos\n var titulonombre = fila.insertCell(0);\n var tituloprecio = fila.insertCell(1);\n var titulocategoria = fila.insertCell(2);\n var titulocantidad = fila.insertCell(3);\n //agregamos valores\n titulonombre.innerHTML = listaproductos[i].nombre;\n tituloprecio.innerHTML = listaproductos[i].precio;\n titulocategoria.innerHTML = listaproductos[i].categoria;\n titulocantidad.innerHTML = listaproductos[i].cantidad;\n tbody.appendChild(fila);\n }\n}", "function criarItensTabala(dados) {\n\n const linha = tabela.insertRow();\n\n const colunaId = linha.insertCell(0)\n const colunaNome = linha.insertCell(1)\n const colunaValor = linha.insertCell(2)\n const colunaAcoes = linha.insertCell(3)\n\n const itemId = document.createTextNode(dados.id)\n const itemNome = document.createTextNode(dados.nome)\n const itemValor = document.createTextNode(dados.valor)\n\n colunaId.appendChild(itemId)\n colunaNome.appendChild(itemNome)\n colunaValor.appendChild(itemValor)\n\n criarBotoesTabela(colunaAcoes, dados)\n ordemCrescente()\n}", "function createTable(pr)\n{\n\tvar t = \" <table id = 'tabelaAjax'> \";\n\tt += \" <tr id = 'firstOne'><td>ID</td><td>NAZIV</td><td>OPIS</td><td>KOLICINA</td>\";\n\tt += \" <td>DOSTUPNOST</td></tr> \";\n\n\tfor (var i = 0; i < pr.length; ++i)\n\t{\n\t\tvar p = pr[i];\n\t\tt += \" <tr><td> \" + p.id+ //naziv!!!\n\t\t\" </td><td> \" + p.naziv + //opis!!!\n\t\t\" </td><td> \" + p.opis + //kolicina!!!\n\t\t\" </td><td> \" + p.kolicina + //cijena!!!\n\t\t\" </td><td> \" + p.dostupnost + //dostupnost!!!\n\t\t\" </td></tr> \";\n\t}\n\tt += \" </table> \";\n\treturn t;\n}", "function carritoHTML() {\n\t//limpiar el html\n\tlimpiarHTML();\n\n\t//recorre el carrito y genera el html\n\tarticulosCarrito.forEach((curso) => {\n\t\tconst row = document.createElement('tr');\n\t\trow.innerHTML = `\n <td>${curso.titulo}</td>\n `;\n\t\t// Agrega el HTML del carrito en el tbody\n\t\tcontenedorCarrito.appendChild(row);\n\t});\n}", "function crearElementoTabla(producto){\n //Nombre\n var tdNombre = document.createElement('td');\n var txtNombre = document.createTextNode(producto.nombre);\n tdNombre.appendChild(txtNombre);\n //Precio\n var tdPrecio = document.createElement('td');\n var txtPrecio = document.createTextNode(producto.precioUnitario);\n tdPrecio.appendChild(txtPrecio); \n //Cantidad\n var tdCantidad = document.createElement('td');\n var txtCantidad = document.createElement('input');\n tdCantidad.appendChild(txtCantidad); \n //Boton\n var tdBoton = document.createElement('td');\n var btnCompra = document.createElement('button');\n var txtBoton = document.createTextNode(\"Comprar\"); \n \n // tdNombre.addEventListener(\"click\", agregarCarrito); \n btnCompra.appendChild(txtBoton);\n btnCompra.addEventListener(\"click\", agregarCarrito);\n btnCompra.setAttribute('id', producto.id);\n btnCompra.className = \"btn btn-secondary\";\n tdBoton.appendChild(btnCompra); \n //Creo el tr\n var tr = document.createElement('tr');\n tr.appendChild(tdNombre);\n tr.appendChild(tdPrecio);\n tr.appendChild(tdCantidad);\n tr.appendChild(tdBoton); \n var tbody = document.querySelector('#detalleLista'); \n tbody.appendChild(tr);\n}", "function renderizarTabla(datos){\n elementoId = datos.atributos.elementoId;\n url = `${datos.config.ENTORNO.URL_BASE}Vistas/tabla_estructura.php`;\n xhr = new XMLHttpRequest();\n xhr.open('POST', url, true);\n xhr.setRequestHeader('content-type', 'application/json; charset=UTF-8');\n xhr.send(JSON.stringify(datos));\n xhr.onreadystatechange = () => {\n if(xhr.readyState == 4){\n document.getElementById(`tabla${elementoId}`).innerHTML = xhr.responseText;\n barraCargando(`barra-cargando${elementoId}`, false);\n }\n }\n}", "function crearHorario() {\n\n\tvar tabla = document.getElementById(\"horario\");\t\n\t//limpiarHorario(tabla);\n\n\tfor (var fila = 1; fila < tabla.rows.length; fila++) {//Empezamos en 1 para saltarnos el header\t\t\n\t\tfor (var col = 1; col < tabla.rows[0].cells.length; col++) {\n\t\t\tvar indiceAleatorio = Math.floor(Math.random() * vectorActividades.length);\t\t\t\n\t\t\t\n\t\t\t//Si todavia no habia celdas creadas las creamos nuevas, sino las sobreescribimos\n\t\t\tif (tabla.rows[fila].cells[col] == null) {\n\t\t\t\tvar newCell = tabla.rows[fila].insertCell(col);\n\t\t\t\tnewCell.innerHTML = \"<td>\" + vectorActividades[indiceAleatorio].nombre + \"</td>\";\n\t\t\t}else{\n\t\t\t\ttabla.rows[fila].cells[col].innerHTML = \"<td>\" + vectorActividades[indiceAleatorio].nombre + \"</td>\";\t\n\t\t\t}\t\t\t\n\t\t}\n\t}\n}", "function agregarDatosTabla(data,idTabla) {\n const tDatos = document.getElementById(idTabla)\n tDatos.innerHTML = data.reduce(\n (acc, item) => acc + `\n <tr>\n <td>${item.sepalLength}</td>\n <td>${item.sepalWidth}</td>\n <td>${item.petalLength}</td>\n <td>${item.petalWidth}</td>\n <td>${item.species}</td>\n </tr>` , \"\")\n}", "function insertTable (correcte, actual, estil)\r\n{\r\n var size = (correcte.length + 1) * 15;\r\n tabla =\"<table class=\" + estil + \" width=\" + size + \"><tr><td>\" + correcte +\r\n \"</td></tr><tr><td>\" + actual + \"</td></tr></table>\";\r\n return tabla;\r\n}", "function carritoHTML() {\n // Limpiar el HTML\n limpiarHTML();\n\n // Recoore el carrito y genera el HTML\n articulosCarrito.forEach((curso) => {\n const { imagen, titulo, precio, cantidad, id } = curso\n const row = document.createElement(\"tr\");\n row.innerHTML = `\n <td>\n <img src=\"${imagen}\" width=\"100\">\n </td>\n <td>\n ${titulo} \n </td>\n <td>\n ${precio} \n </td>\n <td>\n ${cantidad} \n </td>\n\n <td>\n <a href=\"#\" class=\"borrar-curso\" data-id=\"${id}\">X</a>\n </td>\n `;\n // Agrega el HTML del carrito en el body\n contenedorCarrito.appendChild(row);\n });\n}", "function preecheTabela(){\n\t\t//acessa a pagina /frequencia.php\n\t\t$.ajax({\n\t\t\tmethod: 'get',\n\t\t\turl: 'select.php',\n\t\t\t//obtem dados dos campos de select, através dos ids dos elementos e\n\t\t\t//funcao val() do jquery\n\t\t\tdata: {cur_id: $('#turma').val()},\n\t\t\tdataType: 'json',\n\t\t\tsuccess: function(dados){\n\t\t\t\t//verifica se a variavel \"dados\" possui as informações de data e nomes\n\t\t\t\tvar data = dados.hasOwnProperty('data') ? dados.data : null;\n\t\t\t\tvar nomes = dados[0];\n\t\t\t\t\n\t\t\t\t//limpa e adiciona dados em campos ...\n\t\t\t\t$('#dataCabecalho').html('');\n\t\t\t\t$('#dataCabecalho').append('Data - ' + data);\n\t\t\t\t\n\t\t\t\tvar listaNomes = $('#listaNomes');\n\t\t\t\t\n\t\t\t\tlistaNomes.html('');\n\t\t\t\tvar j=1;\n\t\t\t\t//adiciona nomes na tabela\n\t\t\t\tfor(var i = 0; i < nomes.length; i++){\n\t\t\t\t\t//adiciona linhas com e colunas com td. \n\t\t\t\t\tlistaNomes.append('<tr>'+\n\t\t\t\t\t\t\t'<td>' + \n\t\t\t\t\t\t\tj +'</td>' +\n\t\t\t\t\t\t\t'<td>' + \n\t\t\t\t\t\t\tnomes[i].alu_nome +'</td>' +\n\t\t\t\t\t\t\t'<td>' + '<input type=\"number\" name=\"' + \n\t\t\t\t\t\t\tnomes[i].alu_id + '\"' + '></td>'\n\t\t\t\t\t\t\t+'</tr>');\n\t\t\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "function Tabla_consulta() {\n\n var html_Paises = \"<table id='TPaises' border='1' cellpadding='1' cellspacing='1' style='width: 100%'><thead><tr><th>Pais</th></tr></thead><tbody>\";\n var ruta;\n\n for (itemArray in ArrayPaises) {\n if (ArrayPaises[itemArray].Pais_ID != 0) {\n html_Paises += \"<tr style='font-size: 13px;' id= 'Paises_\" + ArrayPaises[itemArray].Pais_ID + \"'><td>\" + ArrayPaises[itemArray].Pais_Nombre + \"</td></tr>\";\n }\n }\n html_Paises += \"</tbody></table>\";\n $(\"#Container_Grid\").html(\"\");\n $(\"#Container_Grid\").html(html_Paises);\n\n $(\"#TPaises\").dataTable({\n \"bJQueryUI\": true,\n \"bDestroy\": true\n });\n $(\"#Dialog_Grid\").dialog(\"open\");\n $(\"#Dialog_Grid\").dialog(\"option\", \"title\", \"Consulta Paises\");\n\n}", "function mostrarInfoMaq($informacionTareas){\n\n $('#myTable').toggle();\n\n var $tabla=$('<table></table>');\n $tabla.attr(\"id\",\"infTareas\");\n\n var $tablaCampos=$('<thead><tr><th colspan=3 style=text-align:center>PLANIFICACION DE MANTENIMIENTO PREVENTIVO</th></tr><tr><th>Tareas de Mantenimiento</th><th>Periodicidad</th>'\n +'<th>Responsable</th></tr></thead><tbody></tbody>');\n\n $tabla.append($tablaCampos);\n\n for (var i = 0; i < $informacionTareas.length; i++) {\n\n var $tarea= new Tarea ($informacionTareas[i]['codigo_info_tara'],$informacionTareas[i]['codigo_maq'],$informacionTareas[i]['nombre_responsable'],$informacionTareas[i]['descripcion_tarea'],$informacionTareas[i]['periodo_tarea']);\n\n var $tablaDatos=$('<tr><td>'+$tarea.getDescripcionTarea()+'</td><td>'+$tarea.getPeriodoTarea()+'</td><td>'\n +$tarea.getNombreResponsable()+'</td></tr>');\n\n $tabla.append($tablaDatos);\n\n }\n\n $('#infoMaqFicha').toggle();\n\n return $tabla;\n\n\n}", "function forPantallaCajero(modulo, empleado){\n\tvar txt =forEncabezado(modulo, empleado);\n\n\ttxt +='<div id=\"cont_centro\"><table class=\"table table-hover table-striped\">';\n\ttxt +='<thead><tr><th>Pedido</th><th>Valor</th><th>Ver Pedido</th></tr></thead>';\n\ttxt +='<tbody id = \"tablaCajero\"></tbody></table></div>';\n\treturn txt;\n}", "function crear_tabla() {\n document.write(\"<table border=1>\");\n document.write(\"<tr><td>Numero 1</td><td>Numero 2</td><td>Suma</td><td>Resta</td><td>Multiplicacion</td><td>Division</td></tr>\");\n for (let i = 0; i < lista_tirada.length; i++) {\n document.write(\"<tr>\");\n for (let j = 0; j < lista_tirada[i].length; j++) {\n document.write(\"<td>\" + lista_tirada[i][j] + \"</td>\");\n }\n for (let k = 0; k < operaciones[i].length; k++) {\n document.write(\"<td>\" + operaciones[i][k] + \"</td>\");\n }\n document.write(\"</tr>\");\n }\n document.write(\"</table>\");\n\n}", "function carritoHTML(){\n //tenemos que borrar el html inicial \n limpiarHTML();\n\n articulosCarrito.forEach(curso=>{\n\n //destructuring\n const {imagen, titulo, precio, cantidad, id}=curso\n //Por cada elemento creamos una tr\n const row=document.createElement(\"tr\")\n //Vamos a construir un template string o template literal\n row.innerHTML=`\n <td>\n <img src='${imagen}' width=\"100\"/>\n </td>\n <td>\n ${titulo}\n </td>\n <td>\n ${precio}\n </td>\n <td>${cantidad}</td>\n <td>\n <a href=\"#\" class=\"borrar-curso\" data-id=\"${id}\">X </a>\n </td>\n `;\n \n //añadimos al tbody\n contenedorCarrito.appendChild(row);\n //console.log(contenedorCarrito)\n\n })\n\n}", "function createTables(cols, data, el_counter, stat_arr, month, month_arr) {\n // Manejo de los ids de acuerdo al numero de meses que se hayan generado\n let table_id = \"table\" + el_counter.toString();\n let table_container_id = \"table_cont\" + el_counter.toString();\n let stat_id = \"stat\" + el_counter.toString();\n let title_id = \"title\" + el_counter.toString();\n let acum_id = \"acum\" + el_counter.toString();\n let rem_id = \"rem\" + el_counter.toString();\n let week_id = \"week\" + el_counter.toString();\n let new_table = document.getElementById(table_id);\n let new_stat = document.getElementById(stat_id);\n let new_title = document.getElementById(title_id);\n let new_acum = document.getElementById(acum_id);\n let new_table_cont = document.getElementById(table_container_id);\n let new_rem_tbl = document.getElementById(rem_id);\n let new_week_tbl = document.getElementById(week_id);\n // Verificar si ya existen las tablas que se queren crear\n if (new_table) {\n new_stat.innerHTML = \"\";\n new_rem_tbl.innerHTML = \"\";\n new_week_tbl.innerHTML = \"\";\n if (new_acum)\n new_acum.innerHTML = \"\";\n CONTENT.innerHTML = \"\";\n } else { // Crearlas de lo contrario\n new_table = document.createElement('div');\n new_table.id = table_id;\n new_stat = document.createElement('table');\n new_stat.id = stat_id;\n new_title = document.createElement('h3');\n new_title.id = title_id;\n new_acum = document.createElement('table');\n new_acum.id = acum_id;\n new_table_cont = document.createElement('div');\n new_table_cont.id = table_container_id;\n new_table_cont.className = \"table-container\";\n new_rem_tbl = document.createElement('table');\n new_rem_tbl.id = rem_id;\n new_week_tbl = document.createElement('table');\n new_week_tbl.id = week_id;\n }\n // Agregar nombre del mes\n new_title.innerHTML = MONTH_NAMES[month - 1];\n // Tabla de remotas\n rem_arr = [[\"\", \"Remotas Posibles\"],\n [\"Mes:\", stat_arr[10]],\n [\"Acumulado:\", count_rem]];\n let temp_row;\n let temp_el;\n for (let i = 0; i < rem_arr.length; i++) {\n temp_row = document.createElement('tr');\n for (let j = 0; j < rem_arr[0].length; j++) {\n if (j === 0) {\n temp_el = document.createElement('th');\n } else {\n temp_el = document.createElement('td');\n }\n temp_el.innerHTML = rem_arr[i][j];\n temp_row.appendChild(temp_el);\n }\n new_rem_tbl.appendChild(temp_row);\n }\n // Tabla de desglose de visitas por color y calculo de porcentajes\n let per_g;\n let per_y;\n let per_o;\n let per_r;\n let per_cr;\n stat_arr[0] > 0 ? per_g = ((stat_arr[5] / stat_arr[0]) * 100).toFixed(2) : per_g = 0;\n stat_arr[1] > 0 ? per_y = ((stat_arr[6] / stat_arr[1]) * 100).toFixed(2) : per_y = 0;\n stat_arr[2] > 0 ? per_o = ((stat_arr[7] / stat_arr[2]) * 100).toFixed(2) : per_o = 0;\n stat_arr[3] > 0 ? per_r = ((stat_arr[8] / stat_arr[3]) * 100).toFixed(2) : per_r = 0;\n stat_arr[4] > 0 ? per_cr = ((stat_arr[9] / stat_arr[4]) * 100).toFixed(2) : per_cr = 0;\n stat_table = [[\"\", \"Verde\", \"Amarillo\", \"Naranjas\", \"Rojo\", \"Totales\"],\n [\"Posibles:\", stat_arr[0], stat_arr[1], stat_arr[2], stat_arr[3], stat_arr[4]],\n [\"Escenario:\", stat_arr[5], stat_arr[6], stat_arr[7], stat_arr[8], stat_arr[9]],\n [\"Porcentajes:\", (per_g.toString()) + \"%\", (per_y.toString()) + \"%\", (per_o.toString()) + \"%\", (per_r.toString()) + \"%\", (per_cr.toString()) + \"%\"]];\n for (let i = 0; i < 4; i++) {\n let temp_tr = document.createElement('tr');\n for (let j = 0; j < 6; j++) {\n let temp_el;\n if (j === 0) {\n temp_el = document.createElement('th');\n } else {\n temp_el = document.createElement('td');\n }\n temp_el.innerHTML = stat_table[i][j];\n temp_tr.appendChild(temp_el);\n }\n new_stat.appendChild(temp_tr);\n }\n new_table_cont.appendChild(new_table);\n CONTENT.appendChild(new_title);\n CONTENT.appendChild(new_table_cont);\n let new_caption = document.createElement('caption');\n if (sum_cr === 0) {\n new_caption.innerHTML = \"Mensual/Acumulado\";\n new_stat.appendChild(new_caption);\n } else {\n new_caption = document.createElement('caption');\n new_caption.innerHTML = \"Mensual\";\n new_stat.appendChild(new_caption);\n new_caption = document.createElement('caption');\n new_caption.innerHTML = \"Acumulado\";\n new_acum.appendChild(new_caption);\n stat_arr[0] > 0 ? per_g = (((sum_g + stat_arr[5]) / g) * 100).toFixed(2) : per_g = 0;\n stat_arr[1] > 0 ? per_y = (((sum_y + stat_arr[6]) / y) * 100).toFixed(2) : per_y = 0;\n stat_arr[2] > 0 ? per_o = (((sum_o + stat_arr[7]) / o) * 100).toFixed(2) : per_o = 0;\n stat_arr[3] > 0 ? per_r = (((sum_r + stat_arr[8]) / r) * 100).toFixed(2) : per_r = 0;\n stat_arr[4] > 0 ? per_cr = (((sum_cr + stat_arr[9]) / cr) * 100).toFixed(2) : per_cr = 0;\n stat_table = [[\"\", \"Verde\", \"Amarillo\", \"Naranjas\", \"Rojo\", \"Totales\"], [\"Posibles:\", g, y, o, r, cr],\n [\"Escenario:\", sum_g + stat_arr[5], sum_y + stat_arr[6], sum_o + stat_arr[7], sum_r + stat_arr[8], sum_cr + stat_arr[9]],\n [\"Porcentajes:\", (per_g.toString()) + \"%\", (per_y.toString()) + \"%\", (per_o.toString()) + \"%\", (per_r.toString()) + \"%\", (per_cr.toString()) + \"%\"]];\n for (let i = 0; i < 4; i++) {\n let temp_tr = document.createElement('tr');\n for (let j = 0; j < 6; j++) {\n let temp_el;\n if (j === 0) {\n temp_el = document.createElement('th');\n } else {\n temp_el = document.createElement('td');\n }\n temp_el.innerHTML = stat_table[i][j];\n temp_tr.appendChild(temp_el);\n }\n new_acum.appendChild(temp_tr);\n }\n }\n CONTENT.appendChild(new_stat);\n // Tabla de desglose semanal de visitas\n let weeks = [];\n let week_name = \"\";\n let week_start = -1;\n let week_end = -1;\n for (let i = 0; i < cols.length; i++) {\n let day_arr = getDayData(cols[i][\"title\"]);\n let day_name = day_arr[0];\n let day_status = day_arr[1];\n if ((day_status === \"w\") || i === (cols.length - 1)) {\n if (week_name.length > 0) {\n if (i === (cols.length - 1)) {\n week_name += \" - \" + getDayData(cols[i][\"title\"])[0];\n week_end = i;\n } else {\n week_name += \" - \" + getDayData(cols[i - 1][\"title\"])[0];\n week_end = i - 1;\n }\n weeks.push([week_start, week_end, week_name]);\n week_name = \"\";\n week_start = -1;\n week_end = -1;\n }\n } else {\n if (week_name.length === 0) {\n week_name = day_name;\n week_start = i;\n }\n }\n }\n week_summary = [[\"\"], [\"Verdes:\"], [\"Amarillas:\"], [\"Naranjas:\"], [\"Rojas:\"], [\"Remotas:\"], [\"Totales:\"]];\n for (let i = 0; i < weeks.length; i++) {\n week_summary[0].push(weeks[i][2]);\n let w_g = 0;\n let w_y = 0;\n let w_o = 0;\n let w_r = 0;\n let w_rem = 0;\n let w_total = 0;\n for (let j = 0; j < month_arr.length; j++) {\n for (let k = weeks[i][0]; k <= weeks[i][1]; k++) {\n if (month_arr[j][k] === \"g\") {\n w_g++;\n w_total++;\n } else if (month_arr[j][k] === \"y\") {\n w_y++;\n w_total++;\n } else if (month_arr[j][k] === \"o\") {\n w_o++;\n w_total++;\n } else if (month_arr[j][k] === \"r\") {\n w_r++;\n w_total++;\n } else if (month_arr[j][k] === \"rem\") {\n w_rem++;\n w_total++;\n }\n }\n }\n week_summary[1].push(w_g);\n week_summary[2].push(w_y);\n week_summary[3].push(w_o);\n week_summary[4].push(w_r);\n week_summary[5].push(w_rem);\n week_summary[6].push(w_total);\n }\n for (let i = 0; i < 7; i++) {\n let temp_tr = document.createElement('tr');\n for (let j = 0; j < week_summary[0].length; j++) {\n let temp_el;\n if (j === 0) {\n temp_el = document.createElement('th');\n } else {\n temp_el = document.createElement('td');\n }\n temp_el.innerHTML = week_summary[i][j];\n temp_tr.appendChild(temp_el);\n }\n new_week_tbl.appendChild(temp_tr);\n }\n CONTENT.appendChild(new_week_tbl);\n if (sum_cr > 0) CONTENT.appendChild(new_acum);\n // Creacion de la tabla del mes\n let table_tabu = new Tabulator(\"#\" + table_id, {\n locale: true,\n resizableColumns: false,\n headerSort: false,\n data: data,\n columns: cols,\n layout: \"fitData\",\n maxHeight: 437,\n });\n calendar_array.push(table_tabu);\n CONTENT.appendChild(new_rem_tbl);\n}", "function llenarTabla() {\n\n var cuerpoTabla = $('#tabla-datos');\n cuerpoTabla.append(\"<tr><td>\" + nombreUsuario.val() + \"</td><td>\" + apellidoUsuario.val() + \"</td><td>\" + emailUsuario.val() + \"</td><td>\" + telefonoUsuario.val() + \"</td></tr>\");\n }", "function tabla_funciones() {\n\n var nota = \"<a style=\\\"color: #fff;\\\" href=\\\"javascript:void(muestrafigura({file:'TEOS10notation',label:'Notation',ancho:'75%'}))\\\">Notation</a>\";\n\t\r\n var html = \"<table id=\\\"TABLA\\\" border=\\\"1px\\\" style=\\\"width:100%;font-size:90%;\\\">\\n\";\r\n\t\r\n for (var i=0; i < sect.length; i++) {\r\n\t html +=\"<tr><td class=\\\"b\\\" colspan=\\\"2\\\" style=\\\"padding-left:1ex;padding-right:2ex;background: #555; color:#fff;\\\">\" + sect[i] + \"<span style=\\\"float:right;\\\">\" + nota+\" </span></td></tr>\\n\";\r\n\t\tfor (var j=0; j < sectfunc[i].functions.length; j++) {\r\n\t\tvar ids =\"in_\" + j;\r\n\t\tvar boton = \"<input type=\\\"submit\\\" value=\\\" COMPUTE \\\" onclick=\\\"res=TEOS10.\" + sectfunc[i].functions[j] + \"(parametros);alert(res)\\\"> \";\r\n\t\t html += \"<td style=\\\"vertical-align:middle;padding-left:1ex;\\\">\" + boton + \"<a href=\\\"javascript:void(helprutine({tipo:'\"+sectfunc[i].functions[j]+\"',label:'cabecera', file:'TEOS10help',section:\"+i+\"}))\" + \"\\\">\" + sectfunc[i].funcdesc[j] + \"</a></td><td>\";\r\n\t\t var cadena = \"$('#\"+ids+\"_\"+sectfunc[i].funcpara[j][0]+\"').val()\";\r\n\t\t var cadenahelp = \"<span class=\\\\'azul\\\\'>\" + sectfunc[i].functions[j] + \"</span> (<span class=\\\\'ora\\\\'>\" + sectfunc[i].funcpara[j][0];\r\n\t\t for (var k=1; k < sectfunc[i].funcpara[j].length; k++) {\r\n\t\t cadena += \",\" + \"$('#\"+ids+\"_\" + sectfunc[i].funcpara[j][k] + \"').val()\";\r\n\t\t cadenahelp += \", \" + sectfunc[i].funcpara[j][k];\r\n\t\t }\r\n\t\t cadenahelp += \"</span>)\";\r\n\t\t html = html.replace('cabecera',cadenahelp);\r\n\t\t html = html.replace('parametros',cadena);\r\n\t\t for (var k=0; k < sectfunc[i].funcpara[j].length; k++) {\r\n\t\t if (sectfunc[i].functions[j] == \"gsw_gibbs\" && ( k==0 || k==1 || k==2 ) ) {\r\n\t\t html += sectfunc[i].funcpara[j][k] +\r\n\t\t\t \"<input type=\\\"text\\\" size=\\\"2\\\" id=\\\"\" + ids + \"_\" + sectfunc[i].funcpara[j][k] + \"\\\"> \";\r\n\t\t } else\r\n\t\t html += sectfunc[i].funcparat[j][k] +\r\n\t\t\t \"<input type=\\\"text\\\" size=\\\"8\\\" id=\\\"\" + ids + \"_\" + sectfunc[i].funcpara[j][k] + \"\\\"> \";\r\n\t\t }\r\n\t\t html +=\"</td></tr>\\n\";\r\n\t\t}\t\r\n\t}\r\n\thtml +='</table>\\n';\r\n\n document.write(html);\n\n}", "function genMapTable(){\r\n\t\tif (get('tabla_mapa')) removeElement(get('tabla_mapa'));\r\n\r\n\t\tvar table = document.createElement('TABLE');\r\n\r\n\t\ttable.setAttribute(\"id\", \"tabla_mapa\");\r\n\t\ttable.setAttribute(\"sortCol\", -1);\r\n\t\ttable.setAttribute(\"class\", \"tbg\");\r\n\t\ttable.setAttribute(\"align\", \"left\");\r\n\t\ttable.setAttribute(\"cellspacing\", \"1\");\r\n\t\ttable.setAttribute(\"cellpadding\", \"2\");\r\n\t\tvar thead = document.createElement(\"THEAD\");\r\n\t\tvar tbody = document.createElement(\"TBODY\");\r\n\t\tvar fila = document.createElement('TR');\r\n\t\tfila.setAttribute('class', \"rbg\");\r\n\t\tthead.appendChild(fila);\r\n\t\ttable.appendChild(thead);\r\n//\t\tvar etiquetas_tabla = [\"JUGADOR\", \"ALIANZA\", \"ALDEA\", \"HAB\", \"COORD\", \"ACCION\"];\r\n\t\tvar etiquetas_tabla = [\"JUGADOR\", \"ALIANZA\", \"ALDEA\", \"HAB\"];\r\n\t\tfor (var i = 0; i < etiquetas_tabla.length; i++){\r\n\t\t\tvar td = elem('TD', T(etiquetas_tabla[i]));\r\n\t\t\tif (i < 4){\r\n\t\t\t\tswitch(i){\r\n\t\t\t\t\tcase 3: td.addEventListener(\"click\", sortTable('tabla_mapa', i, 'int'), 0); break;\r\n\t\t\t\t\tdefault: td.addEventListener(\"click\", sortTable('tabla_mapa', i), 0);\r\n\t\t\t\t}\r\n\t\t\t\ttd.style.cursor = \"pointer\";\r\n\t\t\t}\r\n\t\t\tfila.appendChild(td);\r\n\t\t}\r\n\t\tvar datos = 0;\r\n\t\tvar area;\r\n\t\tfor(var i = 0; i < 7; i++)\r\n\t\t\tfor(var j = 0; j < 7; j++) {\r\n\t\t\t\tarea = document.getElementById('a_'+i+'_'+j).wrappedJSObject;//.getAttribute('details');//lmc.ad[i][j];\r\n\t\t\t\tvar cellinfo=area.details;\r\n//\t\t\t\tlog(1,'cellinfo i:'+i+' j:'+j+' x: '+cellinfo.x+' y: '+cellinfo.y);\r\n\t\t\t\tif (cellinfo && cellinfo.name !=null ) {\r\n\t\t\t\t\tdatos=1;\r\n\t\t\t\t\tvar inforow = document.createElement('TR');\r\n\t\t\t\t\tvar href=area.href;\r\n\r\n\t\t\t\t\tinforow.appendChild(elem('TD', cellinfo.name));\r\n\t\t\t\t\tinforow.appendChild(elem('TD', cellinfo.ally));\r\n\t\t\t\t\tinforow.appendChild(elem('TD', '<a href=\"' + href + '\">' + cellinfo.dname + '</a>'));\r\n\t\t\t\t\tinforow.appendChild(elem('TD', cellinfo.ew));\r\n\r\n//\t\t\t\t\tinforow.appendChild(elem('TD', '<a href=\"' + href + '\">' + cellinfo.x + \", \" + cellinfo.y + '</a>'));\r\n//\t\t\t\t\tinforow.appendChild(elem('TD', '<a href=\"' + href.replace(\"karte.php?d\", \"a2b.php?z\") + '\">' + T('ATACAR') + '</a> / <a href=\"' + href.replace(\"karte.php?d\", \"build.php?z\") + '&gid=17\">' + T('COMERCIAR') + '</a>'));\r\n\t\t\t\t\ttbody.appendChild(inforow);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\ttable.appendChild(tbody);\r\n\t\tif (datos == 1) {\r\n\r\n\t\t\tif (get('tabla_mapa_div')) {\r\n\t\t\t\tvar divt = get('tabla_mapa_div');\r\n\t\t\t} else {\r\n\t\t\t\tvar divt = document.createElement('DIV');\r\n\t\t\t\tdivt.style.display = 'block';\r\n\t\t\t\tdivt.style.position = 'absolute';\r\n\t\t\t\tdivt.id = 'tabla_mapa_div';\r\n\t\t\t\tdivt.style.top = 610 + longitudPantalla() + 'px';\r\n\t\t\t\tdocument.body.appendChild(divt);\r\n\t\t\t}\r\n\r\n\t\t\tdivt.appendChild(table);\r\n\r\n\t\t\tplayerLinks();\r\n\r\n//\t\t\tvar middleblock = get('lmidall');\r\n//\t\t\t//middleblock.appendChild(document.createElement('BR'));\r\n//\t\t\tmiddleblock.appendChild(table);\r\n\t\t}\r\n\t}", "function getTableObjeto(typeTabla,insertName,updateFile,idObjeto){\n var option = typeTabla;\n $.ajax({\n url: rutaAjax,\n type: 'POST',\n data: {option,updateFile,idObjeto},\n success: function(response){\n //console.log(response);\n var cons = JSON.parse(response);\n var template = \"\";\n var cont=0;\n cons.forEach(task =>{\n if(!updateFile){\n template += `<tr id=\"fila${task.idObjeto}\">`;\n }\n \n switch(typeTabla){\n case \"equipo\":\n rowTableEquipo[cont] = new rowTable(`${task.idObjeto}`,\"Equipo\",1);\n template += `<th>${task.etiqueta}</th>`;\n template += `<th><div id=\"img${task.idObjeto}\"><img height=\"70px\" src=\"data:image/jpg;base64,${task.img}\"/></div><div id=\"producto${task.idObjeto}\"><label>${task.producto}</label></div></th>`;\n template += `<th id=\"nombre${task.idObjeto}\">${task.nombre}</th>`;\n template += `<th id=\"descripcion${task.idObjeto}\">${task.descripcion}</th>`;\n if(`${task.mantenimiento}`==\"true\"){\n if(`${task.mantResp}`==\"\"){\n template += `<th id=\"mantResp${task.idObjeto}\">Sin responsable</th>`\n }else{\n template += `<th id=\"mantResp${task.idObjeto}\">${task.nombreRol}</th>`\n }\n if(`${task.lastMant}`==\"00-00-0000\" || `${task.lastMant}`==\"\" || `${task.lastMant}`== null){\n template += `<th id=\"lastMant${task.idObjeto}\">Sin fecha</th>`\n }else{\n template += `<th id=\"lastMant${task.idObjeto}\">${task.lastMant}</th>`\n }\n if(`${task.nextMant}`==\"00-00-0000\" || `${task.nextMant}`==\"\" || `${task.nextMant}`== null){\n template += `<th id=\"nextMant${task.idObjeto}\">Sin fecha</th>`\n }else{\n template += `<th id=\"nextMant${task.idObjeto}\">${task.nextMant}</th>`\n }\n }else{\n template += `<th id=\"mantResp${task.idObjeto}\">Sin mantenimiento</th>`;\n if(`${task.lastMant}`==\"00-00-0000\" || `${task.lastMant}`==\"\" || `${task.lastMant}`== null){\n template += `<th id=\"lastMant${task.idObjeto}\">Sin fecha</th>`\n }else{\n template += `<th id=\"lastMant${task.idObjeto}\">${task.lastMant}</th>`\n }\n template += `<th id=\"nextMant${task.idObjeto}\">Sin mantenimiento</th>`;\n }\n if(`${task.prestamo}`==\"true\"){\n template += `<th id=\"prestamo${task.idObjeto}\"><label id=\"prestamo${task.idObjeto}\"> Disponible</label></th>`;\n \n }else{\n template += `<th id=\"prestamo${task.idObjeto}\"><label id=\"prestamo${task.idObjeto}\"> No disponible</label></th>`;\n \n }\n template += `<th id=\"option${task.idObjeto}\">\n <div class=\"btn-group\">\n <image src=\"resources/delete.png\" style=\"height:30px\" id=\"delete${task.idObjeto}\"></image>\n <image src=\"resources/edit.png\" style=\"height:30px\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" id=\"edit${task.idObjeto}\"></image> \n <div class=\"dropdown-menu\" style?\"overflow-y:auto;\">\n <a class=\"dropdown-item\" id=\"editImg${task.idObjeto}\">Imagen</a>\n <a class=\"dropdown-item\" id=\"editProducto${task.idObjeto}\">Producto</a>\n <a class=\"dropdown-item\" id=\"editNombre${task.idObjeto}\">Nombre</a>\n <a class=\"dropdown-item\" id=\"editDescripcion${task.idObjeto}\">Descripcion</a>\n <a class=\"dropdown-item\" id=\"editMantenimiento${task.idObjeto}\">Mantenimiento</a>\n <a class=\"dropdown-item\" id=\"editPrestamo${task.idObjeto}\">Disponibilidad de prestamo</a>\n </div>\n </div>\n </div>`\n if(!updateFile){\n template += `</tr>`;\n rowTableEquipo[cont].deleteOption();\n rowTableEquipo[cont].editImg();\n rowTableEquipo[cont].editProducto();\n rowTableEquipo[cont].editNombre();\n rowTableEquipo[cont].editDescripcion();\n rowTableEquipo[cont].editMantenimiento();\n rowTableEquipo[cont].editPrestamo();\n } \n \n break;\n\n case \"consumible\":\n rowTableConsumible[cont] = new rowTable(`${task.idObjeto}`,\"Consumible\",2);\n template += `<th></th>`;\n template += `<th><div id=\"img${task.idObjeto}\"><img height=\"70px\" src=\"data:image/jpg;base64,${task.img}\"/></div><div id=\"producto${task.idObjeto}\"><label>${task.producto}</label></div></th>`;\n template += `<th id=\"nombre${task.idObjeto}\">${task.nombre}</th>`;\n template += `<th id=\"descripcion${task.idObjeto}\">${task.descripcion}</th>`;\n template += `<th id=\"cantidad${task.idObjeto}\">${task.cantidad}</th>`;\n template += `<th id=\"option${task.idObjeto}\">\n <div class=\"btn-group\">\n <image src=\"resources/delete.png\" style=\"height:30px\" id=\"delete${task.idObjeto}\"></image>\n <image src=\"resources/edit.png\" style=\"height:30px\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" id=\"edit${task.idObjeto}\"></image> \n <div class=\"dropdown-menu\" style?\"overflow-y:auto;\">\n <a class=\"dropdown-item\" id=\"editImg${task.idObjeto}\">Imagen</a>\n <a class=\"dropdown-item\" id=\"editProducto${task.idObjeto}\">Producto</a>\n <a class=\"dropdown-item\" id=\"editNombre${task.idObjeto}\">Nombre</a>\n <a class=\"dropdown-item\" id=\"editDescripcion${task.idObjeto}\">Descripcion</a>\n <a class=\"dropdown-item\" id=\"editCantidad${task.idObjeto}\">cantidad</a>\n </div>\n </div>\n </div>`\n if(!updateFile){\n template += `</tr>`;\n rowTableConsumible[cont].deleteOption();\n rowTableConsumible[cont].editImg();\n rowTableConsumible[cont].editProducto();\n rowTableConsumible[cont].editNombre();\n rowTableConsumible[cont].editDescripcion();\n rowTableConsumible[cont].editCantidad();\n } \n \n break;\n }//TERMINA EL SWITCH----------------------------------------------------\n \n\n cont++;\n })\n \n $(\"#\"+insertName).html(template);\n if(updateFile){\n $(document).off('submit',\"#formSend\"+idObjeto);\n $(document).off('click',\"#formSend\"+idObjeto);\n $(document).off('click',\"#cancelEdit\"+idObjeto);\n optionsEquipo(\"show\");\n optionsConsumible(\"show\");\n }\n }\n })\n}", "function crearTabla(items) {\n const tabla = document.createElement(\"table\");\n\n tabla.setAttribute(\n \"class\",\n \"table table-bordered table-striped table-hover table-responsive-md\"\n );\n tabla.appendChild(crearThead(items[0]));\n tabla.appendChild(crearTbody(items));\n\n return tabla;\n}", "function constructTable() {\n\tvar i;\n\n\tvar sHTML = \"\";\n\tsHTML += \"<thead>\";\n\tsHTML += \"<tr>\";\n\tsHTML += \"<td>Categorie</td>\";\n\tsHTML += \"<td>Sous categorie</td>\";\n\tsHTML += \"<td>surface</td>\";\n\tsHTML += \"<td>Nombre de pièce</td>\";\n\tsHTML += \"<td>m²</td>\";\n\tsHTML += \"<td>Ville</td>\";\n\tsHTML += \"<td>Accepter</td>\";\n\tsHTML += \"</tr>\";\n\tsHTML += \"</thead>\";\n\tsHTML += \"<tbody>\";\n\n\n\n\tfor (i = 0; i < aofproj.length; i++) {\n\n\t\tif (aofproj[i][\"nbr_piece\"] == 0) {\n\n\t\t\taofproj[i][\"nbr_piece\"] = \"NON\";\n\n\t\t}\n\t\telse {\n\n\t\t\taofproj[i][\"nbr_piece\"] = \"OUI\";\n\n\t\t}\n\n\t\tif (aofproj[i][\"m_carre\"] == 0) {\n\n\t\t\taofproj[i][\"m_carre\"] = \"NON\";\n\n\t\t}\n\t\telse {\n\n\t\t\taofproj[i][\"m_carre\"] = \"OUI\";\n\n\t\t}\n\n\t\tsHTML += \"<tr>\";\n\t\tsHTML += \"<td>\" + aofproj[i][\"categorie\"] + \"</td>\";\n\t\tsHTML += \"<td>\" + aofproj[i][\"sous_categorie\"] + \"</td>\";\n\t\tsHTML += \"<td>\" + aofproj[i][\"surface\"] + \"</td>\";\n\t\tsHTML += \"<td>\" + aofproj[i][\"nbr_piece\"] + \"</td>\";\n\t\tsHTML += \"<td>\" + aofproj[i][\"m_carre\"] + \"</td>\";\n\t\tsHTML += \"<td>\" + aofproj[i][\"ville\"] + \"</td>\";\n\t\tsHTML += \"<td><button class='valide' onclick='accepter_projet(\" + i + \")'>OK</button></td>\";\n\t\tsHTML += \"</tr>\";\n\t}\n\n\tsHTML += \"</tbody>\";\n\t$('#table_projet_dispo').html(sHTML);\n\ttables = $('#table_projet_dispo').DataTable(configuration);\n}", "function carritoHtml() {\r\n\r\n // funcion para limpiar el carrito\r\n limpiartHtml();\r\n\r\n arrayCarrito.forEach(compra => {\r\n\r\n const {\r\n imagen,\r\n nombre,\r\n precio,\r\n cantidad,\r\n id\r\n } = compra\r\n\r\n const row = document.createElement('tr')\r\n\r\n row.innerHTML =\r\n `<td>\r\n <img src = \"${imagen}\" width=\"80px;\"\r\n </td>\r\n \r\n <td>\r\n ${nombre}\r\n </td>\r\n\r\n <td style = \"text-align:center;\">${precio}</td>\r\n \r\n <td style = \"text-align:center\">\r\n ${cantidad}\r\n </td>\r\n \r\n <td>\r\n <a href=\"#\" class =\"borrar-curso vacio\" data-id = ${id} style = \"text-align:center;\"> X </a>\r\n </td>`\r\n\r\n listaCarrito.appendChild(row)\r\n })\r\n\r\n}", "function Tabla_consulta_Ciudad() {\n\n var html_Paises = \"<table id='TPaises' border='1' cellpadding='1' cellspacing='1' style='width: 100%'><thead><tr><th>Pais</th><th>Ciudad</th></tr></thead><tbody>\";\n var ruta;\n\n for (itemArray in ArrayPaises) {\n if (ArrayPaises[itemArray].Ciudad_ID != 0) {\n html_Paises += \"<tr style='font-size: 13px;' id= 'Paises_\" + ArrayPaises[itemArray].Ciudad_ID + \"'><td>\" + ArrayPaises[itemArray].Pais_Nombre + \"</td><td>\" + ArrayPaises[itemArray].Ciudad_Nombre + \"</td></tr>\";\n }\n }\n html_Paises += \"</tbody></table>\";\n $(\"#Container_Grid\").html(\"\");\n $(\"#Container_Grid\").html(html_Paises);\n\n $(\"#TPaises\").dataTable({\n \"bJQueryUI\": true,\n \"bDestroy\": true\n });\n $(\"#Dialog_Grid\").dialog(\"open\");\n $(\"#Dialog_Grid\").dialog(\"option\", \"title\", \"Consulta Ciudades\");\n\n}", "function generarContenidoItemTabla(){\n \t//Si es madera\n \tif(idMadMadre){\n \t\t$('#contenidoTablaGenerarP').append(\n \t\t\t\t'<tr id=\"item' + cantMat + '\">' + \n \t\t\t\t\t'<td id=\"mat' + cantMat + '\">' + cortarNombreMaterialParaLista($('#material').val()) + '</td>' + \n \t\t\t\t\t'<td id=\"cant' + cantMat + '\">' + $('#cantidad1').val() + '</td>' + \n \t\t\t\t\t'<td id=\"precio' + cantMat + '\">' + (precio * $('#cantidad1').val() * $('#unidad1').val()).toFixed(2) + '</td>' + '<td>' + '<a id=\"quitar'+cantMat+'\" href=\"javascript:quitarItem(' + cantMat + ')\" class=\"hideOnPrint\"><em>(quitar)</em></a></td>' +\n \t\t\t\t\t'<input type=\"hidden\" id=\"codMat' + cantMat + '\" value = \"' + cortarCodigoParaLista($(\"#material\").val()) + '\" />' +\n \t\t\t\t\t'<input type=\"hidden\" id=\"preciounit' + cantMat + '\" value = \"' + (precio * 1).toFixed(2) + '\" />' +\n \t\t\t\t\t'<input type=\"hidden\" id=\"idMadMadre' + cantMat + '\" class=\"idMadre\" value = \"' + idMadMadre + '\" />' +\n \t\t\t\t'</tr>'\n \t\t);\n \t}else{\n \t\t$('#contenidoTablaGenerarP').append(\n \t\t\t'<tr id=\"item' + cantMat + '\">' + \n \t\t\t\t'<td id=\"mat' + cantMat + '\">' + cortarNombreMaterialParaLista($('#material').val()) + '</td>' + \n \t\t\t\t'<td id=\"cant' + cantMat + '\">' + $('#cantidad1').val() + '</td>' + \n \t\t\t\t'<td id=\"precio' + cantMat + '\">' + (precio * $('#cantidad1').val()).toFixed(2) + '</td>' + '<td>' + '<a id=\"sumar'+cantMat+'\" href=\"javascript:sumarCant(' + \"'cant\" + cantMat + \"','precio\" + cantMat + \"', 'preciounit\" + cantMat + \"','1\" + \"'\" + ')\" class=\"hideOnPrint\"> +</a> <a id=\"restar'+cantMat+'\" href=\"javascript:restarCant(' + \"'cant\" + cantMat + \"','precio\" + cantMat + \"', 'preciounit\" + cantMat + \"','1\" + \"'\" + ')\" class=\"hideOnPrint\"> -</a> <a id=\"quitar'+cantMat+'\" href=\"javascript:quitarItem(' + cantMat + ')\" class=\"hideOnPrint\"><em>(quitar)</em></a></td>' +\n \t\t\t\t'<input type=\"hidden\" id=\"codMat' + cantMat + '\" value = \"' + cortarCodigoParaLista($(\"#material\").val()) + '\" />' +\n \t\t\t\t'<input type=\"hidden\" id=\"preciounit' + cantMat + '\" value = \"' + (precio * 1).toFixed(2) + '\" />' +\n \t\t\t'</tr>'\n \t\t);\n \t}\n }", "function generujRadekCasu() {\r\n var radek = document.createElement(\"tr\");\r\n //Nadpis vlevo\r\n var nadpis = document.createElement(\"th\");\r\n nadpis.style.backgroundColor = \"#336699\";\r\n nadpis.style.color = \"white\";\r\n nadpis.innerHTML = \"Čas\";\r\n radek.appendChild(nadpis);\r\n \r\n //Pridat casy \r\n for(var i=0; i<casy2.length; i++) {\r\n var td = document.createElement(\"td\");\r\n td.innerHTML = casy2[i].join(\" - \");\r\n td.style.textAlign = \"center\";\r\n \r\n td.style.fontWeight = \"bold\";\r\n td.style.backgroundColor = \"#99CCFF\";\r\n\r\n radek.appendChild(td);\r\n }\r\n return radek;\r\n}", "function mostrarTabla() {\n //valor del rubro varas\n var varas = 0.25;\n\n //eliminar tabla\n maderaTabla.innerHTML = \"\";\n\n //encabezado de la tabla\n var tr = document.createElement(\"tr\");\n maderaTabla.appendChild(tr);\n maderaTabla.className = \"formatos1\";\n\n //centra la tabla\n maderaTabla.className = \"table\";\n\n //th es el elemento encabezado, tr es la fila\n var th = document.createElement(\"th\");\n th.innerHTML = \"Ancho\";\n th.className= \"centrado\";\n tr.appendChild(th);\n\n th = document.createElement(\"th\");\n th.innerHTML = \"Grueso\";\n tr.appendChild(th);\n\n th = document.createElement(\"th\");\n th.innerHTML = \"Varas\";\n tr.appendChild(th);\n\n th = document.createElement(\"th\");\n th.innerHTML = \"Precio\";\n tr.appendChild(th);\n\n th = document.createElement(\"th\");\n th.innerHTML = \"Total\";\n tr.appendChild(th);\n\n //ciclo que recorre todo el arreglo para mostrar la tabla\n for (var y = 0; y < datos[0].length; y++) {\n var tr = document.createElement(\"tr\");\n maderaTabla.appendChild(tr);\n\n //agrega el dato a la posición respectiva del arreglo\n var td = document.createElement(\"td\");\n td.innerHTML = datos[0][y];\n tr.appendChild(td);\n\n var td = document.createElement(\"td\");\n td.innerHTML = datos[1][y];\n tr.appendChild(td);\n\n var td = document.createElement(\"td\");\n td.innerHTML = datos[2][y];\n tr.appendChild(td);\n\n var td = document.createElement(\"td\");\n td.innerHTML = datos[3][y];\n tr.appendChild(td);\n\n //formula de resultado\n var td = document.createElement(\"td\");\n var total = datos[0][y] * datos[1][y] * (datos[2][y] * varas) * datos[3][y];\n td.innerHTML = total;\n tr.appendChild(td);\n }\n\n //Agregar la pos4 a la matriz usando la variable total, en la tabla y matriz agrega el dato\n datos[4].push(total);\n }", "function view_table_extensible_dispersion(tabla, fila, va, inicio){\n var id_tabla = \"#tabla_ext\";\n var str = \"<div id = 'tabla_ext'>\";\n str = str + \"<table style='float: left;'><tr><td id = 'filaFlecha'>v.a.:</td><td id = 'valor_asociado'>\"+va+\"</td></tr>\";\n for(i=0; i<fila; i++){\n str = str + \"<tr id = 'fila_tab_ext\"+i+\"'>\";\n\tstr = str + \"<td id = 'filaFlecha'><div id = 'filaIndice_tab_ext\"+i+\"' style = 'display:none;'><img src = 'js/css/arrowright.png' border = '0'/></div></td>\";\n for(j=0; j<2; j++){\n\t str = str + \"<td>\"+tabla[i][j]+\"</td>\";\n }\n\tstr = str + \"</tr>\";\t\n }\n str = str + \"</table>\"; \n str = str + \"</div>\";\n if (inicio) {\n $(str).appendTo(\"#contenedor\");\n } else {$(id_tabla).replaceWith(str);}\n return false; \n}", "function CrearTabla(EmpleadoId, EmpleadoRole) {\n //RECUPERAR TODAS LAS ORDENES DEL DIA\n $.ajax({\n type: \"GET\",\n url: \"/Ordenes/Ordenes/\",\n data: { empleadoId: EmpleadoId, EmpleadoRol: EmpleadoRole },\n success: function (data) {\n if (data.length == 0 || data == null) {\n var agregar = '<h2 id=\"txt\" style=\"text-align:center;\">Ordenes vacías</h2>';//AGREGA LETRERO\n $(\"#x_content\").append(agregar);\n } else {\n //CREA EL ENCABEZADO DE LA TABLA DE ORDENES\n var thead = '<tr> <th>No. Orden</th> <th>No. Mesa</th> <th>Hora ordenada</th> <th>Cliente</th>';\n var theadFin = \"\";\n var huesped = \"\";\n\n //CREA EL TBODY DE LA TABLA ORDENES\n var tbodyFin = \"\";\n var tbody = \"\";\n\n for (var i = 0; i < Object.keys(data).length; i++) {\n huesped = data[i].Cliente != \"N/A\" ? true : false;\n\n tbody = '<tr><td scope=\"row\">' + cargarCodigo(data[i].CodigoOrden) + '</td><td>' + data[i].Mesa + '</td><td>' + data[i].HoraOrden + '</td><td>' + data[i].Cliente + '</td>';\n\n if (EmpleadoRole != \"Mesero\") {\n theadFin = '<th>Mesero</th> <th>Acciones</th> </tr>';\n\n tbodyFin = '<td>' + data[i].Mesero + '</td>' +\n '<td>' + cargarLinks(EmpleadoRole, data[i].OrdenId, huesped) + '</td>' +\n '</tr>';\n }\n else {\n theadFin = '<th>Acciones</th> </tr>';\n tbodyFin = '<td>' +\n '<div class=\"btn-group\">' +\n '<button data-toggle=\"dropdown\" class=\"btn btn-primary dropdown-toggle btn-sm\" type=\"button\" aria-expanded=\"true\">' +\n 'Acción <span class=\"caret\"></span>' +\n '</button>' + buttonComanda(huesped, data[i].OrdenId) +\n '</div>' +\n '</td>' +\n '</tr>';\n }\n\n //AGREGA EL ENCABEZADO A LA TABLA\n $(\"#hOrdenes\").html(thead + theadFin);\n //AGREGA EL CUERPO DE LA TABLA\n $(\"#bOrdenes\").append(tbody + tbodyFin);\n }\n }\n }\n });//FIN AJAX\n}//FIN FUNCTION", "function cargarCuerpoTabla(id) {\n var n = $(\".tabla-detalle-indicadores\").find(\"tbody\").find(\"th\").length + 1;\n if (id == 1) {\n cargarCuerpoElectrico(\"\", n, 0, 0);\n } else if (id == 2) {\n cargarCuerpoHibrido(\"\", n, 0, 0)\n } else if (id == 3) {\n cargarCuerpoElectricoConsumo(\"\", n, 0, 0);\n } else if (id == 4) {\n cargarCuerpoHibridoConsumo(\"\", n, 0, 0);\n }\n //$(\"#cuerpoTablaIndicador\").append(t);\n MRV.CargarSelect(baseUrl + \"Gestion/ListarTipoVehiculo\", \"#cbo-det-2-\" + n + \"\", \"ID_TIPO_VEHICULO\", \"DESCRIPCION\");\n MRV.CargarSelect(baseUrl + \"Gestion/ListarTipoCombustible\", \"#cbo-det-3-\" + n + \"\", \"ID_TIPO_COMBUSTIBLE\", \"DESCRIPCION\");\n}", "function mostrarFacturaRegistrado(factura) {\n document.getElementById(\"tablaFactura\").innerHTML += `<tbody><td>${factura.fecha}</td> <td>${factura.serie}</td> <td>${factura.numero}</td> <td>${factura.cliente.nombre}</td> <td>${factura.vehiculo.placa}-${factura.vehiculo.marca}-${factura.vehiculo.modelo}</td> <td>${factura.importe}</td> <td> <button type=\"button\" onclick=\"modificarFactura('${factura.numero}')\" >Modificar</button> <button type=\"button\" onclick=\"eliminarFactura('${factura.numero}')\" >Eliminar</button> </td> </tbody> `;\n}", "function CrearTablaEmitidas(myJson) {\n\n var tabla = new grid(\"oTabla\");\n var j = 0;\n\n //alert(myJson);\n \n var obj = JSON.parse(myJson);\n\n deleteLastRow(\"oTabla\");\n \n//alert(obj.length);\n for (j = 0; j <= (obj.length - 1); j++)\n {\n //alert(obj[j].Descripcion);\n var row = tabla.AddRowTable(j + 1);\n\n var celda = tabla.AddRowCellText(row, 0, obj[j].id);\n celda.setAttribute('hidden', 'true'); // ocultar la columna ID\n tabla.AddRowCellText(row, 1, obj[j].numero);\n tabla.AddRowCellText(row, 2, obj[j].nombre);\n tabla.AddRowCellNumber(row, 3, obj[j].fecha);\n tabla.AddRowCellNumber(row, 4, obj[j].total);\n \n if(obj[j].estado==='PAGADA')\n tabla.AddRowCellText(row, 5,'<span class=\"label label-success\">'+ obj[j].estado+'</span>');\n else\n tabla.AddRowCellText(row, 5,'<span class=\"label label-info\">'+ obj[j].estado+'</span>');\n \n //Comprobamos si está pagada o no para cambiar entre pagar y cancelar pago\n var cobro;\n if(obj[j].estado==='PAGADA')\n cobro = '<li><a onclick=\"CancelarCobrarFact('+(j+1)+');\" class=\"btn tip\" title=\"Anular el cobro de la factura\"> <i class=\"icon-ban-circle\"> </i> </a></li>'; \n\n else\n cobro ='<li><a onclick=\"CobrarFact('+(j+1)+');\" class=\"btn tip\" title=\"Cobrar la factura\"> <i class=\"icon-money\"> </i> </a></li>'; \n\n \n tabla.AddRowCellText(row, 6,\n '<ul class=\"table-controls\">'+\n '<li><a onclick=\"VerPDF('+(j+1)+');\" class=\"btn tip\" title=\"Ver Factura\"><i class=\"icon-eye-open\"></i></a> </li>'+\n '<li> <a onclick=\"UpdateFact('+(j+1)+');\" class=\"btn tip\" title=\"Editar factura\"> <i class=\"icon-pencil\"> </i> </a></li>'+ \n '<li><a onclick=\"SendEmailFact('+(j+1)+');\" class=\"btn tip\" title=\"Enviar por e-Mail\"> <i class=\"icon-envelope-alt\"> </i> </a></li>'+\n cobro+\n '</ul>');\n \n\n }\n \n obj=null;\n\n}", "function creacionTablero() {\n arrayMina = [];\n numeroDeBanderas = 0;\n tableroArrayDom = [campoMinas.length];\n let $divContenedor = $('<div></div>'); //Div intermedio, lo usamos para no hacer más de una carga al Dom. \n for (let i = 0; i < campoMinas.length; i++) {\n tableroArrayDom[i] = [campoMinas.length];\n for (let j = 0; j < campoMinas[1].length; j++) {\n tableroArrayDom[i][j] = $('<div id=' + i + '_' + j + ' class=\"casillaBuscamina\"><span><span></div>');\n $divContenedor.append(tableroArrayDom[i][j]);\n if (campoMinas[i][j].valor === 9) {\n arrayMina.push(tableroArrayDom[i][j]); //Creación de una array con las coordenadas de las minas para acceder a ellas de una manera más facil.\n numeroDeBanderas++;\n }\n }\n }\n $numeroDeBanderasDom.text(numeroDeBanderas);\n $tableroDom.html($divContenedor);\n aplicaEstilosTablero();\n }", "function prepareTable() {\n var ref_enfermedad = document.getElementById(\"enfermedad\");\n var html = '<div class=\"card-content\" id=\"tituloEnf\"></div><div class=\"card-content\" id=\"datosEnf\"><div class=\"span5\" id=\"tabla\"></div></div>';\n ref_enfermedad.innerHTML = html;\n}", "function mostrarEjAlumnos(){\r\n limpiar(); //limpio campos de texto y mensajes al usuario\r\n document.querySelector(\"#bodyHome\").style.display = \"none\"; // oculto bodyhome\r\n document.querySelector(\"#divEstAlumnos\").style.display = \"none\"; // oculto plantear tarea\r\n document.querySelector(\"#divEntAlumno\").style.display = \"none\"; // oculto entregas\r\n document.querySelector(\"#homeAlumno\").style.display = \"block\"; // habilito la div homealumno\r\n document.querySelector(\"#divEjalumnos\").style.display = \"block\"; // habilito la div divejalumnos\r\n document.querySelector(\"#divBuscadorEj\").style.display = \"block\"; // habilito la div buscadorEj\r\n generarTablaEj();\r\n}", "function MostrarLista(){\n //declaramos una viable para guardar los datos\n var listaregistro=Mostrar();\n //selecciono el tbody de la tabla donde voy a mostrar la informacion\n var tbody=document.querySelector(\"#tbAlumno tbody\");\n tbody.innerHTML=\"\";\n //agregamos al tbody las filas que se registren\n for(var i=0;i<listaregistro.length;i++){\n //declaramos una variable para las filas\n var fila=tbody.insertRow(i);\n //declaramos variables para los titulos\n var titulonom=fila.insertCell(0);\n var tituloape=fila.insertCell(1);\n var titulodni=fila.insertCell(2);\n var titulocur=fila.insertCell(3);\n var titulotur=fila.insertCell(4);\n var tituloest=fila.insertCell(5);\n //agregamos los valores\n titulonom.innerHTML=listaregistro[i].nombre;\n tituloape.innerHTML=listaregistro[i].apellido;\n titulodni.innerHTML=listaregistro[i].dni;\n titulocur.innerHTML=listaregistro[i].curso;\n titulotur.innerHTML=listaregistro[i].turno;\n tituloest.innerHTML=listaregistro[i].estado;\n tbody.appendChild(fila); \n }\n}", "function remplirTable2(specialiteChoisi){\r\n\tvar codeEtablObj = document.getElementById('codeEtablissement');\r\n\tvar specialiteBesoin = specialiteChoisi.value;\r\n\tvar codeEtablBesoin = codeEtablObj.value;\r\n\tvar t = document.getElementById(\"spec\");\r\n\twhile (t.firstChild) {\r\n t.removeChild(t.firstChild);\r\n }\r\n\r\n\tvar table = document.createElement('table');\r\n\tt.appendChild(table);\r\n\tvar tr = document.createElement('tr');\r\n\ttable.appendChild(tr);\r\n\ttr.innerHTML+=\"<th>\"+ \"Code\" + \"</th>\" + \"<th>\" + \"Numero de dossier\" + \"</th>\" + \"<th>\" + \"Date Admission\" + \"</th>\" + \"<th>\" + \"Date Sortie\" + \"</th>\" + \"<th>\" + \"Specialite\" + \"</th>\";\r\n\tfor (var i in tabHospitalisations){\r\n\t\t\ttr = document.createElement('tr');\r\n\t\t\ttable.appendChild(tr);\r\n\t\t\tvar th = document.createElement('th');\r\n\t\t\tif (tabHospitalisations[i].codeEtablissement == codeEtablBesoin && tabHospitalisations[i].specialite == specialiteBesoin)\r\n\t\t\ttr.innerHTML+=\"<th>\"+tabHospitalisations[i].codeEtablissement + \"</th>\"+ \"<th>\"+tabHospitalisations[i].noDossierPatient + \"</th>\"+ \"<th>\"+tabHospitalisations[i].dateAdmission+ \"</th>\" + \"<th>\"+tabHospitalisations[i].dateSortie+ \"</th>\" + \"<th>\"+tabHospitalisations[i].specialite+ \"</th>\";\t\r\n\t}\r\n\t\r\n}", "creaTabella(result){\n\t\tthis.data = this.ricreaArrJson(result);\t\n\t\tthis.createColumn();\n\t\tthis.myTable = $('#flussi').DataTable({\n\t\t \"sPaginationType\": \"full_numbers\",\n\t\t data: this.data,\n\t\t columns: this.ArrCol,\n\t\t\tdom: 'Bfrtip', // Needs button container\n\t\t select: 'single',\n\t\t responsive: true,\n\t\t altEditor: true, // Enable altEditor\n\t\t onDeleteRow:this.deleteRow,\n\t\t onEditRow: this.editRow,\n\t\t onAddRow: this.addRow,\n\t\t buttons: [{\n\t\t text: 'Add',\n\t\t name: 'add' // do not change name\n\t\t },\n\n\t\t {\n\t\t extend: 'selected', // Bind to Selected row\n\t\t text: 'Edit',\n\t\t name: 'edit' // do not change name\n\t\t },\n\n\t\t {\n\t\t extend: 'selected', // Bind to Selected row\n\t\t text: 'Delete',\n\t\t name: 'delete' // do not change name\n\t\t }]\n\t\t });\n\t}", "function mostrarTabla() {\n $.ajax({\n url: 'productos-mostrar.php',\n type: 'GET',\n success: function (response) {\n let productos = JSON.parse(response);\n let plantilla = '';\n productos.forEach(producto => {\n plantilla += `\n <tr idProducto=\"${producto.cod}\">\n <td>${producto.cod}</td>\n <td>${producto.nombre}</td>\n <td>${producto.descripcion}</td>\n <td>${producto.familia}</td>\n <td>${producto.pvp}</td>\n <td>${producto.stock}</td>\n <td><button class=\"borrar btn btn-danger\">Borrar</button></td>\n <td><button class=\"modificar btn btn-warning\">Modificar</button></td>\n </tr>\n `\n });\n $('#productos').html(plantilla);\n }\n })\n }", "function generarTabla(n) {\n loading.classList.remove('hide');\n switch (n) {\n case '1':\n tabla = 'tabla1.html';\n break;\n case '2':\n tabla = 'tabla2.html';\n break;\n case '3':\n tabla = 'tabla3.html';\n break;\n case '4':\n tabla = 'tabla4.html';\n break;\n case '5':\n tabla = 'tabla5.html';\n break;\n case '6':\n tabla = 'tabla6.html';\n break;\n case '7':\n tabla = 'tabla7.html';\n break;\n case '8':\n tabla = 'tabla8.html';\n break;\n case '9':\n tabla = 'tabla9.html';\n break;\n }\n //Cargar la tabla elegida usando fetch\n fetch(tabla)\n .then((res) => {\n return res.text();\n })\n .then((data) => {\n document.getElementById(\"tabla_div\").innerHTML = data;\n loading.classList.add('hide');\n });\n}", "function createTable() {\r\n var matrix = getMatrix();\r\n cleanTable();\r\n\r\n var rowsH = '<th scope=\"col\">#</th>';\r\n var rowsB = '';\r\n idElements = [];\r\n matrix.forEach((row, i) => {\r\n var idRows = [];\r\n rowsH += `<th scope=\"col\">${i}</th>`;\r\n rowsB += `<tr>\\n\r\n <th scope=\"row\">${i}</th>\\n`;\r\n row.forEach((column, j) => {\r\n rowsB += `<td><input type=\"number\" class=\"form-control w-100\" id=\"element${i}-${j}\" value=\"${column}\"></td>\\n`;\r\n idRows.push(`element${i}-${j}`);\r\n });\r\n idElements.push(idRows);\r\n rowsB += `</tr>`;\r\n });\r\n mheader.innerHTML = rowsH;\r\n mbody.innerHTML = rowsB;\r\n}", "function mostrar_tabla(){\r\n\tvar tabla = document.getElementById(\"contenido_tabla\");\r\n\tvar fila_tabla = \"\";\r\n\tif(vec.length!=0){\r\n\tfor(var i = 0; i < vec.length; i++){\r\n\t\tfila_tabla += \"<tr><td>\"+ vec[i].placa +\"</td><td> \"+vec[i].color+\"</td><td> \"+vec[i].Anyo+\"</td><td> \"+\r\n\t\tvec[i].capacidad+\"</td><td> \"+vec[i].cilindraje+\"</td><td>\"+vec[i].chasis+\"</td><td> \"+vec[i].zona+\r\n\t\t\"</td><td> \"+vec[i].valor+\"</td><td> \"+vec[i].fecha+\"</td><td> \"+vec[i].correo+\"</td><td> \"+vec[i].tele+\r\n\t\t\"</td><td> \"+vec[i].dir+\"</td><td><input type='button' id='editar' value='Editar' onclick='Editar(\"+i+\");'></td>\"+\r\n\t\t\"<td><input type='button' id='eliminar' value='Eliminar' onclick='Eliminar(\"+i+\");''></td></tr>\";\r\n\t\ttabla.innerHTML = fila_tabla;\r\n\t}\r\n\t}else{\r\n\t\tfila_tabla =\"<tr></tr>\"\r\n\t\ttabla.innerHTML = fila_tabla;\r\n\t}\r\n\r\n\t\r\n}", "function createtable() {\n $tbody.innerHTML = \"\";\n for (var i = 0; i < ufoData.length; i++) {\n // Get current fields\n var info = ufoData[i];\n var fields = Object.keys(info);\n // insert new fields in the tbody\n var $row = $tbody.insertRow(i);\n for (var j = 0; j < fields.length; j++) {\n var field = fields[j];\n var $cell = $row.insertCell(j);\n $cell.innerText = info[field];\n }\n }\n}", "function crearContenidoTabla(members){\n\tvar table = '<thead class=\"thead\"><tr><th>Full name</th><th>Party</th><th>State</th><th>Seniority</th><th>Percentage of votes whith party</th></tr></thead>';\n\t\n\ttable += '<tbody>';\n\t\n\tmembers.forEach(function(member){\n\t\ttable += '<tr>';\n\t\tif(member.middle_name === null){\n\t\t\ttable += '<td ><a href =\"' +member.url+ '\">' + member.first_name+' '+member.last_name+'</td>';\n\t\t}else{\n\t\t\ttable +='<td><a href=\"' +member.url+ '\">'+member.first_name+' '+member.middle_name+' '+member.last_name+'</td>';\n\t\t}\n\ttable += '<td class=\"party\">'+member.party+'</td>';\n\ttable += '<td class=\"state\">'+member.state+'</td>';\n\ttable += '<td>'+member.seniority+'</td>';\n\ttable += '<td>% '+member.votes_with_party_pct+'</td>';\n\ttable += '</tr>';\n\t})\n\ttable += '</tbody>';\n\treturn table;\n}", "function mostrarEntAlumnos(){\r\n limpiar(); //limpio campos de texto y mensajes al usuario\r\n document.querySelector(\"#bodyHome\").style.display = \"none\"; // oculto bodyhome\r\n document.querySelector(\"#divEstAlumnos\").style.display = \"none\"; // oculto plantear tarea\r\n document.querySelector(\"#homeAlumno\").style.display = \"block\"; // habilito la div homealumno\r\n document.querySelector(\"#divEntAlumno\").style.display = \"block\"; // habilito la div homealumno\r\n document.querySelector(\"#divEjalumnos\").style.display = \"none\"; // oculto la div divejalumnos\r\n document.querySelector(\"#divBuscadorEj\").style.display = \"none\"; // oculto la div buscadorEj\r\n generarTablaEnt();\r\n}", "function createTable_3() {\n let table = document.createElement('table');\n\n table.id = 'lampOUT';\n\n let parentTable = document.getElementById('tbl3');\n let myRow = document.createElement('tr');\n //console.log(myRow);\n let myCell = document.createElement('th');\n myCell.innerHTML = 'Дата';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'id <br>Лампы';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Наименование';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Прибор';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Кол-во';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Персонал';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Где лежит';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Примечания 1';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Примечания 2';\n myRow.appendChild(myCell);\n\n table.appendChild(myRow);\n parentTable.appendChild(table);\n\n}", "function criarTrAtividade(){\n let trAtividade = document.createElement(\"tr\")\n let tdAtividade = document.createElement(\"td\")\n let tddetalhe = document.createElement(\"td\")\n let tdprazo = document.createElement(\"td\")\n let botaodelete = criarbotaoexclusao()\n let botaomodificar = criarbotaomodificar()\n tdAtividade.textContent = nomeatividade.value\n tddetalhe.textContent = detalheAtividade.value\n tdprazo.textContent = formatardata()\n trAtividade.append(tdAtividade,tddetalhe,tdprazo,botaodelete,botaomodificar)\n return trAtividade\n}", "function mostrarEstudiantes(){\n document.getElementById('alumnos').style.display = \"table\";\n var notasTBody = document.getElementById('notas');\n\n while(notasTBody.hasChildNodes()){\n notasTBody.removeChild(notasTBody.lastChild);\n }\n\n for(var i = 0; i < estudiantes.length; ++i){\n var nuevoTr = document.createElement('tr');\n\n var idTd = document.createElement('td');\n idTd.textContent = estudiantes[i].codigo;\n nuevoTr.appendChild(idTd);\n\n var nombreTd = document.createElement('td');\n nombreTd.textContent = estudiantes[i].nombre;\n nuevoTr.appendChild(nombreTd);\n\n var notaTd = document.createElement('td');\n notaTd.textContent = estudiantes[i].nota;\n nuevoTr.appendChild(notaTd);\n\n notasTBody.appendChild(nuevoTr);\n }\n}", "function crearElementoTabla(producto) {\n\n// creo el td donde va a estar el nombre del producto\nvar tdNombre = document.createElement('td');\nvar txtNombre = document.createTextNode(producto.nombre);\ntdNombre.appendChild(txtNombre);\n\n// creo el td donde va a estar la cantidad\nvar tdCantidad = document.createElement('td');\nvar txtCantidad = document.createTextNode(producto.cantidad);\ntdCantidad.setAttribute('cellName', 'stock');\ntdCantidad.appendChild(txtCantidad);\n\n\n// Creo el td donde va a estar el precio unitario\nvar tdPrecio = document.createElement('td');\nvar txtPrecio = document.createTextNode(producto.precioUnitario);\ntdPrecio.appendChild(txtPrecio);\n\n// Creo el input donde se va a elegir cuantos productos quiero\nvar tdInputCantidad = document.createElement('td');\nvar inputCantidad = document.createElement('input');\ntdInputCantidad.appendChild(inputCantidad);\ninputCantidad.setAttribute('type', 'text');\n\n// creo un boton comprar que se va a usar para meter los productos en el array productos comprados\nvar tdBoton = document.createElement('td');\nvar btnCompra = document.createElement('button');\nvar txtBoton = document.createTextNode('Comprar');\nbtnCompra.setAttribute('id', producto.id);\nbtnCompra.appendChild(txtBoton);\nbtnCompra.addEventListener('click', agregarCarrito);\ntdBoton.appendChild(btnCompra);\n\n\n// Creo el tr donde van a estar los datos\nvar tr = document.createElement('tr');\ntr.setAttribute('id', producto.id);\ntr.appendChild(tdNombre);\ntr.appendChild(tdCantidad);\ntr.appendChild(tdPrecio);\ntr.appendChild(tdInputCantidad);\ntr.appendChild(tdBoton);\n\n// creo el selector de donde quiero que se vea la tabla\nvar tbody = document.querySelector('tbody');\ntbody.appendChild(tr);\n\n}", "function inizializzaTabellaRisultati() {\n var tableId = 'tabellaRisultatiRicerca';\n var opts = {\n bServerSide: true,\n sServerMethod: 'POST',\n sAjaxSource: 'risultatiRicercaConciliazionePerTitoloAjax.do',\n bPaginate: true,\n bLengthChange: false,\n iDisplayLength: 5,\n bSort: false,\n bInfo: true,\n bAutoWidth: false,\n bFilter: false,\n bProcessing: true,\n bDestroy: true,\n oLanguage: {\n sInfo: '_START_ - _END_ di _MAX_ risultati',\n sInfoEmpty: '0 risultati',\n sProcessing: 'Attendere prego...',\n sZeroRecords: 'Non sono presenti risultati di ricerca secondo i parametri inseriti',\n oPaginate: {\n sFirst: 'inizio',\n sLast: 'fine',\n sNext: 'succ.',\n sPrevious: 'prec.',\n sEmptyTable: 'Nessun dato disponibile'\n }\n },\n fnPreDrawCallback: function () {\n $('#' + tableId + '_processing').parent('div').show();\n },\n fnDrawCallback: function () {\n $('#' + tableId + '_processing').parent('div').hide();\n $('a[rel=\"popover\"]', '#' + tableId).popover();\n },\n aoColumnDefs: [\n {aTargets: [0], mData: 'stringaClassificatore'},\n {aTargets: [1], mData: 'stringaClasse'},\n {aTargets: [2], mData: 'stringaConto'},\n {aTargets: [3], mData: 'stringaDescrizioneConto'},\n {aTargets: [4], mData: function(source) {\n return faseBilancioChiuso ? '' : source.azioni;\n }, fnCreatedCell: function(nTd, sData, oData) {\n $(nTd).find('a.aggiornaConciliazione')\n .eventPreventDefault('click', aperturaAggiornamentoConciliazione.bind(undefined, nTd, oData))\n .end()\n .find('a.annullaConciliazione')\n .eventPreventDefault('click', aperturaAnnullamentoConciliazione.bind(undefined, oData));\n }}\n ]\n };\n return $('#' + tableId).dataTable(opts);\n }", "function generateTable(tablename) {\r\n let table = document.getElementById(tablename);\r\n for (let i = 0; i < items.length; i++) {\r\n let row = table.insertRow();\r\n let element = items[i];\r\n for (key in element) {\r\n let cell = row.insertCell();\r\n let text = document.createTextNode(element[key]);\r\n cell.appendChild(text);\r\n }\r\n }\r\n}", "function generateTable(tablename) {\r\n let table = document.getElementById(tablename);\r\n for (let i = 0; i < items.length; i++) {\r\n let row = table.insertRow();\r\n let element = items[i];\r\n for (key in element) {\r\n let cell = row.insertCell();\r\n let text = document.createTextNode(element[key]);\r\n cell.appendChild(text);\r\n }\r\n }\r\n}", "function createTable_2() {\n let table = document.createElement('table');\n\n table.id = 'lampIN';\n\n let parentTable = document.getElementById('tbl2');\n let myRow = document.createElement('tr');\n //console.log(myRow);\n let myCell = document.createElement('th');\n myCell.innerHTML = 'Дата';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'id <br>Лампы';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Наименование';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Прибор';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Кол-во';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Персонал';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Где лежит';\n myRow.appendChild(myCell);\n myCell = document.createElement('th');\n myCell.innerHTML = 'Примечания';\n myRow.appendChild(myCell);\n\n table.appendChild(myRow);\n parentTable.appendChild(table);\n\n}", "function lista_alumnos(){\n \tvar texto = \"<table style='border: 1px solid navy; background-color: ligth-gray;'><tr><th>Codigo</th> <th>Nombre</th><th>Nota</th> </tr>\";\n \tfor( num = 0; num < alumnos.length; num ++) {\n \t\t\ttexto += \"<tr> <td>\" + alumnos[num].codigo + \"</td> <td>\" + alumnos[num].nombre + \"</td> <td>\" + alumnos[num].nota.toFixed(2) + \"</td> </tr>\"; \t\t\n \t\t}\n \t\ttexto += \"</table>\";\n \t\tdocument.getElementById(\"listado\").innerHTML = texto;\n \t}", "function generateHtml(tabla) {\n \n var html = '';\n if (tabla.localeCompare(\"EstacionesLectoras\") == 0) {\n limpiaTabla();\n for (var i = 0; i < estaciones.length; i++) {\n html = html + '<tr><td><input type=\"checkbox\"></td><th scope=\"row\">' + estaciones[i].idEstacion + '</th><td>' + estaciones[i].latitud + '</td><td>' + estaciones[i].longitud + '</td></tr>';\n }\n $('#tablaEstaciones tbody').append(html);\n\n var offset = 0;\n $(\"#tablaEstaciones tbody tr\").each(function (fila, obj) {\n offset++;\n setTimeout(function () {\n fade(obj);\n }, 150 * offset, obj);\n });\n } else {\n limpiaTablaEstaciones();\n for (var i = 0; i < lecturas.length; i++) {\n html = html + '<tr><td><input type=\"checkbox\"></td><th scope=\"row\">' + lecturas[i].idIndividuo + '</th><td>' + lecturas[i].idLector + '</td><td>' + lecturas[i].latitud + '</td><td>' + lecturas[i].longitud + '</td><td>' +$.format.date(lecturas[i].fechaHora, 'dd/mm/yy') + '</td></tr>';\n }\n $('#tablaLecturas tbody').append(html);\n\n var offset = 0;\n $(\"#tablaLecturas tbody tr\").each(function (fila, obj) {\n offset++;\n setTimeout(function () {\n fade(obj);\n }, 150 * offset, obj);\n });\n }\n \n \n \n}", "function carritoHTML() {\n\n articulosCarrito.forEach( (curso) => {\n const row = document.createElement('tr');\n row.innerHTML = '\n <td>\n \n </td>\n ';\n })\n}", "function renderTable() {\n\n var table = $('<table>', { \"id\": \"group\", \"class\": \"mdl-data-table\"}).appendTo('#content');\n var thead = $('<thead>').appendTo(table);\n var tr = $('<tr>').appendTo(thead);\n var name = $('<th>').html(\"Имя\").appendTo(tr);\n var discipline = $('<th>').html(\"Предмет\").appendTo(tr);\n var grade = $('<th>').html(\"Оценка\").appendTo(tr);\n var edit = $('<th>').html(\"Изменить\").appendTo(tr);\n\n/*jquery plugin for work with tables*/\n $('#group').DataTable({\n \"ajax\": '../arrays.json',\n \"language\": {\n \"url\": 'tableLangRus.json'\n }\n });\n}", "function ramplirtabEdi(){\n clairtxtBoxEdi();\n $('#tableEdi').bootstrapTable('refresh');\n\n/* getInfo\n\tvar request = new XMLHttpRequest();\n var url =\"\";\n\turl = \"/tediteur\";\n\trequest.open(\"GET\", url, true);\n\t\n\trequest.onreadystatechange = function() {\n if (request.readyState === 4 && request.status === 200) {\n var info = JSON.parse(request.responseText); \n var tbody = document.getElementById(\"tbodyediResult\");\n \n tbody.innerHTML = \"\";\n\n for (i = 0; i < info.length; i++) {\n var tr = document.createElement('TR'); \n setCelulle(info[i].codeediteur,null,tr);\n setCelulle(info[i].nomediteur || '',null,tr);\n setCelulle(info[i].codepays,null,tr);\n setCelulle(info[i].codeville,null,tr);\n setCelulle(info[i].utilise,true,tr);\n tbody.appendChild(tr);\n }\n }\n };\n request.send(); */\n} // end ramplir", "function bucle_for() {\n for (var i = 1; i <= 10; i++) {\n tabla += \"<td>\" + i + \"</td>\";\n }\n }", "function crearFila(jqbutton, inspro){\n //creo los td\n //let tdHiddenID=document.createElement('td');\n let tdCod = document.createElement(\"td\");\n let tdProd = document.createElement(\"td\");\n let tdCant = document.createElement(\"td\");\n let tdTipoUnidad = document.createElement(\"td\");\n let tdEstado = document.createElement('td');\n let tdImgGuardar = document.createElement(\"td\");\n let tdImgborrar = document.createElement(\"td\");\n\n //Le agrego un input al td de cantidad\n $(\"<input>\").attr({type:'text',class:'inputCant'}).appendTo(tdCant);\n //Imagen de guardar\n let guardar = document.createElement('img');\n guardar.src=$('img#iHGuardar').attr('src');\n guardar.setAttribute('width','30px');\n guardar.setAttribute('height','30px');\n //select\n let select;\n //si es producto copio el select de productos, sino el de insumos\n if(inspro == 'producto'){\n select = $(\"#selectProductos\").clone().appendTo(tdProd);\n select.addClass('selectI');\n select.show();\n guardar.setAttribute('class','guardar');\n tdImgGuardar.appendChild(guardar);\n }else{\n select=$(\"#selectInsumos\").clone().appendTo(tdProd);\n select.addClass('selectIns');\n select.show();\n guardar.setAttribute('class','guardarIns');\n tdImgGuardar.appendChild(guardar);\n }\n\n\n\n //Estado pendiente\n tdEstado.innerHTML ='Pendiente';\n //Creo la siguiente row y le agrego los td\n let newRow = document.createElement('tr');\n //La agrego en la ante-ultima row porque la ultima es la del boton agregar\n jqbutton.closest('table').find('tr:last').prev().after(newRow);\n //Agrego todos los td\n newRow.append(tdCod,tdProd,tdCant,tdTipoUnidad,tdEstado,tdImgGuardar,tdImgborrar);\n }", "function conhitTabelleErstellen (){\n //Tabelle erstellen\n // das div tag mit der id mitte holen\n var mitteDiv = document.getElementById('mitte');\n // das table tag erstellen\n var tableTag = document.createElement('table');\n // dem tableTag die id tabelle geben\n tableTag.setAttribute('id', 'conhittabelle');\n tableTag.setAttribute('class', 'tabelle');\n //die tabelle an das div details anfuegen\n mitteDiv.appendChild(tableTag);\n\n //JSON Objekt fuer den tableHeader erstellen\n var header = [\"Name\",\"Vorname\",\"Studiengang\",\"E-Mail\"];\n //durch das JSON Objekt iterieren und ein headTag erstellen, fuellen und anhaengen\n for (var i in header){\n var headTag = document.createElement('th');\n var textNode;\n textNode = document.createTextNode(header[i]);\n headTag.appendChild(textNode);\n tableTag.appendChild(headTag);\n }\n sendRequest(tableTag.id);\n}", "function buildTable() {\n return {\n columns: [{\n value: 'mois'\n }, {\n value: 'trimestres'\n }, {\n value: 'année'\n },{\n value: '3 ans '\n },{\n value: '5 ans'\n }],\n rows: [ {\n cells: [{\n value: 'Je vous propose '\n }, {\n value: 'de rectrutter Mahdi '\n }, {\n value: 'car cest un bon '\n }, {\n value: 'developpeur qui '\n },{\n value: 'maitrise AngularJs'\n }]\n }, {\n cells: [{\n value: 'la cellule suivante'\n }, {\n value: 'a été définie null'\n }, {\n value: null\n }, {\n value: 'car ne contient'\n }, {\n value: 'pas de contenu'\n }]\n }]\n };\n }", "function forPantallaChef1(modulo, empleado){\n\tvar txt =forEncabezado(modulo, empleado);\n\n\ttxt +='<div id=\"cont_centro\"><div id=\"tbl_cocina\"><table class=\"table table-hover table-striped\">';\n\ttxt +='<thead><tr><th>Pedido</th><th>Mesero</th><th>Mesa</th><th>Estado</th></tr></thead>';\n\ttxt +='<tbody id=\"tablaPedidos\"></tbody></table></div></div>';\n\treturn txt;\n}", "function muestraHistorial(tipo) {\n var tamanio = historial.length;\n var html =\n `<table id=\"myTable\" class=\"table table-bordered table-striped\">\n <thead>\n <tr>\n <th>No. de nomina</th>\n <th>Fecha</th>\n <th>Elaborada por</th>\n <th class=\"text-center\">Acciones</th>\n </tr>\n </thead>\n <tfoot>\n <tr>\n <th>No. de nomina</th>\n <th>Fecha</th>\n <th>Elaborada por</th>\n <th>Acciones</th>\n </tr>\n </tfoot>\n <tbody>`;\n for(var x=0; x<tamanio; x++) {\n\n html += `<tr>\n <td>${historial[x].Semana}</td>\n <td><i class=\"fa fa-clock-o\"></i> ${historial[x].Fecha}</td>\n <td>${historial[x].usuario}</td>\n <td class=\"text-center\">\n <a href=\"nomina${tipo}/detalles/${historial[x].Semana}\" data-toggle=\"tooltip\" data-original-title=\"Ver detalles\"> <i class=\"icon-eye \"></i> </a>\n </td>\n\n </tr>`;\n }\n html += `<tbody>\n </table>`;\n $( \".tablaHistorial\" ).append(html);\n $('#myTable').DataTable({\n \"order\": [[ 1, \"desc\" ]]\n });\n}", "function carritoHTML() {\n // // limpiar el html\n limpiarHTML();\n //recorre el carrito y genera el html\n coleccionProductos.forEach((producto) => {\n const { imagen, nombre, precio, cantidad, id } = producto;\n const row = document.createElement(\"tr\");\n row.innerHTML = `\n <td><img src='${imagen}' width='40'></td>\n <td>${nombre}</td>\n <td>${cantidad}</td>\n <td>$${precio}</td>\n <td><a href=\"#\" class=\"borrar\" data-id=${id}><ion-icon name=\"trash-outline\" size=\"large\"></ion-icon></a></td>\n `;\n contenedorCarrito.appendChild(row);\n });\n\n // Agrego el carrito de comprasal local stogare\n sincronizarLocalSotorage();\n mostrarCantidadCarrito();\n calcularSubTotal();\n}", "function generarFilaTabla(rel){\n console.log('generar',rel);\n const fecha = rel.fecha_envio_fiscalizar;\n const tipo_mov = rel.descripcion;\n const casino = rel.nombre;\n const nota = noTieneValor(rel.identificacion_nota)? '---' : rel.identificacion_nota;\n\n let fila = $('#filaEjemploRelevamiento').clone().attr('id',rel.id_fiscalizacion_movimiento);\n fila.find('.movimiento').text(rel.id_log_movimiento).attr('title',rel.id_log_movimiento);\n fila.find('.fecha').text(fecha).attr('title',fecha);\n fila.find('.nota').text(nota).attr('title',nota);\n fila.find('.tipo').text(tipo_mov).attr('title',tipo_mov);\n fila.find('.casino').text(casino).attr('title',casino);\n fila.find('.maquinas').text(rel.maquinas).attr('title',rel.maquinas);\n fila.find('button').attr('value',rel.id_fiscalizacion_movimiento);\n\n if(rel.es_controlador != 1){fila.find('.btn-eliminarFiscal').hide();}\n\n const estado = rel.id_estado_relevamiento;\n if(estado > 2){\n fila.find('.btn-cargarRelMov').hide();\n }\n\n fila.find('.btn-imprimirRelMov').show();\n fila.find('.btn-eliminarFiscal').show();\n\n let iclass = 'fa-exclamation';\n let color = 'rgb(255,255,0)';\n let icon = fila.find('.estado i');\n icon.removeClass('fa-exclamation');\n if(estado == 1) { iclass = 'fa-plus' ; color = 'rgb(150,150,150)';} // Generado\n else if(estado == 2) { iclass = 'fa-pencil-alt'; color = 'rgb(244,160,0)' ;} // Cargando\n else if(estado == 3) { iclass = 'fa-check' ; color = 'rgb(66,133,244)' ;} // Finalizado\n else if(estado == 4) { iclass = 'fa-check' ; color = 'rgb(76,175,80)' ;} // Validado\n else { iclass = 'fa-minus' ; color = 'rgb(0,0,0)' ;} // Cualquier otro\n fila.find('.estado').attr('title',rel.estado_descripcion);\n icon.addClass(iclass).css('color',color);\n\n //Si el tipo de mov tiene direccion o es deprecado lo pongo en gris\n if(rel.puede_reingreso != 0 || rel.puede_egreso_temporal != 0 || rel.deprecado == 1){\n fila.find('button').not('.btn-imprimirRelMov,.btn-eliminarFiscal,.btn-verRelMov').remove();\n fila.find('td').css('color','rgb(150,150,150)').css('font-style','italic');\n }\n\n return fila;\n}", "function render(data) {\r\n\t\t\t\t\t\t$('#slc_Marca').children().remove();\r\n\t\t\t\t\t\t$('#slc_TipoVeiculo').children().remove();\r\n\t\t\t\t\t\tvar tabela = $('#tableDiv').append(\r\n\t\t\t\t\t\t\t\t$('<table></table>').attr(\"id\", \"tabela\"));\r\n\t\t\t\t\t\tvar tHead = \"<thead id='tableHead'></thead>\";\r\n\t\t\t\t\t\t$('#tabela').append(tHead);\r\n\t\t\t\t\t\tvar rowH = \"<tr> \" + \"<th>ID</th>\" + \"<th>Marca</th>\"\r\n\t\t\t\t\t\t\t\t+ \"<th>Tipo Veiculo</th>\" + \"<th>Modelo</th>\"\r\n\t\t\t\t\t\t\t\t+ \"<th>Status</th>\" + \"<th>Actions</th>\"\r\n\t\t\t\t\t\t\t\t+ \"</tr>\";\r\n\t\t\t\t\t\t$('#tableHead').append(rowH);\r\n\r\n\t\t\t\t\t\t$('#tabela').append(\r\n\t\t\t\t\t\t\t\t$('<tbody></tbody>').attr(\"id\", \"tabelaBody\"));\r\n\r\n\t\t\t\t\t\t$.each(data, function(index, value) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar td = $(\"<tr id= 'row\" + index\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"'>\" + \"</tr>\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar row1 = $(\"<td>\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ value.idModelo + \"</td>\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar row2 = $(\"<td>\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ value.idMarca.descMarca\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"</td>\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar row3 = $(\"<td>\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ value.idTipoV.descTipoV\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"</td>\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar row4 = $(\"<td>\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ value.descModelo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"</td>\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar row5 = $(\"<td>\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ value.statusModelo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"</td>\");\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// Efetua A Funcao Ao Clicar No\r\n\t\t\t\t\t\t\t\t\t\t\t// Botao\r\n\t\t\t\t\t\t\t\t\t\t\t// btn-update\r\n\t\t\t\t\t\t\t\t\t\t\tvar buttonUpdate = $(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'<button>Modificar</button>')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.attr(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"btn-update-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ index)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.click({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tp1 : this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}, setInputData);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar buttonRemove = $(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t'<button>Remover</button>')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.attr(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"btn-remove-\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ index)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.click({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tp1 : this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}, callRemoveServlet);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tvar row6 = $(\"<td></td>\");\r\n\t\t\t\t\t\t\t\t\t\t\trow6.append(buttonUpdate);\r\n\t\t\t\t\t\t\t\t\t\t\trow6.append(buttonRemove);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\ttd.append(row1);\r\n\t\t\t\t\t\t\t\t\t\t\ttd.append(row2);\r\n\t\t\t\t\t\t\t\t\t\t\ttd.append(row3);\r\n\t\t\t\t\t\t\t\t\t\t\ttd.append(row4);\r\n\t\t\t\t\t\t\t\t\t\t\ttd.append(row5);\r\n\t\t\t\t\t\t\t\t\t\t\ttd.append(row6);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t$('#tabela tbody').append(td);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t$('#set')\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.append('</tbody></table>');\r\n\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\r\n\t\t\t\t\t\t// Preenche O Select Marca\r\n\t\t\t\t\t\tgetMarcas();\r\n\r\n\t\t\t\t\t\t// Preenche O Select TipoVeiculo\r\n\t\t\t\t\t\tgetTiposVeiculos();\r\n\r\n\t\t\t\t\t}", "function tableau(row, col) {\n\n\n\tfor (var i = 0; i < row; i++) {\n// pour remplir un tableau 2D array(nb col).fill(donnée)\n\t\ttab.push(Array(col).fill(0));\n\t\t}\n\t\tconsole.log(tab);\n\n//creer le tableau avec des id pour chaque case crée par concatenation de l'id ligne et id colonne\n\tfor (var i = 0; i < row; i++) {\n\t\t$('#table').append('<tr id=' + i + '></tr>');\n\n\t\tfor (var j = 0; j < col; j++) {\n\t\t\t$('#'+ i).append('<td id=' + i + j +'></td>');\n\t\t};\n\t};\n}", "function crearTabla(array) {\n var tabla = document.createElement(\"table\");\n let cabecera = document.createElement(\"tr\");\n for (atributo in array[0]) {\n let th = document.createElement(\"th\");\n th.textContent = atributo;\n cabecera.appendChild(th);\n }\n tabla.appendChild(cabecera);\n for (var i in array) {\n var fila = document.createElement(\"tr\");\n var unObjeto = array[i];\n for (j in unObjeto) {\n var celda = document.createElement(\"td\");\n celda.setAttribute('style', 'text-align:center');\n var dato = document.createTextNode(unObjeto[j]);\n celda.appendChild(dato);\n fila.appendChild(celda);\n }\n tabla.appendChild(fila);\n }\n return tabla;\n}", "function cargarTablas() {\n\n\n\n var dataTableRutas_const = function () {\n if ($(\"#dt_rutas\").length) {\n $(\"#dt_rutas\").DataTable({\n dom: \"Bfrtip\",\n bFilter: true,\n ordering: false,\n buttons: [\n {\n extend: \"copy\",\n className: \"btn-sm\",\n text: \"Copiar\"\n },\n {\n extend: \"csv\",\n className: \"btn-sm\",\n text: \"Exportar a CSV\"\n },\n {\n extend: \"print\",\n className: \"btn-sm\",\n text: \"Imprimir\"\n }\n\n ],\n \"columnDefs\": [\n {\n targets: 4,\n className: \"dt-center\",\n render: function (data, type, row, meta) {\n var botones = '<button type=\"button\" class=\"btn btn-default btn-xs\" aria-label=\"Left Align\" onclick=\"showRutasByID(\\''+row[0]+'\\');\">Cargar</button> ';\n botones += '<button type=\"button\" class=\"btn btn-default btn-xs\" aria-label=\"Left Align\" onclick=\"deleteRutasByID(\\''+row[0]+'\\');\">Eliminar</button>';\n return botones;\n }\n }\n\n ],\n pageLength: 2,\n language: dt_lenguaje_espanol,\n ajax: {\n url: '../backend/agenda/controller/rutasController.php',\n type: \"POST\",\n data: function (d) {\n return $.extend({}, d, {\n action: \"showAll_rutas\"\n });\n }\n },\n drawCallback: function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {\n $('#dt_rutas').DataTable().columns.adjust().responsive.recalc();\n }\n });\n }\n };\n\n\n\n TableManageButtons = function () {\n \"use strict\";\n return {\n init: function () {\n dataTableRutas_const();\n $(\".dataTables_filter input\").addClass(\"form-control input-rounded ml-sm\");\n }\n };\n }();\n\n TableManageButtons.init();\n}", "function generateTable(table, table_data) {\n\t\tvar options = table_data.options || {};\n\t\tvar data = table_data.data;\n\t\t\n\t\tfor(var row = 0; row < data.length; row++) {\n\t\t\tvar rowcontainer = table\n\t\t\tif(row == 0 && options.columnheader) { //@todo: make columnheader is the count of column headers?\n\t\t\t\trowcontainer = rowcontainer.append(\"thead\")\t\t\t\t\n\t\t\t} else if ((row == (data.length - 1)) && options.columnfooter) {\n\t\t\t\trowcontainer = rowcontainer.append(\"tfoot\")\t\t\t\t\n\t\t\t}\n\t\t\trowcontainer = rowcontainer.append(\"tr\")\n\t\t\t\n\t\t\tfor(var col = 0; col < data[row].length; col++) {\n\t\t\t\tvar colcontainer = rowcontainer.append('td');\n\t\t\t\tif(col == 0 && options.rowheader) {\n\t\t\t\t\tcolcontainer.classed(\"rowheader\", true)\t\t\t\t\n\t\t\t\t} else if ((col == (data[row].length - 1)) && options.rowfooter) {\n\t\t\t\t\tcolcontainer.classed(\"rowfooter\", true)\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcolcontainer.text(data[row][col]);\n\t\t\t}\t\t\t\n\t\t}\n\t}", "function createTable() {\n\tlet body = document.body;\n\tlet table = document.createElement('table');\n\t// table.style.width = '200px';\n\ttable.style.border = '1px solid black';\n\n\tlet tableHeader = document.createElement('thead');\n\ttable.appendChild(tableHeader);\n\n\tlet tableHeaderRow = document.createElement('tr');\n\ttableHeader.appendChild(tableHeaderRow);\n\tlet serialNo = document.createElement('th');\n\ttableHeader.appendChild(serialNo);\n\tserialNo.innerHTML = 'Serial No.';\n\tserialNo.style.border = '1px solid black';\n\n\tlet titleHeader = document.createElement('th');\n\ttableHeader.appendChild(titleHeader);\n\ttitleHeader.innerHTML = 'Title';\n\ttitleHeader.style.border = '1px solid black';\n\t\n\tlet noteHeader = document.createElement('th');\n\ttableHeader.appendChild(noteHeader);\n\tnoteHeader.innerHTML = 'Note';\n\tnoteHeader.style.border = '1px solid black';\n\n\tlet tableBody = document.createElement('tbody');\n\ttableBody.id = \"tbody\";\n\ttable.appendChild(tableBody);\n\n\tbody.appendChild(table);\n}", "function makeTemplateTable() {\n debug('make template of table');\n base.$el.empty();\n base.$el.addClass('sib-datatable');\n\n if(base.$el.find('.sibdatatable-header').length <= 0) {\n base.$el.append('<div class=\"sibdatatable-header sibdatatable-inner\" style=\"display: none;\"></div>');\n base.$el_header = $(base.$el.find('.sibdatatable-header')[0]);\n base.el_header = base.$el.find('.sibdatatable-header')[0];\n base.$el_header.append('<div class=\"sibdatatable-navi\"><span class=\"sibdatatable-navi-prev\" style=\"display: none;\"><i class=\"fa fa-angle-left fa-lg\"></i></span><span class=\"sibdatatable-navi-title\" style=\"display: none;\"></span><span class=\"sibdatatable-navi-next\" style=\"display: none;\"><i class=\"fa fa-angle-right fa-lg\"></i></span></div>');\n base.$el_header.find('.sibdatatable-navi-prev').bind(\"click\", function() {\n onClickNaviPrev(this);\n });\n base.$el_header.find('.sibdatatable-navi-next').bind(\"click\", function() {\n onClickNaviNext(this);\n });\n }\n if(base.$el.find('.sibdatatable-body').length <= 0) {\n base.$el.append('<div class=\"sibdatatable-body sibdatatable-inner\"></div>');\n base.$el_body = $(base.$el.find('.sibdatatable-body')[0]);\n base.el_body = base.$el.find('.sibdatatable-body')[0];\n base.$el_body.append('<div class=\"sibdatatable-spin\"><i class=\"fa fa-spinner fa-spin fa-lg\"></i></div>');\n base.$el_body.append('<table class=\"table-contents\"></table>');\n base.$el_body_content = $(base.$el_body.find('.table-contents')[0]);\n base.el_body_content = base.$el_body.find('.table-contents')[0];\n }\n\n if(base.$el.find('.sibdatatable-footer').length <= 0) {\n base.$el.append('<div class=\"sibdatatable-footer sibdatatable-inner\" style=\"display: none;\"></div>');\n base.$el_footer = $(base.$el.find('.sibdatatable-footer')[0]);\n base.el_footer = base.$el.find('.sibdatatable-footer')[0];\n selectPagelimit = '<select class=\"sibdatatable-limit-select\"><option value=\"10\">10</option><option value=\"15\">15</option><option value=\"20\">20</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option></select>';\n base.$el_footer.append('<div class=\"sibdatatable-limit\"><span>'+ base.options.pagelimitTitle +'</span>' + selectPagelimit + '</div>');\n base.$el_footer.append('<div class=\"sibdatatable-navi\"><span class=\"sibdatatable-navi-prev\" style=\"display: none;\"><i class=\"fa fa-angle-left fa-lg\"></i></span><span class=\"sibdatatable-navi-title\" style=\"display: none;\"></span><span class=\"sibdatatable-navi-next\" style=\"display: none;\"><i class=\"fa fa-angle-right fa-lg\"></i></span></div>');\n base.$el_footer.find('.sibdatatable-navi-prev').bind(\"click\", function() {\n onClickNaviPrev(this);\n });\n base.$el_footer.find('.sibdatatable-navi-next').bind(\"click\", function() {\n onClickNaviNext(this);\n });\n $(base.$el_footer.find('.sibdatatable-limit-select')[0]).val(base.options.pagingLimit);\n base.$el_footer.find('.sibdatatable-limit-select').bind('change', function() {\n onChangePageLimit(this);\n });\n }\n }", "function CargarTablaPorFechasRegistro()\n {\n var table = $(\"#TablaPolizaPorFecha\").DataTable({\n //Especificacion de Ancho y Alto de la tabla\n \"rowCallback\": function( row, data, index ) {\n if ( data.Activo == \"1\" ) \n {\n $('td:eq(3)', row).html( '<b>Activo</b>' );\n $('td:eq(3)', row).css('background-color', '#98FEE6');\n }\n else\n {\n $('td:eq(3)', row).html( '<b>Inactivo</b>' );\n $('td:eq(3)', row).css('background-color', '#FEE698');\n }\n $('td:eq(0)', row).css('background-color', '#ECECEC');\n },\n \"scrollY\": \"200px\",\n \"scrollX\": \"600px\",\n \"destroy\": true,\n //Especificaciones de las Columnas que vienen y deben mostrarse\n \"columns\" : [\n { data : 'Idn' },\n { data : 'Codigo' },\n { data : 'Cliente.CedulaRif' },\n { data : 'Cliente.Nombre' },\n { data : 'Cliente.Apellido' },\n { data : 'Analista.CedulaRif' },\n { data : 'Analista.Nombre' },\n { data : 'Aseguradora.Nombre' },\n { data : 'Relacionado.Cedula' },\n { data : 'Relacionado.Nombre' },\n { data : 'Relacionado.Apellido' },\n { data : 'Producto.Nombre' },\n { data : 'Productor.RIF' },\n { data : 'Productor.Nombre' },\n { data : 'Moneda.Nombre' },\n { data : 'TipoPoliza.Nombre' },\n { data : 'TipoPago.Nombre' },\n { data : 'EstatusPoliza.Nombre' },\n { data : 'Comision' },\n { data : 'FechaEmision' },\n { data : 'FechaInicio' },\n { data : 'FechaRegistro' },\n { data : 'FechaVencimiento' },\n { data : 'Observacion' },\n { data : 'Deducible' },\n { data : 'SumaAseguradora' },\n { data : 'PrimaAseguradora' }\n \n ,\n { data : 'Activo' }\n ], \n //Especificaciones de la URL del servicio para cargar la tabla\n \"ajax\": {\n url: \"\"+ global + \"/Polizas/FechaEmision\",\n dataSrc : ''\n }\n\n }); \n //Al hacer clic en la tabla carga los campos en los TXT\n\n\n }" ]
[ "0.82200724", "0.79015505", "0.77582127", "0.7605332", "0.7583132", "0.74891543", "0.74492", "0.742933", "0.741466", "0.737512", "0.7348697", "0.73383087", "0.7257926", "0.72575957", "0.7212558", "0.7209831", "0.72043747", "0.71852994", "0.7161662", "0.71552336", "0.71512365", "0.7150623", "0.71471", "0.7133618", "0.7131557", "0.7125573", "0.712279", "0.7122653", "0.7117565", "0.7106748", "0.7104167", "0.70845026", "0.70785886", "0.7051083", "0.7019146", "0.6997823", "0.699186", "0.699083", "0.69899046", "0.6987056", "0.6975172", "0.69744414", "0.6974405", "0.6968096", "0.6961968", "0.6949262", "0.69451547", "0.6930734", "0.6930132", "0.6924524", "0.6898095", "0.6897028", "0.68929183", "0.68746436", "0.68644464", "0.68607527", "0.68579763", "0.68503046", "0.68459076", "0.68442667", "0.68407965", "0.68382543", "0.6838168", "0.6829555", "0.682021", "0.68105334", "0.68036824", "0.6782156", "0.67735493", "0.6767441", "0.67534316", "0.6752023", "0.6751216", "0.6745683", "0.67410094", "0.67357415", "0.6718905", "0.6718905", "0.67111725", "0.67067236", "0.67038345", "0.67019737", "0.6693512", "0.6686071", "0.6676344", "0.66668963", "0.66620433", "0.6654305", "0.6644341", "0.6643975", "0.66373116", "0.66372466", "0.6631941", "0.6623954", "0.6621709", "0.66210383", "0.6620418", "0.66137534", "0.66136825", "0.66059107" ]
0.8353068
0
Use this method if you have a dataobject
bindData(field) { if (field) { this._fieldNode = field; this._fieldNode.addEventListener('field-value-changed', e => { // TODO we need a solution for complex fields. Currently only scalar values are working properly this.value = e.detail._value; }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveData(data)\n{\n\tobjectData = data;\n}", "init(data) {\r\n this.object = data.object;\r\n }", "get data () {return this._data;}", "function getDataObject(state) {\n\t var data = state.data;\n\t if (!data) {\n\t data = state.data = __webpack_require__(198).create(getComponentDataID(state));\n\t }\n\t __webpack_require__(10)(data instanceof Object, 'readRelayQueryData(): Unable to read field on non-object.');\n\t return data;\n\t}", "getData(){}", "static getRawObject(data) {\n if (data && typeof data.toObject === 'function') {\n return data.toObject();\n }\n return data;\n }", "setData(dataObj) {\n for (let field in dataObj) {\n this.data[field] = dataObj[field];\n this.changedFields.add(field);\n }\n }", "function isEmptyDataObject(obj) {\n var name;\n for (name in obj) {\n\n // if the public data object is empty, the private is still empty\n if (name === \"data\" && jQuery.isEmptyObject(obj[name])) {\n continue;\n }\n if (name !== \"toJSON\") {\n return false;\n }\n }\n\n return true;\n }", "function getDataObject(state) {\n\t var data = state.data;\n\t if (!data) {\n\t data = state.data = RelayRecord.create(getComponentDataID(state));\n\t }\n\t !(data instanceof Object) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'readRelayQueryData(): Unable to read field on non-object.') : invariant(false) : undefined;\n\t return data;\n\t}", "function getDataObject(state) {\n\t var data = state.data;\n\t if (!data) {\n\t data = state.data = RelayRecord.create(getComponentDataID(state));\n\t }\n\t !(data instanceof Object) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'readRelayQueryData(): Unable to read field on non-object.') : invariant(false) : undefined;\n\t return data;\n\t}", "function Data() { }", "function my(){\t\t\n\t\t\t\t var data = this.data()[0];\n\t\t\t\t \t\n\t\t\t}", "function DataObject() {\n\tthis.string = 'string';\n\tthis.number = 1234;\n\tthis.bool = false;\n\tthis.undef = undefined;\n\tthis.nul = null;\n\tthis.nan = NaN;\n\tthis.array = [1, 2, 3, 4];\n\tthis.func = function() {};\n\tthis.obj = {};\n}", "function createDataObject() {\n dataObject = {\n palette: checkedPalette,\n name: inputName.value,\n job: inputJob.value,\n email: inputEmail.value,\n phone: inputPhone.value,\n linkedin: inputLinkedin.value,\n github: inputGithub.value,\n photo: fr.result || getPicLocal(),\n };\n}", "function ViewData() { }", "function ViewData() { }", "static convertFromDynamics (dataObject) {\n Utilities._deepReplaceNull(dataObject)\n return dataObject\n }", "_data(data) {\n this.displayData = data;\n }", "function object (data) {\n return assigned(data) && Object.prototype.toString.call(data) === '[object Object]';\n }", "function isDataObject(subject) {\n return subject != null\n && typeof subject.toData == 'function' }", "function ViewData() {}", "function ViewData() {}", "function ViewData() {}", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n \n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n \n return true;\n }", "constructor(formatobjeto){ //Definimos el constructor\n this.data=formatobjeto\n \n }", "get data() {\n\t\treturn this.__data;\n\t}", "function dataFunc(data) {\n console.log(data.getData());\n console.log(data.getColumns());\n }", "GetData() {}", "setObjectDataLoaded() {\n this.hasDataLoaded.object = true\n if(this.hasDataLoaded.record === true) {\n this.handleWireDataLoaded();\n }\n }", "get Data() {\n return this._data;\n }", "get data() {\n return this._data;\n }", "get data() {\n return this._data;\n }", "get data() {\n return this._data;\n }", "function isEmptyDataObject( obj ) {\r\r\n\tvar name;\r\r\n\tfor ( name in obj ) {\r\r\n\r\r\n\t\t// if the public data object is empty, the private is still empty\r\r\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\r\r\n\t\t\tcontinue;\r\r\n\t\t}\r\r\n\t\tif ( name !== \"toJSON\" ) {\r\r\n\t\t\treturn false;\r\r\n\t\t}\r\r\n\t}\r\r\n\r\r\n\treturn true;\r\r\n}", "function Dataobject(ServerData) {\n this.Head = ServerData.Head;\n this.Data = ServerData.Data;\n this.Config = ServerData.Config; //toNo-Arr indexes\n this.Grid = ServerData.Grid;\n\n //------------------------------------------------------------------------------------------------------------------\n //--------------------Object converters------------------------------------------------------------------------------\n //----------------------------------------------------------------------------------------------------------------\n}", "set data(d){\n if (d instanceof Data) {\n d = d.data;\n }\n this._data = d || {};\n delete this._id;\n return this._data;\n }", "function getDataArray(obj) {\n\t if (obj.rows) {\n\t return obj.rows;\n\t } else if (obj.columns) {\n\t return obj.columns;\n\t } else if (obj.series) {\n\t return [obj];\n\t }\n\t }", "get data(){\n return this._data;\n }", "function getData(obj) {\r\n\tvar data = new Object();\r\n\t\r\n\t// object is a conceptListItem\r\n\tif (obj.conceptId != null) {\r\n\t\tdata.id = data[\"conceptId\"] = obj.conceptId;\r\n\t\tdata[\"fieldName\"] = data[\"conceptName\"] = obj.name;\r\n\t\tdata[\"label\"] = \"CONCEPT.\" + obj.name;\r\n\t\tdata.title = \"Concept Id: \" + obj.conceptId;\r\n\t\tdata.isSet = obj.isSet;\r\n\t\tdata.id = data[\"fieldId\"] = obj.conceptId;\r\n\t}\r\n\t// or object is a fieldListItem\r\n\telse if (obj.fieldId != null) {\r\n\t\tdata.id = data[\"fieldId\"] = obj.fieldId;\r\n\t\tdata[\"fieldName\"] = obj.name;\r\n\t}\r\n\t\r\n\treturn data;\r\n}", "function object (data) {\n return Object.prototype.toString.call(data) === '[object Object]';\n }", "function isEmptyDataObject(obj) {\r\n\t\tvar name;\r\n\t\tfor (name in obj) {\r\n\r\n\t\t\t// if the public data object is empty, the private is still empty\r\n\t\t\tif (name === \"data\" && jQuery.isEmptyObject(obj[name])) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (name !== \"toJSON\") {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "function isEmptyDataObject( obj ) {\n\t var name;\n\t for ( name in obj ) {\n\n\t // if the public data object is empty, the private is still empty\n\t if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n\t continue;\n\t }\n\t if ( name !== \"toJSON\" ) {\n\t return false;\n\t }\n\t }\n\n\t return true;\n\t}", "function returnObjectData() {\n return {\n number: 10,\n string: 'Hello World!',\n boolean: true,\n null: null,\n undefined: undefined,\n };\n}", "get Data () {\n return this._data\n }", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n\n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n\n return true;\n }", "function accessesingData2() {\n\n}", "function accessesingData2() {\n\n}", "getData() {\n \n return {\n \n } \n }", "function getData(data) {\n return data;\n}", "function getObjectFromData(value){\n object = \"\";\n foundObject = false;\n getObject(data.options, value);\n foundObject = false;\n}", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n\n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n\n return true;\n }", "function getData(data) {\n return data;\n}", "getData () {\n }", "function isEmptyDataObject(obj) {\n var name;\n for (name in obj) {\n\n // if the public data object is empty, the private is still empty\n if (name === \"data\" && jQuery.isEmptyObject(obj[name])) {\n continue;\n }\n if (name !== \"toJSON\") {\n return false;\n }\n }\n\n return true;\n }", "function isEmptyDataObject(obj) {\n var name;\n for (name in obj) {\n\n // if the public data object is empty, the private is still empty\n if (name === \"data\" && jQuery.isEmptyObject(obj[name])) {\n continue;\n }\n if (name !== \"toJSON\") {\n return false;\n }\n }\n\n return true;\n }", "function isEmptyDataObject(obj) {\n var name;\n for (name in obj) {\n\n // if the public data object is empty, the private is still empty\n if (name === \"data\" && jQuery.isEmptyObject(obj[name])) {\n continue;\n }\n if (name !== \"toJSON\") {\n return false;\n }\n }\n\n return true;\n }", "function isEmptyDataObject(obj) {\n var name;\n for (name in obj) {\n\n // if the public data object is empty, the private is still empty\n if (name === \"data\" && jQuery.isEmptyObject(obj[name])) {\n continue;\n }\n if (name !== \"toJSON\") {\n return false;\n }\n }\n\n return true;\n }", "function get_data() {}", "function getDataGeneric(data){\n\t$(\"#name\").text(data.name);\n\t$(\"#age\").text(data.age);\n\t$(\"#city\").text(data.city);\n\t$(\"#phone\").text(data.phone);\n\treturn null;\n}", "setData() {}", "function IntObject_GetData()\n{\n\t//default result: null\n\tvar datas = null;\n\t//has HTML get Data?\n\tif (this.HTML && this.HTML.GetData)\n\t{\n\t\t//call it\n\t\tdatas = this.HTML.GetData();\n\t}\n\t//no data? Can happen when the treegrid hasnt scrolled a few objects into view yet\n\tif (datas == null)\n\t{\n\t\t//switch on the class\n\t\tswitch (this.DataObject.Class)\n\t\t{\n\t\t\tcase __NEMESIS_CLASS_CHECK_BOX:\n\t\t\tcase __NEMESIS_CLASS_RADIO_BUTTON:\n\t\t\t\tdatas = new Array(this.Properties[__NEMESIS_PROPERTY_CHECKED]);\n\t\t\t\tbreak;\n\t\t\tcase __NEMESIS_CLASS_EDIT:\n\t\t\t\tdatas = new Array(Get_String(this.Properties[__NEMESIS_PROPERTY_CAPTION], \"\").replace(/\\r\\n/g, \"\\n\").replace(/\\n/g, \"\\r\\n\"));\n\t\t\t\tbreak;\n\t\t\tcase __NEMESIS_CLASS_COMBO_BOX:\n\t\t\t\tdatas = new Array(Get_String(this.Properties[__NEMESIS_PROPERTY_CAPTION], \"\"));\n\t\t\t\tbreak;\n\t\t}\n\t}\n\t//valid data?\n\tif (datas != null)\n\t{\n\t\t//loop through it\n\t\tfor (var i = 0, c = datas.length; i < c; i++)\n\t\t{\n\t\t\t//translate this\n\t\t\tdatas[i] = __VARS_MANAGER.TranslateString(datas[i], this.DataObject.Id);\n\t\t}\n\t}\n\t//return it\n\treturn datas;\n}", "function isEmptyDataObject( obj ) {\r\n\tvar name;\r\n\tfor ( name in obj ) {\r\n\r\n\t\t// if the public data object is empty, the private is still empty\r\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif ( name !== \"toJSON\" ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\treturn true;\r\n}", "function isEmptyDataObject( obj ) {\r\n\tvar name;\r\n\tfor ( name in obj ) {\r\n\r\n\t\t// if the public data object is empty, the private is still empty\r\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tif ( name !== \"toJSON\" ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\treturn true;\r\n}", "function process(obj) {\n\t\tif (obj.c) {\n\t\t\tvar d = Crafty.e(obj.c)\n\t\t\t\t\t\t.attr(obj.attr)\n\t\t\t\t\t\t.trigger('LoadData', obj, process);\n\t\t\treturn d;\n\t\t}\n\t\telse if (typeof obj == 'object') {\n\t\t\tfor (var prop in obj) {\n\t\t\t\tobj[prop] = process(obj[prop]);\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}", "function isEmptyDataObject( obj ) {\n\t\tvar name;\n\t\tfor ( name in obj ) {\n\n\t\t\t// if the public data object is empty, the private is still empty\n\t\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( name !== \"toJSON\" ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "function isEmptyDataObject( obj ) {\n\t\tvar name;\n\t\tfor ( name in obj ) {\n\n\t\t\t// if the public data object is empty, the private is still empty\n\t\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( name !== \"toJSON\" ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "get data() { return this._data.value; }", "function isobj(data) {\n if (data == null) return false\n if (data.constructor && data.constructor.name != 'Object') return false\n return true\n}", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n\n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n\n return true;\n}", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n\n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n\n return true;\n}", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n\n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n\n return true;\n}", "function isEmptyDataObject( obj ) {\n var name;\n for ( name in obj ) {\n\n // if the public data object is empty, the private is still empty\n if ( name === \"data\" && jQuery.isEmptyObject( obj[name] ) ) {\n continue;\n }\n if ( name !== \"toJSON\" ) {\n return false;\n }\n }\n\n return true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}", "function isEmptyDataObject( obj ) {\n\tvar name;\n\tfor ( name in obj ) {\n\n\t\t// if the public data object is empty, the private is still empty\n\t\tif ( name === \"data\" && jQuery.isEmptyObject( obj[ name ] ) ) {\n\t\t\tcontinue;\n\t\t}\n\t\tif ( name !== \"toJSON\" ) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n}" ]
[ "0.6613955", "0.65691936", "0.6275977", "0.6263572", "0.6262527", "0.6169354", "0.61335707", "0.6132601", "0.6128585", "0.6128585", "0.6125784", "0.612326", "0.6077457", "0.60598016", "0.6031358", "0.6031358", "0.6029271", "0.6018686", "0.60073495", "0.59938806", "0.5988676", "0.5988676", "0.5988676", "0.5974121", "0.5972872", "0.59465784", "0.5941862", "0.5935176", "0.5903479", "0.5899827", "0.58926713", "0.58926713", "0.58926713", "0.58899146", "0.58888423", "0.58878064", "0.5882238", "0.58778715", "0.5877238", "0.5865559", "0.58630264", "0.58399814", "0.5832307", "0.5830594", "0.58286554", "0.5826389", "0.5826389", "0.58260745", "0.58257335", "0.5822569", "0.5819372", "0.58096105", "0.58076286", "0.5804515", "0.5804515", "0.5804515", "0.5804515", "0.58010626", "0.57963544", "0.578645", "0.57864493", "0.5782312", "0.5782312", "0.57785475", "0.57731795", "0.57731795", "0.57730454", "0.57666576", "0.5760345", "0.5760345", "0.5760345", "0.5760345", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263", "0.57550263" ]
0.0
-1
function to enable or disable tracing
function enableDisable() { if(this.checked()) tr = true; else tr = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "enableDebugLogging(enable) {\n HyperTrack.enableDebugLogging(enable);\n }", "TraceOnly(...args) { this.do_log(\"TRACE\", args, false); }", "disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n this._proxyTracerProvider = new ProxyTracerProvider_1.ProxyTracerProvider();\n }", "enableLogging() {\n this.loggingEnabled = true;\n }", "function traceToggle() {\n\tif (trace) {\n\t\ttraceButton.hide();\n\t\ttraceButton = createButton(\"Trace OFF\");\n\t\ttraceButton.id(\"mainButton\");\n\t\ttraceButton.position(traceX, traceY);\n\t\ttraceButton.style(\"background-color\", \"red\");\n\t\ttraceButton.mousePressed(traceToggle);\n\n\t\ttrace = false;\n\t} else {\n\t\ttraceButton.hide();\n\t\ttraceButton = createButton(\"Trace ON\");\n\t\ttraceButton.id(\"mainButton\");\n\t\ttraceButton.position(traceX, traceY);\n\t\ttraceButton.style(\"background-color\", \"green\");\n\t\ttraceButton.mousePressed(traceToggle);\n\n\t\ttrace = true;\n\t}\n}", "function isTracingDisabled() {\n var _a;\n if (typeof process === \"undefined\") {\n // not supported in browser for now without polyfills\n return false;\n }\n const azureTracingDisabledValue = (_a = process.env.AZURE_TRACING_DISABLED) === null || _a === void 0 ? void 0 : _a.toLowerCase();\n if (azureTracingDisabledValue === \"false\" || azureTracingDisabledValue === \"0\") {\n return false;\n }\n return Boolean(azureTracingDisabledValue);\n}", "function isTracingDisabled() {\n var _a;\n if (typeof process === \"undefined\") {\n // not supported in browser for now without polyfills\n return false;\n }\n const azureTracingDisabledValue = (_a = process.env.AZURE_TRACING_DISABLED) === null || _a === void 0 ? void 0 : _a.toLowerCase();\n if (azureTracingDisabledValue === \"false\" || azureTracingDisabledValue === \"0\") {\n return false;\n }\n return Boolean(azureTracingDisabledValue);\n}", "enable() { }", "function enableLogging() {\n logEnabled = true;\n}", "enable () {\n this.hook.enable()\n }", "function enableDebugTools(ref){exportNgVar(PROFILER_GLOBAL_NAME,new AngularProfiler(ref));return ref;}", "function enable() {\n counts = ts.createMap();\n marks = ts.createMap();\n measures = ts.createMap();\n enabled = true;\n profilerStart = ts.timestamp();\n }", "trackTrace(telemetry) {\n this.defaultClient.trackTrace(telemetry);\n }", "static enableDebug() {\n capture = function (target) {\n this._traceError = new Error();\n this._initialTarget = target;\n };\n }", "setDebugMode() {\n console.warn(\"setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.\");\n }", "function disable_logs() {\n if (!window.console) window.console = {};\n var methods = [\"log\", \"debug\", \"warn\", \"info\"];\n for (var i = 0; i < methods.length; i++) {\n console[methods[i]] = function () { };\n }\n }", "static off() {\n this._debugMode = false;\n this._stack = [];\n console.warn(`${this.FILENAME} : Debug mode turned OFF.`);\n }", "Trace(...args) { this.do_log(\"TRACE\", args, true); }", "toggleDebugMode() {\n debug = !debug;\n }", "disable () {\n this.hook.disable()\n }", "disable() { }", "function disableTelemetry() {\n clearInterval(REPORTING_INTERVAL);\n}", "function enableVerbose() {\n verbose = true;\n }", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n }", "function traceRunning() {\n console.log(\"Trace initialized...\");\n messageControl.onTraceStart();\n }", "function enableConsole(name) {\n utility.console[name] =\n disabled[name] = enabled;\n }", "function disableDebugTools() {\n delete context.ng;\n}", "function disableDebugTools() {\n delete context.ng;\n}", "disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }", "disable() {\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }", "disable() {\n this._getContextManager().disable();\n (0, global_utils_1.unregisterGlobal)(API_NAME, diag_1.DiagAPI.instance());\n }", "function disableDebugTools() {\n delete context.ng;\n }", "get enableOutputDebugLogging() {\n return false;\n }", "function setLogEnabled(enabled) {\n logEnabled = enabled;\n}", "function hasTracingEnabled(options) {\n if (options === void 0) { options = (_a = hub_1.getCurrentHub()\n .getClient()) === null || _a === void 0 ? void 0 : _a.getOptions(); }\n var _a;\n return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);\n}", "enableLanesTool() {\n this.disableActiveTool();\n this.lanesTool.enableViewEventHandlers();\n }", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebug () {\n if (__webida.env.debug) {\n process.env.BLUEBIRD_DEBUG = 1;\n process.env.NODE_ENV = process.env.NODE_ENV || 'development';\n }\n\n let debugLibPath = require.resolve('debug');\n if (__webida.env.debug) {\n if(!process.env.DEBUG) {\n process.env.DEBUG = 'webida:*';\n } else {\n // if some webida: value is contained to $DEBUG\n // then we don't have to append 'webida:*'\n if (process.env.DEBUG.indexOf('webida:') < 0) {\n process.env.DEBUG += ',webida:*';\n }\n }\n } else {\n let hasDebugLibLoaded = require.cache[debugLibPath] ? true : false;\n if (hasDebugLibLoaded && process.env.DEBUG) {\n let msg = 'debug module is loaded already. webida may print debug messages';\n process.stderr.write (msg + '\\n');\n }\n }\n debugLib = require('debug');\n delete debugFactory.init;\n}", "function toggleTrace3Dview(elt) {\n document.getElementById(\"view3DIfram\").contentDocument.getElementById(\"Tracebtn\").click();\n \n track_trace = !track_trace;\n if(track_trace) {\n elt.innerHTML=initial_trace_html;\n } else {\n elt.innerHTML=initial_not_trace_html;\n }\n}", "function enableRemoteSysLogSetup(toggleObj){\n onImageToggle(toggleObj);\n \n}", "static on() {\n this._debugMode = true;\n this._stack = [];\n console.warn(`${this.FILENAME} : Debug mode turned ON.`);\n }", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "function enableDebugTools(ref) {\n exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));\n return ref;\n}", "enable() {\n this.enabled_ = true;\n }", "function debug(enable) {\n debugEnabled = enable;\n return debugEnabled;\n}", "function toggleConfDebug(){\n\tdebug = !debug;\n\tsetData('debug', debug);\n\talert('Debug mode '+ (debug ? 'ON' : 'OFF'));\n}", "enableDebug(enabled) {\n atom\n .config\n .set('core.debugLSP', enabled);\n }", "function trace(txt) {\r\n\tif (DEBUG_MODE) { \r\n\t\tconsole.log(txt);\r\n\t}\r\n}", "async start(options = {}) {\n assert_js_1.assert(!this._recording, 'Cannot start recording trace while already recording trace.');\n const defaultCategories = [\n '-*',\n 'devtools.timeline',\n 'v8.execute',\n 'disabled-by-default-devtools.timeline',\n 'disabled-by-default-devtools.timeline.frame',\n 'toplevel',\n 'blink.console',\n 'blink.user_timing',\n 'latencyInfo',\n 'disabled-by-default-devtools.timeline.stack',\n 'disabled-by-default-v8.cpu_profiler',\n 'disabled-by-default-v8.cpu_profiler.hires',\n ];\n const { path = null, screenshots = false, categories = defaultCategories, } = options;\n if (screenshots)\n categories.push('disabled-by-default-devtools.screenshot');\n this._path = path;\n this._recording = true;\n await this._client.send('Tracing.start', {\n transferMode: 'ReturnAsStream',\n categories: categories.join(','),\n });\n }", "async start(options = {}) {\n assert_js_1.assert(!this._recording, 'Cannot start recording trace while already recording trace.');\n const defaultCategories = [\n '-*',\n 'devtools.timeline',\n 'v8.execute',\n 'disabled-by-default-devtools.timeline',\n 'disabled-by-default-devtools.timeline.frame',\n 'toplevel',\n 'blink.console',\n 'blink.user_timing',\n 'latencyInfo',\n 'disabled-by-default-devtools.timeline.stack',\n 'disabled-by-default-v8.cpu_profiler',\n 'disabled-by-default-v8.cpu_profiler.hires',\n ];\n const { path = null, screenshots = false, categories = defaultCategories, } = options;\n if (screenshots)\n categories.push('disabled-by-default-devtools.screenshot');\n this._path = path;\n this._recording = true;\n await this._client.send('Tracing.start', {\n transferMode: 'ReturnAsStream',\n categories: categories.join(','),\n });\n }", "function PROFILERTRACE(msg) {\n if (gDebugTrace)\n PROFILERLOG(msg);\n}", "function lemurlog_Switch(event, mode)\n{\n // don't allow switch if we're in private browse mode!\n if (!lemurlogtoolbar_inPrivateBrowseMode) {\n var time = new Date().getTime();\n \n lemurlog_g_enable = !lemurlog_g_enable;\n if(lemurlog_g_enable)\n {\n lemurlog_DoWriteLogFile(lemurlog_LOG_FILE, \"StartLogging\\t\" + time + \"\\n\");\n }\n else\n {\n lemurlog_g_enable = true; // crazy hack to allow writing in log file.\n lemurlog_DoWriteLogFile(lemurlog_LOG_FILE, \"PauseLogging\\t\" + time + \"\\n\");\n lemurlog_g_enable = false;\n }\n lemurlog_SetButtons();\n }\n}", "function enableDebugTools(ref) {\n context.ng = new common_tools_1.AngularTools(ref);\n }", "function turnOffDebug(){\n userProp.setProperty(g_debug_key, 'false');\n loadMenu(userProp.getProperty(g_debug_key));\n}", "onDisable() {}", "stopLog() {\n this.isLogging = false;\n }", "function disabled() {}", "function disabled() {}", "onEnable() {}", "enable() {\n super.enable();\n }", "enable() {\n this._enabled = true;\n }", "function hasTracingEnabled(\n\t maybeOptions,\n\t) {\n\t const client = getCurrentHub().getClient();\n\t const options = maybeOptions || (client && client.getOptions());\n\t return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);\n\t}", "function enableHttpDebugOutput() {\n\n // generate random trace id if it was not set\n if (!config.TRACE_ID) {\n config.TRACE_ID = generateTraceId();\n }\n\n console.log(chalk.red('\\nDEBUG output enabled'));\n console.log(chalk.red(`X-B3-TraceId: ${config.TRACE_ID}\\n`));\n\n // path HTTP requests to log network activity\n const http = require('http');\n const patch = require('monkeypatch');\n\n patch(http, 'request', (requestUnpatched, options, cb) => {\n const req = requestUnpatched(options, cb);\n\n patch(req, 'end', (endUnpatched, data) => {\n log(chalk.red(`${req.method}`) + chalk.blue(` ${req.path}`));\n const headers = req.getHeaders();\n if (headers)\n log(chalk.green(\"HEADERS: \") + chalk.green(util.inspect(headers, {depth: 5})));\n if (data)\n log(chalk.gray(util.inspect(data, {depth: 5})));\n if (req.output)\n log(chalk.gray(util.inspect(req.output, {depth: 5})));\n\n\n return endUnpatched(data);\n });\n\n req.on('response', resp => {\n const headers = resp ? resp.headers : {};\n\n resp.on('data', data => {\n log(chalk.red(\"RESPONSE\") + chalk.blue(` ${req.path}`));\n if (headers)\n log(chalk.green(\"HEADERS: \") + chalk.green(util.inspect(headers, {depth: 5})));\n\n if (data instanceof Buffer) {\n log(chalk.gray(util.inspect(data.toString('utf8'), {depth: 5})));\n } else {\n log(chalk.gray(util.inspect(data, {depth: 5})));\n }\n });\n });\n\n return req;\n });\n}", "function debugInitFuncResultTracing()\r\n{\r\n debugTracingFuncResult = true;\r\n\r\n if(globalDebugTracingLog === undefined)\r\n initializeDebugTracingLog();\r\n\r\n // set 'doDebugging' on all existing objects\r\n for(var id in debugAllQueryResults) {\r\n var queryResult = debugAllQueryResults[id];\r\n queryResult.doDebugging = true;\r\n if(queryResult.query instanceof Query)\r\n queryResult.query.doDebugging = true;\r\n }\r\n}", "function enableWalking () {\n // This method shows links on SV and enables users to walk.\n if (!status.lockDisableWalking) {\n // Enable clicking links and changing POV\n showLinks();\n $spanModeSwitchWalk.css('opacity', 1);\n status.disableWalking = false;\n }\n }", "function __onContextDisable() {\n return false;\n }", "void turnOff() {\r\n isOn = false;\r\n System.out.println(\"Light on? \" + isOn);\r\n }", "shouldTrace(options) {\n return this.sampler.shouldTrace(options.timestamp) &&\n this.urlFilter.shouldTrace(options.url) &&\n this.methodsFilter.shouldTrace(options.method);\n }", "function enableDebugTools(ref) {\n context.ng = new common_tools_1.AngularTools(ref);\n}", "function hasTracingEnabled(\n maybeOptions,\n ) {\n const client = getCurrentHub().getClient();\n const options = maybeOptions || (client && client.getOptions());\n return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options);\n }", "trace(...args) {\n return this.getInstance().trace(...args);\n }", "trace( path, context ) {}", "enable() {\n\t // leave empty in Widget.js\n\t }", "function debug(v){return false;}", "get enableInputDebugLogging() {\n return false;\n }", "async apiEnableSTT() {\n const body = {\n enable_stt: true,\n enable_telemetry: true,\n };\n const headers = { Authorization: `Basic ${await I.getAuth()}` };\n\n const resp = await I.sendPostRequest('v1/Settings/Change', body, headers);\n\n assert.ok(\n resp.status === 200,\n `Failed to enabled STT. ${resp.data.message}`,\n );\n }", "function inception() {\n \tinception();\n }", "function disableConsole(name) {\n utility.console[name] =\n disabled[name] = disabled;\n }", "function setTracer(tracer) {\n var cache = getCache();\n cache.tracer = tracer;\n }", "function turnOffGlobalLogger() {\n globalLogger = new DummyLogger();\n}", "function enableUiNonTrackingMode(){\n console.log('enableUiNonTrackingMode'); \n $(\"#browserActionStateDisplay\").hide();\n $(\"#toggleStateButton\").hide();\n $(\"#toggleTabCategory\").hide();\n $(\"#toggleTrackButton\").html(\n \"Start Tracking\" \n );\n}", "function toggleConsole(){\r\n\tif(showConsole){\r\n\t\tshowConsole = false;\r\n\t}else{\r\n\t\tshowConsole = true;\r\n\t}\r\n}", "function setDebugEnabled(enabled) {\n DEBUG_ENABLED = enabled;\n}", "constructor() {\n /** A list of end span event listeners */\n this.eventListenersLocal = [];\n /** Bit to represent whether trace is sampled or not. */\n this.IS_SAMPLED = 0x1;\n /** A configuration for starting the tracer */\n this.logger = logger.logger();\n this.activeLocal = false;\n this.contextManager = cls.getNamespace();\n this.clearCurrentTrace();\n this.activeTraceParams = {};\n }", "function disable() {\n enabled = false;\n }", "function startTrackingWebVitals() {\n const performance = getBrowserPerformanceAPI();\n if (performance && browserPerformanceTimeOrigin) {\n if (performance.mark) {\n WINDOW.performance.mark('sentry-tracing-init');\n }\n _trackCLS();\n _trackLCP();\n _trackFID();\n }\n }", "function setEnabled(enabled){_enabled=!!enabled;}", "function setEnabled(enabled){_enabled=!!enabled;}", "stop() { \r\n enabled = false;\r\n // TODO: hide PK block list\r\n }", "toggleStatus() {\n this.setState({\n status: this.state.status === 'enabled' ? 'disabled' : 'enabled'\n });\n if (global.hadronApp.dataService && this.state.status === 'enabled') {\n this.state.dataService.command(\n 'test',\n {aggregate: 'x', cursor: {}, pipeline: [{$collStats: {latencyStats: {histograms: true}}}]},\n this.handleLatencyStats.bind(this));\n }\n }", "function trace(msg, ...args) {\n if (TRACE_ENABLED) {\n console.log('imgurgeeks-tools', ...args);\n }\n }", "function enabled(){var self=enabled; // set `diff` timestamp\nvar curr=+new Date();var ms=curr - (prevTime || curr);self.diff = ms;self.prev = prevTime;self.curr = curr;prevTime = curr; // add the `color` if not set\nif(null == self.useColors)self.useColors = exports.useColors();if(null == self.color && self.useColors)self.color = selectColor();var args=Array.prototype.slice.call(arguments);args[0] = exports.coerce(args[0]);if('string' !== typeof args[0]){ // anything else let's inspect with %o\nargs = ['%o'].concat(args);} // apply any `formatters` transformations\nvar index=0;args[0] = args[0].replace(/%([a-z%])/g,function(match,format){ // if we encounter an escaped % then don't increase the array index\nif(match === '%%')return match;index++;var formatter=exports.formatters[format];if('function' === typeof formatter){var val=args[index];match = formatter.call(self,val); // now we need to remove `args[index]` since it's inlined in the `format`\nargs.splice(index,1);index--;}return match;});if('function' === typeof exports.formatArgs){args = exports.formatArgs.apply(self,args);}var logFn=enabled.log || exports.log || console.log.bind(console);logFn.apply(self,args);}", "function tracingPolicy(options = {}) {\n const userAgent = getUserAgentValue(options.userAgentPrefix);\n const tracingClient = tryCreateTracingClient();\n return {\n name: tracingPolicyName,\n async sendRequest(request, next) {\n var _a, _b;\n if (!tracingClient || !((_a = request.tracingOptions) === null || _a === void 0 ? void 0 : _a.tracingContext)) {\n return next(request);\n }\n const { span, tracingContext } = (_b = tryCreateSpan(tracingClient, request, userAgent)) !== null && _b !== void 0 ? _b : {};\n if (!span || !tracingContext) {\n return next(request);\n }\n try {\n const response = await tracingClient.withContext(tracingContext, next, request);\n tryProcessResponse(span, response);\n return response;\n }\n catch (err) {\n tryProcessError(span, err);\n throw err;\n }\n },\n };\n}" ]
[ "0.6727714", "0.6614887", "0.65996647", "0.62511593", "0.62457085", "0.62191814", "0.62191814", "0.61237", "0.610711", "0.598205", "0.584575", "0.5751544", "0.5733407", "0.5699729", "0.56820804", "0.56788826", "0.566025", "0.56535053", "0.5646976", "0.5637084", "0.5622808", "0.56205046", "0.5613613", "0.56128365", "0.559711", "0.55838037", "0.5582724", "0.5564408", "0.55574363", "0.55574363", "0.5517889", "0.5514647", "0.5486372", "0.5484941", "0.5481358", "0.54744077", "0.5446827", "0.5446827", "0.5446827", "0.5446827", "0.5446827", "0.5446827", "0.5446827", "0.5446827", "0.5446827", "0.54352033", "0.5399657", "0.53957623", "0.5374205", "0.536068", "0.536068", "0.534693", "0.5343532", "0.53392774", "0.5338882", "0.53269684", "0.53098714", "0.53098714", "0.5286673", "0.5284616", "0.527201", "0.52618057", "0.523464", "0.5234222", "0.52206093", "0.52206093", "0.5219223", "0.52035403", "0.51935303", "0.51910675", "0.5178211", "0.5175903", "0.51557076", "0.51510805", "0.51435435", "0.51331973", "0.51328444", "0.5129249", "0.51285344", "0.51261073", "0.51232886", "0.5123266", "0.5120748", "0.5112617", "0.5110638", "0.5103806", "0.509696", "0.5082825", "0.5079237", "0.5077826", "0.505604", "0.50532293", "0.504914", "0.5041689", "0.5036436", "0.5036436", "0.50348026", "0.50344867", "0.5028509", "0.50267124", "0.5012751" ]
0.0
-1
function to trace where the balls are. It also removes elements if there start to be too many.
function tracing() { points.push({xx,yy}); for(let i = 0; i < points.length;i++) { ellipse(points[i].xx, points[i].yy,10); } if(points.length >= maxPoints ) points.splice(0,1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showCannonBalls(ball, index)\n{\n //do 5 and then call the function inside draw() line 85\n ball.display();\n\n //do7 and goto \"CannonBall.js\" for trajectory\n //remove the ball once it hits the ground or out of the canvas\n if(ball.body.position.x >= width ||ball.body.position.y >=height -50)\n {\n Matter.World.remove(myWorld, ball.body);\n balls.splice(index,1);\n \n }\n}", "initBallList()\r\n\t{\r\n\t\tlet iterations = 0;\r\n\t\twhile (iterations < this.MAX_BALLS) {\r\n\t\t \tlet digit = Math.floor(Math.random() * this.MAX_BALLS) + 1;\r\n\r\n\t\t\tif (this.drawnBalls.indexOf(digit) < 0) {\r\n\t\t\t\tthis.drawnBalls.push(\r\n\t\t\t\t\tnew Ball(\r\n\t\t\t\t\t\twindow.innerWidth / 2 - 120, \r\n\t\t\t\t\t\twindow.innerHeight / 4,\r\n\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t120,\r\n\t\t\t\t\t\tdigit,\r\n\t\t\t\t\t\t255\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t\titerations++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "advanceBottles() {\n const bottlesAtTile = new Map();\n // Make a copy as bottles breaking could change the array's size during\n // iteration\n for (const bottle of this.game.bottles.slice()) {\n if (bottle.isDestroyed) {\n continue;\n }\n bottle.advance();\n if (!bottle.isDestroyed && bottle.tile) {\n let bottles = bottlesAtTile.get(bottle.tile);\n if (!bottles) {\n bottles = [];\n bottlesAtTile.set(bottle.tile, bottles);\n }\n bottles.push(bottle);\n }\n }\n // now check for bottle <--> bottle collisions, and cleanup\n for (const [tile, bottles] of bottlesAtTile) {\n if (bottles.length > 1) { // there's more than 1 bottle on that tile, break them all\n for (const bottle of bottles) {\n bottle.break();\n }\n }\n else { // there is 1 or 0 bottles on the tile with `id`\n tile.bottle = bottles[0];\n }\n tile.bottle = tile.bottle || undefined;\n }\n }", "shrinkBalls(balls) {\n for (var j = balls.length - 1; j > 0; j--) {\n balls[j].radius -= j * 0.002;\n if (balls[j].radius < 0) {\n balls[j].radius = 0;\n }\n }\n }", "function outlineBuckyPoints()\n{\n var offset = [0,1,1,8,-2,-3];\n var count = 0;\n for(var i = 0; i < 240; i+= offset[count])\n {\n vertices.push(buckyBall[i]);\n count++;\n if (count == 6)\n {\n count = 0;\n i+=7;\n } \n }\n}", "function detectBoatToRefugees() {\n let getBoat = document.querySelector(\".main-boat\");\n\n for (let i = 0; i < refugeesArray.length; i++) {\n getBoatW = getBoat.getBoundingClientRect().width;\n getBoatH = getBoat.getBoundingClientRect().height;\n getBoatX = getBoat.getBoundingClientRect().left;\n getBoatY = getBoat.getBoundingClientRect().top;\n refugeesBoatsW = refugeesArray[i].newBoat.getBoundingClientRect().width;\n refugeesBoatsH = refugeesArray[i].newBoat.getBoundingClientRect().height;\n refugeesBoatsX = refugeesArray[i].newBoat.getBoundingClientRect().left;\n refugeesBoatsY = refugeesArray[i].newBoat.getBoundingClientRect().top;\n\n if (\n getBoatX + getBoatW > refugeesBoatsX &&\n getBoatX < refugeesBoatsX + refugeesBoatsW &&\n getBoatY + getBoatH > refugeesBoatsY &&\n getBoatY < refugeesBoatsY + refugeesBoatsH\n ) {\n refugeesArray[i].newBoat.remove();\n boatCapacity(getBoat, refugeesArray[i]);\n refugeesArray.splice(refugeesArray[i], 1);\n }\n }\n window.requestAnimationFrame(detectBoatToRefugees);\n }", "function checkBricks(){\n //makes sure that the ball will only remove bricks and not the paddle\n if (ball.getY() - BALL_RADIUS * 3 <= NUM_ROWS * BRICK_HEIGHT){\n //checks the top of the ball and what it is touching\n elem = getElementAt(ball.getX(), ball.getY() - ball.getRadius());\n if (elem != null){\n ball.setColor(elem.getColor);\n dy = -dy;\n remove(elem);\n \n }\n \n \n elem = getElementAt(ball.getX() + ball.getRadius(), ball.getY());\n if (elem != null){\n //checks the right side of the ball and what it is touching\n ball.setColor(elem.getColor);\n //bounces to the left\n dx = -dx;\n //removes the brick that is touching the ball\n remove(elem);\n \n }\n \n elem = getElementAt(ball.getX() - ball.getRadius(), ball.getY());\n //checks the left side of the ball and what it is touching\n if (elem != null){\n ball.setColor(elem.getColor);\n //bounces to the right\n dx = -dx;\n //removes the brick that is touching the ball\n remove(elem);\n \n }\n \n elem = getElementAt(ball.getX(), ball.getY()+ ball.getRadius());\n //checks the bottom of the ball and what it is touching\n if (elem != null){\n ball.setColor(elem.getColor);\n //bounces back up\n dy = -dy;\n //removes the brick that is touching the ball\n remove(elem);\n }\n }\n}", "static draw() {\n tick++;\n\n background(51);\n\n for( let b of Ball.zeBalls ) {\n b.show();\n b.step(tick);\n }\n\n // if( tick < 1000 )\n // Ball.saveScreenshot( \"balls-\" + Ball.leadingZeroes(tick, 3) );\n }", "resetBowlingpositions(){\n\t\tthis.bowler.setPosition(config.width * 0.55, config.height * 0.39);\n\t\tthis.ball.setAlpha(0);\n\t\tthis.ball.setScale(0.2);\n\t\tthis.bowlingStarted = false;\n\t\tthis.ball.setPosition(this.startBowlPosX,this.startBowlPosY)\n\t\tthis.stadiumGroup.hideObj();\n\t\tthis.noOfBalls++;\n\t\tthis.startBallAnimation = false;\n\t\tif(this.noOfBalls < this.overCompleted ) {\n\t\tvar timer = this.time.addEvent({\n\t\t\tdelay: 10000, \n\t\t\tcallback: this.playBowlerAnimation(),\n\t\t\tcallbackScope: this,\n\t\t});\n\t\t} else {\n\t\t\tthis.ball.destroy();\n\t\t\tthis.stadiumGroup.destroyObj();\n\t\t}\n\t}", "function traceBall() {\n if (Math.round((ballDataToPlot - springLength)*parabolaXScale) < maxAndMin.min) {\n newPoint = true;\n dataSet.push({\n x: (ballDataToPlot - springLength)*parabolaXScale,\n y: (height-topPad-textPad) - Math.pow((ballDataToPlot - springLength), 2) / parabolaYScale\n });\n }\n else if (Math.round((ballDataToPlot - springLength)*parabolaXScale) > maxAndMin.max) {\n newPoint = true;\n dataSet.push({\n x: (ballDataToPlot - springLength)*parabolaXScale,\n y: (height-topPad-textPad) - Math.pow((ballDataToPlot - springLength), 2) / parabolaYScale\n });\n }\n // use the array sort method in conjunction with a simple function, that points the sorter to the object property.\n dataSet.sort(compare); \n }", "function bullets_borders(){\n for (var x = 0; x < bullets.length; x++){\n console.log(\"Recorcholis\");\n if(bullets[x] !== undefined){\n console.log(\"y mas Recorcholis\");\n if ((bullets[x].x) >1000){\n console.log(bullets[x].x);\n bullets.splice(x,1);\n }\n if ((bullets[x].x) < 0){\n bullets.splice(x,1);\n }\n if((bullets[x].y)<-50){\n bullets.splice(x,1);\n }\n if((bullets[x].y) >500){\n bullets.splice(x,1);\n }\n }\n }\n}", "function _renderBalls() {\n\t\t// clear last frame of balls\n\t\t$('.ball').remove();\n\t\t// for each ball render that ball on the table\n\t\tballs.forEach(function(ball){\n\t\t\tball.render();\n\t\t});\n\t}", "function noBomb(x){\n squares[x].classList.remove(\"hidden\")\n squares[x].classList.remove(\"flag\")\n let newArround = arround\n //look at the squares arround taking into account if it's in a border\n if(x === 0){\n newArround = upLeftArround\n } else if ( x === 9){\n newArround = upRightArround\n } else if (x === 90){\n newArround = downLeftArround\n } else if (x === 99){\n newArround = downRightArround\n } else if (x<9){\n newArround = upArround\n } else if (x>90){\n newArround = downArround\n } else if (x%10 === 0){\n newArround = leftArround\n } else if ((x+1)%10 ===0){\n newArround = rightArround\n }\n\n //count the bombs arround the square\n let bombs = newArround.reduce(function(accum, square) {\n if(squares[x+square].classList.contains('bomb')){\n return accum + 1\n } else { return accum}\n }, 0)\n //if there are no bombs we repeat the accion with the squares arround it\n if(bombs===0){\n newArround.forEach(y => {if(squares[y+x].classList.contains(\"hidden\")){noBomb(y+x)}})\n } else {\n //write in the square the number of bombs arround\n squares[x].innerHTML = bombs;\n switch(bombs){\n case 1: \n squares[x].style.color = \"blue\";\n break;\n case 2:\n squares[x].style.color = \"rgb(17, 82, 17)\"\n break;\n case 3:\n squares[x].style.color = \"rgb(161, 23, 23)\";\n break;\n case 4:\n squares[x].style.color = \"rgb(56, 22, 90)\";\n break; \n case 5:\n squares[x].style.color = \"rgb(185, 125, 13)\";\n break; \n case 6:\n squares[x].style.color = \"rgb(5, 96, 119)\";\n break; \n case 7:\n squares[x].style.color = \"rgb(80, 35, 23)\";\n break; \n }\n }\n}", "function displayBombs() {\n fill(ballColour);\n \n for (let b = 0; b < numberofbombs; b++) {\n circle(bombposX[b], bombposY[b], bombSize)\n \n hit = collidePointCircle(mouseX, mouseY - duck.height * duckScalar / 2, bombposX[b], bombposY[b], bombSize);\n \n if (hit) {\n endGame();\n }\n }\n}", "function appendBalls ()\n{\n //Ref 7 based on stack overflow defined in licenses.txt\n //Answer Link:https://stackoverflow.com/questions/1101668/how-to-use-settimeout-to-invoke-object-itself\n //Within function to achieve a task here ball generation after every one second\n setTimeout(function ()\n {\n //Fetch the ball from the array\n var eball=balls[x];\n //Append the ball to the body\n document.body.appendChild(balls[x]);\n //Function call to myMove function that accepts the ball and add the movement logic\n myMove(eball);\n //Increment x to facilitate the fetching of the next ball\n x++;\n //To keep the check on the number of balls associated\n if (x < balls.length)\n {\n //Recall to the function i.e. self-calling function\n appendBalls();\n }\n }, 1650);//Associated timer for the recall of the function to redo the task.\n}", "function addingBalls() {\n\tvar randI = Math.floor(Math.random()* (ROWS-1));\n\tvar randJ = Math.floor(Math.random()* (COLS-1));\n\n\tif ((gBoard[randI][randJ].type === FLOOR) && (gBoard[randI][randJ].gameElement === null)) {\n\t\tgBoard[randI][randJ].gameElement = BALL;\n\t\tvar currPos = {i: randI, j: randJ};\n\t\trenderCell(currPos, BALL_IMG);\n\t\tgBallCounter++;\n\t}\t\n}", "function detectBricks() {\n\n for (var i = 0; i < 9; i++) {\n for (var j = 0; j < 3; j++) {\n var getValueOfBricks = ceilBricks[i][j];\n // console.log(getValueOfBricks);\n if (getValueOfBricks.z == 0) {\n //checking if ball is touching bricks\n if (initialValueX > getValueOfBricks.x && initialValueX < getValueOfBricks.x + 75 + radiusOfBall && initialValueY > getValueOfBricks.y && initialValueY < getValueOfBricks.y + 20 + radiusOfBall) {\n moveY = -moveY;\n getValueOfBricks.z = 1;\n score++;\n }\n }\n }\n }\n }", "function morelessshapes(b) {\n\tlogger += \"(morelessshapes \" + b.value + \") \";\n\tvar v = 0;\n\tif (b.value == 'less') {\n\t\tv = -1;\n\t} else if (b.value == 'more') {\n\t\tv = 1;\n\t}\n\tvar ds = v*Math.floor(Math.exp(mul/16));\n\tif (ds > 0) {\n\t\tvar i;\n\t\tfor (i=0;i<ds;++i) {\n//\t\t\tif ((shapes.length % 2) == 0) {\n\t\t\t\taddball(\n\t\t\t\t\t200,200,0,\n\t\t\t\t\t5,20*Math.random(),0,\n\t\t\t\t\t50*Math.random()+25\n\t\t\t\t);\n/*\t\t\t} else {\n\t\t\t\tvar s = 50*Math.random()+50;\n\t\t\t\taddplank(200,200,0,\n\t\t\t\t\t5,15,0,\n\t\t\t\t\ts,s\n\t\t\t\t);\n\t\t\t} */\n\t\t}\n\t} else if (ds < 0) {\n\t\tremoveshapes(shapes.length+ds,-ds); // remove from end\n\t}\n\n\t++mul;\n}", "getPocketedBalls() {\n\n let ballPocketed = [];\n\n for (let i = 0; i < this.balls.length; i++) {\n\n for (let j = 0; j < TABLE_POCKETS.length; j++) {\n\n if (this.balls[i].position.distanceFrom(TABLE_POCKETS[j]) < POCKET_RADIUS\n && this.balls[i].include) {\n\n ballPocketed.push(this.balls[i]);\n\n if (!this.balls[i].visible) this.balls[i].include = false;\n }\n }\n }\n\n return ballPocketed;\n }", "function goRound(elves) {\n //var ln = elves.length;\n for (var i=0; i < elves.length; i = i+2) {\n if (i%100 === 0) {\n console.log(i);\n }\n //console.log(elves);\n if (i === elves.length-1) {\n // last elf steals from the first\n //console.log(elves[i], \"stealing from\", elves[0]);\n elves.splice(0, 1);\n break;\n } else {\n //steal from the next elf\n //console.log(elves[i], \"stealing from\", elves[i+1]);\n elves.splice(i+1, 1);\n i--;\n }\n }\n}", "function grid(columns, ball_radius, gap, offx, offy)\n{\n this.columns = columns\n this.offx = offx\n this.offy = offy\n this.rows = 1\n this.ball_radius = ball_radius\n this.ball_size = ball_radius * 2\n this.next_col = 0\n this.gap = gap\n this.balls = {}\n this.movement = 0\n this.critical_mass = 3; //min size of a group for the group to be deleted\n //when a ball is added. Ex, if a ball is added and\n //there are now at least 3 balls in the group, the\n //gropu is removed from the grid.\n //values to save state of moving down\n this.moving = 0\n this.target = 0 //how far should the balls move\n this.time = 0 //how long do the balls have to move there\n this.taken = 0 //how much time has elapsed since the balls started moving\n this.current_move = 0 //how far have the balls moved so far\n\n this.remove_self = function()\n {\n var keys = Object.keys(this.balls)\n for(var index = 0; index < keys.length; index++)\n {\n var c = this.balls[keys[index]];\n remove_object(c.id);\n }\n remove_object(this.id)\n }\n\n this.move_down = function (time, rows=1)\n {\n this.moving = 1\n this.target += (this.ball_size + this.gap) * rows;\n this.time += time\n }\n\n this.get_all_colors = function()\n {\n var colors = {}\n var keys = Object.keys(this.balls)\n for(var index = 0; index < keys.length; index++) {\n var c = this.balls[keys[index]].color;\n if (!(c in colors)) {\n colors[c] = 0;\n }\n }\n return Object.keys(colors)\n }\n\n this.height = function()\n {\n //get all locations\n var locs = Object.keys(this.balls)\n var min = Infinity, max = -Infinity;\n\n for (var index = 0; index < locs.length; index++)\n {\n //get current location\n loc = locs[index]\n loc = [parseInt(loc.slice(0, loc.indexOf(','))),\n parseInt(loc.slice(loc.indexOf(',') + 1, loc.length))]\n if(loc[0] < min)\n min = loc[0]\n if(loc[0] > max)\n max = loc[0]\n }\n return max - min + 1;\n }\n\n this.intersect_grid = function (ball)\n {\n loc = this.get_pos(ball.x, ball.y)\n row = Math.round(loc[0])\n col = Math.round(loc[1])\n\n adj = this.get_adjacent(row, col)\n adj.push([row, col])\n for (index = 0; index < adj.length; index++)\n {\n loc = adj[index]\n if (loc[0] == this.rows || (this.in_grid(loc[0], loc[1]) && ball.intersect(this.balls[[loc[0], loc[1]]])))\n {\n adj.sort(this.make_comp(this, ball));\n for (index = 0; index < adj.length; index++)\n {\n loc = adj[index]\n if (!this.in_grid(loc[0], loc[1]))\n {\n this.thingy = false\n return [true, loc]\n }\n }\n }\n }\n\n return [false, null]\n }\n\n this.make_comp = function(grid, ball) {\n return function(a, b){\n pos1 = grid.get_loc(a[0], a[1]);\n pos2 = grid.get_loc(b[0], b[1]);\n da = Math.sqrt((ball.x - pos1[0]) * (ball.x - pos1[0]) + (ball.y - pos1[1]) * (ball.y - pos1[1]));\n db = Math.sqrt((ball.x - pos2[0]) * (ball.x - pos2[0]) + (ball.y - pos2[1]) * (ball.y - pos2[1]));\n if (da == db)\n return 0;\n else if (da < db)\n return -1;\n else\n return 1;\n }\n }\n\n this.get_ball = function(row, col) {\n if(this.in_grid(row, col))\n return this.balls[[row, col]];\n }\n\n this.flood = function(row, col)\n {\n var marked = {}\n var stack = []\n var found = []\n stack.push([row, col])\n\n while (stack.length > 0)\n {\n var loc = stack.pop()\n if (!(loc in marked))\n {\n marked[loc] = 0\n if (this.in_grid(loc[0], loc[1]))\n {\n found.push(loc)\n adj = this.get_adjacent(loc[0],loc[1])\n for(var index = 0; index < adj.length; index++)\n {\n stack.push(adj[index])\n }\n }\n }\n }\n\n return found\n }\n\n this.color_flood = function(row, col, color)\n {\n var marked = {}\n var stack = []\n var found = []\n stack.push([row, col])\n\n while (stack.length > 0)\n {\n var loc = stack.pop()\n if (!(loc in marked))\n {\n marked[loc] = 0\n if (this.in_grid(loc[0], loc[1]) && this.get_ball(loc[0], loc[1]).color == color)\n {\n found.push(loc)\n adj = this.get_adjacent(loc[0],loc[1])\n for(var index = 0; index < adj.length; index++)\n {\n stack.push(adj[index])\n }\n }\n }\n }\n\n return found\n }\n\n //Draws the grid on the screen\n this.draw = function (elapsed)\n {\n if(this.moving == 1)\n {\n dy = this.target / this.time * elapsed;\n if(this.taken + elapsed >= this.time)\n {\n dy = this.target - this.current_move\n this.target = 0;\n this.time = 0;\n this.taken = 0\n this.current_move = 0\n this.moving = 0\n }\n else\n {\n this.current_move += dy\n this.taken += elapsed\n }\n this.translate_balls(0, dy)\n this.movement += dy\n }\n \n \n }\n\n //Gets the x and y pixels of a location\n this.get_loc = function (row, col)\n {\n x = this.gap + this.offx + (this.gap + this.ball_size) * col\n if (Math.abs(row) % 2 == 1)\n x += this.ball_size / 2;\n y = this.gap - (this.gap + this.ball_size) * (row) + this.offy + this.movement\n return [x, y]\n }\n\n //Gets a row, col location from pixels\n this.get_pos = function (x, y)\n {\n row = (y - this.gap - this.offy - this.movement) / -(this.gap + this.ball_size)\n col = (x - this.gap - this.offy) / (this.gap + this.ball_size)\n if (Math.abs(row) % 2 == 0)\n col = (x - this.gap - this.offy - this.ball_size / 2) / (this.gap + this.ball_size)\n return [row, col]\n }\n\n this.add_rows = function (color_fn, rows)\n {\n for(var index = 0; index < rows; index++)\n {\n this.add_row(color_fn)\n }\n }\n\n //adds a row of balls\n this.add_row = function (color_fn)\n {\n for(var count = 0; count < this.columns; count++)\n {\n this.add_ball(color_fn())\n }\n this.move_down(0.1, 1)\n }\n\n //Adds a single ball to the grid\n this.add_ball = function (color)\n {\n row = this.rows;\n col = this.next_col;\n [x, y] = this.get_loc(row, col)\n this.balls[[row, col]] = new ball(x, y, color, 0, 0, ball_radius);\n add_object(this.balls[[row, col]])\n this.next_col++;\n if(this.next_col >= this.columns)\n {\n this.rows ++;\n this.next_col = 0;\n }\n }\n\n //inserts a ball into the grid at a specific location\n this.insert_ball = function (ball, row, col)\n {\n loc = this.get_loc(row, col);\n ball.x = loc[0]\n ball.y = loc[1]\n ball.speedx = 0\n ball.speedy = 0\n this.balls[[row, col]] = ball\n\n //Get group of balls that this was added to\n group = this.color_flood(row, col, ball.color);\n //If the group has at least 3 balls in it, remove the balls from the grid\n if (group.length >= 3)\n {\n for(var index = 0; index < group.length; index++)\n {\n this.remove_ball(group[index][0], group[index][1])\n }\n return group.length\n }\n return 0\n }\n\n //ensure that all balls are connected to the top row, if they aren't\n // connected to the top row, remove them\n this.verify_grid = function ()\n {\n //get all locations\n var locs = Object.keys(this.balls)\n var index = 0\n var removed = 0\n //save all the balls we have checked.\n var marked = {}\n while (index < locs.length)\n {\n //get current index\n loc = locs[index]\n loc = [parseInt(loc.slice(0, loc.indexOf(','))),\n parseInt(loc.slice(loc.indexOf(',') + 1, loc.length))]\n //make sure to increment index\n index++\n //check to make sure we haven't already verified this location\n // and make sure this location is in the grid\n if (!(loc in marked))\n {\n //If this is passed, find this ball's group of balls\n group = this.flood(loc[0], loc[1])\n //find the max row out of the group\n max_row = group[0][0]\n for(var index2 = 1; index2 < group.length; index2++)\n {\n //if a new max\n if(group[index2][0] > max_row)\n {\n //update the max\n max_row = group[index2][0]\n }\n }\n //with the max row found, check to make sure that the max row\n // is the same as the top row\n if (max_row < this.rows - 1)\n {\n //group is disconnected from top, cleanse the group\n for(var index2 = 0; index2 < group.length; index2++)\n {\n this.remove_ball(group[index2][0], group[index2][1])\n removed++\n }\n }\n //add all these locations to marked locations\n for (var index2 = 0; index2 < group.length; index2++)\n {\n marked[group[index2]] = 0;\n }\n }\n }\n\n //return number of removed balls\n return removed\n }\n\n //Get number of balls in grid\n this.size = function()\n {\n return Object.keys(this.balls).length\n }\n\n //Removes a ball at a given row and column\n this.remove_ball = function (row, col)\n {\n if(this.in_grid(row, col))\n {\n this.balls[[row,col]].die(.2)\n delete this.balls[[row, col]]\n return true\n }\n return false\n }\n\n //Checks if there is a ball at a given location in the grid\n this.in_grid = function (row, col)\n {\n return [row, col] in this.balls\n }\n\n //Gets the adjacent locations to a spot on the grid as a list (with a hex layout)\n this.get_adjacent = function (row, col)\n {\n if (Math.abs(row) % 2 == 1)\n {\n return [[row - 1, col],\n [row - 1, col + 1],\n [row, col + 1],\n [row, col - 1],\n [row + 1, col],\n [row + 1, col + 1]]\n }\n else\n {\n return [[row - 1, col - 1],\n [row - 1, col],\n [row, col + 1],\n [row, col - 1],\n [row + 1, col - 1],\n [row + 1, col]]\n }\n }\n\n //Moves all the balls in a specific direction\n this.translate_balls = function (dx, dy)\n {\n ball_keys = Object.keys(this.balls)\n for(var index = 0; index < ball_keys.length; index++)\n {\n var ball = this.balls[ball_keys[index]]\n ball.x += dx;\n ball.y += dy;\n }\n }\n}", "checkBall() {\n this.ballPosition++;\n\n var disc = this.discs[ this.ballPosition ];\n\n if (disc && !disc.isSlotLinedUp()) {\n // ball bounces away\n this.ballPosition = -1;\n this.ballDropping = false;\n }\n }", "collisionDetect(balls) {\n for (let j = 0; j < balls.length; j++) {\n if (!(this === balls[j])) {\n const dx = this.x - balls[j].x;\n const dy = this.y - balls[j].y;\n const distance = Math.sqrt(dx * dx + dy * dy);\n\n if (distance < this.size + balls[j].size) {\n balls[j].color = this.color = `rgb(${random(0, 255)}, ${random(0, 255)}, ${random(0, 255)})`;\n }\n }\n }\n }", "function showBomb(){\n\tfor(let i = 0; i < myplayer.bombArray.length; i++){\t\t\n\t\tmyplayer.bombArray[i].drawBomb();\n\t\tvar dateFirst = myplayer.bombArray[i].dateCreation.getTime();\t\n\t\tvar result = new Date().getTime() - dateFirst;\t\t\n\t\t\n\t\tif(result > 7000) {\n\t\t\t//remove somethings of list\n\t\t\tmyplayer.bombArray.splice(i, 1);\n\t\t} else if(result > 5000) {\n\t\t\t//change just the image of the bomb. dont call to draw a new img\n\t\t\tmyplayer.bombArray[i].imageBomb= bombExplodingImg;\t\n\t\t\tmyplayer.bombArray[i].bombExploding= true;\n\t\t\tmyplayer.bombArray[i].width = 200;\t\t\t\n\t\t}\n\t}\n}", "function drawBricks() {\n \n bricksCollection = [];\n\n blocksLengthArray.forEach(function ( index, element){\n\n let brickX = (element * ( brickWidth + brickPadding )) + brickOffsetLeft;\n let rectangle = new Rect(brickX, brickOffsetTop, brickWidth, brickHeight, '#FA7268');\n if(selfie.length !== 0) { \n \n if(selfie[index] !== undefined) {\n\n if(selfie[index].status == 1) {\n\n rectangle.status = 1;\n rectangle.render(cavnasContext);\n bricksCollection.push(rectangle);\n \n }\n\n }\n\n } else {\n \n rectangle.status = 1;\n rectangle.render(cavnasContext);\n bricksCollection.push(rectangle);\n\n };\n \n\n });\n \n \n }", "function addBombs(){\n numBombs.innerHTML = bombAmount\n suffledArray = gameArray.sort(()=>Math.random()-0.5);\n //you can see where are the bombs in the console\n console.log(suffledArray)\n squares.forEach(square =>{\n square.classList.add('hidden');\n })\n}", "function drawBottles() {\n for (let i = 0; i < placedBottles.length; i++) {\n let bottle_x = placedBottles[i];\n addObject(objectImages.bottles[1], bottle_x, 350, 0.25);\n }\n}", "function updateBottles(elem, index, arr) {\n if(elem.y < 0)\n bottles.removeChild(elem);\n elem.y += -3;\n}", "function detectRefugeesToPort() {\n for (let i = 0; i < refugeesArray.length; i++) {\n for (let j = 0; j < ports.length; j++) {\n refugeesBoatsW = refugeesArray[i].newBoat.getBoundingClientRect().width;\n refugeesBoatsH = refugeesArray[i].newBoat.getBoundingClientRect()\n .height;\n refugeesBoatsX = refugeesArray[i].newBoat.getBoundingClientRect().left;\n refugeesBoatsY = refugeesArray[i].newBoat.getBoundingClientRect().top;\n portW = ports[j].getBoundingClientRect().width;\n portH = ports[j].getBoundingClientRect().height;\n portX = ports[j].getBoundingClientRect().left;\n portY = ports[j].getBoundingClientRect().top;\n\n if (\n refugeesBoatsX + refugeesBoatsW > portX &&\n refugeesBoatsX < portX + portW &&\n refugeesBoatsY + refugeesBoatsH > portY &&\n refugeesBoatsY < portY + portH\n ) {\n landRefugees(refugeesArray[i]);\n refugeesArray.splice(refugeesArray[i], 1);\n }\n }\n }\n window.requestAnimationFrame(detectRefugeesToPort);\n }", "function draw() {\n background(0);\n\n for (let i = 0; i < balls.length; i++) {\n let ball = balls[i];\n ball.move();\n ball.bounce();\n ball.display();\n }\n}", "function moveBalls() {\r\n for (var i = 0; i < balls.length; i++) {\r\n balls[i].set(\"Y\", balls[i].get(\"Y\") - ball_speed);\r\n if (balls[i].get(\"Y\") < 0) {\r\n balls.splice(i, 1);\r\n }\r\n }\r\n}", "function addBallIfy() {\n if (balls.length < 160) {\n balls.push(getRandomBall());\n }\n}", "function drawBall(ball) {\n ctx.beginPath();\n ctx.arc(ball.x, ball.y, ball.radius, 0, Math.PI*2);\n if (heatmap) {\n\t\tvar colours = [\"#000000\", \"#6666AA\", \"#3333BB\", \"#0000FF\", \"#BB3333\", \"#FF0000\"];//3333BB\n\t\tvar speeds = [0, 0.4, 0.8, 1.4, 1.8, 2.4];\n\t\tvar index = 0;\n\t\tfor (var i=0; i < speeds.length; i++) {\n\t\t\tvar speed = modulus([ball.speedx, ball.speedy]);\n\t\t\tif ( speed >= speeds[i]) {\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tctx.fillStyle = colours[index];\n\t}\n\telse {\n\t\tctx.fillStyle = ball.colour;\n }\n ctx.fill();\n ctx.closePath();\n ctx.beginPath();\n\tfor (var i=0; i < ball.traceArray.length-1; i++) {\n\t\tctx.strokeStyle = ball.colour;\n\t\tctx.lineWidth = 2;\n\t\tctx.moveTo(ball.traceArray[i][0], ball.traceArray[i][1]);\n\t\tctx.lineTo(ball.traceArray[i+1][0], ball.traceArray[i+1][1]);\n\t}\n\tctx.stroke();\n\tctx.closePath();\n}", "moons (lib){\n for (var i=0;i<7;i++){\n let moon = this.madeMoons[i];\n var size = moon.s;\n lib.moveTo(moon.x, moon.y);\n lib.penRGB(moon.r, moon.g, moon.b);\n let movingLeft = true;\n let behind = false;\n \n if (moon.s < 6) {\n movingLeft = false;\n behind = true;\n }\n \n if (movingLeft) moon.x -= .6;\n else moon.x += .3;\n \n if (!behind) lib.dot(size);\n if (movingLeft && moon.x <= -25) {\n moon.s -= 6;\n moon.y = this.flipFlop(moon.y);\n }\n if (!movingLeft && moon.x >= lib.width + 25) {\n moon.s += 6;\n moon.y = this.flipFlop(moon.y);\n }\n }\n }", "function CheckBrickBallCollision() {\n\t// Check if ball is colliding with each brick\n\tfor (var i = 0; i < maps[currentMap].bricks.length; i++) {\n\t\t// console.log(maps[currentMap].bricks[i]);\n\t\t// Check if brick still exists, skip if not\n\t\tif (maps[currentMap].bricks[i].hits >= maps[currentMap].brickColors.length) {\n\t\t\tcontinue;\n\t\t}\n\t\t// Right-side of brick collision\n\t\tif (ballX - ballR < maps[currentMap].bricks[i].x + maps[currentMap].brickWidth &&\n\t\t\tballX + ballR > maps[currentMap].bricks[i].x + maps[currentMap].brickWidth &&\n\t\t\tballY >= maps[currentMap].bricks[i].y &&\n\t\t\tballY <= maps[currentMap].bricks[i].y + maps[currentMap].brickHeight) {\n\t\t\tmaps[currentMap].bricks[i].hits++;\n\t\t\tballSpeedX = -ballSpeedX;\n\t\t}\n\t\t// Left-side of brick collision\n\t\telse if (ballX + ballR > maps[currentMap].bricks[i].x &&\n\t\t\tballX - ballR < maps[currentMap].bricks[i].x &&\n\t\t\tballY >= maps[currentMap].bricks[i].y &&\n\t\t\tballY <= maps[currentMap].bricks[i].y + maps[currentMap].brickHeight) {\n\t\t\tmaps[currentMap].bricks[i].hits++;\n\t\t\tballSpeedX = -ballSpeedX;\n\t\t}\n\t\t// Top of brick collision\n\t\telse if (ballY + ballR > maps[currentMap].bricks[i].y &&\n\t\t\tballY - ballR < maps[currentMap].bricks[i].y &&\n\t\t\tballX >= maps[currentMap].bricks[i].x &&\n\t\t\tballX <= maps[currentMap].bricks[i].x + maps[currentMap].brickWidth) {\n\t\t\tmaps[currentMap].bricks[i].hits++;\n\t\t\tballSpeedY = -ballSpeedY;\n\t\t}\n\t\t// Bottom of brick collision\n\t\telse if (ballY - ballR < maps[currentMap].bricks[i].y + maps[currentMap].brickHeight &&\n\t\t\tballY + ballR > maps[currentMap].bricks[i].y + maps[currentMap].brickHeight &&\n\t\t\tballX >= maps[currentMap].bricks[i].x &&\n\t\t\tballX <= maps[currentMap].bricks[i].x + maps[currentMap].brickWidth) {\n\t\t\tmaps[currentMap].bricks[i].hits++;\n\t\t\tballSpeedY = -ballSpeedY;\n\t\t}\n\n\t\t// Update total bricks broken\n\t\tif (maps[currentMap].bricks[i].hits == maps[currentMap].brickColors.length) {\n\t\t\tbrokenBricks++;\n\t\t}\n\n\t\t// Check if all bricks are broken\n\t\t// con\n\t\tif (brokenBricks >= maps[currentMap].bricks.length) {\n\t\t\tbrokenBricks = 0;\n\t\t\tcurrentMap++;\n\t\t\tresetBall();\n\t\t\tresetPaddle();\n\t\t\troundStart = true;\n\t\t\tif (currentMap === maps.length) {\n\t\t\t\tgameOver = true;\n\t\t\t} else {\n\t\t\t\tmapComplete = true;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n}", "function draw() {\n background(20);\n\n // for-loop that goes through the balls array, calling Ball.js's methods for each one\n for (let i = 0; i < balls.length; i++) {\n let ball = balls[i];\n ball.move();\n ball.bounce();\n ball.display();\n }\n}", "function renderBombs()\n{\n //for each bomb\n balloonAmmo.forEach(oneBomb =>\n {\n //if bomb has exploded\n if (oneBomb.exploded)\n {\n ctx.drawImage(explodedBombImage, oneBomb.x, oneBomb.y, bombSize, bombSize); \n }\n //if bomb has been fired\n else if (oneBomb.fired)\n {\n //draw the bomb\n ctx.drawImage(bombImage, oneBomb.x, oneBomb.y, bombSize, bombSize);\n \n //help determine hitbox for bombs\n //insert painted hitboxes here if needed\n }\n });\n}", "function createBalls() {\r\n // this can create as many balls as needed in this case five\r\n for (i = 0; i < maxBalls; i++) {\r\n // calls the function\r\n createCollide(\"red\", i);\r\n }\r\n //does the same for stick side\r\n for (j = maxBalls + 1; j < maxBallstwo; j++) {\r\n createStick(\"blue\", j);\r\n }\r\n\r\n // this just shows whats happening with the arrays when createBalls() is called\r\n //all the balls with id 0-4 and 5-9 and attributes are pushed into arrays\r\n console.log(ballsCollide);\r\n\r\n console.log(ballsStick);\r\n\r\n console.log(xC);\r\n\r\n console.log(yC);\r\n\r\n console.log(xS);\r\n\r\n console.log(yS);\r\n console.log(velocity_xC);\r\n console.log(velocity_yC);\r\n}", "generateUnbreakableWalls() {\n\n //Reincia el array\n GameElements.unbreakableWalls.splice(0, GameElements.unbreakableWalls.length);\n //PAREDES EXTERNAS\n let xPos = 0;\n let yPos = 0;\n for (let i = 1; i <= 52; i++) {\n if (yPos == 0 || yPos == 600) {\n let position = GameElements.getPosition(xPos, yPos);\n let wall = new Element(xPos, yPos,\n Element.TYPE.UNBREAKABLE_WALL);\n GameElements.unbreakableWalls.push(wall);\n GameElements.elementsPosition.set(position, wall);\n }\n else {\n if (xPos == 0) {\n let position = GameElements.getPosition(xPos, yPos);\n let wall = new Element(xPos, yPos,\n Element.TYPE.UNBREAKABLE_WALL);\n GameElements.unbreakableWalls.push(wall);\n GameElements.elementsPosition.set(position, wall);\n xPos = 700;\n position = GameElements.getPosition(xPos, yPos);\n wall = new Element(xPos, yPos,\n Element.TYPE.UNBREAKABLE_WALL);\n GameElements.unbreakableWalls.push(wall);\n GameElements.elementsPosition.set(position, wall);\n i++;\n }\n }\n xPos += 50;\n if (xPos == 750) {\n xPos = 0;\n yPos += 50;\n }\n }\n\n //PAREDES INTERIORES \n xPos = 100;\n yPos = 100;\n for (let i = 53; i <= 82; i++) {\n\n let wall = new Element(xPos, yPos,\n Element.TYPE.UNBREAKABLE_WALL);\n GameElements.unbreakableWalls.push(wall);\n let positionNumber = GameElements.getPosition(xPos, yPos);\n GameElements.elementsPosition.set(positionNumber, wall);\n xPos += 100;\n if (xPos == 700) {\n xPos = 100;\n yPos += 100;\n }\n }\n\n }", "function ballBrickHandling() {\n let ballBrickCol = Math.floor(ballX / BRICK_WIDTH);\n let ballBrickRow = Math.floor(ballY / BRICK_HEIGHT);\n let brickIndexUnderBall = rowColToArrayIndex(ballBrickCol, ballBrickRow);\n\n if (ballBrickCol >= 0 && ballBrickCol < BRICK_COLUMNS && ballBrickRow >= 0 && ballBrickRow < BRICK_ROWS) {\n\n if (isBrickAtRowCol(ballBrickCol, ballBrickRow)) {\n brickArr[brickIndexUnderBall] = false;\n score += 100;\n bricksLeft--;\n\n let prevBallX = ballX - speedBallX;\n let prevBallY = ballY - speedBallY;\n let prevBrickCol = Math.floor(prevBallX / BRICK_WIDTH);\n let prevBrickRow = Math.floor(prevBallY / BRICK_HEIGHT);\n\n let bothTestsFailed = true;\n\n if (prevBrickCol != ballBrickCol) {\n if (isBrickAtRowCol(prevBrickCol, prevBrickRow) == false) {\n speedBallX *= -1;\n bothTestsFailed = false;\n }\n }\n if (prevBrickRow != ballBrickRow) {\n if (isBrickAtRowCol(prevBrickCol, prevBrickRow) == false) {\n speedBallY *= -1;\n bothTestsFailed = false;\n }\n }\n if (bothTestsFailed) {\n speedBallX *= -1;\n speedBallY *= -1;\n }\n }\n }\n}", "function bouncing_ball() {\n\n\tdraw_briques();\n\n\tfor(j=0;j<balls_lost.length;j++) {\n\t\tif (x[j] + dx[j] > WIDTH || x[j] + dx[j] < 0)\n\t\t\tdx[j] = -dx[j];\n\t\tif (y[j] + dy[j] > HEIGHT || y[j] + dy[j] < 0)\n\t\t\tdy[j] = -dy[j];\n\t}\n\tdraw_ball_or_balls();\n}", "function drawAliasBalls() {\n for (let ball of ballArray) {\n // calculate position\n let alias = aliasBalls[ball.id]\n alias.x = (ball.x - miniViewWidth * 4) * 4\n alias.y = ball.y * 4\n // update group, colour\n alias.group = ball.group\n alias.colour = ball.colour\n // draw\n alias.draw()\n }\n }", "function hit(ball, brick)\n{\n brick.kill();\n // update the score\n score += scoreIncrement;\n scoreText.setText('Points: ' + score);\n\n // check if all the bricks are destroyed\n var count_alive = 0;\n for (i = 0; i < bricks.children.length; i++)\n {\n if (bricks.children[i].alive == true)\n {\n count_alive++;\n }\n }\n if (count_alive == 0) //all the bricks are destroyed\n {\n showDialog();\n }\n}", "function bomberMan(n, grid) {\n const r = grid.length,\n c = grid[0].length;\n let full = '';\n for(let i=0; i<c; i++) full += 'O';\n\n function detoantion(){\n const dy = [0,1,-1,0,0],\n dx = [0,0,0,1,-1];\n // detonation\n // for(let y=0; y<r; y++){\n for(let b of bombs){\n let y = b[0], x = b[1];\n // console.log('y : '+ y + 'x : ' + x + 'bomb : ', bombs[[y,x]])\n if(bombs[[y,x]] != 1){\n for(let d=0; d<5; d++){\n let ny = y + dy[d], nx = x + dx[d];\n if(ny < 0 || ny >= r || nx < 0 || nx >= c) continue;\n grid[ny] = grid[ny].substr(0,nx) + '.' + grid[ny].substr(nx+1);\n }\n }\n }\n // }\n bombs = [];\n }\n function fill(){\n for(let i=0; i<r; i++){\n for(let j =0; j<c; j++){\n if(grid[i][j] == 'O') bombs.push([i,j]);\n }\n grid[i] = full;\n }\n }\n let bombs = [];\n \n \n if(n <= 1) return grid // 0~1\n fill(); if(n % 2 == 0) return grid; // 2\n detoantion(); if(n==3) return grid; // 3\n let v2 = [].concat(grid);\n fill();\n detoantion();\n let v1 = [].concat(grid);\n if(n >5){ // 3~n\n if( (n+1) % 4 == 0 ) return v2;\n if( (n-1) % 4 == 0 ) return v1;\n }\n\n return grid;\n}", "function infect() {\n var ball,\n source;\n const nodes = state.forceSim.nodes();\n\n for (var i = 0; i < nodes.length; i++) {\n ball = nodes[i];\n\n source = document.getElementById(\"ball\"+i.toString());\n try {\n if (balls[i].infected == false) {\n continue;\n }\n else {\n var closest_node = closest_nodee(nodes, ball, 2*BALL_RADIUS+1);\n if (closest_node != undefined) {\n var idx = closest_node.index;\n\n if (balls[idx].recovered == false && balls[idx].infected == false) {\n d3.select(\"circle#ball\"+idx.toString()).style(\"fill\", INFECTED);\n balls[idx].infected = true;\n balls[idx].tick_infected = tick_count;\n plusInfect();\n // plusTime();\n }\n }\n }\n } catch (TypeError) {}\n }\n}", "function draw() {\n background(0, 0, 0);\n\n for (let j of foods) {\n j.show();\n for (let i = 0; i < boids.length; i++) {\n var targets = [\n createVector(mouseX, mouseY)\n ];\n boids[i].move(foods, targets);\n boids[i].show();\n for (let other of boids) {\n if (boids[i] !== other) {\n if (boids[i].position.dist(j.position) < 50) {\n other.avoid(j, avoidRange = 100);\n } else {\n boids[i].avoid(other);\n }\n }\n }\n }\n }\n}", "bigBang() {\n // draws universe\n this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height)\n for (let i = 0; i < this.row; i++) {\n for (let j = 0; j < this.col; j++) {\n // if the cell is DEAD (WHITE SQUARES) 0\n if (this.universe.grid[i][j] === 0) {\n this.ctx.beginPath();\n this.ctx.rect(j * this.scale, i * this.scale, this.scale, this.scale);\n this.ctx.stroke();\n } else if (this.universe.grid[i][j] === 1) { // if cell is ALIVE (BLACK SQUARES) 1\n this.ctx.fillRect(j * this.scale, i * this.scale, this.scale, this.scale);\n }\n }\n }\n }", "function drawBalls() {\r\n for (let i = 0; i < ballArray.length; i++) {\r\n ballArray[i].draw();\r\n }\r\n}", "function draw() {\n background(0); // Black background\n \n bubbles.forEach(b => {\n b.update(); // Update the position of the bubbles (random walk)\n b.edge(); // Mark the the bubbles \"dead\" if they go out of the window\n });\n \n // Check intersections using the quad tree, eaten bubbles are marked \"dead\"\n checkIntersections();\n \n // Delete dead bubbles\n for (let i = bubbles.length - 1; i >= 0; i--) {\n if (bubbles[i].dead) bubbles.splice(i, 1);\n }\n \n // Displays the bubbles on the screen\n bubbles.forEach(b => b.show());\n \n // Add a new bubble if the amount is inferior to the maximum\n if (bubbles.length < maxBubbles) addBubble();\n}", "function displayShape() {\n //remove any trace of a tetrominoe from the entire grid\n displaySquares.forEach(square => {\n square.classList.remove('tetrominoe');\n });\n upNextTetrominoes[nextRandom].forEach(index => {\n displaySquares[displayIndex + index].classList.add('tetrominoe');\n });\n }", "function brfs(grph){\n\t\ttraversedNodes=[];\n\t\ttraversedNodes.push(grph.nodes[focusnode]);\n\t\tvar marked={};\n\t\twhile (traversedNodes.length != 0) {\n\t\t\tvar v = traversedNodes.shift();\n\t\t\t//console.log(v);\n\t\t\tif(v == grph.nodes[focusnode])\n\t\t\t{ \n\t\t\t\tv.x= w/2; v.y= h/2; v.fixed = true; v.px= w/2; v.py= h/2;\n\t\t\t\tmarked[v.index]=true;\n\t\t\t\tvar neghbours= [];\n\t\t\t\t//console.log(grph);\n\t\t\t\tvar adjList = [];\n\t\t\t\tadjList=findchilds(v, grph);\n\t\t\t\t//console.log(\"childs\" + adjList);\n\t\t\t\tfor (var a=0;a< adjList.length;a++) {\n\t\t\t\t\tu=adjList[a];\n\t\t\t\t\tif(marked[u.index]!=true){\n\t\t\t\t\t\tmarked[u.index]=true;\n\t\t\t\t\t\tneghbours.push(u);\n\t\t\t\t\t\tvar currentAngle = startAngle + ((360/adjList.length) * (a));\n\t\t\t\t\t\tvar currentAngleRadians = currentAngle * D2R;\n\t\t\t\t\t\tvar radialPoint = {\n\t\t\t\t\t\t\tx: (w / 2) + radius * Math.cos(currentAngleRadians), \n\t\t\t\t\t\t\ty: (h / 2) + radius * Math.sin(currentAngleRadians)\n\t\t\t\t\t\t};\n\t\t\t\t\t\tu.x = radialPoint.x;\n\t\t\t\t\t\tu.px = radialPoint.x;\n\t\t\t\t\t\tu.y = radialPoint.y;\n\t\t\t\t\t\tu.py = radialPoint.y;\n\t\t\t\t\t\tu.fixed = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttraversedNodes.push(neghbours);\n\t\t\t\t//console.log(\"Traversed nodes\" + traversedNodes);\n\t\t\t} else if(v.length > 0) {\n\t\t\t\trad= radius * ring;\n\t\t\t\t//console.log(v);\n\t\t\t\t//console.log(radius);\n\t\t\t\tvar neghbours= [];\n\t\n\t\tfor(var j=0; j< v.length; j++) {\n\t\t\tif (marked[v[j].label]=== false) {marked[v[j].label]=true;}\n\t\t\tadjList=findchilds(v[j], grph );\n\t\t\tfor (var a=0; a< adjList.length; a++) {\n\t\t\t\tu=adjList[a];\n\t\t\t\tif(marked[u.index]!=true){\n\t\t\t\t\tmarked[u.index]=true;\n\t\t\t\t\tneghbours.push(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (var loc= 0; loc < neghbours.length; loc++) { \n\t\t\tvar currentAngle = startAngle + ((360/neghbours.length) * (loc));\n\t\t\tvar currentAngleRadians = currentAngle * D2R;\n\t\t\tvar radialPoint = {\n\t\t\t\tx: (w / 2) + rad * Math.cos(currentAngleRadians), \n\t\t\t\ty: (h / 2) + rad * Math.sin(currentAngleRadians)\n\t\t\t};\n\t\t\tneghbours[loc].x = radialPoint.x;\n\t\t\tneghbours[loc].y = radialPoint.y;\n\t\t\tneghbours[loc].px = radialPoint.x;\n\t\t\tneghbours[loc].py = radialPoint.y;\n\t\t\tneghbours[loc].fixed = true;\n\t\t}\n\t\t\n\t\tif(neghbours.length !=0) {traversedNodes.push(neghbours);}\n\t}\n\tring++;\n\t//console.log(ring);\n\t}\n}", "function logBall(ranEnd, ran) {\n ballThrown[ran - 1]++;\n ballEnd[ranEnd - 1]++;\n ballThrownHistory += \"\" + ran + \"\";\n ballEndHistory += \"\" + ranEnd + \"\";\n}", "function combBalls(balls) {\n if (balls.filter(b => b.distance > 0).length === 0) {\n return\n }\n balls.forEach((ball, i) => {\n // skip first and last\n if (i ===0 || i === balls.length - 1) {\n return\n }\n let prevBall = balls[i - 1]\n let interval = ball.distance - prevBall.distance\n let overlap = MIN_BALL_INTERVAL - interval\n if (overlap > 0 && ball.distance + overlap < 300) {\n ball.distance += overlap\n }\n })\n // do it again backwards\n for(let i in balls) {\n // skip first and last\n if (i == 0 || i == balls.length - 1) {\n continue\n }\n let _i = balls.length - 1 - i\n let ball = balls[_i]\n let nextBall = balls[_i + 1]\n let interval = nextBall.distance - ball.distance\n let overlap = MIN_BALL_INTERVAL - interval\n if (overlap > 0) {\n ball.distance -= overlap\n }\n }\n}", "function showAllBombs() {\n for (var i = 0; i < gBoard.length; i++) {\n for (var j = 0; j < gBoard[0].length; j++) {\n var cell = gBoard[i][j];\n if (cell.isBomb) {\n colorCell(i, j, 'red');\n }\n }\n }\n}", "generateBreakableWalls() {\n\n //Reincia el array\n GameElements.breakableWalls.slice(0, GameElements.breakableWalls.length);\n //LLeno el array de muros con todos las coordenadas disponibles \n //salvo las coordenadas de las zonas de incio de cada jugador\n let x = 50;\n let y = 50;\n for (let i = 1; i <= 111; i++) {\n //Si no son coordenadas de la zona de inicio \n if (!this.isAPlayerStartZone(x, y)) {\n let wall = new Element(x, y, Element.TYPE.BREAKABLE_WALL);\n GameElements.breakableWalls.push(wall);\n let position = GameElements.getPosition(x, y);\n GameElements.elementsPosition.set(position, wall);\n }\n //Lineas inpares\n if (y % 100 == 0) {\n x += 100;\n }\n //lineas pares\n else {\n x += 50;\n }\n //cambio de linea\n if (x >= 700) {\n x = 50;\n y += 50;\n }\n }\n //Retiro 40 paredes de maneras aleatoria\n for (let i = 0; i < 40; i++) {\n let index = Math.floor(Math.random() * GameElements.breakableWalls.length);\n let element = GameElements.breakableWalls[index];\n let position = GameElements.getPosition(element.xPos, element.yPos);\n GameElements.elementsPosition.set(position, new Element(element.xPos, element.yPos, Element.TYPE.GROUND))\n GameElements.breakableWalls.splice(index, 1);\n }\n\n }", "function displayShape() {\n // remove any trace of a tetromino form the entire grid\n displaySquares.forEach((square) => {\n square.classList.remove('tetromino');\n });\n upNextTetrominoes[nextRandom].forEach((index) => {\n displaySquares[displayIndex + index].classList.add('tetromino');\n });\n}", "function handleObstacles(){\n if (frame%200 === 0){\n var randomBoolean = Math.random() >= 0.5;\n if(randomBoolean === true){obstaclesArray.unshift(new Pylon());}\n else{obstaclesArray.unshift(new Bird());}\n }\n for(let i = 0; i < obstaclesArray.length; i++){\n obstaclesArray[i].update();\n if (obstaclesArray.length > 5){\n obstaclesArray.pop(obstaclesArray[0]);\n }\n }\n}", "function drawEnemyBigShips(){\n\t\tfor(let i=0;i<enemyArr.length; i++){\n\n\n\t\t\tif(enemyArr[i].name === 'redCarier'){\n\n\t\t\t\t\tif(enemyArr[i].topFrame === true && enemyArr[i].y <= 0){\n\t\t\t\t\t\t\t\tenemyArr[i].speedY *= -1;\n\t\t\t\t\t}\n\t\t\t\t\tif(enemyArr[i].y >= enemyArr[i].yPos ){\n\t\t\t\t\t\tenemyArr[i].speedY *= -1;\n\t\t\t\t\t\tif(enemyArr[i].topFrame === false){\n\t\t\t\t\t\t\tenemyArr[i].topFrame = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(enemyArr[i].speedX === 0){\n\t\t\t\t\t\t\tenemyArr[i].speedX = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fire Logics==================\n\t\t\t\t\tenemyArr[i].fire++;\n\n\t\t\t\t\tif(enemyArr[i].fire%180 === 0){\n\t\t\t\t\t\taddShipRed(enemyArr[i].x + 20,enemyArr[i].y + enemyArr[i].height);\n\t\t\t\t\t}\n\t\t\t\t\tif(enemyArr[i].fire%280 === 0){\n\t\t\t\t\t\taddShipRed(enemyArr[i].x + 40,enemyArr[i].y + enemyArr[i].height);\n\t\t\t\t\t\taddEnemy(enemyArr[i].x + 80,enemyArr[i].y + enemyArr[i].height);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t}\n\n}", "function addBallIfy() {\n if (balls.length < 20) {\n balls.push(getRandomBall());\n }\n }", "getNumberOfNonCueBalls() {\n\n let redCount = 0;\n let colorCount = 0;\n\n for (let i = 0; i < INITIAL_BALLS_POSITION.length; i++) {\n\n if (INITIAL_BALLS_POSITION[i][1] === BALL_COLOR.RED) redCount++; //gives number of redballs\n\n if (INITIAL_BALLS_POSITION[i][1] !== BALL_COLOR.RED\n && INITIAL_BALLS_POSITION[i][1] !== BALL_COLOR.WHITE) {\n colorCount++;//gives number of color balls\n }\n }\n\n return {\n redBalls: redCount,\n colorBalls: colorCount,\n };\n }", "function Ball(x, y, dx, dy, radius, color) {\n this.x = x;\n this.y = y;\n this.dx = dx;\n this.dy = dy;\n this.radius = radius;\n this.color = color;\n\n // draw items\n this.draw = () => {\n ctx.beginPath();\n ctx.arc(this.x, this.y, this.radius, 0, Math.PI * 2, false);\n ctx.stroke();\n ctx.fillStyle = this.color;\n ctx.fill();\n ctx.closePath();\n };\n\n // move items\n this.update = () => {\n if (this.y + this.radius + this.dy > canvas.height) {\n this.dy = -this.dy * rebound;\n floorCount++;\n } else {\n this.dy += gravity;\n }\n\n if (this.x + this.radius > canvas.width || this.x - radius < 0) {\n this.dx = -this.dx;\n }\n\n this.x += this.dx;\n this.y += this.dy;\n\n // increase radius\n if (this.radius < maxRadius && floorCount > numberOfBalls - 2) {\n this.radius = this.radius * 1.005;\n }\n\n // change colors\n if (floorCount === numberOfBalls - 1) {\n this.color = colorArray[Math.floor(Math.random() * colorArray.length)];\n canvas.style.background = 'black';\n }\n\n // last gothic effect\n if (floorCount > 2 * numberOfBalls - 3) {\n this.color = 'black';\n canvas.style.background = 'white';\n maxRadius = 30;\n\n if (this.y - this.radius + this.dy < 0) {\n this.dy = -this.dy;\n rebound = 1;\n gravity = 0;\n }\n\n if (this.y - this.radius + this.dy < -1) {\n this.y = this.radius + 1;\n }\n }\n\n this.draw();\n };\n}", "function update() {\r\n canvas.clear();\r\n //loop for execute collision check with holes and finish\r\n for (i = 0; i < balls.length; i++) {\r\n if (ball.checkBallCollision(balls[i])) {\r\n if (balls[i].color == \"red\") {\r\n clearInterval(interval);\r\n alert(\"You Lost!!!\" + \"\\n\" + \"Your Time: \" + (Date.now() - ball.time) / 1000)\r\n }\r\n else if (balls[i].color == \"green\") {\r\n clearInterval(interval);\r\n alert(\"You Won!!!\" + \"\\n\" + \"Your Time: \" + (Date.now() - ball.time) / 1000)\r\n }\r\n }\r\n }\r\n ball.update();\r\n //drawing elements from balls list on canvas\r\n balls.forEach(element => {\r\n element.update();\r\n });\r\n\r\n}", "printBall () {\n for (let i = this.ballPosition.latitude - 2; i < this.ballPosition.latitude + 2; i++) {\n for (let j = this.ballPosition.longitude - 2; j < this.ballPosition.longitude + 2; j++) {\n this.matrix.setElement(j, i, '#');\n }\n }\n }", "function renderBallsList(elementSelector) {\n var ballCounter = 1;\n $.each(matchState.Over.balls,\n function(i, ball) {\n var listItem = $(\"<li></li>\");\n var itemContent = $(\"<div></div>\");\n itemContent.addClass(\"item-content\");\n\n var ballNumber = $(\"<div></div>\");\n ballNumber.addClass(\"ball-number\");\n ballNumber.addClass(\"item-media\");\n var ballNumberBadge = $(\"<span></span>\");\n ballNumberBadge.addClass(\"badge\");\n ballNumberBadge.text(matchState.LastCompletedOver+1+\".\"+ballCounter);\n ballNumber.append(ballNumberBadge);\n \n var ballDescriptionInner = $(\"<div></div>\");\n ballDescriptionInner.addClass(\"ball-description\");\n ballDescriptionInner.addClass(\"item-inner\");\n\n var ballDescriptionTitle = $(\"<div></div>\");\n ballDescriptionTitle.addClass(\"item-title\");\n \n var ballDescriptionTitleHeader = $(\"<div></div>\");\n ballDescriptionTitleHeader.addClass(\"item-header\");\n ballDescriptionTitleHeader.text(ball.bowler + \" to \" + ball.batsmanName);\n ballDescriptionTitle.append(ballDescriptionTitleHeader);\n ballDescriptionTitle.append(ball.getBallDescription());\n\n ballDescriptionInner.append(ballDescriptionTitle);\n\n\n var ballEditAfter = $(\"<div></div>\");\n ballEditAfter.addClass(\"item-after\");\n\n var ballEditIcon = $(\"<i></i>\");\n ballEditIcon.addClass(\"icon\");\n ballEditIcon.addClass(\"material-icons\");\n ballEditIcon.addClass(\"ball-edit-link\");\n ballEditIcon.attr(\"ball-number\", i);\n ballEditIcon.text(\"edit\");\n \n var ballEditLink = $(\"<a></a>\");\n ballEditLink.addClass(\"link icon-only\");\n ballEditLink.append(ballEditIcon);\n\n ballEditAfter.append(ballEditLink);\n\n itemContent.append(ballNumber);\n ballDescriptionInner.append(ballEditAfter);\n itemContent.append(ballDescriptionInner);\n\n listItem.append(itemContent);\n\n $(elementSelector).append(listItem);\n if (ball.isLegalDelivery()) {\n ballCounter++;\n }\n });\n $(\".ball-edit-link\").click(function() {\n ballNumber = $(this).attr(\"ball-number\");\n\n });\n}", "makesBombsExplode() {\n\n GameElements.bombs.forEach(bomb => {\n if (bomb.isInsideElement(bomb.xPos, bomb.yPos, this)) {\n bomb.time = 1;//Deja la bomba a punto de explotar\n }\n this.flames.forEach(flame => {\n if (bomb.isInsideElement(bomb.xPos, bomb.yPos, flame)) {\n bomb.time = 1;//Deja la bomba a punto de explotar\n }\n });\n });\n\n }", "function pushNewBalls(){\n\tvar randomPoint = randomFromArray(randPoints),\n\t\t randomColor = randomFromArray(colors)\n\tballs.push(\n\t\tnew Ball(\n\t\t\tcanvas, ctx,\n\t\t\trandomPoint.x, randomPoint.y,\n\t\t\tglobalRadius, randomColor, particles, 0, velocityOfBall, false\n\t\t)\n\t)\n}", "function checkSurrounding( rob, index ) {\n var surroundedCount = 0;\n if( rob.i > 0 && grid[rob.i-1][rob.j].occupiedBy != null && grid[rob.i-1][rob.j].occupiedBy.cop ) {\n //cop to left\n surroundedCount++;\n }\n if( rob.i < gridSize - 1 && grid[rob.i+1][rob.j].occupiedBy != null && grid[rob.i+1][rob.j].occupiedBy.cop ) {\n //cop to right\n surroundedCount++;\n }\n if( rob.j > 0 && grid[rob.i][rob.j-1].occupiedBy != null && grid[rob.i][rob.j-1].occupiedBy.cop ) {\n //cop above\n surroundedCount++;\n }\n if( rob.j < gridSize - 1 && grid[rob.i][rob.j+1].occupiedBy != null && grid[rob.i][rob.j+1].occupiedBy.cop ) {\n //cop above\n surroundedCount++;\n }\n\n if( surroundedCount >= 2 ) {\n //surrounded by cops, remove from play\n grid[rob.i][rob.j].occupiedBy = null;\n engine.removeObject( rob );\n remove( rob, agents );\n if( index < currentAgent ) {\n currentAgent--;\n }\n }\n}", "function locateball()\r\n{\r\n\t// the objective of this function is to mark the cells displaying the ball\r\n\t// the cells are color coded as white\r\n\t// this is a single important program\r\n\t// the shape of the ball can be altered\r\n\t// for ease, in this instance, it is considered a square\r\n\t// even if it was a circle, the squares should define the limits\r\n\t// the program, therefore, remains the same\r\n\t/* GEOMETRY OF BALL\r\n\r\n the central column\r\n |\r\n ball_radius | ball_radius\r\n x unit | x unit\r\n <---> v <--->\r\n\t ^ o o o o o o o ^ A SQUARE\r\n\t | o o o o o o o | ball_radius x unit\r\n\t x | o o o o o o o v x = y :: must always be an odd number\r\n\t | o o o o o o o |<------------- the central row\r\n\t | o o o o o o o ^\r\n\t | o o o o o o o | ball_radius x unit\r\n\t v o o o o o o o v\r\n\t < - - - - - >\r\n\t y\r\n\t*/\r\n\tball_geometry_left = ball_location_x- (ball_radius*unit);\r\n\tball_geometry_right = ball_location_x + (ball_radius*unit);\r\n\tball_geometry_top = ball_location_y - (ball_radius*unit);\r\n\tball_geometry_bottom = ball_location_y + (ball_radius*unit);\r\n}", "function moveBall(debug) {\n\t\t//Check were the ball gets hit\n\t\tthis.y += this.speedY;\n\t\tthis.x += this.speedX;\n\t\t//get middle of ball || this.x + (this.radius/2) //Where it hits on plank planksX\n\t\t//this.middleOfBall = this.x + (this.radius/2);\n\t\t/*\n\t\tthis.plankPosX1 = \n\t\tthis.plankPosX2 = this.plankPosX + this.plankWidth;\n\t\tvar middleOfPlank = this.plankPosX1+(this.plankWidth/2);\n\t\tvar ballPositionOnPlank = this.x - this.plankPosX1;\n\t\tconsole.log(ballPositionOnPlank, middleOfPlank);\n\t\tif(!(ballPositionOnPlank<0 ||ballPositionOnPlank > this.plankWidth)) {\n\t\t\tturnY();\n\t\t\tpercentPosition = (ballPositionOnPlank-middleOfPlank)/this.plankWidth;\n\t\t\tconsole.log(\"pp\"+percentPosition);\n\t\t\t\n\t\t\n\n\t\t/*\n\t\tif ((((this.y+this.radius)>= this.ground) && ((this.y+this.radius) <= (this.ground+this.speedY)) && (this.speedY>0)) || (this.y+this.radius)>= this.height) {\n\t\t\t//alert(\"Here\");\n\t\t\t//Left\n\t\t\tif (this.x >= this.plankPosX && this.x <= (this.plankPosX+(this.plankWidth/3))) {//Yellow Zone\n\t\t\t\tif (debug) {\n\t\t\t\t\talert(\"Works1\");\n\t\t\t\t}\n\t\t\t\tthis.speedY*=-1;\n\t\t\t\tif (this.speedX >= 0) {\n\t\t\t\t\tthis.speedX = -1;\n\t\t\t\t}\n\t\t\t\telse if (this.speedX > 0) { //When Ball Enters From Left Side\n\t\t\t\t\tif (debug) {\n\t\t\t\t\t\talert(\"Do nothing\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.x >= (this.plankPosX+(this.plankWidth/3)) && this.x <= this.plankPosX+(this.plankWidth/3)*2) { //Mid CollisionBox\n\t\t\t\tthis.speedX=0;\n\t\t\t\tthis.speedY*=-1;\n\t\t\t}\n\t\t\t//Right\n\t\t\tif ((this.x >= (this.plankPosX+(this.plankWidth/3)*2)) && this.x <= this.plankPosX+(this.plankWidth/3)*3) {//RightCollisionBox\n\t\t\t\tif (debug) {\n\t\t\t\t\n\t\t\t\talert(\"Works3\");\n\t\t\t\t}\n\t\t\t\tthis.speedY*=-1;\n\t\t\t\tif (this.speedX >= 0) {\n\t\t\t\t\tthis.speedX = 1;\n\t\t\t\t}\n\t\t\t\telse if (this.speedX < 0) { //When Ball Enters Box From Right Side\n\t\t\t\t\tif (debug) {\n\t\t\t\t\talert(\"Do nothing\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this.debug && this.y > this.height) {\n\t\t\t\n\t\t\t\tthis.SpeedY*=-1;\n\t\t\t\n\t\t\t}\n\t\t}\n\t\telse */if (((this.y-this.radius) <= 0) && (this.speedY<0)) {\n\n\t\t\tthis.speedY*=-1;\n\t\t}\n\n\t\tif ((((this.x+this.radius)>= this.width) && ((this.x+this.radius)< (this.width+this.speedX)) && (this.speedX>0)) || (this.x+this.radius)>= this.width) {\n\n\t\t\tthis.speedX*=-1;\n\n\t\t} else if (((this.x-this.radius) <= 0) && (this.speedX<0)) {\n\n\t\t\tthis.speedX*=-1;\n\n\t\t}\n\t}", "function numberBombs(e){\n //once the person click for the first time in one square we put the bombs to make sure he doesn't die in the first turn\n if(first){\n suffledArray.splice(e.target.id, 0, \"valid\")\n squares.forEach((square, index )=>{\n square.classList.add(suffledArray[index]);\n })\n first = false\n }\n //start the timer\n if(!newTimer.running){\n newTimer.start();\n }\n //if he click a bomb\n if(e.target.classList.contains('bomb')){\n //mark the square clicked in red\n e.target.classList.add(\"red\");\n //don't let him click any squares again\n grid.removeEventListener('click', numberBombs);\n e.target.classList.remove(\"hidden\");\n //change the face to sad\n face.classList.remove(\"smiley-face\")\n face.classList.add(\"sad-face\")\n //stop time\n newTimer.stop();\n //show all the bombs\n squares.forEach(x => {if(x.classList.contains(\"bomb\")){\n x.classList.add(\"showBombs\")\n x.classList.remove(\"hidden\");\n x.classList.remove(\"flag\");\n }})\n } else {\n //if there are no bombs in the square clicked...\n noBomb(Number(e.target.id))\n }\n}", "function onFrame() {\n\n // Set up new directions and speed for every bounce\n\tfor (var i = 0; i < balls.length - 1; i++) {\n\t\tfor (var j = i + 1; j < balls.length; j++) {\n\t\t\tballs[i].react(balls[j]);\n\t\t}\n }\n // adjust ball shape for every bounce\n\tfor (var i = 0, l = balls.length; i < l; i++) {\n\t\tballs[i].iterate();\n\t}\n}", "addBouts(size=0){\r\n if (!size){\r\n size = this.numFencers;\r\n }\r\n\r\n for (var i = 0; i < size; i++){\r\n let temp = this.getCurrentFencers();\r\n let left = temp[0];\r\n let right = temp[1];\r\n\r\n this.bouts.push(new Bout(left, right));\r\n this.nextBout();\r\n }\r\n }", "function addBall(board) {\n\tvar i = getRandomInt(0, board.length - 1);\n\tvar j = getRandomInt(0, board[0].length - 1);\n\twhile ((board[i][j].gameElement === null) &&\n\t\t(board[i][j].type === FLOOR)) {\n\n\t\tboard[i][j].gameElement = BALL;\n\t\trenderCell({ i, j }, BALL_IMG);\n\t\tgBallsAdded++;\n\t\tbreak;\n\t}\n}", "function doubleBrickHit(ball, doubleBrick) {\r\n if(doubleBrick.hitOnce === false) {\r\n doubleBrick.shapeColor = color(255,255,255);\r\n doubleBrick.hitOnce = true;\r\n //console.log(\"hit\");\r\n } else if(doubleBrick.hitOnce === true) {\r\n doubleBrick.remove();\r\n //console.log(\"hit\");\r\n }\r\n}", "function drawBricks() {\r\n for (c = 0; c < brickColumnCount; c++) {\r\n for (r = 0; r < brickRowCount; r++) {\r\n if (bricks[c][r].status === 1) {\r\n let brickX = (c * (brickWidth + brickPadding)) + brickOffsetLeft;\r\n let brickY = (r * (brickHeight + brickPadding)) + brickOffsetTop;\r\n bricks[c][r].x = brickX;\r\n bricks[c][r].y = brickY;\r\n ctx.beginPath();\r\n ctx.rect(brickX, brickY, brickWidth, brickHeight);\r\n ctx.fillStyle = 'black';\r\n ctx.fill();\r\n ctx.closePath();\r\n }\r\n }\r\n }\r\n}", "smolMoons (lib){\n for (var i=0;i<7;i++){\n let moon = this.madeMoons[i];\n var size = moon.s;\n lib.moveTo(moon.x, moon.y);\n lib.penRGB(moon.r, moon.g, moon.b);\n let movingLeft = true;\n let behind = false;\n \n if (moon.s < 6) {\n movingLeft = false;\n behind = true;\n }\n \n if (movingLeft) moon.x -= .6;\n else moon.x += .3;\n \n if (behind) lib.dot(size);\n }\n }", "generateRooms(node){\n const halls = node.halls\n const len = halls.length\n var rooms = []\n let newRoom = null\n let removedHalls = []\n for(var i = 0; i < len; i++){\n let roomSize = this.randomSize(5,7)\n let rowStart = halls[i].position[0]\n let colStart = halls[i].position[1]\n switch(halls[i].direction){\n case 'r':\n //the -1 is to offset the side on the top\n var rowSpan = [rowStart - 1, rowStart + roomSize[0] - 1]\n //dont need to offset the col because the hall connect what would be the blank space\n var colSpan = [colStart , colStart + roomSize[1]]\n try{\n newRoom = this.generateRoom(this.rightRowPositions, this.rightColPositions, rowSpan, colSpan, 'l')\n if(newRoom == null){\n removedHalls.push(halls[i])\n continue\n }\n rooms.push(newRoom)\n }\n catch(e){\n console.log('room is null')\n }\n break\n case 'l':\n //the -1 is to offset the side on the top\n var rowSpan = [rowStart - 1, rowStart + roomSize[0] - 1]\n //dont need to offset the col because the hall connect what would be the blank space\n var colSpan = [colStart - roomSize[1] +1, colStart+1]\n try{\n newRoom = this.generateRoom(this.leftRowPositions, this.leftColPositions, rowSpan, colSpan, 'r')\n if(newRoom == null){\n removedHalls.push(halls[i])\n continue\n }\n rooms.push(newRoom)\n }\n catch(e){\n console.log('room is null')\n }\n break\n case 't':\n // the -1 is to offset the side on the top\n var rowSpan = [rowStart - roomSize[0] + 1, rowStart + 1]\n //dont need to offset the col because the hall connect what would be the blank space\n var colSpan = [colStart - 1, colStart + roomSize[1] - 1]\n try{\n newRoom = this.generateRoom(this.topRowPositions, this.topColPositions, rowSpan, colSpan, 'b')\n if(newRoom == null){\n removedHalls.push(halls[i])\n continue\n }\n rooms.push(newRoom)\n }\n catch(e){\n console.log('room is null')\n }\n break\n case 'b':\n //the -1 is to offset the side on the top\n var rowSpan = [rowStart, rowStart + roomSize[0]]\n //dont need to offset the col because the hall connect what would be the blank space\n var colSpan = [colStart - 1, colStart + roomSize[1] - 1]\n try{\n newRoom = this.generateRoom(this.botRowPositions, this.botColPositions, rowSpan, colSpan, 't')\n if(newRoom == null){\n removedHalls.push(halls[i])\n continue\n }\n rooms.push(newRoom)\n }\n catch(e){\n console.log('room is null')\n }\n break\n default:\n break\n }\n }\n for(var i = 0; i < removedHalls.length; i++){\n this.removedHalls.push(new Node('-', removedHalls[i].position))\n }\n return rooms\n }", "function destroyBrick(){\n for(var i=0;i<bricks.length;i++){\n if(checkCollision(ball,bricks[i])){\n ball.speedY = -ball.speedY;\n createBonus(bricks[i]);\n bricks.splice(i,1);\n }\n }\n }", "function rearrangeBalls() {\n ballsRearranged = true;\n words = phrase.split(\" \");\n var containerHeight = document.getElementById(\"container\").offsetHeight;\n var containerWidth = document.getElementById(\"container\").offsetWidth;\n var lineHeight = containerHeight / words.length;\n var ballId = 0;\n var xs = []\n var ys = []\n for (i in words) {\n for (j in words[i]) {\n var x = j * 150 + (containerWidth - 8 * 150)/2;\n var y = i * lineHeight + (lineHeight - 120)/2;\n moveBall(ballId, x, y);\n ballId++;\n }\n }\n\n }", "function add(x) {\r\n for (let i = 0; i < x; i++) {\r\n // Work out current screen size\r\n let div_height = document.querySelector(\"#container\").clientHeight;\r\n let div_width = document.querySelector('#container').clientWidth;\r\n let index = 0;\r\n \r\n // Create a new ball item with random positions, speeds and id \r\n let new_ball = new Ball(getRandom(0, div_width),\r\n getRandom(0, div_height),\r\n getRandom(-10, 10),\r\n getRandom(-10, 10),\r\n num.toString()\r\n );\r\n \r\n ball_list.push(new_ball);\r\n index = ball_list.length - 1;\r\n \r\n // Create new DOM item with an id to match the new ball in the array\r\n let new_circle = document.createElement(\"BUTTON\");\r\n new_circle.innerHTML = num.toString();\r\n new_circle.id = num.toString();\r\n new_circle.className = \"circle\";\r\n new_circle.style.backgroundColor = create_colour();\r\n new_circle.style.position = \"absolute\";\r\n new_circle.style.top = ball_list[index].update.y.toString() + \"px\";\r\n new_circle.style.left = ball_list[index].update.x.toString() + \"px\";\r\n new_circle.style.borderRadius = \"100%\";\r\n new_circle.addEventListener(\"mousedown\", function(e) {\r\n if (e.target.nodeName === \"BUTTON\"){\r\n document.getElementById(e.target.id).remove();\r\n console.log(e.target.id);\r\n index = ball_list.findIndex(ball => ball.get_id === e.target.id);\r\n ball_list.splice(index, 1);\r\n console.log(ball_list);\r\n }\r\n }, false);\r\n \r\n // Add new item to DOM\r\n document.getElementById(\"container\").appendChild(new_circle);\r\n\r\n // Increase unique ID value\r\n num++;\r\n }\r\n}", "function drawBottles() {\n\n for (let index = 0; index < placedBottles.length; index++) {\n let bottle_x = placedBottles[index]['position_x'];\n let image = placedBottles[index]['image'];\n addBackgroundobject(image, bottle_x, bg_ground, 318, 0.2, 1);\n }\n}", "function setPointBalls() {\n let five_point = Math.floor(ball_amount*0.6);\n let fifteen_point = Math.floor(ball_amount*0.3);\n let twentyFive_point = Math.floor(ball_amount*0.1);\n let free_spot;\n\n while (ball_count < ball_amount){\n if (five_point > 0){\n free_spot = findRandomSpot(board_static);\n board_static[free_spot.i][free_spot.j] = 5;\n five_point--;\n ball_count++;\n }\n if (fifteen_point > 0){\n free_spot = findRandomSpot(board_static);\n board_static[free_spot.i][free_spot.j] = 15;\n fifteen_point--;\n ball_count++;\n }\n if (twentyFive_point > 0){\n free_spot = findRandomSpot(board_static);\n board_static[free_spot.i][free_spot.j] = 25;\n twentyFive_point--;\n ball_count++;\n }\n if (five_point === 0 && ball_count<ball_amount){\n five_point++;\n }\n }\n\n}", "function createBricks(){\n let brickX = 2,brickY=10,j=0,a=0;\n for(var i=0;i<60;i++){\n let brick={\n x: brickX,\n y: brickY,\n w: brickWidth,\n h: 10,\n color: colors[j]\n }\n bricks.push(brick);\n brickX+=brickWidth+2;\n if(brickX+brickWidth+2>Width){\n brickY+=12;\n brickX=2;\n j++;\n }\n }\n }", "function displayShape() {\r\n // remove any trace of tetrimino from the entire grid\r\n displaySqaures.forEach(square => {\r\n square.classList.remove('tetromino')\r\n square.style.backgroundColor = '';\r\n });\r\n\r\n UpNextTetrominoes[nextRandom].forEach(index => {\r\n displaySqaures[displayIndex + index].classList.add('tetromino');\r\n displaySqaures[displayIndex + index].style.backgroundColor = colors[nextRandom];\r\n });\r\n}", "function renderBunkers()\n{\n //for each bunker\n liveBunkers = 0;\n manyBunkers.forEach(oneBunker =>\n {\n //if bunker is alive\n if (oneBunker.alive)\n {\n liveBunkers++;\n //draw the bunker\n ctx.drawImage(bunkerImage, oneBunker.x, oneBunker.y, bunkerXSize, bunkerYSize);\n if (oneBunker.x < -250)\n {\n missionComplete = false;\n }\n //help determine hitbox for bunker\n //insert painted hitboxes here if needed\n }\n else\n {\n //move bunker object away\n if (oneBunker.deadX > -300)\n {\n oneBunker.deadX += scrollSpeed;\n }\n if (oneBunker.deadX === undefined || oneBunker.deadX === null)\n {\n oneBunker.deadX = oneBunker.x;\n }\n oneBunker.x -= WIDTH * 2;\n //show destroyed bunker image\n ctx.drawImage(deadBunkerImage, oneBunker.deadX, oneBunker.y, bunkerXSize, bunkerYSize);\n }\n });\n if (liveBunkers === 5)\n {\n document.getElementById(\"bunker-bar\").setAttribute(\"src\", \"pictures/health/full-bunker-bar.png\");\n }\n else if (liveBunkers === 4)\n {\n document.getElementById(\"bunker-bar\").setAttribute(\"src\", \"pictures/health/four-bunker-bar.png\");\n }\n else if (liveBunkers === 3)\n {\n document.getElementById(\"bunker-bar\").setAttribute(\"src\", \"pictures/health/three-bunker-bar.png\");\n }\n else if (liveBunkers === 2)\n {\n document.getElementById(\"bunker-bar\").setAttribute(\"src\", \"pictures/health/two-bunker-bar.png\");\n }\n else if (liveBunkers === 1)\n {\n document.getElementById(\"bunker-bar\").setAttribute(\"src\", \"pictures/health/one-bunker-bar.png\");\n }\n else if (liveBunkers === 0)\n {\n document.getElementById(\"bunker-bar\").setAttribute(\"src\", \"pictures/health/no-bunker-bar.png\");\n }\n\n}", "function branchOut(branch,branches,shouldContinue,wbeg,xbeg,zbeg,curves,inter,rs,ls){\r\n\tvar brns = getBranchCoords(branch,branches);\r\n\tvar n = 0;\r\n\tvar other = new Array();\r\n\tvar vVeins = new Array();\r\n\tfor(n=0;n<brns.length;n++){\r\n\t\tvar co = brns[n];\r\n\t\tvar end = [co[0]+co[0]*Math.random(),co[1]+co[1]*Math.random(),co[2]+20+co[2]*Math.random()];\r\n\t\tvVeins[n] = spiral(brns[n],end, wbeg, 1, xbeg, 1, zbeg, 1, curves,inter,rs,ls);\r\n\t\tif(shouldContinue>0){\r\n\t\t\tother = concatArray(other,branchOut(vVeins[n],branches,shouldContinue-1, wbeg/3,20,20,curves,inter,rs,ls));\r\n\t\t}\r\n\t}\r\n\tif(other.length>0){\r\n\t\treturn concatArray(vVeins,other);\r\n\t}\r\n\treturn vVeins;\r\n}", "function topple() {\n for (let x = 0; x < width; x++) {\n for (let y = 0; y < height; y++) {\n nextpiles[x][y] = sandpiles[x][y];\n }\n }\n\n // adjust the critical height if needed\n criticalHeight = 4;\n for (let x = 0; x < width; x++) {\n for (let y = 0; y < height; y++) {\n let num = sandpiles[x][y];\n if (num >= criticalHeight) {\n nextpiles[x][y] -= 4;\n if (x + 1 < width)\n nextpiles[x + 1][y]++;\n if (x - 1 >= 0)\n nextpiles[x - 1][y]++;\n if (y + 1 < height)\n nextpiles[x][y + 1]++;\n if (y - 1 >= 0)\n nextpiles[x][y - 1]++;\n }\n }\n }\n\n let tmp = sandpiles;\n sandpiles = nextpiles;\n nextpiles = tmp;\n}", "function draw() {\n background(100);\n\n // Render board grid\n for (let i = 1; i < boardSize; i++) {\n line(i * width / boardSize, 0, i * width / boardSize, height);\n line(0, i * height / boardSize, width, i * height / boardSize);\n }\n\n // Render all balls\n for (let i = 0; i < balls.length; i++) {\n balls[i].show();\n }\n\n switch (gameState) {\n case 'moving':\n if (selectedBall.path.length == 0 & !selectedBall.moving) {\n // If the ball has finish moving, start a new game cycle\n selectedBall.select();\n selectedBall = null;\n gameState = 'newCycle';\n }\n break;\n case 'newCycle':\n // A game step is complete, check for matching and spawn new ball\n spawn(balls, board);\n\n // Check for matching\n let scoreBoard = check(balls, board);\n for (let row = 0; row < scoreBoard.length; row++) {\n for (let col = 0; col < scoreBoard[0].length; col++) {\n if (scoreBoard[row][col] == 1) {\n // Find the corresponding ball\n for (let i = 0; i < balls.length; i++) {\n if (balls[i].row == row && balls[i].col == col) {\n // Destroy the ball\n balls.splice(i, 1);\n // Free the grid on the board\n board[row][col] = 0;\n // Increase the player score\n score.innerHTML++;\n break;\n }\n }\n }\n }\n }\n gameState = 'idling';\n break;\n default:\n break;\n }\n}", "function countBombs(x,y) {\r\n\tlet count = 0;\r\n\tconsole.log(x,y);\r\n\r\n\t// left hand side\r\n\tif(x == 0) {\r\n\t\tif(y == 0) { // upper left corner\r\n\t\t\t\r\n\t\t\tif(table[x+1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y+1].getIsBomb()) {count ++};\r\n\r\n\t\t}\r\n\t\telse if(y == 15) { // lower left corner\r\n\t\t\tif(table[x][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y].getIsBomb()) {count ++};\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tif(table[x][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y+1].getIsBomb()) {count ++};\r\n\t\r\n\t\t}\r\n\t} \r\n\t// right hand side\r\n\telse if (x == 29) {\r\n\t\t//upper right corner\r\n\t\tif(y == 0) {\r\n\t\t\tif(table[x-1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y+1].getIsBomb()) {count ++};\r\n\t\t}\r\n\t\t// lower right corner\r\n\t\telse if (y == 15) {\r\n\t\t\tif(table[x-1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y-1].getIsBomb()) {count ++};\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(table[x][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y+1].getIsBomb()) {count ++};\t\r\n\t\t}\r\n\t}\r\n\t// all other boxes: x does not limit these boxs, y still does \r\n\telse {\r\n\t\tif(y == 0) { // top row excpet corners\r\n\t\t\tif(table[x-1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y+1].getIsBomb()) {count ++};\t\r\n\t\t}\r\n\t\telse if (y == 15) { // bottom row except corners\r\n\t\t\tif(table[x-1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y].getIsBomb()) {count ++};\t\r\n\t\t}\r\n\t\telse { // rest of the boxes\r\n\t\t\tif(table[x-1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y-1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x-1][y].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y].getIsBomb()) {count ++};\t\r\n\t\t\tif(table[x-1][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x][y+1].getIsBomb()) {count ++};\r\n\t\t\tif(table[x+1][y+1].getIsBomb()) {count ++};\r\n\t\t}\r\n\t}\r\n\r\n\treturn count;\r\n}", "function checkCollision(){\n for(var j = 0; j < balls.length; j++)\n if (balls[i].loc.x > paddle.loc.x &&\n balls[i].loc.x < paddle.width &&\n balls[i].loc.y > paddle.loc.y &&\n balls[i].loc.y < paddle.height)\n balls[i].splice(i,1)\n\n }", "function recover() {\n var ball;\n for (var i = 0; i < balls.length; i++) {\n ball = balls[i];\n \n if (ball.infected == false || ball.recovered == true) continue;\n\n if (tick_count - ball.tick_infected >= 750) {\n ball.infected = false;\n ball.recovered = true;\n d3.select(\"circle#ball\"+i.toString()).style(\"fill\", RECOVERED);\n plusRecover();\n // plusTime();\n }\n }\n}", "function walls() {\n var ball;\n for (var i = 0; i < balls.length; i++) {\n ball = balls[i]\n \n if (ball.x - BALL_RADIUS < 0) {\n ball.x = BALL_RADIUS;\n ball.vx = -ball.vx;\n }\n if (ball.y - BALL_RADIUS < 0) {\n ball.y = BALL_RADIUS;\n ball.vy = -ball.vy;\n }\n if (ball.x + BALL_RADIUS > CANVAS_WIDTH) {\n ball.x = CANVAS_WIDTH - BALL_RADIUS;\n ball.vx = -ball.vx;\n }\n if (ball.y + BALL_RADIUS > CANVAS_HEIGHT) {\n ball.y = CANVAS_HEIGHT - BALL_RADIUS;\n ball.vy = -ball.vy;\n }\n }\n}", "function brickDetection() {\n var leftX,rightX,topY,bottomY;\n \n for (i=0;i<bricks.length;i++) {\n leftX=bricks[i].x;\n rightX=bricks[i].x+brickWidth;\n topY=bricks[i].y;\n bottomY=bricks[i].y+brickHeight;\n\n if ((ballX+ballRadius>leftX&&ballX<rightX+ballRadius)&&(ballY<bottomY+ballRadius&&ballY>topY)) {\n brickHit(i);\n }\n }\n}", "function addBallIfy(){\n\t if(balls.length < 20){\n\t balls.push(getRandomBall());\n\t }\n\t}", "addBombs(numberBombs)\n {\n let bombLoop = 0;\n\n while(bombLoop < numberBombs)\n {\n let bombX = Math.floor(Math.random() * this.xSize);\n let bombY = Math.floor(Math.random() * this.ySize);\n if (!this.isBomb(bombX, bombY))\n {\n this.gameState[bombX][bombY].bomb = true;\n\n bombLoop++;\n }\n } \n }", "gameOver(){\n for (let i=0; i<this.tail.length; i++){\n let pos = this.tail[i];\n let detect = dist(this.x, this.y, pos.x, pos.y);\n if (detect < 1){\n this.total = 0;\n this.tail = [];\n state = 2;\n }\n }\n }", "function displayShape(){\r\n //remove any trace of a tetromino form the entire grid\r\n displaySquares.forEach(square =>{\r\n square.classList.remove('tetromino')\r\n square.style.backgroundColor= ''\r\n })\r\n upNextTetrominoes[nextRandom].forEach(index=>{\r\n displaySquares[displayIndex + index].classList.add('tetromino')\r\n displaySquares[displayIndex + index].style.backgroundColor=colors[nextRandom]\r\n })\r\n}", "checkCollisionBottleEndboss() {\n this.throwableObjects.forEach((bottle) => {\n if (this.isCollidingBottle(bottle)) {\n this.endBoss.hitEndboss();\n this.endBoss.endbossBar.setPercentage(this.endBoss.energyEndboss);\n }\n })\n }", "function move_All_Balls() {\r\n let pID = \"p\" + (ball_list_index + 1);\r\n id_movingBall(pID, ball_list_index + 1);\r\n setInterval(next_Ball, 5000);\r\n setInterval(move_Ball, 1);\r\n}", "function drawItemBottles() {\n for (i = 0; i < placedBottles.length; i++) {\n let bottle_x = placedBottles[i];\n addBackgroundObject('./img/items/Bottle_Tabasco/2_bottle_buried1.png', bg_elem_1_x + bottle_x, 310, 0.25);\n }\n}" ]
[ "0.6191711", "0.61684376", "0.6167681", "0.6126593", "0.61099666", "0.59927267", "0.59905577", "0.59178716", "0.59087956", "0.58950776", "0.58384323", "0.579178", "0.5789978", "0.57842374", "0.57484835", "0.5722992", "0.57105625", "0.56586874", "0.565653", "0.5636824", "0.56215084", "0.56134534", "0.56014967", "0.55620474", "0.5557487", "0.55519795", "0.555165", "0.5529179", "0.5526108", "0.55028677", "0.5483115", "0.547308", "0.5469932", "0.5447995", "0.5446145", "0.5441476", "0.54410094", "0.5434054", "0.54303837", "0.54185003", "0.5416432", "0.5414724", "0.5409628", "0.54076064", "0.53980213", "0.538539", "0.5376132", "0.5374637", "0.53691226", "0.53525347", "0.5347936", "0.5345634", "0.53378576", "0.5336835", "0.5335929", "0.5329836", "0.53250337", "0.5315906", "0.53108317", "0.530036", "0.52956873", "0.5295159", "0.529502", "0.52935326", "0.5291532", "0.5288716", "0.5288455", "0.5285892", "0.52841645", "0.5281876", "0.5280367", "0.5279765", "0.52662593", "0.52608836", "0.5255482", "0.52531505", "0.524744", "0.52463835", "0.5243421", "0.5242618", "0.5238342", "0.52378833", "0.5236988", "0.5236508", "0.5236147", "0.52361107", "0.52328914", "0.5231914", "0.5231749", "0.5230692", "0.5227141", "0.5226763", "0.52258605", "0.52237666", "0.5218666", "0.52184516", "0.5213588", "0.5212567", "0.52098495", "0.52086467" ]
0.55718887
23
function to clear the points array
function clearPoints() { points = []; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "clear() { this._points.length = 0; }", "static clearPoints(){\n pointMarkers = [];\n }", "function resetPoints() {\n funcionPoints = [];\n areaPoints = [];\n insidePoints = [];\n outsidePoints = [];\n }", "function resetCoordinates() {\n console.log('resetCoordinates');\n coordinates = [];\n }", "function clearAll(removePoints){\r\n\r\n\t\r\n\tpointlist = [];\t\t\t\t\t// Clear data point list\r\n\t//r_unique = null;\t\t\t\t// reset unique id\r\n\r\n\t// Remove features\r\n\tif(currentLayer.features[0] != null){\tcurrentLayer.removeAllFeatures();\t}\t\r\n\tif(oldLayer.features[0] != null){\t\toldLayer.removeAllFeatures();\t\t}\r\n\tif(returnLayer.features[0] != null){ \treturnLayer.removeAllFeatures();\t}\t\r\n\tif(routingLayer.features[0] != null){ \troutingLayer.removeAllFeatures();\t}\t\r\n\t\r\n\tif(removePoints){\r\n\t\tif(pointStart.features[0] != null){ pointStart.removeAllFeatures();\t}\t\t\r\n\t\tif(pointEnd.features[0] != null){ \tpointEnd.removeAllFeatures();\t}\r\n\t}\r\n\t\t\t\r\n\t// Reset drawing setup, memory & show tags\r\n\tdrawButton.attr({opacity:0.5});\r\n\tmap.getControl('userPolygon').deactivate();\r\n\tmap.getControl('userPolygon').drawn = false;\r\n\t$(\".tag\").css({\"display\":\"block\"});\r\n\r\n\t// Hide legend\r\n\t$('#legend').hide();\r\n\r\n\t// clear charts\r\n\tchart1.series[0].setData([0,0,0,0,0]);\t\t\r\n\tchart2.series[0].setData([0,0,0,0,0]);\t\r\n\tchart3.series[0].setData([0,0]);\r\n\r\n\t\r\n\tclickNumber = 1;\t\t\t\t\t// Reset click counter\t\r\n\t$('#drawingInstructions').hide();\t// Hide drawing instructions\t\r\n\tpoly = 'a';\t\t\t\t\t\t\t// reset poly (sorry daniel - I will make this better....)\t\r\n\t$('#timer_div').html('TIME: ')\t\t// reset timer\r\n\t\r\n}", "removeAllPoints() {\n if (glb == null || glb == undefined) {\n return;\n }\n glb.removePoints();\n }", "function clearCanvas() {\n // Remove any existing points\n for (point in points) delete points[point];\n delete points;\n // Make sure the canvas is blank\n ctx.save();\n ctx.setTransform(1, 0, 0, 1, 0, 0);\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n ctx.restore();\n}", "function clearPointsHandler () {\n var i;\n\n for (i = 0; i < points.length; i++) {\n removeLayer(points[i].layer);\n }\n\n $(\".marker-point-item\").off(\"mouseenter\", handlePointHoverEnter)\n .off(\"mouseleave\", handlePointHoverLeave);\n\n if (typeof ga !== 'undefined') {\n ga('send', {\n 'hitType': 'event', // Required.\n 'eventCategory': 'User Generated Points', // Required.\n 'eventAction': 'Click', // Required.\n 'eventLabel': 'Clear Points'\n });\n }\n\n points = [];\n $(\".marker-points\").empty();\n }", "function clearPointsHandler () {\n var i;\n\n for (i = 0; i < points.length; i++) {\n removeLayer(points[i].layer);\n }\n\n $(\".marker-point-item\").off(\"mouseenter\", handlePointHoverEnter)\n .off(\"mouseleave\", handlePointHoverLeave);\n\n if (typeof ga !== 'undefined') {\n ga('send', {\n 'hitType': 'event', // Required.\n 'eventCategory': 'User Generated Points', // Required.\n 'eventAction': 'Click', // Required.\n 'eventLabel': 'Clear Points'\n });\n }\n\n points = [];\n $(\".marker-points\").empty();\n }", "function clearData() {\n\tvar i, j;\n\tfor (i = 0; i < realWidth; i++) {\n\t\tfor (j = 0; j < realHeight; j++) {\n\t\t\tif (map[i][j] === 1) {\n\t\t\t\tmap[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}\n\tpreviousLiveCells.splice(0, previousLiveCells.length);\t\n}", "function clear() {\n particles.splice(0, particles.length);\n}", "function clearPoint() {\n if (graphicsLayer.graphics.items.length > 0) {\n graphicsLayer.removeAll();\n }\n }", "clear() {\n this._array = []\n }", "function clearAll () {\n\tfor (var i = 0; i < num; i++) {\n\t\tp[i].finish();\n\t\tdelete p[i];\n\t}\n\tPelota.prototype.ID = 0;\n\tnum = 0;\n\tsetTimeout(function () {\n\t\tctx.clearRect(0, 0, can.width, can.height);\n\t}, 100);\n}", "function clearParentPoints() {\n for( var i = 0; i < app.getImage().getSize().getNumberOfRows(); ++i ) {\n parentPoints[i] = [];\n }\n }", "clearCoordinates() {\n this._coordinates = null;\n this._projectedCoordinates = null;\n }", "function removePoints(points){\n\n\ttry{\n\n\t // remove every point\n\t\tpoints.forEach(function(point){\n\t\t\tscene.remove(point);\n\t\t\tpoint.geometry.dispose();\n\t\t});\n\t\t// clear points array\n\t\tpoints = [];\n\n\t}catch(error){\n\n\t\t//update display\n status = 'Fehler beim Löschen';\n\n\t}\n}", "clearAll() {\r\n \r\n // reset sample data\r\n this.sampleData = [];\r\n\r\n // reset distribution paramters\r\n this.mu = null;\r\n this.sigma = null;\r\n\r\n // update the plots\r\n this.ecdfChart.updatePlot([], []);\r\n this.histChart.updateChart([])\r\n \r\n }", "ClearArray() {}", "clearData() {\n this.data = {\n colors: [],\n positions: [],\n }\n }", "function resetCanvas(){\n stage.removeAllChildren();\n stage.clear();\n points = [];\n pointCount = 0;\n\n for(var i = 0; i < 4; i++){\n info_point[i].innerHTML = \"\";\n info_point[i].className = \"\";\n }\n\n info_area.innerHTML = \"\";\n info_area.className = \"\";\n}", "function clear() {\n lastPos = null;\n delta = 0;\n }", "function clearCanvas(){\r\n g_colors = [];\r\n g_points = [];\r\n // Specify the color for clearing <canvas> ===================\r\n gl.clearColor(0.0, 0.0, 0.0, 1.0);\r\n\r\n // Clear <canvas>\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n}", "clear() {\n for (let y = 0; y < this.height; y++) {\n this.buffer[this.currentBufferIndex][y].fill(0);\n }\n }", "clear(){\n\t\tthis.shapes = [];\n\t\tthis.setLastUpdated();\n\t}", "clear() {\n for (let y = 0; y < this.height; y++) {\n this.buffer[this.currentBufferIndex][y].fill(0);\n }\n }", "clear() {\n for (let y = 0; y < this.height; y++) {\n this.buffer[this.currentBufferIndex][y].fill(0);\n }\n }", "clear() {\n\t\tfor (let x = 1; x <= this.#m; x++) this.#pos[this.#item[x]] = 0;\n\t\tthis.#m = 0; this.#offset = 0;\n\t}", "function clear(event) {\n data.forEach(function (point) {\n point.remove();\n });\n upperLayerContext.clearRect(0, 0, upperLayer.width, upperLayer.height);\n lowerLayerContext.clearRect(0, 0, lowerLayer.width, lowerLayer.height);\n noOfDataPoints = 0;\n data = [];\n edges = [];\n x = [];\n y = [];\n lowerLayerLineAttributes(4, `black`);\n upperLayerLineAttributes(4, `black`);\n pressed = false;\n}", "function removeAllWaypoints() {\n if(!canvas_flag_active) {\n number_of_coordinates = 0;\n current_coordinate_list = [];\n canvas_flag_position = {x:undefined,y:undefined};\n var coordinates = document.querySelectorAll('#coordinates-list > div');\n coordinates.forEach((coordinate) => {\n document.querySelector('#coordinates-list').removeChild(coordinate);\n });\n }\n}", "function clearArray(){\n row = [];\n syllableArray = [];\n}", "function reset() {\n // clear all points\n points = [];\n // set background\n background(controllers.backgroundColor);\n // for all vertices draw it\n for (let i = 0; i < controllers.verticesCount; i++) {\n let angle = i * TWO_PI / controllers.verticesCount;\n let v = p5.Vector.fromAngle(angle);\n v.mult((rWidth-50) / 2);\n v.add(250+rWidth/2, rHeight / 2);\n // add to points\n points.push(v);\n // draw points\n strokeWeight(10);\n stroke(\"#EC7272\");\n point(v.x, v.y);\n // textSize(32);\n // fill(0, 102, 153);\n // text(i, v.x+10, v.y+10);\n }\n // create current point\n current = createVector(random(width), random(height));\n}", "function clearPoint(e) {\n pointStack.pop();\n clicks -= 1;\n //this is where we need to call custom function \n shapes[shapeCount].removeLastPoint();\n}", "function clearGeopointSelection()\n\t{\n\t\tgeopointLayer.getSource().clear();\n\t\tisGeopointSelectionActive = false;\n\t}", "function clearangkot(){\n for (i in angkot){\n //for (var i = 0; i < angkot.length; i++) {\n angkot[i].setMap(null);\n }\n angkot=[];\n }", "clear() {\n this.measurements.clear({\n 'removeIndices': true\n })\n }", "function clear(){\n\tif (!confirm(\"Are you sure you want to clear the drawing?\"))\n\t\treturn;\n\n\tcontext.clearRect(0, 0, context.canvas.width, context.canvas.height);\n\tclickX = new Array();\n\tclickY = new Array();\n\tclickDrag = new Array();\n\tclickColor = new Array();\n}", "function clearArrays() {\n clearPeople();\n clearBoats();\n clearFaces();\n}", "clear() {\n this.data = [];\n }", "clearAll() {\n this.clearGraphic()\n this.clearData()\n }", "clear() {\n // !!!! IMPLEMENT ME !!!!\n for (let grid = 0; grid < this.height; grid++) {\n this.buffer[this.currentBufferIndex][grid].fill(0);\n }\n }", "function clear() {\n\tfor (var y=0; y < mapy; y++) {\n\t\tvar row = new Array(mapx);\n\t\t\n\t\tfor (var x=0; x < mapx; x++) {\n\t\t\trow[x] = '.';\n\t\t}\n\t\t\n\t\tmap[y] = row;\n\t}\n}", "function clearPoint() {\n if (selectedStateDistrictCount > 0 && graphicsLayer.graphics.items.length > selectedStateDistrictCount) {\n graphicsLayer.remove(graphicsLayer.graphics.items[selectedStateDistrictCount])\n }\n }", "function clearMarkers() {\n for(var i=0; i<markersArray.length; i++){\n markersArray[i].setMap(null);\n }\n markersArray = [];\n}", "destroy() {\n this.shape = null;\n this.holes.length = 0;\n this.holes = null;\n this.points.length = 0;\n this.points = null;\n this.lineStyle = null;\n this.fillStyle = null;\n }", "function clearPlots() {\n map.graphics.clear();\n var plotCbo = getPlotTemplateComboBox();\n var scaleCbo = getScaleComboBox();\n plotCbo.disabled = false;\n scaleCbo.disabled = false;\n scaleCbo.selectedIndex = initialScaleCboIndex;\n plotCbo.selectedIndex = 0;\n\n polygonGraphic = null;\n polygonAngle = 0;\n startPoint = null;\n polygonCenter = null;\n}", "function clearPolylines() {\n\tfor(var i=0 ; i< polylines.length; i++ ) {\n\t\tpolylines[i].setMap(null);\n\t}\n\tpolylines = [];\n}", "reset(){\n this.buffer = []\n this.svg.selectAll('*').remove()\n this.setup()\n }", "function ClearMarkers() \n{\n\tfor (var i = 0; i < markersArray.length; i++ ) {\n\t\tmarkersArray[i].setMap(null);\n\t}\n\tmarkersArray = []\n}", "function clearAll() {\n x = null;\n y = null;\n total = null;\n number.length = 0;\n sign = \"\";\n isSign = false;\n output.textContent = \"0\";\n decimalToggle = false;\n unaryToggle = false;\n isPercent = false;\n runningTotal = false;\n lastEquals = false;\n}", "function clearMarkers() {\n for (let i = 0; i < markers.length; i++) {\n markers[i].setMap(null);\n }\n for (let i = 0; i < dropMarkers.length; i++) {\n dropMarkers[i].setMap(null);\n }\n markerNum=0;\n markers.length = 0;\n dropMarkers.length=0;\n dataPoints.length = 0;\n closeIWindows();\n }", "function clearValues() {\n arrTurnBack = [];\n arrValues = [];\n }", "function popCoordinates() {\n coordinates.splice(0, 1);\n }", "function clearArrays() {\n\t\tentities = entities.filter(filterByActive);\n\t\tataquesAliados = ataquesAliados.filter(filterByActive);\n\t\tataquesInimigos = ataquesInimigos.filter(filterByActive);\n\t}//clearArrays", "gc() {\n // clear all arrays\n this.animation=null;\n this.keys=null;\n // clear variables\n this.generate=null;\n this.move=null;\n }", "function clearMarkers() {\n\tif (markersArray) {\n\t\tfor (i in markersArray) {\n\t\t\tmarkersArray[i].setMap(null);\n\t\t}\n\t\tmarkersArray.length = 0;\n\t}\n}", "clearMarkers() {\n this.resetViewport(true);\n\n // Set the markers a empty array.\n this.markers_ = [];\n }", "function reset() {\n gridPoints = []; // resets the gridPoints so that it clears the walls etc. on reset.\n gridPointsByPos = [];\n openSet.clear();\n closedSet.clear();\n gctx.clearRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);\n grid.createGrid();\n\n}", "clear() {\n this.data = ArrayUtils.newBooleanArray(this.data.length);\n }", "function clearMarkers () {\n setMapOnAll(null);\n markersArray.length = 0;\n}", "function clearMarkers() {\n for ( var i=0; i<markersArray.length; i++ ) {\n\tmarkersArray[i].setMap( null );\n\tmarkersArray[i].setVisible( false );\n }\n markersArray = new Array();\n}", "clear(lo=0, hi=this.n+1) {\n\t\tfor (let i = lo; i < hi; i++) { this.#p[i] = i; this.#rank[i] = 0; }\n\t}", "function clear_canvas(undoVal) {\n ctx = undefined;\n perimeter = new Array();\n complete = false;\n $(\"#submitButton\").attr(\"disabled\", \"disabled\");\n document.getElementById('coordinates').value = '';\n start(false, undoVal);\n}", "function clearGraphics() {\n pointLayer.removeAll();\n bufferLayer.removeAll();\n }", "function _clear() {\n //gGauge$.empty();\n } // _clear", "function clearData() {\n\t//mapbox function that delete layer's elements\n markerLayer.clearLayers();\n}", "function clearCentroidPositions() {\n colorCentroidStructure = [];\n colorZones.forEach(function () {\n // X Y count SumSQ SumSQ/sqrt(N)\n colorCentroidStructure.push(new XY(0, 0, 0, 0, 0));\n });\n }", "function clear()\n{\n\tfor(var i = 0; i < this.size.x; i++)\n\t{\n\t\tthis.matrix[i] = [];\n\t\tfor(var j = 0; j < this.size.y; j++)\n\t\t{\n\t\t\tthis.matrix[i][j] = 0; \n\t\t}\n\t}\n\n\tif(this.size.x == this.size.y)\n\t{\n\t\tfor(i = 0; i < this.size.x; i++)\n\t\t{\n\t\t\tthis.matrix[i][i] = 1;\n\t\t}\n\t}\n}", "function clear_markers() {\n\tfor (var i = 0; i < activeMarkers.length; i++ ) {\n\t\tactiveMarkers[i].setMap(null);\n\t}\n\tactiveMarkers = [];\n}", "function clearMarkers() {\n\tif (markersArray){\n\t\tfor(var i=1;i<markersArray.length;i++){\n\t\t\tmarkersArray[i].setMap(null);\n\t\t}\n\t}\n}", "clear() {\n this.updateID++;\n this.minX = Infinity;\n this.minY = Infinity;\n this.maxX = -Infinity;\n this.maxY = -Infinity;\n }", "function clear_photos_array() {\n\tvar result = [];\n\tfor (var i =0; i< box_photos.length; i++) {\n\t\tif(box_photos[i] == null) continue;\n\t\tresult.push(box_photos[i]);\n\t}\n\n\tbox_photos = result;\n}", "function clearHit(){\n\t\t\tif(prevHit){\n\t\t\t\toctx.clearRect(\n\t\t\t\t\ttHoz(prevHit.x) + plotOffset.left - options.points.radius*2,\n\t\t\t\t\ttVert(prevHit.y) + plotOffset.top - options.points.radius*2,\n\t\t\t\t\toptions.points.radius*3 + options.points.lineWidth*3, \n\t\t\t\t\toptions.points.radius*3 + options.points.lineWidth*3\n\t\t\t\t);\n\t\t\t\tprevHit = null;\n\t\t\t}\t\t\n\t\t}", "function clear(){\n x = 0\n y = 0\n numberArray = []\n number = 0\n setX = true\n operand = ''\n display(number)\n\n}", "function clearMapMarkers() {\n for (index in markers) {\n markers[index].setMap(null);\n }\n nodes = [];\n if (polylinePath != undefined) {\n polylinePath.setMap(null);\n }\n markers = [];\n }", "clearGeometry() {\n this.geometries = [];\n this.texGeometries = [];\n this.render();\n }", "function clearMarkers() {\n for (var m in markers) {\n markers[m].setMap(null)\n }\n markers = [];\n contactInfo = [];\n}", "function resetChess() {\n\tdraw_array=[];\n}", "function fdelShape(){\r\n\tthis.shapes = [];\r\n\tthis.delPoint();\r\n}", "function clearOverlays() {\t// clearing the array\r\n while (markersArray.length) {\r\n markersArray.pop().setMap(null);\r\n }\r\n markersArray = [];\r\n document.getElementById(\"startingPointText\").value = \"\";\r\n document.getElementById(\"startlat\").value = \"\";\r\n document.getElementById(\"startlng\").value = \"\";\r\n \r\n document.getElementById(\"endPointText\").value = \"\";\r\n document.getElementById(\"endlat\").value = \"\";\r\n document.getElementById(\"endlng\").value = \"\";\r\n}", "clear() {\n\t\tlet e = this.first();\n\t\twhile (e != 0) { this.delete(e); e = this.first(); }\n\t}", "function clearPath() {\n\tif(curPath != false) {\n\t\tcurPath.setMap(null);\n\t\tcurPath = false;\n\t}\n\t\n\tif(prePath != false) {\n\t\tprePath.setMap(null);\n\t\tprePath = false;\n\t}\n\t\n\tif(postPath != false) {\n\t\tpostPath.setMap(null);\n\t\tpostPath = false;\n\t}\n\n\tmarkerPath = false;\n\t\n\t// remove points from map\n\tfor(var i = 0; i < prePathPoints.length; i++)\n\t\tprePathPoints[i].setMap(null);\n\t\n\tprePathPoints = [];\n\t\n\t// remove all but the last, which is the representative\n\tfor(var i = 0; i < pathPoints.length -1 ; i++)\n\t\tpathPoints[i].setMap(null);\n\t\n\tif(pathPoints.length > 0) {\n\t\tvar representative = pathPoints[pathPoints.length - 1];\n\t\tpathPoints = [];\n\t\tupdateMarkerIcon(representative);\n\t}\n\t\n\tfor(var i = 0; i < postPathPoints.length; i++)\n\t\tpostPathPoints[i].setMap(null);\n\t\t\n\tpostPathPoints = [];\n\t\n\tupdateMapPoints($('#slider-range').slider('option'));\n}", "function stackClear(){this.__data__={'array':[],'map':null};}", "function stackClear(){this.__data__={'array':[],'map':null};}", "function stackClear(){this.__data__={'array':[],'map':null};}", "function clearArray(origArray) { spliceArray(origArray, 0, origArray.length); }", "function clearArray(origArray) { spliceArray(origArray, 0, origArray.length); }", "clear() {\n this.vertexCount = 0;\n }", "function clearMarkers() {\n\t//clear existing markers\n\tconsole.log(\"clearing\");\n\tif (markers != null && markers.length > 0) {\n\t\tfor (var i = 0; i < markers.length; i++) {\n\t\t\tconsole.log(markers[i]);\n\t\t\tmarkers[i].setMap(null);\n\t\t};\n\t}\n\tmarkers = [];\n}", "function clear() {\n\n myval = [];\n multiMarkov.clearAll();\n\n}", "function clearData(){\n \n already_painted = [];\n\n geoJSON_layer_group.clearLayers();\n in_out_map.removeLayer(geoJSON_layer_group);\n \n}", "function clearAllMarkers() {\n for (var i = 0; i < googleMarkersArray.length; i++) {\n googleMarkersArray[i].setMap(null);\n }\n googleMarkersArray.length = 0;\n}", "clearData() {\n this.barData = new Array(8).fill(null).map(_ => {\n return { A: 0, B: 0 }\n }) // one per column\n this.totalFrequencyData = { A: 0, B: 0 }\n this.totalFrequencyDataCount = 0\n this.stateMapping = new Array(10000).fill(null)\n }", "function clearPiece() {\n for (var i=0; i<prevPieceArray.length; i++){\n for (j=0; j<prevPieceArray.length; j++) {\n if (prevPieceArray[i][j] != 0)\n gameBoard[prevYPosition+i][prevXPosition+j] = 0;\n\n }\n }\n ctx.clearRect(150, 20, 400, 500);\n drawGameArea();\n}", "clearNonBoundaryPoints() {\n this.points.splice(this.numBoundaryRegions, this.points.length);\n return this;\n }", "function reset(){\n stage.removeAllChildren();\n clickCount = 0;\n coordinates = [];\n centroid = [];\n stage.update();\n} //End of function", "_clearDataElements() {}", "function reset() {\n\t\tmarkers.reset();\n\t}", "function stackClear() {\n\t this.__data__ = { 'array': [], 'map': null };\n\t }", "reset() {\n this.dataset = [];\n this.svg.selectAll(\"circle\").remove();\n this.svg.selectAll(\"g\").remove();\n $(\"#metrics\").removeClass(\"visible\").addClass(\"invisible\");\n }" ]
[ "0.8701126", "0.8368637", "0.79437363", "0.74197924", "0.7246556", "0.72284037", "0.7178039", "0.7170296", "0.7170296", "0.71398", "0.7132375", "0.7105169", "0.70594084", "0.7034979", "0.70067066", "0.7002846", "0.69889235", "0.6975775", "0.6958515", "0.69159013", "0.6910785", "0.6905287", "0.69024426", "0.68910015", "0.68847233", "0.6884154", "0.6884154", "0.6875289", "0.6867098", "0.68630403", "0.68575615", "0.6850132", "0.6835666", "0.6805601", "0.67690617", "0.67618436", "0.6754688", "0.67448425", "0.6669685", "0.66639477", "0.66528845", "0.6650327", "0.66437125", "0.6642721", "0.66316164", "0.6630449", "0.6621348", "0.66188174", "0.6616334", "0.6614205", "0.6608766", "0.6599184", "0.65874517", "0.65870297", "0.65663433", "0.6553946", "0.655294", "0.65512896", "0.6543138", "0.6536395", "0.65140384", "0.6513855", "0.65081835", "0.65077955", "0.65072674", "0.6506043", "0.6501059", "0.64964664", "0.649567", "0.6490725", "0.6484259", "0.6484108", "0.64832", "0.64828116", "0.6469648", "0.64692754", "0.6468483", "0.6468311", "0.6458459", "0.6456321", "0.6446184", "0.6441312", "0.64412886", "0.64412886", "0.64412886", "0.64336514", "0.64336514", "0.6430873", "0.64278024", "0.6421593", "0.6420829", "0.6415315", "0.6409626", "0.64064056", "0.6404485", "0.6403656", "0.6402801", "0.63930696", "0.6392161", "0.63897246" ]
0.91288203
0
Making a GET request to get information about the place
function makeFoursquareRequest(locationData){ let latLong = locationData.location.lat + "," + locationData.location.lng; let _finalUrl = baseUrl + latLong; return $.getJSON(_finalUrl) .done(function (data) { return (data.response.venues[0]); }).fail(function (error) { console.log(error.responseJSON.meta.errorDetail); return error; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPlaces(){\n // Get places : this function is useful to get the ID of a PLACE\n // Ajust filters, launch search and view results in the log\n // https://developers.jivesoftware.com/api/v3/cloud/rest/PlaceService.html#getPlaces(List<String>, String, int, int, String)\n\n // Filters\n // ?filter=search(test,report)\n // recentlyviewed\n // ?filter=type() = space, blog, group ...\n \n var result = fetch( BASEURL + \"/places/?filter=type(group)&filter=search(test collaboration)&count=100\" , options(\"get\")).list; \n for(var i in result){\n Logger.log(i + \" \" + result[i].name + \" \" + result[i].placeID); \n }\n}", "function getPlaces(req, res) {\n\tvar query = `\n SELECT * FROM places\n `;\n connection.query(query, function(err, rows, fields) {\n if (err) console.log(err);\n else {\n res.json(rows);\n }\n });\n}", "function getPlaces(lat, long, query) {\n var url = 'https://maps.googleapis.com/maps/api/place/search/json';\n var radius = '?radius=5000';\n var sensor = '&sensor=false';\n var location = '&location=' + lat + ',' + long;\n var keyword = '&keyword=' + encodeURIComponent(query);\n var key = '&key=' + GOOGLE_API_KEY;\n url += radius + sensor + location + keyword + key;\n var xhr = new XMLHttpRequest();\n xhr.onreadystatechange = function() {\n if (xhr.readyState == 4) {\n requestReceived();\n if (xhr.status == 200) {\n var data = JSON.parse(xhr.responseText);\n retrievePlacesResults(data);\n } else {\n console.log('Error: Getting places for the coordinates failed.');\n }\n }\n }\n xhr.open('GET', url, true);\n xhr.send();\n requestSent();\n}", "function show(req, res) {\n\tvar cityName = req.params.cityId;\n db.Place.find({cityName: cityName})\n\t.exec(function(error, places) {\n\t\tif (error) { res.send(error) };\n\t\tres.json(places);\n });\n}", "function tryToFindAll() {\n // Tries GET\n try {\n\n // SUPPORTED TYPES for Place API 'Nearby': https://developers.google.com/places/web-service/supported_types\n\n return getData('https://cors-anywhere.herokuapp.com/https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-8.060726,-34.891307&rankby=distance&type=parking&keyword=estacionamento&key=YOUR_KEY_HERE', organizeFoundPlaces);\n\n } catch (error) {\n console.error(error);\n }\n}", "function getLocations(place, callback) {\n var request = new XMLHttpRequest();\n var baseUrl = 'https://api.foursquare.com/v2/venues/explore';\n var clientId = 'YAFHOBF2NGR5UJJS4NLNWXCNZBGEMQUBCFA00SFRZLIRM5JO';\n var clientSecret = 'CX2WYTMBELLDEAVQJB3BFFPDWL315NPQK1GYJKL1JZRPBBZX';\n var queryParams = [];\n queryParams[0] = 'near=' + place;\n queryParams[1] = 'client_id=' + clientId;\n queryParams[2] = 'client_secret=' + clientSecret;\n queryParams[3] = 'radius=' + 2000; //finds places in a circle with radius 2000 metetes.\n queryParams[4] = 'v=' + (new Date()).toISOString().slice(0,10).replace(/-/g,\"\");\n var url = baseUrl + '?' + queryParams.join('&');\n request.open('GET', url);\n request.onreadystatechange = function() {\n var requestError = false;\n var data;\n if (request.readyState === 4) {\n //if there is no error, parse the returned data.\n //if error, set the error status to true.\n request.status === 200? data = JSON.parse(request.responseText) : requestError = true;\n callback(requestError, data);\n } \n };\n request.send(null);\n}", "function getPlace(req, res) {\n process.nextTick(() => {\n Place.findById(req.params.id, (err,place) => {\n if(err) return res.status(500).json({ status: 500, message: \"Oops something went wrong\", error: err});\n res.json({ status: 200, place});\n });\n });\n}", "getBattlePlaces(req, res) {\n model.battle.findPlaces((err, data) => {\n if(err) {\n res.status(500).send({error: constant.ERROR_OCCURED})\n }\n res.status(200).json({places: data});\n })\n }", "function getPlaceByName (req, res) {\n const placeName = req.params.placeName\n let url = `https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=${placeName}&fields=name,place_id&inputtype=textquery&key=${apiKey}`\n request(url, (error, response, body) => {\n if (error) res.status('400').send(error)\n\n res.send(body)\n })\n}", "function getLocation(req, res) {\n var options = {\n method: 'GET',\n url: encodeURI(`https://almundo.com.co/hotels/async/autocomplete/${req.query.location}`),\n headers:\n {\n 'cache-control': 'no-cache',\n 'content-type': 'application/json'\n }\n };\n Get.request(options, (response) => {\n if(response){\n res.status(201).send(JSON.parse(response));\n }else{\n res.status(201).send({});\n }\n })\n\n}", "function requestPlaces(location) {\n var request = {\n location: location,\n types: ['park'],\n rankBy: google.maps.places.RankBy.DISTANCE\n };\n \n var service = new google.maps.places.PlacesService(map);\n service.search(request, callback);\n }", "function getStreet() {\n var apikey = '8iMbHQoKISbmKAynwHsO7ZlMhuPhWgtu';\n $.ajax({\n url: 'https://www.mapquestapi.com/geocoding/v1/reverse',\n dataType: 'json',\n method: 'GET',\n data: {\n location: lat + \",\" + lon,\n key: apikey,\n }\n }).then(function (response) {\n //On succesful of good response: set Ticket Master Quiries off of retured info\n searchAddress = response.results[0].locations[0].street;\n searchCity = response.results[0].locations[0].adminArea5;\n searchState = response.results[0].locations[0].adminArea3;\n startPoint = searchAddress + \", \" + searchCity + \", \" + searchState;\n\n main(); //call to main to get other defualt values not obtained through location servies permissions\n });\n }", "function getGooglePlaces(res, city, type, curPlaces, callback) {\n var searchQuery = '';\n if (type == 'food') {\n searchQuery = ' restaurants';\n } else {\n searchQuery= ' things'\n }\n var url = 'https://maps.googleapis.com/maps/api/place/textsearch/json?key=' + google_key + '&query=' + city + searchQuery;\n https.get(url, function (resp) {\n var data = '';\n resp.on('data', function (chunk) {\n data += chunk;\n });\n\n resp.on('end', function () {\n var parsed_data = JSON.parse(data);\n results = parsed_data['results'];\n if (parsed_data.status == 'ZERO_RESULTS') {\n callback(curPlaces);\n return;\n }\n if (parsed_data.status != 'OK') {\n api_key_error = true;\n callback([]);\n return;\n }\n var places = curPlaces;\n for (var i = 0; i < results.length; i++) {\n var result = results[i];\n var place = {};\n if ('formatted_address' in result) {\n var formatted = result['formatted_address'];\n var formattedAbbrev;\n var numSpaces = formatted.split(' ').length - 1;\n if (numSpaces > 0) {\n var formattedAbbrev = formatted.substring(0, formatted.lastIndexOf(' '));\n if (numSpaces > 1) {\n formattedAbbrev = formatted.substring(0, formattedAbbrev.lastIndexOf(' '));\n }\n while (!formattedAbbrev.charAt(formattedAbbrev.length - 1).match(/[a-z]/i) && formattedAbbrev.length > 0) {\n formattedAbbrev = formattedAbbrev.substring(0, formattedAbbrev.length - 1);\n }\n place['address'] = formattedAbbrev;\n } else {\n place['address'] = formatted;\n }\n } else {\n place['address'] = null;\n }\n place['place_id'] = result['place_id'];\n place['name'] = result['name'];\n place['rating'] = result['rating'];\n place['lat'] = result['geometry']['location']['lat'];\n place['lng'] = result['geometry']['location']['lng'];\n place['type'] = type;\n if (result['photos'] && result['photos'].length > 0 && result['photos'][0]['photo_reference']) {\n place['photo_reference'] = result['photos'][0]['photo_reference'];\n } else {\n place['photo_reference'] = null;\n }\n places.push(place);\n }\n callback(places);\n });\n }).on(\"error\", function (err) {\n console.log(\"Error: \" + err.message);\n });\n}", "function success(ubicacion){\r\n fetch(`https://cors-anywhere.herokuapp.com/https://www.metaweather.com/api/location/search/?lattlong=${ubicacion.coords.latitude},${ubicacion.coords.longitude}`)\r\n .then(response => response.json())\r\n .then(response => {\r\n placewoeid = response[0].woeid;\r\n getInfo();\r\n })\r\n}", "function locReq (address, key) {\n var url = \"https://maps.googleapis.com/maps/api/geocode/json\";\n var params = {\n key : key || \"AIzaSyB-v_-f7o1v3kQZDsAebvK8wdoyjh51cDs\",\n address : address\n };\n return new Get(url,params);\n}", "function loadPlacesRequest() {\n const data = JSON.parse(this.responseText);\n places = data.places;\n domStringBuilder(places);\n}", "function getPlaceDetails() {\n marker = this;\n placesSrv.getDetails(\n {reference: marker.place.reference},\n function(place, status) {\n if (status != google.maps.places.PlacesServiceStatus.OK) {\n console.log(\"blääh\");\n return;\n }\n buildPlaceInfo(place);\n infocard.setHeader(place.name);\n infocard.replaceContents(searchResults);\n infocard.resize(300, 350)\n infocard.open();\n });\n}", "async getInfo(keyword) {\n //http://openapi.seoul.go.kr:8088/(인증키)/xml/MgisArtPlace/1/5/\n //const response = await fetch(`http://openapi.seoul.go.kr:8088/${this.apiKey}/json/GetParkInfo/1/5`)\n const response = await fetch(`http://openapi.seoul.go.kr:8088/${this.apiKey}/json/MgisArtPlace/1/354/`)\n\n const responseData = await response.json();\n\n return responseData;\n\n }", "function getBreweryDetailDataFromGoogleApi(placeID, callback) {\n\n\tconsole.log(placeID);\n\n\t let request = {\n\t \tplaceId: `${placeID}`\n\t\t};\n\n\tconsole.log(request);\n\n\tservice = new google.maps.places.PlacesService(map);\n\tservice.getDetails(request, callback);\n\n\t\t\n\t}", "getAllPlaces() {\n axios\n .get(`https://data.cityofnewyork.us/resource/sxx4-xhzg.json`)\n .then(places => this.setState({ places: places.data }))\n .catch(err => console.error(err));\n }", "listPlace(){\n let google=this.google;\n let map=this.map\n var service;\n // Create the search box and link it to the UI element.\n var input = document.getElementById('address');\n var searchBox = new google.maps.places.SearchBox(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 var locate;\n var mapData;\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 request = {\n query: input.value,\n fields: ['name', 'geometry','formatted_address', 'icon','photos','place_id'],\n };\n\n service = new google.maps.places.PlacesService(this.map);\n service.findPlaceFromQuery(request, function (results, status) {\n if (status === google.maps.places.PlacesServiceStatus.OK) {\n let property=results[0];\n locate = property.geometry.location;\n var addrRequest={\n place_id: property.place_id,\n fields: ['address_components' ]\n }\n service.getDetails(addrRequest, function(addressBreakdown,addrStatus){\n\n var streetNumber;\n var streetName;\n var suburb;\n var state;\n var postcode;\n var country;\n for(var i = 0; i < addressBreakdown.address_components.length; i++){\n let addr=addressBreakdown.address_components[i];\n for(var k = 0; k < addr.types.length; k++){\n if (addr.types[k] === \"street_number\")\n streetNumber = addr.short_name;\n else if (addr.types[k] === \"route\")\n streetName = addr.short_name;\n else if (addr.types[k] === \"administrative_area_level_2\")\n suburb = addr.short_name;\n else if (addr.types[k] === \"administrative_area_level_1\")\n state = addr.short_name;\n else if (addr.types[k] === \"postal_code\")\n postcode = addr.long_name;\n else if (addr.types[k] === \"country\")\n country = addr.long_name;\n }\n }\n mapData={\n street: streetName,\n suburb: suburb,\n state: state,\n postcode: postcode,\n country: country,\n }\n });\n this.place=locate;\n }\n });\n });\n\n return JSON.stringify(mapData);\n }", "function fetchPlace(property, value, parseFetch){\n\t\t$('#view').empty();\n\t\t$('#view').append('<div id=\"place-list\"><h1 id=\"typeLabel\">' + value + '</h1></div>')\n\t\tparseFetch.equalTo(property, value)\n\t\t\t\t\t.find({\n\t\t\t\t\t\tsuccess: function(obj) {\n\t\t\t\t\t\t\tconsole.log(obj);\n\t\t\t\t\t\t\tobj.forEach(function(item){\n\t\t\t\t\t\t\t\t// what to do with each object\n\t\t\t\t\t\t\t\tconsole.log(item.get('Name'));\n\t\t\t\t\t\t\t\tvar name = item.get('Name');\n\t\t\t\t\t\t\t\tvar type = item.get('Type');\n\t\t\t\t\t\t\t\tvar address = item.get('Address');\n\t\t\t\t\t\t\t\tvar phone = item.get('phoneNumber');\n\t\t\t\t\t\t\t\tvar lat = item.get('Lat');\n\t\t\t\t\t\t\t\tvar lng = item.get('Lng');\n\n\t\t\t\t\t\t\t\t// console.log('lat: ' + lat);\n\t\t\t\t\t\t\t\t// console.log('lng: ' + lng);\n\n\t\t\t\t\t\t\t\tmapData(name, address, phone, lat, lng);\n\t\t\t\t\t\t\t\tappendData(name, type, address, phone);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t},\n\t\t\t\t\t\terror: function(err) {\n\t\t\t\t\t\t\tconsole.log(err);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t}", "function getReleasePlace(input){\n $.ajax({\n url:\"http://localhost:8089/api/releasePlace/getReleasePlaceByName/\"+input,\n data: {\n format:'json'\n },\n error: function(){\n console.log(\"error\");\n },\n dataType:'json',\n success: function(result){\n $.each(result,(index,value)=>{\n $(\"#get-details\").append(\n `\n <ul>\n <li>${value.city}</li>\n <li>${value.country}</li>\n </ul>\n `\n );\n });\n },\n type: 'GET'\n });\n}", "function getPlaces(responseJson) {\n $('.errorText').empty();\n var lat = responseJson.results[0].geometry.location.lat;\n var lng = responseJson.results[0].geometry.location.lng;\n\n var myHeaders = new Headers();\n myHeaders.append(\"Access-Control-Allow-Origin\", \"*\");\n myHeaders.append(\"key\", \"AIzaSyCGnZ67EDIku1msVd4nZwRzzB-rDPnGAZc\");\n\n var requestOptions = {\n method: 'GET',\n headers: myHeaders,\n redirect: 'follow'\n };\n\n const proxyurl = \"https://cors-anywhere.herokuapp.com/\";\n const url = \"https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=\" + lat + \",\" + lng + \"&radius=500&types=food&keyword=\" + foodType.food + \"&key=AIzaSyCGnZ67EDIku1msVd4nZwRzzB-rDPnGAZc\"; // site that doesn’t send Access-Control-*\n fetch(proxyurl + url) // https://cors-anywhere.herokuapp.com/https://example.com\n .then(response => response.json())\n .then(contents => determineArray2(contents))\n .catch(() => $('.errorText').append(\"Can’t access \" + url + \" response. Blocked by browser?\"))\n}", "function getPlacesDetails(id) {\n\n var request = {\n placeId: id,\n }\n\n var service = new google.maps.places.PlacesService(map);\n service.getDetails(request, callback);\n\n function callback(place, status) {\n if (status == google.maps.places.PlacesServiceStatus.OK) {\n $(\"#\" + id).attr(\"href\", place.website).attr(\"target\", \"_blank\");\n }\n }\n}", "function showOne(req, res) {\n\tvar placeId = req.params.placeId;\n\t db.Place.findById(placeId, function(err, foundPlace) {\n\t\t\t res.json(foundPlace);\n\t });\n}", "async getPlace(){\n const place = await fetch(`https://maps.googleapis.com/maps/api/geocode/json?key=${this.apiKeyGC}&latlng=${this.lat},${this.lon}`);\n const placeData = await place.json();\n let placeName;\n\n if(placeData.status == 'ZERO_RESULTS'){\n return 'Undisclosed Place Name';\n } else {\n placeName = placeData.plus_code.compound_code;\n if(placeName === undefined){\n return 'Undisclosed Place Name';\n } else {\n return placeName.slice(8);\n }\n }\n }", "async function getPlaceDetails(Place) {\n // Use place ID to create a new Place instance.\n const place = new Place({\n id: \"ChIJN1t_tDeuEmsRUsoyG83frY4\",\n requestedLanguage: \"en\", // optional\n });\n\n // Call fetchFields, passing the desired data fields.\n await place.fetchFields({ fields: [\"displayName\", \"formattedAddress\"] });\n // Show the result\n console.log(place.displayName);\n console.log(place.formattedAddress);\n}", "function getDetails(placeId, callback) {\n service.getDetails({placeId: placeId},\n function(place, status) {\n if (status != \"OK\") {\n var msg = \"Request to Google Places service (getDetails) failed (status: \" + status + \")\";\n alert(msg);\n throw {name: \"places\", message: msg};\n }\n\n callback(place);\n });\n}", "async function getEnviroInfo(req, res) {\n try {\n const lat = req.query.lat;\n const lon = req.query.lon;\n const searchResult = await axios(\n `http://api.airvisual.com/v2/nearest_city?lat=${lat}&lon=${lon}&key=${process.env.AIRVISUAL_API}`\n );\n\n res.send(searchResult.data);\n } catch (err) {\n res.status(500).json({ message: err.message });\n }\n}", "function getZomatoRestaurants(place_id){\n var zomatoUrl = \"https://developers.zomato.com/api/v2.1/\" +\n \"search?entity_id=\" +\n place_id + \"&entity_type=city&cuisines=148\";\n $.ajax({\n type: 'GET',\n url: corsAnywhereUrl + zomatoUrl,\n headers: {'user_key': '26ce1af09de13709ce7601f27ae5e14d'},\n }).done(function(response){\n self.results_found(response.results_found);\n showRestaurants(response);\n b = map.getBounds();\n z = map.getZoom();\n }).fail(function(){\n window.alert(\"error getting restaurants\");\n\n });\n } //end of getZomatoRestaurants_by_id", "function getPlaces(marker, infowindow) {\n var service = new google.maps.places.PlacesService(map);\n service.getDetails({\n placeId: marker.id\n }, function(place, status) {\n if(status === google.maps.places.PlacesServiceStatus.OK) {\n\n // Set marker property on this infowindow\n\n infowindow.marker = marker;\n\n var contentString = '<div>' + '<strong>' + place.name + '</strong>' + '<br>' + place.formatted_address +\n '<br>' + 'Phone Number: ' + place.international_phone_number + '<br>' + 'Place Rating: ' + place.rating +'/5' +\n '<br><br><img src=\"' + place.photos[0].getUrl({ maxHeight: 100, maxWidth: 200}) + '\">' + '<br>' + 'WikiLink:' + '<br><a href=\"http://en.wikipedia.org/wiki/' + place.name + '\">' + place.name + '</a></div>';\n\n infowindow.setContent(contentString);\n infowindow.open(map, marker);\n infowindow.addListener('closeclick', function() {\n infowindow.marker = null;\n });\n }\n });\n }", "function getPlaceDetailByPlaceid(placeid, callback) {\n // If googleMapsclient node.js library for google map is declared, use it.\n if (googleMapsClient) {\n googleMapsClient.place({\n \"placeid\": placeid\n }, function(err, response) {\n if (!err) {\n console.log(\"getPlaceDetailByPlaceid : \", response.json.result);\n callback(response.json.result);\n } else if (err === 'timeout') {\n // Handle timeout.\n console.log(err);\n } else if (err.json) {\n // Inspect err.status for more info.\n console.log(err);\n } else {\n // Handle network error.\n console.log(\"err : other\", err);\n }\n \n });\n } else {\n var url = \"https://maps.googleapis.com/maps/api/place/details\";\n \n doOpenApiCall({\n url: url,\n retType: \"json\",\n key: key,\n params: { \"placeid\": placeid }\n }, function(ret) {\n callback(ret.result);\n });\n }\n }", "static buildGetPlacesQuery(lat, lng) {\n return \"https://maps.googleapis.com/maps/api/place/textsearch/json\"\n + \"?query=\" + relevantPlaceTypes\n + \"&language=en\"\n + \"&fields=formatted_address,geometry,icon,id,name,permanently_closed,photos,place_id,plus_code,types,user_ratings_total,price_level,rating,opening_hours\"\n + \"&location=\" + lat.toString() + \",\" + lng.toString()\n + \"&key=\" + MapsApiKey.MAPS_API_KEY\n + \"&radius=12000\";\n }", "function findPlaces() {\r\n\r\n // prepare variables (filter)\r\n var type = document.getElementById('gmap_type').value;\r\n var radius = document.getElementById('gmap_radius').value;\r\n var keyword = document.getElementById('gmap_keyword').value;\r\n\r\n var lat = document.getElementById('lat').value;\r\n var lng = document.getElementById('lng').value;\r\n var cur_location = new google.maps.LatLng(lat, lng);\r\n\r\n\t\r\n // prepare request to Places\r\n var request = {\r\n location: cur_location,\r\n radius: radius,\r\n types: [type]\r\n };\r\n if (keyword) {\r\n request.keyword = [keyword];\r\n }\r\n\r\n // send request\r\n\t\r\n service = new google.maps.places.PlacesService(map);\r\n service.search(request, createMarkers);\r\n}", "function getPlaces(latitude, longitude) {\n\n\t var latLong = new google.maps.LatLng(latitude, longitude);\n\n\t var mapOptions = {\n\n\t center: new google.maps.LatLng(latitude, longitude),\n\t zoom: 15,\n\t mapTypeId: google.maps.MapTypeId.ROADMAP\n\n\t };\n\n\t Map = new google.maps.Map(document.getElementById(\"places\"), mapOptions);\n\n\t Infowindow = new google.maps.InfoWindow();\n\n\t var service = new google.maps.places.PlacesService(Map);\n\t service.nearbySearch({\n\n\t location: latLong,\n\t radius: 500,\n\t type: ['atm']\n\t }, foundStoresCallback);\n\n\t}", "function queryMapDetail(location)\n{\n\n $('#eventDetail').addClass('hide');\n $('#eventList').addClass('hide');\n $('#mapDetail').removeClass('hide');\n\n \n service.getDetails({ placeId: location.place_id}, function(place, status) \n {\n console.log(place);\n if (status === google.maps.places.PlacesServiceStatus.OK)\n {\n\n let photoOptions = {\n maxHeight : 200,\n maxWidth: 200\n };\n \n let placePhoto = place.photos[0];\n\n let img_source = placePhoto.getUrl(photoOptions);\n\n let placeHTML =\n `<div class=\"placeDetail\">\n <button type=\"button\" class=\"btn btn-dark btn-md\">Close</button>\n <h3 class=\"detailHeading\" >${place.name}\n </h3>\n <img class=\"mapThumbnail img-fluid\" src=\"${img_source}\" alt=\"${place.name}\">\n <a href=\"${place.website}\">Visit the website.</a><br>\n ${place.adr_address}\n </div>\n `;\n \n $('#mapDetail').html(placeHTML);\n }\n\n returnToEvents();\n }); \n\n}", "function loadPlaceFromAPIs(position) {\n const params = {\n radius: 300, // search places not farther than this value (in meters)\n clientId: 'CRDMPAGPE4KCZOMKKCLKKSJOKUKJZVE54LUROL2GLDS3UMTA',\n clientSecret: 'TCWSXDU33J30GFTTPDRVL4SXMGMT3ON0ZWZVXWQPPINDMMWD',\n version: '20300101', // foursquare versioning, required but unuseful for this demo\n };\n\n // CORS Proxy to avoid CORS problems\n const corsProxy = 'https://cors-anywhere.herokuapp.com/';\n\n // Foursquare API\n const endpoint = `${corsProxy}https://api.foursquare.com/v2/venues/search?intent=checkin\n &ll=${position.latitude},${position.longitude}\n &radius=${params.radius}\n &client_id=${params.clientId}\n &client_secret=${params.clientSecret}\n &limit=15\n &v=${params.version}`;\n return fetch(endpoint)\n .then((res) => {\n return res.json()\n .then((resp) => {\n return resp.response.venues;\n })\n })\n .catch((err) => {\n console.error('Error with places API', err);\n })\n}", "function loadPlaceFromAPIs(position) {\n const params = {\n radius: 300, // search places not farther than this value (in meters)\n clientId: 'CRDMPAGPE4KCZOMKKCLKKSJOKUKJZVE54LUROL2GLDS3UMTA',\n clientSecret: 'TCWSXDU33J30GFTTPDRVL4SXMGMT3ON0ZWZVXWQPPINDMMWD',\n version: '20300101', // foursquare versioning, required but unuseful for this demo\n };\n\n // CORS Proxy to avoid CORS problems\n const corsProxy = 'https://cors-anywhere.herokuapp.com/';\n\n // Foursquare API\n const endpoint = `${corsProxy}https://api.foursquare.com/v2/venues/search?intent=checkin\n &ll=${position.latitude},${position.longitude}\n &radius=${params.radius}\n &client_id=${params.clientId}\n &client_secret=${params.clientSecret}\n &limit=15\n &v=${params.version}`;\n return fetch(endpoint)\n .then((res) => {\n return res.json()\n .then((resp) => {\n return resp.response.venues;\n })\n })\n .catch((err) => {\n console.error('Error with places API', err);\n })\n}", "function getRequest(placeName){\n const options = {\n hostname: 'cassandra-api.bottlemessage-299107.uc.r.appspot.com',\n port: 443,\n path: '/api/query/'+placeName,\n method: 'GET'\n }\n\n const req = https.request(options, res => {\n console.log(`statusCode: ${res.statusCode}`)\n\n res.on('data', d => {\n process.stdout.write(d)\n })\n })\n\n req.on('error', error => {\n console.error(error)\n })\n req.end()\n}", "function getPlaces(latitude, longitude) {\n\n var latLong = new google.maps.LatLng(latitude, longitude),\n\n mapOptions = {\n\n center: new google.maps.LatLng(latitude, longitude),\n zoom: 15,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n\n };\n Map = new google.maps.Map(document.getElementById('places'), mapOptions);\n\n Infowindow = new google.maps.InfoWindow();\n\n var service = new google.maps.places.PlacesService(Map);\n service.nearbySearch({\n\n location: latLong,\n radius: 500,\n type: ['restaurant']\n }, foundStoresCallback);\n\n }", "function getPlaces(res, city, callback) {\n api_key_error = false;\n getGooglePlaces(res, city, 'food', [], function(restaurants) {\n getGooglePlaces(res, city, 'attraction', restaurants, function(allPlaces) {\n getPlacePhotos(allPlaces, function (placesWithPhotos) {\n getPlaceHours(placesWithPhotos, function (finalPlaces) {\n populateDB(city, finalPlaces, callback);\n });\n });\n });\n });\n}", "function getFarmersMarketDetails(place) {\n $.ajax({\n type: \"GET\",\n contentType: \"application/json; charset=utf-8\",\n // submit a get request to the restful service mktDetail.\n url: \"http://search.ams.usda.gov/farmersmarkets/v1/data.svc/mktDetail?id=\"\n + place.marketID,\n context: place,\n dataType: 'jsonp',\n cache: false\n })\n // In the done function 'this' will be the context which is set to the 'place'\n // that was created in getFarmersMarketsByLatLng\n .done(function(detailResults) {\n if (detailResults) {\n var marketDetails = detailResults.marketdetails;\n var googleLink = marketDetails.GoogleLink;\n var latStringStart = googleLink.indexOf('?q=') + 3;\n var latStringEnd = googleLink.indexOf('%2C%20');\n var lngStringStart = latStringEnd + 6;\n var lngStringEnd = googleLink.lastIndexOf('%20');\n this.lat = googleLink.substring(latStringStart, latStringEnd);\n this.lng = googleLink.substring(lngStringStart, lngStringEnd);\n this.address = marketDetails.Address;\n this.schedule = marketDetails.Schedule;\n this.products = marketDetails.Products;\n this.mapMarker = mapManager.createMarker(this.lat, this.lng, this);\n self.placesList.push(this);\n addMapMarkerEventListener(this.mapMarker);\n }\n })\n .fail(function() {\n alert(\"Error getting farmers market detail data from usda.gov\");\n });\n }", "search (query) {\n\t\t// Store lat/lng of locality to use in this url (focus.point.lat, focus.point.lon)\n \t\t//const endpoint = `https://search.mapzen.com/v1/autocomplete?text=${query}&api_key=${this.props.config.mapzen.apiKey}&focus.point.lat=${this.props.coordinates[0]}&focus.point.lon=${this.props.coordinates[1]}&layers=venue`\n \t\tconst placetype = this.state.placetype\n \t\tconst endpoint = `https://whosonfirst-api.mapzen.com/?method=whosonfirst.places.search&api_key=${this.props.config.mapzen.apiKey}&q=${query}&${placetype}=${this.props.source.id}&placetype=venue&per_page=100&extras=geom:latitude,geom:longitude,sg:,addr:full,wof:tags`\n \t\tthis.throttleMakeRequest(endpoint)\n\t}", "function getDetails(placeId, el) {\n let placeService = new google.maps.places.PlacesService(place);\n placeService.getDetails({placeId: placeId}, function(place, status) {\n //console.log(status);\n //console.log(place);\n\n let phoneNumber = place.formatted_phone_number;\n let hours = place.opening_hours.weekday_text;\n let website = place.website;\n let moreInfo = place.url;\n\n el.append('<br><label class=\"first\">phone number:</label> ' + phoneNumber);\n el.append('<br><label>website:</label> ' + website);\n el.append('<br><label>google page:</label> ' + moreInfo);\n\n for(let i = 0; i < hours.length; i++) {\n el.append('<span class=\"list-item\">' + hours[i] + '</span>');\n }\n });\n}", "function getPlaceDetails(marker, infowindow) {\n\n var place = marker.getPosition();\n var name = marker.title;\n // get id of location from Foursquare\n $.ajax({\n url: \"https://api.foursquare.com/v2/venues/search\"+\n \"?client_id=YWMQC5J3CQIZKXADOM4WCZFQO0L0UTSVTL30OEPUWFNJWFSJ\"+\n \"&client_secret=PPOQGMNCDINMRDVYRQUKRHYA2GVUHFD5IVA04L3M2INSURSQ\"+\n \"&v=20170801\"+\n \"&ll=\"+place.lat()+\",\"+place.lng()+\n \"&query=\"+name+\n \"&limit=1\",\n type: \"GET\",\n datatype : \"application/json\",\n async: true,\n success: function (result) {\n var details = {id:\"\", name:\"\", address:\"\", picture:\"\"};\n details.name = result.response.venues[0].name;\n details.id = result.response.venues[0].id;\n details.address = result.response.venues[0].location.formattedAddress;\n // make call for Foursquare images\n getPlaceImage(details, marker, infowindow);\n },\n error: function (jqXHR, status, error) {\n window.alert(\"Couldn't get place information from Foursquare\\nError:\" + error);\n }\n });\n }", "function fetch(route) {\n const reqURL = 'http://webservices.nextbus.com/service/publicJSONFeed?command=vehicleLocations&a=mit&r='+ route +'&t=0';\n return new Promise((resolve, reject) => {\n axios.get(reqURL)\n .then(response => {\n resolve(response.data);\n }).catch(error => {\n reject(error);\n });\n });\n}", "async function locations(zone, type, coord){\r\n \r\n let query, headers, queryURL\r\n \r\n let locationTypes = ['PARKING_ZONE','TRAFFIC_LANE','WALKWAY']\r\n \r\n // (typeof(coord) === undefined) ? tenant.bbox : coord\r\n if (coord === undefined) {coord = '-90:-180,90:180'}\r\n \r\n if (type === 'bbox') {\r\n console.debug('querying locations by bbox')\r\n query = '/locations/search?bbox='+coord\r\n } else if (locationTypes.indexOf(type) >= 0) {\r\n console.debug('querying locations by locationType')\r\n query = '/locations/search?bbox='+coord+'&q=locationType:'+type \r\n } else {\r\n console.debug('querying locations by locationUid')\r\n query = '/locations/'+type\r\n }\r\n\r\n headers = {authorization: 'Bearer '+client_token, 'predix-zone-id': zone} \r\n queryURL = tenant.metadataservice+query\r\n console.log('Query URL: '+queryURL)\r\n \r\n let response = (await request(queryURL,headers))\r\n return (response.content === undefined) ? response : response.content \r\n }", "function getAQI(lat,lon) {\n fetch(`${temp.base}lat=${lat}&lon=${lon}&appid=${temp.key}`)//fetching data from api\n .then(aqi => {\n return aqi.json();\n }).then(displayResults);//function call to display results\n}", "function Request(location, intensity) {\n var link = 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?';\n // define intensity threshold\n var threshold = 1;\n var type = (intensity < threshold) ? 'type=pharmacy&' : 'type=hospital&';\n var radius = 'rank=nearby&';\n var open = 'opennow&';\n var loc = 'location=' + location[0] + ',' + location[1] + ',' + location[2] + '&';\n\n link = link + loc + radius + type + open + KEY;\n print(link);\n}", "function getPlacesDetails(marker, infowindow) {\n var service = new google.maps.places.PlacesService(map);\n service.getDetails({\n placeId: marker.id\n }, function (place, status) {\n if (status === google.maps.places.PlacesServiceStatus.OK) {\n // Set the marker property on this infowindow so it isn't created again.\n infowindow.marker = marker;\n var innerHTML = '<div id=\"infowindow-content\">';\n\n place.name\n ? (innerHTML += \"<strong>\" + place.name + \"</strong>\")\n : (innerHTML += \"<strong>\" + \"No place name available from Google\");\n\n place.formatted_address\n ? (innerHTML += \"<br>\" + place.formatted_address)\n : (innerHTML += \"<br>\" + \"No address available from Google\");\n\n place.photos\n ? (innerHTML += '<br><br><img src=\"' + place.photos[0].getUrl({maxHeight: 100, maxWidth: 200}) + '\">')\n : (innerHTML += \"<br><br>\" + \"Sorry, Google couldn't find a photo of this place!\");\n\n marker.venueName\n ? (innerHTML += \"<br><br>Foursquare Venue Result: \" + marker.venueName)\n : (innerHTML += \"<br>\" + \"Sorry, Foursquare couldn't find a venue here!\");\n\n marker.hours\n ? (innerHTML += \"<br>\" + \"Today's hours: \" + marker.hours.status)\n : (innerHTML += \"<br>\" + \"Hours not available\");\n\n marker.price\n ? (innerHTML += \"<br>\" + \"Price: \" + marker.price.message)\n : (innerHTML += \"<br>\" + \"Price level not available\");\n\n marker.menu\n ? (innerHTML += '<br><a target=\"_blank\" href=\"' + marker.menu.url + '\">View Menu</a>')\n : (innerHTML += \"<br>\" + \"Menu not available\");\n\n marker.url\n ? (innerHTML += ' | <a target=\"_blank\" href=\"' + marker.url + '\">View Website</a>')\n : (innerHTML += \" | Website not available\");\n\n innerHTML += \"</div>\";\n infowindow.setContent(innerHTML);\n infowindow.open(map, marker);\n\n // Make sure the marker property is cleared if the infowindow is closed.\n infowindow.addListener(\"closeclick\", function () {\n infowindow.marker = null;\n });\n }\n });\n }", "getRestaurantsFromAPI(lat, lng) {\n const url =\n \"https://cors-anywhere.herokuapp.com/https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=\" +\n lat +\n \",\" +\n lng +\n \"&radius=2000&type=restaurant&key=AIzaSyDpZpcBF6Q7iisYJXN4_hbI2DUZbmrmauk\";\n\n this.resetMarkersAndRestaurant();\n fetch(url)\n .then(data => data.json())\n .then(resp => {\n let newMarkers = [];\n let newRestaurants = [];\n resp.results.forEach(r => {\n const imgUrl =\n \"https://maps.googleapis.com/maps/api/streetview?size=600x300&location=\" +\n r.geometry.location.lat +\n \",\" +\n r.geometry.location.lng +\n \"&pitch=10&fov=90&heading=235&key=key\";\n newMarkers = newMarkers.concat([\n {\n lat: r.geometry.location.lat,\n lng: r.geometry.location.lng,\n restaurantName: r.name\n }\n ]);\n newRestaurants.push(\n this.setRestaurant(\n r.name,\n r.vicinity,\n [],\n r.rating,\n r.place_id,\n imgUrl\n )\n );\n });\n this.addMarkers(newMarkers);\n this.addRestaurants(newRestaurants);\n });\n }", "function getData(userMap, locObj) {\n\n if (locObj.queryType === 'vacation') {\n $.getJSON(`https://arcane-basin-98906.herokuapp.com/search/vacation/${locObj.destinationLocation.lat},${locObj.destinationLocation.lng}/${searchPlacesInput.value}`, function (data) {\n // code is breaking right here, might need to get data from the json call into the done block. Azsq \n })\n .done(function (data) {\n console.log(data)\n pushPlaces(data, userMap);\n })\n .fail(function (err) {\n console.log(err);\n });\n } else {\n $.getJSON(`https://arcane-basin-98906.herokuapp.com/search/road-trip\n/${locObj.userLocation.lat},${locObj.userLocation.lng}\n/${locObj.destinationLocation.lat},${locObj.destinationLocation.lng}\n/${searchPlacesInput.value}`, function (data) { })\n .done(function (data) {\n // Run a for loop that returns all available results as pushpins\n // on the map\n pushPlaces(data, userMap);\n })\n .fail(function (err) {\n console.log(err);\n });\n\n }\n}", "function getPlaceInfo(placeObject) {\n // let placeObject = {\n // name: \"\",\n // address: \"\",\n // city: \"\",\n // state: \"\",\n // zipCode: \"\",\n // lat: \"\",\n // lng: \"\"\n // };\n locationInfoCall(placeObject.lat, placeObject.lng,foodInfoCall);\n }", "function detailsCallback (place, status) {\n //if the request was successful then populate the remaining fields of the list\n if (status === google.maps.places.PlacesServiceStatus.OK) {\n //set the result item in the list using the place_id\n var resultHolder = $(\"#\"+place.place_id+\" > .card-body\");\n //set the href for the link or disable it\n var btnLink = resultHolder.children(\"a\");\n place.website ? btnLink.attr('href',place.website) : btnLink.addClass(\"disabled\");\n //set the value of the opening hours if available\n var oHrs = place.opening_hours;\n if (oHrs && oHrs.weekday_text){\n resultHolder.children(\".card-text\").html(formatOpeningHours (oHrs.weekday_text));\n } else {\n resultHolder.children(\".card-text\").html(\"No opening hours available\");\n }\n } else {\n //log the reason for the unsuccessful request\n console.log(\"request was unsuccessfull, reason:\" + status);\n }\n}", "function getForecast() {\n request('locations.json')\n .then(displayForecast)\n .catch(handleError)\n }", "function getPlacesDetails(marker, infowindow) {\r\n var service = new google.maps.places.PlacesService(map);\r\n service.getDetails({\r\n placeId: marker.id\r\n }, function(place, status) {\r\n if (status === google.maps.places.PlacesServiceStatus.OK) {\r\n // Set the marker property on this infowindow so it isn't created again.\r\n infowindow.marker = marker;\r\n var innerHTML = '<div>';\r\n if (place.name) {\r\n innerHTML += '<strong>' + place.name + '</strong>';\r\n }\r\n if (place.formatted_address) {\r\n innerHTML += '<br>' + place.formatted_address;\r\n }\r\n if (place.formatted_phone_number) {\r\n innerHTML += '<br> tel:' + place.formatted_phone_number;\r\n }\r\n if (place.opening_hours) {\r\n innerHTML += '<br><br><strong>Hours:</strong><br>' +\r\n place.opening_hours.weekday_text[0] + '<br>' +\r\n place.opening_hours.weekday_text[1] + '<br>' +\r\n place.opening_hours.weekday_text[2] + '<br>' +\r\n place.opening_hours.weekday_text[3] + '<br>' +\r\n place.opening_hours.weekday_text[4] + '<br>' +\r\n place.opening_hours.weekday_text[5] + '<br>' +\r\n place.opening_hours.weekday_text[6];\r\n }\r\n if (place.photos) {\r\n innerHTML += '<br><br><img src=\"' + place.photos[0].getUrl({\r\n maxHeight: 100,\r\n maxWidth: 200\r\n }) + '\">';\r\n }\r\n innerHTML += '</div>';\r\n infowindow.setContent(innerHTML);\r\n infowindow.open(map, marker);\r\n // Make sure the marker property is cleared if the infowindow is closed.\r\n infowindow.addListener('closeclick', function() {\r\n infowindow.marker = null;\r\n });\r\n }\r\n });\r\n}", "function findDetail(place) {\n // return promise\n return new Promise(function (resolve, reject) {\n // use getDetails method to retrieve Place data via the Place's place_id property\n service.getDetails({\n placeId: place.place_id\n }, function (place, status) {\n if (status == google.maps.places.PlacesServiceStatus.OK) {\n //console.log(place.opening_hours.weekday_text);\n for (var j = 0; j < place.opening_hours.weekday_text.length; j++) {\n console.log(place.opening_hours.weekday_text[j]);\n\n }\n resolve(place);\n } else {\n // else reject with status\n reject(status);\n }\n });\n });\n}", "function getPlaces(location){\n //set the waiting div in the list and show the list pane\n htmlElements.list.html(htmlElements.waitingDiv);\n htmlElements.listCont.removeClass(\"d-none\");\n $(\"#map\").addClass(\"col-sm-8\");\n //get the data from the hidden form in the infowindow\n var dataIn = $(location).parent().children(\".GMapVals\").serializeArray();\n //build and proccess the request\n var location = { \n lat: parseFloat(dataIn[0].value) , \n lng: parseFloat(dataIn[1].value)\n };\n var request = {location: location,\n radius: settings.radius,\n type: settings.type,\n keyword:settings.keyword\n };\n service = new google.maps.places.PlacesService(map);\n service.nearbySearch(request, nearbyCallback);\n}", "getPlace(model) {\n if (app.google) {\n const {name, onPlaceChange} = this.props;\n const latLng = new app.google.maps.LatLng(model.lat, model.lng);\n const request = {\n location: latLng,\n radius: 100000,\n rankby: 'distance',\n keyword: 'airport'\n };\n app.places.nearbySearch(request, (results, status) => {\n if (status == app.google.maps.places.PlacesServiceStatus.OK) {\n const {geometry} = results[0];\n const location = geometry ? geometry.location : null;\n onPlaceChange(name, location);\n } else {\n onPlaceChange(name, latLng);\n }\n });\n }\n }", "function getRoute (lat, lng) {\n //console.log(\"image coordinates\", lat, lng);\n $.ajax({\n 'url': 'http://free.rome2rio.com/api/1.2/json/Search?key=API KEY&oName=Helsinki&dPos=' + lat + ',' + lng + '&oKind=city&dKind=city',\n 'success': processRoute\n });\n}", "function getPlaceFromNearbySearch({\n location,\n radius,\n type,\n keyword\n }, callback) {\n var url = \"https://maps.googleapis.com/maps/api/place/nearbysearch\";\n \n doOpenApiCall({\n url: url,\n retType: \"json\",\n key: key,\n params: {\n \"location\": location,\n \"radius\": radius,\n \"type\": type,\n \"keyword\": keyword\n }\n }, function(ret) {\n console.log(\"getPlaceFromNearbySearch : \", ret);\n callback({ results: ret.results, next_page_token: (ret.next_page_token||null) });\n });\n }", "function getPlacesDetails(marker, infowindow) {\n var service = new google.maps.places.PlacesService(map);\n service.getDetails({\n placeId: marker.id\n }, function(place, status) {\n if (status === google.maps.places.PlacesServiceStatus.OK) {\n // Set the marker property on this infowindow so it isn't created again.\n infowindow.marker = marker;\n var innerHTML = '<div>';\n if (place.name) {\n innerHTML += '<strong>' + place.name + '</strong>';\n }\n if (place.formatted_address) {\n innerHTML += '<br>' + place.formatted_address;\n }\n if (place.formatted_phone_number) {\n innerHTML += '<br>' + place.formatted_phone_number;\n }\n if (place.opening_hours) {\n innerHTML += '<br><br><strong>Hours:</strong><br>' +\n place.opening_hours.weekday_text[0] + '<br>' +\n place.opening_hours.weekday_text[1] + '<br>' +\n place.opening_hours.weekday_text[2] + '<br>' +\n place.opening_hours.weekday_text[3] + '<br>' +\n place.opening_hours.weekday_text[4] + '<br>' +\n place.opening_hours.weekday_text[5] + '<br>' +\n place.opening_hours.weekday_text[6];\n }\n if (place.photos) {\n innerHTML += '<br><br><img src=\"' + place.photos[0].getUrl({\n maxHeight: 100,\n maxWidth: 200\n }) + '\">';\n }\n innerHTML += '</div>';\n infowindow.setContent(innerHTML);\n infowindow.open(map, marker);\n // Make sure the marker property is cleared if the infowindow is closed.\n infowindow.addListener('closeclick', function() {\n infowindow.marker = null;\n });\n }\n });\n\n }", "function callgeocodeAPI(queryURL) {\n $.ajax({\n url: queryURL,\n method: \"GET\",\n }).then(function (gecodeoResp) {\n var resCityObj = gecodeoResp.results[0].address_components.find(obj => obj.types.includes('locality'));\n var resStateObj = gecodeoResp.results[0].address_components.find(obj => obj.types.includes('administrative_area_level_1'));\n console.log(resStateObj, resCityObj);\n if (resCityObj === undefined && resStateObj === undefined) {\n $('#eModalBody').text('Invalid City/State/Zip, Please retry with a valid location!');\n $(\"#eModalCenter\").modal();\n } else if (resCityObj === undefined) {\n window.location.href = \"/find/\" + resStateObj.short_name;\n } else {\n window.location.href = \"/find/\" + resStateObj.short_name + \"/\" + resCityObj.short_name;\n }\n });\n }", "function getRestrooms(lat,lng){\n\tvar url = \"http://fortytonone.herokuapp.com/search_bathrooms.json?\";\n\turl += \"lat=\"+lat+\"&\";\n\turl += \"long=\"+lng;\n\t$.get(url, function (response) {\n\t\t// hide the loading icon\n\t\t$('#loading').hide();\n\t\t// Make the initial map\n \t\tmakeMap(lat,lng); \t\t\n\n \t\t// Send each address to be geocoded. \n for (var i in response.bathrooms){\n \tconsole.log(response.bathrooms[i].name);\n \t/*\n \t sending the name to the geoCode func too, so that it's available in the callback \n \t \t-- there must be a more sensible way!\n \t*/\n \tgeoCodeAddress(response.bathrooms[i].location,response.bathrooms[i].name,function(posObj){ \n \t\t//console.log(posObj);\n \t\t// set up markers\n \t\tvar myLatlng = new google.maps.LatLng(posObj.la,posObj.lo);\n\t \tvar marker = new google.maps.Marker({\n\t\t\t\t\tmap: map,\n\t\t\t\t\tposition: myLatlng,\n\t\t\t\t\tinfowindow_content: posObj.location_name // custom property to set name of marker\n\t\t\t\t});\n\t\t\t\t// set up info windows\n\t\t\t\tgoogle.maps.event.addListener(marker, 'click', function(){\n\t\t \t\t\tinfowindow.setContent(this.infowindow_content);\n\t\t \t\t\tinfowindow.open(map, this);\n\t\t \t\t});\t\n\t });\t\n } \n\t});\t\n}", "function getRestaurant() {\n //static variables for now, but function will be written to accept city lat and long and then plug into the api call \n let city = \"Seattle\";\n let zomatoLat = \"&lat=\"+lat;\n let zomatoLong =\"$lon=\"+long;\n\n let queryURL = \"https://developers.zomato.com/api/v2.1/search?entity_id=\" + city + \"&entity_type=city&count=5&lon=-&sort=rating&order=asc\";\n \n $.ajax({\n url: queryURL,\n headers: {\n 'user-key' : \"88f5d4148f949c26ab2353fcf1db3a21\"\n },\n method: 'GET'\n }).then(function(response) {\n console.log(response)\n \n for (i = 0; i <= 5; i ++){\n console.log(response.restaurants[i].restaurant.name)\n }\n }\n )\n\n}", "async function getInformation(ip) {\n var urlForInformation = url + ip + \"?access_key=74ce8e19f02f4125d2d29f45482d18e9\";\n const response = await axios.get(urlForInformation);\n if(response.type === null){\n throw new Error('Unable to find location. Try another search.');\n } \n else {\n return response.data\n }\n}", "function getPlaces(req, res) {\n // console.log(req.url);\n\n\n\n // Search for media posted in the last 2 days within 5000 meters\n // of the given location\n var lat = parseFloat(req.params.lat);\n var lng = parseFloat(req.params.lng);\n var category = req.params.category;\n\n var km = 0.00898311175;\n var minlon_close = lng - 2 * km; // 2 km\n var maxlon_close = lng + 2 * km;\n var minlat_close = lat - 2 * km; // .00004 = about 2 m\n var maxlat_close = lat + 2 * km;\n var minlon = lng - 4 * km; // 4 km\n var maxlon = lng + 4 * km;\n var minlat = lat - 4 * km; // .00004 = about 4 m\n var maxlat = lat + 4 * km;\n\n // Query for locations within this range already in the db.\n console.log(\"http://\" + dbIP + dbPort + \"/gaiadb/filter/box?minlon=\" + minlon\n + \"&maxlon=\" + maxlon + \"&minlat=\" + minlat + \"&maxlat=\" + maxlat\n + \"&category=\" + category);\n request({\n url: \"http://\" + dbIP + dbPort + \"/gaiadb/filter/box?minlon=\" + minlon_close\n + \"&maxlon=\" + maxlon_close + \"&minlat=\" + minlat_close + \"&maxlat=\" + maxlat_close\n + \"&category=\" + category,\n }, function(err, dbResult, body) {\n if (err) {\n console.log(\"Got error: \" + err);\n getPlacesFromServices();\n return;\n } else {\n // console.log(dbResult);\n var body = JSON.parse(dbResult.body);\n if (body.length) {\n console.log(\"found data.\");\n request({\n url: \"http://\" + dbIP + dbPort + \"/gaiadb/filter/box?minlon=\" + minlon\n + \"&maxlon=\" + maxlon + \"&minlat=\" + minlat + \"&maxlat=\" + maxlat\n + \"&category=\" + category,\n }, function(err, dbResult, body) {\n if (err) {\n console.log(\"Got error: \" + err);\n getPlacesFromServices();\n return;\n } else {\n res.json(JSON.parse(body));\n }\n });\n } else {\n console.log(\"didn't find data. searching.\");\n getPlacesFromServices();\n }\n }\n });\n\n function getPlacesFromServices() {\n // console.log(\"NEW REQUEST -------\");\n var json_out = [];\n var num_services = 3;\n\n // Request to get Instagram locations (from Facebook places) given certain options.\n var searchOptions = {\n q: category,\n type: \"place\",\n center: lat + \",\" + lng,\n distance: \"4000\"\n };\n console.log(\"searching with \" + lat + \", \" + lng);\n function getIGPlacesFromFBPlaces(err, fb_res) {\n if (err) {\n console.log(\"getIGfromFB err\");\n console.log(err);\n num_services = finishIfAllDoneLoc(num_services, res, []);\n console.log(\"num is \" + num_services + \" in getIFfromFB err\");\n return;\n }\n // console.log(fb_res);\n\n if(fb_res && fb_res.paging && fb_res.paging.next) {\n num_services++;\n graph.get(fb_res.paging.next, getIGPlacesFromFBPlaces);\n }\n // console.log(err);\n // console.log(fb_res['data']);\n if (fb_res && fb_res['data'] && fb_res['data'].length) {\n var fb_places_remaining = fb_res['data'].length;\n var ig_json = [];\n if (!fb_res['data'].length && !fb_res['paging']) {\n // console.log(fb_res);\n num_services = finishIfAllDoneLoc(num_services, res, []);\n console.log(\"num is \" + num_services + \" in getIGfromFB empty no paging\");\n return;\n } else {\n for (var j in fb_res['data']) {\n // console.log(\"in fbdata loop\");\n var thisFBPlace = fb_res['data'][j];\n // console.log(thisFBPlace);\n // Search for IG locations based on this FB place.\n ig.location_search({\"facebook_places_id\": thisFBPlace.id},\n function(err, locationsResult, remaining, limit) {\n if (err) {\n console.log(\"igLocSearch err\");\n console.log(err);\n res.send(err);\n } else {\n if (locationsResult.length > 0) {\n var ig_places_remaining = locationsResult.length;\n for (var i in locationsResult) {\n var thisIGPlace = locationsResult[i];\n\n /////////////////////\n var ig_place_id = thisIGPlace.id;\n\n // This location, to send to the client & db\n var location = {\n longitude: thisIGPlace.longitude,\n latitude: thisIGPlace.latitude,\n // coordinates: [thisIGPlace.longitude, thisIGPlace.latitude],\n title: thisIGPlace.name,\n // location_id: ig_place_id,\n source: \"instagram\",\n category: [category]\n };\n\n if (thisFBPlace.category_list) {\n var fbCategoryNames =\n thisFBPlace.category_list.map(function(obj) {\n return obj.name;\n });\n location.category = location.category.concat(fbCategoryNames);\n }\n\n ig.location_media_recent(ig_place_id,\n function(err, ig_media_res, pagination, remaining, limit) {\n if (!err && ig_media_res && ig_media_res.length) {\n var posts = [];\n for (var j in ig_media_res) {\n var thisRes = ig_media_res[j];\n if (thisRes.location) {\n // console.log(thisRes);\n var post = {\n location_id: thisRes.location.id,\n post_id: thisRes.id,\n text: (thisRes.caption ? thisRes.caption.text : \"\"),\n image_url: thisRes.images.standard_resolution.url,\n link: thisRes.link,\n num_likes: thisRes.likes.count,\n date: (new Date(thisRes.created_time * 1000)).toString()\n };\n posts.push(post);\n }\n }\n location.media = posts;\n ig_json.push(location);\n }\n --ig_places_remaining;\n if (ig_places_remaining <= 0) {\n // If this is now 0, we've finished all the requests.\n --fb_places_remaining;\n if (fb_places_remaining <= 0) {\n // Append ig_json to json_out\n json_out = json_out.concat(ig_json);\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in igLocSearch\");\n return;\n }\n }\n });\n\n /////////////////////\n }\n } else {\n // If this is now 0, we've finished all the requests.\n --fb_places_remaining;\n if (fb_places_remaining <= 0) {\n // console.log(num_services);\n // Append ig_json to json_out\n json_out.concat(ig_json);\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in igLocSearch\");\n return;\n }\n }\n }\n });\n }\n }\n } else {\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in getIGfromFB empty\");\n return;\n }\n }\n graph.search(searchOptions, getIGPlacesFromFBPlaces);\n \n // Insert code to get locations from other services here, in the same form\n // (but hopefully simpler because of FB/IG thing) as above. Increment num_services\n\n function getYelpPlaces(error, data) {\n if (error) {\n console.log(\"yelp error\");\n console.log(error);\n num_services = finishIfAllDoneLoc(num_services, res, []);\n console.log(\"num is \" + num_services + \" in getYelpPlaces err\");\n return;\n }\n // console.log(data);\n\n var yelp_remaining = data.businesses.length;\n if (yelp_remaining > 0) {\n for (var i in data.businesses) {\n var thisPlace = data.businesses[i];\n\n // console.log(thisPlace);\n if (thisPlace.location.coordinate) {\n // console.log(thisPlace);\n var location = {\n // coordinates: [body.results[0].geometry.location.lng,\n // body.results[0].geometry.location.lat],\n longitude: thisPlace.location.coordinate.longitude,\n latitude: thisPlace.location.coordinate.latitude,\n title: thisPlace.name,\n // location_id: thisPlace.id,\n source: \"yelp\",\n category: [category],\n media: [thisPlace]\n };\n\n if (thisPlace.categories) {\n var categoryNames =\n thisPlace.categories.map(function(obj) {\n return obj[1];\n });\n location.category = location.category.concat(categoryNames);\n }\n\n json_out.push(location);\n }\n // If this is now 0, we've finished all the requests.\n --yelp_remaining;\n if (yelp_remaining <= 0) {\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in getYelp business\");\n return;\n }\n // }); \n }\n } else {\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in getYelp empty\");\n return;\n }\n }\n yelp.search({term: category, ll: lat + \",\" + lng}, getYelpPlaces);\n\n\n var googleParams = {\n location: [lat, lng],\n radius: 4000,\n keyword: category,\n extensions: \"review_summary\"\n };\n function getGooglePlaces(error, response) {\n if (error) {\n console.log(\"google error\");\n console.log(error);\n num_services = finishIfAllDoneLoc(num_services, res, []);\n console.log(\"num is \" + num_services + \" in getGoogle err\");\n return;\n }\n\n var google_remaining = response.results.length;\n var google_json = [];\n if (google_remaining > 0) {\n for (var i in response.results) {\n var thisPlace = response.results[i];\n\n if (thisPlace.geometry && thisPlace.geometry.location) {\n var location = {\n // coordinates: [body.results[0].geometry.location.lng,\n // body.results[0].geometry.location.lat],\n longitude: thisPlace.geometry.location.lng,\n latitude: thisPlace.geometry.location.lat,\n title: thisPlace.name,\n // location_id: thisPlace.reference,\n source: \"google\",\n category: [category]\n };\n \n if (thisPlace.types) {\n location.category = location.category.concat(thisPlace.types);\n }\n // console.log(location);\n (function(location) {\n googlePlaces.placeDetailsRequest({reference: thisPlace.reference},\n function(error, response) {\n if (!error && response.result) {\n var post = response.result;\n location.media = [post];\n google_json.push(location);\n // console.log(location);\n }\n // If this is now 0, we've finished all the requests.\n --google_remaining;\n if (google_remaining <= 0) {\n json_out = json_out.concat(google_json);\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in getGoogle response\");\n }\n });})(location);\n\n } else {\n // If this is now 0, we've finished all the requests.\n --google_remaining;\n if (google_remaining <= 0) {\n json_out = json_out.concat(google_json);\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in getGoogle response\");\n return;\n }\n }\n \n }\n } else {\n num_services = finishIfAllDoneLoc(num_services, res, json_out);\n console.log(\"num is \" + num_services + \" in getGoogle empty\");\n return;\n }\n }\n googlePlaces.placeSearch(googleParams, getGooglePlaces);\n\n\n \n }\n\n // Takes in # of services, response object, and json_out\n function finishIfAllDoneLoc(num_services, res, json_out) {\n num_services--;\n // console.log(num_services);\n if (num_services == 0) {\n // res.json(json_out);\n\n // console.log(\"posting data: \\n\\n\" + JSON.stringify(json_out));\n\n // Send the found locations to the db\n // var testString = ' [ { \"longitude\": -122.313393, \"latitude\": 47.669872, \"title\": \"Herkimer Coffee\", \"category\": [ \"Coffee\", \"coffee\" ], \"media\": { \"yelp\": [ { \"is_claimed\": false, \"distance\": 1857.7573420339, \"mobile_url\": \"http:\\/\\/m.yelp.com\\/biz\\/herkimer-coffee-seattle-2\", \"rating_img_url\": \"http:\\/\\/s3-media4.fl.yelpcdn.com\\/assets\\/2\\/www\\/img\\/c2f3dd9799a5\\/ico\\/stars\\/v1\\/stars_4.png\", \"review_count\": 102, \"name\": \"Herkimer Coffee\", \"snippet_image_url\": \"http:\\/\\/s3-media3.fl.yelpcdn.com\\/photo\\/oxffqsJTLSKvRzcf_oi9Aw\\/ms.jpg\", \"rating\": 4, \"url\": \"http:\\/\\/www.yelp.com\\/biz\\/herkimer-coffee-seattle-2\", \"location\": { \"cross_streets\": \"56th St & N Cowen Pl\", \"city\": \"Seattle\", \"display_address\": [ \"5611 University Way NE\", \"University District\", \"Seattle, WA 98105\" ], \"geo_accuracy\": 8, \"neighborhoods\": [ \"University District\" ], \"postal_code\": \"98105\", \"country_code\": \"US\", \"address\": [ \"5611 University Way NE\" ], \"coordinate\": { \"latitude\": 47.669872, \"longitude\": -122.313393 }, \"state_code\": \"WA\" }, \"phone\": \"2065255070\", \"snippet_text\": \"Every Seattleite has a favorite coffee shop that is not Starbucks; this is mine. I spent a good portion of my summer here working on medical school...\", \"image_url\": \"http:\\/\\/s3-media2.fl.yelpcdn.com\\/bphoto\\/1GUl1HsFoiP8aO4EQY06HQ\\/ms.jpg\", \"categories\": [ [ \"Coffee & Tea\", \"coffee\" ] ], \"display_phone\": \"+1-206-525-5070\", \"rating_img_url_large\": \"http:\\/\\/s3-media2.fl.yelpcdn.com\\/assets\\/2\\/www\\/img\\/ccf2b76faa2c\\/ico\\/stars\\/v1\\/stars_large_4.png\", \"id\": \"herkimer-coffee-seattle-2\", \"is_closed\": false, \"rating_img_url_small\": \"http:\\/\\/s3-media4.fl.yelpcdn.com\\/assets\\/2\\/www\\/img\\/f62a5be2f902\\/ico\\/stars\\/v1\\/stars_small_4.png\" } ] } },{ \"longitude\": -122.313159592, \"latitude\": 47.669815282, \"title\": \"Herkimer Coffee\", \"category\": [ \"Coffee\", \"Coffee Shop\" ], \"media\": { \"instagram\": [ { \"location_id\": 238300892, \"post_id\": \"939255055658275729_16040019\", \"text\": \"Jesse and Liz at #herkimercoffee. These two are hitchin up this summer. Were so happy to steal some small moments with them.\", \"image_url\": \"http:\\/\\/scontent.cdninstagram.com\\/hphotos-xfa1\\/t51.2885-15\\/e15\\/11055518_701739366601174_978749578_n.jpg\", \"link\": \"https:\\/\\/instagram.com\\/p\\/0I538qAFOR\\/\", \"num_likes\": 29, \"date\": \"Thu Mar 12 2015 12:19:09 GMT-0700 (PDT)\" }, { \"location_id\": 238300892, \"post_id\": \"939188184456032635_414724027\", \"text\": \"#sister #babe in #Seattle\", \"image_url\": \"http:\\/\\/scontent.cdninstagram.com\\/hphotos-xfa1\\/t51.2885-15\\/e15\\/11049353_1059442707405878_2063409850_n.jpg\", \"link\": \"https:\\/\\/instagram.com\\/p\\/0Iqq1_vvF7\\/\", \"num_likes\": 22, \"date\": \"Thu Mar 12 2015 10:06:17 GMT-0700 (PDT)\" } ] } }]';\n\n request.post({\n uri: \"http://\" + dbIP + dbPort + \"/gaiadb\",\n // uri: \"http://108.179.185.9:3000/itemstest\",\n headers: {'content-type': 'application/json'},\n body: JSON.stringify(json_out)\n // body: testString\n }, function(err, result, body){\n // console.log(\"db result from http://\" + dbIP + dbPort + \"/gaiadb:\");\n // console.log(result);\n // console.log(\"db body:\");\n // console.log(body);\n /*\n if (err) {\n console.log(\"db result error:\");\n console.log(err);\n } else {\n var body_json = JSON.parse(body);\n if (!body_json.error) {\n // console.log(\"sending body_json\");\n res.json(body_json);\n } else {\n // console.log(\"sending empty\");\n res.json([]);\n }\n }*/\n\n // Query for locations within this range already in the db.\n console.log(\"http://\" + dbIP + dbPort + \"/gaiadb/filter/box?minlon=\" + minlon\n + \"&maxlon=\" + maxlon + \"&minlat=\" + minlat + \"&maxlat=\" + maxlat\n + \"&category=\" + category);\n request({\n url: \"http://\" + dbIP + dbPort + \"/gaiadb/filter/box?minlon=\" + minlon\n + \"&maxlon=\" + maxlon + \"&minlat=\" + minlat + \"&maxlat=\" + maxlat\n + \"&category=\" + category,\n }, function(err, dbResult, body) {\n if (err || !body || !body.length) {\n // console.log(\"Got error: \" + err);\n res.json([]);\n } else {\n // console.log(dbResult);\n // var body = JSON.parse(dbResult.body);\n // if (body.length) {\n // console.log(\"found data.\");\n console.log(body);\n res.json(JSON.parse(body));\n // return;\n // } else {\n // console.log(\"didn't find data. searching.\");\n // getPlacesFromServices();\n // }\n }\n });\n });\n }\n return num_services;\n }\n}", "function findWeatherDetails() {\n let searchLink =\n \"https://api.openweathermap.org/data/2.5/weather?q=copenhagen&appid=\" +\n appKey;\n httpRequestAsync(searchLink, theResponse);\n}", "function getNearbyFoodbank() {\n let url = \"https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=\"+state.userInfo.geoLocation.lat+\",\"+state.userInfo.geoLocation.lng+\"&radius=\"+(state.userInfo.radius*1609.344)+\"&keyword=foodbank&key=AIzaSyA3-dO5SwXlolulr_KzS2rxXU2IUas_YjE\"\n return fetch(url)\n .then(function(response) {\n return response.json();\n })\n .then(function(myJson) {\n myJson.results.forEach(element => {\n let url = \"https://maps.googleapis.com/maps/api/place/details/json?placeid=\" + element.place_id + \"&fields=opening_hours,formatted_phone_number&key=AIzaSyA3-dO5SwXlolulr_KzS2rxXU2IUas_YjE\";\n let hours, phone = \"\";\n return fetch(url)\n .then(function(response) {\n return response.json();\n })\n .then(function(myJson) {\n try {\n hours = myJson.result.opening_hours.weekday_text;\n } catch(exception) {\n hours = \"\";\n }\n phone = myJson.result.formatted_phone_number;\n }).then(function() {\n state.foodbankList.push({'name':element.name, 'lat':element.geometry.location.lat, 'lng':element.geometry.location.lng, 'place_id':element.place_id, 'address':element.vicinity\n , 'hours':hours, 'phone':phone});\n addMarker();\n });\n });\n });\n}", "function fetchGov(){\n let url = \"https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyBRzIkLqS59M_6neW0HHrGfv_eFdrJqK2E\"\n fetch(url, {\n method: 'POST',\n // mode: 'no-cors'\n })\n .then(response => response.json())\n .then(data => console.log({lat: data.location.lat, lng: data.location.lng}));\n}", "function callback(position){\n console.log(position);\n var latitude = position.coords.latitude;\n var longitude = position.coords.longitude;\n var key = \"AIzaSyDc_-wjPpy3v8eNcUdRuOva8hDaI4JzPY8\";\n var path = \"https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=\"+ latitude +\",\"+ longitude +\"&radius=500&types=food&key=\" + key;\n console.log(path);\n getResults(path);\n}", "function getPlaceDetails(map, restaurantChoice){\n const request = {\n placeId: restaurantChoice.place_id,\n fields: [\"name\", \"formatted_address\", \"formatted_phone_number\", \"place_id\", \"geometry\", \"opening_hours\", \"website\", \"icon\", \"rating\"]\n };\n const infowindow = new google.maps.InfoWindow();\n const service = new google.maps.places.PlacesService(map);\n\n document.getElementById(\"result-restaurant\").style.visibility = 'hidden';\n document.getElementById(\"address\").innerHTML = \"\";\n document.getElementById(\"phone\").innerHTML = \"\";\n document.getElementById(\"website\").innerHTML = \"\";\n document.getElementById(\"rating\").innerHTML = \"\";\n\n service.getDetails(request, (place, status) => {\n if (status === google.maps.places.PlacesServiceStatus.OK) {\n const marker = new google.maps.Marker({\n map,\n position: place.geometry.location\n });\n choiceMarkers.push(marker);\n\n console.log(\"place \" + place.name);\n if (place.name) {\n document.getElementById(\"result-restaurant\").style.visibility = 'visible';\n \n document.getElementById(\"places\").innerHTML = place.name;\n if(place.formatted_phone_number) {\n document.getElementById(\"address\").innerHTML = '<i class=\"lni lni-restaurant\"></i> Address : ' + place.formatted_address;\n } else {\n document.getElementById(\"address\").innerHTML = \"\";\n }\n if(place.formatted_phone_number) {\n document.getElementById(\"phone\").innerHTML = '<i class=\"lni lni-phone\"></i> Phone : ' + place.formatted_phone_number;\n } else {\n document.getElementById(\"phone\").innerHTML = \"\";\n }\n if (place.website) {\n if (place.website.length > 80) {\n document.getElementById(\"website\").innerHTML = 'Website : <a href=\"' + place.website.substring(0, 80) + '\">Click here!</a>';\n } else {\n document.getElementById(\"website\").innerHTML = 'Website : <a href=\"' + place.website + '\">Click here!</a>';\n }\n } else {\n document.getElementById(\"website\").innerHTML = \"\";\n }\n if (place.rating) {\n // <i class=\"lni lni-star\"></i>\n document.getElementById(\"rating\").innerHTML = '<i class=\"lni lni-star\"></i> Rating : ' + place.rating;\n } else {\n document.getElementById(\"rating\").innerHTML = \"\";\n }\n } else {\n console.log(\"No Restaurant found\")\n document.getElementById(\"places\").innerHTML = \"Oops! You're too picky, please try another search (choose another location, widen the radius, or change your filters)!\";\n document.getElementById(\"address\").innerHTML = \"\";\n document.getElementById(\"phone\").innerHTML = \"\";\n document.getElementById(\"website\").innerHTML = \"\";\n document.getElementById(\"rating\").innerHTML = \"\";\n }\n google.maps.event.addListener(marker, \"click\", function() {\n infowindow.setContent(\n \"<div><strong>\" +\n place.name +\n \"</strong><br>\" +\n place.formatted_address +\n \"</div>\"\n );\n infowindow.open(map, this);\n });//eventListener\n\n }//if OK\n });\n}//getPlaceDetails", "function getPlace(id) {\n detailsService.getDetails({\n placeId: id\n }, callback)\n\n // callback is the object returned from google containing the place information\n function callback(place) {\n loadDetails(place);\n moveMap(place.geometry.location)\n }\n}", "function getZomatoCityId(place_name, newLat, newLng){\n var zomatoUrl = \"https://developers.zomato.com/api/v2.1/\" +\n \"cities?q=\";\n $.ajax({\n type: 'GET',\n url: corsAnywhereUrl + zomatoUrl + place_name +\n \"&lat=\" + newLat + \"&lon=\" + newLng + \"&count=1\",\n headers: {'user_key': '26ce1af09de13709ce7601f27ae5e14d'},\n }).done(function(response){\n if(response.location_suggestions.length > 0){\n var id = response.location_suggestions[0].id;\n place_id = id;\n }\n else{\n\n window.alert(\"Sorry Zomato cannot find the place_id\");\n return;\n }\n getZomatoRestaurants(place_id);\n }).fail(function(){\n window.alert(\"error getting place id\");\n });\n }", "function getAllRestaurants(start){\n var zomatoUrl = \"https://developers.zomato.com/api/v2.1/\" +\n \"search?entity_id=\" +\n place_id + \"&entity_type=city&start=\" +\n start + \"&cuisines=148\";\n $.ajax({\n type: 'GET',\n url: corsAnywhereUrl + zomatoUrl,\n headers: {'user_key': '26ce1af09de13709ce7601f27ae5e14d'},\n }).done(function(response){\n showRestaurants(response);\n }).fail(function(){\n window.alert(\"error getting restaurants\");\n });\n }", "function getCity(name) {\n let uri = 'https://nominatim.openstreetmap.org/search?city='+name+'&format=json';\n $.getJSON(uri, function(data){\n if(data.length > 0) {\n map.setView([data[0]['lat'], data[0]['lon']]);\n getEvents();\n }\n });\n}", "function initMap() {\n // stick a Google map onto the page\n map = new google.maps.Map(document.getElementById(\"map\"), {\n center: {\n lat: 38.537 ,\n lng: -121.754\n },\n zoom: 16\n });\n \n // we plan to use the places service on this map\n let service = new google.maps.places.PlacesService(map);\n\n // get clicks on the map\n map.addListener('click', function(mapsMouseEvent) {\n let clickPt = mapsMouseEvent.latLng;\n // longitude and latitude\n console.log(\"Click at\",clickPt.lat(), clickPt.lng())\n \n // set up CORS request to places API\n // gets everything within the radius\n let request = {\n location: clickPt,\n radius: 30 // meters\n };\n \n // do API CORS request to Google to return places near click\n service.nearbySearch(request, placesCallback); \n }); // end of initMap\n \n // called when places are returned\n function placesCallback(results, status){\n console.log(\"placesCallback\", status);\n for (let i=0; i<results.length; i++) {\n console.log(results[i].name, results[i].types);\n }\n \n document.getElementById(\"location\").value = results[0].name;\n }\n}", "function placeSearch(latitude, longitude, radius) {\n //Uncomment if using Google API\n // let link = '/maps/api/place/nearbysearch/json?location=' + latitude + ',' + longitude + '&radius=' + radius + '&type=' + searchTag +'&key=' + gapikey;\n // https.request({\n // host: 'maps.googleapis.com',\n // path: link,\n // method: 'GET'},\n // PlaceResponse).end();\n\n // Mapquest API\n let path_name = '/search/v2/radius?key=' + qapikey +'&maxMatches=4&origin=' + latitude + ',' + longitude + '&hostedData=mqap.ntpois|name LIKE ?|%'+ searchTag + '%';\n https.request({\n host: 'www.mapquestapi.com',\n path: encodeURI(path_name),\n method: 'GET'},\n PlaceResponse).end();\n }", "async function getBusLocations(){\r\n\tconst url = 'https://api-v3.mbta.com/vehicles?filter[route]=8&include=trip';\r\n\tconst response = await fetch(url);\r\n\tconst json = await response.json();\r\n\treturn json.data;\r\n}", "function findLocation(query, callback) {\n $.ajax('http://nominatim.openstreetmap.org/search', {\n data: { format: 'json', q: query }, \n dataType: 'json'\n }).success(function(data) {\n callback(data.map(function(item) { \n return { \n latlng: [item.lat, item.lon], \n name: item.display_name \n }; \n }));\n });\n }", "getRestaurantDetails() {\n let url =\n constants.BASE_URL +\n constants.END_POINTS.GET_RESTATRUANT_DETAILS +\n \"?lat=\" +\n this.state.lat +\n \"&lon=\" +\n this.state.lng;\n axios.get(url).then((res) => {\n if (\n res &&\n res.status === 200 &&\n res.data &&\n res.data.nearby_restaurants &&\n res.data.nearby_restaurants.length\n ) {\n let listOfRestaurant = res.data.nearby_restaurants;\n this.getRequiredRestaurant(listOfRestaurant);\n }\n });\n }", "function getRegions() {\n var xmlHttp = new XMLHttpRequest();\n xmlHttp.onreadystatechange = function() {\n if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {\n response = JSON.parse(xmlHttp.response);\n if (response.result == 'success') {\n region_info = response.regions;\n } else {\n region_info = {}\n }\n getHabitats();\n }\n }\n xmlHttp.open(\"GET\", \"http://student04.cse.nd.edu:51042/region/\", true);\n xmlHttp.send(null);\n }", "function get(type, pos) {\n var url = 'https://localhost:4040/api/' + type + '?lat=' + pos.coords.latitude + '&lon=' + pos.coords.longitude;\n\n return new Promise(function(resolve, reject) {\n var req = new XMLHttpRequest();\n req.open('GET', url, true);\n req.responseType = 'json';\n req.onload = function() {\n if (req.readyState === 4 && req.status === 200) {\n resolve(req.response);\n } else {\n reject({\n status: this.status,\n statusText: req.statusText\n })\n }\n };\n\n req.onerror = function() {\n reject({\n status: this.status,\n statusText: req.statusText\n })\n }\n\n req.send(null);\n\n })\n }", "function yourLocationWeather( latitude, longitude ) {\n console.log(\"latitude\" + latitude)\n console.log(\"longitude \" + longitude)\n var queryURL = `https://api.opencagedata.com/geocode/v1/json?q=${latitude}+${longitude}&key=3620c85faf154e74a7e16400eae1d31e`;\n \n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\n fetchCityWeather(response.results[0].components.town)\n })\n}", "function dynamicLoadPlaces(position) {\n let params = {\n radius: 300, // search places not farther than this value (in meters)\n clientId: 'FKBJU1DV15K3RC1IZZC13MPECNSFKNYFVHN3IX521GVJXTX4',\n clientSecret: 'HDSCXQWOTR3XOVACJACSSPNJIR2KJSVG3TJOR0A0KFR2NUAX',\n version: '20300101', // foursquare versioning, required but unuseful for this demo\n };\n\n // CORS Proxy to avoid CORS problems\n let corsProxy = 'https://cors-anywhere.herokuapp.com/';\n\n // Foursquare API\n let endpoint = `${corsProxy}https://api.foursquare.com/v2/venues/search?intent=checkin\n &ll=${position.latitude},${position.longitude}\n &radius=${params.radius}\n &client_id=${params.clientId}\n &client_secret=${params.clientSecret}\n &limit=15\n &v=${params.version}`;\n return fetch(endpoint)\n .then((res) => {\n return res.json()\n .then((resp) => {\n return resp.response.venues;\n })\n })\n .catch((err) => {\n console.error('Error with places API', err);\n })\n}", "async function fetchCity(city) {\n\n const res = await fetch(`https://geocode.xyz/${city}?json=1`);\n const data = await res.json();\n console.log(`Place Name: ${city} Longiture: ${data.longt} Latitude: ${data.latt}`);\n\n}", "function placesCallback(results, status){\n console.log(\"placesCallback\", status);\n for (let i=0; i<results.length; i++) {\n console.log(results[i].name, results[i].types);\n }\n \n document.getElementById(\"location\").value = results[0].name;\n }", "function getLocationName(lat, long) {\n \n var geoApi = '9aebdd2fd11041c9bfe5604e053cf484'; // my OpenCage Geocoder API key\n \n var geocodeUrl = 'http://api.opencagedata.com/geocode/v1/json?q=' + lat + '+' + long + '&key=' + geoApi;\n \n $.getJSON(geocodeUrl, function(locationData) {\n // get the location string - only suburb\n var locationString = locationData.results[0].components.suburb;\n // append to HTML\n var location = $('<h2>').html(locationString);\n $('#location').append(location); \n });\n}", "function get_places(lat = false, lng = false) {\n clearMarkers();\n var params = null;\n if (lat & lng) {\n params = {\n 'lat': lat,\n 'lng': lng\n }\n }\n $.get(\"/places/places_json\", params, function (data) {\n if (!data.status) {\n return;\n }\n\n var cagaderos = data.response;\n\n for (var i = 0; i < cagaderos.length; i++) {\n addMarker(cagaderos[i]);\n }\n\n });\n\n setTimeout(function () {\n $('.row-item').click(function () {\n var row = $(this);\n $('.row-item').removeClass('activo');\n setCenter(row.attr('lat'), row.attr('lng'), 13);\n row.addClass('activo');\n });\n }, 1000);\n}", "function getloc()\n{\n\n\tvar latlng = new google.maps.LatLng(shuttle.position.latitude, shuttle.position.longitude);\n geocoder.geocode({ latLng: latlng }, function(results, status){\n\t\tfor(ac in results[0].address_components)\n\t\t{\n\t\t\t//console.log(results[0].address_components[ac].types);\n\t\t\tif(results[0].address_components[ac].types == \"route\")\n\t\t\t{\n\t\t\t\t$(\"#currentstreet\").html(\"Street name: \" + results[0].address_components[ac].long_name);\n\t\t\t}\n\t\t}\n });\n\n\n}", "function PlaceSearch(point, callback) {\n Places.search({\n location: point,\n types: Types,\n radius: 500\n },\n function(err,res) {\n if(err) {\n console.log(err);\n }\n else {\n callback(res);\n }\n });\n}", "function runQueryPlaces(queryURL) {\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (res) {\n $(\"#display-places\").show();\n var venues = res.response.groups[0].items;\n for (var i = 0; i < venues.length; i++) {\n var name = venues[i].venue.name;\n var venueID = venues[i].venue.id;\n var category = venues[i].venue.categories[0].name;\n console.log(venues[i].venue.name);\n console.log(venueID);\n var newPlaceDiv = $(\"<div>\");\n newPlaceDiv.attr(\"id\", \"#firstVenue\");\n var newPlaceLink = $(\"<a>\");\n newPlaceLink.addClass(\"place venue-image waves-effect waves-light btn deep-purple darken-4\");\n newPlaceLink.css(\"display\", \"block\");\n newPlaceLink.attr(\"title\", \"Click search this place on Google!\");\n newPlaceLink.attr(\"target\", \"_blank\");\n newPlaceLink.attr(\"data-name\", name);\n newPlaceLink.attr(\"data-id\", venueID);\n newPlaceLink.attr(\n \"href\",\n `https://www.google.com/search?source=hp&ei=IECZXL2eN43J0PEPk9KM6Ak&q=${name}`\n );\n newPlaceLink.text(`${name} - ${category}`);\n newPlaceDiv.append(newPlaceLink);\n $('#places').append(newPlaceDiv);\n };\n });\n }", "function gbDidSuccessGetLocation ( lat, long )\n{\n\tvar api_url = \"http://api.wunderground.com/api/\" + APIKEY + \"/conditions/q/\" + lat + \",\" + long + \".json\";\n\tgbRequest ( api_url, '1', 'YES' );\n}", "function getStationInfo() {\n return fetch('https://gbfs.citibikenyc.com/gbfs/en/station_information.json').then(res => res.json());\n // const res = fetch('https://gbfs.citibikenyc.com/gbfs/en/station_information.json');\n // return res.json();\n}", "function getWeather( lat, lng ) {\n $.ajax({\n dataType: \"jsonp\",\n url: \"https://api.forecast.io/forecast/47a948d362300db9b8856629bd4700ac/\"\n + encodeURIComponent( lat + \",\" + lng ),\n success: function( data ) {\n console.log( data );\n displayWeather( data );\n }\n });\n}", "async function getBusLocations(){\n const url = 'https://api-v3.mbta.com/vehicles';\n const response = await fetch(url);\n const json = await response.json();\n return json.data;\n}", "async getAddressCoord(){\n \n let url = new URL('https://api.tomtom.com/search/2/geocode/.json')\n url.search = new URLSearchParams({\n query: this.searchAddress,\n key: 'HgVrAuAcCtAcxTpt0Vt2SyvAcoFKqF4Z',\n versionNumber: '2',\n limit: '1'\n })\n \n const response = await fetch(url);\n\n const data = await response.json();\n this.lat = data.results[0].position.lat;\n this.lon = data.results[0].position.lon;\n\n console.log(this.lat);\n }", "function request(lat, lon) {\n\tvar xmlhttp = new XMLHttpRequest();\n\tvar url = \"http://api.wunderground.com/api/e9bfe49efa7bf7a1/conditions/q/\" + lat + \",\" + lon + \".json\";\n\txmlhttp.open(\"GET\", url, true);\n\txmlhttp.onreadystatechange = function() {\n\t\tif (this.status == 200 && this.readyState == 4) {\n\t\t\tresponse = JSON.parse(this.responseText);\n\t\t\tupdateText(response);\n\t\t\tupdateTherm(response);\n\t\t}\n\t}\n\txmlhttp.send();\n}", "function getJobByLocation(lat, long, radius, categoryList, date, pageNo) {\n // alert(2);\n var deferred = $q.defer();\n var url = ENV.apiUrl + 'Jobs?lat=' + lat + '&lng=' + long + '&radius=' +\n radius + '&categoryList=' + categoryList +\n '&date=' + date + '&pageNo=' + pageNo + '&pageSize=5';\n //var url = \"http://localhost:53977/odata/AnimalTypes\";\n console.log(url);\n\n $http.get(url, { cache: false }).success(function(data) {\n deferred.resolve(data);\n\n }).error(function(err) {\n deferred.reject();\n\n CommonServices.showAlert(JSON.stringify(err));\n //CommonServices.showError(MessageService.networkErrorMessage);\n });\n return deferred.promise;\n }", "function getFoodSpots() {\n userRadius = $('#inputRadius').val().trim();\n meters = parseInt(userRadius * 1609.344);\n var zBaseURL = \"https://developers.zomato.com/api/v2.1/search?\"\n var APIKey = \"&apikey=2acf625e70fd25f7205fda31a0f6cb15\";\n var queryURL = \"https://developers.zomato.com/api/v2.1/search?\" + \"lat=\" + userLat + \"&lon=\" + userLng + \"&\" + \"radius=\" + meters + \"&order=asc\" + \"&sort=rating\" + APIKey;\n\n\n $.ajax({\n url: queryURL,\n method: \"GET\"\n }).then(function (response) {\n results = response.restaurants;\n\n });\n\n }" ]
[ "0.72375524", "0.69392", "0.6839881", "0.66801876", "0.6667709", "0.6655008", "0.66491616", "0.664312", "0.6636522", "0.6541243", "0.64995754", "0.6483924", "0.6477088", "0.64559746", "0.6429483", "0.64237016", "0.64232045", "0.6398689", "0.63774294", "0.63665754", "0.63622737", "0.6323403", "0.6320893", "0.6303055", "0.6298313", "0.62704194", "0.62593114", "0.62579256", "0.62469757", "0.62446237", "0.62429506", "0.6242915", "0.62378716", "0.62351626", "0.6234648", "0.62332714", "0.6223503", "0.62190473", "0.62190473", "0.6216835", "0.6164177", "0.61552626", "0.61367255", "0.6118574", "0.6118516", "0.6113121", "0.6112744", "0.61067367", "0.61046726", "0.60898995", "0.60863656", "0.6081561", "0.60811883", "0.6079563", "0.607391", "0.60726994", "0.6063971", "0.6054354", "0.60434496", "0.6041266", "0.6039364", "0.60352343", "0.6021184", "0.60180056", "0.6013901", "0.60113454", "0.6011069", "0.60105044", "0.60052806", "0.5997864", "0.5992639", "0.59890014", "0.5988112", "0.59829384", "0.5978653", "0.5977282", "0.5976448", "0.5970688", "0.59700817", "0.59468836", "0.59454507", "0.5943361", "0.5943319", "0.593895", "0.59372896", "0.5936592", "0.59313565", "0.59310967", "0.5930473", "0.59284604", "0.59277457", "0.5925317", "0.5916954", "0.591253", "0.59108794", "0.5895822", "0.58954436", "0.58867973", "0.5885945", "0.58852506", "0.5883307" ]
0.0
-1
SAVE TOOLBOX SETTINGS //////////////////////////////////////////////////// Save the current configuration setup
function mqc_save_config(name, clear, as_default){ if(name === undefined){ return false; } var config = {}; // Collect the toolbox vars config['highlights_f_texts'] = window.mqc_highlight_f_texts; config['highlights_f_cols'] = window.mqc_highlight_f_cols; config['highlight_regex'] = window.mqc_highlight_regex_mode; config['rename_from_texts'] = window.mqc_rename_f_texts; config['rename_to_texts'] = window.mqc_rename_t_texts; config['rename_regex'] = window.mqc_rename_regex_mode; config['hidesamples_mode'] = window.mqc_hide_mode; config['hidesamples_f_texts'] = window.mqc_hide_f_texts; config['hidesamples_regex'] = window.mqc_hide_regex_mode; var prev_config = {}; // Load existing configs (inc. from other reports) try { try { prev_config = localStorage.getItem("mqc_config"); if(prev_config !== null && prev_config !== undefined){ prev_config = JSON.parse(prev_config); } else { prev_config = {}; } // Update config obj with current config if(clear == true){ delete prev_config[name]; } else { prev_config[name] = config; prev_config[name]['last_updated'] = Date(); if (as_default) { for (var c in prev_config) { if (prev_config.hasOwnProperty(c)) { prev_config[c]['default'] = false; } } } prev_config[name]['default'] = as_default; if (as_default) console.log('Set new default config!'); } localStorage.setItem("mqc_config", JSON.stringify(prev_config)); } catch(e){ console.log('Could not access localStorage'); } if(clear == true){ // Remove from load select box $("#mqc_loadconfig_form select option:contains('"+name+"')").remove(); // Successfully deleted message $('<p class="text-danger" id="mqc-cleared-success">Settings deleted.</p>').hide().insertBefore($('#mqc_loadconfig_form .actions')).slideDown(function(){ setTimeout(function(){ $('#mqc-cleared-success').slideUp(function(){ $(this).remove(); }); }, 5000); }); } else { // Remove from load select box $("#mqc_loadconfig_form select option:contains('"+name+"')").remove(); // Add new name to load select box and select it $('#mqc_loadconfig_form select').prepend('<option>'+name+(as_default?' [default]':'')+'</option>').val(name+(as_default?' [default]':'')); // Success message $('<p class="text-success" id="mqc-save-success">Settings saved.</p>').hide().insertBefore($('#mqc_saveconfig_form')).slideDown(function(){ setTimeout(function(){ $('#mqc-save-success').slideUp(function(){ $(this).remove(); }); }, 5000); }); } } catch(e){ console.log('Error updating localstorage: '+e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function saveSettings() {\n // debug('Saved');\n localStorage.setItem('autoTrimpSettings', JSON.stringify(autoTrimpSettings));\n}", "function saveSettings(){\n\n showMenu();\n\n for (key in settingTmp){\n if (settingTmp.hasOwnProperty(key)){\n setting[key] = settingTmp[key];\n }\n }\n\n PopupModule.hide();\n }", "function saveSettings() {\n fs.writeFileSync(SETTINGS_FILE, settings, SETTINGS_TYPE);\n}", "function saveSettings(){\n\t\tvar checkboxes = document.querySelectorAll('.accordion-header input[type=\"checkbox\"]');\n\t\tvar toSave = {};\n\t\t[].forEach.call(checkboxes,\tfunction (el) {\n\t\t\tvar id = el.parentNode.id;\n\t\t\tvar checked = el.checked;\n\t\t\ttoSave[id] = checked;\n\t\t});\n\t\t// console.log(\"Saving block preferences\", toSave);\n\t\tlocalStorage['__' + language + '_hidden_blocks'] = JSON.stringify(toSave);\n\t}", "function saveSettings() {\n\tvar settings = {\n\t\tbuttons: _appInfo.buttons,\n\t\tlabels: _appInfo.labels\n\t};\n\tHomey.api('POST', '/save-settings/', settings, function(err, result){\n\t\tif (err) console.log('Error during saving of your settings. Please try again.');\n\t});\n}", "function saveExtSettings() {\n var settings = {\n \"showFoldersInList\": showFoldersInList,\n \"showSortDataInList\": showSortDataInList,\n \"numberOfFiles\": numberOfFiles,\n \"zoomFactor\": zoomFactor,\n \"orderBy\": orderBy\n };\n localStorage.setItem('perpectiveGridSettings', JSON.stringify(settings));\n }", "saveSettings() {\n if (this.hasLoadedIntoDOM) {\n this.updateSettings();\n }\n this.closeSettings();\n }", "function saveSettings() {\n localStorage.setItem(\"emailToggle\", emailToggleButton.checked);\n localStorage.setItem(\"privacyToggle\", privacyToggleButton.checked);\n localStorage.setItem(\"timezone\", select.value);\n}", "function saveConfig() {\n\tvar data = JSON.stringify(editor.getValue());\n\t$.ajax({\n\t\turl: serverURL + \"config\",\n\t\tmethod: 'POST',\n\t\tcontentType: \"application/json; charset=utf-8\",\n\t\tdataType: 'json',\n\t\txhrFields: {\n\t\t\twithCredentials: true\n\t\t},\n\t\tdata: data,\n\t\tsuccess: function () {\n\t\t\t$(\"#successDialog\").dialog({\n\t\t\t\tmodal: true,\n\t\t\t\tdraggable: false,\n\t\t\t\tbuttons: {\n\t\t\t\t\tok: function () {\n\t\t\t\t\t\t$(this).dialog(\"close\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n}", "static save(settings) { window.localStorage.setItem('settings', JSON.stringify(settings)); }", "function saveSettingsValues() {\n browser.storage.local.set({delayBeforeClean: document.getElementById(\"delayBeforeCleanInput\").value});\n\n browser.storage.local.set({activeMode: document.getElementById(\"activeModeSwitch\").checked});\n\n browser.storage.local.set({statLoggingSetting: document.getElementById(\"statLoggingSwitch\").checked});\n\n browser.storage.local.set({showNumberOfCookiesInIconSetting: document.getElementById(\"showNumberOfCookiesInIconSwitch\").checked});\n\n browser.storage.local.set({notifyCookieCleanUpSetting: document.getElementById(\"notifyCookieCleanUpSwitch\").checked});\n\n browser.storage.local.set({contextualIdentitiesEnabledSetting: document.getElementById(\"contextualIdentitiesEnabledSwitch\").checked});\n\n page.onStartUp();\n}", "function SaveConfiguration() {\n var cookievalue = '';\n\n // get added wms layers\n var wmslayers = mapPanel.layers.queryBy(function (record, id) { return record.get(\"layer\").CLASS_NAME.indexOf(\"WMS\") > -1 && !record.get(\"layer\").isBaseLayer; });\n var count = wmslayers.getCount();\n if (count > 0) {\n cookievalue += 'wms,';\n for (i = 0; i < count; i++) {\n cookievalue += Ext.util.JSON.encode(wmslayers.itemAt(i).data); // werkt niet! Een layer blijkt te complex om te serializeren... (\"too much recursion\")\n if (i < count - 1) { cookievalue += ','; }\n }\n cookievalue += ';';\n }\n\n // TODO: get wmsSourcesStore?\n // TODO: get current zoom values?\n\n // save cookie\n Set_Cookie('mapconfig', cookievalue, '', '/', '', '');\n if (Get_Cookie('mapconfig')) {\n msg('Configuratie bewaren', 'Configuratie is bewaard.\\n\\n' + cookievalue);\n }\n else {\n msg('Configuratie bewaren', 'Configuratie is NIET bewaard.\\n\\nZijn cookies uitgeschakeld in uw browser?');\n }\n}", "function saveSettings() {\n\n\tconst pseudo = document.getElementById('pseudo').value,\n\n\t\tbsoundOn = document.getElementById('bsound_on').checked,\n\n\t\tfsoundOn = document.getElementById('fsound_on').checked,\n\n\t\tsaveScoreOn = document.getElementById('save-score-online-on').checked;\n\n\tsetCurrentPseudo(pseudo);\n\tsetBSoundState(bsoundOn);\n\tsetFSoundState(fsoundOn);\n\tsetSaveOnlineState(saveScoreOn);\n\n\tlet p = document.getElementById('info-setting');\n\n\tif(!p) {\n\t\tp = document.createElement('p');\n\t\tp.id = 'info-setting';\n\t}\n\tp.innerHTML = 'Settings saved successfuly !';\n\tdocument.getElementById('save-button').appendChild(p);\n\tsetTimeout(() => p.remove(), 5000);\n}", "function commitSettings() {\n console.log(\"Save settings: \"+JSON.stringify(settings));\n localStorage.settings = JSON.stringify(settings);\n}", "function saveSettings(){\n\t//Get the user settings\n\tgetSettings();\n\n\t//Create a variable with all user settings\n\tvar settings = {\n\t\tcountry: country,\n\t\tincludeOldResults: String(includeOldResults),\n\t\tsearchStrings: searchStrings,\n\t\tlocations: locations,\n\t\tradiuses: radiuses,\n\t}\n\n\t//Save the user settings to the local storage\n\tlocalStorage.setItem(\"settings\",JSON.stringify(settings));\n\n\tconsole.log(\"Settings saved\");\n\tconsole.log(JSON.stringify(settings));\n}", "function saveConfig() {\n console.info(\"Saving configuration\", synthea.configs);\n fs.writeFile(synthea.config_path,JSON.stringify(synthea.configs), function(err) {\n if (err) throw err;\n });\n}", "function storeSettings() {\n check();\n browser.storage.local.set(f2j(form));\n}", "function save() {\n require('Storage').writeJSON('qmsched.json', settings);\n}", "function saveSettings() {\r\n messenger.storage.local.set({\r\n MailFolderKeyNav: MailFolderKeyNavInput.checked,\r\n MailFolderKeyNavMenuItem: MailFolderKeyNavMenuItemInput.checked\r\n });\r\n}", "function saveOptions() {\n var dictionaries = JSON.parse(window.localStorage.getItem('dictionaries'));\n\n // Saves custom dictionries to local storage(if any).\n if (tempCusDictionaries.length > 0) {\n if (dictionaries) {\n dictionaries = dictionaries.concat(tempCusDictionaries);\n window.localStorage.setItem('dictionaries', JSON.stringify(dictionaries));\n } else {\n window.localStorage.setItem('dictionaries', JSON.stringify(tempCusDictionaries));\n }\n tempCusDictionaries.splice(0, tempCusDictionaries.length);\n }\n\n showUserMessages('save_status', 0.5, 'saveStatus');\n// $('save_button').disabled = true;\n}", "function saveSettings() {\n var settings = [];\n if (options.orderby != defaults.orderby) {\n settings.push('\"orderby\":\"' + options.orderby + '\"');\n }\n if (options.thsize != defaults.thsize) {\n settings.push('\"thsize\":\"' + options.thsize + '\"');\n }\n if (options.extended != defaults.extended) {\n settings.push('\"extended\":' + (options.extended ? 'true' : 'false'));\n }\n if (options.proxy != defaults.proxy) {\n settings.push('\"proxy\":' + (options.proxy ? 'true' : 'false'));\n }\n if (settings.length > 0) {\n settings = '{' + settings.join(',') + '}';\n $.cookie('4cat', settings, {\n expires: 30,\n path: options.cookiePath,\n domain: options.cookieDomain\n });\n }\n else {\n $.cookie('4cat', null, {\n path: options.cookiePath,\n domain: options.cookieDomain\n });\n }\n }", "function saveConfiguration() {\n\t\t\tupcApp.fancyMessage(upcApp.messages.wifiAdvConfigWindowLabel, true, upcApp.messages.waitForSave);\n\t\t\tupcApp.talk2device(null, $(\"form#mainForm\").serialize(), upcApp.defaultOnSuccessfulSave, upcApp.defaultOnSaveIsNotPossible, null);\n\t\t} // saveConfiguration", "function save_options() {\n\tif (!woas.config.permit_edits) {\n\t\talert(woas.i18n.READ_ONLY);\n\t\treturn false;\n\t}\n\twoas.cfg_commit();\n\twoas.set_current(\"Special::Advanced\", true);\n}", "function save_options_() {\r\n save_options();\r\n }", "function saveToStorage(){\n\tchrome.storage.sync.set(settings);\n}", "function saveSettings() {\r\n \"use strict\";\r\n localStorage.setItem('TrimpzSettings', JSON.stringify(trimpzSettings));\r\n}", "function saveSettings() {\n var settings = {\n \"automaticLights\": 1,\n \"sunsetTime\": sunsetTime,\n \"sunriseTime\": sunriseTime,\n \"apiParams.lat\": apiParams.lat,\n \"apiParams.lng\": apiParams.lng,\n \"tzName\": tzName,\n \"tzOffsetHours\": tzOffsetHours\n };\n var settingsJson = JSON.stringify(settings);\n var l = settingsJSON.length;\n storage.write(\"settings\",settingsJSON,0,FILESIZE);\n}", "async saveAll() {\r\n // Make sure we are able to save\r\n await this.canSave();\r\n // Make a copy of the dirty settings since items will be removed by saving\r\n const copy = [...this.dirtySettings];\r\n if (copy.length > 0)\r\n console.log(\"saved:\", copy.map(sf => sf[\"path\"]));\r\n // Save the settings\r\n copy.forEach(settingsFile => settingsFile.save());\r\n }", "function saveSettings() {\n\n chrome.storage.local.set({\n\n words: wordArray,\n pages: pagesArray\n\n }, function() {\n\n \t//**********************************\n\t// OPTIONS SAVED INTO LOCAL STORAGE\n\t//**********************************\n\n });\n\n}", "function saveConfiguration() {\n\t\t\tif (!validateKeys()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tupcApp.fancyMessage(upcApp.messages.wifiSecConfigWindowLabel, true, upcApp.messages.waitForSave);\n\t\t\tupcApp.talk2device(null, $(\"form#mainForm\").serialize(), upcApp.defaultOnSuccessfulSave, upcApp.defaultOnSaveIsNotPossible, null);\n\t\t} // saveConfiguration", "function saveToStorage(){\n console.debug('saving settings', self);\n\n try {\n localStorage.setItem(self.name, JSON.stringify(self.data));\n } catch (e) {\n }\n }", "_saveWindowStates () {\n \n this.settingsStore.set(\"MainWindow\", this.mainWinName)\n \n this.settingsStore.set('managed', this.windowStates)\n \n this.settingsStore.set(\"LastOpen\", this.lastOpen)\n \n }", "function save_options() {\n var settingEnabled = settingsCheckboxObj.checked;\n chrome.storage.sync.set({ settingEnabled: settingEnabled });\n}", "saveSettings() {\n localStorage.setItem(this.localStorageKey, JSON.stringify(this.getLayout()));\n }", "function saveSettings() {\n if (typeof settings === 'undefined') {\n console.log('Was going to save settings as undefined, exiting');\n return;\n }\n\n console.log('Saving settings to filesystem');\n writeFileSync(SETTINGS_FILE, settings, SETTINGS_TYPE);\n}", "function exportSettings() {\n var filename = Connector.getNamespace() + \".\" + new Date().toLocaleDateString() + \".json\";\n var ns = Connector.getNamespace();\n var data = JSON.stringify(Storage.settings);\n downloadFile(filename, data);\n }", "function save_settings() {\n settings.set('map', $('select[name=\"map\"] option:selected').attr('value'));\n settings.set('time', $('select[name=\"time\"] option:selected').attr('value'));\n settings.set('caps', $('select[name=\"caps\"] option:selected').attr('value'));\n\n /* var select_settings = [];\n $('.form-control.js-customize option').each(function(i, obj) { // get all the available settings in the select-box\n select_settings.push($(obj).attr('value'));\n });\n\n for(var i = 0; i < select_settings.length; i++) { // get the value for each of the settings and store it\n if (select_settings[i] === '') continue;\n var val = '';\n val = $('select[name=\"' + select_settings[i] + '\"] option:selected').attr('value');\n if (val === undefined) { // no selectbox, but a checkbox\n val = $('input[name=\"' + select_settings[i] + '\"]')[0].checked;\n }\n select_settings[i] = val;\n }\n\n $('.non-default.col-md-12').each(function(i, obj) {\n select_settings[$(obj).attr('name')] = true;\n });\n settings.set('select_settings', select_settings);*/\n}", "function saveOptions() {\n // assigns the parameters to what is set in the settings\n var key = document.getElementById('trigger').value;\n\n\t// chrome API to store data in JSON, anon function for when saved\n\tchrome.storage.sync.set({\n \tcolor: highlight,\n \topac: opacity,\n \trad: radius,\n \ttrigger: key,\n \ttoggle: check,\n activePage: false\n \t}, function() {\n \t\t// sets div status element to options saved for 1 second, then to empty\n \t\t$(\"#save-status\").text(\"Options saved!\");\n \t\tsetTimeout(function() {\n \t\t\t\t$(\"#save-status\").text(\"\");\n \t\t}, 1000);\n\t});\n}", "function storeSettings(){\n localStorage.setItem('settings', JSON.stringify(settings));\n}", "function savesettings() {\r\n _('savesettings');\r\n var settings = storage.get(':TWEETFILTER:', {});\r\n deleteexpiredrelationships();\r\n settings[user.id] = {\r\n queries: [],\r\n options: options,\r\n relationships: relationships\r\n };\r\n for (var q in queries) {\r\n settings[user.id].queries.push({\r\n query: queries[q].query,\r\n enabled: queries[q].enabled\r\n });\r\n }\r\n storage.set(':TWEETFILTER:', settings);\r\n }", "function exportSettings() {\n\t\tconst settings = JSON.parse(localStorage.getItem(SETTINGS_NAME));\n\t\tdelete settings.chatLogs;\n\t\tmarkProblem('textarea#importExportTextarea', false);\n\t\treturn JSON.stringify(settings, '\\n', 4);\n\t}", "function save_options() {\n\tvar host=getOptionFromElement(\"host\");\n\tvar username=getOptionFromElement(\"username\");\n\tvar password=getOptionFromElement(\"password\");\n\tvar servers = getLocalStorage(\"teamcitysettings\");\n\tvar server=servers[0]||{};\n\tif(server.host!=host||server.username!=username||server.password!=password){\n\t\tserver = {host:host,username:username,password:password};\n\t\tservers[0]=server;\n\t}else{\n\t\tconsole.log(\"No credentials changed\");\n\t}\n\t\n\tfor(var buildTypeId in server.listBuildTypeIds){\n\t\tvar key=\"input_\"+buildTypeId;\n\t\tvar value = getOptionFromElement(key);\n\t\tif(value){\n\t\t\n\t\t\tconsole.log(key+\" -> \"+value);\n\t\t\tserver.listBuildTypeIds[buildTypeId]=value;\n\t\t}\n\t}\n\tconsole.log(servers);\n\tconsole.log(server);\n\tsaveLocalStorage(\"teamcitysettings\",servers);\n\t\n\tloadTeamCityData();\n\t\n\t// Update status to let user know options were saved.\n\tvar status = document.getElementById(\"status\");\n\tstatus.innerHTML = \"Options Saved.\";\n\tsetTimeout(function() {\n\t\tstatus.innerHTML = \"\";\n\t}, 750);\n}", "function saveOptions() {}", "function saveConfig() {\n\n\t// Send a POST API call to save the new settings\n\tfetch(\"http://128.213.60.117:5000/save_config\", {\n\t method: \"POST\",\n\t body: JSON.stringify({\n\t lemmatization: 0, // Future support\n\t stemming: 0, // Future support\n\t bi_gram: document.getElementById(\"bi_gram_input\").checked ? 1 : 0,\n\t tri_gram: document.getElementById(\"tri_gram_input\").checked ? 1 : 0,\n\t links: document.getElementById(\"all_links_input\").checked ? 1 : 0,\n\t stop_words: document.getElementById(\"stop_words\").value,\n\t update_interval: 1\n }),\n headers: new Headers({\n \t\t\"content-type\": \"application/json\"\n \t})\n }).then(function(response) {\n\t\tif (!response.ok) {\n\t\t\t// Popup error is not updated\n\t\t\tcreateModal(\"ERROR\", \"Cannot modify settings right now...\", true);\n\t\t\tdocument.getElementById(\"save\").disabled = true;\n\t\t\treturn Promise.reject('Could not load application!');\n\t } else {\n\t \t// Popup to show the settings were successfully updated\n\t\t\tcreateModal(\"SUCCESS\", \"Settings saved successfully!!!\", true);\n\t \treturn response.json();\n\t }\n \t}).catch(error => {\n\t\tconsole.log(\"Could not update settings!\");\n\t});\n\n}", "function save() {\n\tvar conf = chrome.extension.getBackgroundPage().conf;\n\n\tif ($('#show-alert')[0].checked) {\n\t\tconf.show_alert = true;\n\t\tconf.alert_bubble_pos = $('#alert-bubble-pos').val();\n\t\tconf.alert_bubble_timeout = +$('#alert-bubble-timeout').val();\n\t} else {\n\t\tconf.show_alert = false;\n\t}\n\n\tconf.show_sources = $('#show_sources')[0].checked;\n\tconf.enable_autoupdate = $('#enable_autoupdate')[0].checked;\n\tconf.ghostrank = $('#ghostrank')[0].checked;\n\n\tconf.selected_app_ids = window.browser.getSelectedAppIds();\n\n\tvar site_whitelist = [];\n\t$('#whitelist option').each(function () {\n\t\tsite_whitelist.push($(this).text());\n\t});\n\tconf.site_whitelist = site_whitelist;\n\n\tconf.block_by_default = $('#block-by-default')[0].checked;\n\tconf.notify_library_updates = $('#notify-library-updates')[0].checked;\n\n\twindow.close();\n}", "function saveConfiguration() {\n\t\t\tvar payload = $(\"form#mainForm\").serialize();\n\t\t\tupcApp.fancyMessage(upcApp.messages.waitForSave, true);\n\t\t\tupcApp.talk2device(null, payload, upcApp.defaultOnSuccessfulSave, upcApp.defaultOnSaveIsNotPossible, null);\n\t\t}", "function saveConfig() {\r\n\tvar err=0;\r\n\t\r\n\ttrace(\"saveConfig() storing the settings\");\r\n\r\n\ted2kDlMethod = GM_config.get('ed2kDlMethod');\r\n\r\n\temuleUrl = GM_config.get('emuleUrl');\r\n\tif(emuleUrl.charAt(emuleUrl.length-1) != '/') {\r\n\t\tGM_config.set(\"emuleUrl\", emuleUrl + '/');\r\n\t\temuleUrl += '/';\r\n\t}\r\n\r\n\temulePwd = GM_config.get('emulePwd');\r\n\tif(emulePwd=='' && ed2kDlMethod=='emule') {\r\n\t\talert(\"A password is mandatory to submit new link to emule via web URL.\\nPlease choose another method or specify the password.\");\r\n\t\tGM_config.set(\"emulePwd\",\"something\");\r\n\t\temulePwd = GM_config.get('emulePwd');\r\n\t\terr=-1;\r\n\t}\r\n\r\n\temuleCat = strToCat(GM_config.get('emuleCat'));\r\n\tif(emuleCat==-1) {\r\n\t\talert(\"Category value invalid. Reverting back to the default value (*default=0)\");\r\n\t\tGM_config.set('emuleCat', '*default=0');\r\n\t\temuleCat = strToCat('*default=0');\r\n\t}\r\n\r\n\tpopupPos = GM_config.get('popupPos');\r\n\r\n\tpopupHeight = GM_config.get('popupHeight');\r\n\tif (popupHeight > 0 && popupHeight < 40 ) {\r\n\t\talert(\"With a 'Max Popup Height' beetween 0 < x < 40px, you won't be able to press the Settings button. So we consider this value as 0 (unlimited)\");\r\n\t\tGM_config.set(\"popupHeight\",0);\r\n\t\tpopupHeight = 0;\r\n\t}\r\n\r\n\tpopupWidth = GM_config.get('popupWidth');\r\n\tif (popupWidth > 0 && popupWidth < 100 ) {\r\n\t\talert(\"With a 'Max Popup Width' beetween 0 < x < 100 px, you won't be able to press the Settings button. So we consider this value as 0 (unlimited)\");\r\n\t\tGM_config.set(\"popupWidth\",0);\r\n\t\tpopupWidth = 0;\r\n\t}\r\n\r\n\teditCol = GM_config.get('editCol');\r\n\teditRow = GM_config.get('editRow');\r\n\r\n\tif (GM_config.get('editMaxLength') < editMaxLength) {\r\n\t\talert(\"MaxLength must be superior to \" + editMaxLength);\r\n\t\tGM_config.set(\"editMaxLength\",editMaxLength);\r\n\t}\r\n\telse {\r\n\t\teditMaxLength = GM_config.get('editMaxLength');\r\n\t}\r\n\r\n\tif (err<0) {\r\n\t\tGM_config.open();\r\n\t\tsaveConfig();\r\n\t}\r\n\r\n\treturn err;\r\n}", "function save_options(evt) {\n evt.preventDefault();\n\n chrome.storage.local.get(STANDALONE_SETTINGS_STORAGE_KEY, res => {\n var previousMode = res[STANDALONE_SETTINGS_STORAGE_KEY];\n var userSelectedValue = document.querySelector('input[name=\"standalone\"]:checked').value;\n if (userSelectedValue) {\n var isStandalone = userSelectedValue === 'true';\n var hasSwitchedExtensionMode = previousMode && previousMode !== isStandalone;\n chrome.storage.local.set({\n 'options.standalone': isStandalone,\n 'hasSwitchedExtensionMode': hasSwitchedExtensionMode,\n }, () => chrome.runtime.reload());\n }\n })\n\n}", "function saveConfiguration() {\n\t\t\tvar payload = $(\"form#mainForm\").serialize();\n\t\t\tupcApp.fancyMessage(upcApp.messages.waitForSave, true, null);\n\t\t\tupcApp.talk2device(null, payload, upcApp.defaultOnSuccessfulSave, upcApp.defaultOnSaveIsNotPossible, null);\n\t\t} // saveConfiguration", "function saveConfigToFile() {\n saveSession()\n var configString = JSON.stringify(getConfig())\n saveToFile(configString, \"titan-project-config.json\", \"application/json\")\n}", "function saveConfig(){\n fs.writeFileSync(path.join(appdata.base , \"config.json\"), JSON.stringify(config,null,4) ) //\n}", "function saveSettings() {\n\tlocalStorage.mylanguagesetting = \"en\"\n }", "function save() {\n\tchrome.runtime.getBackgroundPage(background => {\n\t\tconst ExtensionOptions = background.ExtensionOptions;\n\n\t\tExtensionOptions\n\t\t\t.setBackgroundColor(element.backgroundColorPicker.getHexString())\n\t\t\t.setTextColor(element.textColorPicker.getHexString())\n\t\t\t.setThreadRemovalSeconds(element.frequencyInput.value * 86400)\n\t\t\t.setBorder(element.borderInput.checked)\n\t\t\t.setClearComment(element.clearCommentInput.checked, element.clearChildrenInput.checked)\n\t\t\t.setRedirect(element.redirectInput.checked)\n\t\t\t.setCustomCSS(element.customCSSRadioButton.checked ? element.CSSTextArea.value : '')\n\t\t\t.setCustomCSSClassName(element.CSSClassNameInput.value);\n\n\t\tExtensionOptions.save().then(() => {\n\t\t\tshowMessage('Settings saved!');\n\t\t});\n\t});\n}", "function save() {\n var hideRecc = document.getElementById(\"hideRecc\").checked;\n var hideSidebar = document.getElementById(\"hideSidebar\").checked;\n var showNumber = document.getElementById(\"showNumber\").checked;\n var showNotifications = document.getElementById(\"showNotifications\").checked;\n var silent = document.getElementById(\"silent\").checked;\n chrome.storage.sync.set(\n {\n \"hideRecc\": hideRecc,\n \"hideSidebar\": hideSidebar,\n \"showNumber\": showNumber,\n \"showNotifications\": showNotifications,\n \"silent\": silent\n });\n var message = {\n txt: \"savedOptions\"\n }\n chrome.runtime.sendMessage(\"\", message);\n}", "function saveSettingsLocalStorage(){\n settingsObject = {email: emailSwitch.checked, profile: profileSwitch.checked, timezone: timezoneSelect.selectedIndex}; \n localStorage.setItem('settings', JSON.stringify(settingsObject));\n \n}", "function save_options() {\n\tlet newSettings = {\n\t\t'o_theme': null,\n\t\t'o_live_output': null,\n\t\t'o_live_direction': [],\n\t\t'o_live_type': [],\n\t\t'o_live_donation': null,\t\t\n\t};\n\n\tfor (let i = 0; i < document.getElementsByName('o_theme').length; i++) {\n\t\tif (document.getElementsByName('o_theme')[i].checked) {\n\t\t\tnewSettings.o_theme = document.getElementsByName('o_theme')[i].id;\n\t\t}\n\t}\n\tfor (let i = 0; i < document.getElementsByName('o_live_output').length; i++) {\n\t\tif (document.getElementsByName('o_live_output')[i].checked) {\n\t\t\tnewSettings.o_live_output = document.getElementsByName('o_live_output')[i].id;\n\t\t}\n\t}\n\tfor (let i = 0; i < document.getElementsByName('o_live_direction').length; i++) {\n\t\tif (document.getElementsByName('o_live_direction')[i].checked) {\n\t\t\tnewSettings.o_live_direction.push(document.getElementsByName('o_live_direction')[i].id);\n\t\t}\n\t}\n\tfor (let i = 0; i < document.getElementsByName('o_live_type').length; i++) {\n\t\tif (document.getElementsByName('o_live_type')[i].checked) {\n\t\t\tnewSettings.o_live_type.push(document.getElementsByName('o_live_type')[i].id);\n\t\t}\n\t}\n\tfor (let i = 0; i < document.getElementsByName('o_live_donation').length; i++) {\n\t\tif (document.getElementsByName('o_live_donation')[i].checked) {\n\t\t\tnewSettings.o_live_donation = document.getElementsByName('o_live_donation')[i].id;\n\t\t}\n\t}\n\n chrome.storage.sync.set(\n \tnewSettings, \n \tfunction() {\n\t let status = document.getElementById('status');\n\t status.textContent = 'Options saved.';\n\t setTimeout(function() {\n\t status.innerHTML = '&nbsp;';\n\t }, 1550);\n \t}\n );\n\n \tchrome.extension.getBackgroundPage().currentSettings = newSettings;\n}", "function saveOptions() {\n var master = document.getElementById('master').value,\n slave = document.getElementById('slave').value;\n\n chrome.storage.sync.set({\n master: master,\n slave: slave\n }, function() {\n // Update status to let user know options were saved.\n var status = document.getElementById('status');\n status.innerHTML = 'Options Saved.';\n setTimeout(function() {\n status.innerHTML = '';\n }, 750);\n });\n\n }", "static _saveSettings(timer, obj) {\n if (MP.DEBUG)\n console.group(`_saveSettings()`);\n const savestate = (document.querySelector('span.mp_savestate'));\n const gmValues = GM_listValues();\n // Reset timer & message\n savestate.style.opacity = '0';\n window.clearTimeout(timer);\n console.log('[M+] Saving...');\n // Loop over all values stored in GM and reset everything\n for (const feature in gmValues) {\n if (typeof gmValues[feature] !== 'function') {\n // Only loop over values that are feature settings\n if (!['mp_version', 'style_theme'].includes(gmValues[feature])) {\n //if not part of preferences page\n if (gmValues[feature].indexOf('mp_') !== 0) {\n GM_setValue(gmValues[feature], false);\n }\n }\n }\n }\n // Save the settings to GM values\n this._setSettings(obj);\n // Display the confirmation message\n savestate.style.opacity = '1';\n try {\n timer = window.setTimeout(() => {\n savestate.style.opacity = '0';\n }, 2345);\n }\n catch (e) {\n if (MP.DEBUG)\n console.warn(e);\n }\n if (MP.DEBUG)\n console.groupEnd();\n }", "async save() {\n const settings = await Settings.getData();\n settings[this.id] = this.settings;\n\n await storage.init();\n await storage.setItem(\"settings\", settings);\n }", "function saveOptions() {\n\tlocalStorage[\"default_folder_id\"] = $('#folder_list :selected').val();\n\tlocalStorage[\"dial_columns\"] = $('#dial_columns :selected').val();\n\tlocalStorage[\"dial_width\"] = $('#dial_width :selected').val();\n\tsaveCheckbox('drag_and_drop');\n\tsaveCheckbox('force_http');\n\tsaveCheckbox('show_advanced');\n\tsaveCheckbox('show_new_entry');\n\tsaveCheckbox('show_folder_list');\n\tsaveCheckbox('show_subfolder_icons');\n\tlocalStorage[\"thumbnail_url\"] = $('#thumbnail_url').val();\n\n\twindow.location = \"newtab.html\";\n}", "function save_options() {\n var host = document.getElementById(\"host\").value;\n var host2 = document.getElementById(\"host2\").value;\n var user = document.getElementById(\"user\").value;\n var pass = document.getElementById(\"password\").value;\n \n //ensure trailing slash\n if( host.charAt( host.length - 1 ) !== \"/\" )\n\thost = host + \"/\";\n if( host2.charAt( host2.length - 1 ) !== \"/\" )\n\thost2 = host2 + \"/\";\n localStorage[\"host\"] = host;\n localStorage[\"host2\"] = host2;\n localStorage[\"user\"] = user;\n localStorage[\"pass\"] = pass;\n \n document.getElementById(\"status\").innerHTML = \"saved\";\n \n restore_options();\n}", "function save_options() {\r\n localStorage[\"user\"] = document.getElementById(\"user\").value;\r\n localStorage[\"passwd\"] = document.getElementById(\"passwd\").value;\r\n\r\n // Update status to let user know options were saved.\r\n update_status(\"已保存\");\r\n}", "function save_options() {\n\n chrome.storage.sync.set({ settings:\n {\n targethost: document.getElementById('targethost').value,\n targetport: document.getElementById('targetport').value,\n targetproto: document.getElementById('targetproto').value,\n targetuser: document.getElementById('targetuser').value,\n targetpasswd: document.getElementById('targetpasswd').value\n }\n }, function() {\n // Update status to let user know options were saved.\n var status = document.getElementById('status');\n status.textContent = ' Saved.';\n\n //reload background script\n chrome.extension.getBackgroundPage().window.location.reload();\n \n setTimeout(function() {\n status.textContent = '';\n }, 750);\n });\n}", "_saveSettings(settings = null) {\n if (settings == null) {\n settings = this.settings.toJS();\n }\n\n ss.set(\"settings_v4\", this._replaceDefaults(\"saving\", settings));\n }", "saveSettings() {\n\t\tthis.setState( { loading: true } );\n\n\t\tconst data = WPHB_Admin.minification.getMultiSelectValues(\n\t\t\t'wphb-auto-exclude'\n\t\t);\n\n\t\tconst settings = {\n\t\t\ttype: this.state.view,\n\t\t\tstyles: this.state.enabled.styles,\n\t\t\tscripts: this.state.enabled.scripts,\n\t\t\tdata: JSON.stringify( data ),\n\t\t};\n\n\t\tthis.state.api.post( 'minify_save_settings', settings ).then( ( r ) => {\n\t\t\t// Automatic type has not changed.\n\t\t\tif (\n\t\t\t\tundefined !== typeof r.typeChanged &&\n\t\t\t\tfalse === r.typeChanged\n\t\t\t) {\n\t\t\t\tWPHB_Admin.notices.show();\n\t\t\t} else {\n\t\t\t\tWPHB_Admin.notices.show( r.typeChanged, 'success', false );\n\n\t\t\t\t// Allow opening a \"how-to\" modal from the notice.\n\t\t\t\tconst noticeLink = document.getElementById(\n\t\t\t\t\t'wphb-basic-hdiw-link'\n\t\t\t\t);\n\t\t\t\tif ( noticeLink ) {\n\t\t\t\t\tnoticeLink.addEventListener( 'click', () => {\n\t\t\t\t\t\twindow.SUI.closeNotice( 'wphb-ajax-update-notice' );\n\t\t\t\t\t\twindow.SUI.openModal(\n\t\t\t\t\t\t\t'automatic-ao-hdiw-modal-content',\n\t\t\t\t\t\t\t'automatic-ao-hdiw-modal-expand'\n\t\t\t\t\t\t);\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst view =\n\t\t\t\t'undefined' === typeof r.view ? this.state.view : r.view;\n\n\t\t\tthis.setState( {\n\t\t\t\tassets: r.assets,\n\t\t\t\tenabled: r.enabled,\n\t\t\t\texclusions: r.exclusions,\n\t\t\t\tloading: false,\n\t\t\t\tview,\n\t\t\t} );\n\t\t} );\n\t}", "saveSettings() {\n if (!this.options_.persistTextTrackSettings) {\n return;\n }\n\n const values = this.getValues();\n\n try {\n if (Object.getOwnPropertyNames(values).length > 0) {\n window.localStorage.setItem('vjs-simple-text-track-settings', JSON.stringify(values));\n } else {\n window.localStorage.removeItem('vjs-simple-text-track-settings');\n }\n } catch (e) {\n log.warn(e);\n }\n }", "function save(){\r\n\t\tlocalStorage['options'] = JSON.stringify({\r\n\t\t\t// GENERAL\r\n\t\t\t\t\"mficon\":$(\"#mficon\").attr('checked'),\r\n\t\t\t\t\"favicon\":$(\"#favicon\").attr('checked'),\r\n\t\t\t\t\"trans\":$(\"#trans\").attr('checked'),\r\n\t\t\t\t\"footer\":$(\"#footer\").attr('checked'),\r\n\t\t\t\t\"customCSS\":$(\"#customCSS\").attr('checked'),\r\n\t\t\t\t\t\"customCSSval\":$(\"#customCSSval\").val().replace(/(\\r\\n|\\n|\\r)/gm,\"\"),\r\n\t\t\t// THEME\t\t\t\t\r\n\t\t\t\t\"min\":$(\"#min\").attr('checked'),\r\n\t\t\t\t\"fullW\":$(\"#fullW\").attr('checked'),\r\n\t\t\t\t\"backC\":$(\"#backC\").attr('checked'),\r\n\t\t\t\t\t\"backCLR\":localStorage[\"backCLR\"],\r\n\t\t\t\t\"accent\":$(\"#accent\").attr('checked'),\r\n\t\t\t\t\t\"accentCLR\":localStorage[\"accentCLR\"],\r\n\t\t\t\t\"high\":$(\"#high\").attr('checked'),\r\n\t\t\t// TOOLBAR\r\n\t\t\t\t\"tbarH\":$(\"#tbarH\").attr('checked'),\r\n\t\t\t\t\"t_float\":$(\"#t_float\").attr('checked'),\r\n\t\t\t\t\"logo\":$(\"#logo\").attr('checked'),\r\n\t\t\t\t\"t_friends\":$(\"#t_friends\").attr('checked'),\r\n\t\t\t\t\"t_messages\":$(\"#t_messages\").attr('checked'),\r\n\t\t\t\t\"t_notifications\":$(\"#t_notifications\").attr('checked'),\r\n\t\t\t\t\"t_search\":$(\"#t_search\").attr('checked'),\r\n\t\t\t\t\"t_home\":$(\"#t_home\").attr('checked'),\r\n\t\t\t\t\"t_profile\":$(\"#t_profile\").attr('checked'),\t\t\t\t\r\n\t\t\t\t\"t_ff\":$(\"#t_ff\").attr('checked'),\t\r\n\t\t\t// NAVIGATION\r\n\t\t\t\t\"navH\":$(\"#navH\").attr('checked'),\r\n\t\t\t\t\"navF\":$(\"#navF\").attr('checked'),\r\n\t\t\t\t\"n_profile\":$(\"#n_profile\").attr('checked'),\r\n\t\t\t\t\"n_news\":$(\"#n_news\").attr('checked'),\r\n\t\t\t\t\"n_messages\":$(\"#n_messages\").attr('checked'),\r\n\t\t\t\t\"n_events\":$(\"#n_events\").attr('checked'),\r\n\t\t\t\t\"n_friends\":$(\"#n_friends\").attr('checked'),\r\n\t\t\t\t\"n_groups\":$(\"#n_groups\").attr('checked'),\r\n\t\t\t\t\"n_more\":$(\"#n_more\").attr('checked'),\r\n\t\t\t\t\"n_chat\":$(\"#n_chat\").attr('checked'),\r\n\t\t\t\t\"n_search\":$(\"#n_search\").attr('checked'),\r\n\t\t\t// SIDEBAR\r\n\t\t\t\t\"s_all\":$(\"#s_all\").attr('checked'),\r\n\t\t\t\t\"sF\":$(\"#sF\").attr('checked'),\r\n\t\t\t\t\"s_events\":$(\"#s_events\").attr('checked'),\r\n\t\t\t\t\"s_find\":$(\"#s_find\").attr('checked'),\r\n\t\t\t\t\"s_requests\":$(\"#s_requests\").attr('checked'),\r\n\t\t\t\t\"s_pokes\":$(\"#s_pokes\").attr('checked'),\r\n\t\t\t\t\"s_recommended\":$(\"#s_recommended\").attr('checked'),\r\n\t\t\t\t\"s_people\":$(\"#s_people\").attr('checked'),\r\n\t\t\t\t\"s_ads\":$(\"#s_ads\").attr('checked'),\r\n\t\t\t// MAIN\r\n\t\t\t\t\"full\":$(\"#full\").attr('checked'),\r\n\t\t\t\t\"zoom\":$(\"#zoom\").attr('checked'),\r\n\t\t\t\t\"theater\":$(\"#theater\").attr('checked'),\r\n\t\t\t\t\"idle\":$(\"#idle\").attr('checked'),\r\n\t\t\t\t\"bottom\":$(\"#bottom\").attr('checked'),\r\n\t\t\t\t\"f_lf\":$(\"#f_lf\").attr('checked'),\r\n\t\t\t\t//\"f_share\":$(\"#f_share\").attr('checked'),\r\n\t\t\t\t\"f_tr\":$(\"#f_tr\").attr('checked'),\r\n\t\t\t\t\"f_app\":$(\"#f_app\").attr('checked'),\r\n\t\t\t\t\"f_poll\":$(\"#f_poll\").attr('checked'),\r\n\t\t\t\t\"f_page\":$(\"#f_page\").attr('checked'),\r\n\t\t\t\t\"f_event\":$(\"#f_event\").attr('checked'),\r\n\t\t\t\t\"f_friend\":$(\"#f_friend\").attr('checked'),\r\n\t\t\t\t\"f_group\":$(\"#f_group\").attr('checked'),\r\n\t\t\t\t\"f_like\":$(\"#f_like\").attr('checked'),\r\n\t\t\t\t\"f_link\":$(\"#f_link\").attr('checked'),\r\n\t\t\t\t\"f_note\":$(\"#f_note\").attr('checked'),\r\n\t\t\t\t\"f_photo\":$(\"#f_photo\").attr('checked'),\r\n\t\t\t\t\"f_place\":$(\"#f_place\").attr('checked'),\r\n\t\t\t\t\"f_profile\":$(\"#f_profile\").attr('checked'),\r\n\t\t\t\t\"f_relationship\":$(\"#f_relationship\").attr('checked'),\r\n\t\t\t\t\"f_status\":$(\"#f_status\").attr('checked'),\r\n\t\t\t\t\"f_video\":$(\"#f_video\").attr('checked'),\r\n\t\t\t\t\"f_wall\":$(\"#f_wall\").attr('checked'),\t\t\t\t\r\n\t\t});\r\n\t\tlocalStorage[\"customCSSval\"] = $(\"#customCSSval\").val();\r\n\t\tlocalStorage[\"EIC_1\"] = $(\"#EIC_1\").val();\r\n\t\tlocalStorage[\"EIC_2\"] = $(\"#EIC_2\").val();\r\n\t\tlocalStorage[\"EIC_3\"] = $(\"#EIC_3\").val();\r\n\t\t$(\"#announce\").attr(\"style\", \"\");\r\n\t\t$(\"#refreshEI\").attr(\"style\", \"\");\r\n\t\t$(\"#refresh\").attr(\"style\", \"display: block !important;\");\r\n\t}", "function saveOptions() {\n chrome.storage.sync.set({\n notifications: $(INPUT_NOTIFICATIONS_SELECTOR).is(CHECKED),\n counters: $(INPUT_COUNTERS_SELECTOR).is(CHECKED),\n buttons: $(INPUT_BUTTONS_SELECTOR).is(CHECKED)\n }, function() {\n // Disable save button to indicate that options are saved.\n $(SAVE_BUTTON_SELECTOR).prop(DISABLED, true);\n });\n return false;\n}", "function saveSettings() {\n $('#settings').removeClass('opensettings');\n}", "function save_options() {\n let sheetIdValue = document.getElementById('sheet_id').value;\n\tlet baseUrlValue = document.getElementById('base_url').value;\n\tconst debugModeValue = document.getElementById(\"debug_mode\").checked;\n\n\tbaseUrlValue = baseUrlValue\n .replace(/(^\\w+:|^)\\/\\//, \"\")\n .replace(/\\/+$/, \"\");\n\n\tsheetIdValue = sheetIdValue.trim();\t\n\n\tbrowser.storage.sync.set({ sheetIdValue, baseUrlValue, debugModeValue }).then( () => {\n\t\tvar status = document.getElementById('status');\n\t\tstatus.textContent = 'Options saved...';\n\t\tsetTimeout(function () {\n\t\t\tstatus.textContent = '';\n\t\t}, 750);\n\t})\n\n}", "function saveOptions() {\n chrome.storage.sync.set(\n {\n translateHeadings: document.getElementById('selectorH').checked,\n translateParagraphs: document.getElementById('selectorP').checked,\n translateOthers: document.getElementById('selectorOthers').checked,\n }, function () {\n var status = document.getElementById('status');\n status.textContent = 'Options saved.';\n setTimeout(function () {\n status.textContent = '';\n }, 2000);\n });\n}", "function savePrefs() {\r\ttry\t{\r\t\tprefsFile.open(\"w\");\r\t\tprefsFile.write(myPrefs.toSource());\r\t\tprefsFile.close();\r\t }catch(e){\r\t\tthrowError(\"Could not save preferences: \" + e, false, 2, prefsFile);\r\t}\r}", "function save_options() {\n var input_url = sanitizeURL();\n var input_default_project = sanitizeProject();\n var input_language = document.getElementById('inputLanguageOptions').value;\n chrome.storage.sync.set({\n useURL: input_url,\n useDefaultProject: input_default_project,\n useLanguage: input_language\n }, function() {\n // Update status to let user know options were saved.\n showSuccessText();\n restore_options();\n });\n}", "function save_options() {\n\n chrome.storage.sync.set({\n payWallOption: payWallOption.checked,\n adRemovalOption: adRemovalOption.checked,\n trumpOption: trumpOption.checked,\n trumpNameOption: trumpNameOption.value.toLowerCase(),\n yoHeaderOption: yoHeaderOption.checked,\n yoSuffixOption: yoSuffixOption.value.toLowerCase(),\n }, function() {\n closeButton.setAttribute('disabled','disabled');\n statusSpan.textContent = 'Options saved...';\n const currentWindow = window;\n setTimeout(function() {\n currentWindow.close();\n }, 1000);\n });\n}", "function save_config() {\n set_config('drc', 'emphasis_disabled',\n browser_emphasis_disabled_detection_result);\n var a = document.getElementById('save_config_anchor');\n var content = JSON.stringify(all_configs, undefined, 2);\n var uriContent = 'data:application/octet-stream,' +\n encodeURIComponent(content);\n a.href = uriContent;\n a.download = 'audio-' + time_str() + '.conf';\n a.click();\n}", "function settingsSave(ev) {\r\n optionUseBR = document.getElementById(TYPOGRAF_USE_BR_ID).checked;\r\n GM_setValue(USE_BR_OPTION, optionUseBR);\r\n\r\n optionUseP = document.getElementById(TYPOGRAF_USE_P_ID).checked;\r\n GM_setValue(USE_P_OPTION, optionUseP);\r\n\r\n var checkboxes = document.getElementsByName(TYPOGRAF_ENTITY_TYPE_ID);\r\n for (var i = 0; i < checkboxes.length; i++) {\r\n if (checkboxes[i].checked) {\r\n entityType = checkboxes[i].value;\r\n break;\r\n }\r\n }\r\n GM_setValue(ENTITY_TYPE_OPTION, entityType);\r\n\r\n closeSettings();\r\n}", "function save_options() {\n let apiKey = document.getElementById('apikey').value;\n let sandBox = document.getElementById('sandbox').checked;\n chrome.storage.sync.set({\n apiKey: apiKey,\n sandBox: sandBox,\n }, function() {\n chrome.notifications.create({\n type: 'basic',\n iconUrl: chrome.extension.getURL('images/icon-38.png'),\n title: 'Easy Domain Registration',\n message: 'Your options saved.'\n });\n });\n}", "function storeSettings(settings = []) {\n localStorage.setItem('settings', JSON.stringify(settings));\n saveSettings.innerHTML = 'SAVED'\n}", "function actuallySave() {\n var inputs = document.getElementsByTagName('input');\n var data = {\n details: details\n };\n var isDefault = true;\n for(var i = 0; i < inputs.length; ++i) {\n if(inputs[i].type == 'checkbox') {\n data[inputs[i].id] = inputs[i].checked;\n if(isDefault && inputs[i].checked != (DEFAULT_FALSE.indexOf(inputs[i].id) === -1)) {\n isDefault = false;\n }\n }\n else {\n data[inputs[i].id] = inputs[i].value;\n if(isDefault && inputs[i].value) {\n isDefault = false;\n }\n }\n }\n twitch.configuration.set('broadcaster', CONFIG_VERSION, JSON.stringify(data));\n document.getElementById(\"reset\").disabled = isDefault;\n if(saveCallTimeout) {\n clearTimeout(saveCallTimeout);\n }\n saveCallTimeout = undefined;\n hideUnsaved();\n }", "function savePreferences(){\n var tab0 = panelSettings.getTabByIndex(tabsIndexSettings[\"MarketEnterprise\"]);\n var tab1 = panelSettings.getTabByIndex(tabsIndexSettings[\"EnterpriseInformation\"]);\n\tvar tab2 = panelSettings.getTabByIndex(tabsIndexSettings[\"FollowUp\"]);\n //var tab2 = panelSettings.getTabByIndex(1);\n \n // Salvamos las preferencias de la primera pestaña\n var listRight = tab0.__context[\"listRight\"];\n dictPreferences = {}\n var listAux = ['n', 's'];\n \n for (var i = 0; i < listRight.length; i++) \n listAux[listAux.length] = listRight[i][0];\n \n dictPreferences[\"list\"] = listAux;\n \n // Salvamos las preferencias de la segunda pestaña\n var listRight = tab1.__context[\"listRight\"];\n var listAux = ['n', 's'];\n \n for (var i = 0; i < listRight.length; i++) \n listAux[listAux.length] = listRight[i][0];\n \n\tdictPreferences[\"enterprise\"] = listAux;\n\t\n\tvar listRight = tab2.__context[\"listRight\"];\n\tvar listAux = [];\n\t\n\tfor(var i=0; i < listRight.length; i++)\n\t\tlistAux[listAux.length] = listRight[i][0];\n\t\n \tdictPreferences[\"followUp\"] = listAux;\n preferences.set(to_json(dictPreferences));\n \n\tvar currentTab = panelMain.getTabByIndex(0);\n\tcurrentTab[\"__context\"] = {};\n\tcurrentTab.__context[\"type\"] = 1;\n\tcurrentTab.__context[\"symbols\"] = dictPreferences.followUp;\n\tcurrentTab.__context[\"tags\"] = dictPreferences.list;\n\t\n // Volvemos a la pantalla principal\n displayAlternativeInfo();\n}", "function save_options() {\n localStorage[\"keycode\"] = keyValue.value;\n\n if (warnYes.checked) {\n localStorage[\"warn\"] = true;\n } else {\n localStorage[\"warn\"] = false;\n }\n\n if (saveYes.checked) {\n localStorage[\"save\"] = true;\n } else {\n localStorage[\"save\"] = false;\n }\n\n if (modifyYes.checked) {\n localStorage[\"modify\"] = true;\n } else {\n localStorage[\"modify\"] = false;\n }\n\n alert('Changes Saved');\n window.close();\n}", "function saveConfig(devtype){\n var obj = {};\n obj.devtype = devtype;\n //iterate over each input element and get its value\n $.each($('*[data-edit=\"'+devtype+'\"]'), function(i, el) {\n var param = $(this).data().save;\n obj[param] = getElementValue(el);\n });\n\n if (current_config_index == null) {\n //add a new device and sort array\n current_config.push(obj);\n current_config = sortArrayConfig(current_config);\n }\n else {\n current_config[current_config_index] = obj;\n }\n syncConfig();\n current_config_index = null;\n window.location.href = '#page-settings';\n return false;\n}", "function save_options() {\n var title = document.getElementById('titleEnable').checked;\n var metaDesc = document.getElementById('metaDescEnable').checked;\n var h1 = document.getElementById('h1Enable').checked;\n var h2 = document.getElementById('h2Enable').checked;\n var wmt = document.getElementById('wmtEnable').checked;\n var ga = document.getElementById('gaEnable').checked;\n var ypa = document.getElementById('ypaEnable').checked;\n var imgAlt = document.getElementById('imgAltEnable').checked;\n \n chrome.storage.sync.set({\n titleEnabled: title,\n metaDescEnabled: metaDesc,\n\th1Enabled: h1,\n\th2Enabled: h2,\n\twmtEnabled: wmt,\n\tgaEnabled: ga,\n\typaEnabled: ypa,\n\timgAltEnabled: imgAlt\n }, function() {\n // Update status to let user know options were saved.\n var status = document.getElementById('status');\n status.textContent = 'Options saved.';\n setTimeout(function() {\n status.textContent = '';\n }, 750);\n });\n}", "function save_options() {\n\tlet auto_duo = document.getElementById('auto_duo');\n\tchrome.storage.sync.set({\n\t\tauto_duo: auto_duo\n\t}, function () {\n\t\tlet status = document.getElementById('status');\n\t\tstatus.style.color = 'green';\n\t\tstatus.textContent = 'Options Saved!';\n\t\tsetTimeout(function () {\n\t\t\tstatus.textContent = '\\n';\n\t\t\tstatus.style.color = 'initial';\n\t\t}, 1000);\n\t});\n}", "function persistConfig(data) {\n localStorage.setItem(\"config\", data)\n }", "function save_options() {\n if (doReload) {\n // just saving app_name and reloading extension to start the oAuth process\n var browser_name = $appName.value;\n localStorage.setItem(\"app_name\", browser_name);\n $status.textContent = \"Options Saved.\";\n _.delay(chrome.runtime.reload, 500);\n } else {\n // saving new URL and reseting local copy of DB\n var sheet_url_val = $sheet_url.value;\n localStorage.setItem(\"sheet_url\", sheet_url_val);\n DrivePass.Settings.gs_sheet_init.sheet_url = sheet_url_val;\n DrivePass.ResetLocal().init(function() {\n $status.textContent = \"Options Saved.\";\n });\n }\n }", "function saveconfig() {\n // sauvegarde des options de la fenêtre de configuration\n display_button = npn_cb_button.checked;\n GM.setValue(\"display_button\", display_button);\n button_icon = npn_in_button.value.trim();\n if(button_icon === \"\") {\n button_icon = default_icon;\n }\n GM.setValue(\"button_icon\", button_icon);\n mass_opener = npn_cb_mass.checked;\n GM.setValue(\"mass_opener\", mass_opener);\n max_tab = parseInt(npn_in_maxtab.value.trim(), 10);\n max_tab = Math.max(max_tab, 1);\n max_tab = Math.min(max_tab, 99);\n if(isNaN(max_tab)) max_tab = default_max_tab;\n GM.setValue(\"max_tab\", max_tab);\n reverse_order = npn_cb_reverseorder.checked;\n GM.setValue(\"reverse_order\", reverse_order);\n color_gradient = npn_cb_gradient.checked;\n GM.setValue(\"color_gradient\", color_gradient);\n color_start_type = npn_rd_color_start_auto.checked ? \"auto\" :\n npn_rd_color_start_trans.checked ? \"trans\" : \"perso\";\n GM.setValue(\"color_start_type\", color_start_type);\n color_start_perso = npn_co_color_start_perso.value.toLowerCase();\n GM.setValue(\"color_start_perso\", color_start_perso);\n color_end_type = npn_rd_color_end_auto.checked ? \"auto\" :\n npn_rd_color_end_trans.checked ? \"trans\" : \"perso\";\n GM.setValue(\"color_end_type\", color_end_type);\n color_end_perso = npn_co_color_end_perso.value.toLowerCase();\n GM.setValue(\"color_end_perso\", color_end_perso);\n limit_type = npn_rd_limit_fixed.checked ? \"fixed\" : \"auto\";\n GM.setValue(\"limit_type\", limit_type);\n fixed_limit = parseInt(npn_in_limit_fixed.value.trim(), 10);\n fixed_limit = Math.max(fixed_limit, 1);\n fixed_limit = Math.min(fixed_limit, 99999);\n if(isNaN(fixed_limit)) fixed_limit = default_fixed_limit;\n GM.setValue(\"fixed_limit\", fixed_limit);\n progress_type = npn_rd_progress_lin.checked ? \"lin\" : \"log\";\n GM.setValue(\"progress_type\", progress_type);\n smaller_text = npn_cb_smallertext.checked;\n GM.setValue(\"smaller_text\", smaller_text);\n go_top = npn_cb_gotop.checked;\n hash_haut = go_top ? \"#haut\" : \"\";\n GM.setValue(\"go_top\", go_top);\n refresh_click = npn_cb_refreshclick.checked;\n GM.setValue(\"refresh_click\", refresh_click);\n delay_click = parseInt(npn_in_refreshclick.value.trim(), 10);\n delay_click = Math.max(delay_click, 1);\n delay_click = Math.min(delay_click, 99);\n if(isNaN(delay_click)) delay_click = default_delay_click;\n GM.setValue(\"delay_click\", delay_click);\n display_totals = npn_cb_displaytotals.checked;\n GM.setValue(\"display_totals\", display_totals);\n refresh_page = npn_cb_refreshpage.checked;\n GM.setValue(\"refresh_page\", refresh_page);\n delay_page = parseInt(npn_in_refreshpage.value.trim(), 10);\n delay_page = Math.max(delay_page, 1);\n delay_page = Math.min(delay_page, 99);\n if(isNaN(delay_page)) delay_page = default_delay_page;\n GM.setValue(\"delay_page\", delay_page);\n // réinitialisation des computed colors\n computed_colors = {};\n // masquage de la fenêtre de configuration\n hideconfig();\n // application des nouveaux paramètres\n apply_config();\n}", "function savePrefs()\n{\n let preferences = collatePrefs( prefs );\n browser.storage.local.set({\"preferences\": preferences});\n}", "function setSavedOptions() {\n log('Getting saved options.');\n GM_setValue(\"opt_loggingEnabled\", opt_loggingEnabled);\n GM_setValue(\"opt_hidefedded\", opt_hidefedded);\n GM_setValue(\"opt_hidefallen\", opt_hidefallen);\n GM_setValue(\"opt_hidetravel\", opt_hidetravel);\n GM_setValue(\"opt_showcaymans\", opt_showcaymans);\n GM_setValue(\"opt_hidehosp\", opt_hidehosp);\n GM_setValue(\"opt_disabled\", opt_disabled);\n }", "function save_oauth() {\n\n var options = {\n node_url: $('#node_url').val(),\n consumer_key: $('#consumer_key').val(),\n consumer_secret: $('#consumer_secret').val(),\n token: $('#token').val(),\n token_secret: $('#token_secret').val()\n };\n\n localStorage[\"oauth\"] = JSON.stringify(options);\n // Update status to let user know options were saved.\n var id = \"status_\"+ (new Date()).getTime();\n $(\".status\").html('<div class=\"'+id+'\">Options Saved.</div>');\n setTimeout(function() {\n $('.'+id).hide(500).remove();\n }, 750);\n }", "saveThenCloseDialog () {\n\n // Save a reference to this component\n let thisComponent = this;\n\n // Make sure to piece together the settings\n const newSettings = {\n 'salesforce': {\n 'FieldMappings': this.state.selectedFieldMappings,\n 'ObjectName': this.state.selectedObject,\n 'username': util.getProp(['salesforce','username'],this.state.settings,''),\n 'password': util.getProp(['salesforce','password'],this.state.settings,'')\n },\n 'tableau': {\n 'worksheet': this.state.selectedSheet\n }\n }\n\n // Persist the changes made to settings\n tableau.extensions.settings.set(thisComponent.state.config.settingsKey, JSON.stringify(newSettings));\n tableau.extensions.settings.saveAsync().then((newSavedSettings) => {\n thisComponent.closeDialog()\n });\n }", "async function saveSettingsToFile() {\n let settings = {};\n settings.arduinoConstants = arduinoConstants;\n settings.bounds = bounds;\n await fs.writeFile(SETTINGS_FILE, JSON.stringify(settings), \"utf8\");\n}", "function saveConfigurationOnClick() {\r\n\r\n var sampleRateIndex, gainIndex, timePeriods;\r\n\r\n timePeriods = timeHandler.getTimePeriods();\r\n\r\n sampleRateIndex = parseInt(ui.getSelectedRadioValue(\"sample-rate-radio\"), 10);\r\n gainIndex = parseInt(ui.getSelectedRadioValue(\"gain-radio\"), 10);\r\n\r\n saveConfiguration(timePeriods, ledCheckbox.checked, batteryCheckbox.checked, batteryLevelCheckbox.checked, sampleRateIndex, gainIndex, parseInt(recordingDurationInput.value, 10), parseInt(sleepDurationInput.value, 10), ui.isLocalTime(), function (err) {\r\n\r\n if (err) {\r\n\r\n console.error(err);\r\n\r\n } else {\r\n\r\n console.log(\"Config saved\");\r\n\r\n }\r\n\r\n });\r\n\r\n}", "function saveConfigurationClick(event) {\n var configuration = getDOMConfiguration();\n\n if (isValidAlgorithmConfiguration(configuration)) {\n clientSaveFile(JSON.stringify(getDOMConfiguration(), null, 4), 'configuration.json', 'application/json');\n notifier.queueMessage('valid', 'The configuration file is being saved at your device as configuration.json');\n } else {\n notifier.queueMessage('error', 'Configuration is invalid. Please use unique names for all entities.');\n }\n}", "function write() {\n var store = {};\n\n // store inputs\n var inputs = document.querySelectorAll('input');\n for(var i=0;i<inputs.length;i++) {\n var val,\n key = inputs[i].name;\n\n switch (inputs[i].type) {\n case 'checkbox':\n val = inputs[i].checked ? inputs[i].value : '';\n break;\n default:\n val = inputs[i].value;\n break;\n }\n\n store[key] = val;\n }\n\n // cast\n store.debug = Boolean(store.debug);\n\n chrome.storage.local.set({'pwa': store}, function() {\n flash('Options Saved');\n });\n}", "saveSettings(){\n\t\tif(Object.keys(this.changes).length === 0) {\n\t\t\talertify.closeLogOnClick(true).delay(1000).log(\"No settings have been changed!\");\n\t\t\treturn;\n\t\t}\n\t\tconsole.log('Saving all settings...');\n\t\teel.api_save_settings(this.changes)(n => {\n\t\t\tif(n){\n\t\t\t\tif('interface.host' in this.changes || 'interface.port' in this.changes){\n\t\t\t\t\talertify\n\t\t\t\t\t\t.alert('Changes to the Web UI will apply the next time you start RMD.')\n\t\t\t\t\t\t.then(()=>{location.reload()})\n\t\t\t\t}else {\n\t\t\t\t\talertify.closeLogOnClick(true).success(\"Saved settings! UI will reload in 5 seconds...\");\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tlocation.reload()\n\t\t\t\t\t}, 5000);\n\t\t\t\t}\n\t\t\t} else{\n\t\t\t\talertify.closeLogOnClick(true).error(\"Error saving settings!\")\n\t\t\t}\n\t\t\tthis.changes = {};\n\t\t\tthis.setState({changes: {}})\n\t\t});\n\t}", "function save_options(e) {\n var option_set = { };\n var two_part = e.target.id.split(':::');\n option_set[e.target.id] = options_defaults[two_part[0]].options[two_part[1]].value = $(e.target).is(':checked')\n $('#saving_changes').show();\n chrome.storage.sync.set(option_set, function() {\n // Update status to let user know options were saved.\n $('#saving_changes').hide();\n var status = $('#status');\n status.textContent = 'Options saved...';\n setTimeout(function() {\n status.textContent = '';\n }, 2000);\n });\n}", "function saveConfiguration() {\n\t\t\tvar payload = $(\"form#mainForm\").serialize() + '&' + $.param({action : 'saveRadio'});\n\t\t\tupcApp.fancyMessage(upcApp.messages.waitForSave, true);\n\t\t\tupcApp.talk2device(null, payload, upcApp.defaultOnSuccessfulSave, upcApp.defaultOnSaveIsNotPossible, null);\n\t\t} // saveConfiguration", "function store_config_panel(config_name){\n\t//if(config_name==\"\")\n\t//\tconfig_name=getUrlVars()[\"config_name\"];\n\tvar data=\"\"\n\tconsole.log(\"store_config_panel \"+config_name);\n\t$('.gpio_name').each(function(index){ \n\t\tvar name= $(this).attr('id');\t \n\t\tname=name.replace(\"_config\", \"\");\n\t\tvar value= $(this).val();\t \n\t\tvar type = $('#'+name + '_type option:selected').text();\n\t\tdata+=name + ';'+value+';'+type+'\\n';\n\t\t\n\t\t//sendCommand(command);\n\t\t});\t\n\tlocalStorage.setItem(\"gpio_config:\"+config_name, data);\n\tconsole.log(localStorage.getItem(\"gpio_config:\"+config_name));\n\tsetUrlVars(\"config_name\", config_name);\n}", "function saveConfig() {\n\t\tconst config = {\n\t\t\tname: configNameRef.current.value,\n\t\t\tconfig: clientsConfig,\n\t\t\texp_ratios: expRatios\n\t\t};\n\n\t\tconst isUpdate = currentConfigs.includes(config.name);\n\t\tfetch(apiHost + \"/config\", {\n\t\t\tmethod: isUpdate ? \"PUT\" : \"POST\",\n\t\t\theaders: {\"Content-Type\": \"application/json\"},\n\t\t\tbody: JSON.stringify(config)\n\t\t})\n\t\t\t.then(response => {\n\t\t\t\tresponse.json();\n\t\t\t})\n\t\t\t.then(data => {\n\t\t\t\tsetSaveStatusMessage(saveSucceedMessage);\n\t\t\t\tif (!isUpdate) updateConfigsList([...currentConfigs, config.name]);\n\t\t\t\tsetShowConfigNamePop(false);\n\t\t\t\tsetIsFetchSucceed(true);\n\t\t\t\tsetShowSaveStatus(true);\n\t\t\t})\n\t\t\t.catch(error => {\n\t\t\t\tsetSaveStatusMessage(saveFailedMessage + error.toString());\n\t\t\t\tsetShowConfigNamePop(false);\n\t\t\t\tsetIsFetchSucceed(true);\n\t\t\t\tsetShowSaveStatus(true);\n\t\t\t});\n\t}" ]
[ "0.7208599", "0.71810865", "0.7060235", "0.6998985", "0.69691646", "0.6925619", "0.6856062", "0.6810108", "0.680061", "0.6796969", "0.66950786", "0.66673774", "0.66582334", "0.6613587", "0.6612949", "0.6598265", "0.6537663", "0.6528071", "0.65208125", "0.65110993", "0.6477532", "0.64741313", "0.6457634", "0.64487976", "0.64442664", "0.64430386", "0.6440076", "0.6438425", "0.6430461", "0.6429559", "0.64243126", "0.6408676", "0.63846314", "0.6382906", "0.6379476", "0.63787156", "0.63608515", "0.6354055", "0.6302353", "0.63019925", "0.62882674", "0.62771434", "0.62608147", "0.6239471", "0.6231477", "0.6230126", "0.6226432", "0.6217865", "0.62151295", "0.62137204", "0.6170338", "0.6165416", "0.6164484", "0.6161818", "0.615787", "0.6153187", "0.6144852", "0.6141722", "0.6137948", "0.6131634", "0.6131017", "0.61241204", "0.6099845", "0.6096296", "0.6088421", "0.6086094", "0.6082898", "0.60801786", "0.607646", "0.6069924", "0.6064971", "0.6062584", "0.60618067", "0.6058978", "0.6049575", "0.60490054", "0.60445046", "0.60411465", "0.6038441", "0.60367125", "0.6033246", "0.6032134", "0.6022882", "0.6022225", "0.6016073", "0.6009045", "0.600519", "0.6003847", "0.60027885", "0.59987473", "0.59961563", "0.59932655", "0.5988502", "0.59661806", "0.5956971", "0.5942296", "0.5940541", "0.5936814", "0.59220606", "0.5913287" ]
0.643238
28
Clear current default configuration
function mqc_clear_default_config() { try { var config = localStorage.getItem("mqc_config"); if (!config) { return; } else { config = JSON.parse(config); } for (var c in config) { if (config.hasOwnProperty(c)) { config[c]['default'] = false; } } localStorage.setItem("mqc_config", JSON.stringify(config)); $('<p class="text-danger" id="mqc-cleared-success">Unset default.</p>').hide().insertBefore($('#mqc_loadconfig_form .actions')).slideDown(function () { setTimeout(function () { $('#mqc-cleared-success').slideUp(function () { $(this).remove(); }); }, 5000); var name = $('#mqc_loadconfig_form select option:contains("default")').text(); $('#mqc_loadconfig_form select option:contains("default")').remove(); name = name.replace(' [default]', ''); $('#mqc_loadconfig_form select').append('<option>'+name+'</option>').val(name); }); } catch (e) { console.log('Could not access localStorage'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function clearConfig() {\n config = null;\n}", "resetConfig()\n {\n this.config = this._defaultConfig();\n }", "resetConfig()\n {\n this.config = this._defaultConfig();\n }", "function resetConfig() {\n writeConfig(skyuxConfigOriginal);\n}", "static reset() {\n return config = defaultConfig;\n }", "function clearConfig() {\n var conf = J$.Config;\n conf.INSTR_READ = null;\n conf.INSTR_WRITE = null;\n conf.INSTR_GETFIELD = null;\n conf.INSTR_PUTFIELD = null;\n conf.INSTR_BINARY = null;\n conf.INSTR_PROPERTY_BINARY_ASSIGNMENT = null;\n conf.INSTR_UNARY = null;\n conf.INSTR_LITERAL = null;\n conf.INSTR_CONDITIONAL = null;\n}", "reset() {\n settings = $copy(defaults);\n }", "function reset() {\n oConfig = {};\n oConfig = jQuery.extend({}, {}, oConfigDefaults);\n aLastResults = [];\n }", "function reset() {\n settings = _Utils_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"].clone(defaultSettings);\n }", "function reset() {\n return settings(defaults());\n }", "function clearAll () {\n ninja_config.variables = {};\n ninja_config.rules = {};\n ninja_config.build_statements = [];\n ninja_config.default_build_statements = [];\n ninja_config.phony_rules = {};\n}", "static reset() {\n Preferences.preferenceCache = {};\n switch (RoKA.Utilities.getCurrentBrowser()) {\n case Browser.CHROME:\n chrome.storage.sync.remove(Object.keys(Preferences.defaults));\n break;\n }\n }", "static reset() {\n Preferences.preferenceCache = {};\n switch (RoKA.Utilities.getCurrentBrowser()) {\n case Browser.CHROME:\n chrome.storage.sync.remove(Object.keys(Preferences.defaults));\n break;\n }\n }", "function clear(cmd) {\n alloyCfg.global.theme = \"\";\n console.log(chalk.yellow(\"\\nClearing theme in config.json\\n\"));\n }", "clear() {\n this.data = DEFAULT_SETTINGS;\n return this.store.clear();\n }", "reset() {\r\n return this.config.initial = 'normal'\r\n }", "restoreDefault() {\n this.resetCCSetting();\n }", "clearProperties() {\n this._configuration._properties = []\n }", "reset() {\r\n this.state = this.config.initial;\r\n }", "function resetConfig() {\n $(\"#endpoint\").val(\"https://lrs.adlnet.gov/xapi/\");\n $(\"#username\").val(\"xapi-tools\");\n $(\"#password\").val(\"xapi-tools\");\n saveConfig();\n setupConfig();\n // Populate the table\n getStatementsWithSearch(null, 0);\n }", "function resetSettings() {\n let ns = Connector.getNamespace().toLowerCase();\n\n let removeSettings = st => {\n let us = st.userSettings;\n if (us) {\n let o = JSON.parse(us);\n delete o[ns];\n st.userSettings = JSON.stringify(o);\n }\n };\n\n // Remove both from local and session storage\n removeSettings(sessionStorage);\n try {\n removeSettings(localStorage);\n } catch(e) {}\n\n reloadPage();\n }", "function resetDefaultClick(event) {\n populateDOM(defaultAlgorithmConfiguration);\n notifier.queueMessage('valid', 'Configuration has been reset to default.', 1000);\n}", "function resetValues () {\n Preferences.set('visualCascade', false);\n Preferences.set('browsers', Preferences.defaults.browsers);\n\n init();\n }", "clear() {\n let me = this;\n\n me.value = me.clearToOriginalValue ? me.originalConfig.value : null;\n me.fire('clear');\n }", "function reset_() {\n init_();\n configSheet.getRange(ROW_ORIGIN_LI_ID,2).clearContent();\n configSheet.getRange(ROW_DESTINATION_LI,1,\n configSheet.getDataRange().getNumRows() - ROW_DESTINATION_LI + 1,1)\n .clearContent();\n clearOriginInfo_();\n clearDestinationInfo_(true);\n userProperties.setProperty('haschanges', 'false');\n}", "reset() {\r\n this.state = this.config.initial;\r\n }", "function resetSettings()\n {\n my.settings.unit = my.UNIT.MAIN\n }", "reset() {\r\n this.activeState = this.config.initial;\r\n }", "function reset() {\n compilers = u.filter(compilers, 'isDefault')\n macros = u.filter(macros, 'isDefault')\n }", "function clearRegistry() {\n setRegistry(makeRegistry());\n}", "function resetConfig() {\r\n\tGM_setValue(\"emule_config\",0);\r\n\tscriptConfig();\r\n}", "function clearRegistry () {\n setRegistry(makeRegistry())\n}", "function clearSettings() {\n localStorage.removeItem('emailSwitch');\n localStorage.removeItem('publickSwitch');\n localStorage.removeItem('timezone');\n}", "reset() {\r\n this.currentState = this.config.initial;\r\n }", "cleanConfig() {\n if (this.config) {\n this.config['file'] = null;\n this.config['descriptor'] = null;\n }\n }", "reset() {\n this.options = Object.create(null);\n }", "function resetDefault(){\n fillDefault();\n}", "reset() {\n this.options.input = this.defaults.input;\n this.options.output = this.defaults.output;\n this.options.getter = this.defaults.getter;\n this.options.setter = this.defaults.setter;\n }", "function reset(){\n // delete the resource names from resource select list\n cmNameSelect = document.getElementById(\"cmnames\");\n cmNameSelect.length=0;\n defaultOp = document.createElement(\"option\")\n defaultOp.innerHTML=\"Select Name\"\n cmNameSelect.appendChild(defaultOp)\n\n // delete the content of the textarea\n //document.getElementById(\"cm-data\").innerHTML=\"\";\n document.getElementById(\"cm-data\").value=\"\";\n\n // reset the namespace select\n document.getElementById(\"namespaces\").value=\"Select Namespace\"\n document.getElementById(\"delete-res-conf\").value =\"\"\n document.getElementById(\"resourcebody-delete-confirm\").style.display=\"none\"\n \n // select the configmaps by default\n document.getElementById(\"cmbutton\").classList.add(\"selected\")\n document.getElementById(\"secretbutton\").classList.remove(\"selected\")\n}", "function reset() {\n calculator.replace(calculator.getConfig().expression || defaultExpression);\n }", "function defaultControls() {\n controls.reset();\n }", "static resetCurrentConfig(data = null) {\n if (data !== null) {\n if (!data.error) {\n equipment.reload();\n } else {\n swal('Error!', data.error_msg, 'error');\n }\n } else {\n $(\".loading-screen\").show();\n let params = {\n 'CONFIG_ID': equipment.config\n };\n equipment.sendRequest('resetCurrentConfig', 'reset_config', params);\n }\n }", "function reset() {\n // noop\n }", "resetSettings() {\n RoKA.Preferences.reset();\n new RoKA.Options();\n RoKA.Preferences.set(\"lastRunVersion\", Options.getExtensionVersionNumber());\n }", "function reset()\n {\n Parameters.container = $.extend(true, {}, defaultContainer);\n Parameters.counter = 0;\n Parameters.timeId = null;\n }", "function clear (key, callback) {\n console.log(\"SETTINGS clear: \" + key);\n nconf.clear(escape(key), function () {\n nconf.save(function (err){\n if (err) {\n console.error(err.message);\n callback(err.message);\n return;\n } else {\n console.log('Configuration saved successfully in ' + currentSettingsFile);\n callback(undefined);\n }\n });\n });\n}", "function resetSettings() {\r\n\t\tvar keys = GM_listValues();\r\n\t\tfor (var i=0, key=null; key=keys[i]; i++) {\r\n\t\t\tGM_deleteValue(key);\r\n\t\t}\r\n\t}", "resetDefaults() {\n this.checked = false;\n this.blocked = false;\n this.start = false;\n this.inShortestPath = false;\n this.end = false;\n }", "function reset() { }", "function reset() {\r\n restore_options();\r\n update_status(\"已还原\");\r\n}", "function reset() {\r\n // noop\r\n }", "function resetValues() {\n\t\tsetValues( Defaults );\n\t\t\n\t\tpreferences.save();\n\t}", "static resetInitialState () {\n if (!DEFAULTS_DEFINED) return;\n _.each(_.keys(TESTS), type => {\n delete TESTS[type];\n });\n DEFAULTS_DEFINED = false;\n }", "clearAll() {\r\n \r\n // reset sample data\r\n this.sampleData = [];\r\n\r\n // reset distribution paramters\r\n this.mu = null;\r\n this.sigma = null;\r\n\r\n // update the plots\r\n this.ecdfChart.updatePlot([], []);\r\n this.histChart.updateChart([])\r\n \r\n }", "function setDefaults() {\n\tconfig.all = {\n\t\ttitleStyle: {\n\t\t\t'font-src': 'http://fonts.googleapis.com/css?family=Chango',\n\t\t\t'font-family': 'Chango, cursive',\n\t\t\t'color': '#000000',\n\t\t\t'font-size': '48px'\n\t\t},\n\t\ttimerStyle: {\n\t\t\t'background-color': '#32cd32',\n\t\t\t'font-src': 'http://fonts.googleapis.com/css?family=Chango',\n\t\t\t'font-family': 'Chango, cursive',\n\t\t\t'color': '#000000',\n\t\t\t'font-size': '48px'\n\t\t},\n\t\ttimers: [],\n\t\twindowSettings: {\n\t\t\twidth: 650,\n\t\t\theight: 350\n\t\t},\n\t\tusername: '',\n\t\tpassword: '',\n\t\tchannel: '',\n\t\tidInc: 0,\n\t\tactiveID: null\n\t}\n}", "reset() {\n Object.assign(this.propList, this.defaults);\n this.savePropFile();\n }", "function resetConfiguration(\n button,\n configurationForm,\n iconId,\n endpoint,\n totalSeconds,\n timeDisplay\n ) {\n button.addEventListener(\"click\", () => {\n configurationForm.reset();\n resetIcon(iconId);\n changeColor(endpoint, \"#f44e4e\");\n clearTimeout(repeatPing);\n resetClock(totalSeconds, timeDisplay);\n });\n }", "activateDefaultTheme() {\n this._reset();\n }", "static reset() {\n // Use the defaults\n Object.assign(Flags, FlagDefaults);\n // Overwrite the defaults with the testFlags.\n if (typeof global !== 'undefined') {\n Object.assign(Flags, global['testFlags']);\n }\n }", "reset() {\r\n this.prevState=this.currentState;\r\n this.currentState = this.config.initial;\r\n }", "clear() {\n return clearUserSettings();\n }", "function clearSettings() {\n localStorage.removeItem(\"emailToggle\");\n localStorage.removeItem(\"privacyToggle\");\n localStorage.removeItem(\"timezone\");\n}", "reset() {\r\n this._state = this._config.initial;\r\n this._history.push(this._state);\r\n }", "clear() {\n if (this.active) {\n this.active = false\n this.algedonodes.forEach(algedonode => algedonode.clear())\n this.activationSource = ActivationSources.NONE\n }\n }", "reset() {\n Utils.deepCopyProperties(this, defaultStyle, defaultStyle);\n }", "function logout() {\n _Configstore2.default.delete(Constants.CONF_APPS_DETAIL);\n _Configstore2.default.delete(Constants.CONF_APPS_LIST);\n _Configstore2.default.delete(Constants.CONF_PASSWORD);\n set(Constants.CONF_PASSWORD, '');\n _Configstore2.default.set(Constants.CONF_IS_LOGGED_IN, false);\n}", "function clear() {\n const env = getEmptySlateEnv();\n SLATE_ENV_VARS.forEach(key => process.env[key] = '');\n}", "function reset() {\n\tchrome.runtime.getBackgroundPage(background => {\n\t\tconst ExtensionOptions = background.ExtensionOptions;\n\t\tconst ChromeStorage = background.ChromeStorage;\n\n\t\tExtensionOptions.onChange.once(load);\n\n\t\tChromeStorage.clear().then(() => {\n\t\t\tshowMessage('Settings reset!');\n\t\t});\n\t});\n}", "function reset() {\n if (_config) {\n var map = _config.getMap();\n if (map) {\n // Notice, map needs to be destroyed\n // before container is removed from DOM.\n map.destroy();\n }\n }\n\n // Clear possible timeouts.\n while (_resetClearTimeouts.length) {\n clearTimeout(_resetClearTimeouts.pop());\n }\n\n // Empty arrays.\n _animationEventsListeners = [];\n _loadingLayers = [];\n\n // Reset member variables.\n _requestAnimationTime = undefined;\n _currentTime = undefined;\n _legendResize = undefined;\n\n // Reset the DOM structure.\n resetStructure();\n resetCtrl();\n\n // Reset options and configurations.\n _config = undefined;\n _options = undefined;\n }", "function reset() {\n // noop\n location.reload();\n }", "function clear() {\r\n gL10nData = {};\r\n gTextData = '';\r\n gLanguage = '';\r\n // TODO: clear all non predefined macros.\r\n // There's no such macro /yet/ but we're planning to have some...\r\n }", "static reset() {\n consumerToFeatureMap.clear();\n consumerToDefaultFeatureMap.clear();\n }", "static reset() {\n consumerToFeatureMap.clear();\n consumerToDefaultFeatureMap.clear();\n }", "resetSettings(state) {\n // Reset settings\n for (const key in DEFAULT_SETTINGS) {\n if (!DEFAULT_SETTINGS.hasOwnProperty(key)) continue\n if (state[key] == null || state[key] == undefined) continue\n state[key] = DEFAULT_SETTINGS[key]\n }\n\n // Reset dashboard settings\n for (let c of state.containers) {\n if (c.panel === 'TabsPanel') {\n c.lockedTabs = false\n c.lockedPanel = false\n c.proxy = null\n c.proxified = false\n c.sync = false\n c.noEmpty = false\n c.lastActiveTab = -1\n }\n }\n }", "reset() {\n for (const declaration of this.getDeclarations()) {\n this.setOptionValueToDefault(declaration);\n }\n this._setOptions.clear();\n this._compilerOptions = {};\n this._fileNames = [];\n }", "function clearEventConfig() {\n eventConfig.innerHTML = '';\n}", "function clearWorkspace() {\n setNodes([]);\n setLines([]);\n }", "function resetBlueprintSettings()\n{\n\t//Assign default values into defaults form.\n\tdocument.getElementById('FontSize').value = nDefaultFontSize;\n\tdocument.getElementById('ColumnWidth').value = nDefaultColumnWidth;\n\tdocument.getElementById('ColumnGutter').value = nDefaultColumnGutter;\n\tdocument.getElementById('Columns').value = nDefaultColumns;\n\tdocument.getElementById('MaxGridHang').value = nDefaultMaxGridHang;\n\tdocument.getElementById('MaxGridLift').value = nDefaultMaxGridLift;\n\tdocument.getElementById('MaxGridPress').value = nDefaultMaxGridPress;\n\tdocument.getElementById('MaxGridStretch').value = nDefaultMaxGridStretch;\n\n\treturn;\n}", "function reset() {\n let da = new VMN.DAPI();\n da.db.cleanDB();\n da.cleanLog();\n VMN.DashCore.cleanStack();\n}", "static empty() {\n return new Config({\n extends: [],\n rules: {},\n plugins: [],\n transform: {},\n });\n }", "static setConfig(defaultConfig) {\n FCC.config = FCC.utils.merge({}, FCC.config, defaultConfig);\n }", "reset(){\n this.enable();\n this.init();\n this.buildAll();\n }", "function clearSettingsFile() {\n fs.writeFileSync('json/logins.json', '');\n}", "clear() {\n this.user = '';\n this.data = '';\n this.admin = false;\n ls.remove('session');\n }", "function reset()\n\t{\n\t\tsetValue('')\n\t}", "function reset() {\n clear();\n initialize(gameData);\n }", "function clear () {\n keys().each(function (cookie) {\n remove(cookie);\n });\n }", "function clearSettings() {\n writeCookie('canitube_Settings_Performance', 'smooth', 1000000);\n writeCookie('canitube_Settings_Display', 'simple', 1000000);\n}", "function reset() {\n\n }", "function reset() {\n\t\tdictionary = {};\n\t\tradioNames = [];\n\t}", "function reset() {\n if (_config) {\n var map = _config.getMap();\n if (map) {\n // Notice, map needs to be destroyed\n // before container is removed from DOM.\n map.destroy();\n }\n }\n\n // Clear possible timeouts.\n while (_resetClearTimeouts.length) {\n clearTimeout(_resetClearTimeouts.pop());\n }\n\n // Empty arrays.\n _animationEventsListeners = [];\n _loadingLayers = [];\n\n // Reset member variables.\n _continueAnimationWhenLoadComplete = false;\n _refreshDefaultCenter = undefined;\n _refreshDefaultZoomLevel = undefined;\n _refreshDefaultLayerVisibilities = undefined;\n _requestAnimationTime = undefined;\n _currentTime = undefined;\n _legendResize = undefined;\n _pendingLegendLayers = [];\n\n // Reset the DOM structure.\n resetStructure();\n resetCtrl();\n\n // Reset options and configurations.\n _config = undefined;\n _options = undefined;\n }", "function resetAll(){\n\t\t\t\tlogger.debug(\"Resetting all variables\");\n\t\t\t\tisAudioOn = true;\n\t\t\t\tlpChatFontSize = 13;\n\t\t\t\tchatWinCloseable = true;\n\t\t\t\tlpInteractiveChat = false;\n\t\t\t\tlpVisitorTypingMsg = false;\n\t\t\t \tofflineSurveyNameOverride = \"\";\n\t\t\t\tpreChatSurveyNameOverride = \"\";\n\t\t\t\texitSurveyNameOverride = \"\";\n\t\t\t\tscreenState = '';\n\t\t\t\twindowState = windowStateType.READY;\n\t\t\t\tchatInstanceReady = false;\n\t\t\t\tcollaborationInstanceReady=false;\n\t\t\t}", "reset() {\n this.resetFields();\n this.resetStatus();\n }", "function clean_cfg() {\n let i = 0;\n while(i<cfg.length){\n if(clean_helper(i))\n cfg.splice(i,1);\n else\n i++;\n }\n}", "reset() {\n this.api.clear();\n this.api = null;\n this.fieldDescriptor.clear();\n this.resetForm();\n }", "clearAll() {\n\t\tthis.vertexMgmt.clearAll()\n\t\tthis.boundaryMgmt.clearAll()\n\n\t\tsetSizeGraph({ width: DEFAULT_CONFIG_GRAPH.MIN_WIDTH, height: DEFAULT_CONFIG_GRAPH.MIN_HEIGHT }, this.graphSvgId)\n\t}", "function reset() {\n attachSource(null);\n attachView(null);\n protectionData = null;\n protectionController = null;\n }", "clear() {}", "clear() {}", "clear() {}" ]
[ "0.7762206", "0.77241397", "0.77241397", "0.74209386", "0.7419752", "0.72771007", "0.70891136", "0.70038307", "0.69577175", "0.6948397", "0.67853403", "0.6777378", "0.6777378", "0.6751369", "0.6686306", "0.6678968", "0.6643902", "0.65610236", "0.6545301", "0.65019447", "0.64402056", "0.6420061", "0.6414367", "0.64124113", "0.63831306", "0.63510156", "0.6346153", "0.63384587", "0.63382053", "0.6315367", "0.63130975", "0.6303742", "0.6257003", "0.62115765", "0.62053764", "0.6195986", "0.6190899", "0.61783403", "0.61769694", "0.61664104", "0.61565495", "0.6154061", "0.61452574", "0.6144563", "0.6139397", "0.61320496", "0.61292887", "0.6108226", "0.610468", "0.609414", "0.6090955", "0.60761374", "0.6075838", "0.6075578", "0.60648775", "0.60437983", "0.60369784", "0.6020654", "0.60153806", "0.60144913", "0.6014306", "0.60084784", "0.60069704", "0.6006329", "0.5999187", "0.5980422", "0.59765553", "0.5971999", "0.5971248", "0.596821", "0.59541273", "0.59368753", "0.59368753", "0.5933472", "0.5931512", "0.5922877", "0.5919985", "0.59138536", "0.5911858", "0.5902837", "0.5898098", "0.5882468", "0.5868649", "0.58620495", "0.586102", "0.58572906", "0.58450115", "0.58311623", "0.58248836", "0.58243406", "0.5811134", "0.580904", "0.5806082", "0.5804718", "0.5803992", "0.58009076", "0.5793004", "0.57925284", "0.57925284", "0.57925284" ]
0.7693023
3
LOAD TOOLBOX SAVE NAMES
function populate_mqc_saveselect(){ var default_config = ''; try { var local_config = localStorage.getItem("mqc_config"); if(local_config !== null && local_config !== undefined){ local_config = JSON.parse(local_config); default_name = false; for (var name in local_config){ if (local_config[name]['default']) { console.log('Loaded default config!'); load_mqc_config(name); default_config = name; name = name+' [default]'; default_name = name; } $('#mqc_loadconfig_form select').append('<option>'+name+'</option>').val(name); } // Set the selected select option if(default_name !== false){ $('#mqc_loadconfig_form select option:contains("'+default_name+'")').prop('selected',true); } else { $('#mqc_loadconfig_form select option:first').prop('selected',true); } } } catch(e){ console.log('Could not load local config: '+e); $('#mqc_saveconfig').html('<h4>Error accessing localStorage</h4>'+ '<p>This feature uses a web browser feature called "localStorage". '+ "We're not able to access this at the moment, which probably means that "+ 'you have the <em>"Block third-party cookies and site data"</em> setting ticked (Chrome) '+ 'or equivalent in other browsers.</p><p>Please '+ '<a href="https://www.google.se/search?q=Block+third-party+cookies+and+site+data" target="_blank">change this browser setting</a>'+ ' to save MultiReport report configs.</p>'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Save() {\n win.name = JSON.stringify(store);\n }", "static get dialogRegisterTable() { \n return ToolDlg.nameRegister;\n }", "function onSellectMenuChange() {\n chrome.storage.sync.get(null, function(items) {\n // var keys = Object.keys(items);\n const curkey = document.getElementById('select').value;\n console.log('curkey : ' + curkey);\n if (curkey.length > 0) {\n const curitem = items[curkey];\n document.getElementById('name').value = curkey;\n document.getElementById('regPattForURL').value = curitem.regPattForURL/*.replace(/\\\\/g, '\\\\$&')*/;\n document.getElementById('script').value = curitem.script/*.replace(/\\\\/g, '\\\\$&')*/;\n localStorage.setItem('curkey', curkey);\n console.log(\"set current '\" + curkey + \"'\");\n }\n\n const isSystemData = (curkey == systemDataKey);\n document.getElementById('name').disabled = isSystemData;\n document.getElementById('remove').disabled = isSystemData;\n // document.getElementById(\"import\").disabled = !(isSystemData);\n // document.getElementById(\"export\").disabled = !(isSystemData);\n\n });\n\n}", "function getSavedLSystem() {\n let ls = JSON.parse(localStorage.getItem('SavedLSystem'));\n for (const i in ls) {\n Lsystems[i] = new LSystem(ls[i]);\n selectmenu[i] = i;\n }\n gui.remove(dropdown)\n dropdown = gui.add(config, 'current', selectmenu);\n}", "function loadLabels() {\r\n return { 'en' : { \"DOCK-GRID\" : \"Dock grid\"\r\n , \"DOCKRIGHT\" : \"Dock grid on right side\"\r\n , \"DOCKMID\" : \"Dock grid in middle\"\r\n , \"PREVPAGE\" : \"Go to previous page\"\r\n , \"NEXTPAGE\" : \"Go to next page\"\r\n , \"SHORTCUTS\" : \"Customize shortcuts\"\r\n , \"NOTOOLTIPS\" : \"Disable tooltips\"\r\n , \"TOOLTIPS\" : \"Enable tooltips\"\r\n , \"PRETTYGRID\" : \"Grid background image\"\r\n , \"SETUP\" : \"Setup\"\r\n , \"CONFIGURE\" : \"Configure\"\r\n , \"BUG\" : \"Report bug\"\r\n , \"CUSTOMIZE\" : \"Customize\"\r\n , \"QUICK-CTRL\" : \"Quick Controls\"\r\n\r\n , \"BTN-NEW\" : \"New\"\r\n , \"BTN-SAVE\" : \"Save\"\r\n , \"BTN-APPLY\" : \"Apply\"\r\n , \"BTN-OK\" : \"OK\"\r\n , \"BTN-CANCEL\" : \"Cancel\"\r\n , \"BTN-DELETE\" : \"Delete\"\r\n , \"BTN-CLEAR\" : \"Clear\"\r\n , \"BTN-EXPORT\" : \"Export\"\r\n , \"BTN-IMPORT\" : \"Import\"\r\n , \"BTN-TGL-DAY-MOON\" : \"Toggle day/night mode\"\r\n , \"BTN-SWAP-GRID-PANE\" : \"Swap grid position (middle/right)\"\r\n\r\n , \"LBL-STYLE\" : \"Theme\"\r\n , \"LBL-STYLE-DEFAULT\" : \"Default themes\"\r\n , \"LBL-STYLE-GALLERY\" : \"Themes Gallery\"\r\n , \"LBL-STYLE-CUSTOM\" : \"Customize theme\"\r\n , \"LBL-STYLE-EXPORT\" : \"Export theme\"\r\n , \"LBL-STYLE-IMPORT\" : \"Import theme\"\r\n , \"LBL-XPLUG\" : \"Xplug\"\r\n , \"LBL-XPLUG-SETTINGS\" : \"Xplug settings\"\r\n , \"LBL-LEFT\" : \"Left\"\r\n , \"LBL-MIDDLE\" : \"Middle\"\r\n , \"LBL-RIGHT\" : \"Right\"\r\n , \"LBL-NAME\" : \"Name\"\r\n , 'LBL-APEX-VERSION' : \"APEX Version\"\r\n , \"LBL-DARK-STYLE\" : \"Night Mode\"\r\n , \"LBL-CRNTLY-ACTIVE\" : \"Currently Active\"\r\n , \"LBL-PROTECTED\" : \"Protected\"\r\n , \"LBL-SHOW-GRID\" : \"Show Grid\"\r\n , \"LBL-COMPATIBLE\" : \"Compatible\"\r\n , \"LBL-COLOR\" : \"Color\"\r\n , \"LBL-IDENTIFICATION\" : \"Identification\"\r\n , \"LBL-CUST-COLORS\" : \"Customize Colors\"\r\n , \"LBL-CUST-CSS\" : \"Custom CSS\"\r\n , \"LBL-ADVANCED\" : \"Advanced\"\r\n , \"LBL-EXPERIMENTAL\" : \"Experimental\"\r\n , \"LBL-SHOW-BUTTONS\" : \"Buttons\"\r\n , \"LBL-SHOW-APPID\" : \"Show [app:page] info in window title\"\r\n , \"LBL-ENABLE-PAGEDET\" : \"Enable 'Page Details' tab in sidekick pane\"\r\n , \"LBL-ENABLE-MARKDOWN\" : \"Enable markdown format\"\r\n , \"LBL-DAYLIGHT\" : \"Day mode\"\r\n , \"LBL-MOONLIGHT\" : \"Night mode\"\r\n , \"LBL-DEFAULT-STYLES\" : \"Default Themes\"\r\n , \"LBL-ADD-SIDEKICK\" : \"Enable Sidekick\"\r\n , \"LBL-CLOSE\" : \"Close\"\r\n , \"LBL-HIDE\" : \"Hide\"\r\n , \"LBL-COLLAPSE\" : \"Collapse\"\r\n , \"LBL-EXPAND\" : \"Expand\"\r\n , \"LBL-LANGUAGE\" : \"Language\"\r\n , \"LBL-PRESENTATION-MODE\" : \"Presentation mode\"\r\n , \"LBL-FACTORY-RESET\" : \"Restore factory settings\"\r\n\r\n , \"TAB-PB-DOCU\" : \"Page Details\"\r\n , \"TAB-PB-MESSAGES\" : \"Messages\"\r\n , \"TAB-PB-SEARCH\" : \"Search\"\r\n , \"TAB-PB-CONSOLE\" : \"Console\"\r\n , \"MSG-TT-ENABLE-OK\" : \"Tooltips are enabled.\"\r\n , \"MSG-TT-DISABLE-OK\" : \"Tooltips are disabled.\"\r\n , \"MSG-TT-ENABLE-NOK\" : \"Could not enable tooltips.\"\r\n , \"MSG-TT-DISABLE-NOK\" : \"Could not disable tooltips.\"\r\n , \"MSG-ERR-STORAGE-NOK\" : \"localStorage not enabled in browser. Xplug preferences can't be saved/retrieved. Please check!\"\r\n , \"MSG-STYLE-EXPORT\" : \"Please mark, copy and save the Xplug JSON code in a text file and press 'OK'\"\r\n , \"MSG-STYLE-IMPORT\" : \"Please copy the saved Xplug JSON code into the below field and press 'OK'\"\r\n , \"MSG-STYLE-JSON-OK\" : \"JSON code is valid and compatible with Xplug.\"\r\n , \"MSG-STYLE-JSON-NOK\" : \"JSON code is invalid. Please check.\"\r\n , \"MSG-STYLE-JSON-FAIL\" : \"JSON code is valid, but possible incompatible with Xplug. Please check.\"\r\n , \"MSG-STYLE-IS-DRAFT\" : \"Page Designer theme can't be saved. Please first change the theme name.\"\r\n , \"MSG-STYLE-CSS-COLOR\" : \"Use %%C<num>%% to reference custom colors 1-10\"\r\n , \"MSG-RELOAD-LANG\" : \"Xplug language changed. Please reload page to activate.\"\r\n , \"MSG-FACTORY-DONE\" : \"Xplug factory settings restored. Please reload page to activate.\"\r\n },\r\n\r\n 'de' : { \"DOCK-GRID\" : \"Grid positionieren\"\r\n , \"DOCKRIGHT\" : \"Grid rechts außen positionieren\"\r\n , \"DOCKMID\" : \"Grid in der Mitte positionieren\"\r\n , \"PREVPAGE\" : \"Gehe zu vorherige Seite\"\r\n , \"NEXTPAGE\" : \"Gehe zu nächste Seite\"\r\n , \"SHORTCUTS\" : \"Tastenkürzel einrichten\"\r\n , \"NOTOOLTIPS\" : \"Tooltips deaktivieren\"\r\n , \"TOOLTIPS\" : \"Tooltips aktivieren\"\r\n , \"PRETTYGRID\" : \"Hintergrundbild\"\r\n , \"SETUP\" : \"Setup\"\r\n , \"CONFIGURE\" : \"Konfigurieren\"\r\n , \"BUG\" : \"Bug melden\"\r\n , \"CUSTOMIZE\" : \"Anpassen\"\r\n , \"QUICK-CTRL\" : \"Schnelleinstellungen\"\r\n\r\n , \"BTN-NEW\" : \"Neu\"\r\n , \"BTN-SAVE\" : \"Speichern\"\r\n , \"BTN-APPLY\" : \"Anwenden\"\r\n , \"BTN-OK\" : \"OK\"\r\n , \"BTN-CANCEL\" : \"Abbrechen\"\r\n , \"BTN-DELETE\" : \"Löschen\"\r\n , \"BTN-CLEAR\" : \"Leeren\"\r\n , \"BTN-EXPORT\" : \"Exportieren\"\r\n , \"BTN-IMPORT\" : \"Importieren\"\r\n , \"BTN-TGL-DAY-MOON\" : \"Zwischen Tageslicht / Mondlicht-Modus hin und herschalten.\"\r\n , \"BTN-SWAP-GRID-PANE\" : \"Ansicht umschalten\"\r\n\r\n , \"LBL-STYLE\" : \"Theme\"\r\n , \"LBL-STYLE-DEFAULT\" : \"Standardtheme\"\r\n , \"LBL-STYLE-GALLERY\" : \"Theme Gallerie\"\r\n , \"LBL-STYLE-CUSTOM\" : \"Theme anpassen\"\r\n , \"LBL-STYLE-EXPORT\" : \"Theme exportieren\"\r\n , \"LBL-STYLE-IMPORT\" : \"Theme importieren\"\r\n , \"LBL-XPLUG\" : \"Xplug\"\r\n , \"LBL-XPLUG-SETTINGS\" : \"Xplug Einstellungen\"\r\n , \"LBL-LEFT\" : \"Links\"\r\n , \"LBL-MIDDLE\" : \"Mittig\"\r\n , \"LBL-RIGHT\" : \"Rechts\"\r\n , \"LBL-NAME\" : \"Name\"\r\n , 'LBL-APEX-VERSION' : \"APEX Version\"\r\n , \"LBL-DARK-STYLE\" : \"Dunkler Stil\"\r\n , \"LBL-CRNTLY-ACTIVE\" : \"Ist im Moment aktiv\"\r\n , \"LBL-PROTECTED\" : \"Gesperrt\"\r\n , \"LBL-SHOW-GRID\" : \"Grid anzeigen\"\r\n , \"LBL-COMPATIBLE\" : \"Kompatibel\"\r\n , \"LBL-COLOR\" : \"Farbe\"\r\n , \"LBL-IDENTIFICATION\" : \"Identifizierung\"\r\n , \"LBL-CUST-COLORS\" : \"Farben anpassen\"\r\n , \"LBL-CUST-CSS\" : \"Custom CSS\"\r\n , \"LBL-ADVANCED\" : \"Fortgeschritten\"\r\n , \"LBL-EXPERIMENTAL\" : \"Experimentel\"\r\n , \"LBL-SHOW-BUTTONS\" : \"Schaltflächen anzeigen\"\r\n , \"LBL-SHOW-APPID\" : \"Zeige [app:page] info in Fenstertitel\"\r\n , \"LBL-ENABLE-PAGEDET\" : \"Aktiviere Reiter 'Seitendetails' in Sidekick bereich\"\r\n , \"LBL-ENABLE-MARKDOWN\" : \"Aktiviere markdown Format\"\r\n , \"LBL-DAYLIGHT\" : \"Tagmodus\"\r\n , \"LBL-MOONLIGHT\" : \"Nachtmodus\"\r\n , \"LBL-DEFAULT-STYLES\" : \"Standardthemes\"\r\n , \"LBL-ADD-SIDEKICK\" : \"Sidekick einschalten\"\r\n , \"LBL-CLOSE\" : \"Schliessen\"\r\n , \"LBL-HIDE\" : \"Ausblenden\"\r\n , \"LBL-COLLAPSE\" : \"Zuklappen\"\r\n , \"LBL-EXPAND\" : \"Aufklappen\"\r\n , \"LBL-LANGUAGE\" : \"Sprache\"\r\n , \"LBL-PRESENTATION-MODE\" : \"Präsentationsmodus\"\r\n , \"LBL-FACTORY-RESET\" : \"Werkseinstellungen wiederherstellen\"\r\n\r\n , \"TAB-PB-DOCU\" : \"Details der Seite\"\r\n , \"TAB-PB-MESSAGES\" : \"Nachrichten\"\r\n , \"TAB-PB-SEARCH\" : \"Suchen\"\r\n , \"TAB-PB-CONSOLE\" : \"Konsole\"\r\n , \"MSG-TT-ENABLE-OK\" : \"Tooltips sind aktiviert.\"\r\n , \"MSG-TT-DISABLE-OK\" : \"Tooltips sind deaktiviert.\"\r\n , \"MSG-TT-ENABLE-NOK\" : \"Konnte Tooltips nicht aktivieren.\"\r\n , \"MSG-TT-DISABLE-NOK\" : \"Konnte Tooltips nicht deaktivieren.\"\r\n , \"MSG-ERR-STORAGE-NOK\" : \"localStorage nicht aktiviert im Browser. Xplug Einstellungen können nicht gespeichert/geladen werden. Bitte prüfen!\"\r\n , \"MSG-STYLE-EXPORT\" : \"Bitte markieren, kopieren und Speichern Sie den Xplug JSON code als Textdatei und drücken Sie danach 'OK'\"\r\n , \"MSG-STYLE-IMPORT\" : \"Bitte fügen Sie den gespeicherten Xplug JSON hier ein und drücken Sie 'OK'\"\r\n , \"MSG-STYLE-JSON-OK\" : \"JSON code is gültig und kompatibel mit Xplug.\"\r\n , \"MSG-STYLE-JSON-NOK\" : \"JSON code ist ungültig. Bitte prüfen.\"\r\n , \"MSG-STYLE-JSON-FAIL\" : \"JSON code ist gültig, aber ggf. nicht kompatibel mit Xplug. Bitte prüfen.\"\r\n , \"MSG-STYLE-IS-DRAFT\" : \"Page Designer Theme kann nicht gespeichert werden. Bitte zuerst Themenamen ändern.\"\r\n , \"MSG-STYLE-CSS-COLOR\" : \"Benutze %%C<num>%% um Farben 1-10 zu referenzieren\"\r\n , \"MSG-RELOAD-LANG\" : \"Xplug Spracheinstellungen geändert. Bitte Seite neu laden um zu aktivieren.\"\r\n , \"MSG-FACTORY-DONE\" : \"Xplug Werkeinstellungen wiederhergestellt.\\nBitte Site neu laden um zu aktivieren.\"\r\n },\r\n };\r\n } // loadLabels", "function load_from_box() {\n $('#json_editor').html('');\n json_editor('json_editor', $('#jsoninput').val());\n\n // add the jquery editing magic\n apply_editlets();\n }", "function saveSettings(){\n\n showMenu();\n\n for (key in settingTmp){\n if (settingTmp.hasOwnProperty(key)){\n setting[key] = settingTmp[key];\n }\n }\n\n PopupModule.hide();\n }", "_updateTextValues() {\n const that = this,\n buttons = ['browse', 'uploadAll', 'cancelAll', 'pauseAll'];\n\n for (let i = 0; i < buttons.length; i++) {\n const localizationString = buttons[i],\n buttonName = localizationString + 'Button';\n\n that.$[buttonName].innerHTML = that.localize(localizationString);\n }\n\n for (let i = 0; i < that._selectedFiles.length; i++) {\n const item = that._items[i];\n\n item.querySelector('.jqx-item-upload-button').title = that.localize('uploadFile');\n item.querySelector('.jqx-item-cancel-button').title = that.localize('cancelFile');\n item.querySelector('.jqx-item-pause-button').title = that.localize('pauseFile');\n }\n }", "function save(title){\n var names = [];\n model.selected.map(function(selected){\n names.push(selected.name);\n });\n\n\n storageService.setItem(title,names);\n\n }", "function visualiserEditeurControls(){\n //\"lbledPays\",\"cboxedPays\",\n var vControles = [\n \"lbledNomEditeur\", \"txtedNomEditeur\",\n \"lbledVille\", \"btnedaddVill\", \"cboxedVill\",\n \"lbledSaveEdit\",\"btnedSaveEdit\"//,\n //\"lbledaddVille\" , \"txtedaddVille\"\n ];\n visualiserControls(\"btnedaddEdit\",vControles,\"cboxedEdit\");\n} // end visualiser", "function setupHotbox() {\n hotbox.state(\"main\").button({\n position: \"center\",\n label: \"编辑\",\n key: \"F2\",\n enable: function() {\n return minder.queryCommandState(\"text\") != -1;\n },\n action: editText\n });\n }", "getNameSelected() {\n var option = this.saveView.existingSceneSelect.options[this.saveView.existingSceneSelect.selectedIndex];\n this.saveView.inputLocalStorage.value = option.value;\n }", "function saveOptions() {\n var dictionaries = JSON.parse(window.localStorage.getItem('dictionaries'));\n\n // Saves custom dictionries to local storage(if any).\n if (tempCusDictionaries.length > 0) {\n if (dictionaries) {\n dictionaries = dictionaries.concat(tempCusDictionaries);\n window.localStorage.setItem('dictionaries', JSON.stringify(dictionaries));\n } else {\n window.localStorage.setItem('dictionaries', JSON.stringify(tempCusDictionaries));\n }\n tempCusDictionaries.splice(0, tempCusDictionaries.length);\n }\n\n showUserMessages('save_status', 0.5, 'saveStatus');\n// $('save_button').disabled = true;\n}", "function save_options() {\n\n forEachField(function(id){\n localStorage[id] = $('#' + id).val();\n });\n\n $(\"#save_text\").html('Saving...').fadeIn(300);\n\n F.getCode(function(){\n $(\"#save_text\").html('Saved').fadeOut(2000);\n });\n}", "function InsertButtonsToToolBar()\n{\n//Strike-Out Button\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png\",\n \"speedTip\": \"Strike\",\n \"tagOpen\": \"<s>\",\n \"tagClose\": \"</s>\",\n \"sampleText\": \"Strike-through text\"}\n//Line break button\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png\",\n \"speedTip\": \"Line break\",\n \"tagOpen\": \"<br />\",\n \"tagClose\": \"\",\n \"sampleText\": \"\"}\n//Superscript\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png\",\n \"speedTip\": \"Superscript\",\n \"tagOpen\": \"<sup>\",\n \"tagClose\": \"</sup>\",\n \"sampleText\": \"Superscript text\"}\n//Subscript\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png\",\n \"speedTip\": \"Subscript\",\n \"tagOpen\": \"<sub>\",\n \"tagClose\": \"</sub>\",\n \"sampleText\": \"Subscript text\"}\n//Small Text\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png\",\n \"speedTip\": \"Small\",\n \"tagOpen\": \"<small>\",\n \"tagClose\": \"</small>\",\n \"sampleText\": \"Small Text\"}\n//Comment\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png\",\n \"speedTip\": \"Insert hidden Comment\",\n \"tagOpen\": \"<!-- \",\n \"tagClose\": \" -->\",\n \"sampleText\": \"Comment\"}\n//Gallery\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png\",\n \"speedTip\": \"Insert a picture gallery\",\n \"tagOpen\": \"\\n<gallery>\\n\",\n \"tagClose\": \"\\n</gallery>\",\n \"sampleText\": \"Image:Example.jpg|Caption1\\nImage:Example.jpg|Caption2\"}\n//Block Quote\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png\",\n \"speedTip\": \"Insert block of quoted text\",\n \"tagOpen\": \"<blockquote>\\n\",\n \"tagClose\": \"\\n</blockquote>\",\n \"sampleText\": \"Block quote\"}\n// Table\nmwCustomEditButtons[mwCustomEditButtons.length] = {\n \"imageFile\": \"http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png\",\n \"speedTip\": \"Insert a table\",\n \"tagOpen\": '{| class=\"wikitable\"\\n|-\\n',\n \"tagClose\": \"\\n|}\",\n \"sampleText\": \"! header 1\\n! header 2\\n! header 3\\n|-\\n| row 1, cell 1\\n| row 1, cell 2\\n| row 1, cell 3\\n|-\\n| row 2, cell 1\\n| row 2, cell 2\\n| row 2, cell 3\"}\n}", "function save_saves(saves_tab){\n var save_str = '';\n $.each(bagues_saves, function(index, value){\n save_str += value.name + '&&' + value.date + '&&' + value.type_configurateur + '&&' + (value.options).join(\",\") + ';;';\n });\n\n // supprime les 2 derniers ';;'\n if (save_str.length > 0)\n save_str.substring(0, save_str.length - 2);\n\n // enregistre les sauvegardes\n window.localStorage.setItem(\"sauvegardes_bagues\", save_str);\n}", "function onInit() {\n vm.addFolderText = i18n.get(\"file-open-save-plugin.app.add-folder.button\");\n vm.removeText = i18n.get(\"file-open-save-plugin.app.delete.button\");\n }", "function setSettingsLoadedKW() {\n logger.debug(\"setSettingsLoadedKW\");\n $(\"#KW-selector\").select2({\n placeholder: i18n.__('select2-kw-add-ph')\n });\n $('#KW-selector').on(\"select2:select\", function (e) {\n //NEEDSTOBECHANGED save project to temp here\n // -> is saved in another onClick listener, specified in init.js\n\n //console.log(e);\n //console.log(this);\n //var kw_value = e.params.data.id;\n //var kw_text = e.params.data.text;\n\n var kw_text = e.params.data.id; // en-basic-13\n var kw_value = kw_text.substring(3, kw_text.length);// basic-13\n var kw_title = e.params.data.text; // Name is This\n\n //logger.debug(\"VALUE: \"+kw_value + \" # TEXT: \" + kw_text);\n $('#KW-selector').val(null).trigger(\"change\");\n $(\"#KW-selector option\").each(function (i) {\n if ($(this).val().substring(3, $(this).val().length) === kw_value) {\n $(this).attr('disabled', 'disabled');\n }\n });\n\n var li_string = document.createTextNode(kw_title);\n var li_node = document.createElement(\"li\");\n var span_node = document.createElement(\"span\");\n\n li_node.appendChild(li_string);\n span_node.innerHTML = \"&times;\";\n\n $(li_node).attr({\n class: \"w3-display-container\",\n \"data-value\": kw_text\n });\n\n $(span_node).attr({\n style: \"height: 100%;\",\n class: \"w3-button w3-display-right\",\n onmouseover: \"$(this.parentElement).addClass('w3-hover-blue');\",\n onmouseout: \"$(this.parentElement).removeClass('w3-hover-blue');\",\n onclick: \"$(\\\"#KW-selector option\\\").each(function(i){if($(this).val().substring(3, $(this).val().length) === \\\"\" + kw_value + \"\\\"){$(this).removeAttr('disabled', 'disabled')}}); $(\\\"#KW-selector\\\").select2({placeholder: i18n.__('select2-kw-add-ph')}); $(this.parentElement.parentElement).trigger({type: 'deleted', params : {data: '\" + kw_text + \"'}}); $(this.parentElement).remove();\"\n });\n\n li_node.appendChild(span_node);\n\n $('#file-chosen-kw-ul').append(li_node);\n\n $(\"#KW-selector\").select2({\n placeholder: i18n.__('select2-kw-add-ph')\n });\n });\n $('#KW-selector').prop(\"disabled\", true);\n}", "function nameToSaveDropbox(obj) {\r\n $(\"#dropboxFileName\").val(\r\n $($(obj).children('ul').children('li')[0]).text()\r\n );\r\n}", "function calibration_menu_load()\n{\n inc_busy();\n var selBox = document.getElementById(\"CalibrationFileList\");\n var existingFiles = callback_get(\"/API/Calibration.getAll\");\n selBox.innerHTML = \"\";\n var list = existingFiles.split(\"\\n\");\n for (var i = 0; i< list.length -1; i++)\n {\n filename = list[i].split(\",\")[0];\n title = list[i].split(\",\")[1];\n var option = document.createElement(\"option\");\n option.text = title;\n option.value = filename;\n selBox.add(option,selBox[1]);\n }\n var o1 = document.createElement(\"option\");\n o1.text = \"-----------------------------\";\n o1.value = \"None\";\n selBox.add(o1,selBox[0]);\n var o2 = document.createElement(\"option\");\n o2.text = \"Create New\";\n o2.value = \"Action_New\";\n selBox.add(o2,selBox[0]);\n var o3 = document.createElement(\"option\");\n o3.text = \"Select A File To Load:\";\n o3.value = \"None\";\n selBox.add(o3,selBox[0]);\n dec_busy();\n}", "function saveSettings() {\n\n chrome.storage.local.set({\n\n words: wordArray,\n pages: pagesArray\n\n }, function() {\n\n \t//**********************************\n\t// OPTIONS SAVED INTO LOCAL STORAGE\n\t//**********************************\n\n });\n\n}", "function guestInfo(){\nxapi.command('UserInterface Extensions Panel Save', {\n PanelId: 'guest_info'\n },\n `<Extensions>\n <Version>1.5</Version>\n <Panel>\n <Type>InCall</Type>\n <Icon>${adhocUI_Details.buttonIcon}</Icon>\n <Order>2</Order>\n <Color>${adhocUI_Details.buttonColor}</Color>\n <Name>${adhocUI_Details.buttonText.call}</Name>\n <Page>\n <Name>${callService_Details.onCallTitle}</Name>\n <Row>\n <Name>Row</Name>\n <Widget>\n <WidgetId>info_pane_text_2</WidgetId>\n <Name>${callService_Details.row_1}</Name>\n <Type>Text</Type>\n <Options>size=4;fontSize=normal;align=left</Options>\n </Widget>\n </Row>\n <Row>\n <Name>Row</Name>\n <Widget>\n <WidgetId>join_comp_text_2</WidgetId>\n <Name>${callService_Details.row_2}</Name>\n <Type>Text</Type>\n <Options>size=4;fontSize=small;align=left</Options>\n </Widget>\n </Row>\n <Row>\n <Name>Row</Name>\n <Widget>\n <WidgetId>join_vid_text_2</WidgetId>\n <Name>${callService_Details.row_3}</Name>\n <Type>Text</Type>\n <Options>size=4;fontSize=small;align=left</Options>\n </Widget>\n </Row>\n <Row>\n <Name>Row</Name>\n <Widget>\n <WidgetId>join_phone_text_2</WidgetId>\n <Name>${callService_Details.row_4}</Name>\n <Type>Text</Type>\n <Options>size=4;fontSize=small;align=left</Options>\n </Widget>\n </Row>\n <Options>hideRowNames=1</Options>\n </Page>\n </Panel>\n </Extensions>`\n);\n}", "function InitValues_Framework_L1(){\n // You must make textarea, slidbar and more.\n}", "function InitValues_Framework_L1(){\n // You must make textarea, slidbar and more.\n}", "function zoto_set_menu_box_edit(){\n\tthis.$uber({label_text:_('edit'), open_event:'onclick'});\n//\tthis.zoto_menu_box({label_text:_('edit'), open_event:'onclick'});\n}", "function savesaveInfoLocalStorage(evt){\n saveInfoLocalStorage[evt.currentTarget.name] = evt.currentTarget.value;\n setsaveInfoLocalStorage(saveInfoLocalStorage);\n}", "function savedStuff(){\n $.each(middleFind, (i, v) =>{\n var saved = middleFind.eq(i).attr('data-saved')\n textboxes.eq(i).val(localStorage.getItem(saved))\n \n })\n}", "function createEdittoolsLink(){\n\t// get div.mw-editTools\n\tvar box = document.getElementById('wpTextbox1');\n\twhile( box && box.className != 'mw-editTools' )\n\t\tbox = box.nextSibling;\n\tif( !box )\n\t\treturn;\n\t// create a link\n\tvar lnk = document.createElement('a');\n\tlnk.href = 'javascript:loadCommonsTools()';\n\tlnk.title = 'Load Commons-style Edittools';\n\tlnk.id = 'loadCommonsEdittoos';\n\tlnk.appendChild(document.createTextNode('[load edittools]'));\n\tlnk.style.cssText = 'float:right';\n\tbox.appendChild(lnk);\n}", "function doLoadSiteCommands(svtype)\r\n{\r\n // reset warning messages\r\n document.getElementById(\"savedcmdeditoroutput\").innerHTML = '';\r\n\r\n // Standard commands from site cmd menu\r\n var specialcmds = \"\";\r\n // only commands that take arguments\r\n var standardcmds = [\"filter\",\"site cmd\",\"new dir\",\"delete\",\"rename\"];\r\n\r\n // FXPOne site commands via 'help'\r\n var fxponecmds = [\"-FXPOne Commands-\",\"adduser\",\"chgrp\",\"chown\",\"colour\",\"deluser\",\"dupe\",\"extra\",\"give\",\"groupadd\",\r\n \"groupdel\",\"groupinfo\",\"grouplist\",\"groupuser\",\"gtagline\",\"gtopdn\",\"gtopup\",\"help\",\"incompletes\",\r\n \"kick\",\"move\",\"msg\",\"new\",\"nuke\",\"passwd\",\"pre\",\"races\",\"rehash\",\"renuser\",\"reqfilled\",\"request\",\r\n \"search\",\"section\",\"setcred\",\"setflags\",\"setip\",\"setlimit\",\"setpass\",\"setratio\",\"tagline\",\"tcpstat\",\r\n \"topdn\",\"topup\",\"unnuke\",\"user\",\"wall\",\"who\"];\r\n\r\n // add the other more inferior ftp server types here later\r\n if (svtype == \"fxpone\") {\r\n specialcmds = fxponecmds;\r\n }\r\n\r\n // clear menu first\r\n while (sv_newcmd.childNodes.length > 0) {\r\n sv_newcmd.removeChild(sv_newcmd.lastChild);\r\n }\r\n // add defaults\r\n for (var i = 0; i < standardcmds.length; i++) {\r\n var option = document.createElement(\"option\");\r\n option.value = standardcmds[i];\r\n option.text = standardcmds[i];\r\n if (option.value == \"site cmd\") {\r\n option.value = \"site\";\r\n } else if (option.text == \"site cmd\") {\r\n option.text = \"site\";\r\n }\r\n sv_newcmd.appendChild(option);\r\n }\r\n // now the 'specials\"\r\n for (var i = 0; i < specialcmds.length; i++) {\r\n var option = document.createElement(\"option\");\r\n option.value = \"site \"+specialcmds[i];\r\n option.text = specialcmds[i];\r\n if (option.value == \"site -FXPOne Commands-\") {\r\n option.disabled = true;\r\n option.text = \"-FXPOne Commands-\";\r\n }\r\n sv_newcmd.appendChild(option);\r\n }\r\n\r\n // check SVDCMDS value for commands\r\n var savedCmdsData = site[\"SVDCMDS\"];\r\n if (savedCmdsData && savedCmdsData.length > 0 ) {\r\n sitesavedcommands = svCmdReadWrite(\"read\",\"SVDCMDS\",site[\"SITEID\"]).slice();\r\n svRedrawCmdGUI();\r\n }\r\n}", "function loadLabels() {\n return { 'en' : { \"DOCK-GRID\" : \"Dock grid\"\n , \"DOCKRIGHT\" : \"Dock grid on right side\"\n , \"DOCKMID\" : \"Dock grid in middle\"\n , \"PREVPAGE\" : \"Go to previous page\"\n , \"NEXTPAGE\" : \"Go to next page\"\n , \"SHORTCUTS\" : \"Customize shortcuts\"\n , \"NOTOOLTIPS\" : \"Disable tooltips\"\n , \"TOOLTIPS\" : \"Enable tooltips\"\n , \"PRETTYGRID\" : \"Grid background image\"\n , \"SETUP\" : \"Setup\"\n , \"CONFIGURE\" : \"Configure\"\n , \"BUG\" : \"Report bug\"\n , \"CUSTOMIZE\" : \"Customize\"\n , \"QUICK-CTRL\" : \"Quick Controls\"\n\n , \"BTN-NEW\" : \"New\"\n , \"BTN-SAVE\" : \"Save\"\n , \"BTN-APPLY\" : \"Apply\"\n , \"BTN-OK\" : \"OK\"\n , \"BTN-CANCEL\" : \"Cancel\"\n , \"BTN-DELETE\" : \"Delete\"\n , \"BTN-CLEAR\" : \"Clear\"\n , \"BTN-EXPORT\" : \"Export\"\n , \"BTN-IMPORT\" : \"Import\"\n , \"BTN-TGL-DAY-MOON\" : \"Toggle day/night mode\"\n , \"BTN-SWAP-GRID-PANE\" : \"Swap grid position (middle/right)\"\n\n , \"LBL-STYLE\" : \"Theme\"\n , \"LBL-STYLE-DEFAULT\" : \"Default themes\"\n , \"LBL-STYLE-GALLERY\" : \"Themes Gallery\"\n , \"LBL-STYLE-CUSTOM\" : \"Customize theme\"\n , \"LBL-STYLE-EXPORT\" : \"Export theme\"\n , \"LBL-STYLE-IMPORT\" : \"Import theme\"\n , \"LBL-XPLUG\" : \"Xplug\"\n , \"LBL-XPLUG-SETTINGS\" : \"Xplug settings\"\n , \"LBL-LEFT\" : \"Left\"\n , \"LBL-MIDDLE\" : \"Middle\"\n , \"LBL-RIGHT\" : \"Right\"\n , \"LBL-NAME\" : \"Name\"\n , 'LBL-APEX-VERSION' : \"APEX Version\"\n , \"LBL-DARK-STYLE\" : \"Night Mode\"\n , \"LBL-CRNTLY-ACTIVE\" : \"Currently Active\"\n , \"LBL-PROTECTED\" : \"Protected\"\n , \"LBL-SHOW-GRID\" : \"Show Grid\"\n , \"LBL-COMPATIBLE\" : \"Compatible\"\n , \"LBL-COLOR\" : \"Color\"\n , \"LBL-IDENTIFICATION\" : \"Identification\"\n , \"LBL-CUST-COLORS\" : \"Customize Colors\"\n , \"LBL-CUST-CSS\" : \"Custom CSS\"\n , \"LBL-ADVANCED\" : \"Advanced\"\n , \"LBL-EXPERIMENTAL\" : \"Experimental\"\n , \"LBL-SHOW-BUTTONS\" : \"Buttons\"\n , \"LBL-SHOW-APPID\" : \"Show [app:page] info in window title\"\n , \"LBL-ENABLE-PAGEDET\" : \"Enable 'Page Details' tab in sidekick pane\"\n , \"LBL-ENABLE-MARKDOWN\" : \"Enable markdown format\"\n , \"LBL-DAYLIGHT\" : \"Day mode\"\n , \"LBL-MOONLIGHT\" : \"Night mode\"\n , \"LBL-DEFAULT-STYLES\" : \"Default Themes\"\n , \"LBL-ADD-SIDEKICK\" : \"Enable Sidekick\"\n , \"LBL-CLOSE\" : \"Close\"\n , \"LBL-HIDE\" : \"Hide\"\n , \"LBL-COLLAPSE\" : \"Collapse\"\n , \"LBL-EXPAND\" : \"Expand\"\n , \"LBL-LANGUAGE\" : \"Language\"\n , \"LBL-PRESENTATION-MODE\" : \"Presentation mode\"\n , \"LBL-FACTORY-RESET\" : \"Restore factory settings\"\n\n , \"TAB-PB-DOCU\" : \"Page Details\"\n , \"TAB-PB-MESSAGES\" : \"Messages\"\n , \"TAB-PB-SEARCH\" : \"Search\"\n , \"TAB-PB-CONSOLE\" : \"Console\"\n , \"MSG-TT-ENABLE-OK\" : \"Tooltips are enabled.\"\n , \"MSG-TT-DISABLE-OK\" : \"Tooltips are disabled.\"\n , \"MSG-TT-ENABLE-NOK\" : \"Could not enable tooltips.\"\n , \"MSG-TT-DISABLE-NOK\" : \"Could not disable tooltips.\"\n , \"MSG-ERR-STORAGE-NOK\" : \"localStorage not enabled in browser. Xplug preferences can't be saved/retrieved. Please check!\"\n , \"MSG-STYLE-EXPORT\" : \"Please mark, copy and save the Xplug JSON code in a text file and press 'OK'\"\n , \"MSG-STYLE-IMPORT\" : \"Please copy the saved Xplug JSON code into the below field and press 'OK'\"\n , \"MSG-STYLE-JSON-OK\" : \"JSON code is valid and compatible with Xplug.\"\n , \"MSG-STYLE-JSON-NOK\" : \"JSON code is invalid. Please check.\"\n , \"MSG-STYLE-JSON-FAIL\" : \"JSON code is valid, but possible incompatible with Xplug. Please check.\"\n , \"MSG-STYLE-IS-DRAFT\" : \"Page Designer theme can't be saved. Please first change the theme name.\"\n , \"MSG-STYLE-CSS-COLOR\" : \"Use %%C<num>%% to reference custom colors 1-10\"\n , \"MSG-RELOAD-LANG\" : \"Xplug language changed. Please reload page to activate.\"\n , \"MSG-FACTORY-DONE\" : \"Xplug factory settings restored. Please reload page to activate.\"\n },\n\n 'de' : { \"DOCK-GRID\" : \"Grid positionieren\"\n , \"DOCKRIGHT\" : \"Grid rechts außen positionieren\"\n , \"DOCKMID\" : \"Grid in der Mitte positionieren\"\n , \"PREVPAGE\" : \"Gehe zu vorherige Seite\"\n , \"NEXTPAGE\" : \"Gehe zu nächste Seite\"\n , \"SHORTCUTS\" : \"Tastenkürzel einrichten\"\n , \"NOTOOLTIPS\" : \"Tooltips deaktivieren\"\n , \"TOOLTIPS\" : \"Tooltips aktivieren\"\n , \"PRETTYGRID\" : \"Hintergrundbild\"\n , \"SETUP\" : \"Setup\"\n , \"CONFIGURE\" : \"Konfigurieren\"\n , \"BUG\" : \"Bug melden\"\n , \"CUSTOMIZE\" : \"Anpassen\"\n , \"QUICK-CTRL\" : \"Schnelleinstellungen\"\n\n , \"BTN-NEW\" : \"Neu\"\n , \"BTN-SAVE\" : \"Speichern\"\n , \"BTN-APPLY\" : \"Anwenden\"\n , \"BTN-OK\" : \"OK\"\n , \"BTN-CANCEL\" : \"Abbrechen\"\n , \"BTN-DELETE\" : \"Löschen\"\n , \"BTN-CLEAR\" : \"Leeren\"\n , \"BTN-EXPORT\" : \"Exportieren\"\n , \"BTN-IMPORT\" : \"Importieren\"\n , \"BTN-TGL-DAY-MOON\" : \"Zwischen Tageslicht / Mondlicht-Modus hin und herschalten.\"\n , \"BTN-SWAP-GRID-PANE\" : \"Ansicht umschalten\"\n\n , \"LBL-STYLE\" : \"Theme\"\n , \"LBL-STYLE-DEFAULT\" : \"Standardtheme\"\n , \"LBL-STYLE-GALLERY\" : \"Theme Gallerie\"\n , \"LBL-STYLE-CUSTOM\" : \"Theme anpassen\"\n , \"LBL-STYLE-EXPORT\" : \"Theme exportieren\"\n , \"LBL-STYLE-IMPORT\" : \"Theme importieren\"\n , \"LBL-XPLUG\" : \"Xplug\"\n , \"LBL-XPLUG-SETTINGS\" : \"Xplug Einstellungen\"\n , \"LBL-LEFT\" : \"Links\"\n , \"LBL-MIDDLE\" : \"Mittig\"\n , \"LBL-RIGHT\" : \"Rechts\"\n , \"LBL-NAME\" : \"Name\"\n , 'LBL-APEX-VERSION' : \"APEX Version\"\n , \"LBL-DARK-STYLE\" : \"Dunkler Stil\"\n , \"LBL-CRNTLY-ACTIVE\" : \"Ist im Moment aktiv\"\n , \"LBL-PROTECTED\" : \"Gesperrt\"\n , \"LBL-SHOW-GRID\" : \"Grid anzeigen\"\n , \"LBL-COMPATIBLE\" : \"Kompatibel\"\n , \"LBL-COLOR\" : \"Farbe\"\n , \"LBL-IDENTIFICATION\" : \"Identifizierung\"\n , \"LBL-CUST-COLORS\" : \"Farben anpassen\"\n , \"LBL-CUST-CSS\" : \"Custom CSS\"\n , \"LBL-ADVANCED\" : \"Fortgeschritten\"\n , \"LBL-EXPERIMENTAL\" : \"Experimentel\"\n , \"LBL-SHOW-BUTTONS\" : \"Schaltflächen anzeigen\"\n , \"LBL-SHOW-APPID\" : \"Zeige [app:page] info in Fenstertitel\"\n , \"LBL-ENABLE-PAGEDET\" : \"Aktiviere Reiter 'Seitendetails' in Sidekick bereich\"\n , \"LBL-ENABLE-MARKDOWN\" : \"Aktiviere markdown Format\"\n , \"LBL-DAYLIGHT\" : \"Tagmodus\"\n , \"LBL-MOONLIGHT\" : \"Nachtmodus\"\n , \"LBL-DEFAULT-STYLES\" : \"Standardthemes\"\n , \"LBL-ADD-SIDEKICK\" : \"Sidekick einschalten\"\n , \"LBL-CLOSE\" : \"Schliessen\"\n , \"LBL-HIDE\" : \"Ausblenden\"\n , \"LBL-COLLAPSE\" : \"Zuklappen\"\n , \"LBL-EXPAND\" : \"Aufklappen\"\n , \"LBL-LANGUAGE\" : \"Sprache\"\n , \"LBL-PRESENTATION-MODE\" : \"Präsentationsmodus\"\n , \"LBL-FACTORY-RESET\" : \"Werkseinstellungen wiederherstellen\"\n\n , \"TAB-PB-DOCU\" : \"Details der Seite\"\n , \"TAB-PB-MESSAGES\" : \"Nachrichten\"\n , \"TAB-PB-SEARCH\" : \"Suchen\"\n , \"TAB-PB-CONSOLE\" : \"Konsole\"\n , \"MSG-TT-ENABLE-OK\" : \"Tooltips sind aktiviert.\"\n , \"MSG-TT-DISABLE-OK\" : \"Tooltips sind deaktiviert.\"\n , \"MSG-TT-ENABLE-NOK\" : \"Konnte Tooltips nicht aktivieren.\"\n , \"MSG-TT-DISABLE-NOK\" : \"Konnte Tooltips nicht deaktivieren.\"\n , \"MSG-ERR-STORAGE-NOK\" : \"localStorage nicht aktiviert im Browser. Xplug Einstellungen können nicht gespeichert/geladen werden. Bitte prüfen!\"\n , \"MSG-STYLE-EXPORT\" : \"Bitte markieren, kopieren und Speichern Sie den Xplug JSON code als Textdatei und drücken Sie danach 'OK'\"\n , \"MSG-STYLE-IMPORT\" : \"Bitte fügen Sie den gespeicherten Xplug JSON hier ein und drücken Sie 'OK'\"\n , \"MSG-STYLE-JSON-OK\" : \"JSON code is gültig und kompatibel mit Xplug.\"\n , \"MSG-STYLE-JSON-NOK\" : \"JSON code ist ungültig. Bitte prüfen.\"\n , \"MSG-STYLE-JSON-FAIL\" : \"JSON code ist gültig, aber ggf. nicht kompatibel mit Xplug. Bitte prüfen.\"\n , \"MSG-STYLE-IS-DRAFT\" : \"Page Designer Theme kann nicht gespeichert werden. Bitte zuerst Themenamen ändern.\"\n , \"MSG-STYLE-CSS-COLOR\" : \"Benutze %%C<num>%% um Farben 1-10 zu referenzieren\"\n , \"MSG-RELOAD-LANG\" : \"Xplug Spracheinstellungen geändert. Bitte Seite neu laden um zu aktivieren.\"\n , \"MSG-FACTORY-DONE\" : \"Xplug Werkeinstellungen wiederhergestellt.\\nBitte Site neu laden um zu aktivieren.\"\n },\n };\n } // loadLabels", "function save_Names(){\n name1 = $(\"[name='1']\").val();\n\tname2 = $(\"[name='2']\").val();\n\tname3 = $(\"[name='3']\").val();\n\tname4 = $(\"[name='4']\").val();\n\t\n\tfunction setItemName(json){\n\t\tfor (var i in json){\n\t\t\tif(json[i].id == 1){\n\t\t\t\tjson[i].name = name1;\n\t\t\t}else if(json[i].id == 2){\n\t\t\t\tjson[i].name = name2;\n\t\t\t}else if(json[i].id == 3){\n\t\t\t\tjson[i].name = name3;\n\t\t\t}else{\n\t\t\t\tjson[i].name = name4;\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t};\n\t\n\taddOn_db = loadDB(\"addOnDB\")\n\tvar json = JSON.parse(localStorage[\"addOnDB\"]);\n\tfor(i=0;i<json.length;i++){\n\tjson = setItemName(json);\n\tconsole.log(json);\n\tlocalStorage[\"addOnDB\"] = JSON.stringify(json);}\n }", "function visualiserAuteurControls(){\n var vControles = [\"lbledNomAuteur\",\"txtedNomAuteur\",\n \"lbledPreAuteur\",\"txtedPreAuteur\",\"lbledSaveAute\",\"btnedSaveAute\"];\n visualiserControls(\"btnedaddAute\" ,vControles,\"cboxedAute\");\n} // end visualiser", "function setupSaveDisplayedGenes() {\n\tvar nameGeneList;\n\t$(\"div#btnSaveGenes\").click(function(){\n \t$.get(\"nameGeneList.jsp?geneListSource=QTL\", function(data){\n \t\tif ( nameGeneList == undefined ) {\n \t\tnameGeneList = createDialog(\"div.saveDisplayedGenes\", \n\t\t\t\t\t{ width: 720, height: 350, title: \"Save Displayed Genes\"});\n\t\t\t}\n \t\tnameGeneList.dialog(\"open\").html(data);\n \t});\n \t});\n}", "getNameSelectedCloud() {\n this.saveView.inputCloudStorage.value = this.saveView.cloudSelectFile.options[this.saveView.cloudSelectFile.selectedIndex].textContent;\n }", "function createGUI(){\n\n\n gui= new dat.GUI();\n var f1=gui.addFolder(\"Debug\");\n f1.add(params,\"debug\");\n var f2=gui.addFolder(\"Fish\");\n f2.add(params,\"fishType\",fishTypes).onChange(function(){\n createFish();\n //params.refresh=true;\n }\n\n );\n var f3=gui.addFolder(\"Pollution\");\n f3.add(params,\"waterPollution\").min(minPollution).max(maxPollution).name(\"Water Purity\");\n f3.add(params,\"polluted\");\n f3.add(params,\"plastic\");\n //gui.add(params,\"dirt\");\n f3.add(params,\"chemical\");\n\n //gui.add(params,\"refresh\");\n //f3.open();\n\n}", "function saveCallback()\n {\n clearUndoBuffer();\n updateUndoButton();\n if (!($('#perc-region-tool-inspector').hasClass('buttonPressed')))\n {\n $(\"#perc-undo-tool\").hide();\n $(\"#perc-undo-tool-disabled\").hide();\n }\n }", "function SaveItem() {\t\t\n\tlocalStorage.setItem(name, 1);\n\tdoShowAll();\t\n}", "function toolbarAddIns(toolbarobj) {\n toolbarobj.add({id: \"insert\", hint: javaMessages.ins_line, icon: \"fa fa-plus\", caption: \"\", type: \"button\"});\n}", "function showPicked() {\n\tif(localStorage.getItem(\"Picked\") != null) {\n\t\tvar equip = JSON.parse(localStorage.getItem(\"Picked\"));\n\t\t$(\"#name\").val(equip.NAME);\n\t\t$(\"#quantity\").val(equip.QUANTITY);\n\t\t$(\"#price\").val(equip.PRICE);\n\t\tnewitem = false;\n\t\traw_name = equip.NAME.toString();\n\t}\n}", "function _selectOptions() {\n $scope.importDomain.action = 'options';\n $scope.importDomain.button = 'Save';\n $scope.importDomain.info = INFO_SELECT_OPTIONS;\n\n Focus.move('domainPackageName');\n }", "function rename(op_name) {\n var fe_item = $('.sublist input[name=' + op_name + ']:checked');\n\n $('button[id$=' + op_name + ']').hide()\n var fe_name = fe_item.attr('value');\n\n var textbox = '<p>Rename \"' + fe_name + '\": <input type=\"text\" name=\"r' + op_name + '\"';\n textbox = textbox + ' value=\"' + fe_name + '\"></input></p>';\n\n var button = '<button id=\"s' + op_name + '\" type=\"button\" onClick=\"saveRN(';\n button = button + \"'\" + fe_name + \"', '\" + op_name + '\\');\">Save</button\"';\n\n var toAppend = '<div id=\"rename_' + op_name + '\">' + textbox + button + '</div>';\n\n $('#' + op_name + 'list').append(toAppend);\n}", "setVariableName(newVariableName) { this.variableName.text(newVariableName); }", "static registerDialogClass(className, cls) {\n if (!ToolDlg.nameRegister.has(className))\n ToolDlg.nameRegister.set(className, cls);\n }", "function save_options() {\n $('#options-list input[type=\"checkbox\"]').each(function() {\n var obj = {};\n var check = $(this);\n obj[$(this).attr('id')] = $(this).prop(\"checked\");\n\n chrome.storage.sync.set(obj);\n console.log('saving', obj);\n });\n $('#options-list input[type=\"text\"]').each(function() {\n var obj = {};\n var value = $(this).val();\n obj[$(this).attr('id')] = value;\n chrome.storage.sync.set(obj);\n console.log('saving', obj);\n });\n\n $('#status').text(\"Saved\").slideDown();\n setTimeout(function() {\n $('#status').slideUp(function() {\n $(this).text(\"\");\n })\n }, 3000);\n}", "function initLocalInputBoxes() {\n\n\t}", "function saveOptions() {\n\tlocalStorage[\"default_folder_id\"] = $('#folder_list :selected').val();\n\tlocalStorage[\"dial_columns\"] = $('#dial_columns :selected').val();\n\tlocalStorage[\"dial_width\"] = $('#dial_width :selected').val();\n\tsaveCheckbox('drag_and_drop');\n\tsaveCheckbox('force_http');\n\tsaveCheckbox('show_advanced');\n\tsaveCheckbox('show_new_entry');\n\tsaveCheckbox('show_folder_list');\n\tsaveCheckbox('show_subfolder_icons');\n\tlocalStorage[\"thumbnail_url\"] = $('#thumbnail_url').val();\n\n\twindow.location = \"newtab.html\";\n}", "static getToolSaves() {\n // console.log(\"getToolSaves()\");\n return store.get('CURRENT_TOOL_SAVES_LIST');\n }", "function ev_tool_change (ev) {\nif (tools[this.value]) {\n tool = new tools[this.value]();\n}\n}", "function save_options_() {\r\n save_options();\r\n }", "static get category() { return ToolDlg.CATEGORY_HELPER; }", "function loadSaved() {\n for (i = 0; i < hours.length; i++) {\n var hourPrint = window.localStorage.getItem(keys[i]);\n hours[i].text(hourPrint);\n }\n}", "function test_copy_save_service_dialog_with_the_same_name() {}", "function editTemplates(){\r\n\t$('#editTemplates').attr(\"disabled\", true);\r\n\t$('#saveTemplates').show();\r\n\r\n\tinTemplateEditMode = true;\r\n\t\r\n\tvar right_shelf = $('#right_shelf');\r\n\tright_shelf.children('.shelf_group_container').each(function(ind, elm){\r\n\t\taddTemplateCreateButton(elm);\r\n\t});\r\n\tvar shelfGroupHeaderInsert = $('<div><input type=\"text\" placeholder=\"enter group name...\"></input></div>').attr(\"class\", \"new_group\");\r\n\tright_shelf.append(shelfGroupHeaderInsert);\t\t\r\n}", "addGenes() {\n this.getOnDemandVariables().forEach((variable) => {\n this.props.variableManagerStore.addVariableToBeDisplayed(variable);\n this.props.variableManagerStore.toggleSelected(variable.id);\n });\n this.geneListString = '';\n this.showAvailableData = false;\n }", "function fillInfoIntoFileObject() { $('#uploadBtn1').attr('name', $('#popUpNet_value').val() + \"|\" + $('#popUpComment').val() + \"|\" + pressedButton + \"|\" + $('#btnApproveWithdraw').attr('order_type') + \"|\" + $('#btnApproveWithdraw').attr('order_id')); }", "function textBoxForName(){\n\t\tgListId = gListId+1;\n\t\tvar quantityId =\"nameId\"+gListId;\n\t\tvar txtBoxBasic1 = {id:quantityId,isVisible:true,placeholder:\"Enter your Name\",skin:\"sknTbxKonyThemeNormal\",focusSkin:\"sknTbxKonyThemeFocus\",textInputMode:constants.TEXTBOX_INPUT_MODE_ANY, keyBoardStyle:constants.TEXTBOX_KEY_BOARD_STYLE_DEFAULT}; \n\t\tif(kony.os.deviceInfo().name==\"android\")\n\t\t\treturn new kony.ui.TextBox2(txtBoxBasic1, {containerWeight:60,hExpand:true,margin:[0,1,2,0],padding:[0,2,0,2],widgetAlignment:constants.WIDGET_ALIGN_MIDDLE_LEFT,contentAlignment :constants.CONTENT_ALIGN_MIDDLE_LEFT,percent:true}, {});\n\t\telse\n\t\t\treturn new kony.ui.TextBox2(txtBoxBasic1, {containerWeight:60,hExpand:true,margin:[0,3,2,0],padding:[0,0,0,0],widgetAlignment:constants.WIDGET_ALIGN_MIDDLE_LEFT,contentAlignment :constants.CONTENT_ALIGN_MIDDLE_LEFT,percent:true}, {});\n\t}", "function initializeStorage() {\n\t\tvar tool = {};\n\t\ttool.name = NAME;\n\t\ttool.label = LABEL;\n\t\ttool.data = DATA.OFF;\n\t\ttool.icon = ICONS.OFF;\n\t\ttool.isSelected = false;\n\t\ttool.isRunning = false;\n\t\ttool.panel = \"\";\n\t\ttool.position = 0;\n\n\t\tutils.writeTool(tool);\n\t\tregisterForZapEvents(\"org.zaproxy.zap.extension.brk.BreakEventPublisher\");\n\t}", "function save_options() {\r\n localStorage[\"user\"] = document.getElementById(\"user\").value;\r\n localStorage[\"passwd\"] = document.getElementById(\"passwd\").value;\r\n\r\n // Update status to let user know options were saved.\r\n update_status(\"已保存\");\r\n}", "function loadFromDropbox(obj) {\r\n dropboxDownloadFilename = $($(obj).children('ul').children('li')[0]).text();\r\n $('#loadFromDropboxBtn').text(\"Load \" + dropboxDownloadFilename);\r\n}", "function setTool(newTool) {\n tool = newTool;\n // makes sure code always works, turns all tool entry into new tool\n $('#' + newTool).addClass('chosenTool').siblings().removeClass('chosenTool');\n // selects id with utensil name and adds class name chosenTool to it\n //selects the new utensil's siblings and removes .chosenTool class from them\n\n}", "function editor_updateToolbar(objname,action) {\r\n var config = document.all[objname].config;\r\n var editor_obj = document.all[\"_\" +objname+ \"_editor\"];\r\n\r\n // disable or enable toolbar\r\n\r\n if (action == \"enable\" || action == \"disable\") {\r\n var tbItems = new Array('FontName','FontSize','FontStyle'); // add pulldowns\r\n for (var btnName in config.btnList) { tbItems.push(config.btnList[btnName][0]); } // add buttons\r\n\r\n for (var idxN in tbItems) {\r\n var cmdID = tbItems[idxN].toLowerCase();\r\n var tbObj = document.all[\"_\" +objname+ \"_\" +tbItems[idxN]];\r\n if (cmdID == \"htmlmode\" || cmdID == \"about\" || cmdID == \"showhelp\" || cmdID == \"popupeditor\") { continue; } // don't change these buttons\r\n if (tbObj == null) { continue; }\r\n var isBtn = (tbObj.tagName.toLowerCase() == \"button\") ? true : false;\r\n\r\n if (action == \"enable\") { tbObj.disabled = false; if (isBtn) { tbObj.className = 'btn' }}\r\n if (action == \"disable\") { tbObj.disabled = true; if (isBtn) { tbObj.className = 'btnNA' }}\r\n }\r\n return;\r\n }\r\n\r\n // update toolbar state\r\n\r\n if (editor_obj.tagName.toLowerCase() == 'textarea') { return; } // don't update state in textedit mode\r\n var editdoc = editor_obj.contentWindow.document;\r\n\r\n // Set FontName pulldown\r\n var fontname_obj = document.all[\"_\" +objname+ \"_FontName\"];\r\n if (fontname_obj) {\r\n var fontname = editdoc.queryCommandValue('FontName');\r\n if (fontname == null) { fontname_obj.value = null; }\r\n else {\r\n var found = 0;\r\n for (i=0; i<fontname_obj.length; i++) {\r\n if (fontname.toLowerCase() == fontname_obj[i].text.toLowerCase()) {\r\n fontname_obj.selectedIndex = i;\r\n found = 1;\r\n }\r\n }\r\n if (found != 1) { fontname_obj.value = null; } // for fonts not in list\r\n }\r\n }\r\n\r\n // Set FontSize pulldown\r\n var fontsize_obj = document.all[\"_\" +objname+ \"_FontSize\"];\r\n if (fontsize_obj) {\r\n var fontsize = editdoc.queryCommandValue('FontSize');\r\n if (fontsize == null) { fontsize_obj.value = null; }\r\n else {\r\n var found = 0;\r\n for (i=0; i<fontsize_obj.length; i++) {\r\n if (fontsize == fontsize_obj[i].value) { fontsize_obj.selectedIndex = i; found=1; }\r\n }\r\n if (found != 1) { fontsize_obj.value = null; } // for sizes not in list\r\n }\r\n }\r\n\r\n // Set FontStyle pulldown\r\n var classname_obj = document.all[\"_\" +objname+ \"_FontStyle\"];\r\n if (classname_obj) {\r\n var curRange = editdoc.selection.createRange();\r\n\r\n // check element and element parents for class names\r\n var pElement;\r\n if (curRange.length) { pElement = curRange[0]; } // control tange\r\n else { pElement = curRange.parentElement(); } // text range\r\n while (pElement && !pElement.className) { pElement = pElement.parentElement; } // keep going up\r\n\r\n var thisClass = pElement ? pElement.className.toLowerCase() : \"\";\r\n if (!thisClass && classname_obj.value) { classname_obj.value = null; }\r\n else {\r\n var found = 0;\r\n for (i=0; i<classname_obj.length; i++) {\r\n if (thisClass == classname_obj[i].value.toLowerCase()) {\r\n classname_obj.selectedIndex = i;\r\n found=1;\r\n }\r\n }\r\n if (found != 1) { classname_obj.value = null; } // for classes not in list\r\n }\r\n }\r\n\r\n // update button states\r\n var IDList = Array('Bold','Italic','Underline','StrikeThrough','SubScript','SuperScript','JustifyLeft','JustifyCenter','JustifyRight','InsertOrderedList','InsertUnorderedList');\r\n for (i=0; i<IDList.length; i++) {\r\n var btnObj = document.all[\"_\" +objname+ \"_\" +IDList[i]];\r\n if (btnObj == null) { continue; }\r\n var cmdActive = editdoc.queryCommandState( IDList[i] );\r\n\r\n if (!cmdActive) { // option is OK\r\n if (btnObj.className != 'btn') { btnObj.className = 'btn'; }\r\n if (btnObj.disabled != false) { btnObj.disabled = false; }\r\n } else if (cmdActive) { // option already applied or mixed content\r\n if (btnObj.className != 'btnDown') { btnObj.className = 'btnDown'; }\r\n if (btnObj.disabled != false) { btnObj.disabled = false; }\r\n }\r\n }\r\n}", "initUI() {\n /** @type {boolean} Whether to show dead languages. */\n var show_all = false;\n /** @type {Array.<{recid: number}>} A list of hidden rows. */\n var hidden_rows = [];\n /** @type {?Word} The word currently shown in the details sidebar. */\n var editting;\n /** @type {boolean} For unknown reasons, the first save on a pre-existing word fails. */\n var fixed_first_save = false;\n /** Adds or removes dead language rows. */\n const filterDeadLangs = () => {\n if ( show_all ) {\n grid_lexicon.add( hidden_rows );\n // grid_lexicon.sort( 'roma', 'asc', true );\n // grid_lexicon.sort( 'lang', 'asc', false );\n hidden_rows = [];\n } else {\n const hides = [];\n const searches = [];\n hidden_rows = [];\n for ( const key in this.dicts ) {\n if ( !this.dicts.hasOwnProperty( key ) ) continue;\n const dict = this.dicts[ key ];\n if ( !dict.dead ) continue;\n searches.push( grid_lexicon.find( { 'lang': dict.name[ 0 ] } ) );\n }\n searches.forEach( ( arr ) => {\n /// I can't Array.map this. :c\n hides.push( ...arr );\n } );\n hides.forEach( ( recid ) => {\n const row = grid_lexicon.get( recid );\n hidden_rows.push( row );\n } );\n grid_lexicon.remove( ...hides );\n }\n grid_lexicon.refresh();\n };\n\n const grid_lexicon = new W2UI.w2grid( {\n name: 'table-lexicon',\n header: 'Lexicon',\n show: {\n // header: true,\n // footer: true,\n toolbar: true,\n toolbarReload: false,\n // toolbarAdd: true,\n // toolbarDelete: true,\n // toolbarSave: true\n },\n columns: [\n { field: 'lang', text: 'Language', size: '30%', sortable: true },\n { field: 'roma', text: 'Romanized', size: '30%', sortable: true },\n // { field: 'ety', text: 'Etymology', size: '30%', sortable: true },\n { field: 'def', text: 'Definition', size: '40%', sortable: true }\n ],\n liveSearch: true,\n searches: [\n { field: 'roma', label: 'Romanized', type: 'text', operator: 'contains' },\n { field: 'def', label: 'Definition', type: 'text', operator: 'contains' },\n ],\n toolbar: {\n items: [\n { type: 'break' },\n { type: 'button', id: 'add', icon: 'w2ui-icon-plus' },\n { type: 'button', id: 'delete', icon: 'w2ui-icon-cross' },\n { type: 'button', id: 'save', icon: 'w2ui-icon-check', disabled: true },\n { type: 'break' },\n { type: 'check', id: 'show_all', text: 'Show All', checked: show_all },\n ],\n onClick: ( target, data ) => {\n switch ( target ) {\n case 'add':\n break;\n case 'delete':\n grid_lexicon.delete();\n break;\n case 'save':\n break;\n case 'show_all':\n show_all = !show_all;\n filterDeadLangs();\n break;\n }\n }\n },\n /** Select the clicked row. */\n onClick: ( event ) => {\n // grid_details.clear();\n if ( !event.detail ) return;\n const recid = event.detail.recid;\n if ( typeof ( recid ) === 'undefined' ) {\n updateDetails();\n return;\n }\n const rec = grid_lexicon.get( recid );\n if ( !rec ) {\n grid_lexicon.selectNone();\n updateDetails();\n return;\n }\n const word = rec.data;\n updateDetails( word );\n }\n } );\n const form_details = new W2UI.w2form( {\n name: 'form-details',\n header: 'Details',\n show: {\n header: true\n },\n record: {\n roma: '',\n lang: '',\n phon: '',\n ety: '',\n links: [],\n def: ''\n },\n fields: [\n { field: 'roma', type: 'text', html: { label: 'Word' } },\n { field: 'lang', type: 'list', html: { label: 'Language' }, options: { items: [] } },\n { field: 'phon', type: 'text', html: { label: 'Phonetic', text: ' @phon-auto' } },\n // { field: 'phon-auto', type: 'button', html: { label: 'Auto' } },\n { field: 'ety', type: 'enum', html: { label: 'Etymology' }, options: { openOnFocus: true, match: 'contains', showAll: true, items: [] } },\n { field: 'links', type: 'enum', html: { label: 'Descendants' }, options: { openOnFocus: true, match: 'contains', showAll: true, items: [] } },\n { field: 'def', type: 'textarea', html: { label: 'Definition' } },\n ],\n actions: {\n 'Reset': () => {\n updateDetails( editting );\n },\n 'Save': () => {\n /** @type {Object} */\n const record = form_details.record;\n // console.log( record );\n /** @type {string} Input roma. */\n const roma = ( record.roma || '' ).normalize( 'NFD' ).trim();\n // if ( !roma ) {\n // W2UI.w2popup.open( {\n // title: 'Error: Missing Data',\n // text: 'The word must have a spelling.',\n // actions: {\n // 'OK': () => {\n // W2UI.w2popup.close();\n // }\n // }\n // } );\n // return;\n // }\n if ( !record.lang || !this.dicts.hasOwnProperty( record.lang.id ) ) {\n /// The language is required.\n W2UI.w2popup.open( {\n title: 'Error: Missing Data',\n text: 'The language is invalid.',\n actions: {\n 'OK': () => {\n W2UI.w2popup.close();\n }\n }\n } );\n return;\n }\n /** @type {WordParameters} The data to pass to the Word object. */\n const prop = {\n roma: roma.split( '; ' ),\n def: ( record.def || '' ).split( '; ' )\n };\n if ( editting ) {\n /// For some reason, row.data doesn't link properly until after saving, then selecting another row.\n /// Setting the word from the row itself rather than the editting word remedies the second part, but not the first.\n // editting.set( prop );\n // grid_lexicon.select( editting.grid_id );\n grid_lexicon.get( editting.grid_id ).data.set( prop );\n } else {\n /// Add a new word.\n const word = this.dicts[ record.lang.id ].addWord( prop );\n editting = word;\n this.words.push( word );\n }\n /// Update the entire chart.\n this.updateList();\n /// Select the appropriate row.\n grid_lexicon.selectNone();\n grid_lexicon.select( editting.grid_id );\n /// Bug fix.\n if ( !fixed_first_save ) {\n fixed_first_save = true;\n form_details.actions[ 'Save' ]();\n }\n },\n 'Save New': () => {\n editting = null;\n form_details.actions[ 'Save' ]();\n }\n }\n } );\n\n form_details.clear();\n\n /** Updates the detail panel.\n * @param {Word} [word] - The word to select, if any.\n */\n const updateDetails = ( word ) => {\n if ( editting ) form_details.clear();\n editting = word;\n if ( !word ) return;\n form_details.setValue( 'roma', word.roma.join( '; ' ) );\n form_details.get( 'lang' ).w2field.set( { id: word.language.name[ 0 ], text: word.language.name[ 0 ] } );\n form_details.setValue( 'phon', '' );\n // form_details.setValue( 'ety', '' );\n // form_details.setValue( 'links', '' );\n form_details.setValue( 'def', word.def.join( '; ' ) );\n form_details.refresh();\n };\n\n /// Initialize the overall layout.\n /** @type {W2UI.w2layout} The main panel. */\n const layout = new W2UI.w2layout( {\n name: 'layout',\n panels: [\n { type: 'left', size: 200, resizable: false, minSize: 120 },\n { type: 'main', minSize: 550, overflow: 'hidden' }\n ]\n } );\n /** @type {W2UI.w2sidebar} The sidebar, which allows changing tabs. */\n const sidebar = new W2UI.w2sidebar( {\n name: 'sidebar',\n nodes: [\n { id: 'tab-1', text: 'Lexicon', selected: true },\n { id: 'tab-2', text: '???' }\n ],\n onClick( event ) {\n /// Change the tab.\n sidebar.nodes.forEach( ( obj, ind ) => {\n if ( event.target === obj.id ) {\n layout.html( 'main', tabs[ ind ] );\n return;\n }\n } );\n }\n } );\n /** @type {W2UI.w2layout[]} The separate tabs. */\n const tabs = [\n new W2UI.w2layout( {\n name: 'tab-1',\n panels: [\n { type: 'main', size: 'auto' },\n { type: 'right', size: '40%' }\n ]\n } ),\n new W2UI.w2layout( {\n name: 'tab-2',\n panels: [\n { type: 'main', size: 'auto' },\n { type: 'right', size: '50%' }\n ]\n } )\n ];\n /// Add the lexicon tables to the first tab.\n tabs[ 0 ].html( 'main', grid_lexicon );\n tabs[ 0 ].html( 'right', form_details );\n\n /// Add the layouts to the DOM.\n layout.html( 'left', sidebar );\n layout.html( 'main', tabs[ 0 ] );\n layout.render( '#main' );\n\n this.updateList = function () {\n const list_words = this.words.map( ( word, ind ) => {\n word.grid_id = ind;\n return {\n recid: word.grid_id,\n roma: word.roma.join( '; ' ),\n // ety: word.parents ? word.parents[ 0 ] : '',\n def: word.def.join( '; ' ),\n /** @type {string} */\n lang: word.language.name[ 0 ],\n data: word\n };\n } );\n grid_lexicon.records = list_words;\n // this.words = list_words.map( word => word.data );\n filterDeadLangs();\n // grid_lexicon.refresh();\n grid_lexicon.sort( 'roma', 'asc', true );\n grid_lexicon.sort( 'lang', 'asc', false );\n\n const dd_langs = form_details.get( 'lang' ).w2field;\n const dd_links = form_details.get( 'links' ).w2field;\n dd_langs.options.items = [];\n dd_links.options.items = [];\n for ( const name in this.dicts ) {\n if ( !this.dicts.hasOwnProperty( name ) ) continue;\n dd_langs.options.items.push( name );\n }\n };\n }", "function load(){\n\t\tsettingsLink = addSettingsLink();\n\t\tcreateCheckboxes();\n\t\tloadSettings();\n\t}", "function whichTool (tool){\n\n\tif(!tool)\n\t\ttool = \"T\";\n\n\ttype = (tool).toUpperCase();\n\n\tlog.trace(`User chose tool [${tool}]`);\n\n\tvar theTool = {}\n\n\tswitch(type){\n\t\t\n\t\tcase \"BTN\":\n\t\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tdroppedModeStyle:\"\",\n\t\t\tdroppedModeHtml:\"<div><div type=\\\"MENU-ITEM\\\" style=\\\"display: inline-block; padding-left: 20px;\\\" edittxt=\\\"Enter Text\\nHere\\\">Enter Text Here</div></div></div>\",\n\t\t\tdroppable:true,\n\t\t\teditModeHtml:\"<input>\",\n\t\t\tdroppable:true,\n\t\t\teditModeStyle:\"border:0;width:10vw\",\n\t\t\tclass:\"button red\"\n\t\t});\n\t\tbreak;\n\t\tcase \"SCRL\":\n\t\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tdroppable:true,\n\t\t\tclass:\"list\"\n\t\t});\n\t\tbreak;\n\t\tcase \"HDR\":\n\t\n\t\ttheTool = new GenericTool({\n\t\ttype:type,\n\t\t\tdroppedModeStyle:\"position:fixed\",\n\t\t\tdroppable:true,\n\t\t\tclass:\"header\",\n\t\t\tposition:\"fixed\"\n\t\t});\n\t\tbreak;\n\t\tcase \"DIV\":\n\t\tcase \"CIRCLE\":\n\t\tcase \"IMG\":\n\t\tcase \"PLUGIN\":\n\t\tcase \"MENU-ITEM\":\n\t\tcase \"MENU-ITEM-TXT\":\n\t\tcase \"MENU-ITEM-ICON\":\n\t\tcase \"MENU-ITEM-IMAGE\":\n\t\tcase \"MENU\":\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tdroppable:true,\n\t\t\tclass:\"squarepeg\"\n\t\t});\n\t\tbreak;\n\n\t\tcase \"SVG\":\n\t\tvar svgId= \"ELEM_\" + new Date().getTime();\n\t\ttheTool = new GenericTool({\n\t\t\ttype:\"SVG\",\n\t\t\tdroppedModeStyle:\"\",\n\t\t\tid: svgId,\t\t\t\n\t\t\tdroppedModeHtml: new CustomShape(svgId).asHTML(),\n\t\t\tdroppable:true,\n\t\t\tclass:\"squarepeg\"\n\t\t});\n\t\tbreak;\n\n\t\tcase \"LIST\":\n\t\tcase \"SLIDER\":\n\t\tvar lid = \"ELEM_\" + new Date().getTime();\n\t\ttheTool = new GenericTool({\n\t\t\ttype:\"LIST\",\n\t\t\tdroppedModeHtml: new ListComponent(lid,type).asHTML(),\n\t\t\tdroppable:true,\n\t\t\tclass:\"squarepeg list\"\n\t\t});\n\t\tbreak;\n\t\tcase \"VID\":\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tdroppedModeStyle:\"\",\n\t\t\tdroppedModeHtml:'<div><video controls preload=\"auto\" autoplay><source class=\"content-image\" src=\"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4\" type=\"video/mp4\"/></video></div>',\n\t\t\tdroppable:true,\n\t\t\tclass:\"squarepeg\"\n\t\t});\n\t\tbreak;\n\t\tcase \"AUD\":\n\t\tvar audId = \"ELEM_\" + new Date().getTime();\n\n\t\ttheTool = new GenericTool({\n\t\t\ttype:\"AUDIO\",\n\t\t\tdroppedModeStyle:\"\",\n\t\t\tid: audId,\n\t\t\t//droppedModeHtml:'<div><audio controls title=\"sound file\" class=\"content-image\" src=\"http://soundbible.com/mp3/descending_craft-Sonidor-991848481.mp3\" type=\"video/mp4\">Your browser does not support the audio element.</audio></div>',\n\t\t\tdroppedModeHtml: new Equalizer(audId).asHTML(),\n\t\t\tdroppable:true,\n\t\t\tclass:\"squarepeg\"\n\t\t});\n\t\tbreak;\n\t\tcase \"SITE\":\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tdroppedModeStyle:\"\",\n\t\t\tdroppedModeHtml:'<div><iframe style=\"pointer-events:none; width:100%; height:100%\" class=\"content-image\" onmouseover=\"$(this).parents().first().mouseenter()\" src=\"https://www.wikipedia.org/\"></iframe></div>',\n\t\t\tdroppable:true,\n\t\t\tclass:\"squarepeg\"\n\t\t});\n\t\tbreak;\n\t\t/*\n\t\tcase \"IMG\":\n\t\ttheTool = new GenericTool({\n\t\t\tdroppedModeHtml:'<div style=\"width:75px; height:75px\">&nbsp;<div class=\\\"toolhotspot\\\"><div class=\\\"hotspot css\\\"><img src=\\\"http://www.fancyicons.com/free-icons/153/cute-file-extension/png/256/css_256.png\\\"></div><div class=\\\"hotspot js\\\"><img src=\\\"http://www.seoexpresso.com/wp-content/uploads/2014/11/javascript.png\\\"></div></div><img align=\\\"center\\\" class=\"content-image\" src=\\\"happy.png\" />hello again<br clear=\\\"center\\\"></div>',\n\t\t\ttype:type\n\t\t\t\n\t\t});\n\t\tbreak;*/\n\t\tcase \"ICON\":\n\t\t\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\t\n\t\t\teditModeHtml:\"\",\n\t\t\tdroppedModeHtml:\"<div class=\\\"fa fa-youtube icon\\\"></div>\",\n\t\t\tdroppable:false\n\t\t});\n\t\tbreak;\n\t\tcase \"T\":\n\t\t\tvar tId= \"ELEM_\" + new Date().getTime();\n\t\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tclass:\"texttool\",\n\t\t\tfriendlyName : \"Text Field\",\n\t\t\tdroppedModeHtml: new TextComponent(tId).asHTML(),\n\t\t\tclass:\"generictext\"\n\n\t\t});\n\n\t\tbreak;\n\t\tcase \"NAVIGATION\":\n\t\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tclass:\"texttool\",\n\t\t\tfriendlyName : \"Navigation Menu\",\t\t\t\n\t\t\tdroppedModeHtml:\"<div></div>\",\n\t\t\tclass:\"squarepeg list\"\n\n\t\t});\n\t\t\t\n\t\tbreak;\n\n\t\tcase \"FIELD\":\n\t\t\n\t\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tclass:\"texttool\",\n\t\t\tfriendlyName : \"Input Field\",\n\t\t\tdroppedModeHtml:\"<div class='group-container helper-wrapper'><div class='dropped-object' type='T'>Field Label</div><div class='dropped-object field-container' type='DIV'><input width='100%' height='100%' type=\\\"input\\\" placeholder=\\\"Enter field value\\\"></div></div>\"\n\t\t});\n\t\tbreak;\n\n\t\tdefault:\n\t\t\n\t\ttheTool = new GenericTool({\n\t\t\ttype:type,\n\t\t\tclass:\"texttool\",\n\t\t\tfriendlyName : \"generic\",\n\t\t\tdroppedModeHtml:`<${type} width=\"100%\" height=\"100%\" type=\"${type}\"></${type}>`,\n\t\t\tclass:\"generictext\"\n\n\t\t});\n\t\tbreak;\n\t\t\n\t}\n\n\treturn theTool;\n\n}", "function saveOptions() {\n chrome.storage.sync.set(\n {\n translateHeadings: document.getElementById('selectorH').checked,\n translateParagraphs: document.getElementById('selectorP').checked,\n translateOthers: document.getElementById('selectorOthers').checked,\n }, function () {\n var status = document.getElementById('status');\n status.textContent = 'Options saved.';\n setTimeout(function () {\n status.textContent = '';\n }, 2000);\n });\n}", "function changeControlPanelPlaceholders() {\n console.log('changeControlPanelPlaceholders');\n var dataTypeName = DATATYPE_NAME[gDataType];\n\n $('#add-manual-button input').attr('placeholder', 'Manual ' + dataTypeName + '(s) to add');\n $('#add-random-button input').attr('placeholder', 'Count of random ' + dataTypeName + 's');\n//\n $('#add-url-button input').attr('placeholder', 'URL load not current implemented.');\n}", "function setLocalizedLabel() {\n var getI18nMsg = chrome.i18n.getMessage;\n\n $('save_button').innerText = 'save'; //getI18nMsg('save');\n// $('delete_button').value = 'delete'; //getI18nMsg('deleteTitle');\n deleteLabel = 'delete';\n $('submit_button').value = 'add'; //getI18nMsg('submitButton');\n}", "function giveName(state) {\n text_entry.show();\n}", "function SetItems() {\n //configuracion del tootip de ayuda\n //tooltip de navegacion superior\n $('.navigationTop a').cluetip({ splitTitle: '|', width: 250, delayedClose: 1200, cursor: 'pointer', sticky: false });\n //tooltip para el link del mapa\n $('.SiteMapa span a').cluetip({ splitTitle: '|', width: 250, delayedClose: 1200, cursor: 'pointer', sticky: false });\n \n $('.tooltip').cluetip({ splitTitle: '|',delayedClose: 1200, width: 150, cursor: 'pointer', sticky: false });\n //tooltip de los buttonfields\n $('input[type=image]').cluetip({ splitTitle: '|', attribute: 'alt', titleAttribute: 'alt', delayedClose: 1200, width: 150, cursor: 'pointer', sticky: false });\n \n //menu popup\n $('#toplistmenu01').popupmenu({ target: \"#PanelNew\", time: 300 });\n $('.note').truncate({ max_length: 40, showLinks: false });\n \n }", "function saveShortcuts() {\n\n\tvar v_shortcut_list = [];\n\n\tfor (var property in v_shortcut_object.shortcuts) {\n if (v_shortcut_object.shortcuts.hasOwnProperty(property)) {\n v_shortcut_list.push(v_shortcut_object.shortcuts[property]);\n }\n }\n\n\tvar input = JSON.stringify({\"p_shortcuts\": v_shortcut_list});\n\n\texecAjax('/save_shortcuts/',\n\t\t\tinput,\n\t\t\tfunction(p_return) {\n\t\t\t\tshowAlert('Shortcuts saved.');\n\n\t\t\t});\n}", "syncUI() {\n if (this.treeItem) {\n this.treeItem.text = this.getName();\n this.treeItem.icon = this.getIcon();\n }\n if (this.listViewItem) {\n this.listViewItem.icon = this.getIcon();\n this.listViewItem.setItem(0, new latte.LabelItem(this.getName()));\n }\n }", "function globalSave() {\r\n if (dijit.byId('dialogDetail') && dijit.byId('dialogDetail').open) {\r\n var button = dijit.byId('comboSaveButton');\r\n } else if (dijit.byId('dialogNote') && dijit.byId('dialogNote').open) {\r\n var button = dijit.byId('dialogNoteSubmit');\r\n } else if (dijit.byId('dialogLine') && dijit.byId('dialogLine').open) {\r\n var button = dijit.byId('dialogLineSubmit');\r\n } else if (dijit.byId('dialogLink') && dijit.byId('dialogLink').open) {\r\n var button = dijit.byId('dialogLinkSubmit');\r\n } else if (dijit.byId('dialogOrigin') && dijit.byId('dialogOrigin').open) {\r\n var button = dijit.byId('dialogOriginSubmit');\r\n } else if (dijit.byId('dialogCopy') && dijit.byId('dialogCopy').open) {\r\n var button = dijit.byId('dialogCopySubmit');\r\n //gautier #2522\r\n } else if (dijit.byId('dialogCopyDocument') && dijit.byId('dialogCopyDocument').open) {\r\n var button = dijit.byId('dialogCopyDocumentSubmit');\r\n } else if (dijit.byId('dialogCopyProject')\r\n && dijit.byId('dialogCopyProject').open) {\r\n var button = dijit.byId('dialogProjectCopySubmit');\r\n } else if (dijit.byId('dialogAttachment')\r\n && dijit.byId('dialogAttachment').open) {\r\n var button = dijit.byId('dialogAttachmentSubmit');\r\n } else if (dijit.byId('dialogDocumentVersion')\r\n && dijit.byId('dialogDocumentVersion').open) {\r\n var button = dijit.byId('submitDocumentVersionUpload');\r\n } else if (dijit.byId('dialogAssignment')\r\n && dijit.byId('dialogAssignment').open) {\r\n var button = dijit.byId('dialogAssignmentSubmit');\r\n } else if (dijit.byId('dialogExpenseDetail')\r\n && dijit.byId('dialogExpenseDetail').open) {\r\n var button = dijit.byId('dialogExpenseDetailSubmit');\r\n } else if (dijit.byId('dialogPlan') && dijit.byId('dialogPlan').open) {\r\n var button = dijit.byId('dialogPlanSubmit');\r\n } else if (dijit.byId('dialogDependency')\r\n && dijit.byId('dialogDependency').open) {\r\n var button = dijit.byId('dialogDependencySubmit');\r\n } else if (dijit.byId('dialogResourceCost')\r\n && dijit.byId('dialogResourceCost').open) {\r\n var button = dijit.byId('dialogResourceCostSubmit');\r\n } else if (dijit.byId('dialogVersionProject')\r\n && dijit.byId('dialogVersionProject').open) {\r\n var button = dijit.byId('dialogVersionProjectSubmit');\r\n } else if (dijit.byId('dialogProductProject')\r\n && dijit.byId('dialogProductProject').open) {\r\n var button = dijit.byId('dialogProductProjectSubmit');\r\n } else if (dijit.byId('dialogAffectation')\r\n && dijit.byId('dialogAffectation').open) {\r\n var button = dijit.byId('dialogAffectationSubmit');\r\n } else if (dijit.byId('dialogFilter') && dijit.byId('dialogFilter').open) {\r\n var button = dijit.byId('dialogFilterSubmit');\r\n } else if (dijit.byId('dialogBillLine') && dijit.byId('dialogBillLine').open) {\r\n var button = dijit.byId('dialogBillLineSubmit');\r\n } else if (dijit.byId('dialogMail') && dijit.byId('dialogMail').open) {\r\n var button = dijit.byId('dialogMailSubmit');\r\n } else if (dijit.byId('dialogChecklistDefinitionLine')\r\n && dijit.byId('dialogChecklistDefinitionLine').open) {\r\n var button = dijit.byId('dialogChecklistDefinitionLineSubmit');\r\n } else if (dijit.byId('dialogChecklist')\r\n && dijit.byId('dialogChecklist').open) {\r\n var button = dijit.byId('dialogChecklistSubmit');\r\n } else if (dijit.byId('dialogJobDefinition')\r\n && dijit.byId('dialogJobDefinition').open) {\r\n var button = dijit.byId('dialogJobDefinitionSubmit');\r\n } else if (dijit.byId('dialogJob')\r\n && dijit.byId('dialogJob').open) {\r\n var button = dijit.byId('dialogJobSubmit');\r\n } else if (dijit.byId('dialogCreationInfo')\r\n && dijit.byId('dialogCreationInfo').open) {\r\n var button = dijit.byId('dialogCreationInfoSubmit');\r\n } else if (dijit.byId('dialogJobInfo')\r\n && dijit.byId('dialogJobInfo').open) {\r\n var button = dijit.byId('dialogJobInfoSubmit');\r\n } else if (dijit.byId('dialogDispatchWork')\r\n && dijit.byId('dialogDispatchWork').open) {\r\n var button = dijit.byId('dialogDispatchWorkSubmit');\r\n } else if (dijit.byId('dialogExport') && dijit.byId('dialogExport').open) {\r\n var button = dijit.byId('dialogPrintSubmit');\r\n } else if (dijit.byId('dialogRestrictTypes')\r\n && dijit.byId('dialogRestrictTypes').open) {\r\n var button = dijit.byId('dialogRestrictTypesSubmit');\r\n } else if (dojo.byId(\"editDependencyDiv\") && dojo.byId(\"editDependencyDiv\").style.display==\"block\") {\r\n dojo.byId(\"dependencyRightClickSave\").click();\r\n return;\r\n } else {\r\n dojo.query(\".projeqtorDialogClass\").forEach(\r\n function(node, index, nodelist) {\r\n var widgetName = node.id;\r\n if (node.widgetid)\r\n widgetName = node.widgetid;\r\n widget = dijit.byId(widgetName);\r\n if (widget && widget.open) {\r\n btName1 = \"dialog\" + widgetName.charAt(0).toUpperCase()\r\n + widgetName.substr(1) + \"Submit\";\r\n btName2 = widgetName + \"Submit\";\r\n if (dijit.byId(btName1)) {\r\n button = dijit.byId(btName1);\r\n } else if (dijit.byId(btName2)) {\r\n button = dijit.byId(btName2);\r\n }\r\n }\r\n });\r\n }\r\n if (!button) {\r\n var button = dijit.byId('saveButton');\r\n }\r\n if (!button) {\r\n button = dijit.byId('saveParameterButton');\r\n }\r\n if (!button) {\r\n button = dijit.byId('saveButtonMultiple');\r\n }\r\n // for(name in CKEDITOR.instances) { // Moved to saveObject() function\r\n // CKEDITOR.instances[name].updateElement();\r\n // }\r\n if (button && button.isFocusable()) {\r\n if (dojo.byId('formDiv'))\r\n formDivPosition = dojo.byId('formDiv').scrollPosition;\r\n button.focus(); // V5.1 : attention, may loose scroll position on formDiv\r\n // (see above and below lines)\r\n if (dojo.byId('formDiv'))\r\n dojo.byId('formDiv').scrollPosition = formDivPosition;\r\n var id = button.get('id');\r\n setTimeout(\"dijit.byId('\" + id + \"').onClick();\", 20);\r\n }\r\n}", "function setToolList() {\n\n\tvar divResourcesL1 = document.getElementById('resourcesL1');\n\t\n\tfor(var iCnt = 0; iCnt < gblArrResourceItems.length ; iCnt++) {\n\t\t\t\n\t\tvar supPath = \tgblArrResourceItems[iCnt].resourcePath;\n\t\tvar anchorLink = document.createElement('a');\n\t\tanchorLink.setAttribute(\"class\",\"clsGlossaryLinks\");\n\t\tif(isIE) {\n\t\t\tanchorLink.setAttribute(\"className\",\"clsGlossaryLinks\");\n\t\t}\n\t\tanchorLink.setAttribute(\"href\",\"javascript:if(chk508Compliance){document.getElementById(\\'resourcesL1\\').getElementsByTagName(\\'a\\')[0].focus();}O(\\'\"+gblArrResourceItems[iCnt].resourcePath+\"\\')\");\n\t\tanchorLink.setAttribute(\"title\",\"View this document\");\n\t\tanchorLink.innerHTML = gblArrResourceItems[iCnt].resourceName;\n\t\tif(is508Compliance) {\n\t\t\tanchorLink.tabIndex=\"29\";\n\t\t\tanchorLink.style.border=\"4px solid transparent\";\n\t\t\tanchorLink.onfocus=function(){onfocuselement(this);};\n\t\t\tanchorLink.onblur=function(){onblurelement(this);};\t\t\n\t\t}\n\t\tdivResourcesL1.appendChild(anchorLink);\n\t\t\n\t\tvar subTag = document.createElement('sub');\n\t\tdivResourcesL1.appendChild(subTag);\n\t\t\n\t\tvar brTag = document.createElement('br');\n\t\tdivResourcesL1.appendChild(brTag);\t\n\t\tresourceListArr[supPath] = gblArrResourceItems[iCnt].resourceName;\n\t}\n}", "function chooseHelpTools(s) {\n var l = document.getElementById('editpage-helpmenu').getElementsByTagName('p');\n for (var i = 0; i < l.length ; i++) {\n l[i].style.display = i == s ? 'inline' : 'none';\n l[i].style.visibility = i == s ? 'visible' : 'hidden';\n }\n setCookie('edittoolshelpmenu', s);\n}", "function chooseHelpTools(s) {\n var l = document.getElementById('editpage-helpmenu').getElementsByTagName('p');\n for (var i = 0; i < l.length ; i++) {\n l[i].style.display = i == s ? 'inline' : 'none';\n l[i].style.visibility = i == s ? 'visible' : 'hidden';\n }\n setCookie('edittoolshelpmenu', s);\n}", "function saveOptions() {\n // assigns the parameters to what is set in the settings\n var key = document.getElementById('trigger').value;\n\n\t// chrome API to store data in JSON, anon function for when saved\n\tchrome.storage.sync.set({\n \tcolor: highlight,\n \topac: opacity,\n \trad: radius,\n \ttrigger: key,\n \ttoggle: check,\n activePage: false\n \t}, function() {\n \t\t// sets div status element to options saved for 1 second, then to empty\n \t\t$(\"#save-status\").text(\"Options saved!\");\n \t\tsetTimeout(function() {\n \t\t\t\t$(\"#save-status\").text(\"\");\n \t\t}, 1000);\n\t});\n}", "function saveKittens() {\r\n window.localStorage.setItem(\"kittens\", JSON.stringify(kittens))\r\n window.localStorage.setItem(\"Names\", JSON.stringify(namesArray))\r\n drawKittens()\r\n}", "function createTextArea(save) {\r\n\t\tif (save) {\r\n\t\t\t$('table#overview_menu').after('<h3>Sablon mentése</h3><p>A szövegmező tartalmát másold ki, és mentsd le egy fájlba módosítás nélkül.</p><textarea id=\"script_output\" cols=\"40\" rows=\"20\"></textarea>');\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$('table#overview_menu').after('<h3>Sablon importálása</h3><p>Az alábbi szövegmezőbe másold be a betöltendő sablont.</p><textarea id=\"script_input\" cols=\"40\" rows=\"20\"></textarea><br><button id=\"script_import\">Sablon betöltése</button>');\r\n\t\t}\r\n\t}", "function buttonLabels() {\n document.getElementById(\"leftChoice\").innerHTML = JSON.parse(localStorage.getItem(\"choice1\")).name;\n document.getElementById(\"rightChoice\").innerHTML = JSON.parse(localStorage.getItem(\"choice2\")).name;\n}", "function updateSavedVariableText() {\n savedVariableElement.textContent = \" = \" + WI.RuntimeManager.preferredSavedResultPrefix() + savedResultIndex;\n }", "function save_options() {\n $(\".options\").each(function(){\n var op = this.id;\n localStorage[PREFIX+op] = $(this).val();\n });\n\n var s = [];\n $('#sortable1 > li').each(function(idx, d){\n s.push($(d).text()); \n });\n localStorage[\"tabs\"] = s.join(\", \"); \n \n alert(\"Options Saved.\");\n}", "function save_options() {\n localStorage[\"etym\"] = $(\"input[name=etym]:checked\").val();\n localStorage[\"click2s\"] = $(\"input[name=click2s]:checked\").val();\n localStorage[\"root2note\"] = $(\"input[name=root2note]:checked\").val();\n localStorage[\"afx2note\"] = $(\"input[name=afx2note]:checked\").val();\n localStorage[\"hide_cn\"] = $(\"input[name=hide_cn]:checked\").val();\n localStorage[\"web_en\"] = $(\"input[name=web_en]:checked\").val();\n localStorage[\"hider\"] = $(\"input[name=hider]:checkbox:checked\").map(function(i,e){return $(e).val()}).toArray();\n\n // Update status to let user know options were saved.\n var status = document.getElementById(\"status\");\n status.innerHTML = \"保存成功\";\n setTimeout(function() {\n status.innerHTML = \"\";\n }, 750);\n chrome.extension.sendRequest({method: \"setLocalStorage\",data:localStorage});\n\n}", "function populateToolTypes(){\n var form = View.panels.get('tool_form');\n\tvar result = {};\n \ttry {\n\t\t result = Workflow.callMethod('AbBldgOpsOnDemandWork-WorkRequestService-getToolTypesForWorkRequest', form.getFieldValue(\"wrtl.wr_id\"));\n \t} \n \t\tcatch (e) {\n\t\tWorkflow.handleError(e);\n \t\t}\n if (result.code == 'executed') {\n var res = eval('(' + result.jsonExpression + ')');\n selectControl = $(\"toolType\");\n \n // get \"-select\" localized string \n var selectTitle = '';\n if (getMessage('selectTitle') != \"\") \n selectTitle = getMessage('selectTitle');\n \n var option = new Option(selectTitle, \"\");\n selectControl.options[0] = option;\n \n for (i = 0; i < res.length; i++) {\n option = new Option(res[i].tool_type, res[i].tool_type);\n selectControl.options[i + 1] = option;\n }\n }\n else {\n Workflow.handleError(result);\n }\n}", "loadSelections() {\n this.$state.go('textStorageRoot.selectionList', {\n topic: this.currentTopic,\n domain: this.currentDomain\n });\n }", "function restoreSettings() {\n function setCurrentChoice(result) {\n if(result !== undefined && result.insert !== undefined && result.insert !== \"\"){\n document.getElementById('cmn-toggle-1').checked = result.insert;\n }\n else{\n console.log(\"No Settings Found\");\n return null;\n }\n }\n\n chrome.storage.local.get(\"insert\", setCurrentChoice);\n chrome.storage.local.get(\"lang\", function(result) {\n if(result !== undefined && result.lang !== undefined && result.lang !== \"\") {\n lang = result.lang;\n updateStrings();\n var select = document.getElementById('lang-sel').value = result.lang;\n }\n });\n}", "function restore_options() {\n $('#options-list input[type=\"checkbox\"]').each(function() {\n var obj = {};\n var check = $(this);\n obj[$(this).attr('id')] = 1;\n chrome.storage.sync.get(obj,\n function(item) {\n $(\"#\" + check.attr('id')).prop(\"checked\", item[check.attr('id')]);\n }\n );\n });\n $('#options-list input[type=\"text\"]').each(function() {\n var obj = {};\n var text = $(this);\n obj[$(this).attr('id')] = $(this).text();\n chrome.storage.sync.get(obj,\n function(item) {\n $(\"#\" + text.attr('id')).prop(\"value\", item[text.attr('id')]);\n }\n );\n });\n}", "function load() {\n getStore('firstname');\n getStore(\"lastname\");\n getStore(\"age\");\n getStore(\"sex\");\n getRadio(\"faveCandy\"); //radio button is simply storing as \"on\"\n getStore(\"email\");\n getStore(\"phonenum\");\n getStore(\"address\");\n getStore(\"middlename\");\n}", "save () { if (this.name) saveValue(this.name, this.items); }", "function locationButtonNames(locationBtn, name) {\n $(locationBtn).text(name);\n}", "function loadCollectionStrings() {\r\n if (typeof(window['collection_default_new_name']) == \"undefined\") {\r\n collection_default_new_name = xerxes_labels['text_header_collections'];\r\n }\r\n if (typeof(window['collection_default_new_section_name']) == \"undefined\") { \r\n collection_default_new_section_name = xerxes_labels['text_header_collections_subcat'];\r\n }\r\n }", "function saveShortcuts() {\n\n\tvar v_shortcut_list = [];\n\n\tfor (var property in v_shortcut_object.shortcuts) {\n if (v_shortcut_object.shortcuts.hasOwnProperty(property)) {\n v_shortcut_list.push(v_shortcut_object.shortcuts[property]);\n }\n }\n\n\tvar input = JSON.stringify({\n\t\t\"p_shortcuts\": v_shortcut_list,\n\t\t\"p_current_os\": v_current_os\n\t});\n\n\texecAjax('/save_shortcuts/',\n\t\t\tinput,\n\t\t\tfunction(p_return) {\n\t\t\t\tshowAlert('Shortcuts saved.');\n\n\t\t\t});\n}", "function dropboxSetFileName(name) {\n var obj = document.getElementById('ulDropboxFile');\n obj.value = name;\n}", "function loadData(){\n\n var fs = require('fs');\n var data = JSON.parse(fs.readFileSync('js/lib/gui/dialogMetadataGUIElements.json', 'utf8'));\n\n data[44].forEach(function(element){\n $(\"#\"+element).val(Project.Info.DublinCore[element]);\n });\n data[45].forEach(function(element){\n if(element.length > 1)\n {\n for(i=1;i<=getNumElements(element);i++)\n {\n if(getNumElements(element) > 1 && i < getNumElements(element)) \n $(\"#\"+element[2] + i).click(); \n element[1].forEach(function(element1){\n if(element1[0].length > 1)\n {\n element1[0] = element1[0].replace('1',i);\n for(j=1;j<=getNumElements(element1);j++)\n {\n if(getNumElements(element1) > 1 && j < getNumElements(element1))\n $(\"#\"+element1[2].split(\"_\")[0] + \"_\" + i + \"_\" + j).click(); \n element1[1].forEach(function(element2)\n {\n $(\"#\" + element2.split(\"_\")[0] + \"_\" + i+ \"_\" +j).val(Project.Info.LOM[element[0]+i][element1[0].split(\"_\")[0] + \"_\" + i + \"_\" +j][element2.split(\"_\")[0] + \"_\" + i + \"_\" +j]); \n });\n }\n }\n else\n $(\"#\" + element1+i).val(Project.Info.LOM[element[0] + i][element1+i]); \n }); \n } \n }\n else\n {\n $(\"#\"+element).val(Project.Info.LOM[element]);\n }\n });\n\n $.each(Project.Info.LOM, function (intValue, currentelement){\n if(intValue.indexOf('requirementsTechnical_') >=0){ \n var index = intValue.split(\"_\")[1]\n changeNames($('#typeTechnicalReq_'+index), 'nameTechnicalReq_'+index, Project.Info.LOM['requirementsTechnical_'+index]['nameTechnicalReq_'+index]); \n }\n });\n}", "multiSelelect () {\r\n const O = this;\r\n O.optDiv.addClass('multiple');\r\n O.okbtn = $('<p tabindex=\"0\" class=\"btnOk\"></p>').click(() => {\r\n //if combined change event is set.\r\n O._okbtn();\r\n O.hideOpts();\r\n });\r\n [O.okbtn[0].innerText] = settings.locale;\r\n\r\n O.cancelBtn = $('<p tabindex=\"0\" class=\"btnCancel\"></p>').click(() => {\r\n O._cnbtn();\r\n O.hideOpts();\r\n });\r\n [, O.cancelBtn[0].innerText] = settings.locale;\r\n\r\n const btns = O.okbtn.add(O.cancelBtn);\r\n O.optDiv.append($('<div class=\"MultiControls\">').append(btns));\r\n\r\n // handling keyboard navigation on ok cancel buttons.\r\n btns.on('keydown.sumo', function (e) {\r\n const el = $(this);\r\n switch (e.which) {\r\n case 32: // space\r\n case 13: // enter\r\n el.trigger('click');\r\n break;\r\n\r\n case 9: //tab\r\n if (el.hasClass('btnOk')) return;\r\n break;\r\n case 27: // esc\r\n O._cnbtn();\r\n O.hideOpts();\r\n return;\r\n default:\r\n break;\r\n }\r\n e.stopPropagation();\r\n e.preventDefault();\r\n });\r\n }", "function save_options() {\n\tlet auto_duo = document.getElementById('auto_duo');\n\tchrome.storage.sync.set({\n\t\tauto_duo: auto_duo\n\t}, function () {\n\t\tlet status = document.getElementById('status');\n\t\tstatus.style.color = 'green';\n\t\tstatus.textContent = 'Options Saved!';\n\t\tsetTimeout(function () {\n\t\t\tstatus.textContent = '\\n';\n\t\t\tstatus.style.color = 'initial';\n\t\t}, 1000);\n\t});\n}", "function onPrefChange(prefName) {\n menu.items = createMenuItems();\n}", "function saveData() {\n\t\tlocalStorage.setItem('ckFilters', JSON.stringify({\n\t\t\twords: $('#ck-input-words').val(),\n\t\t\taccounts: $('#ck-input-accounts').val()\n\t\t}));\n\t}", "function restore_options() {\r\n // Use default value keywords = 'none'.\r\n chrome.storage.sync.get({\r\n keywords: '',\r\n }, function(items) {\r\n document.getElementById('keywords').value = items.keywords;\r\n });\r\n}", "function AutoSaveLoad() {}", "INSERT_VEGETABLE(state,data){\n state.name=data\n }", "function setbm(name, sysid)\n{\n\t$(\"#bm_system_name\").val(name);\n\t$(\"#bm_system_id\").val(sysid);\n\t$(\"#bm_edit_id\").val(\"\");\n\t$(\"#bm_text\").val(\"\");\n\t$(\"#bm_catid\").val(\"0\");\n\t$(\"#suggestions_3\").hide();\n}" ]
[ "0.5954269", "0.58257085", "0.5644811", "0.55699027", "0.54581124", "0.54412514", "0.54160476", "0.53947806", "0.5393641", "0.5378261", "0.537613", "0.5373785", "0.53468716", "0.53449196", "0.5325007", "0.53202486", "0.53152627", "0.5314203", "0.5299553", "0.5291723", "0.52819127", "0.5258445", "0.52446836", "0.52446836", "0.5235503", "0.5235199", "0.5222953", "0.52216995", "0.52210724", "0.52187395", "0.52173436", "0.5210568", "0.52013105", "0.5190404", "0.51827276", "0.51810277", "0.51724786", "0.51593536", "0.5155967", "0.5153346", "0.51426166", "0.51392114", "0.5132701", "0.5112342", "0.5095684", "0.5094044", "0.5083555", "0.5079522", "0.5077948", "0.5069585", "0.5053903", "0.50455445", "0.50391424", "0.503852", "0.5038017", "0.5033719", "0.50326437", "0.5031534", "0.50299245", "0.50274175", "0.5026791", "0.50236833", "0.50235647", "0.50229436", "0.50190413", "0.5015542", "0.5012321", "0.50108886", "0.50101185", "0.50066686", "0.50023323", "0.5000283", "0.49985036", "0.49919108", "0.49919108", "0.49883193", "0.4986435", "0.49852645", "0.49804962", "0.4972642", "0.49708053", "0.4969298", "0.4961906", "0.49605888", "0.495558", "0.49528348", "0.4949719", "0.49467865", "0.49445054", "0.49433383", "0.49410838", "0.49402598", "0.4940032", "0.49382597", "0.4932177", "0.4922316", "0.49200815", "0.4919437", "0.49180108", "0.49158442", "0.49142033" ]
0.0
-1
Get the balance of a single token for a single address.
function getTokenBalance(url, scriptHash, address) { return __awaiter(this, void 0, void 0, function* () { const sb = new neon_core_1.sc.ScriptBuilder(); abi.decimals(scriptHash)(sb); abi.balanceOf(scriptHash, address)(sb); const script = sb.str; try { const res = yield neon_core_1.rpc.Query.invokeScript(script).execute(url); const decimals = neon_core_1.rpc.IntegerParser(res.result.stack[0]); return neon_core_1.rpc .Fixed8Parser(res.result.stack[1]) .mul(Math.pow(10, 8 - decimals)); } catch (err) { log.error(`getTokenBalance failed with : ${err.message}`); throw err; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTokenBalance(address, tokenName) {\n\n\tvar result = null;\n\n\ttokenAddress = getTokenAddress(tokenName);\n\n var scriptUrl = \"https://\" + network + \".etherscan.io/api?module=account&action=tokenbalance&contractaddress=\" + tokenAddress + \"&address=\" + address + \"&tag=latest&apikey=\"+ apiKey;\n $.ajax({\n url: scriptUrl,\n type: 'get',\n dataType: 'json',\n async: false,\n success: function(data) {\n result = data.result;\n } \n });\n\n // Result has 18 decimals, so we will move the decimal place.\n var tokenDecimal = 18;\n result = result / (10 ** tokenDecimal);\n\n\treturn result;\n}", "async getTokenBalance(contractAddress, address) {\n\t\tconst tokenContract = new this.web3Service.web3.eth.Contract(\n\t\t\tthis.contractABI,\n\t\t\tcontractAddress\n\t\t);\n\t\tconst balanceWei = await tokenContract.methods.balanceOf(address).call();\n\t\tconst decimals = await tokenContract.methods.decimals().call();\n\t\treturn EthUtils.getBalanceDecimal(balanceWei, decimals);\n\t}", "async function getBalance(address) {\n const nfToken = await NFTokenMetadata.at(await getContractAddress('NFTokenMetadata'));\n return nfToken.balanceOf.call(address);\n}", "async getTokenBalanceAtAddress(token_contract_address, address) {\n const erc20Contract = new ERC20Contract(this.client, token_contract_address);\n let p_token_balance = erc20Contract.balanceOf(address).call();\n let p_decimals = erc20Contract.decimals().call();\n return Promise.all([p_token_balance, p_decimals]).then(async (data) => {\n const totalBalance = data[0];\n const decimals = data[1];\n return totalBalance / 10 ** decimals;\n });\n\n }", "async function getBalance(address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.balanceOf.call(address);\n}", "function getBalance() {\n const payload = {\n symbol: 'ELF',\n owner: wallet.address\n };\n\n multiTokenContract.GetBalance.call(payload)\n .then(result => {\n console.log('result: ' + result);\n })\n .catch(err => {\n console.log(err);\n });\n\n return multiTokenContract.GetBalance.call(payload)\n .then(result => {\n console.log(result.balance);\n return result.balance;\n })\n .catch(err => {\n console.log(err);\n });\n }", "async function getBalanceOf(address) {\n const balance = await vault.balanceOf(address);\n console.log(`Balance of ${address}: ${balance}`);\n return balance;\n}", "static async getEtherBalance (address) {\n try {\n let weiBalance = await EtherscanServices.getEtherBalance(address)\n return this.convertWeiToBalance(weiBalance)\n } catch (error) {\n return Number.NaN\n }\n }", "async function getBalance(req, res) {\n var address = req.query.address\n if (address) {\n // get the Ether balance of the given address\n var ethBalance = convertWeiToEth( await web3.eth.getBalance(address)) || '0'\n// get the token balance of the given address\n var tokenBalance = await getContract().methods.balances(address).call() || '0'\n// response data back to requestor\n return res.send({\n 'Ether Balance': ethBalance,\n 'Token Balance': tokenBalance\n })\n } \n}", "getBalanceForAddress(addr){\n\n // The minimum ABI to get ERC20 Token balance\n let minABI = [\n // balanceOf\n {\n \"constant\":true,\n \"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\n \"name\":\"balanceOf\",\n \"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\"}],\n \"type\":\"function\"\n },\n // decimals\n {\n \"constant\":true,\n \"inputs\":[],\n \"name\":\"decimals\",\n \"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\n \"type\":\"function\"\n }\n ];\n\n // Get ERC20 Token contract instance\n let contract = this.injectedWeb3.eth.contract(minABI).at(addr);\n let promise = new Promise((resolve, reject) => {\n // Call balanceOf function\n try {\n contract.balanceOf(this.address, (error, balance) => {\n if (error){\n console.error(error)\n reject(0)\n }\n // Get decimals\n contract.decimals((error, decimals) => {\n if (error){\n console.error(error)\n reject(0)\n }\n\n // calculate a balance\n balance = balance.div(10 ** decimals).toNumber();\n resolve(balance);\n });\n });\n } catch(e){\n console.error(e);\n reject(0)\n }\n });\n\n\n return promise;\n }", "async addressBalance(addr) {\n let [fConfirmed, fUnconfirmed] = await this.addressFunding(addr);\n let [sConfirmed, sUnconfirmed] = await this.addressSpent(addr, fConfirmed);\n\n let totalFunded = 0;\n for (let f of fConfirmed) {\n totalFunded += f.value;\n }\n\n let totalSpent = 0;\n for (let s of sConfirmed) {\n totalSpent += s.value;\n }\n\n let balance = {\n confirmed: totalFunded - totalSpent,\n unconfirmed: totalFunded - totalSpent,\n received: totalFunded,\n spent: totalSpent\n };\n\n return balance;\n }", "static async getTokenFee (toAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let gas = await this.getFee(toAddress)\n\n return this.convertWeiToBalance(gas)\n } catch (error) {\n return Number.NaN\n }\n }", "function balance(address, nodeUrl, requestOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return addresses_route.fetchBalance(nodeUrl, address, requestOptions).then(d => +d.balance);\n });\n}", "function retbalance(addr) {\n var balance= web3.fromWei(web3.eth.getBalance(addr));\n return (balance);\n}", "async getBalance() {\n const balance = await privateTokenSale.methods.getBalance().call();\n return balance;\n }", "getBalanceOfAddress(address){\n\t\tlet balance = 0;\n\t\t\n\t\t//Loop through the blocks\n\t\tfor(const block of this.chain){\n\t\t\t//Loop through the transactions\n\t\t\tfor(const transaction of block.transactions){\n\t\t\t\tconsole.log('------')\n\t\t\t\tconsole.log('nonce: ' + block.nonce);\n\t\t\t\tconsole.log('address: ' + address);\n\t\t\t\tconsole.log('transaction.toAddress: ' + transaction.toAddress);\n\t\t\t\tconsole.log('transaction.fromAddress: ' + transaction.fromAddress);\n\t\t\t\t//If the to address is that of the sender, then the sender receives the money, so we increment the balance\n\t\t\t\tif(transaction.toAddress === address){\n\t\t\t\t\tbalance += transaction.amount;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the from address is that of the sender, then the sender gave the money, so we decrement the balance\n\t\t\t\tif(transaction.fromAddress === address){\n\t\t\t\t\tbalance -= transaction.amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return the balance\n\t\treturn balance;\n\t}", "getBalanceOfAddress( address, senderAddress ) {\n const balance = this.blockchain.getBalanceOfAddress( address );\n this._responseToPsvWallet( \"getBalanceOfAddress\", balance, senderAddress );\n return balance;\n }", "async function returnSupply(token, address, abi) {\n let contract = new web3.eth.Contract(abi, token);\n let decimals = await contract.methods.decimals().call();\n let supply = await contract.methods.totalSupply().call();\n balance = await new BigNumber(supply).div(10 ** decimals).toFixed(2);\n return parseFloat(balance);\n }", "static async getFeeToken (receiverAddress, contractAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let gasPrice = await EtherscanServices.getGasPrice()\n // gasPrice *= countPercent\n gasPrice = parseInt(gasPrice)\n\n var tokenAmount = 0\n // Token Standards\n var transferOpCode = '0xa9059cbb'\n\n var ethNakedAddress = receiverAddress.toLowerCase().replace('0x', '')\n\n // Convert to address Token\n var ABIAddressTarget = this.zeroPadLeft(ethNakedAddress, 64)\n\n // Convert to value Token\n var ABIValueToTransfer = this.zeroPadLeft(tokenAmount.toString(16), 64)\n var ethData = transferOpCode + ABIAddressTarget + ABIValueToTransfer\n\n let gasLimit = await this.getGasLimitToken(contractAddress, gasPrice, ethData)\n let fee = gasLimit * gasPrice\n\n return fee\n } catch (error) {\n throw error\n }\n }", "balance(address) {\n return __awaiter(this, void 0, void 0, function* () {\n return api_1.balance(this, address);\n });\n }", "getBalanceOfAddress(address) {\n\t\tlet balance = 0;\n\t\tfor (const block of this.blockchain) {\n\t\t\tfor (const transaction of block.transactions) {\n\t\t\t\tif (transaction.fromAddress === address) {\n\t\t\t\t\tbalance -= transaction.amount;\n\t\t\t\t} else if (transaction.toAddress === address) {\n\t\t\t\t\tbalance += transaction.amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn balance;\n\t}", "async function getRVNBalance(addr, verbose) {\n try {\n const result = await RVNBOX.Address.details([addr])\n\n if (verbose) console.log(result)\n\n const rvnBalance = result[0]\n\n return rvnBalance.balance\n } catch (err) {\n console.error(`Error in getRVNBalance: `, err)\n console.log(`addr: ${addr}`)\n throw err\n }\n}", "getBalanceOfAddress(address){\n\n //By default balance is zero\n let balance = 0;\n\n for(const block of this.chain){\n for(const trans of block.transactions){\n if(trans.fromAddress === address){\n balance -= trans.amount;\n }\n\n if(trans.toAddress === address){\n balance += trans.amount;\n }\n }\n }\n\n return balance;\n }", "getBalanceOfAddress(address){\n let balance = 0;\n\n for(const block of this.chain){\n for(const trans of block.transactions){\n if(trans.fromAddress === address){\n balance -= trans.amount;\n }\n\n if(trans.toAddress === address){\n balance += trans.amount;\n }\n }\n }\n\n return balance;\n }", "function getBalance(_address) {\n console.log(\"Checking account balance of address: \" + _address);\n try {\n web3.eth.getBalance(_address, function(error, wei) {\n if (!error) {\n newSender.setBalance(wei);\n }\n });\n } catch (err) {\n console.log(err);\n }\n}", "getBalanceOfAddress(address) {\n const transactions = this.blocks.flatMap((block) => block.transactions);\n // console.log(JSON.stringify(transactions));\n return transactions.reduce((balance, tx) => {\n if (tx.fromAddress === address) {\n return (balance -= tx.amount);\n }\n if (tx.toAddress === address) {\n return (balance += tx.amount);\n }\n return balance;\n }, 0);\n }", "function getTokenTransactions(address, tokenName) {\n\n\tvar scriptUrl = \"https://\" + network + \".etherscan.io/api?module=account&action=tokentx&contractaddress=\" + tokenAddress + \"&address=\" + address + \"&tag=latest&apikey=\"+ apiKey;\n $.ajax({\n \turl: scriptUrl,\n type: 'get',\n dataType: 'json',\n async: false,\n success: function(data) {\n result = data.result;\n } \n });\n\n\treturn result;\n}", "function getBalance (account) {\n return account.balance;\n}", "async function getBalance() {\n if (typeof window.ethereum !== 'undefined') {\n const [account] = await window.ethereum.request({ method: 'eth_requestAccounts' })\n const provider = new ethers.providers.Web3Provider(window.ethereum);\n const contract = new ethers.Contract(bvgTokenAddress, BVGToken.abi, provider)\n const balance = await contract.balanceOf(account);\n console.log(\"Balance: \", ethers.utils.formatEther(balance).toString());\n }\n }", "function getToken(url, scriptHash, address) {\n return __awaiter(this, void 0, void 0, function* () {\n const parser = address ? parseTokenInfoAndBalance : parseTokenInfo;\n const sb = new neon_core_1.sc.ScriptBuilder();\n abi.name(scriptHash)(sb);\n abi.symbol(scriptHash)(sb);\n abi.decimals(scriptHash)(sb);\n abi.totalSupply(scriptHash)(sb);\n if (address) {\n abi.balanceOf(scriptHash, address)(sb);\n }\n const script = sb.str;\n try {\n const res = yield neon_core_1.rpc.Query.invokeScript(script)\n .parseWith(parser)\n .execute(url);\n const result = {\n name: res[0],\n symbol: res[1],\n decimals: res[2],\n totalSupply: res[3].div(Math.pow(10, 8 - res[2])).toNumber(),\n };\n if (address) {\n result.balance = res[4].div(Math.pow(10, 8 - res[2]));\n }\n return result;\n }\n catch (err) {\n log.error(`getToken failed with : ${err.message}`);\n throw err;\n }\n });\n}", "async getTokenTotalSupply(token_contract_address) {\n switch (token_contract_address) {\n case '0x6b175474e89094c44da98b954eedeac495271d0f' /* DAI */:\n /*---------------------------------------------------------\n Special case for DAI as it is not held in a single contract\n token supply explained here \n https://github.com/makerdao/developerguides/blob/master/dai/dai-supply/dai-supply.md\n ---------------------------------------------------------*/\n const vatAddr = '0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B';\n const abi = [\n {\n inputs: [],\n name: 'debt',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n type: 'function',\n },\n ];\n\n const vat = new this.client.eth.Contract(abi, vatAddr);\n return vat.methods\n .debt()\n .call()\n .then((supply) => supply / Math.pow(10, 45));\n break;\n\n default:\n /*---------------------------------------------------------\n General Case for all standard ERC-20 tokens\n ---------------------------------------------------------*/\n const erc20Contract = new ERC20Contract(this.client, token_contract_address);\n let p_totalSupply = erc20Contract.totalSupply().call();\n let p_decimals = erc20Contract.decimals().call();\n return Promise.all([p_totalSupply, p_decimals]).then(async (data) => {\n const totalSupply = data[0];\n const decimals = data[1];\n\n let total_supply = totalSupply / 10 ** decimals;\n\n /*---------------------------------------------------------\n Protect against garbage value returns. Arbitrary 1Bil limit.\n ---------------------------------------------------------*/\n if (total_supply > 100000000000) return 0;\n else return total_supply;\n });\n break;\n }\n }", "async function getFee(transactionType, address, token, zkSyncProvider, tokenSet) {\r\n const fee = await zkSyncProvider.getTransactionFee(transactionType, address, token)\r\n\r\n // 2. On the next line, use the `tokenSet` object instead of `ethers.utils.formatEther`\r\n return tokenSet.formatToken(token, fee.totalFee)\r\n}", "async function getBalance(addr) {\n addressBalance = await client.getAddressBalance(addr)\n console.log(\"addressBalance:\", addressBalance.balance);\n if(addressBalance.balance == 0) {\n getBalance(addr)\n }\n else {\n console.log('Funds Received!');\n return\n }\n}", "function getBalance(account){\n\treturn account.balance;\n}", "function getBalance(tipper, cb) {\n // tipper has no address, never made a deposit\n if (!tipper.address) {\n return cb(null, tipper.received - tipper.spent);\n }\n\n // balance = total deposit amount + total received - total spent\n power.cmd(\"getreceivedbyaddress\", tipper.address, function (err, amount) {\n if (err) {\n return cb(err, null);\n }\n\n const balance = amount + tipper.received - tipper.spent;\n return cb(null, balance);\n });\n}", "async function getAccountBalance() {\n return web3.eth.getBalance(getAccount());\n}", "async getBalance (denomination = 'uscrt') {\n const account = await this.API.getAccount(this.address) || {}\n const balance = account.balance || []\n const inDenom = ({denom, amount}) => denom === denomination\n const balanceInDenom = balance.filter(inDenom)[0] || {}\n return balanceInDenom.amount || 0\n }", "async function loadBalance(GCI, address) {\n let client = await lotion.connect(GCI)\n accounts = client.state.accounts\n return await accounts[address]['balance']\n }", "getBalance(crypto = null) {\r\n if (this.config.debug) {\r\n console.log(\"WalletBF getBalance\");\r\n }\r\n\r\n if (!crypto) {\r\n crypto = \"XBT\";\r\n }\r\n\r\n let balance = 0;\r\n let coins = this.getStoredCoins(true, crypto);\r\n Object.keys(coins).forEach(function(i) {\r\n balance += parseFloat(coins[i].v); \r\n });\r\n return this._round(balance,8);\r\n }", "async getBalance () {\n const body = new FormData();\n body.append(\"secret\", this.secret);\n\n const request = new Request(\"post\", `${Endpoints.pay.base}${Endpoints.pay.balance}`, {\n body: body\n });\n const response = await this.manager.push(request);\n\n if (response.success) {\n this.balance = response.balance;\n return this.balance;\n } else {\n const errorObj = {\n error: true,\n location: `${Endpoints.pay.base}${Endpoints.pay.balance}`,\n method: \"post\",\n reason: response.reason,\n params: {}\n };\n this.emit(\"error\", errorObj);\n return errorObj;\n }\n }", "getAccountBalance () {\n return this.createRequest('/balance', 'GET');\n }", "async function checkBalance(accountAddress) {\n if(!web3.utils.checkAddressChecksum(accountAddress)){\n console.log(\"CheckSum Failed:\" + accountAddress);\n throw(\"CheckSum Failed\");\n }\n try{ \n const balance = await contract.methods.balanceOf(accountAddress).call();\n return balance;\n }\n catch(err){\n console.log(\"Error in fetching Balance: \" + err)\n return err;\n }\n}", "getBalance(node) {\n console.log(\"Getting ETH balance for: \" + node);\n let config = Promise.all(this.getConfig(node));\n return config.then( response => {\n let web3 = response[0];\n let contract = response[1];\n return this.getAddress(node).then((address) => {\n return web3.eth.getBalance(address).then((balanceWei) => {\n return web3.utils.fromWei(balanceWei, 'ether');\n })\n })\n });\n }", "async getBalance () {\n await this.update()\n return this.client.getBalance()\n }", "function balanceDetails(address, nodeUrl, requestOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return addresses_route.fetchBalanceDetails(nodeUrl, address, requestOptions);\n });\n}", "static getEthBalance() {\n const { walletAddress } = store.getState();\n\n const web3 = new Web3(this.getWeb3HTTPProvider());\n\n return new Promise((resolve, reject) => {\n web3.eth.getBalance(walletAddress, (error, weiBalance) => {\n if (error) {\n reject(error);\n }\n\n const balance = weiBalance / Math.pow(10, 18);\n\n AnalyticsUtils.trackEvent('Get ETH balance', {\n balance,\n });\n\n resolve(balance);\n });\n });\n }", "async function getAccount(address) {\n if (address == null) {\n return null;\n }\n var response = await restGet(`/auth/accounts/${address}`);\n var account;\n try {\n account = response.data.result.value;\n } catch (e) {\n return null;\n }\n\n if (account.address == \"\") {\n return null;\n }\n return account;\n}", "getTransactionByAddress(param,callback){\n \n const api_data = {\n api_name:'/get-transaction-by-address',\n coin:this.coin,\n api_key: this.apikey,\n password : this.api_password,\n };\n api_call.apiPostCall(api_data,param,callback);\n }", "function getTokenAddress(tokenName) {\n\t\n\tvar result = null;\n\n\tif (tokenName == \"TEST\") {\n\t\tresult = \"0x875664e580eea9d5313f056d0c2a43af431c660f\";\n\t} else if (tokenName == \"DAI\") {\n\t\tresult = \"0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359\";\n\t}\n\n\treturn result;\n}", "async getAccountData(address) {\n const account = this.networkClient.AccountAddress();\n account.setAddress(address);\n const request = this.networkClient.GetAccountInfoRequest();\n request.setAccount(account);\n const ledger = new ledger_pb_1.LedgerSpecifier();\n ledger.setShortcut(ledger_pb_1.LedgerSpecifier.Shortcut.SHORTCUT_VALIDATED);\n request.setLedger(ledger);\n const accountInfo = await this.networkClient.getAccountInfo(request);\n if (!accountInfo) {\n throw xrp_error_1.default.malformedResponse;\n }\n const accountData = accountInfo.getAccountData();\n if (!accountData) {\n throw xrp_error_1.default.malformedResponse;\n }\n return accountData;\n }", "function getBalance() {\n return balance;\n }", "async function getApproved(tokenID, address) {\n console.log('Getting Approver for an NF Token', tokenID);\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.getApproved.call(tokenID);\n}", "getBalance(account, more) {\n if (!account) return 0.00;\n\n if (!this.web3.isAddress(account))\n throw `${account} is an invalid account`;\n\n // more - pending, latest \n if (!more) more = 'latest';\n\n // ether = ligear\n const weiValue = this.web3.eth.getBalance(account, more);\n return Number(this.web3.fromWei(weiValue));\n }", "_getEthAmountLeft(address) {\n return this._web3.eth.getBalance(address);\n }", "async function _TB(_token, _holder) {\n return new Promise(async (resolve, reject) =>{\n return resolve((await _token.balanceOf.call(_holder)).toNumber());\n })\n}", "balance(account) {\n if (this.ledger[account] === undefined) {\n throw new Error(`${account} is not a registered customer of the bank`);\n }\n return this.ledger[account];\n }", "async deposit({\n account,\n key\n }, {\n token,\n amount\n }) {\n let nonce = await this.web3.eth.getTransactionCount(account);\n\n if (\n token !== \"0x0\" &&\n token !== \"0x0000000000000000000000000000000000000000\" &&\n token.length === 42\n ) {\n // Token address\n let BrandedToken = new this.web3.eth.Contract(\n BrandedTokenArtifacts.abi,\n token\n );\n let from = account;\n // amount is converted to wei here since we send directly to the token contract\n let approveAmount = Web3.utils.toBN(Web3.utils.toWei(\"\" + amount, \"ether\"));\n\n let txHash = await this._signedAndSubmit({\n from: from,\n nonce: nonce,\n gas: this.config.gas,\n gasPrice: this.config.gasPrice,\n to: BrandedToken.options.address,\n data: BrandedToken.methods\n .approve(this.RootChain.options.address, approveAmount)\n .encodeABI()\n }, key);\n nonce += 1\n console.log(\"txHash\", txHash);\n\n }\n let address = account;\n // amount will be converted to wei on the chain node\n let response = await this.client.request(\"deposit\", {\n address,\n token,\n amount,\n }).catch(err => {\n throw err;\n });\n let json = response.result.result;\n json.nonce = nonce;\n return this._signedAndSubmit(json, key);\n }", "function fetchAccount(token, callback) {\n\taccess_token = \"Bearer \" + token;\n\taxios({\n\t\tmethod: 'get',\n\t\turl: ACCOUNTS_URL,\n\t\theaders: {\n\t\t\t\"Authorization\": access_token,\n\t\t\t\"uuid\": SAMPLE_UUID,\n\t\t\t\"Accept\": ACCEPT,\n\t\t\t\"client_id\": CLIENT_ID\n\t\t}\n\t}).then(function(response){\n\t\tvar successfulAccount = JSON.stringify(response.data, undefined, 2);\n\t\tcallback(null, successfulAccount);\n\t\t}).catch(function(error){\n\t\t\tcallback(error, null);\n\t\t});\n}", "function getBalance() {\n return new Promise((resolve, reject) => {\n co(function* () {\n\n yield validateConfig()\n .catch((err) => {\n reject(err);\n });\n\n yield readYAML()\n .catch((err) => {\n reject(err);\n });\n\n yield getUserAddress()\n .catch((err) => {\n reject(err);\n });\n\n yield fetchBalance()\n .then((result) => {\n resolve(result);\n })\n .catch((err) => {\n reject(err);\n });\n });\n });\n}", "function checkBalanceOf() {\n let tokenID = document.getElementById('balanceOfTokenID').value;\n let address = document.getElementById('balanceOfAddress').value;\n\n if (tokenID == \"\" || address == \"\") {\n alert(\"You did not complete all the fields\");\n return;\n }\n\n balanceOf(tokenID, address, (err, balance) => {\n if (err) {\n alert('Token is not yet created');\n return;\n }\n document.getElementById('balance').innerText = String(balance);\n });\n}", "async function getOwner(tokenID, address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.ownerOf.call(tokenID);\n}", "async getBalance(hash) {\n const json = await this.get(`/api/v1/balance/${hash}`);\n this.handleError(json);\n return json.Result;\n }", "function getBalanceAndProof(address) {\n const balance = balances[address.toLowerCase()];\n const hash = ethers.utils.solidityKeccak256(['address', 'uint'], [address, balance]);\n const proof = '0x' + merkleTree.getProof(Buffer.from(hash.slice(2), 'hex')).map(e => e.toString('hex')).join('');\n return [ balance, proof ];\n}", "async function getNFTAddress(address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n return nfTokenShield.getNFToken.call();\n}", "async GetAccount (address, schema) {\n try {\n let response = await this.client.request('theta.GetAccount', [{ address: address }])\n return responseExtractor(response, schema)\n } catch (error) {\n console.error(error)\n throw error\n }\n }", "async getBCHBalance (addr, verbose = false) {\n try {\n const fulcrumBalance = await this.bchjs.Electrumx.balance(addr)\n // console.log(`fulcrumBalance: ${JSON.stringify(fulcrumBalance, null, 2)}`)\n\n const confirmedBalance = this.bchjs.BitcoinCash.toBitcoinCash(\n fulcrumBalance.balance.confirmed\n )\n\n if (verbose) {\n // const resultToDisplay = confirmedBalance\n // resultToDisplay.txids = []\n console.log(fulcrumBalance)\n }\n\n const bchBalance = confirmedBalance\n\n return bchBalance\n } catch (err) {\n wlogger.error(`Error in bch.js/getBCHBalance(): ${err.message}`, err)\n throw err\n }\n }", "function getAddress(node_name){\n\t// Load config data from SmartToken.json\n\tvar addrlist = require('./addr_list.json');\t\n\treturn addrlist[node_name];\t\n}", "function getAddress(node_name){\n\t// Load config data from SmartToken.json\n\tvar addrlist = require('./addr_list.json');\t\n\treturn addrlist[node_name];\t\n}", "getAccountBalance(account) {\n getAccountBalance(this, account)\n }", "async function checkEthTokenBalance(\n tokenAddress,\n weiAmount,\n account,\n) {\n // explicit conversion - TODO: fix this brekaing in prod builds\n weiAmount = toBN(weiAmount)\n // BYPASS[return false] => if token is not ETHER\n const ethAddress = await isETH(tokenAddress)\n\n if (!ethAddress) return false\n\n const wrappedETH = await getTokenBalance(ethAddress, false, account)\n // BYPASS[return false] => if wrapped Eth is enough\n // wrappedETH must be GREATER THAN OR EQUAL to WEI_AMOUNT * 1.1 (10% added for gas costs)\n if (wrappedETH.gte((weiAmount.mul(BN_4_PERCENT).div(toBN(100))))) return (console.debug('Enough WETH balance, skipping deposit.'), false)\n\n // Else return amount needed to wrap to make tx happen\n return weiAmount.sub(wrappedETH)\n}", "getBalance() {\n return this.wallet.getBalance();\n }", "checkBalance(walletAddress){\r\n var balance = 0;\r\n for(var i = 0; i < this.bc.length; i++){\r\n for(var j = 0; j < this.bc[i].data.length; j++){\r\n if(this.bc[i].data[j].reciever == walletAddress){\r\n balance += this.bc[i].data[j].amount;\r\n } else if (this.bc[i].data[j].sender == walletAddress) {\r\n balance -= this.bc[i].data[j].amount;\r\n }\r\n }\r\n\r\n }\r\n return balance;\r\n }", "getBalance(callback){\n \n const api_data = {\n api_name:'/get-balance',\n coin:this.coin,\n api_key: this.apikey,\n password : this.api_password,\n };\n api_call.apiPostCall(api_data,{},callback);\n }", "function getAddressBalances(params) {\n return new Promise((resolve, reject) => {\n var response;\n var addresses = params.address;\n\n console.log(\"data\", addresses)\n multichain.getAddressBalances({\n \"address\": addresses,\n // \"minconf\": 1,\n // \"includeLocked\": true\n },\n (err, res) => {\n console.log(res)\n if (err == null) {\n \n\n return resolve({\n \n response: res,\n message: \"your Assets Balance\"\n });\n } else {\n console.log(err)\n return reject({\n status: 500,\n message: 'Internal Server Error !'\n });\n }\n })\n })\n}", "async getAllOutgoing(address, timePeriod) {\n const operation = {\n query: gql`\n query getAccount($id: Bytes) {\n account(id: $id) {\n balance\n loansOwned {\n amount\n recipient {\n id\n }\n hat {\n id\n }\n transfers {\n value\n transaction {\n id\n timestamp\n blockNumber\n }\n }\n }\n }\n }\n `,\n variables: { id: address }\n };\n let res = await makePromise(execute(this.rTokenLink, operation));\n return res.data.account.loansOwned;\n }", "function getTokenBalances(url, scriptHashArray, address) {\n return __awaiter(this, void 0, void 0, function* () {\n const sb = new neon_core_1.sc.ScriptBuilder();\n scriptHashArray.forEach((scriptHash) => {\n abi.symbol(scriptHash)(sb);\n abi.decimals(scriptHash)(sb);\n abi.balanceOf(scriptHash, address)(sb);\n });\n const res = yield neon_core_1.rpc.Query.invokeScript(sb.str).execute(url);\n const tokenList = {};\n if (!res ||\n !res.result ||\n !res.result.stack ||\n res.result.stack.length !== 3 * scriptHashArray.length) {\n throw new Error(\"Stack returned was invalid\");\n }\n try {\n for (let i = 0; i < res.result.stack.length; i += 3) {\n try {\n const symbol = neon_core_1.rpc.StringParser(res.result.stack[i]);\n const decimals = neon_core_1.rpc.IntegerParser(res.result.stack[i + 1]);\n tokenList[symbol] = neon_core_1.rpc\n .Fixed8Parser(res.result.stack[i + 2])\n .mul(Math.pow(10, 8 - decimals));\n }\n catch (e) {\n log.error(`single call in getTokenBalances failed with : ${e.message}`);\n throw e;\n }\n }\n return tokenList;\n }\n catch (err) {\n log.error(`getTokenBalances failed with : ${err.message}`);\n throw err;\n }\n });\n}", "getWhitelistAddress( address, contractInfoABI, web3Address) {\n\t\treturn new Promise(((resolve, reject) => {\n\t\t\ttry {\n\t\t\t\tconst web3 = new Web3(new Web3.providers.HttpProvider(web3Address));\n\t\t\t\tweb3.eth.net.isListening().then(() => {\n\t\t\t\t\tconst contract = new web3.eth.Contract(contractInfoABI, address);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//bytes32(\"GeneralTransferManager\")\t\t\t\t\t\n\t\t\t\t\t\t\t\tcontract.methods.getModulesByName( web3.utils.asciiToHex(\"GeneralTransferManager\") ).call().then((balance) => {\n\t\t\t\t\t\t\t\t\tresolve(balance);\n\t\t\t\t\t\t\t\t}).catch((err) => {\n\t\t\t\t\t\t\t\t\treject({ code: '0', message: `${err.message}. Error calling balanceOf method in getAccountBalance` });\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t}).catch(() => {\n\t\t\t\t\treject({ code: '0', message: 'Ethereum network connection error in getAccountBalance11' });\n\t\t\t\t});\n\t\t\t} catch (err) {\n\t\t\t\treject({ code: '0', message: `${err.message}. Error occured in getAccountBalance` });\n\t\t\t}\n\t\t}));\n\t}", "_lookupAccount(address, cb) {\n this._trie.get(address, (err, raw) => {\n if (err)\n return cb(err);\n var account = new ethereumjs_account_1.default(raw);\n cb(null, account);\n });\n }", "static async getFee (toAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let code = await EtherscanServices.getCode(toAddress)\n let gasPrice = await EtherscanServices.getGasPrice()\n // gasPrice *= countPercent\n gasPrice = parseFloat(gasPrice.toFixed(0))\n\n if (code === '0x') {\n return Settings.gas.externalAcc * gasPrice\n } else {\n let gasLimit = '0xffffffffffff'\n let estimateGas = await EtherscanServices.estimateGas(toAddress, '0xff22', gasPrice, gasLimit)\n let fee = (estimateGas + Settings.gas.extraGas) * gasPrice\n\n return fee\n }\n } catch (error) {\n throw error\n }\n }", "read({balance}, res) {\n // Get the balance of an ethereum address\n // toNumber() -> ether bug => toString() instead\n res.json({balance: balance.toString()});\n }", "function sumBalancesByTokenAddress(arr) {\n return arr.reduce((acc, curr) => {\n const found = acc.find((item) => item.tokenAddress === curr.tokenAddress);\n if (found) {\n found.balance = +found.balance + +curr.balance;\n } else {\n const newItem = {\n tokenAddress: curr.tokenAddress,\n balance: curr.balance,\n category: curr.category,\n };\n acc.push(newItem);\n }\n return acc;\n }, []);\n}", "function balance( key ){\n\n\tcheckForMissingArg( key, \"key\" );\n\t\n\treturn getPublicKey(key).then( Blockchain.getBalance );\n}", "function GetTokenForSpend() {\n let tokens = loadTokens();\n const tokenToSpend = tokens[0];\n tokens = tokens.slice(1);\n storeTokens(tokens);\n return tokenToSpend;\n}", "async function _TB(_holder) {\n return new Promise(async (resolve, reject) =>{\n return resolve((await token.balanceOf.call(_holder)).toNumber());\n })\n}", "getAccountBalance(accountId) {\n if (lock.isBusy(accountId)) throwError('Service Unavailable', 503);\n this.logger.info('Retrieving account balance...', accountId);\n const accountBalance = accountDatabase[accountId].balance;\n return { accountBalance };\n }", "async getAccountBalanceProxy(msg) {\n let response = await getAccountBalanceProxy(this, msg)\n return response\n }", "async function getFee(token = 0) {\n return utils.bigNumberify(\n await settings.db.get([\n interface.db.fee,\n token,\n ]),\n );\n }", "async function queryBalances(account, tokens) {\n return Promise.all(\n _.map(tokens, (token) => {\n return token.balanceOf.call(account);\n })\n );\n}", "function getAccountBalance(){\r\n myContract.methods.getAccountBalance().call(function(error, result){\r\n if(!error)\r\n { \r\n // console.log(\"account balance: \"+ result);\r\n // console.log(result);\r\n // $(\".balanceLeft\").text(parseInt(result));\r\n }\r\n else\r\n console.error(error);\r\n });\r\n }", "function printBalances() {\n var token = tokenContractAddress == null || tokenContractAbi == null ? null : web3.eth.contract(tokenContractAbi).at(tokenContractAddress);\n var decimals = token == null ? 18 : token.decimals();\n var i = 0;\n var totalTokenBalance = new BigNumber(0);\n console.log(\"RESULT: # Account EtherBalanceChange Token Name\");\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n accounts.forEach(function(e) {\n var etherBalanceBaseBlock = eth.getBalance(e, baseBlock);\n var etherBalance = web3.fromWei(eth.getBalance(e).minus(etherBalanceBaseBlock), \"ether\");\n var tokenBalance = token == null ? new BigNumber(0) : token.balanceOf(e).shift(-decimals);\n totalTokenBalance = totalTokenBalance.add(tokenBalance);\n console.log(\"RESULT: \" + pad2(i) + \" \" + e + \" \" + pad(etherBalance) + \" \" + padToken(tokenBalance, decimals) + \" \" + accountNames[e]);\n i++;\n });\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n console.log(\"RESULT: \" + padToken(totalTokenBalance, decimals) + \" Total Token Balances\");\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n console.log(\"RESULT: \");\n}", "exportAccount (address) {\n return null // disabled\n // const wallet = this._getWalletForAccount(address)\n // return Promise.resolve(wallet.getPrivateKey().toString('hex'))\n }", "async getTotalInterestPaid(address, timePeriod) {\n const operation = {\n query: gql`\n query getUser($id: Bytes) {\n user(id: $id) {\n id\n totalInterestPaid\n }\n }\n `,\n variables: { id: address }\n };\n let res = await makePromise(execute(this.rTokenLink, operation));\n return res.data.user.totalInterestPaid;\n }", "function getBalance() { //give value to number\n const balance = document.querySelector('#balance');\n return Number(balance.value);\n}", "async getNonce(address) {\n const account = await this.getAccount(address);\n if (!account) {\n throw new Error(\"Account does not exist on chain. Send some tokens there before trying to query nonces.\");\n }\n return {\n accountNumber: account.accountNumber,\n sequence: account.sequence,\n };\n }", "requestBalance (adapter, uniqueId) {\n return new Promise(async (resolve, reject) => {\n const target = await this.Account.getOrCreate(adapter, uniqueId)\n resolve(target.balance)\n })\n }", "async getBalance() {\n if (this.active) {\n try {\n console.log('Looking up account balance');\n let response = await this.client.account_balance(this.GAME_ADDRESS);\n return this.getKraiFromRaw(response.balance);\n } catch (error) {\n console.log(`RPC error: ${error.message}`);\n }\n }\n return 0;\n }", "function getBalance(accountName) {\n var bankAccountKey = currentAccount.accountNumber + accountName;\n\n if (localStorage.getItem(bankAccountKey) != null) {\n return localStorage.getItem(bankAccountKey);\n } else {\n for (var i = 0; i < currentAccount.bankAccounts.length; i++) {\n if (currentAccount.bankAccounts[i].name == accountName) {\n return currentAccount.bankAccounts[i].balance;\n }\n }\n return \"ERROR: Account\" + accountName + \" could not be found\";\n }\n}", "function asToken(addressOrToken, defaultToken) {\n const allTokens = Dapple.getTokens();\n\n if (!defaultToken\n || typeof defaultToken !== 'string'\n || !allTokens.includes(defaultToken)) {\n throw Error('Wrong usage of the API. Read documentation');\n }\n\n if (!addressOrToken || typeof addressOrToken !== 'string') {\n return defaultToken;\n }\n const isAnAddress = web3Obj.isAddress(addressOrToken);\n let currency = defaultToken.toUpperCase();\n let token = addressOrToken.toUpperCase();\n\n if (isAnAddress) {\n token = Dapple.getTokenByAddress(addressOrToken).toUpperCase();\n }\n\n if (token && allTokens.includes(token)) {\n currency = token;\n }\n\n return currency;\n}", "async function burnNFToken(tokenID, address) {\n console.log('Burning NF Token', tokenID, address);\n const nfToken = await NFTokenMetadata.at(await getContractAddress('NFTokenMetadata'));\n return nfToken.burn(tokenID, {\n from: address,\n gas: 4000000,\n });\n}", "async mintToken({\n account,\n key\n }, {\n tokenAddress,\n to,\n amount,\n }) {\n let BrandedToken = new this.web3.eth.Contract(\n BrandedTokenArtifacts.abi, tokenAddress\n );\n\n amount = Web3.utils.toBN(Web3.utils.toWei(\"\" + amount, \"ether\"));\n // let nonce = await this.web3.eth.getTransactionCount(account);\n let result = await this._signedAndSubmit({\n from: account,\n // nonce: nonce,\n gas: this.config.gas,\n gasPrice: this.config.gasPrice,\n to: BrandedToken.options.address,\n data: BrandedToken.methods.mint(to, amount).encodeABI(),\n }, key);\n\n return result;\n }" ]
[ "0.81202614", "0.79067683", "0.78906536", "0.78245914", "0.7817337", "0.70537084", "0.6981081", "0.6966627", "0.69659144", "0.69415474", "0.68787974", "0.68284637", "0.6746437", "0.6735614", "0.6703413", "0.66860366", "0.66718316", "0.6648983", "0.6628021", "0.6615178", "0.66073", "0.6594708", "0.65613043", "0.65515816", "0.65331507", "0.6521327", "0.6492522", "0.64137137", "0.64076936", "0.63621134", "0.6275407", "0.6262036", "0.62606144", "0.6245448", "0.61385566", "0.6103564", "0.60420734", "0.60376495", "0.60319245", "0.6027545", "0.60236806", "0.601689", "0.5997361", "0.59920627", "0.5949776", "0.59481883", "0.59433675", "0.5939595", "0.5918202", "0.5918195", "0.5910716", "0.58899915", "0.5882726", "0.58689505", "0.5868781", "0.5855021", "0.5827124", "0.5823547", "0.5823025", "0.58094627", "0.5771589", "0.5769977", "0.57498425", "0.5747967", "0.5744789", "0.5713952", "0.5705723", "0.5705723", "0.57025915", "0.5690322", "0.56765693", "0.5660609", "0.56566244", "0.5651329", "0.5647763", "0.56422144", "0.5638297", "0.56299955", "0.5625539", "0.56176805", "0.5594495", "0.5589055", "0.55848265", "0.5570554", "0.5566616", "0.5559451", "0.55505043", "0.5533595", "0.5528297", "0.5514543", "0.5511271", "0.5507718", "0.5504053", "0.5503775", "0.55021405", "0.5502136", "0.54963845", "0.5494856", "0.54718757", "0.54543835" ]
0.70385855
6
Get token balances for an address.
function getTokenBalances(url, scriptHashArray, address) { return __awaiter(this, void 0, void 0, function* () { const sb = new neon_core_1.sc.ScriptBuilder(); scriptHashArray.forEach((scriptHash) => { abi.symbol(scriptHash)(sb); abi.decimals(scriptHash)(sb); abi.balanceOf(scriptHash, address)(sb); }); const res = yield neon_core_1.rpc.Query.invokeScript(sb.str).execute(url); const tokenList = {}; if (!res || !res.result || !res.result.stack || res.result.stack.length !== 3 * scriptHashArray.length) { throw new Error("Stack returned was invalid"); } try { for (let i = 0; i < res.result.stack.length; i += 3) { try { const symbol = neon_core_1.rpc.StringParser(res.result.stack[i]); const decimals = neon_core_1.rpc.IntegerParser(res.result.stack[i + 1]); tokenList[symbol] = neon_core_1.rpc .Fixed8Parser(res.result.stack[i + 2]) .mul(Math.pow(10, 8 - decimals)); } catch (e) { log.error(`single call in getTokenBalances failed with : ${e.message}`); throw e; } } return tokenList; } catch (err) { log.error(`getTokenBalances failed with : ${err.message}`); throw err; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async getTokenBalanceAtAddress(token_contract_address, address) {\n const erc20Contract = new ERC20Contract(this.client, token_contract_address);\n let p_token_balance = erc20Contract.balanceOf(address).call();\n let p_decimals = erc20Contract.decimals().call();\n return Promise.all([p_token_balance, p_decimals]).then(async (data) => {\n const totalBalance = data[0];\n const decimals = data[1];\n return totalBalance / 10 ** decimals;\n });\n\n }", "function getTokenBalance(address, tokenName) {\n\n\tvar result = null;\n\n\ttokenAddress = getTokenAddress(tokenName);\n\n var scriptUrl = \"https://\" + network + \".etherscan.io/api?module=account&action=tokenbalance&contractaddress=\" + tokenAddress + \"&address=\" + address + \"&tag=latest&apikey=\"+ apiKey;\n $.ajax({\n url: scriptUrl,\n type: 'get',\n dataType: 'json',\n async: false,\n success: function(data) {\n result = data.result;\n } \n });\n\n // Result has 18 decimals, so we will move the decimal place.\n var tokenDecimal = 18;\n result = result / (10 ** tokenDecimal);\n\n\treturn result;\n}", "async function getBalance(address) {\n const nfToken = await NFTokenMetadata.at(await getContractAddress('NFTokenMetadata'));\n return nfToken.balanceOf.call(address);\n}", "async function getBalance(address) {\n const nfTokenShield = shield[address] ? shield[address] : await NFTokenShield.deployed();\n const nfToken = await NFTokenMetadata.at(await nfTokenShield.getNFToken.call());\n return nfToken.balanceOf.call(address);\n}", "async getTokenBalance(contractAddress, address) {\n\t\tconst tokenContract = new this.web3Service.web3.eth.Contract(\n\t\t\tthis.contractABI,\n\t\t\tcontractAddress\n\t\t);\n\t\tconst balanceWei = await tokenContract.methods.balanceOf(address).call();\n\t\tconst decimals = await tokenContract.methods.decimals().call();\n\t\treturn EthUtils.getBalanceDecimal(balanceWei, decimals);\n\t}", "async retrieveBalances(addressList) {\n const validators = await this.retrieveValidators();\n // Get all balances\n const requestsBalance = addressList.map(async (addr, index) => {\n const txContext = await this.getAccountInfo(addr);\n return { ...addressList[index], ...txContext };\n });\n // eslint-disable-next-line max-len,no-unused-vars\n const requestsDelegations = addressList.map((addr, index) =>\n this.getAccountDelegations(validators, addr)\n );\n // eslint-disable-next-line no-unused-vars,max-len\n const balances = await Promise.all(requestsBalance);\n const delegations = await Promise.all(requestsDelegations);\n const reply = [];\n for (let i = 0; i < addressList.length; i += 1) {\n reply.push({ ...delegations[i], ...balances[i] });\n }\n return reply;\n }", "async addressBalance(addr) {\n let [fConfirmed, fUnconfirmed] = await this.addressFunding(addr);\n let [sConfirmed, sUnconfirmed] = await this.addressSpent(addr, fConfirmed);\n\n let totalFunded = 0;\n for (let f of fConfirmed) {\n totalFunded += f.value;\n }\n\n let totalSpent = 0;\n for (let s of sConfirmed) {\n totalSpent += s.value;\n }\n\n let balance = {\n confirmed: totalFunded - totalSpent,\n unconfirmed: totalFunded - totalSpent,\n received: totalFunded,\n spent: totalSpent\n };\n\n return balance;\n }", "getBalanceOfAddress(address){\n\t\tlet balance = 0;\n\t\t\n\t\t//Loop through the blocks\n\t\tfor(const block of this.chain){\n\t\t\t//Loop through the transactions\n\t\t\tfor(const transaction of block.transactions){\n\t\t\t\tconsole.log('------')\n\t\t\t\tconsole.log('nonce: ' + block.nonce);\n\t\t\t\tconsole.log('address: ' + address);\n\t\t\t\tconsole.log('transaction.toAddress: ' + transaction.toAddress);\n\t\t\t\tconsole.log('transaction.fromAddress: ' + transaction.fromAddress);\n\t\t\t\t//If the to address is that of the sender, then the sender receives the money, so we increment the balance\n\t\t\t\tif(transaction.toAddress === address){\n\t\t\t\t\tbalance += transaction.amount;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the from address is that of the sender, then the sender gave the money, so we decrement the balance\n\t\t\t\tif(transaction.fromAddress === address){\n\t\t\t\t\tbalance -= transaction.amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return the balance\n\t\treturn balance;\n\t}", "getBalanceOfAddress(address){\n\n //By default balance is zero\n let balance = 0;\n\n for(const block of this.chain){\n for(const trans of block.transactions){\n if(trans.fromAddress === address){\n balance -= trans.amount;\n }\n\n if(trans.toAddress === address){\n balance += trans.amount;\n }\n }\n }\n\n return balance;\n }", "getBalanceOfAddress(address) {\n const transactions = this.blocks.flatMap((block) => block.transactions);\n // console.log(JSON.stringify(transactions));\n return transactions.reduce((balance, tx) => {\n if (tx.fromAddress === address) {\n return (balance -= tx.amount);\n }\n if (tx.toAddress === address) {\n return (balance += tx.amount);\n }\n return balance;\n }, 0);\n }", "getBalanceOfAddress(address){\n let balance = 0;\n\n for(const block of this.chain){\n for(const trans of block.transactions){\n if(trans.fromAddress === address){\n balance -= trans.amount;\n }\n\n if(trans.toAddress === address){\n balance += trans.amount;\n }\n }\n }\n\n return balance;\n }", "function getAddressBalances(params) {\n return new Promise((resolve, reject) => {\n var response;\n var addresses = params.address;\n\n console.log(\"data\", addresses)\n multichain.getAddressBalances({\n \"address\": addresses,\n // \"minconf\": 1,\n // \"includeLocked\": true\n },\n (err, res) => {\n console.log(res)\n if (err == null) {\n \n\n return resolve({\n \n response: res,\n message: \"your Assets Balance\"\n });\n } else {\n console.log(err)\n return reject({\n status: 500,\n message: 'Internal Server Error !'\n });\n }\n })\n })\n}", "function getTokenTransactions(address, tokenName) {\n\n\tvar scriptUrl = \"https://\" + network + \".etherscan.io/api?module=account&action=tokentx&contractaddress=\" + tokenAddress + \"&address=\" + address + \"&tag=latest&apikey=\"+ apiKey;\n $.ajax({\n \turl: scriptUrl,\n type: 'get',\n dataType: 'json',\n async: false,\n success: function(data) {\n result = data.result;\n } \n });\n\n\treturn result;\n}", "async function queryBalances(account, tokens) {\n return Promise.all(\n _.map(tokens, (token) => {\n return token.balanceOf.call(account);\n })\n );\n}", "async getReserves() {\n const tokens = await this.currentTokens();\n\n const balances = await Promise.all(tokens.map((entry) => {\n\n return entry.balanceOf(this.address);\n }));\n\n const output = tokens.map((tok, idx) => {\n return {\n asset: tok.asset,\n balance: balances[idx],\n };\n });\n\n return output;\n }", "getBalanceOfAddress(address) {\n\t\tlet balance = 0;\n\t\tfor (const block of this.blockchain) {\n\t\t\tfor (const transaction of block.transactions) {\n\t\t\t\tif (transaction.fromAddress === address) {\n\t\t\t\t\tbalance -= transaction.amount;\n\t\t\t\t} else if (transaction.toAddress === address) {\n\t\t\t\t\tbalance += transaction.amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn balance;\n\t}", "function getTokenBalance(url, scriptHash, address) {\n return __awaiter(this, void 0, void 0, function* () {\n const sb = new neon_core_1.sc.ScriptBuilder();\n abi.decimals(scriptHash)(sb);\n abi.balanceOf(scriptHash, address)(sb);\n const script = sb.str;\n try {\n const res = yield neon_core_1.rpc.Query.invokeScript(script).execute(url);\n const decimals = neon_core_1.rpc.IntegerParser(res.result.stack[0]);\n return neon_core_1.rpc\n .Fixed8Parser(res.result.stack[1])\n .mul(Math.pow(10, 8 - decimals));\n }\n catch (err) {\n log.error(`getTokenBalance failed with : ${err.message}`);\n throw err;\n }\n });\n}", "async function getBalance(req, res) {\n var address = req.query.address\n if (address) {\n // get the Ether balance of the given address\n var ethBalance = convertWeiToEth( await web3.eth.getBalance(address)) || '0'\n// get the token balance of the given address\n var tokenBalance = await getContract().methods.balances(address).call() || '0'\n// response data back to requestor\n return res.send({\n 'Ether Balance': ethBalance,\n 'Token Balance': tokenBalance\n })\n } \n}", "function balance(address, nodeUrl, requestOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return addresses_route.fetchBalance(nodeUrl, address, requestOptions).then(d => +d.balance);\n });\n}", "getBalanceForAddress(addr){\n\n // The minimum ABI to get ERC20 Token balance\n let minABI = [\n // balanceOf\n {\n \"constant\":true,\n \"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\n \"name\":\"balanceOf\",\n \"outputs\":[{\"name\":\"balance\",\"type\":\"uint256\"}],\n \"type\":\"function\"\n },\n // decimals\n {\n \"constant\":true,\n \"inputs\":[],\n \"name\":\"decimals\",\n \"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\n \"type\":\"function\"\n }\n ];\n\n // Get ERC20 Token contract instance\n let contract = this.injectedWeb3.eth.contract(minABI).at(addr);\n let promise = new Promise((resolve, reject) => {\n // Call balanceOf function\n try {\n contract.balanceOf(this.address, (error, balance) => {\n if (error){\n console.error(error)\n reject(0)\n }\n // Get decimals\n contract.decimals((error, decimals) => {\n if (error){\n console.error(error)\n reject(0)\n }\n\n // calculate a balance\n balance = balance.div(10 ** decimals).toNumber();\n resolve(balance);\n });\n });\n } catch(e){\n console.error(e);\n reject(0)\n }\n });\n\n\n return promise;\n }", "async function getAccountTokenIds(addr) {\n let cadence = await (await fetch(getAccountTokenIdsScript)).text();\n const encoded = await fcl.send([\n fcl.script(cadence),\n fcl.args([fcl.arg(addr, t.Address)])\n ]);\n return await fcl.decode(encoded);\n}", "async getReserves() {\n let tokens = await this.currentTokens();\n\n const balances = await Promise.all(\n tokens.map((tok) => tok.balanceOf(this.address))\n );\n\n const output = balances.map((balance, idx) => {\n return {\n asset: tokens[idx].asset,\n balance,\n };\n });\n\n return output;\n }", "async function getColorsByOwner(_address, _balance) {\r\n\r\n let ids = [];\r\n\r\n for(let i = 0; i < _balance; i++) {\r\n let currToken = await contract.tokenOfOwnerByIndex(_address, i);\r\n currToken = parseInt(currToken);\r\n ids.push(currToken);\r\n }\r\n return ids;\r\n}", "function getTokens(url, scriptHashArray, address) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n const sb = new neon_core_1.sc.ScriptBuilder();\n scriptHashArray.forEach((scriptHash) => {\n abi.name(scriptHash)(sb);\n abi.symbol(scriptHash)(sb);\n abi.decimals(scriptHash)(sb);\n abi.totalSupply(scriptHash)(sb);\n if (address) {\n abi.balanceOf(scriptHash, address)(sb);\n }\n });\n const res = yield neon_core_1.rpc.Query.invokeScript(sb.str).execute(url);\n const result = [];\n const step = address ? 5 : 4;\n for (let i = 0; i < res.result.stack.length; i += step) {\n const name = neon_core_1.rpc.StringParser(res.result.stack[i]);\n const symbol = neon_core_1.rpc.StringParser(res.result.stack[i + 1]);\n const decimals = neon_core_1.rpc.IntegerParser(res.result.stack[i + 2]);\n const totalSupply = neon_core_1.rpc\n .Fixed8Parser(res.result.stack[i + 3])\n .dividedBy(Math.pow(10, decimals - neon_core_1.rpc.IntegerParser(res.result.stack[i + 2])))\n .toNumber();\n const balance = address\n ? neon_core_1.rpc\n .Fixed8Parser(res.result.stack[i + 4])\n .dividedBy(Math.pow(10, decimals - neon_core_1.rpc.IntegerParser(res.result.stack[i + 2])))\n : undefined;\n const obj = {\n name,\n symbol,\n decimals,\n totalSupply,\n balance,\n };\n if (!obj.balance) {\n delete obj.balance;\n }\n result.push(obj);\n }\n return result;\n }\n catch (err) {\n log.error(`getTokens failed with : ${err.message}`);\n throw err;\n }\n });\n}", "async getGatewayBalances(account, addressesToExclude) {\n const gatewayBalancesRequest = {\n id: `${rippled_web_socket_schema_1.RippledMethod.gatewayBalances}_${account}_${this.idNumber}`,\n command: rippled_web_socket_schema_1.RippledMethod.gatewayBalances,\n account,\n strict: true,\n hotwallet: addressesToExclude,\n ledger_index: 'validated',\n };\n this.idNumber++;\n const gatewayBalancesResponse = await this.sendApiRequest(gatewayBalancesRequest);\n return gatewayBalancesResponse;\n }", "async getAllOutgoing(address, timePeriod) {\n const operation = {\n query: gql`\n query getAccount($id: Bytes) {\n account(id: $id) {\n balance\n loansOwned {\n amount\n recipient {\n id\n }\n hat {\n id\n }\n transfers {\n value\n transaction {\n id\n timestamp\n blockNumber\n }\n }\n }\n }\n }\n `,\n variables: { id: address }\n };\n let res = await makePromise(execute(this.rTokenLink, operation));\n return res.data.account.loansOwned;\n }", "async getAllBalancesUnverified(address) {\n const balances = await this.queryClient.bank.unverified.allBalances(address);\n return balances.map(coinFromProto);\n }", "function getBalance() {\n const payload = {\n symbol: 'ELF',\n owner: wallet.address\n };\n\n multiTokenContract.GetBalance.call(payload)\n .then(result => {\n console.log('result: ' + result);\n })\n .catch(err => {\n console.log(err);\n });\n\n return multiTokenContract.GetBalance.call(payload)\n .then(result => {\n console.log(result.balance);\n return result.balance;\n })\n .catch(err => {\n console.log(err);\n });\n }", "function getBalanceAndProof(address) {\n const balance = balances[address.toLowerCase()];\n const hash = ethers.utils.solidityKeccak256(['address', 'uint'], [address, balance]);\n const proof = '0x' + merkleTree.getProof(Buffer.from(hash.slice(2), 'hex')).map(e => e.toString('hex')).join('');\n return [ balance, proof ];\n}", "async function getBalanceOf(address) {\n const balance = await vault.balanceOf(address);\n console.log(`Balance of ${address}: ${balance}`);\n return balance;\n}", "balance(address) {\n return __awaiter(this, void 0, void 0, function* () {\n return api_1.balance(this, address);\n });\n }", "function getWalletBalances(rqid)\r\n\t{\r\n\t\tlet tokens2 = Object.keys(uniqueTokens);\t\r\n\t\ttokens2 = tokens2.filter((x) => {return !uniqueTokens[x].unlisted || showCustomTokens});\r\n\t\ttokenCount = tokens2.length;\r\n\t\t\r\n\t\tlet max = maxPerRequest\r\n\t\tif(!etherscanFallback) //etherscan request can't hold too much data\r\n\t\t\t\tmax = max * 10;\r\n\t\t\r\n\t\tfor(let i = 0; i < tokens2.length; i+= max)\r\n\t\t{\r\n\t\t\twalletBalances(i, i+max, tokens2);\r\n\t\t}\r\n\t\t\r\n\t\tfunction walletBalances(startIndex, endIndex, tokens2)\r\n\t\t{\r\n\t\t\tlet tokens = tokens2.slice(startIndex, endIndex);\r\n\t\t\t//walletBalances(address user, address[] tokens) constant returns (uint[]) {\r\n\t\t\t _util.call(\r\n\t\t\t _delta.web3,\r\n\t\t\t _delta.contractDeltaBalance,\r\n\t\t\t _delta.config.contractDeltaBalanceAddr,\r\n\t\t\t 'walletBalances',\r\n\t\t\t [publicAddr, tokens],\r\n\t\t\t (err, result) =>\r\n\t\t\t {\r\n\t\t\t\t if(requestID > rqid)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tconst returnedBalances = result;\r\n\t\t\t\tif(returnedBalances && returnedBalances.length > 0)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tloadedCustom = showCustomTokens;\r\n\t\t\t\t\tfor(let i = 0; i< tokens.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlet token = uniqueTokens[tokens[i]];\r\n\t\t\t\t\t\tlet div = divisorFromDecimals(token.decimals);\r\n\t\t\t\t\t\tbalances[token.name].Wallet = _util.weiToEth(returnedBalances[i], div);\r\n\t\t\t\t\t\tloadedW++;\r\n\t\t\t\t\t\tif(loadedW >= tokenCount)\r\n\t\t\t\t\t\t\tfinishedBalanceRequest();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tshowError('Failed to load Wallet balances, try again');\r\n\t\t\t\t\tloadedW = tokenCount;\r\n\t\t\t\t\tfinishedBalanceRequest();\r\n\t\t\t\t}\r\n\t\t\t });\r\n\t\t}\r\n\t}", "function getAllBalances(rqid)\r\n\t{\r\n\t\tlet tokens2 = Object.keys(uniqueTokens);\t\r\n\t\ttokens2 = tokens2.filter((x) => {return !uniqueTokens[x].unlisted || showCustomTokens});\r\n\t\ttokenCount = tokens2.length;\r\n\t\t\r\n\t\tlet max = maxPerRequest\r\n\t\tif(!etherscanFallback) //etherscan request can't hold too much data\r\n\t\t\t\tmax = max * 10;\r\n\t\t\r\n\t\tfor(let i = 0; i < tokens2.length; i+= max)\r\n\t\t{\r\n\t\t\tallBalances(i, i+max, tokens2);\r\n\t\t}\r\n\t\t\r\n\t\tfunction allBalances(startIndex, endIndex, tokens2)\r\n\t\t{\r\n\t\t\tlet tokens = tokens2.slice(startIndex, endIndex);\r\n\t\t\t//walletBalances(address user, address[] tokens) constant returns (uint[]) {\r\n\t\t\t _util.call(\r\n\t\t\t _delta.web3,\r\n\t\t\t _delta.contractDeltaBalance,\r\n\t\t\t _delta.config.contractDeltaBalanceAddr,\r\n\t\t\t 'allBalances',\r\n\t\t\t [_delta.config.contractEtherDeltaAddr, publicAddr, tokens],\r\n\t\t\t (err, result) =>\r\n\t\t\t {\r\n\t\t\t\t if(requestID > rqid)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tconst returnedBalances = result;\r\n\t\t\t\tif(returnedBalances && returnedBalances.length > 0)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tloadedCustom = showCustomTokens;\r\n\t\t\t\t\tfor(let i = 0; i< tokens.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlet j = i * 2;\r\n\t\t\t\t\t\tlet token = uniqueTokens[tokens[i]];\r\n\t\t\t\t\t\tlet div = divisorFromDecimals(token.decimals);\r\n\t\t\t\t\t\tbalances[token.name].EtherDelta = _util.weiToEth(returnedBalances[j], div );\r\n\t\t\t\t\t\tbalances[token.name].Wallet = _util.weiToEth(returnedBalances[j +1], div);\r\n\t\t\t\t\t\tloadedW++;\r\n\t\t\t\t\t\tloadedED++;\r\n\t\t\t\t\t\tfinishedBalanceRequest();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tshowError('Failed to load balances, try again');\r\n\t\t\t\t\tloadedW = tokenCount;\r\n\t\t\t\t\tloadedED = tokenCount;\r\n\t\t\t\t\tfinishedBalanceRequest();\r\n\t\t\t\t}\r\n\t\t\t });\r\n\t\t}\r\n\t}", "function sumBalancesByTokenAddress(arr) {\n return arr.reduce((acc, curr) => {\n const found = acc.find((item) => item.tokenAddress === curr.tokenAddress);\n if (found) {\n found.balance = +found.balance + +curr.balance;\n } else {\n const newItem = {\n tokenAddress: curr.tokenAddress,\n balance: curr.balance,\n category: curr.category,\n };\n acc.push(newItem);\n }\n return acc;\n }, []);\n}", "async function getBalance() {\n if (typeof window.ethereum !== 'undefined') {\n const [account] = await window.ethereum.request({ method: 'eth_requestAccounts' })\n const provider = new ethers.providers.Web3Provider(window.ethereum);\n const contract = new ethers.Contract(bvgTokenAddress, BVGToken.abi, provider)\n const balance = await contract.balanceOf(account);\n console.log(\"Balance: \", ethers.utils.formatEther(balance).toString());\n }\n }", "async getAccountData(address) {\n const account = this.networkClient.AccountAddress();\n account.setAddress(address);\n const request = this.networkClient.GetAccountInfoRequest();\n request.setAccount(account);\n const ledger = new ledger_pb_1.LedgerSpecifier();\n ledger.setShortcut(ledger_pb_1.LedgerSpecifier.Shortcut.SHORTCUT_VALIDATED);\n request.setLedger(ledger);\n const accountInfo = await this.networkClient.getAccountInfo(request);\n if (!accountInfo) {\n throw xrp_error_1.default.malformedResponse;\n }\n const accountData = accountInfo.getAccountData();\n if (!accountData) {\n throw xrp_error_1.default.malformedResponse;\n }\n return accountData;\n }", "function printBalances() {\n var token = tokenContractAddress == null || tokenContractAbi == null ? null : web3.eth.contract(tokenContractAbi).at(tokenContractAddress);\n var decimals = token == null ? 18 : token.decimals();\n var i = 0;\n var totalTokenBalance = new BigNumber(0);\n console.log(\"RESULT: # Account EtherBalanceChange Token Name\");\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n accounts.forEach(function(e) {\n var etherBalanceBaseBlock = eth.getBalance(e, baseBlock);\n var etherBalance = web3.fromWei(eth.getBalance(e).minus(etherBalanceBaseBlock), \"ether\");\n var tokenBalance = token == null ? new BigNumber(0) : token.balanceOf(e).shift(-decimals);\n totalTokenBalance = totalTokenBalance.add(tokenBalance);\n console.log(\"RESULT: \" + pad2(i) + \" \" + e + \" \" + pad(etherBalance) + \" \" + padToken(tokenBalance, decimals) + \" \" + accountNames[e]);\n i++;\n });\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n console.log(\"RESULT: \" + padToken(totalTokenBalance, decimals) + \" Total Token Balances\");\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n console.log(\"RESULT: \");\n}", "async getTransactions (addr) {\n try {\n // Get transaction history for the address.\n const transactions = await this.bchjs.Electrumx.transactions(addr)\n if (!transactions.success) {\n throw new Error(`No transaction history could be found for ${addr}`)\n }\n\n // Sort the transactions in descending order (newest first).\n const txsArr = this.sortTxsByHeight(\n transactions.transactions,\n 'DESCENDING'\n )\n\n return txsArr\n } catch (err) {\n wlogger.error('Error in bch.js/getTransactions(): ', err)\n throw err\n }\n }", "static async getEtherBalance (address) {\n try {\n let weiBalance = await EtherscanServices.getEtherBalance(address)\n return this.convertWeiToBalance(weiBalance)\n } catch (error) {\n return Number.NaN\n }\n }", "getBalanceOfAddress( address, senderAddress ) {\n const balance = this.blockchain.getBalanceOfAddress( address );\n this._responseToPsvWallet( \"getBalanceOfAddress\", balance, senderAddress );\n return balance;\n }", "function getOutgoingTransactionsFromAddress() {\r\n let adr = address.value;\r\n let sanitizedAdr = adr.toUpperCase().replace(/-|\\s/g, \"\");\r\n if (adr == \"\") {\r\n address.focus();\r\n return false;\r\n }\r\n _doGet('/account/transfers/outgoing?address=' + sanitizedAdr);\r\n }", "static async getFeeToken (receiverAddress, contractAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let gasPrice = await EtherscanServices.getGasPrice()\n // gasPrice *= countPercent\n gasPrice = parseInt(gasPrice)\n\n var tokenAmount = 0\n // Token Standards\n var transferOpCode = '0xa9059cbb'\n\n var ethNakedAddress = receiverAddress.toLowerCase().replace('0x', '')\n\n // Convert to address Token\n var ABIAddressTarget = this.zeroPadLeft(ethNakedAddress, 64)\n\n // Convert to value Token\n var ABIValueToTransfer = this.zeroPadLeft(tokenAmount.toString(16), 64)\n var ethData = transferOpCode + ABIAddressTarget + ABIValueToTransfer\n\n let gasLimit = await this.getGasLimitToken(contractAddress, gasPrice, ethData)\n let fee = gasLimit * gasPrice\n\n return fee\n } catch (error) {\n throw error\n }\n }", "static async getTokenFee (toAddress) {\n try {\n // Check whether the receiver is external account or smart contract\n let gas = await this.getFee(toAddress)\n\n return this.convertWeiToBalance(gas)\n } catch (error) {\n return Number.NaN\n }\n }", "async getTokenTotalSupply(token_contract_address) {\n switch (token_contract_address) {\n case '0x6b175474e89094c44da98b954eedeac495271d0f' /* DAI */:\n /*---------------------------------------------------------\n Special case for DAI as it is not held in a single contract\n token supply explained here \n https://github.com/makerdao/developerguides/blob/master/dai/dai-supply/dai-supply.md\n ---------------------------------------------------------*/\n const vatAddr = '0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B';\n const abi = [\n {\n inputs: [],\n name: 'debt',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n type: 'function',\n },\n ];\n\n const vat = new this.client.eth.Contract(abi, vatAddr);\n return vat.methods\n .debt()\n .call()\n .then((supply) => supply / Math.pow(10, 45));\n break;\n\n default:\n /*---------------------------------------------------------\n General Case for all standard ERC-20 tokens\n ---------------------------------------------------------*/\n const erc20Contract = new ERC20Contract(this.client, token_contract_address);\n let p_totalSupply = erc20Contract.totalSupply().call();\n let p_decimals = erc20Contract.decimals().call();\n return Promise.all([p_totalSupply, p_decimals]).then(async (data) => {\n const totalSupply = data[0];\n const decimals = data[1];\n\n let total_supply = totalSupply / 10 ** decimals;\n\n /*---------------------------------------------------------\n Protect against garbage value returns. Arbitrary 1Bil limit.\n ---------------------------------------------------------*/\n if (total_supply > 100000000000) return 0;\n else return total_supply;\n });\n break;\n }\n }", "async getAllIncoming(address, timePeriod) {\n const operation = {\n query: gql`\n query getAccount($id: Bytes) {\n account(id: $id) {\n loansReceived {\n amount\n recipient {\n id\n }\n hat {\n id\n }\n transfers {\n value\n transaction {\n id\n timestamp\n blockNumber\n }\n }\n }\n }\n }\n `,\n variables: { id: address }\n };\n let res = await makePromise(execute(this.rTokenLink, operation));\n return res.data.account.loansReceived;\n }", "async getReserves() {\n let tokens = await this.currentTokens();\n\n const balances = await Promise.all(\n tokens.map((tok) => tok.balanceOf(this.curveInfo.poolAddress))\n );\n\n const output = balances.map((balance, idx) => {\n return {\n asset: tokens[idx].asset,\n balance,\n };\n });\n return output;\n }", "function getBalanceAndFormat(addresses) {\n\n self.getBalances(addresses, 100, function(error, balances) {\n\n if (error) {\n return callback(error);\n } else {\n\n var inputsObject = {\n 'inputs': [],\n 'totalBalance': 0\n }\n\n // If threshold defined, keep track of whether reached or not\n // else set default to true\n var thresholdReached = threshold ? false : true;\n\n for (var i = 0; i < addresses.length; i++) {\n\n var balance = parseInt(balances.balances[i]);\n\n if (balance > 0) {\n\n var newEntry = {\n 'address': addresses[i],\n 'balance': balance,\n 'keyIndex': start + i,\n 'security': security\n }\n\n // Add entry to inputs\n inputsObject.inputs.push(newEntry);\n // Increase totalBalance of all aggregated inputs\n inputsObject.totalBalance += balance;\n\n if (threshold && inputsObject.totalBalance >= threshold) {\n\n thresholdReached = true;\n break;\n }\n }\n }\n\n if (thresholdReached) {\n return callback(null, inputsObject);\n } else {\n return callback(new Error(\"Not enough balance\"));\n }\n }\n })\n }", "function balanceDetails(address, nodeUrl, requestOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return addresses_route.fetchBalanceDetails(nodeUrl, address, requestOptions);\n });\n}", "function printBalances() {\n // console.log(\"RESULT: baseBlock=\" + baseBlock);\n var token = tokenContractAddress == null || tokenContractAbi == null ? null : web3.eth.contract(tokenContractAbi).at(tokenContractAddress);\n var decimals = token == null ? 18 : token.decimals();\n var i = 0;\n var totalTokenBalance = new BigNumber(0);\n console.log(\"RESULT: # Account EtherBalanceChange Token Name\");\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n accounts.forEach(function(e) {\n var etherBalanceBaseBlock = eth.getBalance(e, baseBlock);\n var etherBalance = web3.fromWei(eth.getBalance(e).minus(etherBalanceBaseBlock), \"ether\");\n var tokenBalance = token == null ? new BigNumber(0) : token.balanceOf(e).shift(-decimals);\n totalTokenBalance = totalTokenBalance.add(tokenBalance);\n console.log(\"RESULT: \" + pad2(i) + \" \" + e + \" \" + pad(etherBalance) + \" \" + padToken(tokenBalance, decimals) + \" \" + accountNames[e]);\n i++;\n });\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n console.log(\"RESULT: \" + padToken(totalTokenBalance, decimals) + \" Total Token Balances\");\n console.log(\"RESULT: -- ------------------------------------------ --------------------------- ------------------------------ ---------------------------\");\n console.log(\"RESULT: \");\n}", "async getBalance() {\n const balance = await privateTokenSale.methods.getBalance().call();\n return balance;\n }", "async function getRVNBalance(addr, verbose) {\n try {\n const result = await RVNBOX.Address.details([addr])\n\n if (verbose) console.log(result)\n\n const rvnBalance = result[0]\n\n return rvnBalance.balance\n } catch (err) {\n console.error(`Error in getRVNBalance: `, err)\n console.log(`addr: ${addr}`)\n throw err\n }\n}", "async function getBalance(addr) {\n addressBalance = await client.getAddressBalance(addr)\n console.log(\"addressBalance:\", addressBalance.balance);\n if(addressBalance.balance == 0) {\n getBalance(addr)\n }\n else {\n console.log('Funds Received!');\n return\n }\n}", "function getBalance(_address) {\n console.log(\"Checking account balance of address: \" + _address);\n try {\n web3.eth.getBalance(_address, function(error, wei) {\n if (!error) {\n newSender.setBalance(wei);\n }\n });\n } catch (err) {\n console.log(err);\n }\n}", "function listAllBids(bidsContractAddress) {\n const minimaTokenId = '0x00'\n return new Promise((resolve, reject) => {\n const command = `coins address:${bidsContractAddress} tokenid:${minimaTokenId}`\n Minima.cmd(command, (res) => {\n if (res.status && res.response && res.response.coins) {\n const bids = res.response.coins.map(c => {\n return {\n coin: c.data.coin.coinid,\n tokenidIWantToBuy: c.data.prevstate[2].data,\n bidderAddress: c.data.prevstate[1].data,\n bidderPubKey: c.data.prevstate[0].data\n }\n })\n resolve(bids)\n } else {\n reject(res)\n }\n })\n })\n}", "function getBalance() {\n return new Promise((resolve, reject) => {\n co(function* () {\n\n yield validateConfig()\n .catch((err) => {\n reject(err);\n });\n\n yield readYAML()\n .catch((err) => {\n reject(err);\n });\n\n yield getUserAddress()\n .catch((err) => {\n reject(err);\n });\n\n yield fetchBalance()\n .then((result) => {\n resolve(result);\n })\n .catch((err) => {\n reject(err);\n });\n });\n });\n}", "async function loadBalance(GCI, address) {\n let client = await lotion.connect(GCI)\n accounts = client.state.accounts\n return await accounts[address]['balance']\n }", "getTransactions(\n accountId: string,\n offset: string,\n limit: number,\n keyLevel: string\n ): Promise<{data: Array<Transaction>, offset: string}> {\n return this._member.getTransactions(accountId, offset, limit, keyLevel);\n }\n\n /**\n * Gets the member's address\n *\n * @param addressId - the address id\n * @return AddressRecord structure\n * @throws error if address not found\n */\n getAddress(addressId: string): Promise<AddressRecord> {\n return this._member.getAddress(addressId);\n }", "static loadTokensList() {\n const { availableTokens, network, walletAddress } = store.getState();\n\n if (network !== 'mainnet') return Promise.resolve();\n\n const availableTokensAddresses = availableTokens\n .filter(token => token.symbol !== 'ETH')\n .map(token => token.contractAddress);\n\n return fetch(\n `https://api.ethplorer.io/getAddressInfo/${walletAddress}?apiKey=freekey`,\n )\n .then(response => response.json())\n .then(data => {\n if (!data.tokens) {\n return Promise.resolve();\n }\n\n return data.tokens\n .filter(\n token =>\n !availableTokensAddresses.includes(token.tokenInfo.address),\n )\n .forEach(token => {\n store.dispatch({\n type: ADD_TOKEN,\n token: {\n contractAddress: token.tokenInfo.address,\n decimals: parseInt(token.tokenInfo.decimals, 10),\n name: token.tokenInfo.name,\n symbol: token.tokenInfo.symbol,\n },\n });\n });\n });\n }", "getBalance(\n accountId: string,\n keyLevel: string\n ): Promise<{ balance: Balance, status: RequestStatusEnum }> {\n return this._member.getBalance(accountId, keyLevel);\n }\n\n /**\n * Looks up the balances of an array of accounts\n *\n * @param accountIds - array of account ids\n * @param keyLevel - key level\n * @return Promise of get balances response object\n */\n getBalances(\n accountIds: Array<string>,\n keyLevel: string\n ): Promise<Array<{ balance: Balance, status: RequestStatusEnum }>> {\n return this._member.getBalances(accountIds, keyLevel);\n }", "getBlocksByAddress(address){\n return new Promise(function(resolve, reject) {\n db.getDataByAddress(address)\n .then((result) => {\n resolve(result);\n })\n .catch((err) => {\n reject(err);\n })\n });\n }", "async function returnSupply(token, address, abi) {\n let contract = new web3.eth.Contract(abi, token);\n let decimals = await contract.methods.decimals().call();\n let supply = await contract.methods.totalSupply().call();\n balance = await new BigNumber(supply).div(10 ** decimals).toFixed(2);\n return parseFloat(balance);\n }", "function getToken(url, scriptHash, address) {\n return __awaiter(this, void 0, void 0, function* () {\n const parser = address ? parseTokenInfoAndBalance : parseTokenInfo;\n const sb = new neon_core_1.sc.ScriptBuilder();\n abi.name(scriptHash)(sb);\n abi.symbol(scriptHash)(sb);\n abi.decimals(scriptHash)(sb);\n abi.totalSupply(scriptHash)(sb);\n if (address) {\n abi.balanceOf(scriptHash, address)(sb);\n }\n const script = sb.str;\n try {\n const res = yield neon_core_1.rpc.Query.invokeScript(script)\n .parseWith(parser)\n .execute(url);\n const result = {\n name: res[0],\n symbol: res[1],\n decimals: res[2],\n totalSupply: res[3].div(Math.pow(10, 8 - res[2])).toNumber(),\n };\n if (address) {\n result.balance = res[4].div(Math.pow(10, 8 - res[2]));\n }\n return result;\n }\n catch (err) {\n log.error(`getToken failed with : ${err.message}`);\n throw err;\n }\n });\n}", "static getEthTransactions() {\n const { walletAddress } = store.getState();\n\n return fetch(\n `https://${this.getEtherscanApiSubdomain()}.etherscan.io/api?module=account&action=txlist&address=${walletAddress}&sort=desc&apikey=${\n Config.ETHERSCAN_API_KEY\n }`,\n )\n .then(response => response.json())\n .then(data => {\n if (data.message !== 'OK') {\n return [];\n }\n\n return data.result.filter(t => t.value !== '0').map(t => ({\n from: t.from,\n timestamp: t.timeStamp,\n transactionHash: t.hash,\n value: (parseInt(t.value, 10) / 1e18).toFixed(2),\n }));\n });\n }", "getBalance(node) {\n console.log(\"Getting ETH balance for: \" + node);\n let config = Promise.all(this.getConfig(node));\n return config.then( response => {\n let web3 = response[0];\n let contract = response[1];\n return this.getAddress(node).then((address) => {\n return web3.eth.getBalance(address).then((balanceWei) => {\n return web3.utils.fromWei(balanceWei, 'ether');\n })\n })\n });\n }", "async function getFee(transactionType, address, token, zkSyncProvider, tokenSet) {\r\n const fee = await zkSyncProvider.getTransactionFee(transactionType, address, token)\r\n\r\n // 2. On the next line, use the `tokenSet` object instead of `ethers.utils.formatEther`\r\n return tokenSet.formatToken(token, fee.totalFee)\r\n}", "function getDeltaBalances(rqid)\r\n\t{\r\n\t\tlet tokens2 = Object.keys(uniqueTokens);\t\r\n\t\ttokens2 = tokens2.filter((x) => {return !uniqueTokens[x].unlisted || showCustomTokens});\r\n\t\ttokenCount = tokens2.length;\r\n\t\t\r\n\t\tlet max = maxPerRequest\r\n\t\tif(!etherscanFallback) //etherscan request can't hold too much data\r\n\t\t\t\tmax = max * 10;\r\n\t\t\r\n\t\tfor(let i = 0; i < tokens2.length; i+= max)\r\n\t\t{\r\n\t\t\tdeltaBalances(i, i+max, tokens2);\r\n\t\t}\r\n\t\t\r\n\t\tfunction deltaBalances(startIndex, endIndex, tokens2)\r\n\t\t{\r\n\t\t\tlet tokens = tokens2.slice(startIndex, endIndex);\r\n\t\t\t//walletBalances(address user, address[] tokens) constant returns (uint[]) {\r\n\t\t\t _util.call(\r\n\t\t\t _delta.web3,\r\n\t\t\t _delta.contractDeltaBalance,\r\n\t\t\t _delta.config.contractDeltaBalanceAddr,\r\n\t\t\t 'deltaBalances',\r\n\t\t\t [_delta.config.contractEtherDeltaAddr, publicAddr, tokens],\r\n\t\t\t (err, result) =>\r\n\t\t\t {\r\n\t\t\t\t if(requestID > rqid)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tconst returnedBalances = result;\r\n\t\t\t\tif(returnedBalances && returnedBalances.length > 0)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tloadedCustom = showCustomTokens;\r\n\t\t\t\t\tfor(let i = 0; i< tokens.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlet token = uniqueTokens[tokens[i]];\r\n\t\t\t\t\t\tlet div = divisorFromDecimals(token.decimals);\r\n\t\t\t\t\t\tbalances[token.name].EtherDelta = _util.weiToEth(returnedBalances[i], div );\r\n\t\t\t\t\t\tloadedED++;\r\n\t\t\t\t\t\tif(loadedED >= tokenCount)\r\n\t\t\t\t\t\t\tfinishedBalanceRequest();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\tshowError('Failed to load EtherDelta balances, try again');\r\n\t\t\t\t\tloadedED = tokenCount;\r\n\t\t\t\t\tfinishedBalanceRequest();\r\n\t\t\t\t}\r\n\t\t\t });\r\n\t\t}\r\n\t}", "getDecimals(addr) {\n let decimals = null;\n constants.ERC20_TOKENS.forEach((token) => {\n if (token.contractAddress.toLowerCase() === addr.toLowerCase())\n decimals = token.decimals;\n })\n return decimals;\n }", "async function getBalance(addrs) {\n let response;\n\n // Try/Catch block to guarantee a value is returned, else reject with the error\n try {\n response = await axios.get(`https://api.blockcypher.com/v1/eth/main/addrs/${addrs}/balance`);\n } catch(e) {\n return Promise.reject(e);\n }\n \n // balance object with the Weis currensy converted into Ethereum (1 Ether === 10^18)\n const balance = { ether : (response.data.balance/Math.pow(10, 18)) };\n\n res.status(200).send(balance);\n }", "async getWalletsFinancialData(blockchain, addresses) {\n let walletsData = await grapheneAPI.fetchAccounts(blockchain, addresses);\n let walletsDataResult = {};\n for (const address of addresses) {\n let index = walletsData.result.findIndex(entry => entry.name == address);\n if (index === -1) {\n walletsDataResult[address] = {valid: false, result: {}};\n } else {\n walletsDataResult[address] = {valid: true, result: walletsData.result[index]};\n }\n }\n return walletsDataResult;\n }", "function getBlocksByAddress(walletAddress) {\n let blocks = [];\n return new Promise((resolve, reject) => db.createReadStream().on('data', function (data) {\n\n var block = JSON.parse(data.value);\n\n if (block != null) {\n if (block.body.address == walletAddress) {\n blocks.push(block);\n }\n }\n\n }).on('error', function (err) {\n return console.log('Unable to get blocks!', err);\n reject(err);\n }).on('close', function () {\n // console.log(\"Block Height is \" + i);\n // console.log(blocks);\n resolve(blocks);\n }))\n}", "function getIncomingTransactionsFromAddress() {\r\n let adr = address.value;\r\n let sanitizedAdr = adr.toUpperCase().replace(/-|\\s/g, \"\");\r\n if (adr == \"\") {\r\n address.focus();\r\n return false;\r\n }\r\n _doGet('/account/transfers/incoming?address=' + sanitizedAdr);\r\n }", "getAccountBalance () {\n return this.createRequest('/balance', 'GET');\n }", "checkBalance(walletAddress){\r\n var balance = 0;\r\n for(var i = 0; i < this.bc.length; i++){\r\n for(var j = 0; j < this.bc[i].data.length; j++){\r\n if(this.bc[i].data[j].reciever == walletAddress){\r\n balance += this.bc[i].data[j].amount;\r\n } else if (this.bc[i].data[j].sender == walletAddress) {\r\n balance -= this.bc[i].data[j].amount;\r\n }\r\n }\r\n\r\n }\r\n return balance;\r\n }", "async function getAllWalletValues() {\n let results = [];\n let width = 1;\n\n // Availability check.\n // Split up requests so we don't get timed out\n console.log('Starting wallet value check.');\n for (let i = 0; i < 12345; i += width) {\n let subset = addresses.slice(i, i+width);\n if (i % 100 === 0) { \n console.log('\\x1b[36m%s\\x1b[0m', `${i} addresses have now been processed.`);\n }\n for (let address of subset) {\n openSeaApiOwnerAssetsRequest(address)\n .catch((err) => {\n console.log('Error: ' + err);\n });\n }\n await sleep(1100);\n //console.log('Sleeping.');\n\n }\n}", "getWhitelistAddress( address, contractInfoABI, web3Address) {\n\t\treturn new Promise(((resolve, reject) => {\n\t\t\ttry {\n\t\t\t\tconst web3 = new Web3(new Web3.providers.HttpProvider(web3Address));\n\t\t\t\tweb3.eth.net.isListening().then(() => {\n\t\t\t\t\tconst contract = new web3.eth.Contract(contractInfoABI, address);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//bytes32(\"GeneralTransferManager\")\t\t\t\t\t\n\t\t\t\t\t\t\t\tcontract.methods.getModulesByName( web3.utils.asciiToHex(\"GeneralTransferManager\") ).call().then((balance) => {\n\t\t\t\t\t\t\t\t\tresolve(balance);\n\t\t\t\t\t\t\t\t}).catch((err) => {\n\t\t\t\t\t\t\t\t\treject({ code: '0', message: `${err.message}. Error calling balanceOf method in getAccountBalance` });\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t}).catch(() => {\n\t\t\t\t\treject({ code: '0', message: 'Ethereum network connection error in getAccountBalance11' });\n\t\t\t\t});\n\t\t\t} catch (err) {\n\t\t\t\treject({ code: '0', message: `${err.message}. Error occured in getAccountBalance` });\n\t\t\t}\n\t\t}));\n\t}", "function retbalance(addr) {\n var balance= web3.fromWei(web3.eth.getBalance(addr));\n return (balance);\n}", "async function getAccountBalance() {\n return web3.eth.getBalance(getAccount());\n}", "async getInterestSent(addressFrom, addressTo, timePeriod) {\n const operation = {\n query: gql`\n query getAccount($from: Bytes, $to: Bytes) {\n account(id: $from) {\n balance\n loansOwned(where: { recipient: $to }) {\n amount\n recipient {\n id\n }\n hat {\n id\n }\n transfers {\n value\n transaction {\n id\n timestamp\n blockNumber\n }\n }\n }\n }\n }\n `,\n variables: {\n from: addressFrom.toLowerCase(),\n to: addressTo.toLowerCase()\n }\n };\n let res = await makePromise(execute(this.rTokenLink, operation));\n let interestSent = 0;\n let value = new BigNumber(0);\n if (res.data.account.loansOwned.length < 1) return 0;\n const loan = res.data.account.loansOwned[0];\n for (let index = 0; index < loan.transfers.length; index++) {\n const transfer = loan.transfers[index];\n let rate = null;\n\n // If this is the first transfer, skip it\n if (index === 0) {\n value = value.plus(transfer.value);\n if (loan.transfers.length === 1) {\n const start = transfer.transaction.timestamp;\n const date = new Date();\n const now = Math.round(date.getTime() / 1000);\n rate = await this._getCompoundRate(start);\n interestSent += this._calculateInterestOverTime(\n value,\n start,\n now,\n rate\n );\n }\n }\n // If this is the last transfer, add the accumulated interest until the current time\n else if (index === loan.transfers.length - 1) {\n value = value.plus(transfer.value);\n\n const start = transfer.transaction.timestamp;\n const date = new Date();\n const now = Math.round(date.getTime() / 1000);\n\n rate = await this._getCompoundRate(start);\n interestSent += this._calculateInterestOverTime(\n value,\n start,\n now,\n rate\n );\n // console.log('Final ransfer. Current value: ', value.toNumber());\n } else {\n // Normal case: Add the accumulated interest since last transfer\n rate = await this._getCompoundRate(\n loan.transfers[index - 1].transaction.timestamp\n );\n\n interestSent += this._calculateInterestOverTime(\n value,\n loan.transfers[index - 1].transaction.timestamp,\n transfer.transaction.timestamp,\n rate\n );\n\n // Add the current transfer value to the running value\n value = value.plus(transfer.value);\n }\n }\n return interestSent;\n }", "async function accountTransfers (accountAddress, trackedTokenAddress, endingBlock) {\n if (endingBlock == null) {\n endingBlock = await ethers.provider.getBlockNumber()\n }\n const trackedToken = await ethers.getContractAt('IERC20', trackedTokenAddress)\n console.log('Getting pool transfers in')\n let trackedTokenFilter = trackedToken.filters.Transfer(accountAddress, ghstStakingDiamondAddress)\n const trackedTokenTransfersIn = await trackedToken.queryFilter(trackedTokenFilter, diamondCreationBlock, endingBlock)\n console.log(`Got pool ${trackedTokenTransfersIn.length} transfers in`)\n trackedTokenFilter = trackedToken.filters.Transfer(ghstStakingDiamondAddress, accountAddress)\n console.log('Getting pool transfers out')\n const trackedTokenTransfersOut = await trackedToken.queryFilter(trackedTokenFilter, diamondCreationBlock, endingBlock)\n console.log(`Got ${trackedTokenTransfersOut.length} pool transfers out`)\n\n console.log('Transfers in:')\n for (const transfer of trackedTokenTransfersIn) {\n console.log('Blocknumber:', transfer.blockNumber)\n console.log('Amount added:', ethers.utils.formatEther(transfer.args._value))\n }\n console.log('-------------')\n console.log()\n console.log('Transfers out:')\n for (const transfer of trackedTokenTransfersOut) {\n console.log('Blocknumber:', transfer.blockNumber)\n console.log('Amount removed:', ethers.utils.formatEther(transfer.args._value))\n }\n }", "async function showBalance() {\n return findAllInTable(\"account\");\n}", "async addressInfo(req, res){\n\n let address = req.address;\n\n try {\n address = InterfaceBlockchainAddressHelper.getUnencodedAddressFromWIF(address);\n } catch (exception){\n return {result: false, message: \"Invalid Address\"};\n }\n\n let answer = [];\n let minedBlocks = [];\n let resolvedBlocks = [];\n let balance;\n let last_block = Blockchain.blockchain.blocks.length;\n\n // Get balance\n balance = Blockchain.blockchain.accountantTree.getBalance(address, undefined);\n balance = balance ? (balance / WebDollarCoins.WEBD) : 0;\n\n // Get mined blocks and transactions\n\n let start = Blockchain.blockchain.blocks.length - 1200;\n for (let i=start; i<Blockchain.blockchain.blocks.length; i++) {\n\n let block = await Blockchain.blockchain.getBlock(i);\n for (let j = 0; j < block.data.transactions.transactions.length; j++) {\n\n let transaction = block.data.transactions.transactions[j];\n\n let found = false;\n for (let q = 0; q < transaction.from.addresses.length; q++)\n if (transaction.from.addresses[q].unencodedAddress.equals(address)) {\n found = true;\n break;\n }\n\n for (let q = 0; q < transaction.to.addresses.length; q++)\n if (transaction.to.addresses[q].unencodedAddress.equals(address)) {\n found = true;\n break;\n }\n\n if (found)\n answer.push({\n blockId: await block.height,\n timestamp: await block.timeStamp + BlockchainGenesis.timeStamp,\n transaction: transaction.toJSON()\n });\n\n }\n\n if (block.data.minerAddress.equals(address))\n minedBlocks.push({\n blockId: block.height,\n timestamp: block.timeStamp + BlockchainGenesis.timeStamp,\n transactions: block.data.transactions.transactions.length\n });\n\n if (block.posMinerAddress && block.posMinerAddress.equals(address))\n resolvedBlocks.push({\n blockId: block.height,\n minerAddress: block.data.minerAddress.toString(\"hex\"),\n timestamp: block.timeStamp + BlockchainGenesis.timeStamp,\n transactions: block.data.transactions.transactions.length\n });\n }\n\n return {\n result: true,\n last_block,\n balance,\n minedBlocks,\n resolvedBlocks,\n transactions: answer\n };\n\n }", "async function sumTokens(tokensAndOwners, balances = {}) {\n return sumTokens2({ balances, tokensAndOwners, })\n}", "async function checkBalance(accountAddress) {\n if(!web3.utils.checkAddressChecksum(accountAddress)){\n console.log(\"CheckSum Failed:\" + accountAddress);\n throw(\"CheckSum Failed\");\n }\n try{ \n const balance = await contract.methods.balanceOf(accountAddress).call();\n return balance;\n }\n catch(err){\n console.log(\"Error in fetching Balance: \" + err)\n return err;\n }\n}", "static async getTxChildListFromAddressByPageAndOffset (address, pageNumber, offset) {\n let txChildList = await EtherscanServices.getNormalTransactionByAddress(address, pageNumber, offset)\n return txChildList\n }", "autoScanTokens(e) {\n const wallets = this.props.Wallets;\n const oc = this.props.ObservedContracts;\n const addresses = [\n ...Object.keys(wallets),\n ...Object.keys(oc).map(key => {\n return oc[key].address;\n }),\n ...Object.keys(oc).map(key => {\n return oc[key].address;\n }),\n ];\n this.props.fetchTokensForAutoScan(addresses);\n }", "async getBalance (denomination = 'uscrt') {\n const account = await this.API.getAccount(this.address) || {}\n const balance = account.balance || []\n const inDenom = ({denom, amount}) => denom === denomination\n const balanceInDenom = balance.filter(inDenom)[0] || {}\n return balanceInDenom.amount || 0\n }", "function getNameAndBalance(number){\n let result = [];\n accounts.map(e => {\n if(e.accountNumber === number){\n result = [e.clientName, e.balance];\n }\n })\n return result;\n}", "async generateApproveMaxAllowanceData(ethereumAddress, tokenAddress) {\n\t\tconst data = this.tokenContract.methods.approve(\n\t\t\tprocess.env.ROUTER_ADDRESS,\n\t\t\t'0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'\n\t\t).encodeABI()\n\t\t// console.log('allowance data: ', data)\n\t\treturn {\n\t\t\tto: tokenAddress,\n\t\t\tfrom: ethereumAddress,\n\t\t\tdata,\n\t\t\tvalue: '0x00',\n\t\t\t// gasPrice: this.web3.utils.toHex(gasPriceWei.toString()),\n\t\t\t// gasLimit: this.web3.utils.toHex(gasLimit.toString())\n\t\t};\n\t}", "function checkBalanceOf() {\n let tokenID = document.getElementById('balanceOfTokenID').value;\n let address = document.getElementById('balanceOfAddress').value;\n\n if (tokenID == \"\" || address == \"\") {\n alert(\"You did not complete all the fields\");\n return;\n }\n\n balanceOf(tokenID, address, (err, balance) => {\n if (err) {\n alert('Token is not yet created');\n return;\n }\n document.getElementById('balance').innerText = String(balance);\n });\n}", "async function getBalance () {\n try {\n // first get BCH balance\n const aliceBalance = await bchjs.Electrumx.balance(\n aliceWallet.cashAddress\n )\n const bobBalance = await bchjs.Electrumx.balance(bobWallet.cashAddress)\n const samBalance = await bchjs.Electrumx.balance(samWallet.cashAddress)\n\n console.log('BCH Balances information')\n console.log('------------------------')\n console.log('Alice\\'s Wallet:')\n console.log(`${aliceWallet.cashAddress}`)\n console.log(JSON.stringify(aliceBalance.balance, null, 2))\n console.log('--')\n console.log('Bob\\'s Wallet:')\n console.log(`${bobWallet.cashAddress}`)\n console.log(JSON.stringify(bobBalance.balance, null, 2))\n console.log('--')\n console.log('Sam\\'s Wallet:')\n console.log(`${samWallet.cashAddress}`)\n console.log(JSON.stringify(samBalance.balance, null, 2))\n } catch (err) {\n console.error('Error in getBalance: ', err)\n throw err\n }\n}", "function getBalance (account) {\n return account.balance;\n}", "getTransactionCount(address) {\n let defer = $q.defer();\n const apiUrl = SERVER_URL + \"?module=proxy&action=eth_getTransactionCount&address=\" + address + \"&tag=latest&apikey=\" + API_KEY\n $http.get(apiUrl).then((response) => {\n if (response.data.error || !response.data || !response.data.result) {\n defer.reject({ \"message\": $rootScope.getTranslation(ERROR_CODES[response.data.error.code]), \"error\": response.data.error });\n } else {\n try {\n defer.resolve({\n hex: response.data.result,\n dec: Number(response.data.result)\n });\n } catch (e) {\n // TODO - orginise error messages\n defer.reject({ \"message\": e })\n }\n }\n }).catch((error) => {\n defer.reject({ \"message\": $rootScope.getTranslation('http_connection_error') })\n });\n\n return defer.promise;\n }", "async GetAccount (address, schema) {\n try {\n let response = await this.client.request('theta.GetAccount', [{ address: address }])\n return responseExtractor(response, schema)\n } catch (error) {\n console.error(error)\n throw error\n }\n }", "queryAccount(address) {\n return this.client.rpcClient.abciQuery('custom/acc/account', {\n Address: address,\n });\n }", "_getEthAmountLeft(address) {\n return this._web3.eth.getBalance(address);\n }", "async getBCHBalance (addr, verbose = false) {\n try {\n const fulcrumBalance = await this.bchjs.Electrumx.balance(addr)\n // console.log(`fulcrumBalance: ${JSON.stringify(fulcrumBalance, null, 2)}`)\n\n const confirmedBalance = this.bchjs.BitcoinCash.toBitcoinCash(\n fulcrumBalance.balance.confirmed\n )\n\n if (verbose) {\n // const resultToDisplay = confirmedBalance\n // resultToDisplay.txids = []\n console.log(fulcrumBalance)\n }\n\n const bchBalance = confirmedBalance\n\n return bchBalance\n } catch (err) {\n wlogger.error(`Error in bch.js/getBCHBalance(): ${err.message}`, err)\n throw err\n }\n }", "function getBalance(tipper, cb) {\n // tipper has no address, never made a deposit\n if (!tipper.address) {\n return cb(null, tipper.received - tipper.spent);\n }\n\n // balance = total deposit amount + total received - total spent\n power.cmd(\"getreceivedbyaddress\", tipper.address, function (err, amount) {\n if (err) {\n return cb(err, null);\n }\n\n const balance = amount + tipper.received - tipper.spent;\n return cb(null, balance);\n });\n}", "async getHistoricalSlpTransactions (addressList, fromBlock = 0) {\n // Build SLPDB or query from addressList\n const orQueryArray = []\n for (const address of addressList) {\n const cashAddress = SLP.SLP.Address.toCashAddress(address)\n const slpAddress = SLP.SLP.Address.toSLPAddress(address)\n\n const cashQuery = {\n 'in.e.a': cashAddress.slice(12)\n }\n const slpQuery = {\n 'slp.detail.outputs.address': slpAddress\n }\n\n orQueryArray.push(cashQuery)\n orQueryArray.push(slpQuery)\n }\n\n const query = {\n v: 3,\n q: {\n find: {\n db: ['c', 'u'],\n $query: {\n $or: orQueryArray,\n 'slp.valid': true,\n 'blk.i': {\n $not: {\n $lte: fromBlock\n }\n }\n },\n $orderby: {\n 'blk.i': -1\n }\n },\n project: {\n _id: 0,\n 'tx.h': 1,\n 'in.i': 1,\n 'in.e': 1,\n 'out.e': 1,\n 'out.a': 1,\n 'slp.detail': 1,\n blk: 1\n },\n limit: 500\n }\n }\n\n const result = await this.runQuery(query)\n // console.log(`result.data: ${JSON.stringify(result.data, null, 2)}`)\n\n let transactions = []\n\n // Add confirmed transactions\n if (result.data && result.data.c) {\n transactions = transactions.concat(result.data.c)\n }\n\n // Add unconfirmed transactions\n if (result.data && result.data.u) {\n transactions = transactions.concat(result.data.u)\n }\n\n return transactions\n }", "getBlocksByAddress(address){\n\n const self = this;\n const result = [];\n\n return new Promise((resolve, reject) => {\n\n self.db.createValueStream()\n .on('data', (data) => {\n\n const block = JSON.parse(data);\n if (block.body.address === address){\n result.push(block);\n }\n })\n .on('error', (err) => {\n\n reject(err);\n })\n .on('close', () => {\n\n resolve(result);\n });\n });\n }", "function assetBalance(assetId, address, nodeUrl, requestOptions) {\n return __awaiter(this, void 0, void 0, function* () {\n return assets_route.fetchAssetsBalance(nodeUrl, address, requestOptions)\n .then(x => x.balances.filter(bal => bal.assetId === assetId))\n .then(filtered => { var _a; return (_a = filtered[0]) === null || _a === void 0 ? void 0 : _a.balance; });\n });\n}" ]
[ "0.7731881", "0.7414648", "0.725718", "0.7127482", "0.71188504", "0.69222885", "0.69140357", "0.6754907", "0.67506003", "0.6740307", "0.6739598", "0.6652038", "0.664575", "0.66367024", "0.6601324", "0.6573403", "0.6526781", "0.6526321", "0.6477333", "0.6447593", "0.6403037", "0.63760084", "0.6356598", "0.635234", "0.63502246", "0.6344255", "0.62495995", "0.62468964", "0.6220631", "0.6209341", "0.6199825", "0.61946744", "0.6189253", "0.61594325", "0.6054313", "0.603563", "0.599819", "0.5997206", "0.598343", "0.59739894", "0.590696", "0.5903133", "0.5899072", "0.5841615", "0.5836051", "0.58345604", "0.5827466", "0.58052576", "0.57992905", "0.57950544", "0.5785444", "0.5778773", "0.5771892", "0.57508487", "0.57488996", "0.5700987", "0.56914264", "0.5669356", "0.56556493", "0.56533283", "0.5649924", "0.56088454", "0.56087714", "0.5601056", "0.5594061", "0.55780536", "0.5575929", "0.5542802", "0.5533817", "0.5512661", "0.5508861", "0.5507237", "0.5491593", "0.54860663", "0.54790854", "0.54716766", "0.54509664", "0.5434183", "0.54199797", "0.54088515", "0.54007256", "0.5385021", "0.5375609", "0.5366041", "0.53633565", "0.53597456", "0.53570765", "0.5353787", "0.5338448", "0.5324137", "0.5323597", "0.53210986", "0.5313944", "0.5310917", "0.5294618", "0.52832854", "0.5274191", "0.5273393", "0.52712", "0.5270469" ]
0.6761924
7
Retrieves the complete information about a token.
function getToken(url, scriptHash, address) { return __awaiter(this, void 0, void 0, function* () { const parser = address ? parseTokenInfoAndBalance : parseTokenInfo; const sb = new neon_core_1.sc.ScriptBuilder(); abi.name(scriptHash)(sb); abi.symbol(scriptHash)(sb); abi.decimals(scriptHash)(sb); abi.totalSupply(scriptHash)(sb); if (address) { abi.balanceOf(scriptHash, address)(sb); } const script = sb.str; try { const res = yield neon_core_1.rpc.Query.invokeScript(script) .parseWith(parser) .execute(url); const result = { name: res[0], symbol: res[1], decimals: res[2], totalSupply: res[3].div(Math.pow(10, 8 - res[2])).toNumber(), }; if (address) { result.balance = res[4].div(Math.pow(10, 8 - res[2])); } return result; } catch (err) { log.error(`getToken failed with : ${err.message}`); throw err; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getToken() {\n return token;\n }", "getToken() { return this.token.getToken(); }", "function getToken() {\n return token || null;\n }", "getToken() {\n return _token;\n }", "function getToken() {\n\t\treturn store.getItem(key);\n\t}", "async getTokenInfo() {\n try {\n const data = await this.callApi({ type: 'auth', url: 'validate' });\n return new auth_1.TokenInfo(data);\n }\n catch (e) {\n if (e instanceof api_call_1.HttpStatusCodeError && e.statusCode === 401) {\n throw new auth_1.InvalidTokenError();\n }\n throw e;\n }\n }", "getToken() {\n return this.token;\n }", "function getUserDetails(token) {\n return jwt.decode(token);\n}", "function showToken(response){\n console.log(response);\n}", "get token() {\n return this._token;\n }", "function fetchToken() {\n $.getJSON(buildTokenUrl(), {command: 'request'}, response => {\n token = response.token;\n console.log(`session token fetched: ${token}`);\n });\n}", "getToken() {\n\t\treturn this.qdacityTokenAuthenticationProvider.getToken();\n\t}", "async obtainToken(req, res, next) {\n const request = new Request(req);\n const response = new Response(res);\n\n try {\n const token = await oAuth2.token(request, response);\n debug('obtainToken: token %s obtained successfully', token);\n res.json(token);\n } catch (err) {\n next(err);\n }\n }", "getToken() {\n return this._localStorageService.get(tokenKey);\n }", "getToken() {\n return fetch(STT_AUTHURL).then(function(response) {\n return response.text();\n });\n }", "async getTokens() {\n const apiURL = `${this.dxApiURL}/v1/tokens`\n const res = await fetcher(apiURL)\n\n return res.data\n }", "function token() {\n return currentToken;\n }", "function retrieveToken () {\n return new Promise( (resolve, reject) => {\n var tokenOptions = {\n method: 'GET',\n headers: {\n 'Metadata': true\n },\n uri: 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net',\n resolveWithFullResponse: true\n }\n rp(tokenOptions) \n .then((responseToken) => {\n var parsedResponse = JSON.parse(responseToken.body)\n var token = parsedResponse.access_token\n resolve(token)\n })\n .catch((err) => {\n reject(err)\n })\n })\n}", "getToken() {\n return JSON.parse(localStorage.getItem(TOKEN_KEY));\n }", "getRequestToken() {\n return apiClient.get(\n '/authentication/token/new?api_key=6c1e80dae659cb7d1abdf16afd8bb0e3'\n )\n }", "function getToken() {\n\treturn wAccessToken;\n}", "_getTokens() {\n return http\n .get(`${ENV.VUE_APP_TOKEN_INFO_API_URL}/tokens`)\n .then(resp => resp.data);\n }", "function getLogginInfo() {\n const token = jsCookie.get(TOKEN_KEY);\n if (!token)\n return undefined;\n const user = jwtDecode(token);\n return user;\n}", "function retrieveToken(req, res) {\n Token.findOne(\n {\n _id: req.params.id,\n user: res.locals.user\n },\n '-salt -value'\n )\n .lean()\n .then(function(token) {\n if (token === null) {\n res.status(404).json({\n error: {\n code: 404,\n message: `No such token: ${req.params.id}`\n }\n });\n } else {\n res.status(200).json(utils.formatTokenResponse(token));\n }\n })\n .catch(function(err) {\n console.log(err);\n\n res.status(500).json({\n error: {\n code: 500,\n message: 'Internal server error'\n }\n });\n });\n}", "getToken() {\n return Cookies.get(\"cTok\");\n }", "function getToken(){\n try\n {\n return LocalStorage.get(Constants.TOKEN);\n \n }\n catch(err)\n {\n return {};\n }\n }", "async function getUserInfo(token) {\n const response = await axios.post('/auth/me', { token });\n return response;\n}", "async function getUserInfo(token) {\n const response = await axios.post('/auth/me', { token });\n return response;\n}", "getToken({ data }) {\n // the parameter details will show in type definitions\n // because default response message type is \"data\", in general,\n // you need to return a message object which specify a \"data\" property,\n // and the data property value is which the request sender will get,\n // otherwise request sender may get undefined\n return {\n data: {\n token: \"you are allowed to get token\",\n },\n };\n }", "static getToken() {\n return localStorage.getItem('token');\n }", "static getToken() {\n return localStorage.getItem('token');\n }", "userinfo(token) {\n const headers = new Headers();\n\t\theaders.append('content-type', 'application/json');\n\t\theaders.append('Authorization', `Bearer ${token}`);\n\n\t\treturn fetch('https://pizza-tele.ga/api/v1/user/my_info', {\n method: 'GET',\n\t\t\theaders,\n }).then(response => {\n\t\t\tif (response.status == 200 || String(response.status).charAt(0) == 4) return response.json();\n\t\t\tthrow new Error('The application is not available, please contact your administrator.');\n\t\t}, reject => {\n\t\t\tthrow new Error('system');\n\t\t});\n }", "getToken() {\n\t\treturn this._post(\"/api/user/token\");\n\t}", "get token() {\n return (this.tokenGenerated) ? this.config.token : new Error(\"Token not Generated... Please use getUserToken()\");\n }", "function getToken() {\n return localStorage.getItem(_constants__WEBPACK_IMPORTED_MODULE_1__.TOKEN);\n}", "getValue() {\n return this.token;\n }", "getValue() {\n return this.token.access_token;\n }", "static async read(token) {\n return await sendRequest(\"GET\", \"/users/self\", token);\n }", "function getToken(){\n\n\t\t\tvar url = 'https://opentdb.com/api_token.php?command=request'\n\t\t\tfunction get(url) {\n \n\t\t\t return new Promise(function(resolve, reject) {\n \n\t\t\t\tvar req = new XMLHttpRequest();\n\t\t\t\treq.open('GET', url);\n\t\n\n\t\t\t\treq.onload = function() {\n \n\t\t\t\t if (req.status == 200) {\n \n\t\t\t\t\tresolve(req.response);\n\t\t\t\t }\n\t\t\t\t else {\n \n\t\t\t\t\treject(Error(req.statusText));\n\t\t\t\t }\n\t\t\t\t};\n\n \n\t\t\t\treq.onerror = function() {\n\t\t\t\t reject(Error(\"Network Error\"));\n\t\t\t\t \n\t\t\t\t}\n\n \n\t\t\t\treq.send();\n\t\t\t });\n\t\t\t}\n\n\t\t\t get(url).then(function(response) {\n\t\t\t return JSON.parse(response);\n \n\t\t\t}).then(function(response){console.log(response['response_code'])\n\t\t\t\t\t\t\t\t\t\tgame.token=response['token']\n\t\t\t\t\t\t\t\t\t\tconsole.log(response['token'])\n\t\t\t\t\t\t\t\t\t\t}).then(function(){getQuestion(opts.codes)})\n\t\t\t, function(error) {\n\t\t\t console.error(\"Failed!\", error);\n\t\t\t console.log(\"Sorry, we cannot get your data right now\")\n\t\t\t}\n}", "function get() {\n return sessionStorage.getItem(TOKEN_KEY);\n}", "getToken() {\n return [\n this.authenticate([AUTH_TYPE.BASIC, AUTH_TYPE.CLIENT]),\n this._bindAfterToken.bind(this),\n this.exchange(),\n ];\n }", "function getToken() {\n return sessionStorage.getItem('auth');\n }", "getToken() {\n // [START get_token]\n // Get Instance ID token. Initially this makes a network call, once retrieved\n // subsequent calls to getToken will return from cache.\n this.messaging.getToken().then((currentToken) => {\n if (currentToken) {\n this.sendTokenToServer(currentToken);\n //updateUIForPushEnabled(currentToken);\n } else {\n // Show permission request.\n console.log('No Instance ID token available. Request permission to generate one.');\n // Show permission UI.\n //updateUIForPushPermissionRequired();\n this.setTokenSentToServer(false);\n }\n }).catch((err) => {\n console.log('An error occurred while retrieving token. ', err);\n this.setTokenSentToServer(false);\n this.notifyTokenStatusListeners({success: false, alreadySent: false}, new Error(\"Permission denied\"));\n });\n // [END get_token]\n }", "function getToken(){\n return localStorage.getItem(\"token\");\n}", "function callTokenInfo() {\r\n $.ajax({\r\n url: \"https://apilist.tronscan.org/api/token\",\r\n type: \"get\",\r\n dataType: \"json\",\r\n data: {\r\n id: \"1002652\",\r\n },\r\n success: function (result) {\r\n //push ajax call result to global var\r\n tokenInfo = result.data[0];\r\n // callback function to push result after ajax success\r\n useTokenInfo();\r\n },\r\n });\r\n }", "function getUserFromToken() {\n const token = getToken();\n return token ? JSON.parse(atob(token.split('.')[1])).user : null;\n}", "function getTokenString(state) {\n return state.data.substring(state.currentTokenStart, state.currentTokenEnd);\n }", "get(token) {\n const value = this.store.get(token);\n\n if (value !== undefined) {\n return value;\n }\n\n const raw = this.getRaw(token);\n\n if (raw !== undefined) {\n this.hydrate(token, raw);\n return this.get(token);\n }\n }", "function getToken(state) {\n return tokenTable[state]\n}", "getToken() {\n return this.cookies.get('token', {\n signed: true,\n encrypt: true\n });\n }", "function fetchToken() {\n getToken()\n .then(function (token) {\n setTokenSentToServer(false);\n\n if (token) {\n sendTokenToServer(token);\n config.FCM.onTokenFetched(token);\n } else {\n config.FCM.onPermissionRequired();\n requestPermission();\n }\n })\n .catch(function (error) {\n setTokenSentToServer(false);\n config.FCM.onTokenFetchedError(error);\n });\n }", "async getToken() {\n try {\n const token = await AsyncStorage.getItem('token');\n console.log(`DEBUG: token found: ${token}`);\n return token;\n } catch (e) {\n console.log(`DEBUG: Failed to get id: ${e}`);\n }\n }", "async function gettoken() {\n\n const resp = await fetch(\"http://www.mumstudents.org/api/login\", {\n method: \"POST\",\n headers: { \"content-type\": \"application/json\" },\n body: JSON.stringify({\n username: 'mwp', password: '123'\n })\n })\n const respBody = await resp.json();\n console.log(respBody);\n token = respBody.token;\n\n myAnimantion();\n }", "async getToken() {\n const token = await this.cookies.get('token') || '';\n return token ? `Bearer ${token}` : '';\n }", "getToken() {\n const params = {\n grant_type: GRANT_TYPE,\n appid: this.appId,\n secret: this.appSecret\n };\n\n return ajaxGet(TOKEN_AUTH_URL, { params })\n .then((data) => {\n if (data && data.errcode) {\n return Promise.reject(data);\n }\n\n return Promise.resolve(data);\n });\n }", "function getUserToken(){\n\t\treturn $cookies.get('user.token');\n\t}", "getAccessToken() {}", "async function get_by_token(request, response, next){\n\t\n\tresponse.locals.log = {label:'terminal', type:\"details\"};\n\t\n\ttry{\n\t\t//check if terminal exists\n\t\tconst terminal = await exists(request.params.token);\n\t\tif(!terminal.status){\n\t\t\tresponse.status(404);\n\t\t\tresponse.locals.error = terminal.message;\n\t\t\treturn next();\n\t\t}\n\t\tresponse.locals.data = terminal.data;\n\t\treturn okResponse(response);\n\t\t\n\t}catch(error){\n\t\tresponse.locals.error = error;\n\t\treturn next();\n\t}\n}", "function requestTokenInfo(options, access_token) {\n if (!options || !options.tokenIntrospectionEndpointUrl) {\n throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, MISSING_URL);\n }\n const parsedUrl = new URL(options.tokenIntrospectionEndpointUrl);\n const postData = querystring.stringify({\n token: access_token,\n });\n const headers = {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Content-Length': Buffer.byteLength(postData),\n };\n if (options.authorizationHeader) {\n headers['Authorization'] = options.authorizationHeader;\n }\n const postOptions = {\n hostname: parsedUrl.hostname,\n path: parsedUrl.pathname,\n method: 'POST',\n headers: headers,\n };\n return httpsRequest.request(postOptions, postData);\n}", "function _getTokenFromSession() {\r\n return $sessionStorage.getObject('auth_token');\r\n }", "get() {\n return {\n authenticated: authenticated,\n createLoginUrl: () => 'loginUrl',\n createLogoutUrl: () => 'logoutUrl',\n fullName: 'fName',\n ready: true,\n subject: zeroUuid,\n token: 'token',\n tokenParsed: {\n given_name: 'John',\n family_name: 'Doe',\n name: 'John Doe',\n email: 'e@mail.com',\n identity_provider: 'idir',\n idp_userid: zeroGuid,\n preferred_username: 'johndoe',\n realm_access: {},\n resource_access: {\n chefs: {\n roles: roles,\n },\n },\n },\n userName: 'uName',\n };\n }", "function getUserInfo() {\n return authClient.token.getUserInfo()\n .then(function(value) {\n userInfo = value;\n renderApp();\n })\n .catch(function (error) {\n // This is expected when Okta SSO does not exist\n showError(error);\n });\n}", "function getToken() {\n\n var tokenURL = portal + '/sharing/rest/generateToken?';\n\n var parameters = {username: username,\n password: password,\n client: 'referer',\n referer: portal,\n expiration: 60,\n f: 'json',};\n //Pass parameters via form attribute\n var requestPars = {method: 'post', url: tokenURL, form: parameters };\n\n return hr.callAGOL(requestPars,'token');\n}", "async function getToken() {\r\n let request = {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Authorization': 'Basic ' + base64.encode(username + ':' + password)\r\n },\r\n redirect: 'follow'\r\n }\r\n\r\n const serverReturn = await fetch(ENDPOINT_URL + '/login', request)\r\n\r\n\r\n const serverResponse = await serverReturn.json()\r\n token = serverResponse.token\r\n\r\n return token;\r\n}", "function getToken() {\n return sessionStorage.getItem('token_chat');\n }", "function fetchAccount(token, callback) {\n\taccess_token = \"Bearer \" + token;\n\taxios({\n\t\tmethod: 'get',\n\t\turl: ACCOUNTS_URL,\n\t\theaders: {\n\t\t\t\"Authorization\": access_token,\n\t\t\t\"uuid\": SAMPLE_UUID,\n\t\t\t\"Accept\": ACCEPT,\n\t\t\t\"client_id\": CLIENT_ID\n\t\t}\n\t}).then(function(response){\n\t\tvar successfulAccount = JSON.stringify(response.data, undefined, 2);\n\t\tcallback(null, successfulAccount);\n\t\t}).catch(function(error){\n\t\t\tcallback(error, null);\n\t\t});\n}", "function getProfile({ id_token /*, access_token */ }) {\n // if (!token) return Promise.reject(new Error('Token is missing!'))\n const options = {\n body: `id_token=${id_token}`,\n method: 'POST',\n headers: {\n Accept: 'application/json',\n // do not use Content-Type: 'application/json' to avoid extra 'OPTIONS' requests (#9)\n 'Content-Type': 'application/x-www-form-urlencoded'\n }\n }\n const url = `${APP_URL}/tokeninfo`\n return fetchJSON(url, options).then(profile => ({ token: id_token, profile }))\n}", "async getToken() {\n\t\tif (!this.isExpired()) {\n\t\t\treturn Promise.resolve(this.token);\n\t\t}\n\n\t\tif (!this.key) {\n\t\t\tthrow new Error('No key set.');\n\t\t}\n\n\t\treturn this.requestToken();\n\t}", "getProfile() {\n\t\treturn decode(this.getToken());\n\t}", "async function getSupportedTokens() {\n let tokensBasicInfoRequest = await fetch(\n \"https://api.kyber.network/currencies\"\n );\n let tokensBasicInfo = await tokensBasicInfoRequest.json();\n return tokensBasicInfo;\n}", "function getToken(req) {\n if (req.headers.authorization && req.headers.authorization.split(\" \")[ 0 ] === \"Bearer\") {\n return req.headers.authorization.split(\" \")[ 1 ];\n } if (req.query && hasProp(req.query, \"token\")) {\n return req.query.token;\n }\n return null;\n}", "async getWithToken(url,token) {\n \n // Awaiting for fetch response\n const response = await fetch(url,{\n \"method\": \"GET\",\n \"headers\": {\n \"Authorization\": \"token \"+token,\n \"Accept\": \"application/vnd.github.v3+json\"\n }\n });\n \n // Awaiting for response.json()\n const data = await response.json();\n\n // Awaiting for data.sha\n const resData = await data.sha;\n \n // Returning result data\n return resData;\n }", "get name() {\n return cred.tokenKindName(this._kind);\n }", "function getAuthInfo(){\n const token = localStorage.getItem('authToken');\n if (token) {\n const base64Url = token.split('.')[1];\n const base64 = base64Url.replace('-', '+').replace('_', '/');\n const obj = JSON.parse(window.atob(base64));\n return obj.user; \n }\n}", "async function get_token (api_url, api_info) {\n const res_body = await fetch(`${api_url}/token.html`, api_info);\n const res_text = await res_body.text();\n\n const parser = new DOMParser();\n const token = parser\n .parseFromString(res_text, \"text/html\")\n .querySelector(\"#token\")\n .textContent;\n\n // Return content of token div\n return token;\n}", "getAuthHeader() {\n\t\treturn this.token.getToken().then((token) => `Bearer ${token}`);\n\t}", "async function getTokenInfo(symbol, callback) {\n\n\tlet tokenInfo;\n\n\tfor(let api of proxy.getApis()) {\n\t\t\n\t\ttokenInfo = await api.getTokenInfo(symbol);\n\n\t\tif(tokenInfo) {\n\t\t\treturn tokenInfo;\n\t\t}\n\t}\n\n\treturn false;\n}", "function getToken(req){\n var auth = req.headers.authorization\n if ( auth && auth.split(\" \").length>1){\n return token = req.headers.authorization.split(\" \")[1]\n }else if(req.query.token){\n return req.query.token\n }else{\n return null\n }\n}", "async function get_token(username, password) {\n\n if (token != null)\n {\n console.log('token is \"'.concat(token).concat('\" returning'));\n return;\n }\n\n return new Promise((resolve, reject) => {\n var url = 'https://www.victorsmartkill.com/api-token-auth/';\n request.post(url, \n {form:{'username': username, 'password': password}},\n (error, response, body) => {\n if (error) \n reject(error);\n if (response.statusCode != 200) {\n reject('Invalid status code <' + response.statusCode + '>');\n }\n token = JSON.parse(body)['token'];\n resolve(token);\n console.log(\"doesn't have token, fetched it - \".concat(token));\n });\n });\n}", "async accessInfo(){\n return this.get(\"access-info\", null);\n }", "static getTokenFromLS() {\n const localStorageToken = localStorage.getItem(\"tokenObject\");\n if (localStorageToken !== \"\" && localStorageToken !== null) {\n return JSON.parse(localStorageToken).access_token;\n } else {\n return -1;\n }\n }", "getToken() {\n return axios.get('contract-builder/template/contracts/Token.sol')\n .then((response) => {\n return response.data\n })\n }", "function readToken(token) { \n console.log(token);\n state = turn[token];\n nextAction(state);\n}", "async get_token() {\n\n var username = await AsyncStorage.getItem(\"username\");\n if (username != null && username != this.guestuserkey()) {\n var bytes_username = utf8.encode(username);\n var encoded_username = binaryToBase64(bytes_username);\n\n //update when upgrading authentication flow\n var securityversion = \"1\";\n\n var tokenobj = {};\n tokenobj[\"token\"] = encoded_username;\n tokenobj[\"securityversion\"] = securityversion;\n\n var token = JSON.stringify(tokenobj);\n var bytes = utf8.encode(token);\n var encoded = binaryToBase64(bytes);\n return encoded;\n }\n else {\n var token = \"4B0053744852ED7C2705E668C43982928978B74BBB7F21A0F9B4E43914E49A6F\";\n var bytes = utf8.encode(token);\n var encoded = binaryToBase64(bytes);\n return encoded;\n }\n\n }", "async getDeviceByToken(token) {\n // TODO when relations are ready\n }", "getEncodedToken() {\n\t\treturn this.encodeTokenWithIdentityProvider(this.getToken());\n\t}", "token() {\n return {\n id: this.id,\n role: this.role,\n };\n }", "function extractToken(token) {\n var regex = /^Bearer\\s(\\S+)$/i;\n var result = regex.exec(token);\n return result ? result[1] : false;\n}", "function getToken(){\n \n return $window.localStorage.getItem(tokenStorageName);\n\n }", "function Check_AuthToken(auth){\n var requestOptions = {\n \"method\": \"GET\",\n \"headers\": {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer \"+auth\n }\n };\n\n fetchAction(url_getinfo, requestOptions)\n .then(function(response) {\n \treturn response.json();\n })\n .then(function(result) {\n \tconsole.log(JSON.stringify(result));\n return result;\n })\n .catch(function(error) {\n \tconsole.log('Request Failed:' + error);\n return error;\n });\n}", "active() { return this.data.token; }", "function get_profile(token) {\n return new Promise(function(resolve, reject) {\n const options = {\n hostname: 'people.googleapis.com',\n path: '/v1/people/me?personFields=names,emailAddresses&access_token=' + token,\n method: \"GET\",\n }\n // Data is received in chunks\n var received_data = \"\";\n\n const req = https.request(options, (res) => {\n res.setEncoding('utf8');\n res.on('data', (chunk) => {\n received_data += chunk;\n });\n\n res.on('end', () => {\n resolve(received_data);\n });\n });\n\n req.on('error', (e) => {\n reject(e.message);\n });\n\n req.end();\n });\n}", "token() {\n return {\n _id: this._id,\n role: this.role\n }\n }", "static getUserToken(){\n let token = JSON.parse(localStorage.getItem('USER')).token;\n return token;\n }", "static getUserToken(){\n let token = JSON.parse(localStorage.getItem('USER')).token;\n return token;\n }", "getToken() {\n return localStorage.getItem(\"id_token\");\n }", "function getToken() {\n if(window.localStorage.getItem('token') != null){\n return window.localStorage.getItem('token')\n } \n return ''\n}", "function getUser(token){\n const tokenParts = token.split('.');\n const encodedPayload = tokenParts[1];\n const rawPayload = atob(encodedPayload);// atob zet versleutelde data om te zetten naar leesbare tekst\n const user = JSON.parse(rawPayload); // user uit token halen zonder dat je code nodig hebt.\n return user;\n}", "getToken() {\n return __awaiter(this, void 0, void 0, function* () {\n if (this._hasTokenExpired() || this._hasSubscriptionChanged() || this._hasResourceChanged()) {\n try {\n // refresh the access token\n this.tokenInfo = yield AzureCliCredentials.getAccessToken({\n subscriptionIdOrName: this.subscriptionInfo.id,\n resource: this.resource\n });\n }\n catch (err) {\n throw new Error(`An error occurred while refreshing the new access ` +\n `token:${err.stderr ? err.stderr : err.message}`);\n }\n }\n const result = {\n accessToken: this.tokenInfo.accessToken,\n tokenType: this.tokenInfo.tokenType,\n expiresOn: this.tokenInfo.expiresOn,\n tenantId: this.tokenInfo.tenant\n };\n return result;\n });\n }", "function getToken(urlQuery) {\n var \n i,\n query,\n length,\n token;\n\n query = urlQuery.split('&');\n length = query.length;\n token = '';\n\n for (i=0; i<length; i++){\n if (query[i].indexOf(\"token\") !== -1) {\n token = query[i].split('=')[1];\n break;\n }\n }\n return token;\n}", "getToken() {\n return localStorage.getItem(\"token\") || null\n }" ]
[ "0.75403905", "0.7270433", "0.69792247", "0.69213736", "0.68810505", "0.6831757", "0.67906076", "0.66510165", "0.6624024", "0.6595013", "0.65682405", "0.6557997", "0.65265566", "0.6496171", "0.64702255", "0.6447858", "0.6411056", "0.6406262", "0.6383095", "0.637837", "0.63364977", "0.63285655", "0.63120365", "0.6303039", "0.6302796", "0.6270132", "0.6269782", "0.6269782", "0.62236917", "0.6218842", "0.6218842", "0.62104774", "0.61827415", "0.6171706", "0.61623627", "0.61089605", "0.61087155", "0.60943764", "0.6089861", "0.60748255", "0.6068975", "0.604843", "0.604821", "0.60383874", "0.6025021", "0.60248816", "0.6014681", "0.60141927", "0.60139316", "0.6004026", "0.59935015", "0.5985313", "0.596666", "0.5963574", "0.5958854", "0.5956048", "0.5933883", "0.59319127", "0.5925641", "0.59185946", "0.5916317", "0.59117556", "0.5900231", "0.58640206", "0.5860986", "0.58596826", "0.58536476", "0.58493185", "0.5843603", "0.5836363", "0.5829337", "0.58275527", "0.58237296", "0.58219343", "0.58213603", "0.58145094", "0.5803198", "0.5784631", "0.5784302", "0.57809204", "0.578057", "0.57803875", "0.5777496", "0.57589805", "0.57579446", "0.5754133", "0.5753073", "0.5750704", "0.5750375", "0.5749526", "0.57383835", "0.5736616", "0.5734239", "0.57268345", "0.57268345", "0.5724583", "0.57149327", "0.57139355", "0.5709494", "0.57019985", "0.57009125" ]
0.0
-1
Retrieves the complete information about a list of tokens.
function getTokens(url, scriptHashArray, address) { return __awaiter(this, void 0, void 0, function* () { try { const sb = new neon_core_1.sc.ScriptBuilder(); scriptHashArray.forEach((scriptHash) => { abi.name(scriptHash)(sb); abi.symbol(scriptHash)(sb); abi.decimals(scriptHash)(sb); abi.totalSupply(scriptHash)(sb); if (address) { abi.balanceOf(scriptHash, address)(sb); } }); const res = yield neon_core_1.rpc.Query.invokeScript(sb.str).execute(url); const result = []; const step = address ? 5 : 4; for (let i = 0; i < res.result.stack.length; i += step) { const name = neon_core_1.rpc.StringParser(res.result.stack[i]); const symbol = neon_core_1.rpc.StringParser(res.result.stack[i + 1]); const decimals = neon_core_1.rpc.IntegerParser(res.result.stack[i + 2]); const totalSupply = neon_core_1.rpc .Fixed8Parser(res.result.stack[i + 3]) .dividedBy(Math.pow(10, decimals - neon_core_1.rpc.IntegerParser(res.result.stack[i + 2]))) .toNumber(); const balance = address ? neon_core_1.rpc .Fixed8Parser(res.result.stack[i + 4]) .dividedBy(Math.pow(10, decimals - neon_core_1.rpc.IntegerParser(res.result.stack[i + 2]))) : undefined; const obj = { name, symbol, decimals, totalSupply, balance, }; if (!obj.balance) { delete obj.balance; } result.push(obj); } return result; } catch (err) { log.error(`getTokens failed with : ${err.message}`); throw err; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async loadTokensList() {\n return null;\n }", "async getTokens() {\n const apiURL = `${this.dxApiURL}/v1/tokens`\n const res = await fetcher(apiURL)\n\n return res.data\n }", "static loadTokensList() {\n const { availableTokens, network, walletAddress } = store.getState();\n\n if (network !== 'mainnet') return Promise.resolve();\n\n const availableTokensAddresses = availableTokens\n .filter(token => token.symbol !== 'ETH')\n .map(token => token.contractAddress);\n\n return fetch(\n `https://api.ethplorer.io/getAddressInfo/${walletAddress}?apiKey=freekey`,\n )\n .then(response => response.json())\n .then(data => {\n if (!data.tokens) {\n return Promise.resolve();\n }\n\n return data.tokens\n .filter(\n token =>\n !availableTokensAddresses.includes(token.tokenInfo.address),\n )\n .forEach(token => {\n store.dispatch({\n type: ADD_TOKEN,\n token: {\n contractAddress: token.tokenInfo.address,\n decimals: parseInt(token.tokenInfo.decimals, 10),\n name: token.tokenInfo.name,\n symbol: token.tokenInfo.symbol,\n },\n });\n });\n });\n }", "function listTokens(req, res) {\n Token.find(\n {\n $and: [\n {\n user: res.locals.user\n },\n utils.formatQuery(req.query)\n ]\n },\n '-salt -value'\n )\n .lean()\n .sort({ _id: -1 })\n .then(function(tokens) {\n res\n .status(200)\n .json(tokens.map(token => utils.formatTokenResponse(token)));\n })\n .catch(function(err) {\n console.log(err);\n\n res.status(500).json({\n error: {\n code: 500,\n message: 'Internal server error'\n }\n });\n });\n}", "get tokens() {\n return this._tokens;\n }", "_getTokens() {\n return http\n .get(`${ENV.VUE_APP_TOKEN_INFO_API_URL}/tokens`)\n .then(resp => resp.data);\n }", "async getTokens () {\n\t\tthis.tokens = this.members.reduce((tokens, user) => {\n\t\t\tconst userAttrs = user.attributes || user;\n\t\t\tif (userAttrs.broadcasterToken) {\n\t\t\t\ttokens.push(userAttrs.broadcasterToken);\n\t\t\t}\n\t\t\treturn tokens;\n\t\t}, []);\n\t}", "function parseTokens()\n {\n var arr = [];\n list.children('li').each(function () {\n arr.push( $(this).html().split(\" \")[0] );\n });\n return arr;\n }", "async function getTokenInfos(symbols, callback) {\n\n\tlet tokenInfos;\n\n\tfor(let api of proxy.getApis()) {\n\t\t\n\t\ttokenInfos = await api.getTokenInfos(symbols);\n\n\t\tif(tokenInfos) {\n\t\t\treturn tokenInfos;\n\t\t}\n\t}\n\n\treturn false;\n}", "list() {\n return this.contract.methods.getOwnerTokens(this.contract.defaultAccount).call();\n }", "getToken() {\n return [\n this.authenticate([AUTH_TYPE.BASIC, AUTH_TYPE.CLIENT]),\n this._bindAfterToken.bind(this),\n this.exchange(),\n ];\n }", "queryTokens(tokens) {\n return from(\n this.$tokenQuery.queryInfo(this.$provider.currentAccount, tokens)\n );\n }", "async function getSupportedTokens() {\n let tokensBasicInfoRequest = await fetch(\n \"https://api.kyber.network/currencies\"\n );\n let tokensBasicInfo = await tokensBasicInfoRequest.json();\n return tokensBasicInfo;\n}", "function NextTokenInfo()\n {\n if (tokenIndex >= tokens.length) {\n console.log(\"sheets.js: NextTokenInfo: Ran out of tokens!\");\n return ['.', -1, -1];\n }\n var tokenInfo = tokens[tokenIndex++];\n return tokenInfo;\n }", "getTokens() {\n this.$http.get('/settings/api/tokens')\n .then(function(response) {\n this.tokens = response.data;\n });\n }", "get tokenIds() {\n return this._state.tokenIds;\n }", "walkTokens(tokens, callback) {\n let values = [];\n for (const token of tokens) {\n values = values.concat(callback.call(this, token));\n switch (token.type) {\n case \"table\": {\n for (const cell of token.header) {\n values = values.concat(this.walkTokens(cell.tokens, callback));\n }\n for (const row of token.rows) {\n for (const cell of row) {\n values = values.concat(this.walkTokens(cell.tokens, callback));\n }\n }\n break;\n }\n case \"list\": {\n values = values.concat(this.walkTokens(token.items, callback));\n break;\n }\n default: {\n if (this.defaults.extensions && this.defaults.extensions.childTokens && this.defaults.extensions.childTokens[token.type]) {\n this.defaults.extensions.childTokens[token.type].forEach((childTokens) => {\n values = values.concat(this.walkTokens(token[childTokens], callback));\n });\n } else if (token.tokens) {\n values = values.concat(this.walkTokens(token.tokens, callback));\n }\n }\n }\n }\n return values;\n }", "function GetAllTokens() {\n\n var appendTo = document.getElementById('member-tokens-assigned');\n\n axios.get('/0/workspace/'+ space + '/getAllTokens').then(function ( res ) {\n\n var tokens = res.data;\n\n console.log(tokens);\n\n tokens.forEach(function( generated, index) {\n var html = document.createElement('div');\n html.classList.add('token-generated');\n\n generated.claimed ? html.classList.add('token-used') : html.classList.add('token-free');\n html.innerHTML = '<p>' + generated.token + '</p>';\n\n appendTo.appendChild(html);\n });\n })\n .catch(function (error) { console.log(error) });\n}", "getToken() { return this.token.getToken(); }", "getAllTokens() {\n\t\t\tconst tokens = [];\n\n\t\t\tconst {diagnostics} = ___R$project$rome$$internal$diagnostics$wrap_ts$catchDiagnosticsSync(() => {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttokens.push(this.getToken());\n\t\t\t\t\tif (this.matchToken(\"EOF\")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.nextToken();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (diagnostics !== undefined) {\n\t\t\t\ttokens.push({\n\t\t\t\t\ttype: \"Invalid\",\n\t\t\t\t\tstart: this.nextTokenIndex,\n\t\t\t\t\tend: new ___R$project$rome$$internal$numbers$indexed_ts$ZeroIndexed(\n\t\t\t\t\t\tthis.length,\n\t\t\t\t\t),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn tokens;\n\t\t}", "function getToken() {\n return token;\n }", "async function getTokens() {\n const result = await gql(process.env.SUBGRAPH_ENDPOINT).assets();\n console.log(JSON.stringify(result, null, 2))\n return result;\n}", "function showToken(response){\n console.log(response);\n}", "function getToken(state) {\n return tokenTable[state]\n}", "get providerTokens() {\n return getInjectionTokens(this.nativeNode);\n }", "function getTokens(title) {\n var code = title.split('=').pop();\n var xhr = new XMLHttpRequest();\n xhr.open(\"POST\", tokenUrl, true);\n xhr.onreadystatechange = function() {\n if (xhr.readyState == 4) {\n var resp = JSON.parse(xhr.responseText);\n sendValidationRequest(resp);\n }\n };\n var tokenParams = {\n 'grant_type': 'authorization_code',\n 'client_id': clientId,\n 'client_secret': clientSecret,\n 'code': code,\n 'redirect_uri': redirectUri,\n 'scope': authScope\n };\n // Send the proper header information along with the request\n xhr.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n xhr.send(stringify(tokenParams));\n}", "allTokens() {\r\n console.log('in alltokens()');\r\n let token = this.nextToken();\r\n let tokens = [];\r\n while (token.type !== TokenType.EndOfInput) {\r\n tokens.push(token);\r\n console.log(tokens);\r\n token = this.nextToken();\r\n console.log(token +' '+this.input.charAt(this.position));\r\n\r\n if(typeof(token) === 'undefined'){\r\n console.log('token is undefined :' + token);\r\n }\r\n }\r\n console.log('going out of allTokens()');\r\n return tokens;\r\n }", "static getTargetTokens({required=false}={}) {\n\t\tconst character = game.user.character;\n\t\tconst controlled = canvas.tokens.controlled;\n\t\tif (!controlled.length && character) {\n\t\t\treturn [character];\n\t\t}\n\n\t\tconst results = controlled.filter(a => a);\n\t\tif (required && !controlled.length) {\n\t\t\tui.notifications.warn(game.i18n.localize(\"SNS.ActionWarningNoToken\"));\n\t\t}\n\n\t\treturn results;\n\t}", "async function getTokenInfo(symbol, callback) {\n\n\tlet tokenInfo;\n\n\tfor(let api of proxy.getApis()) {\n\t\t\n\t\ttokenInfo = await api.getTokenInfo(symbol);\n\n\t\tif(tokenInfo) {\n\t\t\treturn tokenInfo;\n\t\t}\n\t}\n\n\treturn false;\n}", "static async getUsers (token) {\n const query = `*[_type == 'user'] {\n name,\n _id\n }\n `\n client.config({ token })\n return client.fetch(query)\n }", "async CheckTokens(ctx, id) {\n //Get the tokens member with the \"id\" has\n console.log('memberId'+id);\n let member = await ctx.stub.getState(id);\n member = JSON.parse(member);\n return member.Tokens;\n }", "function get_tokens(){\n try {\n var credentials = JSON.parse(fs.readFileSync('./credentials.json'));\n if (credentials === false) {\n console.log(\" No Tokens found\");\n }\n return credentials;\n\n } catch (err) {\n\n console.log('failed to load credentials', err);\n }\n}", "async getAllTokens(page, options) {\n const tokens = [];\n let teamsList = await page.$$(`${CbsAPI.teams.prefixSelector}${options.sport}${CbsAPI.teams.suffixSelector}`);\n console.log(`[cbs api] - found ${teamsList.length} team(s)`);\n const hrefs = [];\n for (let i = 0; i < teamsList.length; i++) {\n const prop = await teamsList[i].getProperty('href');\n const href = await prop.jsonValue();\n hrefs.push(href);\n }\n for (let i = 0; i <hrefs.length; i++) {\n console.log(`[cbs api] - navigate to ${hrefs[i]} to get check league type and access_token`);\n const token = await this.getAccessToken(page, hrefs[i]);\n tokens.push(token);\n }\n return tokens.filter(token => CbsAPI.allowedTypes.includes(token.leagueType));\n }", "function getToken() {\n\t\treturn store.getItem(key);\n\t}", "static async list(token) {\n return await sendRequest(\"GET\", \"/posts\", token);\n }", "function getTotalRewardTokens(req, res, next) {\n Reward.getTotalRewardTokens()\n .then(tokens => {\n req.result = {\n _id: req.groupId,\n name: req.groupName,\n initialTokens: 0,\n usedTokens: tokens[0].totalTokens\n };\n next();\n })\n .catch(e => next(e));\n}", "async getTokenInfo() {\n try {\n const data = await this.callApi({ type: 'auth', url: 'validate' });\n return new auth_1.TokenInfo(data);\n }\n catch (e) {\n if (e instanceof api_call_1.HttpStatusCodeError && e.statusCode === 401) {\n throw new auth_1.InvalidTokenError();\n }\n throw e;\n }\n }", "getToken() {\n return _token;\n }", "function callTokenInfo() {\r\n $.ajax({\r\n url: \"https://apilist.tronscan.org/api/token\",\r\n type: \"get\",\r\n dataType: \"json\",\r\n data: {\r\n id: \"1002652\",\r\n },\r\n success: function (result) {\r\n //push ajax call result to global var\r\n tokenInfo = result.data[0];\r\n // callback function to push result after ajax success\r\n useTokenInfo();\r\n },\r\n });\r\n }", "function getList() {\n return $http.get(apiHost + '/cts.json').then(function (res) {\n return res.data;\n });\n }", "getAccessTokens() {\n return this._data.accessTokens;\n }", "function count_Tokens()\n{\n return this.tokens.length;\n}", "function getTokenString(state) {\n return state.data.substring(state.currentTokenStart, state.currentTokenEnd);\n }", "function parseTokens (tokens) {\n var firstDefined = _.compose (_.head, _.dropWhile (_.compose (_.equals (undefined), _.prop ('Parsed'))));\n var parsed = firstDefined ([undefined]);\n if (parsed == undefined) {\n undefined;\n }\n return _.concat ([parsed.Parsed], parseTokens (undefined));\n}", "function GenTokenParser(){}", "splitTokens(scope, tokens) {\n const items = []\n let current = []\n for (let i = 0, token; (token = tokens[i]); i++) {\n // handle alternate marker\n if (this.delimiter.testAtStart(scope, tokens, i)) {\n items.push(current)\n current = []\n // eslint-disable-next-line no-continue\n continue\n }\n // handle nested start/emd\n if (this.start.testAtStart(scope, tokens, i)) {\n const end = this.findNestedEnd(scope, tokens, i)\n if (end) {\n current = current.concat(tokens.slice(i, end + 1))\n i = end\n // eslint-disable-next-line no-continue\n continue\n }\n }\n current.push(token)\n }\n // Pick up the last list ONLY if it's not empty\n // This ensures we don't pick up an empty list for a delimiter at the end.\n if (current.length) items.push(current)\n\n if (!items.length) return undefined\n return items\n }", "tokenTypes(){ return [] }", "allTokenFields() {\n return document.querySelectorAll('input[name=token]');\n }", "_loadTokens() {\n const Group = require('./token/Group'),\n GroupEnd = require('./token/GroupEnd'),\n Picture = require('./token/command/Picture'),\n Command = require('./token/Command'),\n Escape = require('./token/Escape');\n\n this.tokens = [\n new Group(),\n new GroupEnd(),\n new Picture(),\n new Command()\n ];\n\n // It's important to put Escape token at the end as it's the last one that should be used.\n this.tokens.push(new Escape());\n }", "function TokenStore(){\n\n var tokens = {};\n\n}", "editTokens() {\n return this.gotoState('dbaas-logs.detail.tokens');\n }", "getToken() {\n return this.token;\n }", "updateTokens() {\n this.getTokens();\n }", "function getUserList(tok) {\n\treturn new Promise(function(resolve, reject) {\n\t\trequest.get('https://slack.com/api/users.list?token='+tok,\n\t\t\tfunction (error, response, body) {\n\t\t\t\tif (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t} else {\n //console.log(body);\n resolve(JSON.parse(body));\n }\n });\n\t});\n}", "function tokenStream() {\n\n return Observable.from(TOKENS);\n}", "function makeMktTokenList(){\n BD18.marketTokens = [];\n if (BD18.gm.mktTks.length === 0) return;\n var token,sn,ix,flip,stack,bx,by;\n for(var i=0;i<BD18.gm.mktTks.length;i++) {\n sn = BD18.gm.mktTks[i].sheetNumber;\n ix = BD18.gm.mktTks[i].tokenNumber;\n flip = BD18.gm.mktTks[i].flip;\n// stack = BD18.gm.mktTks[i].stack;\n stack = (typeof BD18.gm.mktTks[i].stack!=='undefined')\n ? BD18.gm.mktTks[i].stack : 0;\n bx = BD18.gm.mktTks[i].xCoord;\n by = BD18.gm.mktTks[i].yCoord;\n token = new MarketToken(sn,ix,flip,stack,bx,by);\n BD18.marketTokens.push(token);\n }\n}", "function getIdentifierNames(code, tokens) {\n const names = [];\n for (const token of tokens) {\n if (token.type === TokenType.name) {\n names.push(code.slice(token.start, token.end));\n }\n }\n return names;\n}", "function tokenHandler( result )\n{\n $( \"#app-status-ul\" ).append( '<li>token: ' + result + '</li>' );\n}", "async function getPushTokens() {\n try {\n const expoTokens = await Account.find(\n { expoToken: { $ne: null }}, {expoToken: 1})\n var tokens = [];\n expoTokens.forEach((device) => tokens.push(device.expoToken));\n\n return tokens;\n } catch (error) {\n console.log(error.message);\n }\n}", "async function listTrunks(url, token) {\n const options = {\n method: 'GET',\n agent: agent,\n headers: {\n 'content-type': 'application/json',\n 'X-Auth-Token': token\n }\n };\n\n return fetch(url, options).then(response => response.json()).then(data => data);\n }", "function printLexemesInList(list) {\n sessionService.getSession().then(function (session) {\n var config = session.projectSettings().config;\n var ws = config.entry.fields.lexeme.inputSystems[1];\n var arr = [];\n for (var i = 0; i < list.length; i++) {\n if (angular.isDefined(list[i].lexeme[ws])) {\n arr.push(list[i].lexeme[ws].value);\n }\n }\n\n console.log(arr);\n });\n }", "function system_token_request() {\n var MongoClient = require('mongodb').MongoClient, format = require('util').format;\n MongoClient.connect(require('util').format('mongodb://%s:%s/%s', config.mongodb.host, config.mongodb.port, config.mongodb.database), function (err, db) {\n if (err) throw err;\n var collection = db.collection('tokens');\n collection.count(function (err, count) {\n console.log(\"Loaded \" + count + \" system tokens from the collection.\");\n });\n collection.find().toArray(function (err, results) {\n tokens = results;\n exports.tokens = results;\n db.close();\n });\n })\n}", "function token() {\n return currentToken;\n }", "function extract(token) {\n var properties = [];\n\n if (token.kind == 'selector') {\n var inSimpleSelector = !/[\\.\\+#>~\\s]/.test(token.metadata.selector);\n for (var i = 0, l = token.metadata.bodiesList.length; i < l; i++) {\n var property = token.metadata.bodiesList[i];\n if (property.indexOf('__ESCAPED') === 0)\n continue;\n\n var splitAt = property.indexOf(':');\n var name = property.substring(0, splitAt);\n if (!name)\n continue;\n\n var nameRoot = findNameRoot(name);\n\n properties.push([\n name,\n property.substring(splitAt + 1),\n nameRoot,\n property,\n token.metadata.selectorsList,\n inSimpleSelector\n ]);\n }\n } else if (token.kind == 'block') {\n for (var j = 0, k = token.body.length; j < k; j++) {\n properties = properties.concat(extract(token.body[j]));\n }\n }\n\n return properties;\n}", "function list(limit, token, cb) {\n const q = ds\n .createQuery([kind])\n .limit(limit)\n .order('name')\n .start(token);\n\n ds.runQuery(q, (err, entities, nextQuery) => {\n if (err) {\n cb(err);\n return;\n }\n const hasMore =\n nextQuery.moreResults !== Datastore.NO_MORE_RESULTS\n ? nextQuery.endCursor\n : false;\n cb(null, entities.map(fromDatastore), hasMore);\n });\n}", "function getToken() {\n return token || null;\n }", "get token() {\n return this._token;\n }", "get getTokenCallCount() {\n return this._getTokenCallCount;\n }", "get tokenSet() {\n this._syncWithElement();\n return this._tokenSet;\n }", "function xformTokens(metadata, tokens) {\n\t var valid = type.isString(tokens) && tokens.length > 0;\n\t if (!valid) {\n\t // This can happen if objects are uploaded through GCS and retrieved\n\t // through list, so we don't want to throw an Error.\n\t return [];\n\t }\n\t var encode = encodeURIComponent;\n\t var tokensList = tokens.split(',');\n\t var urls = tokensList.map(function (token) {\n\t var bucket = metadata['bucket'];\n\t var path = metadata['fullPath'];\n\t var urlPart = '/b/' + encode(bucket) + '/o/' + encode(path);\n\t var base = UrlUtils.makeDownloadUrl(urlPart);\n\t var queryString = UrlUtils.makeQueryString({\n\t alt: 'media',\n\t token: token\n\t });\n\t return base + queryString;\n\t });\n\t return urls;\n\t }", "function list(limit, token, cb){\n\t\tvar q = ds.createQuery([kind])\n\t .limit(limit)\n\t .order('name')\n\t .start(token);\n\n\t ds.runQuery(q, function(err, entities, nextQuery) {\n\t if (err) { return cb(err); }\n\t var hasMore = entities.length === limit ? nextQuery.startVal : false;\n\t cb(null, entities.map(fromDatastore), hasMore);\n\t });\n\t}", "list() {\n const listings = this._listings.all();\n return Object.keys(listings).map(key => listings[key]);\n }", "function findAllTokensAndKeys(mds, path) {\n\tfor (var item in mds) {\n\t\tif (maxErrorDisplay !==0 && allTokens.length >= maxErrorDisplay) { break; }\n\t\tif (!exceptionList.includes(item)) {\n if (typeof mds[item] === 'object') {\n findAllTokensAndKeys(mds[item], path + item + pathSeparator);\n\t\t } else if ( globalRegex.test(mds[item]) ) {\n // this key has a tokenized value, register it in tokenArray\n // Get list of matches\n var matches = mds[item].match(globalRegex);\n for (var index in matches) {\n //console.log(\"match=\"+matches[index]);\n // Get only token name\n var token = matches[index].match(tokenRegex)[1];\n //console.log(\"token=\"+token);\n // Check if it doesn't already exists before adding it\n if (allTokens.indexOf(token)===-1) { allTokens.push(token); }\n }\n\t\t\t} else {\n\t\t\t\t// this value has no token, register key in allKeys array\n var tempkey = {};\n\t\t\t\tif (includePath) { tempkey = {'keyName': item, 'path': path}; }\n\t\t\t\telse { tempkey = {'keyName': item}; }\n\t\t\t\tif (allTokens.indexOf(tempkey)===-1) { allKeys.push(tempkey); }\n\t\t\t}\n\t\t}\n\t}\n}", "get_children_token_strings() {\n var values = Object.keys(this.children);\n return values;\n }", "function currentToken() {\n return input[index].value;\n }", "tokenTypes(){\n var lex = []\n for(var k in this.lexeme ) \n if( !this.removable(k) ) lex.push(k)\n return lex\n }", "function geToDoList() {\n console.log(token);\n\n fetch('https://api-nodejs-todolist.herokuapp.com/task', {\n headers: { Authorization: 'Bearer ' + token },\n })\n .then((response) => {\n return response.json();\n })\n .then((res) => {\n console.log('data', res.data);\n res.data.map((item) => {\n listTodo(item.description, item._id);\n });\n });\n}", "function requestTokenInfo(options, access_token) {\n if (!options || !options.tokenIntrospectionEndpointUrl) {\n throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, MISSING_URL);\n }\n const parsedUrl = new URL(options.tokenIntrospectionEndpointUrl);\n const postData = querystring.stringify({\n token: access_token,\n });\n const headers = {\n 'Content-Type': 'application/x-www-form-urlencoded',\n 'Content-Length': Buffer.byteLength(postData),\n };\n if (options.authorizationHeader) {\n headers['Authorization'] = options.authorizationHeader;\n }\n const postOptions = {\n hostname: parsedUrl.hostname,\n path: parsedUrl.pathname,\n method: 'POST',\n headers: headers,\n };\n return httpsRequest.request(postOptions, postData);\n}", "function getNewTokens() {\n const fakeQuery = {\n state: state,\n code: //Enter your code here\n }\n\n reddit.oAuthTokens(\n state,\n fakeQuery,\n function (success) {\n // Print the access and refresh tokens we just retrieved\n console.log(reddit.access_token);\n console.log(reddit.refresh_token);\n }\n );\n}", "function customTokens (data) {\n var tokers = [ ];\n console.log(\"TOKE\", data);\n if (data.spec)\n tokers = tokers.concat(Bloodhound.tokenizers.whitespace(data.spec));\n if (data.products) {\n for (var x=0; x< data.products.length; x++) {\n tokers = tokers.concat(Bloodhound.tokenizers.whitespace(data.products[x]));\n }\n }\n return tokers;\n }", "function clearTokenList() {\n const tokenList = STATE.get('TokenList');\n if (tokenList) {\n Object.keys(tokenList).forEach(k => {\n const tokenObj = STATE.get('TokenList', k);\n Token.setBonus(tokenObj, 0);\n });\n }\n }", "function getInjectionTokens(element) {\n var context = loadLContext(element, false);\n if (context === null) return [];\n var lView = context.lView;\n var tView = lView[TVIEW];\n var tNode = tView.data[context.nodeIndex];\n var providerTokens = [];\n var startIndex = tNode.providerIndexes & 1048575\n /* ProvidersStartIndexMask */\n ;\n var endIndex = tNode.directiveEnd;\n\n for (var i = startIndex; i < endIndex; i++) {\n var value = tView.data[i];\n\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n\n providerTokens.push(value);\n }\n\n return providerTokens;\n }", "function getToken() {\n\treturn wAccessToken;\n}", "function getTopics(res, bearerToken) {\n var url = 'https://api.twitter.com/1.1/trends/available.json';\n request({\n url: url,\n method: 'GET',\n headers: {\n \"Authorization\": \"Bearer \" + bearerToken,\n \"Content-Type\": \"application/json\"\n },\n json: true\n }, function(err, jsonResponse, body) {\n topicStrings = parseTopics(body);\n });\n}", "getValue() {\n return this.token;\n }", "function list(){\n return $http.get(urlBase + '/instrutor');\n }", "getUserInfos() {\n return Api.get(\"client/user-infos\");\n }", "getToken() {\n return JSON.parse(localStorage.getItem(TOKEN_KEY));\n }", "function xformTokens(metadata, tokens) {\n var valid = type.isString(tokens) && tokens.length > 0;\n if (!valid) {\n // This can happen if objects are uploaded through GCS and retrieved\n // through list, so we don't want to throw an Error.\n return [];\n }\n var encode = encodeURIComponent;\n var tokensList = tokens.split(',');\n var urls = tokensList.map(function (token) {\n var bucket = metadata['bucket'];\n var path = metadata['fullPath'];\n var urlPart = '/b/' + encode(bucket) + '/o/' + encode(path);\n var base = UrlUtils.makeDownloadUrl(urlPart);\n var queryString = UrlUtils.makeQueryString({\n alt: 'media',\n token: token\n });\n return base + queryString;\n });\n return urls;\n }", "function xformTokens(metadata, tokens) {\n var valid = type.isString(tokens) && tokens.length > 0;\n if (!valid) {\n // This can happen if objects are uploaded through GCS and retrieved\n // through list, so we don't want to throw an Error.\n return [];\n }\n var encode = encodeURIComponent;\n var tokensList = tokens.split(',');\n var urls = tokensList.map(function (token) {\n var bucket = metadata['bucket'];\n var path = metadata['fullPath'];\n var urlPart = '/b/' + encode(bucket) + '/o/' + encode(path);\n var base = UrlUtils.makeDownloadUrl(urlPart);\n var queryString = UrlUtils.makeQueryString({\n alt: 'media',\n token: token\n });\n return base + queryString;\n });\n return urls;\n }", "function makeBdTokenList(){\n BD18.boardTokens = [];\n if (BD18.gm.brdTks.length === 0) return;\n var token,sn,ix,flip,bx,by;\n for(var i=0;i<BD18.gm.brdTks.length;i++) {\n sn = BD18.gm.brdTks[i].sheetNumber;\n ix = BD18.gm.brdTks[i].tokenNumber;\n flip = BD18.gm.brdTks[i].flip;\n bx = BD18.gm.brdTks[i].xCoord;\n by = BD18.gm.brdTks[i].yCoord;\n token = new BoardToken(sn,ix,flip,bx,by);\n BD18.boardTokens.push(token);\n }\n}", "function parseTokensFromUrl(success, error) {\n\t authClient.token.parseFromUrl().then(success).fail(error);\n\t }", "function obtenerToken(datos) {\r\n\r\n let token = datos.access_token;\r\n token = \"Bearer \" + token; \r\n\r\n const parametrosGET = {\r\n method: \"GET\",\r\n headers: { \"Authorization\": token }\r\n }\r\n\r\n const urlGET = \"https://api.spotify.com/v1/artists/6vWDO969PvNqNYHIOW5v0m/top-tracks?market=US\";\r\n\r\n fetch(urlGET, parametrosGET)\r\n .then(respuesta => respuesta.json())\r\n .then(datos => depurarArtista(datos));\r\n}", "function fetchToken() {\n $.getJSON(buildTokenUrl(), {command: 'request'}, response => {\n token = response.token;\n console.log(`session token fetched: ${token}`);\n });\n}", "async readListPair() {\n const filePath = path.resolve(__dirname + '../../../../config/crowdtangle_list.json');\n let listPairs;\n try {\n const fileContents = await readFile(filePath, { encoding: 'utf8' });\n listPairs = JSON.parse(fileContents);\n } catch (err) {\n listPairs = {};\n }\n \n // lists are stored with hashes for security\n const listPair = listPairs[this.hashedToken];\n if (typeof listPair === 'object') {\n return listPair;\n }\n return {\n crowdtangle_list_account_pairs: {},\n crowdtangle_saved_searches: {},\n };\n }", "function getParseTokens(){\n\treturn {\n\t\t'union' : \"+\",\n\t\t'intersection' : \"^^\"\n\t};\n}", "function getInjectionTokens(element) {\n var context = loadLContext(element, false);\n if (!context)\n return [];\n var lView = context.lView;\n var tView = lView[TVIEW];\n var tNode = tView.data[context.nodeIndex];\n var providerTokens = [];\n var startIndex = tNode.providerIndexes & 65535 /* ProvidersStartIndexMask */;\n var endIndex = tNode.directiveEnd;\n for (var i = startIndex; i < endIndex; i++) {\n var value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}", "function getInjectionTokens(element) {\n var context = loadLContext(element, false);\n if (!context)\n return [];\n var lView = context.lView;\n var tView = lView[TVIEW];\n var tNode = tView.data[context.nodeIndex];\n var providerTokens = [];\n var startIndex = tNode.providerIndexes & 65535 /* ProvidersStartIndexMask */;\n var endIndex = tNode.directiveEnd;\n for (var i = startIndex; i < endIndex; i++) {\n var value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}", "function getInjectionTokens(element) {\n var context = loadLContext(element, false);\n if (!context)\n return [];\n var lView = context.lView;\n var tView = lView[TVIEW];\n var tNode = tView.data[context.nodeIndex];\n var providerTokens = [];\n var startIndex = tNode.providerIndexes & 65535 /* ProvidersStartIndexMask */;\n var endIndex = tNode.directiveEnd;\n for (var i = startIndex; i < endIndex; i++) {\n var value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}", "async listSocialAuthTokens(response) {\n const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers['content-type']);\n if ((0, util_1.isCodeInRange)('200', response.httpStatusCode)) {\n const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), 'Array<SocialAuthToken>', '');\n return body;\n }\n if ((0, util_1.isCodeInRange)('403', response.httpStatusCode)) {\n const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), 'Error', '');\n throw new exception_1.ApiException(403, 'Forbidden', body, response.headers);\n }\n if ((0, util_1.isCodeInRange)('404', response.httpStatusCode)) {\n const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), 'Error', '');\n throw new exception_1.ApiException(404, 'Not Found', body, response.headers);\n }\n if ((0, util_1.isCodeInRange)('429', response.httpStatusCode)) {\n const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), 'Error', '');\n throw new exception_1.ApiException(429, 'Too Many Requests', body, response.headers);\n }\n // Work around for missing responses in specification, e.g. for petstore.yaml\n if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {\n const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(await response.body.text(), contentType), 'Array<SocialAuthToken>', '');\n return body;\n }\n throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!', await response.getBodyAsAny(), response.headers);\n }", "function getToken(c) {\n return c >= FIRST_TOKEN && c < FIRST_TOKEN + TOKENS.length ? TOKENS[c - FIRST_TOKEN] : undefined;\n}" ]
[ "0.68495333", "0.6633653", "0.66241413", "0.6487117", "0.64436954", "0.6350066", "0.61923903", "0.6089832", "0.6050164", "0.6036188", "0.5912731", "0.59013", "0.58604354", "0.583489", "0.57921827", "0.57819235", "0.5742525", "0.56838816", "0.5644512", "0.56025696", "0.560115", "0.5559765", "0.5511423", "0.54819137", "0.54693663", "0.5458584", "0.54296446", "0.5407061", "0.5402137", "0.5397037", "0.53930795", "0.53843534", "0.5342336", "0.5297034", "0.5282475", "0.5279805", "0.5260225", "0.5257508", "0.525728", "0.5225772", "0.52120966", "0.51975155", "0.5188017", "0.5185645", "0.51596594", "0.5145718", "0.5135847", "0.51315504", "0.51310116", "0.51153344", "0.5110648", "0.511013", "0.510347", "0.5098931", "0.50970596", "0.50847226", "0.50840837", "0.507214", "0.50623995", "0.5050585", "0.5040564", "0.5024577", "0.50208443", "0.5005864", "0.4997493", "0.49954382", "0.49919042", "0.49856007", "0.49606276", "0.49593228", "0.49576074", "0.4949968", "0.49439138", "0.49395284", "0.4936154", "0.49305815", "0.49294654", "0.49283776", "0.49210593", "0.4914317", "0.49142358", "0.49038574", "0.4896032", "0.48858878", "0.4883351", "0.48713553", "0.48651984", "0.4862037", "0.48593342", "0.48593342", "0.48573428", "0.48476374", "0.4845074", "0.4844244", "0.4841035", "0.48404157", "0.48374063", "0.48374063", "0.48374063", "0.48292604", "0.48251104" ]
0.0
-1
parameter: listName Name of the list element & attrName name of the attribute jerome orio 11.11.2010
function getListAttributeValue(listName,attrName) { return $(listName).options[$(listName).selectedIndex].getAttribute(attrName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sort(list, attrName){\n for(var i=0; i<list.length-1; i++)\n for(var j=i+1; j<list.length; j++){\n var left = list[i],\n right = list[j];\n if (left[attrName] > right[attrName]){\n list[i] = list[j];\n list[j] = left;\n }\n }\n }", "function listString (list) {\n\tresult = \"Number items: \" + list.length + \", type \" + typeof(list) + \" \" ;\n\tfor ( i = 0 ; i < list.length ; i++ ){\n\t\tresult += list[i].getAttribute(\"name\") + \"\\n\" ;\n\t}\n\treturn result ;\n}", "function min(list, attrName){\n var result = list[0][attrName];\n for(var i=1;i<list.length;i++)\n if (result > list[i][attrName])\n result = list[i][attrName];\n return result;\n}", "function setAttribute(elmName,attribute){\r\n for(let key in attribute){\r\n elmName.setAttribute('elmName','attribute[key]');\r\n }\r\n }", "function exactMatchToList(list, attribute){\n return exactMatch(list, attribute).map( (ele) => { return ele['name']})\n}", "function updateAttributeList (list, callback) {\n var {dataset} = state;\n // create attributeitem for each attribute\n const attributeList = document.querySelector(list);\n // clear existing entries\n Array.from(attributeList.children)\n .forEach(i => attributeList.removeChild(i))\n const attributes = [\n ...Object.entries(dataset.attributes.statistics.numeric || {}),\n ...Object.entries(dataset.attributes.statistics.date || {}),\n ...Object.entries(dataset.attributes.statistics.string || {})\n ];\n var i = 0;\n\n attributes\n .map(([fieldName, { statistics: fieldStats }]) => [fieldName, fieldStats]) // grab stats\n\n // TODO: decide how to handle datasets with only one record\n // .filter(([fieldName, fieldStats]) => { // exclude fields with one value\n // return !fieldStats ||\n // !fieldStats.values ||\n // fieldStats.uniqueCount > 1 || // unique count reported as 0 for sampled data\n // fieldStats.values.min !== fieldStats.values.max\n // })\n\n .forEach(async ([fieldName, fieldStats]) => {\n // dataset.attributes.fieldNames\n // .map(fieldName => [fieldName, getDatasetField(fieldName)])\n // .filter(([fieldName, field]) => !field.statistics || field.statistics.values.min !== field.statistics.values.max)\n // .forEach(([fieldName, field]) => {\n const field = getDatasetField(fieldName);\n fieldName = field.name;\n\n // make list entry for attribute\n const item = document.createElement('calcite-dropdown-item');\n item.setAttribute('class', 'attribute');\n item.addEventListener('keydown', (e) => {\n // debugger tabbed\n if (e.key == \"ArrowDown\") {\n if (e.target.nextElementSibling != null) {\n e.target.nextElementSibling.focus();\n }\n } else if (e.key == \"ArrowUp\") {\n if (e.target.previousElementSibling != null) {\n e.target.previousElementSibling.focus();\n }\n } else if (e.key == \"Tab\") {\n var el = e.target;\n if (el.classList.contains(\"attribute\")) {\n if (el !== el.parentElement.lastElementChild) {\n el.parentElement.lastElementChild.focus()\n } else {\n el.blur();\n el.parentElement.parentElement.nextElementSibling.focus();\n }\n }\n // if (e.shiftKey) {\n // el.previousElementSibling.focus();\n // } else {\n // el.nextElementSibling.focus();\n // }\n }\n });\n i++;\n item.innerHTML = await generateLabel(field, fieldStats);\n\n // add icon for field type\n if (field.simpleType === 'numeric') {\n item.iconEnd = 'number';\n } else if (field.simpleType === 'string') {\n item.iconEnd = 'description';\n } else if (field.simpleType === 'date') {\n item.iconEnd = 'calendar';\n }\n\n item.setAttribute('data-field', fieldName);\n\n // add click handler if the field has valid values\n if (fieldStats &&\n (\n !(fieldStats.values.min == null || fieldStats.values.max == null) || // min and max are not null\n (fieldStats.uniqueCount && field.simpleType === 'string') // or the field is type string and there's a uniqueCount\n )\n )\n {\n item.addEventListener('click', () => callback({fieldName}));\n } else {\n // if not, grey out the list item\n item.classList.add('inactive');\n }\n // item.tabIndex = i;\n attributeList.appendChild(item);\n });\n return attributeList;\n }", "function addRawAttr(list, key, value) {\n\t list[key] = value;\n\t }", "function getListItemName(listItem)\r\n{\r\n\treturn listItem.name;\r\n}", "function SetAttribute(elem_name, elem_index, attr_name, attr_value){\r\n var elem = document.getElementsByTagName(elem_name)[elem_index];\r\n elem.setAttribute(attr_name, attr_value);\r\n}", "static get observedAttributes() {\n return ['name', 'listId', 'label', 'options'];\n }", "function selectList(op){\n listSelected = op.getAttribute(\"id\");\n}", "generateAttributeListElement(attr, attrValue, checked) {\n let div = ElementHandler.createElement(\"div\");\n ElementHandler.addClassToElement(div, \"col-12 attributeListDiv\");\n\n // If attribute is custom, evaluate the expression to get example\n if (Object.keys(this.client.customAttributes).includes(attr)) {\n attrValue = CustomVariableHandler.regexTheCustomVariable(\"this.client.attributesAvailable\", this.client.customAttributes[attr]);\n attrValue = eval(attrValue);\n }\n\n const li = this.generateListCheckboxes(attr, \"Ex: \" + attrValue, checked);\n const minMaxDiv = this.createMinMaxDiv(attr);\n\n ElementHandler.appendElementToElement(li, div);\n ElementHandler.appendElementToElement(minMaxDiv, div);\n\n return div;\n }", "function _updateListName(listId, newName) {\n let data = $(`#ListName-${listId}`);\n if (data.length > 0) {\n $(`#ListName-${listId}`).val(newName);\n }\n }", "function onattributename(token) {\n currentTag.attributes.push({\n type: 'mdxAttribute',\n name: slice(token),\n value: null,\n position: position(token)\n })\n }", "function listIdentifier() {\n for (let i = 0; i <= DOM.$lists.length - 1; i++) {\n $(DOM.$lists[i]).attr({\n 'data-list-id': i + 1\n });;\n }\n }", "function _getAsAttributeList(attrs) {\n\t\tvar s = '';\n\t\tfor (var name in attrs) {\n\t\t\ts += ' ' + name + '=\"' + attrs[name] + '\"';\n\t\t}\n\t\treturn s;\n\t}", "listAllAttributes() {\n Object.keys(this.client.attributesAvailable).forEach( attribute => {\n const attributeListElement = this.generateAttributeListElement(\n attribute,\n this.client.attributesAvailable[attribute],\n this.bCheckifAttributeChecked(attribute));\n\n ElementHandler.appendElementToElement(attributeListElement, this.list);\n });\n }", "function populateAttributeList(msg) {\n msg.forEach(function(attr) {\n $('#attributeList').append(\"<li>\" + attr.content.stringValue + \"<input type='checkbox' value='\" + attr.content.stringValue + \"' id='\" + attr.value + \"'></li>\");\n $('#' + attr.value).click(function(e) {\n if ($(this)[0] && $(this)[0].checked) {\n console.log($(this)[0]);\n attributeNameValues.push($(this)[0].defaultValue);\n attributeDataValues.push($(this)[0].id);\n } else if ($(this)[0] && (!$(this)[0].checked)) {\n console.log($(this)[0]);\n attributeNameValues.splice(attributeNameValues.indexOf($(this)[0].defaultValue), 1);\n attributeDataValues.splice(attributeDataValues.indexOf($(this)[0].id), 1);\n }\n })\n });\n }", "function ModelListSyncAttrs() {\n\n}", "function renameAttributes(nameInput_id, second_input_id, removeBtn_id, br1_id, br2_id, isFromList) {\n let nameInput = document.getElementById(nameInput_id);\n let second_input = document.getElementById(second_input_id);\n let removeBtn = document.getElementById(removeBtn_id);\n let br1 = document.getElementById(br1_id);\n let br2 = document.getElementById(br2_id);\n\n // Retrieves the element's index\n let itemNum;\n if (isFromList) {\n itemNum = parseInt(br1_id.replace('br1', ''));\n }\n else {\n itemNum = br1_id.replace('br1', '');\n itemNum = parseInt(itemNum.replace('custom', ''));\n }\n\n removeItem(nameInput, second_input, removeBtn, br1, br2, isFromList);\n\n let numOfItems = isFromList ? numOfSelectedItems : numOfCustomItems;\n\n // Loop through the elements after the current element's index\n for (let i = itemNum + 1; i <= numOfItems; ++i) {\n\n // Find the elements of the ith index\n nameInput = isFromList ? document.getElementById(`item${i}`) : document.getElementById(`item${i}customName`);\n second_input = isFromList ? document.getElementById(`item${i}timeInput`) : document.getElementById(`item${i}calories`);\n removeBtn = isFromList ? document.getElementById(`remove${i}Entry`) : document.getElementById(`remove${i}customEntry`);\n br1 = isFromList ? document.getElementById(`br1${i}`) : document.getElementById(`br1${i}custom`);\n br2 = isFromList ? document.getElementById(`br2${i}`) : document.getElementById(`br2${i}custom`);\n\n // Rename ids and names\n if (isFromList) {\n nameInput.setAttribute('id', `item${i - 1}`);\n nameInput.setAttribute('name', `item${i - 1}`);\n second_input.setAttribute('id', `item${i - 1}timeInput`);\n second_input.setAttribute('name', `item${i - 1}timeInput`);\n removeBtn.setAttribute('id', `remove${i - 1}Entry`);\n br1.setAttribute('id', `br1${i - 1}`);\n br2.setAttribute('id', `br2${i - 1}`);\n }\n else {\n nameInput.setAttribute('id', `item${i - 1}customName`);\n nameInput.setAttribute('name', `item${i - 1}customName`);\n second_input.setAttribute('id', `item${i - 1}calories`);\n second_input.setAttribute('name', `item${i - 1}calories`);\n removeBtn.setAttribute('id', `remove${i - 1}customEntry`);\n br1.setAttribute('id', `br1${i - 1}custom`);\n br2.setAttribute('id', `br2${i - 1}custom`);\n }\n\n // Rename the onClick to the appropriate ith index\n if (isFromList) {\n removeBtn.setAttribute('onClick', `renameAttributes('item${i - 1}',` + \n `'item${i - 1}timeInput',` + \n `'remove${i - 1}Entry',` +\n `'br1${i - 1}',` +\n `'br2${i - 1}',` +\n `true)`);\n\n second_input.setAttribute('onInput', 'validate_time_field(this)');\n }\n else {\n removeBtn.setAttribute('onClick', `renameAttributes('item${i - 1}customName',` + \n `'item${i - 1}calories',` + \n `'remove${i - 1}customEntry',` +\n `'br1${i - 1}custom',` +\n `'br2${i - 1}custom',` +\n `false)`);\n\n second_input.setAttribute('onInput', 'validate_second_field(this)');\n nameInput.setAttribute('onInput', 'validate_name_field(this)');\n }\n }\n}", "function nameToAttributes (list) {\n return list.map(function (driver) {\n const driverFirst = driver.split(' ')[0];\n const driverLast = driver.split(' ')[1];\n return { firstName: driverFirst, lastName: driverLast };\n });\n}", "function GetItemTypeForListName(name) {\n return \"SP.Data.\" + name.charAt(0).toUpperCase() + name.split(\" \").join(\"\").slice(1) + \"ListItem\";\n}", "function getAndRemoveAttr(el,name,removeFromMap){var val;if((val=el.attrsMap[name])!=null){var list=el.attrsList;for(var i=0,l=list.length;i<l;i++){if(list[i].name===name){list.splice(i,1);break;}}}if(removeFromMap){delete el.attrsMap[name];}return val;}", "function getAndRemoveAttr(el,name,removeFromMap){var val;if((val=el.attrsMap[name])!=null){var list=el.attrsList;for(var i=0,l=list.length;i<l;i++){if(list[i].name===name){list.splice(i,1);break;}}}if(removeFromMap){delete el.attrsMap[name];}return val;}", "static get observedAttributes() {return ['name']; }", "static get observedAttributes() {return ['name']; }", "function appendToLi(elementName, property, value) {\r\n const element = createElement(elementName, property, value);\r\n li.appendChild(element);\r\n return element;\r\n }", "function removeItemFromList(listName,targetElement){\n\t\tvar noItems, i, j;\n\t\tnoItems = gapi.hangout.data.getValue(listName) || \"0\";\t\t\t\t\t\t\t\t\t\t// get the list length\n\t\tj = targetElement;\t\n\t\tfor ( i = targetElement; i < noItems; i++) {\n\t\t\tj++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// j in loop always is i + 1\n\t\t\tgapi.hangout.data.setValue(listName + i, gapi.hangout.data.getValue(listName + j));\t\t// save data in pos j into i\n\t\t}\n\t\tgapi.hangout.data.clearValue(listName + j);\t\t\t\t\t\t\t\t\t\t\t\t\t// removes top variable holder\n\t\tgapi.hangout.data.setValue(listName, (parseInt(noItems, 10) - 1).toString());\t\t\t\t// saves list length -1 to shared state\n\t}", "function createList(holderName,nameResult,idResult){\n console.log('creating list inside '+holderName+', name is '+nameResult+'. and id is '+ idResult);\n var listHolder = document.getElementById(holderName); \n \n var newItem = document.createElement('li');\n \n newItem.setAttribute(\"data-ref\",idResult);\n newItem.innerHTML = nameResult; \n \n listHolder.appendChild(newItem); \n app.cancel();\n}", "function Attrs(p) {\n this.toString = function() {\n var res = '';\n for (var p in this.params) {\n res += ' '+p+'=\"'+this.params[p]+'\"';\n }\n return res;\n }\n\n this.set = function(what, val) {\n this.params[what] = val;\n };\n\n this.get = function(what) {\n return this.params[what];\n };\n\n this.params = new Array();\n if (p) {\n _sg(/^\\s*([A-Za-z0-9_]+)=(\\\".*\\\"|\\'.*\\'|[^\\'\\\"]\\S*)/,\n p, function(match) {\n var name = match[1];\n var val = match[2];\n val.replace(/([\\'\\\"])(.*)\\1/g, \"$1\");\n this.params[name] = val;\n return \"\";\n });\n }\n}", "function appendToList(c) {\n var listEl = $(\"<li>\" + c.toUpperCase() + \"</li>\");\n $(listEl).attr(\"class\", \"list-group-item\");\n $(listEl).attr(\"data-value\", c.toUpperCase());\n $(\".list-group\").append(listEl);\n console.log(listEl);\n\n\n}", "function addToList(name) {\n\tvar element = document.createElement(\"option\");\n\telement.textContent = name;\n\telement.id = name+\"_s\"\n\tse_list.appendChild(element);\n}", "getListName() {}", "function create_list(data, htm_attrib, htm_val, text) {\n if (!htm_attrib) {\n htm_attrib = null;\n }\n if (!htm_val) {\n htm_val = null;\n }\n if(!data || !text){\n return false;\n }\n\n\n var obj = data;\n var htm = '';\n $.each(obj, function(key, value) {\n htm += '<li ' + htm_attrib + '=\"' + value[htm_val] + '\" > ' + value[text] + '</li>';\n\n });\n return htm;\n}", "function NamedNodeMap() {}", "function NamedNodeMap() {}", "function NamedNodeMap() {}", "function addList(c){\n var list= $(\"<li>\"+c.toUpperCase()+\"</li>\");\n $(list).attr(\"class\",\"list-Locs-item\");\n $(list).attr(\"data-value\",c.toUpperCase());\n $(\".list-Locs\").append(list);\n}", "function addAttribute(objElement, strAttrName, strAttrValue){\r\n\tvar attrDEF = document.createAttribute(strAttrName);\r\n\tattrDEF.nodeValue = strAttrValue;\r\n\tobjElement.setAttributeNode(attrDEF);\r\n}", "function matchesAttributeInList(a, attributes) {\r\n\t\t\t\t\t\treturn attributes.filter(function (attr) {\r\n\t\t\t\t\t\t\treturn a.name === attr.name && a.value === attr.value;\r\n\t\t\t\t\t\t}).length !== 0;\r\n\t\t\t\t\t}", "getNames() {\n return this.getAttribute(\"name\")\n }", "function hc_namednodemapgetnameditem() {\n var success;\n var doc;\n var elementList;\n var testEmployee;\n var attributes;\n var domesticAttr;\n var attrName;\n doc = load(\"hc_staff\");\n elementList = doc.getElementsByTagName(\"acronym\");\n testEmployee = elementList.item(1);\n attributes = testEmployee.attributes;\n\n domesticAttr = attributes.getNamedItem(\"title\");\n attrName = domesticAttr.nodeName;\n\n assertEqualsAutoCase(\"attribute\", \"nodeName\",\"title\",attrName);\n \n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function NamedNodeMap() {\n}", "function appendToLI(elementName, property, value) {\n const element = createElement(elementName, property, value);\n li.appendChild(element);\n return element;\n }", "function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue)\n{ \n\tvar arrElements = (strTagName == \"*\" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);\n\tvar arrReturnElements = new Array();\n\tvar oAttributeValue = (typeof strAttributeValue != \"undefined\")? new RegExp(\"(^|\\\\s)\" + strAttributeValue + \"(\\\\s|$)\", \"i\") : null;\n\tvar oCurrent; \n\tvar oAttribute; \n\t\n\tfor(var i=0; i<arrElements.length; i++)\n\t{\n\t\toCurrent = arrElements[i];\n\t\toAttribute = oCurrent.getAttribute && oCurrent.getAttribute(strAttributeName);\n\t\tif(typeof oAttribute == \"string\" && oAttribute.length > 0)\n\t\t{ \n\t\t\tif(typeof strAttributeValue == \"undefined\" || (oAttributeValue && oAttributeValue.test(oAttribute)))\n\t\t\t\tarrReturnElements.push(oCurrent); \n\t\t} \n\t} \n\n\treturn arrReturnElements; \n}", "function hc_attrname() {\n var success;\n var doc;\n var addressList;\n var testNode;\n var attributes;\n var streetAttr;\n var strong1;\n var strong2;\n doc = load(\"hc_staff\");\n addressList = doc.getElementsByTagName(\"acronym\");\n testNode = addressList.item(1);\n attributes = testNode.attributes;\n\n streetAttr = attributes.getNamedItem(\"class\");\n strong1 = streetAttr.nodeName;\n\n strong2 = streetAttr.name;\n\n assertEqualsAutoCase(\"attribute\", \"nodeName\",\"class\",strong1);\n assertEqualsAutoCase(\"attribute\", \"name\",\"class\",strong2);\n \n}", "function setList(c){\n var valueArray=c.valueArray,\n nameArray=c.nameArray,\n div=c.listDiv,\n actionChange=c.actionChange,\n stylingFunct=c.stylingFunct,\n defaultValue=c.defaultValue;\n var items=[]; items.length=0;\n var defaultIndex;\n var sampleNode=div.getElementsByClassName('sampleNode')[0].cloneNode(true);\n while (div.firstChild) {\n div.removeChild(div.firstChild);\n }\n div.appendChild(sampleNode);\n if(valueArray.length===0||valueArray.length===1){\n if(c.actionNull) c.actionNull();\n return;\n }\n if (c.actionExist) c.actionExist();\n // var found = 0;\n for(var i=0;i<valueArray.length;i++){\n items.push(div.firstElementChild.cloneNode(true));\n div.appendChild(items[i]);\n var nameSpan=div.getElementsByClassName(\"nameSpan\")[i+1];\n items[i].style.display = \"block\";\n\n //find default value, use substring because of language code\n// if(typeof defaultValue === 'STRING'){\n// if (found === 0 && valueArray[i].substring(0, 2).toUpperCase() === defaultValue.substring(0, 2).toUpperCase()) {\n// defaultIndex = i;\n// found = 1;\n// }\n// else if (valueArray[i].toUpperCase() === defaultValue.toUpperCase()) {\n// defaultIndex = i;\n// found = 1;\n// }\n// }\n// else \n if (valueArray[i] === defaultValue) defaultIndex = i;\n \n if(nameSpan!=null) {\n nameSpan.style.display=\"block\";\n if(div.nodeName===\"SELECT\"){//!!tagName always returns uppercase sting\n nameSpan.text=nameArray[i];\n items[i].value=valueArray[i];\n // items[i].disabled = false;\n }\n else if(div.getElementsByTagName('input')[0]!=null) {\n nameSpan.innerHTML=nameArray[i];\n items[i].getElementsByTagName('input')[0].id=div.id+\"_\"+valueArray[i];\n items[i].getElementsByTagName('input')[0].value=valueArray[i];\n items[i].getElementsByTagName('input')[0].name=div.id;\n //nameSpan.setAttribute('for',trackList.name[i]);\n items[i].getElementsByTagName('label')[0].htmlFor =div.id+\"_\"+valueArray[i];\n //items[i].onclick=actionInput;\n items[i].getElementsByTagName('label')[0].addEventListener(\"click\", actionInput);\n }\n }\n\n //mouseEventStyling\n if(stylingFunct){\n for(var j=0;j<stylingFunct.length;j++){\n if(div.getElementsByTagName(\"label\")) items[i].getElementsByTagName(\"label\")[0].addEventListener(stylingFunct[j].event,stylingFunct[j].funct);\n else items[i].addEventListener(stylingFunct[j].event,stylingFunct[j].funct);\n }\n }\n }\n if(div.nodeName===\"SELECT\") {\n div.onchange=actionSelect;\n if(defaultIndex!=null) div.selectedIndex = defaultIndex+1;//+1 for there is an invisible sample node at the beginning\n else div.selectedIndex = 0; \n actionSelect(); \n }\n else {\n if(defaultIndex!=null) var checkedButton=items[defaultIndex].getElementsByTagName('input')[0]; \n else checkedButton=sampleNode.getElementsByTagName('input')[0]; \n checkedButton.checked = true; \n var item= checkedButton.nextSibling;\n var value= checkedButton.value;\n actionChange(item,value);\n }\n \n\n function actionSelect(){ \n var value=div.options[div.selectedIndex].value;\n var checkedItem=div.options[div.selectedIndex];\n actionChange(checkedItem,value);\n }\n function actionInput(event){\n // if(document.querySelector('input[name=\"'+div.id+'\"]:checked')){\n // var checkedButton=document.querySelector('input[name=\"'+div.id+'\"]:checked');\n var checkedButton=event.target.previousElementSibling;\n var item= checkedButton.nextSibling;\n var value= checkedButton.value;\n actionChange(item,value);\n // }\n }\n}", "function getAndRemoveAttr (\n\t el,\n\t name,\n\t removeFromMap\n\t) {\n\t var val;\n\t if ((val = el.attrsMap[name]) != null) {\n\t var list = el.attrsList;\n\t for (var i = 0, l = list.length; i < l; i++) {\n\t if (list[i].name === name) {\n\t list.splice(i, 1);\n\t break\n\t }\n\t }\n\t }\n\t if (removeFromMap) {\n\t delete el.attrsMap[name];\n\t }\n\t return val\n\t}", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val;\n }", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n\n return val;\n }", "function formatListElement(eleXML) {\n var eleHTML = formatGrid(eleXML, 'list');\n passAttributes(eleXML, eleHTML);\n formatEvents(eleHTML);\n\n return eleHTML;\n}", "constructor(name, el, list) {\n super(name, el, \"\"); //no need to pass template you will remove and change. Use \"\"\n this._list = list;\n this.ordered = false; // another API for setting orderd or unordered\n this._refresh(\"ul\");\n }", "setAttribute(name, value) {\n const found = this.attributes.find(attribute => attribute.name === name);\n if (found) {\n found.value = value;\n } else {\n this.attributes.push({name, value});\n }\n }", "function showAttribute() {\n\tvar idName = prompt(\"Enter the id of the element who's attributes you'd like to return\", \"nameFirstShip\");\n\tvar e = document.getElementById(idName);\n\tvar elemList = \"\";\n\tfor(var element in e) {\n \t var attrib = e.getAttribute(element);\n \t if(attrib != null){\n\t \t\t\telemList = elemList + element + \": \" + attrib + \"\\n\";\n\t \t\t}\n\t}\n\talert(elemList);\t\n}", "function _getAsParameterList(attrs) {\n\t\tvar s = '';\n\t\tfor (var name in attrs) {\n\t\t\ts += '<param name=\"' + name + '\" value=\"' + attrs[name] + '\" />';\n\t\t}\n\t\treturn s;\n\t}", "function getLoopValueFromAttribute(node, obj, itemName, attributeName, cb) {\n var tmp = node.getAttribute(attributeName).split('.'), tokenObjectProperty;\n if (tmp.length > 0 && tmp[0] === itemName) {\n tokenObjectProperty = tmp.slice(1).join('.');\n cb(getGlobalCall(tokenObjectProperty, obj));\n } else {\n // TODO handle this correctly\n console.error('repeat:getLoopValueFromAttribute has problems');\n }\n }", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n\n return val;\n}", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n\n return val;\n}", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n\n return val;\n}", "function getAndRemoveAttr(\n el,\n name,\n removeFromMap\n ) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val\n }", "function processMemberAccordingToName(typeList, mName, tNameOrObj, json, cbForEntry, cbForArray) {\n var isAttr = false,\n presentOrNot = false,\n isArray = false,\n nmName = mName.toString().replace(/^~/, '').replace(/\\?$/, '').replace(/\\*$/, '');;\n if(/^~.*$/.test(mName)) isAttr = true;\n if(/^.*\\?$/.test(mName)) presentOrNot = true;\n else if(/^.*\\*$/.test(mName)) isArray = true;\n var cb = isArray ? cbForArray : cbForEntry;\n\n // Note we should take basic type and defined types into account.\n // And basic type can be treated the same as unknow type(any).\n if(presentOrNot && !json.hasOwnProperty(nmName)) return;\n else if(!isArray && !json.hasOwnProperty(nmName)) \n throw new Error('Cannot find mandentory member `' + nmName + '\\'.');\n\n if(typeof tNameOrObj === 'object') { // inline type\n if(isAttr) throw new Error('BUG: inline type in attr.')\n cb(nmName, tNameOrObj, json[nmName]);\n } else if(Array.isArray(tNameOrObj)) { // enumration\n if(isAttr) throw new Error('BUG: enumeration in attr.')\n if(tNameOrObj.indexOf(json[nmName]) < 0) throw new Error(\n 'Value not in enumeration. Valid values are: ' + \n JSON.stringify(tNameOrObj) + '.'\n );\n cb(nmName, 'enum', json[nmName]);\n } else {\n if(typeList[tNameOrObj]) {\n if(isAttr) throw new Error('BUG: complex type in attr.')\n cb(nmName, typeList[tNameOrObj], json[nmName]);\n } else {\n if(isAttr) cb(nmName, 'attr', json[nmName]);\n else cb(nmName, 'any', json[nmName]);\n }\n }\n}", "function attrFunction() {\n var x = value.apply(this, arguments);\n if (x == null) this.removeAttribute(name);\n else this.setAttribute(name, x);\n }", "function attrFunction() {\n var x = value.apply(this, arguments);\n if (x == null) this.removeAttribute(name);\n else this.setAttribute(name, x);\n }", "function getAndRemoveAttr (\r\n el,\r\n name,\r\n removeFromMap\r\n) {\r\n var val;\r\n if ((val = el.attrsMap[name]) != null) {\r\n var list = el.attrsList;\r\n for (var i = 0, l = list.length; i < l; i++) {\r\n if (list[i].name === name) {\r\n list.splice(i, 1);\r\n break\r\n }\r\n }\r\n }\r\n if (removeFromMap) {\r\n delete el.attrsMap[name];\r\n }\r\n return val\r\n}", "function getElementParameters(jElement) {\n var attr = {};\n $.each(jElement.get(0).attributes, function (v, name) {\n name = name.nodeName || name.name;\n v = jElement.attr(name);\n if (startsWith(name, \"data-param-\")) {\n name = name.substr(11);\n attr[name] = v;\n }\n });\n return attr;\n }", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val;\n}", "function getAndRemoveAttr(el, name, removeFromMap) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val;\n}", "function getAndRemoveAttr(\n el,\n name,\n removeFromMap,\n ) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break;\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val;\n }", "function getName(elem){return elem.name;}", "function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue, contains){\n if (!oElm) return false;\n\tvar arrElements = (strTagName == \"*\" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);\n\tvar arrReturnElements = new Array();\n\tvar oAttributeValue = (typeof strAttributeValue != \"undefined\")? new RegExp(\"(^|\\\\s)\" + strAttributeValue + \"(\\\\s|$)\") : null;\n\tvar oCurrent;\n\tvar oAttribute;\n\tfor(var i=0; i<arrElements.length; i++){\n\t\toCurrent = arrElements[i];\n\t\toAttribute = oCurrent.getAttribute && oCurrent.getAttribute(strAttributeName);\n\t\tif(typeof oAttribute == \"string\" && oAttribute.length > 0){\n\t\t\tif(typeof strAttributeValue == \"undefined\" || ( contains ? (oAttribute.indexOf(strAttributeValue) != -1) : (oAttributeValue && oAttributeValue.test(oAttribute)))){\n\t\t\t\tarrReturnElements.push(oCurrent);\n\t\t\t}\n\t\t}\n\t}\n\treturn arrReturnElements;\n}", "function getAndRemoveAttr (\n el,\n name,\n removeFromMap\n ) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val\n }", "function getAndRemoveAttr (\n el,\n name,\n removeFromMap\n ) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val\n }", "function getAndRemoveAttr (\n el,\n name,\n removeFromMap\n ) {\n var val;\n if ((val = el.attrsMap[name]) != null) {\n var list = el.attrsList;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i].name === name) {\n list.splice(i, 1);\n break\n }\n }\n }\n if (removeFromMap) {\n delete el.attrsMap[name];\n }\n return val\n }", "function addArmyNameToList(name, id){\n var $list = $(\"#listArmy\");\n var element = \"<option class='armyElement' value=\" + id + \">\" + name + \"</option>\";\n $list.append(element);\n\n}", "constructor(ctx, listName) {\n this.ctx = ctx;\n this.name = listName;\n }", "static _attributeNameForProperty(name,options){const attribute=options.attribute;return!1===attribute?void 0:\"string\"===typeof attribute?attribute:\"string\"===typeof name?name.toLowerCase():void 0}", "static get observedAttributes() { return [\"name\"]; }", "function attrFunction() {\n var x = value.apply(this, arguments);\n if (x == null) this.removeAttribute(name);\n else this.setAttribute(name, x);\n }", "function gA(item, att) { return item.getAttribute('data-'+att+''); }", "function gA(item, att) { return item.getAttribute('data-'+att+''); }", "function getElementsByAttribute(oElm, strTagName, strAttributeName, strAttributeValue){\r\n\tvar arrElements = (strTagName == \"*\" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);\r\n\tvar arrReturnElements = new Array();\r\n\tvar oAttributeValue = (typeof strAttributeValue != \"undefined\")? new RegExp(\"(^|\\s)\" + strAttributeValue + \"(\\s|$)\") : null;\r\n\tvar oCurrent;\r\n\tvar oAttribute;\r\n\tfor(var i=0; i<arrElements.length; i++){\r\n\t\toCurrent = arrElements[i];\r\n\t\toAttribute = oCurrent.getAttribute && oCurrent.getAttribute(strAttributeName);\r\n\t\tif(typeof oAttribute == \"string\" && oAttribute.length > 0){\r\n\t\t\tif(typeof strAttributeValue == \"undefined\" || (oAttributeValue && oAttributeValue.test(oAttribute))){\r\n\t\t\t\tarrReturnElements.push(oCurrent);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn arrReturnElements;\r\n}", "function removeFromList(name) {\n var element = document.getElementById(name+\"_s\");\n element.parentNode.removeChild(element);\n}", "function getAttribute( attr, name, params, type ) {\n\n\t\t\tvar array = attrBufferToArray( attr );\n\t\t\tvar res =\n\t\t\t\t\t\"<source id=\\\"\" + name + \"\\\">\" +\n\n\t\t\t\t\t\"<float_array id=\\\"\" + name + \"-array\\\" count=\\\"\" + (array.length) + \"\\\">\" +\n\t\t\t\t\tarray.join( ' ' ) +\n\t\t\t\t\t'</float_array>' +\n\n\t\t\t\t\t'<technique_common>' +\n\t\t\t\t\t\"<accessor source=\\\"#\" + name + \"-array\\\" count=\\\"\" + (Math.floor( array.length / attr.itemSize )) + \"\\\" stride=\\\"\" + (attr.itemSize) + \"\\\">\" +\n\n\t\t\t\t\tparams.map( function (n) { return (\"<param name=\\\"\" + n + \"\\\" type=\\\"\" + type + \"\\\" />\"); } ).join( '' ) +\n\n\t\t\t\t\t'</accessor>' +\n\t\t\t\t\t'</technique_common>' +\n\t\t\t\t\t'</source>';\n\n\t\t\treturn res;\n\n\t\t}", "attr(name: string) {\n const container: EntityAttributesContainer = (this.getModel().getAttributesContainer(): any);\n return container.attr(name);\n }", "editListName() {\n const self = this;\n self.$validator.validateAll().then((result) => {\n if (result) {\n const requestConfig = {};\n requestConfig.params = {\n listName: self.listId,\n };\n self.manageProfileShoppingListService.editListName(requestConfig, self.handleEditListNameResponse, self.handleEditListNameError, this.listName);\n } else {\n this.globals.setFocusByName(this.$el, this.globals.getElementName(this.errors));\n }\n });\n }" ]
[ "0.6432026", "0.5935259", "0.59318656", "0.5926807", "0.59242356", "0.5908996", "0.5741406", "0.56504714", "0.56498724", "0.5624665", "0.5615267", "0.5597061", "0.55547196", "0.55153906", "0.54967004", "0.5494294", "0.5491306", "0.5460358", "0.54411495", "0.54212165", "0.5397475", "0.5353861", "0.5344502", "0.5344502", "0.5343842", "0.5343842", "0.5332956", "0.5315232", "0.5298349", "0.52961653", "0.5278886", "0.52653235", "0.52652466", "0.52639437", "0.52634555", "0.52634555", "0.52634555", "0.5253214", "0.52507627", "0.5241631", "0.5231408", "0.52192706", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.52060074", "0.5204838", "0.51961267", "0.5189202", "0.5175588", "0.51598006", "0.51414436", "0.51337975", "0.5129697", "0.51291263", "0.5128448", "0.51269156", "0.5124904", "0.5110883", "0.51098365", "0.51098365", "0.51098365", "0.5109077", "0.509777", "0.5094312", "0.5094312", "0.50918895", "0.5089716", "0.50883704", "0.50883704", "0.50875354", "0.50870425", "0.50802714", "0.5076686", "0.5076686", "0.5076686", "0.5073195", "0.50694656", "0.50677943", "0.5067", "0.506519", "0.5058349", "0.5058349", "0.50545317", "0.50374335", "0.50358653", "0.5035806", "0.5027734" ]
0.75287646
0
========================================================================= LOCAL LOGIN ============================================================= =========================================================================
function checkUser(user){ console.log('check User called'); console.log(user); User.findOne({ 'email' : user.email }, function(err, usr) { if(err) console.log('Check user fetch record failed : '+err); else { console.log('Checking user status'); if(usr.status==false){ console.log('removing the user'); User.remove({'email': usr.email, 'status':false},function(err,doc){ if(err) console.log('Remove User id failed during cleanup') else{ console.log('Remove status for user:'+ usr.email+': '+doc); } }) } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function login() {}", "function localLogin() {\n Message.loading();\n User.login({}, LoginModel.form).$promise\n .then(function(userWrapper) {\n Message.hide();\n console.log(\"---------- userWrapper ----------\");\n console.log(userWrapper);\n AppStorage.user = userWrapper.user;\n AppStorage.token = userWrapper.token;\n AppStorage.isFirstTime = false;\n U.goToState('Main.MainTab.PostList.PostListRecent', null, 'forward');\n })\n .catch(function(err) {\n console.log(\"---------- err ----------\");\n console.log(err);\n if (err.status === 403) {\n return Message.alert('로그인 알림', '비밀번호/이메일이 틀렸습니다. 다시 입력해주세요');\n } else {\n return Message.alert();\n }\n });\n }", "initLogin() {\n this.send({\n id: 10000,\n magic: '0x1234',\n method: 'global.login',\n params: {\n clientType: '',\n ipAddr: '(null)',\n loginType: 'Direct',\n password: '',\n userName: this.dahua_username,\n },\n session: 0,\n });\n }", "function doLogin(userName, password){\n\n}", "function main() {\r\n // user.userLogin(\"sporkina@hotmail.com\", \"sporks\");\r\n}", "function login() {\n var user = null;\n command_line.prompt('login:');\n // don't stor logins in history\n if (settings.history) {\n command_line.history().disable();\n }\n command_line.commands(function(command) {\n try {\n echo_command(command);\n if (!user) {\n user = command;\n command_line.prompt('password:');\n command_line.mask(true);\n } else {\n command_line.mask(false);\n self.pause();\n if (typeof settings.login != 'function') {\n throw \"Value of login property must be a function\";\n }\n settings.login(user, command, function(user_data) {\n if (user_data) {\n var name = settings.name;\n name = (name ? '_' + name : '');\n $.Storage.set('token' + name, user_data);\n $.Storage.set('login' + name, user);\n //restore commands and run interpreter\n command_line.commands(commands);\n // move this to one function init.\n initialize();\n } else {\n self.error('Wrong password try again');\n command_line.prompt('login:');\n user = null;\n }\n self.resume();\n if (settings.history) {\n command_line.history().enable();\n }\n });\n }\n } catch (e) {\n display_exception(e, 'LOGIN', self);\n throw e;\n }\n });\n }", "function login() {\n if (ctrl.remember) {\n $window.localStorage.setItem('ldap_username', ctrl.username);\n $window.localStorage.setItem('ldap_password', ctrl.password);\n }\n ctrl.loading = true;\n ipcRenderer.send('do-log-in', ctrl.username, ctrl.password);\n }", "function beginLogin() {\n\treturn { type: types.MANUAL_LOGIN_USER };\n}", "async login() {}", "function u_login(ctx, email, password, uh, permanent) {\n ctx.result = u_login2;\n ctx.permanent = permanent;\n api_getsid(ctx, email, prepare_key_pw(password), uh);\n}", "login(pwd){\n\t\tthis.activeConnection.sendToServer({\n\t\t\tcommand: \"LOGIN\",\n\t\t\tparams: pwd\n\t\t});\n\t}", "function login0(){\n\treturn \"/uadmin\";\n}", "function onLogin() {}", "function login() {\n User.login(self.user, handleLogin);\n }", "function dummyLogin() {\n// loginAs( dummyFilters );\n loginAs(memberSearchFilters);\n }", "function login() {\n\n}", "loginBasic() {\n this.open();\n this.login('robert.hayes+4@auticon.us', 'PotterMalfoy22');\n this.clickLoginButton();\n }", "function u_checklogin(ctx, force, passwordkey, invitecode, invitename, uh) {\n if (u_sid = u_storage.sid) {\n api_setsid(u_sid);\n u_checklogin3(ctx);\n } else {\n if (!force) ctx.checkloginresult(ctx, false);\n else {\n u_logout();\n api_create_u_k();\n ctx.createanonuserresult = u_checklogin2;\n createanonuser(ctx, passwordkey, invitecode, invitename, uh);\n }\n }\n}", "function login() {\n // We give username and password to log the user in\n // In case there is something wrong with the credentials\n // we use the setError to display it\n // If the user logs in successfully then the loginCallback is called.\n setLoading(true);\n databaseLogin(username, password, loginCallback, showError);\n }", "function login() {\n var loginWin = createLoginWin();\n loginWin.open();\n }", "function authLogin() {\n\t\tpopup(tools.urlLogin, 'BOM - Login', 302, 320);\n\t\teventer(messageEvent, authLoginSuccess, false);\n\t}", "static async getLogin(ctx) {\n const context = ctx.flash.formdata || {};\n\n // user=email querystring?\n if (ctx.request.query.user) context.username = ctx.request.query.user;\n\n if (context.username) {\n // if username set & user has access to more than one org'n, show list of them\n const [ usr ] = await User.getBy('email', context.username);\n if (usr && usr.databases.length>1) context.databases = usr.databases;\n }\n\n await ctx.render('login', context);\n }", "function me_login(page) {\n me_ip({run:me_login_,page:page});\n}", "function testLogin() {\n\tif (!loginHash || !loginSalt) { // This shouldn't be called without login hash and/or salt\n\t\tauthenticationTitle.html(\"Something happened\");\n\t\tthrow \"The account storage container for this user has not been set up\";\n\t}\n\n\tif (os.hash(passwordInputBox.val() + loginSalt + \"\") + \"\" === loginHash + \"\") { // Compute hash from password + salt, compare to stored hash\n\t\tlockScreen.addClass(\"lockscreenopened hidden\"); // Hide lockscreen\n\t\tinitialiseShellUX(); // Initialise rest of the shell\n\n\t\tpasswordInputBox.val(\"\"); // Clear password box as a basic security precaution\n\n\t\twallpaper.on(\"mousedown\", function(){ // If you click wallpaper, every window will unfocus\n\t\t\tunfocusWindows();\n\t\t});\n\t} else {\n\t\tauthenticationTitle.html(\"Incorrect Password\"); // Incorrect password!!\n\t\tauthenticationTitle.delay(1500).html(\"Hey, User!\"); // Reset this\n\t}\n}", "function onHotmailLogin() {\r\n\t\tvar session = WL.getSession();\r\n\t\tif (session) {\r\n\t\t\tgetHotmailUser(session);\r\n\t\t}\r\n\t}", "function goLogin(obj){\r\n\t//mark inactive on server\r\n\tcheckLogout();\r\n\r\n\t//display home controllers\r\n\tmain();\r\n}", "function detectLogin()\n {\n $.when(api.whoami()).done(function(user)\n {\n // update the UI to reflect the currently logged in user.\n topnav.update(user.firstName + ' ' + user.lastName);\n }).fail(function()\n {\n topnav.clear();\n });\n }", "loginStart() {\n\n }", "function doBasicLoginAuth(){\n\t\t\n\t\t$__loginKey = localStorage.getItem(\"loginKey\");\n\t\t$__identification = localStorage.getItem(\"identification\");\n\t\t\n\t\tif($__loginKey == null || $__loginKey == \"\" || $__identification == null || $__identification == \"\"){\n\t\t\t\n\t\t\twindow.location = \"do_Login.html\";\n\t\t\t\n\t\t}else{\n\t\t\t\n\t\t\twindow.location = \"main_panel.html\";\n\t\t\t\n\t\t}\t\n\t\t\n\t}", "function userLogin() {\n /**-----------------------------------------------------------------------*/\n /** Get the user's name and password as entered into the login form: */\n /**-----------------------------------------------------------------------*/\n var name = document.querySelector('[name=\"username\"]').value;\n var password = document.querySelector('[name=\"password\"]').value;\n\n /**-----------------------------------------------------------------------*/\n /** Check if the user is authorized to use the application: */\n /**-----------------------------------------------------------------------*/\n authenticateUser(name, password, userIsAuthorised);\n}", "function send_login(user,pw){\n\t$(\"#login_node\").remove();\t\n\tif((user==\"\" || pw==\"\") || (user==\"nongoodlogin\" && pw==\"nongoodlogin\")){\t\n\t\t// empty form send\n\t\tadd_login(\"please enter a user name and a password\");\n\t} else {\n\t\t// store to reconnect without prompt\n\t\tg_user=user;\n\t\tg_pw=pw;\n\n\t\t// hash the password, combine it with the challange and submit the hash of the result\n\t\tvar hash_pw = CryptoJS.MD5(pw).toString(CryptoJS.enc.Hex);\n\t\tvar hash = CryptoJS.MD5(hash_pw+prelogin).toString(CryptoJS.enc.Hex);\n\t\t//console.log(\"received pw=\"+pw+\" as hash=\"+hash_pw+\" and prelogin=\"+prelogin+\" and generated hash=\"+hash);\n\t\tvar cmd_data = { \"cmd\":\"login\", \"login\":user, \"client_pw\":hash, \"alarm_view\":0};\n\t\tcon.send(JSON.stringify(cmd_data)); \n\t\t$(\"#welcome_loading\").remove();\n\t\n\t\t// vertically and horizontally center box\n\t\tvar l=$(\"<div></div>\");\n\t\tl.addClass(\"center_hor\").addClass(\"center\").attr(\"id\",\"welcome_loading\");\n\t\tl.insertAfter(\"#clients\");\n\t\tl.append(get_loading(\"wli\",\"Login in...\"));\n\t};\n}", "function genericLogin(serv) {\n ref.authWithOAuthPopup(serv, function (error, authData) {\n if (error) {\n console.log('Log in to ' + serv + ' Failed', error);\n lc.message = 'Log in to ' + serv + ' Failed ' + error;\n } else {\n console.log('Logged in to ' + serv);\n lc.message = 'Logged in to ' + serv;\n lc.loginHide = true;\n lc.loginHideGoogle = true;\n lc.loginData = authData;\n brandon(authData);\n lc.loginName = \"Logout\";\n }\n });\n }", "start() {\n server.loginConnection(this.connection, this.user);\n this.connection.send('login', { id: this.user, name: this.name, token: this.token});\n }", "function login() {\n self.isLoggedIn = true;\n }", "function login(network){\n\thello.login(network, { scope: \"\" }, function(e){\n\t\tconsole.info(\"callback\",e);\n\t\tupdateAuthStatus();\n\t});\n}", "function gFuncInitialSession(strUniqueID, strPassword)\n{\n\treturn BJCASecClt.InitialSession(strUniqueID, strPassword);\n}", "function login(name) {\n console.log('logging in as', name);\n\n var msg = {\n type: 'login',\n from: name\n }\n conn.send(JSON.stringify(msg));\n}", "function check_login_status(){\r\n\t//if not login, then check login save info\r\n\tif(CommInfo.is_login)\r\n\t{\r\n\t\tlogin_init();\r\n\t}\r\n}", "function login(){\n inquirer.prompt([\n {\n type: \"input\",\n message: \"Login\",\n name: \"username\"\n },\n {\n type: \"password\",\n message: \"Password\",\n name: \"password\"\n }\n ]).then(function(res) {\n // If the inquirerResponse confirms, we displays the inquirerResponse's username and pokemon from the answers.\n if (res.username === keys.login && res.password === keys.password) {\n console.log(\"\\nWelcome \",res.username,\"\\n\");\n let manager = require(\"./bb_manager.js\");\n }\n else {\n console.log(\"\\nInvalid credentials. Please try again later.\\n\");\n }\n });\n }", "function login_from_params(usr, pwd) {\n if (isMobileDevice()) {\n setUnsupportedDevice();\n } else {\n USER_NAME = usr;\n USER_PWD = pwd;\n send(json_get_login_message(usr, pwd));\n }\n}", "function loginClick() {\n\t username = $(\"#userName\").val();\n\t password = $(\"#password\").val();\n\t getRememberMestatus();\n\t var params = {\"username\":username,\"password\":password};\n\t var callerId = \"login\";\n\t var url = \"/logon\";\n\t reqManager.sendPost(callerId, url, params, loginSuccessHandler, loginErrorHandler, null);\n\t}", "function login(data,response)\n{\n var q = querystring.parse(data);\n var user = q[USERID];\n var pwd = q[PASSWD];\n login0(user,pwd,response);\n}", "async localStrategy(username, password, done) {\n try {\n const user = await self.verifyLogin(username, password);\n\n return done(null, user);\n } catch (err) {\n return done(err);\n }\n }", "function logIn(){\n loggedIn = true;\n\tloginPlayer();\n}", "function handleLogin() {\r\n if ((!assetEmpty(email) && !assetEmpty(password))\r\n && assertEquals(email, registeredState.email)\r\n && assertEquals(password, registeredState.password)\r\n ) {\r\n setPassword('');\r\n global.nameLogin = registeredState.name;\r\n navigation.replace('BottomStack');\r\n } else {\r\n Alert.alert(\r\n 'Não foi possível entrar:',\r\n 'E-mail/senha incorretos!'\r\n );\r\n }\r\n }", "function onChangeLogin() {}", "@rpc.command('login')\n async login(client, {email, password})\n {\n let player;\n\n try {\n player = await this.players.verify(email, password);\n }\n catch (err) {\n if (!(err instanceof PlayerStoreError)) {\n throw err;\n }\n\n // Bad email or password\n client.send('login', {status: false, message: err.message});\n client.token = null;\n return;\n }\n\n this.log.info('player %s posted valid creds, sending token', email);\n\n // update remote's token and stash here\n const token = this.players.generateToken(player);\n client.send('token', token);\n client.token = token;\n\n // Update remotes login state\n const message = 'login successful';\n client.send('login', {status: true, message});\n }", "function sfuLogin() {\n\t// member varables\n\tthis.m_isLogin = false;\n\tthis.m_studentName = \"\";\n\tthis.m_studentid = \"\";\n\tthis.m_computerID = \"\";\n this.m_password = \"\";\n}", "login (userField, passField)\n {\n this.loginLogic(document.getElementById(userField).value, document.getElementById(passField).value);\n }", "function processLogin() {\n\t\tif (ui.btnLogin.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar dta = {\n\t\t\tuser: ui.login.get(),\n\t\t\tpass: ui.password.get()\n\t\t};\n\n\t\tif (!dta.user.match(/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\\.)+([a-zA-Z0-9]{2,4})+$/)) {\n\t\t\tui.login.error(lang.login.errors.wrongMail).focus().select();\n\t\t\treturn;\n\t\t}\n\n\t\tif (!dta.pass) {\n\t\t\tui.password.error(lang.login.errors.noPass).focus();\n\t\t\treturn;\n\t\t}\n\n\t\tui.login.normal();\n\t\tui.password.normal();\n\t\tui.btnLogin.disable();\n\n\t\tapi('post', '/user/login', dta)\n\t\t\t\t.then(function (result) {\n\t\t\t\t\trequire(['central'], function (central) {\n\t\t\t\t\t\tlocalStorage.setItem('cmsLastLogin', dta.user);\n\t\t\t\t\t\tlocalStorage.setItem('cmsUserToken', result.token);\n\t\t\t\t\t\tlocalStorage.setItem('cmsTokenExpires', Date.now() + 28800000);\n\t\t\t\t\t\tui.root.hide();\n\t\t\t\t\t\tcentral.set(result.payload);\n\t\t\t\t\t\tcentral.set('token', result.token);\n\t\t\t\t\t});\n\t\t\t\t})\n\t\t\t\t.catch(function (error) {\n\t\t\t\t\tui.btnLogin.enable();\n\n\t\t\t\t\tswitch (error.code) {\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\tui.login.error(lang.login.errors.unknownMail).focus().select();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\tui.password.error(lang.login.errors.wrongPass).focus().select();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\tloginLocked(error.data.remaining);\n\t\t\t\t\t\t\tui.password.error(lang.login.errors.accountLocked.replace(/%t/, error.data.remaining));\n\t\t\t\t\t}\n\t\t\t\t}).done();\n\t\t//ui.password.error('Wrong password!').focus().select();\n\t}", "function getCurrentLoggedInUserAccount() {\n\t//access to the db\n\t//confirm they have proper credentials\n\treturn \"Kimberly\";\n}", "function wbLogin(){\n\tthis.submitFrm = _wbLoginSubmitFrm\n\tthis.changePage = _wbLoginChangePage\n\tthis.selectCurrLang = _wbLoginSelectCurrLang\n\tthis.init = _wbLoginInit\n}", "smsLogin() {\n window.AccountKit.login(\n 'PHONE', \n {countryCode: \"+91\", phoneNumber: \"7838334284\"}, // will use default values if not specified\n this.loginCallback\n );\n }", "login(username, unencrypt_password) {\n return this.authDB.login(username, unencrypt_password, \"patient\");\n }", "function login() {\n var userName = document.getElementById(\"username\");\n var password = document.getElementById(\"password\");\n\n var logonForm = document.getElementById(\"logonForm\");\n logonForm.setAttribute(\"class\", \"hiddenPage\");\n\n request.userName = userName.value;\n\n // the password has not been protected / encyrpted - please change if required.\n request.password = password.value;\n\n // retry the call to the Epicor API\n makeServiceRequest();\n }", "function onCreateLogin (data) {\n result = Fileloader.createLogin(data);\n\n util.log('Player is creating account: ' + this.id + ' LOGIN: ' + data.name + ' PASS: ' + data.pass);\n util.log('Login Attempt Result Message: ' + result.result);\n socket.to(this.id).emit('create login response', {id: this.id, result: result.result})\n\n}", "function processLogin( body ) {\n\tvar user, pw;\n\tvar indx = -1;\n\t\n\tsessionID = '';\n\t\n\t// sanity checks, in case someone is hitting this API with weird params - like using curl to break it\n\tif( typeof body.username == undefined) {\t\t\t\t// no username field\n\t\textendedfailure = \" missing first argument!\";\n\t\tconsole.log(extendedfailure);\t\t\t\t\t\t// don't tell them much in case they are trying to determine field names\n\t\treturn false;\n\t}\n\tif( typeof body.password == undefined ) {\t\t\t\t// no password field\n\t\textendedfailure = \" missing 2nd paramter!\";\n\t\tconsole.log(extendedfailure);\n\t\treturn false;\n\t}\n\tconsole.log(\"body.username = \" + body.username);\n\tconsole.log(\"body.password = \" + body.password);\n\t\n\tuser = body.username.trim();\t\t\t\t\t\t// extract the fields we want - remove leading and following spaces\n\tpw = body.password.trim();\n\t\n\tindx = findUser(user);\t\t\t\t\t\t\t\t// find the index of this username in the storage\n\tconsole.log(\"indx = \" + indx);\n\tconsole.log(\" at that point: \" + JSON.stringify(registeredUsers[indx]));\n\t\n\tif( indx === -1 ) {\t\t\t\t\t\t\t\t\t// username not found in array\n\t\textendedfailure = \" invalid username\";\n\t\tconsole.log(extendedfailure);\n\t\treturn false;\n\t}\n\tif( checkPw(indx, pw) === false ) {\t\t\t\t\t// check the input password with the stored hashed password for this user\n\t\textendedfailure = \" wrong password\";\n\t\tconsole.log(extendedfailure);\n\t\treturn false;\n\t}\n\t\n\t// if they get here, they matched username and password\n\tconsole.log (\"username : \" + user + \" successfully logged in!\");\n\t\n\t// use a limited time sessionID for this user\n\tsessionID = (Math.random()*100).toString(36).replace('.','');\n\tconsole.log(\"session id = \" + sessionID);\n\t\n\t// save the current username in this case\n\tusername = user;\n\t\n\t// time this sessionID out after 5 minutes, forcing them to log in again if authenticated function is called\n\tsetTimeout( clearSessionID, 5*60*1000 );\n\treturn true;\n}", "onLocalLogin() {\n let accessToken = localStorage.getItem('access_token');\n let refreshToken = localStorage.getItem('refresh_token');\n let user = JSON.parse(localStorage.getItem('user'));\n\n if (accessToken && refreshToken && user) {\n this.saveTokens({access_token: accessToken, refresh_token: refreshToken});\n this.loginSuccess(user, true);\n }\n }", "function _check_username_and_password(){\n try{\n if(_selected_host_index >= _new_host_list.length){//if check finish all host, but still can't pass verified, then return false;'\n _selected_host_index = 0;\n //if fail to login all server, then\n var db = Titanium.Database.open(self.get_db_name());\n var my_table_name = \"my_manager_user\";\n var rows = db.execute('SELECT type,name FROM sqlite_master WHERE type=? AND name=? LIMIT 1', 'table', my_table_name);\n var manager_row_count = rows.getRowCount(); \n if(manager_row_count > 0){\n db.execute('delete from '+my_table_name);// login fail, then remove all users from manager_user table, user can't login evenif in offliine status'\n db.execute('delete from sqlite_sequence where name=\\''+my_table_name+'\\'');//set sequence number is 0\n }\n rows.close();\n db.close(); \n self.hide_indicator();\n self.show_message(L('message_login_failure')); \n //focus on username field when open login page¬\n if((win.children[0] != undefined) && (win.children[0] != null)){\n win.children[0].focus();\n } \n return;\n }\n var tempURL = _new_host_list[_selected_host_index]+self.base_backend_url;\n var xhr = null;\n if(self.set_enable_keep_alive){\n xhr = Ti.Network.createHTTPClient({\n enableKeepAlive:false\n });\n }else{\n xhr = Ti.Network.createHTTPClient();\n }\n xhr.onload = function(){\n try{\n if((xhr.readyState === 4)&&(this.status === 200)){ \n if(this.responseText === null){//return false in backend's beforeAction'\n self.hide_indicator();\n self.show_message(L('message_login_failure')); \n return; \n }\n if(this.responseText === '[]'){ \n _selected_host_index++;\n _check_username_and_password();\n }else{ \n var result = JSON.parse(this.responseText);\n if(!result.access_allowed){\n _selected_host_index++;\n _check_username_and_password(); \n }else{\n var db = null;\n if((self.get_host() != _new_host_list[_selected_host_index])){\n db = Titanium.Database.open(self.get_db_name()); \n db.remove();\n db = Titanium.Database.open(self.get_db_name()); \n db.execute('BEGIN');\n db.execute('CREATE TABLE IF NOT EXISTS my_login_info('+\n 'id INTEGER,'+\n 'name TEXT,'+\n 'value TEXT)');\n _init_all_tables(db);\n db.execute('COMMIT');\n db.close();\n }\n db = Titanium.Database.open(self.get_db_name());\n var data_rows = db.execute('SELECT * FROM my_frontend_config_setting WHERE name=?','host');\n if((data_rows != null) && (data_rows.getRowCount() > 0)){\n db.execute('UPDATE my_frontend_config_setting SET value=? WHERE name=?',\n _new_host_list[_selected_host_index],\n 'host' \n ); \n }else{\n db.execute('INSERT INTO my_frontend_config_setting (name,value)VALUES(?,?)',\n 'host',_new_host_list[_selected_host_index]\n );\n } \n var selected_host_media_index = 0;\n for(var i=0,j=self.host_list.length;i<j;i++){ \n if(self.host_list[i] == _new_host_list[_selected_host_index]){\n selected_host_media_index = i;\n break;\n }\n } \n \n var data_rows2 = db.execute('SELECT * FROM my_frontend_config_setting WHERE name=?','host_media');\n if((data_rows2 != null) && (data_rows2.getRowCount() > 0)){\n db.execute('UPDATE my_frontend_config_setting SET value=? WHERE name=?',\n self.host_media_list[selected_host_media_index],\n 'host_media' \n ); \n }else{\n db.execute('INSERT INTO my_frontend_config_setting (name,value)VALUES(?,?)',\n 'host_media',self.host_media_list[selected_host_media_index]\n );\n } \n data_rows2.close();\n db.close(); \n \n _selected_host_index++; \n _refresh_library_tables(this.responseText); \n //self.hide_indicator();\n db = Titanium.Database.open(self.get_db_name());\n var rows = db.execute('SELECT * FROM my_manager_user WHERE username=? and password=? and status_code=1',(_user_name).toLowerCase(),_sha1_password);\n var rows_count = rows.getRowCount();\n\n if(rows_count > 0){\n self.update_message('Loading My Calendar ...');\n Ti.App.Properties.setString('current_login_user_id',rows.fieldByName('id'));\n Ti.App.Properties.setString('current_login_user_name',rows.fieldByName('display_name'));\n Ti.App.Properties.setString('current_company_id',rows.fieldByName('company_id')); \n _user_id = rows.fieldByName('id');\n _company_id = rows.fieldByName('company_id'); \n rows.close();\n \n //set properties: active_material_location\n rows = db.execute('SELECT * FROM my_company WHERE id=?',_company_id);\n if(rows.isValidRow()){\n Ti.App.Properties.setString('current_company_active_material_location',rows.fieldByName('active_material_location')); \n }\n rows.close();\n \n rows = db.execute('SELECT * FROM my_login_info where id=1');\n if((rows.getRowCount() > 0) && (rows.isValidRow())){\n db.execute('UPDATE my_login_info SET name=?,value=? WHERE id=1','username',_user_name);\n }else{\n db.execute('INSERT INTO my_login_info (id,name,value)VALUES(?,?,?)',1,'username',_user_name);\n }\n rows.close();\n //SAVE LOGIN USER STATUS,SET STATUS IS 1,THEN IF CRASH OR SOMETHING ,CAN LOGIN AUTO\n db.execute('UPDATE my_manager_user SET local_login_status=1 WHERE id=?',_user_id);\n db.close();\n if(Ti.Network.online){\n _download_basic_table_data();\n _download_my_jobs(_first_login);\n }else{\n self.hide_indicator();\n if(_first_login){\n if(_tab_group_obj == undefined || _tab_group_obj == null){\n \n }else{\n //_tab_group_obj.open();\n }\n win.close({\n transition:Titanium.UI.iPhone.AnimationStyle.CURL_UP\n });\n }else{\n win.close({\n transition:Titanium.UI.iPhone.AnimationStyle.CURL_UP\n });\n Ti.App.fireEvent('pop_gps_turn_off_alert');\n } \n }\n }else{ \n rows.close();\n db.close();\n self.hide_indicator();\n self.show_message(L('message_login_failure'));\n } \n }\n }\n }else{\n _selected_host_index++;\n _check_username_and_password();\n }\n }catch(e){\n _selected_host_index++;\n _check_username_and_password(); \n }\n };\n xhr.onerror = function(e){\n _selected_host_index++;\n _check_username_and_password();\n }; \n xhr.setTimeout(self.default_time_out);\n xhr.open('POST',tempURL+'update',false);\n xhr.send({\n 'type':'verify_login',\n 'username':(_user_name).toLowerCase(),\n 'password':_sha1_password,\n 'refresh_num':(self.get_host() != _new_host_list[_selected_host_index])?0:_current_basic_table_version, \n 'app_security_session':self.is_simulator()?self.default_udid:Titanium.Platform.id,\n 'device_platform':Ti.Platform.name,\n 'device_model':Ti.Platform.model,\n 'device_version':Ti.Platform.version,\n 'device_type':self.default_device_type, \n 'app_version_increment':self.version_increment,\n 'app_version':self.version,\n 'app_platform':self.get_platform_info()\n }); \n }catch(err){\n self.process_simple_error_message(err,window_source+' - _check_username_and_password');\n return;\n } \n }", "_eventLogin() {\n console.info('Successfully logged in! Initializing wiki listeners...');\n this._readLine();\n }", "function userGet(data) {\n data = data.split(\"Logged in user name: \").pop();\n data = data.substr(0, data.indexOf('\\n'));\n data = data.substr(0, data.indexOf('\\r'));\n console.log('Got username on startup')\n console.log(data)\n if(data !== undefined){\n encrypt(data);\n messaging(setup,'userSet', true, '')\n } else {\n messaging(setup,'userSet', false, '')\n }\n return\n}", "function login(){\n\treturn function(){\n\t\t/* Dim the background */\n\t\ttoggle_background(true);\n\t\t\n\t\t/* Present popup screen */\n\t\tdocument.getElementById(\"popup\").style.display = \"\";\n\n\t\t/* Present the login */\n\t\tdocument.getElementById(\"login\").style.display = \"\";\n\t}\n}", "function handleLogin() {\n\t// If the user is logging in for the first time...\n\tif (okta.token.hasTokensInUrl()) {\n\t\tokta.token.parseTokensFromUrl(\n\t\tfunction success(res) {\n\t\t\t// Save the tokens for later use, e.g. if the page gets refreshed:\n\t\t\tokta.tokenManager.add(\"accessToken\", res[0]);\n\t\t\tokta.tokenManager.add(\"idToken\", res[1]);\n\t\t\t// Redirect to this user's dedicated room URL.\n\t\t\twindow.location = getRoomURL();\n\t\t\t}, function error(err) {\n\t\t\talert(\"We weren't able to log you in, something horrible must have happened. Please refresh the page.\");\n\t\t}\n\t\t);\n\t} \n\t// If the user is alrdy logged in...\n\telse {\n\t\tokta.session.get(function(res) {\n\t\t\tif (res.status === \"ACTIVE\") {\n\t\t\t\t// If the user is logged in on the home page, redirect to their room page.\n\t\t\t\tif (!hasQueryString()) \n\t\t\t\t\twindow.location = getRoomURL();\n\t\t\t\telse\n\t\t\t\t\treturn enableVideo();\n\t\t\t}\n\t\t\t// If we get here, the user is not logged in.\n\t\t\t// If there's a querystring in the URL, it means this person is in a\n\t\t\t// \"room\" so we should display our passive login notice. Otherwise,\n\t\t\t// we'll prompt them for login immediately.\n\t\t\tif (hasQueryString()) {\n\t\t\t\tdocument.getElementById(\"login\").style.display = \"block\";\n\t\t\t \tenableVideo();\n\t\t\t} else {\n\t\t\t\tshowLogin();\n\t\t\t}\n\t\t});\n\t}\n}", "function getLogin(uri, usernameInputIndex, passwordInputIndex) {\r\n\r\n\tvar allInputs = document.getElementsByTagName(\"input\");\r\n\r\n\tvar usernameField = allInputs[usernameInputIndex];\r\n\r\n\tvar pwField = allInputs[passwordInputIndex];\r\n\r\n\twaitOrRestoreFields(usernameField, pwField, false);\r\n\r\n\t\r\n\r\n\tvar hostUri = location.hostname;\r\n\r\n\tvar firstAttempt = retrievals == 0;\r\n\r\n\tvar submitData = \"submit=This+login+didn%27t+work&num=\" + retrievals +\r\n\r\n\t\t\"&site=\" + encodeURI(location.hostname);\r\n\r\n\tGM_xmlhttpRequest({\r\n\r\n\t\tmethod: firstAttempt ? \"get\" : \"post\",\r\n\r\n\t\theaders: firstAttempt ? null :\r\n\r\n\t\t\t{\"Content-type\": \"application/x-www-form-urlencoded\"},\r\n\r\n\t\tdata: firstAttempt ? null : submitData,\r\n\r\n\t\turl: firstAttempt ? uri : bmnView,\r\n\r\n\t\tonload: function(responseDetails) {\r\n\r\nif (responseDetails.status == 200) {\r\n\r\n\t\t\twaitOrRestoreFields(usernameField, pwField, true); \r\n\r\n\t\t\tdecoded = decodeit(responseDetails.responseText);\r\n\r\n\t\t\tvar doc = textToXml(decoded);\r\n\r\n\t\t\t if (!(doc && doc.documentElement)) {\r\n\r\n\t\t\t return Errors.say(Errors.malformedResponse);\r\n\r\n\t\t\t }\r\n\r\n\t\t\t\r\n\r\n\t\t\tvar accountInfo = doc.documentElement.getElementsByTagName(\"td\")[0];\r\n\r\n\t\t\tif (!(accountInfo)) {\r\n\r\n\t\t\treturn Errors.say(Errors.noLoginAvailable);\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tusernameField.value = accountInfo.childNodes[0].nodeValue;\r\n\r\n\t\t\tvar pwsField = doc.documentElement.getElementsByTagName(\"td\")[1];\t\t\r\n\r\n\t\t\tpwField.value = pwsField.childNodes[0].nodeValue;\r\n\r\n\t\t\tretrievals++;\r\n\r\n\t\t}else{\r\n\r\n\t\t\treturn Errors.say(Errors.xmlHttpFailure);\r\n\r\n\t\t\t}\r\n\r\n\t\t},\r\n\r\n\t\tonerror: function(responseDetails) {\r\n\r\n\t\t\twaitOrRestoreFields(usernameField, pwField, true);\r\n\r\n\t\t\tErrors.say(Errors.xmlHttpFailure);\r\n\r\n\t\t}\r\n\r\n\t});\r\n\r\n}", "function DoLoginAndProcess(fnty, loginType, param)\n{\t\n\t GetSessionValue('GetSessionValue',\n\t\t 'session=LoginId,LoginIP,LoginType',\n\t\t function(Session) {\n\t\t\t params = param;\n\t\t\t functionality = fnty;\n\t\t\t MemberType = loginType;\n\n\t\t\t NeedLogin = false;\n\t\t\t //if(null == Session) Needlogin = true;\n\t\t\t if( (Session.LoginId==null) || (Session.LoginId=='undefined') || (Session.LoginId=='') ) NeedLogin = true;\n\t\t\t //if((Session.LoginId==null) == true) NeedLogin = true;\n\n\t\t\t if(NeedLogin) {\n\t\t\t\t\ttb_show(\"Login\", \"pop_login.php?height=200&width=400&fun=\"+fnty+'&type='+loginType, null);\n\t\t\t }\telse {\n\t\t\t\t\tDoProcess(1);\n\t\t\t }\n\t\t }\n\t\t );\n}", "function loginn(){\n // localStorage.setItem('user-pizza', 'Paul');\n setLog(!log)\n }", "function login_account () {\n\tdb_account_exists().then(function() {\n\t\tvar date;\n\t\tdate = new Date();\n\t\tdate = date.getUTCFullYear() + '-' +\n\t\t\t\t\t ('00' + (date.getUTCMonth() + 1)).slice(-2) + '-' +\n\t\t\t\t\t ('00' + date.getUTCDate()).slice(-2) + ' ' +\n\t\t\t\t\t ('00' + date.getUTCHours()).slice(-2) + ':' +\n\t\t\t\t\t ('00' + date.getUTCMinutes()).slice(-2) + ':' +\n\t\t\t\t\t ('00' + date.getUTCSeconds()).slice(-2);\n\t\tlet inputs = {\n\t\t\t\t\tusername: $(\"#loginuser\").val(),\n\t\t\t\t\tdate: date\n\t\t\t\t\t};\n\t\tlet params = {\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\turl: \"/api/user/lastlogin\",\n\t\t\t\t\tdata: inputs\n\t\t\t\t\t};\n\t\t$.ajax(params).done(function(data) {\n\t\t\t\tdocument.getElementById(\"greetings\").innerHTML = \"Welcome back \"+localStorage.getItem('username')+\"!\";\n\t\t\t\tset_local($(\"#loginuser\").val());\n\t\t\t\tset_update();\n\t\t\t\tyour_stats($(\"#loginuser\").val());\n\t\t\t\tcurrent_stage=\"stage\";\n\t\t\t\tswitch_stage();\n\t\t\t});\n\t\t}).catch(function (err) {\n\t\t\tconsole.log(err);\n\t\t});\n}", "function smsLogin() {\n AccountKit.login(\n 'PHONE',\n {},\n loginCallback\n );\n }", "function login(){\n\tfetch(config.server+'/user/login', {\n method: 'post',\n body: JSON.stringify({\n \"token\":token,\n \"code\":get(\"code\")\n\t\t\t})\n\t})\n\t.then(function(response) {\n\t\treturn response.json();\n\t})\n\t.then(function(json){\n\t\tif(json.code==0){\n\t\t\t//save new token\n\t\t\tugenLocalStorage.set(config.CONST_USERINFO_KEY, {\n\t\t\t token: json.token,\n\t\t\t\tsex:json.data.sex,\n\t\t\t\tage:json.data.age,\n\t\t\t\theight:json.data.height,\n\t\t\t\ttoWeight:json.data.toWeight\n\t\t });\n\t\t\ttoken=json.token;\n\t\t\t//userinfo init\n\t\t\tuserInfo.init(json);\n\t\t\t//devicelist init\n\t\t\tlist.init();\n\t\t\t//jssdk init\n\t\t\tjslib();\n\t\t} else {//if token false token=null\n\t\t ugenLocalStorage.set(config.CONST_USERINFO_KEY, {\n\t token: \"\"\n\t });\n\t\t \talert(\"系统错误\")\n\t\t}\n\t})\n\t.catch(function(err){\n\t\tconsole.log(err)\n\t});\n}", "function mmsLogin(callback) {\n getCredentials(function(mmsCreds) {\n common.global.session = new mms.Session(mmsCreds);\n mmsLoginToSession(callback);\n });\n}", "function tryLogin(nick, to, text, message) {\n try {\n console.log(nick + ' ' + message.args.join(' '));\n // Log in once NickSev sends the right messages\n if (nick === 'NickServ' && message.args.join(' ').match(/This nickname is registered and protected\\./)) {\n client.say('nickserv', 'identify ' + settings.client.pass);\n } else\n // When logged in, join the channels\n if (nick === 'NickServ' && message.args.join(' ').match(/Password accepted/)) {\n settings.client.channels.forEach(function(channel) {\n client.join(channel);\n });\n client.removeListener('notice', tryLogin);\n }\n } catch (err) {\n console.error(err);\n }\n}", "function login() {\n\t\tclearPage();\n\t\twindow.CLASH.user.id = 0;\n\t\tlet loginForm = document.querySelector('#login');\n\t\tlet loginbtn = loginForm.querySelector('#loginBtn');\n\t\tlet password = loginForm.querySelector('#passwd');\n\t\tpassword.innerHTML = '';\n\t\tloginForm.classList.remove('h-login');\n\t\tloginbtn.classList.add('h-login');\n\t}", "static login() {\n return \"I am User\";\n }", "function doLogin(username, password, callback) {\n\tmagic(\n\t\t\t\"GetUserAuthentication\",\n\t\t\tusername,\n\t\t\tappname,\n\t\t\t\"\",\n\t\t\ttoken,\n\t\t\tpassword,\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\t\t\t\"\",\n\n\t\t\tfunction(res) {\n\t\t\t\tif (res.status == \"error\") {\n\t\t\t\t\tconsole.log(\"error logging in: \" + res.data);\n\n\t\t\t\t\tcallback(\"error\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvar data = JSON.parse(res[\"data\"]);\n\n\t\t\t\t\tvar validUser = data[0][\"getuserauthenticationinfo\"][0][\"ValidUser\"];\n\t\t\t\t\tif (validUser.indexOf(\"YES\") != -1) {\n\t\t\t\t\t\twindow.ehrUsername = username;\n\t\t\t\t\t\twindow.ehrPassword = password;\n\n\t\t\t\t\t\tcallback(\"success\");\n\n\t\t\t\t\t} else\n\t\t\t\t\t\tcallback(\"invalid\");\n\t\t\t\t}\n\t\t\t});\n}", "function autoLogin() {\n var env = detectEnvironment();\n if (settings['login' + env] && settings['password' + env] && !$('.auth-top-messages').text().replace(/\\s/g, '').length) {\n $(\"#Login\").val(settings['login' + env]);\n $(\"#Password\").val(settings['password' + env]);\n $('#Login[type=submit]').click();\n }\n }", "login (state, user_info) {\n state.user_info.user_name = user_info.user_name;\n state.user_info.user_id = user_info.user_id.toString();\n }", "function login() {\n var loggedIn = auth.login();\n fakeWindow.sendMessage({\n type: 'authorization_response',\n code: 'acode',\n state: 'notrandom',\n });\n return loggedIn;\n }", "async handleLogin () {\n\t\tconst { email, password, teamId } = this.request.body;\n\t\tthis.user = await new LoginCore({\n\t\t\trequest: this\n\t\t}).login(email, password, teamId);\n\t}", "function doLogin()\n{\n getSelectedItem();\n // here's the workaround - login functions are with token\n var selected_token = selected_slot.getToken();\n try {\n selected_token.login(false);\n var tok_status = document.getElementById(\"tok_status\");\n if (selected_token.isLoggedIn()) {\n tok_status.setAttribute(\"label\", \n bundle.GetStringFromName(\"devinfo_stat_loggedin\"));\n } else {\n tok_status.setAttribute(\"label\",\n bundle.GetStringFromName(\"devinfo_stat_notloggedin\"));\n }\n } catch (e) {\n doPrompt(bundle.GetStringFromName(\"login_failed\"));\n }\n enableButtons();\n}", "function login() {\n\n // User has not compeleted the tutorial\n if (!eCon.local.firstRun) {\n eCon.Container.pagecontainer('change', 'help.html');\n return;\n }\n\n /**\n * Variable tracking whether the user needs to log in\n * @type {boolean}\n */\n var login = true;\n\n\n if (eCon.local.ID) { // Previously logged into a conference\n if (moment(eCon.local.EXP).isAfter(moment())) { // Conference expiration is after now\n login = false;\n } else {\n eCon.local.ID = null;\n eCon.local.EXP = null;\n eCon.local.Profile = null;\n deleteData();\n }\n }\n\n if (!login) {\n $('body').pagecontainer('change', 'conference.html', {});\n } else {\n $('body').pagecontainer('change', 'login.html', {changeHash: 'false'});\n }\n}", "function onLogin(userName, passWord, socket) {\n try{\n\n } catch(err) {\n console.error(err);\n }\n}", "function loginInit ()\n {\n var usrObj = document.getElementById ('txtUserName'); \n var screenShowObj = document.getElementById ('hdSreenVal');\n if(screenShowObj)\n {\n var screenVal = parseInt(screenShowObj.value, 10);\n switch (screenVal)\n { \n case 1:\n fieldStateChangeWr ('txtUserName txtPwd txtNewPassWd txtCnfPwd', '', '', '');\n changeScreen ('LoginTbl PasswordChengeTbl ForcedLoginTbl', 'LoggedinTbl');\n var requestObj = getRequestObject ();\n\t\t var accessType = document.getElementById ('hdAccessType').value;\n\t\t if(parseInt (accessType,10) == 3) \n\t\t\t\t{\n \t\trunUserLoginCount (requestObj, document.getElementById ('hdUsrName').value,document.getElementById ('hdAlertType').value,document.getElementById ('hdMaxValue').value,document.getElementById ('hdAlertValue').value);\n\t\t\t\t}\n break;\n case 2:\n fieldStateChangeWr ('txtUserName txtPwd txtNewPassWd txtCnfPwd', '', '', '');\n changeScreen ('LoginTbl PasswordChengeTbl LoggedinTbl', 'ForcedLoginTbl');\n break;\n\t case 4:\n\t\t \t\t\tfieldStateChangeWr ('txtNewPassWd txtCnfPwd', '', 'txtUserName txtPwd', '');\n\t\t \t\t\tchangeScreen ('LoginTbl PasswordChengeTbl LoggedinTbl ForcedLoginTbl', '');\n var chkAuthObj = document.getElementById ('chkAuthTypeEnable');\n if (chkAuthObj)\n {\n if (chkAuthObj.checked)\n {\n fieldStateChangeWr ('', '', 'loginBtSla', '');\n }\n else\n {\n fieldStateChangeWr ('loginBtSla', '', '', '') ;\n }\n }\n\t\t\t\t break;\n case 0:\n default: \n fieldStateChangeWr ('txtNewPassWd txtCnfPwd', '', 'txtUserName txtPwd', '');\n changeScreen ('PasswordChengeTbl LoggedinTbl ForcedLoginTbl', 'LoginTbl');\n if (!usrObj) return;\n usrObj.focus (); \n break;\n }\n } \n }", "function goLogIn() {\n \n body.innerHTML = renderLoginDiv(email2, pass2, message2);\n assignListener('login2');\n }", "function logMeIn( session ) {\n username = session.cname.nameString[0];\n // Dismiss earlier login errors\n $( \".alert-login\" ).alert( \"close\" );\n\n // Put email address into relevant divs\n $( \".thisuser\" ).text( username + \"@mit.edu\" );\n\n // Disable login button, just in case\n $( \"#login\" ).attr( \"disabled\", true);\n $( \"#login\" ).text( LOGIN_ONGOING );\n\n // Query to load results from API\n apiQuery(\"public_lists\", \"GET\", function( response ) {\n console.log(response);\n //updateUI( response );\n $( \"#landing\" ).addClass( \"hidden\" );\n $( \"#app\" ).removeClass( \"hidden\" );\n });\n }", "performPRTGAPILogin() {\n var username = this.username;\n var passhash = this.passhash;\n var options = {\n method: 'GET',\n url: this.url + \"/getstatus.htm?id=0&username=\" + username + \"&passhash=\" + passhash\n };\n return this.backendSrv.datasourceRequest(options).then(response => {\n this.passhash = response;\n return response;\n });\n }", "function goLoginSite()\n\t{\n\t\t// Go to login screen\n\t\tlogin.init();\n\t}", "function isLoggedIn() {\r\n\tif((us_getValue(\"us_username\") == \"\") || (!us_getValue(\"us_username\")) || (us_getValue(\"us_sessionKey\") == \"\") || (!us_getValue(\"us_sessionKey\"))) {\r\n\t\treturn false;\r\n\t}\r\n\treturn true;\r\n}", "function validateLocalLogin(credentials, callback) {\n User.findOne({ \"local.email\": credentials[\"username\"].toLowerCase() }, function (err, result) {\n if (err) {\n console.log(err);\n callback(err, \"\", null);\n } else if (result == null) {\n callback(null, \"NONE\", \"\");\n } else {\n bcryptjs.compare(credentials[\"password\"], result.local.password, function (err, res) {\n if (err) {\n return callback(err);\n }\n if (res) {\n TournamentDirector.findOne({ usertoken: result._id }, function (err, director) {\n if (err) {\n callback(err);\n } else if (director) {\n callback(null, \"OK\", director);\n } else {\n callback(null, \"NONE\", null);\n }\n });\n } else {\n callback(null, \"INVALID\", \"\");\n }\n });\n }\n });\n}", "function processLoginData() {\n\n\tupdateBootStatus(\"org.webshell.shell:processLoginData\");\n\n\tos.storage.login.get(\"passwordSalt\",function(e){\n\t\tloginSalt = e ? e.value : undefined; // Set global variable\n\n\t\tconsole.log(\"got salt!\");\n\t\tconsole.log(loginHash + \"hash by salt\");\n\t\tconsole.log(loginSalt + \"salt by salt\");\n\t\tconsole.log(\"ready by salt? \" + (typeof loginHash !== \"undefined\" && typeof loginSalt !== \"undefined\"));\n\n\t\tif (typeof loginSalt === \"undefined\") { // Can't find salt? Go to setup ASAP\n\t\t\tinitSetup();\n\t\t} else if (loginSalt.length === 100) { // Legacy (pre-build 13200) login, needs to be reset\n\t\t\tconsole.error(\"Invalid credentials\");\n\t\t\trevokeCredentials();\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof loginSalt !== \"undefined\" && typeof loginHash !== \"undefined\") { // Salt and hash loaded? Let's get everything else ready\n\t\t\tinitShell();\n\t\t}\n\t});\n\n\tos.storage.login.get(\"passwordHash\",function(e){\n\t\tloginHash = e ? e.value : undefined; // Set global variable\n\n\t\tconsole.log(\"got hash!\");\n\t\tconsole.log(loginHash + \"hash by hash\");\n\t\tconsole.log(loginSalt + \"salt by hash\");\n\t\tconsole.log(\"ready by hash? \" + (typeof loginHash !== \"undefined\" && typeof loginSalt !== \"undefined\"));\n\n\t\tif (typeof loginHash === \"undefined\") { // Can't find hash? Go to setup ASAP\n\t\t\tinitSetup();\n\t\t} else if (os.hash(\"\").toString().length !== loginHash.length) { // Hash tested to be invalid, needs to be reset\n\t\t\tconsole.error(\"Invalid credentials\");\n\t\t\trevokeCredentials();\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof loginHash !== \"undefined\" && typeof loginSalt !== \"undefined\") { // Hash and salt loaded? Let's get everything else ready\n\t\t\tinitShell();\n\t\t}\n\t});\n}", "function login() {\n var target = UIATarget.localTarget();\n target.delay(5)\n var cell = target.frontMostApp().mainWindow().staticTexts()[\"Login.LoginLabel\"];\n var userguidelogin = target.frontMostApp().mainWindow().buttons()[\"UserGuide.LoginButton\"];\n if (userguidelogin.isValid()) {\n userguidelogin.tap();\n }\n try {\n UIALogger.logStart(\"Start Login\");\n UIALogger.logPass(\"请在custom.js文件里面修改一下账号密码\"); \n var username = \"18819822368\";\n var pwd = \"ucweb123\";\n target.frontMostApp().mainWindow().textFields()[\"Login.UsernameField\"].setValue(username);\n target.frontMostApp().mainWindow().secureTextFields()[\"Login.PwdField\"].setValue(pwd);\n target.frontMostApp().mainWindow().buttons()[\"Login.LoginButton\"].tap();\n UIALogger.logPass(\"登录成功\");\n } catch(e) {\n UIALogger.logMessage(\"登录过程中出现问题 or 已经登陆好的状态\");\n }\n}", "handleLogin() {\n this.authenticate();\n }", "function doLogin(suppressEvents) {\n\n\tabortAllRequests();\n\n\tvar uname = G.ui.login.username.value;\n\tvar passwd = G.ui.login.password.value;\t\n\n\tvar init_request = new Request( LOGIN_INIT, uname );\n init_request.send(true);\n var seed = init_request.result();\n\n if( ! seed || seed == '0') {\n alert( \"Error Communicating with Authentication Server\" );\n return null;\n }\n\n\tvar args = {\n\t\tpassword : hex_md5(seed + hex_md5(passwd)), \n\t\ttype\t\t: \"opac\", \n\t\torg\t\t: getOrigLocation()\n\t};\n\n r = fetchOrgSettingDefault(globalOrgTree.id(), 'opac.barcode_regex');\n if(r) REGEX_BARCODE = new RegExp(r);\n \n if( uname.match(REGEX_BARCODE) ) args.barcode = uname;\n\telse args.username = uname;\n\n var auth_request = new Request( LOGIN_COMPLETE, args );\n\n\tauth_request.request.alertEvent = false;\n auth_request.send(true);\n var auth_result = auth_request.result();\n\n\tif(!auth_result) {\n\t\talertId('patron_login_failed');\n\t\treturn null;\n\t}\n\n\tif( checkILSEvent(auth_result) ) {\n\n\t\tif( auth_result.textcode == 'PATRON_INACTIVE' ) {\n\t\t\talertId('patron_inactive_alert');\n\t\t\treturn;\n\t\t}\n\n\t\tif( auth_result.textcode == 'PATRON_CARD_INACTIVE' ) {\n\t\t\talertId('patron_card_inactive_alert');\n\t\t\treturn;\n\t\t}\n\n\t\tif( auth_result.textcode == 'LOGIN_FAILED' || \n\t\t\t\tauth_result.textcode == 'PERM_FAILURE' ) {\n\t\t\talertId('patron_login_failed');\n\t\t\treturn;\n\t\t}\n\t}\n\n\n\tAUTHTIME = parseInt(auth_result.payload.authtime);\n\tvar u = grabUser(auth_result.payload.authtoken, true);\n\tif(u && ! suppressEvents) \n\t\trunEvt( \"common\", \"locationChanged\", u.ws_ou(), findOrgDepth(u.ws_ou()) );\n\n\tcheckUserSkin();\n\n\treturn u;\n}", "orderAccess() {\n loginPage.open();\n loginPage.username.setValue('pepeamigo@gmail.com');\n loginPage.password.setValue('pepito');\n loginPage.submit();\n }", "function setupLogin() {\n\t$(\"#guest-username-input\").val(\"\"); // clear guest username\n}", "function requestLogin() {\n return {\n type: 'REQUEST_LOGIN'\n }\n}", "function startTpLogin(tokenid1) {\n var action = 'startTpLogin';\n var jsonStr = '{}';\n\n cmread.callBackClient(action, jsonStr, tokenid1);\n}", "function login (){\n var nome = prompt(\"Digite seu nickname : \");\n //var rodadas = +prompt(\"Quantas rodadas deseja jogar ?\");\n var regras = prompt(\"Gostaria de ler as regras ? \");\n if (regras === \"sim\"){\n console.log(\"\\nRegras : Você tem três opcões para jogar : ↳ pedra (0) \\n\\n ↳ papel (1) \\n\\n ↳ tesoura (2)\\n==================================================\\n • Pedra ganha da tesoura\\n • Tesoura ganha do papel\\n • Papel ganha da pedra\\n==================================================\");\n }else {\n console.log(\"Que pena , ler as regras é muito importante!\");\n return login('');\n }\n console.log();\n console.log(\"Para iniciar ,tecle ENTER :\");\n prompt(\" \");\n console.log();\n console.log(\"Seja bem-vindo (a) : \" + nome + \"\\nVocê jogará 5 rodadas contra o pc\\n\");\n}", "function loggingin (req, res, next) {\n passport.authenticate('local', {\n successRedirect: '/',\n failureRedirect: '/login'\n })(req, res)\n}", "login(user = \"anonymous\", password = \"guest\") {\n this.ftp.log(`Login security: ${(0, netUtils_1.describeTLS)(this.ftp.socket)}`);\n return this.ftp.handle(\"USER \" + user, (res, task) => {\n if (res instanceof Error) {\n task.reject(res);\n }\n else if ((0, parseControlResponse_1.positiveCompletion)(res.code)) { // User logged in proceed OR Command superfluous\n task.resolve(res);\n }\n else if (res.code === 331) { // User name okay, need password\n this.ftp.send(\"PASS \" + password);\n }\n else { // Also report error on 332 (Need account)\n task.reject(new FtpContext_1.FTPError(res));\n }\n });\n }", "function login( data, callback )\n {\n api.authenticate( data.username, data.password, function(err,userid){\n if (err) return callback(err);\n socket.set(\"userid\", userid, function(){\n console.log(\"User %s has logged in.\", userid);\n // return user data to the client via the callback\n api.getUserData(userid, callback);\n });\n });\n }", "function tryLogin() {\n // Get User + pass (+voucher) from form\n User = document.getElementById( 'auth_user2' ).value;\n var pass = document.getElementById( 'auth_pass' ).value;\n var voucher = document.getElementById( 'auth_voucher' ).value;\n var voucherLogin = false;\n if (voucher !== \"\") {\n voucherLogin = true\n }\n if (initValidate(pass, voucher, voucherLogin)) {\n loginSL(pass);\n }\n}" ]
[ "0.74511665", "0.72027874", "0.7157384", "0.69809806", "0.68003917", "0.6781398", "0.6776692", "0.67684656", "0.6767623", "0.6723946", "0.67120516", "0.6645907", "0.66311973", "0.6523413", "0.6509918", "0.646389", "0.6451152", "0.6446156", "0.6435909", "0.63758534", "0.6375769", "0.635898", "0.63571644", "0.63551825", "0.63535166", "0.63363147", "0.632463", "0.6324387", "0.6296217", "0.6275501", "0.6253426", "0.6246687", "0.6241022", "0.6211806", "0.62088776", "0.6203333", "0.62023365", "0.62020785", "0.61729497", "0.61594445", "0.6152106", "0.6143577", "0.6130685", "0.6121572", "0.6120542", "0.611714", "0.61103785", "0.61102855", "0.6093759", "0.6092053", "0.6077756", "0.60763144", "0.6059487", "0.6054337", "0.60382366", "0.6030116", "0.602875", "0.60197496", "0.60196924", "0.60111356", "0.60084015", "0.5995048", "0.5980719", "0.5975512", "0.5967033", "0.59654987", "0.5962902", "0.5961916", "0.59566", "0.5955921", "0.5954693", "0.595378", "0.59531045", "0.5934269", "0.5932848", "0.5931275", "0.59267586", "0.5921487", "0.5917175", "0.59140015", "0.5905863", "0.59039956", "0.5902083", "0.5902005", "0.5898116", "0.588791", "0.58859724", "0.58852446", "0.58829945", "0.58707815", "0.5870209", "0.58692074", "0.58527035", "0.58506423", "0.58432865", "0.5837964", "0.5832817", "0.5829938", "0.5829827", "0.5827407", "0.5826793" ]
0.0
-1
var cod = document.getElementById("producto").value;
function calculateSubTot(priceTot,state){ var tax; switch(state){ case "UT": tax = 0.0665; break; case "NV": tax = 0.08; break; case "TX": tax = 0.0625; break; case "AL": tax = 0.04; break; case "CA": tax = 0.0825; break; default: break; } return priceTot+(priceTot*tax); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function obtener_datos (){\n\n var nombre = document.getElementById(\"NOMBRE\").value;\n\n comprobar_datos(nombre);\n}", "function buscar_paisseleccionado() {\r\n\tvar pais_seleccionado = document.getElementById(\"pais\").value;\r\n\talert(\"Pais seleccionado \" + pais_seleccionado);\r\n\r\n}", "function getResultado() { \r\n return document.getElementById(\"valor\").value; \r\n}", "function cargarNumero() {\n document.getElementById(\"incognita\").value = incognita;\n}", "function pegarNomeCadastro() {\n var valor = \"\";\n\n valor = document.getElementById('nome').value;\n alert (`${valor}`+' seu cadastro foi realizado com sucesso')\n}", "function compra() {\n var deuda = document.getElementById(\"prod\").value;\n if (deuda === \"Compra deuda\") {\n document.getElementById(\"tipo\").value = 'Bien Terminado';\n }\n}", "function hola(uno)\n\t {\n\t\t document.getElementById(\"ideart\").value=uno;\n\t\t //alert(uno);\n\t }", "function pegarNomeContato() {\n var valor = \"\";\n\n valor = document.getElementById('nome').value;\n alert (`${valor}`+' sua mensagem foi enviada com sucesso')\n}", "function act_estrato()\r\n{\r\n\tdocument.getElementById(\"id_estra\").value = document.getElementById(\"sect_estrato\").value;\r\n}", "function iniciareditaringresos(datos) {\n\n document.getElementById(\"idti\").value = datos[0][\"idtipoingresosganancias\"]\n document.getElementById(\"nombreingresoseditar\").value = datos[0][\"nombre\"];\n document.getElementById(\"descripcioningresoseditar\").value = datos[0][\"descripcion\"];\n document.getElementById(\"ayudaingresoseditar\").value = datos[0][\"ayuda\"];\n\n}", "function fntBarcode(){\n let codigo = document.querySelector(\"#txtCodigo\").value; //esta variable codigo hace referencia al input y capturamos el valor\n JsBarcode(\"#barcode\", codigo); //funcion donde coloca el codigo de barra y el valor del codigo. \n\n}", "function trocarNome() {\r\n\tvar nome = document.getElementById('nome');\r\n\tvar usuario = document.getElementById('usuario').value;\r\n\tnome.innerHTML = usuario;\r\n}", "function agregaformPreNA(datos){\n var d=datos.split('-');\n document.getElementById(\"codigo_planillaNA\").value=d[0];\n document.getElementById(\"codigo_uoNA\").value=d[1];\n}", "function obtener(id){\n return document.getElementById(id).value;\n}", "function buscarValorDivisaIn(){\n let posi = document.getElementById(\"divisasIn\");\n var pose = posi.options[posi.selectedIndex].value;\n let posIn = valormercadomoneda[pose]; //valor de la divisa escogida en la entrada\n return posIn;\n}", "function munculkan(){\n nama = document.getElementById('nama').value;\n // console.log(nama)\n document.getElementById('demo').innerHTML = nama;\n}", "function setMonedaGen(){\n\tvar vValMoneda = document.getElementById('C21').value;\n}", "function hola2(uno)\n\t {\n\t document.getElementById(\"idep\").value=uno;\n\t }", "function cogerApellido() {\n return inputApellido.value;\n}", "function calcularPerimetroCudrado(){\nconst input=document.getElementById(\"inputcuadrado\");\nconst value=input.value;\nconst perimetro=perimetroCuadrado(value);\nalert(perimetro);\n}", "function getProdDel(prod) {\n\n var nome = document.getElementById('nomeProdDel');\n var foto = document.getElementById('imgProdDel');\n var descricao = document.getElementById('descricaoProdDel');\n var preco = document.getElementById('precoProdDel');\n var qntEstoque = document.getElementById('quantProdDel');\n var qntVend = document.getElementById('vendasProdDel');\n nome.value = prod.nome;\n foto.src = prod.foto;\n descricao.value = prod.descricao;\n preco.value = prod.preco;\n qntEstoque.value = prod.qntEstoque;\n qntVend.value = prod.qntVend;\n}", "function agregaformEve(datos){\n //console.log(\"datos: \"+datos);\n d=datos.split('||');\n \n //document.getElementById(\"codigo_af_aceptar1\").value=d[0];\n $('#idEveE').val(d[0]);\n $('#nombreEveE').val(d[1]);\n $('#personalEveE').val(d[2]);\n}", "function CalcularPerimetroCuadrado() {\n const input = document.getElementById(\"Cuadrado\");\n const value = input.value;\n const perimetro= perimetrocuadrado(value);\n alert (perimetro);\n}", "function cargarVariables(){\n var numeroDNI = Document.getElementById(\"numeroDNI\").value;\n var letraDni = Document.getElementById(\"letraDNI\").value;\n alert(numeroDNI + \" \" + letraDni);\n}", "function numeroDatos(){\n let valor = document.getElementById(\"InputDatos\");\n let numero = parseInt(valor.value);\n return numero;\n}", "function codificar(){\r\n //obtener el texto del text area\r\n\r\n cadena =document.getElementById(\"cadena\");\r\n desp = document.getElementById(\"desp\");\r\n\r\n document.getElementById(\"resultado\").innerHTML = cesar.encode(cadena.value, desp.value);\r\n\r\n\r\n \r\n}", "function inicializareditar(datos) {\n \n tipo1informacionpersonaleditar.value = datos[0]['tipo'];\n document.getElementById('idip').value = datos[0]['id'];\n\n}", "function numeroDatos2(){\n let valor = document.getElementById(\"InputDatos2\");\n let numero = parseInt(valor.value);\n return numero;\n}", "function asignarCurso() {\n const cursoId = document.getElementById(\"cursos\").value;\n document.getElementById(\"cursoId\").value = cursoId;\n}", "function nombreCliente(){\n //obtenes el nombre del input.\n const nombre = document.querySelector('#nombre').value ;\n //Agregarlo a cita\n cita.nombre = nombre;\n}", "function calcularPerimetroCuadrado() {\n const input = document.getElementById(\"inputCuadrado\");\n const value = input.value\n\n\n const perimetro = perimetroCuadrado(value);\n alert(perimetro);\n}", "function calcularPerimetroCuadrado() {\n const input = document.getElementById(\"inputCuadrado\");\n const value = input.value;\n\n const perimetro = perimetroCuadrado(value);\n alert(perimetro);\n}", "function affichePrenom(){\n var name = document.getElementById(\"prenom\").value;\n document.getElementById(\"demo\").innerHTML = name;\n\n}", "function agregarform_alcap(datos){\n d=datos.split('||');\n $('#codigoalcas').val(d[0]);\n $('#nombres').val(d[1]); \n $('#apellidos').val(d[2]); \n $('#tipos').val(d[3]); \n \n \n \n}", "function buscar(){\n let ValorBuscado=document.form1.codigo.value;\n ValorBuscado=parseInt(ValorBuscado);\n if (CodigosProductos.indexOf(ValorBuscado)>-1) {\n //si lo encuentra\n posicion=CodigosProductos.indexOf(ValorBuscado);\n document.form1.precio.value=PreciosProductos[posicion];\n document.form1.nombre.value=NombresProductos[posicion];\n document.form1.cantidadDisponible.value=DisponiblesProductos[posicion];\n encontrado=true;\n } else\n alert(\"producto no encontrado en el almacen\")\n\n}", "function entrada_selecionada() {\n return entradas[parseInt(document.getElementById(\"ins\").value)];\n}", "function calcularPerimetroCuadrado() {\n const input = document.getElementById(\"inputCuadrado\")\n const value = input.value\n\n const perimetro = perimetroCuadrado(value)\n alert(perimetro)\n}", "function TerimaInput(){\n var Nama = document.querySelector(\"#Nama\").value;\n var NIM = document.querySelector(\"#NIM\").value;\n console.log('Nama : ',Nama)\n console.log('NIM : ',NIM)\n}", "function agarrarProfesor() {\n const profesorId = document.getElementById(\"profesores\").value;\n document.getElementById(\"profesorId\").value = profesorId;\n}", "function cambioClave(codigo) {\n noEmp = codigo;\n $('#modalCambioClave').modal('show');\n // $('#input-correo-editar').val(email);\n // $('#select-posicion').val(posicion).attr(\"selected\", \"selected\");\n}", "function calcularPerimetroCuadrado() {\n const input = document.getElementById(\"InputCuadrado\");\n const value = input.value;\n\n const perimetro = perimetroCuadrado(value);\n alert(perimetro);\n}", "function cambiodeprecios(idselect, produ) {\n console.log(idselect);\n var data = {id: document.getElementById(idselect).value};\n fetch('/buscar/propiedad/producto/id', {\n method: 'POST', // or 'PUT'\n body: JSON.stringify(data),\n headers: {\n 'Content-Type': 'application/json'\n }\n }).then(res => res.json())\n .catch(error => console.error('Error:', error))\n .then(response => {\n console.log(response);\n let precioparcial = parseInt(document.getElementById('preciounitario' + produ).value);\n let acumulado = 0;\n for (let x = 0; x < response.length; x++) {\n acumulado += parseInt(response[x]['precio']);\n }\n console.log(acumulado);\n let totalparcial = acumulado + precioparcial;\n\n document.getElementById('preciounitario' + produ).value = totalparcial;\n });\n\n}", "function fntBarcode()\n{\n let codigo = document.querySelector(\"#txtCodigo\").value;\n JsBarcode(\"#barcode\", codigo);\n}", "function funcaoValor(produto) {\n let valor = produto.querySelector(\".valor\").innerHTML;\n return Number(valor);\n}", "function calcularPerimetroCuadrado() {\n const input = document.getElementById(\"InputCuadrado\");\n const value = input.value;\n\n const perimetro = perimetroCuadrado(value);\n alert(perimetro);\n}", "function printResultado(numero) { \r\n\r\n if(numero == \"\"){\r\n document.getElementById(\"valor\").value = numero;\r\n }\r\n else{\r\n document.getElementById(\"valor\").value = getNumeroFormatado(numero);\r\n }\r\n}", "function calcularPerimetroCuadrado(){\n const input = document.getElementById(\"InputCuadrado\")\n const value = input.value;\n \n const perimetro = perimetroCuadrado(value);\n alert (perimetro)\n}", "function cogerNombre() {\n const nombre = inputNombre.value;\n return nombre;\n}", "function petiComprobante(){\nvar ID ;\nID=document.getElementById('id_Comprobante').value;\n\n$.post(\"TraerDatosCompro\",{ID}).done(function (data) {\n\nconsole.log(data);\n\n});\n\n}", "function getBalcao(){\n return $('#user_balcao').val();\n}", "function seleccion(){\n\t\tvar seleccion = document.getElementById(\"cliente\");\n\t\tvar idCliente = seleccion.options[seleccion.selectedIndex].value;\n\t\tdocument.getElementById(\"idCliente\").value = idCliente;\n\t}", "function calcularPerimetroCuadrado(){\n const input = document.getElementById(\"InputCuadrado\");\n const value = input.value;\n\n const perimetro = perimetroCuadrado(value);\n alert(perimetro);\n}", "function limpa_formulário_cep() {\n //Limpa valores do formulário de cep.\n document.getElementById('id_logradouro').value = (\"\");\n document.getElementById('id_bairro').value = (\"\");\n document.getElementById('id_cidade').value = (\"\");\n document.getElementById('id_estado').value = (\"\");\n}", "function BuscarDatosCliente(value){\n $.ajax({\n url: '../controladores/control_notaentrega.php',\n type: 'POST',\n async: true,\n data: value,\n dataType: \"json\",\n success: function(resp){\n \t$('#cnombrecliente').val(resp[0].cnombre);\n \t$('#nid_condicionpago').val(resp[0].nid_condicionpago);\n },\n error: function(resp){\n \talert('Error al procesar la petición')\n }\n });\n }", "function agregarComentario(id_miembro){\n\n\n res= document.getElementById(\"comentar\").value; //Se toma a traves del id, el comentario realizado(valor).\n document.getElementById(\"mostrarComentario\").innerHTML+= res + \"<br>\"; //Hace visible el comentario relizado.\n\tres= document.getElementById(\"comentar\").value= \"\";//Despues que se genera el click vuelve al valor original.\n}", "function agregaform(datos){\n \n d=datos.split('||');\n $('#codigou').val(d[0]);\n $('#nombreu').val(d[1]);\n}", "function cargarEditar(posicion){\n\n document.getElementById('cedula').value= returnArr[posicion].cedula;\n document.getElementById('apellido').value= returnArr[posicion].apellido;\n document.getElementById('email').value= returnArr[posicion].email;\n document.getElementById('nombre').value= returnArr[posicion].nombre;\n document.getElementById('telefono').value= returnArr[posicion].telefono;\n document.getElementById('key_empleado').value= returnArr[posicion].key;\n\n mostrarExistente();\n}", "function getProdAtt(prod) {\n\n var nome = document.getElementById('nomeProdAtt');\n var foto = document.getElementById('imgProdAtt');\n var descricao = document.getElementById('descricaoProdAtt');\n var preco = document.getElementById('precoProdAtt');\n var qntEstoque = document.getElementById('quantProdAtt');\n var qntVend = document.getElementById('vendasProdAtt');\n nome.value = prod.nome;\n foto.src = prod.foto;\n descricao.value = prod.descricao;\n preco.value = prod.preco;\n qntEstoque.value = prod.qntEstoque;\n qntVend.value = prod.qntVend;\n}", "function afficherLa Saisie() {\n alert( input.value);\n}", "function buscar(){ // função de executar busca ao clicar no botão\n \n let buscaId = document.getElementById('txtBuscar');\n buscaDados(buscaId.value.toLowerCase());\n}", "function value(request) {\n return document.getElementById(request).value;\n}", "function calcularPerimetroCuadrado(params) {\n const input = document.getElementById(\"InputCuadrado\");\n const value = input.value;\n const perimetro = perimetroCuadrado (value);\n alert (perimetro);\n}", "function calcularPerimetroCuadrado() {\r\n var input = document.getElementById(\"InputCuadrado\");\r\n var value = input.value;\r\n var perimetro = perimetroCuadrado(value);\r\n alert(perimetro);\r\n}", "function retablir(txt, id_controle) {\r\n if(document.getElementById(id_controle).value==''){\r\n document.getElementById(id_controle).value=txt;\r\n \r\n }\r\n}", "function myValorA(){\n\t\t\t var inputa = Number(document.getElementById(\"op-one\").value);\n\t\t\t\treturn inputa;\n\t\t\t }", "function idAlumno() {\n const alumnoId = document.getElementById(\"alumnos\").value;\n document.getElementById(\"alumnoId\").value = alumnoId;\n}", "function ControlGramajeSeleccionadoOnda(id)\n{\n\t //alert('id es '+document.getElementById(\"gramaje_seleccionado\").value);\n\t //carga_ajax(webroot+'produccion/BuscarKilosOnda',id,document.getElementById(\"gramaje_seleccionado\").value,'hola');\t\n carga_ajax15(webroot+'produccion/BuscarKilosOnda',id,document.getElementById(\"gramaje_seleccionado\").value,document.getElementById(\"ancho_seleccionado_de_bobina\").value,'hola');\t\t\t\n}", "function calcularPerimetroCuadrado(){\n const input = document.getElementById('inputCuadrado');\n const value = input.value;\n\n const perimetro = perimetroCuadrado(value);\n alert('El perimétro del cuadrado es: ' + perimetro);\n}", "function contrato_selecionado_clicked(idContrato,id_campo){\n var idContrato = idContrato;\n var id_contrato = $(\"#no_contrato_infocarga_\"+idContrato).text();\n $(\"#contrato_asignado_\"+id_campo).val(id_contrato);\n $(\"#contrato_verificado_\"+id_campo).val(id_contrato);\n}", "function getElementAsignar(bien_id) \r\n{\r\n $('#bien_id_asigna').val(bien_id);\r\n return false;\r\n}", "function retornaInf() {\n const dataNascimento = new Date(document.getElementById(\"nascimento\").value);\n const idade = calculaidade(dataNascimento)\n document.getElementById(\"retorno\").innerHTML = (\"Olá \" + document.getElementById(\"nome\").value + \" seu login é \" + document.getElementById(\"email\").value + \" Você tem \" + idade + \" anos. Se define com uma pessoa do sexo \" + document.getElementById(\"selecao\").value + \" e pode usar \" + document.getElementById(\"cpf\").value + \" como senha.\")\n}", "function leerTexto(e){\n // console.log(e.target.value);\n datos[e.target.id] = e.target.value;\n}", "function leerDatosProductos(producto){\n const infoProducto = {\n img: producto.querySelector('.imagen').src,\n titulo: producto.querySelector('#title-product').textContent,\n cantidad: producto.querySelector('#cantidad').value,\n precio: producto.querySelector('#precio').textContent,\n id: producto.querySelector('#agregar-carrito').getAttribute('data-id')\n };\n agregarAlCarrito(infoProducto); \n}", "function cifrar(){\r\n document.getElementById(\"resultado\").innerHTML = \r\n cesar.encode(document.getElementById(\"cadena\").value, 3);\r\n}", "function limpiar(){\n document.getElementById(\"idCodigo\").value = \"\";\n document.getElementById(\"idMessagetext\").value = \"\";\n\n}", "function seleccionarUsuarioParaPW(usuario){\n document.querySelector('#idUsuarioContrasena').value = usuario[0];\n document.querySelector('#nombreUsuarioContrasena').innerHTML = usuario[1];\n document.querySelector('#emailUsuarioContrasena').innerHTML = usuario[2];\n $('#modalFormUsuarioContrasena').modal('show');\n}", "function calcularPerimetroCuadrado (){\n const input = document.getElementById(\"inputCuadrado\");\n const value = input.value;\n\n const resultadoPerimetro = perimetroCuadrado(value); \n alert(\"El resultado del perimetro es: \" + resultadoPerimetro)\n }", "function mostrarIngreso() {\n document.getElementById(\"ingreso\").innerHTML = \"Ingresaste el siguiente dato: \" + document.getElementById(\"input\").value;\n }", "function calcularPerimetroCuadrado(){\n const input= document.getElementById(\"inputCuadrado\");\n const value = input.value; \n \n document.getElementById(\"resultadoCuadrado\").innerHTML = perimetroCuadrado(value);\n}", "function fetchPrice(){\n var produit = document.getElementById(\"listeproduit\").value;\n if(JSON.parse(produit).prix !== undefined)\n document.getElementById(\"prix\").value = JSON.parse(produit).prix;\n else\n document.getElementById(\"prix\").value = 'Prix unitaire en FCFA?'\n}", "function pageCurso(id) {\n document.getElementById(\"cursoId\").value = id;\n document.getElementById(\"page\").submit();\n}", "function tipoMasa() {\n miPizza.seleccionarMasa(this.value);\n}", "function obtenerDatos(idN, idP){\n \n var textoTipo = document.getElementById(idN);\n var textoPresio = document.getElementById(idP);\n\n textoTipo = textoTipo.textContent;\n textoPresio = textoPresio.textContent.substring(1);\n\n console.log(textoTipo);\n console.log(textoPresio);\n}", "function hola3(uno,dos)\n\t {\n\t document.getElementById(\"ID\").value=uno;\n\t document.getElementById(\"IDp\").value=dos;\n\t }", "function mostrarDatosProducto(producto){\n let transaccion = obtenerTransaccionInicial(producto.getCodigo());\n let datosProducto = [obtenerInputsIdsProducto(),producto.fieldsToArray()];\n let datosTransaccion = [obtenerInputsIdsTransaccion(),transaccion.fieldsToArray()];\n fillFields(datosProducto);\n fillFields(datosTransaccion);\n htmlValue('inputEditar', 'EDICION');\n htmlDisable('txtCodigo');\n htmlDisable('btnAgregarNuevo', false);\n}", "function validerCodification(form,document){\r\n \r\n //Récupération des heures et minutes de début de fin du créneau\r\n code = form.vcode.value;\r\n nature = form.vnature.value;\r\n libelle = form.vlibelle.value;\r\n \r\n if( \r\n\t code == null \r\n\t || code == \"\" \r\n\t || nature == null \r\n\t || nature == \"\" \t\r\n\t){\t\t\r\n\t\talert(\"Veuillez remplir tous les champs obligatoires.\");\r\n\t\tdocument.getElementById(\"vCodeError\").innerHTML =\"Le code est obligatoire.\";\r\n\t\tdocument.getElementById(\"vNatureError\").innerHTML =\"La nature est obligatoire.\";\r\n\t\treturn false;\r\n\t}\r\n\t//On retroune vrai si la codification est valide\r\n\treturn true;\r\n}", "function calcularPerimetroCuadrado () {\n const input = document.getElementById(\"InputCuadrado\");\n const value = input.value;\n const perimetro = perimetroCuadrado(value);\n resultTagCuadrado.innerHTML = perimetro;\n}", "function calcularPerimetroCuadrado(){\n const lado = document.getElementById(\"inputCudrado\").value\n const perimetro = perimetroCuadrado(lado)\n alert(`El perímetro del cuadrado es: ${perimetro}`)\n}", "function carga() {\n\n var concepto = $(\"#concepto option:selected\").text();\n $(\"#concepto-res\").val(concepto);\n\n}", "function numeros(a){\r\n document.getElementById(\"resultado\").value = document.getElementById(\"resultado\").value+a;\r\n}", "function eliminar(){\r\n var asignar=document.formulario.valores.value;\r\n var nuevoValor=asignar.substring(0,asignar.length-1);\r\n document.getElementById(\"valores\").value=nuevoValor;\r\n }", "function limpa_formulário_cep() {\r\n //LIMPA VALORES DO FORMULÁRIO DE CEP\r\n document.getElementById('rua').value=(\"\");\r\n document.getElementById('bairro').value=(\"\");\r\n document.getElementById('cidade').value=(\"\");\r\n document.getElementById('uf').value=(\"\");\r\n}", "function toZip(){\n var zipCode = document.getElementById(\"zip\").value;\n console.log(zipCode);\n}", "function agregaform(datos){\r\n\r\n\td=datos.split('||');\r\n\r\n\t$('#rut_proveedor2').val(d[0]);\r\n $('#nombre_proveedor2').val(d[1]);\r\n $('#telefono_proveedor2').val(d[2]);\r\n\t$('#correo_proveedor2').val(d[3]);\r\n\r\n\t\r\n}", "function getInputValue(product){\n const productInput=document.getElementById(product+'-number');\n const productNumber=parseInt(productInput.value);\n return productNumber;\n}", "function limpiar_cabecera() {\n\tdocument.getElementById(\"cod_cliente\").value = \"\";\n\tdocument.getElementById(\"nombre_cliente\").value = \"\";\n\tdocument.getElementById(\"telefono\").value = \"\";\n\tdocument.getElementById(\"cif\").value = \"\";\n\tdocument.getElementById(\"calle\").value = \"\";\n\tdocument.getElementById(\"ciudad\").value = \"\";\n\tdocument.getElementById(\"provincia\").value = \"\";\n\tdocument.getElementById(\"email\").value = \"\";\n\tdocument.getElementById(\"cod_postal\").value = \"\";\n}", "function getPhone() {\n var phone = document.getElementById('phone')\n return phone.value\n}", "function setAdminUnico(){\n\tdocument.getElementById(\"8__VAL_C2\").value = 14265;\n\t\n}", "function alteraOpcao(){\n\tlet selectDias = document.getElementById(\"dias-semana\")\n\tlet opcaoDia = selectDias.options[selectDias.selectedIndex].value\n\treturn opcaoDia\n}", "function tipoTamano() {\n miPizza.seleccionarTamano(this.value);\n}", "function getPesoDeMil() {\n 'use strict';\n var pesodemil = 1, theForm = document.forms.cakeform, pesomilSelec = theForm.elements.pesoMil;\n pesodemil = peso_de_mil[pesomilSelec.value];\n return pesodemil;\n}" ]
[ "0.7785914", "0.7774", "0.75766546", "0.75711584", "0.7112004", "0.7110357", "0.71027386", "0.7030439", "0.70247114", "0.697413", "0.6845972", "0.6806636", "0.6799121", "0.6771392", "0.6767987", "0.6752583", "0.67392886", "0.67181855", "0.67161065", "0.6697322", "0.66824687", "0.667031", "0.66443574", "0.6636563", "0.6617093", "0.66033477", "0.65589756", "0.65439355", "0.6542335", "0.6523617", "0.6523423", "0.65122074", "0.65019405", "0.6499985", "0.64982295", "0.64888895", "0.64724195", "0.6469773", "0.64606035", "0.64506245", "0.6449348", "0.6434789", "0.64269805", "0.642688", "0.64265704", "0.6419187", "0.64157134", "0.64086205", "0.638805", "0.63791764", "0.6368854", "0.636701", "0.6340604", "0.6339331", "0.6336311", "0.633421", "0.6324517", "0.63172114", "0.631673", "0.6298975", "0.62796015", "0.6264679", "0.6246355", "0.62419844", "0.62380373", "0.6236178", "0.62341124", "0.62269515", "0.6222438", "0.6220916", "0.62168986", "0.61966604", "0.61908597", "0.6189759", "0.6186124", "0.61819136", "0.6181512", "0.61724037", "0.61693406", "0.61692", "0.61667085", "0.61658025", "0.6163971", "0.61591035", "0.6151523", "0.6148104", "0.61438584", "0.61403567", "0.61361414", "0.61351323", "0.61335456", "0.61297166", "0.61284685", "0.6128293", "0.61269456", "0.6125405", "0.61247087", "0.61227936", "0.61213946", "0.6111381", "0.6103086" ]
0.0
-1
1000 3% 3000 5% 7000 7% 10000 10% 30000 15%
function calculateDiscount(total) { var discount = 0; if(total>= 30000){ discount = 0.15; } else if(total>= 10000){ discount = 0.10; } else if(total>= 7000){ discount = 0.07; } else if(total>= 3000){ diacaunt = 0.05; } else if(total>= 1000){ discount = 0.03; } return (total*discount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function toBarPerc(n) {\nreturn (-1 + n) * 100;\n}", "function fin(percent){\r\n return 1 - Math.pow(2,-Math.min(percent,1)*6); \r\n}", "function calcPercent(value, sum) {\r\n return (100*value/sum);\r\n}", "function percentage() {\n return percent;\n}", "function percentOf(val, percent) {\r\n return (val * percent) / 100;\r\n}", "function calcPercent(value, sum) {\n return (100*value/sum);\n}", "function pxToPercent(n, m) {\r return Math.round(n / m * 1000) / 10;\r}", "function saleHotdogs(n) {\n return (n < 5) ? 100 * n : (n >= 5 && n < 10) ? 95 * n : (n >= 10) ? 90 * n : 0\n}", "function calcPercent(value, sum) {\r\n return (100 * value / sum);\r\n}", "function perc(v) {\n return v + '%';\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function pc(percentage, number){\n let onePercent = number/100\n return (percentage * onePercent)\n}", "function score(data) {\r\n return data[0]*0.1 + data[2]*0.01 + data[3]*0.11 + data[1]*0.1 + data[4]*0.2 + data[5]*0.1 + data[6]*0.2 + data[7]*0.01 + data[8]*0.01;\r\n}", "function percentageCalculation(userInput) {\nvar Number =parseInt(userInput);\n/*\ncreate three varible for looping purpose.\n*/\nvar i;\nvar tails=0;\nvar head=0;\nfor (i=0;i<Number;i++)\n{\n if(Math.random()>0.5)\n {\n tails++; // value of random number generator than 0.5 stored into j\n }\n else\n {\n head++; // value of random number generator than 0.5 stored into head\n }\n}\n\n document.write(\"percentage of tails\"+(tails/Number)*100);\n document.write(\"percentage of head\"+(head/Number)*100);\n}", "function percentof(a,b){\nconsole.log(`${a} is ${a/b*100} % of ${b}.`)\nreturn a/b*100\n}", "function approval(){\n return 100 - Math.floor(100 * score/totalMoles) + \"%\";\n}", "function percentage_three_points_generation() {\n const random_number = Math.floor( Math.random(0) * 100 );\n const percentage = (100 * random_number) / 100;\n return percentage;\n}", "function percentage(a, b){\n\t var increase = b - a;\n\t var step2 = increase / a;\n\t return step2 * 100;\n\t}", "function G(t){return t+\"%\"}", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function toBarPerc(n) {\n return (-1 + n) * 100;\n }", "function percentageOfWorld1(populations){\n return populations / 7900 * 100;\n }", "function crsmark(a)\n{\nlet exm = avg(2)*(a/100)\n return exm \n}", "function countToProb(data) {\n\tvar total = Math.max(1,data.reduce(function(a, b){return a+b;},0));\n\treturn data.map(function(x){return x/total;});\n}", "function getPercentage(sand_value,percentage_value)\r\n{\r\n return sand_value*(percentage_value/100);\r\n}", "function calcPercent(number, percent) {\n return number / 100 * percent;\n}", "function toBarPerc(n) {\n\t return (-1 + n) * 100;\n\t }", "function toBarPerc(n) {\n\t return (-1 + n) * 100;\n\t }", "function toBarPerc(n) {\n\t return (-1 + n) * 100;\n\t }", "function toBarPerc(n) {\n\t return (-1 + n) * 100;\n\t }", "function numberCountInPercentage() {\n var totalSize = ar.length;\n var count = {\n posCount: 0,\n negCount: 0,\n zeroCount: 0\n };\n ar.forEach(function(num) {\n if (num > 0) {\n count.posCount++;\n } else if (num < 0) {\n count.negCount++;\n } else {\n count.zeroCount++;\n }\n });\n console.log(Number(count.posCount / totalSize).toFixed(6));\n console.log(Number(count.negCount / totalSize).toFixed(6));\n console.log(Number(count.zeroCount / totalSize).toFixed(6));\n}", "function percentOf(num1, num2){\n num3 = num1/num2 * 100\n return num3 + \"%\"\n}", "function calculatePercent(percent, num) {\n return (percent * 100) / num\n}", "function percentageView(value){\n var showPercentage=(value/20)*100;\n return showPercentage;\n}", "function D(t){return t+\"%\"}", "function percentOf (num1, num2) {\n\tvar percent = (num1 / num2) * 100;\n\tconsole.log('3) ' + num1 + ' is ' + percent + '% of ' + num2 + '.');\n\treturn percent;\n}", "function mapProgressToSpeed(progress) {\n\tif (progress <= 0.5) return progress * 2;\n\telse if(progress <= 0.75) return (progress * 4) - 1;\n\telse return -1/((progress - 1) * 2)\n}", "function under() {\r\n var tot3 = 0;\r\n var tot5 = 0;\r\n for (var i = 0; i < 1000; i++) {\r\n if (i % 3 == 0) {\r\n tot3 += i;\r\n } else if (i % 5 == 0) {\r\n tot5 += i;\r\n }\r\n }\r\n return tot3 + tot5;\r\n}", "function percent(number, total) {\n return (number / total) * 100;\n}", "calculatePercent(data) {\n return Math.ceil((data - this.calculateWithDif()) / this.interactiveDomWidth * 100);\n }", "function crsmark(a)\r\n {\r\n let exm = avg(2)*(a/100) //exm = 85 * (a/100)\r\n return exm \r\n }", "function percentage (a, b){\n let P= Math.round(a/(a+b)*1000)/10;\n return \"your percentage is \" + P + \"%\";\n}", "function percentage(a,b){\n return (a/b)*100;\n}", "function createpercentagementors(){\n return numberOfmentors * 100 / numberofpeople;\n}", "function percentOf(num1, num2) {\n\treturn (num1*100)/num2 +\" of num2 \" \n\n}", "function threeFives(){\n var sum = 0;\n for(var i = 100; i < 4000001; i++){\n if(i % 3 === 0 || i % 5 === 0){\n sum += i;\n }\n }\n console.log(sum);\n return sum;\n}", "function avance(val, dist) {\n if (val * 100 < dist) return dist - val * 100\n return 0\n}", "promedio(){\n let promedio = 0;\n let i =0;\n for(let x of this._data){\n i = i++;\n promedio = promedio + x;\n }\n return promedio/i;\n }", "function Bonus(x,thres,perc) {\n\t\treturn x*(1+((x>thres)*(perc-1)))\n\t}", "function getPoints(accepted_count) {\n return (80 / (40 + accepted_count)).toFixed(2);\n}", "function pop_percent(a) {\n return value(a) / total;\n }", "function tip(bill, tipPercentage) {\n console.log((3574 / 100) * 20)\n}", "function percentageOfWorld1(populationPercent) {\n return populationPercent / 7900 * 100;\n}", "function calcPerc(count) {\n return (count / data.number_isoforms) * 100\n }", "function barPercent(current, max)\n\t{\n\t\treturn 100-5*Math.ceil(((current/max)*100)/5);\n\t}", "function toPc(n) {\n return n + '%';\n}", "function percent(array) {\n var nBeforeNum, z;\n var num = array.indexOf(\"%\");\n num -=1;\n\n //finds the start of the users percentage number (num)\n for(var i = num; i > 0; i--) {\n if(!array[i].match(/\\d\\.?/)) {\n num = i+1;\n break;\n }\n }\n\n //finds the start of the number before the percentage number (nBeforeNum)\n for(var j =num-2; j > 0; j--) {\n if(!array[j].match(/\\d\\.?/)) {\n nBeforeNum = j+1;\n break;\n }\n }\n\n //extracting the number before the percentage from the array\n var x = array.slice(nBeforeNum, num-1).join(\"\")/1;\n\n //extracting the percentage number from the array and converting to decimal\n var y = array.slice(num, array.length-1).join(\"\")/100;\n\n //correct handling of multiply/divide and add/subtract by percentages\n if(array[num-1] == \"*\" || array[num-1] == \"/\") {\n z = y.toString();\n } else {\n z = (x * y).toString();\n }\n\n //pushing z to the array and removing the percentage and percent symbol\n array.splice(num, array.length-num, z);\n\n return array;\n}", "function percentageOfWorld1(population) {\n return (population / 7900) * 100;\n}", "function percentageOfWorld1(population) {\n return (population / 7900) * 100;\n}", "function hp(B,I,E,L)\n{\n\treturn Math.floor(Math.floor(Math.floor(Math.floor(2 * B + I + Math.floor(E / 4)) * L) / 100) + L + 10);\n}", "function prob1(n){\r\n\tsum=0;\r\n sum=(3*(n/3)*((n/3)+1)/2)+(5*(n/5)*((n/5)+1)/2)-(15*(n/15)*((n/15)+1)/2);\r\n console.log(sum);\r\n}", "function J(t){return t+\"%\"}", "function calcPercent(target, total){ //Declare and define function\n return target / total * 100; //Code to be calculated and returned when the function is called\n}", "function vary(avg, percentage, min, max) {\n var value = avg * (1 + ((percentage / 100) * (2 * Math.random() - 1)));\n value = Math.max(value, min);\n value = Math.min(value, max);\n return value;\n}", "function vary(avg, percentage, min, max) {\n var value = avg * (1 + ((percentage / 100) * (2 * Math.random() - 1)));\n value = Math.max(value, min);\n value = Math.min(value, max);\n return value;\n}" ]
[ "0.6742586", "0.6714021", "0.6441697", "0.64266217", "0.64233595", "0.63799506", "0.6362564", "0.63609844", "0.6344192", "0.6338266", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.62694126", "0.6267188", "0.6266486", "0.62645006", "0.6250531", "0.623687", "0.62161374", "0.62140167", "0.61783427", "0.6169052", "0.6169052", "0.6169052", "0.61619985", "0.6149544", "0.6149471", "0.6142871", "0.6142372", "0.61190075", "0.61190075", "0.61190075", "0.61190075", "0.60807383", "0.60733134", "0.60603184", "0.6049575", "0.6047622", "0.6040987", "0.60396993", "0.60315514", "0.6030875", "0.6029327", "0.6021703", "0.6020209", "0.600214", "0.59935814", "0.5993274", "0.5988059", "0.5965267", "0.5957798", "0.59538543", "0.59491813", "0.5934519", "0.5923007", "0.5910563", "0.59061927", "0.5896329", "0.5894704", "0.5892917", "0.5882032", "0.5882032", "0.58796346", "0.5874512", "0.58724797", "0.5863934", "0.5850739", "0.5850739" ]
0.0
-1
Generate random values for the gauge
function random() { let value = Math.floor(Math.random() * maxValue * 0.4) + maxValue * 0.8; chart.arrows[0].setValue(value); chart.axes[0].setTopText(Math.round(value).toLocaleString('en-us') + " kW/h"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function creategemValues() {\n oneValue = Math.floor(Math.random() * 12 + 2);\n twoValue = Math.floor(Math.random() * 12 + 2);\n threeValue = Math.floor(Math.random() * 12 + 2);\n fourValue = Math.floor(Math.random() * 12 + 2);\n}", "function generateVal() {\n return Math.floor((Math.random() * 100) + 1);\n }", "function newValues() {\n\tvalues = [];\n\tfor (var i = 0, t = 14; i < 4; i++) {\n\t\tvalues.push(Math.round(Math.random() * t) + (i + 1));\n\t}\n}", "function randomValues() {\n anime({\n targets: '#dot, #dot2, #dot3, #dot4, #dot5, #dot6, #dot7, #dot8',\n translateX: function() {\n return anime.random(0, 20);\n },\n\n translateY: function() {\n return anime.random(0, 20);\n },\n\n easing: 'easeInOutQuad',\n duration: 2050,\n complete: randomValues\n });\n}", "function CreateLottoValues() {\r\n return Math.floor(Math.random() * 90 + 1);\r\n }", "function chartValueGenerator(min, max, count) {\n chartValues = [];\n for (var i = 0; i < count; i++) {\n var value = Math.ceil((Math.random() * max) + min);\n chartValues[i] = value;\n }\n console.log('Chart Data :', chartValues);\n return chartValues;\n }", "function dataGenerator() {\r\n return {\r\n temperature: getRandomNumber(20,30),\r\n batteryLevel : getRandomNumber(80, 100),\r\n timeStamp : getTimeStamp(),\r\n msTime: Date.now()\r\n }\r\n}", "function randomValue(){\n return Math.floor( Math.random() * 40 );\n }", "function getRandomValue() {\n return (Math.random() * (0.9 - 0.2) + 0.2)\n}", "function randomCrystalValues () {\n//generate Purple Crystal random value\n crystalPurple = Math.ceil((Math.random() * 11) + 1);\n//generate Lavendar Crystal random value\n crystalLavender = Math.ceil((Math.random() * 11) + 1);\n//generate Blue Crystal random value\n crystalBlue = Math.ceil((Math.random() * 11) + 1);\n//generate White Crystal random value\n crystalWhite = Math.ceil((Math.random() * 11) + 1);\n}", "function randValue() {\n return (Math.floor(Math.random() * (1 + 5000 - 20))) + 10;\n }", "function crystalValues() {\n one = Math.floor(Math.random() * 12) + 1;\n two = Math.floor(Math.random() * 13) + 1;\n three = Math.floor(Math.random() * 12) + 1;\n four = Math.floor(Math.random() * 12) + 1;\n\n}", "function genValue(min, max) {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}", "function randomCrystalValue() {\n return Math.floor(Math.random() * 12) + 1;\n}", "function getRandomVal() {\n return Math.floor(Math.random() * 400);\n }", "static random () {\n return getRandomNumberFromZeroTo(500);\n }", "function addRandomValue() {\n widget.util.get( 'random', 'numbers' ).push( { value: Math.random() } );\n }", "function getRandomValue(){\r\n return values[Math.floor(Math.random() * 7)]\r\n}", "function generateRandomColors() {\r\n color1.value = getRandom();\r\n color2.value = getRandom();\r\n setGradient();\r\n}", "generate () {\n return Utils.getRandomVectorBetween(this.min, this.max)\n }", "function gen_random(){\r\n\treturn 0.3\r\n}", "update() {\r\n const max = 0.0001;\r\n const min = 0.00001;\r\n let increment = Math.random() * (max - min) + min;\r\n this.metric.labels(this.labels).inc(increment);\r\n }", "generate()\n {\n return Utils.getRandomVectorBetween(this.min, this.max);\n }", "function redValue(min,max){\n var min=1;\n var max=10;\nreturn Math.floor(Math.random()*(max-min+1)+min);\n}", "function setCrystalValues() {\n for (var i = 0; i < 4; i++) {\n crystalValues.push(Math.floor(Math.random() * 12) + 1);\n }\n}", "function generateTime() {\n return Math.max(0.18, Math.floor(Math.random() * 25) / 100);\n}", "function randomlizeCrystals() {\n blueValue = Math.floor(Math.random() * 12) + 1;\n greenValue = Math.floor(Math.random() * 12) + 1;\n redValue = Math.floor(Math.random() * 12) + 1;\n purpleValue = Math.floor(Math.random() * 12) + 1;\n}", "function randVal() {\r\n\tstag1 = Math.random() * 0.9 + 0.1;\r\n\tstag1 = stag1.toFixed(2);\r\n\t\r\n\tstag2 = Math.random() * 0.9 + 0.1;\r\n\tstag2 = stag2.toFixed(2);\r\n\t\t\r\n}", "update() {\r\n let value = 0;\r\n if(Math.random() > 0.8){\r\n value = 1;\r\n }\r\n if(Math.random() > 0.9){\r\n value = 2;\r\n }\r\n this.metric.labels(this.labels).set(value);\r\n }", "function rng () {\n return random()\n }", "function setCrystalVal () {\n var minVal = 1;\n var maxVal= 12;\n//gen random number between 19-120\n randomNumber = randomNumberGen(minScore, maxScore);\n//gen crystal values\n crystalOne = randomNumberGen (minVal, maxVal);\n crystalTwo = randomNumberGen (minVal, maxVal);\n crystalThree = randomNumberGen (minVal, maxVal);\n crystalFour = randomNumberGen (minVal, maxVal);\n}", "function gemValue() {\n var num = Math.floor((Math.random()) * 12 + 1);\n return num\n }", "function genColorVal(){\r\n return Math.floor(Math.random() * 256);\r\n }", "_generateRandomData() {\n var seriesData = [ [], [] ];\n var random = new Rickshaw.Fixtures.RandomData(40);\n \n for (var i = 0; i < 40; i++) {\n random.addData(seriesData);\n }\n\n return seriesData;\n }", "function generateRandomColorValues () {\n r = Math.round(Math.random() * (256));\n g = Math.round(Math.random() * (256));\n b = Math.round(Math.random() * (256));\n}", "function rand(){\n return Math.random()-0.5;\n }", "function randomizecrystalvalue (){\n plumbusvalue = Math.floor(Math.random() * 12) + 1;\n defensevalue = Math.floor(Math.random() * 12) + 1;\n speedvalue = Math.floor(Math.random() * 12) + 1;\n megavalue = Math.floor(Math.random() * 12) + 1;\n console.log(\"Values in order: Plumbus, Defense, Speed, Mega\");\n console.log(plumbusvalue, defensevalue, speedvalue, megavalue);\n}", "function generateWeatherData() {\n const minTemp = 20;\n const maxTemp = 25;\n const minHum = 35;\n const maxHum = 45;\n\n let temp = minTemp;\n let hum = minHum;\n\n console.log(`Starting generation of weather data`);\n setInterval(function(){ \n \n // Generate new temperature\n let tempStep = +(getRandomValue(-5, 5)/10).toFixed(2);\n if(temp + tempStep > maxTemp || temp + tempStep < minTemp) {\n tempStep*=-1;\n }\n temp+=tempStep;\n\n client.publish('weather/temperature', JSON.stringify({'value': temp, 'timestamp': Date.now}));\n\n // Generate new humidity\n let humStep = +(getRandomValue(-2, 3)/10).toFixed(2);\n if(hum + humStep > maxHum || hum + humStep < minHum) {\n humStep*=-1;\n }\n hum+=humStep;\n\n client.publish('weather/humidity', JSON.stringify({'value': hum, 'timestamp': Date.now}));\n\n\n }, 3000);\n}", "function createElectricityRequirement(){\n return 4 + Math.ceil(Math.random()*16); //uniform between 5 and 20 units\n}", "function Crystal() {\n this.value = Math.floor(Math.random() * 12) + 1;\n }", "function rng() {\n return random();\n }", "function rng() {\n return random();\n }", "_getRandomValue(lower, upper) {\n return Math.floor(Math.random() * (upper - lower)) + lower;\n }", "function gen() {\nfor (var i = 0; i < stuff; i++) {\n return randomValue\n }\n}", "function rng() {\n return random();\n }", "function rng() {\n return random();\n }", "function randomValue(){\n return Math.round(Math.random() * 2)\n}", "function getRandomTileValue() {\n return Math.random() < 0.9 ? 2 : 4;\n}", "function RandVal()\n{\n\trand = Math.floor(Math.random() * MAX) + MIN; //Chooses a random number from the ranges of MIN and MAX.\n}", "function randomValue(value){\n return Math.floor(Math.random()*value +1)\n}", "rando() {\n randomNum = Math.floor(Math.random() * 20);\n }", "function getCrystalValue(){\n let min = Math.ceil(1);\n let max = Math.floor(12);\n crystalValue = Math.floor(Math.random() * (max - min + 1)) + min;\n return crystalValue;\n}", "function getRandomValue() {\n var x = Math.random();\n if(x > 0.7)\n x = 4;\n else\n x = 2;\n return x;\n }", "function genRand () {\n var random = Math.ceil(Math.random()*52)\n return random\n}", "function generator() {\n targetNumber = Math.floor(Math.random() * 140) + 1\n $(\"#target-number\").text(\"Target Number: \" + targetNumber);\n crystal1Math = Math.floor(Math.random() * 12) + 1\n crystal2Math = Math.floor(Math.random() * 12) + 1\n crystal3Math = Math.floor(Math.random() * 12) + 1\n crystal4Math = Math.floor(Math.random() * 12) + 1\n }", "generatePoints() {\n this.points = [];\n this.currPointY = [];\n var i;\n var min = 0.1;\n var max = 0.98;\n for(i = 0; i < this.numPoints; i++ ){\n this.points[i] = Math.random() * (max - min) + min;\n this.currPointY[i] = 0;\n }\n this.poi = -1; //reset\n }", "function randomNumberGenerator(){\n randomNumber = Math.floor(Math.random() * (120 - 19 + 1)) + 19;\n $(\"#random-number\").html(randomNumber);\n\n\n redNumber = Math.floor(Math.random() * 12) + 1;\n\n blueNumber = Math.floor(Math.random() * 12) + 1;\n\n yellowNumber = Math.floor(Math.random() * 12) + 1;\n\n greenNumber = Math.floor(Math.random() * 12) + 1;\n\n //Not needed for gameplay. Console.logs all random values\n consoleLog();\n }", "function genNextValue(prevValue, min, max) {\n var value = prevValue + ((max - min) * (Math.random() - 0.5)) * 0.03;\n value = Math.max(min, Math.min(max, value));\n return Math.round(value * 10) / 10;\n}", "__RANDOM_VALUE() {\n function getRandomInt(min, max) {\n return Math.floor(Math.random() * (max - min)) + min;\n }\n return getRandomInt(1, 5);\n }", "function assignCrystalPoints() {\n $(\".crystalimg\").each(function () {\n var crystalPoints = Math.floor(Math.random() * 11) + 1;\n $(this).attr(\"data-value\", crystalPoints);\n console.log(crystalPoints);\n })\n }", "function crystalRandom(min, max) {\nreturn Math.floor(Math.random() * (12 - 1 + 1)) + 1;\n}", "function getRandomStat(lower, upper){\n lower = Math.ceil(lower);\n upper = Math.floor(upper);\n return Math.floor(Math.random() * (upper - lower)) + lower;\n}", "function genRandomCrystalNums(){ \n for(var i=0; i<numCrystals; i++){\n crystalValues[i] = Math.ceil(Math.random()*12);\n }\n console.log(crystalValues);\n}", "function randomFloat(min, max){\r\n\treturn Math.random() * (max - min) + min;\r\n} // END - Random value", "function randomNumberGenerator(){\n return Math.floor(Math.random()*1000);\n }", "function random() {\n\treturn ((Math.random()*99)+1).toFixed();\n}", "function random () {\n return MIN_FLOAT * baseRandInt();\n }", "function crystalNumGenerator () {\n\t\t\trandomCrystal = Math.floor(Math.random() * 12 + 1);\n\t\t}", "function getRandomColorIncrementValue() {\n return calcRndGenMinMax(1, 8);\n }", "function randomRgbVal() {\n let rValue = Math.floor(Math.random() * 256);\n let gValue = Math.floor(Math.random() * 256);\n let bValue = Math.floor(Math.random() * 256);\n return `rgb(${rValue}, ${gValue}, ${bValue})`;\n}", "function randomValue(){\r\n\t\t//get now moment in format \"gg/mm/aaaa hh:mm:ss\"\r\n\t\tvar today = new Date(),\r\n\t\t\tnow = today.getDate()+\"/\"+today.getMonth()+1+\"/\"+today.getFullYear()+\" \"+today.getHours()+\":\"+today.getMinutes()+\":\"+today.getSeconds();\r\n\t\t\r\n\t\tif(!first){\r\n\t\t//prepare values for storage in a table\r\n\t\tvar tableDiv = '<tr>'+\r\n\t '<td>'+$(\"#data_time\").text()+'</td>'+\r\n\t '<td>'+$(\"#temp_wrap > strong\").text()+'</td>'+\r\n\t '<td>'+$(\"#CO2_wrap > strong\").text()+'</td>'+\r\n\t '<td>'+$(\"#light_wrap > strong\").text()+'</td>'+\r\n\t '<td>'+$(\"#noise_wrap > strong\").text()+'</td>'+\r\n\t '</tr>';\r\n\t\t}\r\n\t\t\r\n\t\t// Populate table with data\r\n\t\t$(\"#historical_data_table > tbody\").prepend(tableDiv);\r\n\t\t\r\n\t\t// Set new random data in \"Data for: \" section\r\n\t\t$(\"#data_time\").text(now);\r\n\t\t$(\"#temp_wrap > strong\").text(Math.floor(Math.random() * 6) + 10);\r\n\t\t$(\"#CO2_wrap > strong\").text(Math.floor(Math.random() * 11) + 30);\r\n\t\t$(\"#light_wrap > strong\").text(Math.floor(Math.random() * 80001) + 20000);\r\n\t\t$(\"#noise_wrap > strong\").text(Math.floor(Math.random() * 11) + 41);\r\n\t\t\r\n\t\tfirst = false;\r\n\t}", "function getRandomValue(range) {\n return Math.round(Math.random() * (range - 1));\n}", "function generateValue(range = 100) {\n let randomFloat = Math.random() * range;\n let randomInt = Math.floor(randomFloat);\n return randomInt;\n}", "function getRDValue(){\n\tvar num = Math.random();\n\tif(num < 0.5){\n\t\treturn 2;\n\t}\n\treturn 4;\n}", "newRandom()\n {\n super.newRandom();\n\n this.data = [];\n\n // random integers 10-90\n let random = d3.randomInt(10, 91);\n for(let i = 0; i < this.features.length; i++)\n {\n this.data[i] = random();\n }\n }", "function randomNumberGen() {\n\t targetScore = Math.floor(Math.random() * 102) + 18; //set the range\n\t //create a random number generator and fill the information in from there.\n\t $(\"#d3LblTargetScore\").text(targetScore); //random number pushed in.\n\t}", "function init() {\n\t// Settings to provide to element\n\tvar settings = {\n\t\tsize: 300,\n\t\tclipWidth: 300,\n\t\tclipHeight: 300,\n\t\tringWidth: 60,\n\t\tmaxValue: 100,\n\t\ttransitionMs: 1000,\n\t};\n\n\t// ID of div to add element to\n\tvar targetID = '#speed-gauge';\n\tvar speedGauge = gauge(targetID, settings);\n\tspeedGauge.render();\n\n\n\t// ID of div to add element to\n\tvar targetID2 = '#battery-gauge';\n\tvar batteryGauge = gauge(targetID2, settings);\n\tbatteryGauge.render();\n\n\n/*\nDont need this since the gauge just needs '.render' above\n*/\n// \t// Repeat every 16 ms\n// \tsetInterval(function(){\n// \t\texampleElement.draw(targetID);\n// \t}, 16);\n\n\t// Data to be sent to the element\n\tvar data = 0;\n\n\t// Picks random setpoint and increments data util setpoint is reached\n\tvar setPoint = 0;\n\tvar increment = 1;\n\tfunction simulatePedal() {\n\t\tif (Math.abs(setPoint - data) < increment) { // reset setpoint\n\t\t\tsetPoint = Math.round(Math.random() * 100); // int from 0 to 100\n\t\t\tincrement = 3 * (Math.random() + 0.5); \t\t\t// float between 0.5 and 3\n\t\t\tconsole.log(\"Value :\\t\" + data +\n\t\t\t\t\t\t\t\t\t\"\\tSet Point :\\t\" + setPoint +\n\t\t\t\t\t\t\t\t\t\"\\tIncrement :\\t\" + increment);\t\t// debug\n\t\t} else if (data < setPoint) {\n\t\t\tdata += increment;\n\t\t} else {\n\t\t\tdata += -1*increment;\n\t\t}\n\t\treturn data;\n\t}\n\n\t// Update every 50 ms\n\tvar speedData = 0;\n\tvar batteryData = 0;\n\tsetInterval(function(){\n\t\t// Different ways to generate data\n\t\tbatteryData = (batteryData + 0.5) % 100; // count from 1 to 100\n\t\tspeedData = simulatePedal(); // updates data\n\t\tspeedGauge.update(speedData);\n\t\tbatteryGauge.update(100 - batteryData);\n\t}, 50);\n}", "function getRandomValue() {\n return Math.random() * 10 >= 8 ? 4:2;\n }", "function random() {\n return Math.round(Math.random() * 20);\n}", "function RF(value){\n return Math.floor(Math.random() * (value))\n}", "function getRandom(min, max) {return Math.random() * (max - min) + min;}", "function getRandomArbitrary(min, max, decPoints){\n\tvar n = (decPoints === 0 ? 0 : decPoints || 20)\n\treturn parseFloat((Math.random() * (max - min) + min).toFixed(n))\n}", "function generateRandomPoints() {\n var numPoints = getRandom(6, 180); // Math.round(Math.pow(30, Math.random()) * 6);\n var points = [];\n for (var i = 0; i < numPoints; i++) {\n points.push({\n x: getRandomBetween(0, 100),\n y: getRandomBetween(0, 100),\n });\n }\n\n return points;\n }", "function random(){\n\t return random.get();\n\t }", "function random(){\n\t return random.get();\n\t }", "range(min, max) {\n return lerp(min, max, Math.random())\n }", "function newButValue() {\n picOne = Math.floor(Math.random() * 12) + 1;\n picTwo = Math.floor(Math.random() * 12) + 1;\n picThree = Math.floor(Math.random() * 12) + 1;\n picFour = Math.floor(Math.random() * 12) + 1;\n}", "function getRandom() {\n\treturn Math.random();\n}", "function distributeNumbers() {\n blueCrystal.attr(\"value\", randomNumbers[0]);\n redCrystal.attr(\"value\", randomNumbers[1]);\n purpleCrystal.attr(\"value\", randomNumbers[2]);\n blackCrystal.attr(\"value\", randomNumbers[3]);\n}", "update() {\r\n let value =\r\n this.capacity * ((Math.random() - 0.5) * this.pctfree + this.pctfree);\r\n this.metric.labels(this.labels).set(value);\r\n }", "function updateRandomValues() {\n for (var prop in CHARS) {\n var characteristic = CHARS[prop];\n\n if (!characteristic.editable)\n continue;\n\n // Depending on type of value, use either randInt or randFloat\n if (characteristic.type === VALUE_TYPE.floatValue)\n var value = randFloat(characteristic);\n else if (characteristic.type === VALUE_TYPE.integerValue)\n var value = randInt(characteristic);\n\n updateValue(getElement(characteristic.id), value);\n }\n}", "range(max, min){\n let num = Math.round(Math.random()*(min-max)+max);\n return num;\n}", "function update() {\n if (Math.random() > .5) {\n return Math.round(Math.random() * 100);\n } else {\n return (Math.random() * 100).toFixed(1);\n }\n }", "getSalary() {\n return Math.floor(Math.random() * 1000);\n }", "draw({\n data\n }, opt) {\n for (let i = 0; i < data.length; i += 4) {\n if (Random.next() > 0.90) {\n data[i] = data[i + 1] = data[i + 2] = this.config.value;\n data[i + 3] = 255;\n }\n }\n }", "function randomcrystalnumber()\n{\n \n increment = Math.round(Math.random()*12)+1;\n}", "function getRandomData() {\r\n if (data.length > 0) data = data.slice(1);\r\n // do a random walk\r\n while (data.length < totalPoints) {\r\n var prev = data.length > 0 ? data[data.length - 1] : 50;\r\n var y = prev + Math.random() * 10 - 5;\r\n if (y < 0) y = 0;\r\n if (y > 100) y = 100;\r\n data.push(y);\r\n }\r\n // zip the generated y values with the x values\r\n var res = [];\r\n for (var i = 0; i < data.length; ++i) res.push([i, data[i]])\r\n return res;\r\n }", "random() {\n return Math.floor( Math.random() * 100 )\n }", "function getRandomData() {\n if (data.length > 0) data = data.slice(1);\n // do a random walk\n while (data.length < totalPoints) {\n var prev = data.length > 0 ? data[data.length - 1] : 50;\n var y = prev + Math.random() * 10 - 5;\n if (y < 0) y = 0;\n if (y > 100) y = 100;\n data.push(y);\n }\n // zip the generated y values with the x values\n var res = [];\n for (var i = 0; i < data.length; ++i) res.push([i, data[i]])\n return res;\n }", "function getRandomData() {\n if (data.length > 0) data = data.slice(1);\n // do a random walk\n while (data.length < totalPoints) {\n var prev = data.length > 0 ? data[data.length - 1] : 50;\n var y = prev + Math.random() * 10 - 5;\n if (y < 0) y = 0;\n if (y > 100) y = 100;\n data.push(y);\n }\n // zip the generated y values with the x values\n var res = [];\n for (var i = 0; i < data.length; ++i) res.push([i, data[i]])\n return res;\n }" ]
[ "0.7302268", "0.7206264", "0.71878165", "0.7127715", "0.7121928", "0.70863444", "0.70213896", "0.70187676", "0.6965383", "0.6933345", "0.69160336", "0.6881424", "0.68804747", "0.6871457", "0.68393356", "0.68283546", "0.67420745", "0.6732205", "0.67090523", "0.668194", "0.6679306", "0.6642455", "0.66117895", "0.6581113", "0.6579744", "0.6539671", "0.6538101", "0.65073955", "0.650306", "0.64793587", "0.6476391", "0.64711535", "0.64650965", "0.64624965", "0.64482045", "0.64373964", "0.6432202", "0.6416033", "0.64118636", "0.63837963", "0.63790196", "0.63790196", "0.6377751", "0.6358905", "0.6343779", "0.6343779", "0.63391626", "0.63321614", "0.63279897", "0.6324451", "0.6321451", "0.63188225", "0.6318654", "0.6313288", "0.6309911", "0.63085407", "0.6306763", "0.63027257", "0.62935364", "0.6291874", "0.6290065", "0.6272467", "0.6271109", "0.6259519", "0.6251248", "0.6246061", "0.62456375", "0.6242595", "0.62417495", "0.6229086", "0.6219401", "0.62187564", "0.621544", "0.6215102", "0.62142235", "0.6212869", "0.62116337", "0.6207865", "0.6204782", "0.62016344", "0.62012213", "0.6197564", "0.6191409", "0.6191047", "0.6191047", "0.6184553", "0.61833364", "0.6178527", "0.617692", "0.6175558", "0.6175541", "0.6171879", "0.616697", "0.6166375", "0.6164651", "0.6162926", "0.6162569", "0.6161998", "0.6157394", "0.6155685" ]
0.6871723
13
only referenced locally for async methods; could export in basic creators somewhere else to be loaded into a separate async actions file
function fetchOrganizationsRequest(requested) { return { type : ActionTypes.FETCH_ORGANIZATIONS_REQUEST, requested }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static async method(){}", "async method(){}", "async init () {}", "async init() {\n\n }", "async init() {}", "async init() {}", "async function asyncWrapperFunction() {\r\n await htmlRouting();\r\n await videoRouting();\r\n const data = await dataProcessing();\r\n const nodes = await nodesGetting();\r\n dynamic(data,nodes);\r\n display(data,nodes);\r\n}", "async function MyAsyncFn () {}", "async setup() { }", "AsyncCode()\n {\n\n }", "async function makerequest() {\r\n \r\n}", "async created() {\n\n\t}", "async created() {\n\n\t}", "static LoadFromFileAsync() {}", "async function test() {}", "async init( callback ) {\n throw \"implement me!\";\n }", "async postCreate () {\n\t}", "function async_io_normal(cb) {\n\n}", "async init () {\r\n return;\r\n }", "loadReactions() {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function* () {\n });\n }", "async initialize() {\n\n }", "async initialize() {\n\n }", "createAction() {}", "async run() {\n }", "async function foo() {\n return 1\n}", "async init () {\r\n debug.log('called init');\r\n return;\r\n }", "constructor() {\n\t\treturn (async() => {\n\t\t\treturn this;\n\t\t})();\n\t}", "constructor() {\n\t\treturn (async() => {\n\t\t\treturn this;\n\t\t})();\n\t}", "constructor() {\n\t\treturn (async() => {\n\t\t\treturn this;\n\t\t})();\n\t}", "async function myFunc() {\n return 'Hello';\n}", "async asyncActions({dispatch, commit}, actions){\n for(var index in actions)\n await dispatch(actions[index])\n }", "function actionCreator() {\n return action\n}", "async function say() {\n}", "async genAccomodations(){\n //Not yet implemented\n }", "async function f(){\n return something\n}", "async function init() {\n await createPost({ title: 'Post Three', body: 'This is post three' });\n\n getPosts();\n }", "async function fn(){ //This is the newer way of doing an async function\n return 'hello';\n}", "async function myFunc() {\n // Function body here\n }", "async function asyncFn(){\n\n return 1;\n}", "function actionCreator(){\n return action;\n }", "async function startUnstable(){\n\n}", "async init(){}", "async function bar(){\r\n\tconsole.log(\"bar\")\r\n}", "async runTest() {}", "async function asyncFunction(arg) {\r\n return arg;\r\n}", "async function init() {\n // this mean, we wait till createPost is done before getting them\n\tawait createPost({ title: 'post three', body: 'this is post three' });\n\tgetPost()\n}", "function actionCreator() {\n return action\n }", "async started() {}", "async started() {}", "async started() {}", "async started() {}", "async started() {}", "function isAsync (action) {\n return !!action.execAsync;\n}", "async function miFuncionConPromesa ()\r\n{\r\n return 'saludos con promesa y async';\r\n}", "async function asynFunc() {\r\n await createPost(\"title#3\", \"body#3\");\r\n getPosts();\r\n}", "async *[Symbol.asyncIterator]() {}", "async function init(){\n await createPostPromise({title:'post six',body:'this is post six'})\n .then(getPosts)\n .catch(err=>console.log(err))\n}", "function myAsyncAction(data) {\n return async(dispatch) => {\n // this is a timeout wrapped in a promise to mock an async operation\n await new Promise((resolve, reject) => {\n setTimeout(() => {\n dispatch(myPlainAction(data))\n resolve()\n }, 1000)\n })\n }\n}", "function actionCreator() {\n return action;\n }", "async function miFuncionConPromesa(){\n return \"Saludos con promeso y async\";\n}", "function main() {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var sourceFile, generatedFileName, apiName, error_1;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _b.trys.push([0, 2, , 3]);\n return [4 /*yield*/, Ambrosia.initializeAsync(Ambrosia.LBInitMode.CodeGen)];\n case 1:\n _b.sent();\n sourceFile = Utils.getCommandLineArg(\"sourceFile\");\n generatedFileName = (_a = Utils.getCommandLineArg(\"generatedFileName\", \"TestOutput\")) !== null && _a !== void 0 ? _a : \"TestOutput\";\n apiName = Path.basename(generatedFileName).replace(Path.extname(generatedFileName), \"\");\n // If want to run as separate generation steps for consumer and publisher\n //Meta.emitTypeScriptFileFromSource(sourceFile, { fileKind: Meta.GeneratedFileKind.Consumer, mergeType: Meta.FileMergeType.None, emitGeneratedTime: false, generatedFileName: generatedFileName+\"_Consumer\" });\n //Meta.emitTypeScriptFileFromSource(sourceFile, { fileKind: Meta.GeneratedFileKind.Publisher, mergeType: Meta.FileMergeType.None, emitGeneratedTime: false, generatedFileName: generatedFileName+\"_Publisher\" });\n // Use this for single call to generate both consumer and publisher\n Meta.emitTypeScriptFileFromSource(sourceFile, { apiName: apiName, fileKind: Meta.GeneratedFileKind.All, mergeType: Meta.FileMergeType.None, emitGeneratedTime: false, generatedFilePrefix: generatedFileName, strictCompilerChecks: false });\n return [3 /*break*/, 3];\n case 2:\n error_1 = _b.sent();\n Utils.tryLog(error_1);\n return [3 /*break*/, 3];\n case 3: return [2 /*return*/];\n }\n });\n });\n}", "async function named_async_resolve() {\n return 42;\n }", "AsyncProcessResponse() {\n\n }", "async function fetchUser() {\n return \"abc\";\n}", "async initialize()\n\t{ \n\t\tthrow new Error(\"initialize() method not implemented\");\n\t}", "load() {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function* () { });\n }", "function AbstractPromiseExecutor() {}", "function createActionCreator(shape) {\n \n const { intention, method, path } = shape;\n const types = ['REQUEST', 'SUCCESS', 'FAILURE'].map(t => `${t}_${intention.replace(/[A-Z]/g, '_$&')}`.toUpperCase());\n \n const actionCreator = params => {\n log('.A.', intention, params ? JSON.stringify(params) : '');\n const promise = new Promise((resolve, reject) => {\n \n // Server : direct db middleware call\n if (isServer) require('../server/database/databaseMiddleware')(intention, params).then(resolve, reject);\n \n // Client : API call through XMLHttpRequest\n else {\n const xhr = new XMLHttpRequest();\n const isPost = method === 'post' || method === 'put';\n const pathWithQuery = isPost || !params ? path : appendQuery(path, params);\n \n log(`+++ --> ${method} ${path}`, params);\n \n xhr.onerror = err => reject({ \n intention,\n status: 0, \n response: 'An error occured, check your internet connection: ' + err.message, \n });\n \n xhr.open(method, pathWithQuery);\n \n xhr.onload = () => {\n const { status, response } = xhr;\n let data;\n try {\n data = JSON.parse(response);\n status === 200 ? resolve(data) : reject({ status, intention, response });\n }\n catch(e) {\n reject({ status, intention, response });\n }\n };\n \n if (isPost) {\n xhr.setRequestHeader(\"Content-Type\", \"application/json;charset=UTF-8\");\n xhr.send(JSON.stringify(params));\n }\n else xhr.send();\n }\n });\n \n promise.then(\n result => !isServer ? log(`+++ <-- ${intention}`, result) : 0,\n ({ status, response, intention }) => {\n log('!!! API Action error', intention);\n log('!!! params', params);\n log('!!! response', status, response);\n });\n \n return { types, params, promise };\n };\n \n // getters\n actionCreator.getTypes = () => types;\n actionCreator.getShape = () => shape;\n \n return actionCreator;\n}", "static LoadFromMemoryAsync() {}", "async startup() {\n }", "function actionCreator(action) {\n return action\n}", "async onLoad() {}", "async function main() {\n // await in front of whatever is resolved from a fct and then returned into a const for instance\n const name = await myPromise;\n name;\n}", "async started() {\n\n\t}", "async started() {\n\n\t}", "async started() {\n\n\t}", "async started() {\n\n\t}", "async started() {\n\n\t}", "async started() {\n\n\t}", "async started() {\n\n\t}", "async function createTeam() {\n\n}", "callback (name, handler) {\n return async (next, ctx, msg) => {\n if (msg.name === name) {\n try {\n let response = await handler(ctx, ...msg.args);\n let message = {\n id: msg.id,\n response\n };\n this.socket.emit(`__${this.namespace}_return__`, message);\n } catch (err) {\n if (this.debug)\n return await next(err);\n else\n throw err;\n }\n } \n return await next();\n }\n }", "async function greet() {\n return 'HELLO!!!'\n}", "create () {}", "create () {}", "createJobs () {\n }", "create() {\n\t}", "_createAction(evt) {\n if (S.getProject().getFunction(evt.options.paths[0]) === undefined) {\n return new BbPromise(function(resolve, reject) {\n reject(`MochaPluginError: Function ${evt.options.paths[0]} does not exist in your project`);\n });\n }\n\n return createTest(evt.options.paths[0]);\n }", "function ACTION() {}", "async function init() {\n try {\n const result = await createPost({ title: 'Post three', body: 'this is post three'});\n getPosts();\n }\n catch(error) {\n console.error(error);\n }\n}", "async function myAsyncFunction(arg) {\n return `Your argument is: ${arg}`\n}", "async begin() {\n return;\n }", "async function f() {\n return 1;\n }", "async function f() {\n return 1;\n }", "function createTask(v,t){\r\n \r\n }", "async function createCustomer() {\n\n}", "async onFinished() {}", "createdCallback() {}", "chooseActionLoop(projectLibrary) {\n return __awaiter(this, void 0, void 0, function* () {\n const taskContext = { projectLibrary };\n const runner = new TaskRunner_1.TaskRunner(taskContext);\n runner.addTask(this.chooseActionTask);\n while (!runner.done) {\n yield runner.run();\n }\n });\n }", "create() {}", "create() {}" ]
[ "0.7208191", "0.6556505", "0.6473654", "0.6440973", "0.6331468", "0.6331468", "0.6171207", "0.609891", "0.6090381", "0.60726297", "0.6059348", "0.6027579", "0.6027579", "0.6003493", "0.59877723", "0.5961575", "0.59286803", "0.592296", "0.5906168", "0.5889659", "0.58638275", "0.58638275", "0.5852093", "0.5836918", "0.5830773", "0.5829114", "0.57555103", "0.57555103", "0.57555103", "0.57543373", "0.57493025", "0.574306", "0.5708966", "0.5682374", "0.5668738", "0.5668726", "0.56521505", "0.56368", "0.5633153", "0.56076175", "0.560736", "0.5595478", "0.5581127", "0.5566143", "0.5557173", "0.5541925", "0.5538081", "0.55349135", "0.55349135", "0.55349135", "0.55349135", "0.55349135", "0.55273294", "0.5518895", "0.5518434", "0.55136836", "0.55025095", "0.550106", "0.5488418", "0.54855245", "0.54847556", "0.54592705", "0.54580164", "0.545598", "0.54543066", "0.5454101", "0.5452523", "0.5438258", "0.54381794", "0.54280555", "0.54186493", "0.5416257", "0.5416207", "0.54160255", "0.54160255", "0.54160255", "0.54160255", "0.54160255", "0.54160255", "0.54160255", "0.5407059", "0.540687", "0.540518", "0.54014665", "0.54014665", "0.5390845", "0.5387227", "0.5380984", "0.5366848", "0.53634024", "0.535736", "0.53558725", "0.5355584", "0.5355584", "0.5351591", "0.53432924", "0.53365296", "0.5330371", "0.5328095", "0.5327573", "0.5327573" ]
0.0
-1
Make a function named `isTrue(boolean)`
function isTtrue(bool){ return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function myBoolean() {\n return true;\n}", "function myBooleanIf(boolean) {\n return boolean;\n}", "function Boolean() {}", "function isSomethingTrue(x){\n return x;\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"yes, it´ss true\";\n }\n return \"no,it´s false\";\n}", "function isTrue(bool){\n \n return (Object.is(true,bool));\n\n }", "function isTrue(bool) {\n return bool;\n }", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) { \n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n\n return \"No, It's false\";\n}", "function isTrue(boolean){\n return boolean == 1;\n}", "function myBooleanIf(boolean) {\n if (boolean) {\n return true;\n } else {\n return false;\n }\n}", "function boo(bool) {\n if(typeof(bool) === 'boolean') {\n return true;\n } else \n return false;\n}", "function boo(bool) {\n if (typeof bool == 'boolean') {\n return true;\n } else {\n return false;\n }\n}", "function booWho(bool) {\n return typeof bool === 'boolean'\n}", "function welcomeToBooleans() {\n return true; // return boolean value is true\n}", "function welcomeToBooleans() {\n return true; // Example\n}", "function TrueORFalse(isItTrue){\n if (isItTrue){\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function isTrue(value) {\n return value == \"true\" || value == true;\n }", "function booWho(bool) {\n return typeof bool === \"boolean\";\n}", "function booWho2(bool) {\n return typeof bool === 'boolean'? true:false\n}", "function myBooleanIf(boolean) {\n if (boolean) {\n return true;\n }\n return false;\n}", "function if_function(condition, true_res, false_res) {\n\n\n}", "isTrue(instance) {\n const validStyler = this.checkType('styler', instance);\n const validState = this.checkType('state', instance);\n const validProps = this.checkType('props', instance);\n const validContext = this.checkType('context', instance);\n let validFunction = true;\n\n if (this.func !== null) {\n validFunction = this.func(instance);\n }\n\n return validStyler && validState & validProps && validContext && validFunction;\n }", "function booWho(bool) {\n if (typeof bool === \"boolean\") {\n return true\n }\n return false;\n}", "function boo(bool) {\n if (typeof(bool) === \"boolean\") {\n return true;\n } else {\n return false;\n }\n }", "function booWho(bool) {\n return typeof bool === 'boolean' ? true : false\n}", "function Booleans(){\n return false;\n}", "function booWho(bool) {\n return typeof bool === 'boolean';\n}", "function mustBeTrue(boo){\n if(boo === true){\n return true;\n }else{\n return false;\n }\n}", "function CrearBoolValor(cadena) {\n if (cadena !== undefined) {\n if (cadena.toString().toUpperCase() === \"TRUE\") {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n}", "function boolean(x) {\n return function(y) {\n return function(b) {\n return b ? y : x;\n };\n };\n }", "function booWho(bool) {\n \n if (typeof(bool) === 'boolean') {\n console.log(bool + ' is a boolean');\n return true;\n } else {\n return false;\n }\n}", "boolean(value) {\n if (typeof (value) === \"boolean\") {\n return value;\n }\n if (typeof (value) === \"string\") {\n value = value.toLowerCase();\n if (value === \"true\") {\n return true;\n }\n if (value === \"false\") {\n return false;\n }\n }\n throw new Error(\"invalid boolean - \" + value);\n }", "boolean(value) {\n if (typeof (value) === \"boolean\") {\n return value;\n }\n if (typeof (value) === \"string\") {\n value = value.toLowerCase();\n if (value === \"true\") {\n return true;\n }\n if (value === \"false\") {\n return false;\n }\n }\n throw new Error(\"invalid boolean - \" + value);\n }", "function itsTrueOrFalse() {\r\n\r\n if ( its ) {\r\n\r\n console.log( \"hello\" );\r\n\r\n } else {\r\n\r\n console.log( \"bye\" );\r\n }\r\n}", "function getViewBool(isYes)\n\n{\n //TRUE\n if (isYes == 'Yes'\n )\n {\n //YES\n //Return True\n return true;\n \n }\n else\n {\n //NO\n //Return False\n return false;\n \n }; //end of IF [TRUE]\n \n}", "function welcomeToBooleans() {\n return true;\n}", "function welcomeToBooleans() {\n return true;\n}", "function isTrue(input) {\n\treturn input === true || input == \"true\";\n}", "function isBoolean(x) {\n return typeof x === \"boolean\";\n}", "function booleanify(val) {\n if (val === \"true\") return true;\n if (val === \"false\") return false;\n return val;\n}", "static boolean(value) {\r\n return new ContractParam(ContractParamType.Boolean, !!value);\r\n }", "function boolean(val) {\n return !!val;\n}", "function booWho(bool) {\n let type = typeof bool\n console.log(type);\n if(type==\"boolean\"){\n return true;\n }\n else{\n return false;\n }\n }", "function auxinIsTrue( variable ) {\n if( typeof(variable) === \"boolean\" ){\n return variable;\n }\n\n if( typeof(variable) === \"string\" ){\n variable = variable.toLowerCase();\n if( inArray( variable, ['yes', 'on', 'true', 'checked'] ) ){\n return true;\n }\n }\n // if is nummeric\n if ( !isNaN(parseFloat(variable)) && isFinite(variable) ) {\n return Boolean(variable);\n }\n\n return false;\n}", "function boolean(value) {\r\n return value === TRUE || value === FALSE;\r\n }", "isBoolean(val) {\n return typeof val === 'boolean';\n }", "function isBoolean (value) {\n var n = typeof (value)\n if (n === 'boolean') {\n console.log(true)\n } else {\n console.log(false)\n }\n}", "function truthiness(value) {\n if (value) {\n console.log( true );\n }else {\n console.log( false );\n }\n}", "function boolify(value) {\n return value == true || value == 'true';\n}", "function boolean() {\n return struct('boolean', value => {\n return typeof value === 'boolean';\n });\n}", "function boolean() {\n return struct('boolean', value => {\n return typeof value === 'boolean';\n });\n}", "function booleanify(val) {\n\t if (val === \"true\") return true;\n\t if (val === \"false\") return false;\n\t return val;\n\t}", "function booleanify(val) {\n\t if (val === \"true\") return true;\n\t if (val === \"false\") return false;\n\t return val;\n\t}", "function trueOrFalse(wasThatTrue){\r\n if (wasThatTrue) {\r\n return \"yes,That was true\"; \r\n }\r\n return \"That was false\";\r\n}", "function trueOrFalse(wasThatTrue){\r\n if (wasThatTrue) {\r\n return \"yes,That was true\"; \r\n }\r\n return \"That was false\";\r\n}", "function bs_isTrue(value) {\n var trueVals = new Array('true','on','y','yes',1,'1','ja','oui');\n if (value == '') return false;\n \n if (typeof(value) == 'string') value = value.toLowerCase();\n \n if (value == true) return true;\n\tfor (var i=0; i<trueVals.length; i++) {\n\t\tif (value == trueVals[i].toLowerCase()) return true;\n\t}\n\t\n return false;\n}", "function _if(bool, func1, func2) {\n if (bool)\n return (func1)();\n return (func2)();\n}", "function isBoolean(a) {\r\n return typeof a == 'boolean';\r\n}", "function isBoolean(val) {\n return typeof val == \"boolean\";\n}", "function booleanVal(bool) {\n if (typeof bool === \"boolean\") {\n console.log(\"true\")\n } else console.log(\"false\");\n }", "function BoolInterface(bool) {\n return bool;\n}", "function isBoolean(value) {\n return typeof value === \"boolean\";\n}", "function booWho(bool) {\n if (bool===true || bool===false) {\n return true;\n }\n else\n return false;\n}", "function isTrue(v) {\n if (!v) return false;\n v = v.toLowerCase();\n return v === 'yes' || v === 'true';\n}", "function isTrue(v) {\n if (!v) return false;\n v = v.toLowerCase();\n return v === 'yes' || v === 'true';\n}", "function truthy(truthy, func){\n if (truthy) {}\n func();\n }", "is_bool(val) {\n return this.is_true(val) || this.is_false(val);\n }", "function bool (value) {\n\t return typeof value === 'boolean'\n\t}", "function booWho(bool) {\n\tif (typeof bool === \"boolean\") {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "function booleanify(val) {\n\t if (val === \"true\" || val == 1) {\n\t return true;\n\t }\n\n\t if (val === \"false\" || val == 0 || !val) {\n\t return false;\n\t }\n\n\t return val;\n\t}", "function vtrue(vvar)\r\n{\r\n var tmp1=false;\r\n if (vvar==\"True\" || vvar==\"true\") { tmp1=true; }\r\n return tmp1;\r\n}", "function isBoolean(value) {\n return typeof value === 'boolean';\n}", "function TrueOrFalse (a){\n var a;\n if ( typeof a == \"string\") {\n return true;\n } else {\n return false;\n }\n}", "function myBooleanizer(v) {\r\n\t\treturn Boolean(v === 'true' | v);\r\n\t}", "function oneTrue(arg1, arg2){\n if(arg1 === true || arg2 === false){\n \treturn true;\n }\n}", "function _boolean(obj) {\n return exports.PREFIX.boolean + ':' + obj.toString();\n}", "function booWho(bool) {\r\n\treturn (bool === true || bool === false);\r\n}", "function booleanify(val /*: any*/) /*: boolean | any*/ {\n\t if (val === \"true\" || val == 1) {\n\t return true;\n\t }\n\n\t if (val === \"false\" || val == 0 || !val) {\n\t return false;\n\t }\n\n\t return val;\n\t}", "function isBoolean(item){\n\treturn typeof item === 'boolean';\n}", "function outTrueOrfalse(isItTrue) {\n\tif(isItTrue) {\n\t\treturn \"Yes, it's true\";\n\t}\n\treturn \"No, it's false\";\n}", "function isBoolean(boolean)\n{\n return typeof boolean == 'boolean';\n}", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if(bool === true || bool === false){\n \n return true;\n }\n else{\n return false;\n }\n return bool;\n}", "draw_If_True(fc)\n {\n if (DEBUG_MODE) console.log(typeof fc);\n if (typeof fc === \"boolean\")\n {\n this.bDrawable = fc;\n }\n else\n {\n // trusting that the parameter is a function\n this.bDrawable = fc();\n }\n }", "function booleanTransformer(v) {\n return v !== \"false\";\n}", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function bool(x) {\n\treturn (x === 1 || x === '1' || x === true || x === 'true');\n}", "enterTrueBoolean(ctx) {\n }", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if (bool === true) {\n return true;\n }\n else if (bool === false) {\n return true;\n }\n else {\n return false;\n }\n}", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if (bool === true) {\n return true;\n }\n else if (bool === false) {\n return true;\n }\n else {\n return false;\n }\n}", "function booWho(bool) {\n if(bool === false){return true}\n if(bool === true){ return true}\n return false;\n}", "function booWho(bool) {\n if (bool === true || bool === false) {\n return true;\n }\n return false;\n}", "function trueOrFalse(value) {\n if(value===true){\nreturn \"true\"\nconsole.log (\"true\")\n}\nelse{\n if(value===false){\n return \"false\"\n console.log (\"false\")\n } \n\n}\n \n}", "function welcomeToBooleans() {\n return false;\n}", "isBoolean(value) {\n return [true, false].includes(value);\n }" ]
[ "0.7214063", "0.721057", "0.70971394", "0.7060919", "0.70456284", "0.7031977", "0.7029641", "0.7013029", "0.70077807", "0.69793", "0.69496655", "0.68128514", "0.6784592", "0.676499", "0.674007", "0.67277616", "0.66881925", "0.6681328", "0.66734797", "0.6671486", "0.6656702", "0.6655176", "0.6606046", "0.6605687", "0.65980154", "0.65834445", "0.6574541", "0.65635633", "0.65381134", "0.65361357", "0.6517525", "0.64788085", "0.6407173", "0.6406567", "0.63852084", "0.63852084", "0.63728845", "0.6366143", "0.6349016", "0.6349016", "0.6348035", "0.6344931", "0.63354635", "0.63145983", "0.63062906", "0.6273315", "0.6247109", "0.62327605", "0.6231448", "0.6230673", "0.62224954", "0.62179863", "0.62134135", "0.62134135", "0.62061083", "0.62061083", "0.62014973", "0.62014973", "0.61973405", "0.6185676", "0.61807007", "0.61770594", "0.6167699", "0.6159891", "0.6157655", "0.6148849", "0.6147383", "0.6147383", "0.6123616", "0.6111394", "0.6103153", "0.6097245", "0.60960764", "0.6095743", "0.60856825", "0.60850185", "0.60839844", "0.60742736", "0.6068799", "0.60627174", "0.60565966", "0.6045024", "0.6039076", "0.60382736", "0.6021826", "0.60209364", "0.6011608", "0.60080117", "0.60080117", "0.60080117", "0.60080117", "0.6007197", "0.59820867", "0.5980027", "0.5980027", "0.5965325", "0.595888", "0.59566873", "0.59418523", "0.5938617" ]
0.62383515
47
console.log(isTtrue()) Make a function named `isFalse(boolean)`
function isFalse(bool){ return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"yes, it´ss true\";\n }\n return \"no,it´s false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) { \n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n\n return \"No, It's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function isTtrue(bool){\n return true;\n }", "function isFalse(boolean){\n return boolean == 0;\n}", "function Booleans(){\n return false;\n}", "function not(a){\r\n return (a === true) ? false :\r\n (a === false) ? true : error(not);\r\n}", "function sc_not(b) {\n return b === false;\n}", "function trueOrFalse() {\n if (fiveDayWeather === undefined) {\n return false;\n } else {\n return true;\n }\n }", "function notNot(bool) {\n return !!(bool);\n }", "function trueOrFalse() {\n if (todayWeather === undefined) {\n return false;\n } else {\n return true;\n }\n }", "function itsTrueOrFalse() {\r\n\r\n if ( its ) {\r\n\r\n console.log( \"hello\" );\r\n\r\n } else {\r\n\r\n console.log( \"bye\" );\r\n }\r\n}", "function TrueORFalse(isItTrue){\n if (isItTrue){\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function boolNot(value) {\n if (value === true) return false;\n else if (value === false) return true;\n else return value;\n}", "function isFalse(bool) {\n return !bool;\n }", "function trueOrFalse(wasThatTrue){\r\n if (wasThatTrue) {\r\n return \"yes,That was true\"; \r\n }\r\n return \"That was false\";\r\n}", "function trueOrFalse(wasThatTrue){\r\n if (wasThatTrue) {\r\n return \"yes,That was true\"; \r\n }\r\n return \"That was false\";\r\n}", "function booWho2(bool) {\n return typeof bool === 'boolean'? true:false\n}", "function booWho(bool) {\n return typeof bool === 'boolean' ? true : false\n}", "function Boolean() {}", "function trueOrFalse(value) {\n if(value===true){\nreturn \"true\"\nconsole.log (\"true\")\n}\nelse{\n if(value===false){\n return \"false\"\n console.log (\"false\")\n } \n\n}\n \n}", "function FalseSpecification() {}", "static boolToTrueFalse(value) {\n if (value === undefined) return undefined;\n if (value === null) return undefined;\n return value ? 'true' : 'false';\n }", "function welcomeToBooleans() {\n return false;\n}", "function booWho(bool) {\n return typeof bool === 'boolean'\n}", "function booWho(bool) {\n if (typeof bool === \"boolean\") {\n return true\n }\n return false;\n}", "function\nXATS2JS_bool_neg\n (b0)\n{ return !b0 ; }", "function booleanTransformer(v) {\n return v !== \"false\";\n}", "function outTrueOrfalse(isItTrue) {\n\tif(isItTrue) {\n\t\treturn \"Yes, it's true\";\n\t}\n\treturn \"No, it's false\";\n}", "function flse() {\r\n return { type: FALSE, toString: function () { return \"false\"; } };\r\n}", "function truthiness(value) {\n if (value) {\n console.log( true );\n }else {\n console.log( false );\n }\n}", "function booWho(bool) {\n if(bool === false){return true}\n if(bool === true){ return true}\n return false;\n}", "function boo(bool) {\n if(typeof(bool) === 'boolean') {\n return true;\n } else \n return false;\n}", "function removeFalseVar(value) {\n return Boolean(value);\n}", "function booWho(bool) {\n if (bool===true || bool===false) {\n return true;\n }\n else\n return false;\n}", "function booWho(bool) {\n /* if(bool === ture | bool === false) {\n return ture;\n } return false */\n return typeof bool === 'boolean';\n}", "function not(b){ return !b; }", "function boolean(val) {\n return !!val;\n}", "function toggleBooleanValueWithoutIf(data)\n{\n if(typeof data !== 'boolean'){\n return \"This function is meant to work wth boolean data only.\";\n } else {\n data = !data;\n return data;\n }\n}", "function booWho(bool) {\r\n\treturn (bool === true || bool === false);\r\n}", "function test_native_false_exact_string_false(){ assertFalse(false == 'false'); }", "function flse() {\r\n return { generalType: \"bool\", type: FALSE, toString: function () { return \"false\"; } };\r\n}", "function falseValues(value) {\n if (Boolean(value)) {\n return true;\n } else {\n return false;\n }\n }", "function booWho(bool) {\n return typeof bool === \"boolean\";\n}", "function boo(bool) {\n if (typeof(bool) === \"boolean\") {\n return true;\n } else {\n return false;\n }\n }", "function boo(bool) {\n if (typeof bool == 'boolean') {\n return true;\n } else {\n return false;\n }\n}", "function not(x) { return !x; }", "function bool_to_text(a,fls,tr) {\n\tif (typeof fls == \"undefined\") {\n\t\tfls = 'No';\n\t}\n\tif (typeof tr == \"undefined\") {\n\t\ttr = 'Yes';\n\t}\n\tif(a=='0'||a==0)\n\t\treturn fls;\n\treturn tr;\n}", "function isTrue(bool) {\n return bool;\n }", "function booWho(bool) {\n return typeof bool === 'boolean';\n}", "function not_FunctionFalse() {\n document.getElementById(\"Not\").innerHTML = !(20 >10);//not function showing false\n}", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if(bool === true || bool === false){\n \n return true;\n }\n else{\n return false;\n }\n return bool;\n}", "function not_Function(){\n document.getElementById(\"Not\").innerHTML=!(5>10) //not function, display true\n}", "function booWho(bool) {\n \n if (typeof(bool) === 'boolean') {\n console.log(bool + ' is a boolean');\n return true;\n } else {\n return false;\n }\n}", "function booWho(bool) {\n if (bool === true || bool === false) {\n return true;\n }\n return false;\n}", "function boolean(val) {\n\t return !!val;\n\t}", "function boolean(val) {\n\t return !!val;\n\t}", "enterFalseBoolean(ctx) {\n }", "function T(){\n\treturn true;\n}", "function isTrue(bool){\n \n return (Object.is(true,bool));\n\n }", "function welcomeToBooleans() {\n return true; // Example\n}", "function myBoolean() {\n return true;\n}", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if (bool === true) {\n return true;\n }\n else if (bool === false) {\n return true;\n }\n else {\n return false;\n }\n}", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if (bool === true) {\n return true;\n }\n else if (bool === false) {\n return true;\n }\n else {\n return false;\n }\n}", "function isFalsy(input){\n\n}", "function oppositeDay(boolean) {\n return !boolean;\n}", "function yeah_nope(bool) {\n return bool === true ? \"yeah\" : \"nope\";\n }", "function booWho(bool) {\n // What is the new fad diet for ghost developers? The Boolean.\n if (bool === true | bool === false) {\n return true;\n }\n return false;\n}", "function booWho(bool) {\n let type = typeof bool\n console.log(type);\n if(type==\"boolean\"){\n return true;\n }\n else{\n return false;\n }\n }", "static trueFalseToBool(value) {\n if (typeof value == 'string' && value.toLowerCase() == 'true') return true;\n if (typeof value == 'string' && value.toLowerCase() == 'false') return false;\n return undefined;\n }", "function booWho(bool) {\n\tif (typeof bool === \"boolean\") {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}", "function not_Function() {\r\n document.getElementById(\"not\").innerHTML = ! (10 < 5);//Returns true\r\n}", "function trueOrFalse(wasThatTrue) {\n\tif (wasThatTrue) {\n\t\treturn \"Yes, that was true\";\n\t}\n\treturn \"No, that was false\";\n}", "function isTrue(boolean){\n return boolean == 1;\n}", "function isTrue(value) {\n return value == \"true\" || value == true;\n }", "function trueOrFalse(wasThatTrue) {\n // Only change code below this line\n if (wasThatTrue) {\n return 'Yes, that was true';\n }\n return 'No, that was false';\n // Only change code above this line\n}", "function makeItTrue() {\n if (false) { // Fix this conditional\n return \"Yes, my dreams have come true! I'm a little pogchamp!\";\n } else {\n return '...';\n }\n}", "function mustBeTrue(boo){\n if(boo === true){\n return true;\n }else{\n return false;\n }\n}", "function welcomeToBooleans() {\n return true; // return boolean value is true\n}", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function defaultTrue(v) {\n return v === false ? false : true;\n }", "function not_Function() { //\"Not\" operators determine if something is false\r\n document.getElementById(\"Not\").innerHTML = !(20 > 10);\r\n\r\n}", "function isSomethingTrue(x){\n return x;\n}", "function trueOrFalse() {\n if (accountHist === undefined) {\n console.log('returned false')\n return false;\n } else {\n console.log('returned true')\n return true;\n }\n }", "function rewriteTrueFalse(node, state) {\n if (!node.prefix || node.operator !== \"!\" || node.argument.type !== \"Literal\") return\n if (node.argument.value === 0) {\n node.type = \"Literal\"\n node.value = true\n }\n if (node.argument.value === 1) {\n node.type = \"Literal\"\n node.value = false\n }\n}", "function vtrue(vvar)\r\n{\r\n var tmp1=false;\r\n if (vvar==\"True\" || vvar==\"true\") { tmp1=true; }\r\n return tmp1;\r\n}", "function getBooleanValue(s) {\r\n s = s.toLowerCase();\r\n if (s === 'false' || s === 'f' || s === 'no' || s === 'n' || s === 'off' || s === '0') {\r\n return false;\r\n }\r\n return true;\r\n}", "get boolValue() {}", "function welcomeToBooleans() {\n return true;\n}", "function welcomeToBooleans() {\n return true;\n}", "function returnFalse() {\n return false;\n }", "function not(x) {\n return !x;\n }", "function isNotFalsy(value) {\n\t\t return Boolean(value);\n\t }", "function returnFalse() {\n return false;\n }", "function truthyFalsey(arr){\nreturn \"anything\"\n}", "function notTrue(wrong1, wrong2) {\n return !wrong1 && !wrong2\n}" ]
[ "0.7304226", "0.71651804", "0.71545833", "0.71322954", "0.71314174", "0.71189004", "0.70679635", "0.70129466", "0.6970516", "0.69522035", "0.6923313", "0.6893958", "0.68898535", "0.68472606", "0.6825665", "0.6817069", "0.675288", "0.67489725", "0.67489725", "0.6729673", "0.67111486", "0.6688792", "0.66841036", "0.6668164", "0.6665647", "0.6603637", "0.66018283", "0.65624917", "0.65468496", "0.65463823", "0.6537662", "0.6519019", "0.6516736", "0.651065", "0.6506817", "0.6494013", "0.64930105", "0.6486989", "0.6475339", "0.6465275", "0.6462693", "0.6456109", "0.64521563", "0.6449022", "0.6445665", "0.64415485", "0.6423579", "0.6421392", "0.64102054", "0.6405749", "0.6401622", "0.639675", "0.638425", "0.63810194", "0.63791406", "0.6355892", "0.63494354", "0.63484854", "0.63484854", "0.63463145", "0.63385713", "0.63367885", "0.63348013", "0.6330951", "0.6327762", "0.6327762", "0.6313399", "0.63107586", "0.6299977", "0.62716484", "0.62709063", "0.62622017", "0.622635", "0.6223338", "0.6221808", "0.62190974", "0.6207637", "0.617843", "0.6175252", "0.61635137", "0.6152675", "0.61475646", "0.61475646", "0.61475646", "0.61475646", "0.61430866", "0.61407334", "0.6139418", "0.6125225", "0.6108913", "0.6108371", "0.60953665", "0.6079725", "0.6079725", "0.60773206", "0.60595423", "0.60557336", "0.60519534", "0.60496575", "0.6027475" ]
0.68307036
14
console.log(isFalse()) Make a function named `isTruthy(input)`, remember that values other than true will behave like true
function isTruthy(input){ return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isTruthy(input){\n return input == 1;\n}", "function isTruthy(input) {\n return input ? 1 : 0;\n}", "function isTruthy(input) {\n return input ? 0 : 1;\n}", "function checkTruthy(input) {\n console.log(`\ninput = ${input}, and is typeof: ${typeof(input)}\nand input is ${!!input}`)\n}", "function isTruthy(value) {\n // Return if Boolean\n if (typeof value === `boolean`) return value\n\n // Return false if null or undefined\n if (value === undefined || value === null) return false\n\n // If the String is true or false\n if (value.toLowerCase() === `true`) return true\n if (value.toLowerCase() === `false`) return false\n\n // Now check if it's a number\n const number = parseInt(value, 10)\n if (isNaN(number)) return false\n if (number > 0) return true\n\n // Default to false\n return false\n}", "function testTruthy(val){\n return val ? console.log(`${val} is`,'truthy'):console.log(`${val} is`,'falsy')\n}", "function evaluateTruthy() /*: boolean*/ {\n\t var res = this.evaluate();\n\t if (res.confident) return !!res.value;\n\t}", "function evaluateTruthy() /*: boolean*/ {\n\t var res = this.evaluate();\n\t if (res.confident) return !!res.value;\n\t}", "isTruthy(value) {\n return [1, \"1\", true, \"true\"].includes(value);\n }", "function evaluateTruthy() {\n var res = this.evaluate();\n if (res.confident) return !!res.value;\n}", "function evaluateTruthy() {\n\t var res = this.evaluate();\n\t if (res.confident) return !!res.value;\n\t}", "function evaluateTruthy() {\n\t var res = this.evaluate();\n\t if (res.confident) return !!res.value;\n\t}", "function evaluateTruthy() {\n\t var res = this.evaluate();\n\t if (res.confident) return !!res.value;\n\t}", "function isFalsy(input){\n\n}", "function isTruthy(bool) {\n return ((bool) || (!bool)) == true;\n }", "function isTruthy(val) {\n if( check.string( val ) ){\n return _.includes( ['true', '1'], val );\n }\n\n return val === 1 || val === true;\n}", "function isTruthy(item) {\n return !!item;\n}", "function isTruthy(item) {\n return !!item;\n }", "function isTruthy(val) {\n if (!isValue(val))\n return false;\n if (typeof val === 'number')\n return val > 0;\n if (isString(val) && !val.length)\n return false;\n return (val !== false &&\n val !== isNaN(val));\n}", "function isFalsy(input) {\n return ((bool) || (!bool)) !== true;\n }", "function truthiness(value) {\n if (value) {\n console.log( true );\n }else {\n console.log( false );\n }\n}", "function isOnlyOneTruthy(a,b){return!!(!!a^!!b);}", "function isNotFalsy(value) {\n\t\t return Boolean(value);\n\t }", "function falsy(x) {\n return !truthy(x);\n}", "function falsy (x) {\n return !truthy(x);\n}", "static truthy (value) {\n let result\n switch (typeof value) {\n case \"boolean\":\n result = value\n break\n case \"number\":\n result = (value !== 0 && !isNaN(value))\n break\n case \"string\":\n result = (value !== \"\")\n break\n case \"object\":\n result = false\n if (value !== null) {\n result = true\n if (value instanceof Array)\n result = value.length > 0\n }\n break\n default:\n result = false\n }\n return result\n }", "function truthy(value) {\r\n return existy(value) && value === true;\r\n }", "function isFalsy(v) {\n return !v;\n}", "function isTrue(input) {\n\treturn input === true || input == \"true\";\n}", "function boolNot(value) {\n if (value === true) return false;\n else if (value === false) return true;\n else return value;\n}", "function isFalsy(input){\n return 0;\n }", "function templateTruthy(value) {\n return (Array.isArray(value)) ? value.length > 0 : !!value;\n}", "function templateTruthy(value) {\n return (Array.isArray(value)) ? value.length > 0 : !!value;\n}", "function trueOrFalse() {\n if (fiveDayWeather === undefined) {\n return false;\n } else {\n return true;\n }\n }", "function truthy(x){\n return (x !== false) && existy(x);\n}", "function itsTrueOrFalse() {\r\n\r\n if ( its ) {\r\n\r\n console.log( \"hello\" );\r\n\r\n } else {\r\n\r\n console.log( \"bye\" );\r\n }\r\n}", "function is_kinda_truthy(bool) {\n return bool === false || bool === 0 || bool;\n }", "isFalsy(value) {\n return [0, \"0\", false, \"false\"].includes(value);\n }", "function truthy(x) {\n return (x !== false) && existy(x);\n}", "function nofalsey(input){\n\n return input != false && input != 0 && input != \"\" && input != NaN && input != undefined;\n }", "function trueOrFalse() {\n if (todayWeather === undefined) {\n return false;\n } else {\n return true;\n }\n }", "function assert(mustBeTruthy) {}", "function is_kinda_truthy(bool) {\n return bool === false || bool === 0 || bool;\n }", "function is_kinda_truthy(bool) {\n return bool === false || bool === 0 || bool;\n }", "function checkIfNullIsFalsy(nuLL){\n if (nuLL){\n console.log('null is truthy'); \n}\nelse {\n console.log('null is falsy')\n}\n}", "function isTrue(value) {\n return value == \"true\" || value == true;\n }", "eval_bool(input) {\n const rs = this.evaluate(input);\n return (rs && rs.length === 1 && rs[0] === true)\n }", "function truthy (x) {\n return (x !== false) && existy(x);\n}", "function is_falsy(value) {\n return typeof value === \"undefined\" || value === false || value === null;\n}", "function truthy(truthy, func){\n if (truthy) {}\n func();\n }", "function toBoolean(input) {\n return input != null && input !== false && `${input}` !== 'false';\n}", "function not(a){\r\n return (a === true) ? false :\r\n (a === false) ? true : error(not);\r\n}", "function truthyFalsy({ number, string }) {\n\n return number ? number : string;\n}", "function is_kinda_truthy(bool) {\r\n\t\t\t\t\treturn bool === false || bool === 0 || bool;\r\n\t\t\t\t}", "function noneAreTrue (ourThing1, ourThing2) {\n if (ourThing1 !== true && ourThing2 !==true) {\n console.log(\"This program runs\");\n } else {\n console.log(\"This program DOES NOT run\");\n }\n}", "function boolean(val) {\n return !!val;\n}", "function not(x) { return !x; }", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"yes, it´ss true\";\n }\n return \"no,it´s false\";\n}", "function isFalse(boolean){\n return boolean == 0;\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) { \n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function mustBeTrue(boo){\n if(boo === true){\n return true;\n }else{\n return false;\n }\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n\n return \"No, It's false\";\n}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function notNot(bool) {\n return !!(bool);\n }", "function boolean(val) {\n\t return !!val;\n\t}", "function boolean(val) {\n\t return !!val;\n\t}", "function ourTrueOrFalse(isItTrue) {\n if (isItTrue) {\n return \"Yes, it's true\";\n }\n return \"No, it's false\";\n}", "function truthy(str) {\n return str === true || str === 1 || str === 'true' || str === '1'\n}", "function sc_not(b) {\n return b === false;\n}", "function truthy (item) {\n\treturn !!item;\n}", "function booWho(bool) {\n return typeof bool === 'boolean'\n}", "function truthyFalsey(arr){\nreturn \"anything\"\n}", "function notTrue(wrong1, wrong2) {\n return !wrong1 && !wrong2\n}", "function isTrue(v) {\n if (!v) return false;\n v = v.toLowerCase();\n return v === 'yes' || v === 'true';\n}", "function isTrue(v) {\n if (!v) return false;\n v = v.toLowerCase();\n return v === 'yes' || v === 'true';\n}", "static boolToTrueFalse(value) {\n if (value === undefined) return undefined;\n if (value === null) return undefined;\n return value ? 'true' : 'false';\n }", "function boolean (data) {\n return data === false || data === true;\n }", "enterFalseBoolean(ctx) {\n }", "function trueOrFalse(value) {\n if(value===true){\nreturn \"true\"\nconsole.log (\"true\")\n}\nelse{\n if(value===false){\n return \"false\"\n console.log (\"false\")\n } \n\n}\n \n}", "function toggleBooleanValueWithoutIf(data)\n{\n if(typeof data !== 'boolean'){\n return \"This function is meant to work wth boolean data only.\";\n } else {\n data = !data;\n return data;\n }\n}", "_toBool (valIn) { return (valIn === 'false' || valIn === '0') ? false : Boolean(valIn) }", "function not(input) {\n return !(input);\n }", "function falseValues(value) {\n if (Boolean(value)) {\n return true;\n } else {\n return false;\n }\n }", "function test_native_false_exact_string_false(){ assertFalse(false == 'false'); }", "truthy(evaluation) {\n return this.slots.length ? evaluation.truthy(this.id) : true;\n }", "function boolify(value) {\n return value == true || value == 'true';\n}", "function not(x) {\n return !x;\n }", "function booWho(bool) {\n return typeof bool === \"boolean\";\n}", "function emptyOrNot(input) {\n\n if (input) {\n return true\n } else {\n return false\n }\n \n }", "function welcomeToBooleans() {\n return false;\n}", "function boolean(value) {\r\n return value === TRUE || value === FALSE;\r\n }", "function removeFalseVar(value) {\n return Boolean(value);\n}", "function boolean_check(i) {\n return !!i;\n}", "function booWho(bool) {\r\n\treturn (bool === true || bool === false);\r\n}", "function isSomethingTrue(x){\n return x;\n}", "function boolean (data) {\n return data === false || data === true;\n }", "static trueFalseToBool(value) {\n if (typeof value == 'string' && value.toLowerCase() == 'true') return true;\n if (typeof value == 'string' && value.toLowerCase() == 'false') return false;\n return undefined;\n }", "function truthDetector(theTruth){\n if(theTruth = true){\n return 1;\n }\n}", "function isBoolean (value) {\n var n = typeof (value)\n if (n === 'boolean') {\n console.log(true)\n } else {\n console.log(false)\n }\n}", "function booWho(bool) {\n \n if (typeof(bool) === 'boolean') {\n console.log(bool + ' is a boolean');\n return true;\n } else {\n return false;\n }\n}" ]
[ "0.8556152", "0.8516337", "0.8494826", "0.8107228", "0.80138284", "0.7965969", "0.79117936", "0.79117936", "0.790146", "0.7832918", "0.77528334", "0.77528334", "0.77528334", "0.77019244", "0.75359106", "0.75277805", "0.75245583", "0.7475308", "0.74746376", "0.7324626", "0.72093797", "0.71110106", "0.71092874", "0.7067455", "0.7021135", "0.6916174", "0.6861608", "0.6851132", "0.6830264", "0.6787501", "0.6720772", "0.66842926", "0.66842926", "0.6675729", "0.66634345", "0.664669", "0.66463387", "0.6631074", "0.66100454", "0.66048867", "0.6563932", "0.65631926", "0.6538923", "0.6538923", "0.65044475", "0.6493629", "0.64714336", "0.6465597", "0.6462037", "0.6449121", "0.6444132", "0.64337784", "0.6427877", "0.6409219", "0.6369269", "0.6350967", "0.63203126", "0.62635815", "0.6242696", "0.6242158", "0.6235113", "0.6207464", "0.6205405", "0.6202512", "0.6185318", "0.6185318", "0.6178672", "0.61756194", "0.6167682", "0.6157126", "0.6156828", "0.61389303", "0.61385864", "0.6135607", "0.6135607", "0.6125559", "0.61212754", "0.6107162", "0.6100885", "0.6098406", "0.6084756", "0.6070285", "0.604929", "0.6029214", "0.6024961", "0.6018673", "0.6016633", "0.60152876", "0.6009576", "0.6000157", "0.59921175", "0.59891015", "0.5981954", "0.5979091", "0.59743184", "0.5971986", "0.59666723", "0.5966449", "0.596394", "0.5962086" ]
0.86541396
0
Make a function named `isFalsy(input)`, remember that values other than false behave like false
function isFalsy(input){ return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isFalsy(input){\n\n}", "function isFalsy(input) {\n return ((bool) || (!bool)) !== true;\n }", "function isFalsy(v) {\n return !v;\n}", "function isNotFalsy(value) {\n\t\t return Boolean(value);\n\t }", "function falsy(x) {\n return !truthy(x);\n}", "function is_falsy(value) {\n return typeof value === \"undefined\" || value === false || value === null;\n}", "function falsy (x) {\n return !truthy(x);\n}", "isFalsy(value) {\n return [0, \"0\", false, \"false\"].includes(value);\n }", "function isTruthy(input){\n return 0;\n }", "function truthyFalsy({ number, string }) {\n\n return number ? number : string;\n}", "function nofalsey(input){\n\n return input != false && input != 0 && input != \"\" && input != NaN && input != undefined;\n }", "function isTruthy(input) {\n return input ? 0 : 1;\n}", "function isTruthy(input) {\n return input ? 1 : 0;\n}", "function isInputEmpty(input) {\n return (input === undefined || typeof (input) === \"boolean\");\n}", "function isTruthy(input){\n return input == 1;\n}", "function not(input) {\n return !(input);\n }", "function emptyOrNot(input) {\n\n if (input) {\n return true\n } else {\n return false\n }\n \n }", "function throwIfFalsy(value) {\n if (!value) {\n throw new Error('value must not be falsy');\n }\n return value;\n}", "function isUndefined( input )\n{\n\treturn !(typeof input != 'undefined');\n}", "function not(x) { return !x; }", "function boolNot(value) {\n if (value === true) return false;\n else if (value === false) return true;\n else return value;\n}", "isValueEmpty(input) {\n return input ? true : false\n }", "function checkIfNullIsFalsy(nuLL){\n if (nuLL){\n console.log('null is truthy'); \n}\nelse {\n console.log('null is falsy')\n}\n}", "function toBoolean(input) {\n return input != null && input !== false && `${input}` !== 'false';\n}", "function none(val) {\n return empty(val) || (Number(val) != 0 && !val);\n}", "function isFalse(boolean){\n return boolean == 0;\n}", "function checkTruthy(input) {\n console.log(`\ninput = ${input}, and is typeof: ${typeof(input)}\nand input is ${!!input}`)\n}", "function is_Blank(input) {\n return input === \"\";\n}", "function vacio(value) {\n if (value === '') return true;\n return false;\n}", "function isDefinedAndNotNull(input)\r\n{\r\n if (isDefined(input))\r\n return ((input != null) && !isNaN(input));\r\n else\r\n return false;\r\n}", "static checkEmptyUserInput(userValue){\n return (userValue==0 ? true : false);\n }", "function vacio(value) {\r\nif (value === '') return true;\r\n return false;\r\n}", "function getFalsyFlags(type) {\n return type.flags & 524288 /* Union */ ? getFalsyFlagsOfTypes(type.types) :\n type.flags & 32 /* StringLiteral */ ? type === emptyStringType ? 32 /* StringLiteral */ : 0 :\n type.flags & 64 /* NumberLiteral */ ? type === zeroType ? 64 /* NumberLiteral */ : 0 :\n type.flags & 128 /* BooleanLiteral */ ? type === falseType ? 128 /* BooleanLiteral */ : 0 :\n type.flags & 7406 /* PossiblyFalsy */;\n }", "function sc_not(b) {\n return b === false;\n}", "function not(x) {\n return !x;\n }", "function nothing_is_nothing() {\n return [...arguments].every(x => Boolean(x))\n }", "function isNull(f) {\n\t\tif (f === 0 || f === null || f === undefined)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "function falseValues(value) {\n if (Boolean(value)) {\n return true;\n } else {\n return false;\n }\n }", "function not(b){ return !b; }", "function isTruthy(value) {\n // Return if Boolean\n if (typeof value === `boolean`) return value\n\n // Return false if null or undefined\n if (value === undefined || value === null) return false\n\n // If the String is true or false\n if (value.toLowerCase() === `true`) return true\n if (value.toLowerCase() === `false`) return false\n\n // Now check if it's a number\n const number = parseInt(value, 10)\n if (isNaN(number)) return false\n if (number > 0) return true\n\n // Default to false\n return false\n}", "function removeFalseVar(value) {\n return Boolean(value);\n}", "function is_Blank(input){\n if (input.length === 0)\n return true;\n else \n return false;\n}", "function statefulNor(f) {\n\t\treturn function(state, x) {\n\t\t\t// this is equivalent to `!(state || f(x))`, but is broken up to allow\n\t\t\t// short circuiting\n\t\t\treturn (!state && !f(x));\n\t\t}\n\t}", "checkInputBox(inputValue) {\n if(inputValue !== ''){\n return true\n } else {\n return false;\n }\n}", "function isNully (value) {return isNull(value) || typeof value === 'undefined'}", "function isBlank (input) {\n if (input === \"\" ) {\n return true\n } \n return false \n}", "isAbsent() {\n return \"undefined\" == typeof this.value || null == this.value;\n }", "function filterUndefined(value) {\n return value !== undefined;\n}", "function boolean(value) {\n if (value == \"\") {\n return \"\";\n } else {\n return value;\n }\n}", "function empty(mixValue)\n{\n return ((mixValue === undefined) || (mixValue === null) || (mixValue === false) || (mixValue === '') || (mixValue === 0));\n}", "function testTruthy(val){\n return val ? console.log(`${val} is`,'truthy'):console.log(`${val} is`,'falsy')\n}", "function isUndefined(value) {\n\n}", "function\nXATS2JS_bool_neg\n (b0)\n{ return !b0 ; }", "isNonZero(): boolean {\n return this.value !== 0;\n }", "function isEmpty(value) {\n return value === \"\";\n}", "function isEmpty(value) {\n return value === \"\";\n}", "function isEmpty(input) {\n if ( null === input || \"\" === input ) { \n return true; \n } \n return false; \n }", "function isNullish(value) {\n return value === null || value === undefined || value !== value;\n}", "function isNullish(value) {\n return value === null || value === undefined || value !== value;\n}", "function isNullish(value) {\n return value === null || value === undefined || value !== value;\n}", "function isNullish(value) {\n return value === null || value === undefined || value !== value;\n}", "function isNoteEmptyStringInput(input) {\n return input.value != \"\";\n}", "function toggleBooleanValueWithoutIf(data)\n{\n if(typeof data !== 'boolean'){\n return \"This function is meant to work wth boolean data only.\";\n } else {\n data = !data;\n return data;\n }\n}", "function not(a){\r\n return (a === true) ? false :\r\n (a === false) ? true : error(not);\r\n}", "static truthy (value) {\n let result\n switch (typeof value) {\n case \"boolean\":\n result = value\n break\n case \"number\":\n result = (value !== 0 && !isNaN(value))\n break\n case \"string\":\n result = (value !== \"\")\n break\n case \"object\":\n result = false\n if (value !== null) {\n result = true\n if (value instanceof Array)\n result = value.length > 0\n }\n break\n default:\n result = false\n }\n return result\n }", "function isTruthy(val) {\n if (!isValue(val))\n return false;\n if (typeof val === 'number')\n return val > 0;\n if (isString(val) && !val.length)\n return false;\n return (val !== false &&\n val !== isNaN(val));\n}", "function truthyFalsey(arr){\nreturn \"anything\"\n}", "function notIsNullOrUndefined(value) {\n return value !== null || typeof value !== 'undefined';\n}", "function f(p) {\n return !!p;\n }", "function isemptyornull(value)\n {\n return !(typeof value === \"string\" && value.length > 0);\n }", "function removeFalsy(arr) {\r\n return arr.filter(a => !!a);\r\n }", "_toBool (valIn) { return (valIn === 'false' || valIn === '0') ? false : Boolean(valIn) }", "function f(p) {\n return !!p;\n }", "function isValid(value) {\n return Boolean(value || value === 0);\n}", "function isValid(value) {\n return Boolean(value || value === 0);\n}", "function isValid(value) {\n return Boolean(value || value === 0);\n}", "function isValid(value) {\n return Boolean(value || value === 0);\n}", "function isEmpty(value) {\n if (value === '') return true;\n return false;\n}", "function isEmpty(value) {\n return value === '' ? true : false;\n}", "isValid(input) {\n if (input == null || input == \"\") {\n return false;\n } else {\n return true;\n }\n }", "function attributeIsPresent(value) {\n if (value === true || value === false) {\n return value;\n }\n return !lang_1.isBlank(value);\n}", "function truthy(x){\n return (x !== false) && existy(x);\n}", "function isEmpty(value) {\n if (value === '') return true;\n return false;\n}", "function isEmpty(value) {\n if (value === '') return true;\n return false;\n}", "isEmpty(value) {\n return value == '' ? true : false;\n }", "isUndefined(value) {\n return _isEmpty(value);\n }", "function unless(test, then){\n if(!test) then();\n}", "function isdef(value) {\n return !(value === undefined);\n}", "function isNull(testIn) {\n return testIn == undefined || testIn == null;\n}", "function isUndef(val) {\n\t return val === void 0;\n\t }", "function truthy(truthy, func){\n if (truthy) {}\n func();\n }", "function isOnlyOneTruthy(a,b){return!!(!!a^!!b);}", "function isSetNotNull(fn) {\n\tlet value;\n\ttry {\n\t\tvalue = fn();\n\t} catch (e) {\n\t\tvalue = null;\n\t}\n\treturn value !== null && value !== undefined;\n}", "is_false(val) {\n return ['false', 'no', '0', 0, false].includes(val);\n }", "function removeFalsy(obj) {\n for(key in obj) {\n if(obj[key] == false || obj[key] == null || obj[key] == undefined ) {\n delete obj[key];\n }\n }\n return obj\n}", "function isDefined(input)\r\n{\r\n return (typeof(input) != \"undefined\");\r\n}", "function isNullish(value) {\n\t return value === null || value === undefined || value !== value;\n\t}", "function Ft(t) {\n return !!t && \"nullValue\" in t;\n}", "function unless(test, then){\n if(!test) then();\n}", "function truthy(x) {\n return (x !== false) && existy(x);\n}" ]
[ "0.9250993", "0.824536", "0.76063955", "0.7515067", "0.7494229", "0.7477422", "0.74131924", "0.73669183", "0.73364145", "0.719547", "0.70905435", "0.7022575", "0.7012945", "0.6961829", "0.6892721", "0.6877432", "0.6794678", "0.6555195", "0.6506004", "0.6465143", "0.6456403", "0.6430119", "0.6427508", "0.6365765", "0.6352433", "0.6283521", "0.62272674", "0.62001693", "0.6184273", "0.61827826", "0.6123671", "0.61172956", "0.60928315", "0.60928184", "0.6090504", "0.6081592", "0.60699105", "0.60661733", "0.60645235", "0.60640955", "0.60517764", "0.6030486", "0.6026346", "0.6026338", "0.6019818", "0.59800714", "0.59794724", "0.5960321", "0.595088", "0.5932248", "0.5929606", "0.5896422", "0.58792144", "0.5878097", "0.5849351", "0.5849351", "0.58442223", "0.5832405", "0.5832405", "0.5832405", "0.5832405", "0.5832033", "0.58285326", "0.58285123", "0.58277726", "0.58145505", "0.5808014", "0.57943594", "0.57925534", "0.5776659", "0.5775219", "0.57718635", "0.5762548", "0.5751679", "0.5751679", "0.5751679", "0.5751679", "0.57271075", "0.57229173", "0.5718824", "0.57165533", "0.57158285", "0.5706906", "0.5706906", "0.5695567", "0.5695345", "0.5693909", "0.5687868", "0.5684182", "0.5682226", "0.5680977", "0.56802523", "0.5680098", "0.56776667", "0.56662834", "0.5661813", "0.56589615", "0.5656251", "0.5652319", "0.5648729" ]
0.84964114
1
Page object condensed map
function Acre() { this.terrain = ""; this.features = new Collection(); this.npcs = new Collection(); this.pcs = new Collection(); this.localLight = {}; this.localSound = {}; this.topSound = ""; this.x; this.y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pageInfo() {\n var nums = numbers(),\n pages = pager.pages(),\n pdata = sparse(pages),\n res;\n\n //Get the hashes.\n $scope.info.forEach(copyHash);\n\n //Get the info\n res = nums.map(info);\n\n return res;\n\n /** Constructs information for the given page number */\n function info(pnum) {\n //We need loading and cached info as well as the page info.\n var idx = pnum - 1,\n res;\n\n res = {\n page: pnum,\n index: idx,\n cached: pdata[idx] && !!pdata[idx].data,\n loading: pdata[idx] && !!pdata[idx].loading\n };\n\n //Copy the hash onto the object if it exists.\n if (hashes[idx]) {\n res.$$hashKey = hashes[idx];\n }\n\n return res;\n }\n\n /** Creates an obhect with the stored page indexes as properties */\n function sparse(arr) {\n var i, res = { };\n for (i = 0; i < arr.length; i++) {\n res[arr[i].index] = arr[i];\n }\n return res;\n }\n\n /** Copies the hash from the item (if it has one) onto the hashes object */\n function copyHash(item) {\n if (item.$$hashKey) {\n hashes[item.index] = item.$$hashKey;\n }\n }\n }", "sortPageWise(annotations) {\n let pageAnnots = {};\n for (let annot of annotations) {\n if (!pageAnnots[annot.page])\n pageAnnots[annot.page] = [];\n pageAnnots[annot.page].push(annot);\n }\n return pageAnnots;\n }", "function pagesMap2Array(input) {\n\t\t\tvar output = Object.keys(input).map(function(key) {\n\t\t\t\tvar page = input[key];\n\t\t\t\t//add the key to the array for reference\n\t\t\t\t//page[\"id\"] = key;\n\t\t\t\t//Recursive call for nested pages\n\t\t\t\tif (page.pages) {\n\t\t\t\t\tpage.pages = pagesMap2Array(page.pages);\n\t\t\t\t}\n\t\t\t\treturn input[key];\n\t\t\t});\n\t\t\treturn output;\n\t\t}", "pageToJson(page) {\n const json = {\n title: page.title,\n excerpt: page.excerpt,\n hidden: page.hidden,\n body: page.content,\n next: {\n pages: [],\n description: \"\",\n },\n };\n\n if (page.headers.next) {\n json.next = Object.assign(json.next, page.headers.next);\n if (json.next.pages) {\n // resolve each referenced page in local catalog and derive data\n json.next.pages = json.next.pages\n .map((slug) => this.catalog.find(Page.bySlug(slug)))\n .filter((page) => page !== undefined)\n .map((resolvedPage) => {\n return {\n slug: resolvedPage.slug,\n name: resolvedPage.title,\n icon: \"file-text-o\",\n type: \"doc\",\n };\n });\n }\n }\n\n return json;\n }", "adaptPageObject(page, annot_array_reference) {\n if (!page.object_id)\n throw Error(\"Page without object id\");\n let ret = [];\n let lookupTable = this.parser.documentHistory.createObjectLookupTable();\n let page_ptr = lookupTable[page.object_id.obj];\n if (page_ptr.compressed) {\n let obj = object_util_1.ObjectUtil.extractObject(this.data, page_ptr, lookupTable);\n let obj_data = obj.stream.getData().slice(obj.pointer_stream_start, obj.pointer_stream_end + 1);\n let ref_ptr = writer_util_1.WriterUtil.writeReferencePointer(obj.id, false).concat(32);\n let new_data = new Uint8Array(ref_ptr.length + Writer.OBJ.length + obj_data.length + Writer.ENDOBJ.length);\n new_data.set(ref_ptr);\n new_data.set(Writer.OBJ, ref_ptr.length);\n new_data.set(obj_data, Writer.OBJ.length + ref_ptr.length);\n new_data.set(Writer.ENDOBJ, Writer.OBJ.length + obj_data.length + ref_ptr.length);\n return writer_util_1.WriterUtil.replaceAnnotsFieldInPageObject(new_data, page, 0, annot_array_reference);\n }\n return writer_util_1.WriterUtil.replaceAnnotsFieldInPageObject(this.data, page, page_ptr.pointer, annot_array_reference);\n }", "function build_site_obj(){\n\t\t\tvar nav = {};\n\t\t\tfor (var page_key in sitemap.pages) {\n\t\t\t\t//apply defaults were needed\n\t\t\t\tsitemap.pages[page_key].nav_key = page_key;\n\t\t\t\t//note extend will not work here, for some reason it'll alter the ref of defaults\n\t\t\t\t//we'll have to do it by hand for the moment\n\t\t\t\tfor (var objKey in defaults){\n\t\t\t\t\tif(typeof sitemap.pages[page_key][objKey] === \"undefined\"){\n\t\t\t\t\t\tsitemap.pages[page_key][objKey] = defaults[objKey];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//build nav\n\t\t\t\tvar pagenav = sitemap.pages[page_key].nav!==undefined ? sitemap.pages[page_key].nav:{};\n\t\t\t\tif(pagenav!==false){\n\t\t\t\t\tvar tmpobj={};\n\t\t\t\t\tvar root = sitemap.pages[page_key].nav_root.replace(new RegExp(\"[\\/]+$\", \"g\"), \"\");\n\n\t\t\t\t\tvar linkTitle = sitemap.pages[page_key].title;\n\t\t\t\t\tif(typeof pagenav.nav_title !== \"undefined\" ){\n\t\t\t\t\t\tlinkTitle = pagenav.nav_title;\n\t\t\t\t\t}\n\t\t\t\t\tif(typeof pagenav.parent !== \"undefined\" && typeof nav[pagenav.parent] !== \"undefined\" ){\n\t\t\t\t\t\tvar pnav = nav[pagenav.parent];\n\t\t\t\t\t\tvar exnav = {};\n\t\t\t\t\t\tvar exurl = linkTitle;\n\t\t\t\t\t\tif(typeof pagenav.nav_link !== \"undefined\" ){\n\t\t\t\t\t\t\texurl=pagenav.nav_link;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\texurl=root+\"/\"+sitemap.pages[page_key].nav_key+\".html\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\texnav[linkTitle] = exurl;\n\n\t\t\t\t\t\tvar tmp = {};\n\t\t\t\t\t\tif(typeof pnav===\"object\"){\n\t\t\t\t\t\t\ttmp=extend(pnav,exnav);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ttmp[pagenav.parent]=pnav;\n\t\t\t\t\t\t}\n\t\t\t\t\t\texnav = extend(tmp,exnav);\n\t\t\t\t\t\tnav[pagenav.parent] = exnav;\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(typeof pagenav.nav_link !== \"undefined\" ){\n\t\t\t\t\t\t\ttmpobj[linkTitle]=pagenav.nav_link;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ttmpobj[linkTitle]=root+\"/\"+sitemap.pages[page_key].nav_key+\".html\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(typeof pagenav.child_nav !== \"undefined\"){\n\t\t\t\t\t\tvar r = tmpobj[linkTitle];\n\t\t\t\t\t\tvar navarray = {};\n\n\t\t\t\t\t\tvar mainlink= sitemap.pages[page_key].title;\n\t\t\t\t\t\tif(typeof pagenav.nav_title !== \"undefined\" ){\n\t\t\t\t\t\t\tmainlink = pagenav.nav_title;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnavarray[mainlink] = r;\n\t\t\t\t\t\tfor (var link in pagenav.child_nav){\n\t\t\t\t\t\t\tvar url = link;\n\t\t\t\t\t\t\tvar title = pagenav.child_nav[link];\n\t\t\t\t\t\t\tif(link.indexOf(\"#\")===0){\n\t\t\t\t\t\t\t\turl=r+link;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnavarray[title] = url;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmpobj[linkTitle]=navarray;\n\t\t\t\t\t}\n\t\t\t\t\tnav = extend(nav,tmpobj);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsitemap.nav = nav;\n\t\t}", "function investigatePage() {\r\n var rows = document.evaluate(\"//div[@class='objectinfo']\", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);\r\n for (var i=0;i<rows.snapshotLength;i++) {\r\n pageIDs[i] = /immo(\\d+)/.exec(rows.snapshotItem(i).id)[1];\r\n lastSeenIDs[pageIDs[i]] = new Date().getTime();\r\n }\r\n rows = document.evaluate(\"//div[@class='titel']/a\", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);\r\n for (var i=0;i<rows.snapshotLength;i++) {\r\n pageTitles[i] = rows.snapshotItem(i).textContent.toString();\r\n }\r\n rows = document.evaluate(\"//div[@class='adresse']\", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);\r\n for (var i=0;i<rows.snapshotLength;i++) {\r\n pageLocations[i] = rows.snapshotItem(i).textContent.toString();\r\n }\r\n if (lastSeenIDs) GM_setValue('lastSeenIDs',lastSeenIDs.toSource());\r\n}", "mapSubmissionIDToSighting () {\n var tmpMap = {}\n\n for (var index = 0; index < this.rows.length; index++) {\n var sighting = this.rows[index]\n var submissionID = sighting['Submission ID']\n\n if (!tmpMap[submissionID]) {\n tmpMap[submissionID] = sighting\n }\n }\n\n return tmpMap\n }", "function createPageObject(newpage, oldpage) {\n let paginate = {};\n if (newpage[0]) {\n paginate.new = true;\n }\n else {\n paginate.new = false;\n }\n\n if (oldpage[0]) {\n paginate.old = true;\n }\n else {\n paginate.old = false;\n }\n return paginate;\n}", "getPageValues() {\n return assign( {}, pick( this.state, this.getPageFields() ) );\n }", "function info(pnum) {\n //We need loading and cached info as well as the page info.\n var idx = pnum - 1,\n res;\n\n res = {\n page: pnum,\n index: idx,\n cached: pdata[idx] && !!pdata[idx].data,\n loading: pdata[idx] && !!pdata[idx].loading\n };\n\n //Copy the hash onto the object if it exists.\n if (hashes[idx]) {\n res.$$hashKey = hashes[idx];\n }\n\n return res;\n }", "function get_page_data() {\n\tvar loc_hash = decodeURIComponent(document.location.hash.substring(1));\n\tvar page_data_part = loc_hash.split('#')[1];\n\n\tvar page_data = new Object();\n\tjQuery.map(page_data_part.split(','), function (i) {\n\t\tvar parts = i.split(':');\n\t\tpage_data[parts[0]] = parts[1];\n\t});\n\treturn page_data;\n}", "function parsePageInfo() {\n\n //MDS is not enabled, no need for any special processing\n if (window.location.href.indexOf(\"start.aspx\") == -1) {\n return {};\n }\n\n var path = window.location.pathname;\n var qry = window.location.search;\n var hash = window.location.hash;\n\n var a = document.createElement(\"a\");\n a.href = hash.substring(1);\n\n var apath = a.pathname;\n var aqry = a.search\n var ahash = a.hash;\n\n //Add the path portion of the anchor to the main path\n var dcsuri = path + ((apath) ? (\"#\" + apath) : \"\");\n\n //Add the anchor's query string to the main query string \n var dcsqry = qry.concat(\n (aqry ? (qry ? (\"&\" + aqry.substr(1)) : aqry) : \"\")\n );\n\n return {\n \"DCS.dcssip\": location.hostname,\n \"DCS.dcsuri\": dcsuri,\n \"DCS.dcsqry\": dcsqry,\n \"WT.ti\": document.title,\n \"WT.es\": location.hostname + dcsuri\n };\n}", "function getPageObject () {\n return {\n title: $('#title').val(),\n tags: ($('#tags').val() || []).join(),\n text: $('#text').val(),\n alias: $('#alias').val(),\n stamp: $('#stamp').val()\n }\n }", "get pages() {\n return { ...this._pages\n };\n }", "sizeClassification(){\n let a;\n if(this.streetLength < 1) a=`tiny`;\n else if(this.streetLength < 2 && this.streetLength>1) a =`small`;\n else if(this.streetLength < 4 && this.streetLength>2) a =`normal`;\n else if(this.streetLength < 5 && this.streetLength>4) a =`big`;\n else a =`huge`;\n return a; //why so complicated ? -_-'\n /* let a = nex Map();\n a.set(1, `tiny`);\n a.set(2, `small`);\n a.set(3, `normal`);\n a.set(4, `big`);\n return a;*/\n }", "function pages() {\n //Return all pages\n // Group into cached and loading (which will include queued and waiting)\n var all = internal.loader.info();\n return all.map(mapInfo);\n\n /** Returns the page info structure */\n function mapInfo(item) {\n return {\n index: item.index,\n data: item.cached && item.cached.data,\n loading: item.queued || item.loading || item.waiting,\n cancel: item.cancel\n };\n }\n }", "function _pagination_setPageData() {\r\n var _pagination = _data['pagination'];\r\n\r\n var _startIdx = _pagination['currentPage'] * _pagination['numElementsPerPage'];\r\n\r\n _pagination['current']['elyos'].empty().pushAll(_data['elyos'].slice(_startIdx, _startIdx + _pagination['numElementsPerPage']));\r\n _pagination['current']['asmodians'].empty().pushAll(_data['asmodians'].slice(_startIdx, _startIdx + _pagination['numElementsPerPage']));\r\n _pagination['current']['versus'].empty().pushAll(_data['versus'].slice(_startIdx, _startIdx + _pagination['numElementsPerPage']));\r\n }", "getEligiblePages() {\n const { form, route: { pageConfig, pageList } } = this.props;\n const eligiblePageList = getActivePages(pageList, form.data);\n // Any `showPagePerItem` pages are expanded to create items for each array item.\n // We update the `path` for each of those pages to replace `:index` with the current item index.\n const expandedPageList = expandArrayPages(eligiblePageList, form.data);\n // We can't check the pageKey for showPagePerItem pages, because multiple pages will match\n const pageIndex = pageConfig.showPagePerItem\n ? _.findIndex(item => item.path === this.props.location.pathname, expandedPageList)\n : _.findIndex(item => item.pageKey === pageConfig.pageKey, expandedPageList);\n return { pages: expandedPageList, pageIndex };\n }", "function Page() {\n this.minWidth = 940;\n this.wrapWidth = null;\n this.wrapJustify = null;\n this.boxCount = null;\n this.maxBoxes = null;\n this.smallBoxWidth = null;\n this.smallBoxHeight = null;\n this.thumbWidth = null;\n this.thumbHeight = null;\n for (var n in arguments[0]) {\n this[n] = arguments[0][n];\n }\n this.path = [];\n}", "function getPageInfo() {\n\tlet page = {\n\t\turl: window.location.href,\n\t\tsite: 'twitter'\n\t};\n\n\tlet canonical = $('link[rel=\"canonical\"]').href.split('/')[3];\n\tif ($('meta[content=\"profile\"]')) {\n\t\tpage.page = 'user';\n\t\tpage.user = canonical;\n\t}\n\telse if (/\\.com\\/(?:\\w+|i\\/web)\\/status\\/\\d+/.test(page.url)) {\n\t\tpage.page = 'submission';\n\t\tpage.user = canonical;\n\t}\n\n\treturn page;\n}", "function DictionaryProperties(){/**\n * Specifies the value of `Pages`.\n * @private\n */this.pages='Pages';/**\n * Specifies the value of `Kids`.\n * @private\n */this.kids='Kids';/**\n * Specifies the value of `Count`.\n * @private\n */this.count='Count';/**\n * Specifies the value of `Resources`.\n * @private\n */this.resources='Resources';/**\n * Specifies the value of `Type`.\n * @private\n */this.type='Type';/**\n * Specifies the value of `Size`.\n * @private\n */this.size='Size';/**\n * Specifies the value of `MediaBox`.\n * @private\n */this.mediaBox='MediaBox';/**\n * Specifies the value of `Parent`.\n * @private\n */this.parent='Parent';/**\n * Specifies the value of `Root`.\n * @private\n */this.root='Root';/**\n * Specifies the value of `DecodeParms`.\n * @private\n */this.decodeParms='DecodeParms';/**\n * Specifies the value of `Filter`.\n * @private\n */this.filter='Filter';/**\n * Specifies the value of `Font`.\n * @private\n */this.font='Font';/**\n * Specifies the value of `Type1`.\n * @private\n */this.type1='Type1';/**\n * Specifies the value of `BaseFont`.\n * @private\n */this.baseFont='BaseFont';/**\n * Specifies the value of `Encoding`.\n * @private\n */this.encoding='Encoding';/**\n * Specifies the value of `Subtype`.\n * @private\n */this.subtype='Subtype';/**\n * Specifies the value of `Contents`.\n * @private\n */this.contents='Contents';/**\n * Specifies the value of `ProcSet`.\n * @private\n */this.procset='ProcSet';/**\n * Specifies the value of `ColorSpace`.\n * @private\n */this.colorSpace='ColorSpace';/**\n * Specifies the value of `ExtGState`.\n * @private\n */this.extGState='ExtGState';/**\n * Specifies the value of `Pattern`.\n * @private\n */this.pattern='Pattern';/**\n * Specifies the value of `XObject`.\n * @private\n */this.xObject='XObject';/**\n * Specifies the value of `Length`.\n * @private\n */this.length='Length';/**\n * Specifies the value of `Width`.\n * @private\n */this.width='Width';/**\n * Specifies the value of `Height`.\n * @private\n */this.height='Height';/**\n * Specifies the value of `BitsPerComponent`.\n * @private\n */this.bitsPerComponent='BitsPerComponent';/**\n * Specifies the value of `Image`.\n * @private\n */this.image='Image';/**\n * Specifies the value of `dctdecode`.\n * @private\n */this.dctdecode='DCTDecode';/**\n * Specifies the value of `Columns`.\n * @private\n */this.columns='Columns';/**\n * Specifies the value of `BlackIs1`.\n * @private\n */this.blackIs1='BlackIs1';/**\n * Specifies the value of `K`.\n * @private\n */this.k='K';/**\n * Specifies the value of `S`.\n * @private\n */this.s='S';/**\n * Specifies the value of `Predictor`.\n * @private\n */this.predictor='Predictor';/**\n * Specifies the value of `DeviceRGB`.\n * @private\n */this.deviceRgb='DeviceRGB';/**\n * Specifies the value of `Next`.\n * @private\n */this.next='Next';/**\n * Specifies the value of `Action`.\n * @private\n */this.action='Action';/**\n * Specifies the value of `Link`.\n * @private\n */this.link='Link';/**\n *\n * Specifies the value of `A`.\n * @private\n */this.a='A';/**\n * Specifies the value of `Annot`.\n * @private\n */this.annot='Annot';/**\n * Specifies the value of `P`.\n * @private\n */this.p='P';/**\n * Specifies the value of `C`.\n * @private\n */this.c='C';/**\n * Specifies the value of `Rect`.\n * @private\n */this.rect='Rect';/**\n * Specifies the value of `URI`.\n * @private\n */this.uri='URI';/**\n * Specifies the value of `Annots`.\n * @private\n */this.annots='Annots';/**\n * Specifies the value of `ca`.\n * @private\n */this.ca='ca';/**\n * Specifies the value of `CA`.\n * @private\n */this.CA='CA';/**\n * Specifies the value of `XYZ`.\n * @private\n */this.xyz='XYZ';/**\n * Specifies the value of `Fit`.\n * @private\n */this.fit='Fit';/**\n * Specifies the value of `Dest`.\n * @private\n */this.dest='Dest';/**\n * Specifies the value of `BM`.\n * @private\n */this.BM='BM';/**\n * Specifies the value of `flatedecode`.\n * @private\n */this.flatedecode='FlateDecode';/**\n * Specifies the value of `Rotate`.\n * @private\n */this.rotate='Rotate';/**\n * Specifies the value of 'bBox'.\n * @private\n */this.bBox='BBox';/**\n * Specifies the value of 'form'.\n * @private\n */this.form='Form';/**\n * Specifies the value of 'w'.\n * @private\n */this.w='W';/**\n * Specifies the value of 'cIDFontType2'.\n * @private\n */this.cIDFontType2='CIDFontType2';/**\n * Specifies the value of 'cIDToGIDMap'.\n * @private\n */this.cIDToGIDMap='CIDToGIDMap';/**\n * Specifies the value of 'identity'.\n * @private\n */this.identity='Identity';/**\n * Specifies the value of 'dw'.\n * @private\n */this.dw='DW';/**\n * Specifies the value of 'fontDescriptor'.\n * @private\n */this.fontDescriptor='FontDescriptor';/**\n * Specifies the value of 'cIDSystemInfo'.\n * @private\n */this.cIDSystemInfo='CIDSystemInfo';/**\n * Specifies the value of 'fontName'.\n * @private\n */this.fontName='FontName';/**\n * Specifies the value of 'flags'.\n * @private\n */this.flags='Flags';/**\n * Specifies the value of 'fontBBox'.\n * @private\n */this.fontBBox='FontBBox';/**\n * Specifies the value of 'missingWidth'.\n * @private\n */this.missingWidth='MissingWidth';/**\n * Specifies the value of 'stemV'.\n * @private\n */this.stemV='StemV';/**\n * Specifies the value of 'italicAngle'.\n * @private\n */this.italicAngle='ItalicAngle';/**\n * Specifies the value of 'capHeight'.\n * @private\n */this.capHeight='CapHeight';/**\n * Specifies the value of 'ascent'.\n * @private\n */this.ascent='Ascent';/**\n * Specifies the value of 'descent'.\n * @private\n */this.descent='Descent';/**\n * Specifies the value of 'leading'.\n * @private\n */this.leading='Leading';/**\n * Specifies the value of 'avgWidth'.\n * @private\n */this.avgWidth='AvgWidth';/**\n * Specifies the value of 'fontFile2'.\n * @private\n */this.fontFile2='FontFile2';/**\n * Specifies the value of 'maxWidth'.\n * @private\n */this.maxWidth='MaxWidth';/**\n * Specifies the value of 'xHeight'.\n * @private\n */this.xHeight='XHeight';/**\n * Specifies the value of 'stemH'.\n * @private\n */this.stemH='StemH';/**\n * Specifies the value of 'registry'.\n * @private\n */this.registry='Registry';/**\n * Specifies the value of 'ordering'.\n * @private\n */this.ordering='Ordering';/**\n * Specifies the value of 'supplement'.\n * @private\n */this.supplement='Supplement';/**\n * Specifies the value of 'type0'.\n * @private\n */this.type0='Type0';/**\n * Specifies the value of 'identityH'.\n * @private\n */this.identityH='Identity-H';/**\n * Specifies the value of 'toUnicode'.\n * @private\n */this.toUnicode='ToUnicode';/**\n * Specifies the value of 'descendantFonts'.\n * @private\n */this.descendantFonts='DescendantFonts';/**\n * Specifies the value of 'background'.\n * @private\n */this.background='Background';/**\n * Specifies the value of 'shading'.\n * @private\n */this.shading='Shading';/**\n * Specifies the value of 'matrix'.\n * @private\n */this.matrix='Matrix';/**\n * Specifies the value of 'antiAlias'.\n * @private\n */this.antiAlias='AntiAlias';/**\n * Specifies the value of 'function'.\n * @private\n */this[\"function\"]='Function';/**\n * Specifies the value of 'extend'.\n * @private\n */this.extend='Extend';/**\n * Specifies the value of 'shadingType'.\n * @private\n */this.shadingType='ShadingType';/**\n * Specifies the value of 'coords'.\n * @private\n */this.coords='Coords';/**\n * Specifies the value of 'domain'.\n * @private\n */this.domain='Domain';/**\n * Specifies the value of 'range'.\n * @private\n */this.range='Range';/**\n * Specifies the value of 'functionType'.\n * @private\n */this.functionType='FunctionType';/**\n * Specifies the value of 'bitsPerSample'.\n * @private\n */this.bitsPerSample='BitsPerSample';/**\n * Specifies the value of 'patternType'.\n * @private\n */this.patternType='PatternType';/**\n * Specifies the value of 'paintType'.\n * @private\n */this.paintType='PaintType';/**\n * Specifies the value of 'tilingType'.\n * @private\n */this.tilingType='TilingType';/**\n * Specifies the value of 'xStep'.\n * @private\n */this.xStep='XStep';/**\n * Specifies the value of 'yStep'.\n * @private\n */this.yStep='YStep';//\n}", "get space_map() {\n const spaces = {};\n this.spaces.forEach((space) => (spaces[space.id] = true));\n return spaces;\n }", "get wageMap() {\n const wageMap = new Map();\n this.detailedDailyWage.forEach(day => {\n wageMap.set(day.day, day.wage);\n });\n wageMap.set('Total wage', this.totalWage);\n return wageMap;\n }", "function PageOverlayManager()\n{\n this._pages = {};\n this._renderedPages = [];\n this._renderedPageMap = {};\n}", "map(layout){\n\t\tvar map = new Mapping(layout);\n\t\treturn map.section();\n\t}", "getPageRange(page, pageCount) {\n let minPage;\n let maxPage;\n if (pageCount < 5) {\n return {\n max: pageCount,\n min: 1,\n };\n }\n if (page < 3) {\n minPage = 1;\n maxPage = 5;\n }\n if (page >= 3 && page <= pageCount - 2) {\n minPage = page - 2;\n maxPage = page + 2;\n }\n if (page > pageCount - 2) {\n minPage = pageCount - 4;\n maxPage = pageCount;\n }\n return {\n max: maxPage,\n min: minPage,\n };\n }", "function Master() {\n this.pageMap = {};\n}", "function manageTitleMaps() {\n //form of Page Properties\n angular.forEach($scope.pageOptionForm, function (value, key) {\n if (angular.isObject(value) && value.titleMap !== undefined) {\n if (value.key == 'DefaultPriceListId') {\n var tenum = dataUtilFactory.createEnums($scope.priceLists, {}, 'Id', 'Description');\n value.titleMap = dataUtilFactory.createMapDropdown(tenum);\n value.titleMap.unshift({ name: \"---\", value: null })\n }\n }\n })\n //form to Button properties\n angular.forEach($scope.pbForm, function (value, key) {\n if (angular.isObject(value) && value.titleMap !== undefined) {\n if (value.key == 'SetDefaultPriceListId') {\n var tenum = dataUtilFactory.createEnums($scope.priceLists, {}, 'Id', 'Description');\n value.titleMap = dataUtilFactory.createMapDropdown(tenum);\n value.titleMap.unshift({ name: \"---\", value: null })\n }\n if (value.key == 'SetDefaultSalesType') {\n var tenum = dataUtilFactory.createEnums($scope.salesTypes, {}, 'Id', 'Description');\n value.titleMap = dataUtilFactory.createMapDropdown(tenum);\n value.titleMap.unshift({ name: \"---\", value: null })\n }\n if (value.key == 'NavigateToPage') {\n var tenum = dataUtilFactory.createEnums($scope.pagesLoaded, {}, 'Id', 'Description');\n value.titleMap = dataUtilFactory.createMapDropdown(tenum);\n value.titleMap.unshift({ name: \"---\", value: null })\n }\n }\n })\n }", "function getDataMap(data){\r\n\tvar map = {};\r\n\t$.each(data, function(index, value){\r\n\t\tmap[value.siteID] = value;\r\n\t});\r\n\treturn map;\r\n}", "function pageArrayFromDict(pageDict) {\n if (pageDict.id) {\n // the page is already translated, so wrap in an array and pass back\n return [pageDict];\n }\n var newPageArray = [];\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = _getIterator(_lodash2['default'].values(pageDict)), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var dict = _step.value;\n\n // count only WIRTypeWeb pages and ignore all others (WIRTypeJavaScript etc)\n if (_lodash2['default'].isUndefined(dict.WIRTypeKey) || dict.WIRTypeKey === 'WIRTypeWeb') {\n newPageArray.push({\n id: dict.WIRPageIdentifierKey,\n title: dict.WIRTitleKey,\n url: dict.WIRURLKey,\n isKey: !_lodash2['default'].isUndefined(dict.WIRConnectionIdentifierKey)\n });\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator['return']) {\n _iterator['return']();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n\n return newPageArray;\n}", "function graftMap(obj) {\n obj.c = obj.b - obj.a;\n return obj;\n }", "get primitivesPage() {\n return this.doc.pages.find(i => (i.name && i.name.toLowerCase() === 'primitives'));\n }", "mapPost(post){\n return {\n id: post.id,\n title: post.title.rendered,\n author: post._embedded.author[0].name,\n date: post.date,\n excerpt: post.excerpt.rendered,\n content: post.content.rendered\n }\n }", "async page (page) {\n const pageHtml = parse(page.html)\n\n if (!page.route.includes('/blog/')) {\n let pageMeta = {}\n\n // eslint-disable-next-line array-callback-return\n pageHtml.querySelectorAll('meta').map((meta) => {\n const name = meta.getAttribute('name')\n const property = meta.getAttribute('property')\n\n if (property === 'og:title') {\n // og:title, not the page title\n const ogTitle = meta.getAttribute('content')\n\n pageMeta.name = meta.getAttribute('content')\n }\n })\n\n if (page.route !== '/') {\n pageMeta.path = page.route\n } else {\n // For the homepage; otherwise the image generation file structure doesn't work\n pageMeta.path = '/index'\n }\n\n pagesMetaForPreviewImages.push(pageMeta)\n }\n }", "function painter (pages) {\n\n}", "function getLandingPagesFromData(data) {\n return _.get(data, 'fusion.landing-pages');\n }", "function render_map(given_object) {\n\n //console.log(map_dt);\n given_data_second_part_3rd = given_object[\"second_part_3rd\"];\n given_data_second_part_1st = given_object[\"second_part_1st\"];\n given_data_second_part_2nd = given_object[\"second_part_2nd\"];\n given_data_third_part_1st = given_object[\"third_part_1st\"];\n given_data_third_part_2nd = given_object[\"third_part_2nd\"];\n given_data_fifth_part_1st = given_object[\"fifth_part_1st\"];\n given_data_fifth_part_2nd = given_object[\"fifth_part_2nd\"];\n given_data_fifth_part_3rd = given_object[\"fifth_part_3rd\"];\n given_data_fifth_part_4th = given_object[\"fifth_part_4th\"];\n given_data_fifth_part_5th = given_object[\"fifth_part_5th\"];\n given_data_fifth_part_6th = given_object[\"fifth_part_6th\"];\n given_data_fifth_part_7th = given_object[\"fifth_part_7th\"];\n given_data_fifth_part_8th = given_object[\"fifth_part_8th\"];\n given_data_fifth_part_9th = given_object[\"fifth_part_9th\"];\n given_data_fifth_part_10th = given_object[\"fifth_part_10th\"];\n given_data_fifth_part_11th = given_object[\"fifth_part_11th\"];\n given_data_fifth_part_12th = given_object[\"fifth_part_12th\"];\n given_data_fifth_part_13th = given_object[\"fifth_part_13th\"];\n given_data_fifth_part_14th = given_object[\"fifth_part_14th\"];\n given_data_fifth_part_15th = given_object[\"fifth_part_15th\"];\n given_data_sixth_part_1st = given_object[\"sixth_part_1st\"];\n given_data_sixth_part_2nd = given_object[\"sixth_part_2nd\"];\n given_data_sixth_part_3rd = given_object[\"sixth_part_3rd\"];\n given_data_sixth_part_4th_1 = given_object[\"sixth_part_4th_1\"];\n given_data_sixth_part_4th_2 = given_object[\"sixth_part_4th_2\"];\n given_data_sixth_part_4th_3 = given_object[\"sixth_part_4th_3\"];\n given_data_sixth_part_4th_4 = given_object[\"sixth_part_4th_4\"];\n given_data_sixth_part_5th_1 = given_object[\"sixth_part_5th_1\"];\n given_data_sixth_part_5th_2 = given_object[\"sixth_part_5th_2\"];\n given_data_sixth_part_5th_3 = given_object[\"sixth_part_5th_3\"];\n given_data_sixth_part_5th_4 = given_object[\"sixth_part_5th_4\"];\n given_data_sixth_part_6th_1 = given_object[\"sixth_part_6th_1\"];\n given_data_sixth_part_6th_2 = given_object[\"sixth_part_6th_2\"];\n given_data_sixth_part_6th_3 = given_object[\"sixth_part_6th_3\"];\n given_data_sixth_part_6th_4 = given_object[\"sixth_part_6th_4\"];\n given_data_sixth_part_7th_1 = given_object[\"sixth_part_7th_1\"];\n given_data_sixth_part_7th_2 = given_object[\"sixth_part_7th_2\"];\n given_data_sixth_part_7th_3 = given_object[\"sixth_part_7th_3\"];\n given_data_sixth_part_7th_4 = given_object[\"sixth_part_7th_4\"];\n given_data_third_part_1st_1 = given_object[\"3rd_part_1st_1\"];\n given_data_third_part_1st_2 = given_object[\"3rd_part_1st_2\"];\n given_data_third_part_1st_3 = given_object[\"3rd_part_1st_3\"];\n given_data_third_part_1st_4 = given_object[\"3rd_part_1st_4\"];\n given_data_third_part_2nd_1 = given_object[\"3rd_part_2nd_1\"];\n given_data_third_part_2nd_2 = given_object[\"3rd_part_2nd_2\"];\n given_data_third_part_2nd_3 = given_object[\"3rd_part_2nd_3\"];\n given_data_third_part_2nd_4 = given_object[\"3rd_part_2nd_4\"];\n given_data_third_part_3rd_1 = given_object[\"3rd_part_3rd_1\"];\n given_data_third_part_3rd_2 = given_object[\"3rd_part_3rd_2\"];\n given_data_third_part_3rd_3 = given_object[\"3rd_part_3rd_3\"];\n given_data_third_part_3rd_4 = given_object[\"3rd_part_3rd_4\"];\n given_data_third_part_4th_1 = given_object[\"3rd_part_4th_1\"];\n given_data_third_part_4th_2 = given_object[\"3rd_part_4th_2\"];\n given_data_third_part_4th_3 = given_object[\"3rd_part_4th_3\"];\n given_data_third_part_4th_4 = given_object[\"3rd_part_4th_4\"];\n given_data_first_part_1st_1 = given_object[\"1st_part_1st_1\"];\n given_data_first_part_1st_2 = given_object[\"1st_part_1st_2\"];\n given_data_first_part_2nd_1 = given_object[\"1st_part_2nd_1\"];\n given_data_first_part_2nd_2 = given_object[\"1st_part_2nd_2\"];\n given_data_first_part_3rd_1 = given_object[\"1st_part_3rd_1\"];\n given_data_first_part_3rd_2 = given_object[\"1st_part_3rd_2\"];\n given_data_first_part_4th_1 = given_object[\"1st_part_4th_1\"];\n given_data_first_part_4th_2 = given_object[\"1st_part_4th_2\"];\n given_data_first_part_5th_1 = given_object[\"1st_part_5th_1\"];\n given_data_first_part_5th_2 = given_object[\"1st_part_5th_2\"];\n given_data_first_part_6th_1 = given_object[\"1st_part_6th_1\"];\n given_data_first_part_6th_2 = given_object[\"1st_part_6th_2\"];\n given_data_first_part_7th_1 = given_object[\"1st_part_7th_1\"];\n given_data_first_part_7th_2 = given_object[\"1st_part_7th_2\"];\n given_data_first_part_8th_1 = given_object[\"1st_part_8th_1\"];\n given_data_first_part_8th_2 = given_object[\"1st_part_8th_2\"];\n given_data_first_part_9th_1 = given_object[\"1st_part_9th_1\"];\n given_data_first_part_9th_2 = given_object[\"1st_part_9th_2\"];\n given_data_first_part_10th_1 = given_object[\"1st_part_10th_1\"];\n given_data_first_part_10th_2 = given_object[\"1st_part_10th_2\"];\n given_data_first_part_11th_1 = given_object[\"1st_part_11th_1\"];\n given_data_first_part_11th_2 = given_object[\"1st_part_11th_2\"];\n given_data_first_part_12th_1 = given_object[\"1st_part_12th_1\"];\n given_data_first_part_12th_2 = given_object[\"1st_part_12th_2\"];\n given_data_first_part_13th_1 = given_object[\"1st_part_13th_1\"];\n given_data_first_part_13th_2 = given_object[\"1st_part_13th_2\"];\n given_data_first_part_14th_1 = given_object[\"1st_part_14th_1\"];\n given_data_first_part_14th_2 = given_object[\"1st_part_14th_2\"];\n given_data_first_part_15th_1 = given_object[\"1st_part_15th_1\"];\n given_data_first_part_15th_2 = given_object[\"1st_part_15th_2\"];\n given_data_first_part_16th_1 = given_object[\"1st_part_16th_1\"];\n given_data_first_part_16th_2 = given_object[\"1st_part_16th_2\"];\n given_data_first_part_17th_1 = given_object[\"1st_part_17th_1\"];\n given_data_first_part_17th_2 = given_object[\"1st_part_17th_2\"];\n given_data_first_part_18th_1 = given_object[\"1st_part_18th_1\"];\n given_data_first_part_18th_2 = given_object[\"1st_part_18th_2\"];\n given_data_first_part_19th_1 = given_object[\"1st_part_19th_1\"];\n given_data_first_part_19th_2 = given_object[\"1st_part_19th_2\"];\n given_data_first_part_20th_1 = given_object[\"1st_part_20th_1\"];\n given_data_first_part_20th_2 = given_object[\"1st_part_20th_2\"];\n given_data_first_part_21th_1 = given_object[\"1st_part_21th_1\"];\n given_data_first_part_21th_2 = given_object[\"1st_part_21th_2\"];\n given_data_first_part_22th_1 = given_object[\"1st_part_22th_1\"];\n given_data_first_part_22th_2 = given_object[\"1st_part_22th_2\"];\n given_data_first_part_23th_1 = given_object[\"1st_part_23th_1\"];\n given_data_first_part_23th_2 = given_object[\"1st_part_23th_2\"];\n given_data_first_part_24th_1 = given_object[\"1st_part_24th_1\"];\n given_data_first_part_24th_2 = given_object[\"1st_part_24th_2\"];\n given_data_first_part_25th_1 = given_object[\"1st_part_25th_1\"];\n given_data_first_part_25th_2 = given_object[\"1st_part_25th_2\"];\n given_data_first_part_26th_1 = given_object[\"1st_part_26th_1\"];\n given_data_first_part_26th_2 = given_object[\"1st_part_26th_2\"];\n given_data_first_part_27th_1 = given_object[\"1st_part_27th_1\"];\n given_data_first_part_27th_2 = given_object[\"1st_part_27th_2\"];\n given_data_first_part_28th_1 = given_object[\"1st_part_28th_1\"];\n given_data_first_part_28th_2 = given_object[\"1st_part_28th_2\"];\n given_data_first_part_29th_1 = given_object[\"1st_part_29th_1\"];\n given_data_first_part_29th_2 = given_object[\"1st_part_29th_2\"];\n given_data_first_part_30th_1 = given_object[\"1st_part_30th_1\"];\n given_data_first_part_30th_2 = given_object[\"1st_part_30th_2\"];\n given_data_first_part_31th_1 = given_object[\"1st_part_31th_1\"];\n given_data_first_part_31th_2 = given_object[\"1st_part_31th_2\"];\n given_data_first_part_32th_1 = given_object[\"1st_part_32th_1\"];\n given_data_first_part_32th_2 = given_object[\"1st_part_32th_2\"];\n given_data_first_part_33th_1 = given_object[\"1st_part_33th_1\"];\n given_data_first_part_33th_2 = given_object[\"1st_part_33th_2\"];\n given_data_seventh_part_1st_1 = given_object[\"7th_part_1st_1\"];\n given_data_seventh_part_1st_2 = given_object[\"7th_part_1st_2\"];\n given_data_seventh_part_2nd_1 = given_object[\"7th_part_2nd_1\"];\n given_data_seventh_part_2nd_2 = given_object[\"7th_part_2nd_2\"];\n given_data_seventh_part_3rd_1 = given_object[\"7th_part_3rd_1\"];\n given_data_seventh_part_3rd_2 = given_object[\"7th_part_3rd_2\"];\n given_data_seventh_part_4th_1 = given_object[\"7th_part_4th_1\"];\n given_data_seventh_part_4th_2 = given_object[\"7th_part_4th_2\"];\n given_data_seventh_part_5th_1 = given_object[\"7th_part_5th_1\"];\n given_data_seventh_part_5th_2 = given_object[\"7th_part_5th_2\"];\n given_data_seventh_part_6th_1 = given_object[\"7th_part_6th_1\"];\n given_data_seventh_part_6th_2 = given_object[\"7th_part_6th_2\"];\n given_data_seventh_part_7th_1 = given_object[\"7th_part_7th_1\"];\n given_data_seventh_part_7th_2 = given_object[\"7th_part_7th_2\"];\n given_data_seventh_part_8th_1 = given_object[\"7th_part_8th_1\"];\n given_data_seventh_part_8th_2 = given_object[\"7th_part_8th_2\"];\n given_data_seventh_part_9th_1 = given_object[\"7th_part_9th_1\"];\n given_data_seventh_part_9th_2 = given_object[\"7th_part_9th_2\"];\n given_data_seventh_part_10th_1 = given_object[\"7th_part_10th_1\"];\n given_data_seventh_part_10th_2 = given_object[\"7th_part_10th_2\"];\n given_data_seventh_part_11th_1 = given_object[\"7th_part_11th_1\"];\n given_data_seventh_part_11th_2 = given_object[\"7th_part_11th_2\"];\n given_data_seventh_part_12th_1 = given_object[\"7th_part_12th_1\"];\n given_data_seventh_part_12th_2 = given_object[\"7th_part_12th_2\"];\n given_data_seventh_part_13th_1 = given_object[\"7th_part_13th_1\"];\n given_data_seventh_part_13th_2 = given_object[\"7th_part_13th_2\"];\n given_data_seventh_part_14th_1 = given_object[\"7th_part_14th_1\"];\n given_data_seventh_part_14th_2 = given_object[\"7th_part_14th_2\"];\n given_data_seventh_part_15th_1 = given_object[\"7th_part_15th_1\"];\n given_data_seventh_part_15th_2 = given_object[\"7th_part_15th_2\"];\n given_data_seventh_part_16th_1 = given_object[\"7th_part_16th_1\"];\n given_data_seventh_part_16th_2 = given_object[\"7th_part_16th_2\"];\n given_data_seventh_part_17th_1 = given_object[\"7th_part_17th_1\"];\n given_data_seventh_part_17th_2 = given_object[\"7th_part_17th_2\"];\n given_data_seventh_part_18th_1 = given_object[\"7th_part_18th_1\"];\n given_data_seventh_part_18th_2 = given_object[\"7th_part_18th_2\"];\n given_data_seventh_part_19th_1 = given_object[\"7th_part_19th_1\"];\n given_data_seventh_part_19th_2 = given_object[\"7th_part_19th_2\"];\n given_data_seventh_part_20th_1 = given_object[\"7th_part_20th_1\"];\n given_data_seventh_part_20th_2 = given_object[\"7th_part_20th_2\"];\n given_data_seventh_part_21th_1 = given_object[\"7th_part_21th_1\"];\n given_data_seventh_part_21th_2 = given_object[\"7th_part_21th_2\"];\n given_data_seventh_part_22th_1 = given_object[\"7th_part_22th_1\"];\n given_data_seventh_part_22th_2 = given_object[\"7th_part_22th_2\"];\n given_data_seventh_part_23th_1 = given_object[\"7th_part_23th_1\"];\n given_data_seventh_part_23th_2 = given_object[\"7th_part_23th_2\"];\n given_data_seventh_part_24th_1 = given_object[\"7th_part_24th_1\"];\n given_data_seventh_part_24th_2 = given_object[\"7th_part_24th_2\"];\n given_data_seventh_part_25th_1 = given_object[\"7th_part_25th_1\"];\n given_data_seventh_part_25th_2 = given_object[\"7th_part_25th_2\"];\n given_data_seventh_part_26th_1 = given_object[\"7th_part_26th_1\"];\n given_data_seventh_part_26th_2 = given_object[\"7th_part_26th_2\"];\n given_data_seventh_part_27th_1 = given_object[\"7th_part_27th_1\"];\n given_data_seventh_part_27th_2 = given_object[\"7th_part_27th_2\"];\n given_data_seventh_part_28th_1 = given_object[\"7th_part_28th_1\"];\n given_data_seventh_part_28th_2 = given_object[\"7th_part_28th_2\"];\n given_data_seventh_part_29th_1 = given_object[\"7th_part_29th_1\"];\n given_data_seventh_part_29th_2 = given_object[\"7th_part_29th_2\"];\n // required part 6th block\n given_loc_data_sixth_part = given_object[\"required_part_location_6th_block\"];\n given_loc_data_fourth_part = given_object[\"required_part_location_4th_block\"];\n given_loc_data_first_part = given_object[\"required_part_location_1th_block\"];\n given_loc_data_seventh_part = given_object[\"required_part_location_7th_block\"];\n\n\n\n\n\n\n\n\n\n\n //given_data_sixth_part_6th_1\n\n //given_data_sixth_part_5th_1\n\n\n\n\n var map = L.map('map', {\n crs: L.CRS.Simple,\n minZoom: -0.60,\n maxZoom: -0.60,\n zoomControl: false\n\n\n //salert(minZoom);\n });\n\n L.tileLayer('', { attribution: '' }).addTo(map);\n myFeatureGroup = L.featureGroup().addTo(map).on(\"click\", groupClick);\n var bounds = [[-200, 0], [3300, 2500]];\n //var image = L.imageOverlay(\"{{ url_for('static', filename='white_background.jpeg')}}\", bounds).addTo(map);\n var image = L.imageOverlay(\"{{ url_for('static', filename='map3.jpg')}}\", bounds).addTo(map);\n //var image = L.VideoOverlay(\"{{ url_for('static', filename='r1.svg')}}\", bounds).addTo(map);\n //console.log(myFeatureGroup);\n\n map.fitBounds(bounds);\n var yx = L.latLng;\n var xy = function (x, y) {\n if (L.Util.isArray(x)) {\n return yx(x[1], x[0]);\n }\n return yx(y, x); // When doing xy(x, y);\n };\n\n var markers_2nd_part_3rd = given_data_second_part_3rd;\n\n // filling all markers using for loop\n for (var i = 0; i < markers_2nd_part_3rd.length; i++) {\n\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = ' <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_3rd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const urlu = URL.createObjectURL(blob);\n var greenIcon = new LeafIcon({ iconUrl: urlu });\n // test = \"Id \" + i;\n test = markers_2nd_part_3rd[i][\"SV ID\"];\n // console.log( markers_2nd_part_3rd[i][\"SV ID\"]);\n //marker_arr = markers[i]\n //var new_marker = xy(marker_arr[0], marker_arr[1]);\n x_val = markers_2nd_part_3rd[i][\"marker_position\"];\n // console.log(\"x_val\");\n //console.log(x_val);\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n //---------------------------------------------- fill 1st part of 2nd block-----------------------------\n var markers_2nd_part_1st = given_data_second_part_1st;\n for (var i = 0; i < markers_2nd_part_1st.length; i++) {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n\n }\n });\n var svg = ' <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 36\" width=\"50\" height=\"36\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">'+markers_2nd_part_3rd[i][\"Location\"]+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n //var greenIcon = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n var greenIcon = new LeafIcon({ iconUrl: svg_url });\n\n test = markers_2nd_part_1st[i][\"SV ID\"];\n x_val = markers_2nd_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n\n\n //---------------------------------------------- fill 2nd part of 2nd block---------------------------\n\n //required_part_location_2_of_2=[\"M/MT/FL058A2\",\"M/MT/FL059A2\",\"M/MT/FL060A2\",\"M/MT/FL060A3\",\"M/MT/FL061A2\",\"M/MT/FL062A2\",\"M/MT/FL063A2\",\"M/MT/FL063A3\",\"M/MT/FL064A2\",\"M/MT/FL065A2\",\"M/MT/FL066A2\",\"M/MT/FL066A3\",\"M/MT/FL067A2\",\"M/MT/FL068A2\",\"M/MT/FL069A2\",\"M/MT/FL069A3\",\"M/MT/FL070A2\",\"M/MT/FL071A2\",\"M/MT/FL072A2\",\"M/MT/FL072A3\",\"M/MT/FL073A2\",\"M/MT/FL074A2\"]\n\n var markers_2nd_part_2nd = given_data_second_part_2nd;\n for (var k = 0; k < markers_2nd_part_2nd.length; k++) {\n var greenIcon;\n if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL060A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 10);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL060A3\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 42);\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n //var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL063A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 57);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL063A3\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 90);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL058A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL059A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL064A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL065A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 97);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL070A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL071A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 202);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL073A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 250);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL067A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL068A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 151);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL075A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL076A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL077A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 296);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL079A2\" || markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL080A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 345);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n }\n\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL066A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 108);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL066A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 138);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL069A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 160);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL069A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 193);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL072A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 212);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL072A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 242);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL074A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 255);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL074A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 286);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL078A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 306);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL078A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 335);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL081A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 356);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_2nd_part_2nd[k]['Location'] == \"M/MT/FL081A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 385);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_2nd_part_2nd[k][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_2nd_part_2nd[k][\"SV ID\"];\n\n x_val = markers_2nd_part_2nd[k][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 47);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n\n // ------------------------------filling 1st part of third block--------------------------\n // required_part_location_1_of_3=[\"M/MT/FL051A1\",\"M/MT/FL050A1\",\"M/MT/FL049A2\",\"M/MT/FL049A1\",\"M/MT/FL048A1\",\"M/MT/FL047A1\",\"M/MT/FL046A2\",\"M/MT/FL046A1\",\"M/MT/FL045A1\",\"M/MT/FL044A1\"]\n\n var markers_3rd_part_1st = given_data_third_part_1st;\n\n for (var i = 0; i < markers_3rd_part_1st.length; i++) {\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL051A1\" || markers_3rd_part_1st[i]['Location'] == \"M/MT/FL050A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_3rd_part_1st[i][\"SV ID\"];\n\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL049A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 10);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL049A1\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 35);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL048A1\" || markers_3rd_part_1st[i]['Location'] == \"M/MT/FL047A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log()\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_3rd_part_1st[i][\"SV ID\"];\n\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 45);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n }\n\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL046A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 52);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL046A1\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 81);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL045A1\" || markers_3rd_part_1st[i]['Location'] == \"M/MT/FL044A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log()\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_3rd_part_1st[i][\"SV ID\"];\n\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 92);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL044A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log()\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_3rd_part_1st[i][\"SV ID\"];\n\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0] + 100, x_val[1] - 200);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n }\n\n else if (markers_3rd_part_1st[i]['Location'] == \"M/MT/FL044A3\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg_1\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_3rd_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log()\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_3rd_part_1st[i][\"SV ID\"];\n\n x_val = markers_3rd_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0] + 200, x_val[1] - 200);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n }\n\n\n\n\n }\n\n //----------------------------filling 2nd part for 3rd block----------------------------\n var markers_3rd_part_2nd = given_data_third_part_2nd;\n required_part_location_2_of_3 = [\"M/MT/FL044A2\", \"M/MT/FL044A3\", \"M/MT/FL044A4\", \"M/MT/FL044A5\"]\n\n for (var i = 0; i < markers_3rd_part_2nd.length; i++) {\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_3rd_part_2nd[i]['Location'] == \"M/MT/FL044A2\" || markers_3rd_part_2nd[i]['Location'] == \"M/MT/FL044A3\" || markers_3rd_part_2nd[i]['Location'] == \"M/MT/FL044A4\" || markers_3rd_part_2nd[i]['Location'] == \"M/MT/FL044A5\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_3rd_part_2nd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_3rd_part_2nd[i][\"SV ID\"];\n\n x_val = markers_3rd_part_2nd[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n\n }\n\n }\n //given_data_fifth_part_1st\n\n\n\n //---------------------------------------filling 5th block---------------------------------------------\n //----------------------------filling 1st part for 5th block----------------------------\n // required_part_location_1_of_5=[\"M/MT/FL043A1\",\"M/MT/FL043A2\",\"M/MT/FL043A3\",\"M/MT/FL043A4\"]\n\n var markers_5th_part_1st = given_data_fifth_part_1st;\n //console.log(\"length here\");\n //console.log(markers_5th_part_1st);\n\n for (var i = 0; i < markers_5th_part_1st.length; i++) {\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_5th_part_1st[i]['Location'] == \"M/MT/FL043A1\" || markers_5th_part_1st[i]['Location'] == \"M/MT/FL043A2\" || markers_5th_part_1st[i]['Location'] == \"M/MT/FL043A3\" || markers_5th_part_1st[i]['Location'] == \"M/MT/FL043A4\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_1st[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_1st[i][\"SV ID\"];\n\n x_val = markers_5th_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n\n }\n\n }\n\n\n\n //----------------------------filling 2nd part for 5th block----------------------------\n // required_part_location_1_of_5=[\"M/MT/FL043A1\",\"M/MT/FL043A2\",\"M/MT/FL043A3\",\"M/MT/FL043A4\"]\n\n var markers_5th_part_2nd = given_data_fifth_part_2nd;\n\n for (var i = 0; i < markers_5th_part_2nd.length; i++) {\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_5th_part_2nd[i]['Location'] == \"M/MT/FL042A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_2nd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_2nd[i][\"SV ID\"];\n\n x_val = markers_5th_part_2nd[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n\n }\n\n }\n\n\n //----------------------------filling 3rd part for 5th block----------------------------\n var markers_5th_part_3rd = given_data_fifth_part_3rd;\n\n for (var i = 0; i < markers_5th_part_3rd.length; i++) {\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A1\" || markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A2\" || markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A3\" || markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A4\" || markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A5\" || markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A6\" || markers_5th_part_3rd[i]['Location'] == \"M/MT/FL041A7\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_3rd[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_3rd[i][\"SV ID\"];\n\n x_val = markers_5th_part_3rd[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n\n }\n\n }\n\n\n //----------------------------filling 4th part for 5th block----------------------------\n var markers_5th_part_4th = given_data_fifth_part_4th;\n\n for (var i = 0; i < markers_5th_part_4th.length; i++) {\n // console.log(\"hiiii\");\n //console.log(markers_5th_part_4th);\n\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_5th_part_4th[i]['Location'] == \"M/MT/FL040A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_4th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_4th[i][\"SV ID\"];\n x_val = markers_5th_part_4th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n }\n\n }\n\n\n\n //----------------------------filling 5th part for 5th block----------------------------\n var markers_5th_part_5th = given_data_fifth_part_5th;\n //console.log(markers_5th_part_5th);\n\n for (var i = 0; i < markers_5th_part_5th.length; i++) {\n //console.log(\"hiiii soma\");\n\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_5th_part_5th[i]['Location'] == \"M/MT/FL039A1\" || markers_5th_part_5th[i]['Location'] == \"M/MT/FL039A2\" || markers_5th_part_5th[i]['Location'] == \"M/MT/FL039A3\" || markers_5th_part_5th[i]['Location'] == \"M/MT/FL039A4\" || markers_5th_part_5th[i]['Location'] == \"M/MT/FL039A5\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_5th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_5th[i][\"SV ID\"];\n x_val = markers_5th_part_5th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n\n }\n\n }\n //----------------------------filling 6th part for 5th block----------------------------\n var markers_5th_part_6th = given_data_fifth_part_6th;\n //required_part_location_6_of_5=[\"M/MT/FL038A1\",\"M/MT/FL037A1\",\"M/MT/FL036A1\",\"M/MT/FL035A1\",\"M/MT/FL034A1\",\"M/MT/FL033A1\",\"M/MT/FL032A1\",\"M/MT/FL031A1\",\"M/MT/FL030A1\",\"M/MT/FL029A1\",\"M/MT/FL028A1\"]\n\n for (var i = 0; i < markers_5th_part_6th.length; i++) {\n\n\n var greenIcon;\n //console.log(\"all location\")\n //console.log(markers_2nd_part_2nd[k]['Location']);\n if (markers_5th_part_6th[i]['Location'] == \"M/MT/FL038A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL037A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL036A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL035A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL034A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL033A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL032A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL031A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL030A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL029A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL028A1\" || markers_5th_part_6th[i]['Location'] == \"M/MT/FL027A1\") {\n\n\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_6th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n\n\n\n //console.log(markers_3rd_part_2nd[i][\"Location\"]);\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_6th[i][\"SV ID\"];\n x_val = markers_5th_part_6th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n // console.log(test);\n\n\n\n\n }\n }\n\n //----------------------fill 7th part of 6th block---------------------------------\n var markers_5th_part_7th = given_data_fifth_part_7th;\n // required_part_location_7_of_5=[\"M/MT/FL026A1\",\"M/MT/FL025A1\",\"M/MT/FL024A1\",\"M/MT/FL023A1\",\"M/MT/FL022A1\",\"M/MT/FL021A1\",\"M/MT/FL020A1\",\"M/MT/FL019A1\",\"M/MT/FL018A1\",\"M/MT/FL017A1\",\"M/MT/FL016A1\",\"M/MT/FL015A1\",\"M/MT/FL014A1\"]\n\n for (var i = 0; i < markers_5th_part_7th.length; i++) {\n var greenIcon;\n if (markers_5th_part_7th[i]['Location'] == \"M/MT/FL026A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL025A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL024A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL023A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL022A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL021A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL020A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL019A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL018A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL017A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL016A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL015A1\" || markers_5th_part_7th[i]['Location'] == \"M/MT/FL014A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_7th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_7th[i][\"SV ID\"];\n x_val = markers_5th_part_7th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------fill 7th part of 6th block---------------------------------\n var markers_5th_part_8th = given_data_fifth_part_8th;\n // console.log(\"given 5th part list\" );\n // console.log(markers_5th_part_8th);\n\n\n for (var i = 0; i < markers_5th_part_8th.length; i++) {\n var greenIcon;\n if (markers_5th_part_8th[i]['Location'] == \"M/MT/FL013A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL012A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL011A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL010A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL009A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL008A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL007A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL006A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL005A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL003A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL002A1\" || markers_5th_part_8th[i]['Location'] == \"M/MT/FL001A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_8th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_8th[i][\"SV ID\"];\n\n\n\n x_val = markers_5th_part_8th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n }\n\n if (markers_5th_part_8th[i]['Location'] == \"M/MT/FL004A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_8th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n test = markers_5th_part_8th[i][\"SV ID\"];\n x_val = markers_5th_part_8th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 6);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------fill 9th part of 6th block---------------------------------\n var markers_5th_part_9th = given_data_fifth_part_9th;\n\n for (var i = 0; i < markers_5th_part_9th.length; i++) {\n var greenIcon;\n if (markers_5th_part_9th[i]['Location'] == \"M/MT/FL029A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_9th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_9th[i][\"SV ID\"];\n x_val = markers_5th_part_9th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n //----------------------fill 10th part of 6th block---------------------------------\n var markers_5th_part_10th = given_data_fifth_part_10th;\n\n for (var i = 0; i < markers_5th_part_10th.length; i++) {\n var greenIcon;\n if (markers_5th_part_10th[i]['Location'] == \"M/MT/FL026A2\" || markers_5th_part_10th[i]['Location'] == \"M/MT/FL026A3\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_10th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_10th[i][\"SV ID\"];\n x_val = markers_5th_part_10th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n //----------------------fill 11th part of 6th block---------------------------------\n var markers_5th_part_11th = given_data_fifth_part_11th;\n\n for (var i = 0; i < markers_5th_part_11th.length; i++) {\n var greenIcon;\n if (markers_5th_part_11th[i]['Location'] == \"M/MT/FL021A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_11th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_11th[i][\"SV ID\"];\n x_val = markers_5th_part_11th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n var markers_5th_part_12th = given_data_fifth_part_12th;\n\n for (var i = 0; i < markers_5th_part_12th.length; i++) {\n var greenIcon;\n if (markers_5th_part_12th[i]['Location'] == \"M/MT/FL013A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_12th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_12th[i][\"SV ID\"];\n x_val = markers_5th_part_12th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n var markers_5th_part_13th = given_data_fifth_part_13th;\n\n for (var i = 0; i < markers_5th_part_13th.length; i++) {\n var greenIcon;\n if (markers_5th_part_13th[i]['Location'] == \"M/MT/FL011A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_13th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_13th[i][\"SV ID\"];\n x_val = markers_5th_part_13th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n var markers_5th_part_14th = given_data_fifth_part_14th;\n\n for (var i = 0; i < markers_5th_part_14th.length; i++) {\n var greenIcon;\n if (markers_5th_part_14th[i]['Location'] == \"M/MT/FL006A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_14th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_14th[i][\"SV ID\"];\n x_val = markers_5th_part_14th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n var markers_5th_part_15th = given_data_fifth_part_15th;\n\n for (var i = 0; i < markers_5th_part_15th.length; i++) {\n var greenIcon;\n if (markers_5th_part_15th[i]['Location'] == \"M/MT/FL005A2\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_5th_part_15th[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_5th_part_15th[i][\"SV ID\"];\n x_val = markers_5th_part_15th[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n\n }\n\n\n\n // code for fill 6th block\n\n var markers_6th_part_1st = given_data_sixth_part_1st;\n for (var i = 0; i < markers_6th_part_1st.length; i++) {\n var greenIcon;\n if (markers_6th_part_1st[i]['Location'] == \"M/MT/FL083A3\" || markers_6th_part_1st[i]['Location'] == \"M/MT/FL083A2\" || markers_6th_part_1st[i]['Location'] == \"M/MT/FL083A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_6th_part_1st[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_6th_part_1st[i][\"SV ID\"];\n x_val = markers_6th_part_1st[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n\n }\n\n\n //---------------------------------------------------------\n var markers_6th_part_2nd = given_data_sixth_part_2nd;\n for (var i = 0; i < markers_6th_part_2nd.length; i++) {\n var greenIcon;\n if (markers_6th_part_2nd[i]['Location'] == \"M/MT/FL084A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL085A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL086A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL087A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL088A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL089A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL090A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL091A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL092A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL093A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL093A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL094A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL095A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL096A1\" || markers_6th_part_2nd[i]['Location'] == \"M/MT/FL097A1\") {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_6th_part_2nd[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_6th_part_2nd[i][\"SV ID\"];\n x_val = markers_6th_part_2nd[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n\n }\n //-------------------------------------------------------------------\n\n //given_data_sixth_part_4th_1\n var markers_6th_part_3rd = given_data_sixth_part_3rd;\n for (var i = 0; i < markers_6th_part_3rd.length; i++) {\n var greenIcon;\n if (markers_6th_part_3rd[i]['Location'] == \"M/MT/FL084A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_6th_part_3rd[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_6th_part_3rd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_3rd[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 10);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_6th_part_3rd[i]['Location'] == \"M/MT/FL084A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_6th_part_3rd[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_6th_part_3rd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_3rd[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 40);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n else if (markers_6th_part_3rd[i]['Location'] == \"M/MT/FL085A2\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_6th_part_3rd[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_6th_part_3rd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_3rd[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 60);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n else if (markers_6th_part_3rd[i]['Location'] == \"M/MT/FL085A3\") {\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 15],\n\n }\n });\n x_val = markers_6th_part_3rd[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 15\" width=\"50\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">' + markers_6th_part_3rd[i][\"Location\"] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_3rd[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1] - 90);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n else {\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"svg' + String(i) + '\" fill=\"#0853bf\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">' + markers_6th_part_3rd[i]['Location'] + '</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url });\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = markers_6th_part_3rd[i][\"SV ID\"];\n x_val = markers_6th_part_3rd[i][\"marker_position\"];\n var new_marker = xy(x_val[0], x_val[1] - 97);\n var given_marker = L.marker(new_marker, { icon: greenIcon2 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n\n\n\n\n\n }\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_4th_1 = given_data_sixth_part_4th_1;\n for (var i = 0; i < markers_6th_part_4th_1.length; i++) {\n var greenIcon;\n if (markers_6th_part_4th_1[i]['Location'] == \"M/MT/MD101A1\" || markers_6th_part_4th_1[i]['Location'] == \"M/MT/MD101A2\" || markers_6th_part_4th_1[i]['Location'] == \"M/MT/MD101A3\" || markers_6th_part_4th_1[i]['Location'] == \"M/MT/MD101A4\") {\n var loc = markers_6th_part_4th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_4th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_4th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n\n //-------------------------------filling 6th block 4_2----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_4th_2 = given_data_sixth_part_4th_2;\n for (var i = 0; i < markers_6th_part_4th_2.length; i++) {\n var greenIcon;\n if (markers_6th_part_4th_2[i]['Location'] == \"M/MT/MD101B1\" || markers_6th_part_4th_2[i]['Location'] == \"M/MT/MD101B2\" || markers_6th_part_4th_2[i]['Location'] == \"M/MT/MD101B3\" || markers_6th_part_4th_2[i]['Location'] == \"M/MT/MD101B4\") {\n var loc = markers_6th_part_4th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_4th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_4th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n\n //-------------------------------filling 6th block 4_3----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_4th_3 = given_data_sixth_part_4th_3;\n for (var i = 0; i < markers_6th_part_4th_3.length; i++) {\n var greenIcon;\n if (markers_6th_part_4th_3[i]['Location'] == \"M/MT/MD101C1\" || markers_6th_part_4th_3[i]['Location'] == \"M/MT/MD101C2\" || markers_6th_part_4th_3[i]['Location'] == \"M/MT/MD101C3\" || markers_6th_part_4th_3[i]['Location'] == \"M/MT/MD101C4\") {\n var loc = markers_6th_part_4th_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_4th_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_4th_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n\n\n //--------------------------------end 6th block-------------------------------------\n\n\n\n //-------------------------------filling 6th block 4_4----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_4th_4 = given_data_sixth_part_4th_4;\n for (var i = 0; i < markers_6th_part_4th_4.length; i++) {\n var greenIcon;\n if (markers_6th_part_4th_4[i]['Location'] == \"M/MT/MD101D1\" || markers_6th_part_4th_4[i]['Location'] == \"M/MT/MD101D2\" || markers_6th_part_4th_4[i]['Location'] == \"M/MT/MD101D3\" || markers_6th_part_4th_4[i]['Location'] == \"M/MT/MD101D4\") {\n var loc = markers_6th_part_4th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_4th_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_4th_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n\n\n //--------------------------------end 6th block-------------------------------------\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_5th_1 = given_data_sixth_part_5th_1;\n for (var i = 0; i < markers_6th_part_5th_1.length; i++) {\n var greenIcon;\n if (markers_6th_part_5th_1[i]['Location'] == \"M/MT/MD102A1\" || markers_6th_part_5th_1[i]['Location'] == \"M/MT/MD102A2\" || markers_6th_part_5th_1[i]['Location'] == \"M/MT/MD102A3\" || markers_6th_part_5th_1[i]['Location'] == \"M/MT/MD102A4\") {\n var loc = markers_6th_part_5th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_5th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_5th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_5th_2 = given_data_sixth_part_5th_2;\n for (var i = 0; i < markers_6th_part_5th_2.length; i++) {\n var greenIcon;\n if (markers_6th_part_5th_2[i]['Location'] == \"M/MT/MD102B1\" || markers_6th_part_5th_2[i]['Location'] == \"M/MT/MD102B2\" || markers_6th_part_5th_2[i]['Location'] == \"M/MT/MD102B3\" || markers_6th_part_5th_2[i]['Location'] == \"M/MT/MD102B4\") {\n var loc = markers_6th_part_5th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_5th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_5th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_5th_3 = given_data_sixth_part_5th_3;\n for (var i = 0; i < markers_6th_part_5th_3.length; i++) {\n var greenIcon;\n if (markers_6th_part_5th_3[i]['Location'] == \"M/MT/MD102C1\" || markers_6th_part_5th_3[i]['Location'] == \"M/MT/MD102C2\" || markers_6th_part_5th_3[i]['Location'] == \"M/MT/MD102C3\" || markers_6th_part_5th_3[i]['Location'] == \"M/MT/MD102C4\") {\n var loc = markers_6th_part_5th_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_5th_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_5th_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_5th_4 = given_data_sixth_part_5th_4;\n for (var i = 0; i < markers_6th_part_5th_4.length; i++) {\n var greenIcon;\n if (markers_6th_part_5th_4[i]['Location'] == \"M/MT/MD102D1\" || markers_6th_part_5th_4[i]['Location'] == \"M/MT/MD102D2\" || markers_6th_part_5th_4[i]['Location'] == \"M/MT/MD102D3\" || markers_6th_part_5th_4[i]['Location'] == \"M/MT/MD102D4\") {\n var loc = markers_6th_part_5th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_5th_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_5th_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_6th_1 = given_data_sixth_part_6th_1;\n for (var i = 0; i < markers_6th_part_6th_1.length; i++) {\n var greenIcon;\n if (markers_6th_part_6th_1[i]['Location'] == \"M/MT/MD103A1\" || markers_6th_part_6th_1[i]['Location'] == \"M/MT/MD103A2\" || markers_6th_part_6th_1[i]['Location'] == \"M/MT/MD103A3\" || markers_6th_part_6th_1[i]['Location'] == \"M/MT/MD103A4\") {\n var loc = markers_6th_part_6th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_6th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_6th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_6th_2 = given_data_sixth_part_6th_2;\n for (var i = 0; i < markers_6th_part_6th_2.length; i++) {\n var greenIcon;\n if (markers_6th_part_6th_2[i]['Location'] == \"M/MT/MD103B1\" || markers_6th_part_6th_2[i]['Location'] == \"M/MT/MD103B2\" || markers_6th_part_6th_2[i]['Location'] == \"M/MT/MD103B3\" || markers_6th_part_6th_2[i]['Location'] == \"M/MT/MD103B4\") {\n var loc = markers_6th_part_6th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_6th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_6th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_6th_3 = given_data_sixth_part_6th_3;\n for (var i = 0; i < markers_6th_part_6th_3.length; i++) {\n var greenIcon;\n if (markers_6th_part_6th_3[i]['Location'] == \"M/MT/MD103C1\" || markers_6th_part_6th_3[i]['Location'] == \"M/MT/MD103C2\" || markers_6th_part_6th_3[i]['Location'] == \"M/MT/MD103C3\" || markers_6th_part_6th_3[i]['Location'] == \"M/MT/MD103C4\") {\n var loc = markers_6th_part_6th_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_6th_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_6th_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_6th_4 = given_data_sixth_part_6th_4;\n for (var i = 0; i < markers_6th_part_6th_4.length; i++) {\n var greenIcon;\n if (markers_6th_part_6th_4[i]['Location'] == \"M/MT/MD103D1\" || markers_6th_part_6th_4[i]['Location'] == \"M/MT/MD103D2\" || markers_6th_part_6th_4[i]['Location'] == \"M/MT/MD103D3\" || markers_6th_part_6th_4[i]['Location'] == \"M/MT/MD103D4\") {\n var loc = markers_6th_part_6th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_6th_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_6th_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_7th_1 = given_data_sixth_part_7th_1;\n for (var i = 0; i < markers_6th_part_7th_1.length; i++) {\n var greenIcon;\n if (markers_6th_part_7th_1[i]['Location'] == \"M/MT/MD104A1\" || markers_6th_part_7th_1[i]['Location'] == \"M/MT/MD104A2\" || markers_6th_part_7th_1[i]['Location'] == \"M/MT/MD104A3\" || markers_6th_part_7th_1[i]['Location'] == \"M/MT/MD104A4\") {\n var loc = markers_6th_part_7th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_7th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_7th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_7th_2 = given_data_sixth_part_7th_2;\n for (var i = 0; i < markers_6th_part_7th_2.length; i++) {\n var greenIcon;\n if (markers_6th_part_7th_2[i]['Location'] == \"M/MT/MD104B1\" || markers_6th_part_7th_2[i]['Location'] == \"M/MT/MD104B2\" || markers_6th_part_7th_2[i]['Location'] == \"M/MT/MD104B3\" || markers_6th_part_7th_2[i]['Location'] == \"M/MT/MD104B4\") {\n var loc = markers_6th_part_7th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_7th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_7th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_7th_3 = given_data_sixth_part_7th_3;\n for (var i = 0; i < markers_6th_part_7th_3.length; i++) {\n var greenIcon;\n if (markers_6th_part_7th_3[i]['Location'] == \"M/MT/MD104C1\" || markers_6th_part_7th_3[i]['Location'] == \"M/MT/MD104C2\" || markers_6th_part_7th_3[i]['Location'] == \"M/MT/MD104C3\" || markers_6th_part_7th_3[i]['Location'] == \"M/MT/MD104C4\") {\n var loc = markers_6th_part_7th_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_7th_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_7th_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n\n\n }\n\n //--------------------------------end 6th block--------------------------------------\n\n\n //-------------------------------filling 6th block 4_1----------------------------------\n //given_data_sixth_part_4th_1\n //required_part_location_4_of_6_4=[\"M/MT/MD101D1\",\"M/MT/MD101D2\",\"M/MT/MD101D3\",\"M/MT/MD101D4\"]\n\n var markers_6th_part_7th_4 = given_data_sixth_part_7th_4;\n for (var i = 0; i < markers_6th_part_6th_4.length; i++) {\n var greenIcon;\n if (markers_6th_part_7th_4[i]['Location'] == \"M/MT/MD104D1\" || markers_6th_part_7th_4[i]['Location'] == \"M/MT/MD104D2\" || markers_6th_part_7th_4[i]['Location'] == \"M/MT/MD104D3\" || markers_6th_part_7th_4[i]['Location'] == \"M/MT/MD104D4\") {\n var loc = markers_6th_part_7th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_6th_part_7th_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_6th_part_7th_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n\n // ----------------------required partloc name render here of 6th block\n var markers_6th_loc_data = given_loc_data_sixth_part;\n for (var i = 0; i < markers_6th_loc_data.length; i++) {\n var greenIcon;\n if (markers_6th_loc_data[i]['part_location'] == \"M/MT/MD101\" || markers_6th_loc_data[i]['part_location'] == \"M/MT/MD102\" || markers_6th_loc_data[i]['part_location'] == \"M/MT/MD103\" || markers_6th_loc_data[i]['part_location'] == \"M/MT/MD104\") {\n //var loc = markers_6th_part_7th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [200, 20],\n\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"20\" width=\"200\" viewBox=\"0 0 200 20\"><text x=\"3\" y=\"10\" fill=\"black\" font-size=\"8\" font-weight=\"700\">' + markers_6th_loc_data[i]['part_location'] + '</text></svg>';\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">'+loc+'</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = \"location\"\n var new_marker = xy(markers_6th_loc_data[i]['x_val'], markers_6th_loc_data[i]['y_val']);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n\n\n //------------------part loc 4th block here ---------------------\n // ----------------------required partloc name render here of 6th block\n var markers_4th_loc_data = given_loc_data_fourth_part;\n for (var i = 0; i < markers_4th_loc_data.length; i++) {\n var greenIcon;\n if (markers_4th_loc_data[i]['part_location'] == \"M/MT/MD105\" || markers_4th_loc_data[i]['part_location'] == \"M/MT/MD106\" || markers_4th_loc_data[i]['part_location'] == \"M/MT/MD107\" || markers_4th_loc_data[i]['part_location'] == \"M/MT/MD108\") {\n //var loc = markers_6th_part_7th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [200, 20],\n\n }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"20\" width=\"200\" viewBox=\"0 0 200 20\"><text x=\"3\" y=\"10\" fill=\"black\" font-size=\"8\" font-weight=\"700\">' + markers_4th_loc_data[i]['part_location'] + '</text></svg>';\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">'+loc+'</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = \"location\"\n var new_marker = xy(markers_4th_loc_data[i]['x_val'], markers_4th_loc_data[i]['y_val']);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n\n // ----------------------required partloc name render here of 6th block\n var markers_1st_loc_data = given_loc_data_first_part;\n for (var i = 0; i < markers_1st_loc_data.length; i++) {\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [200, 10] }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"10\" width=\"200\" viewBox=\"0 0 200 10\"><text x=\"3\" y=\"10\" fill=\"black\" font-size=\"6\" font-weight=\"600\">' + markers_1st_loc_data[i]['part_location'] + '</text></svg>';\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">'+loc+'</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = \"location\"\n var new_marker = xy(markers_1st_loc_data[i]['x_val'], markers_1st_loc_data[i]['y_val']);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n // ---------------------------------------------required partloc name render here of 6th block------------------\n var markers_7th_loc_data = given_loc_data_seventh_part;\n for (var i = 0; i < markers_7th_loc_data.length; i++) {\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [200, 10] }\n });\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" height=\"10\" width=\"200\" viewBox=\"0 0 200 10\"><text x=\"3\" y=\"10\" fill=\"black\" font-size=\"6\" font-weight=\"600\">' + markers_7th_loc_data[i]['part_location'] + '</text></svg>';\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">'+loc+'</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = \"location\"\n var new_marker = xy(markers_7th_loc_data[i]['x_val'], markers_7th_loc_data[i]['y_val']);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n // ---------------------------------partloc render end here of 6th block\n //--------------------------------end 6th block--------------------------------------\n\n //-----------------------------------------filling 3rd block m/mt/md105-----------------------------------------\n var markers_3rd_part_1st_1 = given_data_third_part_1st_1;\n\n for (var i = 0; i < markers_3rd_part_1st_1.length; i++) {\n if (markers_3rd_part_1st_1[i]['Location'] == \"M/MT/MD105D1\" || markers_3rd_part_1st_1[i]['Location'] == \"M/MT/MD105D2\" || markers_3rd_part_1st_1[i]['Location'] == \"M/MT/MD105D3\" || markers_3rd_part_1st_1[i]['Location'] == \"M/MT/MD105D4\") {\n var loc = markers_3rd_part_1st_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_1st_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_3rd_part_1st_2 = given_data_third_part_1st_2;\n\n for (var i = 0; i < markers_3rd_part_1st_2.length; i++) {\n if (markers_3rd_part_1st_2[i]['Location'] == \"M/MT/MD105C1\" || markers_3rd_part_1st_2[i]['Location'] == \"M/MT/MD105C2\" || markers_3rd_part_1st_2[i]['Location'] == \"M/MT/MD105C3\" || markers_3rd_part_1st_2[i]['Location'] == \"M/MT/MD105C4\") {\n var loc = markers_3rd_part_1st_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_1st_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n\n\n var markers_3rd_part_1st_3 = given_data_third_part_1st_3;\n for (var i = 0; i < markers_3rd_part_1st_3.length; i++) {\n var greenIcon;\n if (markers_3rd_part_1st_3[i]['Location'] == \"M/MT/MD105B1\" || markers_3rd_part_1st_3[i]['Location'] == \"M/MT/MD105B2\" || markers_3rd_part_1st_3[i]['Location'] == \"M/MT/MD105B3\" || markers_3rd_part_1st_3[i]['Location'] == \"M/MT/MD105B4\") {\n var loc = markers_3rd_part_1st_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_1st_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n var markers_3rd_part_1st_4 = given_data_third_part_1st_4;\n for (var i = 0; i < markers_3rd_part_1st_4.length; i++) {\n var greenIcon;\n if (markers_3rd_part_1st_4[i]['Location'] == \"M/MT/MD105A1\" || markers_3rd_part_1st_4[i]['Location'] == \"M/MT/MD105A2\" || markers_3rd_part_1st_4[i]['Location'] == \"M/MT/MD105A3\" || markers_3rd_part_1st_4[i]['Location'] == \"M/MT/MD105A4\") {\n var loc = markers_3rd_part_1st_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_1st_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_1st_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n //-----------------------------------------end m/mt/md105--------------------------------------------------------------\n\n\n //-----------------------------------------filling 3rd block m/mt/md106-----------------------------------------\n var markers_3rd_part_2nd_1 = given_data_third_part_2nd_1;\n\n for (var i = 0; i < markers_3rd_part_2nd_1.length; i++) {\n if (markers_3rd_part_2nd_1[i]['Location'] == \"M/MT/MD106D1\" || markers_3rd_part_2nd_1[i]['Location'] == \"M/MT/MD106D2\" || markers_3rd_part_2nd_1[i]['Location'] == \"M/MT/MD106D3\" || markers_3rd_part_2nd_1[i]['Location'] == \"M/MT/MD106D4\") {\n var loc = markers_3rd_part_2nd_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_2nd_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_2nd_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_3rd_part_2nd_2 = given_data_third_part_2nd_2;\n\n for (var i = 0; i < markers_3rd_part_2nd_2.length; i++) {\n if (markers_3rd_part_2nd_2[i]['Location'] == \"M/MT/MD106C1\" || markers_3rd_part_2nd_2[i]['Location'] == \"M/MT/MD106C2\" || markers_3rd_part_2nd_2[i]['Location'] == \"M/MT/MD106C3\" || markers_3rd_part_2nd_2[i]['Location'] == \"M/MT/MD106C4\") {\n var loc = markers_3rd_part_2nd_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_2nd_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_2nd_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n\n\n var markers_3rd_part_2nd_3 = given_data_third_part_2nd_3;\n for (var i = 0; i < markers_3rd_part_2nd_3.length; i++) {\n var greenIcon;\n if (markers_3rd_part_2nd_3[i]['Location'] == \"M/MT/MD106B1\" || markers_3rd_part_2nd_3[i]['Location'] == \"M/MT/MD106B2\" || markers_3rd_part_2nd_3[i]['Location'] == \"M/MT/MD106B3\" || markers_3rd_part_2nd_3[i]['Location'] == \"M/MT/MD106B4\") {\n var loc = markers_3rd_part_2nd_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_2nd_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_2nd_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n var markers_3rd_part_2nd_4 = given_data_third_part_2nd_4;\n for (var i = 0; i < markers_3rd_part_2nd_4.length; i++) {\n var greenIcon;\n if (markers_3rd_part_2nd_4[i]['Location'] == \"M/MT/MD106A1\" || markers_3rd_part_2nd_4[i]['Location'] == \"M/MT/MD106A2\" || markers_3rd_part_2nd_4[i]['Location'] == \"M/MT/MD106A3\" || markers_3rd_part_2nd_4[i]['Location'] == \"M/MT/MD106A4\") {\n var loc = markers_3rd_part_2nd_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_2nd_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_2nd_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n\n\n\n //-----------------------------------------end m/mt/md106--------------------------------------------------------------\n\n\n //-----------------------------------------filling 3rd block m/mt/md107-----------------------------------------\n var markers_3rd_part_3rd_1 = given_data_third_part_3rd_1;\n\n for (var i = 0; i < markers_3rd_part_3rd_1.length; i++) {\n if (markers_3rd_part_3rd_1[i]['Location'] == \"M/MT/MD107D1\" || markers_3rd_part_3rd_1[i]['Location'] == \"M/MT/MD107D2\" || markers_3rd_part_3rd_1[i]['Location'] == \"M/MT/MD107D3\" || markers_3rd_part_3rd_1[i]['Location'] == \"M/MT/MD107D4\") {\n var loc = markers_3rd_part_3rd_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_3rd_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_3rd_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_3rd_part_3rd_2 = given_data_third_part_3rd_2;\n\n for (var i = 0; i < markers_3rd_part_3rd_2.length; i++) {\n if (markers_3rd_part_3rd_2[i]['Location'] == \"M/MT/MD107C1\" || markers_3rd_part_3rd_2[i]['Location'] == \"M/MT/MD107C2\" || markers_3rd_part_3rd_2[i]['Location'] == \"M/MT/MD107C3\" || markers_3rd_part_3rd_2[i]['Location'] == \"M/MT/MD107C4\") {\n var loc = markers_3rd_part_3rd_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_3rd_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_3rd_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n\n\n var markers_3rd_part_3rd_3 = given_data_third_part_3rd_3;\n for (var i = 0; i < markers_3rd_part_3rd_3.length; i++) {\n if (markers_3rd_part_3rd_3[i]['Location'] == \"M/MT/MD107B1\" || markers_3rd_part_3rd_3[i]['Location'] == \"M/MT/MD107B2\" || markers_3rd_part_3rd_3[i]['Location'] == \"M/MT/MD107B3\" || markers_3rd_part_3rd_3[i]['Location'] == \"M/MT/MD107B4\") {\n var loc = markers_3rd_part_3rd_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_3rd_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_3rd_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n var markers_3rd_part_3rd_4 = given_data_third_part_3rd_4;\n for (var i = 0; i < markers_3rd_part_3rd_4.length; i++) {\n if (markers_3rd_part_3rd_4[i]['Location'] == \"M/MT/MD107A1\" || markers_3rd_part_3rd_4[i]['Location'] == \"M/MT/MD107A2\" || markers_3rd_part_3rd_4[i]['Location'] == \"M/MT/MD107A3\" || markers_3rd_part_3rd_4[i]['Location'] == \"M/MT/MD107A4\") {\n var loc = markers_3rd_part_3rd_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_3rd_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_3rd_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n\n\n\n //-----------------------------------------end m/mt/md107--------------------------------------------------------------\n\n\n //-----------------------------------------filling 3rd block m/mt/md108-----------------------------------------\n var markers_3rd_part_4th_1 = given_data_third_part_4th_1;\n\n\n for (var i = 0; i < markers_3rd_part_4th_1.length; i++) {\n if (markers_3rd_part_4th_1[i]['Location'] == \"M/MT/MD108D1\" || markers_3rd_part_4th_1[i]['Location'] == \"M/MT/MD108D2\" || markers_3rd_part_4th_1[i]['Location'] == \"M/MT/MD108D3\" || markers_3rd_part_4th_1[i]['Location'] == \"M/MT/MD108D4\") {\n var loc = markers_3rd_part_4th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_4th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_4th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_3rd_part_4th_2 = given_data_third_part_4th_2;\n\n for (var i = 0; i < markers_3rd_part_4th_2.length; i++) {\n if (markers_3rd_part_4th_2[i]['Location'] == \"M/MT/MD108C1\" || markers_3rd_part_4th_2[i]['Location'] == \"M/MT/MD108C2\" || markers_3rd_part_4th_2[i]['Location'] == \"M/MT/MD108C3\" || markers_3rd_part_4th_2[i]['Location'] == \"M/MT/MD108C4\") {\n var loc = markers_3rd_part_4th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_4th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_4th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n\n\n var markers_3rd_part_4th_3 = given_data_third_part_4th_3;\n for (var i = 0; i < markers_3rd_part_4th_3.length; i++) {\n if (markers_3rd_part_4th_3[i]['Location'] == \"M/MT/MD108B1\" || markers_3rd_part_4th_3[i]['Location'] == \"M/MT/MD108B2\" || markers_3rd_part_4th_3[i]['Location'] == \"M/MT/MD108B3\" || markers_3rd_part_4th_3[i]['Location'] == \"M/MT/MD108B4\") {\n var loc = markers_3rd_part_4th_3[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_4th_3[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_4th_3[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n }\n\n var markers_3rd_part_4th_4 = given_data_third_part_4th_4;\n for (var i = 0; i < markers_3rd_part_4th_4.length; i++) {\n if (markers_3rd_part_4th_4[i]['Location'] == \"M/MT/MD108A1\" || markers_3rd_part_4th_4[i]['Location'] == \"M/MT/MD108A2\" || markers_3rd_part_4th_4[i]['Location'] == \"M/MT/MD108A3\" || markers_3rd_part_4th_4[i]['Location'] == \"M/MT/MD108A4\") {\n var loc = markers_3rd_part_4th_4[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 13],\n\n }\n });\n x_val = markers_3rd_part_4th_4[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"13\" style=\"fill:#0853bf\" viewBox=\"0 0 13 13\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"10\" fill=\"white\" font-size=\"7\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_3rd_part_4th_4[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n\n\n\n\n }\n\n\n\n //-----------------------------------------end m/mt/md107--------------------------------------------------------------\n\n\n //given_data_first_part_1st_1\n //-------------------------------------------filling 1st block--------------------------------------------------\n var markers_1st_part_1st_1 = given_data_first_part_1st_1;\n\n\n for (var i = 0; i < markers_1st_part_1st_1.length; i++) {\n if (markers_1st_part_1st_1[i]['Location'] == \"M/MT/FR064D2\" || markers_1st_part_1st_1[i]['Location'] == \"M/MT/FR064C2\" || markers_1st_part_1st_1[i]['Location'] == \"M/MT/FR064B2\" || markers_1st_part_1st_1[i]['Location'] == \"M/MT/FR064A2\") {\n var loc = markers_1st_part_1st_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_1st_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_1st_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_1st_2 = given_data_first_part_1st_2;\n\n\n for (var i = 0; i < markers_1st_part_1st_2.length; i++) {\n if (markers_1st_part_1st_2[i]['Location'] == \"M/MT/FR064D1\" || markers_1st_part_1st_2[i]['Location'] == \"M/MT/FR064C1\" || markers_1st_part_1st_2[i]['Location'] == \"M/MT/FR064B1\" || markers_1st_part_1st_2[i]['Location'] == \"M/MT/FR064A1\") {\n var loc = markers_1st_part_1st_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n }\n });\n x_val = markers_1st_part_1st_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_1st_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //---------------------------------------------1st part 2nd block------------------------------------------\n var markers_1st_part_2nd_1 = given_data_first_part_2nd_1;\n for (var i = 0; i < markers_1st_part_2nd_1.length; i++) {\n if (markers_1st_part_2nd_1[i]['Location'] == \"M/MT/FR063D2\" || markers_1st_part_2nd_1[i]['Location'] == \"M/MT/FR063C2\" || markers_1st_part_2nd_1[i]['Location'] == \"M/MT/FR063B2\" || markers_1st_part_2nd_1[i]['Location'] == \"M/MT/FR063A2\") {\n var loc = markers_1st_part_2nd_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_2nd_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_2nd_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_2nd_2 = given_data_first_part_2nd_2;\n\n\n for (var i = 0; i < markers_1st_part_2nd_2.length; i++) {\n if (markers_1st_part_2nd_2[i]['Location'] == \"M/MT/FR063D1\" || markers_1st_part_2nd_2[i]['Location'] == \"M/MT/FR063C1\" || markers_1st_part_2nd_2[i]['Location'] == \"M/MT/FR063B1\" || markers_1st_part_2nd_2[i]['Location'] == \"M/MT/FR063A1\") {\n var loc = markers_1st_part_2nd_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_2nd_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_2nd_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n //----------------------------------3rd part of first block----------------------------------------------\n var markers_1st_part_3rd_1 = given_data_first_part_3rd_1;\n for (var i = 0; i < markers_1st_part_3rd_1.length; i++) {\n if (markers_1st_part_3rd_1[i]['Location'] == \"M/MT/FR062D2\" || markers_1st_part_3rd_1[i]['Location'] == \"M/MT/FR062C2\" || markers_1st_part_3rd_1[i]['Location'] == \"M/MT/FR062B2\" || markers_1st_part_3rd_1[i]['Location'] == \"M/MT/FR062A2\") {\n var loc = markers_1st_part_3rd_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_3rd_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_3rd_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_3rd_2 = given_data_first_part_3rd_2;\n\n\n for (var i = 0; i < markers_1st_part_3rd_2.length; i++) {\n if (markers_1st_part_3rd_2[i]['Location'] == \"M/MT/FR062D1\" || markers_1st_part_3rd_2[i]['Location'] == \"M/MT/FR062C1\" || markers_1st_part_3rd_2[i]['Location'] == \"M/MT/FR062B1\" || markers_1st_part_3rd_2[i]['Location'] == \"M/MT/FR062A1\") {\n var loc = markers_1st_part_3rd_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_3rd_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_3rd_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n //----------------------------------4th part of first block----------------------------------------------\n var markers_1st_part_4th_1 = given_data_first_part_4th_1;\n\n //console.log(\"check sonath\");\n //console.log(markers_1st_part_4th_1);\n for (var i = 0; i < markers_1st_part_4th_1.length; i++) {\n\n\n if (markers_1st_part_4th_1[i]['Location'] == \"M/MT/FR061D2\" || markers_1st_part_4th_1[i]['Location'] == \"M/MT/FR061C2\" || markers_1st_part_4th_1[i]['Location'] == \"M/MT/FR061B2\" || markers_1st_part_4th_1[i]['Location'] == \"M/MT/FR061A2\") {\n var loc = markers_1st_part_4th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_4th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_4th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n\n }\n }\n\n\n var markers_1st_part_4th_2 = given_data_first_part_4th_2;\n\n\n for (var i = 0; i < markers_1st_part_4th_2.length; i++) {\n if (markers_1st_part_4th_2[i]['Location'] == \"M/MT/FR061D1\" || markers_1st_part_4th_2[i]['Location'] == \"M/MT/FR061C1\" || markers_1st_part_4th_2[i]['Location'] == \"M/MT/FR061B1\" || markers_1st_part_4th_2[i]['Location'] == \"M/MT/FR061A1\") {\n var loc = markers_1st_part_4th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_4th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_4th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n\n //----------------------------------5th part of first block----------------------------------------------\n var markers_1st_part_5th_1 = given_data_first_part_5th_1;\n for (var i = 0; i < markers_1st_part_5th_1.length; i++) {\n if (markers_1st_part_5th_1[i]['Location'] == \"M/MT/FR060D2\" || markers_1st_part_5th_1[i]['Location'] == \"M/MT/FR060C2\" || markers_1st_part_5th_1[i]['Location'] == \"M/MT/FR060B2\" || markers_1st_part_5th_1[i]['Location'] == \"M/MT/FR060A2\") {\n var loc = markers_1st_part_5th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_5th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_5th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_5th_2 = given_data_first_part_5th_2;\n\n\n for (var i = 0; i < markers_1st_part_5th_2.length; i++) {\n if (markers_1st_part_5th_2[i]['Location'] == \"M/MT/FR060D1\" || markers_1st_part_5th_2[i]['Location'] == \"M/MT/FR060C1\" || markers_1st_part_5th_2[i]['Location'] == \"M/MT/FR060B1\" || markers_1st_part_5th_2[i]['Location'] == \"M/MT/FR060A1\") {\n var loc = markers_1st_part_5th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_5th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_5th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------6th part of first block----------------------------------------------\n var markers_1st_part_6th_1 = given_data_first_part_6th_1;\n for (var i = 0; i < markers_1st_part_6th_1.length; i++) {\n if (markers_1st_part_6th_1[i]['Location'] == \"M/MT/FR059D2\" || markers_1st_part_6th_1[i]['Location'] == \"M/MT/FR059C2\" || markers_1st_part_6th_1[i]['Location'] == \"M/MT/FR059B2\" || markers_1st_part_6th_1[i]['Location'] == \"M/MT/FR059A2\") {\n var loc = markers_1st_part_6th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_6th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_6th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_6th_2 = given_data_first_part_6th_2;\n\n\n for (var i = 0; i < markers_1st_part_6th_2.length; i++) {\n if (markers_1st_part_6th_2[i]['Location'] == \"M/MT/FR059D1\" || markers_1st_part_6th_2[i]['Location'] == \"M/MT/FR059C1\" || markers_1st_part_6th_2[i]['Location'] == \"M/MT/FR059B1\" || markers_1st_part_6th_2[i]['Location'] == \"M/MT/FR059A1\") {\n var loc = markers_1st_part_6th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_6th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_6th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------7th part of first block----------------------------------------------\n var markers_1st_part_7th_1 = given_data_first_part_7th_1;\n for (var i = 0; i < markers_1st_part_7th_1.length; i++) {\n if (markers_1st_part_7th_1[i]['Location'] == \"M/MT/FR058D2\" || markers_1st_part_7th_1[i]['Location'] == \"M/MT/FR058C2\" || markers_1st_part_7th_1[i]['Location'] == \"M/MT/FR058B2\" || markers_1st_part_7th_1[i]['Location'] == \"M/MT/FR058A2\") {\n var loc = markers_1st_part_7th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_7th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_7th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_7th_2 = given_data_first_part_7th_2;\n\n\n for (var i = 0; i < markers_1st_part_7th_2.length; i++) {\n if (markers_1st_part_7th_2[i]['Location'] == \"M/MT/FR058D1\" || markers_1st_part_7th_2[i]['Location'] == \"M/MT/FR058C1\" || markers_1st_part_7th_2[i]['Location'] == \"M/MT/FR058B1\" || markers_1st_part_7th_2[i]['Location'] == \"M/MT/FR058A1\") {\n var loc = markers_1st_part_7th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_7th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_7th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------8th part of first block----------------------------------------------\n var markers_1st_part_8th_1 = given_data_first_part_8th_1;\n for (var i = 0; i < markers_1st_part_8th_1.length; i++) {\n if (markers_1st_part_8th_1[i]['Location'] == \"M/MT/FR057D2\" || markers_1st_part_8th_1[i]['Location'] == \"M/MT/FR057C2\" || markers_1st_part_8th_1[i]['Location'] == \"M/MT/FR057B2\" || markers_1st_part_8th_1[i]['Location'] == \"M/MT/FR057A2\") {\n var loc = markers_1st_part_8th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_8th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_8th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_8th_2 = given_data_first_part_8th_2;\n for (var i = 0; i < markers_1st_part_8th_2.length; i++) {\n if (markers_1st_part_8th_2[i]['Location'] == \"M/MT/FR057D1\" || markers_1st_part_8th_2[i]['Location'] == \"M/MT/FR057C1\" || markers_1st_part_8th_2[i]['Location'] == \"M/MT/FR057B1\" || markers_1st_part_8th_2[i]['Location'] == \"M/MT/FR057A1\") {\n var loc = markers_1st_part_8th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_8th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_8th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------9th part of first block----------------------------------------------\n var markers_1st_part_9th_1 = given_data_first_part_9th_1;\n for (var i = 0; i < markers_1st_part_9th_1.length; i++) {\n if (markers_1st_part_9th_1[i]['Location'] == \"M/MT/FR056D2\" || markers_1st_part_9th_1[i]['Location'] == \"M/MT/FR056C2\" || markers_1st_part_9th_1[i]['Location'] == \"M/MT/FR056B2\" || markers_1st_part_9th_1[i]['Location'] == \"M/MT/FR056A2\") {\n var loc = markers_1st_part_9th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_9th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_9th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_9th_2 = given_data_first_part_9th_2;\n for (var i = 0; i < markers_1st_part_9th_2.length; i++) {\n if (markers_1st_part_9th_2[i]['Location'] == \"M/MT/FR056D1\" || markers_1st_part_9th_2[i]['Location'] == \"M/MT/FR056C1\" || markers_1st_part_9th_2[i]['Location'] == \"M/MT/FR056B1\" || markers_1st_part_9th_2[i]['Location'] == \"M/MT/FR056A1\") {\n var loc = markers_1st_part_9th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_9th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_9th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------10th part of first block----------------------------------------------\n var markers_1st_part_10th_1 = given_data_first_part_10th_1;\n for (var i = 0; i < markers_1st_part_10th_1.length; i++) {\n if (markers_1st_part_10th_1[i]['Location'] == \"M/MT/FR055D2\" || markers_1st_part_10th_1[i]['Location'] == \"M/MT/FR055C2\" || markers_1st_part_10th_1[i]['Location'] == \"M/MT/FR055B2\" || markers_1st_part_10th_1[i]['Location'] == \"M/MT/FR055A2\") {\n var loc = markers_1st_part_10th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_10th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_10th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_10th_2 = given_data_first_part_10th_2;\n for (var i = 0; i < markers_1st_part_10th_2.length; i++) {\n if (markers_1st_part_10th_2[i]['Location'] == \"M/MT/FR055D1\" || markers_1st_part_10th_2[i]['Location'] == \"M/MT/FR055C1\" || markers_1st_part_10th_2[i]['Location'] == \"M/MT/FR055B1\" || markers_1st_part_10th_2[i]['Location'] == \"M/MT/FR055A1\") {\n var loc = markers_1st_part_10th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_10th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_10th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------11th part of first block----------------------------------------------\n var markers_1st_part_11th_1 = given_data_first_part_11th_1;\n for (var i = 0; i < markers_1st_part_11th_1.length; i++) {\n if (markers_1st_part_11th_1[i]['Location'] == \"M/MT/FR054D2\" || markers_1st_part_11th_1[i]['Location'] == \"M/MT/FR054C2\" || markers_1st_part_11th_1[i]['Location'] == \"M/MT/FR054B2\" || markers_1st_part_11th_1[i]['Location'] == \"M/MT/FR054A2\") {\n var loc = markers_1st_part_11th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_11th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_11th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_11th_2 = given_data_first_part_11th_2;\n for (var i = 0; i < markers_1st_part_11th_2.length; i++) {\n if (markers_1st_part_11th_2[i]['Location'] == \"M/MT/FR054D1\" || markers_1st_part_11th_2[i]['Location'] == \"M/MT/FR054C1\" || markers_1st_part_11th_2[i]['Location'] == \"M/MT/FR054B1\" || markers_1st_part_11th_2[i]['Location'] == \"M/MT/FR054A1\") {\n var loc = markers_1st_part_11th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_11th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_11th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------12th part of first block----------------------------------------------\n var markers_1st_part_12th_1 = given_data_first_part_12th_1;\n for (var i = 0; i < markers_1st_part_12th_1.length; i++) {\n if (markers_1st_part_12th_1[i]['Location'] == \"M/MT/FR053D2\" || markers_1st_part_12th_1[i]['Location'] == \"M/MT/FR053C2\" || markers_1st_part_12th_1[i]['Location'] == \"M/MT/FR053B2\" || markers_1st_part_12th_1[i]['Location'] == \"M/MT/FR053A2\") {\n var loc = markers_1st_part_12th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_12th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_12th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_12th_2 = given_data_first_part_12th_2;\n for (var i = 0; i < markers_1st_part_12th_2.length; i++) {\n if (markers_1st_part_12th_2[i]['Location'] == \"M/MT/FR053D1\" || markers_1st_part_12th_2[i]['Location'] == \"M/MT/FR053C1\" || markers_1st_part_12th_2[i]['Location'] == \"M/MT/FR053B1\" || markers_1st_part_12th_2[i]['Location'] == \"M/MT/FR053A1\") {\n var loc = markers_1st_part_12th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_12th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_12th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n\n //----------------------------------13th part of first block----------------------------------------------\n var markers_1st_part_13th_1 = given_data_first_part_13th_1;\n for (var i = 0; i < markers_1st_part_13th_1.length; i++) {\n if (markers_1st_part_13th_1[i]['Location'] == \"M/MT/FR052D2\" || markers_1st_part_13th_1[i]['Location'] == \"M/MT/FR052C2\" || markers_1st_part_13th_1[i]['Location'] == \"M/MT/FR052B2\" || markers_1st_part_13th_1[i]['Location'] == \"M/MT/FR052A2\") {\n var loc = markers_1st_part_13th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_13th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_13th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_13th_2 = given_data_first_part_13th_2;\n for (var i = 0; i < markers_1st_part_13th_2.length; i++) {\n if (markers_1st_part_13th_2[i]['Location'] == \"M/MT/FR052D1\" || markers_1st_part_13th_2[i]['Location'] == \"M/MT/FR052C1\" || markers_1st_part_13th_2[i]['Location'] == \"M/MT/FR052B1\" || markers_1st_part_13th_2[i]['Location'] == \"M/MT/FR052A1\") {\n var loc = markers_1st_part_13th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_13th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_13th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------14th part of first block----------------------------------------------\n var markers_1st_part_14th_1 = given_data_first_part_14th_1;\n for (var i = 0; i < markers_1st_part_14th_1.length; i++) {\n if (markers_1st_part_14th_1[i]['Location'] == \"M/MT/FR051D2\" || markers_1st_part_14th_1[i]['Location'] == \"M/MT/FR051C2\" || markers_1st_part_14th_1[i]['Location'] == \"M/MT/FR051B2\" || markers_1st_part_14th_1[i]['Location'] == \"M/MT/FR051A2\") {\n var loc = markers_1st_part_14th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_14th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_14th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_14th_2 = given_data_first_part_14th_2;\n for (var i = 0; i < markers_1st_part_14th_2.length; i++) {\n if (markers_1st_part_14th_2[i]['Location'] == \"M/MT/FR051D1\" || markers_1st_part_14th_2[i]['Location'] == \"M/MT/FR051C1\" || markers_1st_part_14th_2[i]['Location'] == \"M/MT/FR051B1\" || markers_1st_part_14th_2[i]['Location'] == \"M/MT/FR051A1\") {\n var loc = markers_1st_part_14th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_14th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_14th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------15th part of first block----------------------------------------------\n var markers_1st_part_15th_1 = given_data_first_part_15th_1;\n\n for (var i = 0; i < markers_1st_part_15th_1.length; i++) {\n if (markers_1st_part_15th_1[i]['Location'] == \"M/MT/FR050D2\" || markers_1st_part_15th_1[i]['Location'] == \"M/MT/FR050C2\" || markers_1st_part_15th_1[i]['Location'] == \"M/MT/FR050B2\" || markers_1st_part_15th_1[i]['Location'] == \"M/MT/FR050A2\") {\n var loc = markers_1st_part_15th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_15th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_15th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_15th_2 = given_data_first_part_15th_2;\n for (var i = 0; i < markers_1st_part_15th_2.length; i++) {\n if (markers_1st_part_15th_2[i]['Location'] == \"M/MT/FR050D1\" || markers_1st_part_15th_2[i]['Location'] == \"M/MT/FR050C1\" || markers_1st_part_15th_2[i]['Location'] == \"M/MT/FR050B1\" || markers_1st_part_15th_2[i]['Location'] == \"M/MT/FR050A1\") {\n var loc = markers_1st_part_15th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_15th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_15th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------16th part of first block----------------------------------------------\n var markers_1st_part_16th_1 = given_data_first_part_16th_1;\n\n for (var i = 0; i < markers_1st_part_16th_1.length; i++) {\n if (markers_1st_part_16th_1[i]['Location'] == \"M/MT/FR049D2\" || markers_1st_part_16th_1[i]['Location'] == \"M/MT/FR049C2\" || markers_1st_part_16th_1[i]['Location'] == \"M/MT/FR049B2\" || markers_1st_part_16th_1[i]['Location'] == \"M/MT/FR049A2\") {\n var loc = markers_1st_part_16th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_16th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_16th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_16th_2 = given_data_first_part_16th_2;\n for (var i = 0; i < markers_1st_part_16th_2.length; i++) {\n if (markers_1st_part_16th_2[i]['Location'] == \"M/MT/FR049D1\" || markers_1st_part_16th_2[i]['Location'] == \"M/MT/FR049C1\" || markers_1st_part_16th_2[i]['Location'] == \"M/MT/FR049B1\" || markers_1st_part_16th_2[i]['Location'] == \"M/MT/FR049A1\") {\n var loc = markers_1st_part_16th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_16th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_16th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------17th part of first block----------------------------------------------\n var markers_1st_part_17th_1 = given_data_first_part_17th_1;\n\n for (var i = 0; i < markers_1st_part_17th_1.length; i++) {\n if (markers_1st_part_17th_1[i]['Location'] == \"M/MT/FR048D2\" || markers_1st_part_17th_1[i]['Location'] == \"M/MT/FR048C2\" || markers_1st_part_17th_1[i]['Location'] == \"M/MT/FR048B2\" || markers_1st_part_17th_1[i]['Location'] == \"M/MT/FR048A2\") {\n var loc = markers_1st_part_17th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_17th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_17th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_17th_2 = given_data_first_part_17th_2;\n for (var i = 0; i < markers_1st_part_17th_2.length; i++) {\n if (markers_1st_part_17th_2[i]['Location'] == \"M/MT/FR048D1\" || markers_1st_part_17th_2[i]['Location'] == \"M/MT/FR048C1\" || markers_1st_part_17th_2[i]['Location'] == \"M/MT/FR048B1\" || markers_1st_part_17th_2[i]['Location'] == \"M/MT/FR048A1\") {\n var loc = markers_1st_part_17th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_17th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_17th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------18th part of first block----------------------------------------------\n var markers_1st_part_18th_1 = given_data_first_part_18th_1;\n\n for (var i = 0; i < markers_1st_part_18th_1.length; i++) {\n if (markers_1st_part_18th_1[i]['Location'] == \"M/MT/FR047D2\" || markers_1st_part_18th_1[i]['Location'] == \"M/MT/FR047C2\" || markers_1st_part_18th_1[i]['Location'] == \"M/MT/FR047B2\" || markers_1st_part_18th_1[i]['Location'] == \"M/MT/FR047A2\") {\n var loc = markers_1st_part_18th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_18th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_18th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_18th_2 = given_data_first_part_18th_2;\n for (var i = 0; i < markers_1st_part_18th_2.length; i++) {\n if (markers_1st_part_18th_2[i]['Location'] == \"M/MT/FR047D1\" || markers_1st_part_18th_2[i]['Location'] == \"M/MT/FR047C1\" || markers_1st_part_18th_2[i]['Location'] == \"M/MT/FR047B1\" || markers_1st_part_18th_2[i]['Location'] == \"M/MT/FR047A1\") {\n var loc = markers_1st_part_18th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_18th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_18th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------19th part of first block----------------------------------------------\n var markers_1st_part_19th_1 = given_data_first_part_19th_1;\n\n for (var i = 0; i < markers_1st_part_19th_1.length; i++) {\n if (markers_1st_part_19th_1[i]['Location'] == \"M/MT/FR046D2\" || markers_1st_part_19th_1[i]['Location'] == \"M/MT/FR046C2\" || markers_1st_part_19th_1[i]['Location'] == \"M/MT/FR046B2\" || markers_1st_part_19th_1[i]['Location'] == \"M/MT/FR046A2\") {\n var loc = markers_1st_part_19th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_19th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_19th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_19th_2 = given_data_first_part_19th_2;\n for (var i = 0; i < markers_1st_part_19th_2.length; i++) {\n if (markers_1st_part_19th_2[i]['Location'] == \"M/MT/FR046D1\" || markers_1st_part_19th_2[i]['Location'] == \"M/MT/FR046C1\" || markers_1st_part_19th_2[i]['Location'] == \"M/MT/FR046B1\" || markers_1st_part_19th_2[i]['Location'] == \"M/MT/FR046A1\") {\n var loc = markers_1st_part_19th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_19th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_19th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------20th part of first block----------------------------------------------\n var markers_1st_part_20th_1 = given_data_first_part_20th_1;\n\n for (var i = 0; i < markers_1st_part_20th_1.length; i++) {\n if (markers_1st_part_20th_1[i]['Location'] == \"M/MT/FR045D2\" || markers_1st_part_20th_1[i]['Location'] == \"M/MT/FR045C2\" || markers_1st_part_20th_1[i]['Location'] == \"M/MT/FR045B2\" || markers_1st_part_20th_1[i]['Location'] == \"M/MT/FR045A2\") {\n var loc = markers_1st_part_20th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_20th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_20th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_20th_2 = given_data_first_part_20th_2;\n for (var i = 0; i < markers_1st_part_20th_2.length; i++) {\n\n if (markers_1st_part_20th_2[i]['Location'] == \"M/MT/FR045D1\" || markers_1st_part_20th_2[i]['Location'] == \"M/MT/FR045C1\" || markers_1st_part_20th_2[i]['Location'] == \"M/MT/FR045B1\" || markers_1st_part_20th_2[i]['Location'] == \"M/MT/FR045A1\") {\n var loc = markers_1st_part_20th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_20th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_20th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------21th part of first block----------------------------------------------\n var markers_1st_part_21th_1 = given_data_first_part_21th_1;\n\n for (var i = 0; i < markers_1st_part_21th_1.length; i++) {\n if (markers_1st_part_21th_1[i]['Location'] == \"M/MT/FR044D2\" || markers_1st_part_21th_1[i]['Location'] == \"M/MT/FR044C2\" || markers_1st_part_21th_1[i]['Location'] == \"M/MT/FR044B2\" || markers_1st_part_21th_1[i]['Location'] == \"M/MT/FR044A2\") {\n var loc = markers_1st_part_21th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_21th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_21th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_21th_2 = given_data_first_part_21th_2;\n for (var i = 0; i < markers_1st_part_21th_2.length; i++) {\n\n if (markers_1st_part_21th_2[i]['Location'] == \"M/MT/FR044D1\" || markers_1st_part_21th_2[i]['Location'] == \"M/MT/FR044C1\" || markers_1st_part_21th_2[i]['Location'] == \"M/MT/FR044B1\" || markers_1st_part_21th_2[i]['Location'] == \"M/MT/FR044A1\") {\n var loc = markers_1st_part_21th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_21th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_21th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------22th part of first block----------------------------------------------\n var markers_1st_part_22th_1 = given_data_first_part_22th_1;\n\n for (var i = 0; i < markers_1st_part_22th_1.length; i++) {\n if (markers_1st_part_22th_1[i]['Location'] == \"M/MT/FR043D2\" || markers_1st_part_22th_1[i]['Location'] == \"M/MT/FR043C2\" || markers_1st_part_22th_1[i]['Location'] == \"M/MT/FR043B2\" || markers_1st_part_22th_1[i]['Location'] == \"M/MT/FR043A2\") {\n var loc = markers_1st_part_22th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_22th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_22th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_22th_2 = given_data_first_part_22th_2;\n for (var i = 0; i < markers_1st_part_22th_2.length; i++) {\n\n if (markers_1st_part_22th_2[i]['Location'] == \"M/MT/FR043D1\" || markers_1st_part_22th_2[i]['Location'] == \"M/MT/FR043C1\" || markers_1st_part_22th_2[i]['Location'] == \"M/MT/FR043B1\" || markers_1st_part_22th_2[i]['Location'] == \"M/MT/FR043A1\") {\n var loc = markers_1st_part_22th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_22th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_22th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------23th part of first block----------------------------------------------\n var markers_1st_part_23th_1 = given_data_first_part_23th_1;\n\n for (var i = 0; i < markers_1st_part_23th_1.length; i++) {\n if (markers_1st_part_23th_1[i]['Location'] == \"M/MT/FR042D2\" || markers_1st_part_23th_1[i]['Location'] == \"M/MT/FR042C2\" || markers_1st_part_23th_1[i]['Location'] == \"M/MT/FR042B2\" || markers_1st_part_23th_1[i]['Location'] == \"M/MT/FR042A2\") {\n var loc = markers_1st_part_23th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_23th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_23th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_23th_2 = given_data_first_part_23th_2;\n for (var i = 0; i < markers_1st_part_23th_2.length; i++) {\n\n if (markers_1st_part_23th_2[i]['Location'] == \"M/MT/FR042D1\" || markers_1st_part_23th_2[i]['Location'] == \"M/MT/FR042C1\" || markers_1st_part_23th_2[i]['Location'] == \"M/MT/FR042B1\" || markers_1st_part_23th_2[i]['Location'] == \"M/MT/FR042A1\") {\n var loc = markers_1st_part_23th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_23th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_23th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------24th part of first block----------------------------------------------\n var markers_1st_part_24th_1 = given_data_first_part_24th_1;\n\n for (var i = 0; i < markers_1st_part_24th_1.length; i++) {\n if (markers_1st_part_24th_1[i]['Location'] == \"M/MT/FR041D2\" || markers_1st_part_24th_1[i]['Location'] == \"M/MT/FR041C2\" || markers_1st_part_24th_1[i]['Location'] == \"M/MT/FR041B2\" || markers_1st_part_24th_1[i]['Location'] == \"M/MT/FR041A2\") {\n var loc = markers_1st_part_24th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_24th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_24th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_24th_2 = given_data_first_part_24th_2;\n for (var i = 0; i < markers_1st_part_24th_2.length; i++) {\n\n if (markers_1st_part_24th_2[i]['Location'] == \"M/MT/FR041D1\" || markers_1st_part_24th_2[i]['Location'] == \"M/MT/FR041C1\" || markers_1st_part_24th_2[i]['Location'] == \"M/MT/FR041B1\" || markers_1st_part_24th_2[i]['Location'] == \"M/MT/FR041A1\") {\n var loc = markers_1st_part_24th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_24th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_24th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------25th part of first block----------------------------------------------\n var markers_1st_part_25th_1 = given_data_first_part_25th_1;\n\n for (var i = 0; i < markers_1st_part_25th_1.length; i++) {\n if (markers_1st_part_25th_1[i]['Location'] == \"M/MT/FR040D2\" || markers_1st_part_25th_1[i]['Location'] == \"M/MT/FR040C2\" || markers_1st_part_25th_1[i]['Location'] == \"M/MT/FR040B2\" || markers_1st_part_25th_1[i]['Location'] == \"M/MT/FR040A2\") {\n var loc = markers_1st_part_25th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_25th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_25th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_25th_2 = given_data_first_part_25th_2;\n for (var i = 0; i < markers_1st_part_25th_2.length; i++) {\n\n if (markers_1st_part_25th_2[i]['Location'] == \"M/MT/FR040D1\" || markers_1st_part_25th_2[i]['Location'] == \"M/MT/FR040C1\" || markers_1st_part_25th_2[i]['Location'] == \"M/MT/FR040B1\" || markers_1st_part_25th_2[i]['Location'] == \"M/MT/FR040A1\") {\n var loc = markers_1st_part_25th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_25th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_25th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n //----------------------------------26th part of first block----------------------------------------------\n var markers_1st_part_26th_1 = given_data_first_part_26th_1;\n\n for (var i = 0; i < markers_1st_part_26th_1.length; i++) {\n if (markers_1st_part_26th_1[i]['Location'] == \"M/MT/FR039D2\" || markers_1st_part_26th_1[i]['Location'] == \"M/MT/FR039C2\" || markers_1st_part_26th_1[i]['Location'] == \"M/MT/FR039B2\" || markers_1st_part_26th_1[i]['Location'] == \"M/MT/FR039A2\") {\n var loc = markers_1st_part_26th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_26th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_26th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_26th_2 = given_data_first_part_26th_2;\n for (var i = 0; i < markers_1st_part_26th_2.length; i++) {\n\n if (markers_1st_part_26th_2[i]['Location'] == \"M/MT/FR039D1\" || markers_1st_part_26th_2[i]['Location'] == \"M/MT/FR039C1\" || markers_1st_part_26th_2[i]['Location'] == \"M/MT/FR039B1\" || markers_1st_part_26th_2[i]['Location'] == \"M/MT/FR039A1\") {\n var loc = markers_1st_part_26th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_26th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_26th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------27th part of first block----------------------------------------------\n var markers_1st_part_27th_1 = given_data_first_part_27th_1;\n\n for (var i = 0; i < markers_1st_part_27th_1.length; i++) {\n if (markers_1st_part_27th_1[i]['Location'] == \"M/MT/FR038D2\" || markers_1st_part_27th_1[i]['Location'] == \"M/MT/FR038C2\" || markers_1st_part_27th_1[i]['Location'] == \"M/MT/FR038B2\" || markers_1st_part_27th_1[i]['Location'] == \"M/MT/FR038A2\") {\n var loc = markers_1st_part_27th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_27th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_27th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_27th_2 = given_data_first_part_27th_2;\n for (var i = 0; i < markers_1st_part_27th_2.length; i++) {\n\n if (markers_1st_part_27th_2[i]['Location'] == \"M/MT/FR038D1\" || markers_1st_part_27th_2[i]['Location'] == \"M/MT/FR038C1\" || markers_1st_part_27th_2[i]['Location'] == \"M/MT/FR038B1\" || markers_1st_part_27th_2[i]['Location'] == \"M/MT/FR038A1\") {\n var loc = markers_1st_part_27th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_27th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_27th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------28th part of first block----------------------------------------------\n var markers_1st_part_28th_1 = given_data_first_part_28th_1;\n\n for (var i = 0; i < markers_1st_part_28th_1.length; i++) {\n if (markers_1st_part_28th_1[i]['Location'] == \"M/MT/FR037D2\" || markers_1st_part_28th_1[i]['Location'] == \"M/MT/FR037C2\" || markers_1st_part_28th_1[i]['Location'] == \"M/MT/FR037B2\" || markers_1st_part_28th_1[i]['Location'] == \"M/MT/FR037A2\") {\n var loc = markers_1st_part_28th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_28th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_28th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_28th_2 = given_data_first_part_28th_2;\n for (var i = 0; i < markers_1st_part_28th_2.length; i++) {\n\n if (markers_1st_part_28th_2[i]['Location'] == \"M/MT/FR037D1\" || markers_1st_part_28th_2[i]['Location'] == \"M/MT/FR037C1\" || markers_1st_part_28th_2[i]['Location'] == \"M/MT/FR037B1\" || markers_1st_part_28th_2[i]['Location'] == \"M/MT/FR037A1\") {\n var loc = markers_1st_part_28th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_28th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_28th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------29th part of first block----------------------------------------------\n var markers_1st_part_29th_1 = given_data_first_part_29th_1;\n\n for (var i = 0; i < markers_1st_part_29th_1.length; i++) {\n if (markers_1st_part_29th_1[i]['Location'] == \"M/MT/FR036D2\" || markers_1st_part_29th_1[i]['Location'] == \"M/MT/FR036C2\" || markers_1st_part_29th_1[i]['Location'] == \"M/MT/FR036B2\" || markers_1st_part_29th_1[i]['Location'] == \"M/MT/FR036A2\") {\n var loc = markers_1st_part_29th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_29th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_29th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_29th_2 = given_data_first_part_29th_2;\n for (var i = 0; i < markers_1st_part_29th_2.length; i++) {\n\n if (markers_1st_part_29th_2[i]['Location'] == \"M/MT/FR036D1\" || markers_1st_part_29th_2[i]['Location'] == \"M/MT/FR036C1\" || markers_1st_part_29th_2[i]['Location'] == \"M/MT/FR036B1\" || markers_1st_part_29th_2[i]['Location'] == \"M/MT/FR036A1\") {\n var loc = markers_1st_part_29th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_29th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_29th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------30th part of first block----------------------------------------------\n var markers_1st_part_30th_1 = given_data_first_part_30th_1;\n\n for (var i = 0; i < markers_1st_part_30th_1.length; i++) {\n if (markers_1st_part_30th_1[i]['Location'] == \"M/MT/FR035D2\" || markers_1st_part_30th_1[i]['Location'] == \"M/MT/FR035C2\" || markers_1st_part_30th_1[i]['Location'] == \"M/MT/FR035B2\" || markers_1st_part_30th_1[i]['Location'] == \"M/MT/FR035A2\") {\n var loc = markers_1st_part_30th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_30th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_30th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_30th_2 = given_data_first_part_30th_2;\n for (var i = 0; i < markers_1st_part_30th_2.length; i++) {\n\n if (markers_1st_part_30th_2[i]['Location'] == \"M/MT/FR035D1\" || markers_1st_part_30th_2[i]['Location'] == \"M/MT/FR035C1\" || markers_1st_part_30th_2[i]['Location'] == \"M/MT/FR035B1\" || markers_1st_part_30th_2[i]['Location'] == \"M/MT/FR035A1\") {\n var loc = markers_1st_part_30th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_30th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_30th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n //----------------------------------31th part of first block----------------------------------------------\n var markers_1st_part_31th_1 = given_data_first_part_31th_1;\n\n for (var i = 0; i < markers_1st_part_31th_1.length; i++) {\n if (markers_1st_part_31th_1[i]['Location'] == \"M/MT/FR034D2\" || markers_1st_part_31th_1[i]['Location'] == \"M/MT/FR034C2\" || markers_1st_part_31th_1[i]['Location'] == \"M/MT/FR034B2\" || markers_1st_part_31th_1[i]['Location'] == \"M/MT/FR034A2\") {\n var loc = markers_1st_part_31th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_31th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_31th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_31th_2 = given_data_first_part_31th_2;\n for (var i = 0; i < markers_1st_part_31th_2.length; i++) {\n\n if (markers_1st_part_31th_2[i]['Location'] == \"M/MT/FR034D1\" || markers_1st_part_31th_2[i]['Location'] == \"M/MT/FR034C1\" || markers_1st_part_31th_2[i]['Location'] == \"M/MT/FR034B1\" || markers_1st_part_31th_2[i]['Location'] == \"M/MT/FR034A1\") {\n var loc = markers_1st_part_31th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_31th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_31th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n //----------------------------------32th part of first block----------------------------------------------\n var markers_1st_part_32th_1 = given_data_first_part_32th_1;\n\n for (var i = 0; i < markers_1st_part_32th_1.length; i++) {\n if (markers_1st_part_32th_1[i]['Location'] == \"M/MT/FR033D2\" || markers_1st_part_32th_1[i]['Location'] == \"M/MT/FR033C2\" || markers_1st_part_32th_1[i]['Location'] == \"M/MT/FR033B2\" || markers_1st_part_32th_1[i]['Location'] == \"M/MT/FR033A2\") {\n var loc = markers_1st_part_32th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_32th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_32th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_32th_2 = given_data_first_part_32th_2;\n for (var i = 0; i < markers_1st_part_32th_2.length; i++) {\n\n if (markers_1st_part_32th_2[i]['Location'] == \"M/MT/FR033D1\" || markers_1st_part_32th_2[i]['Location'] == \"M/MT/FR033C1\" || markers_1st_part_32th_2[i]['Location'] == \"M/MT/FR033B1\" || markers_1st_part_32th_2[i]['Location'] == \"M/MT/FR033A1\") {\n var loc = markers_1st_part_32th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_32th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_32th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n\n //----------------------------------33th part of first block----------------------------------------------\n var markers_1st_part_33th_1 = given_data_first_part_33th_1;\n\n for (var i = 0; i < markers_1st_part_33th_1.length; i++) {\n if (markers_1st_part_33th_1[i]['Location'] == \"M/MT/FR032D2\" || markers_1st_part_33th_1[i]['Location'] == \"M/MT/FR032C2\" || markers_1st_part_33th_1[i]['Location'] == \"M/MT/FR032B2\" || markers_1st_part_33th_1[i]['Location'] == \"M/MT/FR032A2\") {\n var loc = markers_1st_part_33th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_33th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_33th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_1st_part_33th_2 = given_data_first_part_33th_2;\n for (var i = 0; i < markers_1st_part_33th_2.length; i++) {\n\n if (markers_1st_part_33th_2[i]['Location'] == \"M/MT/FR032D1\" || markers_1st_part_33th_2[i]['Location'] == \"M/MT/FR032C1\" || markers_1st_part_33th_2[i]['Location'] == \"M/MT/FR032B1\" || markers_1st_part_33th_2[i]['Location'] == \"M/MT/FR032A1\") {\n var loc = markers_1st_part_33th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_1st_part_33th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_1st_part_33th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n\n //----------------------------------filling 7th block small boxes-----------------------------------\n //----------------------------------1th part of 7th block----------------------------------------------\n var markers_7th_part_1st_1 = given_data_seventh_part_1st_1;\n\n for (var i = 0; i < markers_7th_part_1st_1.length; i++) {\n if (markers_7th_part_1st_1[i]['Location'] == \"M/MT/FR029D2\" || markers_7th_part_1st_1[i]['Location'] == \"M/MT/FR029C2\" || markers_7th_part_1st_1[i]['Location'] == \"M/MT/FR029B2\" || markers_7th_part_1st_1[i]['Location'] == \"M/MT/FR029A2\") {\n var loc = markers_7th_part_1st_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_1st_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_1st_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_7th_part_1st_2 = given_data_seventh_part_1st_2;\n for (var i = 0; i < markers_7th_part_1st_2.length; i++) {\n\n if (markers_7th_part_1st_2[i]['Location'] == \"M/MT/FR029D1\" || markers_7th_part_1st_2[i]['Location'] == \"M/MT/FR029C1\" || markers_7th_part_1st_2[i]['Location'] == \"M/MT/FR029B1\" || markers_7th_part_1st_2[i]['Location'] == \"M/MT/FR029A1\") {\n var loc = markers_7th_part_1st_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_1st_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_1st_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n\n //----------------------------------2nd part of 7th block----------------------------------------------\n var markers_7th_part_2nd_1 = given_data_seventh_part_2nd_1;\n\n for (var i = 0; i < markers_7th_part_2nd_1.length; i++) {\n if (markers_7th_part_2nd_1[i]['Location'] == \"M/MT/FR028D2\" || markers_7th_part_2nd_1[i]['Location'] == \"M/MT/FR028C2\" || markers_7th_part_2nd_1[i]['Location'] == \"M/MT/FR028B2\" || markers_7th_part_2nd_1[i]['Location'] == \"M/MT/FR028A2\") {\n var loc = markers_7th_part_1st_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_2nd_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_2nd_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_7th_part_2nd_2 = given_data_seventh_part_2nd_2;\n for (var i = 0; i < markers_7th_part_2nd_2.length; i++) {\n\n if (markers_7th_part_2nd_2[i]['Location'] == \"M/MT/FR028D1\" || markers_7th_part_2nd_2[i]['Location'] == \"M/MT/FR028C1\" || markers_7th_part_2nd_2[i]['Location'] == \"M/MT/FR028B1\" || markers_7th_part_2nd_2[i]['Location'] == \"M/MT/FR028A1\") {\n var loc = markers_7th_part_2nd_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_2nd_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_2nd_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n //----------------------------------3rd part of 7th block----------------------------------------------\n var markers_7th_part_3rd_1 = given_data_seventh_part_3rd_1;\n\n for (var i = 0; i < markers_7th_part_3rd_1.length; i++) {\n if (markers_7th_part_3rd_1[i]['Location'] == \"M/MT/FR027D2\" || markers_7th_part_3rd_1[i]['Location'] == \"M/MT/FR027C2\" || markers_7th_part_3rd_1[i]['Location'] == \"M/MT/FR027B2\" || markers_7th_part_3rd_1[i]['Location'] == \"M/MT/FR027A2\") {\n var loc = markers_7th_part_3rd_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_3rd_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_3rd_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_7th_part_3rd_2 = given_data_seventh_part_3rd_2;\n for (var i = 0; i < markers_7th_part_3rd_2.length; i++) {\n\n if (markers_7th_part_3rd_2[i]['Location'] == \"M/MT/FR027D1\" || markers_7th_part_3rd_2[i]['Location'] == \"M/MT/FR027C1\" || markers_7th_part_3rd_2[i]['Location'] == \"M/MT/FR027B1\" || markers_7th_part_3rd_2[i]['Location'] == \"M/MT/FR027A1\") {\n var loc = markers_7th_part_3rd_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_3rd_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_3rd_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n\n\n //----------------------------------4th part of 7th block----------------------------------------------\n var markers_7th_part_4th_1 = given_data_seventh_part_4th_1;\n\n for (var i = 0; i < markers_7th_part_4th_1.length; i++) {\n if (markers_7th_part_4th_1[i]['Location'] == \"M/MT/FR026D2\" || markers_7th_part_4th_1[i]['Location'] == \"M/MT/FR026C2\" || markers_7th_part_4th_1[i]['Location'] == \"M/MT/FR026B2\" || markers_7th_part_4th_1[i]['Location'] == \"M/MT/FR026A2\") {\n var loc = markers_7th_part_4th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_4th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_4th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_7th_part_4th_2 = given_data_seventh_part_4th_2;\n for (var i = 0; i < markers_7th_part_4th_2.length; i++) {\n\n if (markers_7th_part_4th_2[i]['Location'] == \"M/MT/FR026D1\" || markers_7th_part_4th_2[i]['Location'] == \"M/MT/FR026C1\" || markers_7th_part_4th_2[i]['Location'] == \"M/MT/FR026B1\" || markers_7th_part_4th_2[i]['Location'] == \"M/MT/FR026A1\") {\n var loc = markers_7th_part_4th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_4th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_4th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n //----------------------------------5th part of 7th block----------------------------------------------\n var markers_7th_part_5th_1 = given_data_seventh_part_5th_1;\n\n for (var i = 0; i < markers_7th_part_5th_1.length; i++) {\n if (markers_7th_part_5th_1[i]['Location'] == \"M/MT/FR025D2\" || markers_7th_part_5th_1[i]['Location'] == \"M/MT/FR025C2\" || markers_7th_part_5th_1[i]['Location'] == \"M/MT/FR025B2\" || markers_7th_part_5th_1[i]['Location'] == \"M/MT/FR025A2\") {\n var loc = markers_7th_part_5th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_5th_1[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_5th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n var markers_7th_part_5th_2 = given_data_seventh_part_5th_2;\n for (var i = 0; i < markers_7th_part_5th_2.length; i++) {\n\n if (markers_7th_part_5th_2[i]['Location'] == \"M/MT/FR025D1\" || markers_7th_part_5th_2[i]['Location'] == \"M/MT/FR025C1\" || markers_7th_part_5th_2[i]['Location'] == \"M/MT/FR025B1\" || markers_7th_part_5th_2[i]['Location'] == \"M/MT/FR025A1\") {\n var loc = markers_7th_part_5th_2[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [13, 6],\n\n }\n });\n x_val = markers_7th_part_5th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_5th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n\n\n }\n }\n\n\n\n //----------------------------------6th part of 7th block----------------------------------------------\n var markers_7th_part_6th_1 = given_data_seventh_part_6th_1;\n for (var i = 0; i < markers_7th_part_6th_1.length; i++) {\n if (markers_7th_part_6th_1[i]['Location'] == \"M/MT/FR024D2\" || markers_7th_part_6th_1[i]['Location'] == \"M/MT/FR024C2\" || markers_7th_part_6th_1[i]['Location'] == \"M/MT/FR024B2\" || markers_7th_part_6th_1[i]['Location'] == \"M/MT/FR024A2\") {\n var loc = markers_7th_part_6th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_6th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_6th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_6th_2 = given_data_seventh_part_6th_2;\n for (var i = 0; i < markers_7th_part_6th_2.length; i++) {\n if (markers_7th_part_6th_2[i]['Location'] == \"M/MT/FR024D1\" || markers_7th_part_6th_2[i]['Location'] == \"M/MT/FR024C1\" || markers_7th_part_6th_2[i]['Location'] == \"M/MT/FR024B1\" || markers_7th_part_6th_2[i]['Location'] == \"M/MT/FR024A1\") {\n var loc = markers_7th_part_5th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n x_val = markers_7th_part_6th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_6th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------7th part of 7th block----------------------------------------------\n var markers_7th_part_7th_1 = given_data_seventh_part_7th_1;\n for (var i = 0; i < markers_7th_part_7th_1.length; i++) {\n if (markers_7th_part_7th_1[i]['Location'] == \"M/MT/FR023D2\" || markers_7th_part_7th_1[i]['Location'] == \"M/MT/FR023C2\" || markers_7th_part_7th_1[i]['Location'] == \"M/MT/FR023B2\" || markers_7th_part_7th_1[i]['Location'] == \"M/MT/FR023A2\") {\n var loc = markers_7th_part_7th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_7th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_7th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_7th_2 = given_data_seventh_part_7th_2;\n for (var i = 0; i < markers_7th_part_7th_2.length; i++) {\n if (markers_7th_part_7th_2[i]['Location'] == \"M/MT/FR023D1\" || markers_7th_part_7th_2[i]['Location'] == \"M/MT/FR023C1\" || markers_7th_part_7th_2[i]['Location'] == \"M/MT/FR023B1\" || markers_7th_part_7th_2[i]['Location'] == \"M/MT/FR023A1\") {\n var loc = markers_7th_part_7th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n x_val = markers_7th_part_7th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_7th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------8th part of 7th block----------------------------------------------\n var markers_7th_part_8th_1 = given_data_seventh_part_8th_1;\n for (var i = 0; i < markers_7th_part_8th_1.length; i++) {\n if (markers_7th_part_8th_1[i]['Location'] == \"M/MT/FR022D2\" || markers_7th_part_8th_1[i]['Location'] == \"M/MT/FR022C2\" || markers_7th_part_8th_1[i]['Location'] == \"M/MT/FR022B2\" || markers_7th_part_8th_1[i]['Location'] == \"M/MT/FR022A2\") {\n var loc = markers_7th_part_8th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_8th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_8th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_8th_2 = given_data_seventh_part_8th_2;\n for (var i = 0; i < markers_7th_part_8th_2.length; i++) {\n if (markers_7th_part_8th_2[i]['Location'] == \"M/MT/FR022D1\" || markers_7th_part_8th_2[i]['Location'] == \"M/MT/FR022C1\" || markers_7th_part_8th_2[i]['Location'] == \"M/MT/FR022B1\" || markers_7th_part_8th_2[i]['Location'] == \"M/MT/FR022A1\") {\n var loc = markers_7th_part_8th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n x_val = markers_7th_part_8th_2[i][\"marker_position\"];\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_8th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------9th part of 7th block----------------------------------------------\n var markers_7th_part_9th_1 = given_data_seventh_part_9th_1;\n for (var i = 0; i < markers_7th_part_9th_1.length; i++) {\n if (markers_7th_part_9th_1[i]['Location'] == \"M/MT/FR021D2\" || markers_7th_part_9th_1[i]['Location'] == \"M/MT/FR021C2\" || markers_7th_part_9th_1[i]['Location'] == \"M/MT/FR021B2\" || markers_7th_part_9th_1[i]['Location'] == \"M/MT/FR021A2\") {\n var loc = markers_7th_part_9th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_9th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_9th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_9th_2 = given_data_seventh_part_9th_2;\n for (var i = 0; i < markers_7th_part_9th_2.length; i++) {\n if (markers_7th_part_9th_2[i]['Location'] == \"M/MT/FR021D1\" || markers_7th_part_9th_2[i]['Location'] == \"M/MT/FR021C1\" || markers_7th_part_9th_2[i]['Location'] == \"M/MT/FR021B1\" || markers_7th_part_9th_2[i]['Location'] == \"M/MT/FR021A1\") {\n var loc = markers_7th_part_9th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_9th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_9th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------10th part of 7th block----------------------------------------------\n var markers_7th_part_10th_1 = given_data_seventh_part_10th_1;\n for (var i = 0; i < markers_7th_part_10th_1.length; i++) {\n if (markers_7th_part_10th_1[i]['Location'] == \"M/MT/FR020D2\" || markers_7th_part_10th_1[i]['Location'] == \"M/MT/FR020C2\" || markers_7th_part_10th_1[i]['Location'] == \"M/MT/FR020B2\" || markers_7th_part_10th_1[i]['Location'] == \"M/MT/FR020A2\") {\n var loc = markers_7th_part_10th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_10th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_10th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_10th_2 = given_data_seventh_part_10th_2;\n for (var i = 0; i < markers_7th_part_10th_2.length; i++) {\n if (markers_7th_part_10th_2[i]['Location'] == \"M/MT/FR020D1\" || markers_7th_part_10th_2[i]['Location'] == \"M/MT/FR020C1\" || markers_7th_part_10th_2[i]['Location'] == \"M/MT/FR020B1\" || markers_7th_part_10th_2[i]['Location'] == \"M/MT/FR020A1\") {\n var loc = markers_7th_part_10th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_10th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_10th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------11th part of 7th block----------------------------------------------\n var markers_7th_part_11th_1 = given_data_seventh_part_11th_1;\n for (var i = 0; i < markers_7th_part_11th_1.length; i++) {\n if (markers_7th_part_11th_1[i]['Location'] == \"M/MT/FR019D2\" || markers_7th_part_11th_1[i]['Location'] == \"M/MT/FR019C2\" || markers_7th_part_11th_1[i]['Location'] == \"M/MT/FR019B2\" || markers_7th_part_11th_1[i]['Location'] == \"M/MT/FR019A2\") {\n var loc = markers_7th_part_11th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_11th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_11th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_11th_2 = given_data_seventh_part_11th_2;\n for (var i = 0; i < markers_7th_part_11th_2.length; i++) {\n if (markers_7th_part_11th_2[i]['Location'] == \"M/MT/FR019D1\" || markers_7th_part_11th_2[i]['Location'] == \"M/MT/FR019C1\" || markers_7th_part_11th_2[i]['Location'] == \"M/MT/FR019B1\" || markers_7th_part_11th_2[i]['Location'] == \"M/MT/FR019A1\") {\n var loc = markers_7th_part_11th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_11th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_11th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------12th part of 7th block----------------------------------------------\n var markers_7th_part_12th_1 = given_data_seventh_part_12th_1;\n for (var i = 0; i < markers_7th_part_12th_1.length; i++) {\n if (markers_7th_part_12th_1[i]['Location'] == \"M/MT/FR018D2\" || markers_7th_part_12th_1[i]['Location'] == \"M/MT/FR018C2\" || markers_7th_part_12th_1[i]['Location'] == \"M/MT/FR018B2\" || markers_7th_part_12th_1[i]['Location'] == \"M/MT/FR018A2\") {\n var loc = markers_7th_part_11th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_12th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_12th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_12th_2 = given_data_seventh_part_12th_2;\n for (var i = 0; i < markers_7th_part_12th_2.length; i++) {\n if (markers_7th_part_12th_2[i]['Location'] == \"M/MT/FR018D1\" || markers_7th_part_12th_2[i]['Location'] == \"M/MT/FR018C1\" || markers_7th_part_12th_2[i]['Location'] == \"M/MT/FR018B1\" || markers_7th_part_12th_2[i]['Location'] == \"M/MT/FR018A1\") {\n var loc = markers_7th_part_12th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_12th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_12th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------13th part of 7th block----------------------------------------------\n var markers_7th_part_13th_1 = given_data_seventh_part_13th_1;\n for (var i = 0; i < markers_7th_part_13th_1.length; i++) {\n if (markers_7th_part_13th_1[i]['Location'] == \"M/MT/FR017D2\" || markers_7th_part_13th_1[i]['Location'] == \"M/MT/FR017C2\" || markers_7th_part_13th_1[i]['Location'] == \"M/MT/FR017B2\" || markers_7th_part_13th_1[i]['Location'] == \"M/MT/FR017A2\") {\n var loc = markers_7th_part_13th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_13th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_13th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_13th_2 = given_data_seventh_part_13th_2;\n for (var i = 0; i < markers_7th_part_13th_2.length; i++) {\n if (markers_7th_part_13th_2[i]['Location'] == \"M/MT/FR017D1\" || markers_7th_part_13th_2[i]['Location'] == \"M/MT/FR017C1\" || markers_7th_part_13th_2[i]['Location'] == \"M/MT/FR017B1\" || markers_7th_part_13th_2[i]['Location'] == \"M/MT/FR017A1\") {\n var loc = markers_7th_part_13th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_13th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_13th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------14th part of 7th block----------------------------------------------\n var markers_7th_part_14th_1 = given_data_seventh_part_14th_1;\n for (var i = 0; i < markers_7th_part_14th_1.length; i++) {\n if (markers_7th_part_14th_1[i]['Location'] == \"M/MT/FR016D2\" || markers_7th_part_14th_1[i]['Location'] == \"M/MT/FR016C2\" || markers_7th_part_14th_1[i]['Location'] == \"M/MT/FR016B2\" || markers_7th_part_14th_1[i]['Location'] == \"M/MT/FR016A2\") {\n var loc = markers_7th_part_14th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_14th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_14th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_14th_2 = given_data_seventh_part_14th_2;\n for (var i = 0; i < markers_7th_part_14th_2.length; i++) {\n if (markers_7th_part_14th_2[i]['Location'] == \"M/MT/FR016D1\" || markers_7th_part_14th_2[i]['Location'] == \"M/MT/FR016C1\" || markers_7th_part_14th_2[i]['Location'] == \"M/MT/FR016B1\" || markers_7th_part_14th_2[i]['Location'] == \"M/MT/FR016A1\") {\n var loc = markers_7th_part_14th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_14th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_14th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------15th part of 7th block----------------------------------------------\n var markers_7th_part_15th_1 = given_data_seventh_part_15th_1;\n for (var i = 0; i < markers_7th_part_15th_1.length; i++) {\n if (markers_7th_part_15th_1[i]['Location'] == \"M/MT/FR015D2\" || markers_7th_part_15th_1[i]['Location'] == \"M/MT/FR015C2\" || markers_7th_part_15th_1[i]['Location'] == \"M/MT/FR015B2\" || markers_7th_part_15th_1[i]['Location'] == \"M/MT/FR015A2\") {\n var loc = markers_7th_part_15th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_15th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_15th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_15th_2 = given_data_seventh_part_15th_2;\n for (var i = 0; i < markers_7th_part_15th_2.length; i++) {\n if (markers_7th_part_15th_2[i]['Location'] == \"M/MT/FR015D1\" || markers_7th_part_15th_2[i]['Location'] == \"M/MT/FR015C1\" || markers_7th_part_15th_2[i]['Location'] == \"M/MT/FR015B1\" || markers_7th_part_15th_2[i]['Location'] == \"M/MT/FR015A1\") {\n var loc = markers_7th_part_15th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_15th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_15th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------16th part of 7th block----------------------------------------------\n var markers_7th_part_16th_1 = given_data_seventh_part_16th_1;\n for (var i = 0; i < markers_7th_part_16th_1.length; i++) {\n if (markers_7th_part_16th_1[i]['Location'] == \"M/MT/FR014D2\" || markers_7th_part_16th_1[i]['Location'] == \"M/MT/FR014C2\" || markers_7th_part_16th_1[i]['Location'] == \"M/MT/FR014B2\" || markers_7th_part_16th_1[i]['Location'] == \"M/MT/FR014A2\") {\n var loc = markers_7th_part_16th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_16th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_16th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_16th_2 = given_data_seventh_part_16th_2;\n for (var i = 0; i < markers_7th_part_16th_2.length; i++) {\n if (markers_7th_part_16th_2[i]['Location'] == \"M/MT/FR014D1\" || markers_7th_part_16th_2[i]['Location'] == \"M/MT/FR014C1\" || markers_7th_part_16th_2[i]['Location'] == \"M/MT/FR014B1\" || markers_7th_part_16th_2[i]['Location'] == \"M/MT/FR014A1\") {\n var loc = markers_7th_part_16th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_16th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_16th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------17th part of 7th block----------------------------------------------\n var markers_7th_part_17th_1 = given_data_seventh_part_17th_1;\n for (var i = 0; i < markers_7th_part_17th_1.length; i++) {\n if (markers_7th_part_17th_1[i]['Location'] == \"M/MT/FR013D2\" || markers_7th_part_17th_1[i]['Location'] == \"M/MT/FR013C2\" || markers_7th_part_17th_1[i]['Location'] == \"M/MT/FR013B2\" || markers_7th_part_17th_1[i]['Location'] == \"M/MT/FR013A2\") {\n var loc = markers_7th_part_17th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_17th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_17th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_17th_2 = given_data_seventh_part_17th_2;\n for (var i = 0; i < markers_7th_part_17th_2.length; i++) {\n if (markers_7th_part_17th_2[i]['Location'] == \"M/MT/FR013D1\" || markers_7th_part_17th_2[i]['Location'] == \"M/MT/FR013C1\" || markers_7th_part_17th_2[i]['Location'] == \"M/MT/FR013B1\" || markers_7th_part_17th_2[i]['Location'] == \"M/MT/FR013A1\") {\n var loc = markers_7th_part_17th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_17th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_17th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n //----------------------------------18th part of 7th block----------------------------------------------\n var markers_7th_part_18th_1 = given_data_seventh_part_18th_1;\n for (var i = 0; i < markers_7th_part_18th_1.length; i++) {\n if (markers_7th_part_18th_1[i]['Location'] == \"M/MT/FR012D2\" || markers_7th_part_18th_1[i]['Location'] == \"M/MT/FR012C2\" || markers_7th_part_18th_1[i]['Location'] == \"M/MT/FR012B2\" || markers_7th_part_18th_1[i]['Location'] == \"M/MT/FR012A2\") {\n var loc = markers_7th_part_18th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_18th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_18th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_18th_2 = given_data_seventh_part_18th_2;\n for (var i = 0; i < markers_7th_part_18th_2.length; i++) {\n if (markers_7th_part_18th_2[i]['Location'] == \"M/MT/FR012D1\" || markers_7th_part_18th_2[i]['Location'] == \"M/MT/FR012C1\" || markers_7th_part_18th_2[i]['Location'] == \"M/MT/FR012B1\" || markers_7th_part_18th_2[i]['Location'] == \"M/MT/FR012A1\") {\n var loc = markers_7th_part_18th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_18th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_18th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------19th part of 7th block----------------------------------------------\n var markers_7th_part_19th_1 = given_data_seventh_part_19th_1;\n for (var i = 0; i < markers_7th_part_19th_1.length; i++) {\n if (markers_7th_part_19th_1[i]['Location'] == \"M/MT/FR011D2\" || markers_7th_part_19th_1[i]['Location'] == \"M/MT/FR011C2\" || markers_7th_part_19th_1[i]['Location'] == \"M/MT/FR011B2\" || markers_7th_part_19th_1[i]['Location'] == \"M/MT/FR011A2\") {\n var loc = markers_7th_part_19th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_19th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_19th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_19th_2 = given_data_seventh_part_19th_2;\n for (var i = 0; i < markers_7th_part_19th_2.length; i++) {\n if (markers_7th_part_19th_2[i]['Location'] == \"M/MT/FR011D1\" || markers_7th_part_19th_2[i]['Location'] == \"M/MT/FR011C1\" || markers_7th_part_19th_2[i]['Location'] == \"M/MT/FR011B1\" || markers_7th_part_19th_2[i]['Location'] == \"M/MT/FR011A1\") {\n var loc = markers_7th_part_19th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_19th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_19th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------20th part of 7th block----------------------------------------------\n var markers_7th_part_20th_1 = given_data_seventh_part_20th_1;\n for (var i = 0; i < markers_7th_part_20th_1.length; i++) {\n if (markers_7th_part_20th_1[i]['Location'] == \"M/MT/FR010D2\" || markers_7th_part_20th_1[i]['Location'] == \"M/MT/FR010C2\" || markers_7th_part_20th_1[i]['Location'] == \"M/MT/FR010B2\" || markers_7th_part_20th_1[i]['Location'] == \"M/MT/FR010A2\") {\n var loc = markers_7th_part_20th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_20th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_20th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_20th_2 = given_data_seventh_part_20th_2;\n for (var i = 0; i < markers_7th_part_20th_2.length; i++) {\n if (markers_7th_part_20th_2[i]['Location'] == \"M/MT/FR010D1\" || markers_7th_part_20th_2[i]['Location'] == \"M/MT/FR010C1\" || markers_7th_part_20th_2[i]['Location'] == \"M/MT/FR010B1\" || markers_7th_part_20th_2[i]['Location'] == \"M/MT/FR010A1\") {\n var loc = markers_7th_part_20th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_20th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_20th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------21th part of 7th block----------------------------------------------\n var markers_7th_part_21th_1 = given_data_seventh_part_21th_1;\n for (var i = 0; i < markers_7th_part_21th_1.length; i++) {\n if (markers_7th_part_21th_1[i]['Location'] == \"M/MT/FR009D2\" || markers_7th_part_21th_1[i]['Location'] == \"M/MT/FR009C2\" || markers_7th_part_21th_1[i]['Location'] == \"M/MT/FR009B2\" || markers_7th_part_21th_1[i]['Location'] == \"M/MT/FR009A2\") {\n var loc = markers_7th_part_21th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_21th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_21th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_21th_2 = given_data_seventh_part_21th_2;\n for (var i = 0; i < markers_7th_part_21th_2.length; i++) {\n if (markers_7th_part_21th_2[i]['Location'] == \"M/MT/FR009D1\" || markers_7th_part_21th_2[i]['Location'] == \"M/MT/FR009C1\" || markers_7th_part_21th_2[i]['Location'] == \"M/MT/FR009B1\" || markers_7th_part_21th_2[i]['Location'] == \"M/MT/FR009A1\") {\n var loc = markers_7th_part_21th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_21th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_21th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n\n //----------------------------------22th part of 7th block----------------------------------------------\n var markers_7th_part_22th_1 = given_data_seventh_part_22th_1;\n for (var i = 0; i < markers_7th_part_22th_1.length; i++) {\n if (markers_7th_part_22th_1[i]['Location'] == \"M/MT/FR008D2\" || markers_7th_part_22th_1[i]['Location'] == \"M/MT/FR008C2\" || markers_7th_part_22th_1[i]['Location'] == \"M/MT/FR008B2\" || markers_7th_part_22th_1[i]['Location'] == \"M/MT/FR008A2\") {\n var loc = markers_7th_part_22th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_22th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_22th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_22th_2 = given_data_seventh_part_22th_2;\n for (var i = 0; i < markers_7th_part_22th_2.length; i++) {\n if (markers_7th_part_22th_2[i]['Location'] == \"M/MT/FR008D1\" || markers_7th_part_22th_2[i]['Location'] == \"M/MT/FR008C1\" || markers_7th_part_22th_2[i]['Location'] == \"M/MT/FR008B1\" || markers_7th_part_22th_2[i]['Location'] == \"M/MT/FR008A1\") {\n var loc = markers_7th_part_22th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_22th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_22th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------23th part of 7th block----------------------------------------------\n var markers_7th_part_23th_1 = given_data_seventh_part_23th_1;\n for (var i = 0; i < markers_7th_part_23th_1.length; i++) {\n if (markers_7th_part_23th_1[i]['Location'] == \"M/MT/FR007D2\" || markers_7th_part_23th_1[i]['Location'] == \"M/MT/FR007C2\" || markers_7th_part_23th_1[i]['Location'] == \"M/MT/FR007B2\" || markers_7th_part_23th_1[i]['Location'] == \"M/MT/FR007A2\") {\n var loc = markers_7th_part_23th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_23th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_23th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_23th_2 = given_data_seventh_part_23th_2;\n for (var i = 0; i < markers_7th_part_23th_2.length; i++) {\n if (markers_7th_part_23th_2[i]['Location'] == \"M/MT/FR007D1\" || markers_7th_part_23th_2[i]['Location'] == \"M/MT/FR007C1\" || markers_7th_part_23th_2[i]['Location'] == \"M/MT/FR007B1\" || markers_7th_part_23th_2[i]['Location'] == \"M/MT/FR007A1\") {\n var loc = markers_7th_part_23th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_23th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_23th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------24th part of 7th block----------------------------------------------\n var markers_7th_part_24th_1 = given_data_seventh_part_24th_1;\n for (var i = 0; i < markers_7th_part_24th_1.length; i++) {\n if (markers_7th_part_24th_1[i]['Location'] == \"M/MT/FR006D2\" || markers_7th_part_24th_1[i]['Location'] == \"M/MT/FR006C2\" || markers_7th_part_24th_1[i]['Location'] == \"M/MT/FR006B2\" || markers_7th_part_24th_1[i]['Location'] == \"M/MT/FR006A2\") {\n var loc = markers_7th_part_24th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_24th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_24th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_24th_2 = given_data_seventh_part_24th_2;\n for (var i = 0; i < markers_7th_part_24th_2.length; i++) {\n if (markers_7th_part_24th_2[i]['Location'] == \"M/MT/FR006D1\" || markers_7th_part_24th_2[i]['Location'] == \"M/MT/FR006C1\" || markers_7th_part_24th_2[i]['Location'] == \"M/MT/FR006B1\" || markers_7th_part_24th_2[i]['Location'] == \"M/MT/FR006A1\") {\n var loc = markers_7th_part_24th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_24th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_24th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------25th part of 7th block----------------------------------------------\n var markers_7th_part_25th_1 = given_data_seventh_part_25th_1;\n for (var i = 0; i < markers_7th_part_25th_1.length; i++) {\n if (markers_7th_part_25th_1[i]['Location'] == \"M/MT/FR005D2\" || markers_7th_part_25th_1[i]['Location'] == \"M/MT/FR005C2\" || markers_7th_part_25th_1[i]['Location'] == \"M/MT/FR005B2\" || markers_7th_part_25th_1[i]['Location'] == \"M/MT/FR005A2\") {\n var loc = markers_7th_part_25th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_25th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_25th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_25th_2 = given_data_seventh_part_25th_2;\n for (var i = 0; i < markers_7th_part_25th_2.length; i++) {\n if (markers_7th_part_25th_2[i]['Location'] == \"M/MT/FR005D1\" || markers_7th_part_25th_2[i]['Location'] == \"M/MT/FR005C1\" || markers_7th_part_25th_2[i]['Location'] == \"M/MT/FR005B1\" || markers_7th_part_25th_2[i]['Location'] == \"M/MT/FR005A1\") {\n var loc = markers_7th_part_25th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_25th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_25th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n //----------------------------------26th part of 7th block----------------------------------------------\n var markers_7th_part_26th_1 = given_data_seventh_part_26th_1;\n for (var i = 0; i < markers_7th_part_26th_1.length; i++) {\n if (markers_7th_part_26th_1[i]['Location'] == \"M/MT/FR004D2\" || markers_7th_part_26th_1[i]['Location'] == \"M/MT/FR004C2\" || markers_7th_part_26th_1[i]['Location'] == \"M/MT/FR004B2\" || markers_7th_part_26th_1[i]['Location'] == \"M/MT/FR004A2\") {\n var loc = markers_7th_part_26th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_26th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_26th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_26th_2 = given_data_seventh_part_26th_2;\n for (var i = 0; i < markers_7th_part_26th_2.length; i++) {\n if (markers_7th_part_26th_2[i]['Location'] == \"M/MT/FR004D1\" || markers_7th_part_26th_2[i]['Location'] == \"M/MT/FR004C1\" || markers_7th_part_26th_2[i]['Location'] == \"M/MT/FR004B1\" || markers_7th_part_26th_2[i]['Location'] == \"M/MT/FR004A1\") {\n var loc = markers_7th_part_26th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_26th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_26th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n //----------------------------------27th part of 7th block----------------------------------------------\n var markers_7th_part_27th_1 = given_data_seventh_part_27th_1;\n for (var i = 0; i < markers_7th_part_27th_1.length; i++) {\n if (markers_7th_part_27th_1[i]['Location'] == \"M/MT/FR003D2\" || markers_7th_part_27th_1[i]['Location'] == \"M/MT/FR003C2\" || markers_7th_part_27th_1[i]['Location'] == \"M/MT/FR003B2\" || markers_7th_part_27th_1[i]['Location'] == \"M/MT/FR003A2\") {\n var loc = markers_7th_part_27th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_27th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_27th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_27th_2 = given_data_seventh_part_27th_2;\n for (var i = 0; i < markers_7th_part_27th_2.length; i++) {\n if (markers_7th_part_27th_2[i]['Location'] == \"M/MT/FR003D1\" || markers_7th_part_27th_2[i]['Location'] == \"M/MT/FR003C1\" || markers_7th_part_27th_2[i]['Location'] == \"M/MT/FR003B1\" || markers_7th_part_27th_2[i]['Location'] == \"M/MT/FR003A1\") {\n var loc = markers_7th_part_27th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_27th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_27th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------28th part of 7th block----------------------------------------------\n var markers_7th_part_28th_1 = given_data_seventh_part_28th_1;\n for (var i = 0; i < markers_7th_part_28th_1.length; i++) {\n if (markers_7th_part_28th_1[i]['Location'] == \"M/MT/FR002D2\" || markers_7th_part_28th_1[i]['Location'] == \"M/MT/FR002C2\" || markers_7th_part_28th_1[i]['Location'] == \"M/MT/FR002B2\" || markers_7th_part_28th_1[i]['Location'] == \"M/MT/FR002A2\") {\n var loc = markers_7th_part_28th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_28th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_28th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_28th_2 = given_data_seventh_part_28th_2;\n for (var i = 0; i < markers_7th_part_28th_2.length; i++) {\n if (markers_7th_part_28th_2[i]['Location'] == \"M/MT/FR002D1\" || markers_7th_part_28th_2[i]['Location'] == \"M/MT/FR002C1\" || markers_7th_part_28th_2[i]['Location'] == \"M/MT/FR002B1\" || markers_7th_part_28th_2[i]['Location'] == \"M/MT/FR002A1\") {\n var loc = markers_7th_part_28th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_28th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_28th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n //----------------------------------29th part of 7th block----------------------------------------------\n var markers_7th_part_29th_1 = given_data_seventh_part_29th_1;\n for (var i = 0; i < markers_7th_part_29th_1.length; i++) {\n if (markers_7th_part_29th_1[i]['Location'] == \"M/MT/FR001D2\" || markers_7th_part_29th_1[i]['Location'] == \"M/MT/FR001C2\" || markers_7th_part_29th_1[i]['Location'] == \"M/MT/FR001B2\" || markers_7th_part_29th_1[i]['Location'] == \"M/MT/FR001A2\") {\n var loc = markers_7th_part_29th_1[i]['Location'].slice(-2);\n\n var LeafIcon = L.Icon.extend({\n options: { iconSize: [13, 6] }\n });\n x_val = markers_7th_part_29th_1[i][\"marker_position\"];\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_29th_1[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n var markers_7th_part_29th_2 = given_data_seventh_part_29th_2;\n for (var i = 0; i < markers_7th_part_29th_2.length; i++) {\n if (markers_7th_part_29th_2[i]['Location'] == \"M/MT/FR001D1\" || markers_7th_part_29th_2[i]['Location'] == \"M/MT/FR001C1\" || markers_7th_part_29th_2[i]['Location'] == \"M/MT/FR001B1\" || markers_7th_part_29th_2[i]['Location'] == \"M/MT/FR001A1\") {\n var loc = markers_7th_part_29th_2[i]['Location'].slice(-2);\n var LeafIcon = L.Icon.extend({ options: { iconSize: [13, 6] } });\n\n x_val = markers_7th_part_29th_2[i][\"marker_position\"];\n\n\n var svg = '<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"6\" style=\"fill:#0853bf\" viewBox=\"0 0 13 6\"><rect width=\"13\" height=\"13\" style=\"\" /><text x=\"3\" y=\"5\" fill=\"white\" font-size=\"5\" font-weight=\"700\">' + loc + '</text></svg>'\n // var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 15 15\" width=\"15\" height=\"15\"><defs><path d=\"M0 0L50 0L50 18L0 18L0 0Z\" id=\"a1au4DcYqa\"></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\">'+loc+'</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#a1au4DcYqa\" opacity=\"1\" fill=\"#0853bf\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"#edJQPl1YZ\" opacity=\"1\" fill=\"#ffffff\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], { type: 'image/svg+xml' });\n const svg_url = URL.createObjectURL(blob);\n var greenIcon1 = new LeafIcon({ iconUrl: svg_url });\n test = markers_7th_part_29th_2[i][\"SV ID\"];\n var new_marker = xy(x_val[0], x_val[1]);\n var given_marker = L.marker(new_marker, { icon: greenIcon1 })\n given_marker.addTo(myFeatureGroup)\n given_marker.test = test;\n }\n }\n\n\n\n\n\n\n\n\n\n // given_loc_data_sixth_part=given_object[\"required_part_location_6th_block\"];\n\n //------------------------------------------extra code-------------------------\n // code for render road\n //image size height 3300 and width 1800\n // intial 3 points are:-1=[80,50],2=[700,50],3=[1450,50]\n /* var LeafIcon = L.Icon.extend({\n options: {\n iconSize: [50, 30],\n }\n });\n \n var svg='<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 50 30\" width=\"50\" height=\"30\" id=\"\" fill=\"red\"><defs><path d=\"M0 0L50 0L50 36L0 36L0 0Z\" id=\"d1HwhFdh0a\" ></path><text id=\"edJQPl1YZ\" x=\"3.19\" y=\"1.83\" font-size=\"5\" font-family=\"Open Sans\" font-weight=\"700\" font-style=\"normal\" letter-spacing=\"0\" alignment-baseline=\"before-edge\" transform=\"matrix(1 0 0 1 -1.7462686567164205 -1.335820895522378)\" style=\"line-height:100%\" xml:space=\"preserve\" dominant-baseline=\"text-before-edge\"><tspan x=\"3.19\" dy=\"0em\" alignment-baseline=\"before-edge\" dominant-baseline=\"text-before-edge\" text-anchor=\"start\" id=\"t_span\">road</tspan></text><style id=\"opensans700normal\"></style></defs><g><g><g><g></g><use xlink:href=\"#d1HwhFdh0a\" opacity=\"1\" fill-opacity=\"1\"></use></g><g id=\"bv4yYAEIG\"><use xlink:href=\"red\" opacity=\"1\" fill=\"red\" fill-opacity=\"1\"></use></g></g></g></svg>'\n const blob = new Blob([svg], {type: 'image/svg+xml'});\n const svg_url = URL.createObjectURL(blob);\n var greenIcon2 = new LeafIcon({ iconUrl: svg_url});\n //var greenIcon2 = new LeafIcon({ iconUrl: \"{{ url_for('static', filename='1.svg')}}\"});\n test = \"cover_Id=\";\n \n \n x_val_1=[50,50];\n x_val_1_end=[50,3100];\n x_val_2=[1100,50];\n x_val_2_end=[1100,3100];\n x_val_3=[1950,50];\n x_val_3_end=[1950,3100];\n \n \n \n\n\n var new_marker_1 = xy(x_val_1[0], x_val_1[1]);\n var new_marker_2= xy(x_val_2[0], x_val_2[1]);\n var new_marker_3= xy(x_val_3[0], x_val_3[1]);\n var new_marker_1_end = xy(x_val_1_end[0], x_val_1_end[1]);\n var new_marker_3_end = xy(x_val_3_end[0], x_val_3_end[1]);\n var new_marker_2_end= xy(x_val_2_end[0], x_val_2_end[1]);\n\n\n\n\n var given_marker1 = L.marker(new_marker_1, { icon: greenIcon2 })\n var given_marker2 = L.marker(new_marker_2, { icon: greenIcon2 })\n var given_marker3 = L.marker(new_marker_3, { icon: greenIcon2 })\n var given_marker1_end = L.marker(new_marker_1_end, { icon: greenIcon2 })\n var given_marker3_end = L.marker(new_marker_3_end, { icon: greenIcon2 })\n var given_marker2_end = L.marker(new_marker_2_end, { icon: greenIcon2 })\n\n\n\n\n given_marker1.addTo(myFeatureGroup)\n given_marker2.addTo(myFeatureGroup)\n given_marker3.addTo(myFeatureGroup)\n given_marker1_end.addTo(myFeatureGroup)\n given_marker3_end.addTo(myFeatureGroup)\n given_marker2_end.addTo(myFeatureGroup)*/\n\n\n\n\n //given_marker.test = test;\n\n\n\n\n\n\n\n\n\n\n\n //------------------------------------------onclick function here--------------------------------------\n\n\n}", "function formatPageName() {\n customValues.pageName = customValues.sectionLevel1;\n customValues.hierarchy1 = customValues.pageName;\n if (subSections.length > 0) {\n customValues.parentSection = customValues.parentSection + \":\" + subSections[0];\n customValues.sectionLevel1 = customValues.sectionLevel1 + \":\" + subSections[0];\n\n for (var j = 0; j < subSections.length; j++) {\n customValues.pageName = customValues.pageName + \":\" + subSections[j];\n customValues.hierarchy1 = customValues.hierarchy1 + \"|\" + customValues.pageName;\n if (j + 1 == subSections.length) {\n customValues.pageName = pageTitleExists(customValues.pageName);\n customValues.hierarchy1 = customValues.hierarchy1 + \"|\" + customValues.pageName;\n if (j >= 1) {\n customValues.sectionLevel2 = customValues.sectionLevel1 + \":\" + subSections[1];\n if (siteData.bcLevel2 != \"\") {\n customValues.pageNameBreadCrumbs = customValues.pageNameBreadCrumbs + \":\" + siteData.bcLevel2;\n }\n if (j >= 2) {\n if (siteData.bcLevel3 != \"\") {\n customValues.pageNameBreadCrumbs = customValues.pageNameBreadCrumbs + \":\" + siteData.bcLevel3;\n }\n customValues.sectionLevel3 = customValues.sectionLevel2 + \":\" + subSections[2];\n if (j >= 3) {\n customValues.sectionLevel4 = customValues.sectionLevel3 + \":\" + subSections[3];\n if (j >= 4) {\n customValues.sectionLevel5 = customValues.sectionLevel4 + \":\" + subSections[4];\n }\n }\n }\n }\n }\n }\n } else {\n customValues.pageName = pageTitleExists(customValues.pageName);\n customValues.hierarchy1 = customValues.pageName;\n }\n }", "get mapIn() {\n\t return _objectSpread({}, sanitizeExternalDrops(this.props.mapIn), {\n\t [this.rootKey]: internalMapIn\n\t });\n\t }", "function _currentPageData() {\n let first = rows.length > 0 ? (currentPage - 1) * rowsPerPage + 1 : 0;\n let last = rows.length < rowsPerPage ? totalItems : (currentPage - 1) * rowsPerPage + rowsPerPage;\n \n return {\n first,\n last,\n current:currentPage,\n totalItems,\n } \n }", "function buildCounter(page){ return page; }", "function restructure(store, id) {\n let obj = {};\n for (let form in store.forms) {\n if (form.id === id) {\n obj = {\n ...form,\n pages: form.pages.map((page) => {\n for (let p in store.pages) {\n if (p.id === page) {\n return p;\n }\n }\n }),\n }\n }\n }\n}", "function cfnDataSourceConfluencePageConfigurationPropertyToCloudFormation(properties) {\n if (!cdk.canInspect(properties)) {\n return properties;\n }\n CfnDataSource_ConfluencePageConfigurationPropertyValidator(properties).assertSuccess();\n return {\n PageFieldMappings: cdk.listMapper(cfnDataSourceConfluencePageToIndexFieldMappingPropertyToCloudFormation)(properties.pageFieldMappings),\n };\n}", "renderPage() {\n const vendorTypes = _.pluck(VendorClass.collection.find().fetch(), 'vendor');\n const vendorTypeData = vendorTypes.map(vendorType => getInterestData(vendorType));\n return (\n <div id='byCategory-Page' className='pages-background' style={{ paddingTop: '20px' }}>\n <Container id=\"interests-page\">\n <Card.Group>\n {_.map(vendorTypeData, (vendorType, index) => <MakeCard key={index} vendorType={vendorType}/>)}\n </Card.Group>\n </Container>\n <div className='green-gradient' style={{ paddingTop: '100px' }}/>\n <div className='footer-background'/>\n </div>\n );\n }", "function initializePagesInfo() {\n siteName = getCurrSiteName();\n $.ajax({\n url: \"/easel/sites/\" + siteName + \"/getAllPageNames/\",\n method: \"POST\",\n success: function(data) {\n var pages = data[\"pages\"];\n for (var i = 0; i < pages.length; i++) {\n let name = pages[i]['name'];\n let info = {\n 'opened': pages[i]['opened'] == 'True',\n 'active': pages[i]['active'] == 'True',\n 'saved': true\n }\n pagesInfo[name] = info;\n }\n updatePages();\n },\n error: function(e) {\n console.error(\"failed to load the page tree: \", e);\n }\n });\n}", "function toObject(arr) {\n const siteMap = {};\n for (let med of arr) {\n const path = med.split(\"/\");\n let i = 1;\n let curr = siteMap;\n while (i < path.length) {\n curr = curr.hasOwnProperty(path[i]) ? curr[path[i]] : curr[path[i]] = {};\n i++;\n }\n }\n return siteMap;\n}", "function createTutorialMap(sections) {\n let section_map = {};\n for (let i = 0; i < sections.length; i++) {\n let section_data = {};\n let section_contents = $(sections[i]).children();\n let current_sections = Array.from($(section_contents).filter(\"[id]\"));\n section_data[\"id\"] = $(sections[i]).attr(\"id\");\n section_data[\"title\"] = section_contents[0].innerText;\n if (current_sections.length > 0) {\n section_data[\"subsections\"] = createTutorialMap(current_sections);\n }\n else {\n section_data[\"subsections\"] = {}\n }\n section_map[`${i}`] = section_data;\n }\n return section_map\n}", "function PdfPageBase(dictionary){/**\n * `Index` of the default layer.\n * @default -1.\n * @private\n */this.defLayerIndex=-1;/**\n * Local variable to store if page `updated`.\n * @default false.\n * @private\n */this.modified=false;/**\n * Instance of `DictionaryProperties` class.\n * @hidden\n * @private\n */this.dictionaryProperties=new DictionaryProperties();this.pageDictionary=dictionary;}", "function WoWMapProjection(){}", "function makePage(number, text, isDisabled, isPrevious, isNext) {\n return {\n number: number,\n text: text,\n disabled: isDisabled,\n previous: align && isPrevious,\n next: align && isNext\n };\n }", "function pagehtml(){\treturn pageholder();}", "function makePage(number, text, isActive) {\n\t return {\n\t number: number,\n\t text: text,\n\t active: isActive\n\t };\n\t }", "function nJSMap(aValue, aType) {\n chartObj = void 0;\n // If undefined\n if ($$(aValue).isUnDef()) {\n aValue = \"not available\";\n aType = \"undefined\";\n }\n // If object\n var _render = (aValue) => {\n if (!($$(aValue).isObject())) {\n if ($$(aValue).isNumber()) return \"<span style=\\\"color: midnightblue\\\">\" + aValue + \"</span>\";\n if ($$(aValue).isString()) return \"<span style=\\\"color: DarkSlateGray\\\">\" + aValue + \"</span>\";\n if (typeof aValue == \"boolean\") return \"<span style=\\\"color: steelblue\\\">\" + aValue + \"</span>\";\n return aValue;\n } else {\n // if date\n if (\"undefined\" !== typeof (aValue).getDate) return String(aValue);\n }\n\n var _determineKeys = ar => {\n return ar.reduce((keys, map) => {\n if (\"[object Object]\" == Object.prototype.toString.call(map)) {\n for (var key in map) {\n keys.add(key)\n }\n }\n return keys\n }, new Set())\n }\n\n var out = \"\";\n if ($$(aValue).isArray() && aValue.length > 0) {\n var _keys = Array.from(_determineKeys(aValue))\n var out = \"\";\n if ($$(aValue[0]).isMap()) {\n out += \"<table class=\\\"njsmap_table\\\"><tr>\";\n for(var i in _keys) {\n out += \"<td class=\\\"njsmap_tablehead\\\" style=\\\"text-align: center\\\"><span style=\\\"color: darkblue;font-weight: bold;\\\">\" + _keys[i] + \"</span></td>\";\n }\n out += \"</tr>\";\n } else {\n out += \"<table class=\\\"njsmap_table\\\">\";\n }\n for(var x in aValue) {\n out += \"<tr>\";\n if (!($$(aValue[x]).isMap()) && !($$(aValue[x]).isArray())) {\n out += \"<td class=\\\"njsmap_tablecell\\\" style=\\\"text-align: center\\\"><span style=\\\"color: darkblue;font-weight: bold;\\\">\" + aValue[x] + \"</span></td>\";\n } else {\n for (var y in _keys) {\n var _v = \"\"\n if (aValue[x] != null && aValue[x][_keys[y]] != null) {\n if (\"undefined\" != aValue[x][_keys[y]]) _v = aValue[x][_keys[y]]\n if (\"undefined\" == typeof _v) _v = \"\"\n }\n out += \"<td class=\\\"njsmap_tablecell\\\" style=\\\"text-align: center\\\">\" + _render(_v) + \"</td>\";\n }\n }\n out += \"</tr>\";\n }\n out += \"</table>\";\n } else {\n var out = \"<table class=\\\"njsmap_table\\\">\";\n for (var i in aValue) {\n var _v = \"\"\n if (aValue[i] != null) {\n if (\"undefined\" != aValue[i]) _v = aValue[i]\n if (\"undefined\" == typeof _v) _v = \"\"\n }\n out += \"<tr><td class=\\\"njsmap_tablecell\\\" style=\\\"text-align: right; vertical-align: top\\\"><span style=\\\"color: darkblue;font-weight: bold;\\\">\" + i + \"</span></td><td class=\\\"njsmap_tablecell\\\">\" + _render(_v) + \"</td></tr>\";\n }\n out += \"</table>\";\n }\n return out;\n };\n if ($$(aValue).isObject()) {\n var out = \"\";\n out += _render(aValue);\n aValue = out;\n }\n switch(aType) {\n case \"date\" : return (new Date(aValue)).toLocaleString() + \"\";\n case \"undefined\": return \"<span class=\\\"avalueNA\\\">\" + aValue + \"</span>\";\n default:\n return \"<span class=\\\"avalue\\\">\" + aValue + \"</span>\";\n }\n}", "function parsearPaginaCustom(custom){\n\ttry {printarPaginaCustom(custom);} catch(e) {console.error(e);}\n\tvar pag = {};\n\tfor(var p in custom){\n\t\tif(p == 'extra'){\n\t\t\tvar x = [];\n\t\t\tfor(var i=0; i<custom[p].length; i++) x.push(parsearPropCustom(custom[p][i], p));\n\t\t\tpag[p] = x;\n\t\t}\n\t\telse pag[p] = parsearPropCustom(custom[p]);\n\t}\n\treturn pag;\n}", "function makePage(number, text, isDisabled, isPrevious, isNext) {\n return {\n number: number,\n text: text,\n disabled: isDisabled,\n previous: ( align && isPrevious ),\n next: ( align && isNext )\n };\n }", "function makePage(number, text, isDisabled, isPrevious, isNext) {\n return {\n number: number,\n text: text,\n disabled: isDisabled,\n previous: ( align && isPrevious ),\n next: ( align && isNext )\n };\n }", "function makePage(number, text, isDisabled, isPrevious, isNext) {\n return {\n number: number,\n text: text,\n disabled: isDisabled,\n previous: ( align && isPrevious ),\n next: ( align && isNext )\n };\n }", "function Ht(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var r=0;r<e.rest.length;r++)if(D(e.rest[r])>a)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}", "function getPages() {\r\n\treturn pages;\r\n}", "function aetherMap(data, level) {\n const X = toMapCoord(level.Map.SizeFactor, level.X, level.Map.OffsetX)\n const Y = toMapCoord(level.Map.SizeFactor, level.Z, level.Map.OffsetY)\n\n const currentKey = Object.keys(data.GameContentLinks.AetherCurrentCompFlgSet)\n const res = {\n id: data.ID,\n type: 1,\n order: currentKey[0].replace('AetherCurrent', '') - 5,\n currentGroup: data.GameContentLinks.AetherCurrentCompFlgSet[currentKey][0],\n map: {\n id: level.Map.PlaceName.ID,\n mapId: level.Map.ID,\n regionId: level.Map.PlaceNameRegion.ID,\n name: populateName(level.Map.PlaceName.Name_en, level.Map.PlaceName.Name_de, level.Map.PlaceName.Name_fr, level.Map.PlaceName.Name_ja),\n region: populateName(level.Map.PlaceNameRegion.Name_en, level.Map.PlaceNameRegion.Name_de, level.Map.PlaceNameRegion.Name_fr, level.Map.PlaceNameRegion.Name_ja),\n sizeFactor: level.Map.SizeFactor,\n },\n location: {\n x: X,\n y: Y,\n mapPos: posOnMap(level.Map.SizeFactor, X, Y),\n }\n }\n\n // console.log(res)\n return res\n}", "function contents(map, tight) {\n var minDepth = Infinity\n var index = -1\n var length = map.length\n var table\n\n // Find minimum depth.\n while (++index < length) {\n if (map[index].depth < minDepth) {\n minDepth = map[index].depth\n }\n }\n\n // Normalize depth.\n index = -1\n\n while (++index < length) {\n map[index].depth -= minDepth - 1\n }\n\n // Construct the main list.\n table = list()\n\n // Add TOC to list.\n index = -1\n\n while (++index < length) {\n insert(map[index], table, tight)\n }\n\n return table\n}", "function common_getProvinceCityMap(){\n var common_provinceCityMap = {\n \"1\": [\n {\n \"id\": 72,\n \"name\": \"朝阳区\"\n },\n {\n \"id\": 2800,\n \"name\": \"海淀区\"\n },\n {\n \"id\": 2801,\n \"name\": \"西城区\"\n },\n {\n \"id\": 2802,\n \"name\": \"东城区\"\n },\n {\n \"id\": 2803,\n \"name\": \"崇文区\"\n },\n {\n \"id\": 2804,\n \"name\": \"宣武区\"\n },\n {\n \"id\": 2805,\n \"name\": \"丰台区\"\n },\n {\n \"id\": 2806,\n \"name\": \"石景山区\"\n },\n {\n \"id\": 2807,\n \"name\": \"门头沟\"\n },\n {\n \"id\": 2808,\n \"name\": \"房山区\"\n },\n {\n \"id\": 2809,\n \"name\": \"通州区\"\n },\n {\n \"id\": 2810,\n \"name\": \"大兴区\"\n },\n {\n \"id\": 2812,\n \"name\": \"顺义区\"\n },\n {\n \"id\": 2814,\n \"name\": \"怀柔区\"\n },\n {\n \"id\": 2816,\n \"name\": \"密云区\"\n },\n {\n \"id\": 2901,\n \"name\": \"昌平区\"\n },\n {\n \"id\": 2953,\n \"name\": \"平谷区\"\n },\n {\n \"id\": 3065,\n \"name\": \"延庆县\"\n }],\n \"2\": [\n {\n \"id\": 2813,\n \"name\": \"徐汇区\"\n },\n {\n \"id\": 2815,\n \"name\": \"长宁区\"\n },\n {\n \"id\": 2817,\n \"name\": \"静安区\"\n },\n {\n \"id\": 2820,\n \"name\": \"闸北区\"\n },\n {\n \"id\": 2822,\n \"name\": \"虹口区\"\n },\n {\n \"id\": 2823,\n \"name\": \"杨浦区\"\n },\n {\n \"id\": 2824,\n \"name\": \"宝山区\"\n },\n {\n \"id\": 2825,\n \"name\": \"闵行区\"\n },\n {\n \"id\": 2826,\n \"name\": \"嘉定区\"\n },\n {\n \"id\": 2830,\n \"name\": \"浦东新区\"\n },\n {\n \"id\": 2833,\n \"name\": \"青浦区\"\n },\n {\n \"id\": 2834,\n \"name\": \"松江区\"\n },\n {\n \"id\": 2835,\n \"name\": \"金山区\"\n },\n {\n \"id\": 2837,\n \"name\": \"奉贤区\"\n },\n {\n \"id\": 2841,\n \"name\": \"普陀区\"\n },\n {\n \"id\": 2919,\n \"name\": \"崇明县\"\n },\n {\n \"id\": 78,\n \"name\": \"黄浦区\"\n }],\n \"3\": [\n {\n \"id\": 51035,\n \"name\": \"东丽区\"\n },\n {\n \"id\": 51036,\n \"name\": \"和平区\"\n },\n {\n \"id\": 51037,\n \"name\": \"河北区\"\n },\n {\n \"id\": 51038,\n \"name\": \"河东区\"\n },\n {\n \"id\": 51039,\n \"name\": \"河西区\"\n },\n {\n \"id\": 51040,\n \"name\": \"红桥区\"\n },\n {\n \"id\": 51041,\n \"name\": \"蓟县\"\n },\n {\n \"id\": 51042,\n \"name\": \"静海县\"\n },\n {\n \"id\": 51043,\n \"name\": \"南开区\"\n },\n {\n \"id\": 51044,\n \"name\": \"塘沽区\"\n },\n {\n \"id\": 51045,\n \"name\": \"西青区\"\n },\n {\n \"id\": 51046,\n \"name\": \"武清区\"\n },\n {\n \"id\": 51047,\n \"name\": \"津南区\"\n },\n {\n \"id\": 51048,\n \"name\": \"汉沽区\"\n },\n {\n \"id\": 51049,\n \"name\": \"大港区\"\n },\n {\n \"id\": 51050,\n \"name\": \"北辰区\"\n },\n {\n \"id\": 51051,\n \"name\": \"宝坻区\"\n },\n {\n \"id\": 51052,\n \"name\": \"宁河县\"\n }],\n \"4\": [\n {\n \"id\": 113,\n \"name\": \"万州区\"\n },\n {\n \"id\": 114,\n \"name\": \"涪陵区\"\n },\n {\n \"id\": 115,\n \"name\": \"梁平县\"\n },\n {\n \"id\": 119,\n \"name\": \"南川区\"\n },\n {\n \"id\": 123,\n \"name\": \"潼南县\"\n },\n {\n \"id\": 126,\n \"name\": \"大足区\"\n },\n {\n \"id\": 128,\n \"name\": \"黔江区\"\n },\n {\n \"id\": 129,\n \"name\": \"武隆县\"\n },\n {\n \"id\": 130,\n \"name\": \"丰都县\"\n },\n {\n \"id\": 131,\n \"name\": \"奉节县\"\n },\n {\n \"id\": 132,\n \"name\": \"开县\"\n },\n {\n \"id\": 133,\n \"name\": \"云阳县\"\n },\n {\n \"id\": 134,\n \"name\": \"忠县\"\n },\n {\n \"id\": 135,\n \"name\": \"巫溪县\"\n },\n {\n \"id\": 136,\n \"name\": \"巫山县\"\n },\n {\n \"id\": 137,\n \"name\": \"石柱县\"\n },\n {\n \"id\": 138,\n \"name\": \"彭水县\"\n },\n {\n \"id\": 139,\n \"name\": \"垫江县\"\n },\n {\n \"id\": 140,\n \"name\": \"酉阳县\"\n },\n {\n \"id\": 141,\n \"name\": \"秀山县\"\n },\n {\n \"id\": 48131,\n \"name\": \"璧山县\"\n },\n {\n \"id\": 48132,\n \"name\": \"荣昌县\"\n },\n {\n \"id\": 48133,\n \"name\": \"铜梁县\"\n },\n {\n \"id\": 48201,\n \"name\": \"合川区\"\n },\n {\n \"id\": 48202,\n \"name\": \"巴南区\"\n },\n {\n \"id\": 48203,\n \"name\": \"北碚区\"\n },\n {\n \"id\": 48204,\n \"name\": \"江津区\"\n },\n {\n \"id\": 48205,\n \"name\": \"渝北区\"\n },\n {\n \"id\": 48206,\n \"name\": \"长寿区\"\n },\n {\n \"id\": 48207,\n \"name\": \"永川区\"\n },\n {\n \"id\": 50950,\n \"name\": \"江北区\"\n },\n {\n \"id\": 50951,\n \"name\": \"南岸区\"\n },\n {\n \"id\": 50952,\n \"name\": \"九龙坡区\"\n },\n {\n \"id\": 50953,\n \"name\": \"沙坪坝区\"\n },\n {\n \"id\": 50954,\n \"name\": \"大渡口区\"\n },\n {\n \"id\": 50995,\n \"name\": \"綦江区\"\n },\n {\n \"id\": 51026,\n \"name\": \"渝中区\"\n },\n {\n \"id\": 51027,\n \"name\": \"高新区\"\n },\n {\n \"id\": 51028,\n \"name\": \"北部新区\"\n },\n {\n \"id\": 4164,\n \"name\": \"城口县\"\n }],\n \"5\": [\n {\n \"id\": 142,\n \"name\": \"石家庄市\"\n },\n {\n \"id\": 148,\n \"name\": \"邯郸市\"\n },\n {\n \"id\": 164,\n \"name\": \"邢台市\"\n },\n {\n \"id\": 199,\n \"name\": \"保定市\"\n },\n {\n \"id\": 224,\n \"name\": \"张家口市\"\n },\n {\n \"id\": 239,\n \"name\": \"承德市\"\n },\n {\n \"id\": 248,\n \"name\": \"秦皇岛市\"\n },\n {\n \"id\": 258,\n \"name\": \"唐山市\"\n },\n {\n \"id\": 264,\n \"name\": \"沧州市\"\n },\n {\n \"id\": 274,\n \"name\": \"廊坊市\"\n },\n {\n \"id\": 275,\n \"name\": \"衡水市\"\n }],\n \"6\": [\n {\n \"id\": 303,\n \"name\": \"太原市\"\n },\n {\n \"id\": 309,\n \"name\": \"大同市\"\n },\n {\n \"id\": 318,\n \"name\": \"阳泉市\"\n },\n {\n \"id\": 325,\n \"name\": \"晋城市\"\n },\n {\n \"id\": 330,\n \"name\": \"朔州市\"\n },\n {\n \"id\": 336,\n \"name\": \"晋中市\"\n },\n {\n \"id\": 350,\n \"name\": \"忻州市\"\n },\n {\n \"id\": 368,\n \"name\": \"吕梁市\"\n },\n {\n \"id\": 379,\n \"name\": \"临汾市\"\n },\n {\n \"id\": 398,\n \"name\": \"运城市\"\n },\n {\n \"id\": 3074,\n \"name\": \"长治市\"\n }],\n \"7\": [\n {\n \"id\": 412,\n \"name\": \"郑州市\"\n },\n {\n \"id\": 420,\n \"name\": \"开封市\"\n },\n {\n \"id\": 427,\n \"name\": \"洛阳市\"\n },\n {\n \"id\": 438,\n \"name\": \"平顶山市\"\n },\n {\n \"id\": 446,\n \"name\": \"焦作市\"\n },\n {\n \"id\": 454,\n \"name\": \"鹤壁市\"\n },\n {\n \"id\": 458,\n \"name\": \"新乡市\"\n },\n {\n \"id\": 468,\n \"name\": \"安阳市\"\n },\n {\n \"id\": 475,\n \"name\": \"濮阳市\"\n },\n {\n \"id\": 482,\n \"name\": \"许昌市\"\n },\n {\n \"id\": 489,\n \"name\": \"漯河市\"\n },\n {\n \"id\": 495,\n \"name\": \"三门峡市\"\n },\n {\n \"id\": 502,\n \"name\": \"南阳市\"\n },\n {\n \"id\": 517,\n \"name\": \"商丘市\"\n },\n {\n \"id\": 527,\n \"name\": \"周口市\"\n },\n {\n \"id\": 538,\n \"name\": \"驻马店市\"\n },\n {\n \"id\": 549,\n \"name\": \"信阳市\"\n },\n {\n \"id\": 2780,\n \"name\": \"济源市\"\n }],\n \"8\": [\n {\n \"id\": 560,\n \"name\": \"沈阳市\"\n },\n {\n \"id\": 573,\n \"name\": \"大连市\"\n },\n {\n \"id\": 579,\n \"name\": \"鞍山市\"\n },\n {\n \"id\": 584,\n \"name\": \"抚顺市\"\n },\n {\n \"id\": 589,\n \"name\": \"本溪市\"\n },\n {\n \"id\": 593,\n \"name\": \"丹东市\"\n },\n {\n \"id\": 598,\n \"name\": \"锦州市\"\n },\n {\n \"id\": 604,\n \"name\": \"葫芦岛市\"\n },\n {\n \"id\": 609,\n \"name\": \"营口市\"\n },\n {\n \"id\": 613,\n \"name\": \"盘锦市\"\n },\n {\n \"id\": 617,\n \"name\": \"阜新市\"\n },\n {\n \"id\": 621,\n \"name\": \"辽阳市\"\n },\n {\n \"id\": 632,\n \"name\": \"朝阳市\"\n },\n {\n \"id\": 6858,\n \"name\": \"铁岭市\"\n }],\n \"9\": [\n {\n \"id\": 639,\n \"name\": \"长春市\"\n },\n {\n \"id\": 644,\n \"name\": \"吉林市\"\n },\n {\n \"id\": 651,\n \"name\": \"四平市\"\n },\n {\n \"id\": 2992,\n \"name\": \"辽源市\"\n },\n {\n \"id\": 657,\n \"name\": \"通化市\"\n },\n {\n \"id\": 664,\n \"name\": \"白山市\"\n },\n {\n \"id\": 674,\n \"name\": \"松原市\"\n },\n {\n \"id\": 681,\n \"name\": \"白城市\"\n },\n {\n \"id\": 687,\n \"name\": \"延边州\"\n }],\n \"10\": [\n {\n \"id\": 727,\n \"name\": \"鹤岗市\"\n },\n {\n \"id\": 731,\n \"name\": \"双鸭山市\"\n },\n {\n \"id\": 737,\n \"name\": \"鸡西市\"\n },\n {\n \"id\": 742,\n \"name\": \"大庆市\"\n },\n {\n \"id\": 753,\n \"name\": \"伊春市\"\n },\n {\n \"id\": 757,\n \"name\": \"牡丹江市\"\n },\n {\n \"id\": 765,\n \"name\": \"佳木斯市\"\n },\n {\n \"id\": 773,\n \"name\": \"七台河市\"\n },\n {\n \"id\": 776,\n \"name\": \"黑河市\"\n },\n {\n \"id\": 782,\n \"name\": \"绥化市\"\n },\n {\n \"id\": 793,\n \"name\": \"大兴安岭地区\"\n },\n {\n \"id\": 698,\n \"name\": \"哈尔滨市\"\n },\n {\n \"id\": 712,\n \"name\": \"齐齐哈尔市\"\n }],\n \"11\": [\n {\n \"id\": 799,\n \"name\": \"呼和浩特市\"\n },\n {\n \"id\": 805,\n \"name\": \"包头市\"\n },\n {\n \"id\": 810,\n \"name\": \"乌海市\"\n },\n {\n \"id\": 812,\n \"name\": \"赤峰市\"\n },\n {\n \"id\": 823,\n \"name\": \"乌兰察布市\"\n },\n {\n \"id\": 835,\n \"name\": \"锡林郭勒盟\"\n },\n {\n \"id\": 848,\n \"name\": \"呼伦贝尔市\"\n },\n {\n \"id\": 870,\n \"name\": \"鄂尔多斯市\"\n },\n {\n \"id\": 880,\n \"name\": \"巴彦淖尔市\"\n },\n {\n \"id\": 891,\n \"name\": \"阿拉善盟\"\n },\n {\n \"id\": 895,\n \"name\": \"兴安盟\"\n },\n {\n \"id\": 902,\n \"name\": \"通辽市\"\n }],\n \"12\": [\n {\n \"id\": 904,\n \"name\": \"南京市\"\n },\n {\n \"id\": 911,\n \"name\": \"徐州市\"\n },\n {\n \"id\": 919,\n \"name\": \"连云港市\"\n },\n {\n \"id\": 925,\n \"name\": \"淮安市\"\n },\n {\n \"id\": 933,\n \"name\": \"宿迁市\"\n },\n {\n \"id\": 939,\n \"name\": \"盐城市\"\n },\n {\n \"id\": 951,\n \"name\": \"扬州市\"\n },\n {\n \"id\": 959,\n \"name\": \"泰州市\"\n },\n {\n \"id\": 965,\n \"name\": \"南通市\"\n },\n {\n \"id\": 972,\n \"name\": \"镇江市\"\n },\n {\n \"id\": 978,\n \"name\": \"常州市\"\n },\n {\n \"id\": 984,\n \"name\": \"无锡市\"\n },\n {\n \"id\": 988,\n \"name\": \"苏州市\"\n }],\n \"13\": [\n {\n \"id\": 2900,\n \"name\": \"济宁市\"\n },\n {\n \"id\": 1000,\n \"name\": \"济南市\"\n },\n {\n \"id\": 1007,\n \"name\": \"青岛市\"\n },\n {\n \"id\": 1016,\n \"name\": \"淄博市\"\n },\n {\n \"id\": 1022,\n \"name\": \"枣庄市\"\n },\n {\n \"id\": 1025,\n \"name\": \"东营市\"\n },\n {\n \"id\": 1032,\n \"name\": \"潍坊市\"\n },\n {\n \"id\": 1042,\n \"name\": \"烟台市\"\n },\n {\n \"id\": 1053,\n \"name\": \"威海市\"\n },\n {\n \"id\": 1058,\n \"name\": \"莱芜市\"\n },\n {\n \"id\": 1060,\n \"name\": \"德州市\"\n },\n {\n \"id\": 1072,\n \"name\": \"临沂市\"\n },\n {\n \"id\": 1081,\n \"name\": \"聊城市\"\n },\n {\n \"id\": 1090,\n \"name\": \"滨州市\"\n },\n {\n \"id\": 1099,\n \"name\": \"菏泽市\"\n },\n {\n \"id\": 1108,\n \"name\": \"日照市\"\n },\n {\n \"id\": 1112,\n \"name\": \"泰安市\"\n }],\n \"14\": [\n {\n \"id\": 1151,\n \"name\": \"黄山市\"\n },\n {\n \"id\": 1159,\n \"name\": \"滁州市\"\n },\n {\n \"id\": 1167,\n \"name\": \"阜阳市\"\n },\n {\n \"id\": 1174,\n \"name\": \"亳州市\"\n },\n {\n \"id\": 1180,\n \"name\": \"宿州市\"\n },\n {\n \"id\": 1201,\n \"name\": \"池州市\"\n },\n {\n \"id\": 1206,\n \"name\": \"六安市\"\n },\n {\n \"id\": 2971,\n \"name\": \"宣城市\"\n },\n {\n \"id\": 1114,\n \"name\": \"铜陵市\"\n },\n {\n \"id\": 1116,\n \"name\": \"合肥市\"\n },\n {\n \"id\": 1121,\n \"name\": \"淮南市\"\n },\n {\n \"id\": 1124,\n \"name\": \"淮北市\"\n },\n {\n \"id\": 1127,\n \"name\": \"芜湖市\"\n },\n {\n \"id\": 1132,\n \"name\": \"蚌埠市\"\n },\n {\n \"id\": 1137,\n \"name\": \"马鞍山市\"\n },\n {\n \"id\": 1140,\n \"name\": \"安庆市\"\n }],\n \"15\": [\n {\n \"id\": 1158,\n \"name\": \"宁波市\"\n },\n {\n \"id\": 1273,\n \"name\": \"衢州市\"\n },\n {\n \"id\": 1280,\n \"name\": \"丽水市\"\n },\n {\n \"id\": 1290,\n \"name\": \"台州市\"\n },\n {\n \"id\": 1298,\n \"name\": \"舟山市\"\n },\n {\n \"id\": 1213,\n \"name\": \"杭州市\"\n },\n {\n \"id\": 1233,\n \"name\": \"温州市\"\n },\n {\n \"id\": 1243,\n \"name\": \"嘉兴市\"\n },\n {\n \"id\": 1250,\n \"name\": \"湖州市\"\n },\n {\n \"id\": 1255,\n \"name\": \"绍兴市\"\n },\n {\n \"id\": 1262,\n \"name\": \"金华市\"\n }],\n \"16\": [\n {\n \"id\": 1303,\n \"name\": \"福州市\"\n },\n {\n \"id\": 1315,\n \"name\": \"厦门市\"\n },\n {\n \"id\": 1317,\n \"name\": \"三明市\"\n },\n {\n \"id\": 1329,\n \"name\": \"莆田市\"\n },\n {\n \"id\": 1332,\n \"name\": \"泉州市\"\n },\n {\n \"id\": 1341,\n \"name\": \"漳州市\"\n },\n {\n \"id\": 1352,\n \"name\": \"南平市\"\n },\n {\n \"id\": 1362,\n \"name\": \"龙岩市\"\n },\n {\n \"id\": 1370,\n \"name\": \"宁德市\"\n }],\n \"17\": [\n {\n \"id\": 1432,\n \"name\": \"孝感市\"\n },\n {\n \"id\": 1441,\n \"name\": \"黄冈市\"\n },\n {\n \"id\": 1458,\n \"name\": \"咸宁市\"\n },\n {\n \"id\": 1466,\n \"name\": \"恩施州\"\n },\n {\n \"id\": 1475,\n \"name\": \"鄂州市\"\n },\n {\n \"id\": 1477,\n \"name\": \"荆门市\"\n },\n {\n \"id\": 1479,\n \"name\": \"随州市\"\n },\n {\n \"id\": 3154,\n \"name\": \"神农架林区\"\n },\n {\n \"id\": 1381,\n \"name\": \"武汉市\"\n },\n {\n \"id\": 1387,\n \"name\": \"黄石市\"\n },\n {\n \"id\": 1396,\n \"name\": \"襄阳市\"\n },\n {\n \"id\": 1405,\n \"name\": \"十堰市\"\n },\n {\n \"id\": 1413,\n \"name\": \"荆州市\"\n },\n {\n \"id\": 1421,\n \"name\": \"宜昌市\"\n },\n {\n \"id\": 2922,\n \"name\": \"潜江市\"\n },\n {\n \"id\": 2980,\n \"name\": \"天门市\"\n },\n {\n \"id\": 2983,\n \"name\": \"仙桃市\"\n }],\n \"18\": [\n {\n \"id\": 1482,\n \"name\": \"长沙市\"\n },\n {\n \"id\": 1488,\n \"name\": \"株洲市\"\n },\n {\n \"id\": 1495,\n \"name\": \"湘潭市\"\n },\n {\n \"id\": 1501,\n \"name\": \"衡阳市\"\n },\n {\n \"id\": 1511,\n \"name\": \"邵阳市\"\n },\n {\n \"id\": 1522,\n \"name\": \"岳阳市\"\n },\n {\n \"id\": 1530,\n \"name\": \"常德市\"\n },\n {\n \"id\": 1540,\n \"name\": \"张家界市\"\n },\n {\n \"id\": 1544,\n \"name\": \"郴州市\"\n },\n {\n \"id\": 1555,\n \"name\": \"益阳市\"\n },\n {\n \"id\": 1560,\n \"name\": \"永州市\"\n },\n {\n \"id\": 1574,\n \"name\": \"怀化市\"\n },\n {\n \"id\": 1586,\n \"name\": \"娄底市\"\n },\n {\n \"id\": 1592,\n \"name\": \"湘西州\"\n }],\n \"19\": [\n {\n \"id\": 1601,\n \"name\": \"广州市\"\n },\n {\n \"id\": 1607,\n \"name\": \"深圳市\"\n },\n {\n \"id\": 1609,\n \"name\": \"珠海市\"\n },\n {\n \"id\": 1611,\n \"name\": \"汕头市\"\n },\n {\n \"id\": 1617,\n \"name\": \"韶关市\"\n },\n {\n \"id\": 1627,\n \"name\": \"河源市\"\n },\n {\n \"id\": 1634,\n \"name\": \"梅州市\"\n },\n {\n \"id\": 1709,\n \"name\": \"揭阳市\"\n },\n {\n \"id\": 1643,\n \"name\": \"惠州市\"\n },\n {\n \"id\": 1650,\n \"name\": \"汕尾市\"\n },\n {\n \"id\": 1655,\n \"name\": \"东莞市\"\n },\n {\n \"id\": 1657,\n \"name\": \"中山市\"\n },\n {\n \"id\": 1659,\n \"name\": \"江门市\"\n },\n {\n \"id\": 1666,\n \"name\": \"佛山市\"\n },\n {\n \"id\": 1672,\n \"name\": \"阳江市\"\n },\n {\n \"id\": 1677,\n \"name\": \"湛江市\"\n },\n {\n \"id\": 1684,\n \"name\": \"茂名市\"\n },\n {\n \"id\": 1690,\n \"name\": \"肇庆市\"\n },\n {\n \"id\": 1698,\n \"name\": \"云浮市\"\n },\n {\n \"id\": 1704,\n \"name\": \"清远市\"\n },\n {\n \"id\": 1705,\n \"name\": \"潮州市\"\n }],\n \"20\": [\n {\n \"id\": 3168,\n \"name\": \"崇左市\"\n },\n {\n \"id\": 1715,\n \"name\": \"南宁市\"\n },\n {\n \"id\": 1720,\n \"name\": \"柳州市\"\n },\n {\n \"id\": 1726,\n \"name\": \"桂林市\"\n },\n {\n \"id\": 1740,\n \"name\": \"梧州市\"\n },\n {\n \"id\": 1746,\n \"name\": \"北海市\"\n },\n {\n \"id\": 1749,\n \"name\": \"防城港市\"\n },\n {\n \"id\": 1753,\n \"name\": \"钦州市\"\n },\n {\n \"id\": 1757,\n \"name\": \"贵港市\"\n },\n {\n \"id\": 1761,\n \"name\": \"玉林市\"\n },\n {\n \"id\": 1792,\n \"name\": \"贺州市\"\n },\n {\n \"id\": 1806,\n \"name\": \"百色市\"\n },\n {\n \"id\": 1818,\n \"name\": \"河池市\"\n },\n {\n \"id\": 3044,\n \"name\": \"来宾市\"\n }],\n \"21\": [\n {\n \"id\": 1827,\n \"name\": \"南昌市\"\n },\n {\n \"id\": 1832,\n \"name\": \"景德镇市\"\n },\n {\n \"id\": 1836,\n \"name\": \"萍乡市\"\n },\n {\n \"id\": 1842,\n \"name\": \"新余市\"\n },\n {\n \"id\": 1845,\n \"name\": \"九江市\"\n },\n {\n \"id\": 1857,\n \"name\": \"鹰潭市\"\n },\n {\n \"id\": 1861,\n \"name\": \"上饶市\"\n },\n {\n \"id\": 1874,\n \"name\": \"宜春市\"\n },\n {\n \"id\": 1885,\n \"name\": \"抚州市\"\n },\n {\n \"id\": 1898,\n \"name\": \"吉安市\"\n },\n {\n \"id\": 1911,\n \"name\": \"赣州市\"\n }],\n \"22\": [\n {\n \"id\": 2103,\n \"name\": \"凉山州\"\n },\n {\n \"id\": 1930,\n \"name\": \"成都市\"\n },\n {\n \"id\": 1946,\n \"name\": \"自贡市\"\n },\n {\n \"id\": 1950,\n \"name\": \"攀枝花市\"\n },\n {\n \"id\": 1954,\n \"name\": \"泸州市\"\n },\n {\n \"id\": 1960,\n \"name\": \"绵阳市\"\n },\n {\n \"id\": 1962,\n \"name\": \"德阳市\"\n },\n {\n \"id\": 1977,\n \"name\": \"广元市\"\n },\n {\n \"id\": 1983,\n \"name\": \"遂宁市\"\n },\n {\n \"id\": 1988,\n \"name\": \"内江市\"\n },\n {\n \"id\": 1993,\n \"name\": \"乐山市\"\n },\n {\n \"id\": 2005,\n \"name\": \"宜宾市\"\n },\n {\n \"id\": 2016,\n \"name\": \"广安市\"\n },\n {\n \"id\": 2022,\n \"name\": \"南充市\"\n },\n {\n \"id\": 2033,\n \"name\": \"达州市\"\n },\n {\n \"id\": 2042,\n \"name\": \"巴中市\"\n },\n {\n \"id\": 2047,\n \"name\": \"雅安市\"\n },\n {\n \"id\": 2058,\n \"name\": \"眉山市\"\n },\n {\n \"id\": 2065,\n \"name\": \"资阳市\"\n },\n {\n \"id\": 2070,\n \"name\": \"阿坝州\"\n },\n {\n \"id\": 2084,\n \"name\": \"甘孜州\"\n }],\n \"23\": [\n {\n \"id\": 3690,\n \"name\": \"三亚市\"\n },\n {\n \"id\": 3698,\n \"name\": \"文昌市\"\n },\n {\n \"id\": 3699,\n \"name\": \"五指山市\"\n },\n {\n \"id\": 3701,\n \"name\": \"临高县\"\n },\n {\n \"id\": 3702,\n \"name\": \"澄迈县\"\n },\n {\n \"id\": 3703,\n \"name\": \"定安县\"\n },\n {\n \"id\": 3704,\n \"name\": \"屯昌县\"\n },\n {\n \"id\": 3705,\n \"name\": \"昌江县\"\n },\n {\n \"id\": 3706,\n \"name\": \"白沙县\"\n },\n {\n \"id\": 3707,\n \"name\": \"琼中县\"\n },\n {\n \"id\": 3708,\n \"name\": \"陵水县\"\n },\n {\n \"id\": 3709,\n \"name\": \"保亭县\"\n },\n {\n \"id\": 3710,\n \"name\": \"乐东县\"\n },\n {\n \"id\": 3711,\n \"name\": \"三沙市\"\n },\n {\n \"id\": 2121,\n \"name\": \"海口市\"\n },\n {\n \"id\": 3115,\n \"name\": \"琼海市\"\n },\n {\n \"id\": 3137,\n \"name\": \"万宁市\"\n },\n {\n \"id\": 3173,\n \"name\": \"东方市\"\n },\n {\n \"id\": 3034,\n \"name\": \"儋州市\"\n }],\n \"24\": [\n {\n \"id\": 2144,\n \"name\": \"贵阳市\"\n },\n {\n \"id\": 2150,\n \"name\": \"六盘水市\"\n },\n {\n \"id\": 2155,\n \"name\": \"遵义市\"\n },\n {\n \"id\": 2169,\n \"name\": \"铜仁市\"\n },\n {\n \"id\": 2180,\n \"name\": \"毕节市\"\n },\n {\n \"id\": 2189,\n \"name\": \"安顺市\"\n },\n {\n \"id\": 2196,\n \"name\": \"黔西南州\"\n },\n {\n \"id\": 2205,\n \"name\": \"黔东南州\"\n },\n {\n \"id\": 2222,\n \"name\": \"黔南州\"\n }],\n \"25\": [\n {\n \"id\": 4108,\n \"name\": \"迪庆州\"\n },\n {\n \"id\": 2235,\n \"name\": \"昆明市\"\n },\n {\n \"id\": 2247,\n \"name\": \"曲靖市\"\n },\n {\n \"id\": 2258,\n \"name\": \"玉溪市\"\n },\n {\n \"id\": 2270,\n \"name\": \"昭通市\"\n },\n {\n \"id\": 2281,\n \"name\": \"普洱市\"\n },\n {\n \"id\": 2291,\n \"name\": \"临沧市\"\n },\n {\n \"id\": 2298,\n \"name\": \"保山市\"\n },\n {\n \"id\": 2304,\n \"name\": \"丽江市\"\n },\n {\n \"id\": 2309,\n \"name\": \"文山州\"\n },\n {\n \"id\": 2318,\n \"name\": \"红河州\"\n },\n {\n \"id\": 2332,\n \"name\": \"西双版纳州\"\n },\n {\n \"id\": 2336,\n \"name\": \"楚雄州\"\n },\n {\n \"id\": 2347,\n \"name\": \"大理州\"\n },\n {\n \"id\": 2360,\n \"name\": \"德宏州\"\n },\n {\n \"id\": 2366,\n \"name\": \"怒江州\"\n }],\n \"26\": [\n {\n \"id\": 3970,\n \"name\": \"阿里地区\"\n },\n {\n \"id\": 3971,\n \"name\": \"林芝地区\"\n },\n {\n \"id\": 2951,\n \"name\": \"拉萨市\"\n },\n {\n \"id\": 3107,\n \"name\": \"那曲地区\"\n },\n {\n \"id\": 3129,\n \"name\": \"山南地区\"\n },\n {\n \"id\": 3138,\n \"name\": \"昌都地区\"\n },\n {\n \"id\": 3144,\n \"name\": \"日喀则地区\"\n }],\n \"27\": [\n {\n \"id\": 2428,\n \"name\": \"延安市\"\n },\n {\n \"id\": 2442,\n \"name\": \"汉中市\"\n },\n {\n \"id\": 2454,\n \"name\": \"榆林市\"\n },\n {\n \"id\": 2468,\n \"name\": \"商洛市\"\n },\n {\n \"id\": 2476,\n \"name\": \"安康市\"\n },\n {\n \"id\": 2376,\n \"name\": \"西安市\"\n },\n {\n \"id\": 2386,\n \"name\": \"铜川市\"\n },\n {\n \"id\": 2390,\n \"name\": \"宝鸡市\"\n },\n {\n \"id\": 2402,\n \"name\": \"咸阳市\"\n },\n {\n \"id\": 2416,\n \"name\": \"渭南市\"\n }],\n \"28\": [\n {\n \"id\": 2525,\n \"name\": \"庆阳市\"\n },\n {\n \"id\": 2534,\n \"name\": \"陇南市\"\n },\n {\n \"id\": 2544,\n \"name\": \"武威市\"\n },\n {\n \"id\": 2549,\n \"name\": \"张掖市\"\n },\n {\n \"id\": 2556,\n \"name\": \"酒泉市\"\n },\n {\n \"id\": 2564,\n \"name\": \"甘南州\"\n },\n {\n \"id\": 2573,\n \"name\": \"临夏州\"\n },\n {\n \"id\": 3080,\n \"name\": \"定西市\"\n },\n {\n \"id\": 2487,\n \"name\": \"兰州市\"\n },\n {\n \"id\": 2492,\n \"name\": \"金昌市\"\n },\n {\n \"id\": 2495,\n \"name\": \"白银市\"\n },\n {\n \"id\": 2501,\n \"name\": \"天水市\"\n },\n {\n \"id\": 2509,\n \"name\": \"嘉峪关市\"\n },\n {\n \"id\": 2518,\n \"name\": \"平凉市\"\n }],\n \"29\": [\n {\n \"id\": 2580,\n \"name\": \"西宁市\"\n },\n {\n \"id\": 2585,\n \"name\": \"海东地区\"\n },\n {\n \"id\": 2592,\n \"name\": \"海北州\"\n },\n {\n \"id\": 2597,\n \"name\": \"黄南州\"\n },\n {\n \"id\": 2603,\n \"name\": \"海南州\"\n },\n {\n \"id\": 2605,\n \"name\": \"果洛州\"\n },\n {\n \"id\": 2612,\n \"name\": \"玉树州\"\n },\n {\n \"id\": 2620,\n \"name\": \"海西州\"\n }],\n \"30\": [\n {\n \"id\": 2628,\n \"name\": \"银川市\"\n },\n {\n \"id\": 2632,\n \"name\": \"石嘴山市\"\n },\n {\n \"id\": 2637,\n \"name\": \"吴忠市\"\n },\n {\n \"id\": 2644,\n \"name\": \"固原市\"\n },\n {\n \"id\": 3071,\n \"name\": \"中卫市\"\n }],\n \"31\": [\n {\n \"id\": 4110,\n \"name\": \"五家渠市\"\n },\n {\n \"id\": 4163,\n \"name\": \"博尔塔拉蒙古自治州阿拉山口口岸\"\n },\n {\n \"id\": 15945,\n \"name\": \"阿拉尔市\"\n },\n {\n \"id\": 15946,\n \"name\": \"图木舒克市\"\n },\n {\n \"id\": 2652,\n \"name\": \"乌鲁木齐市\"\n },\n {\n \"id\": 2654,\n \"name\": \"克拉玛依市\"\n },\n {\n \"id\": 2656,\n \"name\": \"石河子市\"\n },\n {\n \"id\": 2658,\n \"name\": \"吐鲁番地区\"\n },\n {\n \"id\": 2662,\n \"name\": \"哈密地区\"\n },\n {\n \"id\": 2666,\n \"name\": \"和田地区\"\n },\n {\n \"id\": 2675,\n \"name\": \"阿克苏地区\"\n },\n {\n \"id\": 2686,\n \"name\": \"喀什地区\"\n },\n {\n \"id\": 2699,\n \"name\": \"克孜勒苏州\"\n },\n {\n \"id\": 2704,\n \"name\": \"巴音郭楞州\"\n },\n {\n \"id\": 2714,\n \"name\": \"昌吉州\"\n },\n {\n \"id\": 2723,\n \"name\": \"博尔塔拉州\"\n },\n {\n \"id\": 2727,\n \"name\": \"伊犁州\"\n },\n {\n \"id\": 2736,\n \"name\": \"塔城地区\"\n },\n {\n \"id\": 2744,\n \"name\": \"阿勒泰地区\"\n }],\n \"32\": [\n {\n \"id\": 2768,\n \"name\": \"台湾市\"\n }],\n \"42\": [\n {\n \"id\": 2754,\n \"name\": \"香港特别行政区\"\n }],\n \"43\": [\n {\n \"id\": 2770,\n \"name\": \"澳门市\"\n }],\n \"84\": [\n {\n \"id\": 1310,\n \"name\": \"钓鱼岛\"\n }],\n '53283':\n {\n 'A': [\n {\n id: 53285,\n name: '阿尔巴尼亚'\n },\n {\n id: 53296,\n name: '阿尔及利亚'\n },\n {\n id: 53284,\n name: '阿富汗'\n },\n {\n id: 53297,\n name: '阿根廷'\n },\n {\n id: 53300,\n name: '阿联酋'\n },\n {\n id: 53302,\n name: '阿鲁巴'\n },\n {\n id: 53495,\n name: '阿曼'\n },\n {\n id: 53315,\n name: '阿塞拜疆'\n },\n {\n id: 53320,\n name: '埃及'\n },\n {\n id: 53336,\n name: '埃塞俄比亚'\n },\n {\n id: 53337,\n name: '爱尔兰'\n },\n {\n id: 53338,\n name: '爱沙尼亚'\n },\n {\n id: 53339,\n name: '安道尔'\n },\n {\n id: 53341,\n name: '安哥拉'\n },\n {\n id: 53343,\n name: '安圭拉'\n },\n {\n id: 53346,\n name: '奥地利'\n },\n {\n id: 53347,\n name: '澳大利亚'\n },\n {\n id: 53344,\n name: '安提瓜和巴布达'\n }],\n 'B': [\n {\n id: 53349,\n name: '巴巴多斯'\n },\n {\n id: 53352,\n name: '巴哈马'\n },\n {\n id: 53353,\n name: '巴基斯坦'\n },\n {\n id: 53354,\n name: '巴拉圭'\n },\n {\n id: 53355,\n name: '巴林'\n },\n {\n id: 53356,\n name: '巴拿马'\n },\n {\n id: 53357,\n name: '巴西'\n },\n {\n id: 53359,\n name: '白俄罗斯'\n },\n {\n id: 53361,\n name: '百慕大三角'\n },\n {\n id: 53362,\n name: '保加利亚'\n },\n {\n id: 53365,\n name: '贝宁'\n },\n {\n id: 53367,\n name: '比利时'\n },\n {\n id: 53368,\n name: '冰岛'\n },\n {\n id: 53370,\n name: '波多黎各'\n },\n {\n id: 53372,\n name: '波兰'\n },\n {\n id: 53375,\n name: '玻利维亚'\n },\n {\n id: 53377,\n name: '伯利兹'\n },\n {\n id: 53379,\n name: '博茨瓦纳'\n },\n {\n id: 53380,\n name: '不丹'\n },\n {\n id: 53384,\n name: '布隆迪'\n },\n {\n id: 53382,\n name: '布基纳法索'\n },\n {\n id: 53350,\n name: '巴布亚新几内亚'\n },\n {\n id: 53374,\n name: '波斯尼亚和黑塞哥维那'\n }],\n 'CDEF': [\n {\n id: 53387,\n name: '丹麦'\n },\n {\n id: 53389,\n name: '德国'\n },\n {\n id: 53391,\n name: '东帝汶'\n },\n {\n id: 53392,\n name: '多哥'\n },\n {\n id: 53395,\n name: '俄罗斯'\n },\n {\n id: 53396,\n name: '厄瓜多尔'\n },\n {\n id: 53398,\n name: '法国'\n },\n {\n id: 53399,\n name: '法罗群岛'\n },\n {\n id: 53401,\n name: '菲律宾'\n },\n {\n id: 53403,\n name: '斐济群岛'\n },\n {\n id: 53405,\n name: '芬兰'\n },\n {\n id: 53406,\n name: '佛得角'\n },\n {\n id: 53400,\n name: '法属圭亚那'\n },\n {\n id: 53397,\n name: '厄立特里亚'\n },\n {\n id: 53386,\n name: '赤道几内亚'\n },\n {\n id: 53394,\n name: '多米尼加共和国'\n }],\n 'GH': [\n {\n id: 53407,\n name: '冈比亚'\n },\n {\n id: 53408,\n name: '刚果'\n },\n {\n id: 53409,\n name: '哥伦比亚'\n },\n {\n id: 53410,\n name: '哥斯达黎加'\n },\n {\n id: 53411,\n name: '格林纳达'\n },\n {\n id: 53412,\n name: '格陵兰'\n },\n {\n id: 53413,\n name: '格鲁吉亚'\n },\n {\n id: 53414,\n name: '古巴'\n },\n {\n id: 53415,\n name: '瓜德罗普'\n },\n {\n id: 53417,\n name: '关岛'\n },\n {\n id: 53419,\n name: '圭亚那'\n },\n {\n id: 53420,\n name: '哈萨克斯坦'\n },\n {\n id: 53421,\n name: '海地'\n },\n {\n id: 53422,\n name: '韩国'\n },\n {\n id: 53423,\n name: '荷兰'\n },\n {\n id: 53425,\n name: '黑山'\n },\n {\n id: 53426,\n name: '洪都拉斯'\n }],\n 'JK': [\n {\n id: 53430,\n name: '吉布提'\n },\n {\n id: 53434,\n name: '几内亚'\n },\n {\n id: 53436,\n name: '几内亚比绍'\n },\n {\n id: 53440,\n name: '加拿大'\n },\n {\n id: 53442,\n name: '加纳'\n },\n {\n id: 53444,\n name: '加蓬'\n },\n {\n id: 53445,\n name: '柬埔寨'\n },\n {\n id: 53447,\n name: '捷克'\n },\n {\n id: 53449,\n name: '津巴布韦'\n },\n {\n id: 53451,\n name: '喀麦隆'\n },\n {\n id: 53453,\n name: '卡塔尔'\n },\n {\n id: 53455,\n name: '开曼群岛'\n },\n {\n id: 53457,\n name: '科摩罗'\n },\n {\n id: 53458,\n name: '科特迪瓦'\n },\n {\n id: 53460,\n name: '科威特'\n },\n {\n id: 53461,\n name: '克罗地亚'\n },\n {\n id: 53463,\n name: '肯尼亚'\n },\n {\n id: 53464,\n name: '库克群岛'\n },\n {\n id: 53432,\n name: '吉尔吉斯斯坦'\n }],\n 'L': [\n {\n id: 53466,\n name: '拉脱维亚'\n },\n {\n id: 53467,\n name: '莱索托'\n },\n {\n id: 53476,\n name: '老挝'\n },\n {\n id: 53479,\n name: '黎巴嫩'\n },\n {\n id: 53481,\n name: '立陶宛'\n },\n {\n id: 53482,\n name: '利比里亚'\n },\n {\n id: 53484,\n name: '利比亚'\n },\n {\n id: 53486,\n name: '列支敦士登'\n },\n {\n id: 53491,\n name: '卢森堡'\n },\n {\n id: 53493,\n name: '卢旺达'\n },\n {\n id: 53494,\n name: '罗马尼亚'\n }],\n 'M': [\n {\n id: 53298,\n name: '马尔代夫'\n },\n {\n id: 53299,\n name: '马耳他'\n },\n {\n id: 53301,\n name: '马拉维'\n },\n {\n id: 53303,\n name: '马来西亚'\n },\n {\n id: 53304,\n name: '马里'\n },\n {\n id: 53305,\n name: '马其顿'\n },\n {\n id: 53306,\n name: '马提尼克'\n },\n {\n id: 53307,\n name: '毛里求斯'\n },\n {\n id: 53308,\n name: '毛里塔尼亚'\n },\n {\n id: 53309,\n name: '美国'\n },\n {\n id: 53286,\n name: '美属萨摩亚'\n },\n {\n id: 53311,\n name: '蒙古'\n },\n {\n id: 53312,\n name: '蒙特塞拉特'\n },\n {\n id: 53313,\n name: '孟加拉'\n },\n {\n id: 53314,\n name: '秘鲁'\n },\n {\n id: 53317,\n name: '摩尔多瓦'\n },\n {\n id: 53318,\n name: '摩洛哥'\n },\n {\n id: 53319,\n name: '摩纳哥'\n },\n {\n id: 53321,\n name: '莫桑比克'\n },\n {\n id: 53322,\n name: '墨西哥'\n },\n {\n id: 53316,\n name: '密克罗尼西亚'\n },\n {\n id: 53310,\n name: '美属维尔京群岛'\n },\n {\n id: 53496,\n name: '马达加斯加'\n }],\n 'NPR': [\n {\n id: 53323,\n name: '纳米比亚'\n },\n {\n id: 53324,\n name: '南非'\n },\n {\n id: 53325,\n name: '南苏丹'\n },\n {\n id: 53326,\n name: '尼泊尔'\n },\n {\n id: 53327,\n name: '尼加拉瓜'\n },\n {\n id: 53328,\n name: '尼日尔'\n },\n {\n id: 53329,\n name: '尼日利亚'\n },\n {\n id: 53330,\n name: '挪威'\n },\n {\n id: 53331,\n name: '帕劳'\n },\n {\n id: 53332,\n name: '葡萄牙'\n },\n {\n id: 53333,\n name: '日本'\n },\n {\n id: 53334,\n name: '瑞典'\n },\n {\n id: 53335,\n name: '瑞士'\n }],\n 'S': [\n {\n id: 53340,\n name: '萨尔瓦多'\n },\n {\n id: 53342,\n name: '萨摩亚'\n },\n {\n id: 53345,\n name: '塞尔维亚'\n },\n {\n id: 53348,\n name: '塞拉利昂'\n },\n {\n id: 53351,\n name: '塞内加尔'\n },\n {\n id: 53358,\n name: '塞浦路斯'\n },\n {\n id: 53360,\n name: '塞舌尔'\n },\n {\n id: 53363,\n name: '沙特阿拉伯'\n },\n {\n id: 53369,\n name: '圣卢西亚'\n },\n {\n id: 53371,\n name: '圣马力诺'\n },\n {\n id: 53376,\n name: '斯里兰卡'\n },\n {\n id: 53378,\n name: '斯洛伐克'\n },\n {\n id: 53381,\n name: '斯洛文尼亚'\n },\n {\n id: 53383,\n name: '斯威士兰'\n },\n {\n id: 53385,\n name: '苏丹'\n },\n {\n id: 53388,\n name: '苏里南'\n },\n {\n id: 53393,\n name: '索马里'\n },\n {\n id: 53390,\n name: '所罗门群岛'\n },\n {\n id: 53366,\n name: '圣基茨和尼维斯'\n },\n {\n id: 53364,\n name: '圣多美和普林西比'\n },\n {\n id: 53373,\n name: '圣文森特和格林纳丁斯'\n }],\n 'TW': [\n {\n id: 53402,\n name: '塔吉克斯坦'\n },\n {\n id: 53404,\n name: '泰国'\n },\n {\n id: 53418,\n name: '坦桑尼亚'\n },\n {\n id: 53424,\n name: '汤加'\n },\n {\n id: 53431,\n name: '突尼斯'\n },\n {\n id: 53433,\n name: '图瓦卢'\n },\n {\n id: 53435,\n name: '土耳其'\n },\n {\n id: 53437,\n name: '瓦努阿图'\n },\n {\n id: 53438,\n name: '危地马拉'\n },\n {\n id: 53439,\n name: '委内瑞拉'\n },\n {\n id: 53441,\n name: '文莱'\n },\n {\n id: 53443,\n name: '乌干达'\n },\n {\n id: 53446,\n name: '乌克兰'\n },\n {\n id: 53448,\n name: '乌拉圭'\n },\n {\n id: 53450,\n name: '乌兹别克斯坦'\n },\n {\n id: 53429,\n name: '特立尼达和多巴哥'\n },\n {\n id: 53427,\n name: '特克斯和凯科斯群岛'\n }],\n 'XYZ': [\n {\n id: 53452,\n name: '西班牙'\n },\n {\n id: 53454,\n name: '希腊'\n },\n {\n id: 53456,\n name: '新加坡'\n },\n {\n id: 53462,\n name: '新西兰'\n },\n {\n id: 53465,\n name: '匈牙利'\n },\n {\n id: 53468,\n name: '叙利亚'\n },\n {\n id: 53469,\n name: '牙买加'\n },\n {\n id: 53470,\n name: '亚美尼亚'\n },\n {\n id: 53471,\n name: '也门'\n },\n {\n id: 53472,\n name: '伊拉克'\n },\n {\n id: 53473,\n name: '伊朗'\n },\n {\n id: 53474,\n name: '以色列'\n },\n {\n id: 53475,\n name: '意大利'\n },\n {\n id: 53477,\n name: '印度'\n },\n {\n id: 53478,\n name: '印度尼西亚'\n },\n {\n id: 53480,\n name: '英国'\n },\n {\n id: 53485,\n name: '约旦'\n },\n {\n id: 53487,\n name: '越南'\n },\n {\n id: 53488,\n name: '赞比亚'\n },\n {\n id: 53489,\n name: '乍得'\n },\n {\n id: 53490,\n name: '智利'\n },\n {\n id: 53492,\n name: '中非'\n },\n {\n id: 53459,\n name: '新喀里多尼亚'\n },\n {\n id: 53483,\n name: '英属维尔京群岛'\n }]\n }\n };;\n return common_provinceCityMap;\n}", "function ksfData_pagelet(data)\n{\n\tvar res = new Array();\n\tres['body'] = data;\n\treturn res;\n}", "function initializeMap(list) {\n var result = {};\n for (var i = 0; i < list.length; i += 2) {\n // Call asFirstClass() here to prevent, for example, a toxic\n // function being used as the toString property of an object\n // literal.\n\tsetPub(result, list[$A$Num(i)], asFirstClass(list[$A$Num(i + 1)]));\n }\n return result;\n }", "function makePages(lines) {\n const result = [];\n let lineTop = 0, id = 0;\n for (const line of lines) {\n const lineHeight = line.reduce(function(maxHeight, pair) {\n return Math.max(maxHeight, pair[1]);\n }, 0);\n let offsetLeft = -BORDER_WIDTH;\n for (const [clientWidth, clientHeight] of line) {\n const offsetTop =\n lineTop + (lineHeight - clientHeight) / 2 - BORDER_WIDTH;\n const div = {\n offsetLeft, offsetTop, clientWidth, clientHeight,\n clientLeft: BORDER_WIDTH, clientTop: BORDER_WIDTH,\n };\n result.push({ id, div, });\n ++id;\n offsetLeft += clientWidth + SPACING;\n }\n lineTop += lineHeight + SPACING;\n }\n return result;\n }", "calculateBounds() {\n this.tagsSectionsMap = this.tags.map((tag) => {\n const rect = tag.getBoundingClientRect();\n const top = Math.floor(rect.top + window.scrollY);\n\n return {\n top,\n tag,\n };\n });\n }", "_createPages() {\n let self = this,\n size = Math.floor(self.get('queryCount') / self.get('pageSize')) + 1,\n range = Array(size),\n pagesArray = self.get('pagesArray');\n\n pagesArray.clear();\n let i = 1;\n for (i = 1; i <= range.length; i++) {\n var obj = Ember.Object.create({text: i, className: self.get('pageNumber') === i ? \"active\": \"\"});\n pagesArray.pushObject(obj);\n }\n }", "get inline() {\n return this.makeMap(\"abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var\")\n }", "function PropertyMap() { \n this.size = 0; \n this.properties = new Object();\n}", "function retrieveCopy(page) {\n var r = JSON.parse(GM_getValue('recipes','{}'));\n return r[page];\n}", "function on_pageLoad() \n{ \n getDataSets(); \n\t//debug(\"createMap()\"); \n\t//getUrlParas(); \n\tcreateMap(); \n}", "function mymap(el) {\n let mymap = {\n \"ratk\" : \"R\",\n \"wiki\" : \"W\",\n \"wikt\" : \"T\",\n \"bing\" : \"B\",\n \"syno\" : \"S\"\n }\n return mymap[el];\n}", "getBodySiteInfo(metagenomes, siteData) {\n var order = {};\n var color = {};\n\n for (var i = 0; i < metagenomes.length; i++) {\n var mg = metagenomes[i];\n var site = siteData.site[mg];\n if (!(site in order)) {\n order[site] = siteData.order[mg];\n color[site] = siteData.color[mg];\n }\n }\n\n return {\n order: order,\n color: color\n };\n }", "function returnstep(data,mapdict){\n\tvar step={\n\t\t'author': '',\n\t\t'year': '',\n\t\t'title':'',\n\t\t'country': '',\n\t\t'placeposition': '',\n\t\t'img_preview': '',\n\t\t'genre':'',\n\t\t'description': ''\n\t}\n\n\tfor (let [k, v] of Object.entries(mapdict)) {\n\t\tstep[k]=returnMappedValue(data, v)\n\t}\n\n\treturn step\n}", "function reduce(key,values) {\n var is_not_just_alias = false;\n var output = {};\n\n // first go through array and figure out a hash of common inlink counts, also checking here that this is not an alias entry\n var outlinks_of_inlinks_counts = {};\n var inlinks_count = 1; // because count self as linking to self\n for (var i = 0, il=values.length; i < il; ++i) {\n if (values[i] == '') { continue; }\n var v = JSON.parse(values[i]);\n if (v.about) {\n v = v.about;\n for (var k in v) {\n output[k] = v[k];\n }\n is_not_just_alias = true;\n } else if (v.inl) {\n inlinks_count += 1;\n var dv = Meguro.dictionary(v.inl);\n if (!dv) { Meguro.log(\"no outlinks for \"+v.inl); exit; }\n var outlinks_of_link = JSON.parse(dv); \n for (var j = 0, jl=outlinks_of_link.length; j < jl; ++j) {\n var n = outlinks_of_link[j]; //a page linked to from a page that also links to key\n if (n != key) {\n outlinks_of_inlinks_counts[n] = (outlinks_of_inlinks_counts.hasOwnProperty(n) ? outlinks_of_inlinks_counts[n]+1 : 1);\n }\n }\n }\n }\n if (!is_not_just_alias) {\n return;\n }\n // also look at things this page itself links to\n /*\n var outlinks = Meguro.dictionary(key);\n if (!outlinks) {\n Meguro.log(\"No outlinks for \"+key);\n exit;\n }\n outlinks = JSON.parse(outlinks);\n for (var i = 0, il=outlinks.length; i < il; ++i) {\n var n = outlinks[i];\n outlinks_of_inlinks_counts[n] = (outlinks_of_inlinks_counts.hasOwnProperty(n) ? outlinks_of_inlinks_counts[n]+1 : 1);\n }\n */\n\n // now go through again and actually consider \"about\" information, edges, etc.\n var output_edges = {};\nITER:\n for (var i = 0, il=values.length; i < il; ++i) {\n if (values[i] == '') { continue; }\n var v = JSON.parse(values[i]);\n if (v.alias) {\n if (!output.aliases) {\n output.aliases = [v.alias];\n } else {\n if (output.aliases.indexOf(v.alias) < 0) {\n output.aliases.push(v.alias);\n }\n }\n } else if (v.relation) {\n v = v.relation;\n /*\n if (v.distance < 0) {\n v.distance = Math.round(245*(1-outlinks_of_inlinks_counts[v.name]/inlinks_count)) + 10;\n }\n */\n var edge = null;\n var desc_ind = null;\n if (output_edges.hasOwnProperty(v.name)) {\n edge = output_edges[v.name];\n for (var j=0, jl=edge.descriptors.length; j < jl; ++j) {\n var d = edge.descriptors[j];\n if (d.relationship_category == v.relationship_category && d.relationship_subcategory == v.relationship_subcategory) {\n if (d.relationship_category == 'UNCLASSIFIED') { // in-text\n edge.descriptors[j].snippet = choose_snippet(d.snippet, v.snippet, v.name, key);\n continue ITER;\n }\n if (d.distance <= v.distance) {\n continue ITER; //already have descriptor worth keeping about this\n }\n desc_ind = j;\n }\n break;\n }\n if (desc_ind == null) { // no matching descriptor\n desc_ind = edge.descriptors.length;\n edge.descriptors.push({});\n }\n if (edge.distance > v.distance) {\n edge.distance = v.distance;\n }\n } else { // new edge\n edge = {\"descriptors\":[{}], \"distance\":v.distance};\n output_edges[v.name] = edge;\n desc_ind = 0;\n }\n for (var k in v) { \n if (k != 'name') {\n edge.descriptors[desc_ind][k] = v[k];\n }\n }\n } else if (!v.inl && !v.about) {\n Meguro.log(\"Why unknown in reduce: \"+v);\n exit;\n }\n }\n\n output.edges = output_edges;\n var now = new Date();\n output.last_updates = {};\n output.last_updates[source_name] = now.toGMTString();\n Meguro.save(key, JSON.stringify(output));\n}", "function getPages()\n{\n\t//add each page to view in app\n\t//Examples:\n\t//for adding a header:\n\t////\"header\":{\n\t////\t\"url\":\"pages/general/header.html\",\n\t////\t\"left\":\"<a></a>\",\n\t////\t\"center\":\"<a></a>\",\n\t////\t\"right\":\"<a></a>\"\n\t////}\n\t//for adding a panel:\n\t////\"leftPanel\":{\n\t////\t\"id\":\"nav-panel\",\n\t////\t\"url\":\"pages/general/left_panel.html\"\n\t////}\n\t//for adding dialogs, you can add more then one\n\t////\"popup\":[\n\t//// {\n\t//// \t \"url\":\"pages/general/popup.html\",\n\t//// \t \"id\":\"dialog\", \n\t//// \t \"header\":\"myHeader\", \n\t//// \t \"title\":\"Hi Dialog!\", \n\t//// \t \"content\":\"You have to insert your own content here\", \n\t//// \t \"okButton\":{\"action\":\"alert('ok button action');\",\"location\":\"#login\",\"text\":\"OK\"}, \n\t//// \t \"cancelButton\":{\"action\":\"alert('cancel button action');\",\"location\":\"\",\"text\":\"Cancel\"}\n\t//// }\n\t//// ]\n\treturn [\n\t\t\t{\"id\":\"profile\", \"url\":\"pages/profile/user.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='aUser'>User</h2>\",\n\t\t\t \t\"right\":\"<a tag='a' id='save' onclick='validateProfile(); setSGMMDataTransaction(); saveUserMedicalData();' class='ui-btn ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-icon-notext'></a>\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"profileNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"mechanic\", \"url\":\"pages/profile/mechanic.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='aMechanical'>Mecanico</h2>\",\n\t\t\t \t\"right\":\"<a tag='a' id='save' onclick='saveMechanicData();' class='ui-btn ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-icon-notext'></a>\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"mechanicNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"medical\", \"url\":\"pages/profile/medical.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='aMedical'>Medicos</h2>\",\n\t\t\t \t\"right\":\"<a tag='a' id='save' onclick='saveUserMedicalData();' class='ui-btn ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-icon-notext'></a>\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"medicalNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"policiesContent\", \"url\":\"pages/policy/policiesContent.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a tag='a' lng='vehicles' onClick='backPolicy();' class='ui-btn ui-corner-all ui-icon-arrow-l ui-btn-icon-left'>Vehicles</a>\",\n\t\t\t \t\"center\":\"<h2 lng='vehicle'>Vehicle</h2>\",\n\t\t\t \t\"right\":\"<a tag='a' id='save' onClick='validPolicy();' class='ui-btn ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-icon-notext'></a>\" \n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"showPolicies\", \"url\":\"pages/policy/showPolicies.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 lng='vehicles'>Vehicles</h2>\",\n\t\t\t \t\"right\":\"<a onClick='validNewPolicy();' tag='a' id='save' class='ui-btn ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-icon-notext'></a>\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"policiesNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"contactsContent\", \"url\":\"pages/contacts/contactsContent.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='#showContacts' tag='a' id='aContacts' class='ui-btn ui-corner-all ui-icon-arrow-l ui-btn-icon-left'>Contactos</a>\",\n\t\t\t \t\"center\":\"<h2 id='aContact'>Contacto</h2>\",\n\t\t\t \t\"right\":\"<a tag='a' id='save' onclick='validateContact();' class='ui-btn ui-corner-all ui-icon-check ui-btn-icon-right ui-btn-icon-notext'></a>\"\n\t\t\t }\n\t\t\t}, \n\t\t\t{\"id\":\"showContacts\", \"url\":\"pages/contacts/showContacts.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='aContacts'>Contactos</h2>\",\n\t\t\t \t\"right\":\"<a tag='a' id='save' onClick='validNewContact();' class='ui-btn ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-icon-notext'></a>\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"sContactsNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t}, \n\t\t\t{\"id\":\"showInsurance\", \"url\":\"pages/contacts/insurance.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='aInsurances'>Aseguradoras</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\t\t\t \n\t \t\"leftPanel\":{\n\t \t\t\"id\":\"sInsuranceNav\",\n\t \t\t\"url\":\"pages/general/left_panel.html\"\n\t \t}\n\t\t\t},\n\t\t\t{\"id\":\"initial\", \"url\":\"pages/initial.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 lng='report'>Reportar</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelInitial\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"sinDetails\", \"url\":\"pages/sinisters/details.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a lng='report' href='#' data-rel='back' class='ui-btn-left ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-arrow-l'>Reportar</a>\",\n\t\t\t \t\"center\":\"<h2 lng='pictures'>Fotos</h2>\",\n\t\t\t \t\"right\":\"<a href='#' onclick='enviarExtras();' class='ui-btn ui-corner-all ui-icon-check ui-btn-icon-left ui-btn-icon-notext'></a>\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"sinisterList\", \"url\":\"pages/sinisters/sinisterList.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='sinisters'>Siniestros</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelSinList\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"theftsList\", \"url\":\"pages/sinisters/theftsList.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 id='thefts'>Robos</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelTheftList\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"consultSinister\", \"url\":\"pages/sinisters/consultSinister.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='#' data-rel='back' class='ui-btn-left ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-arrow-l'>List</a>\",\n\t\t\t \t\"center\":\"<h2 lng='details'>Details</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"signup\", \"url\":\"pages/account/signup.html\"\n\t\t\t},\n\t\t\t{\"id\":\"login\", \"url\":\"pages/account/login.html\"\n\t\t\t},\n\t\t\t{\"id\":\"signin\", \"url\":\"pages/account/signin.html\"\n\t\t\t},\n\t\t\t{\"id\":\"features_a\", \"url\":\"pages/account/features_a.html\"\n\t\t\t},\n\t\t\t{\"id\":\"features_b\", \"url\":\"pages/account/features_b.html\"\n\t\t\t},\n\t\t\t{\"id\":\"features_c\", \"url\":\"pages/account/features_c.html\"\n\t\t\t},\n\t\t\t{\"id\":\"options\", \"url\":\"pages/options/options.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='{leftPanel}' tag='a' class='ui-btn ui-corner-all ui-icon-bars ui-btn-icon-left ui-btn-icon-notext'></a>\",\n\t\t\t \t\"center\":\"<h2 lng='options'>Options</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t },\n\t\t\t \"leftPanel\":{\n\t\t\t \t\"id\":\"panelTheftList\",\n\t\t\t \t\"url\":\"pages/general/left_panel.html\"\n\t\t\t }\n\t\t\t},\n\t\t\t{\"id\":\"about\", \"url\":\"pages/options/about.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='#' data-rel='back' class='ui-btn-left ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-arrow-l'>options</a>\",\n\t\t\t \t\"center\":\"<h2 lng='details'>About</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\t\t\t\n\t\t\t},\n\t\t\t{\"id\":\"map\", \"url\":\"pages/sinisters/map.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a href='#' data-rel='back' class='ui-btn-left ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-arrow-l'>report</a>\",\n\t\t\t \t\"center\":\"<h2 lng='details'>Location</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\t\t\t\n\t\t\t},\n\t\t\t{\"id\":\"report\", \"url\":\"pages/sinisters/report.html\", \n\t\t\t\t\"header\":{\n\t\t\t \t\"url\":\"pages/general/header.html\",\n\t\t\t \t\"left\":\"<a lng='report' href='#' data-rel='back' class='ui-btn-left ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-left ui-icon-arrow-l'>report</a>\",\n\t\t\t \t\"center\":\"<h2 id='titleReport' lng='details'>R.Type</h2>\",\n\t\t\t \t\"right\":\"\"\n\t\t\t }\t\t\t\n\t\t\t}\n\t ];\n\t\n}", "function setPages(){\n\t\t\t// Foreach all articles\n\t\t\t$.each(articles, function(key, value){\n\t\t\t\tvar totalCounted\t\t=\t0;\n\t\t\t\tvar elements\t\t\t=\tvalue[\"article\"];\n\t\t\t\tvar marge\t\t\t\t=\t0;\n\t\t\t\tarticleTitles[key]\t\t=\tvalue[\"title\"];\n\t\t\t\t\n\t\t\t\t// Current values\n\t\t\t\tvar current\t\t\t\t=\t[];\n\t\t\t\tcurrent[\"column\"] \t=\t1;\n\t\t\t\tcurrent[\"page\"]\t\t=\t0;\n\t\t\t\tcurrent[\"element\"]\t=\t-1;\n\t\t\t\t\n\t\t\t\t// Height of page\n\t\t\t\tvar HM\t=\t(getDocHeight()-120)%lineHeight;\n\t\t\t\tvar heightOfPage\t=\t(HM < lineHeight/2)\n\t\t\t\t\t?(getDocHeight()-120)-HM\n\t\t\t\t\t:(getDocHeight()-120)+(lineHeight-HM);\t\n\n\t\t\t\tvar done = false;\n\t\t\t\tvar marginTop = 0;\n\t\t\t\tvar lastItemHeight;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// If determined number of columns does not fit onto the page it will recalculate the number of columns\n\t\t\t\tif(value[\"data-cols\"]*(widthOfColumn+space+10) > getDocWidth())\n\t\t\t\t{\n\t\t\t\t\tvar cols\t=\tMath.floor(getDocWidth()/(widthOfColumn+space+10));\n\t\t\t\t\tif(cols == 1){\n\t\t\t\t\t\t$(\".sideMenu\").hide();\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tvar cols\t=\tvalue[\"data-cols\"];\n\t\t\t\t}\n\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\t// This makes the first page of an article\n\t\t\t\t\tif(current[\"page\"] == 0){\n\t\t\t\t\t\tcurrent[\"page\"]++;\n\t\t\t\t\t\t$(\".viewer\", thisElement).append('<div class=\"page page-'+current[\"page\"]+' theme-'+value[\"data-theme\"]+' first\" id=\"article_'+key+'\" data-pageNumber=\"'+current[\"page\"]+'\" data-articleNumber=\"'+key+'\" style=\"width: '+(widthOfColumn+space)+'px; height: '+heightOfPage+'px\"><div class=\"column column_'+current[\"column\"]+'\" style=\"height: '+heightOfPage+'px\"></div></div>');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If needed it makes a new page\t\t\t\t\t\n\t\t\t\t\tif(marge == 0){\n\t\t\t\t\t\tcurrent[\"element\"]++;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmarginTop = lastItemHeight-marge;\n\t\t\t\t\t\tmarge = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Removes headers if its shown half on a page (#1)\n\t\t\t\t\tvar remove = false;\n\t\t\t\t\tif((heightOfPage-totalCounted) < (5*lineHeight) && heightOfPage-totalCounted > 0 && heightOfPage > 7*lineHeight){\n\t\t\t\t\t\tif(typeof(elements[current[\"element\"]]) != 'undefined'){\n\t\t\t\t\t\t\tif(elements[current[\"element\"]][\"node\"] == \"H2\"){\n\t\t\t\t\t\t\t\ttotalCounted += heightOfPage-totalCounted;\n\t\t\t\t\t\t\t\tremove = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\t// Check if all elements are done\n\t\t\t\t\tif(typeof(elements[current[\"element\"]]) == 'undefined'){\n\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\t$(\".page\").hide();\n\t\t\t\t\t\t$(\".first#article_0\").show();\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key).addClass(\"last\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(elements[current[\"element\"]][\"node\"] != \"FIGURE\"){\n\t\t\t\t\t\t// Place the content into the current pages/columns\n\t\t\t\t\t\tvar iden = key+\"_\"+current[\"page\"]+\"_\"+current[\"column\"];\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key+\" .column_\"+current[\"column\"]).append('<'+elements[current[\"element\"]][\"node\"]+' id=\"'+iden+'\">'+elements[current[\"element\"]][\"value\"]+'</'+elements[current[\"element\"]][\"node\"]+'>');\n\t\t\t\t\t\ttotalCounted += $(\"#\"+iden).outerHeight(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//figure\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key+\" .column_\"+current[\"column\"]).append('<'+elements[current[\"element\"]][\"node\"]+'>'+elements[current[\"element\"]][\"value\"]+'</'+elements[current[\"element\"]][\"node\"]+'>');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Checks if item has to be removed (#1)\n\t\t\t\t\tif(remove){\n\t\t\t\t\t\t$(\"#\"+iden).hide();\n\t\t\t\t\t\tremove = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Use the margin on a element if there is any\n\t\t\t\t\tif(marginTop != 0){\n\t\t\t\t\t\tif(marginTop < 0){\n\t\t\t\t\t\t\tmarginTop = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(current[\"column\"] == (value[\"data-cols\"]-1)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttotalCounted -= marginTop;\n\t\t\t\t\t\t$(\"#\"+iden).css(\"marginTop\", -marginTop+\"px\");\n\t\t\t\t\t\tmarginTop = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Gets the height of the last placed element And removes the id attribute\n\t\t\t\t\tlastItemHeight\t=\t$(\"#\"+iden).outerHeight();\n\t\t\t\t\t$(\"#\"+iden).removeAttr(\"id\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Makes a new column\n\t\t\t\t\tif(totalCounted > heightOfPage){\n\t\t\t\t\t\tif(current[\"column\"] >= cols){\n\t\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key+\" .column_\"+current[\"column\"]).addClass(\"last_column\");\n\t\t\t\t\t\t\tcurrent[\"page\"]++;\n\t\t\t\t\t\t\tcurrent[\"column\"]\t\t=\t1;\n\t\t\t\t\t\t\t$(\".viewer\", thisElement).append('<div class=\"page page-'+current[\"page\"]+' theme-'+value[\"data-theme\"]+'\" id=\"article_'+key+'\" data-pageNumber=\"'+current[\"page\"]+'\" data-articleNumber=\"'+key+'\" style=\"width: '+(widthOfColumn+space)+'px; height: '+heightOfPage+'px\"></div>');\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tcurrent[\"column\"]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key).append('<div class=\"column column_'+current[\"column\"]+'\" style=\"height: '+heightOfPage+'px\"></div>');\n\t\t\t\t\t\t$(\".page-\"+current[\"page\"]+\"#article_\"+key).width((widthOfColumn+space)*current[\"column\"]);\n\t\t\t\t\t\tmarge = (totalCounted-heightOfPage);\n\t\t\t\t\t\ttotalCounted = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\twhile(done != true);\n\t\t\t\t\n\t\t\t});\n\t\t\tafterLoading();\n\t\t}", "function generateNewTreeMap(contentState,decorator){return contentState.getBlockMap().map(function(block){return BlockTree.generate(block,decorator);}).toOrderedMap();}", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function pancakes(pageId) {\n\n console.log(\"loading pancakes...\" + pageId);\n const sectionClasses = {\n padding_top: {\n xxl: \"padding-xxl-top\",\n xl: \"padding-xl-top\",\n l: \"padding-l-top\",\n m: \"padding-m-top\",\n s: \"padding-s-top\",\n xs: \"padding-xs-top\",\n xxs: \"padding-xxs-top\"\n },\n padding_bottom: {\n xxl: \"padding-xxl-bottom\",\n xl: \"padding-xl-bottom\",\n l: \"padding-l-bottom\",\n m: \"padding-m-bottom\",\n s: \"padding-s-bottom\",\n xs: \"padding-xs-bottom\",\n xxs: \"padding-xxs-bottom\"\n },\n margin_top: {\n xxl: \"margin-xxl-top\",\n xl: \"margin-xl-top\",\n l: \"margin-l-top\",\n m: \"margin-m-top\",\n s: \"margin-s-top\",\n xs: \"margin-xs-top\",\n xxs: \"margin-xxs-top\"\n },\n margin_bottom: {\n xxl: \"margin-xxl-bottom\",\n xl: \"margin-xl-bottom\",\n l: \"margin-l-bottom\",\n m: \"margin-m-bottom\",\n s: \"margin-s-bottom\",\n xs: \"margin-xs-bottom\",\n xxs: \"margin-xxs-bottom\"\n },\n margin_bottom: {\n xxl: \"margin-xxl-bottom\",\n xl: \"margin-xl-bottom\",\n l: \"margin-l-bottom\",\n m: \"margin-m-bottom\",\n s: \"margin-s-bottom\",\n xs: \"margin-xs-bottom\",\n xxs: \"margin-xxs-bottom\"\n },\n h_content: {\n start: \"h_c_start\",\n center: \"h_c_center\",\n end: \"h_c_end\",\n space_between: \"h_c_space-between\",\n space_around: \"h_c_space-around\"\n },\n v_content: {\n start: \"v_c_start\",\n center: \"v_c_center\",\n end: \"v_c_end\",\n space_between: \"v_c_space-between\",\n space_around: \"v_c_space-around\"\n },\n maxwidth: {\n xxl: \"maxwidth-xxl\",\n xl: \"maxwidth-xl\",\n l: \"maxwidth-l\",\n m: \"maxwidth-m\",\n s: \"maxwidth-s\",\n xs: \"maxwidth-xs\",\n xxs: \"maxwidth-xxs\"\n }\n }\n const rowClasses = {\n container: {\n fullwidth: \"Full\",\n container: \"container\",\n container_large: \"Large\"\n },\n h_content: {\n start: \"h_c_start\",\n center: \"h_c_center\",\n end: \"h_c_end\",\n space_between: \"h_c_space-between\",\n space_around: \"h_c_space-around\"\n },\n v_content: {\n start: \"v_c_start\",\n center: \"v_c_center\",\n end: \"v_c_end\",\n space_between: \"v_c_space-between\",\n space_around: \"v_c_space-around\"\n }\n }\n const columnClasses = {\n size: {\n \"12\": \"col-12\",\n \"11\": \"col-11\",\n \"10\": \"col-10\",\n \"9\": \"col-9\",\n \"8\": \"col-8\",\n \"7\": \"col-7\",\n \"6\": \"col-6\",\n \"5\": \"col-5\",\n \"4\": \"col-4\",\n \"3\": \"col-3\",\n \"2\": \"col-2\",\n \"1\": \"col-1\"\n },\n h_content: {\n start: \"h_c_start\",\n center: \"h_c_center\",\n end: \"h_c_end\",\n space_between: \"h_c_space-between\",\n space_around: \"h_c_space-around\"\n },\n v_content: {\n start: \"v_c_start\",\n center: \"v_c_center\",\n end: \"v_c_end\",\n space_between: \"v_c_space-between\",\n space_around: \"v_c_space-around\"\n }\n }\n const elementClasses = {\n h_content: {\n start: \"h_c_start\",\n center: \"h_c_center\",\n end: \"h_c_end\",\n space_between: \"h_c_space-between\",\n space_around: \"h_c_space-around\"\n },\n v_content: {\n start: \"v_c_start\",\n center: \"v_c_center\",\n end: \"v_c_end\",\n space_between: \"v_c_space-between\",\n space_around: \"v_c_space-around\"\n }\n }\n \n const exportYML = document.querySelector('.pb-export__yml');\n const mediaUploadButton = document.querySelector(\".imageUpload\");\n // Pages menu\n const pagesDrawer = document.querySelector(\".pb-pagesContainer\");\n const pagesBtn = document.querySelector(\".pb-pageNavigator\");\n const mediaBox = document.querySelector(\".mediaUploads\");\n \n let savedData = `${pageId}.savedData`;\n let saveChangesButton = document.querySelector(\".pb-quickBtns .pb-saveChanges\");\n let revertChangesButton = document.querySelector(\".pb-quickBtns .pb-revertChanges\");\n let clearChangesButton = document.querySelector(\".pb-quickBtns .pb-clearChanges\");\n let debugBarMenuTitle = document.querySelector(\".debugging-bar .pb-dynamicArea .debugBarMenuTitle\");\n let debugBarSubMenu = document.querySelector(\".debugging-bar .pb-dynamicArea > ul\");\n //https://codepen.io/nakome/pen/qRWqBe -- copy elements\n const makeEditable = () => {\n let editElements = document.querySelectorAll('[data-edit]');\n \n console.log(\"makeeditable\");\n //console.log(editElements);\n let toArr = Array.prototype.slice.call(editElements);\n Array.prototype.forEach.call(toArr, (obj, index) => {\n \n obj.addEventListener('dblclick', (e) => {\n console.log(\"edit this element\");\n console.log(obj);\n if (obj.getAttribute('data-element') == \"element-image\") {\n console.log(\"it's an image\");\n let imageSrc = obj.getAttribute('src');\n let imageSrcset = obj.getAttribute('srcset');\n html = `<input type=\"text\" value=\"${imageSrc}\"></input>\n <input id=\"submit\" type=\"submit\"></input>`;\n createDynamicContent(html);\n\n _(\".pb-populateValues input[type='submit']\").addEventListener(\"click\", (e) => {\n console.log(\"submit\");\n imageSrc = _(\".pb-populateValues input[type='text']\").value;\n obj.setAttribute('src', imageSrc);\n obj.setAttribute('srcset', '');\n obj.setAttribute('data-srcset', '');\n });\n } else if (obj.getAttribute('data-element') == \"element-title\") {\n let titleTag = obj.tagName;\n let titleText = obj.innerText;\n html = `\n <input type=\"text\" data-attr-text=\"title-text\" value=\"${titleText}\"></input>\n <input type=\"text\" data-attr-tag=\"title-tag\" value=\"${titleTag}\"></input>\n <input id=\"submit\" type=\"submit\"></input>`;\n createDynamicContent(html);\n _(\".pb-populateValues input[type='submit']\").addEventListener(\"click\", (e) => {\n console.log(\"submit\");\n titleText = _(\".pb-populateValues input[data-attr-text='title-text']\").value;\n titleTag = _(\".pb-populateValues input[data-attr-tag='title-tag']\").value;\n let newTitle = document.createElement(titleTag);\n newTitle.setAttribute(\"id\", \"seven\");\n let oldAttrs = obj.attributes;\n\n Array.from(oldAttrs).forEach(function (item, key) {\n console.log(\"oldattrs\");\n console.log(item);\n console.log(key);\n newTitle.setAttribute(item.name, item.value);\n });\n console.log(newTitle);\n console.log(obj.attributes);\n newTitle.innerText = titleText;\n\n //var a = ​document.getElementsByTagName('a');\n // var el, attrs;\n // for(var i=0,l=obj.length;i<l;i++) {\n // el = document.createElement('div');\n // attrs = obj.attributes;\n // for(var j=0,k=attrs.length;j<k;j++) {\n // el.setAttribute(attrs[j].name, attrs[j].value);\n // }\n // el.innerHTML = obj.innerHTML;\n // obj.parentNode.replaceChild(el, obj);\n // }\n console.log(obj.parentNode.replaceChild(newTitle, obj));\n sanitizeItems();\n // // move children\n // while(obj.firstChild) newTitle.appendChild(obj.firstChild);\n\n // // copy attributes\n // for( var i=0, a=obj.attributes, l=a.length; i<l; i++) {\n // newTitle.attributes[a[i].name] = a[i].value;\n // }\n // obj.parentNode.replaceChild(newTitle, obj);\n // // obj.tagName(titleTag);\n // // obj.innerText(titleText);\n });\n } else {\n //e.preventDefault();\n //obj.setAttribute('contenteditable', '');\n //obj.focus();\n html = obj;\n createDynamicDialogue(obj, html);\n }\n });\n // obj.addEventListener('blur', (e) => {\n // e.preventDefault();\n // obj.removeAttribute('contenteditable');\n // });\n \n });\n };\n \n\n \n function createDynamicDialogue(obj, html) {\n console.log(html);\n let dDialogue = _(\".pb-dynamicDialogue\");\n dDialogue.classList.add(\"active\");\n let objNew = dDialogue.querySelector(\"textarea\").value = html.innerHTML;\n dDialogue.querySelector(\"input[type='submit']\").addEventListener(\"click\", (e) => {\n dDialogue.classList.remove(\"active\");\n objNew = dDialogue.querySelector(\"textarea\").value; \n obj.innerHTML = objNew;\n });\n\n }\n // Detect any changes and prompt the user to save\n function onChange() {\n console.log(\"something changed...\");\n \n }\n \n saveChangesButton.addEventListener(\"click\", () => {\n db.setItem(savedData, mainP.innerHTML);\n });\n revertChangesButton.addEventListener(\"click\", () => {\n revertChanges();\n });\n clearChangesButton.addEventListener(\"click\", () => {\n undo();\n });\n \n /**\n * save in local storage\n */\n function revertChanges() {\n if (typeof db.getItem(savedData) !== 'undefined' && db.getItem(savedData) !== 'undefined' && db.getItem(savedData) !== 'null' && db.getItem(savedData) != null && db.getItem(savedData) !== \"\") {\n mainP.innerHTML = db.getItem(savedData);\n //makeEditable();\n sanitizeItems();\n };\n }\n\n function undo() {\n if (typeof db.getItem(savedData) !== 'undefined' && db.getItem(savedData) !== 'undefined' && db.getItem(savedData) !== 'null' && db.getItem(savedData) != null) {\n db.setItem(savedData, \"\");\n \n // Delete dbg menus first\n sanitizeItems();\n };\n }\n\n function initOverlays() {\n \n }\n\n // INSPECT MODE\n /////////////////////////////////////////////////////////////\n //if ( body.classList.contains(\"inspect-mode\") ) {\n \n mediaUploadButton.addEventListener(\"click\", () => {\n mediaBox.classList.toggle(\"active\");\n mediaUploadButton.classList.toggle(\"active\");\n });\n\n // Organize these variables...\n let sections = document.querySelectorAll('section');\n\n pagesBtn.addEventListener(\"click\", () => {\n pagesDrawer.classList.toggle(\"active\");\n });\n\n sanitizeItems(); // adds overlays to each item. Needs to be fired after any item is created\n\n function sanitizeItems() {\n \n console.log(\"sanitizeItems...\");\n //Clean out some generated elements before regenerating them\n document.querySelectorAll(\".dbg-each-menu\").forEach(e => e.parentNode.removeChild(e));\n formSections(sectionClasses);\n makeEditable();\n }//end sanitizeItems\n\n // Create hover menus\n function createEditMenu(selectedItem, selectedTitle, selectedType, index) {\n \n let debugWidget = `<span id=\"section-dbg-menu\" class=\"dbg-each-menu\">\n \n <div class=\"dbg-main-btns\">\n \n <i class=\"fas fa-arrows-alt\"></i>\n <span class=\"this-selected-name\">${selectedTitle}</span>\n <a class=\"prepend-me part-edit\" title=\"Open the Page Editor for this Part\" href=\"https://app.forestry.io/sites/site_id/#/pages/content-{{ $.Scratch.Get \"part_preview_link\" }}\"><i class=\"fas fa-external-link-alt\"></i></a>\n <i class=\"fas fa-pen-square\"></i>\n </div>\n </span><!--dbg-each-menu-->`;\n \n selectedItem.innerHTML = selectedItem.innerHTML + debugWidget;\n \n selectedItem.addEventListener(\"mouseenter\", (e) => {\n //selectedItem.querySelector(\"#section-dbg-menu\").classList.add(\"active\");\n selectedItem.classList.toggle(\"hovered\");\n //menu.style.display = \"block\";\n });\n selectedItem.addEventListener(\"mouseleave\", (e) => {\n selectedItem.classList.toggle(\"hovered\");\n //menu.style.display = \"block\";\n }); \n\n //Debug editor handlers\n let debugMenuEditBtn = selectedItem.querySelector(\"#section-dbg-menu .fa-pen-square\");\n debugMenuEditBtn.addEventListener(\"click\", (e) => {\n //Get each debug menu attribute\n //Compare each debug menu variable to existing classes\n //if equal, mark active\n document.querySelector(\".debugging-bar .pb-dynamicArea\").classList.toggle(\"active\");\n defineClasses(selectedItem, selectedTitle, selectedType, sectionClasses);\n });\n }//end createEditMenu\n\nfunction defineClasses(selectedItem, selectedTitle, selectedType, sectionClasses, index) {\n \n let selectedClasses = \"\";\n let html = \"\";\n if ( selectedType == \"section\" ) {\n selectedClasses = sectionClasses;\n } else if ( selectedType == \"row\" ) {\n selectedClasses = rowClasses;\n } else if ( selectedType == \"column\" ) {\n selectedClasses = columnClasses;\n }\n \n debugBarSubMenu.innerHTML = \"\";\n debugBarMenuTitle.innerText = \"\";\n \n debugBarMenuTitle.innerText = selectedType;\n \n for (const par in selectedClasses) {\n // `prop` contains the name of each property, i.e. `'code'` or `'items'`\n // consequently, `data[prop]` refers to the value of each property, i.e.\n // either `42` or the array\n debugBarSubMenu.innerHTML += `<li data=\"${par}\"><strong>${par}</strong> </li>`;\n \n for (const pat in selectedClasses[par]) {\n //console.log(\"pat: \" + selectedClasses[par][pat]);\n if ( selectedItem.classList.contains(selectedClasses[par][pat]) ) {\n debugBarSubMenu.innerHTML += `<li data-parent=\"${par}\" data=\"${selectedClasses[par][pat]}\" class=\"active\">${pat}</li>`;\n } else {\n debugBarSubMenu.innerHTML += `<li data-parent=\"${par}\" data=\"${selectedClasses[par][pat]}\">${pat}</li>`;\n }\n }\n }\n \n let dataVals = debugBarSubMenu.querySelectorAll(\"li[data]\");\n \n //console.log(selectedClasses);\n \n dataVals.forEach(function (dataVal, index) {\n \n let dataValAttr = dataVal.getAttribute(\"data\");\n let pParent = dataVal.getAttribute(\"data-parent\");\n //console.log(\"parent:\" + pParent);\n\n dataVal.addEventListener(\"click\", (e) => {\n let pVal = e.currentTarget.getAttribute(\"data\");\n \n let thisDataParent = e.currentTarget.getAttribute(\"data-parent\");\n\n for (const pat in selectedClasses[pParent]) {\n //\n if ( selectedClasses[pParent][pat] === pVal ) {\n //console.log(\"true\");\n \n } else {\n //console.log(\"false\");\n selectedItem.classList.remove(selectedClasses[pParent][pat]);\n }\n }\n \n //remove previously selected class\n selectedItem.classList.remove(pVal);\n \n //add newly selected class to section\n selectedItem.classList.add(pVal);\n\n let dataVs = debugBarSubMenu.querySelectorAll(\"li[data]\");\n let thDt = debugBarSubMenu.querySelectorAll(\"li[data-parent*='\" + pParent + \"']\");\n\n thDt.forEach(function (thDts, index) {\n if ( thDts.classList.contains(\"active\") ) {\n thDts.classList.remove(\"active\");\n }\n dataVal.classList.add(\"active\");\n });\n //in the menu, show which class is active\n dataVal.classList.add(\"active\");\n });\n });\n //html = debugBarSubMenu.innerHTML;\n //createDynamicContent(html);\n if ( !_(\".debugging-bar .pb-dynamicArea\").classList.contains(\"active\") ) {\n _(\".debugging-bar .pb-dynamicArea\").classList.add(\"active\");\n }\n}//end defineClasses\n\n//do stuff for each section\nfunction formSections(sectionClasses) {\n \n console.log(\"formSections...\");\n\n //console.log(sectionClasses);\n\n sections.forEach(function (section, index) {\n\n // Create the edit button for a section\n let selectedTitle = section.getAttribute('template');\n let selectedItem = section;\n let selectedType = section.getAttribute('selected-type');\n\n createEditMenu(selectedItem, selectedTitle, selectedType, sectionClasses);\n\n //defineClasses(selectedItem, selectedTitle);\n section.setAttribute('data-highlightable','1');\n\n //dragIt(section);\n\n // redefine rows to current scope\n let rows = section.querySelectorAll('#row');\n\n //Sticky menu on click or hover\n // check event bubbling on this\n let dbgSelectedTitle = document.querySelector(\".debugging-bar .pb-dynamicArea > li\");\n\n section.addEventListener(\"click\", (e) => {\n let activeSection = document.querySelector('section.sticky');\n\n // if(activeSection){\n // activeSection.classList.remove('sticky');\n // }\n // //e.target or e.currentTarget\n // section.classList.add(\"sticky\");\n \n dbgSelectedTitle.innerHTML = `<li>${selectedTitle}</li>`;\n\n });\n \n rows.forEach(function (row, index) {\n\n //console.log(row);\n // Create the edit button for a row\n let selectedTitle = row.getAttribute('template');\n let selectedItem = row;\n let selectedType = row.getAttribute('selected-type');\n\n createEditMenu(selectedItem, selectedTitle, selectedType);\n\n let columns = row.querySelectorAll('div[size]');\n row.setAttribute('data-highlightable','1');\n\n columns.forEach(function (column, index) {\n \n //https://codepen.io/nakome/pen/qRWqBe -- editor/copy elements\n //https://codepen.io/ariona/pen/vgeoQx navbar builder\n //https://codepen.io/nakome/pen/ZLPYpy editor \n\n // Create the edit button for a row\n let selectedTitle = column.getAttribute('size');\n let selectedItem = column;\n let selectedType = column.getAttribute('selected-type');\n\n createEditMenu(selectedItem, selectedTitle, selectedType);\n\n column.setAttribute('data-highlightable','1');\n\n column.addEventListener(\"mouseenter\", () => {\n //event.target.style.outline = \"1px solid green\";\n column.classList.add(\"active\");\n\n // Get classname based on prefix\n let colName = column.className.split( ' ').some(c => /col-.*/.test(c));\n\n if ( column.className.split(' ').some(c => /col-.*/.test(c)) ) {\n //console.log(\"has class\");\n } else {\n //console.log(\"doesnt\");\n }\n });\n column.addEventListener(\"mouseleave\", () => {\n column.style = \"\";\n });\n let elements = column.querySelectorAll('.elements-wrapper');\n elements.forEach(function (element, index) {\n element.setAttribute('data-highlightable','1');\n\n //Split the formation function from the function that iterates through and makes things clickable\n // element.addEventListener('dblclick', function (e) {\n // element.classList.toggle('large');\n // });\n });\n\n });\n }); \n });\n //refresh drag and drop so that it gets the new containers\n dragDrop();\n}\n\n let exportBox = document.querySelector(\".exportYMLbox\");\n \n exportYML.addEventListener(\"click\", () => {\n console.log(\"start export\");\n createExportYml();\n exportYML.classList.toggle(\"active\");\n exportBox.classList.toggle(\"active\");\n });\n ////////////////////////Drag and drop functionality////////////////\n /**Gets the tpl.\n * @param {<type>} element The element\n * @return {string} The tpl.\n */\n const getTpl = (element) => {\n return tpl[element];\n };\n debugBarMenuTitle.addEventListener(\"click\", () => {\n debugBarMenuTitle.classList.toggle(\"active\");\n //console.log(\"debugbarmenutitle\");\n });\n\n \n if ( _(\".pb-dynamicArea\").classList.contains(\"active\") ) {\n dragulaCreate();\n } else {\n // Initialize the copy functionality on click\n _(\".debugging-bar .pb-addItems\").addEventListener(\"click\", () => {\n //_(\".debugging-bar .pb-dragSourceList\").classList.toggle(\"active\");\n html = _(\".pb-dragSourceList\").innerHTML;\n //after forming classes, start draggable\n createDynamicContent(html);\n dragDrop();\n //dragulaCreate();\n //sanitizeItems();\n //console.log(\"debugbarmenutitle\");\n });\n }\n function dragDrop() {\n console.log(\"dragDrop...\");\n\n //Reorder sections with drag and drop using a handle\n dragula([_(\"main\")], {\n moves: function (el, container, handle) {\n return handle.classList.contains('fa-arrows-alt');\n },\n invalid(el, handle) {\n // If the selected element className is column, \n // dont allow the row to be dragged. This will allow \n // the column to be dragged separate from the row. \n return (el.classList.contains(\"row\") || el.classList.contains(\"column\") );\n }\n }).on('out', function (el) {\n el.classList.remove(\"in-transit\");\n AOS.refresh();\n });\n\n // add existing sections as an array\n let containers = [].slice.call(document.querySelectorAll(\"section\"));\n \n //Reorder rows with drag and drop using a handle\n dragula(containers, {\n moves: function (el, container, handle) {\n return handle.classList.contains('fa-arrows-alt');\n },\n invalid(el, handle) {\n // If the selected element className is column, \n // dont allow the row to be dragged. This will allow \n // the column to be dragged separate from the row. \n return (el.classList.contains(\"column\") || el.classList.contains(\"element\") );\n }\n }).on('drag', function (el) {\n el.classList.add(\"in-transit\");\n }).on('out', function (el) {\n el.classList.remove(\"in-transit\");\n AOS.refresh();\n });\n\n containers = [].slice.call(document.querySelectorAll(\".row\"));\n\n //Reorder rows with drag and drop using a handle\n dragula(containers, {\n moves: function (el, container, handle) {\n return handle.classList.contains('fa-arrows-alt');\n },\n direction: 'horizontal',\n invalid(el, handle) {\n // If the selected element className is column, \n // dont allow the row to be dragged. This will allow \n // the column to be dragged separate from the row. \n return (el.classList.contains(\"element\") );\n }\n }).on('out', function (el) {\n el.classList.remove(\"in-transit\");\n AOS.refresh();\n });;\n\n\n //////////////////////////////////////// CREATE ITEMS ON DROP ////////////////////////////////////////////////////\n \n \n //console.log(debugBarElementMenu);\n\n\n //function dragulaCreate () {\n \n let dragMenu = document.querySelector(\".debugging-bar .pb-dynamicArea .pb-populateValues ul.elementsDrag\");\n\n //Create elements, set the dragMenu as source\n containers = Array.prototype.slice.call(document.querySelectorAll(\"section .row .column .elements-wrapper\")).concat(dragMenu);\n \n //console.log(containers);\n let elementDrake = dragula({\n containers,\n direction: 'vertical',\n revertOnSpill: true, // spilling will put the element back where it was dragged from, if this is true\n removeOnSpill: false, // spilling will `.remove` the element, if this is true\n ignoreInputTextSelection: true,\n copy(el, source) {\n return source === dragMenu;\n },\n accepts(el, target, source) {\n // if (el.getAttribute('data-title') == \"column\") {\n // console.log(\"a column is selected\");\n // return target !== debugBarElementMenu;\n // }\n if (target.classList.contains(\"elements-wrapper\")) {\n return target !== dragMenu;\n }\n \n },\n });\n\n elementDrake.on('drop', function (el, container) {\n if (container.classList.contains(\"elements-wrapper\") && el.getAttribute('data-tpl') ) {\n //el.innerHTML = getTpl(el.getAttribute('data-tpl'));\n //el.className = 'drop-element';\n //makeEditable();\n //sanitizeItems(); //regen the overlays\n //sanitizeItems();\n itemCreate(el)\n }\n if (container == dragMenu) {\n el.innerHTML = el.getAttribute('data-title');\n }\n //sanitizeItems();\n \n });\n\n\n let rowDragMenu = document.querySelector(\".debugging-bar .pb-dynamicArea .pb-populateValues ul.rowsDrag\");\n //let findElements = rowDragMenu.querySelectorAll(\"[data-tpl]\");\n containers = Array.prototype.slice.call(document.querySelectorAll(\".row\")).concat(rowDragMenu);\n \n\n let rowDrake = dragula({\n containers,\n direction: 'horizontal',\n revertOnSpill: true, // spilling will put the element back where it was dragged from, if this is true\n removeOnSpill: false, // spilling will `.remove` the element, if this is true\n ignoreInputTextSelection: true,\n moves(el, source) {\n console.log(\"el\");\n console.log(el);\n return source === rowDragMenu;\n },\n copy(el, source) {\n return source === rowDragMenu;\n },\n accepts(el, target, source) {\n // if (el.getAttribute('data-title') == \"column\") {\n // console.log(\"a column is selected\");\n // return target !== debugBarElementMenu;\n // }\n if (target.classList.contains(\"row\")) {\n return target !== rowDragMenu;\n }\n },\n invalid(el, handle) {\n // If the selected element className is column, \n // dont allow the row to be dragged. This will allow \n // the column to be dragged separate from the row. \n return (el.classList.contains(\"elements-wrapper\") );\n }\n });\n rowDrake.on('drop', function (el, container) {\n if (container.classList.contains(\"row\") && el.getAttribute('data-tpl') ) {\n //console.log(\"dragging...row level containers\");\n //console.log(containers);\n //console.log(\"dropped1\");\n //console.log(el);\n\n //el.innerHTML = getTpl(el.getAttribute('data-tpl'));\n //console.log(\"el\");\n\n itemCreate(el);\n \n //formSections(sectionClasses);\n // if (el.querySelector(\".element-content\")) {\n // console.log(\"dropped2\");\n // console.log(el.querySelector(\".element-content\"));\n // }\n \n //el.className = 'drop-element';\n //makeEditable();\n }\n if (container == rowDragMenu) {\n el.innerHTML = el.getAttribute('data-title');\n }\n });\n function itemCreate(el) {\n let elReplace = el.querySelector(\".element-content\").innerHTML;\n elReplace = document.createRange().createContextualFragment(elReplace);\n console.log(elReplace);\n \n console.log(el.parentNode.querySelector(\"li[data-tpl]\"));\n el.parentNode.replaceChild(elReplace, el);\n\n //formSections(sectionClasses);\n sanitizeItems();\n }\n \n //}\n }\n \n\n ////////////////////////////// Generate the content in the sidebar ---/////////////////////////////////////////////\n function createDynamicContent(html, index) {\n console.log(\"createDynamicContent in the sidebar...\");\n \n _(\".pb-dynamicArea .pb-populateValues\").innerHTML = html;\n if (html) {\n _(\".debugging-bar .pb-dynamicArea\").classList.add(\"active\");\n } else {\n _(\".debugging-bar .pb-dynamicArea\").classList.remove(\"active\");\n }\n //_(\".debugging-bar .pb-dynamicArea\").classList.toggle(\"active\");\n //console.log(_(\".pb-dynamicArea .pb-populateValues\").innerHTML);\n \n }//end createDynamicContent\n\n ////////////////////////////// YAML --- FRONT MATTER GENERATOR ---/////////////////////////////////////////////\n function createExportYml(index) {\n \n let exportBox = document.querySelector(\".exportYMLbox\");\n let sections = document.querySelectorAll('section');\n let formattedParams = \"stacks:\\n\";\n let indentParams = \"\";\n \n sections.forEach(function (section, index) {\n \n let selectedTitle = section.getAttribute('template');\n formattedParams += `- template: ${selectedTitle}\\n`;\n //formattedParams += ` background_color: \"${selectedType}\"\\n`;\n indentParams = \" \";\n \n selectedClasses = sectionClasses;\n \n for (const par in selectedClasses) {\n for (const pat in selectedClasses[par]) {\n //console.log(\"pat: \" + selectedClasses[par][pat]);\n if ( section.classList.contains(selectedClasses[par][pat]) ) {\n formattedParams += `${indentParams}${par}: ${pat}\\n`;\n } \n }\n }\n\n // ROWS\n let rows = section.querySelectorAll('#row');\n formattedParams += `${indentParams}rows:\\n`;\n \n rows.forEach(function (row, index) {\n \n selectedTitle = row.getAttribute('template');\n \n formattedParams += ` - template: include-row\\n`;\n indentParams = \" \";\n // formattedParams += `${indentParams}h_content: end\\n`;\n // formattedParams += `${indentParams}v_content: center\\n`;\n \n selectedClasses = rowClasses;\n \n for (const par in selectedClasses) {\n \n for (const pat in selectedClasses[par]) {\n //console.log(\"pat: \" + selectedClasses[par][pat]);\n if ( row.classList.contains(selectedClasses[par][pat]) ) {\n formattedParams += `${indentParams}${par}: ${pat}\\n`;\n } \n }\n }\n \n // COLUMNS\n let columns = row.querySelectorAll(\".column\");\n \n formattedParams += `${indentParams}cols:\\n`;\n \n columns.forEach(function (column, index) {\n \n selectedTitle = column.getAttribute('template');\n \n indentParams = \" \";\n formattedParams += `${indentParams}- template: block-column-builder\\n`;\n indentParams = \" \";\n // formattedParams += `${indentParams}size: '4'\\n`;\n \n selectedClasses = columnClasses;\n \n for (const par in selectedClasses) {\n \n for (const pat in selectedClasses[par]) {\n //console.log(\"pat: \" + selectedClasses[par][pat]);\n if ( column.classList.contains(selectedClasses[par][pat]) ) {\n formattedParams += `${indentParams}${par}: ${pat}\\n`;\n } \n }\n }\n \n // ELEMENTS\n const elements = column.querySelectorAll('.elements-wrapper');\n \n formattedParams += `${indentParams}elements:\\n`;\n \n elements.forEach(function (element, index) {\n formattedParams += `${indentParams}- template: element-title\\n`;\n indentParams = \" \";\n // formattedParams += `${indentParams}tag: h1\\n`;\n // formattedParams += `${indentParams}title: Totally New Module\\n`;\n selectedClasses = elementClasses;\n \n for (const par in selectedClasses) {\n for (const pat in selectedClasses[par]) {\n //console.log(\"pat: \" + selectedClasses[par][pat]);\n if ( element.classList.contains(selectedClasses[par][pat]) ) {\n formattedParams += `${indentParams}${par}: ${pat}\\n`;\n } \n }\n }\n });\n });\n });\n });\n console.log(formattedParams);\n exportBox.value = formattedParams;\n }//createExportBox\n\n //} // End if body class contains inspect mode\n\n}//End function Pancakes", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }", "function makePage(number, text, isActive) {\n return {\n number: number,\n text: text,\n active: isActive\n };\n }" ]
[ "0.6034592", "0.594794", "0.59019357", "0.58593", "0.57251716", "0.56497014", "0.5644141", "0.5531095", "0.5525818", "0.5457853", "0.54391676", "0.54372543", "0.5435536", "0.54354775", "0.52721846", "0.52569765", "0.5239252", "0.52341205", "0.5191993", "0.51610845", "0.5155778", "0.5148974", "0.51401484", "0.51147306", "0.51107967", "0.50976825", "0.5054704", "0.5053089", "0.5049939", "0.5047553", "0.5045107", "0.5041574", "0.5037708", "0.50317353", "0.5023854", "0.5014096", "0.50134826", "0.5005276", "0.5005213", "0.50052017", "0.49986005", "0.49948952", "0.49920225", "0.49890578", "0.49877542", "0.49863702", "0.49601066", "0.49531794", "0.49452618", "0.49452227", "0.49452022", "0.49413136", "0.49410257", "0.49380225", "0.4927366", "0.49144018", "0.49144018", "0.49144018", "0.49137464", "0.49126968", "0.4908239", "0.4907782", "0.49053153", "0.49045983", "0.4900671", "0.4897393", "0.48966515", "0.48924997", "0.48864657", "0.48782966", "0.48770452", "0.4876203", "0.4871548", "0.48706356", "0.48701668", "0.48614138", "0.48604757", "0.4855616", "0.4852356", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.48416176", "0.4837546", "0.48369372", "0.48369372", "0.48369372", "0.48369372", "0.48369372", "0.48369372", "0.48369372", "0.48369372", "0.48369372", "0.48369372" ]
0.0
-1
Map Object one per map.
function GameMap() { this.data = []; // Each entry in the array will be an Object with .terrain, .features, and .npcs this.enterx = 65; this.entery = 70; this.name = ""; this.features = new Collection(); // list of all features on the map this.npcs = new Collection(); // list of all NPCs on the map this.pcs = new Collection(); // list of all PCs on the map - usually one, but support exists for parties // these three will be maintained concurrently with collections on individual tiles/acres this.desc = ""; this.longdesc = ""; this.music = ""; this.exitTo = {}; this.exitTo.mapname = "darkunknown"; this.exitTo.x = 65; this.exitTo.y = 70; this.wrap = "None"; this.returnmap = "darkunknown"; this.returnx = 27; this.returny = 43; this.returninfused = 0; this.linkedMaps = []; this.seeBelow = ""; this.lightLevel = "bright"; this.alwaysRemember = 0; this.scale = 1; this.backgroundimage = ''; this.underground = 0; this.undergroundDesc = ""; this.noiseSources = {}; this.savename = ''; this.exitScript = ""; this.exitTestScript = ""; this.enterScript = ""; this.enterTestScript = ""; this.pathGrid = {}; this.network = []; this.opacity = .6; this.lightsList = {}; this.soundList = {}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ObjectWithMap(){\r\n\t\r\n\tthis.map = (func) => {\r\n\t\t\r\n\t\tfor (let i in this){\r\n\t\t\tif(i != 'map') this[i] = func(this[i]);\r\n\t\t}\r\n\t\t\r\n\t}\r\n}", "function ObjectMap ()\n\t{\n\t\t\n\t\t/**\n\t\t * Key value pairs\n\t\t * \n\t\t * @type {array of objects}\n\t\t */\n\t\tthis._keyValuePairs = [];\n\t}", "function Map() {\n this.container = new Object();\n}", "function initializeMap(list) {\n var result = {};\n for (var i = 0; i < list.length; i += 2) {\n // Call asFirstClass() here to prevent, for example, a toxic\n // function being used as the toString property of an object\n // literal.\n\tsetPub(result, list[$A$Num(i)], asFirstClass(list[$A$Num(i + 1)]));\n }\n return result;\n }", "function map(obj) {\n\n\n obj.forEach(function(el) {\n for (key in el) {\n var k = mapObj[key]\n if (k) {\n\n el[k] = el[key];\n\n }\n }\n\n })\n\n }", "function Map() {\n this.members = {};\n this.length = 0;\n }", "function Map2(data) {\n this.map = new Map;\n this.size = 0;\n if (data) {\n for (var i = 0; i < data.length; i++) {\n var d = data[i];\n this.set(d[0], d[1], d[2]);\n }\n }\n}", "function Map() {\n\t\n}", "function Map() {\n\t\n}", "function Map() {}", "function Map() {\n\t\tthis._values = {};\n\t}", "function Map() {\n\t\t this.items = Object.create(null);\n\t\t this.length = 0;\n\t\t this.next = 0;\n\t\t }", "function create() {\n var ret = Object.create(fastMap);\n ret.data = createMapObject();\n ret.size = 0;\n return ret;\n }", "function Map() {\n\t this.items = Object.create(null);\n\t this.length = 0;\n\t this.next = 0;\n\t }", "newMap(){\n\t\tthis.idIterator = 1;\n\n\t\tthis.currentFeature = new Feature(this.assignId());\n\n\t\tthis.geo = {};\n\t\tthis.geo.type = \"FeatureCollection\";\n\t\tthis.geo.features = [];\n\t}", "function Map (parent) {\n this.nextChunkID=0;\n this.chunks = [];\n this.fillLevel = 0;\n this.width = 1;\n this.height = 1;\n this.parent = parent;\n }", "function setMapOnAll(map) {\n for (var i = 0; i < mapObjects.length; i++) {\n mapObjects[i].setMap(map);\n }\n}", "function Map() {\r\n this.keys = [];\r\n this.values = [];\r\n}", "createMap() {\n // first create the map with an empty buffer\n const map = new Map({\n src: \"tiles\",\n tileWidth: TILE_WIDTH,\n tileHeight: TILE_WIDTH,\n width: TILE_WIDTH * MAP_COLS,\n height: TILE_HEIGHT * MAP_ROWS,\n buffer: new ArrayBuffer(MAP_COLS * MAP_ROWS * 2)\n });\n\n // finally add the tileset\n map.addTileSet(this.generateTileSet());\n\n return map;\n }", "function makeMap() {\r\n\tif (map == \"\") {\r\n\t\tgenNewMap();\r\n\t}\r\n\r\n\tconstructMap();\r\n}", "function PropertyMap() { \n this.size = 0; \n this.properties = new Object();\n}", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function makeMap(objects, expectedKey){\n var myMap = new Map();\n\n // objects.keys().forEach(function(key){\n // myMap.set(objects[key][expectedKey], objects[key]);\n // })\n\n for (var key in objects){\n myMap.set(objects[key][expectedKey], objects[key]);\n }\n\n return myMap;\n}", "function createMap() {\n return Object.create(null)\n}", "function generateMap() {\n for (let x = 0; x < mapSize; x++) {\n map.push([]);\n for (let y = 0; y < mapSize; y++) {\n map[x].push(new Tile(x, y));\n }\n }\n\n generateOutline();\n}", "static from(schema, obj, ctx) {\n const { keepUndefined, replacer } = ctx;\n const map = new this(schema);\n const add = (key, value) => {\n if (typeof replacer === 'function')\n value = replacer.call(obj, key, value);\n else if (Array.isArray(replacer) && !replacer.includes(key))\n return;\n if (value !== undefined || keepUndefined)\n map.items.push(Pair.createPair(key, value, ctx));\n };\n if (obj instanceof Map) {\n for (const [key, value] of obj)\n add(key, value);\n }\n else if (obj && typeof obj === 'object') {\n for (const key of Object.keys(obj))\n add(key, obj[key]);\n }\n if (typeof schema.sortMapEntries === 'function') {\n map.items.sort(schema.sortMapEntries);\n }\n return map;\n }", "function Map() {\n if (this instanceof Map) {\n this._keys = OrderedSet.create();\n this._values = Object.create(null);\n this.size = 0;\n } else {\n missingNew('Map');\n }\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache(){this.__data__={};}", "function MapCache(){this.__data__={};}", "function addObject(obj) {\n obj.mapX = Math.max(0, Math.min(objectMapMaxIndex, Math.floor(obj.x / Constants.MAP_OBJ_GRID_SIZE)));\n obj.mapY = Math.max(0, Math.min(objectMapMaxIndex, Math.floor(obj.y / Constants.MAP_OBJ_GRID_SIZE)));\n objectMap[obj.mapX][obj.mapY][0]++;\n obj.mapPos = objectMap[obj.mapX][obj.mapY][0];\n objectMap[obj.mapX][obj.mapY].push(obj);\n\n// console.log(\"add obj:\" + obj.id + \" \" + obj.mapPos + \" \" + objectMap[obj.mapX][obj.mapY][obj.mapPos]);\n}", "function MapCache() {\n\t this.__data__ = {};\n\t}", "function MapCache() {\n\t this.__data__ = {};\n\t}", "function objectToMap(o) {\r\n if (o !== undefined && o !== null) {\r\n return new Map(objectEntries(o));\r\n }\r\n return new Map();\r\n}", "function createMap( entries ){\n\tvar map = new Map();\n\n\tfor (var i = 0;i < entries.length;i++)\n\t\tmap.set(entries[i][0], entries[i][1]);\n\n\treturn map;\n}", "function Spriteset_Map() {\n this.initialize.apply(this, arguments);\n}", "function SimpleMap() {\n\t\tthis._keys = {};\n\t\tthis._values = [];\n\t\tthis.length = 0;\n\t}", "function h$Map() {\n this._pairsKeys = [];\n this._pairsValues = [];\n this._keys = [];\n this._size = 0;\n}", "function h$Map() {\n this._pairsKeys = [];\n this._pairsValues = [];\n this._keys = [];\n this._size = 0;\n}", "function h$Map() {\n this._pairsKeys = [];\n this._pairsValues = [];\n this._keys = [];\n this._size = 0;\n}", "function h$Map() {\n this._pairsKeys = [];\n this._pairsValues = [];\n this._keys = [];\n this._size = 0;\n}", "buildMap() {\n let map = this.make.tilemap({ key: this.key + 'map' });\n let tileset = map.addTilesetImage('tileset', this.key + 'tiles');\n this.mapData = {\n map: map,\n tileset: tileset,\n groundLayer: map.createLayer('ground', tileset),\n wallLayer: map.createLayer('walls', tileset),\n objectsLayer: map.createLayer('objetos', tileset),\n }\n\n this.mapData.wallLayer.setCollisionByProperty({ collides: true });\n this.mapData.objectsLayer.setCollisionByProperty({ collides: true });\n }", "function RawMap() {\n this.width = 0;\n this.height = 0;\n\n this.tiles = [];\n this.heights = [];\n this.objects = [];\n}", "mapGenerate() {\n for (let i = 0; i < this.ySize; i++) {\n this.map[i] = [];\n for (let j = 0; j < this.xSize; j++) {\n let mapValue = this.empty;\n this.map[i].push(mapValue);\n }\n }\n }", "static create(...args) {\n\n\t\tconst container = {};\n\n\t\t// Create a new map for each argument\n\t\targs.forEach((arg) => {\n\t\t\tcontainer[arg] = new Map();\n\t\t});\n\n\t\treturn container;\n\t}", "function MapCache() {\n this.__data__ = {};\n}", "function initMap() {\n map = new ExploreMap();\n}", "Map() {\n var res = new Element();\n return super.Map(res, ...arguments);\n }", "function objectMap(object, mapFn) {\n return Object.keys(object).reduce((result, key) => {\n result[key] = mapFn(object[key]);\n return result;\n }, {});\n }", "function createIdMap(obj) {\n return new Map(generatePairs(obj));\n}", "function MapIterator() {}", "function Map() {\n if (this instanceof this.constructor) {\n this._keys = OrderedSet.create();\n this._keys._silenceRemoveDeprecation = true;\n this._values = new _emberMetalEmpty_object.default();\n this.size = 0;\n } else {\n missingNew('OrderedSet');\n }\n }", "function Map() {\n if (this instanceof this.constructor) {\n this._keys = OrderedSet.create();\n this._keys._silenceRemoveDeprecation = true;\n this._values = new _emberMetalEmpty_object.default();\n this.size = 0;\n } else {\n missingNew('OrderedSet');\n }\n }", "function WorldMap() {\r\n\tMap.call(this);\r\n}", "function Object$prototype$map(f) {\n var result = {};\n forEachKey(this, function(k) { result[k] = f(this[k]); });\n return result;\n }" ]
[ "0.69574267", "0.65020543", "0.6464171", "0.64509696", "0.64199173", "0.629329", "0.62646365", "0.6237649", "0.6237649", "0.6197769", "0.61852235", "0.61793655", "0.6131195", "0.6104524", "0.6101688", "0.6035231", "0.6014405", "0.6007991", "0.5989648", "0.5976659", "0.5935087", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58975226", "0.58962494", "0.58854216", "0.5883171", "0.584607", "0.58429223", "0.5841807", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583817", "0.583264", "0.5829227", "0.5829227", "0.58094496", "0.58073825", "0.58073825", "0.5785855", "0.57846075", "0.57816744", "0.57570356", "0.5755781", "0.5755781", "0.5755781", "0.5755781", "0.5745689", "0.57054704", "0.5701519", "0.5699907", "0.568981", "0.5687898", "0.5684189", "0.56755924", "0.56342787", "0.56307024", "0.56194717", "0.56194717", "0.56116587", "0.56100994" ]
0.0
-1
Turns Degree into Wind Direction
function getDir(num) { const val = parseInt(num / 45 + 0.5) const dir = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'] return dir[val % dir.length] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function windDirection(degree) {\n if (degree <= 25 || degree >= 335 ) {\n return \"N\";\n } else if (degree > 25 && degree <= 65) {\n return \"NE\";\n } else if (degree > 65 && degree <= 115) {\n return \"E\";\n } else if (degree > 115 && degree <= 155) {\n return \"SE\";\n } else if (degree > 155 && degree <= 205) {\n return \"S\";\n } else if (degree > 205 && degree <= 245) {\n return \"SW\";\n } else if (degree > 245 && degree <= 295) {\n return \"W\";\n } else {\n return \"NW\";\n } // end if-else\n} // end windDirection()", "function calcWindDir(deg) {\n // var deg = weatherApiResponse.wind.deg;\n if (deg <= 22.5 || deg >= 337.501) {\n windDirection = \"N\";\n } else if (deg >= 22.501 && deg <= 67.5) {\n windDirection = \"NE\";\n } else if (deg >= 67.501 && deg <= 112.5) {\n windDirection = \"E\";\n } else if (deg >= 112.501 && deg <= 157.5) {\n windDirection = \"SE\";\n } else if (deg >= 157.501 && deg <= 202.5) {\n windDirection = \"S\";\n } else if (deg >= 202.501 && deg <= 247.5) {\n windDirection = \"SW\";\n } else if (deg >= 247.501 && deg <= 292.5) {\n windDirection = \"W\";\n } else {\n windDirection = \"NW\";\n };\n }", "function windDirection(degrees) {\n var directions = {\n 1: { direction: \"N\", values: { min: 348, max: 360 } },\n 2: { direction: \"N\", values: { min: 0, max: 11 } },\n 3: { direction: \"N/NE\", values: { min: 11, max: 33 } },\n 4: { direction: \"NE\", values: { min: 33, max: 56 } },\n 5: { direction: \"E/NE\", values: { min: 56, max: 78 } },\n 6: { direction: \"E\", values: { min: 78, max: 101 } },\n 7: { direction: \"E/SE\", values: { min: 101, max: 123 } },\n 8: { direction: \"SE\", values: { min: 123, max: 146 } },\n 9: { direction: \"S/SE\", values: { min: 146, max: 168 } },\n 10: { direction: \"S\", values: { min: 168, max: 191 } },\n 11: { direction: \"S/SW\", values: { min: 191, max: 213 } },\n 12: { direction: \"SW\", values: { min: 213, max: 236 } },\n 13: { direction: \"W/SW\", values: { min: 236, max: 258 } },\n 14: { direction: \"W\", values: { min: 258, max: 281 } },\n 15: { direction: \"W/NW\", values: { min: 281, max: 303 } },\n 16: { direction: \"NW\", values: { min: 303, max: 326 } },\n 17: { direction: \"N/NW\", values: { min: 326, max: 348 } }\n };\n for (var i = 1; i < 18; i++) {\n if (degrees >= directions[i].values.min && degrees <= directions[i].values.max) {\n return directions[i].direction;\n }\n }\n}", "function getWindDirection(deg){\n var arr = [\"N\",\"NNE\",\"NE\",\"ENE\",\"E\",\"ESE\", \"SE\", \"SSE\",\"S\",\"SSW\",\"SW\",\"WSW\",\"W\",\"WNW\",\"NW\",\"NNW\"];\n var val = Math.floor((deg/22.5)+.5);\n return arr[(val % 16)];\n }", "decodeWindDir(degrees) {\n if (degrees > 350 && degrees <= 10) {\n return 'North'+' ('+ degrees +')';\n } else if (degrees > 10 && degrees <= 30) {\n return 'North-northeast'+' ('+ degrees +')';\n } else if (degrees > 35 && degrees <= 55) {\n return 'North-east'+' ('+ degrees +')';\n } else if (degrees > 55 && degrees <= 80) {\n return 'Northeast - east'+' ('+ degrees +')';\n } else if (degrees > 80 && degrees <= 100) {\n return 'East'+' ('+ degrees +')';\n } else if (degrees > 100 && degrees <= 125) {\n return 'East-southeast'+' ('+ degrees +')';\n } else if (degrees > 125 && degrees <= 145) {\n return 'South-east'+' ('+ degrees +')';\n } else if (degrees > 130 && degrees <= 150) {\n return 'South-southeast'+' ('+ degrees +')';\n } else if (degrees > 170 && degrees <= 190) {\n return 'South'+' ('+ degrees +')';\n } else if (degrees > 190 && degrees <= 215) {\n return 'South-southwest'+' ('+ degrees +')';\n } else if (degrees > 215 && degrees <= 235) {\n return 'South-west'+' ('+ degrees +')';\n } else if (degrees > 235 && degrees <= 230) {\n return 'West-southwest'+' ('+ degrees +')';\n } else if (degrees > 260 && degrees <= 280) {\n return 'West'+' ('+ degrees +')';\n } else if (degrees > 280 && degrees <= 305) {\n return 'West-northwest'+' ('+ degrees +')';\n } else if (degrees > 305 && degrees <= 325) {\n return 'North-west'+' ('+ degrees +')';\n } else if (degrees > 325 && degrees <= 350) {\n return 'North-northwest'+' ('+ degrees +')';\n }\n }", "function convertWindDirection(compassDirection) {\n var directions = [\"N\", \"NE\", \"E\", \"SE\", \"S\", \"SW\", \"W\", \"NW\"];\n\n let degreesToName = Math.round(((compassDirection %= 360) < 0 ? compassDirection + 360 : compassDirection) / 45) % 8;\n let windName = directions[degreesToName];\n\n return windName;\n}", "function toWindDir(windAngle) {\n let idx = Math.floor(windAngle / 22.5 + 0.5);\n let directions = [\n \"N\",\n \"NNE\",\n \"NE\",\n \"ENE\",\n \"E\",\n \"ESE\",\n \"SE\",\n \"SSE\",\n \"S\",\n \"SSW\",\n \"SW\",\n \"WSW\",\n \"W\",\n \"WNW\",\n \"NW\",\n \"NNW\",\n ];\n return directions[idx % 16];\n}", "function evaluateWindDirection(direction) {\n var deg = parseFloat(direction);\n switch(true){\n case (deg<22.5): return \"Nord\";\n case (22.5<deg<67.5): return \"Nord Ost\";\n case (67.5<deg<112.5): return \"Ost\";\n case (112.5<deg<157.5): return \"Süd Ost\";\n case (157.5<deg<202.5): return \"Süd\";\n case (202.5<deg<247.5): return \"Süd West\";\n case (247.5<deg<292.5): return \"West\";\n case (292.5<deg<337.5): return \"Nord West\";\n case (337.5<deg): return \"Nord\";\n }\n}", "function getDirection(degrees) {\n if (degrees < 22.5 || degrees >= 337.5 ) {\n return 'N';\n } else if (degrees < 67.5) {\n return 'NE';\n } else if (degrees < 112.5) {\n return 'E';\n } else if (degrees < 157.5) {\n return 'SE';\n } else if (degrees < 202.5) {\n return 'S';\n } else if (degrees < 247.5) {\n return 'SW';\n } else if (degrees < 292.5) {\n return 'W';\n } else {\n return 'NW';\n }\n}", "function setWindDirection(d) {\n\n var wd = [];\n\n var westEast = d.uw;\n var southNorth = d.vw;\n\n var absWE = Math.abs(westEast);\n var absSN = Math.abs(southNorth);\n var windForce = Math.sqrt(Math.pow(absWE, 2) + Math.pow(absSN, 2));\n\n if (southNorth > 0) {\n wd.push(SOUTH);\n }\n else if (southNorth < 0) {\n wd.push(NORTH);\n }\n\n if (westEast > 0) {\n wd.push(WEST);\n }\n else if (westEast < 0) {\n wd.push(EAST);\n }\n\n if (wd.length === 0) {\n wd.push(NO_WIND);\n }\n\n d.windDirection = wd.join(\"-\");\n\n if (windForce <= 3) {\n d.windSpeed = SPEED1;\n }\n else if (windForce > 3 && windForce <= 6) {\n d.windSpeed = SPEED2;\n }\n else if (windForce > 6 && windForce <= 9) {\n d.windSpeed = SPEED3;\n }\n else if (windForce > 9 && windForce <= 12) {\n d.windSpeed = SPEED4;\n }\n else if (windForce > 12) {\n d.windSpeed = SPEED5;\n }\n\n if (d.Hs < 1) {\n d.waveHeight = \"0-1\";\n }\n else if (1 < d.Hs && d.Hs < 3.5) {\n d.waveHeight = \"1-3.5\";\n }\n else { d.waveHeight = \"High\"; }\n\n /* \n else if (1.5 < d.Hs && d.Hs < 3) {\n d.waveHeight = \"1-2\";\n }\n else if (3 < d.Hs && d.Hs < 4.5) {\n d.waveHeight = \"3-4.5\";\n }\n else if(4.5 < d.Hs && d.Hs < 6) {\n d.waveHeight = \"4.5-6\";\n }\n else if(6 < d.Hs && d.Hs < 7.5) {\n d.waveHeight = \"6-7.5\";\n }\n else { d.waveHeight = \"High\";}\n\n */\n\n if (d.Tp < 3) {\n d.peakPeriod = \"0-3\";\n }\n else if (3 < d.Tp && d.Tp < 6) {\n d.peakPeriod = \"3-6\";\n }\n else if (6 < d.Tp && d.Tp < 9) {\n d.peakPeriod = \"6-9\";\n }\n else if (9 < d.Tp && d.Tp < 12) {\n d.peakPeriod = \"9-12\";\n }\n else { d.peakPeriod = \"Long\"; }\n\n}", "function parseWind(windDeg) {\n if (windDeg < 22.5) {return \"N\"}\n if (22.5 <= windDeg < 67.5) {return \"NE\"}\n if (67.5 <= windDeg < 112.5) {return \"E\"}\n if (112.5 <= windDeg < 157.5) {return \"SE\"}\n if (157.5 <= windDeg < 202.5) {return \"S\"}\n if (202.5 <= windDeg < 247.5) {return \"SW\"}\n if (247.5 <= windDeg < 292.5) {return \"W\"}\n if (292.5 <= windDeg < 337.5) {return \"NW\"}\n if (337.5 <= windDeg) {return \"N\"}\n}", "function formatDirection(degree){\r\n\t\t\t\t\t\t\tvar direction = '';\r\n\t\t\t\t\t\t\tif(degree >= 337.5 && degree <= 22.5){\r\n\t\t\t\t\t\t\t\tdirection = 'Northerly';\r\n\t\t\t\t\t\t\t}else if(degree > 22.5 && degree < 67.5){\r\n\t\t\t\t\t\t\t\tdirection = 'North Easterly';\r\n\t\t\t\t\t\t\t}else if(degree >= 67.5 && degree <= 112.5){\r\n\t\t\t\t\t\t\t\tdirection = 'Easterly';\r\n\t\t\t\t\t\t\t}else if(degree > 112.5 && degree < 157.5){\r\n\t\t\t\t\t\t\t\tdirection = 'South Easterly';\r\n\t\t\t\t\t\t\t}else if(degree >= 157.5 && degree <= 202.5){\r\n\t\t\t\t\t\t\t\tdirection = 'Southerly';\r\n\t\t\t\t\t\t\t}else if(degree > 202.5 && degree < 247.5){\r\n\t\t\t\t\t\t\t\tdirection = 'South Westerly';\r\n\t\t\t\t\t\t\t}else if(degree >= 247.5 && degree <= 292.5){\r\n\t\t\t\t\t\t\t\tdirection = 'Westerly';\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\tdirection = 'North Westerly';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn direction;\r\n\t\t\t\t\t\t}", "function direction(degree) {\n $._direction(degree);\n}", "function getCardinalDirection (deg){\n if (deg >= 000 && deg <= 020){\n return 'North';\n }\n else if (deg >= 021 && deg <= 070){\n return 'NorthEast';\n }\n else if (deg >= 071 && deg <= 115){\n return 'East';\n }\n else if (deg >= 116 && deg <= 150){\n return 'SouthEast';\n }\n else if (deg >= 151 && deg <= 200){\n return 'South';\n }\n else if (deg >= 201 && deg <= 250){\n return 'SouthWest';\n }\n else if (deg >= 251 && deg <= 290){\n return 'West';\n }\n else if (deg >= 291 && deg <= 340){\n return 'NorthWest';\n }\n else if (deg >= 341 && deg <= 360){\n return 'North';\n }\n}", "function convertDegToDirection(deg) {\n const directions = [\n \"N\",\n \"NNE\",\n \"NE\",\n \"ENE\",\n \"E\",\n \"ESE\",\n \"SE\",\n \"SSE\",\n \"S\",\n \"SSW\",\n \"SW\",\n \"WSW\",\n \"W\",\n \"WNW\",\n \"NW\",\n \"NNW\",\n \"N\",\n ];\n return directions[Math.round((deg % 360) / 22.5)];\n}", "GetDirection()\n {\n //AddStatus(\"Entering GetDirection\");\n let x=this.x;\n if(x==0)x=.00000000001;\n let dir=(Math.atan(this.y/x))/this.toRadian;\n //AddStatus(dir);\n if (x<0)dir+=180;\n if (x>0 && this.y<0)dir+=360;\n //AddStatus(dir);\n return dir;\n }", "function degree(d,r) {\nvar Degreex = d * 3.14 / 180;\nconsole.log (Degreex); \n}", "function direction(data) {\n var direct;\n if (data >= 348.75 && data <= 360) {\n direct = \"North\";\n }\n if (data >= 0 && data <= 11.25){\n direct = \"North\";\n }\n if (data >= 11.25 && data <= 33.75){\n direct = \"North by North East\";\n };\n if (data >= 33.75 && data <= 56.25){\n direct = \"North East\";\n };\n if (data >= 56.25 && data <= 78.75){\n direct = \"East by North East\";\n };\n if (data >= 78.75 && data <= 101.25){\n direct = \"East\";\n };\n if (data >= 101.25 && data <= 123.75){\n direct = \"East by South East\";\n };\n if (data >= 123.75 && data <= 146.25){\n direct = \"South East\";\n };\n if (data >= 146.25 && data <= 168.75){\n direct = \"South by South East\";\n };\n if (data >= 168.75 && data <= 191.25){\n direct = \"South\";\n };\n if (data >= 191.25 && data <= 213.75){\n direct = \"South by South West\";\n };\n if (data >= 213.75 && data <= 236.25){\n direct = \"South West\";\n };\n if (data >= 236.25 && data <= 258.75){\n direct = \"West by South West\";\n };\n if (data >= 258.75 && data <= 281.25){\n direct = \"West\";\n };\n if (data >= 281.25 && data <= 303.75){\n direct = \"West by North West\";\n };\n if (data >= 303.75 && data <= 326.25){\n direct = \"North West\";\n };\n if (data >= 326.25 && data <= 348.75 ){\n direct = \"North by North West\";\n };\n return direct;\n}", "static createWindDirectionGauge() {\r\n var gauge = new RadialGauge(this.createWindDirectionOptions('windDirectionCanvas'));\r\n LivewindStore.storeGauge('windDirection', gauge);\r\n gauge.draw();\r\n }", "function calculateDegreesToCompass(degrees) {\n let val = Math.floor((degrees / 22.5) + 0.5);\n const WIND_DIRECTIONS = [\"N\", \"NNE\", \"NE\", \"ENE\", \"E\", \"ESE\", \"SE\", \"SSE\", \"S\", \"SSW\", \"SW\", \"WSW\", \"W\", \"WNW\", \"NW\", \"NNW\"];\n return WIND_DIRECTIONS[(val % 16)];\n}", "function getCompassDir(direction) {\n\n var compass = '';\n\n switch (true) {\n case direction <= 30:\n compass = 'North';\n break;\n case direction <= 60:\n compass = 'North East';\n break;\n case direction <= 120:\n beaufort = 'East';\n break;\n case direction <= 150:\n compass = 'South East';\n break;\n case direction <= 210:\n compass = 'South';\n break;\n case direction <= 240:\n beaufort = 'South West';\n break;\n case direction <= 300:\n compass = 'West';\n break;\n case direction <= 330:\n compass = 'North West';\n break;\n case direction > 330:\n compass = 'North';\n break;\n }\n return compass;\n}", "getWindDir() {\n var rndWind = vec3.create();\n var change = Math.random() * 0.1\n if(Math.random() > 0.6)\n rndWind[0] += change;\n else\n rndWind[2] += change;\n\n vec3.add(rndWind, rndWind, this.wind);\n return rndWind;\n }", "function dir2slope(direction) {\n\n console.log(`Direction is ${direction}`);\n switch ( direction ) {\n case \"Flat\":\n return(0);\n case \"FortyFiveUp\":\n return(45);\n case \"FortyFiveDown\":\n return(-45);\n case \"SingleUp\":\n return(90);\n case \"SingleDown\":\n return(-90);\n case \"DoubleUp\":\n return(90);\n case \"DoubleDown\":\n return(-90);\n default: // undefined\n return(180);\n }\n}", "function getWindDirectionCompas(weatherData) {\n if (weatherData) {\n var windDirection = consolidated_weather[0].wind_direction_compass;\n // console.log('Wind direction',windDirection)\n return windDirection;\n } else {\n return (\n <>\n <LoopIcon className={classes.rotateIcon} />\n <style>\n {`\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { \n transform: rotate(${windDirection}deg); \n animation-fill-mode: forwards; \n }\n }\n `}\n </style>\n </>\n );\n }\n }", "function windDial(direction) {\n // Get the wind dial container\n const dial = document.getElementById(\"dial\");\n // Determine the dial class\n switch (direction) {\n case \"North\":\n case \"N\":\n dial.setAttribute(\"class\", \"n\"); //\"n\" is the CSS rule selector\n break;\n case \"NE\":\n case \"NNE\":\n case \"ENE\":\n dial.setAttribute(\"class\", \"ne\");\n break;\n case \"NW\":\n case \"NNW\":\n case \"WNW\":\n dial.setAttribute(\"class\", \"nw\");\n break;\n case \"South\":\n case \"S\":\n dial.setAttribute(\"class\", \"s\");\n break;\n case \"SE\":\n case \"SSE\":\n case \"ESE\":\n dial.setAttribute(\"class\", \"se\");\n break;\n case \"SW\":\n case \"SSW\":\n case \"WSW\":\n dial.setAttribute(\"class\", \"sw\");\n break;\n case \"East\":\n case \"E\":\n dial.setAttribute(\"class\", \"e\");\n break;\n case \"West\":\n case \"W\":\n dial.setAttribute(\"class\", \"w\");\n break;\n }\n}", "function degreesToDirection(degrees) {\n const COMPASS_DIRECTIONS = [\n \"N\",\n \"NNE\",\n \"NE\",\n \"ENE\",\n \"E\", \n \"ESE\", \n \"SE\", \n \"SSE\",\n \"S\", \n \"SSW\", \n \"SW\", \n \"WSW\", \n \"W\", \n \"WNW\", \n \"NW\", \n \"NNW\"\n ];\n \n const compassDirectionsCount = COMPASS_DIRECTIONS.length;\n const compassDirectionArc = 360 / compassDirectionsCount;\n return COMPASS_DIRECTIONS[Math.round(degrees / compassDirectionArc) % compassDirectionsCount];\n}", "get directionToWaypoint()\r\n {\r\n let waypointBearing = this._navPath.waypointBearing(this._position, this._waypointIdx);\r\n let direction = waypointBearing - this._heading; // Returns a number in the interval (-360, +360).\r\n \r\n // Handle out of bounds directions\r\n if (direction <= -180)\r\n {\r\n direction += 360;\r\n }\r\n else if (direction > 180)\r\n {\r\n direction -= 360;\r\n }\r\n \r\n return direction\r\n }", "function applyWindToSpreadTheMoisture() {\n\n }", "function dtr(degrees){\r\n\t\treturn degrees * (Math.PI/180);\r\n\t}", "turn(deg){\r\n if (deg < 0) deg = 360 + deg;\r\n this.point(this.direction + deg);\r\n }", "get worldSpaceViewDirection$() {\n\t\treturn (this._c.wd || (this._c.wd = SpiderGL.Math.Vec3.normalize$(SpiderGL.Math.Vec3.neg$(SpiderGL.Math.Vec4.to3(SpiderGL.Math.Mat4.row(this.viewMatrixInverse$, 2))))));\n\t}", "function direction(value) {\n if (value >= 0 && value < 22.5 || value >=337.5) {\n return 0;\n } else if (value >= 22.5 && value < 67.5) {\n return 45;\n } else if (value >= 67.5 && value < 112.5) {\n return 90;\n } else if (value >= 112.5 && value < 157.5) {\n return 135;\n } else if (value >= 157.5 && value < 202.5) {\n return 180;\n } else if (value >= 202.5 && value < 247.5) {\n return 225;\n } else if (value >= 247.5 && value <292.5) {\n return 270;\n } else if (value >= 292.5 && value <337.5) {\n return 315;\n }\n }", "function getWindDirection(weatherData) {\n if (weatherData) {\n var windDirection = consolidated_weather[0].wind_direction.toFixed(0);\n\n return (\n <>\n <NavigationIcon className={classes.rotateIcon} />\n <style>{`\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { \n transform: rotate(${windDirection}deg); \n animation-fill-mode: forwards; \n }\n }\n `}</style>\n </>\n );\n } else {\n return (\n <Container>\n <NavigationIcon className={classes.rotateIcon} />\n <style>{`\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { \n transform: rotate(${windDirection}deg); \n animation-fill-mode: forwards; \n }\n }\n `}</style>\n </Container>\n );\n }\n }", "function directionToText( hdg ) {\r\n\tvar half = 45 / 2;\r\n\tif( hdg > (360 - half) || hdg <= (0 + half) ) {\r\n\t\treturn \"North\";\r\n\t}\r\n\telse if( hdg > (0 + half) && hdg <= (90 - half) ) {\r\n\t\treturn \"Northeast\";\r\n\t}\r\n\telse if( hdg > (90 - half) && hdg <= (90 + half) ) {\r\n\t\treturn \"East\";\r\n\t}\r\n\telse if( hdg > (90 + half) && hdg <= (180 - half) ) {\r\n\t\treturn \"Southeast\";\r\n\t}\r\n\telse if( hdg > (180 - half) && hdg <= (180 + half) ) {\r\n\t\treturn \"South\";\r\n\t}\r\n\telse if( hdg > (180 + half) && hdg <= (270 - half) ) {\r\n\t\treturn \"Southwest\";\r\n\t}\r\n\telse if( hdg > (270 - half) && hdg <= (270 + half) ) {\r\n\t\treturn \"West\";\r\n\t}\r\n\telse {\r\n\t\treturn \"Northwest\";\r\n\t}\r\n}", "function roverDirection(directionSymbol) {\n var directionWord = \"\";\n\n switch (directionSymbol) {\n case \"N\":\n directionWord = \"North\";\n break;\n case \"W\":\n directionWord = \"West\";\n break;\n case \"S\":\n directionWord = \"South\";\n break;\n case \"E\":\n directionWord = \"East\";\n break;\n }\n\n return directionWord;\n}", "function DegreesToRads(degrees){\n return degrees * (Math.PI/180);\n}", "function farenheitToCelcius(fDegrees){\n cDegrees = ((fDegrees - 32)*(5/9))\n console.log(cDegrees)\n}", "function getDirection(angle) {\n var directions = ['North', 'North-West', 'West', 'South-West', 'South', 'South-East', 'East', 'North-East'];\n return directions[Math.round(((angle %= 360) < 0 ? angle + 360 : angle) / 45) % 8];\n }", "function windChill(t, s) {\n var f = 35.74 + (0.6215 * t) - (35.75 * Math.pow(s, 0.16)) +\n (0.4275 * t * Math.pow(s, 0.16));\n return f;\n}", "getWind(data) {\n var windSpeed;\n windSpeed = data.windSpeed * 3.6; // convert m/s to kph\n return windSpeed.toFixed(0) + ' kph';\n }", "function get_direction(radians, directions) {\r\n\r\n // mathematical constant tau == 2PI\r\n TAU = Math.PI + Math.PI;\r\n\r\n // convert (-PI to PI) radians to (0.0 to 2PI)\r\n positive_radians = radians;\r\n if (positive_radians < 0.0) positive_radians = radians + TAU;\r\n \r\n // convert (0.0 to 2PI) to (0.0 to 1.0)\r\n normalized_direction = positive_radians / TAU; \r\n\r\n // the range of normalized angles that correspond to one facing direction\r\n direction_range = 1.0 / directions;\r\n \r\n // the facing direction is exactly in the middle of this range\r\n // shift it to the beginning of the range so we can map via floor\r\n normalized_direction += direction_range / 2.0;\r\n if (normalized_direction > 1.0) normalized_direction -= 1.0;\r\n \r\n // convert (0.0 to 1.0) to (0 to directions)\r\n return Math.floor(normalized_direction * directions);\r\n \r\n}", "function toDegree() {\n current_input = current_input * (180 / Math.PI);\n displayCurrentInput();\n}", "intToDir(number) {\n\t\tif (number !== parseInt(number, 10)) {\n\t\t\talert('Error: Passed wrong parameter type');\n\t\t\treturn;\n\t\t}\n\t\tswitch (number % 6) {\n\t\t\tcase 0:\n\t\t\t\treturn DIRECTION.UP;\n\t\t\tcase 1:\n\t\t\t\treturn DIRECTION.RIGHT;\n\t\t\tcase 2:\n\t\t\t\treturn DIRECTION.DOWN;\n\t\t\tcase 3:\n\t\t\t\treturn DIRECTION.LEFT;\n\t\t\tdefault:\n\t\t\t\treturn this.last_direction; //make it more likley that monster keeps moving in the same direction (looks more natural)\n\t\t}\n\t}", "_getShotDirection(deg) {\n let direction;\n switch (deg) {\n case 0:\n direction = { h:0, v: -1};\n break;\n case 45:\n direction = { h: 1, v: -1};\n break;\n case 90:\n direction = { h:1, v: 0};\n break;\n case 135:\n direction = { h:1, v: 1};\n break;\n case 180:\n case -180:\n direction = { h:0, v: 1};\n break;\n case -135:\n direction = { h:-1, v: 1};\n break;\n case -90:\n direction = { h:-1, v: 0};\n break;\n case -45:\n direction = { h:-1, v: -1};\n break;\t\t\t\t\n default:\n throw new Error(`Invalid degree ${deg}`);\n }\n \n return direction;\n }", "function windSpeedIn(metersPersecond) {\n return metersPersecond * 2.23694;\n}", "function degCompass (num) {\n if (num === undefined) {\n return '';\n } else {\n const direction = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW', 'N'];\n const degrees = Math.trunc((num/22.5) + 0.5);\n return direction[degrees];\n }\n}", "function getDriftDirection(latA, lonA, latB, lonB) {\n /*\n latA : latitude of the first point\n lonA : longitude of the first point\n latB : latitude of the second point\n lonB : longitude of the second point\n */\n\n // compute direction\n var dphi = Math.log(Math.tan(Math.radians(latB) / 2 + Math.PI / 4) / Math.tan(Math.radians(latA) / 2 + Math.PI / 4));\n var dlon = Math.abs(lonB - lonA)%180;\n var dirRad = Math.atan2(Math.radians(dlon), dphi);\n if(dirRad >= 0) {\n return Math.fixedDecimals(Math.degrees(dirRad), 2);\n } else {\n return Math.fixedDecimals(360 + Math.degrees(dirRad), 2);\n }\n}", "function rtod(fradsians)\n{\n return (fradians * 180.0 / Math.PI);\n}", "function dtor(fdegrees)\n{\n return (fdegrees * Math.PI / 180);\n}", "get Directionality() {}", "function Wind() {\n this.mid_time = -100; // Time associated with the middle entry in lists\n this.vx_list = []; // velocity at mid_time - 1, mid_time, mid_time + 1\n this.vy_list = [];\n this.vx = 0;\n this.vy = 0;\n this.ux = 0;\n this.uy = 0;\n this.theta = 0;\n this.speed = 0;\n this.shift_time = 30.0;\n this.typical_velocity = 20;\n}", "function world_change_direction(w, dir) {\n $rt_addContract(w, cd4e49798d42ac5a95f1a8edbd8ed8c01c, \"motion.ts(78,40)\");\n return new DataClasses_1.DataClasses.World(snake_change_direction(w.snake, dir), w.food);\n }", "function radians_to_direction(angle) {\n\n if (angle <= (-0.875 * Math.PI) || angle > (0.875 * Math.PI)) {\n return 1;\n }\n else if (angle > (-0.875 * Math.PI) && angle <= (-0.625 * Math.PI)) {\n return 2;\n }\n else if (angle > (-0.625 * Math.PI) && angle <= (-0.375 * Math.PI)) {\n return 3;\n }\n else if (angle > (-0.375 * Math.PI) && angle <= (-0.125 * Math.PI)) {\n return 4;\n } \n else if (angle > (-0.125 * Math.PI) && angle <= (0.125 * Math.PI)) {\n return 5;\n }\n else if (angle > (0.125 * Math.PI) && angle <= (0.375 * Math.PI)) {\n return 6;\n }\n else if (angle > (0.375 * Math.PI) && angle <= (0.625 * Math.PI)) {\n return 7;\n }\n else if (angle > (0.625 * Math.PI) && angle <= (0.875 * Math.PI)) {\n return 0;\n }\n\n}", "function changeGradient() {\n const degreesArr = direction.value.split(\"°\");\n const degreeValue = Number(degreesArr[0]);\n if (isNaN(degreeValue)) {\n degreeValue = 0;\n }\n styleGradientForm(degreeValue);\n setContrastingColor();\n}", "right(deg) {\n this.direction = (this.direction + toInt(deg)) % 360;\n }", "static directionFromRotation(direction, degrees) {\n\t\tlet shift = degrees > 0 ? degrees % 90 + 1 : -(degrees % 90 + 1);\n\t\tlet newDir = direction + shift;\n\t\treturn newDir < 0 ? newDir + 4 : newDir % 4;\n\t}", "function gradsToDegrees(num) {\n let grads = Number(num);\n\n grads = grads % 400;\n if (grads < 0) {\n grads += 400;\n }\n let degrees = grads / 400 * 360;\n console.log(degrees);\n}", "function toDegree() {\n if (this.currentInput == 0 || this.currentInput == \"\"){\n return;\n }\n this.currentInput = this.currentInput * (180 / Math.PI);\n this.displayCurrentInput();\n}", "function windType(data) {\n\n var wind = direction(data);\n var point = surfSpot.point;\n\n // console.log('Wind & Surf Spot wind directions: ' + wind + ' ' + point);\n\n var range = [wind, point];\n\n // console.log('An Array of wind & point direction values: ' + range);\n \n function check() {\n if ((wind - point) === 0) {\n return 'Offshore';\n } else if (\n (range[0] === 0) && (range[1] === 180) ||\n (range[0] === 180) && (range[1] === 0) ||\n (range[0] === 90) && (range[1] === 270) ||\n (range[0] === 270) && (range[1] === 90) ||\n (range[0] === 45) && (range[1] === 225) ||\n (range[0] === 225) && (range[1] === 45) ||\n (range[0] === 135) && (range[1] === 315) ||\n (range[0] === 315) && (range[1] === 135)) {\n return 'Onshore';\n } else {\n return 'Crosswind';\n }\n }\n\n return check();\n }", "function DegreesToRadians(degrees){\n return (Math.PI * degrees) / 180;\n}", "function direction(x){\n var a= parseInt(x);\n if ((a>=0 && a<45)||a==360){\n return \"Utara\";\n }else if(a>=45&&a<90){\n return \"Timur Laut\";\n }else if(a>=90&&a<135){\n return \"Timur\";\n }else if(a>=135&&a<180){\n return \"Tenggara\";\n }else if(a>=180&&a<225){\n return \"Selatan\";\n }else if(a>=225&&a<270){\n return \"Barat Daya\";\n }else if(a>=270&&a<315){\n return \"Barat\";\n }else if(a>=315&&a<360){\n return \"Barat Laut\";\n }\n }", "degToCompass (num) {\n let val = Math.floor((num / 22.5) + 0.5)\n let dir = ['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW']\n return dir[(val % 16)]\n }", "function getDirection(orientation, forwards) {\n if (!orientation)\n return null;\n\n if (forwards) {\n if (orientation === 6 || orientation === 9)\n return '-';\n else\n return '+';\n } else {\n if (orientation === 12 || orientation === 3)\n return '-';\n else\n return '+';\n }\n}", "function getWaveDirection(d) {\n\n var result2 = [];\n\n var wavedirection = d.Dirm;\n\n if (wavedirection < 40) {\n result2.push(interval1);\n }\n\n else if (wavedirection > 40 && wavedirection < 80) {\n result2.push(interval2);\n }\n\n else if (wavedirection > 80 && wavedirection < 120) {\n result2.push(interval3);\n }\n\n else if (wavedirection > 120 && wavedirection < 160) {\n result2.push(interval4);\n }\n\n else if (wavedirection > 160 && wavedirection < 200) {\n result2.push(interval5);\n }\n\n else if (wavedirection > 200 && wavedirection < 240) {\n result2.push(interval6);\n }\n\n else if (wavedirection > 240 && wavedirection < 280) {\n result2.push(interval7);\n }\n\n else if (wavedirection > 280 && wavedirection < 320) {\n result2.push(interval8);\n }\n\n else result2.push(interval9);\n\n\n return result2;\n\n}", "function DegtoMOA(deg) { return deg * 60; }", "function dmsDD([degrees, minutes, seconds], direction) {\n let dd = degrees + minutes / 60 + seconds / 3600;\n if (direction === \"S\" || direction === \"W\") {\n dd *= -1;\n }\n return dd;\n}", "function KinkyDungeonGetDirection(dx, dy) {\n\t\n\tvar X = 0;\n\tvar Y = 0;\n\t\n\tif (Math.abs(dx) < 0.5 && Math.abs(dy) < 0.5)\n\t\treturn {x:0, y:0, delta:1}\n\t\n\t// Cardinal directions first - up down left right\n\tif (dy > 0 && Math.abs(dx) < Math.abs(dy)/2.61312593) Y = 1\n\telse if (dy < 0 && Math.abs(dx) < Math.abs(dy)/2.61312593) Y = -1\n\telse if (dx > 0 && Math.abs(dy) < Math.abs(dx)/2.61312593) X = 1\n\telse if (dx < 0 && Math.abs(dy) < Math.abs(dx)/2.61312593) X = -1\n\t\n\t// Diagonals\n\telse if (dy > 0 && dx > dy/2.61312593) {Y = 1; X = 1}\n\telse if (dy > 0 && -dx > dy/2.61312593) {Y = 1; X = -1}\n\telse if (dy < 0 && dx > -dy/2.61312593) {Y = -1; X = 1}\n\telse if (dy < 0 && -dx > -dy/2.61312593) {Y = -1; X = -1}\n\t\n\treturn {x:X, y:Y, delta:Math.round(Math.sqrt(X*X+Y*Y)*2)/2} // Delta is always in increments of 0.5\n}", "get direction() {\n return Vector.unit(this.angle);\n }", "function degreeToCardinal(degree) {\n\n if (degree >= 11.25 && degree <= 33.75) {\n return \"NNE\";\n } else if (degree >= 33.75 || degree <= 56.25) {\n return \"ENE\";\n } else if (degree >= 56.25 || degree <= 78.75) {\n return \"E\";\n } else if (degree >= 78.75 || degree <= 101.25) {\n return \"ESE\";\n } else if (degree >= 101.25 || degree <= 123.75) {\n return \"SE\";\n } else if (degree >= 123.75 && degree <= 146.25) {\n return \"SSE\";\n } else if (degree >= 146.25 && degree <= 168.75) {\n return \"S\";\n } else if (degree >= 168.75 && degree <= 191.25) {\n return \"SSW\";\n } else if (degree >= 191.25 && degree <= 213.75) {\n return \"SW\";\n } else if (degree >= 213.75 && degree <= 236.25) {\n return \"W\";\n } else if (degree >= 236.25 && degree <= 258.75) {\n return \"W\";\n } else if (degree >= 258.75 && degree <= 281.25) {\n return \"WNW\";\n } else if (degree >= 281.25 && degree <= 303.75) {\n return \"NW\";\n } else if (degree >= 303.75 && degree <= 326.25) {\n return \"NNW\";\n } else if (degree >= 326.25 && degree <= 348.75) {\n return \"NNW\";\n } else if (degree >= 11.25 && degree <= 360) {\n return \"N\";\n }\n }", "function decodeDew(objMetar) {\n var dew = 'Dewpoint ';\n if (objMetar.data[0].dewpoint) {\n dew += objMetar.data[0].dewpoint.celsius + '. ';\n return dew;\n }\n}", "function getWindSpeed(weatherData) {\n if (weatherData) {\n var windSpeed = weatherData[0].wind_direction;\n return windSpeed.toFixed(0);\n }\n }", "function getDirectionOfOneWayPath(firstPoint, lastPoint) {\n const bearing = geoFunctions.bearing(firstPoint, lastPoint);\n const cardinal = geoFunctions.bearingAsCardinal(bearing);\n return `${cardinal.from} to ${cardinal.to}`\n}", "toDirectionString() {\n let retStr = new String();\n if (this.magnitude != 3) {\n retStr = this.magnitude.toString();\n }\n retStr += this.direction;\n return retStr;\n }", "toDirectionString() {\n let retStr = new String();\n if (this.magnitude != 3) {\n retStr = this.magnitude.toString();\n }\n retStr += this.direction;\n return retStr;\n }", "function direction(up){\n \n directionValue=up;\n\tsetGradient();\n\t\n\t\n}", "getWindDirectionIconClass(bearing) {\n return `wi wi-wind from-${bearing}-deg`;\n }", "function deg2rad(degs) { return 0.01745329251 * degs; }", "function getDirection(x, y){\n if (x === 0 && y === 0)\n return null;\n if ( x + y >= 0 && x-y >= 0) {\n return \"r\";\n } else if (x+y < 0 && x-y >= 0) {\n return \"u\";\n } else if (x+y < 0 && x-y < 0) {\n return \"l\";\n } else {\n return \"d\";\n }\n }", "function degTorad(deg) {\n return deg * (Math.PI / 180);\n}", "function Direction() {\n this.cardinalDirectionVectors = [\n [0,1], // North\n [1,0], // East\n [0,-1], // South\n [-1, 0] // West\n ];\n // Dr. Bunny initially faces North\n this.directionVectorIndex = 0;\n}", "function direction(nom, x, y){\r\n this.nom = nom;\r\n this.xDir = x;\r\n this.yDir = y;\r\n }", "function updateWind(windSpeed, speedUnits, windBearing) {\n let windScale;\n\n function isWindSpeedBelowMph(mphValue) {\n if (speedUnits === 'm/s' && windSpeed < mphValue * 0.447) {\n return true;\n }\n\n if (speedUnits === 'km/h' && windSpeed < mphValue * 1.609) {\n return true;\n }\n\n return speedUnits === 'mph' && windSpeed < mphValue;\n }\n\n // Set the windScale based on the Beaufort Scale\n if (isWindSpeedBelowMph(2)) {\n windScale = 'calm air';\n } else if (isWindSpeedBelowMph(7)) {\n windScale = 'light breeze';\n } else if (isWindSpeedBelowMph(12)) {\n windScale = 'breeze';\n } else if (isWindSpeedBelowMph(25)) {\n windScale = 'wind';\n } else if (isWindSpeedBelowMph(38)) {\n windScale = 'high wind';\n } else if (isWindSpeedBelowMph(46)) {\n windScale = 'gale';\n } else if (isWindSpeedBelowMph(54)) {\n windScale = 'strong gale';\n } else if (isWindSpeedBelowMph(63)) {\n windScale = 'storm';\n } else if (isWindSpeedBelowMph(72)) {\n windScale = 'violent storm';\n } else {\n windScale = 'hurricane force';\n }\n\n const arr = ['North', '<abbr title=\"North-Northeast\">NNE</abbr>', '<abbr title=\"Northeast\">NE</abbr>',\n '<abbr title=\"East-Northeast\">ENE</abbr>', 'East', '<abbr title=\"East-Southeast\">ESE</abbr>',\n '<abbr title=\"Southeast\">SE</abbr>', '<abbr title=\"South-Southeast\">SSE</abbr>', 'South',\n '<abbr title=\"South-Southwest\">SSW</abbr>', '<abbr title=\"Southwest\">SW</abbr>',\n '<abbr title=\"West-Southwest\">WSW</abbr>', 'West', '<abbr title=\"West-Northwest\">WNW</abbr>',\n '<abbr title=\"NorthWest\">NW</abbr>', '<abbr title=\"North-Northwest\">NNW</abbr>',];\n const windBearingDirection = arr[(Math.floor((windBearing / 22.5) + 0.5) % 16)];\n\n return `with a ${Math.round(windSpeed)} ${speedUnits} ${windScale} coming from the <a href=\"https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Compass_Rose_English_North.svg/1000px-Compass_Rose_English_North.svg.png\" target=\"_blank\">${windBearingDirection}</a>`;\n}", "set wristRotationDegree(value) { this._wristRotation = (value / 180.0 * Math.PI); }", "reverseDirection(direction) {\n if (direction == 'north') {\n return 'south';\n } else if (direction == 'south') {\n return 'north';\n } else if (direction == 'east') {\n return 'west';\n } else {\n return 'east';\n }\n }", "function degreeToRadians(n){\n return (n / 180 * Math.PI).toFixed(2);\n}", "function get_my_direction() {\n var v, dir;\n\n v = new THREE.Vector3(0,0,-1);\n //v = WORLD.camera.matrixWorld.multiplyVector3(v); // r54\n v.applyMatrix4(WORLD.camera.matrixWorld); // r58\n\n //dir.sub(v).setLength(BULLET_VELOCITY); // r58\n dir = new THREE.Vector3(0,0,0);\n dir.copy(WORLD.player.mesh.position);\n\n //dir.subSelf(v); // r54\n dir.subVectors(dir, v); // r58\n //dir.sub(v);\n\n return dir;\n}", "windChill(temp, vol)\n{\n if (temp <= 50 && vol > 3 && vol < 120) \n {\n var w = 35.74 + 0.6215 * temp + (0.4275 * temp - 35.75) * Math.pow(vol, 0.16);//calculate.\n console.log(\"Windchill for temperature \" + temp + \" and wind speed \" + vol + \" is \" + w);\n } \n else \n {\n console.log(\"Wrong temperature or wind speed\");\n }\n}", "function formatVector(wind, units) {\n var d = Math.atan2(-wind[0], -wind[1]) / τ * 360; // calculate into-the-wind cardinal degrees\n\n var wd = Math.round((d + 360) % 360 / 5) * 5; // shift [-180, 180] to [0, 360], and round to nearest 5.\n\n return wd.toFixed(0) + \"° @ \" + formatScalar(wind[2], units);\n }", "function turnRight(degree, amount){\n degree += amount;\n if (degree > 180) {\n degree = -180 + degree % 180;\n }\n return degree;\n}", "function thermostatPointerTempToDeg(temp){\n return (temp * 2) + 20;\n}", "function cDegrees(celcius){\n var fahrenheit = celcius * 1.8000 + 32;\n return fahrenheit;\n}", "function conversion(kelvin) {\n return Math.floor(kelvin * (9/5) - 459.67) + \"°F\";\n}", "function rotateWindArrow(degrees) {\n return (\n <ArrowUpwardIcon\n style={{ transform: `rotate(${degrees + \"deg\"})`, color: \"black\" }}\n ></ArrowUpwardIcon>\n );\n}", "function convert() {\n let k = document.getElementById(\"kelvin\").value\n let o = k- 273.15\n document.getElementById(\"out\").innerHTML = o.toFixed(2) + \" degrees C\"\n}", "function getDirection(fromx, fromy, tox, toy) {\n // arcus tangens, convert to degrees, add 450 and normalize to 360.\n return fmod(Math.atan2(toy - fromy, tox - fromx) / M_PI * 180.0 + 450.0, 360.0);\n}", "function dirToNum(dir) {\r\n\r\n switch (dir) {\r\n case \"W\":\r\n return 2;\r\n case \"NW\":\r\n return 1;\r\n case \"N\":\r\n return 0;\r\n case \"NE\":\r\n return 7;\r\n case \"E\":\r\n return 6;\r\n case \"SE\":\r\n return 5;\r\n case \"S\":\r\n return 4;\r\n case \"SW\":\r\n return 3;\r\n default:\r\n //console.log(\"That isn't a direction..........\");\r\n return -1;\r\n }\r\n\r\n}", "function formatVector(wind, units) {\n var d = Math.atan2(-wind[0], -wind[1]) / τ * 360; // calculate into-the-wind cardinal degrees\n var wd = Math.round((d + 360) % 360 / 5) * 5; // shift [-180, 180] to [0, 360], and round to nearest 5.\n return wd.toFixed(0) + \"° @ \" + formatScalar(wind[2], units);\n }", "static direction(departStop, arriveStop) {\n const depart = caltrainServiceData.southStops.indexOf(departStop);\n const arrive = caltrainServiceData.southStops.indexOf(arriveStop);\n return depart < arrive ? \"South\" : \"North\";\n }", "function radsToDegrees(val){\n return val * 180/Math.PI;\n\n}", "get wristRotationDegree() { return this._wristRotation * 180.0 / Math.PI; }" ]
[ "0.77208745", "0.754105", "0.7521744", "0.7380625", "0.7198231", "0.700218", "0.69751173", "0.6755742", "0.6693821", "0.6653324", "0.65619564", "0.65607464", "0.6305419", "0.6290804", "0.6284115", "0.6247079", "0.61833525", "0.6182476", "0.60951704", "0.60674006", "0.60642713", "0.6040996", "0.6034424", "0.60341555", "0.6030054", "0.60159487", "0.60086447", "0.5968157", "0.5939689", "0.59302914", "0.5921978", "0.5918867", "0.5883757", "0.5878291", "0.5874859", "0.58676165", "0.5857197", "0.58429056", "0.584269", "0.583553", "0.5835022", "0.58347195", "0.5822164", "0.5821788", "0.5816668", "0.5766052", "0.5763522", "0.575996", "0.5744884", "0.5742264", "0.5741902", "0.5739224", "0.5724059", "0.57106847", "0.57062", "0.5698003", "0.5695259", "0.5695218", "0.5685955", "0.5664993", "0.5660613", "0.56220174", "0.5616522", "0.5614152", "0.5613938", "0.56013936", "0.5595105", "0.5580329", "0.55780417", "0.5566276", "0.55610865", "0.5560047", "0.55523455", "0.55523455", "0.5546636", "0.5546041", "0.5539371", "0.5535849", "0.5512296", "0.550515", "0.5504603", "0.550409", "0.54990256", "0.54834116", "0.5482836", "0.5475611", "0.54723626", "0.54696995", "0.5465181", "0.5454205", "0.54505575", "0.54460204", "0.54408497", "0.5423904", "0.5415975", "0.5401944", "0.5400258", "0.5385734", "0.5384408", "0.53843457" ]
0.57645273
46
Turns weekday number into day
function getWeekDay(date) { const weekdays = [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ] date = new Date(date * 1000).getDay() return weekdays[date] }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dayConvert(day) {\n\t\tday = parseInt(day);\n\t\t\n\t\t// just handle the cases for numbers 1-31\n\t\tif (day===1 || day===21 || day===31) {\n\t\t\treturn day + 'st';\n\t\t}\n\t\telse if (day===2 || day===22) {\n\t\t\treturn day + 'nd';\n\t\t}\n\t\telse if (day===3 || day===23) {\n\t\t\treturn day + 'rd';\n\t\t}\n\t\telse {\n\t\t\treturn day + 'th';\n\t\t}\n\t}", "function getDayOfWeek(day) {\n switch(day) {\n case 0: return 'Sun';\n case 1: return 'Mon';\n case 2: return 'Tue';\n case 3: return 'Wed';\n case 4: return 'Thu';\n case 5: return 'Fri';\n case 6: return 'Sat';\n default: return;\n }\n}", "function russifyWeekDay(day) {\n if (day == 0)\n return 6;\n return day - 1;\n }", "function getDay(num) {\n\tlet day = \"\";\n\tif(num == 1 || num == 8) {\n\t\tday = \"MON\";\n\t} else if(num == 2 || num == 9) {\n\t\tday=\"TUE\";\n\t} else if(num == 3 || num == 10) {\n\t\tday=\"WED\";\n\t} else if(num == 4 || num == 11) {\n\t\tday=\"THUR\";\n\t} else if(num == 5 || num == 12) {\n\t\tday=\"FRI\";\n\t} else if(num == 6) {\n\t\tday=\"SAT\";\n\t} else if(num == 7) {\n\t\tday=\"SUN\";\n\t } \n\treturn day;\n}", "findDayOfWeek(day) {\n switch (new Date(day.dt_txt).getDay()) {\n case 0:\n return \"Sunday\"\n case 1:\n return \"Monday\"\n case 2:\n return \"Tuesday\"\n case 3:\n return \"Wednesday\"\n case 4:\n return \"Thursday\"\n case 5:\n return \"Friday\"\n default:\n return \"Saturday\"\n }\n }", "function dayConvert(day) {\n //creating the switch statement because it is the easiest way I know of\n //to handle this many cases easily.\n switch (day) {\n case 1:\n return \"Monday\";\n break;\n case 2:\n return \"Tuesday\";\n break;\n case 3:\n return \"Wednesday\";\n break;\n case 4:\n return \"Thursday\";\n break;\n case 5:\n return \"Friday\";\n break;\n case 6:\n return \"Saturday\";\n break;\n case 7:\n return \"Sunday\";\n break;\n case \"Monday\":\n return 1;\n break;\n case \"Tuesday\":\n return 2;\n break;\n case \"Wednesday\":\n return 3;\n break;\n case \"Thursday\":\n return 4;\n break;\n case \"Friday\":\n return 5;\n break;\n case \"Saturday\":\n return 6;\n break;\n case \"Sunday\":\n return 7;\n break;\n default:\n print(\"This is the base case.\");\n }\n}", "function weekDay(index) {\n switch (index) {\n case 0:\n return 'Sunday';\n break;\n case 1:\n return 'Monday';\n break;\n case 2:\n return 'Tuesday';\n break;\n case 3:\n return 'Wednesday';\n break;\n case 4:\n return 'Thursday';\n break;\n case 5:\n return 'Friday';\n break;\n case 6:\n return 'Saturday';\n break;\n }\n}", "function getDayOfWeek(dayNumber)\r\n{\r\n\tswitch(dayNumber)\r\n\t{\r\n\t\tcase 0: return \"Sunday\"; break;\r\n\t\tcase 1: return \"Monday\"; break;\r\n\t\tcase 2: return \"Tuesday\"; break;\r\n\t\tcase 3: return \"Wednesday\"; break;\r\n\t\tcase 4: return \"Thursday\"; break;\r\n\t\tcase 5: return \"Friday\"; break;\r\n\t\tcase 6: return \"Saturday\"; break;\r\n\t\tdefault: return null; break;\r\n\t}\r\n}", "function calculateWeekDay() {\n\tJD0h += 1.5;\n\tlet res = JD0h - 7 * Math.floor(JD0h / 7);\n\tif (res === 0) {\n\t\tDoW = \"SUN\";\n\t}\n\tif (res === 1) {\n\t\tDoW = \"MON\";\n\t}\n\tif (res === 2) {\n\t\tDoW = \"TUE\";\n\t}\n\tif (res === 3) {\n\t\tDoW = \"WED\";\n\t}\n\tif (res === 4) {\n\t\tDoW = \"THU\";\n\t}\n\tif (res === 5) {\n\t\tDoW = \"FRI\";\n\t}\n\tif (res === 6) {\n\t\tDoW = \"SAT\";\n\t}\n}", "function getDayOfWeek(number) {\n\tswitch(number) {\n\t\tcase 1:\n\t\t\treturn 'Monday';\n\t\tcase 2:\n\t\t\treturn 'Tuesday';\n\t\tcase 3:\n\t\t\treturn 'Wednesday';\n\t\tcase 4:\n\t\t\treturn 'Thursday';\n\t\tcase 5:\n\t\t\treturn 'Friday';\n\t\tcase 6:\n\t\t\treturn 'Saturday';\n\t\tcase 7:\n\t\t\treturn 'Sunday';\n\t\tdefault:\n\t\t\treturn 'Please enter a valid day of the week';\n\t}\n}", "function weekdayName(weekdayNum){\n // getting day of the week based on numbers 1 to 6; number 1 starting with \"Sunday\" and number 6 ending with \"Saturday\"\n switch (weekdayNum){\n case 1:\n console.log(\"Sunday\");\n break;\n case 2:\n console.log(\"Monday\")\n break;\n case 3:\n console.log(\"Tuesday\")\n break;\n case 4:\n console.log(\"Wednesday\")\n break;\n case 5:\n console.log(\"Thursday\")\n break;\n case 6:\n console.log(\"Friday\")\n break;\n case 7:\n console.log(\"Saturday\");\n break;\n }\n}", "dddd (date, dateLocale) {\n return dateLocale.days[ date.getDay() ]\n }", "function dayString(num){\r\n if (num == \"1\") { return \"Montag\" }\r\n else if (num == \"2\") { return \"Dienstag\" }\r\n else if (num == \"3\") { return \"Mittwoch\" }\r\n else if (num == \"4\") { return \"Donnerstag\" }\r\n else if (num == \"5\") { return \"Freitag\" }\r\n else if (num == \"6\") { return \"Samstag\" }\r\n else if (num == \"0\") { return \"Sonntag\" }\r\n}", "function determineDay(day) {\n switch (day) {\n case \"Mon\":\n return \"2015-08-24 \";\n case \"Tue\":\n return \"2015-08-25 \";\n case \"Wed\":\n return \"2015-08-26 \";\n case \"Thu\":\n return \"2015-08-27 \";\n case \"Fri\":\n return \"2015-08-28 \";\n }\n }", "function checkDay(number) {\n switch (number) {\n case 1:\n return \"Monday\";\n case 2:\n return \"Tuesday\";\n case 3:\n return \"Wednesday\";\n case 4:\n return \"Thursday\";\n case 5:\n return \"Friday\";\n case 6:\n return \"Saturday\";\n default:\n return \"Sunday\";\n }\n}", "function dayOFWeek(index) {\n\n let days = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"];\n\n return days[1];\n}", "d (date) {\n return date.getDay()\n }", "function returnDay(number) {\n if (number === 1) {\n return `Monday`;\n } else if (number === 2) {\n return `Tuesday`;\n } else if (number === 3) {\n return `Wednesday`;\n } else if (number === 4) {\n return `Thursday`;\n } else if (number === 5) {\n return `Friday`;\n } else if (number === 6) {\n return `Saturday`;\n } else if (number === 7) {\n return `Sunday`;\n } else {\n return null;\n }\n}", "function formatDaySimple(d, numberDay) {\r\n var day = new Date(d).getDay(),\r\n diff = new Date(d).getDate() - day + (day == 0 ? -7 + numberDay : numberDay); // adjust when day is sunday\r\n return formatValue(new Date(new Date(d).setDate(diff)).getDate()) + '_' + formatValue(new Date(new Date(d).setDate(diff)).getMonth() + 1) + '_' + new Date(new Date(d).setDate(diff)).getFullYear();\r\n}", "function dayOfWeek(day) {\n /**\n Return the string \"Monday\" if the argument passed to parameter day is 1.\n Return \"Tuesday\" if the argument is 2. Or return the string \"\"Wednesday\", \"Thursday\",\n \"Friday\", \"Saturday\", or Sunday if day is 3, 4, 5, 6, or 7 respectively.\n */\n if (day === 1) {\n return \"Monday\";\n }\n else if (day === 2) {\n return \"Tuesday\";\n }\n else if (day ===3) {\n return \"Wednesday\";\n }\n else if (day === 4) {\n return \"Thursday\";\n }\n else if (day === 5) {\n return \"Friday\";\n }\n else if (day === 6) {\n return \"Saturday\";\n }\n else if (day === 7) {\n return \"Sunday\";\n }\n else {\n return \"Not a valid day of the week\";\n }\n\n}", "function getDay(day) {\n switch (day) {\n case \"Monday\": return 1;\n\n case \"Tuesday\": return 2;\n case \"Wednesday\": return 3;\n case \"Thursday\": return 4;\n case \"Friday\": return 5;\n case \"Saturday\": return 6;\n case \"Sunday\": return 7;\n default: return \"error\"; break;\n\n }\n}", "function day2str(day) {\n switch (day) {\n case 0: day = \"Sunday\"; break;\n case 1: day = \"Monday\"; break;\n case 2: day = \"Tuesday\"; break;\n case 3: day = \"Wednesday\"; break;\n case 4: day = \"Thursday\"; break;\n case 5: day = \"Friday\"; break;\n case 6: day = \"Saturday\"; break;\n }\n return day;\n}", "function whatWeekDayNameIsIt(number) {\n var day;\n switch (number) {\n case 1:\n day = \"Monday\";\n break;\n case 2:\n day = \"Tuesday\";\n break;\n case 3:\n day = \"Wednesday\";\n break;\n case 4:\n day = \"Thursday\";\n break;\n case 5:\n day = \"Friday\";\n break;\n case 6:\n day = \"Saturday\";\n break;\n case 7:\n day = \"Sunday\";\n break;\n default:\n day = \"Please enter valid weekday number\";\n }\n return day;\n}", "function NumberDay(idJour){\n if(idJour === 0) return 7;\n\n else return idJour;\n}", "E (date) {\n return date.getDay() || 7\n }", "getDayNumerals(date) { return `${date.day}`; }", "function day(date) { return `${date.getDate()}`.padStart(2, '0') }", "function day() {\r\n var d = new Date();\r\n var weekday = new Array(7);\r\n weekday[0]= \"Sunday\";\r\n weekday[1] = \"Monday\";\r\n weekday[2] = \"Tuesday\";\r\n weekday[3] = \"Wednesday\";\r\n weekday[4] = \"Thursday\";\r\n weekday[5] = \"Friday\";\r\n weekday[6] = \"Saturday\";\r\n\r\n return weekday[d.getDay()];\r\n}", "function _getDayOfweek(week){\n var day = 1;\n switch(week) {\n case '1':\n day = 1;\n break;\n case '2':\n day = 8;\n break;\n case '3':\n day = 15;\n break;\n case '4':\n day = 22;\n break;\n default:\n day = 1;\n }\n return day;\n }", "function fetchdayoftheweek(){\r\n var d = new Date();\r\n var n = d.getDay();\r\n\r\n let sat = \"Saturday\"\r\n let sun = \"Sunday\"\r\n let mon = \"Monday\"\r\n let tue = \"Tuesday\"\r\n let wed = \"Wednesday\"\r\n let thu = \"Thursday\"\r\n let fri = \"Friday\"\r\n\r\n if (n==6){\r\n return sat;\r\n }\r\n else if (n==0){\r\n return sun;\r\n }\r\n else if (n==0){\r\n return mon;\r\n }\r\n else if (n==0){\r\n return tue;\r\n }\r\n else if (n==0){\r\n return wed;\r\n }\r\n else if (n==0){\r\n return thu;\r\n }\r\n else if (n==0){\r\n return fri;\r\n }\r\n }", "function getDayName(number) {\n var weekday = new Array(7);\n weekday[0] = \"Sunday\";\n weekday[1] = \"Monday\";\n weekday[2] = \"Tuesday\";\n weekday[3] = \"Wednesday\";\n weekday[4] = \"Thursday\";\n weekday[5] = \"Friday\";\n weekday[6] = \"Saturday\";\n return weekday[number];\n}", "function dayOfWeek(){\r\n var localOffsetInHours = 2;\r\n var date = new Date();\r\n var offsetInMinutes = date.getTimezoneOffset() + localOffsetInHours * 60;\r\n var d = new Date(date.valueOf() + offsetInMinutes * 60 * 1000);\r\n \r\n var day = d.getDay();\r\n \r\n if( day == 0 ){\r\n // we need it monday-based, not sunday-based\r\n day = 7;\r\n }\r\n return day;\r\n}", "function GetWeekDayFromStr(dayOfWeekStr) {\n var weekDay = 0;\n var upperStr = dayOfWeekStr.toUpperCase();\n if( upperStr[0] == 'S' ) {\n if( upperStr[1] == 'U' ) {\n weekDay = 0;\n }\n else {\n weekDay = 6;\n }\n }\n else if( upperStr[0] == 'M' ) {\n weekDay = 1;\n }\n else if( upperStr[0] == 'T' ) {\n if( upperStr[1] == 'U' ) {\n weekDay = 2;\n }\n else {\n weekDay = 4;\n }\n }\n else if( upperStr[0] == 'W' ) {\n weekDay = 3;\n }\n else {\n weekDay = 5;\n }\n return weekDay;\n}", "function getDayFix(getDay){\n if (getDay > 0){\n return getDay - 1;\n }\n else if(getDay === 0){\n return 6;\n };\n}", "function convertDOW(dowNum, typeOfString) {\n if(dowNum > 7) {\n if(dowNum%7 == 0) {\n dowNum = 7;\n } else {\n dowNum = dowNum%7;\n }\n }\n let dowConverter = {\n \"1\": {\n \"abr\": \"Mon\",\n \"full\": \"Monday\"\n },\n \"2\": {\n \"abr\": \"Tue\",\n \"full\": \"Tuesday\"\n },\n \"3\": {\n \"abr\": \"Wed\",\n \"full\": \"Wednesday\"\n },\n \"4\": {\n \"abr\": \"Thu\",\n \"full\": \"Thursday\"\n },\n \"5\": {\n \"abr\": \"Fri\",\n \"full\": \"Friday\"\n },\n \"6\": {\n \"abr\": \"Sat\",\n \"full\": \"Saturday\"\n },\n \"7\": {\n \"abr\": \"Sun\",\n \"full\": \"Sunday\"\n }\n }\n return dowConverter[Object.keys(dowConverter)[dowNum-1]][typeOfString];\n}", "function getDay(date){\n\tvar day = date.getDay();\n if(0 == day){\n \tday = 7;\n }\n return day;\n}", "function getDayOfWeek(theDay)\n{\t\n\tswitch (theDay)\n\t{\n\t\tcase 0:\n\t\t\treturn \"Sunday\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\treturn \"Monday\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\treturn \"Tuesday\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\treturn \"Wednesday\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\treturn \"Thursday\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\treturn \"Friday\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\treturn \"Saturday\";\n\t\t\tbreak;\t\t\t\n\t}\n}", "function getDay(date) {\n var day = date.substring(6, 8);\n day = parseInt(day);\n var j = day % 10,\n k = day % 100;\n if (j == 1 && k != 11) {\n return day + \"st\";\n }\n if (j == 2 && k != 12) {\n return day + \"nd\";\n }\n if (j == 3 && k != 13) {\n return day + \"rd\";\n }\n return day + \"th\";\n}", "function weekday(i) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__interval__[\"a\" /* default */])(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__[\"d\" /* durationMinute */]) / __WEBPACK_IMPORTED_MODULE_1__duration__[\"a\" /* durationWeek */];\n });\n}", "function weekday(i) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__interval__[\"a\" /* default */])(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__[\"d\" /* durationMinute */]) / __WEBPACK_IMPORTED_MODULE_1__duration__[\"a\" /* durationWeek */];\n });\n}", "function weekday(i) {\n return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__interval__[\"a\" /* default */])(function(date) {\n date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);\n date.setHours(0, 0, 0, 0);\n }, function(date, step) {\n date.setDate(date.getDate() + step * 7);\n }, function(start, end) {\n return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * __WEBPACK_IMPORTED_MODULE_1__duration__[\"d\" /* durationMinute */]) / __WEBPACK_IMPORTED_MODULE_1__duration__[\"a\" /* durationWeek */];\n });\n}", "getDayOfTheWeekIndeces(dayOfTheWeek) {\n const dayofTheWeekIndeces = {\n Sunday: 0,\n Monday: 1,\n Tuesday: 2,\n Wednesday: 3,\n Thursday: 4,\n Friday: 5,\n Saturday: 6,\n };\n return dayofTheWeekIndeces[dayOfTheWeek];\n }", "function getDayOfWeek(d){\n dayOfBirth = ( ( (([century]/4) -2)*([century]-1)) + ((5*[year]/4) ) + ((26*([month]+1)/10)) + [day] )%7;\n var nDay = Math.trunc(dayOfBirth);\n if (nDay>=3) {\n nDayBorn= nDay -2;\n }\n else if(nDay>=6){\n nDayBorn= nDay -1;\n } \n else{\n nDayBorn=nDay\n };\n }", "function dateConverter(day)\n{\n\tvar date = new Date(user.currentTime.year, user.currentTime.month, day);\n\n\tswitch(date.getDay())\n\t{\n\t\tcase 0:\n\t\t\treturn \"Sunday\";\n\t\tcase 1:\n\t\t\treturn \"Monday\";\n\t\tcase 2:\n\t\t\treturn \"Tuesday\";\n\t\tcase 3:\n\t\t\treturn \"Wednesday\";\n\t\tcase 4:\n\t\t\treturn \"Thursday\";\n\t\tcase 5:\n\t\t\treturn \"Friday\";\n\t\tcase 6:\n\t\t\treturn \"Saturday\";\n\t}\n}", "function printDay(num) {\r\n if (num == 1) {\r\n return \"Sunday\";\r\n }\r\n if (num == 2) {\r\n return \"Monday\";\r\n }\r\n if (num == 3) {\r\n return \"Tuesday\";\r\n }\r\n if (num == 4) {\r\n return \"Wednesday\";\r\n }\r\n if (num == 5) {\r\n return \"Thursday\";\r\n }\r\n if (num == 6) {\r\n return \"Friday\";\r\n }\r\n if (num == 7) {\r\n return \"Saturday\";\r\n }\r\n}", "function DefDateDay(yy,mm,dd)\n{\nreturn Math.floor((Date2Days(yy,mm,dd)-2) % 7) + 1;\n}", "function weekday(date) {\n switch (true) {\n case date.getDay() == 0:\n return \"Sun\";\n break;\n case date.getDay() == 1:\n return \"Mon\";\n break;\n case date.getDay() == 2:\n return \"Tue\";\n break;\n case date.getDay() == 3:\n return \"Wed\";\n break;\n case date.getDay() == 4:\n return \"Thursday\";\n break;\n case date.getDay() == 5:\n return \"Friday\";\n break;\n case date.getDay() == 6:\n return \"Saturday\";\n break;\n default:\n return false;\n break;\n }\n}", "function spellDay(day) {\n switch (day) {\n case \"-\":\n day = \"-\";\n break;\n case \"M\":\n day = \"Monday\";\n break;\n case \"T\":\n day = \"Tuesday\";\n break;\n case \"W\":\n day = \"Wednesday\";\n break;\n case \"R\":\n day = \"Thursday\";\n break;\n case \"MW\":\n day = \"Monday and Wednesday\";\n break;\n case \"TR\":\n day = \"Tuesday and Thursday\";\n break;\n\n }\n \n return day;\n}", "function dayFormat(day) {\n switch (day) {\n case 1:\n case 21:\n return day + 'st';\n case 2:\n case 22:\n return day + 'nd';\n case 3:\n case 23:\n return day + 'rd';\n default:\n return day + 'th';\n }\n }", "function day() {\n return \"friday\";\n}", "function dayOfTheWeek(index) {\n\n let days = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"];\n\n return days[index];\n\n}", "function whatday(num) { \n const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n return days[num - 1] ? days[num - 1] : 'Wrong, please enter a number between 1 and 7';\n}", "function d3_time_parseWeekday(date, string, i) {\n d3_time_weekdayRe.lastIndex = 0;\n var n = d3_time_weekdayRe.exec(string.substring(i, i + 10));\n return n ? i += n[0].length : -1;\n}", "function d3_time_parseWeekday(date, string, i) {\n d3_time_weekdayRe.lastIndex = 0;\n var n = d3_time_weekdayRe.exec(string.substring(i, i + 10));\n return n ? i += n[0].length : -1;\n}", "function calcDayOfWeek(date) {\n let dayOfWeek = new Date(date).toLocaleString('en-us', {weekday: 'long'});\n return dayOfWeek;\n }", "function getDay(day) {\n const today = new Date().getDay();\n var week = [\n { name: 'ned', day: 0 },\n { name: 'pon', day: 1 },\n { name: 'uto', day: 2 },\n { name: 'sre', day: 3 },\n { name: 'čet', day: 4 },\n { name: 'pet', day: 5 },\n { name: 'sub', day: 6 },\n { name: 'ned', day: 7 },\n { name: 'pon', day: 8 },\n { name: 'uto', day: 9 },\n { name: 'sre', day: 10 },\n { name: 'čet', day: 11 },\n { name: 'pet', day: 12 },\n { name: 'sub', day: 13 }\n ];\n return week[today + day].name\n}", "function dayToInt(day) {\n switch(day) {\n case 'M':\n return _dInc;\n case 'T':\n return _dInc * 2;\n case 'W':\n return _dInc * 3;\n case 'R':\n return _dInc * 4;\n case 'F':\n return _dInc * 5;\n }\n }", "get dayOfWeek() {\n return ((this.date.getUTCDay() + 6) % 7);\n }", "function getDayType(day)\r\n{\r\n\tswitch(day)\r\n\t{\r\n\t\t//Weekdays\r\n\t\tcase 1: //Monday\r\n\t\tcase 2: //Tuesday\r\n\t\tcase 3: //Wednesday\r\n\t\tcase 4: //Thursday\r\n\t\tcase 5: return \"Weekday\"; break; //Friday\r\n\r\n\t\t//Weekends\r\n\t\tcase 6: //Saturday\r\n\t\tcase 0: return \"Weekend\"; break; //Sunday\r\n\r\n\t\t//Otherwise\r\n\t\tdefault: return null; break; //Invalid date\r\n\t}\r\n}", "function get_day_name(day) {\n switch (day) {\n case 0:\n return \"ѕн\";\n case 1:\n return \"¬т\";\n case 2:\n return \"—р\";\n case 3:\n return \"„т\";\n case 4:\n return \"ѕт\";\n case 5:\n return \"—б\";\n case 6:\n return \"¬с\";\n\n default:\n abort(\"Incorrect day of the week!\");\n return \"???\";\n }\n}", "function dayofweek(d,m,y){\n let t = [ 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 ];\n y -= m < 3;\n return ( y + y/4 - y/100 + y/400 + t[m-1] + d) % 7;\n}", "function dayWeek() {\n \n var weekday = new Array(7);\n weekday[0] = \"Sunday.\";\n weekday[1] = \"Monday.\";\n weekday[2] = \"Tuesday.\";\n weekday[3] = \"Wednesday.\";\n weekday[4] = \"Thursday.\";\n weekday[5] = \"Friday.\";\n weekday[6] = \"Saturday.\";\n \n var n = weekday[d.getDay()];\n document.getElementById(\"answer1\").innerHTML = \"Today is \" + n;\n \n}", "function sanitizeDOW(dow, day) {\n return dow.length < 6 && day >= 0 && day < 7 ? pushUnique(dow, day) : dow;\n }", "function getDay() {\n return ''+ this._day.getDay();\n }", "dayOfWeek(day, month, year) {\n var y0 = year - Math.floor((14 - month) / 12);\n var x = y0 + Math.floor((y0 / 4)) - Math.floor((y0 / 100)) + Math.floor((y0 / 400));\n m0 = month + 12 * Math.floor((14 - month) / 12) - 2;\n var d0 = (day + x + Math.floor((31 * m0) / 12)) % 7;\n console.log(d0);\n var res = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wendsday\", \"Thursday\", \"Friday\", \"saturday\"];\n if (d0 <= res.length) {\n console.log(\"The day falls on :\" + res[d0])\n } else {\n console.log(\"Invalid day \")\n }\n }", "function getMondayToFridayFromWeekNum(weekNum, year) {\n var date = new Date(year, 0, (1 + (weekNum - 1) * 7));\n var monday = new Date(date.setDate(date.getDate() - date.getDay() + 1));\n var friday = new Date(date.setDate(date.getDate() - date.getDay() + 5));\n // while (monday.getDay() !== 1) {\n // monday.setDate(monday.getDate());\n // }\n // var friday = addDays(monday, 4)\n var fri = [friday.getMonth() + 1, friday.getDate(), friday.getFullYear()].join('/');\n var mon = [monday.getMonth() + 1, monday.getDate(), monday.getFullYear()].join('/');\n return mon + ' - ' + fri;\n\n }", "function getDayOfWeek(date) {\n var dow = ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'];\n return dow[date.getDay()];\n}", "function getDayOfWeek() {\n var string = this._day.getDayOfWeek();\n switch(this._day.getDayOfWeek()) {\n case 1:\n string = 'Lundi';\n break;\n case 2:\n string = 'Mardi';\n break;\n case 3:\n string = 'Mercredi';\n break;\n case 4:\n string = 'Jeudi';\n break;\n case 5:\n string = 'Vendredi';\n break;\n case 6:\n string = 'Samedi';\n break;\n case 7:\n string = 'Dimanche';\n break;\n }\n\n return string;\n }", "function weekdayCalculation() {\n\t\t\t//define local variables\n\t\t\tvar daysOfWeek = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\t\t\tvar currentDate = new Date(self.year, self.activedate.month - 1, self.activedate.day);\n\t\t\tvar wkdayNum = currentDate.getDay();\n\t\t\tself.activedate.wkday = daysOfWeek[wkdayNum];\n\t\t}", "function dayofweek() {\n var d = new Date();\n var weekday = new Array(7);\n weekday[0] = \"Sunday\";\n weekday[1] = \"Monday\";\n weekday[2] = \"Tuesday\";\n weekday[3] = \"Wednesday\";\n weekday[4] = \"Thursday\";\n weekday[5] = \"Friday\";\n weekday[6] = \"Saturday\";\n\n var n = weekday[d.getDay()];\n document.getElementById(\"dayoweek\").innerHTML = n;\n}", "function danVtednu(unixTime){\n\tvar d = new Date(unixTime); \n\tvar n = d.getDay();\n\td=null;\n\treturn n;\n}", "function day() {\n var week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n var d = new Date();\n var n = d.getDay();\n console.log(n);\n return week[n];\n}", "getDay(input) {\n let parsed = Day.parse(input);\n if (parsed) {\n let dayCount = parsed.start().daysBetween(this.days[0], Op.DOWN, false);\n return this.days[dayCount];\n }\n return null;\n }", "function findDayOfWeek(apiDay) {\n var dayDate = new Date(apiDay);\n var day = dayDate.getDay();\n var dayOfWeek;\n switch (day) {\n case 0:\n dayOfWeek = \"Sunday\";\n break;\n case 1:\n dayOfWeek = \"Monday\";\n break;\n case 2:\n dayOfWeek = \"Tuesday\";\n break;\n case 3:\n dayOfWeek = \"Wednesday\";\n break;\n case 4:\n dayOfWeek = \"Thursday\";\n break;\n case 5:\n dayOfWeek = \"Friday\";\n break;\n case 6:\n dayOfWeek = \"Saturday\";\n break;\n default:\n break;\n }\n return dayOfWeek;\n}", "getDayNo(date) {\n\t\t// return new Date(date).getUTCDate();// 1\n\t\treturn Moment(date).format('DD');// 01\n\t}", "function calculateweekday(birthdate) {\n\nlet [dayofmonth, monthofyear, yearofbirth] = birthdate;\nlet zerobasedcentury, yearofcentury;\n\n//Counting days of the month\nif (monthofyear <= 2) {\n monthofyear += 12;\n yearofbirth -= 1;\n}\n\n//Splitting the year into century code to year code\nzerobasedcentury = parseInt(yearofbirth / 100);\nyearofcentury = yearofbirth % 100;\n\nlet dayofweek = \n(dayofmonth + \n parseInt(\n 2.6 * (monthofyear + 1) + \n yearofcentury + \n parseInt(yearofcentury / 4) +\n parseInt(zerobasedcentury / 4) + \n 5 * zerobasedcentury\n )) % 7;\n\n//Day of week indexing\nreturn dayofweek;\n}", "function getDay(date) {\n return getDateTime(date).substring(0, 10);\n}", "function getMonday(d) {\n var day = d.getDay(),\n diff = d.getDate() - day + (day == 0 ? -6:1); // adjust when day is sunday\n return new Date(d.setDate(diff));\n }", "function getDay(date) {\n var day = date.getDate();\n var result = day;\n \n if ((day % 10 == 1 || day == 1) && day != 11) {\n result += \"st\";\n } else if ((day % 10 == 2 || day == 2) && day != 12) {\n result += \"nd\";\n } else if ((day % 10 == 3 || day == 3) && day != 13) {\n result += \"rd\";\n } else {\n result += \"th\";\n }\n \n return result;\n}", "ddd (date, dateLocale) {\n return dateLocale.daysShort[ date.getDay() ]\n }", "function dayFinder(date) {\n var newDate = new Date(date);\n switch(newDate.getDay()) {\n case 0:\n return \"Sunday\";\n case 1:\n return \"Monday\";\n case 2:\n return \"Tuesday\";\n case 3:\n return \"Wednesday\";\n case 4:\n return \"Thursday\";\n case 5:\n return \"Friday\";\n case 6:\n return \"Saturday\";\n break;\n }\n}", "dayOfWeek(m,d,y){\n var year = (y-(Math.floor(14-m)/12));\n var x = year+Math.floor((year/4))-Math.floor((year/100))+Math.floor((year/400));\n var month = m+12 *(Math.floor((14-m)/12))-2;\n day = Math.ceil(((d+x+Math.floor(31*month/12))%7));\n return day;\n }", "function weekdayToFullDate(weekday) {\n const weekdays = {\n Mo: 1,\n Tu: 2,\n We: 3,\n Th: 4,\n Fr: 5,\n };\n\n const d = new Date();\n const today = d.getDay();\n const diff = weekdays[weekday] - today;\n\n d.setDate(d.getDate() + diff);\n const fullDate = getISOSDate(d);\n console.log(fullDate);\n\n return fullDate;\n}", "function daysOfWeek(date) {\n\n var weekday = new Array(7);\n weekday[0] = \"Sunday\";\n weekday[1] = \"Monday\";\n weekday[2] = \"Tuesday\";\n weekday[3] = \"Wednesday\";\n weekday[4] = \"Thursday\";\n weekday[5] = \"Friday\";\n weekday[6] = \"Saturday\";\n\n return weekday[date.getDay()];\n}", "function getDay (){\n const dayOfWeek = new Date();\n return dayOfWeek.getDay();\n}", "function getDay(date) {\n // получить номер дня недели, от 0(пн) до 6(вс)\n var day = date.getDay();\n if (day == 0) day = 7;\n return day - 1;\n}", "function weekCycler (day) {\n day += 1;\n if (day > 6) {\n day = 0;\n }\n return day\n}", "function whatDayIsIt(){\n let days = [ \"Sunday\", \"Monday\", \"Tuesday\",\"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]\n return days[(new Date()).getDay()]\n}", "function calculateDayOfWk() {\n var userDetails = validateForm();\n var date = userDetails.date;\n var month = userDetails.month;\n var year = userDetails.year;\n\n var my_a = Math.floor((14 - month) / 12);\n var my_y = year - my_a;\n var my_m = month + 12 * my_a - 2;\n userDayOfWeek = (date + my_y + Math.floor(my_y / 4) - Math.floor(my_y / 100) +\n Math.floor(year / 400) + Math.floor((31 * my_m) / 12)) % 7;\n\n // var dayOfWeek = days[userDayOfWeek];\n\n // alert(dayOfWeek);\n return userDayOfWeek;\n\n}", "function getWeekDay() {\r\n /* let week = ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],\r\n currentDay = new Date(),\r\n day = currentDay.getDay();\r\n return week[day]; */\r\n\r\n let options = {\r\n weekday: 'short',\r\n },\r\n currentDay = new Date();\r\n return currentDay.toLocaleString(\"ru\", options);\r\n}", "function convToDate(date) {\n var dateToConvert = new Date(date);\n var day = dateToConvert.getUTCDay();\n\n switch(day) {\n case 0:\n return \"Sunday\";\n case 1:\n return \"Monday\";\n case 4:\n return \"Thursday\";\n case 6:\n return \"Saturday\"\n }\n }", "function getDay(date) {\n return date.getDay() >= 1 ? date.getDay() - 1 : 6;\n}", "function getDate() {\r\n var dateNum = new Date().getDay();\r\n if (dateNum === 0) {\r\n return 'Sunday';\r\n } else if (dateNum === 1) {\r\n return 'Monday';\r\n } else if (dateNum === 2) {\r\n return 'Tuesday';\r\n } else if (dateNum === 3) {\r\n return 'Wednesday';\r\n } else if (dateNum === 4) {\r\n return 'Thursday';\r\n } else if (dateNum === 5) {\r\n return 'Friday';\r\n } else {\r\n return 'Saturday';\r\n }\r\n\r\n }", "getWeekDay(dt) {\n if (dt != 'undefined') {\n let dayNum = new Date(dt * 1000).getDay()\n let days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n let result = days[dayNum];\n console.log(result);\n return result;\n }\n }", "function getDayName(day) {\n switch (day) {\n case \"mon\":\n return \"Monday\";\n case \"tue\":\n return \"Tuesday\";\n case \"wed\":\n return \"Wednesday\";\n case \"thu\":\n return \"Thursday\";\n case \"fri\":\n return \"Friday\";\n case \"sat\":\n return \"Saturday\";\n case \"sun\":\n return \"Sunday\";\n }\n}", "function dayOfWeek(dd, mm, yy) {\n if (dd > 31 || dd < 1 || mm > 12 || mm < 1) {\n System.err.println(\"Invalid date!\");\n rl.close();\n }\n\n // Formulas for Gregorian calendar to determine the day of the week\n var y = yy - Math.floor((14 - mm) / 12);\n var x = (y + Math.floor(y / 4) - Math.floor(y / 100) + Math.floor(y / 400));\n var m = mm + 12 * Math.floor((14 - mm) / 12) - 2;\n var d = (dd + x + Math.floor(31 * m / 12)) % 7;\n\n //Array to store the names of days of the week.\n // var days = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n // console.log(\"The day on \" + dd + \"/\" + mm + \"/\" + yy + \" is: \" + d + \" (\" + days[d] + \")\");\n return d;\n rl.close();\n}", "function dayOfTheWeek(century, year, month, date){\n return (( ( (century/4) -(2*century-1)) + ((5*(year/4)) ) + ((26*(month+1)/10)) + date )%7)\n //( ( (century/4) -2*century-1) + ((5*year/4) ) + ((26*(month+1)/10)) + date ) %7\n}", "function getDayName(dayOfWeek) {\n const days = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];\n return days[dayOfWeek];\n}", "function getDayOfWeek(date) {\n var dayOfWeek = new Date(date).getDay(); \n return isNaN(dayOfWeek) ? null : ['SUNDAY', 'MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY'][dayOfWeek];\n}", "function getWeekDay(date) {\n let days = ['su', 'mo', 'tu', 'we', 'th', 'fr', 'sa'];\n return days[date.getDay()]\n}", "function dayOfTheWeek(dayCount) {\n\n let daysSinceBase = dayCount - 1;\n\n var iterator = 0;\n\n for (let i = daysSinceBase; i < daysSinceBase + 7; i++) {\n\n if (i % 7 == 0) {\n return weekDays[iterator]\n }\n iterator++;\n }\n}" ]
[ "0.718631", "0.71509033", "0.70874995", "0.70505434", "0.70122325", "0.6974612", "0.68139863", "0.6798424", "0.676559", "0.67217565", "0.6688863", "0.66465515", "0.6643206", "0.6592927", "0.65855384", "0.6578126", "0.65620816", "0.6560162", "0.6550533", "0.65100604", "0.6505472", "0.64750844", "0.6469481", "0.6468007", "0.64650965", "0.6463488", "0.6449334", "0.6449307", "0.6440148", "0.6439251", "0.6437465", "0.64356375", "0.640397", "0.6395088", "0.6393765", "0.6390632", "0.6385598", "0.63815457", "0.6363198", "0.6363198", "0.6363198", "0.63489735", "0.633813", "0.63368213", "0.63318694", "0.6308105", "0.630476", "0.6291569", "0.62763524", "0.6268518", "0.62535036", "0.62518835", "0.6239133", "0.6239133", "0.6233025", "0.62085724", "0.6207524", "0.6201317", "0.61965775", "0.61918324", "0.61639524", "0.61486524", "0.614601", "0.61456317", "0.6142629", "0.61387724", "0.6137277", "0.6134938", "0.61248976", "0.61244345", "0.6115084", "0.606835", "0.6067091", "0.6062082", "0.60566884", "0.60542816", "0.6045922", "0.60440403", "0.6039236", "0.60384196", "0.60351056", "0.60320014", "0.6028811", "0.60272187", "0.6026237", "0.60243607", "0.6023024", "0.60180336", "0.6010786", "0.60054654", "0.6003335", "0.6001196", "0.59780496", "0.59741104", "0.59659797", "0.59651583", "0.5960581", "0.5956772", "0.59510213", "0.594757", "0.5945815" ]
0.0
-1
Get Coordinates bas off Zip
function getZip(zip) { return new Promise((resolve, reject) => { openDataZip(zip) .then((data) => { const location = JSON.parse(data).records[0].fields resolve({ city: location.city, lon: location.longitude, lat: location.latitude }) }) .catch((error) => { reject(error) }) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCoordsFromZip(zipCode) {\n var coords;\n\n $.ajax({\n method: \"GET\",\n url: \"/weather/zipCode\",\n data: {\n zipCode: zipCode,\n },\n async: false,\n success: function (data) {\n coords = {\n lat: data.coord.lat,\n lon: data.coord.lon,\n cityName: data.name,\n };\n },\n error: function (xhr, status, error) {\n var errorMessage = xhr.status + \": \" + xhr.statusText;\n console.log(\"Error: \" + errorMessage);\n coords = null;\n },\n });\n\n return coords;\n}", "toGeo(locationZip) {\n return locationData[locationZip];\n }", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.479632090000000E+02, -0.122109385000000E+03),\n new google.maps.LatLng( 0.479606920000000E+02, -0.122107859000000E+03),\n new google.maps.LatLng( 0.479542830000000E+02, -0.122108286000000E+03),\n new google.maps.LatLng( 0.479537560000000E+02, -0.122110148000000E+03),\n new google.maps.LatLng( 0.479549620000000E+02, -0.122114527000000E+03),\n new google.maps.LatLng( 0.479635980000000E+02, -0.122114786000000E+03),\n new google.maps.LatLng( 0.479635980000000E+02, -0.122110117000000E+03),\n new google.maps.LatLng( 0.479632090000000E+02, -0.122109385000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.482327670000000E+02, -0.117126872000000E+03),\n new google.maps.LatLng( 0.482332720000000E+02, -0.117130532000000E+03),\n new google.maps.LatLng( 0.482351490000000E+02, -0.117137269000000E+03),\n new google.maps.LatLng( 0.482383740000000E+02, -0.117143697000000E+03),\n new google.maps.LatLng( 0.482364950000000E+02, -0.117133777000000E+03),\n new google.maps.LatLng( 0.482333380000000E+02, -0.117126803000000E+03),\n new google.maps.LatLng( 0.482327670000000E+02, -0.117126872000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.486654400000000E+02, -0.118063254000000E+03),\n new google.maps.LatLng( 0.486658510000000E+02, -0.118060495000000E+03),\n new google.maps.LatLng( 0.486650060000000E+02, -0.118057149000000E+03),\n new google.maps.LatLng( 0.486645260000000E+02, -0.118057046000000E+03),\n new google.maps.LatLng( 0.486624680000000E+02, -0.118068359000000E+03),\n new google.maps.LatLng( 0.486632600000000E+02, -0.118070864000000E+03),\n new google.maps.LatLng( 0.486641590000000E+02, -0.118070499000000E+03),\n new google.maps.LatLng( 0.486654400000000E+02, -0.118063254000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.481313870000000E+02, -0.119050638000000E+03),\n new google.maps.LatLng( 0.481308040000000E+02, -0.119051590000000E+03),\n new google.maps.LatLng( 0.481311690000000E+02, -0.119053159000000E+03),\n new google.maps.LatLng( 0.481384690000000E+02, -0.119064397000000E+03),\n new google.maps.LatLng( 0.481384690000000E+02, -0.119064397000000E+03),\n new google.maps.LatLng( 0.481383780000000E+02, -0.119062237000000E+03),\n new google.maps.LatLng( 0.481340360000000E+02, -0.119053767000000E+03),\n new google.maps.LatLng( 0.481313870000000E+02, -0.119050638000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.463090570000000E+02, -0.119254227000000E+03),\n new google.maps.LatLng( 0.463152570000000E+02, -0.119255227000000E+03),\n new google.maps.LatLng( 0.463215570000000E+02, -0.119253527000000E+03),\n new google.maps.LatLng( 0.463218570000000E+02, -0.119252627000000E+03),\n new google.maps.LatLng( 0.463212570000000E+02, -0.119251827000000E+03),\n new google.maps.LatLng( 0.463121570000000E+02, -0.119251527000000E+03),\n new google.maps.LatLng( 0.463093570000000E+02, -0.119253227000000E+03),\n new google.maps.LatLng( 0.463090570000000E+02, -0.119254227000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.464670130000000E+02, -0.122174355000000E+03),\n new google.maps.LatLng( 0.464695090000000E+02, -0.122171771000000E+03),\n new google.maps.LatLng( 0.464695090000000E+02, -0.122171771000000E+03),\n new google.maps.LatLng( 0.464685260000000E+02, -0.122169853000000E+03),\n new google.maps.LatLng( 0.464643590000000E+02, -0.122165444000000E+03),\n new google.maps.LatLng( 0.464643590000000E+02, -0.122165444000000E+03),\n new google.maps.LatLng( 0.464633860000000E+02, -0.122165761000000E+03),\n new google.maps.LatLng( 0.464633860000000E+02, -0.122165761000000E+03),\n new google.maps.LatLng( 0.464670130000000E+02, -0.122174355000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.471664690000000E+02, -0.122631740000000E+03),\n new google.maps.LatLng( 0.471673190000000E+02, -0.122630639000000E+03),\n new google.maps.LatLng( 0.471605190000000E+02, -0.122630339000000E+03),\n new google.maps.LatLng( 0.471574190000000E+02, -0.122628739000000E+03),\n new google.maps.LatLng( 0.471541190000000E+02, -0.122630139000000E+03),\n new google.maps.LatLng( 0.471514190000000E+02, -0.122633639000000E+03),\n new google.maps.LatLng( 0.471479190000000E+02, -0.122636339000000E+03),\n new google.maps.LatLng( 0.471468190000000E+02, -0.122638839000000E+03),\n new google.maps.LatLng( 0.471484190000000E+02, -0.122640439000000E+03),\n new google.maps.LatLng( 0.471543190000000E+02, -0.122637639000000E+03),\n new google.maps.LatLng( 0.471571190000000E+02, -0.122637339000000E+03),\n new google.maps.LatLng( 0.471640190000000E+02, -0.122634139000000E+03),\n new google.maps.LatLng( 0.471664690000000E+02, -0.122631740000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.485547070000000E+02, -0.122925607000000E+03),\n new google.maps.LatLng( 0.485554390000000E+02, -0.122928051000000E+03),\n new google.maps.LatLng( 0.485592780000000E+02, -0.122928807000000E+03),\n new google.maps.LatLng( 0.485605800000000E+02, -0.122927706000000E+03),\n new google.maps.LatLng( 0.485606710000000E+02, -0.122926054000000E+03),\n new google.maps.LatLng( 0.485600770000000E+02, -0.122924470000000E+03),\n new google.maps.LatLng( 0.485576550000000E+02, -0.122922853000000E+03),\n new google.maps.LatLng( 0.485569690000000E+02, -0.122922818000000E+03),\n new google.maps.LatLng( 0.485547070000000E+02, -0.122925607000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.487776893511001E+02, -0.122573203357158E+03),\n new google.maps.LatLng( 0.487775879934002E+02, -0.122573589999958E+03),\n new google.maps.LatLng( 0.487775879934002E+02, -0.122573589999958E+03),\n new google.maps.LatLng( 0.487796850000000E+02, -0.122577236000000E+03),\n new google.maps.LatLng( 0.487796850000000E+02, -0.122577236000000E+03),\n new google.maps.LatLng( 0.487800750000000E+02, -0.122575206000000E+03),\n new google.maps.LatLng( 0.487798150000000E+02, -0.122574260000000E+03),\n new google.maps.LatLng( 0.487776893511001E+02, -0.122573203357158E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.459437740000000E+02, -0.122786352000000E+03),\n new google.maps.LatLng( 0.459400930000000E+02, -0.122786682000000E+03),\n new google.maps.LatLng( 0.459355210000000E+02, -0.122788125000000E+03),\n new google.maps.LatLng( 0.459280010000000E+02, -0.122792257000000E+03),\n new google.maps.LatLng( 0.459246410000000E+02, -0.122797697000000E+03),\n new google.maps.LatLng( 0.459247790000000E+02, -0.122798647000000E+03),\n new google.maps.LatLng( 0.459336490000000E+02, -0.122797825000000E+03),\n new google.maps.LatLng( 0.459368260000000E+02, -0.122796153000000E+03),\n new google.maps.LatLng( 0.459437740000000E+02, -0.122786352000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.476556690000000E+02, -0.122785554000000E+03),\n new google.maps.LatLng( 0.476564510000000E+02, -0.122781089000000E+03),\n new google.maps.LatLng( 0.476564510000000E+02, -0.122781089000000E+03),\n new google.maps.LatLng( 0.476556510000000E+02, -0.122780379000000E+03),\n new google.maps.LatLng( 0.476531140000000E+02, -0.122780245000000E+03),\n new google.maps.LatLng( 0.476495270000000E+02, -0.122780823000000E+03),\n new google.maps.LatLng( 0.476411170000000E+02, -0.122784445000000E+03),\n new google.maps.LatLng( 0.476391060000000E+02, -0.122785934000000E+03),\n new google.maps.LatLng( 0.476366850000000E+02, -0.122789340000000E+03),\n new google.maps.LatLng( 0.476388420000000E+02, -0.122791397000000E+03),\n new google.maps.LatLng( 0.476392690000000E+02, -0.122804262000000E+03),\n new google.maps.LatLng( 0.476398410000000E+02, -0.122807644000000E+03),\n new google.maps.LatLng( 0.476411890000000E+02, -0.122809774000000E+03),\n new google.maps.LatLng( 0.476416470000000E+02, -0.122813866000000E+03),\n new google.maps.LatLng( 0.476392690000000E+02, -0.122820324000000E+03),\n new google.maps.LatLng( 0.476383550000000E+02, -0.122820493000000E+03),\n new google.maps.LatLng( 0.476366870000000E+02, -0.122819850000000E+03),\n new google.maps.LatLng( 0.476334640000000E+02, -0.122821135000000E+03),\n new google.maps.LatLng( 0.476333040000000E+02, -0.122829621000000E+03),\n new google.maps.LatLng( 0.476319090000000E+02, -0.122833475000000E+03),\n new google.maps.LatLng( 0.476209280000000E+02, -0.122839589000000E+03),\n new google.maps.LatLng( 0.476012270000000E+02, -0.122843768000000E+03),\n new google.maps.LatLng( 0.475986210000000E+02, -0.122846301000000E+03),\n new google.maps.LatLng( 0.475967690000000E+02, -0.122849307000000E+03),\n new google.maps.LatLng( 0.475932020000000E+02, -0.122852176000000E+03),\n new google.maps.LatLng( 0.475929530000000E+02, -0.122844742000000E+03),\n new google.maps.LatLng( 0.475933890000000E+02, -0.122839742000000E+03),\n new google.maps.LatLng( 0.475923160000000E+02, -0.122834505000000E+03),\n new google.maps.LatLng( 0.475864420000000E+02, -0.122836597000000E+03),\n new google.maps.LatLng( 0.475842240000000E+02, -0.122837879000000E+03),\n new google.maps.LatLng( 0.475832650000000E+02, -0.122837575000000E+03),\n new google.maps.LatLng( 0.475805450000000E+02, -0.122834601000000E+03),\n new google.maps.LatLng( 0.475753350000000E+02, -0.122835038000000E+03),\n new google.maps.LatLng( 0.475748770000000E+02, -0.122836220000000E+03),\n new google.maps.LatLng( 0.475750370000000E+02, -0.122838010000000E+03),\n new google.maps.LatLng( 0.475743510000000E+02, -0.122839259000000E+03),\n new google.maps.LatLng( 0.475648650000000E+02, -0.122845974000000E+03),\n new google.maps.LatLng( 0.475633560000000E+02, -0.122846006000000E+03),\n new google.maps.LatLng( 0.475622370000000E+02, -0.122843135000000E+03),\n new google.maps.LatLng( 0.475618260000000E+02, -0.122839961000000E+03),\n new google.maps.LatLng( 0.475622360000000E+02, -0.122838582000000E+03),\n new google.maps.LatLng( 0.475630380000000E+02, -0.122838876000000E+03),\n new google.maps.LatLng( 0.475637820000000E+02, -0.122842158000000E+03),\n new google.maps.LatLng( 0.475640670000000E+02, -0.122837801000000E+03),\n new google.maps.LatLng( 0.475626040000000E+02, -0.122835437000000E+03),\n new google.maps.LatLng( 0.475605020000000E+02, -0.122835132000000E+03),\n new google.maps.LatLng( 0.475586050000000E+02, -0.122835503000000E+03),\n new google.maps.LatLng( 0.475543070000000E+02, -0.122839012000000E+03),\n new google.maps.LatLng( 0.475512440000000E+02, -0.122844007000000E+03),\n new google.maps.LatLng( 0.475510140000000E+02, -0.122847248000000E+03),\n new google.maps.LatLng( 0.475501450000000E+02, -0.122850521000000E+03),\n new google.maps.LatLng( 0.475484070000000E+02, -0.122853052000000E+03),\n new google.maps.LatLng( 0.475415660000000E+02, -0.122870733000000E+03),\n new google.maps.LatLng( 0.475400120000000E+02, -0.122870326000000E+03),\n new google.maps.LatLng( 0.475366310000000E+02, -0.122866441000000E+03),\n new google.maps.LatLng( 0.475343240000000E+02, -0.122865089000000E+03),\n new google.maps.LatLng( 0.475330210000000E+02, -0.122864851000000E+03),\n new google.maps.LatLng( 0.475279930000000E+02, -0.122865487000000E+03),\n new google.maps.LatLng( 0.475244010000000E+02, -0.122872265000000E+03),\n new google.maps.LatLng( 0.475238980000000E+02, -0.122872804000000E+03),\n new google.maps.LatLng( 0.475214970000000E+02, -0.122873407000000E+03),\n new google.maps.LatLng( 0.475214980000000E+02, -0.122874320000000E+03),\n new google.maps.LatLng( 0.475214980000000E+02, -0.122874320000000E+03),\n new google.maps.LatLng( 0.475223680000000E+02, -0.122928480000000E+03),\n new google.maps.LatLng( 0.475224990000000E+02, -0.122950137000000E+03),\n new google.maps.LatLng( 0.475220600000000E+02, -0.122958467000000E+03),\n new google.maps.LatLng( 0.475220600000000E+02, -0.122958467000000E+03),\n new google.maps.LatLng( 0.475192930000000E+02, -0.122968487000000E+03),\n new google.maps.LatLng( 0.475178290000000E+02, -0.122970847000000E+03),\n new google.maps.LatLng( 0.475135320000000E+02, -0.122974353000000E+03),\n new google.maps.LatLng( 0.475104690000000E+02, -0.122974721000000E+03),\n new google.maps.LatLng( 0.475053950000000E+02, -0.122976471000000E+03),\n new google.maps.LatLng( 0.474998150000000E+02, -0.122981408000000E+03),\n new google.maps.LatLng( 0.474989630000000E+02, -0.122983655000000E+03),\n new google.maps.LatLng( 0.474985960000000E+02, -0.122989350000000E+03),\n new google.maps.LatLng( 0.475002460000000E+02, -0.122990161000000E+03),\n new google.maps.LatLng( 0.475009100000000E+02, -0.122989858000000E+03),\n new google.maps.LatLng( 0.475025550000000E+02, -0.122991411000000E+03),\n new google.maps.LatLng( 0.475046320000000E+02, -0.122995899000000E+03),\n new google.maps.LatLng( 0.475048370000000E+02, -0.122997350000000E+03),\n new google.maps.LatLng( 0.475040140000000E+02, -0.122998934000000E+03),\n new google.maps.LatLng( 0.475036750000000E+02, -0.123005069000000E+03),\n new google.maps.LatLng( 0.475048330000000E+02, -0.123005578000000E+03),\n new google.maps.LatLng( 0.475056780000000E+02, -0.123004465000000E+03),\n new google.maps.LatLng( 0.475062410000000E+02, -0.123004453000000E+03),\n new google.maps.LatLng( 0.475115960000000E+02, -0.123007103000000E+03),\n new google.maps.LatLng( 0.475136460000000E+02, -0.123012698000000E+03),\n new google.maps.LatLng( 0.475113180000000E+02, -0.123016230000000E+03),\n new google.maps.LatLng( 0.475100060000000E+02, -0.123020515000000E+03),\n new google.maps.LatLng( 0.475099960000000E+02, -0.123023829000000E+03),\n new google.maps.LatLng( 0.475120270000000E+02, -0.123029961000000E+03),\n new google.maps.LatLng( 0.475120270000000E+02, -0.123029961000000E+03),\n new google.maps.LatLng( 0.475202550000000E+02, -0.123023345000000E+03),\n new google.maps.LatLng( 0.475202550000000E+02, -0.123023345000000E+03),\n new google.maps.LatLng( 0.475242940000000E+02, -0.123020679000000E+03),\n new google.maps.LatLng( 0.475270810000000E+02, -0.123017539000000E+03),\n new google.maps.LatLng( 0.475285200000000E+02, -0.123015648000000E+03),\n new google.maps.LatLng( 0.475295930000000E+02, -0.123012610000000E+03),\n new google.maps.LatLng( 0.475324930000000E+02, -0.123007984000000E+03),\n new google.maps.LatLng( 0.475354850000000E+02, -0.123004269000000E+03),\n new google.maps.LatLng( 0.475493160000000E+02, -0.122990650000000E+03),\n new google.maps.LatLng( 0.475532030000000E+02, -0.122987345000000E+03),\n new google.maps.LatLng( 0.475574320000000E+02, -0.122984952000000E+03),\n new google.maps.LatLng( 0.475584380000000E+02, -0.122983501000000E+03),\n new google.maps.LatLng( 0.475583480000000E+02, -0.122979483000000E+03),\n new google.maps.LatLng( 0.475595380000000E+02, -0.122975095000000E+03),\n new google.maps.LatLng( 0.475624410000000E+02, -0.122974827000000E+03),\n new google.maps.LatLng( 0.475658000000000E+02, -0.122976349000000E+03),\n new google.maps.LatLng( 0.475710110000000E+02, -0.122970882000000E+03),\n new google.maps.LatLng( 0.475793770000000E+02, -0.122967644000000E+03),\n new google.maps.LatLng( 0.475841770000000E+02, -0.122964270000000E+03),\n new google.maps.LatLng( 0.475871970000000E+02, -0.122943225000000E+03),\n new google.maps.LatLng( 0.475892770000000E+02, -0.122937077000000E+03),\n new google.maps.LatLng( 0.475940530000000E+02, -0.122931975000000E+03),\n new google.maps.LatLng( 0.475964530000000E+02, -0.122928191000000E+03),\n new google.maps.LatLng( 0.475970240000000E+02, -0.122924508000000E+03),\n new google.maps.LatLng( 0.475979830000000E+02, -0.122922413000000E+03),\n new google.maps.LatLng( 0.476045420000000E+02, -0.122918795000000E+03),\n new google.maps.LatLng( 0.476088380000000E+02, -0.122917104000000E+03),\n new google.maps.LatLng( 0.476116720000000E+02, -0.122917711000000E+03),\n new google.maps.LatLng( 0.476152840000000E+02, -0.122919636000000E+03),\n new google.maps.LatLng( 0.476164260000000E+02, -0.122919670000000E+03),\n new google.maps.LatLng( 0.476213850000000E+02, -0.122916592000000E+03),\n new google.maps.LatLng( 0.476248140000000E+02, -0.122897051000000E+03),\n new google.maps.LatLng( 0.476281060000000E+02, -0.122891639000000E+03),\n new google.maps.LatLng( 0.476333560000000E+02, -0.122874727000000E+03),\n new google.maps.LatLng( 0.476325350000000E+02, -0.122871006000000E+03),\n new google.maps.LatLng( 0.476306860000000E+02, -0.122868401000000E+03),\n new google.maps.LatLng( 0.476297950000000E+02, -0.122868264000000E+03),\n new google.maps.LatLng( 0.476289030000000E+02, -0.122869683000000E+03),\n new google.maps.LatLng( 0.476270280000000E+02, -0.122871135000000E+03),\n new google.maps.LatLng( 0.476251430000000E+02, -0.122871673000000E+03),\n new google.maps.LatLng( 0.476252000000000E+02, -0.122870930000000E+03),\n new google.maps.LatLng( 0.476274640000000E+02, -0.122867619000000E+03),\n new google.maps.LatLng( 0.476304360000000E+02, -0.122866304000000E+03),\n new google.maps.LatLng( 0.476354200000000E+02, -0.122861137000000E+03),\n new google.maps.LatLng( 0.476420270000000E+02, -0.122856916000000E+03),\n new google.maps.LatLng( 0.476457520000000E+02, -0.122855803000000E+03),\n new google.maps.LatLng( 0.476473060000000E+02, -0.122854620000000E+03),\n new google.maps.LatLng( 0.476482440000000E+02, -0.122852930000000E+03),\n new google.maps.LatLng( 0.476545580000000E+02, -0.122832166000000E+03),\n new google.maps.LatLng( 0.476548780000000E+02, -0.122828615000000E+03),\n new google.maps.LatLng( 0.476539640000000E+02, -0.122827228000000E+03),\n new google.maps.LatLng( 0.476531410000000E+02, -0.122827126000000E+03),\n new google.maps.LatLng( 0.476519530000000E+02, -0.122827972000000E+03),\n new google.maps.LatLng( 0.476515410000000E+02, -0.122829832000000E+03),\n new google.maps.LatLng( 0.476500100000000E+02, -0.122831149000000E+03),\n new google.maps.LatLng( 0.476469010000000E+02, -0.122833617000000E+03),\n new google.maps.LatLng( 0.476415990000000E+02, -0.122836828000000E+03),\n new google.maps.LatLng( 0.476394960000000E+02, -0.122837537000000E+03),\n new google.maps.LatLng( 0.476373930000000E+02, -0.122836623000000E+03),\n new google.maps.LatLng( 0.476369590000000E+02, -0.122835304000000E+03),\n new google.maps.LatLng( 0.476379200000000E+02, -0.122832870000000E+03),\n new google.maps.LatLng( 0.476410740000000E+02, -0.122828982000000E+03),\n new google.maps.LatLng( 0.476436120000000E+02, -0.122820089000000E+03),\n new google.maps.LatLng( 0.476509940000000E+02, -0.122807068000000E+03),\n new google.maps.LatLng( 0.476566600000000E+02, -0.122791001000000E+03),\n new google.maps.LatLng( 0.476567270000000E+02, -0.122787618000000E+03),\n new google.maps.LatLng( 0.476542810000000E+02, -0.122784067000000E+03),\n new google.maps.LatLng( 0.476530920000000E+02, -0.122783323000000E+03),\n new google.maps.LatLng( 0.476519270000000E+02, -0.122783256000000E+03),\n new google.maps.LatLng( 0.476525660000000E+02, -0.122781260000000E+03),\n new google.maps.LatLng( 0.476531830000000E+02, -0.122780888000000E+03),\n new google.maps.LatLng( 0.476550570000000E+02, -0.122781157000000E+03),\n new google.maps.LatLng( 0.476559950000000E+02, -0.122782104000000E+03),\n new google.maps.LatLng( 0.476556690000000E+02, -0.122785554000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.484811083004488E+02, -0.122818113776554E+03),\n new google.maps.LatLng( 0.484811000000000E+02, -0.122818118000000E+03),\n new google.maps.LatLng( 0.484812820000000E+02, -0.122825611000000E+03),\n new google.maps.LatLng( 0.484821280000000E+02, -0.122825715000000E+03),\n new google.maps.LatLng( 0.484833620000000E+02, -0.122824821000000E+03),\n new google.maps.LatLng( 0.484868120000000E+02, -0.122821453000000E+03),\n new google.maps.LatLng( 0.484887367857422E+02, -0.122819171785742E+03),\n new google.maps.LatLng( 0.484893265857422E+02, -0.122817212185742E+03),\n new google.maps.LatLng( 0.484917260000000E+02, -0.122815232000000E+03),\n new google.maps.LatLng( 0.484986950000000E+02, -0.122816023000000E+03),\n new google.maps.LatLng( 0.484993520000000E+02, -0.122816813000000E+03),\n new google.maps.LatLng( 0.484995340000000E+02, -0.122820596000000E+03),\n new google.maps.LatLng( 0.485041610000000E+02, -0.122827095000000E+03),\n new google.maps.LatLng( 0.485055780000000E+02, -0.122828471000000E+03),\n new google.maps.LatLng( 0.485084570000000E+02, -0.122829813000000E+03),\n new google.maps.LatLng( 0.485097590000000E+02, -0.122831396000000E+03),\n new google.maps.LatLng( 0.485100100000000E+02, -0.122833597000000E+03),\n new google.maps.LatLng( 0.485093240000000E+02, -0.122837792000000E+03),\n new google.maps.LatLng( 0.485097120000000E+02, -0.122838617000000E+03),\n new google.maps.LatLng( 0.485115170000000E+02, -0.122840097000000E+03),\n new google.maps.LatLng( 0.485153790000000E+02, -0.122838174000000E+03),\n new google.maps.LatLng( 0.485186710000000E+02, -0.122831847000000E+03),\n new google.maps.LatLng( 0.485218250000000E+02, -0.122829440000000E+03),\n new google.maps.LatLng( 0.485224420000000E+02, -0.122828443000000E+03),\n new google.maps.LatLng( 0.485243170000000E+02, -0.122820531000000E+03),\n new google.maps.LatLng( 0.485246830000000E+02, -0.122816094000000E+03),\n new google.maps.LatLng( 0.485239750000000E+02, -0.122809936000000E+03),\n new google.maps.LatLng( 0.485239060000000E+02, -0.122802334000000E+03),\n new google.maps.LatLng( 0.485250250000000E+02, -0.122797484000000E+03),\n new google.maps.LatLng( 0.485245660000000E+02, -0.122788265000000E+03),\n new google.maps.LatLng( 0.485239605532555E+02, -0.122787495560840E+03),\n new google.maps.LatLng( 0.485239605532555E+02, -0.122787495560840E+03),\n new google.maps.LatLng( 0.485233994873270E+02, -0.122787407687624E+03),\n new google.maps.LatLng( 0.485230120000000E+02, -0.122787347000000E+03),\n new google.maps.LatLng( 0.485177990000000E+02, -0.122777467000000E+03),\n new google.maps.LatLng( 0.485095664352738E+02, -0.122779001806453E+03),\n new google.maps.LatLng( 0.485089110000000E+02, -0.122779124000000E+03),\n new google.maps.LatLng( 0.484953208059023E+02, -0.122799155517055E+03),\n new google.maps.LatLng( 0.484949230279716E+02, -0.122799741829167E+03),\n new google.maps.LatLng( 0.484944670000000E+02, -0.122800414000000E+03),\n new google.maps.LatLng( 0.484882271319172E+02, -0.122815404374305E+03),\n new google.maps.LatLng( 0.484878410000000E+02, -0.122816332000000E+03),\n new google.maps.LatLng( 0.484838880000000E+02, -0.122817912000000E+03),\n new google.maps.LatLng( 0.484811083004488E+02, -0.122818113776554E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.485608417098670E+02, -0.123014510898688E+03),\n new google.maps.LatLng( 0.485608200000000E+02, -0.123014461000000E+03),\n new google.maps.LatLng( 0.485521100000000E+02, -0.123005831000000E+03),\n new google.maps.LatLng( 0.485502590000000E+02, -0.123005592000000E+03),\n new google.maps.LatLng( 0.485463070000000E+02, -0.123007558000000E+03),\n new google.maps.LatLng( 0.485465140000000E+02, -0.123009313000000E+03),\n new google.maps.LatLng( 0.485446900000000E+02, -0.123018606000000E+03),\n new google.maps.LatLng( 0.485387940000000E+02, -0.123020367000000E+03),\n new google.maps.LatLng( 0.485378570000000E+02, -0.123020195000000E+03),\n new google.maps.LatLng( 0.485342880000000E+02, -0.123010082000000E+03),\n new google.maps.LatLng( 0.485334720000000E+02, -0.123006495000000E+03),\n new google.maps.LatLng( 0.485316800000000E+02, -0.123003513000000E+03),\n new google.maps.LatLng( 0.485285490000000E+02, -0.123003655000000E+03),\n new google.maps.LatLng( 0.485259900000000E+02, -0.122999301000000E+03),\n new google.maps.LatLng( 0.485265390000000E+02, -0.122996824000000E+03),\n new google.maps.LatLng( 0.485295810000000E+02, -0.122993697000000E+03),\n new google.maps.LatLng( 0.485331450000000E+02, -0.122994458000000E+03),\n new google.maps.LatLng( 0.485348380000000E+02, -0.122991604000000E+03),\n new google.maps.LatLng( 0.485361880000000E+02, -0.122987683000000E+03),\n new google.maps.LatLng( 0.485354810000000E+02, -0.122981971000000E+03),\n new google.maps.LatLng( 0.485335170000000E+02, -0.122979010000000E+03),\n new google.maps.LatLng( 0.485324440000000E+02, -0.122978425000000E+03),\n new google.maps.LatLng( 0.485316210000000E+02, -0.122979594000000E+03),\n new google.maps.LatLng( 0.485282380000000E+02, -0.122979935000000E+03),\n new google.maps.LatLng( 0.485271200000000E+02, -0.122977800000000E+03),\n new google.maps.LatLng( 0.485269600000000E+02, -0.122975736000000E+03),\n new google.maps.LatLng( 0.485282630000000E+02, -0.122974087000000E+03),\n new google.maps.LatLng( 0.485253620000000E+02, -0.122971607000000E+03),\n new google.maps.LatLng( 0.485222310000000E+02, -0.122971536000000E+03),\n new google.maps.LatLng( 0.485199680000000E+02, -0.122974011000000E+03),\n new google.maps.LatLng( 0.485198990000000E+02, -0.122976591000000E+03),\n new google.maps.LatLng( 0.485181600000000E+02, -0.122980614000000E+03),\n new google.maps.LatLng( 0.485151200000000E+02, -0.122981574000000E+03),\n new google.maps.LatLng( 0.485146630000000E+02, -0.122982674000000E+03),\n new google.maps.LatLng( 0.485152990000000E+02, -0.122992855000000E+03),\n new google.maps.LatLng( 0.485159820000000E+02, -0.122996433000000E+03),\n new google.maps.LatLng( 0.485165980000000E+02, -0.122998222000000E+03),\n new google.maps.LatLng( 0.485195910000000E+02, -0.122999567000000E+03),\n new google.maps.LatLng( 0.485212830000000E+02, -0.123004385000000E+03),\n new google.maps.LatLng( 0.485219730000000E+02, -0.123014945000000E+03),\n new google.maps.LatLng( 0.485175650000000E+02, -0.123019833000000E+03),\n new google.maps.LatLng( 0.485163540000000E+02, -0.123020488000000E+03),\n new google.maps.LatLng( 0.485097960000000E+02, -0.123021078000000E+03),\n new google.maps.LatLng( 0.485078990000000E+02, -0.123020701000000E+03),\n new google.maps.LatLng( 0.485065510000000E+02, -0.123018913000000E+03),\n new google.maps.LatLng( 0.485037160000000E+02, -0.123017334000000E+03),\n new google.maps.LatLng( 0.484941600000000E+02, -0.123022603000000E+03),\n new google.maps.LatLng( 0.484886050000000E+02, -0.123015079000000E+03),\n new google.maps.LatLng( 0.484836900000000E+02, -0.123010409000000E+03),\n new google.maps.LatLng( 0.484761710000000E+02, -0.123009971000000E+03),\n new google.maps.LatLng( 0.484730400000000E+02, -0.123009045000000E+03),\n new google.maps.LatLng( 0.484696340000000E+02, -0.123005578000000E+03),\n new google.maps.LatLng( 0.484669120000000E+02, -0.123001288000000E+03),\n new google.maps.LatLng( 0.484625310000000E+02, -0.122989603000000E+03),\n new google.maps.LatLng( 0.484615710000000E+02, -0.122989155000000E+03),\n new google.maps.LatLng( 0.484617610000000E+02, -0.122974313000000E+03),\n new google.maps.LatLng( 0.484629040000000E+02, -0.122970432000000E+03),\n new google.maps.LatLng( 0.484637730000000E+02, -0.122969745000000E+03),\n new google.maps.LatLng( 0.484667200000000E+02, -0.122971121000000E+03),\n new google.maps.LatLng( 0.484678400000000E+02, -0.122971259000000E+03),\n new google.maps.LatLng( 0.484683200000000E+02, -0.122970710000000E+03),\n new google.maps.LatLng( 0.484682750000000E+02, -0.122967480000000E+03),\n new google.maps.LatLng( 0.484655340000000E+02, -0.122962324000000E+03),\n new google.maps.LatLng( 0.484636840000000E+02, -0.122960193000000E+03),\n new google.maps.LatLng( 0.484614900000000E+02, -0.122959093000000E+03),\n new google.maps.LatLng( 0.484511610000000E+02, -0.122962009000000E+03),\n new google.maps.LatLng( 0.484511610000000E+02, -0.122962009000000E+03),\n new google.maps.LatLng( 0.484519580767813E+02, -0.122968963544498E+03),\n new google.maps.LatLng( 0.484578125027675E+02, -0.123020043775390E+03),\n new google.maps.LatLng( 0.484584595121017E+02, -0.123025688972078E+03),\n new google.maps.LatLng( 0.484600030000000E+02, -0.123039156000000E+03),\n new google.maps.LatLng( 0.484715220000000E+02, -0.123058154000000E+03),\n new google.maps.LatLng( 0.484794970000000E+02, -0.123067675000000E+03),\n new google.maps.LatLng( 0.484795186497200E+02, -0.123067760705016E+03),\n new google.maps.LatLng( 0.484814193241083E+02, -0.123075284928361E+03),\n new google.maps.LatLng( 0.484830432111329E+02, -0.123081713430126E+03),\n new google.maps.LatLng( 0.484834338443503E+02, -0.123083259834703E+03),\n new google.maps.LatLng( 0.484876014768793E+02, -0.123099758293440E+03),\n new google.maps.LatLng( 0.484925760000000E+02, -0.123119451000000E+03),\n new google.maps.LatLng( 0.485017431062243E+02, -0.123135331758852E+03),\n new google.maps.LatLng( 0.485052910000000E+02, -0.123141478000000E+03),\n new google.maps.LatLng( 0.485083060188377E+02, -0.123144814217174E+03),\n new google.maps.LatLng( 0.485139550000000E+02, -0.123151065000000E+03),\n new google.maps.LatLng( 0.485145081484725E+02, -0.123151496795738E+03),\n new google.maps.LatLng( 0.485157357270450E+02, -0.123152455061416E+03),\n new google.maps.LatLng( 0.485295440000000E+02, -0.123163234000000E+03),\n new google.maps.LatLng( 0.485356220000000E+02, -0.123164057000000E+03),\n new google.maps.LatLng( 0.485392550000000E+02, -0.123161853000000E+03),\n new google.maps.LatLng( 0.485476180000000E+02, -0.123161470000000E+03),\n new google.maps.LatLng( 0.485564860000000E+02, -0.123172412000000E+03),\n new google.maps.LatLng( 0.485621310000000E+02, -0.123176266000000E+03),\n new google.maps.LatLng( 0.485684830000000E+02, -0.123175852000000E+03),\n new google.maps.LatLng( 0.485722406703305E+02, -0.123171972793142E+03),\n new google.maps.LatLng( 0.485722550000000E+02, -0.123171958000000E+03),\n new google.maps.LatLng( 0.485769936353116E+02, -0.123172723146355E+03),\n new google.maps.LatLng( 0.485790860000000E+02, -0.123173061000000E+03),\n new google.maps.LatLng( 0.485791001308877E+02, -0.123173082293119E+03),\n new google.maps.LatLng( 0.485834634081147E+02, -0.123179657094419E+03),\n new google.maps.LatLng( 0.485869511127943E+02, -0.123184912539827E+03),\n new google.maps.LatLng( 0.485869700000000E+02, -0.123184941000000E+03),\n new google.maps.LatLng( 0.485863566271052E+02, -0.123195364271752E+03),\n new google.maps.LatLng( 0.485862781774168E+02, -0.123196697396232E+03),\n new google.maps.LatLng( 0.485862160000000E+02, -0.123197754000000E+03),\n new google.maps.LatLng( 0.485864522812820E+02, -0.123198045125962E+03),\n new google.maps.LatLng( 0.485902140000000E+02, -0.123202680000000E+03),\n new google.maps.LatLng( 0.485961780000000E+02, -0.123203026000000E+03),\n new google.maps.LatLng( 0.486070550000000E+02, -0.123195725000000E+03),\n new google.maps.LatLng( 0.486207472995959E+02, -0.123179996129946E+03),\n new google.maps.LatLng( 0.486218338638458E+02, -0.123178747951890E+03),\n new google.maps.LatLng( 0.486221150000000E+02, -0.123178425000000E+03),\n new google.maps.LatLng( 0.486236860000000E+02, -0.123151643000000E+03),\n new google.maps.LatLng( 0.486227891428400E+02, -0.123139742364888E+03),\n new google.maps.LatLng( 0.486227863453916E+02, -0.123139705244805E+03),\n new google.maps.LatLng( 0.486201710055677E+02, -0.123135644582323E+03),\n new google.maps.LatLng( 0.486205684819000E+02, -0.123130714018927E+03),\n new google.maps.LatLng( 0.486208993068228E+02, -0.123126610244382E+03),\n new google.maps.LatLng( 0.486215642517535E+02, -0.123118361820844E+03),\n new google.maps.LatLng( 0.486224510000000E+02, -0.123107362000000E+03),\n new google.maps.LatLng( 0.486128340000000E+02, -0.123098462000000E+03),\n new google.maps.LatLng( 0.486100920000000E+02, -0.123098254000000E+03),\n new google.maps.LatLng( 0.486040350000000E+02, -0.123102074000000E+03),\n new google.maps.LatLng( 0.485978200000000E+02, -0.123101552000000E+03),\n new google.maps.LatLng( 0.485949268454071E+02, -0.123088569908413E+03),\n new google.maps.LatLng( 0.485918160000000E+02, -0.123074611000000E+03),\n new google.maps.LatLng( 0.485830192331622E+02, -0.123061411773392E+03),\n new google.maps.LatLng( 0.485824048989345E+02, -0.123060489987373E+03),\n new google.maps.LatLng( 0.485821050000000E+02, -0.123060040000000E+03),\n new google.maps.LatLng( 0.485806413643851E+02, -0.123058718537695E+03),\n new google.maps.LatLng( 0.485714652332815E+02, -0.123050433749298E+03),\n new google.maps.LatLng( 0.485695711341577E+02, -0.123048723637458E+03),\n new google.maps.LatLng( 0.485692160000000E+02, -0.123048403000000E+03),\n new google.maps.LatLng( 0.485684571054774E+02, -0.123046477470140E+03),\n new google.maps.LatLng( 0.485634090000000E+02, -0.123033669000000E+03),\n new google.maps.LatLng( 0.485608210000000E+02, -0.123015046000000E+03),\n new google.maps.LatLng( 0.485608417098670E+02, -0.123014510898688E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.466258870000000E+02, -0.119410541000000E+03),\n new google.maps.LatLng( 0.466276010000000E+02, -0.119411071000000E+03),\n new google.maps.LatLng( 0.466281720000000E+02, -0.119412563000000E+03),\n new google.maps.LatLng( 0.466277390000000E+02, -0.119413525000000E+03),\n new google.maps.LatLng( 0.466300010000000E+02, -0.119414718000000E+03),\n new google.maps.LatLng( 0.466314860000000E+02, -0.119415016000000E+03),\n new google.maps.LatLng( 0.466338620000000E+02, -0.119414484000000E+03),\n new google.maps.LatLng( 0.466345700000000E+02, -0.119413887000000E+03),\n new google.maps.LatLng( 0.466347990000000E+02, -0.119412659000000E+03),\n new google.maps.LatLng( 0.466338390000000E+02, -0.119411001000000E+03),\n new google.maps.LatLng( 0.466290400000000E+02, -0.119409445000000E+03),\n new google.maps.LatLng( 0.466267320000000E+02, -0.119409545000000E+03),\n new google.maps.LatLng( 0.466258870000000E+02, -0.119410541000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.473588170000000E+02, -0.122802050000000E+03),\n new google.maps.LatLng( 0.473540170000000E+02, -0.122804150000000E+03),\n new google.maps.LatLng( 0.473479550000000E+02, -0.122807684000000E+03),\n new google.maps.LatLng( 0.473434800000000E+02, -0.122806499000000E+03),\n new google.maps.LatLng( 0.473356670000000E+02, -0.122804430000000E+03),\n new google.maps.LatLng( 0.473278290000000E+02, -0.122804620000000E+03),\n new google.maps.LatLng( 0.473084170000000E+02, -0.122813249000000E+03),\n new google.maps.LatLng( 0.472939170000000E+02, -0.122827449000000E+03),\n new google.maps.LatLng( 0.472847870000000E+02, -0.122839239000000E+03),\n new google.maps.LatLng( 0.472812170000000E+02, -0.122843850000000E+03),\n new google.maps.LatLng( 0.472729170000000E+02, -0.122850050000000E+03),\n new google.maps.LatLng( 0.472587170000000E+02, -0.122852950000000E+03),\n new google.maps.LatLng( 0.472531170000000E+02, -0.122852450000000E+03),\n new google.maps.LatLng( 0.472519560000000E+02, -0.122851876000000E+03),\n new google.maps.LatLng( 0.472438170000000E+02, -0.122847849000000E+03),\n new google.maps.LatLng( 0.472383170000000E+02, -0.122843349000000E+03),\n new google.maps.LatLng( 0.472269180000000E+02, -0.122837349000000E+03),\n new google.maps.LatLng( 0.472223180000000E+02, -0.122832448000000E+03),\n new google.maps.LatLng( 0.472182180000000E+02, -0.122825948000000E+03),\n new google.maps.LatLng( 0.472128180000000E+02, -0.122824248000000E+03),\n new google.maps.LatLng( 0.471942110000000E+02, -0.122821426000000E+03),\n new google.maps.LatLng( 0.471911180000000E+02, -0.122814047000000E+03),\n new google.maps.LatLng( 0.471867180000000E+02, -0.122807146000000E+03),\n new google.maps.LatLng( 0.471809670000000E+02, -0.122801413000000E+03),\n new google.maps.LatLng( 0.471741690000000E+02, -0.122792371000000E+03),\n new google.maps.LatLng( 0.471682860000000E+02, -0.122789350000000E+03),\n new google.maps.LatLng( 0.471551870000000E+02, -0.122775997000000E+03),\n new google.maps.LatLng( 0.471502120000000E+02, -0.122765789000000E+03),\n new google.maps.LatLng( 0.471496480000000E+02, -0.122765332000000E+03),\n new google.maps.LatLng( 0.471475600000000E+02, -0.122765193000000E+03),\n new google.maps.LatLng( 0.471448290000000E+02, -0.122763911000000E+03),\n new google.maps.LatLng( 0.471412160000000E+02, -0.122759500000000E+03),\n new google.maps.LatLng( 0.471381040000000E+02, -0.122754100000000E+03),\n new google.maps.LatLng( 0.471369920000000E+02, -0.122750830000000E+03),\n new google.maps.LatLng( 0.471266070000000E+02, -0.122718671000000E+03),\n new google.maps.LatLng( 0.471248180000000E+02, -0.122713404000000E+03),\n new google.maps.LatLng( 0.471190770000000E+02, -0.122701287000000E+03),\n new google.maps.LatLng( 0.471010410000000E+02, -0.122701821000000E+03),\n new google.maps.LatLng( 0.470989890000000E+02, -0.122700875000000E+03),\n new google.maps.LatLng( 0.470971420000000E+02, -0.122696069000000E+03),\n new google.maps.LatLng( 0.470962040000000E+02, -0.122695459000000E+03),\n new google.maps.LatLng( 0.470932590000000E+02, -0.122697229000000E+03),\n new google.maps.LatLng( 0.470917100000000E+02, -0.122697473000000E+03),\n new google.maps.LatLng( 0.470902830000000E+02, -0.122696969000000E+03),\n new google.maps.LatLng( 0.470888410000000E+02, -0.122697702000000E+03),\n new google.maps.LatLng( 0.470877890000000E+02, -0.122702874000000E+03),\n new google.maps.LatLng( 0.470857740000000E+02, -0.122707437000000E+03),\n new google.maps.LatLng( 0.470825780000000E+02, -0.122705651000000E+03),\n new google.maps.LatLng( 0.470801360000000E+02, -0.122706323000000E+03),\n new google.maps.LatLng( 0.470783660000000E+02, -0.122707605000000E+03),\n new google.maps.LatLng( 0.470771070000000E+02, -0.122707605000000E+03),\n new google.maps.LatLng( 0.470739790000000E+02, -0.122704980000000E+03),\n new google.maps.LatLng( 0.470719810000000E+02, -0.122704110000000E+03),\n new google.maps.LatLng( 0.470719810000000E+02, -0.122704110000000E+03),\n new google.maps.LatLng( 0.470772370000000E+02, -0.122708306000000E+03),\n new google.maps.LatLng( 0.470807920000000E+02, -0.122706643000000E+03),\n new google.maps.LatLng( 0.470824560000000E+02, -0.122706353000000E+03),\n new google.maps.LatLng( 0.470835390000000E+02, -0.122706384000000E+03),\n new google.maps.LatLng( 0.470856830000000E+02, -0.122708215000000E+03),\n new google.maps.LatLng( 0.470876670000000E+02, -0.122704049000000E+03),\n new google.maps.LatLng( 0.470888110000000E+02, -0.122699136000000E+03),\n new google.maps.LatLng( 0.470895740000000E+02, -0.122697900000000E+03),\n new google.maps.LatLng( 0.470929310000000E+02, -0.122698220000000E+03),\n new google.maps.LatLng( 0.470965090000000E+02, -0.122696481000000E+03),\n new google.maps.LatLng( 0.470971960000000E+02, -0.122697381000000E+03),\n new google.maps.LatLng( 0.470981420000000E+02, -0.122701409000000E+03),\n new google.maps.LatLng( 0.470972030000000E+02, -0.122702203000000E+03),\n new google.maps.LatLng( 0.470951200000000E+02, -0.122702401000000E+03),\n new google.maps.LatLng( 0.470934340000000E+02, -0.122704446000000E+03),\n new google.maps.LatLng( 0.470933500000000E+02, -0.122705148000000E+03),\n new google.maps.LatLng( 0.470935640000000E+02, -0.122705789000000E+03),\n new google.maps.LatLng( 0.470951510000000E+02, -0.122703286000000E+03),\n new google.maps.LatLng( 0.470960050000000E+02, -0.122703424000000E+03),\n new google.maps.LatLng( 0.470946860000000E+02, -0.122707986000000E+03),\n new google.maps.LatLng( 0.470961580000000E+02, -0.122712366000000E+03),\n new google.maps.LatLng( 0.470974250000000E+02, -0.122713221000000E+03),\n new google.maps.LatLng( 0.470981490000000E+02, -0.122714731000000E+03),\n new google.maps.LatLng( 0.470977140000000E+02, -0.122715204000000E+03),\n new google.maps.LatLng( 0.470969440000000E+02, -0.122714853000000E+03),\n new google.maps.LatLng( 0.470937620000000E+02, -0.122711786000000E+03),\n new google.maps.LatLng( 0.470932970000000E+02, -0.122712107000000E+03),\n new google.maps.LatLng( 0.470936963163086E+02, -0.122713482568945E+03),\n new google.maps.LatLng( 0.470947265163086E+02, -0.122714398168945E+03),\n new google.maps.LatLng( 0.470944260000000E+02, -0.122715113000000E+03),\n new google.maps.LatLng( 0.470936630000000E+02, -0.122715326000000E+03),\n new google.maps.LatLng( 0.470935640000000E+02, -0.122716257000000E+03),\n new google.maps.LatLng( 0.470945109994141E+02, -0.122716521778125E+03),\n new google.maps.LatLng( 0.470951890000000E+02, -0.122717570000000E+03),\n new google.maps.LatLng( 0.470949910000000E+02, -0.122717951000000E+03),\n new google.maps.LatLng( 0.470941970000000E+02, -0.122717768000000E+03),\n new google.maps.LatLng( 0.470940830000000E+02, -0.122719095000000E+03),\n new google.maps.LatLng( 0.470949473873047E+02, -0.122718892926563E+03),\n new google.maps.LatLng( 0.470954100000000E+02, -0.122719446000000E+03),\n new google.maps.LatLng( 0.470947080000000E+02, -0.122720576000000E+03),\n new google.maps.LatLng( 0.470936250000000E+02, -0.122721064000000E+03),\n new google.maps.LatLng( 0.470935640000000E+02, -0.122722040000000E+03),\n new google.maps.LatLng( 0.470939230000000E+02, -0.122722269000000E+03),\n new google.maps.LatLng( 0.470945790000000E+02, -0.122721598000000E+03),\n new google.maps.LatLng( 0.470956090000000E+02, -0.122722040000000E+03),\n new google.maps.LatLng( 0.470947850000000E+02, -0.122723993000000E+03),\n new google.maps.LatLng( 0.470964400000000E+02, -0.122722803000000E+03),\n new google.maps.LatLng( 0.470973100000000E+02, -0.122722986000000E+03),\n new google.maps.LatLng( 0.470967380000000E+02, -0.122724146000000E+03),\n new google.maps.LatLng( 0.470956700000000E+02, -0.122724817000000E+03),\n new google.maps.LatLng( 0.470921370000000E+02, -0.122726450000000E+03),\n new google.maps.LatLng( 0.470898560000000E+02, -0.122725413000000E+03),\n new google.maps.LatLng( 0.470885440000000E+02, -0.122725931000000E+03),\n new google.maps.LatLng( 0.470869650000000E+02, -0.122724528000000E+03),\n new google.maps.LatLng( 0.470850880000000E+02, -0.122723887000000E+03),\n new google.maps.LatLng( 0.470843940000000E+02, -0.122726984000000E+03),\n new google.maps.LatLng( 0.470862020000000E+02, -0.122728007000000E+03),\n new google.maps.LatLng( 0.470830360000000E+02, -0.122730784000000E+03),\n new google.maps.LatLng( 0.470777940000000E+02, -0.122729975000000E+03),\n new google.maps.LatLng( 0.470749870000000E+02, -0.122732584000000E+03),\n new google.maps.LatLng( 0.470745900000000E+02, -0.122731058000000E+03),\n new google.maps.LatLng( 0.470750250000000E+02, -0.122729151000000E+03),\n new google.maps.LatLng( 0.470740940000000E+02, -0.122727808000000E+03),\n new google.maps.LatLng( 0.470733080000000E+02, -0.122728693000000E+03),\n new google.maps.LatLng( 0.470727130000000E+02, -0.122730936000000E+03),\n new google.maps.LatLng( 0.470719120000000E+02, -0.122731791000000E+03),\n new google.maps.LatLng( 0.470709120000000E+02, -0.122731577000000E+03),\n new google.maps.LatLng( 0.470709120000000E+02, -0.122731577000000E+03),\n new google.maps.LatLng( 0.470713700000000E+02, -0.122732401000000E+03),\n new google.maps.LatLng( 0.470723930000000E+02, -0.122732218000000E+03),\n new google.maps.LatLng( 0.470741320000000E+02, -0.122728892000000E+03),\n new google.maps.LatLng( 0.470742240000000E+02, -0.122732660000000E+03),\n new google.maps.LatLng( 0.470748570000000E+02, -0.122733851000000E+03),\n new google.maps.LatLng( 0.470763370000000E+02, -0.122732126000000E+03),\n new google.maps.LatLng( 0.470779920000000E+02, -0.122731348000000E+03),\n new google.maps.LatLng( 0.470799760000000E+02, -0.122731043000000E+03),\n new google.maps.LatLng( 0.470817610000000E+02, -0.122732279000000E+03),\n new google.maps.LatLng( 0.470829060000000E+02, -0.122732111000000E+03),\n new google.maps.LatLng( 0.470851870000000E+02, -0.122730723000000E+03),\n new google.maps.LatLng( 0.470888030000000E+02, -0.122729502000000E+03),\n new google.maps.LatLng( 0.470991370000000E+02, -0.122727673000000E+03),\n new google.maps.LatLng( 0.471003620000000E+02, -0.122726999000000E+03),\n new google.maps.LatLng( 0.471022230000000E+02, -0.122728785000000E+03),\n new google.maps.LatLng( 0.471048330000000E+02, -0.122734461000000E+03),\n new google.maps.LatLng( 0.471073320000000E+02, -0.122741812000000E+03),\n new google.maps.LatLng( 0.471102070000000E+02, -0.122747811000000E+03),\n new google.maps.LatLng( 0.471106880000000E+02, -0.122751081000000E+03),\n new google.maps.LatLng( 0.471127520000000E+02, -0.122754344000000E+03),\n new google.maps.LatLng( 0.471149260000000E+02, -0.122755367000000E+03),\n new google.maps.LatLng( 0.471163150000000E+02, -0.122756648000000E+03),\n new google.maps.LatLng( 0.471201300000000E+02, -0.122763623000000E+03),\n new google.maps.LatLng( 0.471203130000000E+02, -0.122776425000000E+03),\n new google.maps.LatLng( 0.471216330000000E+02, -0.122777997000000E+03),\n new google.maps.LatLng( 0.471222580000000E+02, -0.122777203000000E+03),\n new google.maps.LatLng( 0.471221210000000E+02, -0.122776623000000E+03),\n new google.maps.LatLng( 0.471231360000000E+02, -0.122776394000000E+03),\n new google.maps.LatLng( 0.471238530000000E+02, -0.122776333000000E+03),\n new google.maps.LatLng( 0.471251040000000E+02, -0.122777294000000E+03),\n new google.maps.LatLng( 0.471263320000000E+02, -0.122780500000000E+03),\n new google.maps.LatLng( 0.471261110000000E+02, -0.122784482000000E+03),\n new google.maps.LatLng( 0.471271560000000E+02, -0.122786603000000E+03),\n new google.maps.LatLng( 0.471300250000000E+02, -0.122786863000000E+03),\n new google.maps.LatLng( 0.471369220000000E+02, -0.122789304000000E+03),\n new google.maps.LatLng( 0.471396530000000E+02, -0.122787488000000E+03),\n new google.maps.LatLng( 0.471418510000000E+02, -0.122787427000000E+03),\n new google.maps.LatLng( 0.471452300000000E+02, -0.122791349000000E+03),\n new google.maps.LatLng( 0.471478090000000E+02, -0.122792890000000E+03),\n new google.maps.LatLng( 0.471490910000000E+02, -0.122793470000000E+03),\n new google.maps.LatLng( 0.471526460000000E+02, -0.122793775000000E+03),\n new google.maps.LatLng( 0.471527760000000E+02, -0.122797514000000E+03),\n new google.maps.LatLng( 0.471497390000000E+02, -0.122800520000000E+03),\n new google.maps.LatLng( 0.471496550000000E+02, -0.122801375000000E+03),\n new google.maps.LatLng( 0.471510590000000E+02, -0.122801054000000E+03),\n new google.maps.LatLng( 0.471538670000000E+02, -0.122797896000000E+03),\n new google.maps.LatLng( 0.471584370000000E+02, -0.122799040000000E+03),\n new google.maps.LatLng( 0.471594590000000E+02, -0.122799818000000E+03),\n new google.maps.LatLng( 0.471593980000000E+02, -0.122800398000000E+03),\n new google.maps.LatLng( 0.471647310000000E+02, -0.122805022000000E+03),\n new google.maps.LatLng( 0.471642350000000E+02, -0.122807600000000E+03),\n new google.maps.LatLng( 0.471631980000000E+02, -0.122808440000000E+03),\n new google.maps.LatLng( 0.471613050000000E+02, -0.122808180000000E+03),\n new google.maps.LatLng( 0.471608550000000E+02, -0.122810240000000E+03),\n new google.maps.LatLng( 0.471630980000000E+02, -0.122810562000000E+03),\n new google.maps.LatLng( 0.471640720000000E+02, -0.122809819000000E+03),\n new google.maps.LatLng( 0.471648610000000E+02, -0.122809660000000E+03),\n new google.maps.LatLng( 0.471671040000000E+02, -0.122810607000000E+03),\n new google.maps.LatLng( 0.471688200000000E+02, -0.122811965000000E+03),\n new google.maps.LatLng( 0.471688510000000E+02, -0.122812622000000E+03),\n new google.maps.LatLng( 0.471709640000000E+02, -0.122812728000000E+03),\n new google.maps.LatLng( 0.471722920000000E+02, -0.122813705000000E+03),\n new google.maps.LatLng( 0.471779450000000E+02, -0.122815505000000E+03),\n new google.maps.LatLng( 0.471760000000000E+02, -0.122821090000000E+03),\n new google.maps.LatLng( 0.471731620000000E+02, -0.122822051000000E+03),\n new google.maps.LatLng( 0.471687140000000E+02, -0.122824951000000E+03),\n new google.maps.LatLng( 0.471644180000000E+02, -0.122826675000000E+03),\n new google.maps.LatLng( 0.471627400000000E+02, -0.122826553000000E+03),\n new google.maps.LatLng( 0.471617400000000E+02, -0.122827256000000E+03),\n new google.maps.LatLng( 0.471607260000000E+02, -0.122826431000000E+03),\n new google.maps.LatLng( 0.471551030000000E+02, -0.122827072000000E+03),\n new google.maps.LatLng( 0.471544010000000E+02, -0.122827514000000E+03),\n new google.maps.LatLng( 0.471463290000000E+02, -0.122827255000000E+03),\n new google.maps.LatLng( 0.471424230000000E+02, -0.122828216000000E+03),\n new google.maps.LatLng( 0.471397750000000E+02, -0.122828216000000E+03),\n new google.maps.LatLng( 0.471394400000000E+02, -0.122828659000000E+03),\n new google.maps.LatLng( 0.471360980000000E+02, -0.122826919000000E+03),\n new google.maps.LatLng( 0.471327490000000E+02, -0.122829238000000E+03),\n new google.maps.LatLng( 0.471327940000000E+02, -0.122828277000000E+03),\n new google.maps.LatLng( 0.471340840000000E+02, -0.122827178000000E+03),\n new google.maps.LatLng( 0.471329700000000E+02, -0.122827377000000E+03),\n new google.maps.LatLng( 0.471320090000000E+02, -0.122829620000000E+03),\n new google.maps.LatLng( 0.471277440000000E+02, -0.122830078000000E+03),\n new google.maps.LatLng( 0.471287200000000E+02, -0.122827819000000E+03),\n new google.maps.LatLng( 0.471283540000000E+02, -0.122827194000000E+03),\n new google.maps.LatLng( 0.471266910000000E+02, -0.122826873000000E+03),\n new google.maps.LatLng( 0.471246460000000E+02, -0.122829086000000E+03),\n new google.maps.LatLng( 0.471212510000000E+02, -0.122830596000000E+03),\n new google.maps.LatLng( 0.471199240000000E+02, -0.122830535000000E+03),\n new google.maps.LatLng( 0.471166430000000E+02, -0.122829818000000E+03),\n new google.maps.LatLng( 0.471158420000000E+02, -0.122828185000000E+03),\n new google.maps.LatLng( 0.471145600000000E+02, -0.122827316000000E+03),\n new google.maps.LatLng( 0.471144300000000E+02, -0.122825347000000E+03),\n new google.maps.LatLng( 0.471137290000000E+02, -0.122826431000000E+03),\n new google.maps.LatLng( 0.471134770000000E+02, -0.122822723000000E+03),\n new google.maps.LatLng( 0.471128740000000E+02, -0.122824645000000E+03),\n new google.maps.LatLng( 0.471121870000000E+02, -0.122824996000000E+03),\n new google.maps.LatLng( 0.471105930000000E+02, -0.122824569000000E+03),\n new google.maps.LatLng( 0.471094710000000E+02, -0.122825469000000E+03),\n new google.maps.LatLng( 0.471084870000000E+02, -0.122825530000000E+03),\n new google.maps.LatLng( 0.471072660000000E+02, -0.122824462000000E+03),\n new google.maps.LatLng( 0.471066790000000E+02, -0.122825637000000E+03),\n new google.maps.LatLng( 0.471042910000000E+02, -0.122826034000000E+03),\n new google.maps.LatLng( 0.471035590000000E+02, -0.122825469000000E+03),\n new google.maps.LatLng( 0.471054430000000E+02, -0.122824951000000E+03),\n new google.maps.LatLng( 0.471055960000000E+02, -0.122823287000000E+03),\n new google.maps.LatLng( 0.471019110000000E+02, -0.122823821000000E+03),\n new google.maps.LatLng( 0.471014334618555E+02, -0.122823534470312E+03),\n new google.maps.LatLng( 0.471010330000000E+02, -0.122821853000000E+03),\n new google.maps.LatLng( 0.471001250000000E+02, -0.122821136000000E+03),\n new google.maps.LatLng( 0.470996220000000E+02, -0.122821182000000E+03),\n new google.maps.LatLng( 0.471005760000000E+02, -0.122822067000000E+03),\n new google.maps.LatLng( 0.471007810000000E+02, -0.122823318000000E+03),\n new google.maps.LatLng( 0.470998890000000E+02, -0.122824539000000E+03),\n new google.maps.LatLng( 0.470959980000000E+02, -0.122824249000000E+03),\n new google.maps.LatLng( 0.470945640000000E+02, -0.122822555000000E+03),\n new google.maps.LatLng( 0.470923890000000E+02, -0.122823516000000E+03),\n new google.maps.LatLng( 0.470923890000000E+02, -0.122823516000000E+03),\n new google.maps.LatLng( 0.470926710000000E+02, -0.122823928000000E+03),\n new google.maps.LatLng( 0.470943190000000E+02, -0.122823226000000E+03),\n new google.maps.LatLng( 0.470956390000000E+02, -0.122824951000000E+03),\n new google.maps.LatLng( 0.470947770000000E+02, -0.122827987000000E+03),\n new google.maps.LatLng( 0.470949910000000E+02, -0.122828796000000E+03),\n new google.maps.LatLng( 0.470992400000000E+02, -0.122827316000000E+03),\n new google.maps.LatLng( 0.471013160000000E+02, -0.122827163000000E+03),\n new google.maps.LatLng( 0.471035430000000E+02, -0.122828155000000E+03),\n new google.maps.LatLng( 0.471064810000000E+02, -0.122828247000000E+03),\n new google.maps.LatLng( 0.471078460000000E+02, -0.122827606000000E+03),\n new google.maps.LatLng( 0.471082050000000E+02, -0.122828094000000E+03),\n new google.maps.LatLng( 0.471102340000000E+02, -0.122828414000000E+03),\n new google.maps.LatLng( 0.471109740000000E+02, -0.122828964000000E+03),\n new google.maps.LatLng( 0.471109900000000E+02, -0.122830017000000E+03),\n new google.maps.LatLng( 0.471140340000000E+02, -0.122831710000000E+03),\n new google.maps.LatLng( 0.471153310000000E+02, -0.122831466000000E+03),\n new google.maps.LatLng( 0.471165510000000E+02, -0.122834153000000E+03),\n new google.maps.LatLng( 0.471192680000000E+02, -0.122835999000000E+03),\n new google.maps.LatLng( 0.471203740000000E+02, -0.122838089000000E+03),\n new google.maps.LatLng( 0.471269120000000E+02, -0.122841370000000E+03),\n new google.maps.LatLng( 0.471302000000000E+02, -0.122842392000000E+03),\n new google.maps.LatLng( 0.471310090000000E+02, -0.122843491000000E+03),\n new google.maps.LatLng( 0.471305970000000E+02, -0.122844834000000E+03),\n new google.maps.LatLng( 0.471322220000000E+02, -0.122843689000000E+03),\n new google.maps.LatLng( 0.471322220000000E+02, -0.122841889000000E+03),\n new google.maps.LatLng( 0.471331840000000E+02, -0.122839966000000E+03),\n new google.maps.LatLng( 0.471362580000000E+02, -0.122845032000000E+03),\n new google.maps.LatLng( 0.471380660000000E+02, -0.122844391000000E+03),\n new google.maps.LatLng( 0.471390430000000E+02, -0.122843369000000E+03),\n new google.maps.LatLng( 0.471408210000000E+02, -0.122843125000000E+03),\n new google.maps.LatLng( 0.471440020000000E+02, -0.122844651000000E+03),\n new google.maps.LatLng( 0.471478550000000E+02, -0.122844651000000E+03),\n new google.maps.LatLng( 0.471496100000000E+02, -0.122841065000000E+03),\n new google.maps.LatLng( 0.471511130000000E+02, -0.122839722000000E+03),\n new google.maps.LatLng( 0.471515470000000E+02, -0.122838562000000E+03),\n new google.maps.LatLng( 0.471535690000000E+02, -0.122840683000000E+03),\n new google.maps.LatLng( 0.471557130000000E+02, -0.122840165000000E+03),\n new google.maps.LatLng( 0.471579100000000E+02, -0.122841202000000E+03),\n new google.maps.LatLng( 0.471590930000000E+02, -0.122841065000000E+03),\n new google.maps.LatLng( 0.471612140000000E+02, -0.122842728000000E+03),\n new google.maps.LatLng( 0.471629230000000E+02, -0.122841721000000E+03),\n new google.maps.LatLng( 0.471638380000000E+02, -0.122841980000000E+03),\n new google.maps.LatLng( 0.471646400000000E+02, -0.122844286000000E+03),\n new google.maps.LatLng( 0.471623580000000E+02, -0.122848329000000E+03),\n new google.maps.LatLng( 0.471648610000000E+02, -0.122850847000000E+03),\n new google.maps.LatLng( 0.471649450000000E+02, -0.122852327000000E+03),\n new google.maps.LatLng( 0.471624730000000E+02, -0.122855012000000E+03),\n new google.maps.LatLng( 0.471626020000000E+02, -0.122859758000000E+03),\n new google.maps.LatLng( 0.471614660000000E+02, -0.122862200000000E+03),\n new google.maps.LatLng( 0.471582540000000E+02, -0.122863619000000E+03),\n new google.maps.LatLng( 0.471577270000000E+02, -0.122868762000000E+03),\n new google.maps.LatLng( 0.471559340000000E+02, -0.122873431000000E+03),\n new google.maps.LatLng( 0.471546910000000E+02, -0.122875048000000E+03),\n new google.maps.LatLng( 0.471540630000000E+02, -0.122877399000000E+03),\n new google.maps.LatLng( 0.471502810000000E+02, -0.122881733000000E+03),\n new google.maps.LatLng( 0.471464820000000E+02, -0.122884479000000E+03),\n new google.maps.LatLng( 0.471438340000000E+02, -0.122893467000000E+03),\n new google.maps.LatLng( 0.471460700000000E+02, -0.122895328000000E+03),\n new google.maps.LatLng( 0.471461760000000E+02, -0.122896335000000E+03),\n new google.maps.LatLng( 0.471447950000000E+02, -0.122900502000000E+03),\n new google.maps.LatLng( 0.471442230000000E+02, -0.122901051000000E+03),\n new google.maps.LatLng( 0.471424230000000E+02, -0.122900334000000E+03),\n new google.maps.LatLng( 0.471404090000000E+02, -0.122900441000000E+03),\n new google.maps.LatLng( 0.471401110000000E+02, -0.122900914000000E+03),\n new google.maps.LatLng( 0.471396840000000E+02, -0.122903752000000E+03),\n new google.maps.LatLng( 0.471405460000000E+02, -0.122906926000000E+03),\n new google.maps.LatLng( 0.471402180000000E+02, -0.122907445000000E+03),\n new google.maps.LatLng( 0.471374250000000E+02, -0.122907277000000E+03),\n new google.maps.LatLng( 0.471278960000000E+02, -0.122903889000000E+03),\n new google.maps.LatLng( 0.471238300000000E+02, -0.122900867000000E+03),\n new google.maps.LatLng( 0.471183440000000E+02, -0.122894687000000E+03),\n new google.maps.LatLng( 0.471157270000000E+02, -0.122894275000000E+03),\n new google.maps.LatLng( 0.471138960000000E+02, -0.122893238000000E+03),\n new google.maps.LatLng( 0.471015290000000E+02, -0.122893894000000E+03),\n new google.maps.LatLng( 0.470987520000000E+02, -0.122894519000000E+03),\n new google.maps.LatLng( 0.470933580000000E+02, -0.122898365000000E+03),\n new google.maps.LatLng( 0.470916190000000E+02, -0.122898838000000E+03),\n new google.maps.LatLng( 0.470877960000000E+02, -0.122901035000000E+03),\n new google.maps.LatLng( 0.470813490000000E+02, -0.122901310000000E+03),\n new google.maps.LatLng( 0.470757720000000E+02, -0.122904583000000E+03),\n new google.maps.LatLng( 0.470713930000000E+02, -0.122902988000000E+03),\n new google.maps.LatLng( 0.470692210000000E+02, -0.122901060000000E+03),\n new google.maps.LatLng( 0.470675960000000E+02, -0.122898128000000E+03),\n new google.maps.LatLng( 0.470662180000000E+02, -0.122896750000000E+03),\n new google.maps.LatLng( 0.470581180000000E+02, -0.122894250000000E+03),\n new google.maps.LatLng( 0.470552180000000E+02, -0.122894450000000E+03),\n new google.maps.LatLng( 0.470507180000000E+02, -0.122892650000000E+03),\n new google.maps.LatLng( 0.470485180000000E+02, -0.122893650000000E+03),\n new google.maps.LatLng( 0.470470700000000E+02, -0.122893671000000E+03),\n new google.maps.LatLng( 0.470470700000000E+02, -0.122893671000000E+03),\n new google.maps.LatLng( 0.470465300000000E+02, -0.122894791000000E+03),\n new google.maps.LatLng( 0.470491440000000E+02, -0.122895933000000E+03),\n new google.maps.LatLng( 0.470500930000000E+02, -0.122899643000000E+03),\n new google.maps.LatLng( 0.470553120000000E+02, -0.122899736000000E+03),\n new google.maps.LatLng( 0.470579410000000E+02, -0.122900952000000E+03),\n new google.maps.LatLng( 0.470585180000000E+02, -0.122903051000000E+03),\n new google.maps.LatLng( 0.470584450000000E+02, -0.122905187000000E+03),\n new google.maps.LatLng( 0.470564180000000E+02, -0.122906451000000E+03),\n new google.maps.LatLng( 0.470517960000000E+02, -0.122905690000000E+03),\n new google.maps.LatLng( 0.470509740000000E+02, -0.122904751000000E+03),\n new google.maps.LatLng( 0.470462380000000E+02, -0.122904143000000E+03),\n new google.maps.LatLng( 0.470448170000000E+02, -0.122904380000000E+03),\n new google.maps.LatLng( 0.470447120000000E+02, -0.122905056000000E+03),\n new google.maps.LatLng( 0.470453090000000E+02, -0.122905210000000E+03),\n new google.maps.LatLng( 0.470451180000000E+02, -0.122908051000000E+03),\n new google.maps.LatLng( 0.470433770000000E+02, -0.122909345000000E+03),\n new google.maps.LatLng( 0.470433770000000E+02, -0.122909345000000E+03),\n new google.maps.LatLng( 0.470434560000000E+02, -0.122910796000000E+03),\n new google.maps.LatLng( 0.470445460000000E+02, -0.122911541000000E+03),\n new google.maps.LatLng( 0.470479430000000E+02, -0.122912057000000E+03),\n new google.maps.LatLng( 0.470476870000000E+02, -0.122911114000000E+03),\n new google.maps.LatLng( 0.470482180000000E+02, -0.122910951000000E+03),\n new google.maps.LatLng( 0.470546180000000E+02, -0.122913051000000E+03),\n new google.maps.LatLng( 0.470553180000000E+02, -0.122911851000000E+03),\n new google.maps.LatLng( 0.470634180000000E+02, -0.122915551000000E+03),\n new google.maps.LatLng( 0.470670180000000E+02, -0.122918051000000E+03),\n new google.maps.LatLng( 0.470776180000000E+02, -0.122926852000000E+03),\n new google.maps.LatLng( 0.470790180000000E+02, -0.122928852000000E+03),\n new google.maps.LatLng( 0.470806180000000E+02, -0.122933552000000E+03),\n new google.maps.LatLng( 0.470808180000000E+02, -0.122936253000000E+03),\n new google.maps.LatLng( 0.470794180000000E+02, -0.122938253000000E+03),\n new google.maps.LatLng( 0.470830180000000E+02, -0.122935353000000E+03),\n new google.maps.LatLng( 0.470891180000000E+02, -0.122933253000000E+03),\n new google.maps.LatLng( 0.470897180000000E+02, -0.122933453000000E+03),\n new google.maps.LatLng( 0.470939180000000E+02, -0.122931153000000E+03),\n new google.maps.LatLng( 0.470966180000000E+02, -0.122930753000000E+03),\n new google.maps.LatLng( 0.470993090000000E+02, -0.122933538000000E+03),\n new google.maps.LatLng( 0.471020180000000E+02, -0.122933653000000E+03),\n new google.maps.LatLng( 0.471034180000000E+02, -0.122930853000000E+03),\n new google.maps.LatLng( 0.471077180000000E+02, -0.122925052000000E+03),\n new google.maps.LatLng( 0.471124180000000E+02, -0.122924453000000E+03),\n new google.maps.LatLng( 0.471194960000000E+02, -0.122924581000000E+03),\n new google.maps.LatLng( 0.471251180000000E+02, -0.122925253000000E+03),\n new google.maps.LatLng( 0.471316180000000E+02, -0.122927353000000E+03),\n new google.maps.LatLng( 0.471388180000000E+02, -0.122926353000000E+03),\n new google.maps.LatLng( 0.471438180000000E+02, -0.122926453000000E+03),\n new google.maps.LatLng( 0.471449850000000E+02, -0.122926941000000E+03),\n new google.maps.LatLng( 0.471383180000000E+02, -0.122932753000000E+03),\n new google.maps.LatLng( 0.471317180000000E+02, -0.122937554000000E+03),\n new google.maps.LatLng( 0.471261180000000E+02, -0.122943154000000E+03),\n new google.maps.LatLng( 0.471214180000000E+02, -0.122943454000000E+03),\n new google.maps.LatLng( 0.471191180000000E+02, -0.122941354000000E+03),\n new google.maps.LatLng( 0.471119180000000E+02, -0.122937353000000E+03),\n new google.maps.LatLng( 0.471086180000000E+02, -0.122937853000000E+03),\n new google.maps.LatLng( 0.470981420000000E+02, -0.122949712000000E+03),\n new google.maps.LatLng( 0.470969180000000E+02, -0.122948954000000E+03),\n new google.maps.LatLng( 0.470963570000000E+02, -0.122946230000000E+03),\n new google.maps.LatLng( 0.470965010000000E+02, -0.122949805000000E+03),\n new google.maps.LatLng( 0.470971880000000E+02, -0.122951377000000E+03),\n new google.maps.LatLng( 0.470965550000000E+02, -0.122957404000000E+03),\n new google.maps.LatLng( 0.470903900000000E+02, -0.122966635000000E+03),\n new google.maps.LatLng( 0.470883530000000E+02, -0.122971260000000E+03),\n new google.maps.LatLng( 0.470877720000000E+02, -0.122974182000000E+03),\n new google.maps.LatLng( 0.470850570000000E+02, -0.122977608000000E+03),\n new google.maps.LatLng( 0.470840880000000E+02, -0.122980293000000E+03),\n new google.maps.LatLng( 0.470819980000000E+02, -0.122982002000000E+03),\n new google.maps.LatLng( 0.470804260000000E+02, -0.122985008000000E+03),\n new google.maps.LatLng( 0.470794270000000E+02, -0.122990654000000E+03),\n new google.maps.LatLng( 0.470778780000000E+02, -0.122992836000000E+03),\n new google.maps.LatLng( 0.470759630000000E+02, -0.122997704000000E+03),\n new google.maps.LatLng( 0.470748870000000E+02, -0.122998406000000E+03),\n new google.maps.LatLng( 0.470737580000000E+02, -0.123000924000000E+03),\n new google.maps.LatLng( 0.470744780000000E+02, -0.123001256000000E+03),\n new google.maps.LatLng( 0.470745700000000E+02, -0.123003068000000E+03),\n new google.maps.LatLng( 0.470740690000000E+02, -0.123005142000000E+03),\n new google.maps.LatLng( 0.470729950000000E+02, -0.123006315000000E+03),\n new google.maps.LatLng( 0.470679670000000E+02, -0.123007959000000E+03),\n new google.maps.LatLng( 0.470655450000000E+02, -0.123008162000000E+03),\n new google.maps.LatLng( 0.470643560000000E+02, -0.123007896000000E+03),\n new google.maps.LatLng( 0.470612460000000E+02, -0.123005725000000E+03),\n new google.maps.LatLng( 0.470604000000000E+02, -0.123003719000000E+03),\n new google.maps.LatLng( 0.470608340000000E+02, -0.123001091000000E+03),\n new google.maps.LatLng( 0.470591330000000E+02, -0.122995415000000E+03),\n new google.maps.LatLng( 0.470586980000000E+02, -0.122994774000000E+03),\n new google.maps.LatLng( 0.470579350000000E+02, -0.122994713000000E+03),\n new google.maps.LatLng( 0.470561720000000E+02, -0.122992500000000E+03),\n new google.maps.LatLng( 0.470556310000000E+02, -0.122990669000000E+03),\n new google.maps.LatLng( 0.470553410000000E+02, -0.122989555000000E+03),\n new google.maps.LatLng( 0.470550280000000E+02, -0.122990257000000E+03),\n new google.maps.LatLng( 0.470570800000000E+02, -0.122995796000000E+03),\n new google.maps.LatLng( 0.470560730000000E+02, -0.122996177000000E+03),\n new google.maps.LatLng( 0.470532660000000E+02, -0.122995338000000E+03),\n new google.maps.LatLng( 0.470526550000000E+02, -0.122994514000000E+03),\n new google.maps.LatLng( 0.470527390000000E+02, -0.122991325000000E+03),\n new google.maps.LatLng( 0.470533040000000E+02, -0.122989586000000E+03),\n new google.maps.LatLng( 0.470518010000000E+02, -0.122987083000000E+03),\n new google.maps.LatLng( 0.470525180000000E+02, -0.122989906000000E+03),\n new google.maps.LatLng( 0.470521360000000E+02, -0.122992241000000E+03),\n new google.maps.LatLng( 0.470510840000000E+02, -0.122991463000000E+03),\n new google.maps.LatLng( 0.470501600000000E+02, -0.122989296000000E+03),\n new google.maps.LatLng( 0.470478180000000E+02, -0.122987083000000E+03),\n new google.maps.LatLng( 0.470449420000000E+02, -0.122987906000000E+03),\n new google.maps.LatLng( 0.470444990000000E+02, -0.122990008000000E+03),\n new google.maps.LatLng( 0.470444990000000E+02, -0.122990008000000E+03),\n new google.maps.LatLng( 0.470441260000000E+02, -0.122990272000000E+03),\n new google.maps.LatLng( 0.470431260000000E+02, -0.122989342000000E+03),\n new google.maps.LatLng( 0.470416380000000E+02, -0.122987647000000E+03),\n new google.maps.LatLng( 0.470413100000000E+02, -0.122986487000000E+03),\n new google.maps.LatLng( 0.470405250000000E+02, -0.122986045000000E+03),\n new google.maps.LatLng( 0.470391210000000E+02, -0.122988364000000E+03),\n new google.maps.LatLng( 0.470391740000000E+02, -0.122990790000000E+03),\n new google.maps.LatLng( 0.470367710000000E+02, -0.122991614000000E+03),\n new google.maps.LatLng( 0.470365730000000E+02, -0.122989951000000E+03),\n new google.maps.LatLng( 0.470358320000000E+02, -0.122989569000000E+03),\n new google.maps.LatLng( 0.470347190000000E+02, -0.122990485000000E+03),\n new google.maps.LatLng( 0.470346580000000E+02, -0.122991767000000E+03),\n new google.maps.LatLng( 0.470369920000000E+02, -0.122992775000000E+03),\n new google.maps.LatLng( 0.470415550000000E+02, -0.122990379000000E+03),\n new google.maps.LatLng( 0.470447660000000E+02, -0.122992775000000E+03),\n new google.maps.LatLng( 0.470453460000000E+02, -0.122992256000000E+03),\n new google.maps.LatLng( 0.470448960000000E+02, -0.122990761000000E+03),\n new google.maps.LatLng( 0.470448960000000E+02, -0.122990761000000E+03),\n new google.maps.LatLng( 0.470458570000000E+02, -0.122990974000000E+03),\n new google.maps.LatLng( 0.470469640000000E+02, -0.122990211000000E+03),\n new google.maps.LatLng( 0.470487640000000E+02, -0.122990822000000E+03),\n new google.maps.LatLng( 0.470534950000000E+02, -0.122997581000000E+03),\n new google.maps.LatLng( 0.470544100000000E+02, -0.122999901000000E+03),\n new google.maps.LatLng( 0.470565130000000E+02, -0.123002251000000E+03),\n new google.maps.LatLng( 0.470563770000000E+02, -0.123004224000000E+03),\n new google.maps.LatLng( 0.470585750000000E+02, -0.123011380000000E+03),\n new google.maps.LatLng( 0.470601520000000E+02, -0.123011446000000E+03),\n new google.maps.LatLng( 0.470631700000000E+02, -0.123013684000000E+03),\n new google.maps.LatLng( 0.470641990000000E+02, -0.123015355000000E+03),\n new google.maps.LatLng( 0.470664630000000E+02, -0.123017394000000E+03),\n new google.maps.LatLng( 0.470687940000000E+02, -0.123015686000000E+03),\n new google.maps.LatLng( 0.470726340000000E+02, -0.123016585000000E+03),\n new google.maps.LatLng( 0.470746450000000E+02, -0.123016450000000E+03),\n new google.maps.LatLng( 0.470756500000000E+02, -0.123014776000000E+03),\n new google.maps.LatLng( 0.470805850000000E+02, -0.123010723000000E+03),\n new google.maps.LatLng( 0.470814990000000E+02, -0.123009116000000E+03),\n new google.maps.LatLng( 0.470841780000000E+02, -0.123000119000000E+03),\n new google.maps.LatLng( 0.470846000000000E+02, -0.122991860000000E+03),\n new google.maps.LatLng( 0.470880250000000E+02, -0.122988579000000E+03),\n new google.maps.LatLng( 0.470938620000000E+02, -0.122985817000000E+03),\n new google.maps.LatLng( 0.470954640000000E+02, -0.122987038000000E+03),\n new google.maps.LatLng( 0.470996750000000E+02, -0.122983253000000E+03),\n new google.maps.LatLng( 0.471012470000000E+02, -0.122982490000000E+03),\n new google.maps.LatLng( 0.471023460000000E+02, -0.122987405000000E+03),\n new google.maps.LatLng( 0.471062520000000E+02, -0.122990975000000E+03),\n new google.maps.LatLng( 0.471068090000000E+02, -0.122991128000000E+03),\n new google.maps.LatLng( 0.471033680000000E+02, -0.122986306000000E+03),\n new google.maps.LatLng( 0.471026280000000E+02, -0.122980766000000E+03),\n new google.maps.LatLng( 0.471014220000000E+02, -0.122976143000000E+03),\n new google.maps.LatLng( 0.471030700000000E+02, -0.122973472000000E+03),\n new google.maps.LatLng( 0.471037490000000E+02, -0.122970436000000E+03),\n new google.maps.LatLng( 0.471045580000000E+02, -0.122961417000000E+03),\n new google.maps.LatLng( 0.471057330000000E+02, -0.122958594000000E+03),\n new google.maps.LatLng( 0.471074720000000E+02, -0.122956092000000E+03),\n new google.maps.LatLng( 0.471083960000000E+02, -0.122955970000000E+03),\n new google.maps.LatLng( 0.471108220000000E+02, -0.122958747000000E+03),\n new google.maps.LatLng( 0.471119130000000E+02, -0.122960898000000E+03),\n new google.maps.LatLng( 0.471128050000000E+02, -0.122965294000000E+03),\n new google.maps.LatLng( 0.471145830000000E+02, -0.122966682000000E+03),\n new google.maps.LatLng( 0.471149260000000E+02, -0.122964546000000E+03),\n new google.maps.LatLng( 0.471204350000000E+02, -0.122963600000000E+03),\n new google.maps.LatLng( 0.471227310000000E+02, -0.122964210000000E+03),\n new google.maps.LatLng( 0.471245010000000E+02, -0.122964058000000E+03),\n new google.maps.LatLng( 0.471313450000000E+02, -0.122959541000000E+03),\n new google.maps.LatLng( 0.471349920000000E+02, -0.122957756000000E+03),\n new google.maps.LatLng( 0.471372580000000E+02, -0.122955818000000E+03),\n new google.maps.LatLng( 0.471387760000000E+02, -0.122951117000000E+03),\n new google.maps.LatLng( 0.471480000000000E+02, -0.122938727000000E+03),\n new google.maps.LatLng( 0.471500687879883E+02, -0.122937772444141E+03),\n new google.maps.LatLng( 0.471538060000000E+02, -0.122939170000000E+03),\n new google.maps.LatLng( 0.471556220000000E+02, -0.122938788000000E+03),\n new google.maps.LatLng( 0.471530200000000E+02, -0.122938407000000E+03),\n new google.maps.LatLng( 0.471497090000000E+02, -0.122936713000000E+03),\n new google.maps.LatLng( 0.471490830000000E+02, -0.122935126000000E+03),\n new google.maps.LatLng( 0.471501060000000E+02, -0.122932593000000E+03),\n new google.maps.LatLng( 0.471515630000000E+02, -0.122930854000000E+03),\n new google.maps.LatLng( 0.471544920000000E+02, -0.122928640000000E+03),\n new google.maps.LatLng( 0.471577120000000E+02, -0.122924459000000E+03),\n new google.maps.LatLng( 0.471624270000000E+02, -0.122921194000000E+03),\n new google.maps.LatLng( 0.471658680000000E+02, -0.122919882000000E+03),\n new google.maps.LatLng( 0.471688280000000E+02, -0.122919882000000E+03),\n new google.maps.LatLng( 0.471722160000000E+02, -0.122918752000000E+03),\n new google.maps.LatLng( 0.471735960000000E+02, -0.122919195000000E+03),\n new google.maps.LatLng( 0.471736210000000E+02, -0.122921005000000E+03),\n new google.maps.LatLng( 0.471745150000000E+02, -0.122924170000000E+03),\n new google.maps.LatLng( 0.471767230000000E+02, -0.122929444000000E+03),\n new google.maps.LatLng( 0.471764590000000E+02, -0.122931233000000E+03),\n new google.maps.LatLng( 0.471777820000000E+02, -0.122933568000000E+03),\n new google.maps.LatLng( 0.471812010000000E+02, -0.122937225000000E+03),\n new google.maps.LatLng( 0.471814460000000E+02, -0.122939590000000E+03),\n new google.maps.LatLng( 0.471827740000000E+02, -0.122940849000000E+03),\n new google.maps.LatLng( 0.471802020000000E+02, -0.122940208000000E+03),\n new google.maps.LatLng( 0.471772190000000E+02, -0.122940559000000E+03),\n new google.maps.LatLng( 0.471757320000000E+02, -0.122941398000000E+03),\n new google.maps.LatLng( 0.471717200000000E+02, -0.122941321000000E+03),\n new google.maps.LatLng( 0.471693390000000E+02, -0.122945076000000E+03),\n new google.maps.LatLng( 0.471661580000000E+02, -0.122948646000000E+03),\n new google.maps.LatLng( 0.471644790000000E+02, -0.122951607000000E+03),\n new google.maps.LatLng( 0.471603290000000E+02, -0.122954994000000E+03),\n new google.maps.LatLng( 0.471536300000000E+02, -0.122964822000000E+03),\n new google.maps.LatLng( 0.471527990000000E+02, -0.122965081000000E+03),\n new google.maps.LatLng( 0.471518980000000E+02, -0.122964653000000E+03),\n new google.maps.LatLng( 0.471522800000000E+02, -0.122963722000000E+03),\n new google.maps.LatLng( 0.471515020000000E+02, -0.122962822000000E+03),\n new google.maps.LatLng( 0.471473440000000E+02, -0.122967828000000E+03),\n new google.maps.LatLng( 0.471463750000000E+02, -0.122971459000000E+03),\n new google.maps.LatLng( 0.471446890000000E+02, -0.122974877000000E+03),\n new google.maps.LatLng( 0.471438720000000E+02, -0.122975976000000E+03),\n new google.maps.LatLng( 0.471414610000000E+02, -0.122976937000000E+03),\n new google.maps.LatLng( 0.471395010000000E+02, -0.122978555000000E+03),\n new google.maps.LatLng( 0.471371430000000E+02, -0.122981423000000E+03),\n new google.maps.LatLng( 0.471365710000000E+02, -0.122982781000000E+03),\n new google.maps.LatLng( 0.471382720000000E+02, -0.122983682000000E+03),\n new google.maps.LatLng( 0.471411640000000E+02, -0.122981011000000E+03),\n new google.maps.LatLng( 0.471438720000000E+02, -0.122980630000000E+03),\n new google.maps.LatLng( 0.471458480000000E+02, -0.122981408000000E+03),\n new google.maps.LatLng( 0.471483740000000E+02, -0.122983713000000E+03),\n new google.maps.LatLng( 0.471485490000000E+02, -0.122985163000000E+03),\n new google.maps.LatLng( 0.471459020000000E+02, -0.123000269000000E+03),\n new google.maps.LatLng( 0.471447830000000E+02, -0.123001737000000E+03),\n new google.maps.LatLng( 0.471403280000000E+02, -0.123005104000000E+03),\n new google.maps.LatLng( 0.471371510000000E+02, -0.123005041000000E+03),\n new google.maps.LatLng( 0.471356640000000E+02, -0.123004305000000E+03),\n new google.maps.LatLng( 0.471344520000000E+02, -0.123002163000000E+03),\n new google.maps.LatLng( 0.471344630000000E+02, -0.123001257000000E+03),\n new google.maps.LatLng( 0.471345260000000E+02, -0.123000421000000E+03),\n new google.maps.LatLng( 0.471336950000000E+02, -0.123000223000000E+03),\n new google.maps.LatLng( 0.471334660000000E+02, -0.123001257000000E+03),\n new google.maps.LatLng( 0.471291730000000E+02, -0.123003174000000E+03),\n new google.maps.LatLng( 0.471259740000000E+02, -0.123005957000000E+03),\n new google.maps.LatLng( 0.471243700000000E+02, -0.123008437000000E+03),\n new google.maps.LatLng( 0.471172710000000E+02, -0.123012931000000E+03),\n new google.maps.LatLng( 0.471100070000000E+02, -0.123024555000000E+03),\n new google.maps.LatLng( 0.471077700000000E+02, -0.123031285000000E+03),\n new google.maps.LatLng( 0.471056470000000E+02, -0.123042200000000E+03),\n new google.maps.LatLng( 0.471077260000000E+02, -0.123046652000000E+03),\n new google.maps.LatLng( 0.471096910000000E+02, -0.123042768000000E+03),\n new google.maps.LatLng( 0.471107430000000E+02, -0.123042365000000E+03),\n new google.maps.LatLng( 0.471112230000000E+02, -0.123043068000000E+03),\n new google.maps.LatLng( 0.471114060000000E+02, -0.123045077000000E+03),\n new google.maps.LatLng( 0.471098750000000E+02, -0.123050568000000E+03),\n new google.maps.LatLng( 0.471099670000000E+02, -0.123055757000000E+03),\n new google.maps.LatLng( 0.471092820000000E+02, -0.123059205000000E+03),\n new google.maps.LatLng( 0.471077730000000E+02, -0.123063591000000E+03),\n new google.maps.LatLng( 0.471035220000000E+02, -0.123069148000000E+03),\n new google.maps.LatLng( 0.471014870000000E+02, -0.123070621000000E+03),\n new google.maps.LatLng( 0.470990910000000E+02, -0.123074804000000E+03),\n new google.maps.LatLng( 0.470974670000000E+02, -0.123074896000000E+03),\n new google.maps.LatLng( 0.470974670000000E+02, -0.123074896000000E+03),\n new google.maps.LatLng( 0.470948580000000E+02, -0.123080426000000E+03),\n new google.maps.LatLng( 0.470930980000000E+02, -0.123081028000000E+03),\n new google.maps.LatLng( 0.470917950000000E+02, -0.123079154000000E+03),\n new google.maps.LatLng( 0.470919780000000E+02, -0.123080827000000E+03),\n new google.maps.LatLng( 0.470926410000000E+02, -0.123081831000000E+03),\n new google.maps.LatLng( 0.470939660000000E+02, -0.123082401000000E+03),\n new google.maps.LatLng( 0.470996120000000E+02, -0.123080461000000E+03),\n new google.maps.LatLng( 0.470995660000000E+02, -0.123082603000000E+03),\n new google.maps.LatLng( 0.470990860000000E+02, -0.123083373000000E+03),\n new google.maps.LatLng( 0.470969370000000E+02, -0.123083640000000E+03),\n new google.maps.LatLng( 0.470962520000000E+02, -0.123084443000000E+03),\n new google.maps.LatLng( 0.470965940000000E+02, -0.123085213000000E+03),\n new google.maps.LatLng( 0.470984000000000E+02, -0.123085783000000E+03),\n new google.maps.LatLng( 0.471032910000000E+02, -0.123085517000000E+03),\n new google.maps.LatLng( 0.471069940000000E+02, -0.123083543000000E+03),\n new google.maps.LatLng( 0.471083430000000E+02, -0.123080665000000E+03),\n new google.maps.LatLng( 0.471087780000000E+02, -0.123076915000000E+03),\n new google.maps.LatLng( 0.471098980000000E+02, -0.123074606000000E+03),\n new google.maps.LatLng( 0.471154530000000E+02, -0.123068179000000E+03),\n new google.maps.LatLng( 0.471198640000000E+02, -0.123061181000000E+03),\n new google.maps.LatLng( 0.471211900000000E+02, -0.123053177000000E+03),\n new google.maps.LatLng( 0.471200920000000E+02, -0.123047887000000E+03),\n new google.maps.LatLng( 0.471201600000000E+02, -0.123043266000000E+03),\n new google.maps.LatLng( 0.471218260000000E+02, -0.123034927000000E+03),\n new google.maps.LatLng( 0.471210250000000E+02, -0.123030106000000E+03),\n new google.maps.LatLng( 0.471211160000000E+02, -0.123027896000000E+03),\n new google.maps.LatLng( 0.471216650000000E+02, -0.123025585000000E+03),\n new google.maps.LatLng( 0.471234920000000E+02, -0.123022135000000E+03),\n new google.maps.LatLng( 0.471275110000000E+02, -0.123021194000000E+03),\n new google.maps.LatLng( 0.471290430000000E+02, -0.123022030000000E+03),\n new google.maps.LatLng( 0.471341630000000E+02, -0.123022260000000E+03),\n new google.maps.LatLng( 0.471371330000000E+02, -0.123018574000000E+03),\n new google.maps.LatLng( 0.471395090000000E+02, -0.123016796000000E+03),\n new google.maps.LatLng( 0.471436470000000E+02, -0.123017798000000E+03),\n new google.maps.LatLng( 0.471486520000000E+02, -0.123017525000000E+03),\n new google.maps.LatLng( 0.471518520000000E+02, -0.123018226000000E+03),\n new google.maps.LatLng( 0.471523320000000E+02, -0.123018896000000E+03),\n new google.maps.LatLng( 0.471519440000000E+02, -0.123020437000000E+03),\n new google.maps.LatLng( 0.471490430000000E+02, -0.123022785000000E+03),\n new google.maps.LatLng( 0.471495690000000E+02, -0.123024794000000E+03),\n new google.maps.LatLng( 0.471507800000000E+02, -0.123023654000000E+03),\n new google.maps.LatLng( 0.471528600000000E+02, -0.123022715000000E+03),\n new google.maps.LatLng( 0.471534320000000E+02, -0.123025127000000E+03),\n new google.maps.LatLng( 0.471535470000000E+02, -0.123027740000000E+03),\n new google.maps.LatLng( 0.471524500000000E+02, -0.123029650000000E+03),\n new google.maps.LatLng( 0.471520400000000E+02, -0.123031661000000E+03),\n new google.maps.LatLng( 0.471516750000000E+02, -0.123037927000000E+03),\n new google.maps.LatLng( 0.471525440000000E+02, -0.123040205000000E+03),\n new google.maps.LatLng( 0.471537790000000E+02, -0.123040975000000E+03),\n new google.maps.LatLng( 0.471529800000000E+02, -0.123046772000000E+03),\n new google.maps.LatLng( 0.471501240000000E+02, -0.123053574000000E+03),\n new google.maps.LatLng( 0.471486610000000E+02, -0.123055383000000E+03),\n new google.maps.LatLng( 0.471445470000000E+02, -0.123056523000000E+03),\n new google.maps.LatLng( 0.471415990000000E+02, -0.123060811000000E+03),\n new google.maps.LatLng( 0.471383300000000E+02, -0.123067309000000E+03),\n new google.maps.LatLng( 0.471370960000000E+02, -0.123067979000000E+03),\n new google.maps.LatLng( 0.471360440000000E+02, -0.123069788000000E+03),\n new google.maps.LatLng( 0.471360440000000E+02, -0.123072501000000E+03),\n new google.maps.LatLng( 0.471349700000000E+02, -0.123073874000000E+03),\n new google.maps.LatLng( 0.471332560000000E+02, -0.123073874000000E+03),\n new google.maps.LatLng( 0.471319980000000E+02, -0.123076318000000E+03),\n new google.maps.LatLng( 0.471314720000000E+02, -0.123078261000000E+03),\n new google.maps.LatLng( 0.471317000000000E+02, -0.123083118000000E+03),\n new google.maps.LatLng( 0.471348080000000E+02, -0.123086301000000E+03),\n new google.maps.LatLng( 0.471367290000000E+02, -0.123083790000000E+03),\n new google.maps.LatLng( 0.471382380000000E+02, -0.123079536000000E+03),\n new google.maps.LatLng( 0.471384440000000E+02, -0.123076454000000E+03),\n new google.maps.LatLng( 0.471393580000000E+02, -0.123075248000000E+03),\n new google.maps.LatLng( 0.471401350000000E+02, -0.123075315000000E+03),\n new google.maps.LatLng( 0.471405700000000E+02, -0.123074813000000E+03),\n new google.maps.LatLng( 0.471414160000000E+02, -0.123071162000000E+03),\n new google.maps.LatLng( 0.471470610000000E+02, -0.123059504000000E+03),\n new google.maps.LatLng( 0.471475640000000E+02, -0.123061146000000E+03),\n new google.maps.LatLng( 0.471505350000000E+02, -0.123057728000000E+03),\n new google.maps.LatLng( 0.471511300000000E+02, -0.123056623000000E+03),\n new google.maps.LatLng( 0.471514490000000E+02, -0.123053775000000E+03),\n new google.maps.LatLng( 0.471536890000000E+02, -0.123049988000000E+03),\n new google.maps.LatLng( 0.471543740000000E+02, -0.123047174000000E+03),\n new google.maps.LatLng( 0.471541000000000E+02, -0.123044426000000E+03),\n new google.maps.LatLng( 0.471547160000000E+02, -0.123041511000000E+03),\n new google.maps.LatLng( 0.471552870000000E+02, -0.123040874000000E+03),\n new google.maps.LatLng( 0.471551270000000E+02, -0.123038964000000E+03),\n new google.maps.LatLng( 0.471538700000000E+02, -0.123037591000000E+03),\n new google.maps.LatLng( 0.471535030000000E+02, -0.123035280000000E+03),\n new google.maps.LatLng( 0.471542250000000E+02, -0.123030226000000E+03),\n new google.maps.LatLng( 0.471552390000000E+02, -0.123028711000000E+03),\n new google.maps.LatLng( 0.471551690000000E+02, -0.123025863000000E+03),\n new google.maps.LatLng( 0.471567900000000E+02, -0.123021740000000E+03),\n new google.maps.LatLng( 0.471560590000000E+02, -0.123021439000000E+03),\n new google.maps.LatLng( 0.471543900000000E+02, -0.123019061000000E+03),\n new google.maps.LatLng( 0.471544790000000E+02, -0.123015275000000E+03),\n new google.maps.LatLng( 0.471535410000000E+02, -0.123013266000000E+03),\n new google.maps.LatLng( 0.471535860000000E+02, -0.123011121000000E+03),\n new google.maps.LatLng( 0.471553450000000E+02, -0.123008238000000E+03),\n new google.maps.LatLng( 0.471567160000000E+02, -0.123006863000000E+03),\n new google.maps.LatLng( 0.471598920000000E+02, -0.123005084000000E+03),\n new google.maps.LatLng( 0.471611710000000E+02, -0.123003105000000E+03),\n new google.maps.LatLng( 0.471641580000000E+02, -0.123000102000000E+03),\n new google.maps.LatLng( 0.471655770000000E+02, -0.122996119000000E+03),\n new google.maps.LatLng( 0.471669650000000E+02, -0.122994563000000E+03),\n new google.maps.LatLng( 0.471677510000000E+02, -0.122992824000000E+03),\n new google.maps.LatLng( 0.471695140000000E+02, -0.122984598000000E+03),\n new google.maps.LatLng( 0.471708560000000E+02, -0.122982126000000E+03),\n new google.maps.LatLng( 0.471686060000000E+02, -0.122967400000000E+03),\n new google.maps.LatLng( 0.471696210000000E+02, -0.122963311000000E+03),\n new google.maps.LatLng( 0.471715740000000E+02, -0.122960076000000E+03),\n new google.maps.LatLng( 0.471779140000000E+02, -0.122955391000000E+03),\n new google.maps.LatLng( 0.471814080000000E+02, -0.122954613000000E+03),\n new google.maps.LatLng( 0.471840710000000E+02, -0.122955117000000E+03),\n new google.maps.LatLng( 0.471853900000000E+02, -0.122954781000000E+03),\n new google.maps.LatLng( 0.471904420000000E+02, -0.122947875000000E+03),\n new google.maps.LatLng( 0.471943050000000E+02, -0.122940935000000E+03),\n new google.maps.LatLng( 0.471957000000000E+02, -0.122939325000000E+03),\n new google.maps.LatLng( 0.471980080000000E+02, -0.122938151000000E+03),\n new google.maps.LatLng( 0.472029450000000E+02, -0.122944825000000E+03),\n new google.maps.LatLng( 0.472035620000000E+02, -0.122946267000000E+03),\n new google.maps.LatLng( 0.472032650000000E+02, -0.122947206000000E+03),\n new google.maps.LatLng( 0.472013900000000E+02, -0.122948983000000E+03),\n new google.maps.LatLng( 0.472004760000000E+02, -0.122952505000000E+03),\n new google.maps.LatLng( 0.472014350000000E+02, -0.122960017000000E+03),\n new google.maps.LatLng( 0.472022340000000E+02, -0.122961728000000E+03),\n new google.maps.LatLng( 0.472012720000000E+02, -0.122969240000000E+03),\n new google.maps.LatLng( 0.472015690000000E+02, -0.122971353000000E+03),\n new google.maps.LatLng( 0.471996010000000E+02, -0.122978797000000E+03),\n new google.maps.LatLng( 0.471991650000000E+02, -0.122983257000000E+03),\n new google.maps.LatLng( 0.471987310000000E+02, -0.122983861000000E+03),\n new google.maps.LatLng( 0.471970850000000E+02, -0.122983993000000E+03),\n new google.maps.LatLng( 0.471966050000000E+02, -0.122984697000000E+03),\n new google.maps.LatLng( 0.471976990000000E+02, -0.122991975000000E+03),\n new google.maps.LatLng( 0.471967610000000E+02, -0.122993449000000E+03),\n new google.maps.LatLng( 0.471965269048828E+02, -0.122996260030859E+03),\n new google.maps.LatLng( 0.471963355048828E+02, -0.122995052830859E+03),\n new google.maps.LatLng( 0.471952280000000E+02, -0.122996264000000E+03),\n new google.maps.LatLng( 0.471957070000000E+02, -0.122998109000000E+03),\n new google.maps.LatLng( 0.471967130000000E+02, -0.122997942000000E+03),\n new google.maps.LatLng( 0.471973080000000E+02, -0.122996971000000E+03),\n new google.maps.LatLng( 0.471972860000000E+02, -0.122994187000000E+03),\n new google.maps.LatLng( 0.471976750000000E+02, -0.122993953000000E+03),\n new google.maps.LatLng( 0.471991350000000E+02, -0.123000025000000E+03),\n new google.maps.LatLng( 0.472008950000000E+02, -0.123003597000000E+03),\n new google.maps.LatLng( 0.472012380000000E+02, -0.123004067000000E+03),\n new google.maps.LatLng( 0.472039350000000E+02, -0.123004567000000E+03),\n new google.maps.LatLng( 0.472043470000000E+02, -0.123005203000000E+03),\n new google.maps.LatLng( 0.472043270000000E+02, -0.123010938000000E+03),\n new google.maps.LatLng( 0.472034830000000E+02, -0.123014460000000E+03),\n new google.maps.LatLng( 0.472038530000000E+02, -0.123024856000000E+03),\n new google.maps.LatLng( 0.472048610000000E+02, -0.123031967000000E+03),\n new google.maps.LatLng( 0.472048640000000E+02, -0.123046254000000E+03),\n new google.maps.LatLng( 0.472032420000000E+02, -0.123051821000000E+03),\n new google.maps.LatLng( 0.472021910000000E+02, -0.123059333000000E+03),\n new google.maps.LatLng( 0.472030360000000E+02, -0.123065773000000E+03),\n new google.maps.LatLng( 0.472041110000000E+02, -0.123068322000000E+03),\n new google.maps.LatLng( 0.472056880000000E+02, -0.123070469000000E+03),\n new google.maps.LatLng( 0.472057330000000E+02, -0.123074996000000E+03),\n new google.maps.LatLng( 0.472066470000000E+02, -0.123075835000000E+03),\n new google.maps.LatLng( 0.472080190000000E+02, -0.123074527000000E+03),\n new google.maps.LatLng( 0.472079040000000E+02, -0.123076506000000E+03),\n new google.maps.LatLng( 0.472059130000000E+02, -0.123084320000000E+03),\n new google.maps.LatLng( 0.472066890000000E+02, -0.123093141000000E+03),\n new google.maps.LatLng( 0.472082880000000E+02, -0.123095456000000E+03),\n new google.maps.LatLng( 0.472093170000000E+02, -0.123094417000000E+03),\n new google.maps.LatLng( 0.472096140000000E+02, -0.123092304000000E+03),\n new google.maps.LatLng( 0.472129510000000E+02, -0.123092037000000E+03),\n new google.maps.LatLng( 0.472135240000000E+02, -0.123088314000000E+03),\n new google.maps.LatLng( 0.472150560000000E+02, -0.123084525000000E+03),\n new google.maps.LatLng( 0.472251140000000E+02, -0.123071478000000E+03),\n new google.maps.LatLng( 0.472268060000000E+02, -0.123067116000000E+03),\n new google.maps.LatLng( 0.472291140000000E+02, -0.123063392000000E+03),\n new google.maps.LatLng( 0.472324970000000E+02, -0.123059835000000E+03),\n new google.maps.LatLng( 0.472375710000000E+02, -0.123052754000000E+03),\n new google.maps.LatLng( 0.472405430000000E+02, -0.123050538000000E+03),\n new google.maps.LatLng( 0.472422110000000E+02, -0.123050303000000E+03),\n new google.maps.LatLng( 0.472450680000000E+02, -0.123048322000000E+03),\n new google.maps.LatLng( 0.472445190000000E+02, -0.123043959000000E+03),\n new google.maps.LatLng( 0.472448150000000E+02, -0.123042650000000E+03),\n new google.maps.LatLng( 0.472460270000000E+02, -0.123042985000000E+03),\n new google.maps.LatLng( 0.472446100000000E+02, -0.123041576000000E+03),\n new google.maps.LatLng( 0.472446320000000E+02, -0.123041006000000E+03),\n new google.maps.LatLng( 0.472478320000000E+02, -0.123038219000000E+03),\n new google.maps.LatLng( 0.472487920000000E+02, -0.123038554000000E+03),\n new google.maps.LatLng( 0.472503930000000E+02, -0.123040768000000E+03),\n new google.maps.LatLng( 0.472512610000000E+02, -0.123040164000000E+03),\n new google.maps.LatLng( 0.472531800000000E+02, -0.123034725000000E+03),\n new google.maps.LatLng( 0.472562410000000E+02, -0.123028848000000E+03),\n new google.maps.LatLng( 0.472590950000000E+02, -0.123020051000000E+03),\n new google.maps.LatLng( 0.472613110000000E+02, -0.123019545000000E+03),\n new google.maps.LatLng( 0.472616760000000E+02, -0.123016221000000E+03),\n new google.maps.LatLng( 0.472592530000000E+02, -0.123017130000000E+03),\n new google.maps.LatLng( 0.472580870000000E+02, -0.123015720000000E+03),\n new google.maps.LatLng( 0.472578350000000E+02, -0.123014209000000E+03),\n new google.maps.LatLng( 0.472567840000000E+02, -0.123013908000000E+03),\n new google.maps.LatLng( 0.472521690000000E+02, -0.123020055000000E+03),\n new google.maps.LatLng( 0.472503060000000E+02, -0.123021500000000E+03),\n new google.maps.LatLng( 0.472477140000000E+02, -0.123026639000000E+03),\n new google.maps.LatLng( 0.472453850000000E+02, -0.123034293000000E+03),\n new google.maps.LatLng( 0.472424150000000E+02, -0.123038255000000E+03),\n new google.maps.LatLng( 0.472389870000000E+02, -0.123044364000000E+03),\n new google.maps.LatLng( 0.472350800000000E+02, -0.123047721000000E+03),\n new google.maps.LatLng( 0.472343710000000E+02, -0.123047721000000E+03),\n new google.maps.LatLng( 0.472300050000000E+02, -0.123044938000000E+03),\n new google.maps.LatLng( 0.472272840000000E+02, -0.123037221000000E+03),\n new google.maps.LatLng( 0.472265290000000E+02, -0.123033732000000E+03),\n new google.maps.LatLng( 0.472258880000000E+02, -0.123032625000000E+03),\n new google.maps.LatLng( 0.472242430000000E+02, -0.123032324000000E+03),\n new google.maps.LatLng( 0.472236940000000E+02, -0.123033801000000E+03),\n new google.maps.LatLng( 0.472221630000000E+02, -0.123031889000000E+03),\n new google.maps.LatLng( 0.472220710000000E+02, -0.123030413000000E+03),\n new google.maps.LatLng( 0.472227330000000E+02, -0.123029138000000E+03),\n new google.maps.LatLng( 0.472216130000000E+02, -0.123028937000000E+03),\n new google.maps.LatLng( 0.472217750000000E+02, -0.123035815000000E+03),\n new google.maps.LatLng( 0.472221180000000E+02, -0.123037056000000E+03),\n new google.maps.LatLng( 0.472235580000000E+02, -0.123038162000000E+03),\n new google.maps.LatLng( 0.472253880000000E+02, -0.123044301000000E+03),\n new google.maps.LatLng( 0.472238350000000E+02, -0.123048932000000E+03),\n new google.maps.LatLng( 0.472216410000000E+02, -0.123052422000000E+03),\n new google.maps.LatLng( 0.472202010000000E+02, -0.123058125000000E+03),\n new google.maps.LatLng( 0.472161330000000E+02, -0.123066143000000E+03),\n new google.maps.LatLng( 0.472137560000000E+02, -0.123069597000000E+03),\n new google.maps.LatLng( 0.472125900000000E+02, -0.123070302000000E+03),\n new google.maps.LatLng( 0.472106700000000E+02, -0.123069966000000E+03),\n new google.maps.LatLng( 0.472100990000000E+02, -0.123069228000000E+03),\n new google.maps.LatLng( 0.472087960000000E+02, -0.123064096000000E+03),\n new google.maps.LatLng( 0.472052760000000E+02, -0.123061479000000E+03),\n new google.maps.LatLng( 0.472078580000000E+02, -0.123047695000000E+03),\n new google.maps.LatLng( 0.472082910000000E+02, -0.123041154000000E+03),\n new google.maps.LatLng( 0.472089310000000E+02, -0.123038370000000E+03),\n new google.maps.LatLng( 0.472086070000000E+02, -0.123027168000000E+03),\n new google.maps.LatLng( 0.472068690000000E+02, -0.123023044000000E+03),\n new google.maps.LatLng( 0.472085350000000E+02, -0.123016133000000E+03),\n new google.maps.LatLng( 0.472085340000000E+02, -0.123014556000000E+03),\n new google.maps.LatLng( 0.472077560000000E+02, -0.123013014000000E+03),\n new google.maps.LatLng( 0.472078010000000E+02, -0.123010599000000E+03),\n new google.maps.LatLng( 0.472095810000000E+02, -0.123004258000000E+03),\n new google.maps.LatLng( 0.472086880000000E+02, -0.123002079000000E+03),\n new google.maps.LatLng( 0.472061060000000E+02, -0.122999228000000E+03),\n new google.maps.LatLng( 0.472042310000000E+02, -0.123000098000000E+03),\n new google.maps.LatLng( 0.472031570000000E+02, -0.122999996000000E+03),\n new google.maps.LatLng( 0.472011240000000E+02, -0.122998384000000E+03),\n new google.maps.LatLng( 0.471997570000000E+02, -0.122989831000000E+03),\n new google.maps.LatLng( 0.472004430000000E+02, -0.122988691000000E+03),\n new google.maps.LatLng( 0.472024310000000E+02, -0.122988626000000E+03),\n new google.maps.LatLng( 0.472022960000000E+02, -0.122985507000000E+03),\n new google.maps.LatLng( 0.472034630000000E+02, -0.122980176000000E+03),\n new google.maps.LatLng( 0.472029840000000E+02, -0.122977290000000E+03),\n new google.maps.LatLng( 0.472050660000000E+02, -0.122970953000000E+03),\n new google.maps.LatLng( 0.472051130000000E+02, -0.122968136000000E+03),\n new google.maps.LatLng( 0.472065990000000E+02, -0.122963071000000E+03),\n new google.maps.LatLng( 0.472050690000000E+02, -0.122960388000000E+03),\n new google.maps.LatLng( 0.472065090000000E+02, -0.122955861000000E+03),\n new google.maps.LatLng( 0.472062350000000E+02, -0.122952540000000E+03),\n new google.maps.LatLng( 0.472058470000000E+02, -0.122951467000000E+03),\n new google.maps.LatLng( 0.472047960000000E+02, -0.122950729000000E+03),\n new google.maps.LatLng( 0.472029900000000E+02, -0.122951902000000E+03),\n new google.maps.LatLng( 0.472036990000000E+02, -0.122950226000000E+03),\n new google.maps.LatLng( 0.472056190000000E+02, -0.122948750000000E+03),\n new google.maps.LatLng( 0.472069900000000E+02, -0.122946033000000E+03),\n new google.maps.LatLng( 0.472075390000000E+02, -0.122943585000000E+03),\n new google.maps.LatLng( 0.472050930000000E+02, -0.122936072000000E+03),\n new google.maps.LatLng( 0.472075850000000E+02, -0.122933590000000E+03),\n new google.maps.LatLng( 0.472088870000000E+02, -0.122933489000000E+03),\n new google.maps.LatLng( 0.472157440000000E+02, -0.122937480000000E+03),\n new google.maps.LatLng( 0.472160640000000E+02, -0.122940969000000E+03),\n new google.maps.LatLng( 0.472178470000000E+02, -0.122941875000000E+03),\n new google.maps.LatLng( 0.472251380000000E+02, -0.122940298000000E+03),\n new google.maps.LatLng( 0.472264410000000E+02, -0.122937715000000E+03),\n new google.maps.LatLng( 0.472241330000000E+02, -0.122938151000000E+03),\n new google.maps.LatLng( 0.472243380000000E+02, -0.122937245000000E+03),\n new google.maps.LatLng( 0.472286120000000E+02, -0.122934628000000E+03),\n new google.maps.LatLng( 0.472332310000000E+02, -0.122934189000000E+03),\n new google.maps.LatLng( 0.472337280000000E+02, -0.122934306000000E+03),\n new google.maps.LatLng( 0.472335720000000E+02, -0.122936138000000E+03),\n new google.maps.LatLng( 0.472356750000000E+02, -0.122936775000000E+03),\n new google.maps.LatLng( 0.472411150000000E+02, -0.122936574000000E+03),\n new google.maps.LatLng( 0.472429890000000E+02, -0.122938689000000E+03),\n new google.maps.LatLng( 0.472428290000000E+02, -0.122940535000000E+03),\n new google.maps.LatLng( 0.472447490000000E+02, -0.122940837000000E+03),\n new google.maps.LatLng( 0.472471030000000E+02, -0.122939192000000E+03),\n new google.maps.LatLng( 0.472461660000000E+02, -0.122938521000000E+03),\n new google.maps.LatLng( 0.472470340000000E+02, -0.122933150000000E+03),\n new google.maps.LatLng( 0.472461200000000E+02, -0.122932881000000E+03),\n new google.maps.LatLng( 0.472454340000000E+02, -0.122931304000000E+03),\n new google.maps.LatLng( 0.472467140000000E+02, -0.122929726000000E+03),\n new google.maps.LatLng( 0.472498170000000E+02, -0.122927309000000E+03),\n new google.maps.LatLng( 0.472506000000000E+02, -0.122927007000000E+03),\n new google.maps.LatLng( 0.472516290000000E+02, -0.122928047000000E+03),\n new google.maps.LatLng( 0.472540510000000E+02, -0.122928685000000E+03),\n new google.maps.LatLng( 0.472593310000000E+02, -0.122927844000000E+03),\n new google.maps.LatLng( 0.472630790000000E+02, -0.122926131000000E+03),\n new google.maps.LatLng( 0.472653650000000E+02, -0.122928414000000E+03),\n new google.maps.LatLng( 0.472642450000000E+02, -0.122930596000000E+03),\n new google.maps.LatLng( 0.472642450000000E+02, -0.122930596000000E+03),\n new google.maps.LatLng( 0.472677650000000E+02, -0.122928716000000E+03),\n new google.maps.LatLng( 0.472761530000000E+02, -0.122927471000000E+03),\n new google.maps.LatLng( 0.472806330000000E+02, -0.122927404000000E+03),\n new google.maps.LatLng( 0.472822320000000E+02, -0.122923540000000E+03),\n new google.maps.LatLng( 0.472838780000000E+02, -0.122923574000000E+03),\n new google.maps.LatLng( 0.472865740000000E+02, -0.122920718000000E+03),\n new google.maps.LatLng( 0.472873740000000E+02, -0.122920717000000E+03),\n new google.maps.LatLng( 0.472874880000000E+02, -0.122920382000000E+03),\n new google.maps.LatLng( 0.472862310000000E+02, -0.122919878000000E+03),\n new google.maps.LatLng( 0.472841290000000E+02, -0.122922734000000E+03),\n new google.maps.LatLng( 0.472837630000000E+02, -0.122921491000000E+03),\n new google.maps.LatLng( 0.472849060000000E+02, -0.122918770000000E+03),\n new google.maps.LatLng( 0.472895900000000E+02, -0.122911983000000E+03),\n new google.maps.LatLng( 0.472900230000000E+02, -0.122908019000000E+03),\n new google.maps.LatLng( 0.472915300000000E+02, -0.122904289000000E+03),\n new google.maps.LatLng( 0.472940890000000E+02, -0.122901331000000E+03),\n new google.maps.LatLng( 0.472941350000000E+02, -0.122900625000000E+03),\n new google.maps.LatLng( 0.472928320000000E+02, -0.122901130000000E+03),\n new google.maps.LatLng( 0.472923980000000E+02, -0.122900324000000E+03),\n new google.maps.LatLng( 0.472928300000000E+02, -0.122894579000000E+03),\n new google.maps.LatLng( 0.472939020000000E+02, -0.122889370000000E+03),\n new google.maps.LatLng( 0.472950430000000E+02, -0.122885170000000E+03),\n new google.maps.LatLng( 0.472979440000000E+02, -0.122881976000000E+03),\n new google.maps.LatLng( 0.472993370000000E+02, -0.122879689000000E+03),\n new google.maps.LatLng( 0.472989900000000E+02, -0.122876253000000E+03),\n new google.maps.LatLng( 0.473007700000000E+02, -0.122872166000000E+03),\n new google.maps.LatLng( 0.473032490000000E+02, -0.122868535000000E+03),\n new google.maps.LatLng( 0.473056220000000E+02, -0.122866446000000E+03),\n new google.maps.LatLng( 0.473069170000000E+02, -0.122862976000000E+03),\n new google.maps.LatLng( 0.473096380000000E+02, -0.122864348000000E+03),\n new google.maps.LatLng( 0.473113910000000E+02, -0.122867145000000E+03),\n new google.maps.LatLng( 0.473150240000000E+02, -0.122867434000000E+03),\n new google.maps.LatLng( 0.473136560000000E+02, -0.122866521000000E+03),\n new google.maps.LatLng( 0.473117180000000E+02, -0.122866521000000E+03),\n new google.maps.LatLng( 0.473116260000000E+02, -0.122862965000000E+03),\n new google.maps.LatLng( 0.473090780000000E+02, -0.122862492000000E+03),\n new google.maps.LatLng( 0.473081020000000E+02, -0.122861195000000E+03),\n new google.maps.LatLng( 0.473080250000000E+02, -0.122860158000000E+03),\n new google.maps.LatLng( 0.473104670000000E+02, -0.122853764000000E+03),\n new google.maps.LatLng( 0.473114050000000E+02, -0.122846012000000E+03),\n new google.maps.LatLng( 0.473127860000000E+02, -0.122844074000000E+03),\n new google.maps.LatLng( 0.473139920000000E+02, -0.122842868000000E+03),\n new google.maps.LatLng( 0.473175700000000E+02, -0.122840854000000E+03),\n new google.maps.LatLng( 0.473224600000000E+02, -0.122841175000000E+03),\n new google.maps.LatLng( 0.473214347137695E+02, -0.122841624820898E+03),\n new google.maps.LatLng( 0.473190570000000E+02, -0.122841419000000E+03),\n new google.maps.LatLng( 0.473192790000000E+02, -0.122842151000000E+03),\n new google.maps.LatLng( 0.473219720000000E+02, -0.122841983000000E+03),\n new google.maps.LatLng( 0.473269610000000E+02, -0.122840290000000E+03),\n new google.maps.LatLng( 0.473262520000000E+02, -0.122839649000000E+03),\n new google.maps.LatLng( 0.473247870000000E+02, -0.122839801000000E+03),\n new google.maps.LatLng( 0.473230630000000E+02, -0.122840366000000E+03),\n new google.maps.LatLng( 0.473229030000000E+02, -0.122841022000000E+03),\n new google.maps.LatLng( 0.473223080000000E+02, -0.122840686000000E+03),\n new google.maps.LatLng( 0.473224070000000E+02, -0.122839878000000E+03),\n new google.maps.LatLng( 0.473254970000000E+02, -0.122834873000000E+03),\n new google.maps.LatLng( 0.473282510000000E+02, -0.122832935000000E+03),\n new google.maps.LatLng( 0.473350870000000E+02, -0.122831974000000E+03),\n new google.maps.LatLng( 0.473356670000000E+02, -0.122832706000000E+03),\n new google.maps.LatLng( 0.473374290000000E+02, -0.122833103000000E+03),\n new google.maps.LatLng( 0.473386570000000E+02, -0.122832706000000E+03),\n new google.maps.LatLng( 0.473417930000000E+02, -0.122830112000000E+03),\n new google.maps.LatLng( 0.473417930000000E+02, -0.122830112000000E+03),\n new google.maps.LatLng( 0.473439450000000E+02, -0.122828663000000E+03),\n new google.maps.LatLng( 0.473453180000000E+02, -0.122828586000000E+03),\n new google.maps.LatLng( 0.473428990000000E+02, -0.122832706000000E+03),\n new google.maps.LatLng( 0.473469730000000E+02, -0.122828510000000E+03),\n new google.maps.LatLng( 0.473512610000000E+02, -0.122826084000000E+03),\n new google.maps.LatLng( 0.473545570000000E+02, -0.122825351000000E+03),\n new google.maps.LatLng( 0.473563190000000E+02, -0.122826160000000E+03),\n new google.maps.LatLng( 0.473570290000000E+02, -0.122827289000000E+03),\n new google.maps.LatLng( 0.473540000000000E+02, -0.122831257000000E+03),\n new google.maps.LatLng( 0.473565790000000E+02, -0.122828266000000E+03),\n new google.maps.LatLng( 0.473597300000000E+02, -0.122825763000000E+03),\n new google.maps.LatLng( 0.473632150000000E+02, -0.122824390000000E+03),\n new google.maps.LatLng( 0.473657860000000E+02, -0.122825275000000E+03),\n new google.maps.LatLng( 0.473695860000000E+02, -0.122824710000000E+03),\n new google.maps.LatLng( 0.473711800000000E+02, -0.122825276000000E+03),\n new google.maps.LatLng( 0.473714550000000E+02, -0.122826405000000E+03),\n new google.maps.LatLng( 0.473711350000000E+02, -0.122826817000000E+03),\n new google.maps.LatLng( 0.473695860000000E+02, -0.122826649000000E+03),\n new google.maps.LatLng( 0.473671060000000E+02, -0.122827626000000E+03),\n new google.maps.LatLng( 0.473662750000000E+02, -0.122829243000000E+03),\n new google.maps.LatLng( 0.473666030000000E+02, -0.122829564000000E+03),\n new google.maps.LatLng( 0.473746370000000E+02, -0.122829243000000E+03),\n new google.maps.LatLng( 0.473752240000000E+02, -0.122829651000000E+03),\n new google.maps.LatLng( 0.473765130000000E+02, -0.122832829000000E+03),\n new google.maps.LatLng( 0.473787180000000E+02, -0.122830327000000E+03),\n new google.maps.LatLng( 0.473840050000000E+02, -0.122826880000000E+03),\n new google.maps.LatLng( 0.473840050000000E+02, -0.122826880000000E+03),\n new google.maps.LatLng( 0.473972270000000E+02, -0.122822407000000E+03),\n new google.maps.LatLng( 0.473979290000000E+02, -0.122822652000000E+03),\n new google.maps.LatLng( 0.473979290000000E+02, -0.122823628000000E+03),\n new google.maps.LatLng( 0.474032160000000E+02, -0.122829046000000E+03),\n new google.maps.LatLng( 0.474049180000000E+02, -0.122829199000000E+03),\n new google.maps.LatLng( 0.474054060000000E+02, -0.122828710000000E+03),\n new google.maps.LatLng( 0.474058560000000E+02, -0.122824926000000E+03),\n new google.maps.LatLng( 0.474048110000000E+02, -0.122824270000000E+03),\n new google.maps.LatLng( 0.474064590000000E+02, -0.122819340000000E+03),\n new google.maps.LatLng( 0.474039180000000E+02, -0.122819020000000E+03),\n new google.maps.LatLng( 0.474015000000000E+02, -0.122816670000000E+03),\n new google.maps.LatLng( 0.473996300000000E+02, -0.122815617000000E+03),\n new google.maps.LatLng( 0.473954650000000E+02, -0.122813359000000E+03),\n new google.maps.LatLng( 0.473918330000000E+02, -0.122812381000000E+03),\n new google.maps.LatLng( 0.473841730000000E+02, -0.122813678000000E+03),\n new google.maps.LatLng( 0.473831200000000E+02, -0.122814411000000E+03),\n new google.maps.LatLng( 0.473826400000000E+02, -0.122816272000000E+03),\n new google.maps.LatLng( 0.473793210000000E+02, -0.122817325000000E+03),\n new google.maps.LatLng( 0.473777260000000E+02, -0.122817386000000E+03),\n new google.maps.LatLng( 0.473750330000000E+02, -0.122816272000000E+03),\n new google.maps.LatLng( 0.473728210000000E+02, -0.122816059000000E+03),\n new google.maps.LatLng( 0.473701350000000E+02, -0.122814121000000E+03),\n new google.maps.LatLng( 0.473677620000000E+02, -0.122814441000000E+03),\n new google.maps.LatLng( 0.473670530000000E+02, -0.122810566000000E+03),\n new google.maps.LatLng( 0.473631480000000E+02, -0.122807330000000E+03),\n new google.maps.LatLng( 0.473572650000000E+02, -0.122807409000000E+03),\n new google.maps.LatLng( 0.473589520000000E+02, -0.122802050000000E+03),\n new google.maps.LatLng( 0.473589520000000E+02, -0.122802050000000E+03),\n new google.maps.LatLng( 0.473588170000000E+02, -0.122802050000000E+03),\n new google.maps.LatLng( 0.473410830000000E+02, -0.122827777000000E+03),\n new google.maps.LatLng( 0.473369480000000E+02, -0.122830204000000E+03),\n new google.maps.LatLng( 0.473353920000000E+02, -0.122830600000000E+03),\n new google.maps.LatLng( 0.473348500000000E+02, -0.122829227000000E+03),\n new google.maps.LatLng( 0.473373220000000E+02, -0.122825840000000E+03),\n new google.maps.LatLng( 0.473406870000000E+02, -0.122822924000000E+03),\n new google.maps.LatLng( 0.473435630000000E+02, -0.122821796000000E+03),\n new google.maps.LatLng( 0.473458440000000E+02, -0.122821643000000E+03),\n new google.maps.LatLng( 0.473466220000000E+02, -0.122822040000000E+03),\n new google.maps.LatLng( 0.473462870000000E+02, -0.122823246000000E+03),\n new google.maps.LatLng( 0.473410830000000E+02, -0.122827777000000E+03),\n new google.maps.LatLng( 0.473281360000000E+02, -0.122832050000000E+03),\n new google.maps.LatLng( 0.473256490000000E+02, -0.122832859000000E+03),\n new google.maps.LatLng( 0.473241690000000E+02, -0.122832294000000E+03),\n new google.maps.LatLng( 0.473231770000000E+02, -0.122830523000000E+03),\n new google.maps.LatLng( 0.473211330000000E+02, -0.122830111000000E+03),\n new google.maps.LatLng( 0.473173710000000E+02, -0.122832690000000E+03),\n new google.maps.LatLng( 0.473169590000000E+02, -0.122833666000000E+03),\n new google.maps.LatLng( 0.473183330000000E+02, -0.122832858000000E+03),\n new google.maps.LatLng( 0.473184390000000E+02, -0.122833178000000E+03),\n new google.maps.LatLng( 0.473163110000000E+02, -0.122834873000000E+03),\n new google.maps.LatLng( 0.473148690000000E+02, -0.122834307000000E+03),\n new google.maps.LatLng( 0.473145030000000E+02, -0.122832690000000E+03),\n new google.maps.LatLng( 0.473172950000000E+02, -0.122826480000000E+03),\n new google.maps.LatLng( 0.473187520000000E+02, -0.122824267000000E+03),\n new google.maps.LatLng( 0.473202090000000E+02, -0.122823000000000E+03),\n new google.maps.LatLng( 0.473258250000000E+02, -0.122820178000000E+03),\n new google.maps.LatLng( 0.473297230000000E+02, -0.122819216000000E+03),\n new google.maps.LatLng( 0.473312260000000E+02, -0.122828251000000E+03),\n new google.maps.LatLng( 0.473300590000000E+02, -0.122830524000000E+03),\n new google.maps.LatLng( 0.473281360000000E+02, -0.122832050000000E+03),\n new google.maps.LatLng( 0.471873170000000E+02, -0.122931850000000E+03),\n new google.maps.LatLng( 0.471848640000000E+02, -0.122933234000000E+03),\n new google.maps.LatLng( 0.471840020000000E+02, -0.122932868000000E+03),\n new google.maps.LatLng( 0.471833760000000E+02, -0.122931983000000E+03),\n new google.maps.LatLng( 0.471831250000000E+02, -0.122930091000000E+03),\n new google.maps.LatLng( 0.471836130000000E+02, -0.122927176000000E+03),\n new google.maps.LatLng( 0.471850240000000E+02, -0.122925910000000E+03),\n new google.maps.LatLng( 0.471904650000000E+02, -0.122924471000000E+03),\n new google.maps.LatLng( 0.471913790000000E+02, -0.122925510000000E+03),\n new google.maps.LatLng( 0.471908990000000E+02, -0.122928226000000E+03),\n new google.maps.LatLng( 0.471892770000000E+02, -0.122930439000000E+03),\n new google.maps.LatLng( 0.471873170000000E+02, -0.122931850000000E+03),\n new google.maps.LatLng( 0.471810270000000E+02, -0.122915350000000E+03),\n new google.maps.LatLng( 0.471814390000000E+02, -0.122912100000000E+03),\n new google.maps.LatLng( 0.471804550000000E+02, -0.122907324000000E+03),\n new google.maps.LatLng( 0.471792800000000E+02, -0.122904561000000E+03),\n new google.maps.LatLng( 0.471788610000000E+02, -0.122904332000000E+03),\n new google.maps.LatLng( 0.471769150000000E+02, -0.122905003000000E+03),\n new google.maps.LatLng( 0.471720020000000E+02, -0.122900975000000E+03),\n new google.maps.LatLng( 0.471697510000000E+02, -0.122898183000000E+03),\n new google.maps.LatLng( 0.471681030000000E+02, -0.122894093000000E+03),\n new google.maps.LatLng( 0.471680880000000E+02, -0.122892109000000E+03),\n new google.maps.LatLng( 0.471693700000000E+02, -0.122891239000000E+03),\n new google.maps.LatLng( 0.471735430000000E+02, -0.122891269000000E+03),\n new google.maps.LatLng( 0.471753660000000E+02, -0.122892750000000E+03),\n new google.maps.LatLng( 0.471752600000000E+02, -0.122893574000000E+03),\n new google.maps.LatLng( 0.471748400000000E+02, -0.122893574000000E+03),\n new google.maps.LatLng( 0.471788530000000E+02, -0.122896794000000E+03),\n new google.maps.LatLng( 0.471838270000000E+02, -0.122897999000000E+03),\n new google.maps.LatLng( 0.471873180000000E+02, -0.122901106000000E+03),\n new google.maps.LatLng( 0.471905050000000E+02, -0.122899155000000E+03),\n new google.maps.LatLng( 0.471933850000000E+02, -0.122899119000000E+03),\n new google.maps.LatLng( 0.471944360000000E+02, -0.122900158000000E+03),\n new google.maps.LatLng( 0.471945960000000E+02, -0.122901600000000E+03),\n new google.maps.LatLng( 0.471926770000000E+02, -0.122904419000000E+03),\n new google.maps.LatLng( 0.471925410000000E+02, -0.122905324000000E+03),\n new google.maps.LatLng( 0.471959920000000E+02, -0.122906764000000E+03),\n new google.maps.LatLng( 0.471997640000000E+02, -0.122906862000000E+03),\n new google.maps.LatLng( 0.472112840000000E+02, -0.122911685000000E+03),\n new google.maps.LatLng( 0.472130450000000E+02, -0.122914200000000E+03),\n new google.maps.LatLng( 0.472189200000000E+02, -0.122919733000000E+03),\n new google.maps.LatLng( 0.472234910000000E+02, -0.122922114000000E+03),\n new google.maps.LatLng( 0.472255950000000E+02, -0.122924529000000E+03),\n new google.maps.LatLng( 0.472258920000000E+02, -0.122927683000000E+03),\n new google.maps.LatLng( 0.472236980000000E+02, -0.122929361000000E+03),\n new google.maps.LatLng( 0.472194930000000E+02, -0.122930939000000E+03),\n new google.maps.LatLng( 0.472146470000000E+02, -0.122928188000000E+03),\n new google.maps.LatLng( 0.472128640000000E+02, -0.122924666000000E+03),\n new google.maps.LatLng( 0.472077430000000E+02, -0.122921582000000E+03),\n new google.maps.LatLng( 0.472020520000000E+02, -0.122922020000000E+03),\n new google.maps.LatLng( 0.471974360000000E+02, -0.122923597000000E+03),\n new google.maps.LatLng( 0.471964520000000E+02, -0.122920647000000E+03),\n new google.maps.LatLng( 0.471975720000000E+02, -0.122918365000000E+03),\n new google.maps.LatLng( 0.471980510000000E+02, -0.122914710000000E+03),\n new google.maps.LatLng( 0.471978910000000E+02, -0.122913905000000E+03),\n new google.maps.LatLng( 0.471969770000000E+02, -0.122913268000000E+03),\n new google.maps.LatLng( 0.471958110000000E+02, -0.122913437000000E+03),\n new google.maps.LatLng( 0.471943260000000E+02, -0.122915986000000E+03),\n new google.maps.LatLng( 0.471935720000000E+02, -0.122918635000000E+03),\n new google.maps.LatLng( 0.471912870000000E+02, -0.122919876000000E+03),\n new google.maps.LatLng( 0.471879500000000E+02, -0.122918771000000E+03),\n new google.maps.LatLng( 0.471889320000000E+02, -0.122915485000000E+03),\n new google.maps.LatLng( 0.471860850000000E+02, -0.122914373000000E+03),\n new google.maps.LatLng( 0.471810270000000E+02, -0.122915350000000E+03),\n new google.maps.LatLng( 0.472466880000000E+02, -0.122921505000000E+03),\n new google.maps.LatLng( 0.472462330000000E+02, -0.122922745000000E+03),\n new google.maps.LatLng( 0.472445420000000E+02, -0.122924088000000E+03),\n new google.maps.LatLng( 0.472390800000000E+02, -0.122925533000000E+03),\n new google.maps.LatLng( 0.472338230000000E+02, -0.122925063000000E+03),\n new google.maps.LatLng( 0.472297770000000E+02, -0.122923554000000E+03),\n new google.maps.LatLng( 0.472236970000000E+02, -0.122919027000000E+03),\n new google.maps.LatLng( 0.472231250000000E+02, -0.122917954000000E+03),\n new google.maps.LatLng( 0.472233300000000E+02, -0.122914431000000E+03),\n new google.maps.LatLng( 0.472203580000000E+02, -0.122909164000000E+03),\n new google.maps.LatLng( 0.472099780000000E+02, -0.122898570000000E+03),\n new google.maps.LatLng( 0.472078280000000E+02, -0.122894279000000E+03),\n new google.maps.LatLng( 0.472057700000000E+02, -0.122891900000000E+03),\n new google.maps.LatLng( 0.471978380000000E+02, -0.122887681000000E+03),\n new google.maps.LatLng( 0.471880760000000E+02, -0.122883767000000E+03),\n new google.maps.LatLng( 0.471807760000000E+02, -0.122881855000000E+03),\n new google.maps.LatLng( 0.471729840000000E+02, -0.122876117000000E+03),\n new google.maps.LatLng( 0.471698500000000E+02, -0.122875781000000E+03),\n new google.maps.LatLng( 0.471659370000000E+02, -0.122876284000000E+03),\n new google.maps.LatLng( 0.471634870000000E+02, -0.122879657000000E+03),\n new google.maps.LatLng( 0.471627470000000E+02, -0.122879718000000E+03),\n new google.maps.LatLng( 0.471626410000000E+02, -0.122878605000000E+03),\n new google.maps.LatLng( 0.471690340000000E+02, -0.122868090000000E+03),\n new google.maps.LatLng( 0.471706820000000E+02, -0.122863696000000E+03),\n new google.maps.LatLng( 0.471738480000000E+02, -0.122859332000000E+03),\n new google.maps.LatLng( 0.471781360000000E+02, -0.122854784000000E+03),\n new google.maps.LatLng( 0.471841480000000E+02, -0.122850847000000E+03),\n new google.maps.LatLng( 0.471868410000000E+02, -0.122849885000000E+03),\n new google.maps.LatLng( 0.471898300000000E+02, -0.122849905000000E+03),\n new google.maps.LatLng( 0.471989110000000E+02, -0.122845033000000E+03),\n new google.maps.LatLng( 0.472064940000000E+02, -0.122841966000000E+03),\n new google.maps.LatLng( 0.472119950000000E+02, -0.122843416000000E+03),\n new google.maps.LatLng( 0.472131470000000E+02, -0.122845689000000E+03),\n new google.maps.LatLng( 0.472214860000000E+02, -0.122852648000000E+03),\n new google.maps.LatLng( 0.472277720000000E+02, -0.122856936000000E+03),\n new google.maps.LatLng( 0.472284810000000E+02, -0.122857180000000E+03),\n new google.maps.LatLng( 0.472314030000000E+02, -0.122856204000000E+03),\n new google.maps.LatLng( 0.472351260000000E+02, -0.122856616000000E+03),\n new google.maps.LatLng( 0.472348980000000E+02, -0.122860735000000E+03),\n new google.maps.LatLng( 0.472358970000000E+02, -0.122862933000000E+03),\n new google.maps.LatLng( 0.472387580000000E+02, -0.122866001000000E+03),\n new google.maps.LatLng( 0.472465400000000E+02, -0.122871997000000E+03),\n new google.maps.LatLng( 0.472475400000000E+02, -0.122871997000000E+03),\n new google.maps.LatLng( 0.472694510000000E+02, -0.122863742000000E+03),\n new google.maps.LatLng( 0.472714880000000E+02, -0.122863987000000E+03),\n new google.maps.LatLng( 0.472720830000000E+02, -0.122866413000000E+03),\n new google.maps.LatLng( 0.472719150000000E+02, -0.122868259000000E+03),\n new google.maps.LatLng( 0.472735630000000E+02, -0.122872288000000E+03),\n new google.maps.LatLng( 0.472793010000000E+02, -0.122871007000000E+03),\n new google.maps.LatLng( 0.472809560000000E+02, -0.122868916000000E+03),\n new google.maps.LatLng( 0.472846490000000E+02, -0.122861255000000E+03),\n new google.maps.LatLng( 0.472860220000000E+02, -0.122859485000000E+03),\n new google.maps.LatLng( 0.472894320000000E+02, -0.122856983000000E+03),\n new google.maps.LatLng( 0.472900960000000E+02, -0.122857135000000E+03),\n new google.maps.LatLng( 0.472943310000000E+02, -0.122855121000000E+03),\n new google.maps.LatLng( 0.472952690000000E+02, -0.122852069000000E+03),\n new google.maps.LatLng( 0.472981830000000E+02, -0.122847858000000E+03),\n new google.maps.LatLng( 0.472995030000000E+02, -0.122846820000000E+03),\n new google.maps.LatLng( 0.473004420000000E+02, -0.122846973000000E+03),\n new google.maps.LatLng( 0.473015250000000E+02, -0.122850183000000E+03),\n new google.maps.LatLng( 0.473006630000000E+02, -0.122852146000000E+03),\n new google.maps.LatLng( 0.472968480000000E+02, -0.122856739000000E+03),\n new google.maps.LatLng( 0.472962530000000E+02, -0.122862065000000E+03),\n new google.maps.LatLng( 0.472926520000000E+02, -0.122868581000000E+03),\n new google.maps.LatLng( 0.472876360000000E+02, -0.122882591000000E+03),\n new google.maps.LatLng( 0.472786350000000E+02, -0.122890862000000E+03),\n new google.maps.LatLng( 0.472775150000000E+02, -0.122891098000000E+03),\n new google.maps.LatLng( 0.472772640000000E+02, -0.122893349000000E+03),\n new google.maps.LatLng( 0.472845070000000E+02, -0.122887599000000E+03),\n new google.maps.LatLng( 0.472854210000000E+02, -0.122887497000000E+03),\n new google.maps.LatLng( 0.472856500000000E+02, -0.122888035000000E+03),\n new google.maps.LatLng( 0.472855400000000E+02, -0.122896802000000E+03),\n new google.maps.LatLng( 0.472845810000000E+02, -0.122900363000000E+03),\n new google.maps.LatLng( 0.472829590000000E+02, -0.122902380000000E+03),\n new google.maps.LatLng( 0.472830740000000E+02, -0.122906208000000E+03),\n new google.maps.LatLng( 0.472839660000000E+02, -0.122908358000000E+03),\n new google.maps.LatLng( 0.472825960000000E+02, -0.122912222000000E+03),\n new google.maps.LatLng( 0.472802420000000E+02, -0.122915044000000E+03),\n new google.maps.LatLng( 0.472754890000000E+02, -0.122918942000000E+03),\n new google.maps.LatLng( 0.472544840000000E+02, -0.122917774000000E+03),\n new google.maps.LatLng( 0.472449530000000E+02, -0.122920496000000E+03),\n new google.maps.LatLng( 0.472448390000000E+02, -0.122921906000000E+03),\n new google.maps.LatLng( 0.472466880000000E+02, -0.122921505000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.477317121007947E+02, -0.122549908635166E+03),\n new google.maps.LatLng( 0.477306190000000E+02, -0.122550233000000E+03),\n new google.maps.LatLng( 0.477260030000000E+02, -0.122553960000000E+03),\n new google.maps.LatLng( 0.477201080000000E+02, -0.122561278000000E+03),\n new google.maps.LatLng( 0.477172510000000E+02, -0.122562700000000E+03),\n new google.maps.LatLng( 0.477128400000000E+02, -0.122567207000000E+03),\n new google.maps.LatLng( 0.477128400000000E+02, -0.122567207000000E+03),\n new google.maps.LatLng( 0.477139580000000E+02, -0.122570806000000E+03),\n new google.maps.LatLng( 0.477216840000000E+02, -0.122569779000000E+03),\n new google.maps.LatLng( 0.477225160000000E+02, -0.122575358000000E+03),\n new google.maps.LatLng( 0.477283800000000E+02, -0.122576183000000E+03),\n new google.maps.LatLng( 0.477297740000000E+02, -0.122575743000000E+03),\n new google.maps.LatLng( 0.477355790000000E+02, -0.122572051000000E+03),\n new google.maps.LatLng( 0.477414400000000E+02, -0.122571031000000E+03),\n new google.maps.LatLng( 0.477442410000000E+02, -0.122573814000000E+03),\n new google.maps.LatLng( 0.477441859946594E+02, -0.122553960865509E+03),\n new google.maps.LatLng( 0.477441859946594E+02, -0.122553960865509E+03),\n new google.maps.LatLng( 0.477317121007947E+02, -0.122549908635166E+03),\n ];\n\n return zipCoords\n}", "function coords_by_tile(z, x, y) {\n var longitude = (x/Math.pow(2,z)*360-180);\n logger.debug(longitude);\n var n = Math.pow(2, z);\n n = Math.PI * (1 - (2 * y / n));\n var latitude = rad_to_deg(Math.atan(sinh(n)) );\n logger.debug(latitude);\n return [round_to(longitude, 10), round_to(latitude, 10)]\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.476949250000000E+02, -0.117304059000000E+03),\n new google.maps.LatLng( 0.477145260000000E+02, -0.117303820000000E+03),\n new google.maps.LatLng( 0.477144760000000E+02, -0.117293570000000E+03),\n new google.maps.LatLng( 0.477111730000000E+02, -0.117293861000000E+03),\n new google.maps.LatLng( 0.477071730000000E+02, -0.117290101000000E+03),\n new google.maps.LatLng( 0.477077970000000E+02, -0.117281652000000E+03),\n new google.maps.LatLng( 0.477063930000000E+02, -0.117281844000000E+03),\n new google.maps.LatLng( 0.477044210000000E+02, -0.117283428000000E+03),\n new google.maps.LatLng( 0.477022930000000E+02, -0.117284244000000E+03),\n new google.maps.LatLng( 0.477001930000000E+02, -0.117283144000000E+03),\n new google.maps.LatLng( 0.477001930000000E+02, -0.117283144000000E+03),\n new google.maps.LatLng( 0.476903930000000E+02, -0.117283143000000E+03),\n new google.maps.LatLng( 0.476903930000000E+02, -0.117283143000000E+03),\n new google.maps.LatLng( 0.476919930000000E+02, -0.117296244000000E+03),\n new google.maps.LatLng( 0.476949250000000E+02, -0.117304059000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.473840050000000E+02, -0.122826880000000E+03),\n new google.maps.LatLng( 0.473787180000000E+02, -0.122830327000000E+03),\n new google.maps.LatLng( 0.473765130000000E+02, -0.122832829000000E+03),\n new google.maps.LatLng( 0.473752240000000E+02, -0.122829651000000E+03),\n new google.maps.LatLng( 0.473746370000000E+02, -0.122829243000000E+03),\n new google.maps.LatLng( 0.473666030000000E+02, -0.122829564000000E+03),\n new google.maps.LatLng( 0.473662750000000E+02, -0.122829243000000E+03),\n new google.maps.LatLng( 0.473671060000000E+02, -0.122827626000000E+03),\n new google.maps.LatLng( 0.473695860000000E+02, -0.122826649000000E+03),\n new google.maps.LatLng( 0.473711350000000E+02, -0.122826817000000E+03),\n new google.maps.LatLng( 0.473714550000000E+02, -0.122826405000000E+03),\n new google.maps.LatLng( 0.473711800000000E+02, -0.122825276000000E+03),\n new google.maps.LatLng( 0.473695860000000E+02, -0.122824710000000E+03),\n new google.maps.LatLng( 0.473657860000000E+02, -0.122825275000000E+03),\n new google.maps.LatLng( 0.473632150000000E+02, -0.122824390000000E+03),\n new google.maps.LatLng( 0.473597300000000E+02, -0.122825763000000E+03),\n new google.maps.LatLng( 0.473565790000000E+02, -0.122828266000000E+03),\n new google.maps.LatLng( 0.473540000000000E+02, -0.122831257000000E+03),\n new google.maps.LatLng( 0.473570290000000E+02, -0.122827289000000E+03),\n new google.maps.LatLng( 0.473563190000000E+02, -0.122826160000000E+03),\n new google.maps.LatLng( 0.473545570000000E+02, -0.122825351000000E+03),\n new google.maps.LatLng( 0.473512610000000E+02, -0.122826084000000E+03),\n new google.maps.LatLng( 0.473469730000000E+02, -0.122828510000000E+03),\n new google.maps.LatLng( 0.473428990000000E+02, -0.122832706000000E+03),\n new google.maps.LatLng( 0.473453180000000E+02, -0.122828586000000E+03),\n new google.maps.LatLng( 0.473439450000000E+02, -0.122828663000000E+03),\n new google.maps.LatLng( 0.473417930000000E+02, -0.122830112000000E+03),\n new google.maps.LatLng( 0.473417930000000E+02, -0.122830112000000E+03),\n new google.maps.LatLng( 0.473410150000000E+02, -0.122833423000000E+03),\n new google.maps.LatLng( 0.473481100000000E+02, -0.122833515000000E+03),\n new google.maps.LatLng( 0.473511310000000E+02, -0.122834721000000E+03),\n new google.maps.LatLng( 0.473516430000000E+02, -0.122835774000000E+03),\n new google.maps.LatLng( 0.473512530000000E+02, -0.122837804000000E+03),\n new google.maps.LatLng( 0.473482250000000E+02, -0.122840871000000E+03),\n new google.maps.LatLng( 0.473478280000000E+02, -0.122844334000000E+03),\n new google.maps.LatLng( 0.473489340000000E+02, -0.122849431000000E+03),\n new google.maps.LatLng( 0.473576430000000E+02, -0.122846858000000E+03),\n new google.maps.LatLng( 0.473596990000000E+02, -0.122849405000000E+03),\n new google.maps.LatLng( 0.473596640000000E+02, -0.122858313000000E+03),\n new google.maps.LatLng( 0.473456200000000E+02, -0.122858290000000E+03),\n new google.maps.LatLng( 0.473456950000000E+02, -0.122894799000000E+03),\n new google.maps.LatLng( 0.473490650000000E+02, -0.122893066000000E+03),\n new google.maps.LatLng( 0.473608290000000E+02, -0.122878834000000E+03),\n new google.maps.LatLng( 0.473665420000000E+02, -0.122872641000000E+03),\n new google.maps.LatLng( 0.473665420000000E+02, -0.122872641000000E+03),\n new google.maps.LatLng( 0.473700670000000E+02, -0.122867713000000E+03),\n new google.maps.LatLng( 0.473708370000000E+02, -0.122859717000000E+03),\n new google.maps.LatLng( 0.473716690000000E+02, -0.122856481000000E+03),\n new google.maps.LatLng( 0.473750180000000E+02, -0.122852712000000E+03),\n new google.maps.LatLng( 0.473776580000000E+02, -0.122850698000000E+03),\n new google.maps.LatLng( 0.473820680000000E+02, -0.122849233000000E+03),\n new google.maps.LatLng( 0.473896820000000E+02, -0.122849402000000E+03),\n new google.maps.LatLng( 0.473970520000000E+02, -0.122853934000000E+03),\n new google.maps.LatLng( 0.473988600000000E+02, -0.122854422000000E+03),\n new google.maps.LatLng( 0.474004470000000E+02, -0.122854026000000E+03),\n new google.maps.LatLng( 0.474073900000000E+02, -0.122850318000000E+03),\n new google.maps.LatLng( 0.474147140000000E+02, -0.122849509000000E+03),\n new google.maps.LatLng( 0.474179720000000E+02, -0.122846762000000E+03),\n new google.maps.LatLng( 0.474126230000000E+02, -0.122844077000000E+03),\n new google.maps.LatLng( 0.474075160000000E+02, -0.122838736000000E+03),\n new google.maps.LatLng( 0.474022240000000E+02, -0.122835989000000E+03),\n new google.maps.LatLng( 0.474010650000000E+02, -0.122832998000000E+03),\n new google.maps.LatLng( 0.473978760000000E+02, -0.122829519000000E+03),\n new google.maps.LatLng( 0.473906660000000E+02, -0.122826604000000E+03),\n new google.maps.LatLng( 0.473842190000000E+02, -0.122828786000000E+03),\n new google.maps.LatLng( 0.473840050000000E+02, -0.122826880000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.460440110000000E+02, -0.121515492000000E+03),\n new google.maps.LatLng( 0.460371850000000E+02, -0.121521916000000E+03),\n new google.maps.LatLng( 0.460343740000000E+02, -0.121523558000000E+03),\n new google.maps.LatLng( 0.460318830000000E+02, -0.121524347000000E+03),\n new google.maps.LatLng( 0.460295060000000E+02, -0.121524152000000E+03),\n new google.maps.LatLng( 0.460267850000000E+02, -0.121520577000000E+03),\n new google.maps.LatLng( 0.460230780000000E+02, -0.121509097000000E+03),\n new google.maps.LatLng( 0.460228250000000E+02, -0.121506833000000E+03),\n new google.maps.LatLng( 0.460260490000000E+02, -0.121498115000000E+03),\n new google.maps.LatLng( 0.460253190000000E+02, -0.121495424000000E+03),\n new google.maps.LatLng( 0.460258460000000E+02, -0.121492045000000E+03),\n new google.maps.LatLng( 0.460283380000000E+02, -0.121490964000000E+03),\n new google.maps.LatLng( 0.460286350000000E+02, -0.121490308000000E+03),\n new google.maps.LatLng( 0.460304200000000E+02, -0.121484961000000E+03),\n new google.maps.LatLng( 0.460314510000000E+02, -0.121479285000000E+03),\n new google.maps.LatLng( 0.460308800000000E+02, -0.121478202000000E+03),\n new google.maps.LatLng( 0.460262630000000E+02, -0.121476394000000E+03),\n new google.maps.LatLng( 0.460210520000000E+02, -0.121476587000000E+03),\n new google.maps.LatLng( 0.460158880000000E+02, -0.121471696000000E+03),\n new google.maps.LatLng( 0.460094440000000E+02, -0.121462573000000E+03),\n new google.maps.LatLng( 0.459993450000000E+02, -0.121457907000000E+03),\n new google.maps.LatLng( 0.459986160000000E+02, -0.121456333000000E+03),\n new google.maps.LatLng( 0.459962170000000E+02, -0.121453545000000E+03),\n new google.maps.LatLng( 0.459922850000000E+02, -0.121450658000000E+03),\n new google.maps.LatLng( 0.459901370000000E+02, -0.121450264000000E+03),\n new google.maps.LatLng( 0.459890170000000E+02, -0.121453412000000E+03),\n new google.maps.LatLng( 0.459783410000000E+02, -0.121460917000000E+03),\n new google.maps.LatLng( 0.459754840000000E+02, -0.121461736000000E+03),\n new google.maps.LatLng( 0.459688790000000E+02, -0.121456094000000E+03),\n new google.maps.LatLng( 0.459678970000000E+02, -0.121451833000000E+03),\n new google.maps.LatLng( 0.459660480000000E+02, -0.121449992000000E+03),\n new google.maps.LatLng( 0.459617710000000E+02, -0.121449734000000E+03),\n new google.maps.LatLng( 0.459511910000000E+02, -0.121454064000000E+03),\n new google.maps.LatLng( 0.459462740000000E+02, -0.121451348000000E+03),\n new google.maps.LatLng( 0.459429060000000E+02, -0.121454767000000E+03),\n new google.maps.LatLng( 0.459425470000000E+02, -0.121458151000000E+03),\n new google.maps.LatLng( 0.459435070000000E+02, -0.121461460000000E+03),\n new google.maps.LatLng( 0.459448320000000E+02, -0.121462411000000E+03),\n new google.maps.LatLng( 0.459455180000000E+02, -0.121462346000000E+03),\n new google.maps.LatLng( 0.459469580000000E+02, -0.121463690000000E+03),\n new google.maps.LatLng( 0.459488090000000E+02, -0.121466574000000E+03),\n new google.maps.LatLng( 0.459482820000000E+02, -0.121471030000000E+03),\n new google.maps.LatLng( 0.459460640000000E+02, -0.121474338000000E+03),\n new google.maps.LatLng( 0.459460650000000E+02, -0.121478367000000E+03),\n new google.maps.LatLng( 0.459460650000000E+02, -0.121478367000000E+03),\n new google.maps.LatLng( 0.459464510000000E+02, -0.121478794000000E+03),\n new google.maps.LatLng( 0.459454220000000E+02, -0.121480333000000E+03),\n new google.maps.LatLng( 0.459441190000000E+02, -0.121480496000000E+03),\n new google.maps.LatLng( 0.459419700000000E+02, -0.121482198000000E+03),\n new google.maps.LatLng( 0.459418100000000E+02, -0.121485130000000E+03),\n new google.maps.LatLng( 0.459422630000000E+02, -0.121492126000000E+03),\n new google.maps.LatLng( 0.459455090000000E+02, -0.121491703000000E+03),\n new google.maps.LatLng( 0.459455540000000E+02, -0.121493439000000E+03),\n new google.maps.LatLng( 0.459395470000000E+02, -0.121497412000000E+03),\n new google.maps.LatLng( 0.459380470000000E+02, -0.121494769000000E+03),\n new google.maps.LatLng( 0.459379640000000E+02, -0.121493432000000E+03),\n new google.maps.LatLng( 0.459204980000000E+02, -0.121498490000000E+03),\n new google.maps.LatLng( 0.459209770000000E+02, -0.121500358000000E+03),\n new google.maps.LatLng( 0.459295490000000E+02, -0.121498667000000E+03),\n new google.maps.LatLng( 0.459278120000000E+02, -0.121506338000000E+03),\n new google.maps.LatLng( 0.459270820000000E+02, -0.121507649000000E+03),\n new google.maps.LatLng( 0.459242950000000E+02, -0.121506895000000E+03),\n new google.maps.LatLng( 0.459228100000000E+02, -0.121505739000000E+03),\n new google.maps.LatLng( 0.459204150000000E+02, -0.121504831000000E+03),\n new google.maps.LatLng( 0.459157490000000E+02, -0.121503486000000E+03),\n new google.maps.LatLng( 0.459155840000000E+02, -0.121506546000000E+03),\n new google.maps.LatLng( 0.459166590000000E+02, -0.121509198000000E+03),\n new google.maps.LatLng( 0.459192430000000E+02, -0.121510636000000E+03),\n new google.maps.LatLng( 0.459230420000000E+02, -0.121520524000000E+03),\n new google.maps.LatLng( 0.459236900000000E+02, -0.121529134000000E+03),\n new google.maps.LatLng( 0.459273280000000E+02, -0.121529116000000E+03),\n new google.maps.LatLng( 0.459293540000000E+02, -0.121532868000000E+03),\n new google.maps.LatLng( 0.459291950000000E+02, -0.121534932000000E+03),\n new google.maps.LatLng( 0.459282810000000E+02, -0.121537290000000E+03),\n new google.maps.LatLng( 0.459256990000000E+02, -0.121540403000000E+03),\n new google.maps.LatLng( 0.459242140000000E+02, -0.121543057000000E+03),\n new google.maps.LatLng( 0.459196890000000E+02, -0.121560383000000E+03),\n new google.maps.LatLng( 0.459202380000000E+02, -0.121565558000000E+03),\n new google.maps.LatLng( 0.459247640000000E+02, -0.121565328000000E+03),\n new google.maps.LatLng( 0.459266610000000E+02, -0.121561988000000E+03),\n new google.maps.LatLng( 0.459289010000000E+02, -0.121565066000000E+03),\n new google.maps.LatLng( 0.459294950000000E+02, -0.121567130000000E+03),\n new google.maps.LatLng( 0.459290380000000E+02, -0.121573714000000E+03),\n new google.maps.LatLng( 0.459277800000000E+02, -0.121579085000000E+03),\n new google.maps.LatLng( 0.459305680000000E+02, -0.121585867000000E+03),\n new google.maps.LatLng( 0.459304990000000E+02, -0.121586947000000E+03),\n new google.maps.LatLng( 0.459246900000000E+02, -0.121598409000000E+03),\n new google.maps.LatLng( 0.459241860000000E+02, -0.121601782000000E+03),\n new google.maps.LatLng( 0.459247800000000E+02, -0.121602667000000E+03),\n new google.maps.LatLng( 0.459262430000000E+02, -0.121603388000000E+03),\n new google.maps.LatLng( 0.459265850000000E+02, -0.121604895000000E+03),\n new google.maps.LatLng( 0.459253250000000E+02, -0.121609971000000E+03),\n new google.maps.LatLng( 0.459225690000000E+02, -0.121612743000000E+03),\n new google.maps.LatLng( 0.459225690000000E+02, -0.121612743000000E+03),\n new google.maps.LatLng( 0.459486210000000E+02, -0.121612778000000E+03),\n new google.maps.LatLng( 0.459556460000000E+02, -0.121612704000000E+03),\n new google.maps.LatLng( 0.459624000000000E+02, -0.121612689000000E+03),\n new google.maps.LatLng( 0.459654600000000E+02, -0.121612601000000E+03),\n new google.maps.LatLng( 0.459685890000000E+02, -0.121612511000000E+03),\n new google.maps.LatLng( 0.460036040000000E+02, -0.121611974000000E+03),\n new google.maps.LatLng( 0.460438410000000E+02, -0.121612502000000E+03),\n new google.maps.LatLng( 0.460435990000000E+02, -0.121569434000000E+03),\n new google.maps.LatLng( 0.460440480000000E+02, -0.121523938000000E+03),\n new google.maps.LatLng( 0.460440480000000E+02, -0.121523938000000E+03),\n new google.maps.LatLng( 0.460440110000000E+02, -0.121515492000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.483152560000000E+02, -0.118058074000000E+03),\n new google.maps.LatLng( 0.483103770000000E+02, -0.118049858000000E+03),\n new google.maps.LatLng( 0.483071320000000E+02, -0.118047187000000E+03),\n new google.maps.LatLng( 0.483014650000000E+02, -0.118049483000000E+03),\n new google.maps.LatLng( 0.482861330000000E+02, -0.118051233000000E+03),\n new google.maps.LatLng( 0.482790490000000E+02, -0.118054795000000E+03),\n new google.maps.LatLng( 0.482776160000000E+02, -0.118058909000000E+03),\n new google.maps.LatLng( 0.482777940000000E+02, -0.118059776000000E+03),\n new google.maps.LatLng( 0.482761540000000E+02, -0.118061649000000E+03),\n new google.maps.LatLng( 0.482677380000000E+02, -0.118062052000000E+03),\n new google.maps.LatLng( 0.482662760000000E+02, -0.118061060000000E+03),\n new google.maps.LatLng( 0.482647910000000E+02, -0.118058459000000E+03),\n new google.maps.LatLng( 0.482634650000000E+02, -0.118057158000000E+03),\n new google.maps.LatLng( 0.482566560000000E+02, -0.118056304000000E+03),\n new google.maps.LatLng( 0.482553530000000E+02, -0.118056817000000E+03),\n new google.maps.LatLng( 0.482537080000000E+02, -0.118056646000000E+03),\n new google.maps.LatLng( 0.482516970000000E+02, -0.118055689000000E+03),\n new google.maps.LatLng( 0.482516970000000E+02, -0.118055689000000E+03),\n new google.maps.LatLng( 0.482525190000000E+02, -0.118059247000000E+03),\n new google.maps.LatLng( 0.482509880000000E+02, -0.118060581000000E+03),\n new google.maps.LatLng( 0.482493330000000E+02, -0.118064416000000E+03),\n new google.maps.LatLng( 0.482491890000000E+02, -0.118067260000000E+03),\n new google.maps.LatLng( 0.482498920000000E+02, -0.118069696000000E+03),\n new google.maps.LatLng( 0.482487160000000E+02, -0.118072114000000E+03),\n new google.maps.LatLng( 0.482464990000000E+02, -0.118073482000000E+03),\n new google.maps.LatLng( 0.482416550000000E+02, -0.118078851000000E+03),\n new google.maps.LatLng( 0.482436650000000E+02, -0.118082376000000E+03),\n new google.maps.LatLng( 0.482452640000000E+02, -0.118082547000000E+03),\n new google.maps.LatLng( 0.482470470000000E+02, -0.118080837000000E+03),\n new google.maps.LatLng( 0.482483030000000E+02, -0.118081933000000E+03),\n new google.maps.LatLng( 0.482470450000000E+02, -0.118089015000000E+03),\n new google.maps.LatLng( 0.482443470000000E+02, -0.118097463000000E+03),\n new google.maps.LatLng( 0.482431350000000E+02, -0.118099720000000E+03),\n new google.maps.LatLng( 0.482420150000000E+02, -0.118100232000000E+03),\n new google.maps.LatLng( 0.482388820000000E+02, -0.118103992000000E+03),\n new google.maps.LatLng( 0.482362530000000E+02, -0.118108265000000E+03),\n new google.maps.LatLng( 0.482307670000000E+02, -0.118113083000000E+03),\n new google.maps.LatLng( 0.482267850000000E+02, -0.118124057000000E+03),\n new google.maps.LatLng( 0.482259210000000E+02, -0.118128448000000E+03),\n new google.maps.LatLng( 0.482250770000000E+02, -0.118139015000000E+03),\n new google.maps.LatLng( 0.482228610000000E+02, -0.118139769000000E+03),\n new google.maps.LatLng( 0.482216040000000E+02, -0.118141035000000E+03),\n new google.maps.LatLng( 0.482210570000000E+02, -0.118142369000000E+03),\n new google.maps.LatLng( 0.482208080000000E+02, -0.118149072000000E+03),\n new google.maps.LatLng( 0.482251510000000E+02, -0.118155156000000E+03),\n new google.maps.LatLng( 0.482279620000000E+02, -0.118158163000000E+03),\n new google.maps.LatLng( 0.482279620000000E+02, -0.118158163000000E+03),\n new google.maps.LatLng( 0.482291280000000E+02, -0.118157923000000E+03),\n new google.maps.LatLng( 0.482315030000000E+02, -0.118155733000000E+03),\n new google.maps.LatLng( 0.482478140000000E+02, -0.118139029000000E+03),\n new google.maps.LatLng( 0.482520960000000E+02, -0.118136251000000E+03),\n new google.maps.LatLng( 0.482606640000000E+02, -0.118132444000000E+03),\n new google.maps.LatLng( 0.482753580000000E+02, -0.118135953000000E+03),\n new google.maps.LatLng( 0.482815060000000E+02, -0.118138035000000E+03),\n new google.maps.LatLng( 0.482832880000000E+02, -0.118139233000000E+03),\n new google.maps.LatLng( 0.482837690000000E+02, -0.118141012000000E+03),\n new google.maps.LatLng( 0.482863290000000E+02, -0.118143988000000E+03),\n new google.maps.LatLng( 0.482880210000000E+02, -0.118145083000000E+03),\n new google.maps.LatLng( 0.482968880000000E+02, -0.118148602000000E+03),\n new google.maps.LatLng( 0.482989680000000E+02, -0.118151889000000E+03),\n new google.maps.LatLng( 0.483023040000000E+02, -0.118153222000000E+03),\n new google.maps.LatLng( 0.483054570000000E+02, -0.118152193000000E+03),\n new google.maps.LatLng( 0.483070800000000E+02, -0.118149383000000E+03),\n new google.maps.LatLng( 0.483149170000000E+02, -0.118149172000000E+03),\n new google.maps.LatLng( 0.483319880000000E+02, -0.118155911000000E+03),\n new google.maps.LatLng( 0.483416540000000E+02, -0.118160840000000E+03),\n new google.maps.LatLng( 0.483421120000000E+02, -0.118161491000000E+03),\n new google.maps.LatLng( 0.483448990000000E+02, -0.118162415000000E+03),\n new google.maps.LatLng( 0.483547260000000E+02, -0.118164331000000E+03),\n new google.maps.LatLng( 0.483603240000000E+02, -0.118163780000000E+03),\n new google.maps.LatLng( 0.483603240000000E+02, -0.118163780000000E+03),\n new google.maps.LatLng( 0.483607810000000E+02, -0.118161548000000E+03),\n new google.maps.LatLng( 0.483549540000000E+02, -0.118160011000000E+03),\n new google.maps.LatLng( 0.483532400000000E+02, -0.118158915000000E+03),\n new google.maps.LatLng( 0.483520510000000E+02, -0.118155076000000E+03),\n new google.maps.LatLng( 0.483462450000000E+02, -0.118148429000000E+03),\n new google.maps.LatLng( 0.483370340000000E+02, -0.118145077000000E+03),\n new google.maps.LatLng( 0.483282140000000E+02, -0.118144296000000E+03),\n new google.maps.LatLng( 0.483217940000000E+02, -0.118145604000000E+03),\n new google.maps.LatLng( 0.483189600000000E+02, -0.118143585000000E+03),\n new google.maps.LatLng( 0.483111650000000E+02, -0.118136192000000E+03),\n new google.maps.LatLng( 0.483106350000000E+02, -0.118122170000000E+03),\n new google.maps.LatLng( 0.483114600000000E+02, -0.118117684000000E+03),\n new google.maps.LatLng( 0.483203770000000E+02, -0.118107449000000E+03),\n new google.maps.LatLng( 0.483226170000000E+02, -0.118106354000000E+03),\n new google.maps.LatLng( 0.483251780000000E+02, -0.118101423000000E+03),\n new google.maps.LatLng( 0.483242410000000E+02, -0.118100703000000E+03),\n new google.maps.LatLng( 0.483216590000000E+02, -0.118099947000000E+03),\n new google.maps.LatLng( 0.483208600000000E+02, -0.118098850000000E+03),\n new google.maps.LatLng( 0.483196270000000E+02, -0.118094430000000E+03),\n new google.maps.LatLng( 0.483197420000000E+02, -0.118092853000000E+03),\n new google.maps.LatLng( 0.483206330000000E+02, -0.118091380000000E+03),\n new google.maps.LatLng( 0.483230100000000E+02, -0.118091416000000E+03),\n new google.maps.LatLng( 0.483245640000000E+02, -0.118090492000000E+03),\n new google.maps.LatLng( 0.483284500000000E+02, -0.118082681000000E+03),\n new google.maps.LatLng( 0.483324130000000E+02, -0.118076641000000E+03),\n new google.maps.LatLng( 0.483338440000000E+02, -0.118075384000000E+03),\n new google.maps.LatLng( 0.483369420000000E+02, -0.118062346000000E+03),\n new google.maps.LatLng( 0.483291580000000E+02, -0.118059078000000E+03),\n new google.maps.LatLng( 0.483179870000000E+02, -0.118061538000000E+03),\n new google.maps.LatLng( 0.483152560000000E+02, -0.118058074000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.466351870000000E+02, -0.119412924000000E+03),\n new google.maps.LatLng( 0.466358500000000E+02, -0.119413786000000E+03),\n new google.maps.LatLng( 0.466401000000000E+02, -0.119414116000000E+03),\n new google.maps.LatLng( 0.466463150000000E+02, -0.119413782000000E+03),\n new google.maps.LatLng( 0.466466350000000E+02, -0.119413350000000E+03),\n new google.maps.LatLng( 0.466459950000000E+02, -0.119411957000000E+03),\n new google.maps.LatLng( 0.466395510000000E+02, -0.119410866000000E+03),\n new google.maps.LatLng( 0.466365120000000E+02, -0.119410801000000E+03),\n new google.maps.LatLng( 0.466351870000000E+02, -0.119412924000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.466443960000000E+02, -0.119415740000000E+03),\n new google.maps.LatLng( 0.466459730000000E+02, -0.119418427000000E+03),\n new google.maps.LatLng( 0.466530110000000E+02, -0.119423469000000E+03),\n new google.maps.LatLng( 0.466538560000000E+02, -0.119423302000000E+03),\n new google.maps.LatLng( 0.466551360000000E+02, -0.119421743000000E+03),\n new google.maps.LatLng( 0.466544500000000E+02, -0.119418955000000E+03),\n new google.maps.LatLng( 0.466521420000000E+02, -0.119416865000000E+03),\n new google.maps.LatLng( 0.466471150000000E+02, -0.119414843000000E+03),\n new google.maps.LatLng( 0.466458120000000E+02, -0.119414910000000E+03),\n new google.maps.LatLng( 0.466443960000000E+02, -0.119415740000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.469199770000000E+02, -0.122810671000000E+03),\n new google.maps.LatLng( 0.469208180000000E+02, -0.122807953000000E+03),\n new google.maps.LatLng( 0.469236000000000E+02, -0.122809139000000E+03),\n new google.maps.LatLng( 0.469247660000000E+02, -0.122810273000000E+03),\n new google.maps.LatLng( 0.469278740000000E+02, -0.122808605000000E+03),\n new google.maps.LatLng( 0.469289030000000E+02, -0.122804568000000E+03),\n new google.maps.LatLng( 0.469314090000000E+02, -0.122802754000000E+03),\n new google.maps.LatLng( 0.469319980000000E+02, -0.122802787000000E+03),\n new google.maps.LatLng( 0.469342740000000E+02, -0.122806435000000E+03),\n new google.maps.LatLng( 0.469345940000000E+02, -0.122808971000000E+03),\n new google.maps.LatLng( 0.469390780000000E+02, -0.122808437000000E+03),\n new google.maps.LatLng( 0.469429000000000E+02, -0.122806194000000E+03),\n new google.maps.LatLng( 0.469444980000000E+02, -0.122801650000000E+03),\n new google.maps.LatLng( 0.469373270000000E+02, -0.122801665000000E+03),\n new google.maps.LatLng( 0.469345210000000E+02, -0.122797547000000E+03),\n new google.maps.LatLng( 0.469346120000000E+02, -0.122792247000000E+03),\n new google.maps.LatLng( 0.469373200000000E+02, -0.122792272000000E+03),\n new google.maps.LatLng( 0.469373200000000E+02, -0.122772993000000E+03),\n new google.maps.LatLng( 0.469346560000000E+02, -0.122773133000000E+03),\n new google.maps.LatLng( 0.469308170000000E+02, -0.122776105000000E+03),\n new google.maps.LatLng( 0.469292180000000E+02, -0.122779977000000E+03),\n new google.maps.LatLng( 0.469201980000000E+02, -0.122776804000000E+03),\n new google.maps.LatLng( 0.469201980000000E+02, -0.122776804000000E+03),\n new google.maps.LatLng( 0.469162970000000E+02, -0.122776804000000E+03),\n new google.maps.LatLng( 0.469162710000000E+02, -0.122780985000000E+03),\n new google.maps.LatLng( 0.469115340000000E+02, -0.122780929000000E+03),\n new google.maps.LatLng( 0.469067010000000E+02, -0.122773187000000E+03),\n new google.maps.LatLng( 0.469024910000000E+02, -0.122762317000000E+03),\n new google.maps.LatLng( 0.468991060000000E+02, -0.122755418000000E+03),\n new google.maps.LatLng( 0.468960200000000E+02, -0.122755253000000E+03),\n new google.maps.LatLng( 0.468888420000000E+02, -0.122749351000000E+03),\n new google.maps.LatLng( 0.468858500000000E+02, -0.122744880000000E+03),\n new google.maps.LatLng( 0.468818070000000E+02, -0.122752480000000E+03),\n new google.maps.LatLng( 0.468795610000000E+02, -0.122752171000000E+03),\n new google.maps.LatLng( 0.468753060000000E+02, -0.122742068000000E+03),\n new google.maps.LatLng( 0.468748210000000E+02, -0.122737151000000E+03),\n new google.maps.LatLng( 0.468732920000000E+02, -0.122730633000000E+03),\n new google.maps.LatLng( 0.468728360000000E+02, -0.122730204000000E+03),\n new google.maps.LatLng( 0.468713890000000E+02, -0.122738940000000E+03),\n new google.maps.LatLng( 0.468678030000000E+02, -0.122738761000000E+03),\n new google.maps.LatLng( 0.468664550000000E+02, -0.122737060000000E+03),\n new google.maps.LatLng( 0.468646290000000E+02, -0.122731159000000E+03),\n new google.maps.LatLng( 0.468596030000000E+02, -0.122723491000000E+03),\n new google.maps.LatLng( 0.468580040000000E+02, -0.122722091000000E+03),\n new google.maps.LatLng( 0.468568150000000E+02, -0.122721957000000E+03),\n new google.maps.LatLng( 0.468500070000000E+02, -0.122723491000000E+03),\n new google.maps.LatLng( 0.468413400000000E+02, -0.122724744000000E+03),\n new google.maps.LatLng( 0.468382540000000E+02, -0.122724442000000E+03),\n new google.maps.LatLng( 0.468308710000000E+02, -0.122726602000000E+03),\n new google.maps.LatLng( 0.468297270000000E+02, -0.122727634000000E+03),\n new google.maps.LatLng( 0.468297270000000E+02, -0.122727634000000E+03),\n new google.maps.LatLng( 0.468292010000000E+02, -0.122728200000000E+03),\n new google.maps.LatLng( 0.468281040000000E+02, -0.122728266000000E+03),\n new google.maps.LatLng( 0.468265960000000E+02, -0.122726666000000E+03),\n new google.maps.LatLng( 0.468233290000000E+02, -0.122725665000000E+03),\n new google.maps.LatLng( 0.468172930000000E+02, -0.122728957000000E+03),\n new google.maps.LatLng( 0.468129260000000E+02, -0.122732616000000E+03),\n new google.maps.LatLng( 0.468103190000000E+02, -0.122736908000000E+03),\n new google.maps.LatLng( 0.468079180000000E+02, -0.122738171000000E+03),\n new google.maps.LatLng( 0.468058150000000E+02, -0.122738335000000E+03),\n new google.maps.LatLng( 0.467997780000000E+02, -0.122744387000000E+03),\n new google.maps.LatLng( 0.467986810000000E+02, -0.122744020000000E+03),\n new google.maps.LatLng( 0.467970580000000E+02, -0.122744451000000E+03),\n new google.maps.LatLng( 0.467849890000000E+02, -0.122757832000000E+03),\n new google.maps.LatLng( 0.467838430000000E+02, -0.122752210000000E+03),\n new google.maps.LatLng( 0.467837080000000E+02, -0.122746700000000E+03),\n new google.maps.LatLng( 0.467856310000000E+02, -0.122740513000000E+03),\n new google.maps.LatLng( 0.467864080000000E+02, -0.122739548000000E+03),\n new google.maps.LatLng( 0.467877800000000E+02, -0.122738917000000E+03),\n new google.maps.LatLng( 0.467898840000000E+02, -0.122736390000000E+03),\n new google.maps.LatLng( 0.467910750000000E+02, -0.122731665000000E+03),\n new google.maps.LatLng( 0.467892710000000E+02, -0.122724974000000E+03),\n new google.maps.LatLng( 0.467870100000000E+02, -0.122719615000000E+03),\n new google.maps.LatLng( 0.467866680000000E+02, -0.122717152000000E+03),\n new google.maps.LatLng( 0.467866680000000E+02, -0.122717152000000E+03),\n new google.maps.LatLng( 0.467827370000000E+02, -0.122718515000000E+03),\n new google.maps.LatLng( 0.467837680000000E+02, -0.122705072000000E+03),\n new google.maps.LatLng( 0.467823980000000E+02, -0.122687668000000E+03),\n new google.maps.LatLng( 0.467815060000000E+02, -0.122685472000000E+03),\n new google.maps.LatLng( 0.467815060000000E+02, -0.122685472000000E+03),\n new google.maps.LatLng( 0.467778490000000E+02, -0.122681580000000E+03),\n new google.maps.LatLng( 0.467642700000000E+02, -0.122670338000000E+03),\n new google.maps.LatLng( 0.467633570000000E+02, -0.122670099000000E+03),\n new google.maps.LatLng( 0.467634550000000E+02, -0.122690120000000E+03),\n new google.maps.LatLng( 0.467634670000000E+02, -0.122690821000000E+03),\n new google.maps.LatLng( 0.467635980000000E+02, -0.122738628000000E+03),\n new google.maps.LatLng( 0.467635980000000E+02, -0.122738628000000E+03),\n new google.maps.LatLng( 0.467636710000000E+02, -0.122759386000000E+03),\n new google.maps.LatLng( 0.467636670000000E+02, -0.122765372000000E+03),\n new google.maps.LatLng( 0.467636670000000E+02, -0.122765372000000E+03),\n new google.maps.LatLng( 0.467643970000000E+02, -0.122763641000000E+03),\n new google.maps.LatLng( 0.467646480000000E+02, -0.122760947000000E+03),\n new google.maps.LatLng( 0.467642000000000E+02, -0.122759386000000E+03),\n new google.maps.LatLng( 0.467684640000000E+02, -0.122759383000000E+03),\n new google.maps.LatLng( 0.467692890000000E+02, -0.122763404000000E+03),\n new google.maps.LatLng( 0.467682630000000E+02, -0.122768794000000E+03),\n new google.maps.LatLng( 0.467684240000000E+02, -0.122772619000000E+03),\n new google.maps.LatLng( 0.467709280000000E+02, -0.122777604000000E+03),\n new google.maps.LatLng( 0.467781090000000E+02, -0.122766719000000E+03),\n new google.maps.LatLng( 0.467781410000000E+02, -0.122780051000000E+03),\n new google.maps.LatLng( 0.467795350000000E+02, -0.122782460000000E+03),\n new google.maps.LatLng( 0.467813640000000E+02, -0.122782925000000E+03),\n new google.maps.LatLng( 0.467821410000000E+02, -0.122783923000000E+03),\n new google.maps.LatLng( 0.467866460000000E+02, -0.122791042000000E+03),\n new google.maps.LatLng( 0.467915160000000E+02, -0.122803721000000E+03),\n new google.maps.LatLng( 0.467923400000000E+02, -0.122809711000000E+03),\n new google.maps.LatLng( 0.467964990000000E+02, -0.122822792000000E+03),\n new google.maps.LatLng( 0.467986700000000E+02, -0.122831613000000E+03),\n new google.maps.LatLng( 0.468020970000000E+02, -0.122841268000000E+03),\n new google.maps.LatLng( 0.468084260000000E+02, -0.122850925000000E+03),\n new google.maps.LatLng( 0.468114410000000E+02, -0.122854357000000E+03),\n new google.maps.LatLng( 0.468116460000000E+02, -0.122855822000000E+03),\n new google.maps.LatLng( 0.468110500000000E+02, -0.122859850000000E+03),\n new google.maps.LatLng( 0.467999670000000E+02, -0.122869632000000E+03),\n new google.maps.LatLng( 0.467999670000000E+02, -0.122869632000000E+03),\n new google.maps.LatLng( 0.467990620000000E+02, -0.122870420000000E+03),\n new google.maps.LatLng( 0.467955970000000E+02, -0.122876626000000E+03),\n new google.maps.LatLng( 0.467964920000000E+02, -0.122882858000000E+03),\n new google.maps.LatLng( 0.467976750000000E+02, -0.122883391000000E+03),\n new google.maps.LatLng( 0.467983840000000E+02, -0.122884888000000E+03),\n new google.maps.LatLng( 0.467993710000000E+02, -0.122892709000000E+03),\n new google.maps.LatLng( 0.467983430000000E+02, -0.122895440000000E+03),\n new google.maps.LatLng( 0.467966290000000E+02, -0.122896905000000E+03),\n new google.maps.LatLng( 0.467951750000000E+02, -0.122897301000000E+03),\n new google.maps.LatLng( 0.468167170000000E+02, -0.122940454000000E+03),\n new google.maps.LatLng( 0.468161560000000E+02, -0.122941341000000E+03),\n new google.maps.LatLng( 0.468124530000000E+02, -0.122942906000000E+03),\n new google.maps.LatLng( 0.468092310000000E+02, -0.122942140000000E+03),\n new google.maps.LatLng( 0.468084990000000E+02, -0.122943305000000E+03),\n new google.maps.LatLng( 0.468080870000000E+02, -0.122945535000000E+03),\n new google.maps.LatLng( 0.468078130000000E+02, -0.122951462000000E+03),\n new google.maps.LatLng( 0.468105330000000E+02, -0.122953460000000E+03),\n new google.maps.LatLng( 0.468143500000000E+02, -0.122953527000000E+03),\n new google.maps.LatLng( 0.468143500000000E+02, -0.122953527000000E+03),\n new google.maps.LatLng( 0.468138920000000E+02, -0.122954859000000E+03),\n new google.maps.LatLng( 0.468151950000000E+02, -0.122958089000000E+03),\n new google.maps.LatLng( 0.468194230000000E+02, -0.122961753000000E+03),\n new google.maps.LatLng( 0.468244970000000E+02, -0.122960824000000E+03),\n new google.maps.LatLng( 0.468420750000000E+02, -0.122960698000000E+03),\n new google.maps.LatLng( 0.468420790000000E+02, -0.122983791000000E+03),\n new google.maps.LatLng( 0.468598770000000E+02, -0.122973203000000E+03),\n new google.maps.LatLng( 0.468931010000000E+02, -0.122962312000000E+03),\n new google.maps.LatLng( 0.468931010000000E+02, -0.122962312000000E+03),\n new google.maps.LatLng( 0.468958960000000E+02, -0.122956120000000E+03),\n new google.maps.LatLng( 0.468967790000000E+02, -0.122955903000000E+03),\n new google.maps.LatLng( 0.468964760000000E+02, -0.122947208000000E+03),\n new google.maps.LatLng( 0.468906180000000E+02, -0.122941481000000E+03),\n new google.maps.LatLng( 0.468901380000000E+02, -0.122940514000000E+03),\n new google.maps.LatLng( 0.468898630000000E+02, -0.122933846000000E+03),\n new google.maps.LatLng( 0.468924670000000E+02, -0.122927875000000E+03),\n new google.maps.LatLng( 0.468930640000000E+02, -0.122935746000000E+03),\n new google.maps.LatLng( 0.468925840000000E+02, -0.122940347000000E+03),\n new google.maps.LatLng( 0.468934290000000E+02, -0.122942181000000E+03),\n new google.maps.LatLng( 0.468959430000000E+02, -0.122942082000000E+03),\n new google.maps.LatLng( 0.468994840000000E+02, -0.122919406000000E+03),\n new google.maps.LatLng( 0.468996200000000E+02, -0.122914470000000E+03),\n new google.maps.LatLng( 0.468992620000000E+02, -0.122910354000000E+03),\n new google.maps.LatLng( 0.468963280000000E+02, -0.122909936000000E+03),\n new google.maps.LatLng( 0.468970810000000E+02, -0.122908269000000E+03),\n new google.maps.LatLng( 0.468993670000000E+02, -0.122907034000000E+03),\n new google.maps.LatLng( 0.468993670000000E+02, -0.122907034000000E+03),\n new google.maps.LatLng( 0.468971370000000E+02, -0.122881855000000E+03),\n new google.maps.LatLng( 0.468973010000000E+02, -0.122878421000000E+03),\n new google.maps.LatLng( 0.469080720000000E+02, -0.122838554000000E+03),\n new google.maps.LatLng( 0.469091060000000E+02, -0.122839959000000E+03),\n new google.maps.LatLng( 0.469097680000000E+02, -0.122839959000000E+03),\n new google.maps.LatLng( 0.469141800000000E+02, -0.122838194000000E+03),\n new google.maps.LatLng( 0.469170840000000E+02, -0.122836060000000E+03),\n new google.maps.LatLng( 0.469209700000000E+02, -0.122832059000000E+03),\n new google.maps.LatLng( 0.469214280000000E+02, -0.122825119000000E+03),\n new google.maps.LatLng( 0.469199770000000E+02, -0.122810671000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.474684920000000E+02, -0.122079142000000E+03),\n new google.maps.LatLng( 0.474685120000000E+02, -0.122074860000000E+03),\n new google.maps.LatLng( 0.474575500000000E+02, -0.122074955000000E+03),\n new google.maps.LatLng( 0.474575880000000E+02, -0.122066901000000E+03),\n new google.maps.LatLng( 0.474518050000000E+02, -0.122066842000000E+03),\n new google.maps.LatLng( 0.474518190000000E+02, -0.122063957000000E+03),\n new google.maps.LatLng( 0.474408270000000E+02, -0.122063937000000E+03),\n new google.maps.LatLng( 0.474399230000000E+02, -0.122059028000000E+03),\n new google.maps.LatLng( 0.474409230000000E+02, -0.122054928000000E+03),\n new google.maps.LatLng( 0.474445230000000E+02, -0.122048228000000E+03),\n new google.maps.LatLng( 0.474467640000000E+02, -0.122040172000000E+03),\n new google.maps.LatLng( 0.474573920000000E+02, -0.122034098000000E+03),\n new google.maps.LatLng( 0.474620990000000E+02, -0.122032589000000E+03),\n new google.maps.LatLng( 0.474623230000000E+02, -0.122025557000000E+03),\n new google.maps.LatLng( 0.474623230000000E+02, -0.122025557000000E+03),\n new google.maps.LatLng( 0.474569230000000E+02, -0.122026828000000E+03),\n new google.maps.LatLng( 0.474529140000000E+02, -0.122024227000000E+03),\n new google.maps.LatLng( 0.474500160000000E+02, -0.122020139000000E+03),\n new google.maps.LatLng( 0.474483060000000E+02, -0.122013062000000E+03),\n new google.maps.LatLng( 0.474471110000000E+02, -0.122013062000000E+03),\n new google.maps.LatLng( 0.474471210000000E+02, -0.122022562000000E+03),\n new google.maps.LatLng( 0.474446020000000E+02, -0.122022545000000E+03),\n new google.maps.LatLng( 0.474441860000000E+02, -0.122020326000000E+03),\n new google.maps.LatLng( 0.474441710000000E+02, -0.122004446000000E+03),\n new google.maps.LatLng( 0.474448800000000E+02, -0.122001357000000E+03),\n new google.maps.LatLng( 0.474496505338867E+02, -0.122001836343359E+03),\n new google.maps.LatLng( 0.474540660000000E+02, -0.122004222000000E+03),\n new google.maps.LatLng( 0.474571940000000E+02, -0.122004299000000E+03),\n new google.maps.LatLng( 0.474572470000000E+02, -0.122003444000000E+03),\n new google.maps.LatLng( 0.474557520000000E+02, -0.122000651000000E+03),\n new google.maps.LatLng( 0.474538210000000E+02, -0.121999751000000E+03),\n new google.maps.LatLng( 0.474522270000000E+02, -0.122000605000000E+03),\n new google.maps.LatLng( 0.474518910000000E+02, -0.122000391000000E+03),\n new google.maps.LatLng( 0.474484350000000E+02, -0.121992350000000E+03),\n new google.maps.LatLng( 0.474474590000000E+02, -0.121991145000000E+03),\n new google.maps.LatLng( 0.474453600000000E+02, -0.121990870000000E+03),\n new google.maps.LatLng( 0.474432240000000E+02, -0.121992213000000E+03),\n new google.maps.LatLng( 0.474407750000000E+02, -0.121992365000000E+03),\n new google.maps.LatLng( 0.474358540000000E+02, -0.121990229000000E+03),\n new google.maps.LatLng( 0.474334810000000E+02, -0.121988596000000E+03),\n new google.maps.LatLng( 0.474276450000000E+02, -0.121979288000000E+03),\n new google.maps.LatLng( 0.474268820000000E+02, -0.121976175000000E+03),\n new google.maps.LatLng( 0.474268440000000E+02, -0.121972680000000E+03),\n new google.maps.LatLng( 0.474268440000000E+02, -0.121972680000000E+03),\n new google.maps.LatLng( 0.474276980000000E+02, -0.121971750000000E+03),\n new google.maps.LatLng( 0.474276680000000E+02, -0.121970971000000E+03),\n new google.maps.LatLng( 0.474244640000000E+02, -0.121968759000000E+03),\n new google.maps.LatLng( 0.474238300000000E+02, -0.121967340000000E+03),\n new google.maps.LatLng( 0.474225560000000E+02, -0.121958931000000E+03),\n new google.maps.LatLng( 0.474234870000000E+02, -0.121951592000000E+03),\n new google.maps.LatLng( 0.474226780000000E+02, -0.121945198000000E+03),\n new google.maps.LatLng( 0.474204820000000E+02, -0.121934807000000E+03),\n new google.maps.LatLng( 0.474177200000000E+02, -0.121929023000000E+03),\n new google.maps.LatLng( 0.474112810000000E+02, -0.121919990000000E+03),\n new google.maps.LatLng( 0.474079850000000E+02, -0.121918571000000E+03),\n new google.maps.LatLng( 0.474054440000000E+02, -0.121910941000000E+03),\n new google.maps.LatLng( 0.474044680000000E+02, -0.121909446000000E+03),\n new google.maps.LatLng( 0.474044680000000E+02, -0.121909446000000E+03),\n new google.maps.LatLng( 0.474023620000000E+02, -0.121909140000000E+03),\n new google.maps.LatLng( 0.473965560000000E+02, -0.121905676000000E+03),\n new google.maps.LatLng( 0.473941300000000E+02, -0.121911780000000E+03),\n new google.maps.LatLng( 0.473987530000000E+02, -0.121921516000000E+03),\n new google.maps.LatLng( 0.473978070000000E+02, -0.121925132000000E+03),\n new google.maps.LatLng( 0.473979440000000E+02, -0.121940742000000E+03),\n new google.maps.LatLng( 0.473939690000000E+02, -0.121958992000000E+03),\n new google.maps.LatLng( 0.473947390000000E+02, -0.121963753000000E+03),\n new google.maps.LatLng( 0.473918400000000E+02, -0.121973549000000E+03),\n new google.maps.LatLng( 0.473847450000000E+02, -0.121973610000000E+03),\n new google.maps.LatLng( 0.473785650000000E+02, -0.121970055000000E+03),\n new google.maps.LatLng( 0.473763980000000E+02, -0.121969628000000E+03),\n new google.maps.LatLng( 0.473747050000000E+02, -0.121971749000000E+03),\n new google.maps.LatLng( 0.473766420000000E+02, -0.121979180000000E+03),\n new google.maps.LatLng( 0.473780840000000E+02, -0.121982201000000E+03),\n new google.maps.LatLng( 0.473802280000000E+02, -0.121984520000000E+03),\n new google.maps.LatLng( 0.473813500000000E+02, -0.121989037000000E+03),\n new google.maps.LatLng( 0.473807240000000E+02, -0.121993265000000E+03),\n new google.maps.LatLng( 0.473823720000000E+02, -0.121994256000000E+03),\n new google.maps.LatLng( 0.473848440000000E+02, -0.121991846000000E+03),\n new google.maps.LatLng( 0.473857670000000E+02, -0.121992837000000E+03),\n new google.maps.LatLng( 0.473846610000000E+02, -0.121998407000000E+03),\n new google.maps.LatLng( 0.473838900000000E+02, -0.122007013000000E+03),\n new google.maps.LatLng( 0.473810450000000E+02, -0.122015680000000E+03),\n new google.maps.LatLng( 0.473796480000000E+02, -0.122015466000000E+03),\n new google.maps.LatLng( 0.473787410000000E+02, -0.122008493000000E+03),\n new google.maps.LatLng( 0.473791300000000E+02, -0.122004266000000E+03),\n new google.maps.LatLng( 0.473787790000000E+02, -0.121999612000000E+03),\n new google.maps.LatLng( 0.473760170000000E+02, -0.121991509000000E+03),\n new google.maps.LatLng( 0.473711870000000E+02, -0.122001520000000E+03),\n new google.maps.LatLng( 0.473699360000000E+02, -0.122010980000000E+03),\n new google.maps.LatLng( 0.473638250000000E+02, -0.122015909000000E+03),\n new google.maps.LatLng( 0.473617960000000E+02, -0.122016122000000E+03),\n new google.maps.LatLng( 0.473630550000000E+02, -0.122006250000000E+03),\n new google.maps.LatLng( 0.473626960000000E+02, -0.121990334000000E+03),\n new google.maps.LatLng( 0.473602700000000E+02, -0.121984841000000E+03),\n new google.maps.LatLng( 0.473541050000000E+02, -0.121984917000000E+03),\n new google.maps.LatLng( 0.473524190000000E+02, -0.121983864000000E+03),\n new google.maps.LatLng( 0.473524190000000E+02, -0.121983864000000E+03),\n new google.maps.LatLng( 0.473450110000000E+02, -0.122007683000000E+03),\n new google.maps.LatLng( 0.473436040000000E+02, -0.122016067000000E+03),\n new google.maps.LatLng( 0.473438130000000E+02, -0.122053659000000E+03),\n new google.maps.LatLng( 0.473438130000000E+02, -0.122053659000000E+03),\n new google.maps.LatLng( 0.473479710000000E+02, -0.122053461000000E+03),\n new google.maps.LatLng( 0.473521440000000E+02, -0.122071009000000E+03),\n new google.maps.LatLng( 0.473558070000000E+02, -0.122080927000000E+03),\n new google.maps.LatLng( 0.473581560000000E+02, -0.122080927000000E+03),\n new google.maps.LatLng( 0.473581640000000E+02, -0.122060069000000E+03),\n new google.maps.LatLng( 0.473618870000000E+02, -0.122058741000000E+03),\n new google.maps.LatLng( 0.473644012693359E+02, -0.122055688638477E+03),\n new google.maps.LatLng( 0.473649920000000E+02, -0.122053309000000E+03),\n new google.maps.LatLng( 0.473681050000000E+02, -0.122048518000000E+03),\n new google.maps.LatLng( 0.473686320000000E+02, -0.122049082000000E+03),\n new google.maps.LatLng( 0.473690210000000E+02, -0.122051127000000E+03),\n new google.maps.LatLng( 0.473687840000000E+02, -0.122052531000000E+03),\n new google.maps.LatLng( 0.473671670000000E+02, -0.122053248000000E+03),\n new google.maps.LatLng( 0.473667400000000E+02, -0.122054728000000E+03),\n new google.maps.LatLng( 0.473673730000000E+02, -0.122060511000000E+03),\n new google.maps.LatLng( 0.473690640000000E+02, -0.122061137000000E+03),\n new google.maps.LatLng( 0.473715460000000E+02, -0.122061137000000E+03),\n new google.maps.LatLng( 0.473752620000000E+02, -0.122058604000000E+03),\n new google.maps.LatLng( 0.473756050000000E+02, -0.122054301000000E+03),\n new google.maps.LatLng( 0.473797630000000E+02, -0.122054789000000E+03),\n new google.maps.LatLng( 0.473797630000000E+02, -0.122057749000000E+03),\n new google.maps.LatLng( 0.473777126347656E+02, -0.122061467632031E+03),\n new google.maps.LatLng( 0.473766180000000E+02, -0.122069263000000E+03),\n new google.maps.LatLng( 0.473800150000000E+02, -0.122074108000000E+03),\n new google.maps.LatLng( 0.473840560000000E+02, -0.122078631000000E+03),\n new google.maps.LatLng( 0.473873820000000E+02, -0.122080020000000E+03),\n new google.maps.LatLng( 0.473943500000000E+02, -0.122079891000000E+03),\n new google.maps.LatLng( 0.473943500000000E+02, -0.122079891000000E+03),\n new google.maps.LatLng( 0.474016520000000E+02, -0.122079753000000E+03),\n new google.maps.LatLng( 0.474043370000000E+02, -0.122080257000000E+03),\n new google.maps.LatLng( 0.474103870000000E+02, -0.122084621000000E+03),\n new google.maps.LatLng( 0.474113030000000E+02, -0.122084835000000E+03),\n new google.maps.LatLng( 0.474131720000000E+02, -0.122080699000000E+03),\n new google.maps.LatLng( 0.474161250000000E+02, -0.122079723000000E+03),\n new google.maps.LatLng( 0.474211830000000E+02, -0.122083340000000E+03),\n new google.maps.LatLng( 0.474221520000000E+02, -0.122074947000000E+03),\n new google.maps.LatLng( 0.474219000000000E+02, -0.122073101000000E+03),\n new google.maps.LatLng( 0.474201610000000E+02, -0.122067974000000E+03),\n new google.maps.LatLng( 0.474174670000000E+02, -0.122064708000000E+03),\n new google.maps.LatLng( 0.474154990000000E+02, -0.122060665000000E+03),\n new google.maps.LatLng( 0.474129510000000E+02, -0.122053463000000E+03),\n new google.maps.LatLng( 0.474074040000000E+02, -0.122048075000000E+03),\n new google.maps.LatLng( 0.474002020000000E+02, -0.122044993000000E+03),\n new google.maps.LatLng( 0.473962960000000E+02, -0.122047678000000E+03),\n new google.maps.LatLng( 0.473954180000000E+02, -0.122049937000000E+03),\n new google.maps.LatLng( 0.473940680000000E+02, -0.122051264000000E+03),\n new google.maps.LatLng( 0.473946100000000E+02, -0.122047038000000E+03),\n new google.maps.LatLng( 0.473954110000000E+02, -0.122046122000000E+03),\n new google.maps.LatLng( 0.473976080000000E+02, -0.122044856000000E+03),\n new google.maps.LatLng( 0.474044290000000E+02, -0.122042735000000E+03),\n new google.maps.LatLng( 0.474067710000000E+02, -0.122042887000000E+03),\n new google.maps.LatLng( 0.474105320000000E+02, -0.122047863000000E+03),\n new google.maps.LatLng( 0.474116000000000E+02, -0.122048564000000E+03),\n new google.maps.LatLng( 0.474168490000000E+02, -0.122049282000000E+03),\n new google.maps.LatLng( 0.474176050000000E+02, -0.122048702000000E+03),\n new google.maps.LatLng( 0.474185740000000E+02, -0.122046215000000E+03),\n new google.maps.LatLng( 0.474315360000000E+02, -0.122057247000000E+03),\n new google.maps.LatLng( 0.474414230000000E+02, -0.122070829000000E+03),\n new google.maps.LatLng( 0.474436230000000E+02, -0.122072629000000E+03),\n new google.maps.LatLng( 0.474536380000000E+02, -0.122076108000000E+03),\n new google.maps.LatLng( 0.474562230000000E+02, -0.122076029000000E+03),\n new google.maps.LatLng( 0.474573230000000E+02, -0.122075429000000E+03),\n new google.maps.LatLng( 0.474631230000000E+02, -0.122076629000000E+03),\n new google.maps.LatLng( 0.474650140000000E+02, -0.122079217000000E+03),\n new google.maps.LatLng( 0.474684920000000E+02, -0.122079142000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.474239210000000E+02, -0.122335435000000E+03),\n new google.maps.LatLng( 0.474240210000000E+02, -0.122333835000000E+03),\n new google.maps.LatLng( 0.474229210000000E+02, -0.122327634000000E+03),\n new google.maps.LatLng( 0.474226210000000E+02, -0.122297734000000E+03),\n new google.maps.LatLng( 0.474226210000000E+02, -0.122297734000000E+03),\n new google.maps.LatLng( 0.474226210000000E+02, -0.122285033000000E+03),\n new google.maps.LatLng( 0.474302210000000E+02, -0.122273433000000E+03),\n new google.maps.LatLng( 0.474281210000000E+02, -0.122274333000000E+03),\n new google.maps.LatLng( 0.474231210000000E+02, -0.122278133000000E+03),\n new google.maps.LatLng( 0.474228210000000E+02, -0.122277433000000E+03),\n new google.maps.LatLng( 0.474228210000000E+02, -0.122277433000000E+03),\n new google.maps.LatLng( 0.474214210000000E+02, -0.122278033000000E+03),\n new google.maps.LatLng( 0.474180210000000E+02, -0.122282033000000E+03),\n new google.maps.LatLng( 0.474148210000000E+02, -0.122282633000000E+03),\n new google.maps.LatLng( 0.474123210000000E+02, -0.122281533000000E+03),\n new google.maps.LatLng( 0.474083210000000E+02, -0.122281633000000E+03),\n new google.maps.LatLng( 0.474069210000000E+02, -0.122283933000000E+03),\n new google.maps.LatLng( 0.474082210000000E+02, -0.122285733000000E+03),\n new google.maps.LatLng( 0.474114210000000E+02, -0.122287533000000E+03),\n new google.maps.LatLng( 0.474081210000000E+02, -0.122289633000000E+03),\n new google.maps.LatLng( 0.474036210000000E+02, -0.122290533000000E+03),\n new google.maps.LatLng( 0.473962940000000E+02, -0.122290633000000E+03),\n new google.maps.LatLng( 0.473905220000000E+02, -0.122286833000000E+03),\n new google.maps.LatLng( 0.473921320000000E+02, -0.122292811000000E+03),\n new google.maps.LatLng( 0.473891250000000E+02, -0.122295903000000E+03),\n new google.maps.LatLng( 0.473829210000000E+02, -0.122297733000000E+03),\n new google.maps.LatLng( 0.473792210000000E+02, -0.122300533000000E+03),\n new google.maps.LatLng( 0.473792210000000E+02, -0.122308033000000E+03),\n new google.maps.LatLng( 0.473757210000000E+02, -0.122308133000000E+03),\n new google.maps.LatLng( 0.473757210000000E+02, -0.122300233000000E+03),\n new google.maps.LatLng( 0.473577210000000E+02, -0.122309733000000E+03),\n new google.maps.LatLng( 0.473577210000000E+02, -0.122309733000000E+03),\n new google.maps.LatLng( 0.473577210000000E+02, -0.122318833000000E+03),\n new google.maps.LatLng( 0.473565490000000E+02, -0.122319168000000E+03),\n new google.maps.LatLng( 0.473565490000000E+02, -0.122319168000000E+03),\n new google.maps.LatLng( 0.473561100000000E+02, -0.122320618000000E+03),\n new google.maps.LatLng( 0.473546210000000E+02, -0.122321833000000E+03),\n new google.maps.LatLng( 0.473522440000000E+02, -0.122321333000000E+03),\n new google.maps.LatLng( 0.473474040000000E+02, -0.122321316000000E+03),\n new google.maps.LatLng( 0.473466210000000E+02, -0.122325233000000E+03),\n new google.maps.LatLng( 0.473430100000000E+02, -0.122333010000000E+03),\n new google.maps.LatLng( 0.473420210000000E+02, -0.122334234000000E+03),\n new google.maps.LatLng( 0.473420210000000E+02, -0.122334234000000E+03),\n new google.maps.LatLng( 0.473430441549655E+02, -0.122334167549544E+03),\n new google.maps.LatLng( 0.473430441549655E+02, -0.122334167549544E+03),\n new google.maps.LatLng( 0.473485210000000E+02, -0.122324833000000E+03),\n new google.maps.LatLng( 0.473669785675071E+02, -0.122325219750426E+03),\n new google.maps.LatLng( 0.473724310998890E+02, -0.122325334000000E+03),\n new google.maps.LatLng( 0.473787947178715E+02, -0.122325467339995E+03),\n new google.maps.LatLng( 0.473915210000000E+02, -0.122325734000000E+03),\n new google.maps.LatLng( 0.474006210000000E+02, -0.122328434000000E+03),\n new google.maps.LatLng( 0.474069209999996E+02, -0.122333926307692E+03),\n new google.maps.LatLng( 0.474069209999996E+02, -0.122333926307692E+03),\n new google.maps.LatLng( 0.474069210000000E+02, -0.122329534000000E+03),\n new google.maps.LatLng( 0.474084210000000E+02, -0.122329534000000E+03),\n new google.maps.LatLng( 0.474080210000000E+02, -0.122332334000000E+03),\n new google.maps.LatLng( 0.474112210000000E+02, -0.122334634000000E+03),\n new google.maps.LatLng( 0.474159210000000E+02, -0.122335335000000E+03),\n new google.maps.LatLng( 0.474239210000000E+02, -0.122335435000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475909680000000E+02, -0.120186898000000E+03),\n new google.maps.LatLng( 0.475898910000000E+02, -0.120188019000000E+03),\n new google.maps.LatLng( 0.475884980000000E+02, -0.120191330000000E+03),\n new google.maps.LatLng( 0.475861290000000E+02, -0.120193283000000E+03),\n new google.maps.LatLng( 0.475872200000000E+02, -0.120187467000000E+03),\n new google.maps.LatLng( 0.475968710000000E+02, -0.120168822000000E+03),\n new google.maps.LatLng( 0.475976980000000E+02, -0.120159641000000E+03),\n new google.maps.LatLng( 0.475972520000000E+02, -0.120140974000000E+03),\n new google.maps.LatLng( 0.475983230000000E+02, -0.120139360000000E+03),\n new google.maps.LatLng( 0.475991030000000E+02, -0.120136507000000E+03),\n new google.maps.LatLng( 0.475989240000000E+02, -0.120133567000000E+03),\n new google.maps.LatLng( 0.475958400000000E+02, -0.120132388000000E+03),\n new google.maps.LatLng( 0.475925280000000E+02, -0.120133067000000E+03),\n new google.maps.LatLng( 0.475856330000000E+02, -0.120140638000000E+03),\n new google.maps.LatLng( 0.475843070000000E+02, -0.120138985000000E+03),\n new google.maps.LatLng( 0.475857190000000E+02, -0.120130306000000E+03),\n new google.maps.LatLng( 0.475836670000000E+02, -0.120121237000000E+03),\n new google.maps.LatLng( 0.475837150000000E+02, -0.120115733000000E+03),\n new google.maps.LatLng( 0.475813400000000E+02, -0.120114381000000E+03),\n new google.maps.LatLng( 0.475777080000000E+02, -0.120115019000000E+03),\n new google.maps.LatLng( 0.475757890000000E+02, -0.120114714000000E+03),\n new google.maps.LatLng( 0.475723410000000E+02, -0.120111301000000E+03),\n new google.maps.LatLng( 0.475673400000000E+02, -0.120108293000000E+03),\n new google.maps.LatLng( 0.475635250000000E+02, -0.120110348000000E+03),\n new google.maps.LatLng( 0.475602810000000E+02, -0.120111391000000E+03),\n new google.maps.LatLng( 0.475566270000000E+02, -0.120110579000000E+03),\n new google.maps.LatLng( 0.475554850000000E+02, -0.120108351000000E+03),\n new google.maps.LatLng( 0.475554630000000E+02, -0.120107271000000E+03),\n new google.maps.LatLng( 0.475571100000000E+02, -0.120100490000000E+03),\n new google.maps.LatLng( 0.475570650000000E+02, -0.120098060000000E+03),\n new google.maps.LatLng( 0.475559920000000E+02, -0.120096608000000E+03),\n new google.maps.LatLng( 0.475540500000000E+02, -0.120096641000000E+03),\n new google.maps.LatLng( 0.475514470000000E+02, -0.120094716000000E+03),\n new google.maps.LatLng( 0.475512650000000E+02, -0.120090836000000E+03),\n new google.maps.LatLng( 0.475502600000000E+02, -0.120088508000000E+03),\n new google.maps.LatLng( 0.475474740000000E+02, -0.120088844000000E+03),\n new google.maps.LatLng( 0.475435910000000E+02, -0.120087054000000E+03),\n new google.maps.LatLng( 0.475412390000000E+02, -0.120081925000000E+03),\n new google.maps.LatLng( 0.475353240000000E+02, -0.120078922000000E+03),\n new google.maps.LatLng( 0.475342730000000E+02, -0.120080911000000E+03),\n new google.maps.LatLng( 0.475342950000000E+02, -0.120083610000000E+03),\n new google.maps.LatLng( 0.475333580000000E+02, -0.120087656000000E+03),\n new google.maps.LatLng( 0.475300450000000E+02, -0.120093152000000E+03),\n new google.maps.LatLng( 0.475296470000000E+02, -0.120095149000000E+03),\n new google.maps.LatLng( 0.475296470000000E+02, -0.120095149000000E+03),\n new google.maps.LatLng( 0.475281470000000E+02, -0.120099896000000E+03),\n new google.maps.LatLng( 0.475281000000000E+02, -0.120103876000000E+03),\n new google.maps.LatLng( 0.475255620000000E+02, -0.120110079000000E+03),\n new google.maps.LatLng( 0.475335780000000E+02, -0.120113964000000E+03),\n new google.maps.LatLng( 0.475355640000000E+02, -0.120117003000000E+03),\n new google.maps.LatLng( 0.475370700000000E+02, -0.120121187000000E+03),\n new google.maps.LatLng( 0.475355580000000E+02, -0.120129957000000E+03),\n new google.maps.LatLng( 0.475339610000000E+02, -0.120133534000000E+03),\n new google.maps.LatLng( 0.475313450000000E+02, -0.120136214000000E+03),\n new google.maps.LatLng( 0.475284110000000E+02, -0.120135631000000E+03),\n new google.maps.LatLng( 0.475242300000000E+02, -0.120133781000000E+03),\n new google.maps.LatLng( 0.475239310000000E+02, -0.120133199000000E+03),\n new google.maps.LatLng( 0.475269860000000E+02, -0.120133186000000E+03),\n new google.maps.LatLng( 0.475216010000000E+02, -0.120126177000000E+03),\n new google.maps.LatLng( 0.475206940000000E+02, -0.120115200000000E+03),\n new google.maps.LatLng( 0.475198730000000E+02, -0.120110883000000E+03),\n new google.maps.LatLng( 0.475198730000000E+02, -0.120110883000000E+03),\n new google.maps.LatLng( 0.475188690000000E+02, -0.120109837000000E+03),\n new google.maps.LatLng( 0.475161080000000E+02, -0.120100697000000E+03),\n new google.maps.LatLng( 0.475163170000000E+02, -0.120092369000000E+03),\n new google.maps.LatLng( 0.475122500000000E+02, -0.120094355000000E+03),\n new google.maps.LatLng( 0.475069040000000E+02, -0.120098432000000E+03),\n new google.maps.LatLng( 0.474998500000000E+02, -0.120099640000000E+03),\n new google.maps.LatLng( 0.474974590000000E+02, -0.120099126000000E+03),\n new google.maps.LatLng( 0.474893510000000E+02, -0.120095852000000E+03),\n new google.maps.LatLng( 0.474827270000000E+02, -0.120094400000000E+03),\n new google.maps.LatLng( 0.474787760000000E+02, -0.120092983000000E+03),\n new google.maps.LatLng( 0.474747800000000E+02, -0.120088736000000E+03),\n new google.maps.LatLng( 0.474711250000000E+02, -0.120088161000000E+03),\n new google.maps.LatLng( 0.474711250000000E+02, -0.120088161000000E+03),\n new google.maps.LatLng( 0.474686810000000E+02, -0.120085365000000E+03),\n new google.maps.LatLng( 0.474665800000000E+02, -0.120084286000000E+03),\n new google.maps.LatLng( 0.474642270000000E+02, -0.120084791000000E+03),\n new google.maps.LatLng( 0.474595230000000E+02, -0.120083678000000E+03),\n new google.maps.LatLng( 0.474562350000000E+02, -0.120079971000000E+03),\n new google.maps.LatLng( 0.474544990000000E+02, -0.120076940000000E+03),\n new google.maps.LatLng( 0.474518040000000E+02, -0.120075020000000E+03),\n new google.maps.LatLng( 0.474438550000000E+02, -0.120074918000000E+03),\n new google.maps.LatLng( 0.474415480000000E+02, -0.120075557000000E+03),\n new google.maps.LatLng( 0.474383950000000E+02, -0.120079058000000E+03),\n new google.maps.LatLng( 0.474346950000000E+02, -0.120080505000000E+03),\n new google.maps.LatLng( 0.474316800000000E+02, -0.120080066000000E+03),\n new google.maps.LatLng( 0.474289850000000E+02, -0.120078786000000E+03),\n new google.maps.LatLng( 0.474296460000000E+02, -0.120084307000000E+03),\n new google.maps.LatLng( 0.474316780000000E+02, -0.120089492000000E+03),\n new google.maps.LatLng( 0.474330020000000E+02, -0.120096360000000E+03),\n new google.maps.LatLng( 0.474310100000000E+02, -0.120105885000000E+03),\n new google.maps.LatLng( 0.474295930000000E+02, -0.120108206000000E+03),\n new google.maps.LatLng( 0.474290890000000E+02, -0.120111977000000E+03),\n new google.maps.LatLng( 0.474303660000000E+02, -0.120117296000000E+03),\n new google.maps.LatLng( 0.474320100000000E+02, -0.120119755000000E+03),\n new google.maps.LatLng( 0.474337450000000E+02, -0.120120700000000E+03),\n new google.maps.LatLng( 0.474337450000000E+02, -0.120120700000000E+03),\n new google.maps.LatLng( 0.474346180000000E+02, -0.120120467000000E+03),\n new google.maps.LatLng( 0.474365780000000E+02, -0.120121308000000E+03),\n new google.maps.LatLng( 0.474430860000000E+02, -0.120125255000000E+03),\n new google.maps.LatLng( 0.474445020000000E+02, -0.120134264000000E+03),\n new google.maps.LatLng( 0.474435000000000E+02, -0.120139787000000E+03),\n new google.maps.LatLng( 0.474443240000000E+02, -0.120142749000000E+03),\n new google.maps.LatLng( 0.474465640000000E+02, -0.120147462000000E+03),\n new google.maps.LatLng( 0.474467390000000E+02, -0.120153129000000E+03),\n new google.maps.LatLng( 0.474455160000000E+02, -0.120154972000000E+03),\n new google.maps.LatLng( 0.474455160000000E+02, -0.120154972000000E+03),\n new google.maps.LatLng( 0.474455160000000E+02, -0.120155369000000E+03),\n new google.maps.LatLng( 0.474455160000000E+02, -0.120155369000000E+03),\n new google.maps.LatLng( 0.474460640000000E+02, -0.120154837000000E+03),\n new google.maps.LatLng( 0.474472760000000E+02, -0.120157260000000E+03),\n new google.maps.LatLng( 0.474466830000000E+02, -0.120162514000000E+03),\n new google.maps.LatLng( 0.474470030000000E+02, -0.120163794000000E+03),\n new google.maps.LatLng( 0.474477340000000E+02, -0.120164601000000E+03),\n new google.maps.LatLng( 0.474496990000000E+02, -0.120165274000000E+03),\n new google.maps.LatLng( 0.474510250000000E+02, -0.120168540000000E+03),\n new google.maps.LatLng( 0.474522170000000E+02, -0.120175650000000E+03),\n new google.maps.LatLng( 0.474522170000000E+02, -0.120175650000000E+03),\n new google.maps.LatLng( 0.474633610000000E+02, -0.120175777000000E+03),\n new google.maps.LatLng( 0.474635670000000E+02, -0.120196931000000E+03),\n new google.maps.LatLng( 0.474780260000000E+02, -0.120196898000000E+03),\n new google.maps.LatLng( 0.474782760000000E+02, -0.120213071000000E+03),\n new google.maps.LatLng( 0.474811770000000E+02, -0.120213275000000E+03),\n new google.maps.LatLng( 0.474834140000000E+02, -0.120216544000000E+03),\n new google.maps.LatLng( 0.474834830000000E+02, -0.120217319000000E+03),\n new google.maps.LatLng( 0.474824780000000E+02, -0.120218464000000E+03),\n new google.maps.LatLng( 0.474823400000000E+02, -0.120219643000000E+03),\n new google.maps.LatLng( 0.474840070000000E+02, -0.120223891000000E+03),\n new google.maps.LatLng( 0.474878430000000E+02, -0.120228443000000E+03),\n new google.maps.LatLng( 0.474880940000000E+02, -0.120229016000000E+03),\n new google.maps.LatLng( 0.474876370000000E+02, -0.120229959000000E+03),\n new google.maps.LatLng( 0.474847360000000E+02, -0.120229047000000E+03),\n new google.maps.LatLng( 0.474833210000000E+02, -0.120226923000000E+03),\n new google.maps.LatLng( 0.474804650000000E+02, -0.120226180000000E+03),\n new google.maps.LatLng( 0.474760110000000E+02, -0.120226750000000E+03),\n new google.maps.LatLng( 0.474740230000000E+02, -0.120227827000000E+03),\n new google.maps.LatLng( 0.474712360000000E+02, -0.120228533000000E+03),\n new google.maps.LatLng( 0.474697270000000E+02, -0.120227376000000E+03),\n new google.maps.LatLng( 0.474133010000000E+02, -0.120167488000000E+03),\n new google.maps.LatLng( 0.473919770000000E+02, -0.120134126000000E+03),\n new google.maps.LatLng( 0.473913670000000E+02, -0.120133796000000E+03),\n new google.maps.LatLng( 0.473913720000000E+02, -0.120135564000000E+03),\n new google.maps.LatLng( 0.473941610000000E+02, -0.120139228000000E+03),\n new google.maps.LatLng( 0.473963350000000E+02, -0.120150698000000E+03),\n new google.maps.LatLng( 0.473984610000000E+02, -0.120154229000000E+03),\n new google.maps.LatLng( 0.473986210000000E+02, -0.120155608000000E+03),\n new google.maps.LatLng( 0.473985540000000E+02, -0.120159712000000E+03),\n new google.maps.LatLng( 0.473913120000000E+02, -0.120159716000000E+03),\n new google.maps.LatLng( 0.473914300000000E+02, -0.120181177000000E+03),\n new google.maps.LatLng( 0.473881710000000E+02, -0.120181219000000E+03),\n new google.maps.LatLng( 0.473769260000000E+02, -0.120173399000000E+03),\n new google.maps.LatLng( 0.473760570000000E+02, -0.120176471000000E+03),\n new google.maps.LatLng( 0.473766510000000E+02, -0.120184845000000E+03),\n new google.maps.LatLng( 0.473777250000000E+02, -0.120189149000000E+03),\n new google.maps.LatLng( 0.473776330000000E+02, -0.120191604000000E+03),\n new google.maps.LatLng( 0.473771540000000E+02, -0.120192142000000E+03),\n new google.maps.LatLng( 0.473762940000000E+02, -0.120189335000000E+03),\n new google.maps.LatLng( 0.473738020000000E+02, -0.120171405000000E+03),\n new google.maps.LatLng( 0.473721240000000E+02, -0.120170524000000E+03),\n new google.maps.LatLng( 0.473721240000000E+02, -0.120170524000000E+03),\n new google.maps.LatLng( 0.473725580000000E+02, -0.120180535000000E+03),\n new google.maps.LatLng( 0.473740660000000E+02, -0.120187999000000E+03),\n new google.maps.LatLng( 0.473758290000000E+02, -0.120190562000000E+03),\n new google.maps.LatLng( 0.473764680000000E+02, -0.120192478000000E+03),\n new google.maps.LatLng( 0.473780210000000E+02, -0.120202131000000E+03),\n new google.maps.LatLng( 0.473781560000000E+02, -0.120212724000000E+03),\n new google.maps.LatLng( 0.473788400000000E+02, -0.120219417000000E+03),\n new google.maps.LatLng( 0.473807120000000E+02, -0.120225001000000E+03),\n new google.maps.LatLng( 0.473797260000000E+02, -0.120230852000000E+03),\n new google.maps.LatLng( 0.473802490000000E+02, -0.120237411000000E+03),\n new google.maps.LatLng( 0.473815710000000E+02, -0.120245148000000E+03),\n new google.maps.LatLng( 0.473825730000000E+02, -0.120250026000000E+03),\n new google.maps.LatLng( 0.473866190000000E+02, -0.120263768000000E+03),\n new google.maps.LatLng( 0.473920840000000E+02, -0.120277958000000E+03),\n new google.maps.LatLng( 0.473935020000000E+02, -0.120283810000000E+03),\n new google.maps.LatLng( 0.473956040000000E+02, -0.120286804000000E+03),\n new google.maps.LatLng( 0.473992140000000E+02, -0.120290167000000E+03),\n new google.maps.LatLng( 0.474048800000000E+02, -0.120293226000000E+03),\n new google.maps.LatLng( 0.474165080000000E+02, -0.120296183000000E+03),\n new google.maps.LatLng( 0.474235430000000E+02, -0.120298773000000E+03),\n new google.maps.LatLng( 0.474315620000000E+02, -0.120304930000000E+03),\n new google.maps.LatLng( 0.474442410000000E+02, -0.120309171000000E+03),\n new google.maps.LatLng( 0.474548180000000E+02, -0.120313413000000E+03),\n new google.maps.LatLng( 0.474606890000000E+02, -0.120315031000000E+03),\n new google.maps.LatLng( 0.474629040000000E+02, -0.120315536000000E+03),\n new google.maps.LatLng( 0.474704660000000E+02, -0.120314963000000E+03),\n new google.maps.LatLng( 0.474786890000000E+02, -0.120312267000000E+03),\n new google.maps.LatLng( 0.474801970000000E+02, -0.120312738000000E+03),\n new google.maps.LatLng( 0.474872780000000E+02, -0.120309199000000E+03),\n new google.maps.LatLng( 0.475034750000000E+02, -0.120305867000000E+03),\n new google.maps.LatLng( 0.475074260000000E+02, -0.120303742000000E+03),\n new google.maps.LatLng( 0.475183000000000E+02, -0.120301245000000E+03),\n new google.maps.LatLng( 0.475304070000000E+02, -0.120294226000000E+03),\n new google.maps.LatLng( 0.475380580000000E+02, -0.120288793000000E+03),\n new google.maps.LatLng( 0.475399990000000E+02, -0.120286633000000E+03),\n new google.maps.LatLng( 0.475415060000000E+02, -0.120283157000000E+03),\n new google.maps.LatLng( 0.475412080000000E+02, -0.120281808000000E+03),\n new google.maps.LatLng( 0.475404540000000E+02, -0.120281606000000E+03),\n new google.maps.LatLng( 0.475402940000000E+02, -0.120279953000000E+03),\n new google.maps.LatLng( 0.475424360000000E+02, -0.120265480000000E+03),\n new google.maps.LatLng( 0.475446260000000E+02, -0.120260181000000E+03),\n new google.maps.LatLng( 0.475489650000000E+02, -0.120255082000000E+03),\n new google.maps.LatLng( 0.475522770000000E+02, -0.120254403000000E+03),\n new google.maps.LatLng( 0.475546530000000E+02, -0.120255210000000E+03),\n new google.maps.LatLng( 0.475570740000000E+02, -0.120255241000000E+03),\n new google.maps.LatLng( 0.475741410000000E+02, -0.120246371000000E+03),\n new google.maps.LatLng( 0.475756270000000E+02, -0.120244212000000E+03),\n new google.maps.LatLng( 0.475763130000000E+02, -0.120240635000000E+03),\n new google.maps.LatLng( 0.475784620000000E+02, -0.120238544000000E+03),\n new google.maps.LatLng( 0.475834880000000E+02, -0.120235746000000E+03),\n new google.maps.LatLng( 0.476008520000000E+02, -0.120228061000000E+03),\n new google.maps.LatLng( 0.476008520000000E+02, -0.120228061000000E+03),\n new google.maps.LatLng( 0.476000990000000E+02, -0.120223737000000E+03),\n new google.maps.LatLng( 0.476012420000000E+02, -0.120221070000000E+03),\n new google.maps.LatLng( 0.476014250000000E+02, -0.120219449000000E+03),\n new google.maps.LatLng( 0.476008340000000E+02, -0.120202900000000E+03),\n new google.maps.LatLng( 0.476001720000000E+02, -0.120201988000000E+03),\n new google.maps.LatLng( 0.475982760000000E+02, -0.120201008000000E+03),\n new google.maps.LatLng( 0.475946210000000E+02, -0.120195807000000E+03),\n new google.maps.LatLng( 0.475909680000000E+02, -0.120186898000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.490002680166211E+02, -0.119093249892880E+03),\n new google.maps.LatLng( 0.490003021009937E+02, -0.118873151322766E+03),\n new google.maps.LatLng( 0.490003077150958E+02, -0.118836898466696E+03),\n new google.maps.LatLng( 0.490003077150958E+02, -0.118836898466696E+03),\n new google.maps.LatLng( 0.489998980000000E+02, -0.118836465000000E+03),\n new google.maps.LatLng( 0.489400600000000E+02, -0.118835840000000E+03),\n new google.maps.LatLng( 0.489400600000000E+02, -0.118835840000000E+03),\n new google.maps.LatLng( 0.489390300000000E+02, -0.118840625000000E+03),\n new google.maps.LatLng( 0.489392810000000E+02, -0.118844544000000E+03),\n new google.maps.LatLng( 0.489420860000000E+02, -0.118857481000000E+03),\n new google.maps.LatLng( 0.489429270000000E+02, -0.118866741000000E+03),\n new google.maps.LatLng( 0.489412560000000E+02, -0.118873467000000E+03),\n new google.maps.LatLng( 0.489367940000000E+02, -0.118885318000000E+03),\n new google.maps.LatLng( 0.489363550000000E+02, -0.118896382000000E+03),\n new google.maps.LatLng( 0.489377050000000E+02, -0.118901479000000E+03),\n new google.maps.LatLng( 0.489474190000000E+02, -0.118923460000000E+03),\n new google.maps.LatLng( 0.489517140000000E+02, -0.118927863000000E+03),\n new google.maps.LatLng( 0.489535650000000E+02, -0.118940420000000E+03),\n new google.maps.LatLng( 0.489552550000000E+02, -0.118945658000000E+03),\n new google.maps.LatLng( 0.489553240000000E+02, -0.118948016000000E+03),\n new google.maps.LatLng( 0.489513480000000E+02, -0.118956270000000E+03),\n new google.maps.LatLng( 0.489489720000000E+02, -0.118958627000000E+03),\n new google.maps.LatLng( 0.489475100000000E+02, -0.118957933000000E+03),\n new google.maps.LatLng( 0.489461380000000E+02, -0.118962233000000E+03),\n new google.maps.LatLng( 0.489480110000000E+02, -0.118965529000000E+03),\n new google.maps.LatLng( 0.489505000000000E+02, -0.118968513000000E+03),\n new google.maps.LatLng( 0.489471630000000E+02, -0.118973678000000E+03),\n new google.maps.LatLng( 0.489471630000000E+02, -0.118973678000000E+03),\n new google.maps.LatLng( 0.489492420000000E+02, -0.118973783000000E+03),\n new google.maps.LatLng( 0.489520070000000E+02, -0.118972225000000E+03),\n new google.maps.LatLng( 0.489543150000000E+02, -0.118969348000000E+03),\n new google.maps.LatLng( 0.489579240000000E+02, -0.118966783000000E+03),\n new google.maps.LatLng( 0.489624940000000E+02, -0.118965815000000E+03),\n new google.maps.LatLng( 0.489633850000000E+02, -0.118966162000000E+03),\n new google.maps.LatLng( 0.489604810000000E+02, -0.118977365000000E+03),\n new google.maps.LatLng( 0.489591320000000E+02, -0.118978474000000E+03),\n new google.maps.LatLng( 0.489588810000000E+02, -0.118979375000000E+03),\n new google.maps.LatLng( 0.489589710000000E+02, -0.118981804000000E+03),\n new google.maps.LatLng( 0.489595190000000E+02, -0.118983088000000E+03),\n new google.maps.LatLng( 0.489610260000000E+02, -0.118983956000000E+03),\n new google.maps.LatLng( 0.489615290000000E+02, -0.118983645000000E+03),\n new google.maps.LatLng( 0.489604110000000E+02, -0.118981597000000E+03),\n new google.maps.LatLng( 0.489606900000000E+02, -0.118980608000000E+03),\n new google.maps.LatLng( 0.489667150000000E+02, -0.118981846000000E+03),\n new google.maps.LatLng( 0.489687940000000E+02, -0.118984450000000E+03),\n new google.maps.LatLng( 0.489752530000000E+02, -0.118996949000000E+03),\n new google.maps.LatLng( 0.489821270000000E+02, -0.119000219000000E+03),\n new google.maps.LatLng( 0.489840000000000E+02, -0.119000430000000E+03),\n new google.maps.LatLng( 0.489854640000000E+02, -0.119001152000000E+03),\n new google.maps.LatLng( 0.489886200000000E+02, -0.119006628000000E+03),\n new google.maps.LatLng( 0.489906100000000E+02, -0.119013429000000E+03),\n new google.maps.LatLng( 0.489908860000000E+02, -0.119017039000000E+03),\n new google.maps.LatLng( 0.489907540000000E+02, -0.119026297000000E+03),\n new google.maps.LatLng( 0.489912110000000E+02, -0.119034256000000E+03),\n new google.maps.LatLng( 0.489907570000000E+02, -0.119051195000000E+03),\n new google.maps.LatLng( 0.489899580000000E+02, -0.119058692000000E+03),\n new google.maps.LatLng( 0.489884050000000E+02, -0.119061121000000E+03),\n new google.maps.LatLng( 0.489788800000000E+02, -0.119070978000000E+03),\n new google.maps.LatLng( 0.489806140000000E+02, -0.119075212000000E+03),\n new google.maps.LatLng( 0.489875810000000E+02, -0.119080906000000E+03),\n new google.maps.LatLng( 0.489946610000000E+02, -0.119084519000000E+03),\n new google.maps.LatLng( 0.489947990000000E+02, -0.119086740000000E+03),\n new google.maps.LatLng( 0.489988400000000E+02, -0.119092158000000E+03),\n new google.maps.LatLng( 0.490002680166211E+02, -0.119093249892880E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.473550020000000E+02, -0.122964522000000E+03),\n new google.maps.LatLng( 0.473751100000000E+02, -0.122890139000000E+03),\n new google.maps.LatLng( 0.473767300000000E+02, -0.122882297000000E+03),\n new google.maps.LatLng( 0.473728420000000E+02, -0.122883680000000E+03),\n new google.maps.LatLng( 0.473694140000000E+02, -0.122885736000000E+03),\n new google.maps.LatLng( 0.473668080000000E+02, -0.122884763000000E+03),\n new google.maps.LatLng( 0.473657100000000E+02, -0.122881669000000E+03),\n new google.maps.LatLng( 0.473671010000000E+02, -0.122876739000000E+03),\n new google.maps.LatLng( 0.473665420000000E+02, -0.122872641000000E+03),\n new google.maps.LatLng( 0.473665420000000E+02, -0.122872641000000E+03),\n new google.maps.LatLng( 0.473608290000000E+02, -0.122878834000000E+03),\n new google.maps.LatLng( 0.473490650000000E+02, -0.122893066000000E+03),\n new google.maps.LatLng( 0.473456950000000E+02, -0.122894799000000E+03),\n new google.maps.LatLng( 0.473456200000000E+02, -0.122858290000000E+03),\n new google.maps.LatLng( 0.473596640000000E+02, -0.122858313000000E+03),\n new google.maps.LatLng( 0.473596990000000E+02, -0.122849405000000E+03),\n new google.maps.LatLng( 0.473576430000000E+02, -0.122846858000000E+03),\n new google.maps.LatLng( 0.473489340000000E+02, -0.122849431000000E+03),\n new google.maps.LatLng( 0.473478280000000E+02, -0.122844334000000E+03),\n new google.maps.LatLng( 0.473482250000000E+02, -0.122840871000000E+03),\n new google.maps.LatLng( 0.473512530000000E+02, -0.122837804000000E+03),\n new google.maps.LatLng( 0.473516430000000E+02, -0.122835774000000E+03),\n new google.maps.LatLng( 0.473511310000000E+02, -0.122834721000000E+03),\n new google.maps.LatLng( 0.473481100000000E+02, -0.122833515000000E+03),\n new google.maps.LatLng( 0.473410150000000E+02, -0.122833423000000E+03),\n new google.maps.LatLng( 0.473417930000000E+02, -0.122830112000000E+03),\n new google.maps.LatLng( 0.473417930000000E+02, -0.122830112000000E+03),\n new google.maps.LatLng( 0.473386570000000E+02, -0.122832706000000E+03),\n new google.maps.LatLng( 0.473374290000000E+02, -0.122833103000000E+03),\n new google.maps.LatLng( 0.473356670000000E+02, -0.122832706000000E+03),\n new google.maps.LatLng( 0.473350870000000E+02, -0.122831974000000E+03),\n new google.maps.LatLng( 0.473282510000000E+02, -0.122832935000000E+03),\n new google.maps.LatLng( 0.473254970000000E+02, -0.122834873000000E+03),\n new google.maps.LatLng( 0.473224070000000E+02, -0.122839878000000E+03),\n new google.maps.LatLng( 0.473223080000000E+02, -0.122840686000000E+03),\n new google.maps.LatLng( 0.473229030000000E+02, -0.122841022000000E+03),\n new google.maps.LatLng( 0.473230630000000E+02, -0.122840366000000E+03),\n new google.maps.LatLng( 0.473247870000000E+02, -0.122839801000000E+03),\n new google.maps.LatLng( 0.473262520000000E+02, -0.122839649000000E+03),\n new google.maps.LatLng( 0.473269610000000E+02, -0.122840290000000E+03),\n new google.maps.LatLng( 0.473219720000000E+02, -0.122841983000000E+03),\n new google.maps.LatLng( 0.473192790000000E+02, -0.122842151000000E+03),\n new google.maps.LatLng( 0.473190570000000E+02, -0.122841419000000E+03),\n new google.maps.LatLng( 0.473214347137695E+02, -0.122841624820898E+03),\n new google.maps.LatLng( 0.473224600000000E+02, -0.122841175000000E+03),\n new google.maps.LatLng( 0.473175700000000E+02, -0.122840854000000E+03),\n new google.maps.LatLng( 0.473139920000000E+02, -0.122842868000000E+03),\n new google.maps.LatLng( 0.473127860000000E+02, -0.122844074000000E+03),\n new google.maps.LatLng( 0.473114050000000E+02, -0.122846012000000E+03),\n new google.maps.LatLng( 0.473104670000000E+02, -0.122853764000000E+03),\n new google.maps.LatLng( 0.473080250000000E+02, -0.122860158000000E+03),\n new google.maps.LatLng( 0.473081020000000E+02, -0.122861195000000E+03),\n new google.maps.LatLng( 0.473090780000000E+02, -0.122862492000000E+03),\n new google.maps.LatLng( 0.473116260000000E+02, -0.122862965000000E+03),\n new google.maps.LatLng( 0.473117180000000E+02, -0.122866521000000E+03),\n new google.maps.LatLng( 0.473136560000000E+02, -0.122866521000000E+03),\n new google.maps.LatLng( 0.473150240000000E+02, -0.122867434000000E+03),\n new google.maps.LatLng( 0.473113910000000E+02, -0.122867145000000E+03),\n new google.maps.LatLng( 0.473096380000000E+02, -0.122864348000000E+03),\n new google.maps.LatLng( 0.473069170000000E+02, -0.122862976000000E+03),\n new google.maps.LatLng( 0.473056220000000E+02, -0.122866446000000E+03),\n new google.maps.LatLng( 0.473032490000000E+02, -0.122868535000000E+03),\n new google.maps.LatLng( 0.473007700000000E+02, -0.122872166000000E+03),\n new google.maps.LatLng( 0.472989900000000E+02, -0.122876253000000E+03),\n new google.maps.LatLng( 0.472993370000000E+02, -0.122879689000000E+03),\n new google.maps.LatLng( 0.472979440000000E+02, -0.122881976000000E+03),\n new google.maps.LatLng( 0.472950430000000E+02, -0.122885170000000E+03),\n new google.maps.LatLng( 0.472939020000000E+02, -0.122889370000000E+03),\n new google.maps.LatLng( 0.472928300000000E+02, -0.122894579000000E+03),\n new google.maps.LatLng( 0.472923980000000E+02, -0.122900324000000E+03),\n new google.maps.LatLng( 0.472928320000000E+02, -0.122901130000000E+03),\n new google.maps.LatLng( 0.472941350000000E+02, -0.122900625000000E+03),\n new google.maps.LatLng( 0.472940890000000E+02, -0.122901331000000E+03),\n new google.maps.LatLng( 0.472915300000000E+02, -0.122904289000000E+03),\n new google.maps.LatLng( 0.472900230000000E+02, -0.122908019000000E+03),\n new google.maps.LatLng( 0.472895900000000E+02, -0.122911983000000E+03),\n new google.maps.LatLng( 0.472849060000000E+02, -0.122918770000000E+03),\n new google.maps.LatLng( 0.472837630000000E+02, -0.122921491000000E+03),\n new google.maps.LatLng( 0.472841290000000E+02, -0.122922734000000E+03),\n new google.maps.LatLng( 0.472862310000000E+02, -0.122919878000000E+03),\n new google.maps.LatLng( 0.472874880000000E+02, -0.122920382000000E+03),\n new google.maps.LatLng( 0.472873740000000E+02, -0.122920717000000E+03),\n new google.maps.LatLng( 0.472865740000000E+02, -0.122920718000000E+03),\n new google.maps.LatLng( 0.472838780000000E+02, -0.122923574000000E+03),\n new google.maps.LatLng( 0.472822320000000E+02, -0.122923540000000E+03),\n new google.maps.LatLng( 0.472806330000000E+02, -0.122927404000000E+03),\n new google.maps.LatLng( 0.472761530000000E+02, -0.122927471000000E+03),\n new google.maps.LatLng( 0.472677650000000E+02, -0.122928716000000E+03),\n new google.maps.LatLng( 0.472642450000000E+02, -0.122930596000000E+03),\n new google.maps.LatLng( 0.472642450000000E+02, -0.122930596000000E+03),\n new google.maps.LatLng( 0.472630340000000E+02, -0.122931805000000E+03),\n new google.maps.LatLng( 0.472624860000000E+02, -0.122933485000000E+03),\n new google.maps.LatLng( 0.472687480000000E+02, -0.122938185000000E+03),\n new google.maps.LatLng( 0.472701880000000E+02, -0.122940704000000E+03),\n new google.maps.LatLng( 0.472703480000000E+02, -0.122944599000000E+03),\n new google.maps.LatLng( 0.472690680000000E+02, -0.122947454000000E+03),\n new google.maps.LatLng( 0.472752150000000E+02, -0.122959277000000E+03),\n new google.maps.LatLng( 0.472777480000000E+02, -0.122972241000000E+03),\n new google.maps.LatLng( 0.472821860000000E+02, -0.122959615000000E+03),\n new google.maps.LatLng( 0.472866890000000E+02, -0.122955250000000E+03),\n new google.maps.LatLng( 0.472928830000000E+02, -0.122950582000000E+03),\n new google.maps.LatLng( 0.472975230000000E+02, -0.122948433000000E+03),\n new google.maps.LatLng( 0.473059570000000E+02, -0.122943528000000E+03),\n new google.maps.LatLng( 0.473085630000000E+02, -0.122944033000000E+03),\n new google.maps.LatLng( 0.473117170000000E+02, -0.122943630000000E+03),\n new google.maps.LatLng( 0.473136830000000E+02, -0.122941345000000E+03),\n new google.maps.LatLng( 0.473140030000000E+02, -0.122939059000000E+03),\n new google.maps.LatLng( 0.473164590000000E+02, -0.122933856000000E+03),\n new google.maps.LatLng( 0.473164330000000E+02, -0.122941360000000E+03),\n new google.maps.LatLng( 0.473148460000000E+02, -0.122943555000000E+03),\n new google.maps.LatLng( 0.473142490000000E+02, -0.122945469000000E+03),\n new google.maps.LatLng( 0.473126320000000E+02, -0.122955478000000E+03),\n new google.maps.LatLng( 0.473116660000000E+02, -0.122958701000000E+03),\n new google.maps.LatLng( 0.473031620000000E+02, -0.122971571000000E+03),\n new google.maps.LatLng( 0.472980320000000E+02, -0.122976925000000E+03),\n new google.maps.LatLng( 0.472951220000000E+02, -0.122980675000000E+03),\n new google.maps.LatLng( 0.472915610000000E+02, -0.122989664000000E+03),\n new google.maps.LatLng( 0.472884400000000E+02, -0.123001261000000E+03),\n new google.maps.LatLng( 0.472865620000000E+02, -0.123004717000000E+03),\n new google.maps.LatLng( 0.472832520000000E+02, -0.123006882000000E+03),\n new google.maps.LatLng( 0.472814510000000E+02, -0.123009141000000E+03),\n new google.maps.LatLng( 0.472767000000000E+02, -0.123021655000000E+03),\n new google.maps.LatLng( 0.472761700000000E+02, -0.123025043000000E+03),\n new google.maps.LatLng( 0.472771070000000E+02, -0.123025476000000E+03),\n new google.maps.LatLng( 0.472773810000000E+02, -0.123025140000000E+03),\n new google.maps.LatLng( 0.472827710000000E+02, -0.123014892000000E+03),\n new google.maps.LatLng( 0.472871280000000E+02, -0.123015034000000E+03),\n new google.maps.LatLng( 0.472871070000000E+02, -0.123027414000000E+03),\n new google.maps.LatLng( 0.472884620000000E+02, -0.123030497000000E+03),\n new google.maps.LatLng( 0.472904770000000E+02, -0.123027717000000E+03),\n new google.maps.LatLng( 0.472938350000000E+02, -0.123021433000000E+03),\n new google.maps.LatLng( 0.472966950000000E+02, -0.123019291000000E+03),\n new google.maps.LatLng( 0.472992750000000E+02, -0.123019774000000E+03),\n new google.maps.LatLng( 0.472999320000000E+02, -0.123020773000000E+03),\n new google.maps.LatLng( 0.472949670000000E+02, -0.123031202000000E+03),\n new google.maps.LatLng( 0.472947990000000E+02, -0.123034132000000E+03),\n new google.maps.LatLng( 0.472969710000000E+02, -0.123037188000000E+03),\n new google.maps.LatLng( 0.472994630000000E+02, -0.123038564000000E+03),\n new google.maps.LatLng( 0.473015880000000E+02, -0.123037354000000E+03),\n new google.maps.LatLng( 0.473031650000000E+02, -0.123035370000000E+03),\n new google.maps.LatLng( 0.473047860000000E+02, -0.123030632000000E+03),\n new google.maps.LatLng( 0.473052200000000E+02, -0.123030329000000E+03),\n new google.maps.LatLng( 0.473073230000000E+02, -0.123031235000000E+03),\n new google.maps.LatLng( 0.473105930000000E+02, -0.123036509000000E+03),\n new google.maps.LatLng( 0.473110970000000E+02, -0.123042356000000E+03),\n new google.maps.LatLng( 0.473108000000000E+02, -0.123045011000000E+03),\n new google.maps.LatLng( 0.473118750000000E+02, -0.123050219000000E+03),\n new google.maps.LatLng( 0.473123780000000E+02, -0.123050790000000E+03),\n new google.maps.LatLng( 0.473159150000000E+02, -0.123050899000000E+03),\n new google.maps.LatLng( 0.473159150000000E+02, -0.123050899000000E+03),\n new google.maps.LatLng( 0.473174740000000E+02, -0.123044941000000E+03),\n new google.maps.LatLng( 0.473172220000000E+02, -0.123042051000000E+03),\n new google.maps.LatLng( 0.473152320000000E+02, -0.123034020000000E+03),\n new google.maps.LatLng( 0.473159620000000E+02, -0.123028776000000E+03),\n new google.maps.LatLng( 0.473149070000000E+02, -0.123017484000000E+03),\n new google.maps.LatLng( 0.473152480000000E+02, -0.123015199000000E+03),\n new google.maps.LatLng( 0.473155680000000E+02, -0.123015064000000E+03),\n new google.maps.LatLng( 0.473175130000000E+02, -0.123018995000000E+03),\n new google.maps.LatLng( 0.473188390000000E+02, -0.123019566000000E+03),\n new google.maps.LatLng( 0.473201870000000E+02, -0.123018993000000E+03),\n new google.maps.LatLng( 0.473206530000000E+02, -0.123011525000000E+03),\n new google.maps.LatLng( 0.473282250000000E+02, -0.123003810000000E+03),\n new google.maps.LatLng( 0.473252490000000E+02, -0.122999477000000E+03),\n new google.maps.LatLng( 0.473262850000000E+02, -0.122993653000000E+03),\n new google.maps.LatLng( 0.473309730000000E+02, -0.122988582000000E+03),\n new google.maps.LatLng( 0.473357710000000E+02, -0.122990570000000E+03),\n new google.maps.LatLng( 0.473399300000000E+02, -0.122993364000000E+03),\n new google.maps.LatLng( 0.473397920000000E+02, -0.122995617000000E+03),\n new google.maps.LatLng( 0.473403170000000E+02, -0.122995887000000E+03),\n new google.maps.LatLng( 0.473410940000000E+02, -0.122995719000000E+03),\n new google.maps.LatLng( 0.473479310000000E+02, -0.122990582000000E+03),\n new google.maps.LatLng( 0.473550020000000E+02, -0.122964522000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.460449210000000E+02, -0.121307466000000E+03),\n new google.maps.LatLng( 0.460422250000000E+02, -0.121307913000000E+03),\n new google.maps.LatLng( 0.460410820000000E+02, -0.121307453000000E+03),\n new google.maps.LatLng( 0.460366480000000E+02, -0.121307421000000E+03),\n new google.maps.LatLng( 0.460355740000000E+02, -0.121309587000000E+03),\n new google.maps.LatLng( 0.460355280000000E+02, -0.121310736000000E+03),\n new google.maps.LatLng( 0.460363050000000E+02, -0.121311589000000E+03),\n new google.maps.LatLng( 0.460364880000000E+02, -0.121313000000000E+03),\n new google.maps.LatLng( 0.460347740000000E+02, -0.121317727000000E+03),\n new google.maps.LatLng( 0.460329680000000E+02, -0.121319892000000E+03),\n new google.maps.LatLng( 0.460294020000000E+02, -0.121322911000000E+03),\n new google.maps.LatLng( 0.460258590000000E+02, -0.121328521000000E+03),\n new google.maps.LatLng( 0.460240980000000E+02, -0.121334754000000E+03),\n new google.maps.LatLng( 0.460244620000000E+02, -0.121342432000000E+03),\n new google.maps.LatLng( 0.460242560000000E+02, -0.121343974000000E+03),\n new google.maps.LatLng( 0.460237080000000E+02, -0.121344564000000E+03),\n new google.maps.LatLng( 0.460182910000000E+02, -0.121344791000000E+03),\n new google.maps.LatLng( 0.460154800000000E+02, -0.121340688000000E+03),\n new google.maps.LatLng( 0.460117180000000E+02, -0.121332967000000E+03),\n new google.maps.LatLng( 0.460076200000000E+02, -0.121329500000000E+03),\n new google.maps.LatLng( 0.460034020000000E+02, -0.121331932000000E+03),\n new google.maps.LatLng( 0.460023020000000E+02, -0.121333186000000E+03),\n new google.maps.LatLng( 0.460019270000000E+02, -0.121336746000000E+03),\n new google.maps.LatLng( 0.460023140000000E+02, -0.121342880000000E+03),\n new google.maps.LatLng( 0.460004170000000E+02, -0.121345896000000E+03),\n new google.maps.LatLng( 0.459967160000000E+02, -0.121346578000000E+03),\n new google.maps.LatLng( 0.459952530000000E+02, -0.121345725000000E+03),\n new google.maps.LatLng( 0.459915390000000E+02, -0.121347621000000E+03),\n new google.maps.LatLng( 0.459882410000000E+02, -0.121353170000000E+03),\n new google.maps.LatLng( 0.459858200000000E+02, -0.121356059000000E+03),\n new google.maps.LatLng( 0.459757690000000E+02, -0.121358467000000E+03),\n new google.maps.LatLng( 0.459720720000000E+02, -0.121358497000000E+03),\n new google.maps.LatLng( 0.459692160000000E+02, -0.121355381000000E+03),\n new google.maps.LatLng( 0.459672990000000E+02, -0.121348954000000E+03),\n new google.maps.LatLng( 0.459648310000000E+02, -0.121345446000000E+03),\n new google.maps.LatLng( 0.459640310000000E+02, -0.121346134000000E+03),\n new google.maps.LatLng( 0.459648740000000E+02, -0.121354590000000E+03),\n new google.maps.LatLng( 0.459648030000000E+02, -0.121360261000000E+03),\n new google.maps.LatLng( 0.459627920000000E+02, -0.121359767000000E+03),\n new google.maps.LatLng( 0.459606670000000E+02, -0.121357668000000E+03),\n new google.maps.LatLng( 0.459587020000000E+02, -0.121357830000000E+03),\n new google.maps.LatLng( 0.459553640000000E+02, -0.121359532000000E+03),\n new google.maps.LatLng( 0.459528030000000E+02, -0.121361791000000E+03),\n new google.maps.LatLng( 0.459481710000000E+02, -0.121364826000000E+03),\n new google.maps.LatLng( 0.459423100000000E+02, -0.121364665000000E+03),\n new google.maps.LatLng( 0.459422380000000E+02, -0.121372069000000E+03),\n new google.maps.LatLng( 0.459434470000000E+02, -0.121380338000000E+03),\n new google.maps.LatLng( 0.459452570000000E+02, -0.121388560000000E+03),\n new google.maps.LatLng( 0.459468580000000E+02, -0.121391508000000E+03),\n new google.maps.LatLng( 0.459459680000000E+02, -0.121394327000000E+03),\n new google.maps.LatLng( 0.459406910000000E+02, -0.121401833000000E+03),\n new google.maps.LatLng( 0.459385640000000E+02, -0.121402424000000E+03),\n new google.maps.LatLng( 0.459323710000000E+02, -0.121400757000000E+03),\n new google.maps.LatLng( 0.459276360000000E+02, -0.121391491000000E+03),\n new google.maps.LatLng( 0.459304440000000E+02, -0.121385560000000E+03),\n new google.maps.LatLng( 0.459302590000000E+02, -0.121380320000000E+03),\n new google.maps.LatLng( 0.459244970000000E+02, -0.121376575000000E+03),\n new google.maps.LatLng( 0.459223030000000E+02, -0.121376576000000E+03),\n new google.maps.LatLng( 0.459203140000000E+02, -0.121376990000000E+03),\n new google.maps.LatLng( 0.459192860000000E+02, -0.121377941000000E+03),\n new google.maps.LatLng( 0.459183030000000E+02, -0.121377811000000E+03),\n new google.maps.LatLng( 0.459156770000000E+02, -0.121374235000000E+03),\n new google.maps.LatLng( 0.459177810000000E+02, -0.121370831000000E+03),\n new google.maps.LatLng( 0.459198880000000E+02, -0.121362024000000E+03),\n new google.maps.LatLng( 0.459226550000000E+02, -0.121358719000000E+03),\n new google.maps.LatLng( 0.459250560000000E+02, -0.121356887000000E+03),\n new google.maps.LatLng( 0.459270220000000E+02, -0.121354301000000E+03),\n new google.maps.LatLng( 0.459326500000000E+02, -0.121340252000000E+03),\n new google.maps.LatLng( 0.459354630000000E+02, -0.121330394000000E+03),\n new google.maps.LatLng( 0.459410640000000E+02, -0.121322500000000E+03),\n new google.maps.LatLng( 0.459443550000000E+02, -0.121313098000000E+03),\n new google.maps.LatLng( 0.459464350000000E+02, -0.121309526000000E+03),\n new google.maps.LatLng( 0.459465260000000E+02, -0.121303662000000E+03),\n new google.maps.LatLng( 0.459447660000000E+02, -0.121303105000000E+03),\n new google.maps.LatLng( 0.459419550000000E+02, -0.121303204000000E+03),\n new google.maps.LatLng( 0.459358170000000E+02, -0.121301275000000E+03),\n new google.maps.LatLng( 0.459397080000000E+02, -0.121295716000000E+03),\n new google.maps.LatLng( 0.459427140000000E+02, -0.121294945000000E+03),\n new google.maps.LatLng( 0.459439680000000E+02, -0.121293345000000E+03),\n new google.maps.LatLng( 0.459464910000000E+02, -0.121287694000000E+03),\n new google.maps.LatLng( 0.459464910000000E+02, -0.121287694000000E+03),\n new google.maps.LatLng( 0.459404480000000E+02, -0.121292867000000E+03),\n new google.maps.LatLng( 0.459304680000000E+02, -0.121299701000000E+03),\n new google.maps.LatLng( 0.459288810000000E+02, -0.121301962000000E+03),\n new google.maps.LatLng( 0.459226870000000E+02, -0.121306025000000E+03),\n new google.maps.LatLng( 0.459159900000000E+02, -0.121306876000000E+03),\n new google.maps.LatLng( 0.459084700000000E+02, -0.121311363000000E+03),\n new google.maps.LatLng( 0.459053850000000E+02, -0.121315914000000E+03),\n new google.maps.LatLng( 0.459016130000000E+02, -0.121318893000000E+03),\n new google.maps.LatLng( 0.458996930000000E+02, -0.121324196000000E+03),\n new google.maps.LatLng( 0.458943440000000E+02, -0.121328352000000E+03),\n new google.maps.LatLng( 0.458876460000000E+02, -0.121331623000000E+03),\n new google.maps.LatLng( 0.458872340000000E+02, -0.121333259000000E+03),\n new google.maps.LatLng( 0.458882620000000E+02, -0.121335158000000E+03),\n new google.maps.LatLng( 0.458885130000000E+02, -0.121336729000000E+03),\n new google.maps.LatLng( 0.458873010000000E+02, -0.121340951000000E+03),\n new google.maps.LatLng( 0.458790020000000E+02, -0.121349029000000E+03),\n new google.maps.LatLng( 0.458783390000000E+02, -0.121348964000000E+03),\n new google.maps.LatLng( 0.458751840000000E+02, -0.121346475000000E+03),\n new google.maps.LatLng( 0.458716950000000E+02, -0.121337765000000E+03),\n new google.maps.LatLng( 0.458655930000000E+02, -0.121328439000000E+03),\n new google.maps.LatLng( 0.458680170000000E+02, -0.121321602000000E+03),\n new google.maps.LatLng( 0.458682910000000E+02, -0.121318555000000E+03),\n new google.maps.LatLng( 0.458607490000000E+02, -0.121316006000000E+03),\n new google.maps.LatLng( 0.458554460000000E+02, -0.121317380000000E+03),\n new google.maps.LatLng( 0.458554680000000E+02, -0.121322319000000E+03),\n new google.maps.LatLng( 0.458466910000000E+02, -0.121322220000000E+03),\n new google.maps.LatLng( 0.458446570000000E+02, -0.121323495000000E+03),\n new google.maps.LatLng( 0.458432400000000E+02, -0.121325425000000E+03),\n new google.maps.LatLng( 0.458412960000000E+02, -0.121330199000000E+03),\n new google.maps.LatLng( 0.458378900000000E+02, -0.121333958000000E+03),\n new google.maps.LatLng( 0.458378900000000E+02, -0.121333958000000E+03),\n new google.maps.LatLng( 0.458405410000000E+02, -0.121336150000000E+03),\n new google.maps.LatLng( 0.458409980000000E+02, -0.121337230000000E+03),\n new google.maps.LatLng( 0.458422270000000E+02, -0.121349319000000E+03),\n new google.maps.LatLng( 0.458463530000000E+02, -0.121354185000000E+03),\n new google.maps.LatLng( 0.458503290000000E+02, -0.121356836000000E+03),\n new google.maps.LatLng( 0.458560330000000E+02, -0.121358654000000E+03),\n new google.maps.LatLng( 0.458567410000000E+02, -0.121358437000000E+03),\n new google.maps.LatLng( 0.458572980000000E+02, -0.121355958000000E+03),\n new google.maps.LatLng( 0.458593740000000E+02, -0.121353816000000E+03),\n new google.maps.LatLng( 0.458603760000000E+02, -0.121354478000000E+03),\n new google.maps.LatLng( 0.458606270000000E+02, -0.121357847000000E+03),\n new google.maps.LatLng( 0.458582490000000E+02, -0.121359448000000E+03),\n new google.maps.LatLng( 0.458554130000000E+02, -0.121364745000000E+03),\n new google.maps.LatLng( 0.458591590000000E+02, -0.121370081000000E+03),\n new google.maps.LatLng( 0.458614590000000E+02, -0.121370729000000E+03),\n new google.maps.LatLng( 0.458611680000000E+02, -0.121381631000000E+03),\n new google.maps.LatLng( 0.458555290000000E+02, -0.121395670000000E+03),\n new google.maps.LatLng( 0.458538860000000E+02, -0.121401592000000E+03),\n new google.maps.LatLng( 0.458543680000000E+02, -0.121409638000000E+03),\n new google.maps.LatLng( 0.458554130000000E+02, -0.121411597000000E+03),\n new google.maps.LatLng( 0.458603800000000E+02, -0.121413037000000E+03),\n new google.maps.LatLng( 0.458699460000000E+02, -0.121413766000000E+03),\n new google.maps.LatLng( 0.458842120000000E+02, -0.121403891000000E+03),\n new google.maps.LatLng( 0.458848060000000E+02, -0.121403080000000E+03),\n new google.maps.LatLng( 0.458868950000000E+02, -0.121402923000000E+03),\n new google.maps.LatLng( 0.458920400000000E+02, -0.121412892000000E+03),\n new google.maps.LatLng( 0.459103340000000E+02, -0.121452050000000E+03),\n new google.maps.LatLng( 0.459165850000000E+02, -0.121453561000000E+03),\n new google.maps.LatLng( 0.459144330000000E+02, -0.121458337000000E+03),\n new google.maps.LatLng( 0.459103180000000E+02, -0.121460759000000E+03),\n new google.maps.LatLng( 0.459052670000000E+02, -0.121459905000000E+03),\n new google.maps.LatLng( 0.459054910000000E+02, -0.121472773000000E+03),\n new google.maps.LatLng( 0.459045080000000E+02, -0.121474737000000E+03),\n new google.maps.LatLng( 0.459044610000000E+02, -0.121477225000000E+03),\n new google.maps.LatLng( 0.459065170000000E+02, -0.121482694000000E+03),\n new google.maps.LatLng( 0.459076110000000E+02, -0.121488458000000E+03),\n new google.maps.LatLng( 0.459070170000000E+02, -0.121490029000000E+03),\n new google.maps.LatLng( 0.459026540000000E+02, -0.121489768000000E+03),\n new google.maps.LatLng( 0.458965340000000E+02, -0.121495344000000E+03),\n new google.maps.LatLng( 0.458957960000000E+02, -0.121499563000000E+03),\n new google.maps.LatLng( 0.458991940000000E+02, -0.121500806000000E+03),\n new google.maps.LatLng( 0.458998530000000E+02, -0.121499701000000E+03),\n new google.maps.LatLng( 0.459023030000000E+02, -0.121499519000000E+03),\n new google.maps.LatLng( 0.459080170000000E+02, -0.121500778000000E+03),\n new google.maps.LatLng( 0.459093180000000E+02, -0.121501709000000E+03),\n new google.maps.LatLng( 0.459111030000000E+02, -0.121500052000000E+03),\n new google.maps.LatLng( 0.459141470000000E+02, -0.121491738000000E+03),\n new google.maps.LatLng( 0.459181720000000E+02, -0.121487976000000E+03),\n new google.maps.LatLng( 0.459228800000000E+02, -0.121485017000000E+03),\n new google.maps.LatLng( 0.459274540000000E+02, -0.121483169000000E+03),\n new google.maps.LatLng( 0.459284140000000E+02, -0.121483170000000E+03),\n new google.maps.LatLng( 0.459304930000000E+02, -0.121484941000000E+03),\n new google.maps.LatLng( 0.459324140000000E+02, -0.121484779000000E+03),\n new google.maps.LatLng( 0.459333980000000E+02, -0.121484157000000E+03),\n new google.maps.LatLng( 0.459342440000000E+02, -0.121482291000000E+03),\n new google.maps.LatLng( 0.459340840000000E+02, -0.121480980000000E+03),\n new google.maps.LatLng( 0.459325300000000E+02, -0.121480259000000E+03),\n new google.maps.LatLng( 0.459331260000000E+02, -0.121477180000000E+03),\n new google.maps.LatLng( 0.459369650000000E+02, -0.121478067000000E+03),\n new google.maps.LatLng( 0.459387930000000E+02, -0.121480787000000E+03),\n new google.maps.LatLng( 0.459400500000000E+02, -0.121481149000000E+03),\n new google.maps.LatLng( 0.459419470000000E+02, -0.121481084000000E+03),\n new google.maps.LatLng( 0.459444620000000E+02, -0.121480071000000E+03),\n new google.maps.LatLng( 0.459460650000000E+02, -0.121478367000000E+03),\n new google.maps.LatLng( 0.459460650000000E+02, -0.121478367000000E+03),\n new google.maps.LatLng( 0.459460640000000E+02, -0.121474338000000E+03),\n new google.maps.LatLng( 0.459482820000000E+02, -0.121471030000000E+03),\n new google.maps.LatLng( 0.459488090000000E+02, -0.121466574000000E+03),\n new google.maps.LatLng( 0.459469580000000E+02, -0.121463690000000E+03),\n new google.maps.LatLng( 0.459455180000000E+02, -0.121462346000000E+03),\n new google.maps.LatLng( 0.459448320000000E+02, -0.121462411000000E+03),\n new google.maps.LatLng( 0.459435070000000E+02, -0.121461460000000E+03),\n new google.maps.LatLng( 0.459425470000000E+02, -0.121458151000000E+03),\n new google.maps.LatLng( 0.459429060000000E+02, -0.121454767000000E+03),\n new google.maps.LatLng( 0.459462740000000E+02, -0.121451348000000E+03),\n new google.maps.LatLng( 0.459511910000000E+02, -0.121454064000000E+03),\n new google.maps.LatLng( 0.459617710000000E+02, -0.121449734000000E+03),\n new google.maps.LatLng( 0.459660480000000E+02, -0.121449992000000E+03),\n new google.maps.LatLng( 0.459678970000000E+02, -0.121451833000000E+03),\n new google.maps.LatLng( 0.459688790000000E+02, -0.121456094000000E+03),\n new google.maps.LatLng( 0.459754840000000E+02, -0.121461736000000E+03),\n new google.maps.LatLng( 0.459783410000000E+02, -0.121460917000000E+03),\n new google.maps.LatLng( 0.459890170000000E+02, -0.121453412000000E+03),\n new google.maps.LatLng( 0.459901370000000E+02, -0.121450264000000E+03),\n new google.maps.LatLng( 0.459922850000000E+02, -0.121450658000000E+03),\n new google.maps.LatLng( 0.459962170000000E+02, -0.121453545000000E+03),\n new google.maps.LatLng( 0.459986160000000E+02, -0.121456333000000E+03),\n new google.maps.LatLng( 0.459993450000000E+02, -0.121457907000000E+03),\n new google.maps.LatLng( 0.460094440000000E+02, -0.121462573000000E+03),\n new google.maps.LatLng( 0.460158880000000E+02, -0.121471696000000E+03),\n new google.maps.LatLng( 0.460210520000000E+02, -0.121476587000000E+03),\n new google.maps.LatLng( 0.460262630000000E+02, -0.121476394000000E+03),\n new google.maps.LatLng( 0.460308800000000E+02, -0.121478202000000E+03),\n new google.maps.LatLng( 0.460314510000000E+02, -0.121479285000000E+03),\n new google.maps.LatLng( 0.460304200000000E+02, -0.121484961000000E+03),\n new google.maps.LatLng( 0.460286350000000E+02, -0.121490308000000E+03),\n new google.maps.LatLng( 0.460283380000000E+02, -0.121490964000000E+03),\n new google.maps.LatLng( 0.460258460000000E+02, -0.121492045000000E+03),\n new google.maps.LatLng( 0.460253190000000E+02, -0.121495424000000E+03),\n new google.maps.LatLng( 0.460260490000000E+02, -0.121498115000000E+03),\n new google.maps.LatLng( 0.460228250000000E+02, -0.121506833000000E+03),\n new google.maps.LatLng( 0.460230780000000E+02, -0.121509097000000E+03),\n new google.maps.LatLng( 0.460267850000000E+02, -0.121520577000000E+03),\n new google.maps.LatLng( 0.460295060000000E+02, -0.121524152000000E+03),\n new google.maps.LatLng( 0.460318830000000E+02, -0.121524347000000E+03),\n new google.maps.LatLng( 0.460343740000000E+02, -0.121523558000000E+03),\n new google.maps.LatLng( 0.460371850000000E+02, -0.121521916000000E+03),\n new google.maps.LatLng( 0.460440110000000E+02, -0.121515492000000E+03),\n new google.maps.LatLng( 0.460440110000000E+02, -0.121515492000000E+03),\n new google.maps.LatLng( 0.460449210000000E+02, -0.121307466000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.472239850000000E+02, -0.122720113000000E+03),\n new google.maps.LatLng( 0.472207180000000E+02, -0.122721642000000E+03),\n new google.maps.LatLng( 0.472142180000000E+02, -0.122731242000000E+03),\n new google.maps.LatLng( 0.472132180000000E+02, -0.122734142000000E+03),\n new google.maps.LatLng( 0.472084180000000E+02, -0.122738042000000E+03),\n new google.maps.LatLng( 0.472072180000000E+02, -0.122740843000000E+03),\n new google.maps.LatLng( 0.472065180000000E+02, -0.122744743000000E+03),\n new google.maps.LatLng( 0.472070180000000E+02, -0.122745443000000E+03),\n new google.maps.LatLng( 0.472109180000000E+02, -0.122747343000000E+03),\n new google.maps.LatLng( 0.472142180000000E+02, -0.122748043000000E+03),\n new google.maps.LatLng( 0.472173180000000E+02, -0.122747343000000E+03),\n new google.maps.LatLng( 0.472204180000000E+02, -0.122747543000000E+03),\n new google.maps.LatLng( 0.472227080000000E+02, -0.122748351000000E+03),\n new google.maps.LatLng( 0.472255180000000E+02, -0.122750143000000E+03),\n new google.maps.LatLng( 0.472227230000000E+02, -0.122748718000000E+03),\n new google.maps.LatLng( 0.472206180000000E+02, -0.122748643000000E+03),\n new google.maps.LatLng( 0.472161180000000E+02, -0.122750543000000E+03),\n new google.maps.LatLng( 0.472102180000000E+02, -0.122755543000000E+03),\n new google.maps.LatLng( 0.472081180000000E+02, -0.122754943000000E+03),\n new google.maps.LatLng( 0.472082180000000E+02, -0.122752443000000E+03),\n new google.maps.LatLng( 0.472018180000000E+02, -0.122750243000000E+03),\n new google.maps.LatLng( 0.471990180000000E+02, -0.122750543000000E+03),\n new google.maps.LatLng( 0.471949180000000E+02, -0.122747943000000E+03),\n new google.maps.LatLng( 0.471987180000000E+02, -0.122745743000000E+03),\n new google.maps.LatLng( 0.472002180000000E+02, -0.122740343000000E+03),\n new google.maps.LatLng( 0.471949180000000E+02, -0.122743643000000E+03),\n new google.maps.LatLng( 0.471909180000000E+02, -0.122746843000000E+03),\n new google.maps.LatLng( 0.471777180000000E+02, -0.122749843000000E+03),\n new google.maps.LatLng( 0.471735180000000E+02, -0.122753943000000E+03),\n new google.maps.LatLng( 0.471677180000000E+02, -0.122761844000000E+03),\n new google.maps.LatLng( 0.471666180000000E+02, -0.122769844000000E+03),\n new google.maps.LatLng( 0.471703180000000E+02, -0.122774144000000E+03),\n new google.maps.LatLng( 0.471738180000000E+02, -0.122774944000000E+03),\n new google.maps.LatLng( 0.471751180000000E+02, -0.122774044000000E+03),\n new google.maps.LatLng( 0.471820650000000E+02, -0.122779316000000E+03),\n new google.maps.LatLng( 0.471837750000000E+02, -0.122778228000000E+03),\n new google.maps.LatLng( 0.471866180000000E+02, -0.122773844000000E+03),\n new google.maps.LatLng( 0.471877180000000E+02, -0.122771244000000E+03),\n new google.maps.LatLng( 0.471884180000000E+02, -0.122770944000000E+03),\n new google.maps.LatLng( 0.471849180000000E+02, -0.122782245000000E+03),\n new google.maps.LatLng( 0.471876180000000E+02, -0.122790045000000E+03),\n new google.maps.LatLng( 0.472092180000000E+02, -0.122805446000000E+03),\n new google.maps.LatLng( 0.472158180000000E+02, -0.122808247000000E+03),\n new google.maps.LatLng( 0.472211180000000E+02, -0.122806446000000E+03),\n new google.maps.LatLng( 0.472211180000000E+02, -0.122806446000000E+03),\n new google.maps.LatLng( 0.472243180000000E+02, -0.122801646000000E+03),\n new google.maps.LatLng( 0.472246180000000E+02, -0.122798946000000E+03),\n new google.maps.LatLng( 0.472245180000000E+02, -0.122791145000000E+03),\n new google.maps.LatLng( 0.472229050000000E+02, -0.122788328000000E+03),\n new google.maps.LatLng( 0.472223180000000E+02, -0.122779645000000E+03),\n new google.maps.LatLng( 0.472212180000000E+02, -0.122778645000000E+03),\n new google.maps.LatLng( 0.472329180000000E+02, -0.122772144000000E+03),\n new google.maps.LatLng( 0.472388180000000E+02, -0.122770544000000E+03),\n new google.maps.LatLng( 0.472352180000000E+02, -0.122768244000000E+03),\n new google.maps.LatLng( 0.472310080000000E+02, -0.122760219000000E+03),\n new google.maps.LatLng( 0.472292180000000E+02, -0.122759343000000E+03),\n new google.maps.LatLng( 0.472206180000000E+02, -0.122759243000000E+03),\n new google.maps.LatLng( 0.472206180000000E+02, -0.122756543000000E+03),\n new google.maps.LatLng( 0.472248180000000E+02, -0.122752943000000E+03),\n new google.maps.LatLng( 0.472269180000000E+02, -0.122748443000000E+03),\n new google.maps.LatLng( 0.472315180000000E+02, -0.122748443000000E+03),\n new google.maps.LatLng( 0.472369180000000E+02, -0.122746843000000E+03),\n new google.maps.LatLng( 0.472356180000000E+02, -0.122737742000000E+03),\n new google.maps.LatLng( 0.472228180000000E+02, -0.122737742000000E+03),\n new google.maps.LatLng( 0.472227180000000E+02, -0.122727142000000E+03),\n new google.maps.LatLng( 0.472233180000000E+02, -0.122726942000000E+03),\n new google.maps.LatLng( 0.472241180000000E+02, -0.122723442000000E+03),\n new google.maps.LatLng( 0.472239850000000E+02, -0.122720113000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.465979344433945E+02, -0.124034559745072E+03),\n new google.maps.LatLng( 0.465980140000000E+02, -0.124039837000000E+03),\n new google.maps.LatLng( 0.465932120000000E+02, -0.124033307000000E+03),\n new google.maps.LatLng( 0.465860110000000E+02, -0.124027277000000E+03),\n new google.maps.LatLng( 0.465843650000000E+02, -0.124026482000000E+03),\n new google.maps.LatLng( 0.465778060000000E+02, -0.124031923000000E+03),\n new google.maps.LatLng( 0.465629350000000E+02, -0.124036944000000E+03),\n new google.maps.LatLng( 0.465609730000000E+02, -0.124035716000000E+03),\n new google.maps.LatLng( 0.465598870000000E+02, -0.124031832000000E+03),\n new google.maps.LatLng( 0.465599320000000E+02, -0.124027955000000E+03),\n new google.maps.LatLng( 0.465502180000000E+02, -0.124027365000000E+03),\n new google.maps.LatLng( 0.465489380000000E+02, -0.124028493000000E+03),\n new google.maps.LatLng( 0.465488650000000E+02, -0.124031232000000E+03),\n new google.maps.LatLng( 0.465439100000000E+02, -0.124032636000000E+03),\n new google.maps.LatLng( 0.465344940000000E+02, -0.124033171000000E+03),\n new google.maps.LatLng( 0.465318410000000E+02, -0.124030589000000E+03),\n new google.maps.LatLng( 0.465316819927499E+02, -0.124026010791225E+03),\n new google.maps.LatLng( 0.465316819927499E+02, -0.124026010791225E+03),\n new google.maps.LatLng( 0.465316807345736E+02, -0.124026010902289E+03),\n new google.maps.LatLng( 0.465315890000000E+02, -0.124026019000000E+03),\n new google.maps.LatLng( 0.464963750000000E+02, -0.124031737000000E+03),\n new google.maps.LatLng( 0.464629780000000E+02, -0.124026032000000E+03),\n new google.maps.LatLng( 0.464629510791985E+02, -0.124025808762905E+03),\n new google.maps.LatLng( 0.464629510791985E+02, -0.124025808762905E+03),\n new google.maps.LatLng( 0.464598470000000E+02, -0.124025669000000E+03),\n new google.maps.LatLng( 0.464593960000000E+02, -0.124026015000000E+03),\n new google.maps.LatLng( 0.464593960000000E+02, -0.124026015000000E+03),\n new google.maps.LatLng( 0.464595050000000E+02, -0.124027621000000E+03),\n new google.maps.LatLng( 0.464609680000000E+02, -0.124029143000000E+03),\n new google.maps.LatLng( 0.464662710000000E+02, -0.124029239000000E+03),\n new google.maps.LatLng( 0.464662270000000E+02, -0.124038170000000E+03),\n new google.maps.LatLng( 0.464643300000000E+02, -0.124037112000000E+03),\n new google.maps.LatLng( 0.464551640000000E+02, -0.124037082000000E+03),\n new google.maps.LatLng( 0.464506160000000E+02, -0.124037580000000E+03),\n new google.maps.LatLng( 0.464498840000000E+02, -0.124037779000000E+03),\n new google.maps.LatLng( 0.464501050000000E+02, -0.124043016000000E+03),\n new google.maps.LatLng( 0.464533830000000E+02, -0.124043401000000E+03),\n new google.maps.LatLng( 0.464539310000000E+02, -0.124043599000000E+03),\n new google.maps.LatLng( 0.464533830000000E+02, -0.124044029000000E+03),\n new google.maps.LatLng( 0.464408110000000E+02, -0.124044330000000E+03),\n new google.maps.LatLng( 0.464383720000000E+02, -0.124043910000000E+03),\n new google.maps.LatLng( 0.464385720000000E+02, -0.124051108000000E+03),\n new google.maps.LatLng( 0.464475090000000E+02, -0.124050941000000E+03),\n new google.maps.LatLng( 0.464475420103463E+02, -0.124057242561487E+03),\n new google.maps.LatLng( 0.464475420103463E+02, -0.124057242561487E+03),\n new google.maps.LatLng( 0.464933380000000E+02, -0.124057024000000E+03),\n new google.maps.LatLng( 0.465304905784878E+02, -0.124059938750973E+03),\n new google.maps.LatLng( 0.465561650000000E+02, -0.124061953000000E+03),\n new google.maps.LatLng( 0.466013970000000E+02, -0.124068420000000E+03),\n new google.maps.LatLng( 0.466283550552844E+02, -0.124069491724150E+03),\n new google.maps.LatLng( 0.466295246925089E+02, -0.124069538223367E+03),\n new google.maps.LatLng( 0.466306510000000E+02, -0.124069583000000E+03),\n new google.maps.LatLng( 0.466322005863773E+02, -0.124069242882649E+03),\n new google.maps.LatLng( 0.466341368227390E+02, -0.124068817899834E+03),\n new google.maps.LatLng( 0.466348790000000E+02, -0.124068655000000E+03),\n new google.maps.LatLng( 0.466357720841711E+02, -0.124067966317672E+03),\n new google.maps.LatLng( 0.466421595596316E+02, -0.124063040755652E+03),\n new google.maps.LatLng( 0.466425820000000E+02, -0.124062715000000E+03),\n new google.maps.LatLng( 0.466430539211529E+02, -0.124061753747609E+03),\n new google.maps.LatLng( 0.466455011751826E+02, -0.124056768955611E+03),\n new google.maps.LatLng( 0.466456450000000E+02, -0.124056476000000E+03),\n new google.maps.LatLng( 0.466456533865761E+02, -0.124056105884728E+03),\n new google.maps.LatLng( 0.466458230935702E+02, -0.124048616398044E+03),\n new google.maps.LatLng( 0.466458270000000E+02, -0.124048444000000E+03),\n new google.maps.LatLng( 0.466456879188993E+02, -0.124048327488875E+03),\n new google.maps.LatLng( 0.466444489873951E+02, -0.124047289610234E+03),\n new google.maps.LatLng( 0.466371939776986E+02, -0.124041211937999E+03),\n new google.maps.LatLng( 0.466308220000000E+02, -0.124035874000000E+03),\n new google.maps.LatLng( 0.466306296817854E+02, -0.124036277374636E+03),\n new google.maps.LatLng( 0.466268510279288E+02, -0.124044202849221E+03),\n new google.maps.LatLng( 0.466244974319328E+02, -0.124049139359936E+03),\n new google.maps.LatLng( 0.466227960000000E+02, -0.124052708000000E+03),\n new google.maps.LatLng( 0.466174210000000E+02, -0.124050842000000E+03),\n new google.maps.LatLng( 0.466048148433522E+02, -0.124040308755961E+03),\n new google.maps.LatLng( 0.465979344433945E+02, -0.124034559745072E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.469568870000000E+02, -0.118982068000000E+03),\n new google.maps.LatLng( 0.469839200000000E+02, -0.118982125000000E+03),\n new google.maps.LatLng( 0.469839200000000E+02, -0.118982125000000E+03),\n new google.maps.LatLng( 0.469842270000000E+02, -0.118940385000000E+03),\n new google.maps.LatLng( 0.470279690000000E+02, -0.118939850000000E+03),\n new google.maps.LatLng( 0.470279600000000E+02, -0.118854514000000E+03),\n new google.maps.LatLng( 0.470570960000000E+02, -0.118854102000000E+03),\n new google.maps.LatLng( 0.470571940000000E+02, -0.118822972000000E+03),\n new google.maps.LatLng( 0.470664490000000E+02, -0.118822372000000E+03),\n new google.maps.LatLng( 0.470665180000000E+02, -0.118817622000000E+03),\n new google.maps.LatLng( 0.470717050000000E+02, -0.118806819000000E+03),\n new google.maps.LatLng( 0.470723220000000E+02, -0.118804712000000E+03),\n new google.maps.LatLng( 0.470765830000000E+02, -0.118758048000000E+03),\n new google.maps.LatLng( 0.470577540000000E+02, -0.118758301000000E+03),\n new google.maps.LatLng( 0.470577370000000E+02, -0.118726256000000E+03),\n new google.maps.LatLng( 0.470580400000000E+02, -0.118663187000000E+03),\n new google.maps.LatLng( 0.470725740000000E+02, -0.118663013000000E+03),\n new google.maps.LatLng( 0.470726070000000E+02, -0.118620394000000E+03),\n new google.maps.LatLng( 0.470150180000000E+02, -0.118621199000000E+03),\n new google.maps.LatLng( 0.470149350000000E+02, -0.118601318000000E+03),\n new google.maps.LatLng( 0.470155300000000E+02, -0.118600149000000E+03),\n new google.maps.LatLng( 0.470740330000000E+02, -0.118600894000000E+03),\n new google.maps.LatLng( 0.470739710000000E+02, -0.118576407000000E+03),\n new google.maps.LatLng( 0.470752970000000E+02, -0.118554664000000E+03),\n new google.maps.LatLng( 0.470725740000000E+02, -0.118534126000000E+03),\n new google.maps.LatLng( 0.470607360000000E+02, -0.118534299000000E+03),\n new google.maps.LatLng( 0.470583600000000E+02, -0.118535303000000E+03),\n new google.maps.LatLng( 0.470522580000000E+02, -0.118534069000000E+03),\n new google.maps.LatLng( 0.470450360000000E+02, -0.118531899000000E+03),\n new google.maps.LatLng( 0.470403500000000E+02, -0.118527289000000E+03),\n new google.maps.LatLng( 0.470386810000000E+02, -0.118525953000000E+03),\n new google.maps.LatLng( 0.470375380000000E+02, -0.118525786000000E+03),\n new google.maps.LatLng( 0.470359390000000E+02, -0.118526489000000E+03),\n new google.maps.LatLng( 0.470303870000000E+02, -0.118531506000000E+03),\n new google.maps.LatLng( 0.470251090000000E+02, -0.118534049000000E+03),\n new google.maps.LatLng( 0.470169270000000E+02, -0.118533118000000E+03),\n new google.maps.LatLng( 0.470075330000000E+02, -0.118530050000000E+03),\n new google.maps.LatLng( 0.470070760000000E+02, -0.118529215000000E+03),\n new google.maps.LatLng( 0.470072120000000E+02, -0.118526074000000E+03),\n new google.maps.LatLng( 0.470065260000000E+02, -0.118524304000000E+03),\n new google.maps.LatLng( 0.469966880000000E+02, -0.118545359000000E+03),\n new google.maps.LatLng( 0.469913120000000E+02, -0.118552809000000E+03),\n new google.maps.LatLng( 0.469834330000000E+02, -0.118560691000000E+03),\n new google.maps.LatLng( 0.469794570000000E+02, -0.118563329000000E+03),\n new google.maps.LatLng( 0.469718470000000E+02, -0.118567635000000E+03),\n new google.maps.LatLng( 0.469694700000000E+02, -0.118566033000000E+03),\n new google.maps.LatLng( 0.469686700000000E+02, -0.118562961000000E+03),\n new google.maps.LatLng( 0.469701780000000E+02, -0.118554983000000E+03),\n new google.maps.LatLng( 0.469702000000000E+02, -0.118537221000000E+03),\n new google.maps.LatLng( 0.469680710000000E+02, -0.118524335000000E+03),\n new google.maps.LatLng( 0.469655780000000E+02, -0.118518361000000E+03),\n new google.maps.LatLng( 0.469675650000000E+02, -0.118514419000000E+03),\n new google.maps.LatLng( 0.469696900000000E+02, -0.118514751000000E+03),\n new google.maps.LatLng( 0.469703760000000E+02, -0.118514016000000E+03),\n new google.maps.LatLng( 0.469716190000000E+02, -0.118460992000000E+03),\n new google.maps.LatLng( 0.469466170000000E+02, -0.118460981000000E+03),\n new google.maps.LatLng( 0.469425700000000E+02, -0.118468087000000E+03),\n new google.maps.LatLng( 0.469422500000000E+02, -0.118468020000000E+03),\n new google.maps.LatLng( 0.469424130000000E+02, -0.118450568000000E+03),\n new google.maps.LatLng( 0.469426420000000E+02, -0.118450234000000E+03),\n new google.maps.LatLng( 0.469492240000000E+02, -0.118450036000000E+03),\n new google.maps.LatLng( 0.469499560000000E+02, -0.118437420000000E+03),\n new google.maps.LatLng( 0.469519900000000E+02, -0.118428942000000E+03),\n new google.maps.LatLng( 0.469642370000000E+02, -0.118406373000000E+03),\n new google.maps.LatLng( 0.469673200000000E+02, -0.118399326000000E+03),\n new google.maps.LatLng( 0.469683930000000E+02, -0.118395653000000E+03),\n new google.maps.LatLng( 0.469570560000000E+02, -0.118393793000000E+03),\n new google.maps.LatLng( 0.469568280000000E+02, -0.118393292000000E+03),\n new google.maps.LatLng( 0.469573360000000E+02, -0.118343055000000E+03),\n new google.maps.LatLng( 0.469470650000000E+02, -0.118343261000000E+03),\n new google.maps.LatLng( 0.469455650000000E+02, -0.118347520000000E+03),\n new google.maps.LatLng( 0.469430240000000E+02, -0.118357764000000E+03),\n new google.maps.LatLng( 0.469425410000000E+02, -0.118364404000000E+03),\n new google.maps.LatLng( 0.469395240000000E+02, -0.118366504000000E+03),\n new google.maps.LatLng( 0.469347440000000E+02, -0.118378262000000E+03),\n new google.maps.LatLng( 0.469330800000000E+02, -0.118387773000000E+03),\n new google.maps.LatLng( 0.469309110000000E+02, -0.118392713000000E+03),\n new google.maps.LatLng( 0.469287640000000E+02, -0.118396118000000E+03),\n new google.maps.LatLng( 0.469274530000000E+02, -0.118396794000000E+03),\n new google.maps.LatLng( 0.469132910000000E+02, -0.118396697000000E+03),\n new google.maps.LatLng( 0.469132910000000E+02, -0.118396697000000E+03),\n new google.maps.LatLng( 0.469132000000000E+02, -0.118398765000000E+03),\n new google.maps.LatLng( 0.468684190000000E+02, -0.118399435000000E+03),\n new google.maps.LatLng( 0.468683420000000E+02, -0.118378041000000E+03),\n new google.maps.LatLng( 0.468536920000000E+02, -0.118378356000000E+03),\n new google.maps.LatLng( 0.468540380000000E+02, -0.118482800000000E+03),\n new google.maps.LatLng( 0.468501070000000E+02, -0.118483763000000E+03),\n new google.maps.LatLng( 0.468486450000000E+02, -0.118482763000000E+03),\n new google.maps.LatLng( 0.468398230000000E+02, -0.118482689000000E+03),\n new google.maps.LatLng( 0.468352520000000E+02, -0.118484017000000E+03),\n new google.maps.LatLng( 0.468305370000000E+02, -0.118495202000000E+03),\n new google.maps.LatLng( 0.468278160000000E+02, -0.118498362000000E+03),\n new google.maps.LatLng( 0.468256440000000E+02, -0.118499725000000E+03),\n new google.maps.LatLng( 0.468245780000000E+02, -0.118499580000000E+03),\n new google.maps.LatLng( 0.468247840000000E+02, -0.118482975000000E+03),\n new google.maps.LatLng( 0.467953180000000E+02, -0.118483639000000E+03),\n new google.maps.LatLng( 0.467952690000000E+02, -0.118504487000000E+03),\n new google.maps.LatLng( 0.467808210000000E+02, -0.118504509000000E+03),\n new google.maps.LatLng( 0.467808340000000E+02, -0.118514858000000E+03),\n new google.maps.LatLng( 0.467732230000000E+02, -0.118514066000000E+03),\n new google.maps.LatLng( 0.467702750000000E+02, -0.118514402000000E+03),\n new google.maps.LatLng( 0.467700700000000E+02, -0.118515965000000E+03),\n new google.maps.LatLng( 0.467683560000000E+02, -0.118517197000000E+03),\n new google.maps.LatLng( 0.467606780000000E+02, -0.118519465000000E+03),\n new google.maps.LatLng( 0.467544540000000E+02, -0.118519064000000E+03),\n new google.maps.LatLng( 0.467419950000000E+02, -0.118516192000000E+03),\n new google.maps.LatLng( 0.467384980000000E+02, -0.118516096000000E+03),\n new google.maps.LatLng( 0.467367620000000E+02, -0.118517294000000E+03),\n new google.maps.LatLng( 0.467367620000000E+02, -0.118517294000000E+03),\n new google.maps.LatLng( 0.467366320000000E+02, -0.118547511000000E+03),\n new google.maps.LatLng( 0.467366320000000E+02, -0.118547511000000E+03),\n new google.maps.LatLng( 0.467359440000000E+02, -0.118680963000000E+03),\n new google.maps.LatLng( 0.467502430000000E+02, -0.118652128000000E+03),\n new google.maps.LatLng( 0.467511510000000E+02, -0.118651562000000E+03),\n new google.maps.LatLng( 0.467650920000000E+02, -0.118651386000000E+03),\n new google.maps.LatLng( 0.467650710000000E+02, -0.118714876000000E+03),\n new google.maps.LatLng( 0.467643580000000E+02, -0.118731239000000E+03),\n new google.maps.LatLng( 0.467659110000000E+02, -0.118732603000000E+03),\n new google.maps.LatLng( 0.467694540000000E+02, -0.118729912000000E+03),\n new google.maps.LatLng( 0.467938160000000E+02, -0.118730031000000E+03),\n new google.maps.LatLng( 0.467930300000000E+02, -0.118749264000000E+03),\n new google.maps.LatLng( 0.467933950000000E+02, -0.118817829000000E+03),\n new google.maps.LatLng( 0.467933950000000E+02, -0.118817829000000E+03),\n new google.maps.LatLng( 0.467933440000000E+02, -0.118823857000000E+03),\n new google.maps.LatLng( 0.467938920000000E+02, -0.118823657000000E+03),\n new google.maps.LatLng( 0.467943490000000E+02, -0.118821095000000E+03),\n new google.maps.LatLng( 0.467952180000000E+02, -0.118819963000000E+03),\n new google.maps.LatLng( 0.467980740000000E+02, -0.118818100000000E+03),\n new google.maps.LatLng( 0.468037420000000E+02, -0.118815605000000E+03),\n new google.maps.LatLng( 0.468097520000000E+02, -0.118810879000000E+03),\n new google.maps.LatLng( 0.468114430000000E+02, -0.118810247000000E+03),\n new google.maps.LatLng( 0.468132940000000E+02, -0.118810213000000E+03),\n new google.maps.LatLng( 0.468141170000000E+02, -0.118809448000000E+03),\n new google.maps.LatLng( 0.468148480000000E+02, -0.118800627000000E+03),\n new google.maps.LatLng( 0.468144360000000E+02, -0.118794335000000E+03),\n new google.maps.LatLng( 0.468149370000000E+02, -0.118786046000000E+03),\n new google.maps.LatLng( 0.468158490000000E+02, -0.118779455000000E+03),\n new google.maps.LatLng( 0.468188520000000E+02, -0.118772391000000E+03),\n new google.maps.LatLng( 0.468216740000000E+02, -0.118772326000000E+03),\n new google.maps.LatLng( 0.468219550000000E+02, -0.118806318000000E+03),\n new google.maps.LatLng( 0.468310500000000E+02, -0.118806217000000E+03),\n new google.maps.LatLng( 0.468368090000000E+02, -0.118805284000000E+03),\n new google.maps.LatLng( 0.468517520000000E+02, -0.118787661000000E+03),\n new google.maps.LatLng( 0.468562320000000E+02, -0.118784561000000E+03),\n new google.maps.LatLng( 0.468592250000000E+02, -0.118781728000000E+03),\n new google.maps.LatLng( 0.468610750000000E+02, -0.118778796000000E+03),\n new google.maps.LatLng( 0.468618970000000E+02, -0.118775663000000E+03),\n new google.maps.LatLng( 0.468634270000000E+02, -0.118772496000000E+03),\n new google.maps.LatLng( 0.468655980000000E+02, -0.118772328000000E+03),\n new google.maps.LatLng( 0.468659640000000E+02, -0.118773161000000E+03),\n new google.maps.LatLng( 0.468661340000000E+02, -0.118783563000000E+03),\n new google.maps.LatLng( 0.468817890000000E+02, -0.118767117000000E+03),\n new google.maps.LatLng( 0.468811920000000E+02, -0.118750667000000E+03),\n new google.maps.LatLng( 0.468813350000000E+02, -0.118740063000000E+03),\n new google.maps.LatLng( 0.468995020000000E+02, -0.118740047000000E+03),\n new google.maps.LatLng( 0.469015550000000E+02, -0.118736517000000E+03),\n new google.maps.LatLng( 0.469031640000000E+02, -0.118732485000000E+03),\n new google.maps.LatLng( 0.469047410000000E+02, -0.118730551000000E+03),\n new google.maps.LatLng( 0.469056550000000E+02, -0.118729817000000E+03),\n new google.maps.LatLng( 0.469067750000000E+02, -0.118729650000000E+03),\n new google.maps.LatLng( 0.469079860000000E+02, -0.118730384000000E+03),\n new google.maps.LatLng( 0.469122340000000E+02, -0.118734757000000E+03),\n new google.maps.LatLng( 0.469121810000000E+02, -0.118748397000000E+03),\n new google.maps.LatLng( 0.469183790000000E+02, -0.118759978000000E+03),\n new google.maps.LatLng( 0.469217860000000E+02, -0.118765111000000E+03),\n new google.maps.LatLng( 0.469274850000000E+02, -0.118792126000000E+03),\n new google.maps.LatLng( 0.469308910000000E+02, -0.118801698000000E+03),\n new google.maps.LatLng( 0.469379980000000E+02, -0.118816511000000E+03),\n new google.maps.LatLng( 0.469403510000000E+02, -0.118823251000000E+03),\n new google.maps.LatLng( 0.469443720000000E+02, -0.118829859000000E+03),\n new google.maps.LatLng( 0.469480480000000E+02, -0.118833120000000E+03),\n new google.maps.LatLng( 0.469533530000000E+02, -0.118832966000000E+03),\n new google.maps.LatLng( 0.469514780000000E+02, -0.118837971000000E+03),\n new google.maps.LatLng( 0.469512030000000E+02, -0.118841374000000E+03),\n new google.maps.LatLng( 0.469524780000000E+02, -0.118855058000000E+03),\n new google.maps.LatLng( 0.469528160000000E+02, -0.118865671000000E+03),\n new google.maps.LatLng( 0.469540710000000E+02, -0.118870311000000E+03),\n new google.maps.LatLng( 0.469585010000000E+02, -0.118875784000000E+03),\n new google.maps.LatLng( 0.469619820000000E+02, -0.118888848000000E+03),\n new google.maps.LatLng( 0.469639750000000E+02, -0.118903667000000E+03),\n new google.maps.LatLng( 0.469633610000000E+02, -0.118912279000000E+03),\n new google.maps.LatLng( 0.469595240000000E+02, -0.118933608000000E+03),\n new google.maps.LatLng( 0.469594320000000E+02, -0.118940517000000E+03),\n new google.maps.LatLng( 0.469580150000000E+02, -0.118945624000000E+03),\n new google.maps.LatLng( 0.469563430000000E+02, -0.118967650000000E+03),\n new google.maps.LatLng( 0.469568870000000E+02, -0.118982068000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.477194066768012E+02, -0.122545911133421E+03),\n new google.maps.LatLng( 0.477209750000000E+02, -0.122548509000000E+03),\n new google.maps.LatLng( 0.477212950000000E+02, -0.122552099000000E+03),\n new google.maps.LatLng( 0.477209530000000E+02, -0.122553487000000E+03),\n new google.maps.LatLng( 0.477121090000000E+02, -0.122563750000000E+03),\n new google.maps.LatLng( 0.477107830000000E+02, -0.122564732000000E+03),\n new google.maps.LatLng( 0.477048180000000E+02, -0.122564393000000E+03),\n new google.maps.LatLng( 0.477021900000000E+02, -0.122563310000000E+03),\n new google.maps.LatLng( 0.477004990000000E+02, -0.122563310000000E+03),\n new google.maps.LatLng( 0.476930940000000E+02, -0.122565984000000E+03),\n new google.maps.LatLng( 0.476895520000000E+02, -0.122565915000000E+03),\n new google.maps.LatLng( 0.476816230000000E+02, -0.122565126000000E+03),\n new google.maps.LatLng( 0.476773500000000E+02, -0.122562761000000E+03),\n new google.maps.LatLng( 0.476737790000000E+02, -0.122562242000000E+03),\n new google.maps.LatLng( 0.476663410000000E+02, -0.122566225000000E+03),\n new google.maps.LatLng( 0.476636930000000E+02, -0.122568651000000E+03),\n new google.maps.LatLng( 0.476640600000000E+02, -0.122569658000000E+03),\n new google.maps.LatLng( 0.476699110000000E+02, -0.122569368000000E+03),\n new google.maps.LatLng( 0.476736350000000E+02, -0.122569780000000E+03),\n new google.maps.LatLng( 0.476746800000000E+02, -0.122570665000000E+03),\n new google.maps.LatLng( 0.476746800000000E+02, -0.122572512000000E+03),\n new google.maps.LatLng( 0.476707350000000E+02, -0.122579760000000E+03),\n new google.maps.LatLng( 0.476652120000000E+02, -0.122586352000000E+03),\n new google.maps.LatLng( 0.476635470000000E+02, -0.122590564000000E+03),\n new google.maps.LatLng( 0.476611900000000E+02, -0.122591312000000E+03),\n new google.maps.LatLng( 0.476587420000000E+02, -0.122589785000000E+03),\n new google.maps.LatLng( 0.476574980000000E+02, -0.122588061000000E+03),\n new google.maps.LatLng( 0.476502500000000E+02, -0.122583605000000E+03),\n new google.maps.LatLng( 0.476454590000000E+02, -0.122581361000000E+03),\n new google.maps.LatLng( 0.476451916234375E+02, -0.122575617283594E+03),\n new google.maps.LatLng( 0.476479310000000E+02, -0.122569230000000E+03),\n new google.maps.LatLng( 0.476469090000000E+02, -0.122567261000000E+03),\n new google.maps.LatLng( 0.476458410000000E+02, -0.122567582000000E+03),\n new google.maps.LatLng( 0.476434494207031E+02, -0.122574085632812E+03),\n new google.maps.LatLng( 0.476432202207031E+02, -0.122575999032813E+03),\n new google.maps.LatLng( 0.476416670000000E+02, -0.122578538000000E+03),\n new google.maps.LatLng( 0.476374100000000E+02, -0.122578767000000E+03),\n new google.maps.LatLng( 0.476325730000000E+02, -0.122577379000000E+03),\n new google.maps.LatLng( 0.476272480000000E+02, -0.122577210000000E+03),\n new google.maps.LatLng( 0.476246230000000E+02, -0.122577958000000E+03),\n new google.maps.LatLng( 0.476210450000000E+02, -0.122577469000000E+03),\n new google.maps.LatLng( 0.476155440000000E+02, -0.122574143000000E+03),\n new google.maps.LatLng( 0.476129120000000E+02, -0.122574173000000E+03),\n new google.maps.LatLng( 0.476110270000000E+02, -0.122575363000000E+03),\n new google.maps.LatLng( 0.476068930000000E+02, -0.122575669000000E+03),\n new google.maps.LatLng( 0.476007590000000E+02, -0.122576889000000E+03),\n new google.maps.LatLng( 0.475995230000000E+02, -0.122576629000000E+03),\n new google.maps.LatLng( 0.475950900000000E+02, -0.122574172000000E+03),\n new google.maps.LatLng( 0.475926100000000E+02, -0.122571548000000E+03),\n new google.maps.LatLng( 0.475909170000000E+02, -0.122568527000000E+03),\n new google.maps.LatLng( 0.475907530000000E+02, -0.122567222000000E+03),\n new google.maps.LatLng( 0.475920530000000E+02, -0.122564085000000E+03),\n new google.maps.LatLng( 0.475946320000000E+02, -0.122560759000000E+03),\n new google.maps.LatLng( 0.476006900000000E+02, -0.122557234000000E+03),\n new google.maps.LatLng( 0.476023230000000E+02, -0.122555037000000E+03),\n new google.maps.LatLng( 0.476040090000000E+02, -0.122550932000000E+03),\n new google.maps.LatLng( 0.476037190000000E+02, -0.122548735000000E+03),\n new google.maps.LatLng( 0.476026660000000E+02, -0.122547316000000E+03),\n new google.maps.LatLng( 0.476005910000000E+02, -0.122546720000000E+03),\n new google.maps.LatLng( 0.475995760000000E+02, -0.122547117000000E+03),\n new google.maps.LatLng( 0.475970430000000E+02, -0.122545209000000E+03),\n new google.maps.LatLng( 0.475964950000000E+02, -0.122540616000000E+03),\n new google.maps.LatLng( 0.475927180000000E+02, -0.122535062000000E+03),\n new google.maps.LatLng( 0.475882550000000E+02, -0.122531536000000E+03),\n new google.maps.LatLng( 0.475778940000000E+02, -0.122524609000000E+03),\n new google.maps.LatLng( 0.475753990000000E+02, -0.122523509000000E+03),\n new google.maps.LatLng( 0.475743690000000E+02, -0.122521022000000E+03),\n new google.maps.LatLng( 0.475741516604196E+02, -0.122517407938191E+03),\n new google.maps.LatLng( 0.475741516604196E+02, -0.122517407938191E+03),\n new google.maps.LatLng( 0.475740800000000E+02, -0.122518367000000E+03),\n new google.maps.LatLng( 0.475715819454235E+02, -0.122523482706890E+03),\n new google.maps.LatLng( 0.475715819454235E+02, -0.122523482706890E+03),\n new google.maps.LatLng( 0.475717070000000E+02, -0.122533047000000E+03),\n new google.maps.LatLng( 0.475875060000000E+02, -0.122545194000000E+03),\n new google.maps.LatLng( 0.475896880000000E+02, -0.122547925000000E+03),\n new google.maps.LatLng( 0.475908330000000E+02, -0.122550382000000E+03),\n new google.maps.LatLng( 0.475913670000000E+02, -0.122553221000000E+03),\n new google.maps.LatLng( 0.475911610000000E+02, -0.122556624000000E+03),\n new google.maps.LatLng( 0.475891620000000E+02, -0.122566466000000E+03),\n new google.maps.LatLng( 0.475875830000000E+02, -0.122571243000000E+03),\n new google.maps.LatLng( 0.475909170000000E+02, -0.122576721000000E+03),\n new google.maps.LatLng( 0.475953490000000E+02, -0.122581147000000E+03),\n new google.maps.LatLng( 0.475975690000000E+02, -0.122582322000000E+03),\n new google.maps.LatLng( 0.475993470000000E+02, -0.122582581000000E+03),\n new google.maps.LatLng( 0.476422170000000E+02, -0.122585299000000E+03),\n new google.maps.LatLng( 0.476424530000000E+02, -0.122587023000000E+03),\n new google.maps.LatLng( 0.476439100000000E+02, -0.122589282000000E+03),\n new google.maps.LatLng( 0.476503720000000E+02, -0.122594501000000E+03),\n new google.maps.LatLng( 0.476556130000000E+02, -0.122597904000000E+03),\n new google.maps.LatLng( 0.476617700000000E+02, -0.122600879000000E+03),\n new google.maps.LatLng( 0.476635780000000E+02, -0.122600926000000E+03),\n new google.maps.LatLng( 0.476717490000000E+02, -0.122599538000000E+03),\n new google.maps.LatLng( 0.476816460000000E+02, -0.122594881000000E+03),\n new google.maps.LatLng( 0.476932600000000E+02, -0.122581395000000E+03),\n new google.maps.LatLng( 0.476980770000000E+02, -0.122577243000000E+03),\n new google.maps.LatLng( 0.477063220000000E+02, -0.122571439000000E+03),\n new google.maps.LatLng( 0.477153260000000E+02, -0.122563559000000E+03),\n new google.maps.LatLng( 0.477216600000000E+02, -0.122556389000000E+03),\n new google.maps.LatLng( 0.477262109830198E+02, -0.122548121559165E+03),\n new google.maps.LatLng( 0.477262109830198E+02, -0.122548121559165E+03),\n new google.maps.LatLng( 0.477194066768012E+02, -0.122545911133421E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.463011767957679E+02, -0.123724182802597E+03),\n new google.maps.LatLng( 0.463180120000000E+02, -0.123708186000000E+03),\n new google.maps.LatLng( 0.463174410000000E+02, -0.123707031000000E+03),\n new google.maps.LatLng( 0.463151560000000E+02, -0.123705051000000E+03),\n new google.maps.LatLng( 0.463137160000000E+02, -0.123701916000000E+03),\n new google.maps.LatLng( 0.463148140000000E+02, -0.123697958000000E+03),\n new google.maps.LatLng( 0.463178770000000E+02, -0.123693142000000E+03),\n new google.maps.LatLng( 0.463201860000000E+02, -0.123692417000000E+03),\n new google.maps.LatLng( 0.463222890000000E+02, -0.123694826000000E+03),\n new google.maps.LatLng( 0.463272720000000E+02, -0.123698192000000E+03),\n new google.maps.LatLng( 0.463287350000000E+02, -0.123698456000000E+03),\n new google.maps.LatLng( 0.463320720000000E+02, -0.123697566000000E+03),\n new google.maps.LatLng( 0.463343900000000E+02, -0.123699521000000E+03),\n new google.maps.LatLng( 0.463365300000000E+02, -0.123696875000000E+03),\n new google.maps.LatLng( 0.463373980000000E+02, -0.123694763000000E+03),\n new google.maps.LatLng( 0.463249280000000E+02, -0.123693235000000E+03),\n new google.maps.LatLng( 0.463260380000000E+02, -0.123688755000000E+03),\n new google.maps.LatLng( 0.463272950000000E+02, -0.123686577000000E+03),\n new google.maps.LatLng( 0.463285750000000E+02, -0.123687237000000E+03),\n new google.maps.LatLng( 0.463315700000000E+02, -0.123685191000000E+03),\n new google.maps.LatLng( 0.463350440000000E+02, -0.123680208000000E+03),\n new google.maps.LatLng( 0.463367120000000E+02, -0.123676149000000E+03),\n new google.maps.LatLng( 0.463404610000000E+02, -0.123673540000000E+03),\n new google.maps.LatLng( 0.463435240000000E+02, -0.123673672000000E+03),\n new google.maps.LatLng( 0.463477060000000E+02, -0.123667631000000E+03),\n new google.maps.LatLng( 0.463480710000000E+02, -0.123663603000000E+03),\n new google.maps.LatLng( 0.463491680000000E+02, -0.123661094000000E+03),\n new google.maps.LatLng( 0.463496480000000E+02, -0.123660401000000E+03),\n new google.maps.LatLng( 0.463520020000000E+02, -0.123659641000000E+03),\n new google.maps.LatLng( 0.463544940000000E+02, -0.123654567000000E+03),\n new google.maps.LatLng( 0.463544940000000E+02, -0.123654567000000E+03),\n new google.maps.LatLng( 0.463323960000000E+02, -0.123617628000000E+03),\n new google.maps.LatLng( 0.463300730000000E+02, -0.123614636000000E+03),\n new google.maps.LatLng( 0.463266460000000E+02, -0.123611762000000E+03),\n new google.maps.LatLng( 0.463258230000000E+02, -0.123610473000000E+03),\n new google.maps.LatLng( 0.463235200000000E+02, -0.123595954000000E+03),\n new google.maps.LatLng( 0.463243440000000E+02, -0.123591797000000E+03),\n new google.maps.LatLng( 0.463243220000000E+02, -0.123589092000000E+03),\n new google.maps.LatLng( 0.463224930000000E+02, -0.123588167000000E+03),\n new google.maps.LatLng( 0.463218760000000E+02, -0.123586318000000E+03),\n new google.maps.LatLng( 0.463220140000000E+02, -0.123581039000000E+03),\n new google.maps.LatLng( 0.463231830000000E+02, -0.123577518000000E+03),\n new google.maps.LatLng( 0.463205400000000E+02, -0.123564707000000E+03),\n new google.maps.LatLng( 0.463165300000000E+02, -0.123565102000000E+03),\n new google.maps.LatLng( 0.463128270000000E+02, -0.123563387000000E+03),\n new google.maps.LatLng( 0.463116380000000E+02, -0.123558472000000E+03),\n new google.maps.LatLng( 0.463072030000000E+02, -0.123552303000000E+03),\n new google.maps.LatLng( 0.463054430000000E+02, -0.123550621000000E+03),\n new google.maps.LatLng( 0.463038200000000E+02, -0.123550358000000E+03),\n new google.maps.LatLng( 0.463027460000000E+02, -0.123550721000000E+03),\n new google.maps.LatLng( 0.463002310000000E+02, -0.123548479000000E+03),\n new google.maps.LatLng( 0.463064480000000E+02, -0.123542375000000E+03),\n new google.maps.LatLng( 0.463117500000000E+02, -0.123538349000000E+03),\n new google.maps.LatLng( 0.463131900000000E+02, -0.123537457000000E+03),\n new google.maps.LatLng( 0.463162300000000E+02, -0.123537292000000E+03),\n new google.maps.LatLng( 0.463197950000000E+02, -0.123532408000000E+03),\n new google.maps.LatLng( 0.463209370000000E+02, -0.123529900000000E+03),\n new google.maps.LatLng( 0.463209370000000E+02, -0.123529900000000E+03),\n new google.maps.LatLng( 0.463197710000000E+02, -0.123529042000000E+03),\n new google.maps.LatLng( 0.463170050000000E+02, -0.123528383000000E+03),\n new google.maps.LatLng( 0.463151990000000E+02, -0.123528681000000E+03),\n new google.maps.LatLng( 0.463126380000000E+02, -0.123525351000000E+03),\n new google.maps.LatLng( 0.463137790000000E+02, -0.123520204000000E+03),\n new google.maps.LatLng( 0.463097760000000E+02, -0.123512323000000E+03),\n new google.maps.LatLng( 0.463089750000000E+02, -0.123511862000000E+03),\n new google.maps.LatLng( 0.463061870000000E+02, -0.123511831000000E+03),\n new google.maps.LatLng( 0.463040360000000E+02, -0.123509030000000E+03),\n new google.maps.LatLng( 0.463006740000000E+02, -0.123502634000000E+03),\n new google.maps.LatLng( 0.463008560000000E+02, -0.123499431000000E+03),\n new google.maps.LatLng( 0.462962190000000E+02, -0.123492600000000E+03),\n new google.maps.LatLng( 0.462937730000000E+02, -0.123493817000000E+03),\n new google.maps.LatLng( 0.462891890000000E+02, -0.123500877000000E+03),\n new google.maps.LatLng( 0.462878980000000E+02, -0.123507429000000E+03),\n new google.maps.LatLng( 0.462880360000000E+02, -0.123509506000000E+03),\n new google.maps.LatLng( 0.462893700000000E+02, -0.123511281000000E+03),\n new google.maps.LatLng( 0.462888850000000E+02, -0.123515671000000E+03),\n new google.maps.LatLng( 0.462869890000000E+02, -0.123520949000000E+03),\n new google.maps.LatLng( 0.462868770000000E+02, -0.123526653000000E+03),\n new google.maps.LatLng( 0.462879980000000E+02, -0.123528927000000E+03),\n new google.maps.LatLng( 0.462879980000000E+02, -0.123534632000000E+03),\n new google.maps.LatLng( 0.462868340000000E+02, -0.123540799000000E+03),\n new google.maps.LatLng( 0.462838860000000E+02, -0.123545547000000E+03),\n new google.maps.LatLng( 0.462815320000000E+02, -0.123547592000000E+03),\n new google.maps.LatLng( 0.462775780000000E+02, -0.123548516000000E+03),\n new google.maps.LatLng( 0.462744700000000E+02, -0.123551451000000E+03),\n new google.maps.LatLng( 0.462747440000000E+02, -0.123560153000000E+03),\n new google.maps.LatLng( 0.462694870000000E+02, -0.123559000000000E+03),\n new google.maps.LatLng( 0.462683440000000E+02, -0.123559132000000E+03),\n new google.maps.LatLng( 0.462704470000000E+02, -0.123562461000000E+03),\n new google.maps.LatLng( 0.462719330000000E+02, -0.123562824000000E+03),\n new google.maps.LatLng( 0.462747210000000E+02, -0.123568659000000E+03),\n new google.maps.LatLng( 0.462759550000000E+02, -0.123572846000000E+03),\n new google.maps.LatLng( 0.462760690000000E+02, -0.123577327000000E+03),\n new google.maps.LatLng( 0.462609571678090E+02, -0.123576943959567E+03),\n new google.maps.LatLng( 0.462609571678090E+02, -0.123576943959567E+03),\n new google.maps.LatLng( 0.462605020000000E+02, -0.123581642000000E+03),\n new google.maps.LatLng( 0.462604862262798E+02, -0.123582621014050E+03),\n new google.maps.LatLng( 0.462604217777346E+02, -0.123586621086985E+03),\n new google.maps.LatLng( 0.462599880000000E+02, -0.123613544000000E+03),\n new google.maps.LatLng( 0.462611955221491E+02, -0.123623416781545E+03),\n new google.maps.LatLng( 0.462664624462496E+02, -0.123666479503914E+03),\n new google.maps.LatLng( 0.462667558570135E+02, -0.123668878449869E+03),\n new google.maps.LatLng( 0.462668320000000E+02, -0.123669501000000E+03),\n new google.maps.LatLng( 0.462671945115596E+02, -0.123670116310626E+03),\n new google.maps.LatLng( 0.462724104693612E+02, -0.123678969640059E+03),\n new google.maps.LatLng( 0.462725020000000E+02, -0.123679125000000E+03),\n new google.maps.LatLng( 0.462735477390819E+02, -0.123679308547293E+03),\n new google.maps.LatLng( 0.462779430000000E+02, -0.123680080000000E+03),\n new google.maps.LatLng( 0.462842536315433E+02, -0.123678591531781E+03),\n new google.maps.LatLng( 0.462864690000000E+02, -0.123678069000000E+03),\n new google.maps.LatLng( 0.462870777559385E+02, -0.123678167929998E+03),\n new google.maps.LatLng( 0.462903200080720E+02, -0.123678694834096E+03),\n new google.maps.LatLng( 0.462907210000000E+02, -0.123678760000000E+03),\n new google.maps.LatLng( 0.462943987108949E+02, -0.123680017799314E+03),\n new google.maps.LatLng( 0.462959205457286E+02, -0.123680538276009E+03),\n new google.maps.LatLng( 0.462960250000000E+02, -0.123680574000000E+03),\n new google.maps.LatLng( 0.462992143337492E+02, -0.123687716716612E+03),\n new google.maps.LatLng( 0.462992350000000E+02, -0.123687763000000E+03),\n new google.maps.LatLng( 0.463052780000000E+02, -0.123700764000000E+03),\n new google.maps.LatLng( 0.463027569681735E+02, -0.123715159661212E+03),\n new google.maps.LatLng( 0.463025217662943E+02, -0.123716502717073E+03),\n new google.maps.LatLng( 0.463011767957679E+02, -0.123724182802597E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475179040000000E+02, -0.123870982000000E+03),\n new google.maps.LatLng( 0.475103410000000E+02, -0.123871102000000E+03),\n new google.maps.LatLng( 0.475103710000000E+02, -0.123892865000000E+03),\n new google.maps.LatLng( 0.475068240000000E+02, -0.123899742000000E+03),\n new google.maps.LatLng( 0.475059740000000E+02, -0.123905272000000E+03),\n new google.maps.LatLng( 0.475008540000000E+02, -0.123909624000000E+03),\n new google.maps.LatLng( 0.474949180000000E+02, -0.123913238000000E+03),\n new google.maps.LatLng( 0.474906610000000E+02, -0.123919798000000E+03),\n new google.maps.LatLng( 0.474896320000000E+02, -0.123922848000000E+03),\n new google.maps.LatLng( 0.474894330000000E+02, -0.123931748000000E+03),\n new google.maps.LatLng( 0.474934120000000E+02, -0.123934207000000E+03),\n new google.maps.LatLng( 0.474954870000000E+02, -0.123931238000000E+03),\n new google.maps.LatLng( 0.474985950000000E+02, -0.123928911000000E+03),\n new google.maps.LatLng( 0.475054870000000E+02, -0.123929515000000E+03),\n new google.maps.LatLng( 0.475066990000000E+02, -0.123932483000000E+03),\n new google.maps.LatLng( 0.475106750000000E+02, -0.123937879000000E+03),\n new google.maps.LatLng( 0.475135780000000E+02, -0.123939701000000E+03),\n new google.maps.LatLng( 0.475143240000000E+02, -0.123939580000000E+03),\n new google.maps.LatLng( 0.475145750000000E+02, -0.123946290000000E+03),\n new google.maps.LatLng( 0.475130960000000E+02, -0.123954875000000E+03),\n new google.maps.LatLng( 0.475133340000000E+02, -0.123956018000000E+03),\n new google.maps.LatLng( 0.475152960000000E+02, -0.123957756000000E+03),\n new google.maps.LatLng( 0.475179720000000E+02, -0.123957135000000E+03),\n new google.maps.LatLng( 0.475179720000000E+02, -0.123957135000000E+03),\n new google.maps.LatLng( 0.475179040000000E+02, -0.123870982000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.463011200000000E+02, -0.122774903000000E+03),\n new google.maps.LatLng( 0.463014410000000E+02, -0.122777146000000E+03),\n new google.maps.LatLng( 0.463028590000000E+02, -0.122777672000000E+03),\n new google.maps.LatLng( 0.463089840000000E+02, -0.122773842000000E+03),\n new google.maps.LatLng( 0.463092580000000E+02, -0.122773017000000E+03),\n new google.maps.LatLng( 0.463064680000000E+02, -0.122771370000000E+03),\n new google.maps.LatLng( 0.463019880000000E+02, -0.122771703000000E+03),\n new google.maps.LatLng( 0.463014400000000E+02, -0.122772561000000E+03),\n new google.maps.LatLng( 0.463011200000000E+02, -0.122774903000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.463032625928188E+02, -0.123974866203012E+03),\n new google.maps.LatLng( 0.463028480000000E+02, -0.123973524000000E+03),\n new google.maps.LatLng( 0.463028720000000E+02, -0.123971445000000E+03),\n new google.maps.LatLng( 0.463042910000000E+02, -0.123965212000000E+03),\n new google.maps.LatLng( 0.463045210000000E+02, -0.123959243000000E+03),\n new google.maps.LatLng( 0.463071740000000E+02, -0.123954428000000E+03),\n new google.maps.LatLng( 0.463093460000000E+02, -0.123952912000000E+03),\n new google.maps.LatLng( 0.463101690000000E+02, -0.123951263000000E+03),\n new google.maps.LatLng( 0.463103290000000E+02, -0.123949680000000E+03),\n new google.maps.LatLng( 0.463098490000000E+02, -0.123947931000000E+03),\n new google.maps.LatLng( 0.463091640000000E+02, -0.123947173000000E+03),\n new google.maps.LatLng( 0.463071520000000E+02, -0.123946743000000E+03),\n new google.maps.LatLng( 0.463057810000000E+02, -0.123947073000000E+03),\n new google.maps.LatLng( 0.463053920000000E+02, -0.123945556000000E+03),\n new google.maps.LatLng( 0.463058140000000E+02, -0.123944630000000E+03),\n new google.maps.LatLng( 0.463123410000000E+02, -0.123947899000000E+03),\n new google.maps.LatLng( 0.463139410000000E+02, -0.123950142000000E+03),\n new google.maps.LatLng( 0.463182580000000E+02, -0.123962449000000E+03),\n new google.maps.LatLng( 0.463199720000000E+02, -0.123964397000000E+03),\n new google.maps.LatLng( 0.463250240000000E+02, -0.123963508000000E+03),\n new google.maps.LatLng( 0.463267840000000E+02, -0.123962387000000E+03),\n new google.maps.LatLng( 0.463315390000000E+02, -0.123957671000000E+03),\n new google.maps.LatLng( 0.463325000000000E+02, -0.123954932000000E+03),\n new google.maps.LatLng( 0.463376040000000E+02, -0.123949415000000E+03),\n new google.maps.LatLng( 0.463376040000000E+02, -0.123949415000000E+03),\n new google.maps.LatLng( 0.463362950000000E+02, -0.123945792000000E+03),\n new google.maps.LatLng( 0.463356790000000E+02, -0.123941931000000E+03),\n new google.maps.LatLng( 0.463342170000000E+02, -0.123939390000000E+03),\n new google.maps.LatLng( 0.463292560000000E+02, -0.123936717000000E+03),\n new google.maps.LatLng( 0.463271080000000E+02, -0.123938103000000E+03),\n new google.maps.LatLng( 0.463259420000000E+02, -0.123937905000000E+03),\n new google.maps.LatLng( 0.463248220000000E+02, -0.123936815000000E+03),\n new google.maps.LatLng( 0.463231530000000E+02, -0.123930085000000E+03),\n new google.maps.LatLng( 0.463239750000000E+02, -0.123921869000000E+03),\n new google.maps.LatLng( 0.463212080000000E+02, -0.123913985000000E+03),\n new google.maps.LatLng( 0.463204750000000E+02, -0.123908970000000E+03),\n new google.maps.LatLng( 0.463152850000000E+02, -0.123904124000000E+03),\n new google.maps.LatLng( 0.463141660000000E+02, -0.123903398000000E+03),\n new google.maps.LatLng( 0.463130000000000E+02, -0.123904026000000E+03),\n new google.maps.LatLng( 0.463110110000000E+02, -0.123902543000000E+03),\n new google.maps.LatLng( 0.463062320000000E+02, -0.123896938000000E+03),\n new google.maps.LatLng( 0.463028020000000E+02, -0.123894434000000E+03),\n new google.maps.LatLng( 0.463025030000000E+02, -0.123888860000000E+03),\n new google.maps.LatLng( 0.463017020000000E+02, -0.123887542000000E+03),\n new google.maps.LatLng( 0.462994390000000E+02, -0.123888303000000E+03),\n new google.maps.LatLng( 0.462975880000000E+02, -0.123887776000000E+03),\n new google.maps.LatLng( 0.462952530000000E+02, -0.123880424000000E+03),\n new google.maps.LatLng( 0.462959380000000E+02, -0.123880160000000E+03),\n new google.maps.LatLng( 0.462974460000000E+02, -0.123878047000000E+03),\n new google.maps.LatLng( 0.462973990000000E+02, -0.123876259000000E+03),\n new google.maps.LatLng( 0.462949310000000E+02, -0.123872884000000E+03),\n new google.maps.LatLng( 0.462925320000000E+02, -0.123871035000000E+03),\n new google.maps.LatLng( 0.462914350000000E+02, -0.123871067000000E+03),\n new google.maps.LatLng( 0.462889230000000E+02, -0.123868228000000E+03),\n new google.maps.LatLng( 0.462883520000000E+02, -0.123866645000000E+03),\n new google.maps.LatLng( 0.462886770000000E+02, -0.123854083000000E+03),\n new google.maps.LatLng( 0.462899120000000E+02, -0.123852666000000E+03),\n new google.maps.LatLng( 0.462894440000000E+02, -0.123850904000000E+03),\n new google.maps.LatLng( 0.462894440000000E+02, -0.123850904000000E+03),\n new google.maps.LatLng( 0.462858900000000E+02, -0.123849399000000E+03),\n new google.maps.LatLng( 0.462840380000000E+02, -0.123849429000000E+03),\n new google.maps.LatLng( 0.462838080000000E+02, -0.123853716000000E+03),\n new google.maps.LatLng( 0.462850090000000E+02, -0.123855076000000E+03),\n new google.maps.LatLng( 0.462838060000000E+02, -0.123859420000000E+03),\n new google.maps.LatLng( 0.462831890000000E+02, -0.123859947000000E+03),\n new google.maps.LatLng( 0.462814510000000E+02, -0.123860341000000E+03),\n new google.maps.LatLng( 0.462806510000000E+02, -0.123860044000000E+03),\n new google.maps.LatLng( 0.462786870000000E+02, -0.123856876000000E+03),\n new google.maps.LatLng( 0.462775890000000E+02, -0.123857667000000E+03),\n new google.maps.LatLng( 0.462773540000000E+02, -0.123877244000000E+03),\n new google.maps.LatLng( 0.462745660000000E+02, -0.123879687000000E+03),\n new google.maps.LatLng( 0.462734230000000E+02, -0.123879919000000E+03),\n new google.maps.LatLng( 0.462678020000000E+02, -0.123883188000000E+03),\n new google.maps.LatLng( 0.462644430000000E+02, -0.123886124000000E+03),\n new google.maps.LatLng( 0.462620420000000E+02, -0.123884874000000E+03),\n new google.maps.LatLng( 0.462588160000000E+02, -0.123878978000000E+03),\n new google.maps.LatLng( 0.462573280000000E+02, -0.123875766000000E+03),\n new google.maps.LatLng( 0.462574900000000E+02, -0.123871787000000E+03),\n new google.maps.LatLng( 0.462560520000000E+02, -0.123868128000000E+03),\n new google.maps.LatLng( 0.462534710000000E+02, -0.123864368000000E+03),\n new google.maps.LatLng( 0.462528080000000E+02, -0.123864038000000E+03),\n new google.maps.LatLng( 0.462493550000000E+02, -0.123863898000000E+03),\n new google.maps.LatLng( 0.462487530000000E+02, -0.123866507000000E+03),\n new google.maps.LatLng( 0.462412569884326E+02, -0.123873196363271E+03),\n new google.maps.LatLng( 0.462412569884326E+02, -0.123873196363271E+03),\n new google.maps.LatLng( 0.462402086390118E+02, -0.123874857073595E+03),\n new google.maps.LatLng( 0.462397870000000E+02, -0.123875525000000E+03),\n new google.maps.LatLng( 0.462425248150765E+02, -0.123891739258608E+03),\n new google.maps.LatLng( 0.462454910000000E+02, -0.123909306000000E+03),\n new google.maps.LatLng( 0.462512170000000E+02, -0.123919581000000E+03),\n new google.maps.LatLng( 0.462516752158631E+02, -0.123920198944539E+03),\n new google.maps.LatLng( 0.462552604834465E+02, -0.123925033994353E+03),\n new google.maps.LatLng( 0.462680969324716E+02, -0.123942345078960E+03),\n new google.maps.LatLng( 0.462770010000000E+02, -0.123954353000000E+03),\n new google.maps.LatLng( 0.462913980000000E+02, -0.123969427000000E+03),\n new google.maps.LatLng( 0.462938660000000E+02, -0.123970912000000E+03),\n new google.maps.LatLng( 0.462993520000000E+02, -0.123970355000000E+03),\n new google.maps.LatLng( 0.462999414896446E+02, -0.123971014859872E+03),\n new google.maps.LatLng( 0.463030630000000E+02, -0.123974509000000E+03),\n new google.maps.LatLng( 0.463032625928188E+02, -0.123974866203012E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.474241540000000E+02, -0.121411149000000E+03),\n new google.maps.LatLng( 0.474285170000000E+02, -0.121407888000000E+03),\n new google.maps.LatLng( 0.474303000000000E+02, -0.121405034000000E+03),\n new google.maps.LatLng( 0.474318150000000E+02, -0.121400839000000E+03),\n new google.maps.LatLng( 0.474335920000000E+02, -0.121391810000000E+03),\n new google.maps.LatLng( 0.474335630000000E+02, -0.121386130000000E+03),\n new google.maps.LatLng( 0.474349340000000E+02, -0.121384445000000E+03),\n new google.maps.LatLng( 0.474383750000000E+02, -0.121381953000000E+03),\n new google.maps.LatLng( 0.474449220000000E+02, -0.121385683000000E+03),\n new google.maps.LatLng( 0.474481380000000E+02, -0.121380694000000E+03),\n new google.maps.LatLng( 0.474512140000000E+02, -0.121378936000000E+03),\n new google.maps.LatLng( 0.474520870000000E+02, -0.121378893000000E+03),\n new google.maps.LatLng( 0.474561260000000E+02, -0.121374923000000E+03),\n new google.maps.LatLng( 0.474607950000000E+02, -0.121369411000000E+03),\n new google.maps.LatLng( 0.474643240000000E+02, -0.121363438000000E+03),\n new google.maps.LatLng( 0.474650830000000E+02, -0.121359445000000E+03),\n new google.maps.LatLng( 0.474648930000000E+02, -0.121351120000000E+03),\n new google.maps.LatLng( 0.474653800000000E+02, -0.121347852000000E+03),\n new google.maps.LatLng( 0.474717570000000E+02, -0.121341487000000E+03),\n new google.maps.LatLng( 0.474744460000000E+02, -0.121341027000000E+03),\n new google.maps.LatLng( 0.474751280000000E+02, -0.121340502000000E+03),\n new google.maps.LatLng( 0.474761130000000E+02, -0.121337778000000E+03),\n new google.maps.LatLng( 0.474752440000000E+02, -0.121336557000000E+03),\n new google.maps.LatLng( 0.474736010000000E+02, -0.121331217000000E+03),\n new google.maps.LatLng( 0.474762960000000E+02, -0.121328012000000E+03),\n new google.maps.LatLng( 0.474789070000000E+02, -0.121322466000000E+03),\n new google.maps.LatLng( 0.474792390000000E+02, -0.121315729000000E+03),\n new google.maps.LatLng( 0.474792390000000E+02, -0.121315729000000E+03),\n new google.maps.LatLng( 0.474745300000000E+02, -0.121317647000000E+03),\n new google.maps.LatLng( 0.474632420000000E+02, -0.121324083000000E+03),\n new google.maps.LatLng( 0.474576430000000E+02, -0.121328731000000E+03),\n new google.maps.LatLng( 0.474538940000000E+02, -0.121335569000000E+03),\n new google.maps.LatLng( 0.474533220000000E+02, -0.121338938000000E+03),\n new google.maps.LatLng( 0.474459390000000E+02, -0.121348804000000E+03),\n new google.maps.LatLng( 0.474444310000000E+02, -0.121349375000000E+03),\n new google.maps.LatLng( 0.474427860000000E+02, -0.121348734000000E+03),\n new google.maps.LatLng( 0.474350620000000E+02, -0.121350178000000E+03),\n new google.maps.LatLng( 0.474292110000000E+02, -0.121352059000000E+03),\n new google.maps.LatLng( 0.474272910000000E+02, -0.121355257000000E+03),\n new google.maps.LatLng( 0.474259180000000E+02, -0.121358825000000E+03),\n new google.maps.LatLng( 0.474205920000000E+02, -0.121362288000000E+03),\n new google.maps.LatLng( 0.474175070000000E+02, -0.121361983000000E+03),\n new google.maps.LatLng( 0.474005920000000E+02, -0.121373915000000E+03),\n new google.maps.LatLng( 0.473894850000000E+02, -0.121380697000000E+03),\n new google.maps.LatLng( 0.473829710000000E+02, -0.121377104000000E+03),\n new google.maps.LatLng( 0.473732030000000E+02, -0.121376013000000E+03),\n new google.maps.LatLng( 0.473709730000000E+02, -0.121374584000000E+03),\n new google.maps.LatLng( 0.473678750000000E+02, -0.121371565000000E+03),\n new google.maps.LatLng( 0.473670200000000E+02, -0.121373840000000E+03),\n new google.maps.LatLng( 0.473670200000000E+02, -0.121373840000000E+03),\n new google.maps.LatLng( 0.473692580000000E+02, -0.121375120000000E+03),\n new google.maps.LatLng( 0.473711990000000E+02, -0.121377316000000E+03),\n new google.maps.LatLng( 0.473819890000000E+02, -0.121378350000000E+03),\n new google.maps.LatLng( 0.473869260000000E+02, -0.121380565000000E+03),\n new google.maps.LatLng( 0.473897380000000E+02, -0.121383422000000E+03),\n new google.maps.LatLng( 0.473914760000000E+02, -0.121386920000000E+03),\n new google.maps.LatLng( 0.473913630000000E+02, -0.121387492000000E+03),\n new google.maps.LatLng( 0.473893290000000E+02, -0.121388470000000E+03),\n new google.maps.LatLng( 0.473870890000000E+02, -0.121387530000000E+03),\n new google.maps.LatLng( 0.473829990000000E+02, -0.121388106000000E+03),\n new google.maps.LatLng( 0.473777900000000E+02, -0.121390129000000E+03),\n new google.maps.LatLng( 0.473725100000000E+02, -0.121393494000000E+03),\n new google.maps.LatLng( 0.473725100000000E+02, -0.121393494000000E+03),\n new google.maps.LatLng( 0.473719170000000E+02, -0.121397329000000E+03),\n new google.maps.LatLng( 0.473723740000000E+02, -0.121399213000000E+03),\n new google.maps.LatLng( 0.473757120000000E+02, -0.121394336000000E+03),\n new google.maps.LatLng( 0.473813550000000E+02, -0.121391471000000E+03),\n new google.maps.LatLng( 0.473871390000000E+02, -0.121396480000000E+03),\n new google.maps.LatLng( 0.473896300000000E+02, -0.121399330000000E+03),\n new google.maps.LatLng( 0.473902040000000E+02, -0.121406504000000E+03),\n new google.maps.LatLng( 0.473892680000000E+02, -0.121410677000000E+03),\n new google.maps.LatLng( 0.473896120000000E+02, -0.121414177000000E+03),\n new google.maps.LatLng( 0.473910990000000E+02, -0.121423934000000E+03),\n new google.maps.LatLng( 0.473926260000000E+02, -0.121426149000000E+03),\n new google.maps.LatLng( 0.473926260000000E+02, -0.121426149000000E+03),\n new google.maps.LatLng( 0.473934230000000E+02, -0.121426012000000E+03),\n new google.maps.LatLng( 0.473950350000000E+02, -0.121426906000000E+03),\n new google.maps.LatLng( 0.473976010000000E+02, -0.121430421000000E+03),\n new google.maps.LatLng( 0.474018700000000E+02, -0.121428529000000E+03),\n new google.maps.LatLng( 0.474021150000000E+02, -0.121427408000000E+03),\n new google.maps.LatLng( 0.474056230000000E+02, -0.121423107000000E+03),\n new google.maps.LatLng( 0.474094310000000E+02, -0.121422324000000E+03),\n new google.maps.LatLng( 0.474139100000000E+02, -0.121423222000000E+03),\n new google.maps.LatLng( 0.474156530000000E+02, -0.121424834000000E+03),\n new google.maps.LatLng( 0.474160390000000E+02, -0.121425479000000E+03),\n new google.maps.LatLng( 0.474157690000000E+02, -0.121428427000000E+03),\n new google.maps.LatLng( 0.474161860000000E+02, -0.121428695000000E+03),\n new google.maps.LatLng( 0.474205540000000E+02, -0.121427732000000E+03),\n new google.maps.LatLng( 0.474218790000000E+02, -0.121426249000000E+03),\n new google.maps.LatLng( 0.474226580000000E+02, -0.121422308000000E+03),\n new google.maps.LatLng( 0.474215990000000E+02, -0.121412336000000E+03),\n new google.maps.LatLng( 0.474221080000000E+02, -0.121411461000000E+03),\n new google.maps.LatLng( 0.474241540000000E+02, -0.121411149000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.469399460000000E+02, -0.123882884000000E+03),\n new google.maps.LatLng( 0.469451580000000E+02, -0.123867409000000E+03),\n new google.maps.LatLng( 0.469513360000000E+02, -0.123852963000000E+03),\n new google.maps.LatLng( 0.469517080000000E+02, -0.123852437000000E+03),\n new google.maps.LatLng( 0.469516650000000E+02, -0.123861041000000E+03),\n new google.maps.LatLng( 0.469524750000000E+02, -0.123858237000000E+03),\n new google.maps.LatLng( 0.469525290000000E+02, -0.123852236000000E+03),\n new google.maps.LatLng( 0.469538540000000E+02, -0.123839545000000E+03),\n new google.maps.LatLng( 0.469552500000000E+02, -0.123830867000000E+03),\n new google.maps.LatLng( 0.469576510000000E+02, -0.123823090000000E+03),\n new google.maps.LatLng( 0.469597540000000E+02, -0.123818851000000E+03),\n new google.maps.LatLng( 0.469603940000000E+02, -0.123819152000000E+03),\n new google.maps.LatLng( 0.469600510000000E+02, -0.123820354000000E+03),\n new google.maps.LatLng( 0.469613540000000E+02, -0.123820387000000E+03),\n new google.maps.LatLng( 0.469655140000000E+02, -0.123817149000000E+03),\n new google.maps.LatLng( 0.469669990000000E+02, -0.123814645000000E+03),\n new google.maps.LatLng( 0.469738330000000E+02, -0.123801289000000E+03),\n new google.maps.LatLng( 0.469766200000000E+02, -0.123789700000000E+03),\n new google.maps.LatLng( 0.469771450000000E+02, -0.123786227000000E+03),\n new google.maps.LatLng( 0.469762530000000E+02, -0.123783857000000E+03),\n new google.maps.LatLng( 0.469719550000000E+02, -0.123781088000000E+03),\n new google.maps.LatLng( 0.469636920000000E+02, -0.123778378000000E+03),\n new google.maps.LatLng( 0.469636920000000E+02, -0.123778378000000E+03),\n new google.maps.LatLng( 0.469622580000000E+02, -0.123778357000000E+03),\n new google.maps.LatLng( 0.469598600000000E+02, -0.123779786000000E+03),\n new google.maps.LatLng( 0.469592530000000E+02, -0.123781137000000E+03),\n new google.maps.LatLng( 0.469544270000000E+02, -0.123786873000000E+03),\n new google.maps.LatLng( 0.469529180000000E+02, -0.123788108000000E+03),\n new google.maps.LatLng( 0.469518900000000E+02, -0.123788109000000E+03),\n new google.maps.LatLng( 0.469518890000000E+02, -0.123783636000000E+03),\n new google.maps.LatLng( 0.469485050000000E+02, -0.123777931000000E+03),\n new google.maps.LatLng( 0.469485720000000E+02, -0.123774126000000E+03),\n new google.maps.LatLng( 0.469493940000000E+02, -0.123772089000000E+03),\n new google.maps.LatLng( 0.469498050000000E+02, -0.123772122000000E+03),\n new google.maps.LatLng( 0.469506980000000E+02, -0.123774458000000E+03),\n new google.maps.LatLng( 0.469518410000000E+02, -0.123774691000000E+03),\n new google.maps.LatLng( 0.469498740000000E+02, -0.123771588000000E+03),\n new google.maps.LatLng( 0.469474970000000E+02, -0.123772625000000E+03),\n new google.maps.LatLng( 0.469461260000000E+02, -0.123774028000000E+03),\n new google.maps.LatLng( 0.469445720000000E+02, -0.123774729000000E+03),\n new google.maps.LatLng( 0.469400240000000E+02, -0.123775600000000E+03),\n new google.maps.LatLng( 0.469381040000000E+02, -0.123775235000000E+03),\n new google.maps.LatLng( 0.469358180000000E+02, -0.123773601000000E+03),\n new google.maps.LatLng( 0.469338970000000E+02, -0.123771334000000E+03),\n new google.maps.LatLng( 0.469325700000000E+02, -0.123763826000000E+03),\n new google.maps.LatLng( 0.469330020000000E+02, -0.123760122000000E+03),\n new google.maps.LatLng( 0.469307850000000E+02, -0.123758924000000E+03),\n new google.maps.LatLng( 0.469275620000000E+02, -0.123758760000000E+03),\n new google.maps.LatLng( 0.469275160000000E+02, -0.123759361000000E+03),\n new google.maps.LatLng( 0.469275160000000E+02, -0.123759361000000E+03),\n new google.maps.LatLng( 0.469277460000000E+02, -0.123762196000000E+03),\n new google.maps.LatLng( 0.469269470000000E+02, -0.123764465000000E+03),\n new google.maps.LatLng( 0.469248680000000E+02, -0.123766736000000E+03),\n new google.maps.LatLng( 0.469228600000000E+02, -0.123774477000000E+03),\n new google.maps.LatLng( 0.469178330000000E+02, -0.123778418000000E+03),\n new google.maps.LatLng( 0.469169190000000E+02, -0.123779719000000E+03),\n new google.maps.LatLng( 0.469168730000000E+02, -0.123781454000000E+03),\n new google.maps.LatLng( 0.469147480000000E+02, -0.123783056000000E+03),\n new google.maps.LatLng( 0.469062470000000E+02, -0.123786462000000E+03),\n new google.maps.LatLng( 0.469039850000000E+02, -0.123789832000000E+03),\n new google.maps.LatLng( 0.469011280000000E+02, -0.123791133000000E+03),\n new google.maps.LatLng( 0.468987510000000E+02, -0.123791034000000E+03),\n new google.maps.LatLng( 0.468980880000000E+02, -0.123791635000000E+03),\n new google.maps.LatLng( 0.468972200000000E+02, -0.123794069000000E+03),\n new google.maps.LatLng( 0.468985230000000E+02, -0.123810741000000E+03),\n new google.maps.LatLng( 0.469024770000000E+02, -0.123816343000000E+03),\n new google.maps.LatLng( 0.469071630000000E+02, -0.123817944000000E+03),\n new google.maps.LatLng( 0.469083970000000E+02, -0.123820279000000E+03),\n new google.maps.LatLng( 0.469083510000000E+02, -0.123821580000000E+03),\n new google.maps.LatLng( 0.469088310000000E+02, -0.123822448000000E+03),\n new google.maps.LatLng( 0.469136310000000E+02, -0.123825250000000E+03),\n new google.maps.LatLng( 0.469153910000000E+02, -0.123823549000000E+03),\n new google.maps.LatLng( 0.469167620000000E+02, -0.123823483000000E+03),\n new google.maps.LatLng( 0.469215620000000E+02, -0.123826119000000E+03),\n new google.maps.LatLng( 0.469243040000000E+02, -0.123829356000000E+03),\n new google.maps.LatLng( 0.469252620000000E+02, -0.123833393000000E+03),\n new google.maps.LatLng( 0.469277070000000E+02, -0.123839199000000E+03),\n new google.maps.LatLng( 0.469344700000000E+02, -0.123845875000000E+03),\n new google.maps.LatLng( 0.469385610000000E+02, -0.123849048000000E+03),\n new google.maps.LatLng( 0.469409280000000E+02, -0.123849436000000E+03),\n new google.maps.LatLng( 0.469379200000000E+02, -0.123851350000000E+03),\n new google.maps.LatLng( 0.469368900000000E+02, -0.123855521000000E+03),\n new google.maps.LatLng( 0.469351290000000E+02, -0.123859591000000E+03),\n new google.maps.LatLng( 0.469339400000000E+02, -0.123859489000000E+03),\n new google.maps.LatLng( 0.469323640000000E+02, -0.123857019000000E+03),\n new google.maps.LatLng( 0.469281580000000E+02, -0.123857483000000E+03),\n new google.maps.LatLng( 0.469230610000000E+02, -0.123859313000000E+03),\n new google.maps.LatLng( 0.469141670000000E+02, -0.123864409000000E+03),\n new google.maps.LatLng( 0.469098230000000E+02, -0.123868373000000E+03),\n new google.maps.LatLng( 0.469081280000000E+02, -0.123874942000000E+03),\n new google.maps.LatLng( 0.469051370000000E+02, -0.123882452000000E+03),\n new google.maps.LatLng( 0.469031720000000E+02, -0.123883755000000E+03),\n new google.maps.LatLng( 0.469025790000000E+02, -0.123884789000000E+03),\n new google.maps.LatLng( 0.469035230000000E+02, -0.123903230000000E+03),\n new google.maps.LatLng( 0.469017420000000E+02, -0.123908700000000E+03),\n new google.maps.LatLng( 0.469007370000000E+02, -0.123910702000000E+03),\n new google.maps.LatLng( 0.468995480000000E+02, -0.123911669000000E+03),\n new google.maps.LatLng( 0.468954340000000E+02, -0.123911871000000E+03),\n new google.maps.LatLng( 0.468894230000000E+02, -0.123910207000000E+03),\n new google.maps.LatLng( 0.468865430000000E+02, -0.123912142000000E+03),\n new google.maps.LatLng( 0.468884650000000E+02, -0.123918976000000E+03),\n new google.maps.LatLng( 0.468880310000000E+02, -0.123921376000000E+03),\n new google.maps.LatLng( 0.468865910000000E+02, -0.123924143000000E+03),\n new google.maps.LatLng( 0.468883970000000E+02, -0.123931244000000E+03),\n new google.maps.LatLng( 0.468837810000000E+02, -0.123939645000000E+03),\n new google.maps.LatLng( 0.468827980000000E+02, -0.123939878000000E+03),\n new google.maps.LatLng( 0.468816320000000E+02, -0.123939311000000E+03),\n new google.maps.LatLng( 0.468776320000000E+02, -0.123940411000000E+03),\n new google.maps.LatLng( 0.468779300000000E+02, -0.123942111000000E+03),\n new google.maps.LatLng( 0.468791640000000E+02, -0.123944611000000E+03),\n new google.maps.LatLng( 0.468799400000000E+02, -0.123950345000000E+03),\n new google.maps.LatLng( 0.468744530000000E+02, -0.123950313000000E+03),\n new google.maps.LatLng( 0.468701810000000E+02, -0.123947579000000E+03),\n new google.maps.LatLng( 0.468621590000000E+02, -0.123939680000000E+03),\n new google.maps.LatLng( 0.468621130000000E+02, -0.123938580000000E+03),\n new google.maps.LatLng( 0.468602850000000E+02, -0.123934648000000E+03),\n new google.maps.LatLng( 0.468554850000000E+02, -0.123928585000000E+03),\n new google.maps.LatLng( 0.468539540000000E+02, -0.123925553000000E+03),\n new google.maps.LatLng( 0.468546380000000E+02, -0.123912993000000E+03),\n new google.maps.LatLng( 0.468555970000000E+02, -0.123911092000000E+03),\n new google.maps.LatLng( 0.468567850000000E+02, -0.123910225000000E+03),\n new google.maps.LatLng( 0.468574250000000E+02, -0.123909059000000E+03),\n new google.maps.LatLng( 0.468587730000000E+02, -0.123905093000000E+03),\n new google.maps.LatLng( 0.468587950000000E+02, -0.123902894000000E+03),\n new google.maps.LatLng( 0.468537170000000E+02, -0.123893169000000E+03),\n new google.maps.LatLng( 0.468494420000000E+02, -0.123890241000000E+03),\n new google.maps.LatLng( 0.468477270000000E+02, -0.123888244000000E+03),\n new google.maps.LatLng( 0.468465150000000E+02, -0.123884247000000E+03),\n new google.maps.LatLng( 0.468425800000000E+02, -0.123877788000000E+03),\n new google.maps.LatLng( 0.468424890000000E+02, -0.123872635000000E+03),\n new google.maps.LatLng( 0.468446850000000E+02, -0.123870206000000E+03),\n new google.maps.LatLng( 0.468462150000000E+02, -0.123871907000000E+03),\n new google.maps.LatLng( 0.468495060000000E+02, -0.123873043000000E+03),\n new google.maps.LatLng( 0.468528680000000E+02, -0.123868516000000E+03),\n new google.maps.LatLng( 0.468539660000000E+02, -0.123866185000000E+03),\n new google.maps.LatLng( 0.468561380000000E+02, -0.123865254000000E+03),\n new google.maps.LatLng( 0.468592920000000E+02, -0.123865457000000E+03),\n new google.maps.LatLng( 0.468601600000000E+02, -0.123865125000000E+03),\n new google.maps.LatLng( 0.468618530000000E+02, -0.123861528000000E+03),\n new google.maps.LatLng( 0.468616510000000E+02, -0.123854796000000E+03),\n new google.maps.LatLng( 0.468646240000000E+02, -0.123849867000000E+03),\n new google.maps.LatLng( 0.468680760000000E+02, -0.123845870000000E+03),\n new google.maps.LatLng( 0.468731520000000E+02, -0.123838641000000E+03),\n new google.maps.LatLng( 0.468779970000000E+02, -0.123836242000000E+03),\n new google.maps.LatLng( 0.468800300000000E+02, -0.123836643000000E+03),\n new google.maps.LatLng( 0.468823850000000E+02, -0.123834744000000E+03),\n new google.maps.LatLng( 0.468860200000000E+02, -0.123828444000000E+03),\n new google.maps.LatLng( 0.468864320000000E+02, -0.123825843000000E+03),\n new google.maps.LatLng( 0.468828910000000E+02, -0.123814309000000E+03),\n new google.maps.LatLng( 0.468748170000000E+02, -0.123815993000000E+03),\n new google.maps.LatLng( 0.468721500000000E+02, -0.123814910000000E+03),\n new google.maps.LatLng( 0.468653840000000E+02, -0.123814043000000E+03),\n new google.maps.LatLng( 0.468620930000000E+02, -0.123816476000000E+03),\n new google.maps.LatLng( 0.468614300000000E+02, -0.123817609000000E+03),\n new google.maps.LatLng( 0.468599440000000E+02, -0.123823773000000E+03),\n new google.maps.LatLng( 0.468567210000000E+02, -0.123827104000000E+03),\n new google.maps.LatLng( 0.468532470000000E+02, -0.123825537000000E+03),\n new google.maps.LatLng( 0.468472360000000E+02, -0.123819340000000E+03),\n new google.maps.LatLng( 0.468444030000000E+02, -0.123818340000000E+03),\n new google.maps.LatLng( 0.468423000000000E+02, -0.123818340000000E+03),\n new google.maps.LatLng( 0.468397400000000E+02, -0.123819838000000E+03),\n new google.maps.LatLng( 0.468380940000000E+02, -0.123820038000000E+03),\n new google.maps.LatLng( 0.468357400000000E+02, -0.123819137000000E+03),\n new google.maps.LatLng( 0.468349170000000E+02, -0.123821403000000E+03),\n new google.maps.LatLng( 0.468324940000000E+02, -0.123824566000000E+03),\n new google.maps.LatLng( 0.468298190000000E+02, -0.123829661000000E+03),\n new google.maps.LatLng( 0.468292540000000E+02, -0.123831438000000E+03),\n new google.maps.LatLng( 0.468297040000000E+02, -0.123834456000000E+03),\n new google.maps.LatLng( 0.468285380000000E+02, -0.123837486000000E+03),\n new google.maps.LatLng( 0.468261610000000E+02, -0.123837219000000E+03),\n new google.maps.LatLng( 0.468237610000000E+02, -0.123835153000000E+03),\n new google.maps.LatLng( 0.468222760000000E+02, -0.123835352000000E+03),\n new google.maps.LatLng( 0.468219330000000E+02, -0.123836185000000E+03),\n new google.maps.LatLng( 0.468220690000000E+02, -0.123839115000000E+03),\n new google.maps.LatLng( 0.468259270000000E+02, -0.123853037000000E+03),\n new google.maps.LatLng( 0.468262220000000E+02, -0.123857499000000E+03),\n new google.maps.LatLng( 0.468255590000000E+02, -0.123858498000000E+03),\n new google.maps.LatLng( 0.468246910000000E+02, -0.123858264000000E+03),\n new google.maps.LatLng( 0.468241420000000E+02, -0.123857431000000E+03),\n new google.maps.LatLng( 0.468212660000000E+02, -0.123849471000000E+03),\n new google.maps.LatLng( 0.468190960000000E+02, -0.123845140000000E+03),\n new google.maps.LatLng( 0.468183190000000E+02, -0.123844740000000E+03),\n new google.maps.LatLng( 0.468169930000000E+02, -0.123845072000000E+03),\n new google.maps.LatLng( 0.468159420000000E+02, -0.123846037000000E+03),\n new google.maps.LatLng( 0.468130380000000E+02, -0.123849998000000E+03),\n new google.maps.LatLng( 0.468042140000000E+02, -0.123854152000000E+03),\n new google.maps.LatLng( 0.467982030000000E+02, -0.123853249000000E+03),\n new google.maps.LatLng( 0.467964210000000E+02, -0.123850651000000E+03),\n new google.maps.LatLng( 0.467938380000000E+02, -0.123851148000000E+03),\n new google.maps.LatLng( 0.467915980000000E+02, -0.123852235000000E+03),\n new google.maps.LatLng( 0.467915980000000E+02, -0.123852235000000E+03),\n new google.maps.LatLng( 0.467909560000000E+02, -0.123878175000000E+03),\n new google.maps.LatLng( 0.467924950000000E+02, -0.123897052000000E+03),\n new google.maps.LatLng( 0.467928040000000E+02, -0.123944752000000E+03),\n new google.maps.LatLng( 0.467928040000000E+02, -0.123944752000000E+03),\n new google.maps.LatLng( 0.467937750000000E+02, -0.123943238000000E+03),\n new google.maps.LatLng( 0.467945290000000E+02, -0.123942872000000E+03),\n new google.maps.LatLng( 0.467994430000000E+02, -0.123942440000000E+03),\n new google.maps.LatLng( 0.468016370000000E+02, -0.123939977000000E+03),\n new google.maps.LatLng( 0.468020950000000E+02, -0.123938812000000E+03),\n new google.maps.LatLng( 0.468065290000000E+02, -0.123940277000000E+03),\n new google.maps.LatLng( 0.468089740000000E+02, -0.123943306000000E+03),\n new google.maps.LatLng( 0.468158300000000E+02, -0.123943739000000E+03),\n new google.maps.LatLng( 0.468181840000000E+02, -0.123947069000000E+03),\n new google.maps.LatLng( 0.468201490000000E+02, -0.123955959000000E+03),\n new google.maps.LatLng( 0.468256310000000E+02, -0.123970680000000E+03),\n new google.maps.LatLng( 0.468288530000000E+02, -0.123973679000000E+03),\n new google.maps.LatLng( 0.468305900000000E+02, -0.123972914000000E+03),\n new google.maps.LatLng( 0.468323040000000E+02, -0.123974014000000E+03),\n new google.maps.LatLng( 0.468338310000000E+02, -0.123983640000000E+03),\n new google.maps.LatLng( 0.468367540000000E+02, -0.123988106000000E+03),\n new google.maps.LatLng( 0.468397930000000E+02, -0.123990241000000E+03),\n new google.maps.LatLng( 0.468451180000000E+02, -0.123991579000000E+03),\n new google.maps.LatLng( 0.468469930000000E+02, -0.123990814000000E+03),\n new google.maps.LatLng( 0.468469020000000E+02, -0.123988448000000E+03),\n new google.maps.LatLng( 0.468509240000000E+02, -0.123972282000000E+03),\n new google.maps.LatLng( 0.468560740000000E+02, -0.123970366000000E+03),\n new google.maps.LatLng( 0.468574910000000E+02, -0.123970766000000E+03),\n new google.maps.LatLng( 0.468597130000000E+02, -0.123969164000000E+03),\n new google.maps.LatLng( 0.468624000000000E+02, -0.123964057000000E+03),\n new google.maps.LatLng( 0.468633450000000E+02, -0.123958381000000E+03),\n new google.maps.LatLng( 0.468649240000000E+02, -0.123957802000000E+03),\n new google.maps.LatLng( 0.468682690000000E+02, -0.123958835000000E+03),\n new google.maps.LatLng( 0.468782180000000E+02, -0.123956929000000E+03),\n new google.maps.LatLng( 0.468792340000000E+02, -0.123957384000000E+03),\n new google.maps.LatLng( 0.468817880000000E+02, -0.123966713000000E+03),\n new google.maps.LatLng( 0.468813960000000E+02, -0.123978446000000E+03),\n new google.maps.LatLng( 0.468795210000000E+02, -0.123979577000000E+03),\n new google.maps.LatLng( 0.468746990000000E+02, -0.123979357000000E+03),\n new google.maps.LatLng( 0.468740110000000E+02, -0.123980813000000E+03),\n new google.maps.LatLng( 0.468746910000000E+02, -0.123985373000000E+03),\n new google.maps.LatLng( 0.468760450000000E+02, -0.123986008000000E+03),\n new google.maps.LatLng( 0.468778500000000E+02, -0.123986043000000E+03),\n new google.maps.LatLng( 0.468789930000000E+02, -0.123987144000000E+03),\n new google.maps.LatLng( 0.468792880000000E+02, -0.123992111000000E+03),\n new google.maps.LatLng( 0.468779370000000E+02, -0.123995909000000E+03),\n new google.maps.LatLng( 0.468756500000000E+02, -0.123999740000000E+03),\n new google.maps.LatLng( 0.468742110000000E+02, -0.124004791000000E+03),\n new google.maps.LatLng( 0.468727060000000E+02, -0.124013358000000E+03),\n new google.maps.LatLng( 0.468714140000000E+02, -0.124016002000000E+03),\n new google.maps.LatLng( 0.468720450000000E+02, -0.124016658000000E+03),\n new google.maps.LatLng( 0.468748140000000E+02, -0.124017005000000E+03),\n new google.maps.LatLng( 0.468794390000000E+02, -0.124018541000000E+03),\n new google.maps.LatLng( 0.468800010000000E+02, -0.124019615000000E+03),\n new google.maps.LatLng( 0.468791560000000E+02, -0.124022283000000E+03),\n new google.maps.LatLng( 0.468758670000000E+02, -0.124026451000000E+03),\n new google.maps.LatLng( 0.468744150000000E+02, -0.124029054000000E+03),\n new google.maps.LatLng( 0.468744150000000E+02, -0.124029054000000E+03),\n new google.maps.LatLng( 0.468737180000000E+02, -0.124032922000000E+03),\n new google.maps.LatLng( 0.468719360000000E+02, -0.124036922000000E+03),\n new google.maps.LatLng( 0.468640070000000E+02, -0.124048922000000E+03),\n new google.maps.LatLng( 0.468630250000000E+02, -0.124051088000000E+03),\n new google.maps.LatLng( 0.468621570000000E+02, -0.124054886000000E+03),\n new google.maps.LatLng( 0.468618130000000E+02, -0.124060917000000E+03),\n new google.maps.LatLng( 0.468625440000000E+02, -0.124065816000000E+03),\n new google.maps.LatLng( 0.468635040000000E+02, -0.124066349000000E+03),\n new google.maps.LatLng( 0.468635040000000E+02, -0.124066349000000E+03),\n new google.maps.LatLng( 0.468651270000000E+02, -0.124061051000000E+03),\n new google.maps.LatLng( 0.468704290000000E+02, -0.124055085000000E+03),\n new google.maps.LatLng( 0.468912530000000E+02, -0.124049279000000E+03),\n new google.maps.LatLng( 0.468939720000000E+02, -0.124046344000000E+03),\n new google.maps.LatLng( 0.468984730000000E+02, -0.124036240000000E+03),\n new google.maps.LatLng( 0.469014851202465E+02, -0.124023051387403E+03),\n new google.maps.LatLng( 0.469030715813836E+02, -0.124016105044087E+03),\n new google.maps.LatLng( 0.469036300000000E+02, -0.124013660000000E+03),\n new google.maps.LatLng( 0.469039420909600E+02, -0.124013466965099E+03),\n new google.maps.LatLng( 0.469103250000000E+02, -0.124009519000000E+03),\n new google.maps.LatLng( 0.469133367438760E+02, -0.124003169419714E+03),\n new google.maps.LatLng( 0.469219160000000E+02, -0.123985082000000E+03),\n new google.maps.LatLng( 0.469220437473798E+02, -0.123984432560558E+03),\n new google.maps.LatLng( 0.469230380000000E+02, -0.123979378000000E+03),\n new google.maps.LatLng( 0.469212610000000E+02, -0.123957493000000E+03),\n new google.maps.LatLng( 0.469329640000000E+02, -0.123915256000000E+03),\n new google.maps.LatLng( 0.469399460000000E+02, -0.123882884000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.458296480000000E+02, -0.122759950000000E+03),\n new google.maps.LatLng( 0.458257150000000E+02, -0.122759366000000E+03),\n new google.maps.LatLng( 0.458204110000000E+02, -0.122759305000000E+03),\n new google.maps.LatLng( 0.458128910000000E+02, -0.122761503000000E+03),\n new google.maps.LatLng( 0.458032460000000E+02, -0.122768180000000E+03),\n new google.maps.LatLng( 0.457974170000000E+02, -0.122769754000000E+03),\n new google.maps.LatLng( 0.457949940000000E+02, -0.122771030000000E+03),\n new google.maps.LatLng( 0.457940570000000E+02, -0.122772992000000E+03),\n new google.maps.LatLng( 0.457941510000000E+02, -0.122777796000000E+03),\n new google.maps.LatLng( 0.458033890000000E+02, -0.122785079000000E+03),\n new google.maps.LatLng( 0.458114360000000E+02, -0.122788868000000E+03),\n new google.maps.LatLng( 0.458150020000000E+02, -0.122788245000000E+03),\n new google.maps.LatLng( 0.458162820000000E+02, -0.122786773000000E+03),\n new google.maps.LatLng( 0.458240550000000E+02, -0.122786933000000E+03),\n new google.maps.LatLng( 0.458312560000000E+02, -0.122785883000000E+03),\n new google.maps.LatLng( 0.458413600000000E+02, -0.122782705000000E+03),\n new google.maps.LatLng( 0.458419310000000E+02, -0.122780448000000E+03),\n new google.maps.LatLng( 0.458359620000000E+02, -0.122772504000000E+03),\n new google.maps.LatLng( 0.458344070000000E+02, -0.122768351000000E+03),\n new google.maps.LatLng( 0.458334670000000E+02, -0.122763282000000E+03),\n new google.maps.LatLng( 0.458311570000000E+02, -0.122760538000000E+03),\n new google.maps.LatLng( 0.458296480000000E+02, -0.122759950000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.467628880000000E+02, -0.122253024000000E+03),\n new google.maps.LatLng( 0.467596460000000E+02, -0.122257814000000E+03),\n new google.maps.LatLng( 0.467617960000000E+02, -0.122261471000000E+03),\n new google.maps.LatLng( 0.467618420000000E+02, -0.122262768000000E+03),\n new google.maps.LatLng( 0.467595340000000E+02, -0.122264001000000E+03),\n new google.maps.LatLng( 0.467584600000000E+02, -0.122264068000000E+03),\n new google.maps.LatLng( 0.467498280000000E+02, -0.122257092000000E+03),\n new google.maps.LatLng( 0.467443800000000E+02, -0.122251743000000E+03),\n new google.maps.LatLng( 0.467437180000000E+02, -0.122249366000000E+03),\n new google.maps.LatLng( 0.467428280000000E+02, -0.122248201000000E+03),\n new google.maps.LatLng( 0.467412280000000E+02, -0.122247402000000E+03),\n new google.maps.LatLng( 0.467373650000000E+02, -0.122248295000000E+03),\n new google.maps.LatLng( 0.467331600000000E+02, -0.122245631000000E+03),\n new google.maps.LatLng( 0.467315170000000E+02, -0.122240743000000E+03),\n new google.maps.LatLng( 0.467283180000000E+02, -0.122239642000000E+03),\n new google.maps.LatLng( 0.467270380000000E+02, -0.122240306000000E+03),\n new google.maps.LatLng( 0.467251400000000E+02, -0.122242398000000E+03),\n new google.maps.LatLng( 0.467224890000000E+02, -0.122242096000000E+03),\n new google.maps.LatLng( 0.467141470000000E+02, -0.122239729000000E+03),\n new google.maps.LatLng( 0.467132100000000E+02, -0.122238864000000E+03),\n new google.maps.LatLng( 0.467127540000000E+02, -0.122236305000000E+03),\n new google.maps.LatLng( 0.467108580000000E+02, -0.122232914000000E+03),\n new google.maps.LatLng( 0.467085250000000E+02, -0.122236766000000E+03),\n new google.maps.LatLng( 0.467082950000000E+02, -0.122239989000000E+03),\n new google.maps.LatLng( 0.467062820000000E+02, -0.122243974000000E+03),\n new google.maps.LatLng( 0.467046140000000E+02, -0.122243674000000E+03),\n new google.maps.LatLng( 0.467003410000000E+02, -0.122239084000000E+03),\n new google.maps.LatLng( 0.466983310000000E+02, -0.122235693000000E+03),\n new google.maps.LatLng( 0.466960230000000E+02, -0.122235094000000E+03),\n new google.maps.LatLng( 0.466950400000000E+02, -0.122235093000000E+03),\n new google.maps.LatLng( 0.466886850000000E+02, -0.122237911000000E+03),\n new google.maps.LatLng( 0.466768440000000E+02, -0.122239626000000E+03),\n new google.maps.LatLng( 0.466709250000000E+02, -0.122237130000000E+03),\n new google.maps.LatLng( 0.466689360000000E+02, -0.122237660000000E+03),\n new google.maps.LatLng( 0.466689360000000E+02, -0.122237660000000E+03),\n new google.maps.LatLng( 0.466676550000000E+02, -0.122239717000000E+03),\n new google.maps.LatLng( 0.466650030000000E+02, -0.122240910000000E+03),\n new google.maps.LatLng( 0.466647510000000E+02, -0.122241441000000E+03),\n new google.maps.LatLng( 0.466619360000000E+02, -0.122249107000000E+03),\n new google.maps.LatLng( 0.466594690000000E+02, -0.122258179000000E+03),\n new google.maps.LatLng( 0.466586010000000E+02, -0.122258047000000E+03),\n new google.maps.LatLng( 0.466565410000000E+02, -0.122254265000000E+03),\n new google.maps.LatLng( 0.466452290000000E+02, -0.122258161000000E+03),\n new google.maps.LatLng( 0.466434690000000E+02, -0.122255640000000E+03),\n new google.maps.LatLng( 0.466445890000000E+02, -0.122247062000000E+03),\n new google.maps.LatLng( 0.466444300000000E+02, -0.122245004000000E+03),\n new google.maps.LatLng( 0.466415270000000E+02, -0.122244183000000E+03),\n new google.maps.LatLng( 0.466419736217773E+02, -0.122248265081641E+03),\n new google.maps.LatLng( 0.466416802217773E+02, -0.122249241881641E+03),\n new google.maps.LatLng( 0.466407470000000E+02, -0.122250609000000E+03),\n new google.maps.LatLng( 0.466386900000000E+02, -0.122250761000000E+03),\n new google.maps.LatLng( 0.466339840000000E+02, -0.122246520000000E+03),\n new google.maps.LatLng( 0.466210320000000E+02, -0.122245874000000E+03),\n new google.maps.LatLng( 0.466145640000000E+02, -0.122243611000000E+03),\n new google.maps.LatLng( 0.466138560000000E+02, -0.122242881000000E+03),\n new google.maps.LatLng( 0.466131480000000E+02, -0.122240823000000E+03),\n new google.maps.LatLng( 0.466076650000000E+02, -0.122235047000000E+03),\n new google.maps.LatLng( 0.466027690000000E+02, -0.122234761000000E+03),\n new google.maps.LatLng( 0.466014650000000E+02, -0.122236628000000E+03),\n new google.maps.LatLng( 0.466013260000000E+02, -0.122238498000000E+03),\n new google.maps.LatLng( 0.465944780000000E+02, -0.122240966000000E+03),\n new google.maps.LatLng( 0.465901710000000E+02, -0.122244622000000E+03),\n new google.maps.LatLng( 0.465880010000000E+02, -0.122248689000000E+03),\n new google.maps.LatLng( 0.465852140000000E+02, -0.122257092000000E+03),\n new google.maps.LatLng( 0.465806660000000E+02, -0.122260245000000E+03),\n new google.maps.LatLng( 0.465767140000000E+02, -0.122264260000000E+03),\n new google.maps.LatLng( 0.465758240000000E+02, -0.122267742000000E+03),\n new google.maps.LatLng( 0.465763270000000E+02, -0.122269498000000E+03),\n new google.maps.LatLng( 0.465874630000000E+02, -0.122279269000000E+03),\n new google.maps.LatLng( 0.465899770000000E+02, -0.122280728000000E+03),\n new google.maps.LatLng( 0.465967290000000E+02, -0.122278785000000E+03),\n new google.maps.LatLng( 0.465955310000000E+02, -0.122277242000000E+03),\n new google.maps.LatLng( 0.465934740000000E+02, -0.122277476000000E+03),\n new google.maps.LatLng( 0.465921010000000E+02, -0.122274227000000E+03),\n new google.maps.LatLng( 0.465965130000000E+02, -0.122274291000000E+03),\n new google.maps.LatLng( 0.466011990000000E+02, -0.122275282000000E+03),\n new google.maps.LatLng( 0.466061830000000E+02, -0.122278459000000E+03),\n new google.maps.LatLng( 0.466067610000000E+02, -0.122286924000000E+03),\n new google.maps.LatLng( 0.466056170000000E+02, -0.122288704000000E+03),\n new google.maps.LatLng( 0.466058010000000E+02, -0.122290484000000E+03),\n new google.maps.LatLng( 0.466095410000000E+02, -0.122296201000000E+03),\n new google.maps.LatLng( 0.466108000000000E+02, -0.122300687000000E+03),\n new google.maps.LatLng( 0.466144220000000E+02, -0.122300545000000E+03),\n new google.maps.LatLng( 0.466161630000000E+02, -0.122302454000000E+03),\n new google.maps.LatLng( 0.466163130000000E+02, -0.122305026000000E+03),\n new google.maps.LatLng( 0.466152850000000E+02, -0.122310301000000E+03),\n new google.maps.LatLng( 0.466204970000000E+02, -0.122319855000000E+03),\n new google.maps.LatLng( 0.466224620000000E+02, -0.122319590000000E+03),\n new google.maps.LatLng( 0.466232850000000E+02, -0.122314846000000E+03),\n new google.maps.LatLng( 0.466220510000000E+02, -0.122306087000000E+03),\n new google.maps.LatLng( 0.466227360000000E+02, -0.122304727000000E+03),\n new google.maps.LatLng( 0.466238110000000E+02, -0.122304162000000E+03),\n new google.maps.LatLng( 0.466254010000000E+02, -0.122301410000000E+03),\n new google.maps.LatLng( 0.466232600000000E+02, -0.122291821000000E+03),\n new google.maps.LatLng( 0.466217510000000E+02, -0.122289832000000E+03),\n new google.maps.LatLng( 0.466213160000000E+02, -0.122283993000000E+03),\n new google.maps.LatLng( 0.466224820000000E+02, -0.122284191000000E+03),\n new google.maps.LatLng( 0.466260850000000E+02, -0.122286845000000E+03),\n new google.maps.LatLng( 0.466356170000000E+02, -0.122287869000000E+03),\n new google.maps.LatLng( 0.466360960000000E+02, -0.122287338000000E+03),\n new google.maps.LatLng( 0.466352730000000E+02, -0.122285845000000E+03),\n new google.maps.LatLng( 0.466351810000000E+02, -0.122284385000000E+03),\n new google.maps.LatLng( 0.466357750000000E+02, -0.122283257000000E+03),\n new google.maps.LatLng( 0.466370780000000E+02, -0.122283190000000E+03),\n new google.maps.LatLng( 0.466416280000000E+02, -0.122286871000000E+03),\n new google.maps.LatLng( 0.466429310000000E+02, -0.122288663000000E+03),\n new google.maps.LatLng( 0.466427270000000E+02, -0.122298155000000E+03),\n new google.maps.LatLng( 0.466434140000000E+02, -0.122306252000000E+03),\n new google.maps.LatLng( 0.466426590000000E+02, -0.122306584000000E+03),\n new google.maps.LatLng( 0.466421340000000E+02, -0.122305489000000E+03),\n new google.maps.LatLng( 0.466419050000000E+02, -0.122301142000000E+03),\n new google.maps.LatLng( 0.466382010000000E+02, -0.122298886000000E+03),\n new google.maps.LatLng( 0.466386360000000E+02, -0.122302404000000E+03),\n new google.maps.LatLng( 0.466380420000000E+02, -0.122310103000000E+03),\n new google.maps.LatLng( 0.466364880000000E+02, -0.122313587000000E+03),\n new google.maps.LatLng( 0.466370590000000E+02, -0.122316905000000E+03),\n new google.maps.LatLng( 0.466376080000000E+02, -0.122317635000000E+03),\n new google.maps.LatLng( 0.466412650000000E+02, -0.122318498000000E+03),\n new google.maps.LatLng( 0.466442140000000E+02, -0.122317736000000E+03),\n new google.maps.LatLng( 0.466465450000000E+02, -0.122316442000000E+03),\n new google.maps.LatLng( 0.466465450000000E+02, -0.122316774000000E+03),\n new google.maps.LatLng( 0.466436190000000E+02, -0.122322051000000E+03),\n new google.maps.LatLng( 0.466411050000000E+02, -0.122323311000000E+03),\n new google.maps.LatLng( 0.466391390000000E+02, -0.122322945000000E+03),\n new google.maps.LatLng( 0.466379510000000E+02, -0.122321750000000E+03),\n new google.maps.LatLng( 0.466358940000000E+02, -0.122321551000000E+03),\n new google.maps.LatLng( 0.466358480000000E+02, -0.122325068000000E+03),\n new google.maps.LatLng( 0.466370360000000E+02, -0.122328056000000E+03),\n new google.maps.LatLng( 0.466361440000000E+02, -0.122329914000000E+03),\n new google.maps.LatLng( 0.466333100000000E+02, -0.122328817000000E+03),\n new google.maps.LatLng( 0.466312760000000E+02, -0.122326826000000E+03),\n new google.maps.LatLng( 0.466299270000000E+02, -0.122327788000000E+03),\n new google.maps.LatLng( 0.466298130000000E+02, -0.122328949000000E+03),\n new google.maps.LatLng( 0.466314350000000E+02, -0.122332268000000E+03),\n new google.maps.LatLng( 0.466336520000000E+02, -0.122334625000000E+03),\n new google.maps.LatLng( 0.466349770000000E+02, -0.122335123000000E+03),\n new google.maps.LatLng( 0.466359820000000E+02, -0.122340499000000E+03),\n new google.maps.LatLng( 0.466348380000000E+02, -0.122344016000000E+03),\n new google.maps.LatLng( 0.466336260000000E+02, -0.122346139000000E+03),\n new google.maps.LatLng( 0.466329630000000E+02, -0.122346769000000E+03),\n new google.maps.LatLng( 0.466295800000000E+02, -0.122347232000000E+03),\n new google.maps.LatLng( 0.466267910000000E+02, -0.122349519000000E+03),\n new google.maps.LatLng( 0.466251780000000E+02, -0.122356551000000E+03),\n new google.maps.LatLng( 0.466239830000000E+02, -0.122365440000000E+03),\n new google.maps.LatLng( 0.466232280000000E+02, -0.122367563000000E+03),\n new google.maps.LatLng( 0.466208940000000E+02, -0.122370944000000E+03),\n new google.maps.LatLng( 0.466159550000000E+02, -0.122375019000000E+03),\n new google.maps.LatLng( 0.466135560000000E+02, -0.122380772000000E+03),\n new google.maps.LatLng( 0.466122070000000E+02, -0.122379778000000E+03),\n new google.maps.LatLng( 0.466106510000000E+02, -0.122377193000000E+03),\n new google.maps.LatLng( 0.466087320000000E+02, -0.122375277000000E+03),\n new google.maps.LatLng( 0.466054830000000E+02, -0.122373937000000E+03),\n new google.maps.LatLng( 0.465987460000000E+02, -0.122385265000000E+03),\n new google.maps.LatLng( 0.466004400000000E+02, -0.122391033000000E+03),\n new google.maps.LatLng( 0.466006390000000E+02, -0.122393702000000E+03),\n new google.maps.LatLng( 0.465986710000000E+02, -0.122394557000000E+03),\n new google.maps.LatLng( 0.465989290000000E+02, -0.122396327000000E+03),\n new google.maps.LatLng( 0.466080990000000E+02, -0.122409960000000E+03),\n new google.maps.LatLng( 0.466121500000000E+02, -0.122413911000000E+03),\n new google.maps.LatLng( 0.466137510000000E+02, -0.122419284000000E+03),\n new google.maps.LatLng( 0.466132260000000E+02, -0.122423828000000E+03),\n new google.maps.LatLng( 0.466170220000000E+02, -0.122439086000000E+03),\n new google.maps.LatLng( 0.466175020000000E+02, -0.122439916000000E+03),\n new google.maps.LatLng( 0.466180050000000E+02, -0.122439949000000E+03),\n new google.maps.LatLng( 0.466214330000000E+02, -0.122438523000000E+03),\n new google.maps.LatLng( 0.466228280000000E+02, -0.122441940000000E+03),\n new google.maps.LatLng( 0.466210450000000E+02, -0.122445224000000E+03),\n new google.maps.LatLng( 0.466182100000000E+02, -0.122448608000000E+03),\n new google.maps.LatLng( 0.466178210000000E+02, -0.122450830000000E+03),\n new google.maps.LatLng( 0.466153990000000E+02, -0.122455992000000E+03),\n new google.maps.LatLng( 0.466136990000000E+02, -0.122457133000000E+03),\n new google.maps.LatLng( 0.466092030000000E+02, -0.122458888000000E+03),\n new google.maps.LatLng( 0.466090660000000E+02, -0.122458556000000E+03),\n new google.maps.LatLng( 0.466074200000000E+02, -0.122458622000000E+03),\n new google.maps.LatLng( 0.466046300000000E+02, -0.122459236000000E+03),\n new google.maps.LatLng( 0.466033950000000E+02, -0.122467475000000E+03),\n new google.maps.LatLng( 0.466041490000000E+02, -0.122469433000000E+03),\n new google.maps.LatLng( 0.466066170000000E+02, -0.122472551000000E+03),\n new google.maps.LatLng( 0.466065370000000E+02, -0.122473455000000E+03),\n new google.maps.LatLng( 0.466065370000000E+02, -0.122473455000000E+03),\n new google.maps.LatLng( 0.466076910000000E+02, -0.122473647000000E+03),\n new google.maps.LatLng( 0.466096110000000E+02, -0.122472653000000E+03),\n new google.maps.LatLng( 0.466160820000000E+02, -0.122464762000000E+03),\n new google.maps.LatLng( 0.466193750000000E+02, -0.122458925000000E+03),\n new google.maps.LatLng( 0.466272280000000E+02, -0.122452891000000E+03),\n new google.maps.LatLng( 0.466264050000000E+02, -0.122455445000000E+03),\n new google.maps.LatLng( 0.466233750000000E+02, -0.122458794000000E+03),\n new google.maps.LatLng( 0.466215910000000E+02, -0.122465196000000E+03),\n new google.maps.LatLng( 0.466191440000000E+02, -0.122467517000000E+03),\n new google.maps.LatLng( 0.466165610000000E+02, -0.122468942000000E+03),\n new google.maps.LatLng( 0.466155540000000E+02, -0.122473718000000E+03),\n new google.maps.LatLng( 0.466156670000000E+02, -0.122478098000000E+03),\n new google.maps.LatLng( 0.466140440000000E+02, -0.122479191000000E+03),\n new google.maps.LatLng( 0.466128090000000E+02, -0.122479057000000E+03),\n new google.maps.LatLng( 0.466123070000000E+02, -0.122478029000000E+03),\n new google.maps.LatLng( 0.466119180000000E+02, -0.122478294000000E+03),\n new google.maps.LatLng( 0.466112540000000E+02, -0.122480582000000E+03),\n new google.maps.LatLng( 0.466120300000000E+02, -0.122483667000000E+03),\n new google.maps.LatLng( 0.466135840000000E+02, -0.122485659000000E+03),\n new google.maps.LatLng( 0.466135840000000E+02, -0.122485659000000E+03),\n new google.maps.LatLng( 0.466154360000000E+02, -0.122484201000000E+03),\n new google.maps.LatLng( 0.466182700000000E+02, -0.122485431000000E+03),\n new google.maps.LatLng( 0.466194590000000E+02, -0.122484967000000E+03),\n new google.maps.LatLng( 0.466259650000000E+02, -0.122477144000000E+03),\n new google.maps.LatLng( 0.466342640000000E+02, -0.122474429000000E+03),\n new google.maps.LatLng( 0.466355890000000E+02, -0.122474529000000E+03),\n new google.maps.LatLng( 0.466402960000000E+02, -0.122478548000000E+03),\n new google.maps.LatLng( 0.466423520000000E+02, -0.122481935000000E+03),\n new google.maps.LatLng( 0.466444770000000E+02, -0.122482633000000E+03),\n new google.maps.LatLng( 0.466476350000000E+02, -0.122471849000000E+03),\n new google.maps.LatLng( 0.466508590000000E+02, -0.122469594000000E+03),\n new google.maps.LatLng( 0.466524140000000E+02, -0.122467238000000E+03),\n new google.maps.LatLng( 0.466527350000000E+02, -0.122464948000000E+03),\n new google.maps.LatLng( 0.466515920000000E+02, -0.122462922000000E+03),\n new google.maps.LatLng( 0.466514100000000E+02, -0.122461097000000E+03),\n new google.maps.LatLng( 0.466553420000000E+02, -0.122455223000000E+03),\n new google.maps.LatLng( 0.466560970000000E+02, -0.122454692000000E+03),\n new google.maps.LatLng( 0.466565300000000E+02, -0.122458343000000E+03),\n new google.maps.LatLng( 0.466578100000000E+02, -0.122460103000000E+03),\n new google.maps.LatLng( 0.466586790000000E+02, -0.122459772000000E+03),\n new google.maps.LatLng( 0.466620168668945E+02, -0.122453784892773E+03),\n new google.maps.LatLng( 0.466637310000000E+02, -0.122451739000000E+03),\n new google.maps.LatLng( 0.466655140000000E+02, -0.122452271000000E+03),\n new google.maps.LatLng( 0.466661080000000E+02, -0.122453532000000E+03),\n new google.maps.LatLng( 0.466630910000000E+02, -0.122453664000000E+03),\n new google.maps.LatLng( 0.466630220000000E+02, -0.122454395000000E+03),\n new google.maps.LatLng( 0.466654000000000E+02, -0.122455524000000E+03),\n new google.maps.LatLng( 0.466712510000000E+02, -0.122456921000000E+03),\n new google.maps.LatLng( 0.466714800000000E+02, -0.122455825000000E+03),\n new google.maps.LatLng( 0.466702230000000E+02, -0.122449516000000E+03),\n new google.maps.LatLng( 0.466712750000000E+02, -0.122448752000000E+03),\n new google.maps.LatLng( 0.466769210000000E+02, -0.122450281000000E+03),\n new google.maps.LatLng( 0.466778350000000E+02, -0.122451809000000E+03),\n new google.maps.LatLng( 0.466801210000000E+02, -0.122449883000000E+03),\n new google.maps.LatLng( 0.466839840000000E+02, -0.122443607000000E+03),\n new google.maps.LatLng( 0.466911610000000E+02, -0.122437694000000E+03),\n new google.maps.LatLng( 0.466962130000000E+02, -0.122436532000000E+03),\n new google.maps.LatLng( 0.466981100000000E+02, -0.122437562000000E+03),\n new google.maps.LatLng( 0.467030470000000E+02, -0.122438094000000E+03),\n new google.maps.LatLng( 0.467042820000000E+02, -0.122436964000000E+03),\n new google.maps.LatLng( 0.467159160000000E+02, -0.122434438000000E+03),\n new google.maps.LatLng( 0.467207390000000E+02, -0.122431945000000E+03),\n new google.maps.LatLng( 0.467251510000000E+02, -0.122438691000000E+03),\n new google.maps.LatLng( 0.467266130000000E+02, -0.122443611000000E+03),\n new google.maps.LatLng( 0.467263840000000E+02, -0.122445838000000E+03),\n new google.maps.LatLng( 0.467283950000000E+02, -0.122449296000000E+03),\n new google.maps.LatLng( 0.467390470000000E+02, -0.122444776000000E+03),\n new google.maps.LatLng( 0.467486020000000E+02, -0.122444145000000E+03),\n new google.maps.LatLng( 0.467631060000000E+02, -0.122441744000000E+03),\n new google.maps.LatLng( 0.467630840000000E+02, -0.122393002000000E+03),\n new google.maps.LatLng( 0.467630840000000E+02, -0.122392392000000E+03),\n new google.maps.LatLng( 0.467631610000000E+02, -0.122341242000000E+03),\n new google.maps.LatLng( 0.467631610000000E+02, -0.122341242000000E+03),\n new google.maps.LatLng( 0.467628880000000E+02, -0.122253024000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.488128210000000E+02, -0.117994745000000E+03),\n new google.maps.LatLng( 0.488105820000000E+02, -0.117993037000000E+03),\n new google.maps.LatLng( 0.488118710000000E+02, -0.117989929000000E+03),\n new google.maps.LatLng( 0.488131710000000E+02, -0.117989919000000E+03),\n new google.maps.LatLng( 0.488141650000000E+02, -0.117986141000000E+03),\n new google.maps.LatLng( 0.488153660000000E+02, -0.117974060000000E+03),\n new google.maps.LatLng( 0.488135420000000E+02, -0.117959459000000E+03),\n new google.maps.LatLng( 0.488105490000000E+02, -0.117953784000000E+03),\n new google.maps.LatLng( 0.488096360000000E+02, -0.117949944000000E+03),\n new google.maps.LatLng( 0.488097060000000E+02, -0.117947211000000E+03),\n new google.maps.LatLng( 0.488126990000000E+02, -0.117934377000000E+03),\n new google.maps.LatLng( 0.488076950000000E+02, -0.117939947000000E+03),\n new google.maps.LatLng( 0.488068960000000E+02, -0.117937491000000E+03),\n new google.maps.LatLng( 0.488073070000000E+02, -0.117931437000000E+03),\n new google.maps.LatLng( 0.488069640000000E+02, -0.117929639000000E+03),\n new google.maps.LatLng( 0.488054560000000E+02, -0.117928221000000E+03),\n new google.maps.LatLng( 0.488054580000000E+02, -0.117924396000000E+03),\n new google.maps.LatLng( 0.488071920000000E+02, -0.117921821000000E+03),\n new google.maps.LatLng( 0.488080130000000E+02, -0.117916286000000E+03),\n new google.maps.LatLng( 0.488066870000000E+02, -0.117910440000000E+03),\n new google.maps.LatLng( 0.488060470000000E+02, -0.117910752000000E+03),\n new google.maps.LatLng( 0.488054650000000E+02, -0.117913899000000E+03),\n new google.maps.LatLng( 0.488054870000000E+02, -0.117907380000000E+03),\n new google.maps.LatLng( 0.488054870000000E+02, -0.117907380000000E+03),\n new google.maps.LatLng( 0.488001500000000E+02, -0.117901763000000E+03),\n new google.maps.LatLng( 0.487997150000000E+02, -0.117898512000000E+03),\n new google.maps.LatLng( 0.487987770000000E+02, -0.117896784000000E+03),\n new google.maps.LatLng( 0.487977720000000E+02, -0.117896093000000E+03),\n new google.maps.LatLng( 0.487971090000000E+02, -0.117895989000000E+03),\n new google.maps.LatLng( 0.487928370000000E+02, -0.117897757000000E+03),\n new google.maps.LatLng( 0.487871480000000E+02, -0.117897900000000E+03),\n new google.maps.LatLng( 0.487855250000000E+02, -0.117897002000000E+03),\n new google.maps.LatLng( 0.487804980000000E+02, -0.117895589000000E+03),\n new google.maps.LatLng( 0.487741910000000E+02, -0.117895732000000E+03),\n new google.maps.LatLng( 0.487677230000000E+02, -0.117892488000000E+03),\n new google.maps.LatLng( 0.487608460000000E+02, -0.117893081000000E+03),\n new google.maps.LatLng( 0.487562540000000E+02, -0.117895263000000E+03),\n new google.maps.LatLng( 0.487560260000000E+02, -0.117895954000000E+03),\n new google.maps.LatLng( 0.487532160000000E+02, -0.117897546000000E+03),\n new google.maps.LatLng( 0.487488570000000E+02, -0.117896895000000E+03),\n new google.maps.LatLng( 0.487470290000000E+02, -0.117895238000000E+03),\n new google.maps.LatLng( 0.487467540000000E+02, -0.117894409000000E+03),\n new google.maps.LatLng( 0.487477350000000E+02, -0.117889399000000E+03),\n new google.maps.LatLng( 0.487494490000000E+02, -0.117884594000000E+03),\n new google.maps.LatLng( 0.487464990000000E+02, -0.117883837000000E+03),\n new google.maps.LatLng( 0.487443740000000E+02, -0.117884323000000E+03),\n new google.maps.LatLng( 0.487402370000000E+02, -0.117881944000000E+03),\n new google.maps.LatLng( 0.487373550000000E+02, -0.117876096000000E+03),\n new google.maps.LatLng( 0.487357610000000E+02, -0.117885817000000E+03),\n new google.maps.LatLng( 0.487356710000000E+02, -0.117889134000000E+03),\n new google.maps.LatLng( 0.487423910000000E+02, -0.117896175000000E+03),\n new google.maps.LatLng( 0.487463910000000E+02, -0.117902045000000E+03),\n new google.maps.LatLng( 0.487472840000000E+02, -0.117906639000000E+03),\n new google.maps.LatLng( 0.487468270000000E+02, -0.117908056000000E+03),\n new google.maps.LatLng( 0.487448850000000E+02, -0.117909750000000E+03),\n new google.maps.LatLng( 0.487346280000000E+02, -0.117930203000000E+03),\n new google.maps.LatLng( 0.487291900000000E+02, -0.117944088000000E+03),\n new google.maps.LatLng( 0.487219470000000E+02, -0.117944363000000E+03),\n new google.maps.LatLng( 0.487220620000000E+02, -0.117935040000000E+03),\n new google.maps.LatLng( 0.487230440000000E+02, -0.117934004000000E+03),\n new google.maps.LatLng( 0.487254890000000E+02, -0.117934107000000E+03),\n new google.maps.LatLng( 0.487272260000000E+02, -0.117933140000000E+03),\n new google.maps.LatLng( 0.487292130000000E+02, -0.117927994000000E+03),\n new google.maps.LatLng( 0.487287790000000E+02, -0.117926992000000E+03),\n new google.maps.LatLng( 0.487281620000000E+02, -0.117926751000000E+03),\n new google.maps.LatLng( 0.487266770000000E+02, -0.117927062000000E+03),\n new google.maps.LatLng( 0.487255800000000E+02, -0.117927960000000E+03),\n new google.maps.LatLng( 0.487233640000000E+02, -0.117928168000000E+03),\n new google.maps.LatLng( 0.487221750000000E+02, -0.117924956000000E+03),\n new google.maps.LatLng( 0.487223120000000E+02, -0.117917946000000E+03),\n new google.maps.LatLng( 0.487210090000000E+02, -0.117916117000000E+03),\n new google.maps.LatLng( 0.487170100000000E+02, -0.117913770000000E+03),\n new google.maps.LatLng( 0.487146560000000E+02, -0.117913012000000E+03),\n new google.maps.LatLng( 0.487091720000000E+02, -0.117908871000000E+03),\n new google.maps.LatLng( 0.487068180000000E+02, -0.117906179000000E+03),\n new google.maps.LatLng( 0.487062910000000E+02, -0.117903729000000E+03),\n new google.maps.LatLng( 0.487036850000000E+02, -0.117899277000000E+03),\n new google.maps.LatLng( 0.486998450000000E+02, -0.117895311000000E+03),\n new google.maps.LatLng( 0.486873230000000E+02, -0.117893147000000E+03),\n new google.maps.LatLng( 0.486852900000000E+02, -0.117893391000000E+03),\n new google.maps.LatLng( 0.486798770000000E+02, -0.117902539000000E+03),\n new google.maps.LatLng( 0.486865720000000E+02, -0.117905536000000E+03),\n new google.maps.LatLng( 0.486859790000000E+02, -0.117907158000000E+03),\n new google.maps.LatLng( 0.486788500000000E+02, -0.117909474000000E+03),\n new google.maps.LatLng( 0.486772290000000E+02, -0.117915617000000E+03),\n new google.maps.LatLng( 0.486727980000000E+02, -0.117920655000000E+03),\n new google.maps.LatLng( 0.486562550000000E+02, -0.117929869000000E+03),\n new google.maps.LatLng( 0.486557060000000E+02, -0.117928972000000E+03),\n new google.maps.LatLng( 0.486535130000000E+02, -0.117928594000000E+03),\n new google.maps.LatLng( 0.486482930000000E+02, -0.117931227000000E+03),\n new google.maps.LatLng( 0.486483040000000E+02, -0.117933146000000E+03),\n new google.maps.LatLng( 0.486539250000000E+02, -0.117933215000000E+03),\n new google.maps.LatLng( 0.486580200000000E+02, -0.117935807000000E+03),\n new google.maps.LatLng( 0.486588670000000E+02, -0.117937030000000E+03),\n new google.maps.LatLng( 0.486576420000000E+02, -0.117938300000000E+03),\n new google.maps.LatLng( 0.486619440000000E+02, -0.117947389000000E+03),\n new google.maps.LatLng( 0.486637030000000E+02, -0.117949977000000E+03),\n new google.maps.LatLng( 0.486686840000000E+02, -0.117954291000000E+03),\n new google.maps.LatLng( 0.486697580000000E+02, -0.117955981000000E+03),\n new google.maps.LatLng( 0.486625150000000E+02, -0.117954495000000E+03),\n new google.maps.LatLng( 0.486589960000000E+02, -0.117952873000000E+03),\n new google.maps.LatLng( 0.486508400000000E+02, -0.117947732000000E+03),\n new google.maps.LatLng( 0.486508170000000E+02, -0.117945146000000E+03),\n new google.maps.LatLng( 0.486479150000000E+02, -0.117943628000000E+03),\n new google.maps.LatLng( 0.486461560000000E+02, -0.117943697000000E+03),\n new google.maps.LatLng( 0.486447850000000E+02, -0.117946214000000E+03),\n new google.maps.LatLng( 0.486437790000000E+02, -0.117946076000000E+03),\n new google.maps.LatLng( 0.486381130000000E+02, -0.117942490000000E+03),\n new google.maps.LatLng( 0.486343430000000E+02, -0.117937457000000E+03),\n new google.maps.LatLng( 0.486327660000000E+02, -0.117936733000000E+03),\n new google.maps.LatLng( 0.486333620000000E+02, -0.117944353000000E+03),\n new google.maps.LatLng( 0.486361520000000E+02, -0.117945357000000E+03),\n new google.maps.LatLng( 0.486364410000000E+02, -0.117949395000000E+03),\n new google.maps.LatLng( 0.486327180000000E+02, -0.117962379000000E+03),\n new google.maps.LatLng( 0.486313010000000E+02, -0.117963378000000E+03),\n new google.maps.LatLng( 0.486289940000000E+02, -0.117963722000000E+03),\n new google.maps.LatLng( 0.486280780000000E+02, -0.117964859000000E+03),\n new google.maps.LatLng( 0.486291290000000E+02, -0.117967272000000E+03),\n new google.maps.LatLng( 0.486324880000000E+02, -0.117968136000000E+03),\n new google.maps.LatLng( 0.486339500000000E+02, -0.117969136000000E+03),\n new google.maps.LatLng( 0.486342700000000E+02, -0.117970102000000E+03),\n new google.maps.LatLng( 0.486342700000000E+02, -0.117970102000000E+03),\n new google.maps.LatLng( 0.486352750000000E+02, -0.117970343000000E+03),\n new google.maps.LatLng( 0.486384050000000E+02, -0.117973448000000E+03),\n new google.maps.LatLng( 0.486432490000000E+02, -0.117973797000000E+03),\n new google.maps.LatLng( 0.486476120000000E+02, -0.117975455000000E+03),\n new google.maps.LatLng( 0.486488910000000E+02, -0.117977801000000E+03),\n new google.maps.LatLng( 0.486515840000000E+02, -0.117986321000000E+03),\n new google.maps.LatLng( 0.486519250000000E+02, -0.117989390000000E+03),\n new google.maps.LatLng( 0.486515590000000E+02, -0.117991976000000E+03),\n new google.maps.LatLng( 0.486556950000000E+02, -0.117990532000000E+03),\n new google.maps.LatLng( 0.486569530000000E+02, -0.117988188000000E+03),\n new google.maps.LatLng( 0.486604270000000E+02, -0.117985260000000E+03),\n new google.maps.LatLng( 0.486639010000000E+02, -0.117982987000000E+03),\n new google.maps.LatLng( 0.486650660000000E+02, -0.117982953000000E+03),\n new google.maps.LatLng( 0.486669850000000E+02, -0.117983955000000E+03),\n new google.maps.LatLng( 0.486705710000000E+02, -0.117987477000000E+03),\n new google.maps.LatLng( 0.486706840000000E+02, -0.117989064000000E+03),\n new google.maps.LatLng( 0.486726240000000E+02, -0.117994103000000E+03),\n new google.maps.LatLng( 0.486842750000000E+02, -0.117998637000000E+03),\n new google.maps.LatLng( 0.486857590000000E+02, -0.117999433000000E+03),\n new google.maps.LatLng( 0.486864440000000E+02, -0.118000688000000E+03),\n new google.maps.LatLng( 0.486875190000000E+02, -0.117998779000000E+03),\n new google.maps.LatLng( 0.486898760000000E+02, -0.117990982000000E+03),\n new google.maps.LatLng( 0.486918690000000E+02, -0.117982045000000E+03),\n new google.maps.LatLng( 0.486932630000000E+02, -0.117981563000000E+03),\n new google.maps.LatLng( 0.486958910000000E+02, -0.117979495000000E+03),\n new google.maps.LatLng( 0.486957560000000E+02, -0.117975836000000E+03),\n new google.maps.LatLng( 0.486974930000000E+02, -0.117973594000000E+03),\n new google.maps.LatLng( 0.487048280000000E+02, -0.117971977000000E+03),\n new google.maps.LatLng( 0.487071590000000E+02, -0.117970839000000E+03),\n new google.maps.LatLng( 0.487078220000000E+02, -0.117969908000000E+03),\n new google.maps.LatLng( 0.487082110000000E+02, -0.117967077000000E+03),\n new google.maps.LatLng( 0.487093300000000E+02, -0.117966353000000E+03),\n new google.maps.LatLng( 0.487115010000000E+02, -0.117966492000000E+03),\n new google.maps.LatLng( 0.487182150000000E+02, -0.117978030000000E+03),\n new google.maps.LatLng( 0.487196740000000E+02, -0.117986042000000E+03),\n new google.maps.LatLng( 0.487198090000000E+02, -0.117990669000000E+03),\n new google.maps.LatLng( 0.487197400000000E+02, -0.117992119000000E+03),\n new google.maps.LatLng( 0.487144620000000E+02, -0.117992010000000E+03),\n new google.maps.LatLng( 0.487128400000000E+02, -0.117992630000000E+03),\n new google.maps.LatLng( 0.487121530000000E+02, -0.117994079000000E+03),\n new google.maps.LatLng( 0.487115110000000E+02, -0.117998739000000E+03),\n new google.maps.LatLng( 0.487111020000000E+02, -0.118004803000000E+03),\n new google.maps.LatLng( 0.487138230000000E+02, -0.118009115000000E+03),\n new google.maps.LatLng( 0.487162470000000E+02, -0.118015640000000E+03),\n new google.maps.LatLng( 0.487169350000000E+02, -0.118022993000000E+03),\n new google.maps.LatLng( 0.487144670000000E+02, -0.118023789000000E+03),\n new google.maps.LatLng( 0.487087540000000E+02, -0.118021032000000E+03),\n new google.maps.LatLng( 0.487055080000000E+02, -0.118017168000000E+03),\n new google.maps.LatLng( 0.487012120000000E+02, -0.118014204000000E+03),\n new google.maps.LatLng( 0.486913410000000E+02, -0.118011312000000E+03),\n new google.maps.LatLng( 0.486842350000000E+02, -0.118013149000000E+03),\n new google.maps.LatLng( 0.486801460000000E+02, -0.118015258000000E+03),\n new google.maps.LatLng( 0.486737740000000E+02, -0.118024407000000E+03),\n new google.maps.LatLng( 0.486702570000000E+02, -0.118034172000000E+03),\n new google.maps.LatLng( 0.486700290000000E+02, -0.118036933000000E+03),\n new google.maps.LatLng( 0.486661890000000E+02, -0.118049531000000E+03),\n new google.maps.LatLng( 0.486639260000000E+02, -0.118054245000000E+03),\n new google.maps.LatLng( 0.486623820000000E+02, -0.118059666000000E+03),\n new google.maps.LatLng( 0.486620570000000E+02, -0.118075603000000E+03),\n new google.maps.LatLng( 0.486589480000000E+02, -0.118082120000000E+03),\n new google.maps.LatLng( 0.486565710000000E+02, -0.118085292000000E+03),\n new google.maps.LatLng( 0.486549260000000E+02, -0.118085705000000E+03),\n new google.maps.LatLng( 0.486498320000000E+02, -0.118083220000000E+03),\n new google.maps.LatLng( 0.486475700000000E+02, -0.118081013000000E+03),\n new google.maps.LatLng( 0.486455370000000E+02, -0.118079909000000E+03),\n new google.maps.LatLng( 0.486440510000000E+02, -0.118080081000000E+03),\n new google.maps.LatLng( 0.486401210000000E+02, -0.118081906000000E+03),\n new google.maps.LatLng( 0.486385220000000E+02, -0.118082078000000E+03),\n new google.maps.LatLng( 0.486331750000000E+02, -0.118080835000000E+03),\n new google.maps.LatLng( 0.486310960000000E+02, -0.118078939000000E+03),\n new google.maps.LatLng( 0.486310960000000E+02, -0.118078939000000E+03),\n new google.maps.LatLng( 0.486324440000000E+02, -0.118081283000000E+03),\n new google.maps.LatLng( 0.486388410000000E+02, -0.118082906000000E+03),\n new google.maps.LatLng( 0.486402350000000E+02, -0.118082631000000E+03),\n new google.maps.LatLng( 0.486444630000000E+02, -0.118080426000000E+03),\n new google.maps.LatLng( 0.486457650000000E+02, -0.118080495000000E+03),\n new google.maps.LatLng( 0.486486430000000E+02, -0.118083013000000E+03),\n new google.maps.LatLng( 0.486546520000000E+02, -0.118086188000000E+03),\n new google.maps.LatLng( 0.486559320000000E+02, -0.118086154000000E+03),\n new google.maps.LatLng( 0.486575770000000E+02, -0.118084913000000E+03),\n new google.maps.LatLng( 0.486603650000000E+02, -0.118080603000000E+03),\n new google.maps.LatLng( 0.486644790000000E+02, -0.118070601000000E+03),\n new google.maps.LatLng( 0.486664450000000E+02, -0.118062116000000E+03),\n new google.maps.LatLng( 0.486665820000000E+02, -0.118056701000000E+03),\n new google.maps.LatLng( 0.486679760000000E+02, -0.118052353000000E+03),\n new google.maps.LatLng( 0.486682730000000E+02, -0.118053008000000E+03),\n new google.maps.LatLng( 0.486667880000000E+02, -0.118066221000000E+03),\n new google.maps.LatLng( 0.486669250000000E+02, -0.118066600000000E+03),\n new google.maps.LatLng( 0.486680220000000E+02, -0.118064600000000E+03),\n new google.maps.LatLng( 0.486719950000000E+02, -0.118041382000000E+03),\n new google.maps.LatLng( 0.486730230000000E+02, -0.118037035000000E+03),\n new google.maps.LatLng( 0.486769730000000E+02, -0.118025888000000E+03),\n new google.maps.LatLng( 0.486817230000000E+02, -0.118017500000000E+03),\n new google.maps.LatLng( 0.486864290000000E+02, -0.118014493000000E+03),\n new google.maps.LatLng( 0.486929400000000E+02, -0.118014625000000E+03),\n new google.maps.LatLng( 0.486975440000000E+02, -0.118016120000000E+03),\n new google.maps.LatLng( 0.486971000000000E+02, -0.118017625000000E+03),\n new google.maps.LatLng( 0.487000260000000E+02, -0.118020625000000E+03),\n new google.maps.LatLng( 0.487046190000000E+02, -0.118022796000000E+03),\n new google.maps.LatLng( 0.487050990000000E+02, -0.118022312000000E+03),\n new google.maps.LatLng( 0.487064250000000E+02, -0.118023899000000E+03),\n new google.maps.LatLng( 0.487143570000000E+02, -0.118036427000000E+03),\n new google.maps.LatLng( 0.487197270000000E+02, -0.118040672000000E+03),\n new google.maps.LatLng( 0.487245710000000E+02, -0.118043363000000E+03),\n new google.maps.LatLng( 0.487257820000000E+02, -0.118043397000000E+03),\n new google.maps.LatLng( 0.487295070000000E+02, -0.118045918000000E+03),\n new google.maps.LatLng( 0.487360190000000E+02, -0.118052410000000E+03),\n new google.maps.LatLng( 0.487372990000000E+02, -0.118053169000000E+03),\n new google.maps.LatLng( 0.487443130000000E+02, -0.118054274000000E+03),\n new google.maps.LatLng( 0.487481290000000E+02, -0.118054066000000E+03),\n new google.maps.LatLng( 0.487529250000000E+02, -0.118052922000000E+03),\n new google.maps.LatLng( 0.487546840000000E+02, -0.118051954000000E+03),\n new google.maps.LatLng( 0.487558270000000E+02, -0.118050399000000E+03),\n new google.maps.LatLng( 0.487670870000000E+02, -0.118031076000000E+03),\n new google.maps.LatLng( 0.487743700000000E+02, -0.118011782000000E+03),\n new google.maps.LatLng( 0.487758530000000E+02, -0.118008980000000E+03),\n new google.maps.LatLng( 0.487784570000000E+02, -0.118006142000000E+03),\n new google.maps.LatLng( 0.487817910000000E+02, -0.118003511000000E+03),\n new google.maps.LatLng( 0.487870450000000E+02, -0.118001099000000E+03),\n new google.maps.LatLng( 0.487946780000000E+02, -0.118001597000000E+03),\n new google.maps.LatLng( 0.487957530000000E+02, -0.118004394000000E+03),\n new google.maps.LatLng( 0.487981530000000E+02, -0.118006501000000E+03),\n new google.maps.LatLng( 0.488029530000000E+02, -0.118009713000000E+03),\n new google.maps.LatLng( 0.488044380000000E+02, -0.118009331000000E+03),\n new google.maps.LatLng( 0.488069730000000E+02, -0.118007218000000E+03),\n new google.maps.LatLng( 0.488108300000000E+02, -0.118001100000000E+03),\n new google.maps.LatLng( 0.488128210000000E+02, -0.117994745000000E+03),\n new google.maps.LatLng( 0.486654400000000E+02, -0.118063254000000E+03),\n new google.maps.LatLng( 0.486641590000000E+02, -0.118070499000000E+03),\n new google.maps.LatLng( 0.486632600000000E+02, -0.118070864000000E+03),\n new google.maps.LatLng( 0.486624680000000E+02, -0.118068359000000E+03),\n new google.maps.LatLng( 0.486645260000000E+02, -0.118057046000000E+03),\n new google.maps.LatLng( 0.486650060000000E+02, -0.118057149000000E+03),\n new google.maps.LatLng( 0.486658510000000E+02, -0.118060495000000E+03),\n new google.maps.LatLng( 0.486654400000000E+02, -0.118063254000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.480002428422559E+02, -0.122372853876444E+03),\n new google.maps.LatLng( 0.479981950000000E+02, -0.122375631000000E+03),\n new google.maps.LatLng( 0.479954570000000E+02, -0.122386731000000E+03),\n new google.maps.LatLng( 0.479902260000000E+02, -0.122392217000000E+03),\n new google.maps.LatLng( 0.479893630000000E+02, -0.122394729000000E+03),\n new google.maps.LatLng( 0.479971770000000E+02, -0.122402868000000E+03),\n new google.maps.LatLng( 0.479998150000000E+02, -0.122407599000000E+03),\n new google.maps.LatLng( 0.480010780000000E+02, -0.122415062000000E+03),\n new google.maps.LatLng( 0.479964950000000E+02, -0.122416726000000E+03),\n new google.maps.LatLng( 0.479998150000000E+02, -0.122427727000000E+03),\n new google.maps.LatLng( 0.480027260000000E+02, -0.122435159000000E+03),\n new google.maps.LatLng( 0.480032290000000E+02, -0.122435586000000E+03),\n new google.maps.LatLng( 0.480038240000000E+02, -0.122435159000000E+03),\n new google.maps.LatLng( 0.480042970000000E+02, -0.122439560000000E+03),\n new google.maps.LatLng( 0.480039150000000E+02, -0.122441548000000E+03),\n new google.maps.LatLng( 0.479998150000000E+02, -0.122451180000000E+03),\n new google.maps.LatLng( 0.480000860000000E+02, -0.122460993000000E+03),\n new google.maps.LatLng( 0.480042670000000E+02, -0.122461817000000E+03),\n new google.maps.LatLng( 0.480066170000000E+02, -0.122463861000000E+03),\n new google.maps.LatLng( 0.480077840000000E+02, -0.122466638000000E+03),\n new google.maps.LatLng( 0.480075470000000E+02, -0.122475305000000E+03),\n new google.maps.LatLng( 0.480053040000000E+02, -0.122483653000000E+03),\n new google.maps.LatLng( 0.480044190000000E+02, -0.122485362000000E+03),\n new google.maps.LatLng( 0.479970370000000E+02, -0.122485605000000E+03),\n new google.maps.LatLng( 0.479970370000000E+02, -0.122485605000000E+03),\n new google.maps.LatLng( 0.479964620000000E+02, -0.122491597000000E+03),\n new google.maps.LatLng( 0.479986780000000E+02, -0.122493949000000E+03),\n new google.maps.LatLng( 0.480007330000000E+02, -0.122493861000000E+03),\n new google.maps.LatLng( 0.480007530000000E+02, -0.122507578000000E+03),\n new google.maps.LatLng( 0.480142590000000E+02, -0.122506984000000E+03),\n new google.maps.LatLng( 0.480132570000000E+02, -0.122514445000000E+03),\n new google.maps.LatLng( 0.480099220000000E+02, -0.122518739000000E+03),\n new google.maps.LatLng( 0.480097390000000E+02, -0.122519931000000E+03),\n new google.maps.LatLng( 0.480096260000000E+02, -0.122524222000000E+03),\n new google.maps.LatLng( 0.480114550000000E+02, -0.122526230000000E+03),\n new google.maps.LatLng( 0.480125060000000E+02, -0.122525889000000E+03),\n new google.maps.LatLng( 0.480190180000000E+02, -0.122519821000000E+03),\n new google.maps.LatLng( 0.480271940000000E+02, -0.122507278000000E+03),\n new google.maps.LatLng( 0.480286330000000E+02, -0.122506799000000E+03),\n new google.maps.LatLng( 0.480403340000000E+02, -0.122506753000000E+03),\n new google.maps.LatLng( 0.480406130000000E+02, -0.122496289000000E+03),\n new google.maps.LatLng( 0.480495180000000E+02, -0.122497526000000E+03),\n new google.maps.LatLng( 0.480495100000000E+02, -0.122500059000000E+03),\n new google.maps.LatLng( 0.480459090000000E+02, -0.122500058000000E+03),\n new google.maps.LatLng( 0.480457690000000E+02, -0.122506841000000E+03),\n new google.maps.LatLng( 0.480660890000000E+02, -0.122506691000000E+03),\n new google.maps.LatLng( 0.480678510000000E+02, -0.122510781000000E+03),\n new google.maps.LatLng( 0.480666048842414E+02, -0.122512642377293E+03),\n new google.maps.LatLng( 0.480666048842414E+02, -0.122512642377293E+03),\n new google.maps.LatLng( 0.480734236733704E+02, -0.122511418071775E+03),\n new google.maps.LatLng( 0.480750926560238E+02, -0.122511118407914E+03),\n new google.maps.LatLng( 0.480753010000000E+02, -0.122511081000000E+03),\n new google.maps.LatLng( 0.480755461188955E+02, -0.122511327856426E+03),\n new google.maps.LatLng( 0.480810850000000E+02, -0.122516906000000E+03),\n new google.maps.LatLng( 0.480941542167064E+02, -0.122524108786013E+03),\n new google.maps.LatLng( 0.480965370000000E+02, -0.122525422000000E+03),\n new google.maps.LatLng( 0.480965524699514E+02, -0.122525234289681E+03),\n new google.maps.LatLng( 0.480975380000000E+02, -0.122513276000000E+03),\n new google.maps.LatLng( 0.480954384500262E+02, -0.122499152449630E+03),\n new google.maps.LatLng( 0.480942420000000E+02, -0.122491104000000E+03),\n new google.maps.LatLng( 0.480775608267170E+02, -0.122471988143992E+03),\n new google.maps.LatLng( 0.480685010000000E+02, -0.122461606000000E+03),\n new google.maps.LatLng( 0.480543230000000E+02, -0.122448419000000E+03),\n new google.maps.LatLng( 0.480464556371648E+02, -0.122433942613526E+03),\n new google.maps.LatLng( 0.480450010000000E+02, -0.122431266000000E+03),\n new google.maps.LatLng( 0.480447184818418E+02, -0.122430240189224E+03),\n new google.maps.LatLng( 0.480441693399557E+02, -0.122428246279635E+03),\n new google.maps.LatLng( 0.480372861321143E+02, -0.122403253660313E+03),\n new google.maps.LatLng( 0.480367835104642E+02, -0.122401428663617E+03),\n new google.maps.LatLng( 0.480365630000000E+02, -0.122400628000000E+03),\n new google.maps.LatLng( 0.480340300000000E+02, -0.122387382000000E+03),\n new google.maps.LatLng( 0.480344570000000E+02, -0.122376259000000E+03),\n new google.maps.LatLng( 0.480167812263017E+02, -0.122374686000000E+03),\n new google.maps.LatLng( 0.480090554265219E+02, -0.122373998466698E+03),\n new google.maps.LatLng( 0.480080131436756E+02, -0.122373905712008E+03),\n new google.maps.LatLng( 0.480007910000000E+02, -0.122373263000000E+03),\n new google.maps.LatLng( 0.480002428422559E+02, -0.122372853876444E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.481483790000000E+02, -0.120816913000000E+03),\n new google.maps.LatLng( 0.481552870000000E+02, -0.120814174000000E+03),\n new google.maps.LatLng( 0.481602740000000E+02, -0.120810423000000E+03),\n new google.maps.LatLng( 0.481620400000000E+02, -0.120805730000000E+03),\n new google.maps.LatLng( 0.481620720000000E+02, -0.120804410000000E+03),\n new google.maps.LatLng( 0.481605280000000E+02, -0.120802257000000E+03),\n new google.maps.LatLng( 0.481574550000000E+02, -0.120794004000000E+03),\n new google.maps.LatLng( 0.481566370000000E+02, -0.120787438000000E+03),\n new google.maps.LatLng( 0.481577770000000E+02, -0.120775131000000E+03),\n new google.maps.LatLng( 0.481586770000000E+02, -0.120771686000000E+03),\n new google.maps.LatLng( 0.481611320000000E+02, -0.120768411000000E+03),\n new google.maps.LatLng( 0.481630660000000E+02, -0.120767567000000E+03),\n new google.maps.LatLng( 0.481631990000000E+02, -0.120767049000000E+03),\n new google.maps.LatLng( 0.481630050000000E+02, -0.120764255000000E+03),\n new google.maps.LatLng( 0.481588330000000E+02, -0.120751209000000E+03),\n new google.maps.LatLng( 0.481630970000000E+02, -0.120740966000000E+03),\n new google.maps.LatLng( 0.481671830000000E+02, -0.120734464000000E+03),\n new google.maps.LatLng( 0.481672900000000E+02, -0.120733178000000E+03),\n new google.maps.LatLng( 0.481665110000000E+02, -0.120726236000000E+03),\n new google.maps.LatLng( 0.481637940000000E+02, -0.120714825000000E+03),\n new google.maps.LatLng( 0.481610450000000E+02, -0.120712083000000E+03),\n new google.maps.LatLng( 0.481601900000000E+02, -0.120709416000000E+03),\n new google.maps.LatLng( 0.481604520000000E+02, -0.120707312000000E+03),\n new google.maps.LatLng( 0.481589070000000E+02, -0.120702984000000E+03),\n new google.maps.LatLng( 0.481524710000000E+02, -0.120696192000000E+03),\n new google.maps.LatLng( 0.481450080000000E+02, -0.120693986000000E+03),\n new google.maps.LatLng( 0.481422800000000E+02, -0.120692458000000E+03),\n new google.maps.LatLng( 0.481401290000000E+02, -0.120688931000000E+03),\n new google.maps.LatLng( 0.481408580000000E+02, -0.120682455000000E+03),\n new google.maps.LatLng( 0.481408840000000E+02, -0.120676455000000E+03),\n new google.maps.LatLng( 0.481403030000000E+02, -0.120674230000000E+03),\n new google.maps.LatLng( 0.481361110000000E+02, -0.120670453000000E+03),\n new google.maps.LatLng( 0.481302340000000E+02, -0.120670943000000E+03),\n new google.maps.LatLng( 0.481270350000000E+02, -0.120666783000000E+03),\n new google.maps.LatLng( 0.481270280000000E+02, -0.120663964000000E+03),\n new google.maps.LatLng( 0.481284200000000E+02, -0.120661680000000E+03),\n new google.maps.LatLng( 0.481308400000000E+02, -0.120659623000000E+03),\n new google.maps.LatLng( 0.481312830000000E+02, -0.120658466000000E+03),\n new google.maps.LatLng( 0.481312780000000E+02, -0.120655971000000E+03),\n new google.maps.LatLng( 0.481264340000000E+02, -0.120648641000000E+03),\n new google.maps.LatLng( 0.481248540000000E+02, -0.120647689000000E+03),\n new google.maps.LatLng( 0.481224350000000E+02, -0.120647525000000E+03),\n new google.maps.LatLng( 0.481220070000000E+02, -0.120646915000000E+03),\n new google.maps.LatLng( 0.481164330000000E+02, -0.120635293000000E+03),\n new google.maps.LatLng( 0.481154480000000E+02, -0.120629752000000E+03),\n new google.maps.LatLng( 0.481121460000000E+02, -0.120626607000000E+03),\n new google.maps.LatLng( 0.481106300000000E+02, -0.120626207000000E+03),\n new google.maps.LatLng( 0.481094790000000E+02, -0.120624668000000E+03),\n new google.maps.LatLng( 0.481049560000000E+02, -0.120613054000000E+03),\n new google.maps.LatLng( 0.481042710000000E+02, -0.120612720000000E+03),\n new google.maps.LatLng( 0.481018700000000E+02, -0.120613191000000E+03),\n new google.maps.LatLng( 0.481008480000000E+02, -0.120612853000000E+03),\n new google.maps.LatLng( 0.480991890000000E+02, -0.120610549000000E+03),\n new google.maps.LatLng( 0.480980390000000E+02, -0.120604516000000E+03),\n new google.maps.LatLng( 0.480961770000000E+02, -0.120600262000000E+03),\n new google.maps.LatLng( 0.480925890000000E+02, -0.120593526000000E+03),\n new google.maps.LatLng( 0.480896070000000E+02, -0.120590472000000E+03),\n new google.maps.LatLng( 0.480893920000000E+02, -0.120589733000000E+03),\n new google.maps.LatLng( 0.480909890000000E+02, -0.120582561000000E+03),\n new google.maps.LatLng( 0.480900200000000E+02, -0.120575542000000E+03),\n new google.maps.LatLng( 0.480891240000000E+02, -0.120574890000000E+03),\n new google.maps.LatLng( 0.480842760000000E+02, -0.120573798000000E+03),\n new google.maps.LatLng( 0.480805150000000E+02, -0.120573868000000E+03),\n new google.maps.LatLng( 0.480778840000000E+02, -0.120574718000000E+03),\n new google.maps.LatLng( 0.480769420000000E+02, -0.120574355000000E+03),\n new google.maps.LatLng( 0.480722880000000E+02, -0.120569397000000E+03),\n new google.maps.LatLng( 0.480717400000000E+02, -0.120568378000000E+03),\n new google.maps.LatLng( 0.480730140000000E+02, -0.120561073000000E+03),\n new google.maps.LatLng( 0.480724560000000E+02, -0.120556697000000E+03),\n new google.maps.LatLng( 0.480717470000000E+02, -0.120555610000000E+03),\n new google.maps.LatLng( 0.480677370000000E+02, -0.120556407000000E+03),\n new google.maps.LatLng( 0.480638250000000E+02, -0.120553485000000E+03),\n new google.maps.LatLng( 0.480631860000000E+02, -0.120551390000000E+03),\n new google.maps.LatLng( 0.480643830000000E+02, -0.120548414000000E+03),\n new google.maps.LatLng( 0.480644300000000E+02, -0.120543654000000E+03),\n new google.maps.LatLng( 0.480638980000000E+02, -0.120538703000000E+03),\n new google.maps.LatLng( 0.480630190000000E+02, -0.120536685000000E+03),\n new google.maps.LatLng( 0.480614520000000E+02, -0.120535666000000E+03),\n new google.maps.LatLng( 0.480590500000000E+02, -0.120536104000000E+03),\n new google.maps.LatLng( 0.480558010000000E+02, -0.120535255000000E+03),\n new google.maps.LatLng( 0.480493940000000E+02, -0.120530810000000E+03),\n new google.maps.LatLng( 0.480484670000000E+02, -0.120528074000000E+03),\n new google.maps.LatLng( 0.480487970000000E+02, -0.120524400000000E+03),\n new google.maps.LatLng( 0.480476170000000E+02, -0.120522713000000E+03),\n new google.maps.LatLng( 0.480449880000000E+02, -0.120522162000000E+03),\n new google.maps.LatLng( 0.480277940000000E+02, -0.120527192000000E+03),\n new google.maps.LatLng( 0.480207450000000E+02, -0.120526610000000E+03),\n new google.maps.LatLng( 0.480203380000000E+02, -0.120526081000000E+03),\n new google.maps.LatLng( 0.480189510000000E+02, -0.120522244000000E+03),\n new google.maps.LatLng( 0.480176270000000E+02, -0.120506848000000E+03),\n new google.maps.LatLng( 0.480179620000000E+02, -0.120500419000000E+03),\n new google.maps.LatLng( 0.480171520000000E+02, -0.120496823000000E+03),\n new google.maps.LatLng( 0.480164900000000E+02, -0.120495733000000E+03),\n new google.maps.LatLng( 0.480122880000000E+02, -0.120494095000000E+03),\n new google.maps.LatLng( 0.480088610000000E+02, -0.120495146000000E+03),\n new google.maps.LatLng( 0.480068080000000E+02, -0.120488982000000E+03),\n new google.maps.LatLng( 0.480060320000000E+02, -0.120487892000000E+03),\n new google.maps.LatLng( 0.480035660000000E+02, -0.120486358000000E+03),\n new google.maps.LatLng( 0.480022180000000E+02, -0.120486323000000E+03),\n new google.maps.LatLng( 0.479998540000000E+02, -0.120487273000000E+03),\n new google.maps.LatLng( 0.479975760000000E+02, -0.120488933000000E+03),\n new google.maps.LatLng( 0.479959780000000E+02, -0.120485392000000E+03),\n new google.maps.LatLng( 0.479954340000000E+02, -0.120476612000000E+03),\n new google.maps.LatLng( 0.479965540000000E+02, -0.120474979000000E+03),\n new google.maps.LatLng( 0.479964630000000E+02, -0.120473345000000E+03),\n new google.maps.LatLng( 0.479909600000000E+02, -0.120461057000000E+03),\n new google.maps.LatLng( 0.479887680000000E+02, -0.120452345000000E+03),\n new google.maps.LatLng( 0.479864150000000E+02, -0.120452277000000E+03),\n new google.maps.LatLng( 0.479860500000000E+02, -0.120451800000000E+03),\n new google.maps.LatLng( 0.479835150000000E+02, -0.120444212000000E+03),\n new google.maps.LatLng( 0.479805230000000E+02, -0.120438123000000E+03),\n new google.maps.LatLng( 0.479797130000000E+02, -0.120430265000000E+03),\n new google.maps.LatLng( 0.479745790000000E+02, -0.120419333000000E+03),\n new google.maps.LatLng( 0.479722340000000E+02, -0.120416716000000E+03),\n new google.maps.LatLng( 0.479685650000000E+02, -0.120415040000000E+03),\n new google.maps.LatLng( 0.479578280000000E+02, -0.120410491000000E+03),\n new google.maps.LatLng( 0.479517230000000E+02, -0.120413794000000E+03),\n new google.maps.LatLng( 0.479466010000000E+02, -0.120418058000000E+03),\n new google.maps.LatLng( 0.479438930000000E+02, -0.120419145000000E+03),\n new google.maps.LatLng( 0.479397750000000E+02, -0.120418926000000E+03),\n new google.maps.LatLng( 0.479355900000000E+02, -0.120408297000000E+03),\n new google.maps.LatLng( 0.479355200000000E+02, -0.120401338000000E+03),\n new google.maps.LatLng( 0.479350510000000E+02, -0.120400039000000E+03),\n new google.maps.LatLng( 0.479343090000000E+02, -0.120399160000000E+03),\n new google.maps.LatLng( 0.479333050000000E+02, -0.120399559000000E+03),\n new google.maps.LatLng( 0.479307220000000E+02, -0.120398510000000E+03),\n new google.maps.LatLng( 0.479277930000000E+02, -0.120393702000000E+03),\n new google.maps.LatLng( 0.479305690000000E+02, -0.120390429000000E+03),\n new google.maps.LatLng( 0.479286280000000E+02, -0.120385403000000E+03),\n new google.maps.LatLng( 0.479220670000000E+02, -0.120382049000000E+03),\n new google.maps.LatLng( 0.479182010000000E+02, -0.120382595000000E+03),\n new google.maps.LatLng( 0.479143920000000E+02, -0.120376554000000E+03),\n new google.maps.LatLng( 0.479144900000000E+02, -0.120373613000000E+03),\n new google.maps.LatLng( 0.479111520000000E+02, -0.120370868000000E+03),\n new google.maps.LatLng( 0.479026910000000E+02, -0.120361806000000E+03),\n new google.maps.LatLng( 0.479008540000000E+02, -0.120359207000000E+03),\n new google.maps.LatLng( 0.478980450000000E+02, -0.120353186000000E+03),\n new google.maps.LatLng( 0.478964130000000E+02, -0.120348200000000E+03),\n new google.maps.LatLng( 0.478929120000000E+02, -0.120345136000000E+03),\n new google.maps.LatLng( 0.478896250000000E+02, -0.120343314000000E+03),\n new google.maps.LatLng( 0.478869410000000E+02, -0.120336662000000E+03),\n new google.maps.LatLng( 0.478846860000000E+02, -0.120333150000000E+03),\n new google.maps.LatLng( 0.478786060000000E+02, -0.120326017000000E+03),\n new google.maps.LatLng( 0.478773980000000E+02, -0.120325570000000E+03),\n new google.maps.LatLng( 0.478763230000000E+02, -0.120326412000000E+03),\n new google.maps.LatLng( 0.478671880000000E+02, -0.120327670000000E+03),\n new google.maps.LatLng( 0.478648470000000E+02, -0.120327706000000E+03),\n new google.maps.LatLng( 0.478622650000000E+02, -0.120326764000000E+03),\n new google.maps.LatLng( 0.478585600000000E+02, -0.120322712000000E+03),\n new google.maps.LatLng( 0.478573390000000E+02, -0.120319065000000E+03),\n new google.maps.LatLng( 0.478572320000000E+02, -0.120312700000000E+03),\n new google.maps.LatLng( 0.478542010000000E+02, -0.120308970000000E+03),\n new google.maps.LatLng( 0.478532670000000E+02, -0.120309209000000E+03),\n new google.maps.LatLng( 0.478505790000000E+02, -0.120311355000000E+03),\n new google.maps.LatLng( 0.478486530000000E+02, -0.120315719000000E+03),\n new google.maps.LatLng( 0.478473500000000E+02, -0.120316351000000E+03),\n new google.maps.LatLng( 0.478462220000000E+02, -0.120315968000000E+03),\n new google.maps.LatLng( 0.478492140000000E+02, -0.120305448000000E+03),\n new google.maps.LatLng( 0.478495770000000E+02, -0.120287598000000E+03),\n new google.maps.LatLng( 0.478489830000000E+02, -0.120286411000000E+03),\n new google.maps.LatLng( 0.478471560000000E+02, -0.120287871000000E+03),\n new google.maps.LatLng( 0.478439370000000E+02, -0.120292589000000E+03),\n new google.maps.LatLng( 0.478428620000000E+02, -0.120288077000000E+03),\n new google.maps.LatLng( 0.478434040000000E+02, -0.120281788000000E+03),\n new google.maps.LatLng( 0.478377680000000E+02, -0.120290726000000E+03),\n new google.maps.LatLng( 0.478362150000000E+02, -0.120291473000000E+03),\n new google.maps.LatLng( 0.478344220000000E+02, -0.120290543000000E+03),\n new google.maps.LatLng( 0.478350060000000E+02, -0.120257552000000E+03),\n new google.maps.LatLng( 0.478304500000000E+02, -0.120251193000000E+03),\n new google.maps.LatLng( 0.478258340000000E+02, -0.120248387000000E+03),\n new google.maps.LatLng( 0.478232760000000E+02, -0.120246350000000E+03),\n new google.maps.LatLng( 0.478226830000000E+02, -0.120245298000000E+03),\n new google.maps.LatLng( 0.478222050000000E+02, -0.120242482000000E+03),\n new google.maps.LatLng( 0.478224620000000E+02, -0.120227118000000E+03),\n new google.maps.LatLng( 0.478222340000000E+02, -0.120225185000000E+03),\n new google.maps.LatLng( 0.478202250000000E+02, -0.120219247000000E+03),\n new google.maps.LatLng( 0.478192210000000E+02, -0.120218094000000E+03),\n new google.maps.LatLng( 0.478155410000000E+02, -0.120225146000000E+03),\n new google.maps.LatLng( 0.478020660000000E+02, -0.120220458000000E+03),\n new google.maps.LatLng( 0.477986400000000E+02, -0.120218558000000E+03),\n new google.maps.LatLng( 0.477971550000000E+02, -0.120219777000000E+03),\n new google.maps.LatLng( 0.477957380000000E+02, -0.120222624000000E+03),\n new google.maps.LatLng( 0.477935220000000E+02, -0.120224521000000E+03),\n new google.maps.LatLng( 0.477903960000000E+02, -0.120213402000000E+03),\n new google.maps.LatLng( 0.477902370000000E+02, -0.120207232000000E+03),\n new google.maps.LatLng( 0.477888210000000E+02, -0.120204181000000E+03),\n new google.maps.LatLng( 0.477858290000000E+02, -0.120200927000000E+03),\n new google.maps.LatLng( 0.477808730000000E+02, -0.120198723000000E+03),\n new google.maps.LatLng( 0.477792280000000E+02, -0.120198418000000E+03),\n new google.maps.LatLng( 0.477775610000000E+02, -0.120198824000000E+03),\n new google.maps.LatLng( 0.477760070000000E+02, -0.120197909000000E+03),\n new google.maps.LatLng( 0.477707310000000E+02, -0.120192384000000E+03),\n new google.maps.LatLng( 0.477679220000000E+02, -0.120186184000000E+03),\n new google.maps.LatLng( 0.477664830000000E+02, -0.120181713000000E+03),\n new google.maps.LatLng( 0.477657740000000E+02, -0.120180900000000E+03),\n new google.maps.LatLng( 0.477647470000000E+02, -0.120180968000000E+03),\n new google.maps.LatLng( 0.477647470000000E+02, -0.120180968000000E+03),\n new google.maps.LatLng( 0.477608870000000E+02, -0.120194010000000E+03),\n new google.maps.LatLng( 0.477517700000000E+02, -0.120211181000000E+03),\n new google.maps.LatLng( 0.477508100000000E+02, -0.120212366000000E+03),\n new google.maps.LatLng( 0.477498530000000E+02, -0.120212160000000E+03),\n new google.maps.LatLng( 0.477482870000000E+02, -0.120212630000000E+03),\n new google.maps.LatLng( 0.477455690000000E+02, -0.120214288000000E+03),\n new google.maps.LatLng( 0.477441070000000E+02, -0.120215473000000E+03),\n new google.maps.LatLng( 0.477428730000000E+02, -0.120217809000000E+03),\n new google.maps.LatLng( 0.477412510000000E+02, -0.120219467000000E+03),\n new google.maps.LatLng( 0.477330720000000E+02, -0.120224373000000E+03),\n new google.maps.LatLng( 0.477303990000000E+02, -0.120225454000000E+03),\n new google.maps.LatLng( 0.477251440000000E+02, -0.120226365000000E+03),\n new google.maps.LatLng( 0.477228370000000E+02, -0.120226702000000E+03),\n new google.maps.LatLng( 0.477212840000000E+02, -0.120226295000000E+03),\n new google.maps.LatLng( 0.477096600000000E+02, -0.120215389000000E+03),\n new google.maps.LatLng( 0.477036760000000E+02, -0.120212240000000E+03),\n new google.maps.LatLng( 0.477004790000000E+02, -0.120209362000000E+03),\n new google.maps.LatLng( 0.476973500000000E+02, -0.120205504000000E+03),\n new google.maps.LatLng( 0.476838050000000E+02, -0.120201643000000E+03),\n new google.maps.LatLng( 0.476786890000000E+02, -0.120203401000000E+03),\n new google.maps.LatLng( 0.476738460000000E+02, -0.120207424000000E+03),\n new google.maps.LatLng( 0.476713550000000E+02, -0.120210534000000E+03),\n new google.maps.LatLng( 0.476717660000000E+02, -0.120211515000000E+03),\n new google.maps.LatLng( 0.476703950000000E+02, -0.120215031000000E+03),\n new google.maps.LatLng( 0.476635860000000E+02, -0.120223110000000E+03),\n new google.maps.LatLng( 0.476618040000000E+02, -0.120223988000000E+03),\n new google.maps.LatLng( 0.476588120000000E+02, -0.120224391000000E+03),\n new google.maps.LatLng( 0.476511350000000E+02, -0.120226786000000E+03),\n new google.maps.LatLng( 0.476491700000000E+02, -0.120227968000000E+03),\n new google.maps.LatLng( 0.476464280000000E+02, -0.120230602000000E+03),\n new google.maps.LatLng( 0.476325370000000E+02, -0.120239614000000E+03),\n new google.maps.LatLng( 0.476301380000000E+02, -0.120240558000000E+03),\n new google.maps.LatLng( 0.476271230000000E+02, -0.120240555000000E+03),\n new google.maps.LatLng( 0.476258210000000E+02, -0.120240249000000E+03),\n new google.maps.LatLng( 0.476225710000000E+02, -0.120238280000000E+03),\n new google.maps.LatLng( 0.476206530000000E+02, -0.120238278000000E+03),\n new google.maps.LatLng( 0.476046150000000E+02, -0.120241911000000E+03),\n new google.maps.LatLng( 0.476030850000000E+02, -0.120240998000000E+03),\n new google.maps.LatLng( 0.476006860000000E+02, -0.120240827000000E+03),\n new google.maps.LatLng( 0.475900390000000E+02, -0.120246524000000E+03),\n new google.maps.LatLng( 0.475885550000000E+02, -0.120245003000000E+03),\n new google.maps.LatLng( 0.475867960000000E+02, -0.120244630000000E+03),\n new google.maps.LatLng( 0.475860650000000E+02, -0.120244933000000E+03),\n new google.maps.LatLng( 0.475856080000000E+02, -0.120245911000000E+03),\n new google.maps.LatLng( 0.475849440000000E+02, -0.120249422000000E+03),\n new google.maps.LatLng( 0.475794140000000E+02, -0.120254406000000E+03),\n new google.maps.LatLng( 0.475718780000000E+02, -0.120258972000000E+03),\n new google.maps.LatLng( 0.475718780000000E+02, -0.120258972000000E+03),\n new google.maps.LatLng( 0.475792440000000E+02, -0.120254937000000E+03),\n new google.maps.LatLng( 0.475855880000000E+02, -0.120249759000000E+03),\n new google.maps.LatLng( 0.475857680000000E+02, -0.120246384000000E+03),\n new google.maps.LatLng( 0.475866130000000E+02, -0.120245305000000E+03),\n new google.maps.LatLng( 0.475883060000000E+02, -0.120246324000000E+03),\n new google.maps.LatLng( 0.475889350000000E+02, -0.120248624000000E+03),\n new google.maps.LatLng( 0.475933510000000E+02, -0.120247405000000E+03),\n new google.maps.LatLng( 0.476016450000000E+02, -0.120242821000000E+03),\n new google.maps.LatLng( 0.476052310000000E+02, -0.120243195000000E+03),\n new google.maps.LatLng( 0.476181390000000E+02, -0.120240033000000E+03),\n new google.maps.LatLng( 0.476219770000000E+02, -0.120239496000000E+03),\n new google.maps.LatLng( 0.476283130000000E+02, -0.120241762000000E+03),\n new google.maps.LatLng( 0.476229160000000E+02, -0.120261610000000E+03),\n new google.maps.LatLng( 0.476123340000000E+02, -0.120262408000000E+03),\n new google.maps.LatLng( 0.476106240000000E+02, -0.120267645000000E+03),\n new google.maps.LatLng( 0.476093230000000E+02, -0.120270011000000E+03),\n new google.maps.LatLng( 0.476073360000000E+02, -0.120271094000000E+03),\n new google.maps.LatLng( 0.476064900000000E+02, -0.120270993000000E+03),\n new google.maps.LatLng( 0.476055080000000E+02, -0.120269304000000E+03),\n new google.maps.LatLng( 0.476050510000000E+02, -0.120269304000000E+03),\n new google.maps.LatLng( 0.476038650000000E+02, -0.120273495000000E+03),\n new google.maps.LatLng( 0.476039120000000E+02, -0.120278594000000E+03),\n new google.maps.LatLng( 0.476094210000000E+02, -0.120289669000000E+03),\n new google.maps.LatLng( 0.476110660000000E+02, -0.120290986000000E+03),\n new google.maps.LatLng( 0.476125510000000E+02, -0.120295377000000E+03),\n new google.maps.LatLng( 0.476118210000000E+02, -0.120298114000000E+03),\n new google.maps.LatLng( 0.476121870000000E+02, -0.120301492000000E+03),\n new google.maps.LatLng( 0.476152480000000E+02, -0.120308585000000E+03),\n new google.maps.LatLng( 0.476169150000000E+02, -0.120310848000000E+03),\n new google.maps.LatLng( 0.476169150000000E+02, -0.120310848000000E+03),\n new google.maps.LatLng( 0.476186970000000E+02, -0.120309429000000E+03),\n new google.maps.LatLng( 0.476231980000000E+02, -0.120307401000000E+03),\n new google.maps.LatLng( 0.476215980000000E+02, -0.120313484000000E+03),\n new google.maps.LatLng( 0.476253370000000E+02, -0.120315652000000E+03),\n new google.maps.LatLng( 0.476284310000000E+02, -0.120320045000000E+03),\n new google.maps.LatLng( 0.476316300000000E+02, -0.120315348000000E+03),\n new google.maps.LatLng( 0.476356510000000E+02, -0.120316565000000E+03),\n new google.maps.LatLng( 0.476424350000000E+02, -0.120314842000000E+03),\n new google.maps.LatLng( 0.476444910000000E+02, -0.120312509000000E+03),\n new google.maps.LatLng( 0.476477120000000E+02, -0.120307101000000E+03),\n new google.maps.LatLng( 0.476513440000000E+02, -0.120304599000000E+03),\n new google.maps.LatLng( 0.476576240000000E+02, -0.120293440000000E+03),\n new google.maps.LatLng( 0.476613920000000E+02, -0.120291883000000E+03),\n new google.maps.LatLng( 0.476637680000000E+02, -0.120292492000000E+03),\n new google.maps.LatLng( 0.476625580000000E+02, -0.120294927000000E+03),\n new google.maps.LatLng( 0.476597270000000E+02, -0.120303820000000E+03),\n new google.maps.LatLng( 0.476599390000000E+02, -0.120304992000000E+03),\n new google.maps.LatLng( 0.476609090000000E+02, -0.120305789000000E+03),\n new google.maps.LatLng( 0.476619400000000E+02, -0.120308340000000E+03),\n new google.maps.LatLng( 0.476629630000000E+02, -0.120314868000000E+03),\n new google.maps.LatLng( 0.476632610000000E+02, -0.120321206000000E+03),\n new google.maps.LatLng( 0.476596510000000E+02, -0.120331469000000E+03),\n new google.maps.LatLng( 0.476601910000000E+02, -0.120333772000000E+03),\n new google.maps.LatLng( 0.476616720000000E+02, -0.120336666000000E+03),\n new google.maps.LatLng( 0.476638300000000E+02, -0.120335536000000E+03),\n new google.maps.LatLng( 0.476649730000000E+02, -0.120335546000000E+03),\n new google.maps.LatLng( 0.476678460000000E+02, -0.120345397000000E+03),\n new google.maps.LatLng( 0.476692840000000E+02, -0.120355014000000E+03),\n new google.maps.LatLng( 0.476662290000000E+02, -0.120363885000000E+03),\n new google.maps.LatLng( 0.476677340000000E+02, -0.120363168000000E+03),\n new google.maps.LatLng( 0.476711850000000E+02, -0.120359857000000E+03),\n new google.maps.LatLng( 0.476737900000000E+02, -0.120358337000000E+03),\n new google.maps.LatLng( 0.476768270000000E+02, -0.120359320000000E+03),\n new google.maps.LatLng( 0.476809610000000E+02, -0.120361962000000E+03),\n new google.maps.LatLng( 0.476809830000000E+02, -0.120363856000000E+03),\n new google.maps.LatLng( 0.476752640000000E+02, -0.120376835000000E+03),\n new google.maps.LatLng( 0.476735080000000E+02, -0.120382722000000E+03),\n new google.maps.LatLng( 0.476737850000000E+02, -0.120391752000000E+03),\n new google.maps.LatLng( 0.476723280000000E+02, -0.120402981000000E+03),\n new google.maps.LatLng( 0.476812780000000E+02, -0.120421078000000E+03),\n new google.maps.LatLng( 0.476841720000000E+02, -0.120425356000000E+03),\n new google.maps.LatLng( 0.476860180000000E+02, -0.120431085000000E+03),\n new google.maps.LatLng( 0.476854790000000E+02, -0.120439763000000E+03),\n new google.maps.LatLng( 0.476866050000000E+02, -0.120449807000000E+03),\n new google.maps.LatLng( 0.476876900000000E+02, -0.120450176000000E+03),\n new google.maps.LatLng( 0.476934430000000E+02, -0.120442483000000E+03),\n new google.maps.LatLng( 0.476949490000000E+02, -0.120430576000000E+03),\n new google.maps.LatLng( 0.476942850000000E+02, -0.120422354000000E+03),\n new google.maps.LatLng( 0.476930360000000E+02, -0.120417708000000E+03),\n new google.maps.LatLng( 0.476898750000000E+02, -0.120413525000000E+03),\n new google.maps.LatLng( 0.476879760000000E+02, -0.120403749000000E+03),\n new google.maps.LatLng( 0.476872670000000E+02, -0.120402938000000E+03),\n new google.maps.LatLng( 0.476861710000000E+02, -0.120402837000000E+03),\n new google.maps.LatLng( 0.476845480000000E+02, -0.120401181000000E+03),\n new google.maps.LatLng( 0.476850950000000E+02, -0.120397189000000E+03),\n new google.maps.LatLng( 0.476871960000000E+02, -0.120394683000000E+03),\n new google.maps.LatLng( 0.476906400000000E+02, -0.120384862000000E+03),\n new google.maps.LatLng( 0.476940220000000E+02, -0.120383851000000E+03),\n new google.maps.LatLng( 0.476973370000000E+02, -0.120377101000000E+03),\n new google.maps.LatLng( 0.476982860000000E+02, -0.120377267000000E+03),\n new google.maps.LatLng( 0.477001200000000E+02, -0.120378632000000E+03),\n new google.maps.LatLng( 0.477031140000000E+02, -0.120385160000000E+03),\n new google.maps.LatLng( 0.477044850000000E+02, -0.120385328000000E+03),\n new google.maps.LatLng( 0.477066540000000E+02, -0.120383600000000E+03),\n new google.maps.LatLng( 0.477106760000000E+02, -0.120371669000000E+03),\n new google.maps.LatLng( 0.477095580000000E+02, -0.120368013000000E+03),\n new google.maps.LatLng( 0.477074580000000E+02, -0.120364660000000E+03),\n new google.maps.LatLng( 0.477074580000000E+02, -0.120363543000000E+03),\n new google.maps.LatLng( 0.477107960000000E+02, -0.120357251000000E+03),\n new google.maps.LatLng( 0.477123720000000E+02, -0.120357083000000E+03),\n new google.maps.LatLng( 0.477173500000000E+02, -0.120361826000000E+03),\n new google.maps.LatLng( 0.477223970000000E+02, -0.120365317000000E+03),\n new google.maps.LatLng( 0.477227620000000E+02, -0.120366536000000E+03),\n new google.maps.LatLng( 0.477217100000000E+02, -0.120369582000000E+03),\n new google.maps.LatLng( 0.477194880000000E+02, -0.120373698000000E+03),\n new google.maps.LatLng( 0.477194880000000E+02, -0.120373698000000E+03),\n new google.maps.LatLng( 0.477256630000000E+02, -0.120366674000000E+03),\n new google.maps.LatLng( 0.477263490000000E+02, -0.120364271000000E+03),\n new google.maps.LatLng( 0.477258940000000E+02, -0.120361292000000E+03),\n new google.maps.LatLng( 0.477292770000000E+02, -0.120358247000000E+03),\n new google.maps.LatLng( 0.477305330000000E+02, -0.120359433000000E+03),\n new google.maps.LatLng( 0.477312150000000E+02, -0.120363226000000E+03),\n new google.maps.LatLng( 0.477349850000000E+02, -0.120363738000000E+03),\n new google.maps.LatLng( 0.477357850000000E+02, -0.120363400000000E+03),\n new google.maps.LatLng( 0.477370610000000E+02, -0.120367532000000E+03),\n new google.maps.LatLng( 0.477367820000000E+02, -0.120368836000000E+03),\n new google.maps.LatLng( 0.477367820000000E+02, -0.120368836000000E+03),\n new google.maps.LatLng( 0.477369920000000E+02, -0.120368955000000E+03),\n new google.maps.LatLng( 0.477361230000000E+02, -0.120372340000000E+03),\n new google.maps.LatLng( 0.477365330000000E+02, -0.120373254000000E+03),\n new google.maps.LatLng( 0.477372640000000E+02, -0.120375050000000E+03),\n new google.maps.LatLng( 0.477370790000000E+02, -0.120378995000000E+03),\n new google.maps.LatLng( 0.477411260000000E+02, -0.120386474000000E+03),\n new google.maps.LatLng( 0.477449440000000E+02, -0.120391991000000E+03),\n new google.maps.LatLng( 0.477464520000000E+02, -0.120393344000000E+03),\n new google.maps.LatLng( 0.477478680000000E+02, -0.120393309000000E+03),\n new google.maps.LatLng( 0.477498490000000E+02, -0.120394750000000E+03),\n new google.maps.LatLng( 0.477514580000000E+02, -0.120397918000000E+03),\n new google.maps.LatLng( 0.477525810000000E+02, -0.120415193000000E+03),\n new google.maps.LatLng( 0.477541360000000E+02, -0.120419630000000E+03),\n new google.maps.LatLng( 0.477553460000000E+02, -0.120420849000000E+03),\n new google.maps.LatLng( 0.477574940000000E+02, -0.120421932000000E+03),\n new google.maps.LatLng( 0.477587960000000E+02, -0.120423625000000E+03),\n new google.maps.LatLng( 0.477593290000000E+02, -0.120428872000000E+03),\n new google.maps.LatLng( 0.477608990000000E+02, -0.120430875000000E+03),\n new google.maps.LatLng( 0.477647820000000E+02, -0.120433584000000E+03),\n new google.maps.LatLng( 0.477664730000000E+02, -0.120434092000000E+03),\n new google.maps.LatLng( 0.477667470000000E+02, -0.120433584000000E+03),\n new google.maps.LatLng( 0.477710420000000E+02, -0.120433314000000E+03),\n new google.maps.LatLng( 0.477733950000000E+02, -0.120434228000000E+03),\n new google.maps.LatLng( 0.477758850000000E+02, -0.120440700000000E+03),\n new google.maps.LatLng( 0.477799970000000E+02, -0.120440734000000E+03),\n new google.maps.LatLng( 0.477838580000000E+02, -0.120441988000000E+03),\n new google.maps.LatLng( 0.477931770000000E+02, -0.120451209000000E+03),\n new google.maps.LatLng( 0.477926730000000E+02, -0.120460227000000E+03),\n new google.maps.LatLng( 0.477907510000000E+02, -0.120470836000000E+03),\n new google.maps.LatLng( 0.477904520000000E+02, -0.120477582000000E+03),\n new google.maps.LatLng( 0.477948590000000E+02, -0.120483417000000E+03),\n new google.maps.LatLng( 0.477964590000000E+02, -0.120481451000000E+03),\n new google.maps.LatLng( 0.477998170000000E+02, -0.120481963000000E+03),\n new google.maps.LatLng( 0.478004790000000E+02, -0.120483184000000E+03),\n new google.maps.LatLng( 0.478000900000000E+02, -0.120484099000000E+03),\n new google.maps.LatLng( 0.478018230000000E+02, -0.120492611000000E+03),\n new google.maps.LatLng( 0.478050410000000E+02, -0.120497293000000E+03),\n new google.maps.LatLng( 0.478100670000000E+02, -0.120498248000000E+03),\n new google.maps.LatLng( 0.478107730000000E+02, -0.120500865000000E+03),\n new google.maps.LatLng( 0.478076670000000E+02, -0.120506802000000E+03),\n new google.maps.LatLng( 0.478073170000000E+02, -0.120512389000000E+03),\n new google.maps.LatLng( 0.477908410000000E+02, -0.120511969000000E+03),\n new google.maps.LatLng( 0.477427750000000E+02, -0.120518916000000E+03),\n new google.maps.LatLng( 0.477200340000000E+02, -0.120521497000000E+03),\n new google.maps.LatLng( 0.477222840000000E+02, -0.120523040000000E+03),\n new google.maps.LatLng( 0.477283390000000E+02, -0.120525811000000E+03),\n new google.maps.LatLng( 0.477353980000000E+02, -0.120524722000000E+03),\n new google.maps.LatLng( 0.477378200000000E+02, -0.120525973000000E+03),\n new google.maps.LatLng( 0.477415660000000E+02, -0.120526986000000E+03),\n new google.maps.LatLng( 0.477475520000000E+02, -0.120527524000000E+03),\n new google.maps.LatLng( 0.477510890000000E+02, -0.120529255000000E+03),\n new google.maps.LatLng( 0.477541510000000E+02, -0.120532369000000E+03),\n new google.maps.LatLng( 0.477644550000000E+02, -0.120537039000000E+03),\n new google.maps.LatLng( 0.477674700000000E+02, -0.120536325000000E+03),\n new google.maps.LatLng( 0.477684750000000E+02, -0.120535376000000E+03),\n new google.maps.LatLng( 0.477746220000000E+02, -0.120542252000000E+03),\n new google.maps.LatLng( 0.477835330000000E+02, -0.120550587000000E+03),\n new google.maps.LatLng( 0.477980630000000E+02, -0.120567433000000E+03),\n new google.maps.LatLng( 0.477999440000000E+02, -0.120571914000000E+03),\n new google.maps.LatLng( 0.477999440000000E+02, -0.120571914000000E+03),\n new google.maps.LatLng( 0.478012380000000E+02, -0.120574044000000E+03),\n new google.maps.LatLng( 0.478057600000000E+02, -0.120578624000000E+03),\n new google.maps.LatLng( 0.478145100000000E+02, -0.120583544000000E+03),\n new google.maps.LatLng( 0.478192160000000E+02, -0.120584461000000E+03),\n new google.maps.LatLng( 0.478316180000000E+02, -0.120596916000000E+03),\n new google.maps.LatLng( 0.478334450000000E+02, -0.120599360000000E+03),\n new google.maps.LatLng( 0.478339700000000E+02, -0.120600853000000E+03),\n new google.maps.LatLng( 0.478367100000000E+02, -0.120603366000000E+03),\n new google.maps.LatLng( 0.478460710000000E+02, -0.120607750000000E+03),\n new google.maps.LatLng( 0.478548580000000E+02, -0.120608229000000E+03),\n new google.maps.LatLng( 0.478591970000000E+02, -0.120609160000000E+03),\n new google.maps.LatLng( 0.478806290000000E+02, -0.120624357000000E+03),\n new google.maps.LatLng( 0.478834990000000E+02, -0.120624583000000E+03),\n new google.maps.LatLng( 0.478855150000000E+02, -0.120623811000000E+03),\n new google.maps.LatLng( 0.478922380000000E+02, -0.120625785000000E+03),\n new google.maps.LatLng( 0.478998730000000E+02, -0.120628926000000E+03),\n new google.maps.LatLng( 0.479008740000000E+02, -0.120630317000000E+03),\n new google.maps.LatLng( 0.479024320000000E+02, -0.120636601000000E+03),\n new google.maps.LatLng( 0.479051970000000E+02, -0.120638483000000E+03),\n new google.maps.LatLng( 0.479077890000000E+02, -0.120638492000000E+03),\n new google.maps.LatLng( 0.479185470000000E+02, -0.120644808000000E+03),\n new google.maps.LatLng( 0.479196440000000E+02, -0.120645925000000E+03),\n new google.maps.LatLng( 0.479205170000000E+02, -0.120647700000000E+03),\n new google.maps.LatLng( 0.479222240000000E+02, -0.120656817000000E+03),\n new google.maps.LatLng( 0.479258500000000E+02, -0.120658900000000E+03),\n new google.maps.LatLng( 0.479327750000000E+02, -0.120660200000000E+03),\n new google.maps.LatLng( 0.479393830000000E+02, -0.120659410000000E+03),\n new google.maps.LatLng( 0.479417870000000E+02, -0.120657760000000E+03),\n new google.maps.LatLng( 0.479431290000000E+02, -0.120656091000000E+03),\n new google.maps.LatLng( 0.479442750000000E+02, -0.120653634000000E+03),\n new google.maps.LatLng( 0.479449210000000E+02, -0.120650439000000E+03),\n new google.maps.LatLng( 0.479445840000000E+02, -0.120646342000000E+03),\n new google.maps.LatLng( 0.479407900000000E+02, -0.120641058000000E+03),\n new google.maps.LatLng( 0.479398290000000E+02, -0.120639331000000E+03),\n new google.maps.LatLng( 0.479398270000000E+02, -0.120638207000000E+03),\n new google.maps.LatLng( 0.479454010000000E+02, -0.120632019000000E+03),\n new google.maps.LatLng( 0.479477020000000E+02, -0.120631455000000E+03),\n new google.maps.LatLng( 0.479509240000000E+02, -0.120632057000000E+03),\n new google.maps.LatLng( 0.479551100000000E+02, -0.120635929000000E+03),\n new google.maps.LatLng( 0.479567370000000E+02, -0.120636851000000E+03),\n new google.maps.LatLng( 0.479596280000000E+02, -0.120637145000000E+03),\n new google.maps.LatLng( 0.479611030000000E+02, -0.120638128000000E+03),\n new google.maps.LatLng( 0.479614360000000E+02, -0.120639896000000E+03),\n new google.maps.LatLng( 0.479606190000000E+02, -0.120642041000000E+03),\n new google.maps.LatLng( 0.479545120000000E+02, -0.120652261000000E+03),\n new google.maps.LatLng( 0.479526060000000E+02, -0.120657508000000E+03),\n new google.maps.LatLng( 0.479524200000000E+02, -0.120661944000000E+03),\n new google.maps.LatLng( 0.479529800000000E+02, -0.120664535000000E+03),\n new google.maps.LatLng( 0.479547880000000E+02, -0.120667454000000E+03),\n new google.maps.LatLng( 0.479578950000000E+02, -0.120667389000000E+03),\n new google.maps.LatLng( 0.479613340000000E+02, -0.120668101000000E+03),\n new google.maps.LatLng( 0.479642260000000E+02, -0.120674099000000E+03),\n new google.maps.LatLng( 0.479669150000000E+02, -0.120674671000000E+03),\n new google.maps.LatLng( 0.479678000000000E+02, -0.120674355000000E+03),\n new google.maps.LatLng( 0.479684580000000E+02, -0.120673168000000E+03),\n new google.maps.LatLng( 0.479690720000000E+02, -0.120669841000000E+03),\n new google.maps.LatLng( 0.479705000000000E+02, -0.120666927000000E+03),\n new google.maps.LatLng( 0.479718030000000E+02, -0.120666442000000E+03),\n new google.maps.LatLng( 0.479772040000000E+02, -0.120666221000000E+03),\n new google.maps.LatLng( 0.479814750000000E+02, -0.120668112000000E+03),\n new google.maps.LatLng( 0.479820100000000E+02, -0.120670860000000E+03),\n new google.maps.LatLng( 0.479832690000000E+02, -0.120672838000000E+03),\n new google.maps.LatLng( 0.479880640000000E+02, -0.120676330000000E+03),\n new google.maps.LatLng( 0.479905780000000E+02, -0.120676939000000E+03),\n new google.maps.LatLng( 0.479967680000000E+02, -0.120682314000000E+03),\n new google.maps.LatLng( 0.479977390000000E+02, -0.120691318000000E+03),\n new google.maps.LatLng( 0.480049150000000E+02, -0.120703368000000E+03),\n new google.maps.LatLng( 0.480075460000000E+02, -0.120710136000000E+03),\n new google.maps.LatLng( 0.480105210000000E+02, -0.120712359000000E+03),\n new google.maps.LatLng( 0.480122860000000E+02, -0.120712168000000E+03),\n new google.maps.LatLng( 0.480131860000000E+02, -0.120712786000000E+03),\n new google.maps.LatLng( 0.480149710000000E+02, -0.120716179000000E+03),\n new google.maps.LatLng( 0.480153400000000E+02, -0.120718587000000E+03),\n new google.maps.LatLng( 0.480208680000000E+02, -0.120726083000000E+03),\n new google.maps.LatLng( 0.480228300000000E+02, -0.120727198000000E+03),\n new google.maps.LatLng( 0.480245050000000E+02, -0.120726900000000E+03),\n new google.maps.LatLng( 0.480386130000000E+02, -0.120730559000000E+03),\n new google.maps.LatLng( 0.480392340000000E+02, -0.120731455000000E+03),\n new google.maps.LatLng( 0.480396950000000E+02, -0.120735206000000E+03),\n new google.maps.LatLng( 0.480434450000000E+02, -0.120741494000000E+03),\n new google.maps.LatLng( 0.480576400000000E+02, -0.120747666000000E+03),\n new google.maps.LatLng( 0.480667650000000E+02, -0.120748732000000E+03),\n new google.maps.LatLng( 0.480730500000000E+02, -0.120747653000000E+03),\n new google.maps.LatLng( 0.480787430000000E+02, -0.120749206000000E+03),\n new google.maps.LatLng( 0.480813380000000E+02, -0.120751209000000E+03),\n new google.maps.LatLng( 0.480832590000000E+02, -0.120755473000000E+03),\n new google.maps.LatLng( 0.480847910000000E+02, -0.120760731000000E+03),\n new google.maps.LatLng( 0.480871800000000E+02, -0.120764085000000E+03),\n new google.maps.LatLng( 0.480954450000000E+02, -0.120770227000000E+03),\n new google.maps.LatLng( 0.480965020000000E+02, -0.120771487000000E+03),\n new google.maps.LatLng( 0.481004900000000E+02, -0.120779022000000E+03),\n new google.maps.LatLng( 0.481009750000000E+02, -0.120789189000000E+03),\n new google.maps.LatLng( 0.481026980000000E+02, -0.120792469000000E+03),\n new google.maps.LatLng( 0.481047880000000E+02, -0.120793610000000E+03),\n new google.maps.LatLng( 0.481086230000000E+02, -0.120793725000000E+03),\n new google.maps.LatLng( 0.481119250000000E+02, -0.120794925000000E+03),\n new google.maps.LatLng( 0.481180650000000E+02, -0.120799645000000E+03),\n new google.maps.LatLng( 0.481199780000000E+02, -0.120802152000000E+03),\n new google.maps.LatLng( 0.481229170000000E+02, -0.120808080000000E+03),\n new google.maps.LatLng( 0.481266180000000E+02, -0.120811395000000E+03),\n new google.maps.LatLng( 0.481281270000000E+02, -0.120811687000000E+03),\n new google.maps.LatLng( 0.481308520000000E+02, -0.120810415000000E+03),\n new google.maps.LatLng( 0.481333200000000E+02, -0.120807755000000E+03),\n new google.maps.LatLng( 0.481350820000000E+02, -0.120806316000000E+03),\n new google.maps.LatLng( 0.481357320000000E+02, -0.120806380000000E+03),\n new google.maps.LatLng( 0.481373660000000E+02, -0.120808866000000E+03),\n new google.maps.LatLng( 0.481452270000000E+02, -0.120815194000000E+03),\n new google.maps.LatLng( 0.481483790000000E+02, -0.120816913000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.465544750000000E+02, -0.122538909000000E+03),\n new google.maps.LatLng( 0.465559650000000E+02, -0.122541126000000E+03),\n new google.maps.LatLng( 0.465614740000000E+02, -0.122541422000000E+03),\n new google.maps.LatLng( 0.465630970000000E+02, -0.122540527000000E+03),\n new google.maps.LatLng( 0.465686960000000E+02, -0.122535188000000E+03),\n new google.maps.LatLng( 0.465722370000000E+02, -0.122527232000000E+03),\n new google.maps.LatLng( 0.465763500000000E+02, -0.122523715000000E+03),\n new google.maps.LatLng( 0.465795940000000E+02, -0.122516884000000E+03),\n new google.maps.LatLng( 0.465798670000000E+02, -0.122515127000000E+03),\n new google.maps.LatLng( 0.465798670000000E+02, -0.122515127000000E+03),\n new google.maps.LatLng( 0.465773080000000E+02, -0.122517847000000E+03),\n new google.maps.LatLng( 0.465742010000000E+02, -0.122522490000000E+03),\n new google.maps.LatLng( 0.465698370000000E+02, -0.122526570000000E+03),\n new google.maps.LatLng( 0.465682610000000E+02, -0.122531874000000E+03),\n new google.maps.LatLng( 0.465627760000000E+02, -0.122537345000000E+03),\n new google.maps.LatLng( 0.465621130000000E+02, -0.122537114000000E+03),\n new google.maps.LatLng( 0.465607640000000E+02, -0.122533701000000E+03),\n new google.maps.LatLng( 0.465590260000000E+02, -0.122532045000000E+03),\n new google.maps.LatLng( 0.465583860000000E+02, -0.122532443000000E+03),\n new google.maps.LatLng( 0.465576780000000E+02, -0.122534896000000E+03),\n new google.maps.LatLng( 0.465572210000000E+02, -0.122534929000000E+03),\n new google.maps.LatLng( 0.465482590000000E+02, -0.122525292000000E+03),\n new google.maps.LatLng( 0.465530873754883E+02, -0.122517858788867E+03),\n new google.maps.LatLng( 0.465554770000000E+02, -0.122514982000000E+03),\n new google.maps.LatLng( 0.465567560000000E+02, -0.122511237000000E+03),\n new google.maps.LatLng( 0.465572560000000E+02, -0.122505305000000E+03),\n new google.maps.LatLng( 0.465561570000000E+02, -0.122502490000000E+03),\n new google.maps.LatLng( 0.465549450000000E+02, -0.122501223000000E+03),\n new google.maps.LatLng( 0.465520550000000E+02, -0.122501223000000E+03),\n new google.maps.LatLng( 0.465537130000000E+02, -0.122504050000000E+03),\n new google.maps.LatLng( 0.465544010000000E+02, -0.122510146000000E+03),\n new google.maps.LatLng( 0.465520950000000E+02, -0.122515482000000E+03),\n new google.maps.LatLng( 0.465501530000000E+02, -0.122518168000000E+03),\n new google.maps.LatLng( 0.465472790000000E+02, -0.122520468000000E+03),\n new google.maps.LatLng( 0.465472790000000E+02, -0.122520468000000E+03),\n new google.maps.LatLng( 0.465462460000000E+02, -0.122521186000000E+03),\n new google.maps.LatLng( 0.465434340000000E+02, -0.122520989000000E+03),\n new google.maps.LatLng( 0.465413310000000E+02, -0.122521885000000E+03),\n new google.maps.LatLng( 0.465394120000000E+02, -0.122524768000000E+03),\n new google.maps.LatLng( 0.465388880000000E+02, -0.122528280000000E+03),\n new google.maps.LatLng( 0.465411740000000E+02, -0.122530332000000E+03),\n new google.maps.LatLng( 0.465420440000000E+02, -0.122533247000000E+03),\n new google.maps.LatLng( 0.465399870000000E+02, -0.122537124000000E+03),\n new google.maps.LatLng( 0.465386400000000E+02, -0.122542424000000E+03),\n new google.maps.LatLng( 0.465378180000000E+02, -0.122546201000000E+03),\n new google.maps.LatLng( 0.465378410000000E+02, -0.122553554000000E+03),\n new google.maps.LatLng( 0.465362870000000E+02, -0.122557264000000E+03),\n new google.maps.LatLng( 0.465344590000000E+02, -0.122557861000000E+03),\n new google.maps.LatLng( 0.465266870000000E+02, -0.122557332000000E+03),\n new google.maps.LatLng( 0.465180690000000E+02, -0.122561935000000E+03),\n new google.maps.LatLng( 0.465098400000000E+02, -0.122567365000000E+03),\n new google.maps.LatLng( 0.465074630000000E+02, -0.122569914000000E+03),\n new google.maps.LatLng( 0.465049575416992E+02, -0.122568192501367E+03),\n new google.maps.LatLng( 0.465039200000000E+02, -0.122561241000000E+03),\n new google.maps.LatLng( 0.465033940000000E+02, -0.122560579000000E+03),\n new google.maps.LatLng( 0.465008110000000E+02, -0.122560976000000E+03),\n new google.maps.LatLng( 0.465026393791016E+02, -0.122569144431250E+03),\n new google.maps.LatLng( 0.465031880000000E+02, -0.122576170000000E+03),\n new google.maps.LatLng( 0.465020200000000E+02, -0.122588583000000E+03),\n new google.maps.LatLng( 0.465031860000000E+02, -0.122588319000000E+03),\n new google.maps.LatLng( 0.465031860000000E+02, -0.122588319000000E+03),\n new google.maps.LatLng( 0.465055480000000E+02, -0.122586732000000E+03),\n new google.maps.LatLng( 0.465055480000000E+02, -0.122586732000000E+03),\n new google.maps.LatLng( 0.465064320000000E+02, -0.122585771000000E+03),\n new google.maps.LatLng( 0.465101590000000E+02, -0.122577926000000E+03),\n new google.maps.LatLng( 0.465138400000000E+02, -0.122571637000000E+03),\n new google.maps.LatLng( 0.465157370000000E+02, -0.122569650000000E+03),\n new google.maps.LatLng( 0.465242870000000E+02, -0.122567830000000E+03),\n new google.maps.LatLng( 0.465316700000000E+02, -0.122568526000000E+03),\n new google.maps.LatLng( 0.465409510000000E+02, -0.122566010000000E+03),\n new google.maps.LatLng( 0.465428480000000E+02, -0.122563757000000E+03),\n new google.maps.LatLng( 0.465436480000000E+02, -0.122562035000000E+03),\n new google.maps.LatLng( 0.465437160000000E+02, -0.122558987000000E+03),\n new google.maps.LatLng( 0.465458650000000E+02, -0.122552527000000E+03),\n new google.maps.LatLng( 0.465496580000000E+02, -0.122543614000000E+03),\n new google.maps.LatLng( 0.465512120000000E+02, -0.122540631000000E+03),\n new google.maps.LatLng( 0.465535870000000E+02, -0.122537814000000E+03),\n new google.maps.LatLng( 0.465543190000000E+02, -0.122537979000000E+03),\n new google.maps.LatLng( 0.465544750000000E+02, -0.122538909000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.481454480000000E+02, -0.118027020000000E+03),\n new google.maps.LatLng( 0.481438470000000E+02, -0.118023675000000E+03),\n new google.maps.LatLng( 0.481396640000000E+02, -0.118020060000000E+03),\n new google.maps.LatLng( 0.481384070000000E+02, -0.118018421000000E+03),\n new google.maps.LatLng( 0.481346740000000E+02, -0.118001663000000E+03),\n new google.maps.LatLng( 0.481309510000000E+02, -0.117994872000000E+03),\n new google.maps.LatLng( 0.481310470000000E+02, -0.117985040000000E+03),\n new google.maps.LatLng( 0.481246870000000E+02, -0.117984056000000E+03),\n new google.maps.LatLng( 0.481196410000000E+02, -0.117981244000000E+03),\n new google.maps.LatLng( 0.481176790000000E+02, -0.117971516000000E+03),\n new google.maps.LatLng( 0.481158290000000E+02, -0.117967488000000E+03),\n new google.maps.LatLng( 0.481135450000000E+02, -0.117963972000000E+03),\n new google.maps.LatLng( 0.481124720000000E+02, -0.117960832000000E+03),\n new google.maps.LatLng( 0.481132730000000E+02, -0.117951448000000E+03),\n new google.maps.LatLng( 0.481093660000000E+02, -0.117941620000000E+03),\n new google.maps.LatLng( 0.481088860000000E+02, -0.117929917000000E+03),\n new google.maps.LatLng( 0.481107130000000E+02, -0.117914356000000E+03),\n new google.maps.LatLng( 0.481153720000000E+02, -0.117902718000000E+03),\n new google.maps.LatLng( 0.481235730000000E+02, -0.117893224000000E+03),\n new google.maps.LatLng( 0.481260210000000E+02, -0.117891035000000E+03),\n new google.maps.LatLng( 0.481272550000000E+02, -0.117891068000000E+03),\n new google.maps.LatLng( 0.481295160000000E+02, -0.117888677000000E+03),\n new google.maps.LatLng( 0.481312500000000E+02, -0.117881609000000E+03),\n new google.maps.LatLng( 0.481312270000000E+02, -0.117880722000000E+03),\n new google.maps.LatLng( 0.481282320000000E+02, -0.117878029000000E+03),\n new google.maps.LatLng( 0.481258780000000E+02, -0.117873887000000E+03),\n new google.maps.LatLng( 0.481231130000000E+02, -0.117865354000000E+03),\n new google.maps.LatLng( 0.481200540000000E+02, -0.117858901000000E+03),\n new google.maps.LatLng( 0.481193000000000E+02, -0.117857773000000E+03),\n new google.maps.LatLng( 0.481174490000000E+02, -0.117858829000000E+03),\n new google.maps.LatLng( 0.481157120000000E+02, -0.117858520000000E+03),\n new google.maps.LatLng( 0.481126620000000E+02, -0.117850597000000E+03),\n new google.maps.LatLng( 0.481126620000000E+02, -0.117850597000000E+03),\n new google.maps.LatLng( 0.481121730000000E+02, -0.117851795000000E+03),\n new google.maps.LatLng( 0.481105040000000E+02, -0.117851896000000E+03),\n new google.maps.LatLng( 0.481067800000000E+02, -0.117849232000000E+03),\n new google.maps.LatLng( 0.481055470000000E+02, -0.117846843000000E+03),\n new google.maps.LatLng( 0.481040840000000E+02, -0.117846568000000E+03),\n new google.maps.LatLng( 0.481034440000000E+02, -0.117846909000000E+03),\n new google.maps.LatLng( 0.481030780000000E+02, -0.117847932000000E+03),\n new google.maps.LatLng( 0.481030510000000E+02, -0.117859498000000E+03),\n new google.maps.LatLng( 0.480969260000000E+02, -0.117861915000000E+03),\n new google.maps.LatLng( 0.480961720000000E+02, -0.117861709000000E+03),\n new google.maps.LatLng( 0.480937740000000E+02, -0.117860036000000E+03),\n new google.maps.LatLng( 0.480886360000000E+02, -0.117850105000000E+03),\n new google.maps.LatLng( 0.480813960000000E+02, -0.117830695000000E+03),\n new google.maps.LatLng( 0.480795690000000E+02, -0.117828682000000E+03),\n new google.maps.LatLng( 0.480635040000000E+02, -0.117830245000000E+03),\n new google.maps.LatLng( 0.480490610000000E+02, -0.117824071000000E+03),\n new google.maps.LatLng( 0.480490630000000E+02, -0.117805871000000E+03),\n new google.maps.LatLng( 0.480511650000000E+02, -0.117801100000000E+03),\n new google.maps.LatLng( 0.480510950000000E+02, -0.117794453000000E+03),\n new google.maps.LatLng( 0.480446690000000E+02, -0.117774996000000E+03),\n new google.maps.LatLng( 0.480446460000000E+02, -0.117774042000000E+03),\n new google.maps.LatLng( 0.480461530000000E+02, -0.117771008000000E+03),\n new google.maps.LatLng( 0.480484830000000E+02, -0.117768927000000E+03),\n new google.maps.LatLng( 0.480566190000000E+02, -0.117767727000000E+03),\n new google.maps.LatLng( 0.480579470000000E+02, -0.117777747000000E+03),\n new google.maps.LatLng( 0.480561650000000E+02, -0.117780272000000E+03),\n new google.maps.LatLng( 0.480562360000000E+02, -0.117790293000000E+03),\n new google.maps.LatLng( 0.480667930000000E+02, -0.117790288000000E+03),\n new google.maps.LatLng( 0.480669980000000E+02, -0.117787117000000E+03),\n new google.maps.LatLng( 0.480685070000000E+02, -0.117784832000000E+03),\n new google.maps.LatLng( 0.480691930000000E+02, -0.117784593000000E+03),\n new google.maps.LatLng( 0.480787680000000E+02, -0.117784827000000E+03),\n new google.maps.LatLng( 0.480842300000000E+02, -0.117787860000000E+03),\n new google.maps.LatLng( 0.480876580000000E+02, -0.117788575000000E+03),\n new google.maps.LatLng( 0.480925470000000E+02, -0.117784411000000E+03),\n new google.maps.LatLng( 0.480924500000000E+02, -0.117776274000000E+03),\n new google.maps.LatLng( 0.480937540000000E+02, -0.117771755000000E+03),\n new google.maps.LatLng( 0.480950560000000E+02, -0.117769537000000E+03),\n new google.maps.LatLng( 0.480959920000000E+02, -0.117766602000000E+03),\n new google.maps.LatLng( 0.480959610000000E+02, -0.117757973000000E+03),\n new google.maps.LatLng( 0.480995850000000E+02, -0.117757937000000E+03),\n new google.maps.LatLng( 0.480973600000000E+02, -0.117755207000000E+03),\n new google.maps.LatLng( 0.480882350000000E+02, -0.117754390000000E+03),\n new google.maps.LatLng( 0.480871530000000E+02, -0.117751072000000E+03),\n new google.maps.LatLng( 0.480833030000000E+02, -0.117747536000000E+03),\n new google.maps.LatLng( 0.480775220000000E+02, -0.117746062000000E+03),\n new google.maps.LatLng( 0.480761510000000E+02, -0.117746027000000E+03),\n new google.maps.LatLng( 0.480722890000000E+02, -0.117747250000000E+03),\n new google.maps.LatLng( 0.480685180000000E+02, -0.117746530000000E+03),\n new google.maps.LatLng( 0.480609560000000E+02, -0.117743248000000E+03),\n new google.maps.LatLng( 0.480605920000000E+02, -0.117740521000000E+03),\n new google.maps.LatLng( 0.480605920000000E+02, -0.117740521000000E+03),\n new google.maps.LatLng( 0.480604266548828E+02, -0.117738435408984E+03),\n new google.maps.LatLng( 0.480591102548828E+02, -0.117738781608984E+03),\n new google.maps.LatLng( 0.480590484548828E+02, -0.117737795208984E+03),\n new google.maps.LatLng( 0.480607698548828E+02, -0.117733244208984E+03),\n new google.maps.LatLng( 0.480619620548828E+02, -0.117731934408984E+03),\n new google.maps.LatLng( 0.480631960000000E+02, -0.117727912000000E+03),\n new google.maps.LatLng( 0.480638130000000E+02, -0.117725625000000E+03),\n new google.maps.LatLng( 0.480628150000000E+02, -0.117724807000000E+03),\n new google.maps.LatLng( 0.480608710000000E+02, -0.117727260000000E+03),\n new google.maps.LatLng( 0.480566145381836E+02, -0.117738554496484E+03),\n new google.maps.LatLng( 0.480525250000000E+02, -0.117741466000000E+03),\n new google.maps.LatLng( 0.480451100000000E+02, -0.117741230000000E+03),\n new google.maps.LatLng( 0.480417640000000E+02, -0.117737830000000E+03),\n new google.maps.LatLng( 0.480318190000000E+02, -0.117732682000000E+03),\n new google.maps.LatLng( 0.480293100000000E+02, -0.117732005000000E+03),\n new google.maps.LatLng( 0.480269560000000E+02, -0.117732003000000E+03),\n new google.maps.LatLng( 0.480272380000000E+02, -0.117709075000000E+03),\n new google.maps.LatLng( 0.480292030000000E+02, -0.117708667000000E+03),\n new google.maps.LatLng( 0.480306210000000E+02, -0.117703796000000E+03),\n new google.maps.LatLng( 0.480301180000000E+02, -0.117703012000000E+03),\n new google.maps.LatLng( 0.480288390000000E+02, -0.117702773000000E+03),\n new google.maps.LatLng( 0.480251600000000E+02, -0.117700592000000E+03),\n new google.maps.LatLng( 0.480230120000000E+02, -0.117697424000000E+03),\n new google.maps.LatLng( 0.480223720000000E+02, -0.117690815000000E+03),\n new google.maps.LatLng( 0.480205670000000E+02, -0.117683525000000E+03),\n new google.maps.LatLng( 0.480204980000000E+02, -0.117675248000000E+03),\n new google.maps.LatLng( 0.480194170000000E+02, -0.117677848000000E+03),\n new google.maps.LatLng( 0.480194170000000E+02, -0.117677848000000E+03),\n new google.maps.LatLng( 0.480197110000000E+02, -0.117680392000000E+03),\n new google.maps.LatLng( 0.480164310000000E+02, -0.117681176000000E+03),\n new google.maps.LatLng( 0.480138160000000E+02, -0.117681118000000E+03),\n new google.maps.LatLng( 0.480129560000000E+02, -0.117678179000000E+03),\n new google.maps.LatLng( 0.480043510000000E+02, -0.117669500000000E+03),\n new google.maps.LatLng( 0.479988420000000E+02, -0.117669509000000E+03),\n new google.maps.LatLng( 0.479995000000000E+02, -0.117665789000000E+03),\n new google.maps.LatLng( 0.480014130000000E+02, -0.117663369000000E+03),\n new google.maps.LatLng( 0.479944680000000E+02, -0.117661398000000E+03),\n new google.maps.LatLng( 0.479921130000000E+02, -0.117659391000000E+03),\n new google.maps.LatLng( 0.479816700000000E+02, -0.117659975000000E+03),\n new google.maps.LatLng( 0.479781510000000E+02, -0.117662155000000E+03),\n new google.maps.LatLng( 0.479712950000000E+02, -0.117660321000000E+03),\n new google.maps.LatLng( 0.479696500000000E+02, -0.117660628000000E+03),\n new google.maps.LatLng( 0.479628180000000E+02, -0.117664714000000E+03),\n new google.maps.LatLng( 0.479604870000000E+02, -0.117665566000000E+03),\n new google.maps.LatLng( 0.479587500000000E+02, -0.117665090000000E+03),\n new google.maps.LatLng( 0.479576530000000E+02, -0.117665363000000E+03),\n new google.maps.LatLng( 0.479555050000000E+02, -0.117666793000000E+03),\n new google.maps.LatLng( 0.479553000000000E+02, -0.117668120000000E+03),\n new google.maps.LatLng( 0.479560770000000E+02, -0.117671725000000E+03),\n new google.maps.LatLng( 0.479560770000000E+02, -0.117671725000000E+03),\n new google.maps.LatLng( 0.479538160000000E+02, -0.117675060000000E+03),\n new google.maps.LatLng( 0.479521700000000E+02, -0.117680979000000E+03),\n new google.maps.LatLng( 0.479475990000000E+02, -0.117683327000000E+03),\n new google.maps.LatLng( 0.479472230000000E+02, -0.117687647000000E+03),\n new google.maps.LatLng( 0.479472150000000E+02, -0.117712478000000E+03),\n new google.maps.LatLng( 0.479461690000000E+02, -0.117712517000000E+03),\n new google.maps.LatLng( 0.479417240000000E+02, -0.117710740000000E+03),\n new google.maps.LatLng( 0.479409920000000E+02, -0.117712134000000E+03),\n new google.maps.LatLng( 0.479419050000000E+02, -0.117718257000000E+03),\n new google.maps.LatLng( 0.479419050000000E+02, -0.117718257000000E+03),\n new google.maps.LatLng( 0.479433900000000E+02, -0.117720536000000E+03),\n new google.maps.LatLng( 0.479452850000000E+02, -0.117725469000000E+03),\n new google.maps.LatLng( 0.479466770000000E+02, -0.117731866000000E+03),\n new google.maps.LatLng( 0.479461500000000E+02, -0.117735403000000E+03),\n new google.maps.LatLng( 0.479454640000000E+02, -0.117735674000000E+03),\n new google.maps.LatLng( 0.479432970000000E+02, -0.117734788000000E+03),\n new google.maps.LatLng( 0.479368260000000E+02, -0.117736447000000E+03),\n new google.maps.LatLng( 0.479355450000000E+02, -0.117737534000000E+03),\n new google.maps.LatLng( 0.479360930000000E+02, -0.117738793000000E+03),\n new google.maps.LatLng( 0.479363900000000E+02, -0.117739202000000E+03),\n new google.maps.LatLng( 0.479376700000000E+02, -0.117738864000000E+03),\n new google.maps.LatLng( 0.479390640000000E+02, -0.117739579000000E+03),\n new google.maps.LatLng( 0.479394970000000E+02, -0.117741042000000E+03),\n new google.maps.LatLng( 0.479362520000000E+02, -0.117742433000000E+03),\n new google.maps.LatLng( 0.479309040000000E+02, -0.117742732000000E+03),\n new google.maps.LatLng( 0.479298080000000E+02, -0.117741065000000E+03),\n new google.maps.LatLng( 0.479290310000000E+02, -0.117740656000000E+03),\n new google.maps.LatLng( 0.479268580000000E+02, -0.117744734000000E+03),\n new google.maps.LatLng( 0.479255750000000E+02, -0.117750275000000E+03),\n new google.maps.LatLng( 0.479250970000000E+02, -0.117755293000000E+03),\n new google.maps.LatLng( 0.479240020000000E+02, -0.117759204000000E+03),\n new google.maps.LatLng( 0.479210100000000E+02, -0.117761417000000E+03),\n new google.maps.LatLng( 0.479222230000000E+02, -0.117767535000000E+03),\n new google.maps.LatLng( 0.479190950000000E+02, -0.117773148000000E+03),\n new google.maps.LatLng( 0.479190950000000E+02, -0.117773148000000E+03),\n new google.maps.LatLng( 0.479200780000000E+02, -0.117776003000000E+03),\n new google.maps.LatLng( 0.479211980000000E+02, -0.117777260000000E+03),\n new google.maps.LatLng( 0.479220210000000E+02, -0.117777871000000E+03),\n new google.maps.LatLng( 0.479265460000000E+02, -0.117778854000000E+03),\n new google.maps.LatLng( 0.479319600000000E+02, -0.117772798000000E+03),\n new google.maps.LatLng( 0.479410540000000E+02, -0.117768438000000E+03),\n new google.maps.LatLng( 0.479410790000000E+02, -0.117775512000000E+03),\n new google.maps.LatLng( 0.479419040000000E+02, -0.117781124000000E+03),\n new google.maps.LatLng( 0.479404890000000E+02, -0.117789729000000E+03),\n new google.maps.LatLng( 0.479479850000000E+02, -0.117790475000000E+03),\n new google.maps.LatLng( 0.479551600000000E+02, -0.117787342000000E+03),\n new google.maps.LatLng( 0.479673830000000E+02, -0.117775971000000E+03),\n new google.maps.LatLng( 0.479721130000000E+02, -0.117773313000000E+03),\n new google.maps.LatLng( 0.479816390000000E+02, -0.117764354000000E+03),\n new google.maps.LatLng( 0.479862980000000E+02, -0.117759073000000E+03),\n new google.maps.LatLng( 0.479944550000000E+02, -0.117755422000000E+03),\n new google.maps.LatLng( 0.479959160000000E+02, -0.117752629000000E+03),\n new google.maps.LatLng( 0.479984300000000E+02, -0.117753273000000E+03),\n new google.maps.LatLng( 0.480019060000000E+02, -0.117756449000000E+03),\n new google.maps.LatLng( 0.480019410000000E+02, -0.117807160000000E+03),\n new google.maps.LatLng( 0.480019410000000E+02, -0.117807160000000E+03),\n new google.maps.LatLng( 0.480023420000000E+02, -0.117944534000000E+03),\n new google.maps.LatLng( 0.480023420000000E+02, -0.117944534000000E+03),\n new google.maps.LatLng( 0.480041100000000E+02, -0.117942325000000E+03),\n new google.maps.LatLng( 0.480071260000000E+02, -0.117940929000000E+03),\n new google.maps.LatLng( 0.480061890000000E+02, -0.117944504000000E+03),\n new google.maps.LatLng( 0.480057320000000E+02, -0.117949884000000E+03),\n new google.maps.LatLng( 0.480059590000000E+02, -0.117958807000000E+03),\n new google.maps.LatLng( 0.480064390000000E+02, -0.117960203000000E+03),\n new google.maps.LatLng( 0.480098880000000E+02, -0.117965176000000E+03),\n new google.maps.LatLng( 0.480188210000000E+02, -0.117973424000000E+03),\n new google.maps.LatLng( 0.480222920000000E+02, -0.117981738000000E+03),\n new google.maps.LatLng( 0.480276590000000E+02, -0.117987602000000E+03),\n new google.maps.LatLng( 0.480320890000000E+02, -0.117995102000000E+03),\n new google.maps.LatLng( 0.480355860000000E+02, -0.118007129000000E+03),\n new google.maps.LatLng( 0.480314580000000E+02, -0.118030913000000E+03),\n new google.maps.LatLng( 0.480370360000000E+02, -0.118038747000000E+03),\n new google.maps.LatLng( 0.480399630000000E+02, -0.118048083000000E+03),\n new google.maps.LatLng( 0.480429340000000E+02, -0.118050944000000E+03),\n new google.maps.LatLng( 0.480501740000000E+02, -0.118061282000000E+03),\n new google.maps.LatLng( 0.480523270000000E+02, -0.118056872000000E+03),\n new google.maps.LatLng( 0.480528060000000E+02, -0.118051249000000E+03),\n new google.maps.LatLng( 0.480539030000000E+02, -0.118047329000000E+03),\n new google.maps.LatLng( 0.480586550000000E+02, -0.118041295000000E+03),\n new google.maps.LatLng( 0.480632930000000E+02, -0.118038634000000E+03),\n new google.maps.LatLng( 0.480672000000000E+02, -0.118038871000000E+03),\n new google.maps.LatLng( 0.480692340000000E+02, -0.118038222000000E+03),\n new google.maps.LatLng( 0.480705590000000E+02, -0.118036721000000E+03),\n new google.maps.LatLng( 0.480710380000000E+02, -0.118033721000000E+03),\n new google.maps.LatLng( 0.480716100000000E+02, -0.118032800000000E+03),\n new google.maps.LatLng( 0.480749690000000E+02, -0.118029762000000E+03),\n new google.maps.LatLng( 0.480796760000000E+02, -0.118030170000000E+03),\n new google.maps.LatLng( 0.480828980000000E+02, -0.118031566000000E+03),\n new google.maps.LatLng( 0.480839370000000E+02, -0.118030955000000E+03),\n new google.maps.LatLng( 0.480839370000000E+02, -0.118030955000000E+03),\n new google.maps.LatLng( 0.480866230000000E+02, -0.118029995000000E+03),\n new google.maps.LatLng( 0.480951230000000E+02, -0.118028318000000E+03),\n new google.maps.LatLng( 0.481054750000000E+02, -0.118028618000000E+03),\n new google.maps.LatLng( 0.481140430000000E+02, -0.118024587000000E+03),\n new google.maps.LatLng( 0.481154600000000E+02, -0.118024313000000E+03),\n new google.maps.LatLng( 0.481177460000000E+02, -0.118029260000000E+03),\n new google.maps.LatLng( 0.481193020000000E+02, -0.118036118000000E+03),\n new google.maps.LatLng( 0.481206510000000E+02, -0.118038575000000E+03),\n new google.maps.LatLng( 0.481218390000000E+02, -0.118039223000000E+03),\n new google.maps.LatLng( 0.481241020000000E+02, -0.118042054000000E+03),\n new google.maps.LatLng( 0.481255710000000E+02, -0.118045499000000E+03),\n new google.maps.LatLng( 0.481290220000000E+02, -0.118050584000000E+03),\n new google.maps.LatLng( 0.481308490000000E+02, -0.118050494000000E+03),\n new google.maps.LatLng( 0.481344370000000E+02, -0.118046145000000E+03),\n new google.maps.LatLng( 0.481361040000000E+02, -0.118040375000000E+03),\n new google.maps.LatLng( 0.481403550000000E+02, -0.118036789000000E+03),\n new google.maps.LatLng( 0.481441920000000E+02, -0.118028694000000E+03),\n new google.maps.LatLng( 0.481454480000000E+02, -0.118027020000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.476060950000000E+02, -0.122996995000000E+03),\n new google.maps.LatLng( 0.476061290000000E+02, -0.122987418000000E+03),\n new google.maps.LatLng( 0.476061290000000E+02, -0.122987418000000E+03),\n new google.maps.LatLng( 0.476047850000000E+02, -0.122986922000000E+03),\n new google.maps.LatLng( 0.476018360000000E+02, -0.122988406000000E+03),\n new google.maps.LatLng( 0.475911820000000E+02, -0.122995862000000E+03),\n new google.maps.LatLng( 0.475829540000000E+02, -0.123004994000000E+03),\n new google.maps.LatLng( 0.475766010000000E+02, -0.123006622000000E+03),\n new google.maps.LatLng( 0.475720770000000E+02, -0.123009768000000E+03),\n new google.maps.LatLng( 0.475704330000000E+02, -0.123013147000000E+03),\n new google.maps.LatLng( 0.475694510000000E+02, -0.123014127000000E+03),\n new google.maps.LatLng( 0.475680800000000E+02, -0.123014770000000E+03),\n new google.maps.LatLng( 0.475648350000000E+02, -0.123015246000000E+03),\n new google.maps.LatLng( 0.475614310000000E+02, -0.123019503000000E+03),\n new google.maps.LatLng( 0.475587130000000E+02, -0.123024367000000E+03),\n new google.maps.LatLng( 0.475532530000000E+02, -0.123030853000000E+03),\n new google.maps.LatLng( 0.475513110000000E+02, -0.123032203000000E+03),\n new google.maps.LatLng( 0.475507860000000E+02, -0.123034298000000E+03),\n new google.maps.LatLng( 0.475509470000000E+02, -0.123040070000000E+03),\n new google.maps.LatLng( 0.475502160000000E+02, -0.123042569000000E+03),\n new google.maps.LatLng( 0.475469250000000E+02, -0.123041253000000E+03),\n new google.maps.LatLng( 0.475451650000000E+02, -0.123039093000000E+03),\n new google.maps.LatLng( 0.475389940000000E+02, -0.123040716000000E+03),\n new google.maps.LatLng( 0.475339670000000E+02, -0.123043451000000E+03),\n new google.maps.LatLng( 0.475273850000000E+02, -0.123049764000000E+03),\n new google.maps.LatLng( 0.475162550000000E+02, -0.123053714000000E+03),\n new google.maps.LatLng( 0.475100850000000E+02, -0.123057087000000E+03),\n new google.maps.LatLng( 0.475089190000000E+02, -0.123056885000000E+03),\n new google.maps.LatLng( 0.475076850000000E+02, -0.123055131000000E+03),\n new google.maps.LatLng( 0.475027940000000E+02, -0.123057189000000E+03),\n new google.maps.LatLng( 0.474995080000000E+02, -0.123059753000000E+03),\n new google.maps.LatLng( 0.474972570000000E+02, -0.123063800000000E+03),\n new google.maps.LatLng( 0.474890980000000E+02, -0.123074286000000E+03),\n new google.maps.LatLng( 0.474819890000000E+02, -0.123080184000000E+03),\n new google.maps.LatLng( 0.474803660000000E+02, -0.123084027000000E+03),\n new google.maps.LatLng( 0.474776450000000E+02, -0.123087127000000E+03),\n new google.maps.LatLng( 0.474716560000000E+02, -0.123091439000000E+03),\n new google.maps.LatLng( 0.474632200000000E+02, -0.123100737000000E+03),\n new google.maps.LatLng( 0.474614360000000E+02, -0.123105724000000E+03),\n new google.maps.LatLng( 0.474611830000000E+02, -0.123107981000000E+03),\n new google.maps.LatLng( 0.474616630000000E+02, -0.123109667000000E+03),\n new google.maps.LatLng( 0.474629880000000E+02, -0.123111083000000E+03),\n new google.maps.LatLng( 0.474632380000000E+02, -0.123114049000000E+03),\n new google.maps.LatLng( 0.474632380000000E+02, -0.123114049000000E+03),\n new google.maps.LatLng( 0.474634430000000E+02, -0.123114637000000E+03),\n new google.maps.LatLng( 0.474621410000000E+02, -0.123114756000000E+03),\n new google.maps.LatLng( 0.474598790000000E+02, -0.123112125000000E+03),\n new google.maps.LatLng( 0.474584390000000E+02, -0.123112124000000E+03),\n new google.maps.LatLng( 0.474583010000000E+02, -0.123113674000000E+03),\n new google.maps.LatLng( 0.474595780000000E+02, -0.123119640000000E+03),\n new google.maps.LatLng( 0.474599210000000E+02, -0.123119977000000E+03),\n new google.maps.LatLng( 0.474606070000000E+02, -0.123118697000000E+03),\n new google.maps.LatLng( 0.474612470000000E+02, -0.123118428000000E+03),\n new google.maps.LatLng( 0.474650630000000E+02, -0.123120994000000E+03),\n new google.maps.LatLng( 0.474677830000000E+02, -0.123131134000000E+03),\n new google.maps.LatLng( 0.474677830000000E+02, -0.123131134000000E+03),\n new google.maps.LatLng( 0.474811670000000E+02, -0.123129907000000E+03),\n new google.maps.LatLng( 0.474829800000000E+02, -0.123128252000000E+03),\n new google.maps.LatLng( 0.474867300000000E+02, -0.123131922000000E+03),\n new google.maps.LatLng( 0.474906850000000E+02, -0.123134582000000E+03),\n new google.maps.LatLng( 0.474924000000000E+02, -0.123135154000000E+03),\n new google.maps.LatLng( 0.474976560000000E+02, -0.123134305000000E+03),\n new google.maps.LatLng( 0.474998856337891E+02, -0.123132468558984E+03),\n new google.maps.LatLng( 0.475004700000000E+02, -0.123128366000000E+03),\n new google.maps.LatLng( 0.474984990000000E+02, -0.123123426000000E+03),\n new google.maps.LatLng( 0.474991170000000E+02, -0.123121875000000E+03),\n new google.maps.LatLng( 0.475039827717773E+02, -0.123129053696289E+03),\n new google.maps.LatLng( 0.475033755717773E+02, -0.123132015896289E+03),\n new google.maps.LatLng( 0.475136630000000E+02, -0.123138877000000E+03),\n new google.maps.LatLng( 0.475182750000000E+02, -0.123130371000000E+03),\n new google.maps.LatLng( 0.475215660000000E+02, -0.123121766000000E+03),\n new google.maps.LatLng( 0.475234670000000E+02, -0.123110254000000E+03),\n new google.maps.LatLng( 0.475229590000000E+02, -0.123106692000000E+03),\n new google.maps.LatLng( 0.475189930000000E+02, -0.123099529000000E+03),\n new google.maps.LatLng( 0.475161310000000E+02, -0.123098387000000E+03),\n new google.maps.LatLng( 0.475279230000000E+02, -0.123087747000000E+03),\n new google.maps.LatLng( 0.475635470000000E+02, -0.123068121000000E+03),\n new google.maps.LatLng( 0.475729790000000E+02, -0.123037896000000E+03),\n new google.maps.LatLng( 0.476060950000000E+02, -0.122996995000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.486252951504850E+02, -0.122690351185951E+03),\n new google.maps.LatLng( 0.486299440000000E+02, -0.122674173000000E+03),\n new google.maps.LatLng( 0.486283357624690E+02, -0.122672797019782E+03),\n new google.maps.LatLng( 0.486229312564002E+02, -0.122668173017856E+03),\n new google.maps.LatLng( 0.486163405629633E+02, -0.122662534134532E+03),\n new google.maps.LatLng( 0.486127802359089E+02, -0.122659487980277E+03),\n new google.maps.LatLng( 0.486098910000000E+02, -0.122657016000000E+03),\n new google.maps.LatLng( 0.486080880000000E+02, -0.122666149000000E+03),\n new google.maps.LatLng( 0.486100550000000E+02, -0.122676796000000E+03),\n new google.maps.LatLng( 0.486110593254664E+02, -0.122679716333905E+03),\n new google.maps.LatLng( 0.486119869223938E+02, -0.122682413559903E+03),\n new google.maps.LatLng( 0.486132671254121E+02, -0.122686136078553E+03),\n new google.maps.LatLng( 0.486133159037064E+02, -0.122686217687295E+03),\n new google.maps.LatLng( 0.486133311563465E+02, -0.122686243205793E+03),\n new google.maps.LatLng( 0.486178266200440E+02, -0.122693764361305E+03),\n new google.maps.LatLng( 0.486210827251475E+02, -0.122699212002415E+03),\n new google.maps.LatLng( 0.486211150000000E+02, -0.122699266000000E+03),\n new google.maps.LatLng( 0.486211638826113E+02, -0.122699235998764E+03),\n new google.maps.LatLng( 0.486230800000000E+02, -0.122698060000000E+03),\n new google.maps.LatLng( 0.486252951504850E+02, -0.122690351185951E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.464423740000000E+02, -0.120346099000000E+03),\n new google.maps.LatLng( 0.464370880000000E+02, -0.120349293000000E+03),\n new google.maps.LatLng( 0.464335240000000E+02, -0.120348332000000E+03),\n new google.maps.LatLng( 0.464303720000000E+02, -0.120346843000000E+03),\n new google.maps.LatLng( 0.464288870000000E+02, -0.120341483000000E+03),\n new google.maps.LatLng( 0.464236460000000E+02, -0.120338015000000E+03),\n new google.maps.LatLng( 0.464213190000000E+02, -0.120335896000000E+03),\n new google.maps.LatLng( 0.464137880000000E+02, -0.120327146000000E+03),\n new google.maps.LatLng( 0.464134000000000E+02, -0.120325296000000E+03),\n new google.maps.LatLng( 0.464137200000000E+02, -0.120324305000000E+03),\n new google.maps.LatLng( 0.464153650000000E+02, -0.120322819000000E+03),\n new google.maps.LatLng( 0.464151820000000E+02, -0.120321729000000E+03),\n new google.maps.LatLng( 0.464144280000000E+02, -0.120320275000000E+03),\n new google.maps.LatLng( 0.464040350000000E+02, -0.120308279000000E+03),\n new google.maps.LatLng( 0.464033850000000E+02, -0.120299122000000E+03),\n new google.maps.LatLng( 0.464039290000000E+02, -0.120298024000000E+03),\n new google.maps.LatLng( 0.464051050000000E+02, -0.120297881000000E+03),\n new google.maps.LatLng( 0.464069560000000E+02, -0.120295701000000E+03),\n new google.maps.LatLng( 0.464070930000000E+02, -0.120294281000000E+03),\n new google.maps.LatLng( 0.464059720000000E+02, -0.120290549000000E+03),\n new google.maps.LatLng( 0.463995390000000E+02, -0.120281228000000E+03),\n new google.maps.LatLng( 0.463958780000000E+02, -0.120283958000000E+03),\n new google.maps.LatLng( 0.463874380000000E+02, -0.120270582000000E+03),\n new google.maps.LatLng( 0.463877340000000E+02, -0.120267280000000E+03),\n new google.maps.LatLng( 0.463883730000000E+02, -0.120265200000000E+03),\n new google.maps.LatLng( 0.463892860000000E+02, -0.120264241000000E+03),\n new google.maps.LatLng( 0.463900140000000E+02, -0.120256350000000E+03),\n new google.maps.LatLng( 0.463895560000000E+02, -0.120255062000000E+03),\n new google.maps.LatLng( 0.463877970000000E+02, -0.120255031000000E+03),\n new google.maps.LatLng( 0.463865410000000E+02, -0.120255693000000E+03),\n new google.maps.LatLng( 0.463847800000000E+02, -0.120253945000000E+03),\n new google.maps.LatLng( 0.463844820000000E+02, -0.120251799000000E+03),\n new google.maps.LatLng( 0.463854690000000E+02, -0.120248586000000E+03),\n new google.maps.LatLng( 0.463853110000000E+02, -0.120244921000000E+03),\n new google.maps.LatLng( 0.463824560000000E+02, -0.120242443000000E+03),\n new google.maps.LatLng( 0.463815430000000E+02, -0.120240560000000E+03),\n new google.maps.LatLng( 0.463814980000000E+02, -0.120239372000000E+03),\n new google.maps.LatLng( 0.463821840000000E+02, -0.120237821000000E+03),\n new google.maps.LatLng( 0.463840570000000E+02, -0.120238152000000E+03),\n new google.maps.LatLng( 0.463848120000000E+02, -0.120237460000000E+03),\n new google.maps.LatLng( 0.463850860000000E+02, -0.120235842000000E+03),\n new google.maps.LatLng( 0.463842880000000E+02, -0.120231682000000E+03),\n new google.maps.LatLng( 0.463783960000000E+02, -0.120224348000000E+03),\n new google.maps.LatLng( 0.463761120000000E+02, -0.120223093000000E+03),\n new google.maps.LatLng( 0.463699150000000E+02, -0.120223215000000E+03),\n new google.maps.LatLng( 0.463629460000000E+02, -0.120224729000000E+03),\n new google.maps.LatLng( 0.463602970000000E+02, -0.120221362000000E+03),\n new google.maps.LatLng( 0.463584920000000E+02, -0.120221427000000E+03),\n new google.maps.LatLng( 0.463576240000000E+02, -0.120222020000000E+03),\n new google.maps.LatLng( 0.463571890000000E+02, -0.120223406000000E+03),\n new google.maps.LatLng( 0.463552930000000E+02, -0.120223867000000E+03),\n new google.maps.LatLng( 0.463540820000000E+02, -0.120222282000000E+03),\n new google.maps.LatLng( 0.463540820000000E+02, -0.120222282000000E+03),\n new google.maps.LatLng( 0.463528260000000E+02, -0.120222150000000E+03),\n new google.maps.LatLng( 0.463509300000000E+02, -0.120220763000000E+03),\n new google.maps.LatLng( 0.463462710000000E+02, -0.120213271000000E+03),\n new google.maps.LatLng( 0.463460420000000E+02, -0.120212446000000E+03),\n new google.maps.LatLng( 0.463470030000000E+02, -0.120207663000000E+03),\n new google.maps.LatLng( 0.463445590000000E+02, -0.120202450000000E+03),\n new google.maps.LatLng( 0.463436220000000E+02, -0.120201295000000E+03),\n new google.maps.LatLng( 0.463362660000000E+02, -0.120196543000000E+03),\n new google.maps.LatLng( 0.463329440000000E+02, -0.120195070000000E+03),\n new google.maps.LatLng( 0.463306180000000E+02, -0.120199823000000E+03),\n new google.maps.LatLng( 0.463205850000000E+02, -0.120225622000000E+03),\n new google.maps.LatLng( 0.463046570000000E+02, -0.120200677000000E+03),\n new google.maps.LatLng( 0.463040070000000E+02, -0.120200720000000E+03),\n new google.maps.LatLng( 0.462994140000000E+02, -0.120194035000000E+03),\n new google.maps.LatLng( 0.462593790000000E+02, -0.120133882000000E+03),\n new google.maps.LatLng( 0.462593790000000E+02, -0.120133882000000E+03),\n new google.maps.LatLng( 0.462541600000000E+02, -0.120125943000000E+03),\n new google.maps.LatLng( 0.462443740000000E+02, -0.120125819000000E+03),\n new google.maps.LatLng( 0.462447720000000E+02, -0.120114559000000E+03),\n new google.maps.LatLng( 0.462463720000000E+02, -0.120112321000000E+03),\n new google.maps.LatLng( 0.462455280000000E+02, -0.120109884000000E+03),\n new google.maps.LatLng( 0.462383540000000E+02, -0.120108989000000E+03),\n new google.maps.LatLng( 0.462347670000000E+02, -0.120110468000000E+03),\n new google.maps.LatLng( 0.462338750000000E+02, -0.120111521000000E+03),\n new google.maps.LatLng( 0.462338490000000E+02, -0.120119751000000E+03),\n new google.maps.LatLng( 0.462324320000000E+02, -0.120122054000000E+03),\n new google.maps.LatLng( 0.462324500000000E+02, -0.120126862000000E+03),\n new google.maps.LatLng( 0.462332520000000E+02, -0.120131832000000E+03),\n new google.maps.LatLng( 0.462315860000000E+02, -0.120134798000000E+03),\n new google.maps.LatLng( 0.462256710000000E+02, -0.120139709000000E+03),\n new google.maps.LatLng( 0.462191150000000E+02, -0.120142348000000E+03),\n new google.maps.LatLng( 0.462182490000000E+02, -0.120146002000000E+03),\n new google.maps.LatLng( 0.462173350000000E+02, -0.120147122000000E+03),\n new google.maps.LatLng( 0.462150510000000E+02, -0.120146992000000E+03),\n new google.maps.LatLng( 0.462150510000000E+02, -0.120146992000000E+03),\n new google.maps.LatLng( 0.462147570000000E+02, -0.120156142000000E+03),\n new google.maps.LatLng( 0.462165850000000E+02, -0.120158444000000E+03),\n new google.maps.LatLng( 0.462235780000000E+02, -0.120165156000000E+03),\n new google.maps.LatLng( 0.462266630000000E+02, -0.120166273000000E+03),\n new google.maps.LatLng( 0.462276460000000E+02, -0.120167556000000E+03),\n new google.maps.LatLng( 0.462292230000000E+02, -0.120173580000000E+03),\n new google.maps.LatLng( 0.462270770000000E+02, -0.120180691000000E+03),\n new google.maps.LatLng( 0.462240380000000E+02, -0.120183457000000E+03),\n new google.maps.LatLng( 0.461996600000000E+02, -0.120195668000000E+03),\n new google.maps.LatLng( 0.461973750000000E+02, -0.120199583000000E+03),\n new google.maps.LatLng( 0.461933310000000E+02, -0.120204912000000E+03),\n new google.maps.LatLng( 0.461842820000000E+02, -0.120213265000000E+03),\n new google.maps.LatLng( 0.461712350000000E+02, -0.120219442000000E+03),\n new google.maps.LatLng( 0.461601970000000E+02, -0.120226374000000E+03),\n new google.maps.LatLng( 0.461556950000000E+02, -0.120230152000000E+03),\n new google.maps.LatLng( 0.461515120000000E+02, -0.120235738000000E+03),\n new google.maps.LatLng( 0.461456160000000E+02, -0.120239053000000E+03),\n new google.maps.LatLng( 0.461405420000000E+02, -0.120242861000000E+03),\n new google.maps.LatLng( 0.461363130000000E+02, -0.120248049000000E+03),\n new google.maps.LatLng( 0.461386650000000E+02, -0.120250451000000E+03),\n new google.maps.LatLng( 0.461406490000000E+02, -0.120251619000000E+03),\n new google.maps.LatLng( 0.461480980000000E+02, -0.120251831000000E+03),\n new google.maps.LatLng( 0.461507940000000E+02, -0.120253111000000E+03),\n new google.maps.LatLng( 0.461517800000000E+02, -0.120258961000000E+03),\n new google.maps.LatLng( 0.461530380000000E+02, -0.120262675000000E+03),\n new google.maps.LatLng( 0.461539530000000E+02, -0.120263759000000E+03),\n new google.maps.LatLng( 0.461660180000000E+02, -0.120266773000000E+03),\n new google.maps.LatLng( 0.461859880000000E+02, -0.120270702000000E+03),\n new google.maps.LatLng( 0.461869020000000E+02, -0.120270702000000E+03),\n new google.maps.LatLng( 0.461893460000000E+02, -0.120269515000000E+03),\n new google.maps.LatLng( 0.461982350000000E+02, -0.120272272000000E+03),\n new google.maps.LatLng( 0.462067800000000E+02, -0.120271706000000E+03),\n new google.maps.LatLng( 0.462162380000000E+02, -0.120269822000000E+03),\n new google.maps.LatLng( 0.462233440000000E+02, -0.120269092000000E+03),\n new google.maps.LatLng( 0.462291460000000E+02, -0.120266716000000E+03),\n new google.maps.LatLng( 0.462321370000000E+02, -0.120263454000000E+03),\n new google.maps.LatLng( 0.462350580000000E+02, -0.120255945000000E+03),\n new google.maps.LatLng( 0.462377780000000E+02, -0.120250492000000E+03),\n new google.maps.LatLng( 0.462392410000000E+02, -0.120249143000000E+03),\n new google.maps.LatLng( 0.462464620000000E+02, -0.120245199000000E+03),\n new google.maps.LatLng( 0.462513310000000E+02, -0.120243629000000E+03),\n new google.maps.LatLng( 0.462580970000000E+02, -0.120238432000000E+03),\n new google.maps.LatLng( 0.462594680000000E+02, -0.120236754000000E+03),\n new google.maps.LatLng( 0.462610460000000E+02, -0.120232736000000E+03),\n new google.maps.LatLng( 0.462620980000000E+02, -0.120231255000000E+03),\n new google.maps.LatLng( 0.462733840000000E+02, -0.120231198000000E+03),\n new google.maps.LatLng( 0.462729400000000E+02, -0.120251163000000E+03),\n new google.maps.LatLng( 0.462727790000000E+02, -0.120251956000000E+03),\n new google.maps.LatLng( 0.462682090000000E+02, -0.120252159000000E+03),\n new google.maps.LatLng( 0.462669760000000E+02, -0.120253412000000E+03),\n new google.maps.LatLng( 0.462653780000000E+02, -0.120255391000000E+03),\n new google.maps.LatLng( 0.462625020000000E+02, -0.120262245000000E+03),\n new google.maps.LatLng( 0.462594880000000E+02, -0.120264751000000E+03),\n new google.maps.LatLng( 0.462537330000000E+02, -0.120271179000000E+03),\n new google.maps.LatLng( 0.462456710000000E+02, -0.120283595000000E+03),\n new google.maps.LatLng( 0.462437530000000E+02, -0.120285506000000E+03),\n new google.maps.LatLng( 0.462413770000000E+02, -0.120286429000000E+03),\n new google.maps.LatLng( 0.462338610000000E+02, -0.120291339000000E+03),\n new google.maps.LatLng( 0.462215940000000E+02, -0.120306487000000E+03),\n new google.maps.LatLng( 0.462143290000000E+02, -0.120313235000000E+03),\n new google.maps.LatLng( 0.462099650000000E+02, -0.120318764000000E+03),\n new google.maps.LatLng( 0.462069950000000E+02, -0.120320673000000E+03),\n new google.maps.LatLng( 0.462017620000000E+02, -0.120322548000000E+03),\n new google.maps.LatLng( 0.461993630000000E+02, -0.120322943000000E+03),\n new google.maps.LatLng( 0.461948620000000E+02, -0.120327746000000E+03),\n new google.maps.LatLng( 0.461905660000000E+02, -0.120328962000000E+03),\n new google.maps.LatLng( 0.461875960000000E+02, -0.120331889000000E+03),\n new google.maps.LatLng( 0.461810350000000E+02, -0.120342710000000E+03),\n new google.maps.LatLng( 0.461779020000000E+02, -0.120354549000000E+03),\n new google.maps.LatLng( 0.461755470000000E+02, -0.120357310000000E+03),\n new google.maps.LatLng( 0.461735120000000E+02, -0.120361518000000E+03),\n new google.maps.LatLng( 0.461826030000000E+02, -0.120368204000000E+03),\n new google.maps.LatLng( 0.461892290000000E+02, -0.120367487000000E+03),\n new google.maps.LatLng( 0.461959020000000E+02, -0.120365223000000E+03),\n new google.maps.LatLng( 0.461983460000000E+02, -0.120367133000000E+03),\n new google.maps.LatLng( 0.461992820000000E+02, -0.120368911000000E+03),\n new google.maps.LatLng( 0.461999890000000E+02, -0.120371873000000E+03),\n new google.maps.LatLng( 0.462048780000000E+02, -0.120374115000000E+03),\n new google.maps.LatLng( 0.462085790000000E+02, -0.120373955000000E+03),\n new google.maps.LatLng( 0.462157780000000E+02, -0.120370407000000E+03),\n new google.maps.LatLng( 0.462324370000000E+02, -0.120365781000000E+03),\n new google.maps.LatLng( 0.462332830000000E+02, -0.120365156000000E+03),\n new google.maps.LatLng( 0.462339690000000E+02, -0.120363050000000E+03),\n new google.maps.LatLng( 0.462395930000000E+02, -0.120357259000000E+03),\n new google.maps.LatLng( 0.462408930000000E+02, -0.120359729000000E+03),\n new google.maps.LatLng( 0.462421270000000E+02, -0.120360718000000E+03),\n new google.maps.LatLng( 0.462476800000000E+02, -0.120361348000000E+03),\n new google.maps.LatLng( 0.462520630000000E+02, -0.120360634000000E+03),\n new google.maps.LatLng( 0.462547830000000E+02, -0.120358495000000E+03),\n new google.maps.LatLng( 0.462576640000000E+02, -0.120353754000000E+03),\n new google.maps.LatLng( 0.462584520000000E+02, -0.120354222000000E+03),\n new google.maps.LatLng( 0.462602200000000E+02, -0.120358434000000E+03),\n new google.maps.LatLng( 0.462534970000000E+02, -0.120370351000000E+03),\n new google.maps.LatLng( 0.462520490000000E+02, -0.120379921000000E+03),\n new google.maps.LatLng( 0.462632360000000E+02, -0.120379763000000E+03),\n new google.maps.LatLng( 0.462633830000000E+02, -0.120358571000000E+03),\n new google.maps.LatLng( 0.462688990000000E+02, -0.120358692000000E+03),\n new google.maps.LatLng( 0.462714480000000E+02, -0.120347130000000E+03),\n new google.maps.LatLng( 0.462733170000000E+02, -0.120345528000000E+03),\n new google.maps.LatLng( 0.462756710000000E+02, -0.120344937000000E+03),\n new google.maps.LatLng( 0.462794850000000E+02, -0.120345466000000E+03),\n new google.maps.LatLng( 0.462777900000000E+02, -0.120358546000000E+03),\n new google.maps.LatLng( 0.462783360000000E+02, -0.120365731000000E+03),\n new google.maps.LatLng( 0.462797750000000E+02, -0.120366359000000E+03),\n new google.maps.LatLng( 0.462837970000000E+02, -0.120363528000000E+03),\n new google.maps.LatLng( 0.462969370000000E+02, -0.120357475000000E+03),\n new google.maps.LatLng( 0.462971430000000E+02, -0.120358365000000E+03),\n new google.maps.LatLng( 0.462966400000000E+02, -0.120359287000000E+03),\n new google.maps.LatLng( 0.462970040000000E+02, -0.120363408000000E+03),\n new google.maps.LatLng( 0.463001070000000E+02, -0.120371718000000E+03),\n new google.maps.LatLng( 0.462995150000000E+02, -0.120390673000000E+03),\n new google.maps.LatLng( 0.463011400000000E+02, -0.120397364000000E+03),\n new google.maps.LatLng( 0.463022380000000E+02, -0.120399539000000E+03),\n new google.maps.LatLng( 0.463005930000000E+02, -0.120400364000000E+03),\n new google.maps.LatLng( 0.462996330000000E+02, -0.120400167000000E+03),\n new google.maps.LatLng( 0.462957700000000E+02, -0.120395819000000E+03),\n new google.maps.LatLng( 0.462931870000000E+02, -0.120391899000000E+03),\n new google.maps.LatLng( 0.462831080000000E+02, -0.120387029000000E+03),\n new google.maps.LatLng( 0.462821490000000E+02, -0.120387393000000E+03),\n new google.maps.LatLng( 0.462789060000000E+02, -0.120390361000000E+03),\n new google.maps.LatLng( 0.462755500000000E+02, -0.120398010000000E+03),\n new google.maps.LatLng( 0.462742020000000E+02, -0.120398406000000E+03),\n new google.maps.LatLng( 0.462733340000000E+02, -0.120399362000000E+03),\n new google.maps.LatLng( 0.462701620000000E+02, -0.120410632000000E+03),\n new google.maps.LatLng( 0.462681970000000E+02, -0.120412314000000E+03),\n new google.maps.LatLng( 0.462669870000000E+02, -0.120415510000000E+03),\n new google.maps.LatLng( 0.462652750000000E+02, -0.120428688000000E+03),\n new google.maps.LatLng( 0.462663270000000E+02, -0.120436892000000E+03),\n new google.maps.LatLng( 0.462682690000000E+02, -0.120441340000000E+03),\n new google.maps.LatLng( 0.462712850000000E+02, -0.120444931000000E+03),\n new google.maps.LatLng( 0.462730670000000E+02, -0.120445557000000E+03),\n new google.maps.LatLng( 0.462782990000000E+02, -0.120454060000000E+03),\n new google.maps.LatLng( 0.462831600000000E+02, -0.120476636000000E+03),\n new google.maps.LatLng( 0.462827180000000E+02, -0.120497992000000E+03),\n new google.maps.LatLng( 0.462803610000000E+02, -0.120504520000000E+03),\n new google.maps.LatLng( 0.462738760000000E+02, -0.120511578000000E+03),\n new google.maps.LatLng( 0.462692160000000E+02, -0.120515701000000E+03),\n new google.maps.LatLng( 0.462677780000000E+02, -0.120518206000000E+03),\n new google.maps.LatLng( 0.462670710000000E+02, -0.120521699000000E+03),\n new google.maps.LatLng( 0.462666620000000E+02, -0.120528356000000E+03),\n new google.maps.LatLng( 0.462672810000000E+02, -0.120536361000000E+03),\n new google.maps.LatLng( 0.462650210000000E+02, -0.120546246000000E+03),\n new google.maps.LatLng( 0.462650210000000E+02, -0.120546246000000E+03),\n new google.maps.LatLng( 0.462673970000000E+02, -0.120544334000000E+03),\n new google.maps.LatLng( 0.462741370000000E+02, -0.120540510000000E+03),\n new google.maps.LatLng( 0.462753250000000E+02, -0.120540278000000E+03),\n new google.maps.LatLng( 0.462757370000000E+02, -0.120542618000000E+03),\n new google.maps.LatLng( 0.462799640000000E+02, -0.120547032000000E+03),\n new google.maps.LatLng( 0.462829340000000E+02, -0.120548581000000E+03),\n new google.maps.LatLng( 0.462864080000000E+02, -0.120552667000000E+03),\n new google.maps.LatLng( 0.462891280000000E+02, -0.120556984000000E+03),\n new google.maps.LatLng( 0.462900420000000E+02, -0.120557643000000E+03),\n new google.maps.LatLng( 0.462981990000000E+02, -0.120556092000000E+03),\n new google.maps.LatLng( 0.463013750000000E+02, -0.120555004000000E+03),\n new google.maps.LatLng( 0.463061280000000E+02, -0.120554541000000E+03),\n new google.maps.LatLng( 0.463096470000000E+02, -0.120554409000000E+03),\n new google.maps.LatLng( 0.463268070000000E+02, -0.120556054000000E+03),\n new google.maps.LatLng( 0.463271040000000E+02, -0.120557011000000E+03),\n new google.maps.LatLng( 0.463260990000000E+02, -0.120560244000000E+03),\n new google.maps.LatLng( 0.463251390000000E+02, -0.120562025000000E+03),\n new google.maps.LatLng( 0.463225570000000E+02, -0.120564367000000E+03),\n new google.maps.LatLng( 0.463217580000000E+02, -0.120567038000000E+03),\n new google.maps.LatLng( 0.463241340000000E+02, -0.120571853000000E+03),\n new google.maps.LatLng( 0.463258700000000E+02, -0.120574129000000E+03),\n new google.maps.LatLng( 0.463279040000000E+02, -0.120579011000000E+03),\n new google.maps.LatLng( 0.463279260000000E+02, -0.120582046000000E+03),\n new google.maps.LatLng( 0.463312950000000E+02, -0.120585951000000E+03),\n new google.maps.LatLng( 0.463461830000000E+02, -0.120585879000000E+03),\n new google.maps.LatLng( 0.463460010000000E+02, -0.120565224000000E+03),\n new google.maps.LatLng( 0.463532980000000E+02, -0.120564433000000E+03),\n new google.maps.LatLng( 0.463534120000000E+02, -0.120554699000000E+03),\n new google.maps.LatLng( 0.463607390000000E+02, -0.120554464000000E+03),\n new google.maps.LatLng( 0.463608650000000E+02, -0.120544177000000E+03),\n new google.maps.LatLng( 0.463675920000000E+02, -0.120544230000000E+03),\n new google.maps.LatLng( 0.463675920000000E+02, -0.120544230000000E+03),\n new google.maps.LatLng( 0.463679410000000E+02, -0.120502309000000E+03),\n new google.maps.LatLng( 0.463607660000000E+02, -0.120502318000000E+03),\n new google.maps.LatLng( 0.463607080000000E+02, -0.120481044000000E+03),\n new google.maps.LatLng( 0.463752570000000E+02, -0.120480994000000E+03),\n new google.maps.LatLng( 0.463754930000000E+02, -0.120438672000000E+03),\n new google.maps.LatLng( 0.463815480000000E+02, -0.120438706000000E+03),\n new google.maps.LatLng( 0.463815710000000E+02, -0.120432829000000E+03),\n new google.maps.LatLng( 0.463815070000000E+02, -0.120428590000000E+03),\n new google.maps.LatLng( 0.463754710000000E+02, -0.120428556000000E+03),\n new google.maps.LatLng( 0.463753090000000E+02, -0.120399768000000E+03),\n new google.maps.LatLng( 0.463854510000000E+02, -0.120405953000000E+03),\n new google.maps.LatLng( 0.463920520000000E+02, -0.120417664000000E+03),\n new google.maps.LatLng( 0.463968320000000E+02, -0.120417570000000E+03),\n new google.maps.LatLng( 0.463968260000000E+02, -0.120396435000000E+03),\n new google.maps.LatLng( 0.463972880000000E+02, -0.120396427000000E+03),\n new google.maps.LatLng( 0.463981510000000E+02, -0.120397424000000E+03),\n new google.maps.LatLng( 0.463992950000000E+02, -0.120400397000000E+03),\n new google.maps.LatLng( 0.464038730000000E+02, -0.120402211000000E+03),\n new google.maps.LatLng( 0.464039610000000E+02, -0.120417466000000E+03),\n new google.maps.LatLng( 0.464112500000000E+02, -0.120417403000000E+03),\n new google.maps.LatLng( 0.464112350000000E+02, -0.120414150000000E+03),\n new google.maps.LatLng( 0.464116600000000E+02, -0.120413997000000E+03),\n new google.maps.LatLng( 0.464142650000000E+02, -0.120415152000000E+03),\n new google.maps.LatLng( 0.464154300000000E+02, -0.120417363000000E+03),\n new google.maps.LatLng( 0.464188350000000E+02, -0.120417330000000E+03),\n new google.maps.LatLng( 0.464188300000000E+02, -0.120399094000000E+03),\n new google.maps.LatLng( 0.464216780000000E+02, -0.120396441000000E+03),\n new google.maps.LatLng( 0.464260710000000E+02, -0.120396445000000E+03),\n new google.maps.LatLng( 0.464265270000000E+02, -0.120392282000000E+03),\n new google.maps.LatLng( 0.464259750000000E+02, -0.120384979000000E+03),\n new google.maps.LatLng( 0.464227050000000E+02, -0.120379994000000E+03),\n new google.maps.LatLng( 0.464209470000000E+02, -0.120375416000000E+03),\n new google.maps.LatLng( 0.464225700000000E+02, -0.120375021000000E+03),\n new google.maps.LatLng( 0.464474280000000E+02, -0.120375015000000E+03),\n new google.maps.LatLng( 0.464476350000000E+02, -0.120384661000000E+03),\n new google.maps.LatLng( 0.464508800000000E+02, -0.120386244000000E+03),\n new google.maps.LatLng( 0.464511540000000E+02, -0.120386839000000E+03),\n new google.maps.LatLng( 0.464517970000000E+02, -0.120393978000000E+03),\n new google.maps.LatLng( 0.464568710000000E+02, -0.120396288000000E+03),\n new google.maps.LatLng( 0.464615210000000E+02, -0.120396159000000E+03),\n new google.maps.LatLng( 0.464597940000000E+02, -0.120392748000000E+03),\n new google.maps.LatLng( 0.464585350000000E+02, -0.120387856000000E+03),\n new google.maps.LatLng( 0.464599260000000E+02, -0.120383590000000E+03),\n new google.maps.LatLng( 0.464594220000000E+02, -0.120379954000000E+03),\n new google.maps.LatLng( 0.464571590000000E+02, -0.120377642000000E+03),\n new google.maps.LatLng( 0.464545170000000E+02, -0.120373821000000E+03),\n new google.maps.LatLng( 0.464541560000000E+02, -0.120371387000000E+03),\n new google.maps.LatLng( 0.464543770000000E+02, -0.120367915000000E+03),\n new google.maps.LatLng( 0.464488530000000E+02, -0.120355019000000E+03),\n new google.maps.LatLng( 0.464447200000000E+02, -0.120348769000000E+03),\n new google.maps.LatLng( 0.464423740000000E+02, -0.120346099000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.476044490000000E+02, -0.122660996000000E+03),\n new google.maps.LatLng( 0.476048170000000E+02, -0.122658353000000E+03),\n new google.maps.LatLng( 0.476068170000000E+02, -0.122658353000000E+03),\n new google.maps.LatLng( 0.476067170000000E+02, -0.122628751000000E+03),\n new google.maps.LatLng( 0.476213240000000E+02, -0.122628799000000E+03),\n new google.maps.LatLng( 0.476213170000000E+02, -0.122607550000000E+03),\n new google.maps.LatLng( 0.476122380000000E+02, -0.122607501000000E+03),\n new google.maps.LatLng( 0.476144370000000E+02, -0.122605945000000E+03),\n new google.maps.LatLng( 0.476176710000000E+02, -0.122605656000000E+03),\n new google.maps.LatLng( 0.476175430000000E+02, -0.122601367000000E+03),\n new google.maps.LatLng( 0.476127180000000E+02, -0.122596849000000E+03),\n new google.maps.LatLng( 0.476091760000000E+02, -0.122596669000000E+03),\n new google.maps.LatLng( 0.476082920000000E+02, -0.122596077000000E+03),\n new google.maps.LatLng( 0.476082920000000E+02, -0.122596077000000E+03),\n new google.maps.LatLng( 0.476065180000000E+02, -0.122596349000000E+03),\n new google.maps.LatLng( 0.476026180000000E+02, -0.122598149000000E+03),\n new google.maps.LatLng( 0.476016180000000E+02, -0.122597849000000E+03),\n new google.maps.LatLng( 0.475985180000000E+02, -0.122593749000000E+03),\n new google.maps.LatLng( 0.475962180000000E+02, -0.122592148000000E+03),\n new google.maps.LatLng( 0.475942180000000E+02, -0.122591848000000E+03),\n new google.maps.LatLng( 0.475781170000000E+02, -0.122600249000000E+03),\n new google.maps.LatLng( 0.475741520000000E+02, -0.122602940000000E+03),\n new google.maps.LatLng( 0.475686180000000E+02, -0.122607948000000E+03),\n new google.maps.LatLng( 0.475674170000000E+02, -0.122610648000000E+03),\n new google.maps.LatLng( 0.475672170000000E+02, -0.122613649000000E+03),\n new google.maps.LatLng( 0.475706170000000E+02, -0.122617749000000E+03),\n new google.maps.LatLng( 0.475778170000000E+02, -0.122623650000000E+03),\n new google.maps.LatLng( 0.475806170000000E+02, -0.122628950000000E+03),\n new google.maps.LatLng( 0.475816170000000E+02, -0.122633750000000E+03),\n new google.maps.LatLng( 0.475819170000000E+02, -0.122638651000000E+03),\n new google.maps.LatLng( 0.475861170000000E+02, -0.122646551000000E+03),\n new google.maps.LatLng( 0.475918170000000E+02, -0.122652852000000E+03),\n new google.maps.LatLng( 0.475959170000000E+02, -0.122656153000000E+03),\n new google.maps.LatLng( 0.476027170000000E+02, -0.122660853000000E+03),\n new google.maps.LatLng( 0.476044490000000E+02, -0.122660996000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.481260415638450E+02, -0.122365061393677E+03),\n new google.maps.LatLng( 0.481233040000000E+02, -0.122363201000000E+03),\n new google.maps.LatLng( 0.481230150000000E+02, -0.122327449000000E+03),\n new google.maps.LatLng( 0.481211830000000E+02, -0.122321237000000E+03),\n new google.maps.LatLng( 0.481184520000000E+02, -0.122317835000000E+03),\n new google.maps.LatLng( 0.481162770000000E+02, -0.122307091000000E+03),\n new google.maps.LatLng( 0.481162790000000E+02, -0.122305334000000E+03),\n new google.maps.LatLng( 0.481197190000000E+02, -0.122305840000000E+03),\n new google.maps.LatLng( 0.481230220000000E+02, -0.122302896000000E+03),\n new google.maps.LatLng( 0.481233810000000E+02, -0.122296136000000E+03),\n new google.maps.LatLng( 0.481279510000000E+02, -0.122289636000000E+03),\n new google.maps.LatLng( 0.481345200000000E+02, -0.122282327000000E+03),\n new google.maps.LatLng( 0.481356560000000E+02, -0.122281350000000E+03),\n new google.maps.LatLng( 0.481379070000000E+02, -0.122281411000000E+03),\n new google.maps.LatLng( 0.481377090000000E+02, -0.122273385000000E+03),\n new google.maps.LatLng( 0.481398980000000E+02, -0.122269326000000E+03),\n new google.maps.LatLng( 0.481398540000000E+02, -0.122254295000000E+03),\n new google.maps.LatLng( 0.481428820000000E+02, -0.122253502000000E+03),\n new google.maps.LatLng( 0.481428820000000E+02, -0.122253502000000E+03),\n new google.maps.LatLng( 0.481427300000000E+02, -0.122250313000000E+03),\n new google.maps.LatLng( 0.481436910000000E+02, -0.122243385000000E+03),\n new google.maps.LatLng( 0.481433170000000E+02, -0.122224860000000E+03),\n new google.maps.LatLng( 0.481267230000000E+02, -0.122200139000000E+03),\n new google.maps.LatLng( 0.481230210000000E+02, -0.122200235000000E+03),\n new google.maps.LatLng( 0.481230410000000E+02, -0.122196647000000E+03),\n new google.maps.LatLng( 0.481269430000000E+02, -0.122196655000000E+03),\n new google.maps.LatLng( 0.481269520000000E+02, -0.122189952000000E+03),\n new google.maps.LatLng( 0.481249680000000E+02, -0.122189952000000E+03),\n new google.maps.LatLng( 0.481248290000000E+02, -0.122192854000000E+03),\n new google.maps.LatLng( 0.481230880000000E+02, -0.122192784000000E+03),\n new google.maps.LatLng( 0.481230080000000E+02, -0.122185185000000E+03),\n new google.maps.LatLng( 0.481308200000000E+02, -0.122184956000000E+03),\n new google.maps.LatLng( 0.481378240000000E+02, -0.122186116000000E+03),\n new google.maps.LatLng( 0.481379620000000E+02, -0.122183064000000E+03),\n new google.maps.LatLng( 0.481343680000000E+02, -0.122183217000000E+03),\n new google.maps.LatLng( 0.481337660000000E+02, -0.122140917000000E+03),\n new google.maps.LatLng( 0.480953740000000E+02, -0.122140717000000E+03),\n new google.maps.LatLng( 0.480958490000000E+02, -0.122129151000000E+03),\n new google.maps.LatLng( 0.480975100000000E+02, -0.122125230000000E+03),\n new google.maps.LatLng( 0.480994500000000E+02, -0.122125411000000E+03),\n new google.maps.LatLng( 0.480994390000000E+02, -0.122122620000000E+03),\n new google.maps.LatLng( 0.480947260000000E+02, -0.122121501000000E+03),\n new google.maps.LatLng( 0.480918720000000E+02, -0.122121995000000E+03),\n new google.maps.LatLng( 0.480918720000000E+02, -0.122121995000000E+03),\n new google.maps.LatLng( 0.480917200000000E+02, -0.122146059000000E+03),\n new google.maps.LatLng( 0.480923580000000E+02, -0.122166025000000E+03),\n new google.maps.LatLng( 0.480913540000000E+02, -0.122167421000000E+03),\n new google.maps.LatLng( 0.480900260000000E+02, -0.122167848000000E+03),\n new google.maps.LatLng( 0.480882560000000E+02, -0.122169511000000E+03),\n new google.maps.LatLng( 0.480844780000000E+02, -0.122175935000000E+03),\n new google.maps.LatLng( 0.480882170000000E+02, -0.122181567000000E+03),\n new google.maps.LatLng( 0.480899410000000E+02, -0.122182421000000E+03),\n new google.maps.LatLng( 0.480927190000000E+02, -0.122180331000000E+03),\n new google.maps.LatLng( 0.480950000000000E+02, -0.122180544000000E+03),\n new google.maps.LatLng( 0.480973350000000E+02, -0.122185015000000E+03),\n new google.maps.LatLng( 0.480554490000000E+02, -0.122184830000000E+03),\n new google.maps.LatLng( 0.480474910000000E+02, -0.122183960000000E+03),\n new google.maps.LatLng( 0.480474910000000E+02, -0.122183960000000E+03),\n new google.maps.LatLng( 0.480462620000000E+02, -0.122191254000000E+03),\n new google.maps.LatLng( 0.480439880000000E+02, -0.122193924000000E+03),\n new google.maps.LatLng( 0.480425310000000E+02, -0.122197541000000E+03),\n new google.maps.LatLng( 0.480427900000000E+02, -0.122200838000000E+03),\n new google.maps.LatLng( 0.480445760000000E+02, -0.122207979000000E+03),\n new google.maps.LatLng( 0.480451040000000E+02, -0.122208392000000E+03),\n new google.maps.LatLng( 0.480445760000000E+02, -0.122212953000000E+03),\n new google.maps.LatLng( 0.480384950000000E+02, -0.122226518000000E+03),\n new google.maps.LatLng( 0.480369690000000E+02, -0.122228654000000E+03),\n new google.maps.LatLng( 0.480354590000000E+02, -0.122229585000000E+03),\n new google.maps.LatLng( 0.480354230000000E+02, -0.122228462000000E+03),\n new google.maps.LatLng( 0.480342220000000E+02, -0.122226989000000E+03),\n new google.maps.LatLng( 0.480326390000000E+02, -0.122225974000000E+03),\n new google.maps.LatLng( 0.480316560000000E+02, -0.122225938000000E+03),\n new google.maps.LatLng( 0.480305830000000E+02, -0.122226924000000E+03),\n new google.maps.LatLng( 0.480298760000000E+02, -0.122231761000000E+03),\n new google.maps.LatLng( 0.480298760000000E+02, -0.122231761000000E+03),\n new google.maps.LatLng( 0.480416026080318E+02, -0.122260802857096E+03),\n new google.maps.LatLng( 0.480497930000000E+02, -0.122281087000000E+03),\n new google.maps.LatLng( 0.480519202928484E+02, -0.122283315965595E+03),\n new google.maps.LatLng( 0.480734150000000E+02, -0.122305838000000E+03),\n new google.maps.LatLng( 0.480738033032614E+02, -0.122306347656059E+03),\n new google.maps.LatLng( 0.480855070000000E+02, -0.122321709000000E+03),\n new google.maps.LatLng( 0.480928770000000E+02, -0.122326119000000E+03),\n new google.maps.LatLng( 0.480976310000000E+02, -0.122343241000000E+03),\n new google.maps.LatLng( 0.481239300000000E+02, -0.122363842000000E+03),\n new google.maps.LatLng( 0.481258220000000E+02, -0.122365078000000E+03),\n new google.maps.LatLng( 0.481260415638450E+02, -0.122365061393677E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.474522170000000E+02, -0.120175650000000E+03),\n new google.maps.LatLng( 0.474510250000000E+02, -0.120168540000000E+03),\n new google.maps.LatLng( 0.474496990000000E+02, -0.120165274000000E+03),\n new google.maps.LatLng( 0.474477340000000E+02, -0.120164601000000E+03),\n new google.maps.LatLng( 0.474470030000000E+02, -0.120163794000000E+03),\n new google.maps.LatLng( 0.474466830000000E+02, -0.120162514000000E+03),\n new google.maps.LatLng( 0.474472760000000E+02, -0.120157260000000E+03),\n new google.maps.LatLng( 0.474460640000000E+02, -0.120154837000000E+03),\n new google.maps.LatLng( 0.474455160000000E+02, -0.120155369000000E+03),\n new google.maps.LatLng( 0.474455160000000E+02, -0.120155369000000E+03),\n new google.maps.LatLng( 0.474468870000000E+02, -0.120157025000000E+03),\n new google.maps.LatLng( 0.474470250000000E+02, -0.120157967000000E+03),\n new google.maps.LatLng( 0.474463640000000E+02, -0.120163390000000E+03),\n new google.maps.LatLng( 0.474474600000000E+02, -0.120164804000000E+03),\n new google.maps.LatLng( 0.474487630000000E+02, -0.120165241000000E+03),\n new google.maps.LatLng( 0.474488330000000E+02, -0.120175612000000E+03),\n new google.maps.LatLng( 0.474522170000000E+02, -0.120175650000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475335440000000E+02, -0.118479862000000E+03),\n new google.maps.LatLng( 0.475322410000000E+02, -0.118480704000000E+03),\n new google.maps.LatLng( 0.475301850000000E+02, -0.118480432000000E+03),\n new google.maps.LatLng( 0.475241540000000E+02, -0.118475232000000E+03),\n new google.maps.LatLng( 0.475237880000000E+02, -0.118474557000000E+03),\n new google.maps.LatLng( 0.475245900000000E+02, -0.118469328000000E+03),\n new google.maps.LatLng( 0.475243620000000E+02, -0.118464369000000E+03),\n new google.maps.LatLng( 0.475192900000000E+02, -0.118459542000000E+03),\n new google.maps.LatLng( 0.475177590000000E+02, -0.118459407000000E+03),\n new google.maps.LatLng( 0.475163880000000E+02, -0.118459946000000E+03),\n new google.maps.LatLng( 0.475190410000000E+02, -0.118443046000000E+03),\n new google.maps.LatLng( 0.475176240000000E+02, -0.118434985000000E+03),\n new google.maps.LatLng( 0.475150420000000E+02, -0.118432049000000E+03),\n new google.maps.LatLng( 0.475112710000000E+02, -0.118431476000000E+03),\n new google.maps.LatLng( 0.475042560000000E+02, -0.118431612000000E+03),\n new google.maps.LatLng( 0.475045060000000E+02, -0.118422170000000E+03),\n new google.maps.LatLng( 0.475054200000000E+02, -0.118420819000000E+03),\n new google.maps.LatLng( 0.475232900000000E+02, -0.118420983000000E+03),\n new google.maps.LatLng( 0.475234710000000E+02, -0.118409175000000E+03),\n new google.maps.LatLng( 0.475229630000000E+02, -0.118392645000000E+03),\n new google.maps.LatLng( 0.475257970000000E+02, -0.118393014000000E+03),\n new google.maps.LatLng( 0.475309170000000E+02, -0.118395202000000E+03),\n new google.maps.LatLng( 0.475334520000000E+02, -0.118391657000000E+03),\n new google.maps.LatLng( 0.475342280000000E+02, -0.118389666000000E+03),\n new google.maps.LatLng( 0.475374040000000E+02, -0.118389022000000E+03),\n new google.maps.LatLng( 0.475374090000000E+02, -0.118403128000000E+03),\n new google.maps.LatLng( 0.475379820000000E+02, -0.118407109000000E+03),\n new google.maps.LatLng( 0.475396280000000E+02, -0.118409538000000E+03),\n new google.maps.LatLng( 0.475436770000000E+02, -0.118404903000000E+03),\n new google.maps.LatLng( 0.475448870000000E+02, -0.118401238000000E+03),\n new google.maps.LatLng( 0.475446510000000E+02, -0.118399298000000E+03),\n new google.maps.LatLng( 0.475452260000000E+02, -0.118394372000000E+03),\n new google.maps.LatLng( 0.475463990000000E+02, -0.118392709000000E+03),\n new google.maps.LatLng( 0.475508280000000E+02, -0.118389524000000E+03),\n new google.maps.LatLng( 0.475508280000000E+02, -0.118389524000000E+03),\n new google.maps.LatLng( 0.475506560000000E+02, -0.118385061000000E+03),\n new google.maps.LatLng( 0.475515240000000E+02, -0.118383034000000E+03),\n new google.maps.LatLng( 0.475519800000000E+02, -0.118380097000000E+03),\n new google.maps.LatLng( 0.475517340000000E+02, -0.118358079000000E+03),\n new google.maps.LatLng( 0.475327210000000E+02, -0.118358230000000E+03),\n new google.maps.LatLng( 0.475285610000000E+02, -0.118358058000000E+03),\n new google.maps.LatLng( 0.475231920000000E+02, -0.118356839000000E+03),\n new google.maps.LatLng( 0.474937590000000E+02, -0.118356547000000E+03),\n new google.maps.LatLng( 0.474932410000000E+02, -0.118289313000000E+03),\n new google.maps.LatLng( 0.474921900000000E+02, -0.118287931000000E+03),\n new google.maps.LatLng( 0.475059680000000E+02, -0.118288461000000E+03),\n new google.maps.LatLng( 0.475147890000000E+02, -0.118292774000000E+03),\n new google.maps.LatLng( 0.475240220000000E+02, -0.118292232000000E+03),\n new google.maps.LatLng( 0.475277690000000E+02, -0.118290678000000E+03),\n new google.maps.LatLng( 0.475353800000000E+02, -0.118288718000000E+03),\n new google.maps.LatLng( 0.475414350000000E+02, -0.118288310000000E+03),\n new google.maps.LatLng( 0.475509850000000E+02, -0.118279935000000E+03),\n new google.maps.LatLng( 0.475503100000000E+02, -0.118250321000000E+03),\n new google.maps.LatLng( 0.475361190000000E+02, -0.118249426000000E+03),\n new google.maps.LatLng( 0.475364880000000E+02, -0.118242306000000E+03),\n new google.maps.LatLng( 0.475361470000000E+02, -0.118238998000000E+03),\n new google.maps.LatLng( 0.475296600000000E+02, -0.118232345000000E+03),\n new google.maps.LatLng( 0.475184880000000E+02, -0.118223092000000E+03),\n new google.maps.LatLng( 0.475145350000000E+02, -0.118221234000000E+03),\n new google.maps.LatLng( 0.475111300000000E+02, -0.118222177000000E+03),\n new google.maps.LatLng( 0.475109240000000E+02, -0.118221738000000E+03),\n new google.maps.LatLng( 0.475322510000000E+02, -0.118199683000000E+03),\n new google.maps.LatLng( 0.475421010000000E+02, -0.118193476000000E+03),\n new google.maps.LatLng( 0.475462370000000E+02, -0.118188582000000E+03),\n new google.maps.LatLng( 0.475528420000000E+02, -0.118182708000000E+03),\n new google.maps.LatLng( 0.475527730000000E+02, -0.118175383000000E+03),\n new google.maps.LatLng( 0.475523380000000E+02, -0.118174067000000E+03),\n new google.maps.LatLng( 0.475445670000000E+02, -0.118164516000000E+03),\n new google.maps.LatLng( 0.475251880000000E+02, -0.118164221000000E+03),\n new google.maps.LatLng( 0.475201610000000E+02, -0.118167968000000E+03),\n new google.maps.LatLng( 0.475134200000000E+02, -0.118171715000000E+03),\n new google.maps.LatLng( 0.475125290000000E+02, -0.118172626000000E+03),\n new google.maps.LatLng( 0.475116610000000E+02, -0.118174953000000E+03),\n new google.maps.LatLng( 0.475032960000000E+02, -0.118176372000000E+03),\n new google.maps.LatLng( 0.474960590000000E+02, -0.118173400000000E+03),\n new google.maps.LatLng( 0.474940220000000E+02, -0.118171824000000E+03),\n new google.maps.LatLng( 0.474930860000000E+02, -0.118182041000000E+03),\n new google.maps.LatLng( 0.474901150000000E+02, -0.118186222000000E+03),\n new google.maps.LatLng( 0.474787570000000E+02, -0.118186189000000E+03),\n new google.maps.LatLng( 0.474741680000000E+02, -0.118187690000000E+03),\n new google.maps.LatLng( 0.474692530000000E+02, -0.118185020000000E+03),\n new google.maps.LatLng( 0.474641770000000E+02, -0.118184402000000E+03),\n new google.maps.LatLng( 0.474641530000000E+02, -0.118166203000000E+03),\n new google.maps.LatLng( 0.474670040000000E+02, -0.118145273000000E+03),\n new google.maps.LatLng( 0.474690140000000E+02, -0.118141227000000E+03),\n new google.maps.LatLng( 0.474717070000000E+02, -0.118132697000000E+03),\n new google.maps.LatLng( 0.474730050000000E+02, -0.118126077000000E+03),\n new google.maps.LatLng( 0.474729490000000E+02, -0.118123890000000E+03),\n new google.maps.LatLng( 0.474707930000000E+02, -0.118115918000000E+03),\n new google.maps.LatLng( 0.474681210000000E+02, -0.118112713000000E+03),\n new google.maps.LatLng( 0.474666590000000E+02, -0.118111701000000E+03),\n new google.maps.LatLng( 0.474657430000000E+02, -0.118115508000000E+03),\n new google.maps.LatLng( 0.474584720000000E+02, -0.118121903000000E+03),\n new google.maps.LatLng( 0.474360990000000E+02, -0.118121878000000E+03),\n new google.maps.LatLng( 0.474356180000000E+02, -0.118123157000000E+03),\n new google.maps.LatLng( 0.474353450000000E+02, -0.118127715000000E+03),\n new google.maps.LatLng( 0.474360100000000E+02, -0.118131857000000E+03),\n new google.maps.LatLng( 0.474355300000000E+02, -0.118132801000000E+03),\n new google.maps.LatLng( 0.474142540000000E+02, -0.118132857000000E+03),\n new google.maps.LatLng( 0.474126320000000E+02, -0.118135551000000E+03),\n new google.maps.LatLng( 0.474084980000000E+02, -0.118139461000000E+03),\n new google.maps.LatLng( 0.473996320000000E+02, -0.118143339000000E+03),\n new google.maps.LatLng( 0.473952920000000E+02, -0.118148088000000E+03),\n new google.maps.LatLng( 0.473933040000000E+02, -0.118148258000000E+03),\n new google.maps.LatLng( 0.473879770000000E+02, -0.118143652000000E+03),\n new google.maps.LatLng( 0.473879770000000E+02, -0.118143652000000E+03),\n new google.maps.LatLng( 0.473414100000000E+02, -0.118143591000000E+03),\n new google.maps.LatLng( 0.473399050000000E+02, -0.118145173000000E+03),\n new google.maps.LatLng( 0.473410000000000E+02, -0.118148130000000E+03),\n new google.maps.LatLng( 0.473410700000000E+02, -0.118152131000000E+03),\n new google.maps.LatLng( 0.473389240000000E+02, -0.118161110000000E+03),\n new google.maps.LatLng( 0.473394510000000E+02, -0.118164875000000E+03),\n new google.maps.LatLng( 0.473409830000000E+02, -0.118169918000000E+03),\n new google.maps.LatLng( 0.473407990000000E+02, -0.118173348000000E+03),\n new google.maps.LatLng( 0.473387200000000E+02, -0.118180139000000E+03),\n new google.maps.LatLng( 0.473349490000000E+02, -0.118184140000000E+03),\n new google.maps.LatLng( 0.473340810000000E+02, -0.118186326000000E+03),\n new google.maps.LatLng( 0.473342180000000E+02, -0.118196915000000E+03),\n new google.maps.LatLng( 0.473342180000000E+02, -0.118196915000000E+03),\n new google.maps.LatLng( 0.473337380000000E+02, -0.118234273000000E+03),\n new google.maps.LatLng( 0.473337380000000E+02, -0.118234273000000E+03),\n new google.maps.LatLng( 0.473333330000000E+02, -0.118251765000000E+03),\n new google.maps.LatLng( 0.473000710000000E+02, -0.118251370000000E+03),\n new google.maps.LatLng( 0.473000710000000E+02, -0.118251370000000E+03),\n new google.maps.LatLng( 0.473006990000000E+02, -0.118253179000000E+03),\n new google.maps.LatLng( 0.472987400000000E+02, -0.118266787000000E+03),\n new google.maps.LatLng( 0.472957250000000E+02, -0.118271930000000E+03),\n new google.maps.LatLng( 0.472952240000000E+02, -0.118276700000000E+03),\n new google.maps.LatLng( 0.472984490000000E+02, -0.118289968000000E+03),\n new google.maps.LatLng( 0.472988380000000E+02, -0.118296787000000E+03),\n new google.maps.LatLng( 0.472963940000000E+02, -0.118307807000000E+03),\n new google.maps.LatLng( 0.472945660000000E+02, -0.118311972000000E+03),\n new google.maps.LatLng( 0.472917090000000E+02, -0.118312543000000E+03),\n new google.maps.LatLng( 0.472895480000000E+02, -0.118311294000000E+03),\n new google.maps.LatLng( 0.472895940000000E+02, -0.118296791000000E+03),\n new google.maps.LatLng( 0.472610630000000E+02, -0.118296587000000E+03),\n new google.maps.LatLng( 0.472610630000000E+02, -0.118296587000000E+03),\n new google.maps.LatLng( 0.472609900000000E+02, -0.118313622000000E+03),\n new google.maps.LatLng( 0.472609710000000E+02, -0.118321942000000E+03),\n new google.maps.LatLng( 0.472609710000000E+02, -0.118321942000000E+03),\n new google.maps.LatLng( 0.472640760000000E+02, -0.118337689000000E+03),\n new google.maps.LatLng( 0.472682200000000E+02, -0.118337692000000E+03),\n new google.maps.LatLng( 0.472736510000000E+02, -0.118341689000000E+03),\n new google.maps.LatLng( 0.472744500000000E+02, -0.118342663000000E+03),\n new google.maps.LatLng( 0.472749980000000E+02, -0.118345450000000E+03),\n new google.maps.LatLng( 0.472798420000000E+02, -0.118347771000000E+03),\n new google.maps.LatLng( 0.472828590000000E+02, -0.118347639000000E+03),\n new google.maps.LatLng( 0.472853720000000E+02, -0.118349152000000E+03),\n new google.maps.LatLng( 0.472861030000000E+02, -0.118351402000000E+03),\n new google.maps.LatLng( 0.472855300000000E+02, -0.118354962000000E+03),\n new google.maps.LatLng( 0.472858890000000E+02, -0.118358544000000E+03),\n new google.maps.LatLng( 0.472858890000000E+02, -0.118358544000000E+03),\n new google.maps.LatLng( 0.472937090000000E+02, -0.118360645000000E+03),\n new google.maps.LatLng( 0.472955140000000E+02, -0.118361588000000E+03),\n new google.maps.LatLng( 0.473026540000000E+02, -0.118368972000000E+03),\n new google.maps.LatLng( 0.473026540000000E+02, -0.118368972000000E+03),\n new google.maps.LatLng( 0.473036000000000E+02, -0.118368349000000E+03),\n new google.maps.LatLng( 0.473035980000000E+02, -0.118359792000000E+03),\n new google.maps.LatLng( 0.473017780000000E+02, -0.118356990000000E+03),\n new google.maps.LatLng( 0.473012080000000E+02, -0.118353866000000E+03),\n new google.maps.LatLng( 0.473019180000000E+02, -0.118347382000000E+03),\n new google.maps.LatLng( 0.473063730000000E+02, -0.118337025000000E+03),\n new google.maps.LatLng( 0.473119790000000E+02, -0.118327933000000E+03),\n new google.maps.LatLng( 0.473149960000000E+02, -0.118325951000000E+03),\n new google.maps.LatLng( 0.473160470000000E+02, -0.118321281000000E+03),\n new google.maps.LatLng( 0.473183100000000E+02, -0.118315735000000E+03),\n new google.maps.LatLng( 0.473332790000000E+02, -0.118315637000000E+03),\n new google.maps.LatLng( 0.473332990000000E+02, -0.118337050000000E+03),\n new google.maps.LatLng( 0.473332990000000E+02, -0.118337050000000E+03),\n new google.maps.LatLng( 0.473917290000000E+02, -0.118336537000000E+03),\n new google.maps.LatLng( 0.473910520000000E+02, -0.118250609000000E+03),\n new google.maps.LatLng( 0.474059980000000E+02, -0.118250351000000E+03),\n new google.maps.LatLng( 0.474059230000000E+02, -0.118295375000000E+03),\n new google.maps.LatLng( 0.474068370000000E+02, -0.118324526000000E+03),\n new google.maps.LatLng( 0.474063780000000E+02, -0.118336308000000E+03),\n new google.maps.LatLng( 0.474066180000000E+02, -0.118382039000000E+03),\n new google.maps.LatLng( 0.473771740000000E+02, -0.118437212000000E+03),\n new google.maps.LatLng( 0.473771740000000E+02, -0.118437212000000E+03),\n new google.maps.LatLng( 0.473773300000000E+02, -0.118465405000000E+03),\n new google.maps.LatLng( 0.474355810000000E+02, -0.118464089000000E+03),\n new google.maps.LatLng( 0.474646020000000E+02, -0.118464104000000E+03),\n new google.maps.LatLng( 0.474641890000000E+02, -0.118473372000000E+03),\n new google.maps.LatLng( 0.474648470000000E+02, -0.118484829000000E+03),\n new google.maps.LatLng( 0.474643200000000E+02, -0.118487996000000E+03),\n new google.maps.LatLng( 0.474355140000000E+02, -0.118557267000000E+03),\n new google.maps.LatLng( 0.474355940000000E+02, -0.118611862000000E+03),\n new google.maps.LatLng( 0.474326880000000E+02, -0.118620615000000E+03),\n new google.maps.LatLng( 0.474304260000000E+02, -0.118620174000000E+03),\n new google.maps.LatLng( 0.474220420000000E+02, -0.118633924000000E+03),\n new google.maps.LatLng( 0.474209000000000E+02, -0.118634464000000E+03),\n new google.maps.LatLng( 0.474221570000000E+02, -0.118635574000000E+03),\n new google.maps.LatLng( 0.474284420000000E+02, -0.118636982000000E+03),\n new google.maps.LatLng( 0.474306120000000E+02, -0.118636980000000E+03),\n new google.maps.LatLng( 0.474319140000000E+02, -0.118635329000000E+03),\n new google.maps.LatLng( 0.474367140000000E+02, -0.118636739000000E+03),\n new google.maps.LatLng( 0.474496950000000E+02, -0.118642217000000E+03),\n new google.maps.LatLng( 0.474508840000000E+02, -0.118644979000000E+03),\n new google.maps.LatLng( 0.474505210000000E+02, -0.118650875000000E+03),\n new google.maps.LatLng( 0.474475300000000E+02, -0.118661521000000E+03),\n new google.maps.LatLng( 0.474452000000000E+02, -0.118666036000000E+03),\n new google.maps.LatLng( 0.474441720000000E+02, -0.118676782000000E+03),\n new google.maps.LatLng( 0.474790890000000E+02, -0.118677383000000E+03),\n new google.maps.LatLng( 0.474793350000000E+02, -0.118720830000000E+03),\n new google.maps.LatLng( 0.475073810000000E+02, -0.118720474000000E+03),\n new google.maps.LatLng( 0.475080900000000E+02, -0.118718586000000E+03),\n new google.maps.LatLng( 0.475076610000000E+02, -0.118685232000000E+03),\n new google.maps.LatLng( 0.475082050000000E+02, -0.118656364000000E+03),\n new google.maps.LatLng( 0.474786990000000E+02, -0.118655736000000E+03),\n new google.maps.LatLng( 0.474783080000000E+02, -0.118653182000000E+03),\n new google.maps.LatLng( 0.474788950000000E+02, -0.118634811000000E+03),\n new google.maps.LatLng( 0.474825510000000E+02, -0.118634707000000E+03),\n new google.maps.LatLng( 0.474876710000000E+02, -0.118635983000000E+03),\n new google.maps.LatLng( 0.474937940000000E+02, -0.118635033000000E+03),\n new google.maps.LatLng( 0.475080370000000E+02, -0.118634982000000E+03),\n new google.maps.LatLng( 0.475080370000000E+02, -0.118634982000000E+03),\n new google.maps.LatLng( 0.475077940000000E+02, -0.118589804000000E+03),\n new google.maps.LatLng( 0.475025870000000E+02, -0.118570546000000E+03),\n new google.maps.LatLng( 0.475020390000000E+02, -0.118565925000000E+03),\n new google.maps.LatLng( 0.475021300000000E+02, -0.118561778000000E+03),\n new google.maps.LatLng( 0.475028610000000E+02, -0.118558675000000E+03),\n new google.maps.LatLng( 0.475045060000000E+02, -0.118554831000000E+03),\n new google.maps.LatLng( 0.475080480000000E+02, -0.118549839000000E+03),\n new google.maps.LatLng( 0.475080200000000E+02, -0.118542516000000E+03),\n new google.maps.LatLng( 0.475117710000000E+02, -0.118535706000000E+03),\n new google.maps.LatLng( 0.475143530000000E+02, -0.118534726000000E+03),\n new google.maps.LatLng( 0.475213200000000E+02, -0.118525918000000E+03),\n new google.maps.LatLng( 0.475214620000000E+02, -0.118520273000000E+03),\n new google.maps.LatLng( 0.475245870000000E+02, -0.118514080000000E+03),\n new google.maps.LatLng( 0.475276100000000E+02, -0.118509890000000E+03),\n new google.maps.LatLng( 0.475281950000000E+02, -0.118507727000000E+03),\n new google.maps.LatLng( 0.475279770000000E+02, -0.118505929000000E+03),\n new google.maps.LatLng( 0.475298780000000E+02, -0.118499698000000E+03),\n new google.maps.LatLng( 0.475330820000000E+02, -0.118492481000000E+03),\n new google.maps.LatLng( 0.475351500000000E+02, -0.118489668000000E+03),\n new google.maps.LatLng( 0.475351500000000E+02, -0.118489668000000E+03),\n new google.maps.LatLng( 0.475342940000000E+02, -0.118489581000000E+03),\n new google.maps.LatLng( 0.475352550000000E+02, -0.118486984000000E+03),\n new google.maps.LatLng( 0.475351650000000E+02, -0.118484520000000E+03),\n new google.maps.LatLng( 0.475337720000000E+02, -0.118482190000000E+03),\n new google.maps.LatLng( 0.475335440000000E+02, -0.118479862000000E+03),\n new google.maps.LatLng( 0.475005530000000E+02, -0.118551561000000E+03),\n new google.maps.LatLng( 0.475011010000000E+02, -0.118553213000000E+03),\n new google.maps.LatLng( 0.474986520000000E+02, -0.118560871000000E+03),\n new google.maps.LatLng( 0.474979210000000E+02, -0.118561276000000E+03),\n new google.maps.LatLng( 0.474962300000000E+02, -0.118561006000000E+03),\n new google.maps.LatLng( 0.474951100000000E+02, -0.118562152000000E+03),\n new google.maps.LatLng( 0.474925050000000E+02, -0.118569772000000E+03),\n new google.maps.LatLng( 0.474827010000000E+02, -0.118580254000000E+03),\n new google.maps.LatLng( 0.474814890000000E+02, -0.118583793000000E+03),\n new google.maps.LatLng( 0.474794750000000E+02, -0.118594207000000E+03),\n new google.maps.LatLng( 0.474811410000000E+02, -0.118601153000000E+03),\n new google.maps.LatLng( 0.474802720000000E+02, -0.118602905000000E+03),\n new google.maps.LatLng( 0.474797920000000E+02, -0.118602904000000E+03),\n new google.maps.LatLng( 0.474791300000000E+02, -0.118602466000000E+03),\n new google.maps.LatLng( 0.474781060000000E+02, -0.118589049000000E+03),\n new google.maps.LatLng( 0.474789980000000E+02, -0.118583320000000E+03),\n new google.maps.LatLng( 0.474851470000000E+02, -0.118570815000000E+03),\n new google.maps.LatLng( 0.474904940000000E+02, -0.118562927000000E+03),\n new google.maps.LatLng( 0.474982410000000E+02, -0.118553554000000E+03),\n new google.maps.LatLng( 0.474992690000000E+02, -0.118549878000000E+03),\n new google.maps.LatLng( 0.475001990000000E+02, -0.118550313000000E+03),\n new google.maps.LatLng( 0.475005530000000E+02, -0.118551561000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.469875680000000E+02, -0.119237254000000E+03),\n new google.maps.LatLng( 0.469854950000000E+02, -0.119225457000000E+03),\n new google.maps.LatLng( 0.469897240000000E+02, -0.119218248000000E+03),\n new google.maps.LatLng( 0.469881720000000E+02, -0.119213805000000E+03),\n new google.maps.LatLng( 0.469884150000000E+02, -0.119208344000000E+03),\n new google.maps.LatLng( 0.469884150000000E+02, -0.119208344000000E+03),\n new google.maps.LatLng( 0.469848150000000E+02, -0.119205891000000E+03),\n new google.maps.LatLng( 0.469843820000000E+02, -0.119194671000000E+03),\n new google.maps.LatLng( 0.469786470000000E+02, -0.119197809000000E+03),\n new google.maps.LatLng( 0.469770930000000E+02, -0.119197841000000E+03),\n new google.maps.LatLng( 0.469720890000000E+02, -0.119196672000000E+03),\n new google.maps.LatLng( 0.469665600000000E+02, -0.119191764000000E+03),\n new google.maps.LatLng( 0.469645490000000E+02, -0.119179347000000E+03),\n new google.maps.LatLng( 0.469608020000000E+02, -0.119187492000000E+03),\n new google.maps.LatLng( 0.469547470000000E+02, -0.119191563000000E+03),\n new google.maps.LatLng( 0.469513650000000E+02, -0.119191629000000E+03),\n new google.maps.LatLng( 0.469450810000000E+02, -0.119189927000000E+03),\n new google.maps.LatLng( 0.469406940000000E+02, -0.119188225000000E+03),\n new google.maps.LatLng( 0.469394140000000E+02, -0.119186824000000E+03),\n new google.maps.LatLng( 0.469384310000000E+02, -0.119186657000000E+03),\n new google.maps.LatLng( 0.469293830000000E+02, -0.119193728000000E+03),\n new google.maps.LatLng( 0.469281940000000E+02, -0.119196530000000E+03),\n new google.maps.LatLng( 0.469227560000000E+02, -0.119202231000000E+03),\n new google.maps.LatLng( 0.469218870000000E+02, -0.119204299000000E+03),\n new google.maps.LatLng( 0.469218870000000E+02, -0.119204299000000E+03),\n new google.maps.LatLng( 0.469234470000000E+02, -0.119208705000000E+03),\n new google.maps.LatLng( 0.469269350000000E+02, -0.119210838000000E+03),\n new google.maps.LatLng( 0.469343370000000E+02, -0.119219414000000E+03),\n new google.maps.LatLng( 0.469525690000000E+02, -0.119222262000000E+03),\n new google.maps.LatLng( 0.469570140000000E+02, -0.119229473000000E+03),\n new google.maps.LatLng( 0.469566650000000E+02, -0.119233608000000E+03),\n new google.maps.LatLng( 0.469556040000000E+02, -0.119234011000000E+03),\n new google.maps.LatLng( 0.469552570000000E+02, -0.119243921000000E+03),\n new google.maps.LatLng( 0.469600530000000E+02, -0.119246564000000E+03),\n new google.maps.LatLng( 0.469663360000000E+02, -0.119248874000000E+03),\n new google.maps.LatLng( 0.469680970000000E+02, -0.119252083000000E+03),\n new google.maps.LatLng( 0.469724180000000E+02, -0.119257486000000E+03),\n new google.maps.LatLng( 0.469779940000000E+02, -0.119259250000000E+03),\n new google.maps.LatLng( 0.469812610000000E+02, -0.119257311000000E+03),\n new google.maps.LatLng( 0.469817630000000E+02, -0.119255340000000E+03),\n new google.maps.LatLng( 0.469817820000000E+02, -0.119250428000000E+03),\n new google.maps.LatLng( 0.469840900000000E+02, -0.119248461000000E+03),\n new google.maps.LatLng( 0.469841020000000E+02, -0.119247538000000E+03),\n new google.maps.LatLng( 0.469841020000000E+02, -0.119247538000000E+03),\n new google.maps.LatLng( 0.469840000000000E+02, -0.119246124000000E+03),\n new google.maps.LatLng( 0.469853520000000E+02, -0.119239849000000E+03),\n new google.maps.LatLng( 0.469871800000000E+02, -0.119239717000000E+03),\n new google.maps.LatLng( 0.469875680000000E+02, -0.119237254000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.463876620000000E+02, -0.122931865000000E+03),\n new google.maps.LatLng( 0.463873060000000E+02, -0.122784569000000E+03),\n new google.maps.LatLng( 0.463873060000000E+02, -0.122784569000000E+03),\n new google.maps.LatLng( 0.463871590000000E+02, -0.122725390000000E+03),\n new google.maps.LatLng( 0.463871590000000E+02, -0.122725390000000E+03),\n new google.maps.LatLng( 0.463827030000000E+02, -0.122725420000000E+03),\n new google.maps.LatLng( 0.463827260000000E+02, -0.122731439000000E+03),\n new google.maps.LatLng( 0.463835130000000E+02, -0.122733544000000E+03),\n new google.maps.LatLng( 0.463835670000000E+02, -0.122735534000000E+03),\n new google.maps.LatLng( 0.463810680000000E+02, -0.122735330000000E+03),\n new google.maps.LatLng( 0.463733080000000E+02, -0.122731622000000E+03),\n new google.maps.LatLng( 0.463713200000000E+02, -0.122728912000000E+03),\n new google.maps.LatLng( 0.463701550000000E+02, -0.122726103000000E+03),\n new google.maps.LatLng( 0.463674590000000E+02, -0.122722469000000E+03),\n new google.maps.LatLng( 0.463647160000000E+02, -0.122722005000000E+03),\n new google.maps.LatLng( 0.463563730000000E+02, -0.122717708000000E+03),\n new google.maps.LatLng( 0.463544740000000E+02, -0.122723848000000E+03),\n new google.maps.LatLng( 0.463519360000000E+02, -0.122728666000000E+03),\n new google.maps.LatLng( 0.463493980000000E+02, -0.122731173000000E+03),\n new google.maps.LatLng( 0.463482080000000E+02, -0.122733318000000E+03),\n new google.maps.LatLng( 0.463480700000000E+02, -0.122736982000000E+03),\n new google.maps.LatLng( 0.463490520000000E+02, -0.122738270000000E+03),\n new google.maps.LatLng( 0.463509240000000E+02, -0.122743982000000E+03),\n new google.maps.LatLng( 0.463479530000000E+02, -0.122743055000000E+03),\n new google.maps.LatLng( 0.463461460000000E+02, -0.122744176000000E+03),\n new google.maps.LatLng( 0.463448190000000E+02, -0.122746424000000E+03),\n new google.maps.LatLng( 0.463448190000000E+02, -0.122746424000000E+03),\n new google.maps.LatLng( 0.463460990000000E+02, -0.122747377000000E+03),\n new google.maps.LatLng( 0.463487510000000E+02, -0.122747116000000E+03),\n new google.maps.LatLng( 0.463509680000000E+02, -0.122748373000000E+03),\n new google.maps.LatLng( 0.463526350000000E+02, -0.122751708000000E+03),\n new google.maps.LatLng( 0.463551960000000E+02, -0.122753044000000E+03),\n new google.maps.LatLng( 0.463562020000000E+02, -0.122752976000000E+03),\n new google.maps.LatLng( 0.463576870000000E+02, -0.122750560000000E+03),\n new google.maps.LatLng( 0.463589220000000E+02, -0.122750033000000E+03),\n new google.maps.LatLng( 0.463600990000000E+02, -0.122751223000000E+03),\n new google.maps.LatLng( 0.463622400000000E+02, -0.122759144000000E+03),\n new google.maps.LatLng( 0.463627890000000E+02, -0.122759738000000E+03),\n new google.maps.LatLng( 0.463644120000000E+02, -0.122760397000000E+03),\n new google.maps.LatLng( 0.463664910000000E+02, -0.122759602000000E+03),\n new google.maps.LatLng( 0.463715660000000E+02, -0.122760191000000E+03),\n new google.maps.LatLng( 0.463733270000000E+02, -0.122761973000000E+03),\n new google.maps.LatLng( 0.463727560000000E+02, -0.122764682000000E+03),\n new google.maps.LatLng( 0.463733520000000E+02, -0.122766762000000E+03),\n new google.maps.LatLng( 0.463753920000000E+02, -0.122770030000000E+03),\n new google.maps.LatLng( 0.463751570000000E+02, -0.122772639000000E+03),\n new google.maps.LatLng( 0.463719830000000E+02, -0.122774457000000E+03),\n new google.maps.LatLng( 0.463688310000000E+02, -0.122780900000000E+03),\n new google.maps.LatLng( 0.463655400000000E+02, -0.122785095000000E+03),\n new google.maps.LatLng( 0.463615860000000E+02, -0.122786484000000E+03),\n new google.maps.LatLng( 0.463603970000000E+02, -0.122788400000000E+03),\n new google.maps.LatLng( 0.463603060000000E+02, -0.122789820000000E+03),\n new google.maps.LatLng( 0.463603060000000E+02, -0.122789820000000E+03),\n new google.maps.LatLng( 0.463608100000000E+02, -0.122792230000000E+03),\n new google.maps.LatLng( 0.463603990000000E+02, -0.122797678000000E+03),\n new google.maps.LatLng( 0.463596220000000E+02, -0.122798041000000E+03),\n new google.maps.LatLng( 0.463579760000000E+02, -0.122796919000000E+03),\n new google.maps.LatLng( 0.463571070000000E+02, -0.122796985000000E+03),\n new google.maps.LatLng( 0.463560330000000E+02, -0.122797844000000E+03),\n new google.maps.LatLng( 0.463512330000000E+02, -0.122802896000000E+03),\n new google.maps.LatLng( 0.463508670000000E+02, -0.122803986000000E+03),\n new google.maps.LatLng( 0.463510960000000E+02, -0.122805603000000E+03),\n new google.maps.LatLng( 0.463510960000000E+02, -0.122805603000000E+03),\n new google.maps.LatLng( 0.463516450000000E+02, -0.122807287000000E+03),\n new google.maps.LatLng( 0.463510050000000E+02, -0.122811149000000E+03),\n new google.maps.LatLng( 0.463479650000000E+02, -0.122814813000000E+03),\n new google.maps.LatLng( 0.463464100000000E+02, -0.122818048000000E+03),\n new google.maps.LatLng( 0.463455180000000E+02, -0.122818873000000E+03),\n new google.maps.LatLng( 0.463435530000000E+02, -0.122817949000000E+03),\n new google.maps.LatLng( 0.463422720000000E+02, -0.122818510000000E+03),\n new google.maps.LatLng( 0.463407860000000E+02, -0.122820259000000E+03),\n new google.maps.LatLng( 0.463394600000000E+02, -0.122823757000000E+03),\n new google.maps.LatLng( 0.463352760000000E+02, -0.122830093000000E+03),\n new google.maps.LatLng( 0.463326930000000E+02, -0.122832237000000E+03),\n new google.maps.LatLng( 0.463319150000000E+02, -0.122833887000000E+03),\n new google.maps.LatLng( 0.463321660000000E+02, -0.122837847000000E+03),\n new google.maps.LatLng( 0.463347940000000E+02, -0.122840950000000E+03),\n new google.maps.LatLng( 0.463352490000000E+02, -0.122851083000000E+03),\n new google.maps.LatLng( 0.463365950000000E+02, -0.122856463000000E+03),\n new google.maps.LatLng( 0.463362520000000E+02, -0.122857024000000E+03),\n new google.maps.LatLng( 0.463344920000000E+02, -0.122856957000000E+03),\n new google.maps.LatLng( 0.463343090000000E+02, -0.122858112000000E+03),\n new google.maps.LatLng( 0.463305120000000E+02, -0.122862365000000E+03),\n new google.maps.LatLng( 0.463310130000000E+02, -0.122867910000000E+03),\n new google.maps.LatLng( 0.463305540000000E+02, -0.122871572000000E+03),\n new google.maps.LatLng( 0.463296160000000E+02, -0.122873122000000E+03),\n new google.maps.LatLng( 0.463295920000000E+02, -0.122874244000000E+03),\n new google.maps.LatLng( 0.463301860000000E+02, -0.122875565000000E+03),\n new google.maps.LatLng( 0.463338220000000E+02, -0.122879686000000E+03),\n new google.maps.LatLng( 0.463343260000000E+02, -0.122881006000000E+03),\n new google.maps.LatLng( 0.463385340000000E+02, -0.122885590000000E+03),\n new google.maps.LatLng( 0.463384210000000E+02, -0.122888560000000E+03),\n new google.maps.LatLng( 0.463367990000000E+02, -0.122889981000000E+03),\n new google.maps.LatLng( 0.463331420000000E+02, -0.122891898000000E+03),\n new google.maps.LatLng( 0.463313130000000E+02, -0.122891570000000E+03),\n new google.maps.LatLng( 0.463293460000000E+02, -0.122888899000000E+03),\n new google.maps.LatLng( 0.463285230000000E+02, -0.122889328000000E+03),\n new google.maps.LatLng( 0.463265380000000E+02, -0.122897777000000E+03),\n new google.maps.LatLng( 0.463227450000000E+02, -0.122904016000000E+03),\n new google.maps.LatLng( 0.463170530000000E+02, -0.122904217000000E+03),\n new google.maps.LatLng( 0.463160480000000E+02, -0.122905043000000E+03),\n new google.maps.LatLng( 0.463158880000000E+02, -0.122905604000000E+03),\n new google.maps.LatLng( 0.463165740000000E+02, -0.122906758000000E+03),\n new google.maps.LatLng( 0.463201860000000E+02, -0.122907086000000E+03),\n new google.maps.LatLng( 0.463204150000000E+02, -0.122908175000000E+03),\n new google.maps.LatLng( 0.463184720000000E+02, -0.122910716000000E+03),\n new google.maps.LatLng( 0.463164840000000E+02, -0.122911509000000E+03),\n new google.maps.LatLng( 0.463139000000000E+02, -0.122911510000000E+03),\n new google.maps.LatLng( 0.463120720000000E+02, -0.122912600000000E+03),\n new google.maps.LatLng( 0.463107920000000E+02, -0.122915734000000E+03),\n new google.maps.LatLng( 0.463109990000000E+02, -0.122919395000000E+03),\n new google.maps.LatLng( 0.463136960000000E+02, -0.122917547000000E+03),\n new google.maps.LatLng( 0.463147250000000E+02, -0.122917514000000E+03),\n new google.maps.LatLng( 0.463195710000000E+02, -0.122918964000000E+03),\n new google.maps.LatLng( 0.463242580000000E+02, -0.122921074000000E+03),\n new google.maps.LatLng( 0.463282130000000E+02, -0.122921600000000E+03),\n new google.maps.LatLng( 0.463299500000000E+02, -0.122922491000000E+03),\n new google.maps.LatLng( 0.463300640000000E+02, -0.122923184000000E+03),\n new google.maps.LatLng( 0.463313440000000E+02, -0.122923381000000E+03),\n new google.maps.LatLng( 0.463339270000000E+02, -0.122922358000000E+03),\n new google.maps.LatLng( 0.463363040000000E+02, -0.122922325000000E+03),\n new google.maps.LatLng( 0.463367160000000E+02, -0.122923117000000E+03),\n new google.maps.LatLng( 0.463363500000000E+02, -0.122926252000000E+03),\n new google.maps.LatLng( 0.463346130000000E+02, -0.122929685000000E+03),\n new google.maps.LatLng( 0.463355050000000E+02, -0.122931566000000E+03),\n new google.maps.LatLng( 0.463395970000000E+02, -0.122932885000000E+03),\n new google.maps.LatLng( 0.463442830000000E+02, -0.122935723000000E+03),\n new google.maps.LatLng( 0.463478720000000E+02, -0.122936020000000E+03),\n new google.maps.LatLng( 0.463496320000000E+02, -0.122937043000000E+03),\n new google.maps.LatLng( 0.463508440000000E+02, -0.122936977000000E+03),\n new google.maps.LatLng( 0.463544790000000E+02, -0.122935062000000E+03),\n new google.maps.LatLng( 0.463547300000000E+02, -0.122934105000000E+03),\n new google.maps.LatLng( 0.463560330000000E+02, -0.122933280000000E+03),\n new google.maps.LatLng( 0.463559870000000E+02, -0.122932190000000E+03),\n new google.maps.LatLng( 0.463573360000000E+02, -0.122930341000000E+03),\n new google.maps.LatLng( 0.463625250000000E+02, -0.122933148000000E+03),\n new google.maps.LatLng( 0.463662740000000E+02, -0.122934237000000E+03),\n new google.maps.LatLng( 0.463678970000000E+02, -0.122933940000000E+03),\n new google.maps.LatLng( 0.463693140000000E+02, -0.122932322000000E+03),\n new google.maps.LatLng( 0.463705720000000E+02, -0.122932321000000E+03),\n new google.maps.LatLng( 0.463724690000000E+02, -0.122930868000000E+03),\n new google.maps.LatLng( 0.463758100000000E+02, -0.122929943000000E+03),\n new google.maps.LatLng( 0.463770680000000E+02, -0.122930207000000E+03),\n new google.maps.LatLng( 0.463786440000000E+02, -0.122931726000000E+03),\n new google.maps.LatLng( 0.463801760000000E+02, -0.122931264000000E+03),\n new google.maps.LatLng( 0.463826450000000E+02, -0.122931825000000E+03),\n new google.maps.LatLng( 0.463876620000000E+02, -0.122931865000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.489147460000000E+02, -0.118202535000000E+03),\n new google.maps.LatLng( 0.489152020000000E+02, -0.118201461000000E+03),\n new google.maps.LatLng( 0.489152020000000E+02, -0.118201461000000E+03),\n new google.maps.LatLng( 0.489146640000000E+02, -0.118196761000000E+03),\n new google.maps.LatLng( 0.489139100000000E+02, -0.118195825000000E+03),\n new google.maps.LatLng( 0.489132250000000E+02, -0.118195790000000E+03),\n new google.maps.LatLng( 0.489093860000000E+02, -0.118199082000000E+03),\n new google.maps.LatLng( 0.489029430000000E+02, -0.118201299000000E+03),\n new google.maps.LatLng( 0.488974130000000E+02, -0.118208747000000E+03),\n new google.maps.LatLng( 0.488949230000000E+02, -0.118209024000000E+03),\n new google.maps.LatLng( 0.488908780000000E+02, -0.118211586000000E+03),\n new google.maps.LatLng( 0.488893930000000E+02, -0.118213144000000E+03),\n new google.maps.LatLng( 0.488840920000000E+02, -0.118212102000000E+03),\n new google.maps.LatLng( 0.488792480000000E+02, -0.118213659000000E+03),\n new google.maps.LatLng( 0.488765980000000E+02, -0.118212687000000E+03),\n new google.maps.LatLng( 0.488711820000000E+02, -0.118208635000000E+03),\n new google.maps.LatLng( 0.488702220000000E+02, -0.118206764000000E+03),\n new google.maps.LatLng( 0.488700630000000E+02, -0.118203923000000E+03),\n new google.maps.LatLng( 0.488693320000000E+02, -0.118201741000000E+03),\n new google.maps.LatLng( 0.488676870000000E+02, -0.118198451000000E+03),\n new google.maps.LatLng( 0.488668420000000E+02, -0.118198346000000E+03),\n new google.maps.LatLng( 0.488623640000000E+02, -0.118200354000000E+03),\n new google.maps.LatLng( 0.488583880000000E+02, -0.118201461000000E+03),\n new google.maps.LatLng( 0.488553730000000E+02, -0.118199035000000E+03),\n new google.maps.LatLng( 0.488542530000000E+02, -0.118196577000000E+03),\n new google.maps.LatLng( 0.488528140000000E+02, -0.118194949000000E+03),\n new google.maps.LatLng( 0.488505520000000E+02, -0.118193633000000E+03),\n new google.maps.LatLng( 0.488488390000000E+02, -0.118193737000000E+03),\n new google.maps.LatLng( 0.488485630000000E+02, -0.118199641000000E+03),\n new google.maps.LatLng( 0.488485630000000E+02, -0.118199641000000E+03),\n new google.maps.LatLng( 0.488489510000000E+02, -0.118202322000000E+03),\n new google.maps.LatLng( 0.488501850000000E+02, -0.118204989000000E+03),\n new google.maps.LatLng( 0.488524230000000E+02, -0.118207033000000E+03),\n new google.maps.LatLng( 0.488543860000000E+02, -0.118218148000000E+03),\n new google.maps.LatLng( 0.488545440000000E+02, -0.118222060000000E+03),\n new google.maps.LatLng( 0.488656860000000E+02, -0.118242848000000E+03),\n new google.maps.LatLng( 0.488686070000000E+02, -0.118252668000000E+03),\n new google.maps.LatLng( 0.488675370000000E+02, -0.118260878000000E+03),\n new google.maps.LatLng( 0.488682260000000E+02, -0.118270227000000E+03),\n new google.maps.LatLng( 0.488773520000000E+02, -0.118294672000000E+03),\n new google.maps.LatLng( 0.488771010000000E+02, -0.118301220000000E+03),\n new google.maps.LatLng( 0.488762330000000E+02, -0.118307662000000E+03),\n new google.maps.LatLng( 0.488761190000000E+02, -0.118314971000000E+03),\n new google.maps.LatLng( 0.488788840000000E+02, -0.118318816000000E+03),\n new google.maps.LatLng( 0.488833840000000E+02, -0.118323528000000E+03),\n new google.maps.LatLng( 0.488845250000000E+02, -0.118332017000000E+03),\n new google.maps.LatLng( 0.488844320000000E+02, -0.118340019000000E+03),\n new google.maps.LatLng( 0.488859820000000E+02, -0.118351522000000E+03),\n new google.maps.LatLng( 0.488909200000000E+02, -0.118351859000000E+03),\n new google.maps.LatLng( 0.488861780000000E+02, -0.118323918000000E+03),\n new google.maps.LatLng( 0.488865670000000E+02, -0.118320197000000E+03),\n new google.maps.LatLng( 0.488894160000000E+02, -0.118311646000000E+03),\n new google.maps.LatLng( 0.488905810000000E+02, -0.118309740000000E+03),\n new google.maps.LatLng( 0.488905810000000E+02, -0.118309740000000E+03),\n new google.maps.LatLng( 0.488889890000000E+02, -0.118309753000000E+03),\n new google.maps.LatLng( 0.488843330000000E+02, -0.118307577000000E+03),\n new google.maps.LatLng( 0.488827930000000E+02, -0.118303263000000E+03),\n new google.maps.LatLng( 0.488829770000000E+02, -0.118298596000000E+03),\n new google.maps.LatLng( 0.488803980000000E+02, -0.118288787000000E+03),\n new google.maps.LatLng( 0.488750740000000E+02, -0.118275187000000E+03),\n new google.maps.LatLng( 0.488718110000000E+02, -0.118271389000000E+03),\n new google.maps.LatLng( 0.488721910000000E+02, -0.118267653000000E+03),\n new google.maps.LatLng( 0.488749010000000E+02, -0.118259156000000E+03),\n new google.maps.LatLng( 0.488761420000000E+02, -0.118256719000000E+03),\n new google.maps.LatLng( 0.488795560000000E+02, -0.118254904000000E+03),\n new google.maps.LatLng( 0.488830270000000E+02, -0.118255598000000E+03),\n new google.maps.LatLng( 0.488851170000000E+02, -0.118255327000000E+03),\n new google.maps.LatLng( 0.488859240000000E+02, -0.118254560000000E+03),\n new google.maps.LatLng( 0.488859870000000E+02, -0.118253046000000E+03),\n new google.maps.LatLng( 0.488829620000000E+02, -0.118245414000000E+03),\n new google.maps.LatLng( 0.488826410000000E+02, -0.118242231000000E+03),\n new google.maps.LatLng( 0.488844350000000E+02, -0.118241795000000E+03),\n new google.maps.LatLng( 0.488869490000000E+02, -0.118239718000000E+03),\n new google.maps.LatLng( 0.488892540000000E+02, -0.118234654000000E+03),\n new google.maps.LatLng( 0.488887630000000E+02, -0.118232902000000E+03),\n new google.maps.LatLng( 0.488874950000000E+02, -0.118231721000000E+03),\n new google.maps.LatLng( 0.488871570000000E+02, -0.118228807000000E+03),\n new google.maps.LatLng( 0.488877640000000E+02, -0.118227190000000E+03),\n new google.maps.LatLng( 0.488950320000000E+02, -0.118223647000000E+03),\n new google.maps.LatLng( 0.488884320000000E+02, -0.118217994000000E+03),\n new google.maps.LatLng( 0.488881350000000E+02, -0.118216989000000E+03),\n new google.maps.LatLng( 0.488914250000000E+02, -0.118218793000000E+03),\n new google.maps.LatLng( 0.488959490000000E+02, -0.118218623000000E+03),\n new google.maps.LatLng( 0.489015710000000E+02, -0.118211002000000E+03),\n new google.maps.LatLng( 0.489058440000000E+02, -0.118206256000000E+03),\n new google.maps.LatLng( 0.489048620000000E+02, -0.118203760000000E+03),\n new google.maps.LatLng( 0.489054790000000E+02, -0.118202270000000E+03),\n new google.maps.LatLng( 0.489090970000000E+02, -0.118199730000000E+03),\n new google.maps.LatLng( 0.489115640000000E+02, -0.118199138000000E+03),\n new google.maps.LatLng( 0.489133920000000E+02, -0.118200315000000E+03),\n new google.maps.LatLng( 0.489147460000000E+02, -0.118202535000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.481126670000000E+02, -0.118226951000000E+03),\n new google.maps.LatLng( 0.481118680000000E+02, -0.118223846000000E+03),\n new google.maps.LatLng( 0.481126230000000E+02, -0.118219956000000E+03),\n new google.maps.LatLng( 0.481150010000000E+02, -0.118217535000000E+03),\n new google.maps.LatLng( 0.481165100000000E+02, -0.118214192000000E+03),\n new google.maps.LatLng( 0.481175620000000E+02, -0.118207948000000E+03),\n new google.maps.LatLng( 0.481181360000000E+02, -0.118193308000000E+03),\n new google.maps.LatLng( 0.481178160000000E+02, -0.118192284000000E+03),\n new google.maps.LatLng( 0.481180450000000E+02, -0.118178565000000E+03),\n new google.maps.LatLng( 0.481227280000000E+02, -0.118167063000000E+03),\n new google.maps.LatLng( 0.481228410000000E+02, -0.118164436000000E+03),\n new google.maps.LatLng( 0.481218350000000E+02, -0.118160647000000E+03),\n new google.maps.LatLng( 0.481219260000000E+02, -0.118157575000000E+03),\n new google.maps.LatLng( 0.481252590000000E+02, -0.118144976000000E+03),\n new google.maps.LatLng( 0.481260880000000E+02, -0.118139719000000E+03),\n new google.maps.LatLng( 0.481252680000000E+02, -0.118135591000000E+03),\n new google.maps.LatLng( 0.481235410000000E+02, -0.118133206000000E+03),\n new google.maps.LatLng( 0.481222810000000E+02, -0.118126791000000E+03),\n new google.maps.LatLng( 0.481219650000000E+02, -0.118114819000000E+03),\n new google.maps.LatLng( 0.481202820000000E+02, -0.118093828000000E+03),\n new google.maps.LatLng( 0.481202380000000E+02, -0.118084921000000E+03),\n new google.maps.LatLng( 0.481214140000000E+02, -0.118081223000000E+03),\n new google.maps.LatLng( 0.481175430000000E+02, -0.118074511000000E+03),\n new google.maps.LatLng( 0.481156240000000E+02, -0.118072497000000E+03),\n new google.maps.LatLng( 0.481138650000000E+02, -0.118071746000000E+03),\n new google.maps.LatLng( 0.481101400000000E+02, -0.118071984000000E+03),\n new google.maps.LatLng( 0.481056160000000E+02, -0.118070551000000E+03),\n new google.maps.LatLng( 0.481024630000000E+02, -0.118065261000000E+03),\n new google.maps.LatLng( 0.481009550000000E+02, -0.118064272000000E+03),\n new google.maps.LatLng( 0.480963160000000E+02, -0.118065056000000E+03),\n new google.maps.LatLng( 0.480911060000000E+02, -0.118063726000000E+03),\n new google.maps.LatLng( 0.480890260000000E+02, -0.118062157000000E+03),\n new google.maps.LatLng( 0.480840670000000E+02, -0.118050868000000E+03),\n new google.maps.LatLng( 0.480837470000000E+02, -0.118049027000000E+03),\n new google.maps.LatLng( 0.480829920000000E+02, -0.118042274000000E+03),\n new google.maps.LatLng( 0.480841110000000E+02, -0.118036987000000E+03),\n new google.maps.LatLng( 0.480839370000000E+02, -0.118030955000000E+03),\n new google.maps.LatLng( 0.480839370000000E+02, -0.118030955000000E+03),\n new google.maps.LatLng( 0.480828980000000E+02, -0.118031566000000E+03),\n new google.maps.LatLng( 0.480796760000000E+02, -0.118030170000000E+03),\n new google.maps.LatLng( 0.480749690000000E+02, -0.118029762000000E+03),\n new google.maps.LatLng( 0.480716100000000E+02, -0.118032800000000E+03),\n new google.maps.LatLng( 0.480710380000000E+02, -0.118033721000000E+03),\n new google.maps.LatLng( 0.480705590000000E+02, -0.118036721000000E+03),\n new google.maps.LatLng( 0.480692340000000E+02, -0.118038222000000E+03),\n new google.maps.LatLng( 0.480672000000000E+02, -0.118038871000000E+03),\n new google.maps.LatLng( 0.480632930000000E+02, -0.118038634000000E+03),\n new google.maps.LatLng( 0.480586550000000E+02, -0.118041295000000E+03),\n new google.maps.LatLng( 0.480539030000000E+02, -0.118047329000000E+03),\n new google.maps.LatLng( 0.480528060000000E+02, -0.118051249000000E+03),\n new google.maps.LatLng( 0.480523270000000E+02, -0.118056872000000E+03),\n new google.maps.LatLng( 0.480501740000000E+02, -0.118061282000000E+03),\n new google.maps.LatLng( 0.480429340000000E+02, -0.118050944000000E+03),\n new google.maps.LatLng( 0.480399630000000E+02, -0.118048083000000E+03),\n new google.maps.LatLng( 0.480370360000000E+02, -0.118038747000000E+03),\n new google.maps.LatLng( 0.480314580000000E+02, -0.118030913000000E+03),\n new google.maps.LatLng( 0.480355860000000E+02, -0.118007129000000E+03),\n new google.maps.LatLng( 0.480320890000000E+02, -0.117995102000000E+03),\n new google.maps.LatLng( 0.480276590000000E+02, -0.117987602000000E+03),\n new google.maps.LatLng( 0.480222920000000E+02, -0.117981738000000E+03),\n new google.maps.LatLng( 0.480188210000000E+02, -0.117973424000000E+03),\n new google.maps.LatLng( 0.480098880000000E+02, -0.117965176000000E+03),\n new google.maps.LatLng( 0.480064390000000E+02, -0.117960203000000E+03),\n new google.maps.LatLng( 0.480059590000000E+02, -0.117958807000000E+03),\n new google.maps.LatLng( 0.480057320000000E+02, -0.117949884000000E+03),\n new google.maps.LatLng( 0.480061890000000E+02, -0.117944504000000E+03),\n new google.maps.LatLng( 0.480071260000000E+02, -0.117940929000000E+03),\n new google.maps.LatLng( 0.480041100000000E+02, -0.117942325000000E+03),\n new google.maps.LatLng( 0.480023420000000E+02, -0.117944534000000E+03),\n new google.maps.LatLng( 0.480023420000000E+02, -0.117944534000000E+03),\n new google.maps.LatLng( 0.480025990000000E+02, -0.118001083000000E+03),\n new google.maps.LatLng( 0.480018550000000E+02, -0.118004134000000E+03),\n new google.maps.LatLng( 0.480018380000000E+02, -0.118007750000000E+03),\n new google.maps.LatLng( 0.480021400000000E+02, -0.118115492000000E+03),\n new google.maps.LatLng( 0.480048730000000E+02, -0.118115957000000E+03),\n new google.maps.LatLng( 0.480121640000000E+02, -0.118114772000000E+03),\n new google.maps.LatLng( 0.480160270000000E+02, -0.118112528000000E+03),\n new google.maps.LatLng( 0.480161640000000E+02, -0.118111643000000E+03),\n new google.maps.LatLng( 0.480149760000000E+02, -0.118112289000000E+03),\n new google.maps.LatLng( 0.480143140000000E+02, -0.118110824000000E+03),\n new google.maps.LatLng( 0.480172390000000E+02, -0.118111235000000E+03),\n new google.maps.LatLng( 0.480175800000000E+02, -0.118115085000000E+03),\n new google.maps.LatLng( 0.480113820000000E+02, -0.118124580000000E+03),\n new google.maps.LatLng( 0.480054660000000E+02, -0.118131624000000E+03),\n new google.maps.LatLng( 0.480024740000000E+02, -0.118133533000000E+03),\n new google.maps.LatLng( 0.480009430000000E+02, -0.118133603000000E+03),\n new google.maps.LatLng( 0.479998840000000E+02, -0.118132787000000E+03),\n new google.maps.LatLng( 0.479981220000000E+02, -0.118132895000000E+03),\n new google.maps.LatLng( 0.479922550000000E+02, -0.118134738000000E+03),\n new google.maps.LatLng( 0.479894530000000E+02, -0.118138360000000E+03),\n new google.maps.LatLng( 0.479872080000000E+02, -0.118142711000000E+03),\n new google.maps.LatLng( 0.479854950000000E+02, -0.118143482000000E+03),\n new google.maps.LatLng( 0.479826400000000E+02, -0.118143926000000E+03),\n new google.maps.LatLng( 0.479808690000000E+02, -0.118144982000000E+03),\n new google.maps.LatLng( 0.479737710000000E+02, -0.118152218000000E+03),\n new google.maps.LatLng( 0.479718390000000E+02, -0.118153106000000E+03),\n new google.maps.LatLng( 0.479696520000000E+02, -0.118153361000000E+03),\n new google.maps.LatLng( 0.479680180000000E+02, -0.118154381000000E+03),\n new google.maps.LatLng( 0.479658900000000E+02, -0.118156964000000E+03),\n new google.maps.LatLng( 0.479648030000000E+02, -0.118159410000000E+03),\n new google.maps.LatLng( 0.479651010000000E+02, -0.118168971000000E+03),\n new google.maps.LatLng( 0.479663930000000E+02, -0.118170147000000E+03),\n new google.maps.LatLng( 0.479714190000000E+02, -0.118169750000000E+03),\n new google.maps.LatLng( 0.479761670000000E+02, -0.118167393000000E+03),\n new google.maps.LatLng( 0.479788040000000E+02, -0.118167630000000E+03),\n new google.maps.LatLng( 0.479804410000000E+02, -0.118169034000000E+03),\n new google.maps.LatLng( 0.479853620000000E+02, -0.118169426000000E+03),\n new google.maps.LatLng( 0.479879290000000E+02, -0.118164597000000E+03),\n new google.maps.LatLng( 0.479910470000000E+02, -0.118165386000000E+03),\n new google.maps.LatLng( 0.479913260000000E+02, -0.118166235000000E+03),\n new google.maps.LatLng( 0.479903510000000E+02, -0.118170543000000E+03),\n new google.maps.LatLng( 0.479881380000000E+02, -0.118189382000000E+03),\n new google.maps.LatLng( 0.479889210000000E+02, -0.118191488000000E+03),\n new google.maps.LatLng( 0.479850150000000E+02, -0.118197896000000E+03),\n new google.maps.LatLng( 0.479808400000000E+02, -0.118201926000000E+03),\n new google.maps.LatLng( 0.479775250000000E+02, -0.118202241000000E+03),\n new google.maps.LatLng( 0.479719040000000E+02, -0.118198802000000E+03),\n new google.maps.LatLng( 0.479714930000000E+02, -0.118196454000000E+03),\n new google.maps.LatLng( 0.479721100000000E+02, -0.118194072000000E+03),\n new google.maps.LatLng( 0.479718590000000E+02, -0.118188628000000E+03),\n new google.maps.LatLng( 0.479670150000000E+02, -0.118185258000000E+03),\n new google.maps.LatLng( 0.479644780000000E+02, -0.118182026000000E+03),\n new google.maps.LatLng( 0.479614160000000E+02, -0.118181754000000E+03),\n new google.maps.LatLng( 0.479570290000000E+02, -0.118189511000000E+03),\n new google.maps.LatLng( 0.479570740000000E+02, -0.118200635000000E+03),\n new google.maps.LatLng( 0.479557690000000E+02, -0.118208561000000E+03),\n new google.maps.LatLng( 0.479570930000000E+02, -0.118214448000000E+03),\n new google.maps.LatLng( 0.479578460000000E+02, -0.118219823000000E+03),\n new google.maps.LatLng( 0.479575940000000E+02, -0.118221184000000E+03),\n new google.maps.LatLng( 0.479493950000000E+02, -0.118197232000000E+03),\n new google.maps.LatLng( 0.479453970000000E+02, -0.118191449000000E+03),\n new google.maps.LatLng( 0.479443460000000E+02, -0.118188796000000E+03),\n new google.maps.LatLng( 0.479433410000000E+02, -0.118184035000000E+03),\n new google.maps.LatLng( 0.479399360000000E+02, -0.118183321000000E+03),\n new google.maps.LatLng( 0.479357540000000E+02, -0.118183491000000E+03),\n new google.maps.LatLng( 0.479312520000000E+02, -0.118176452000000E+03),\n new google.maps.LatLng( 0.479264980000000E+02, -0.118171863000000E+03),\n new google.maps.LatLng( 0.479268180000000E+02, -0.118170775000000E+03),\n new google.maps.LatLng( 0.479288980000000E+02, -0.118171863000000E+03),\n new google.maps.LatLng( 0.479305200000000E+02, -0.118171386000000E+03),\n new google.maps.LatLng( 0.479328510000000E+02, -0.118168359000000E+03),\n new google.maps.LatLng( 0.479327140000000E+02, -0.118165401000000E+03),\n new google.maps.LatLng( 0.479292840000000E+02, -0.118155712000000E+03),\n new google.maps.LatLng( 0.479237980000000E+02, -0.118151466000000E+03),\n new google.maps.LatLng( 0.479218100000000E+02, -0.118151977000000E+03),\n new google.maps.LatLng( 0.479177880000000E+02, -0.118154427000000E+03),\n new google.maps.LatLng( 0.479146920000000E+02, -0.118155481000000E+03),\n new google.maps.LatLng( 0.479124420000000E+02, -0.118154900000000E+03),\n new google.maps.LatLng( 0.479113210000000E+02, -0.118153344000000E+03),\n new google.maps.LatLng( 0.479099950000000E+02, -0.118152733000000E+03),\n new google.maps.LatLng( 0.479080760000000E+02, -0.118152870000000E+03),\n new google.maps.LatLng( 0.479020670000000E+02, -0.118155355000000E+03),\n new google.maps.LatLng( 0.478940000000000E+02, -0.118153660000000E+03),\n new google.maps.LatLng( 0.478927890000000E+02, -0.118153457000000E+03),\n new google.maps.LatLng( 0.478905490000000E+02, -0.118151590000000E+03),\n new google.maps.LatLng( 0.478894720000000E+02, -0.118144694000000E+03),\n new google.maps.LatLng( 0.478909560000000E+02, -0.118142111000000E+03),\n new google.maps.LatLng( 0.478952060000000E+02, -0.118139219000000E+03),\n new google.maps.LatLng( 0.478984710000000E+02, -0.118134050000000E+03),\n new google.maps.LatLng( 0.479013720000000E+02, -0.118120847000000E+03),\n new google.maps.LatLng( 0.479009860000000E+02, -0.118115136000000E+03),\n new google.maps.LatLng( 0.479059521028320E+02, -0.118110844844922E+03),\n new google.maps.LatLng( 0.479082147028320E+02, -0.118110051644922E+03),\n new google.maps.LatLng( 0.479102440000000E+02, -0.118108654000000E+03),\n new google.maps.LatLng( 0.479196160000000E+02, -0.118099960000000E+03),\n new google.maps.LatLng( 0.479230450000000E+02, -0.118094319000000E+03),\n new google.maps.LatLng( 0.479230230000000E+02, -0.118091735000000E+03),\n new google.maps.LatLng( 0.479226060000000E+02, -0.118091755000000E+03),\n new google.maps.LatLng( 0.479223820000000E+02, -0.118094352000000E+03),\n new google.maps.LatLng( 0.479190680000000E+02, -0.118099280000000E+03),\n new google.maps.LatLng( 0.479095350000000E+02, -0.118108076000000E+03),\n new google.maps.LatLng( 0.479050560000000E+02, -0.118110179000000E+03),\n new google.maps.LatLng( 0.479003460000000E+02, -0.118114490000000E+03),\n new google.maps.LatLng( 0.479003460000000E+02, -0.118114490000000E+03),\n new google.maps.LatLng( 0.479007080000000E+02, -0.118120778000000E+03),\n new google.maps.LatLng( 0.478982420000000E+02, -0.118133031000000E+03),\n new google.maps.LatLng( 0.478947940000000E+02, -0.118138675000000E+03),\n new google.maps.LatLng( 0.478941090000000E+02, -0.118139356000000E+03),\n new google.maps.LatLng( 0.478923950000000E+02, -0.118139663000000E+03),\n new google.maps.LatLng( 0.478923950000000E+02, -0.118139663000000E+03),\n new google.maps.LatLng( 0.478890830000000E+02, -0.118143539000000E+03),\n new google.maps.LatLng( 0.478886280000000E+02, -0.118147039000000E+03),\n new google.maps.LatLng( 0.478893380000000E+02, -0.118153833000000E+03),\n new google.maps.LatLng( 0.478924700000000E+02, -0.118157977000000E+03),\n new google.maps.LatLng( 0.478935440000000E+02, -0.118157976000000E+03),\n new google.maps.LatLng( 0.478951890000000E+02, -0.118156717000000E+03),\n new google.maps.LatLng( 0.478965370000000E+02, -0.118156581000000E+03),\n new google.maps.LatLng( 0.479020000000000E+02, -0.118160588000000E+03),\n new google.maps.LatLng( 0.479025720000000E+02, -0.118164190000000E+03),\n new google.maps.LatLng( 0.479065260000000E+02, -0.118170475000000E+03),\n new google.maps.LatLng( 0.479087890000000E+02, -0.118171835000000E+03),\n new google.maps.LatLng( 0.479133360000000E+02, -0.118175776000000E+03),\n new google.maps.LatLng( 0.479163530000000E+02, -0.118179277000000E+03),\n new google.maps.LatLng( 0.479199640000000E+02, -0.118181078000000E+03),\n new google.maps.LatLng( 0.479222260000000E+02, -0.118182777000000E+03),\n new google.maps.LatLng( 0.479243060000000E+02, -0.118187129000000E+03),\n new google.maps.LatLng( 0.479272760000000E+02, -0.118188591000000E+03),\n new google.maps.LatLng( 0.479288070000000E+02, -0.118187129000000E+03),\n new google.maps.LatLng( 0.479320060000000E+02, -0.118187197000000E+03),\n new google.maps.LatLng( 0.479403930000000E+02, -0.118191516000000E+03),\n new google.maps.LatLng( 0.479421750000000E+02, -0.118193149000000E+03),\n new google.maps.LatLng( 0.479448710000000E+02, -0.118198252000000E+03),\n new google.maps.LatLng( 0.479458530000000E+02, -0.118201143000000E+03),\n new google.maps.LatLng( 0.479466600000000E+02, -0.118249168000000E+03),\n new google.maps.LatLng( 0.479419790000000E+02, -0.118256803000000E+03),\n new google.maps.LatLng( 0.479386670000000E+02, -0.118260105000000E+03),\n new google.maps.LatLng( 0.479356740000000E+02, -0.118261911000000E+03),\n new google.maps.LatLng( 0.479355150000000E+02, -0.118266569000000E+03),\n new google.maps.LatLng( 0.479338960000000E+02, -0.118274732000000E+03),\n new google.maps.LatLng( 0.479281170000000E+02, -0.118284528000000E+03),\n new google.maps.LatLng( 0.479236400000000E+02, -0.118290275000000E+03),\n new google.maps.LatLng( 0.479218580000000E+02, -0.118293303000000E+03),\n new google.maps.LatLng( 0.479197110000000E+02, -0.118300034000000E+03),\n new google.maps.LatLng( 0.479134050000000E+02, -0.118309756000000E+03),\n new google.maps.LatLng( 0.479105030000000E+02, -0.118317439000000E+03),\n new google.maps.LatLng( 0.479064120000000E+02, -0.118322536000000E+03),\n new google.maps.LatLng( 0.479058180000000E+02, -0.118322875000000E+03),\n new google.maps.LatLng( 0.479022980000000E+02, -0.118322399000000E+03),\n new google.maps.LatLng( 0.479012240000000E+02, -0.118322807000000E+03),\n new google.maps.LatLng( 0.478997830000000E+02, -0.118333476000000E+03),\n new google.maps.LatLng( 0.479036450000000E+02, -0.118335415000000E+03),\n new google.maps.LatLng( 0.479073230000000E+02, -0.118336471000000E+03),\n new google.maps.LatLng( 0.479083290000000E+02, -0.118337559000000E+03),\n new google.maps.LatLng( 0.479091730000000E+02, -0.118340346000000E+03),\n new google.maps.LatLng( 0.479157070000000E+02, -0.118345075000000E+03),\n new google.maps.LatLng( 0.479187470000000E+02, -0.118346266000000E+03),\n new google.maps.LatLng( 0.479240480000000E+02, -0.118346576000000E+03),\n new google.maps.LatLng( 0.479336230000000E+02, -0.118345222000000E+03),\n new google.maps.LatLng( 0.479363650000000E+02, -0.118346108000000E+03),\n new google.maps.LatLng( 0.479411180000000E+02, -0.118345295000000E+03),\n new google.maps.LatLng( 0.479442940000000E+02, -0.118346385000000E+03),\n new google.maps.LatLng( 0.479594200000000E+02, -0.118347485000000E+03),\n new google.maps.LatLng( 0.479632830000000E+02, -0.118346433000000E+03),\n new google.maps.LatLng( 0.479672370000000E+02, -0.118342659000000E+03),\n new google.maps.LatLng( 0.479803500000000E+02, -0.118350018000000E+03),\n new google.maps.LatLng( 0.479824060000000E+02, -0.118353560000000E+03),\n new google.maps.LatLng( 0.479829530000000E+02, -0.118357746000000E+03),\n new google.maps.LatLng( 0.479850750000000E+02, -0.118362990000000E+03),\n new google.maps.LatLng( 0.479875420000000E+02, -0.118366124000000E+03),\n new google.maps.LatLng( 0.479886610000000E+02, -0.118366943000000E+03),\n new google.maps.LatLng( 0.479970240000000E+02, -0.118369539000000E+03),\n new google.maps.LatLng( 0.480056930000000E+02, -0.118376806000000E+03),\n new google.maps.LatLng( 0.480073380000000E+02, -0.118377553000000E+03),\n new google.maps.LatLng( 0.480128680000000E+02, -0.118377887000000E+03),\n new google.maps.LatLng( 0.480138730000000E+02, -0.118377511000000E+03),\n new google.maps.LatLng( 0.480190830000000E+02, -0.118371604000000E+03),\n new google.maps.LatLng( 0.480205460000000E+02, -0.118370959000000E+03),\n new google.maps.LatLng( 0.480244980000000E+02, -0.118372326000000E+03),\n new google.maps.LatLng( 0.480301990000000E+02, -0.118376105000000E+03),\n new google.maps.LatLng( 0.480330210000000E+02, -0.118376672000000E+03),\n new google.maps.LatLng( 0.480342080000000E+02, -0.118375574000000E+03),\n new google.maps.LatLng( 0.480365870000000E+02, -0.118371726000000E+03),\n new google.maps.LatLng( 0.480385320000000E+02, -0.118366175000000E+03),\n new google.maps.LatLng( 0.480398160000000E+02, -0.118356227000000E+03),\n new google.maps.LatLng( 0.480408920000000E+02, -0.118351048000000E+03),\n new google.maps.LatLng( 0.480430190000000E+02, -0.118345428000000E+03),\n new google.maps.LatLng( 0.480433850000000E+02, -0.118342055000000E+03),\n new google.maps.LatLng( 0.480417200000000E+02, -0.118329276000000E+03),\n new google.maps.LatLng( 0.480400070000000E+02, -0.118323346000000E+03),\n new google.maps.LatLng( 0.480378130000000E+02, -0.118307910000000E+03),\n new google.maps.LatLng( 0.480363960000000E+02, -0.118303618000000E+03),\n new google.maps.LatLng( 0.480365560000000E+02, -0.118303243000000E+03),\n new google.maps.LatLng( 0.480379960000000E+02, -0.118303549000000E+03),\n new google.maps.LatLng( 0.480385210000000E+02, -0.118298268000000E+03),\n new google.maps.LatLng( 0.480361620000000E+02, -0.118274384000000E+03),\n new google.maps.LatLng( 0.480363670000000E+02, -0.118272749000000E+03),\n new google.maps.LatLng( 0.480393820000000E+02, -0.118266852000000E+03),\n new google.maps.LatLng( 0.480403390000000E+02, -0.118261434000000E+03),\n new google.maps.LatLng( 0.480457060000000E+02, -0.118253965000000E+03),\n new google.maps.LatLng( 0.480499540000000E+02, -0.118249428000000E+03),\n new google.maps.LatLng( 0.480522870000000E+02, -0.118245035000000E+03),\n new google.maps.LatLng( 0.480538430000000E+02, -0.118239924000000E+03),\n new google.maps.LatLng( 0.480559250000000E+02, -0.118235189000000E+03),\n new google.maps.LatLng( 0.480571820000000E+02, -0.118233929000000E+03),\n new google.maps.LatLng( 0.480592630000000E+02, -0.118232089000000E+03),\n new google.maps.LatLng( 0.480613430000000E+02, -0.118231136000000E+03),\n new google.maps.LatLng( 0.480633300000000E+02, -0.118231991000000E+03),\n new google.maps.LatLng( 0.480721750000000E+02, -0.118229101000000E+03),\n new google.maps.LatLng( 0.480744590000000E+02, -0.118229580000000E+03),\n new google.maps.LatLng( 0.480762190000000E+02, -0.118228729000000E+03),\n new google.maps.LatLng( 0.480805160000000E+02, -0.118224880000000E+03),\n new google.maps.LatLng( 0.480813180000000E+02, -0.118220412000000E+03),\n new google.maps.LatLng( 0.480826190000000E+02, -0.118223347000000E+03),\n new google.maps.LatLng( 0.480832570000000E+02, -0.118227882000000E+03),\n new google.maps.LatLng( 0.480897930000000E+02, -0.118226933000000E+03),\n new google.maps.LatLng( 0.480940660000000E+02, -0.118228062000000E+03),\n new google.maps.LatLng( 0.481088020000000E+02, -0.118235205000000E+03),\n new google.maps.LatLng( 0.481126670000000E+02, -0.118226951000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.479419050000000E+02, -0.117718257000000E+03),\n new google.maps.LatLng( 0.479388200000000E+02, -0.117717745000000E+03),\n new google.maps.LatLng( 0.479315760000000E+02, -0.117718523000000E+03),\n new google.maps.LatLng( 0.479272800000000E+02, -0.117716785000000E+03),\n new google.maps.LatLng( 0.479230520000000E+02, -0.117715797000000E+03),\n new google.maps.LatLng( 0.479213380000000E+02, -0.117716680000000E+03),\n new google.maps.LatLng( 0.479204690000000E+02, -0.117718583000000E+03),\n new google.maps.LatLng( 0.479205360000000E+02, -0.117726029000000E+03),\n new google.maps.LatLng( 0.479211520000000E+02, -0.117728987000000E+03),\n new google.maps.LatLng( 0.479174270000000E+02, -0.117728609000000E+03),\n new google.maps.LatLng( 0.479152120000000E+02, -0.117724801000000E+03),\n new google.maps.LatLng( 0.479134520000000E+02, -0.117723202000000E+03),\n new google.maps.LatLng( 0.479110070000000E+02, -0.117722690000000E+03),\n new google.maps.LatLng( 0.479089500000000E+02, -0.117724422000000E+03),\n new google.maps.LatLng( 0.479034390000000E+02, -0.117732337000000E+03),\n new google.maps.LatLng( 0.479009960000000E+02, -0.117726796000000E+03),\n new google.maps.LatLng( 0.478983910000000E+02, -0.117724381000000E+03),\n new google.maps.LatLng( 0.478976830000000E+02, -0.117724380000000E+03),\n new google.maps.LatLng( 0.478966310000000E+02, -0.117724923000000E+03),\n new google.maps.LatLng( 0.478929960000000E+02, -0.117730323000000E+03),\n new google.maps.LatLng( 0.478905960000000E+02, -0.117732496000000E+03),\n new google.maps.LatLng( 0.478866420000000E+02, -0.117733546000000E+03),\n new google.maps.LatLng( 0.478855470000000E+02, -0.117727055000000E+03),\n new google.maps.LatLng( 0.478829450000000E+02, -0.117718696000000E+03),\n new google.maps.LatLng( 0.478807970000000E+02, -0.117716860000000E+03),\n new google.maps.LatLng( 0.478771180000000E+02, -0.117715364000000E+03),\n new google.maps.LatLng( 0.478753850000000E+02, -0.117710844000000E+03),\n new google.maps.LatLng( 0.478753400000000E+02, -0.117708704000000E+03),\n new google.maps.LatLng( 0.478765250000000E+02, -0.117708705000000E+03),\n new google.maps.LatLng( 0.478798620000000E+02, -0.117706362000000E+03),\n new google.maps.LatLng( 0.478789350000000E+02, -0.117702547000000E+03),\n new google.maps.LatLng( 0.478789350000000E+02, -0.117702547000000E+03),\n new google.maps.LatLng( 0.478763860000000E+02, -0.117701401000000E+03),\n new google.maps.LatLng( 0.478763860000000E+02, -0.117701401000000E+03),\n new google.maps.LatLng( 0.478738570000000E+02, -0.117701097000000E+03),\n new google.maps.LatLng( 0.478726230000000E+02, -0.117701403000000E+03),\n new google.maps.LatLng( 0.478643040000000E+02, -0.117705543000000E+03),\n new google.maps.LatLng( 0.478634580000000E+02, -0.117704490000000E+03),\n new google.maps.LatLng( 0.478622700000000E+02, -0.117704252000000E+03),\n new google.maps.LatLng( 0.478557110000000E+02, -0.117706559000000E+03),\n new google.maps.LatLng( 0.478528540000000E+02, -0.117708391000000E+03),\n new google.maps.LatLng( 0.478490360000000E+02, -0.117713245000000E+03),\n new google.maps.LatLng( 0.478472070000000E+02, -0.117716401000000E+03),\n new google.maps.LatLng( 0.478405290000000E+02, -0.117732962000000E+03),\n new google.maps.LatLng( 0.478352220000000E+02, -0.117741781000000E+03),\n new google.maps.LatLng( 0.478333920000000E+02, -0.117746633000000E+03),\n new google.maps.LatLng( 0.478346940000000E+02, -0.117753863000000E+03),\n new google.maps.LatLng( 0.478345590000000E+02, -0.117758039000000E+03),\n new google.maps.LatLng( 0.478338620000000E+02, -0.117761019000000E+03),\n new google.maps.LatLng( 0.478338620000000E+02, -0.117761019000000E+03),\n new google.maps.LatLng( 0.478346970000000E+02, -0.117759498000000E+03),\n new google.maps.LatLng( 0.478422170000000E+02, -0.117762172000000E+03),\n new google.maps.LatLng( 0.478457150000000E+02, -0.117765768000000E+03),\n new google.maps.LatLng( 0.478485980000000E+02, -0.117774694000000E+03),\n new google.maps.LatLng( 0.478527350000000E+02, -0.117780124000000E+03),\n new google.maps.LatLng( 0.478601860000000E+02, -0.117783583000000E+03),\n new google.maps.LatLng( 0.478678440000000E+02, -0.117791255000000E+03),\n new google.maps.LatLng( 0.478752700000000E+02, -0.117788771000000E+03),\n new google.maps.LatLng( 0.478752700000000E+02, -0.117785918000000E+03),\n new google.maps.LatLng( 0.478756780000000E+02, -0.117784967000000E+03),\n new google.maps.LatLng( 0.478775050000000E+02, -0.117781229000000E+03),\n new google.maps.LatLng( 0.478793100000000E+02, -0.117779394000000E+03),\n new google.maps.LatLng( 0.478886100000000E+02, -0.117777587000000E+03),\n new google.maps.LatLng( 0.478999210000000E+02, -0.117771836000000E+03),\n new google.maps.LatLng( 0.479071860000000E+02, -0.117766494000000E+03),\n new google.maps.LatLng( 0.479111420000000E+02, -0.117771827000000E+03),\n new google.maps.LatLng( 0.479142260000000E+02, -0.117771519000000E+03),\n new google.maps.LatLng( 0.479190950000000E+02, -0.117773148000000E+03),\n new google.maps.LatLng( 0.479190950000000E+02, -0.117773148000000E+03),\n new google.maps.LatLng( 0.479222230000000E+02, -0.117767535000000E+03),\n new google.maps.LatLng( 0.479210100000000E+02, -0.117761417000000E+03),\n new google.maps.LatLng( 0.479240020000000E+02, -0.117759204000000E+03),\n new google.maps.LatLng( 0.479250970000000E+02, -0.117755293000000E+03),\n new google.maps.LatLng( 0.479255750000000E+02, -0.117750275000000E+03),\n new google.maps.LatLng( 0.479268580000000E+02, -0.117744734000000E+03),\n new google.maps.LatLng( 0.479290310000000E+02, -0.117740656000000E+03),\n new google.maps.LatLng( 0.479298080000000E+02, -0.117741065000000E+03),\n new google.maps.LatLng( 0.479309040000000E+02, -0.117742732000000E+03),\n new google.maps.LatLng( 0.479362520000000E+02, -0.117742433000000E+03),\n new google.maps.LatLng( 0.479394970000000E+02, -0.117741042000000E+03),\n new google.maps.LatLng( 0.479390640000000E+02, -0.117739579000000E+03),\n new google.maps.LatLng( 0.479376700000000E+02, -0.117738864000000E+03),\n new google.maps.LatLng( 0.479363900000000E+02, -0.117739202000000E+03),\n new google.maps.LatLng( 0.479360930000000E+02, -0.117738793000000E+03),\n new google.maps.LatLng( 0.479355450000000E+02, -0.117737534000000E+03),\n new google.maps.LatLng( 0.479368260000000E+02, -0.117736447000000E+03),\n new google.maps.LatLng( 0.479432970000000E+02, -0.117734788000000E+03),\n new google.maps.LatLng( 0.479454640000000E+02, -0.117735674000000E+03),\n new google.maps.LatLng( 0.479461500000000E+02, -0.117735403000000E+03),\n new google.maps.LatLng( 0.479466770000000E+02, -0.117731866000000E+03),\n new google.maps.LatLng( 0.479452850000000E+02, -0.117725469000000E+03),\n new google.maps.LatLng( 0.479433900000000E+02, -0.117720536000000E+03),\n new google.maps.LatLng( 0.479419050000000E+02, -0.117718257000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.471807210000000E+02, -0.122388832000000E+03),\n new google.maps.LatLng( 0.471697210000000E+02, -0.122388832000000E+03),\n new google.maps.LatLng( 0.471697210000000E+02, -0.122393432000000E+03),\n new google.maps.LatLng( 0.471546210000000E+02, -0.122392932000000E+03),\n new google.maps.LatLng( 0.471546210000000E+02, -0.122388732000000E+03),\n new google.maps.LatLng( 0.471400210000000E+02, -0.122389032000000E+03),\n new google.maps.LatLng( 0.471401210000000E+02, -0.122395732000000E+03),\n new google.maps.LatLng( 0.471293210000000E+02, -0.122394332000000E+03),\n new google.maps.LatLng( 0.471273210000000E+02, -0.122389231000000E+03),\n new google.maps.LatLng( 0.471185210000000E+02, -0.122388931000000E+03),\n new google.maps.LatLng( 0.470987680000000E+02, -0.122389432000000E+03),\n new google.maps.LatLng( 0.470968250000000E+02, -0.122390624000000E+03),\n new google.maps.LatLng( 0.470968210000000E+02, -0.122399731000000E+03),\n new google.maps.LatLng( 0.470968210000000E+02, -0.122399731000000E+03),\n new google.maps.LatLng( 0.471004210000000E+02, -0.122399931000000E+03),\n new google.maps.LatLng( 0.471074530000000E+02, -0.122401353000000E+03),\n new google.maps.LatLng( 0.471113360000000E+02, -0.122406067000000E+03),\n new google.maps.LatLng( 0.471115190000000E+02, -0.122421432000000E+03),\n new google.maps.LatLng( 0.471104660000000E+02, -0.122421417000000E+03),\n new google.maps.LatLng( 0.471091010000000E+02, -0.122422836000000E+03),\n new google.maps.LatLng( 0.471074210000000E+02, -0.122429232000000E+03),\n new google.maps.LatLng( 0.471075210000000E+02, -0.122431832000000E+03),\n new google.maps.LatLng( 0.471123210000000E+02, -0.122434632000000E+03),\n new google.maps.LatLng( 0.471179210000000E+02, -0.122434432000000E+03),\n new google.maps.LatLng( 0.471194210000000E+02, -0.122434432000000E+03),\n new google.maps.LatLng( 0.471194210000000E+02, -0.122434432000000E+03),\n new google.maps.LatLng( 0.471269210000000E+02, -0.122434533000000E+03),\n new google.maps.LatLng( 0.471269430000000E+02, -0.122432429000000E+03),\n new google.maps.LatLng( 0.471300210000000E+02, -0.122432033000000E+03),\n new google.maps.LatLng( 0.471552210000000E+02, -0.122431533000000E+03),\n new google.maps.LatLng( 0.471551210000000E+02, -0.122426033000000E+03),\n new google.maps.LatLng( 0.471569210000000E+02, -0.122426133000000E+03),\n new google.maps.LatLng( 0.471570210000000E+02, -0.122431333000000E+03),\n new google.maps.LatLng( 0.471579410000000E+02, -0.122431518000000E+03),\n new google.maps.LatLng( 0.471808210000000E+02, -0.122431033000000E+03),\n new google.maps.LatLng( 0.471808210000000E+02, -0.122431033000000E+03),\n new google.maps.LatLng( 0.471808210000000E+02, -0.122420633000000E+03),\n new google.maps.LatLng( 0.471798210000000E+02, -0.122419433000000E+03),\n new google.maps.LatLng( 0.471799210000000E+02, -0.122404633000000E+03),\n new google.maps.LatLng( 0.471807210000000E+02, -0.122396832000000E+03),\n new google.maps.LatLng( 0.471807210000000E+02, -0.122388832000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.473830570000000E+02, -0.119086364000000E+03),\n new google.maps.LatLng( 0.473694350000000E+02, -0.119086665000000E+03),\n new google.maps.LatLng( 0.473506750000000E+02, -0.119085916000000E+03),\n new google.maps.LatLng( 0.473020300000000E+02, -0.119085959000000E+03),\n new google.maps.LatLng( 0.472994710000000E+02, -0.119088007000000E+03),\n new google.maps.LatLng( 0.472970930000000E+02, -0.119091566000000E+03),\n new google.maps.LatLng( 0.472921120000000E+02, -0.119092369000000E+03),\n new google.maps.LatLng( 0.472895300000000E+02, -0.119094080000000E+03),\n new google.maps.LatLng( 0.472872900000000E+02, -0.119096430000000E+03),\n new google.maps.LatLng( 0.472871270000000E+02, -0.119106672000000E+03),\n new google.maps.LatLng( 0.472619230000000E+02, -0.119106953000000E+03),\n new google.maps.LatLng( 0.472616330000000E+02, -0.119086546000000E+03),\n new google.maps.LatLng( 0.472259030000000E+02, -0.119087337000000E+03),\n new google.maps.LatLng( 0.471744700000000E+02, -0.119086776000000E+03),\n new google.maps.LatLng( 0.471596170000000E+02, -0.119087037000000E+03),\n new google.maps.LatLng( 0.471592070000000E+02, -0.119085429000000E+03),\n new google.maps.LatLng( 0.471593450000000E+02, -0.119044492000000E+03),\n new google.maps.LatLng( 0.471292520000000E+02, -0.119044635000000E+03),\n new google.maps.LatLng( 0.471300970000000E+02, -0.119043530000000E+03),\n new google.maps.LatLng( 0.471302720000000E+02, -0.118981103000000E+03),\n new google.maps.LatLng( 0.471302720000000E+02, -0.118981103000000E+03),\n new google.maps.LatLng( 0.471155220000000E+02, -0.118981074000000E+03),\n new google.maps.LatLng( 0.471155220000000E+02, -0.118981074000000E+03),\n new google.maps.LatLng( 0.471156110000000E+02, -0.119023425000000E+03),\n new google.maps.LatLng( 0.471022580000000E+02, -0.119023425000000E+03),\n new google.maps.LatLng( 0.471022590000000E+02, -0.119044774000000E+03),\n new google.maps.LatLng( 0.470978210000000E+02, -0.119044750000000E+03),\n new google.maps.LatLng( 0.470982100000000E+02, -0.119053383000000E+03),\n new google.maps.LatLng( 0.470989650000000E+02, -0.119054722000000E+03),\n new google.maps.LatLng( 0.471016840000000E+02, -0.119056428000000E+03),\n new google.maps.LatLng( 0.471019810000000E+02, -0.119058034000000E+03),\n new google.maps.LatLng( 0.470985310000000E+02, -0.119062618000000E+03),\n new google.maps.LatLng( 0.470951260000000E+02, -0.119062518000000E+03),\n new google.maps.LatLng( 0.470941430000000E+02, -0.119062886000000E+03),\n new google.maps.LatLng( 0.470935950000000E+02, -0.119063722000000E+03),\n new google.maps.LatLng( 0.470935950000000E+02, -0.119066867000000E+03),\n new google.maps.LatLng( 0.470947140000000E+02, -0.119073895000000E+03),\n new google.maps.LatLng( 0.470898460000000E+02, -0.119082525000000E+03),\n new google.maps.LatLng( 0.470868750000000E+02, -0.119083928000000E+03),\n new google.maps.LatLng( 0.470864850000000E+02, -0.119091121000000E+03),\n new google.maps.LatLng( 0.470857550000000E+02, -0.119086939000000E+03),\n new google.maps.LatLng( 0.470854950000000E+02, -0.119077117000000E+03),\n new google.maps.LatLng( 0.470839290000000E+02, -0.119076501000000E+03),\n new google.maps.LatLng( 0.470716350000000E+02, -0.119076965000000E+03),\n new google.maps.LatLng( 0.470716790000000E+02, -0.119087601000000E+03),\n new google.maps.LatLng( 0.470569640000000E+02, -0.119087594000000E+03),\n new google.maps.LatLng( 0.470544960000000E+02, -0.119088060000000E+03),\n new google.maps.LatLng( 0.470496730000000E+02, -0.119094075000000E+03),\n new google.maps.LatLng( 0.470475470000000E+02, -0.119098921000000E+03),\n new google.maps.LatLng( 0.470466770000000E+02, -0.119102397000000E+03),\n new google.maps.LatLng( 0.470424230000000E+02, -0.119111620000000E+03),\n new google.maps.LatLng( 0.470359770000000E+02, -0.119115357000000E+03),\n new google.maps.LatLng( 0.470325950000000E+02, -0.119115889000000E+03),\n new google.maps.LatLng( 0.470311100000000E+02, -0.119115085000000E+03),\n new google.maps.LatLng( 0.470299900000000E+02, -0.119116020000000E+03),\n new google.maps.LatLng( 0.470231330000000E+02, -0.119126942000000E+03),\n new google.maps.LatLng( 0.470233880000000E+02, -0.119133792000000E+03),\n new google.maps.LatLng( 0.470227270000000E+02, -0.119136633000000E+03),\n new google.maps.LatLng( 0.470222010000000E+02, -0.119137001000000E+03),\n new google.maps.LatLng( 0.470217670000000E+02, -0.119136300000000E+03),\n new google.maps.LatLng( 0.470216730000000E+02, -0.119131756000000E+03),\n new google.maps.LatLng( 0.470212380000000E+02, -0.119130453000000E+03),\n new google.maps.LatLng( 0.470206210000000E+02, -0.119130053000000E+03),\n new google.maps.LatLng( 0.470177650000000E+02, -0.119130290000000E+03),\n new google.maps.LatLng( 0.470173100000000E+02, -0.119132963000000E+03),\n new google.maps.LatLng( 0.470187280000000E+02, -0.119136136000000E+03),\n new google.maps.LatLng( 0.470178600000000E+02, -0.119137239000000E+03),\n new google.maps.LatLng( 0.470165120000000E+02, -0.119137073000000E+03),\n new google.maps.LatLng( 0.470135630000000E+02, -0.119134571000000E+03),\n new google.maps.LatLng( 0.470115070000000E+02, -0.119135642000000E+03),\n new google.maps.LatLng( 0.470086760000000E+02, -0.119140187000000E+03),\n new google.maps.LatLng( 0.470077860000000E+02, -0.119142526000000E+03),\n new google.maps.LatLng( 0.470079230000000E+02, -0.119143829000000E+03),\n new google.maps.LatLng( 0.470089290000000E+02, -0.119144930000000E+03),\n new google.maps.LatLng( 0.470084510000000E+02, -0.119149373000000E+03),\n new google.maps.LatLng( 0.470037210000000E+02, -0.119150513000000E+03),\n new google.maps.LatLng( 0.470033330000000E+02, -0.119150246000000E+03),\n new google.maps.LatLng( 0.470003060000000E+02, -0.119153088000000E+03),\n new google.maps.LatLng( 0.469933830000000E+02, -0.119161512000000E+03),\n new google.maps.LatLng( 0.469907790000000E+02, -0.119166055000000E+03),\n new google.maps.LatLng( 0.469917620000000E+02, -0.119169527000000E+03),\n new google.maps.LatLng( 0.469917620000000E+02, -0.119169527000000E+03),\n new google.maps.LatLng( 0.469940470000000E+02, -0.119170695000000E+03),\n new google.maps.LatLng( 0.469943440000000E+02, -0.119171530000000E+03),\n new google.maps.LatLng( 0.469916260000000E+02, -0.119181115000000E+03),\n new google.maps.LatLng( 0.469920830000000E+02, -0.119185456000000E+03),\n new google.maps.LatLng( 0.469959440000000E+02, -0.119189030000000E+03),\n new google.maps.LatLng( 0.469936590000000E+02, -0.119193571000000E+03),\n new google.maps.LatLng( 0.469917610000000E+02, -0.119204257000000E+03),\n new google.maps.LatLng( 0.469923320000000E+02, -0.119205293000000E+03),\n new google.maps.LatLng( 0.469970610000000E+02, -0.119208333000000E+03),\n new google.maps.LatLng( 0.469988880000000E+02, -0.119213711000000E+03),\n new google.maps.LatLng( 0.469985220000000E+02, -0.119214280000000E+03),\n new google.maps.LatLng( 0.469970140000000E+02, -0.119212975000000E+03),\n new google.maps.LatLng( 0.469964440000000E+02, -0.119210571000000E+03),\n new google.maps.LatLng( 0.469942966793945E+02, -0.119207851896289E+03),\n new google.maps.LatLng( 0.469918750000000E+02, -0.119206494000000E+03),\n new google.maps.LatLng( 0.469894530000000E+02, -0.119207595000000E+03),\n new google.maps.LatLng( 0.469889120000000E+02, -0.119208719000000E+03),\n new google.maps.LatLng( 0.469896340000000E+02, -0.119213773000000E+03),\n new google.maps.LatLng( 0.469904790000000E+02, -0.119215710000000E+03),\n new google.maps.LatLng( 0.469928090000000E+02, -0.119218551000000E+03),\n new google.maps.LatLng( 0.469932650000000E+02, -0.119219953000000E+03),\n new google.maps.LatLng( 0.469912730000000E+02, -0.119232073000000E+03),\n new google.maps.LatLng( 0.469903130000000E+02, -0.119233141000000E+03),\n new google.maps.LatLng( 0.469892150000000E+02, -0.119235711000000E+03),\n new google.maps.LatLng( 0.469871990000000E+02, -0.119245827000000E+03),\n new google.maps.LatLng( 0.469869280000000E+02, -0.119257238000000E+03),\n new google.maps.LatLng( 0.469895830000000E+02, -0.119267955000000E+03),\n new google.maps.LatLng( 0.469944060000000E+02, -0.119277803000000E+03),\n new google.maps.LatLng( 0.469951600000000E+02, -0.119278003000000E+03),\n new google.maps.LatLng( 0.469957540000000E+02, -0.119277368000000E+03),\n new google.maps.LatLng( 0.469956620000000E+02, -0.119274195000000E+03),\n new google.maps.LatLng( 0.469958450000000E+02, -0.119273894000000E+03),\n new google.maps.LatLng( 0.469966680000000E+02, -0.119274228000000E+03),\n new google.maps.LatLng( 0.469976730000000E+02, -0.119278736000000E+03),\n new google.maps.LatLng( 0.469970800000000E+02, -0.119281241000000E+03),\n new google.maps.LatLng( 0.469972860000000E+02, -0.119282777000000E+03),\n new google.maps.LatLng( 0.469991600000000E+02, -0.119285682000000E+03),\n new google.maps.LatLng( 0.470074060000000E+02, -0.119294324000000E+03),\n new google.maps.LatLng( 0.470108340000000E+02, -0.119297162000000E+03),\n new google.maps.LatLng( 0.470202250000000E+02, -0.119301770000000E+03),\n new google.maps.LatLng( 0.470305530000000E+02, -0.119308686000000E+03),\n new google.maps.LatLng( 0.470374300000000E+02, -0.119316940000000E+03),\n new google.maps.LatLng( 0.470436670000000E+02, -0.119326668000000E+03),\n new google.maps.LatLng( 0.470435290000000E+02, -0.119331447000000E+03),\n new google.maps.LatLng( 0.470427280000000E+02, -0.119335625000000E+03),\n new google.maps.LatLng( 0.470419376207031E+02, -0.119335431601172E+03),\n new google.maps.LatLng( 0.470419070000000E+02, -0.119331580000000E+03),\n new google.maps.LatLng( 0.470426150000000E+02, -0.119331681000000E+03),\n new google.maps.LatLng( 0.470426150000000E+02, -0.119330912000000E+03),\n new google.maps.LatLng( 0.470411990000000E+02, -0.119325865000000E+03),\n new google.maps.LatLng( 0.470401710000000E+02, -0.119325263000000E+03),\n new google.maps.LatLng( 0.470387090000000E+02, -0.119325697000000E+03),\n new google.maps.LatLng( 0.470355550000000E+02, -0.119331177000000E+03),\n new google.maps.LatLng( 0.470348920000000E+02, -0.119333917000000E+03),\n new google.maps.LatLng( 0.470362170000000E+02, -0.119335087000000E+03),\n new google.maps.LatLng( 0.470397112083008E+02, -0.119336369380273E+03),\n new google.maps.LatLng( 0.470414650000000E+02, -0.119338658000000E+03),\n new google.maps.LatLng( 0.470418110000000E+02, -0.119347657000000E+03),\n new google.maps.LatLng( 0.470388404357422E+02, -0.119349440988867E+03),\n new google.maps.LatLng( 0.470383058357422E+02, -0.119348818788867E+03),\n new google.maps.LatLng( 0.470353220000000E+02, -0.119348856000000E+03),\n new google.maps.LatLng( 0.470346590000000E+02, -0.119349591000000E+03),\n new google.maps.LatLng( 0.470367820000000E+02, -0.119355039000000E+03),\n new google.maps.LatLng( 0.470373310000000E+02, -0.119353870000000E+03),\n new google.maps.LatLng( 0.470386380191406E+02, -0.119352768932617E+03),\n new google.maps.LatLng( 0.470402080000000E+02, -0.119358719000000E+03),\n new google.maps.LatLng( 0.470394980000000E+02, -0.119362093000000E+03),\n new google.maps.LatLng( 0.470348810000000E+02, -0.119366200000000E+03),\n new google.maps.LatLng( 0.470336920000000E+02, -0.119368572000000E+03),\n new google.maps.LatLng( 0.470343990000000E+02, -0.119370344000000E+03),\n new google.maps.LatLng( 0.470364780000000E+02, -0.119371014000000E+03),\n new google.maps.LatLng( 0.470375970000000E+02, -0.119372519000000E+03),\n new google.maps.LatLng( 0.470378930000000E+02, -0.119374157000000E+03),\n new google.maps.LatLng( 0.470382590000000E+02, -0.119374224000000E+03),\n new google.maps.LatLng( 0.470384420000000E+02, -0.119372487000000E+03),\n new google.maps.LatLng( 0.470388060000000E+02, -0.119375228000000E+03),\n new google.maps.LatLng( 0.470379840000000E+02, -0.119375528000000E+03),\n new google.maps.LatLng( 0.470364530000000E+02, -0.119375192000000E+03),\n new google.maps.LatLng( 0.470379190000000E+02, -0.119378180000000E+03),\n new google.maps.LatLng( 0.470391060000000E+02, -0.119376975000000E+03),\n new google.maps.LatLng( 0.470395150000000E+02, -0.119375262000000E+03),\n new google.maps.LatLng( 0.470400400000000E+02, -0.119375733000000E+03),\n new google.maps.LatLng( 0.470396770000000E+02, -0.119377309000000E+03),\n new google.maps.LatLng( 0.470403870000000E+02, -0.119380383000000E+03),\n new google.maps.LatLng( 0.470409590000000E+02, -0.119382254000000E+03),\n new google.maps.LatLng( 0.470417130000000E+02, -0.119382487000000E+03),\n new google.maps.LatLng( 0.470417590000000E+02, -0.119385262000000E+03),\n new google.maps.LatLng( 0.470414170000000E+02, -0.119385529000000E+03),\n new google.maps.LatLng( 0.470425140000000E+02, -0.119387199000000E+03),\n new google.maps.LatLng( 0.470428800000000E+02, -0.119387065000000E+03),\n new google.maps.LatLng( 0.470429700000000E+02, -0.119384626000000E+03),\n new google.maps.LatLng( 0.470434960000000E+02, -0.119385761000000E+03),\n new google.maps.LatLng( 0.470448220000000E+02, -0.119386729000000E+03),\n new google.maps.LatLng( 0.470456440000000E+02, -0.119386528000000E+03),\n new google.maps.LatLng( 0.470460090000000E+02, -0.119384857000000E+03),\n new google.maps.LatLng( 0.470473120000000E+02, -0.119386627000000E+03),\n new google.maps.LatLng( 0.470463760000000E+02, -0.119388800000000E+03),\n new google.maps.LatLng( 0.470469470000000E+02, -0.119389000000000E+03),\n new google.maps.LatLng( 0.470479520000000E+02, -0.119388030000000E+03),\n new google.maps.LatLng( 0.470486610000000E+02, -0.119388330000000E+03),\n new google.maps.LatLng( 0.470490040000000E+02, -0.119389533000000E+03),\n new google.maps.LatLng( 0.470507860000000E+02, -0.119389833000000E+03),\n new google.maps.LatLng( 0.470518380000000E+02, -0.119390901000000E+03),\n new google.maps.LatLng( 0.470513570000000E+02, -0.119388996000000E+03),\n new google.maps.LatLng( 0.470525000000000E+02, -0.119389697000000E+03),\n new google.maps.LatLng( 0.470526600000000E+02, -0.119391034000000E+03),\n new google.maps.LatLng( 0.470518380000000E+02, -0.119391871000000E+03),\n new google.maps.LatLng( 0.470509095575195E+02, -0.119391061316992E+03),\n new google.maps.LatLng( 0.470494390000000E+02, -0.119391137000000E+03),\n new google.maps.LatLng( 0.470511990000000E+02, -0.119393543000000E+03),\n new google.maps.LatLng( 0.470488680000000E+02, -0.119392943000000E+03),\n new google.maps.LatLng( 0.470480460000000E+02, -0.119394481000000E+03),\n new google.maps.LatLng( 0.470504450000000E+02, -0.119394112000000E+03),\n new google.maps.LatLng( 0.470517710000000E+02, -0.119395247000000E+03),\n new google.maps.LatLng( 0.470518850000000E+02, -0.119396584000000E+03),\n new google.maps.LatLng( 0.470525480000000E+02, -0.119397286000000E+03),\n new google.maps.LatLng( 0.470522740000000E+02, -0.119398489000000E+03),\n new google.maps.LatLng( 0.470513380000000E+02, -0.119398523000000E+03),\n new google.maps.LatLng( 0.470513380000000E+02, -0.119399192000000E+03),\n new google.maps.LatLng( 0.470519780000000E+02, -0.119399860000000E+03),\n new google.maps.LatLng( 0.470531890000000E+02, -0.119399291000000E+03),\n new google.maps.LatLng( 0.470530980000000E+02, -0.119400462000000E+03),\n new google.maps.LatLng( 0.470519550000000E+02, -0.119401031000000E+03),\n new google.maps.LatLng( 0.470516820000000E+02, -0.119402301000000E+03),\n new google.maps.LatLng( 0.470524360000000E+02, -0.119403504000000E+03),\n new google.maps.LatLng( 0.470532810000000E+02, -0.119402367000000E+03),\n new google.maps.LatLng( 0.470547210000000E+02, -0.119403703000000E+03),\n new google.maps.LatLng( 0.470535570000000E+02, -0.119409420000000E+03),\n new google.maps.LatLng( 0.470545400000000E+02, -0.119409721000000E+03),\n new google.maps.LatLng( 0.470554980000000E+02, -0.119405441000000E+03),\n new google.maps.LatLng( 0.470552020000000E+02, -0.119407781000000E+03),\n new google.maps.LatLng( 0.470557500000000E+02, -0.119407948000000E+03),\n new google.maps.LatLng( 0.470559790000000E+02, -0.119409152000000E+03),\n new google.maps.LatLng( 0.470547450000000E+02, -0.119411024000000E+03),\n new google.maps.LatLng( 0.470544720000000E+02, -0.119413398000000E+03),\n new google.maps.LatLng( 0.470548370000000E+02, -0.119413565000000E+03),\n new google.maps.LatLng( 0.470553170000000E+02, -0.119410924000000E+03),\n new google.maps.LatLng( 0.470563680000000E+02, -0.119411157000000E+03),\n new google.maps.LatLng( 0.470561400000000E+02, -0.119413932000000E+03),\n new google.maps.LatLng( 0.470579900000000E+02, -0.119414032000000E+03),\n new google.maps.LatLng( 0.470586300000000E+02, -0.119415202000000E+03),\n new google.maps.LatLng( 0.470578310000000E+02, -0.119419081000000E+03),\n new google.maps.LatLng( 0.470567800000000E+02, -0.119419850000000E+03),\n new google.maps.LatLng( 0.470561860000000E+02, -0.119418980000000E+03),\n new google.maps.LatLng( 0.470557300000000E+02, -0.119421756000000E+03),\n new google.maps.LatLng( 0.470565520000000E+02, -0.119421722000000E+03),\n new google.maps.LatLng( 0.470569860000000E+02, -0.119422190000000E+03),\n new google.maps.LatLng( 0.470562100000000E+02, -0.119425801000000E+03),\n new google.maps.LatLng( 0.470545190000000E+02, -0.119426035000000E+03),\n new google.maps.LatLng( 0.470524630000000E+02, -0.119425434000000E+03),\n new google.maps.LatLng( 0.470525090000000E+02, -0.119424030000000E+03),\n new google.maps.LatLng( 0.470531250000000E+02, -0.119423094000000E+03),\n new google.maps.LatLng( 0.470531710000000E+02, -0.119424264000000E+03),\n new google.maps.LatLng( 0.470535140000000E+02, -0.119424097000000E+03),\n new google.maps.LatLng( 0.470545640000000E+02, -0.119416373000000E+03),\n new google.maps.LatLng( 0.470540380000000E+02, -0.119416507000000E+03),\n new google.maps.LatLng( 0.470532160000000E+02, -0.119418714000000E+03),\n new google.maps.LatLng( 0.470526220000000E+02, -0.119421389000000E+03),\n new google.maps.LatLng( 0.470532390000000E+02, -0.119420252000000E+03),\n new google.maps.LatLng( 0.470532620000000E+02, -0.119421255000000E+03),\n new google.maps.LatLng( 0.470526910000000E+02, -0.119422626000000E+03),\n new google.maps.LatLng( 0.470521430000000E+02, -0.119421222000000E+03),\n new google.maps.LatLng( 0.470528040000000E+02, -0.119416140000000E+03),\n new google.maps.LatLng( 0.470522100000000E+02, -0.119416341000000E+03),\n new google.maps.LatLng( 0.470520500000000E+02, -0.119416006000000E+03),\n new google.maps.LatLng( 0.470521190000000E+02, -0.119414268000000E+03),\n new google.maps.LatLng( 0.470503590000000E+02, -0.119410525000000E+03),\n new google.maps.LatLng( 0.470497190000000E+02, -0.119410793000000E+03),\n new google.maps.LatLng( 0.470495590000000E+02, -0.119411695000000E+03),\n new google.maps.LatLng( 0.470480970000000E+02, -0.119410727000000E+03),\n new google.maps.LatLng( 0.470472740000000E+02, -0.119410928000000E+03),\n new google.maps.LatLng( 0.470468630000000E+02, -0.119411997000000E+03),\n new google.maps.LatLng( 0.470478230000000E+02, -0.119413200000000E+03),\n new google.maps.LatLng( 0.470490340000000E+02, -0.119413601000000E+03),\n new google.maps.LatLng( 0.470487150000000E+02, -0.119416576000000E+03),\n new google.maps.LatLng( 0.470484410000000E+02, -0.119417011000000E+03),\n new google.maps.LatLng( 0.470461100000000E+02, -0.119414638000000E+03),\n new google.maps.LatLng( 0.470460870000000E+02, -0.119416477000000E+03),\n new google.maps.LatLng( 0.470453340000000E+02, -0.119418115000000E+03),\n new google.maps.LatLng( 0.470461560000000E+02, -0.119419251000000E+03),\n new google.maps.LatLng( 0.470466902000000E+02, -0.119417599114062E+03),\n new google.maps.LatLng( 0.470473210000000E+02, -0.119417212000000E+03),\n new google.maps.LatLng( 0.470479150000000E+02, -0.119418415000000E+03),\n new google.maps.LatLng( 0.470478930000000E+02, -0.119420420000000E+03),\n new google.maps.LatLng( 0.470495140000000E+02, -0.119415907000000E+03),\n new google.maps.LatLng( 0.470499030000000E+02, -0.119417211000000E+03),\n new google.maps.LatLng( 0.470494000000000E+02, -0.119417645000000E+03),\n new google.maps.LatLng( 0.470488980000000E+02, -0.119420821000000E+03),\n new google.maps.LatLng( 0.470499582162109E+02, -0.119419049157031E+03),\n new google.maps.LatLng( 0.470501090000000E+02, -0.119421122000000E+03),\n new google.maps.LatLng( 0.470512730000000E+02, -0.119414736000000E+03),\n new google.maps.LatLng( 0.470515710000000E+02, -0.119416876000000E+03),\n new google.maps.LatLng( 0.470501320000000E+02, -0.119422894000000E+03),\n new google.maps.LatLng( 0.470502240000000E+02, -0.119424900000000E+03),\n new google.maps.LatLng( 0.470493560000000E+02, -0.119425100000000E+03),\n new google.maps.LatLng( 0.470487840000000E+02, -0.119424164000000E+03),\n new google.maps.LatLng( 0.470451970000000E+02, -0.119424433000000E+03),\n new google.maps.LatLng( 0.470440090000000E+02, -0.119422260000000E+03),\n new google.maps.LatLng( 0.470425020000000E+02, -0.119427842000000E+03),\n new google.maps.LatLng( 0.470420680000000E+02, -0.119427809000000E+03),\n new google.maps.LatLng( 0.470420450000000E+02, -0.119427274000000E+03),\n new google.maps.LatLng( 0.470432780000000E+02, -0.119422963000000E+03),\n new google.maps.LatLng( 0.470423499472656E+02, -0.119424266874219E+03),\n new google.maps.LatLng( 0.470427980000000E+02, -0.119421357000000E+03),\n new google.maps.LatLng( 0.470421810000000E+02, -0.119421057000000E+03),\n new google.maps.LatLng( 0.470415870000000E+02, -0.119422093000000E+03),\n new google.maps.LatLng( 0.470417930000000E+02, -0.119423464000000E+03),\n new google.maps.LatLng( 0.470409250000000E+02, -0.119426172000000E+03),\n new google.maps.LatLng( 0.470413130000000E+02, -0.119420923000000E+03),\n new google.maps.LatLng( 0.470399870000000E+02, -0.119417014000000E+03),\n new google.maps.LatLng( 0.470391190000000E+02, -0.119416479000000E+03),\n new google.maps.LatLng( 0.470376800000000E+02, -0.119418218000000E+03),\n new google.maps.LatLng( 0.470370170000000E+02, -0.119418285000000E+03),\n new google.maps.LatLng( 0.470364460000000E+02, -0.119416848000000E+03),\n new google.maps.LatLng( 0.470354630000000E+02, -0.119417182000000E+03),\n new google.maps.LatLng( 0.470351670000000E+02, -0.119418018000000E+03),\n new google.maps.LatLng( 0.470365380000000E+02, -0.119420056000000E+03),\n new google.maps.LatLng( 0.470374290000000E+02, -0.119420089000000E+03),\n new google.maps.LatLng( 0.470379310000000E+02, -0.119418819000000E+03),\n new google.maps.LatLng( 0.470393250000000E+02, -0.119417783000000E+03),\n new google.maps.LatLng( 0.470408790000000E+02, -0.119423799000000E+03),\n new google.maps.LatLng( 0.470402400000000E+02, -0.119425470000000E+03),\n new google.maps.LatLng( 0.470381150000000E+02, -0.119426740000000E+03),\n new google.maps.LatLng( 0.470364240000000E+02, -0.119427008000000E+03),\n new google.maps.LatLng( 0.470359220000000E+02, -0.119425203000000E+03),\n new google.maps.LatLng( 0.470354190000000E+02, -0.119425404000000E+03),\n new google.maps.LatLng( 0.470339800000000E+02, -0.119432422000000E+03),\n new google.maps.LatLng( 0.470348710000000E+02, -0.119432555000000E+03),\n new google.maps.LatLng( 0.470357160000000E+02, -0.119431453000000E+03),\n new google.maps.LatLng( 0.470360820000000E+02, -0.119434661000000E+03),\n new google.maps.LatLng( 0.470356250000000E+02, -0.119436565000000E+03),\n new google.maps.LatLng( 0.470330430000000E+02, -0.119438971000000E+03),\n new google.maps.LatLng( 0.470314670000000E+02, -0.119439940000000E+03),\n new google.maps.LatLng( 0.470284280000000E+02, -0.119438771000000E+03),\n new google.maps.LatLng( 0.470266920000000E+02, -0.119434728000000E+03),\n new google.maps.LatLng( 0.470223050000000E+02, -0.119432523000000E+03),\n new google.maps.LatLng( 0.470189690000000E+02, -0.119429215000000E+03),\n new google.maps.LatLng( 0.470074280000000E+02, -0.119410579000000E+03),\n new google.maps.LatLng( 0.470074510000000E+02, -0.119408976000000E+03),\n new google.maps.LatLng( 0.470086850000000E+02, -0.119409610000000E+03),\n new google.maps.LatLng( 0.470087760000000E+02, -0.119408675000000E+03),\n new google.maps.LatLng( 0.470058500000000E+02, -0.119404034000000E+03),\n new google.maps.LatLng( 0.470054390000000E+02, -0.119404101000000E+03),\n new google.maps.LatLng( 0.470044340000000E+02, -0.119406239000000E+03),\n new google.maps.LatLng( 0.470029480000000E+02, -0.119403468000000E+03),\n new google.maps.LatLng( 0.470006150000000E+02, -0.119392381000000E+03),\n new google.maps.LatLng( 0.469993510000000E+02, -0.119376531000000E+03),\n new google.maps.LatLng( 0.469977270000000E+02, -0.119374416000000E+03),\n new google.maps.LatLng( 0.469958600000000E+02, -0.119362159000000E+03),\n new google.maps.LatLng( 0.469948560000000E+02, -0.119358952000000E+03),\n new google.maps.LatLng( 0.469859040000000E+02, -0.119347992000000E+03),\n new google.maps.LatLng( 0.469842420000000E+02, -0.119349393000000E+03),\n new google.maps.LatLng( 0.469833890000000E+02, -0.119351529000000E+03),\n new google.maps.LatLng( 0.469833890000000E+02, -0.119351529000000E+03),\n new google.maps.LatLng( 0.469823570000000E+02, -0.119361778000000E+03),\n new google.maps.LatLng( 0.469807530000000E+02, -0.119370657000000E+03),\n new google.maps.LatLng( 0.469793390000000E+02, -0.119384892000000E+03),\n new google.maps.LatLng( 0.469800490000000E+02, -0.119387729000000E+03),\n new google.maps.LatLng( 0.469810550000000E+02, -0.119388763000000E+03),\n new google.maps.LatLng( 0.469816760000000E+02, -0.119400781000000E+03),\n new google.maps.LatLng( 0.469787090000000E+02, -0.119415438000000E+03),\n new google.maps.LatLng( 0.469774530000000E+02, -0.119419411000000E+03),\n new google.maps.LatLng( 0.469760820000000E+02, -0.119421114000000E+03),\n new google.maps.LatLng( 0.469717420000000E+02, -0.119441510000000E+03),\n new google.maps.LatLng( 0.469703480000000E+02, -0.119445848000000E+03),\n new google.maps.LatLng( 0.469690220000000E+02, -0.119447818000000E+03),\n new google.maps.LatLng( 0.469694420000000E+02, -0.119452723000000E+03),\n new google.maps.LatLng( 0.469689700000000E+02, -0.119462668000000E+03),\n new google.maps.LatLng( 0.469647080000000E+02, -0.119469395000000E+03),\n new google.maps.LatLng( 0.469651680000000E+02, -0.119481111000000E+03),\n new google.maps.LatLng( 0.469647090000000E+02, -0.119486890000000E+03),\n new google.maps.LatLng( 0.469659790000000E+02, -0.119489059000000E+03),\n new google.maps.LatLng( 0.469667040000000E+02, -0.119492937000000E+03),\n new google.maps.LatLng( 0.469665250000000E+02, -0.119494737000000E+03),\n new google.maps.LatLng( 0.469665250000000E+02, -0.119494737000000E+03),\n new google.maps.LatLng( 0.469669940000000E+02, -0.119498048000000E+03),\n new google.maps.LatLng( 0.469628200000000E+02, -0.119513153000000E+03),\n new google.maps.LatLng( 0.469615430000000E+02, -0.119521497000000E+03),\n new google.maps.LatLng( 0.469619320000000E+02, -0.119522431000000E+03),\n new google.maps.LatLng( 0.469624800000000E+02, -0.119521997000000E+03),\n new google.maps.LatLng( 0.469632790000000E+02, -0.119518626000000E+03),\n new google.maps.LatLng( 0.469631180000000E+02, -0.119516356000000E+03),\n new google.maps.LatLng( 0.469637120000000E+02, -0.119515989000000E+03),\n new google.maps.LatLng( 0.469651750000000E+02, -0.119518357000000E+03),\n new google.maps.LatLng( 0.469655230000000E+02, -0.119535678000000E+03),\n new google.maps.LatLng( 0.469675790000000E+02, -0.119545456000000E+03),\n new google.maps.LatLng( 0.469684020000000E+02, -0.119547558000000E+03),\n new google.maps.LatLng( 0.469718520000000E+02, -0.119551063000000E+03),\n new google.maps.LatLng( 0.469730860000000E+02, -0.119557571000000E+03),\n new google.maps.LatLng( 0.469750130000000E+02, -0.119557900000000E+03),\n new google.maps.LatLng( 0.469998610000000E+02, -0.119557632000000E+03),\n new google.maps.LatLng( 0.470305520000000E+02, -0.119556927000000E+03),\n new google.maps.LatLng( 0.470305520000000E+02, -0.119556927000000E+03),\n new google.maps.LatLng( 0.471004840000000E+02, -0.119555852000000E+03),\n new google.maps.LatLng( 0.471032030000000E+02, -0.119560001000000E+03),\n new google.maps.LatLng( 0.471031430000000E+02, -0.119615008000000E+03),\n new google.maps.LatLng( 0.471022820000000E+02, -0.119620962000000E+03),\n new google.maps.LatLng( 0.471037690000000E+02, -0.119620964000000E+03),\n new google.maps.LatLng( 0.471037690000000E+02, -0.119620964000000E+03),\n new google.maps.LatLng( 0.471041720000000E+02, -0.119617795000000E+03),\n new google.maps.LatLng( 0.471038070000000E+02, -0.119611897000000E+03),\n new google.maps.LatLng( 0.471038800000000E+02, -0.119566290000000E+03),\n new google.maps.LatLng( 0.471045970000000E+02, -0.119559700000000E+03),\n new google.maps.LatLng( 0.471066760000000E+02, -0.119555885000000E+03),\n new google.maps.LatLng( 0.471330270000000E+02, -0.119555677000000E+03),\n new google.maps.LatLng( 0.471331310000000E+02, -0.119512958000000E+03),\n new google.maps.LatLng( 0.471626710000000E+02, -0.119512328000000E+03),\n new google.maps.LatLng( 0.471625860000000E+02, -0.119533766000000E+03),\n new google.maps.LatLng( 0.471777330000000E+02, -0.119533356000000E+03),\n new google.maps.LatLng( 0.471808390000000E+02, -0.119529300000000E+03),\n new google.maps.LatLng( 0.471841950000000E+02, -0.119522496000000E+03),\n new google.maps.LatLng( 0.471882600000000E+02, -0.119518740000000E+03),\n new google.maps.LatLng( 0.471895840000000E+02, -0.119515353000000E+03),\n new google.maps.LatLng( 0.471895130000000E+02, -0.119507678000000E+03),\n new google.maps.LatLng( 0.471859940000000E+02, -0.119505671000000E+03),\n new google.maps.LatLng( 0.471845550000000E+02, -0.119506075000000E+03),\n new google.maps.LatLng( 0.471829320000000E+02, -0.119504368000000E+03),\n new google.maps.LatLng( 0.471823210000000E+02, -0.119502267000000E+03),\n new google.maps.LatLng( 0.472087980000000E+02, -0.119483736000000E+03),\n new google.maps.LatLng( 0.472159030000000E+02, -0.119485553000000E+03),\n new google.maps.LatLng( 0.472237380000000E+02, -0.119486769000000E+03),\n new google.maps.LatLng( 0.472273020000000E+02, -0.119486806000000E+03),\n new google.maps.LatLng( 0.472318490000000E+02, -0.119486173000000E+03),\n new google.maps.LatLng( 0.472428850000000E+02, -0.119483232000000E+03),\n new google.maps.LatLng( 0.472037130000000E+02, -0.119447995000000E+03),\n new google.maps.LatLng( 0.472032100000000E+02, -0.119447157000000E+03),\n new google.maps.LatLng( 0.472030510000000E+02, -0.119441927000000E+03),\n new google.maps.LatLng( 0.472055180000000E+02, -0.119440788000000E+03),\n new google.maps.LatLng( 0.472057610000000E+02, -0.119435315000000E+03),\n new google.maps.LatLng( 0.472057610000000E+02, -0.119435315000000E+03),\n new google.maps.LatLng( 0.471977960000000E+02, -0.119432641000000E+03),\n new google.maps.LatLng( 0.471927470000000E+02, -0.119430429000000E+03),\n new google.maps.LatLng( 0.471908520000000E+02, -0.119428921000000E+03),\n new google.maps.LatLng( 0.471886130000000E+02, -0.119426877000000E+03),\n new google.maps.LatLng( 0.471834030000000E+02, -0.119420544000000E+03),\n new google.maps.LatLng( 0.471802490000000E+02, -0.119415518000000E+03),\n new google.maps.LatLng( 0.471782830000000E+02, -0.119411029000000E+03),\n new google.maps.LatLng( 0.471762020000000E+02, -0.119401112000000E+03),\n new google.maps.LatLng( 0.471761080000000E+02, -0.119393573000000E+03),\n new google.maps.LatLng( 0.471768120000000E+02, -0.119384692000000E+03),\n new google.maps.LatLng( 0.471807180000000E+02, -0.119364335000000E+03),\n new google.maps.LatLng( 0.471813390000000E+02, -0.119356160000000E+03),\n new google.maps.LatLng( 0.471800170000000E+02, -0.119349960000000E+03),\n new google.maps.LatLng( 0.471771630000000E+02, -0.119344327000000E+03),\n new google.maps.LatLng( 0.471744220000000E+02, -0.119341009000000E+03),\n new google.maps.LatLng( 0.471725480000000E+02, -0.119340673000000E+03),\n new google.maps.LatLng( 0.471696920000000E+02, -0.119343619000000E+03),\n new google.maps.LatLng( 0.471599350000000E+02, -0.119347131000000E+03),\n new google.maps.LatLng( 0.471572840000000E+02, -0.119348502000000E+03),\n new google.maps.LatLng( 0.471515480000000E+02, -0.119353555000000E+03),\n new google.maps.LatLng( 0.471461720000000E+02, -0.119353170000000E+03),\n new google.maps.LatLng( 0.471355320000000E+02, -0.119351066000000E+03),\n new google.maps.LatLng( 0.471306890000000E+02, -0.119350694000000E+03),\n new google.maps.LatLng( 0.471243950000000E+02, -0.119348620000000E+03),\n new google.maps.LatLng( 0.471198370000000E+02, -0.119345570000000E+03),\n new google.maps.LatLng( 0.471149950000000E+02, -0.119341985000000E+03),\n new google.maps.LatLng( 0.471103970000000E+02, -0.119331092000000E+03),\n new google.maps.LatLng( 0.471036200000000E+02, -0.119324343000000E+03),\n new google.maps.LatLng( 0.471012130000000E+02, -0.119327130000000E+03),\n new google.maps.LatLng( 0.470998720000000E+02, -0.119330366000000E+03),\n new google.maps.LatLng( 0.470993920000000E+02, -0.119332540000000E+03),\n new google.maps.LatLng( 0.471003970000000E+02, -0.119333277000000E+03),\n new google.maps.LatLng( 0.471000540000000E+02, -0.119334247000000E+03),\n new google.maps.LatLng( 0.470967180000000E+02, -0.119334915000000E+03),\n new google.maps.LatLng( 0.470950730000000E+02, -0.119333174000000E+03),\n new google.maps.LatLng( 0.470944570000000E+02, -0.119331300000000E+03),\n new google.maps.LatLng( 0.470929040000000E+02, -0.119329292000000E+03),\n new google.maps.LatLng( 0.470833300000000E+02, -0.119332064000000E+03),\n new google.maps.LatLng( 0.470702610000000E+02, -0.119333831000000E+03),\n new google.maps.LatLng( 0.470652810000000E+02, -0.119328546000000E+03),\n new google.maps.LatLng( 0.470636590000000E+02, -0.119324901000000E+03),\n new google.maps.LatLng( 0.470632020000000E+02, -0.119320956000000E+03),\n new google.maps.LatLng( 0.470637050000000E+02, -0.119319351000000E+03),\n new google.maps.LatLng( 0.470676120000000E+02, -0.119318750000000E+03),\n new google.maps.LatLng( 0.470704230000000E+02, -0.119317178000000E+03),\n new google.maps.LatLng( 0.470862100000000E+02, -0.119299116000000E+03),\n new google.maps.LatLng( 0.470915560000000E+02, -0.119295469000000E+03),\n new google.maps.LatLng( 0.471012890000000E+02, -0.119290313000000E+03),\n new google.maps.LatLng( 0.471015630000000E+02, -0.119290982000000E+03),\n new google.maps.LatLng( 0.471008100000000E+02, -0.119299883000000E+03),\n new google.maps.LatLng( 0.471019070000000E+02, -0.119299983000000E+03),\n new google.maps.LatLng( 0.471062700000000E+02, -0.119293089000000E+03),\n new google.maps.LatLng( 0.471062010000000E+02, -0.119292152000000E+03),\n new google.maps.LatLng( 0.471055840000000E+02, -0.119291717000000E+03),\n new google.maps.LatLng( 0.471024550000000E+02, -0.119293491000000E+03),\n new google.maps.LatLng( 0.471027740000000E+02, -0.119289442000000E+03),\n new google.maps.LatLng( 0.471055760000000E+02, -0.119286869000000E+03),\n new google.maps.LatLng( 0.471085530000000E+02, -0.119285156000000E+03),\n new google.maps.LatLng( 0.471096960000000E+02, -0.119285155000000E+03),\n new google.maps.LatLng( 0.471255480000000E+02, -0.119275669000000E+03),\n new google.maps.LatLng( 0.471258220000000E+02, -0.119275000000000E+03),\n new google.maps.LatLng( 0.471265760000000E+02, -0.119275769000000E+03),\n new google.maps.LatLng( 0.471258460000000E+02, -0.119278749000000E+03),\n new google.maps.LatLng( 0.471248630000000E+02, -0.119280159000000E+03),\n new google.maps.LatLng( 0.471180810000000E+02, -0.119285854000000E+03),\n new google.maps.LatLng( 0.471122790000000E+02, -0.119292016000000E+03),\n new google.maps.LatLng( 0.470956930000000E+02, -0.119307880000000E+03),\n new google.maps.LatLng( 0.470904600000000E+02, -0.119311660000000E+03),\n new google.maps.LatLng( 0.470859140000000E+02, -0.119316310000000E+03),\n new google.maps.LatLng( 0.470833770000000E+02, -0.119322364000000E+03),\n new google.maps.LatLng( 0.470835820000000E+02, -0.119323602000000E+03),\n new google.maps.LatLng( 0.470858220000000E+02, -0.119324071000000E+03),\n new google.maps.LatLng( 0.470892720000000E+02, -0.119321998000000E+03),\n new google.maps.LatLng( 0.470960120000000E+02, -0.119320761000000E+03),\n new google.maps.LatLng( 0.471012440000000E+02, -0.119320361000000E+03),\n new google.maps.LatLng( 0.471045350000000E+02, -0.119317317000000E+03),\n new google.maps.LatLng( 0.471089440000000E+02, -0.119310959000000E+03),\n new google.maps.LatLng( 0.471128510000000E+02, -0.119306709000000E+03),\n new google.maps.LatLng( 0.471192030000000E+02, -0.119301821000000E+03),\n new google.maps.LatLng( 0.471198880000000E+02, -0.119301921000000E+03),\n new google.maps.LatLng( 0.471192720000000E+02, -0.119304565000000E+03),\n new google.maps.LatLng( 0.471205970000000E+02, -0.119303829000000E+03),\n new google.maps.LatLng( 0.471240460000000E+02, -0.119298640000000E+03),\n new google.maps.LatLng( 0.471248630000000E+02, -0.119294554000000E+03),\n new google.maps.LatLng( 0.471306220000000E+02, -0.119282395000000E+03),\n new google.maps.LatLng( 0.471327000000000E+02, -0.119279180000000E+03),\n new google.maps.LatLng( 0.471348020000000E+02, -0.119279111000000E+03),\n new google.maps.LatLng( 0.471328840000000E+02, -0.119282360000000E+03),\n new google.maps.LatLng( 0.471300530000000E+02, -0.119289159000000E+03),\n new google.maps.LatLng( 0.471257820000000E+02, -0.119302618000000E+03),\n new google.maps.LatLng( 0.471313340000000E+02, -0.119305631000000E+03),\n new google.maps.LatLng( 0.471369550000000E+02, -0.119311389000000E+03),\n new google.maps.LatLng( 0.471379610000000E+02, -0.119312996000000E+03),\n new google.maps.LatLng( 0.471400170000000E+02, -0.119318722000000E+03),\n new google.maps.LatLng( 0.471395820000000E+02, -0.119321669000000E+03),\n new google.maps.LatLng( 0.471362690000000E+02, -0.119324213000000E+03),\n new google.maps.LatLng( 0.471345790000000E+02, -0.119324213000000E+03),\n new google.maps.LatLng( 0.471355160000000E+02, -0.119319692000000E+03),\n new google.maps.LatLng( 0.471362700000000E+02, -0.119318755000000E+03),\n new google.maps.LatLng( 0.471362470000000E+02, -0.119315842000000E+03),\n new google.maps.LatLng( 0.471351960000000E+02, -0.119313766000000E+03),\n new google.maps.LatLng( 0.471290040000000E+02, -0.119309481000000E+03),\n new google.maps.LatLng( 0.471210080000000E+02, -0.119310859000000E+03),\n new google.maps.LatLng( 0.471181750000000E+02, -0.119312398000000E+03),\n new google.maps.LatLng( 0.471127820000000E+02, -0.119320430000000E+03),\n new google.maps.LatLng( 0.471123250000000E+02, -0.119321769000000E+03),\n new google.maps.LatLng( 0.471207560000000E+02, -0.119326491000000E+03),\n new google.maps.LatLng( 0.471253440000000E+02, -0.119329835000000E+03),\n new google.maps.LatLng( 0.471270600000000E+02, -0.119333651000000E+03),\n new google.maps.LatLng( 0.471307840000000E+02, -0.119338139000000E+03),\n new google.maps.LatLng( 0.471348270000000E+02, -0.119341054000000E+03),\n new google.maps.LatLng( 0.471368380000000E+02, -0.119341625000000E+03),\n new google.maps.LatLng( 0.471443090000000E+02, -0.119341562000000E+03),\n new google.maps.LatLng( 0.471486500000000E+02, -0.119340224000000E+03),\n new google.maps.LatLng( 0.471577900000000E+02, -0.119334468000000E+03),\n new google.maps.LatLng( 0.471606470000000E+02, -0.119333128000000E+03),\n new google.maps.LatLng( 0.471664040000000E+02, -0.119331891000000E+03),\n new google.maps.LatLng( 0.471713850000000E+02, -0.119332129000000E+03),\n new google.maps.LatLng( 0.471751320000000E+02, -0.119333437000000E+03),\n new google.maps.LatLng( 0.471802720000000E+02, -0.119337929000000E+03),\n new google.maps.LatLng( 0.471819850000000E+02, -0.119340209000000E+03),\n new google.maps.LatLng( 0.471851590000000E+02, -0.119346780000000E+03),\n new google.maps.LatLng( 0.471877570000000E+02, -0.119360019000000E+03),\n new google.maps.LatLng( 0.471879150000000E+02, -0.119365416000000E+03),\n new google.maps.LatLng( 0.471854230000000E+02, -0.119378752000000E+03),\n new google.maps.LatLng( 0.471814990000000E+02, -0.119392530000000E+03),\n new google.maps.LatLng( 0.471807710000000E+02, -0.119399835000000E+03),\n new google.maps.LatLng( 0.471819610000000E+02, -0.119406671000000E+03),\n new google.maps.LatLng( 0.471855040000000E+02, -0.119414578000000E+03),\n new google.maps.LatLng( 0.471891140000000E+02, -0.119419671000000E+03),\n new google.maps.LatLng( 0.471914220000000E+02, -0.119421715000000E+03),\n new google.maps.LatLng( 0.471974080000000E+02, -0.119426138000000E+03),\n new google.maps.LatLng( 0.472013830000000E+02, -0.119428383000000E+03),\n new google.maps.LatLng( 0.472052900000000E+02, -0.119429255000000E+03),\n new google.maps.LatLng( 0.472108190000000E+02, -0.119429153000000E+03),\n new google.maps.LatLng( 0.472144970000000E+02, -0.119428315000000E+03),\n new google.maps.LatLng( 0.472221280000000E+02, -0.119425564000000E+03),\n new google.maps.LatLng( 0.472242980000000E+02, -0.119425564000000E+03),\n new google.maps.LatLng( 0.472277710000000E+02, -0.119427005000000E+03),\n new google.maps.LatLng( 0.472309240000000E+02, -0.119430125000000E+03),\n new google.maps.LatLng( 0.472322720000000E+02, -0.119432338000000E+03),\n new google.maps.LatLng( 0.472340770000000E+02, -0.119436263000000E+03),\n new google.maps.LatLng( 0.472363840000000E+02, -0.119443709000000E+03),\n new google.maps.LatLng( 0.472433510000000E+02, -0.119452870000000E+03),\n new google.maps.LatLng( 0.472433510000000E+02, -0.119452870000000E+03),\n new google.maps.LatLng( 0.472438300000000E+02, -0.119454514000000E+03),\n new google.maps.LatLng( 0.472469300000000E+02, -0.119457484000000E+03),\n new google.maps.LatLng( 0.472572530000000E+02, -0.119450318000000E+03),\n new google.maps.LatLng( 0.472729410000000E+02, -0.119470597000000E+03),\n new google.maps.LatLng( 0.473206420000000E+02, -0.119482422000000E+03),\n new google.maps.LatLng( 0.473206420000000E+02, -0.119482422000000E+03),\n new google.maps.LatLng( 0.473212100000000E+02, -0.119449357000000E+03),\n new google.maps.LatLng( 0.473200020000000E+02, -0.119442638000000E+03),\n new google.maps.LatLng( 0.473192790000000E+02, -0.119442540000000E+03),\n new google.maps.LatLng( 0.473131330000000E+02, -0.119447712000000E+03),\n new google.maps.LatLng( 0.473027830000000E+02, -0.119448751000000E+03),\n new google.maps.LatLng( 0.472974830000000E+02, -0.119446869000000E+03),\n new google.maps.LatLng( 0.472862190000000E+02, -0.119445658000000E+03),\n new google.maps.LatLng( 0.472855580000000E+02, -0.119443610000000E+03),\n new google.maps.LatLng( 0.472798450000000E+02, -0.119442670000000E+03),\n new google.maps.LatLng( 0.472691760000000E+02, -0.119446495000000E+03),\n new google.maps.LatLng( 0.472649030000000E+02, -0.119446930000000E+03),\n new google.maps.LatLng( 0.472630800000000E+02, -0.119446278000000E+03),\n new google.maps.LatLng( 0.473464850000000E+02, -0.119388580000000E+03),\n new google.maps.LatLng( 0.473393740000000E+02, -0.119387186000000E+03),\n new google.maps.LatLng( 0.473350560000000E+02, -0.119386854000000E+03),\n new google.maps.LatLng( 0.473299600000000E+02, -0.119382826000000E+03),\n new google.maps.LatLng( 0.473251120000000E+02, -0.119376140000000E+03),\n new google.maps.LatLng( 0.473244500000000E+02, -0.119372943000000E+03),\n new google.maps.LatLng( 0.473207540000000E+02, -0.119362087000000E+03),\n new google.maps.LatLng( 0.473203900000000E+02, -0.119357819000000E+03),\n new google.maps.LatLng( 0.473208240000000E+02, -0.119357516000000E+03),\n new google.maps.LatLng( 0.473221260000000E+02, -0.119357989000000E+03),\n new google.maps.LatLng( 0.473224660000000E+02, -0.119364642000000E+03),\n new google.maps.LatLng( 0.473283580000000E+02, -0.119369688000000E+03),\n new google.maps.LatLng( 0.473327640000000E+02, -0.119375792000000E+03),\n new google.maps.LatLng( 0.473373580000000E+02, -0.119372891000000E+03),\n new google.maps.LatLng( 0.473371990000000E+02, -0.119370706000000E+03),\n new google.maps.LatLng( 0.473326570000000E+02, -0.119361124000000E+03),\n new google.maps.LatLng( 0.473301910000000E+02, -0.119357593000000E+03),\n new google.maps.LatLng( 0.473257140000000E+02, -0.119355975000000E+03),\n new google.maps.LatLng( 0.473213500000000E+02, -0.119356307000000E+03),\n new google.maps.LatLng( 0.473207110000000E+02, -0.119355568000000E+03),\n new google.maps.LatLng( 0.473207130000000E+02, -0.119348714000000E+03),\n new google.maps.LatLng( 0.473241920000000E+02, -0.119341546000000E+03),\n new google.maps.LatLng( 0.473236670000000E+02, -0.119303220000000E+03),\n new google.maps.LatLng( 0.473260890000000E+02, -0.119303757000000E+03),\n new google.maps.LatLng( 0.473343140000000E+02, -0.119303185000000E+03),\n new google.maps.LatLng( 0.473399800000000E+02, -0.119303453000000E+03),\n new google.maps.LatLng( 0.473442990000000E+02, -0.119305066000000E+03),\n new google.maps.LatLng( 0.473512210000000E+02, -0.119309503000000E+03),\n new google.maps.LatLng( 0.473524710000000E+02, -0.119309218000000E+03),\n new google.maps.LatLng( 0.473576410000000E+02, -0.119309839000000E+03),\n new google.maps.LatLng( 0.473713700000000E+02, -0.119332205000000E+03),\n new google.maps.LatLng( 0.473725790000000E+02, -0.119338293000000E+03),\n new google.maps.LatLng( 0.473753100000000E+02, -0.119342055000000E+03),\n new google.maps.LatLng( 0.473803510000000E+02, -0.119346498000000E+03),\n new google.maps.LatLng( 0.473820970000000E+02, -0.119349192000000E+03),\n new google.maps.LatLng( 0.473820970000000E+02, -0.119349192000000E+03),\n new google.maps.LatLng( 0.473807850000000E+02, -0.119277238000000E+03),\n new google.maps.LatLng( 0.473953610000000E+02, -0.119277161000000E+03),\n new google.maps.LatLng( 0.473950100000000E+02, -0.119255964000000E+03),\n new google.maps.LatLng( 0.474100740000000E+02, -0.119255946000000E+03),\n new google.maps.LatLng( 0.474097090000000E+02, -0.119255534000000E+03),\n new google.maps.LatLng( 0.474082700000000E+02, -0.119212756000000E+03),\n new google.maps.LatLng( 0.474078690000000E+02, -0.119172261000000E+03),\n new google.maps.LatLng( 0.474078690000000E+02, -0.119172261000000E+03),\n new google.maps.LatLng( 0.474078350000000E+02, -0.119128715000000E+03),\n new google.maps.LatLng( 0.473830570000000E+02, -0.119086364000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.474884200000000E+02, -0.122365236000000E+03),\n new google.maps.LatLng( 0.474888200000000E+02, -0.122364836000000E+03),\n new google.maps.LatLng( 0.474866890000000E+02, -0.122361497000000E+03),\n new google.maps.LatLng( 0.474853430000000E+02, -0.122352110000000E+03),\n new google.maps.LatLng( 0.474813790000000E+02, -0.122352151000000E+03),\n new google.maps.LatLng( 0.474812210000000E+02, -0.122334135000000E+03),\n new google.maps.LatLng( 0.474812210000000E+02, -0.122334135000000E+03),\n new google.maps.LatLng( 0.474668210000000E+02, -0.122334235000000E+03),\n new google.maps.LatLng( 0.474668210000000E+02, -0.122334235000000E+03),\n new google.maps.LatLng( 0.474537210000000E+02, -0.122334035000000E+03),\n new google.maps.LatLng( 0.474415210000000E+02, -0.122334635000000E+03),\n new google.maps.LatLng( 0.474397210000000E+02, -0.122340535000000E+03),\n new google.maps.LatLng( 0.474388210000000E+02, -0.122340635000000E+03),\n new google.maps.LatLng( 0.474380210000000E+02, -0.122340635000000E+03),\n new google.maps.LatLng( 0.474381210000000E+02, -0.122335135000000E+03),\n new google.maps.LatLng( 0.474312210000000E+02, -0.122336035000000E+03),\n new google.maps.LatLng( 0.474239210000000E+02, -0.122335435000000E+03),\n new google.maps.LatLng( 0.474239210000000E+02, -0.122335435000000E+03),\n new google.maps.LatLng( 0.474159210000000E+02, -0.122335335000000E+03),\n new google.maps.LatLng( 0.474112210000000E+02, -0.122334634000000E+03),\n new google.maps.LatLng( 0.474080210000000E+02, -0.122332334000000E+03),\n new google.maps.LatLng( 0.474084210000000E+02, -0.122329534000000E+03),\n new google.maps.LatLng( 0.474069210000000E+02, -0.122329534000000E+03),\n new google.maps.LatLng( 0.474069209999996E+02, -0.122333926307692E+03),\n new google.maps.LatLng( 0.474069209999996E+02, -0.122333926307692E+03),\n new google.maps.LatLng( 0.474084210000000E+02, -0.122335234000000E+03),\n new google.maps.LatLng( 0.474159210000000E+02, -0.122348035000000E+03),\n new google.maps.LatLng( 0.474333397192118E+02, -0.122352791650246E+03),\n new google.maps.LatLng( 0.474419210000000E+02, -0.122355135000000E+03),\n new google.maps.LatLng( 0.474452214446258E+02, -0.122362025980963E+03),\n new google.maps.LatLng( 0.474476210000000E+02, -0.122367036000000E+03),\n new google.maps.LatLng( 0.474505210000000E+02, -0.122383136000000E+03),\n new google.maps.LatLng( 0.474576268197837E+02, -0.122370802910490E+03),\n new google.maps.LatLng( 0.474592210000000E+02, -0.122368036000000E+03),\n new google.maps.LatLng( 0.474814210000000E+02, -0.122361336000000E+03),\n new google.maps.LatLng( 0.474884200000000E+02, -0.122365236000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475240390000000E+02, -0.118977984000000E+03),\n new google.maps.LatLng( 0.475227370000000E+02, -0.118845543000000E+03),\n new google.maps.LatLng( 0.475227370000000E+02, -0.118845543000000E+03),\n new google.maps.LatLng( 0.475226940000000E+02, -0.118838810000000E+03),\n new google.maps.LatLng( 0.475230820000000E+02, -0.118837191000000E+03),\n new google.maps.LatLng( 0.475286130000000E+02, -0.118831189000000E+03),\n new google.maps.LatLng( 0.475289100000000E+02, -0.118829401000000E+03),\n new google.maps.LatLng( 0.475286590000000E+02, -0.118828085000000E+03),\n new google.maps.LatLng( 0.475274710000000E+02, -0.118826903000000E+03),\n new google.maps.LatLng( 0.475248890000000E+02, -0.118826160000000E+03),\n new google.maps.LatLng( 0.475185140000000E+02, -0.118826665000000E+03),\n new google.maps.LatLng( 0.475164850000000E+02, -0.118825242000000E+03),\n new google.maps.LatLng( 0.475176700000000E+02, -0.118811857000000E+03),\n new google.maps.LatLng( 0.475173500000000E+02, -0.118808146000000E+03),\n new google.maps.LatLng( 0.475168930000000E+02, -0.118807337000000E+03),\n new google.maps.LatLng( 0.475176460000000E+02, -0.118803053000000E+03),\n new google.maps.LatLng( 0.475268060000000E+02, -0.118785543000000E+03),\n new google.maps.LatLng( 0.475245440000000E+02, -0.118784565000000E+03),\n new google.maps.LatLng( 0.475085950000000E+02, -0.118785114000000E+03),\n new google.maps.LatLng( 0.475083830000000E+02, -0.118732110000000E+03),\n new google.maps.LatLng( 0.475086110000000E+02, -0.118731536000000E+03),\n new google.maps.LatLng( 0.475133870000000E+02, -0.118731675000000E+03),\n new google.maps.LatLng( 0.475223460000000E+02, -0.118728917000000E+03),\n new google.maps.LatLng( 0.475250880000000E+02, -0.118728717000000E+03),\n new google.maps.LatLng( 0.475305510000000E+02, -0.118724773000000E+03),\n new google.maps.LatLng( 0.475331110000000E+02, -0.118721064000000E+03),\n new google.maps.LatLng( 0.475515970000000E+02, -0.118721212000000E+03),\n new google.maps.LatLng( 0.475515970000000E+02, -0.118721212000000E+03),\n new google.maps.LatLng( 0.475483990000000E+02, -0.118716147000000E+03),\n new google.maps.LatLng( 0.475454060000000E+02, -0.118713917000000E+03),\n new google.maps.LatLng( 0.475430310000000E+02, -0.118707235000000E+03),\n new google.maps.LatLng( 0.475419350000000E+02, -0.118705682000000E+03),\n new google.maps.LatLng( 0.475378440000000E+02, -0.118706693000000E+03),\n new google.maps.LatLng( 0.475343940000000E+02, -0.118709391000000E+03),\n new google.maps.LatLng( 0.475297320000000E+02, -0.118710468000000E+03),\n new google.maps.LatLng( 0.475303040000000E+02, -0.118707635000000E+03),\n new google.maps.LatLng( 0.475316290000000E+02, -0.118705071000000E+03),\n new google.maps.LatLng( 0.475327960000000E+02, -0.118696872000000E+03),\n new google.maps.LatLng( 0.475322020000000E+02, -0.118695320000000E+03),\n new google.maps.LatLng( 0.475302140000000E+02, -0.118694510000000E+03),\n new google.maps.LatLng( 0.475294370000000E+02, -0.118693498000000E+03),\n new google.maps.LatLng( 0.475289800000000E+02, -0.118681824000000E+03),\n new google.maps.LatLng( 0.475291850000000E+02, -0.118678652000000E+03),\n new google.maps.LatLng( 0.475303050000000E+02, -0.118676358000000E+03),\n new google.maps.LatLng( 0.475303490000000E+02, -0.118666641000000E+03),\n new google.maps.LatLng( 0.475295940000000E+02, -0.118659320000000E+03),\n new google.maps.LatLng( 0.475281760000000E+02, -0.118656588000000E+03),\n new google.maps.LatLng( 0.475452690000000E+02, -0.118657119000000E+03),\n new google.maps.LatLng( 0.475515070000000E+02, -0.118656879000000E+03),\n new google.maps.LatLng( 0.475514750000000E+02, -0.118630383000000E+03),\n new google.maps.LatLng( 0.475368960000000E+02, -0.118630533000000E+03),\n new google.maps.LatLng( 0.475326250000000E+02, -0.118633979000000E+03),\n new google.maps.LatLng( 0.475288780000000E+02, -0.118635197000000E+03),\n new google.maps.LatLng( 0.475080370000000E+02, -0.118634982000000E+03),\n new google.maps.LatLng( 0.475080370000000E+02, -0.118634982000000E+03),\n new google.maps.LatLng( 0.474937940000000E+02, -0.118635033000000E+03),\n new google.maps.LatLng( 0.474876710000000E+02, -0.118635983000000E+03),\n new google.maps.LatLng( 0.474825510000000E+02, -0.118634707000000E+03),\n new google.maps.LatLng( 0.474788950000000E+02, -0.118634811000000E+03),\n new google.maps.LatLng( 0.474783080000000E+02, -0.118653182000000E+03),\n new google.maps.LatLng( 0.474786990000000E+02, -0.118655736000000E+03),\n new google.maps.LatLng( 0.475082050000000E+02, -0.118656364000000E+03),\n new google.maps.LatLng( 0.475076610000000E+02, -0.118685232000000E+03),\n new google.maps.LatLng( 0.475080900000000E+02, -0.118718586000000E+03),\n new google.maps.LatLng( 0.475073810000000E+02, -0.118720474000000E+03),\n new google.maps.LatLng( 0.474793350000000E+02, -0.118720830000000E+03),\n new google.maps.LatLng( 0.474790890000000E+02, -0.118677383000000E+03),\n new google.maps.LatLng( 0.474441720000000E+02, -0.118676782000000E+03),\n new google.maps.LatLng( 0.474452000000000E+02, -0.118666036000000E+03),\n new google.maps.LatLng( 0.474475300000000E+02, -0.118661521000000E+03),\n new google.maps.LatLng( 0.474505210000000E+02, -0.118650875000000E+03),\n new google.maps.LatLng( 0.474508840000000E+02, -0.118644979000000E+03),\n new google.maps.LatLng( 0.474496950000000E+02, -0.118642217000000E+03),\n new google.maps.LatLng( 0.474367140000000E+02, -0.118636739000000E+03),\n new google.maps.LatLng( 0.474319140000000E+02, -0.118635329000000E+03),\n new google.maps.LatLng( 0.474306120000000E+02, -0.118636980000000E+03),\n new google.maps.LatLng( 0.474284420000000E+02, -0.118636982000000E+03),\n new google.maps.LatLng( 0.474221570000000E+02, -0.118635574000000E+03),\n new google.maps.LatLng( 0.474209000000000E+02, -0.118634464000000E+03),\n new google.maps.LatLng( 0.474220420000000E+02, -0.118633924000000E+03),\n new google.maps.LatLng( 0.474304260000000E+02, -0.118620174000000E+03),\n new google.maps.LatLng( 0.474326880000000E+02, -0.118620615000000E+03),\n new google.maps.LatLng( 0.474355940000000E+02, -0.118611862000000E+03),\n new google.maps.LatLng( 0.474355140000000E+02, -0.118557267000000E+03),\n new google.maps.LatLng( 0.474643200000000E+02, -0.118487996000000E+03),\n new google.maps.LatLng( 0.474648470000000E+02, -0.118484829000000E+03),\n new google.maps.LatLng( 0.474641890000000E+02, -0.118473372000000E+03),\n new google.maps.LatLng( 0.474646020000000E+02, -0.118464104000000E+03),\n new google.maps.LatLng( 0.474355810000000E+02, -0.118464089000000E+03),\n new google.maps.LatLng( 0.473773300000000E+02, -0.118465405000000E+03),\n new google.maps.LatLng( 0.473771740000000E+02, -0.118437212000000E+03),\n new google.maps.LatLng( 0.473771740000000E+02, -0.118437212000000E+03),\n new google.maps.LatLng( 0.473687870000000E+02, -0.118453260000000E+03),\n new google.maps.LatLng( 0.473652540000000E+02, -0.118464771000000E+03),\n new google.maps.LatLng( 0.473663650000000E+02, -0.118455092000000E+03),\n new google.maps.LatLng( 0.473662520000000E+02, -0.118445221000000E+03),\n new google.maps.LatLng( 0.473603330000000E+02, -0.118430690000000E+03),\n new google.maps.LatLng( 0.473593460000000E+02, -0.118430037000000E+03),\n new google.maps.LatLng( 0.473577050000000E+02, -0.118430051000000E+03),\n new google.maps.LatLng( 0.473508500000000E+02, -0.118433179000000E+03),\n new google.maps.LatLng( 0.473478330000000E+02, -0.118436105000000E+03),\n new google.maps.LatLng( 0.473478890000000E+02, -0.118379917000000E+03),\n new google.maps.LatLng( 0.473248760000000E+02, -0.118379572000000E+03),\n new google.maps.LatLng( 0.473194360000000E+02, -0.118377394000000E+03),\n new google.maps.LatLng( 0.473194360000000E+02, -0.118377394000000E+03),\n new google.maps.LatLng( 0.473064790000000E+02, -0.118371308000000E+03),\n new google.maps.LatLng( 0.473026540000000E+02, -0.118368972000000E+03),\n new google.maps.LatLng( 0.473026540000000E+02, -0.118368972000000E+03),\n new google.maps.LatLng( 0.472955140000000E+02, -0.118361588000000E+03),\n new google.maps.LatLng( 0.472937090000000E+02, -0.118360645000000E+03),\n new google.maps.LatLng( 0.472858890000000E+02, -0.118358544000000E+03),\n new google.maps.LatLng( 0.472858890000000E+02, -0.118358544000000E+03),\n new google.maps.LatLng( 0.472815300000000E+02, -0.118357343000000E+03),\n new google.maps.LatLng( 0.472796100000000E+02, -0.118357610000000E+03),\n new google.maps.LatLng( 0.472775530000000E+02, -0.118359522000000E+03),\n new google.maps.LatLng( 0.472763170000000E+02, -0.118362744000000E+03),\n new google.maps.LatLng( 0.472755610000000E+02, -0.118367110000000E+03),\n new google.maps.LatLng( 0.472749180000000E+02, -0.118377208000000E+03),\n new google.maps.LatLng( 0.472736170000000E+02, -0.118379694000000E+03),\n new google.maps.LatLng( 0.472726570000000E+02, -0.118380401000000E+03),\n new google.maps.LatLng( 0.472647500000000E+02, -0.118380611000000E+03),\n new google.maps.LatLng( 0.472625800000000E+02, -0.118382359000000E+03),\n new google.maps.LatLng( 0.472606100000000E+02, -0.118385206000000E+03),\n new google.maps.LatLng( 0.472606100000000E+02, -0.118385206000000E+03),\n new google.maps.LatLng( 0.472605770000000E+02, -0.118401865000000E+03),\n new google.maps.LatLng( 0.472605770000000E+02, -0.118401865000000E+03),\n new google.maps.LatLng( 0.472751340000000E+02, -0.118401856000000E+03),\n new google.maps.LatLng( 0.472751860000000E+02, -0.118420420000000E+03),\n new google.maps.LatLng( 0.472771270000000E+02, -0.118421969000000E+03),\n new google.maps.LatLng( 0.472786120000000E+02, -0.118421767000000E+03),\n new google.maps.LatLng( 0.472826790000000E+02, -0.118416627000000E+03),\n new google.maps.LatLng( 0.472871120000000E+02, -0.118415315000000E+03),\n new google.maps.LatLng( 0.472890780000000E+02, -0.118416088000000E+03),\n new google.maps.LatLng( 0.472936940000000E+02, -0.118414540000000E+03),\n new google.maps.LatLng( 0.473036200000000E+02, -0.118406820000000E+03),\n new google.maps.LatLng( 0.473036280000000E+02, -0.118393302000000E+03),\n new google.maps.LatLng( 0.473068070000000E+02, -0.118399079000000E+03),\n new google.maps.LatLng( 0.473118610000000E+02, -0.118412987000000E+03),\n new google.maps.LatLng( 0.473129590000000E+02, -0.118417120000000E+03),\n new google.maps.LatLng( 0.473142400000000E+02, -0.118429486000000E+03),\n new google.maps.LatLng( 0.473135320000000E+02, -0.118433484000000E+03),\n new google.maps.LatLng( 0.473112230000000E+02, -0.118438222000000E+03),\n new google.maps.LatLng( 0.473100340000000E+02, -0.118438457000000E+03),\n new google.maps.LatLng( 0.473069040000000E+02, -0.118436240000000E+03),\n new google.maps.LatLng( 0.473022870000000E+02, -0.118443194000000E+03),\n new google.maps.LatLng( 0.473014190000000E+02, -0.118444000000000E+03),\n new google.maps.LatLng( 0.472991110000000E+02, -0.118444705000000E+03),\n new google.maps.LatLng( 0.472997730000000E+02, -0.118451055000000E+03),\n new google.maps.LatLng( 0.473015080000000E+02, -0.118459991000000E+03),\n new google.maps.LatLng( 0.473043860000000E+02, -0.118468695000000E+03),\n new google.maps.LatLng( 0.473048350000000E+02, -0.118488047000000E+03),\n new google.maps.LatLng( 0.473038980000000E+02, -0.118487475000000E+03),\n new google.maps.LatLng( 0.472752870000000E+02, -0.118487615000000E+03),\n new google.maps.LatLng( 0.472752530000000E+02, -0.118444702000000E+03),\n new google.maps.LatLng( 0.472607180000000E+02, -0.118444801000000E+03),\n new google.maps.LatLng( 0.472607180000000E+02, -0.118444801000000E+03),\n new google.maps.LatLng( 0.472610970000000E+02, -0.118514586000000E+03),\n new google.maps.LatLng( 0.472486450000000E+02, -0.118514836000000E+03),\n new google.maps.LatLng( 0.472490620000000E+02, -0.118536080000000E+03),\n new google.maps.LatLng( 0.472058250000000E+02, -0.118536904000000E+03),\n new google.maps.LatLng( 0.472056590000000E+02, -0.118515376000000E+03),\n new google.maps.LatLng( 0.471910790000000E+02, -0.118515489000000E+03),\n new google.maps.LatLng( 0.471912700000000E+02, -0.118579487000000E+03),\n new google.maps.LatLng( 0.471551620000000E+02, -0.118579878000000E+03),\n new google.maps.LatLng( 0.471538540000000E+02, -0.118601117000000E+03),\n new google.maps.LatLng( 0.471545770000000E+02, -0.118622290000000E+03),\n new google.maps.LatLng( 0.471524360000000E+02, -0.118643813000000E+03),\n new google.maps.LatLng( 0.471308170000000E+02, -0.118643664000000E+03),\n new google.maps.LatLng( 0.471305730000000E+02, -0.118707688000000E+03),\n new google.maps.LatLng( 0.471299920000000E+02, -0.118737858000000E+03),\n new google.maps.LatLng( 0.471299350000000E+02, -0.118826231000000E+03),\n new google.maps.LatLng( 0.471289980000000E+02, -0.118829479000000E+03),\n new google.maps.LatLng( 0.471273290000000E+02, -0.118832425000000E+03),\n new google.maps.LatLng( 0.471258200000000E+02, -0.118838117000000E+03),\n new google.maps.LatLng( 0.471267550000000E+02, -0.118845583000000E+03),\n new google.maps.LatLng( 0.471297230000000E+02, -0.118853152000000E+03),\n new google.maps.LatLng( 0.471302720000000E+02, -0.118981103000000E+03),\n new google.maps.LatLng( 0.471302720000000E+02, -0.118981103000000E+03),\n new google.maps.LatLng( 0.472614670000000E+02, -0.118979522000000E+03),\n new google.maps.LatLng( 0.473744660000000E+02, -0.118979015000000E+03),\n new google.maps.LatLng( 0.474044860000000E+02, -0.118978485000000E+03),\n new google.maps.LatLng( 0.474220460000000E+02, -0.118979018000000E+03),\n new google.maps.LatLng( 0.474753890000000E+02, -0.118977619000000E+03),\n new google.maps.LatLng( 0.475059880000000E+02, -0.118977869000000E+03),\n new google.maps.LatLng( 0.475059880000000E+02, -0.118977869000000E+03),\n new google.maps.LatLng( 0.475240390000000E+02, -0.118977984000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.489123520000000E+02, -0.122534487000000E+03),\n new google.maps.LatLng( 0.489122150000000E+02, -0.122537433000000E+03),\n new google.maps.LatLng( 0.489109580000000E+02, -0.122539202000000E+03),\n new google.maps.LatLng( 0.489077140000000E+02, -0.122539967000000E+03),\n new google.maps.LatLng( 0.489071200000000E+02, -0.122540522000000E+03),\n new google.maps.LatLng( 0.489067550000000E+02, -0.122546068000000E+03),\n new google.maps.LatLng( 0.489060240000000E+02, -0.122547662000000E+03),\n new google.maps.LatLng( 0.489034420000000E+02, -0.122548703000000E+03),\n new google.maps.LatLng( 0.489007230000000E+02, -0.122547595000000E+03),\n new google.maps.LatLng( 0.488998550000000E+02, -0.122546486000000E+03),\n new google.maps.LatLng( 0.488993520000000E+02, -0.122544338000000E+03),\n new google.maps.LatLng( 0.488986890000000E+02, -0.122544199000000E+03),\n new google.maps.LatLng( 0.488976380000000E+02, -0.122547319000000E+03),\n new google.maps.LatLng( 0.488959940000000E+02, -0.122550126000000E+03),\n new google.maps.LatLng( 0.488935030000000E+02, -0.122552761000000E+03),\n new google.maps.LatLng( 0.488922700000000E+02, -0.122555222000000E+03),\n new google.maps.LatLng( 0.488889340000000E+02, -0.122556608000000E+03),\n new google.maps.LatLng( 0.488860090000000E+02, -0.122556678000000E+03),\n new google.maps.LatLng( 0.488850710000000E+02, -0.122557163000000E+03),\n new google.maps.LatLng( 0.488821010000000E+02, -0.122561182000000E+03),\n new google.maps.LatLng( 0.488805700000000E+02, -0.122564370000000E+03),\n new google.maps.LatLng( 0.488794280000000E+02, -0.122563989000000E+03),\n new google.maps.LatLng( 0.488753610000000E+02, -0.122558065000000E+03),\n new google.maps.LatLng( 0.488717580000000E+02, -0.122558515000000E+03),\n new google.maps.LatLng( 0.488710270000000E+02, -0.122560248000000E+03),\n new google.maps.LatLng( 0.488707760000000E+02, -0.122564508000000E+03),\n new google.maps.LatLng( 0.488701130000000E+02, -0.122567279000000E+03),\n new google.maps.LatLng( 0.488687880000000E+02, -0.122568075000000E+03),\n new google.maps.LatLng( 0.488661600000000E+02, -0.122566794000000E+03),\n new google.maps.LatLng( 0.488652230000000E+02, -0.122570430000000E+03),\n new google.maps.LatLng( 0.488639660000000E+02, -0.122572023000000E+03),\n new google.maps.LatLng( 0.488621160000000E+02, -0.122571607000000E+03),\n new google.maps.LatLng( 0.488609730000000E+02, -0.122570360000000E+03),\n new google.maps.LatLng( 0.488596480000000E+02, -0.122570879000000E+03),\n new google.maps.LatLng( 0.488533620000000E+02, -0.122584595000000E+03),\n new google.maps.LatLng( 0.488511240000000E+02, -0.122585778000000E+03),\n new google.maps.LatLng( 0.488493190000000E+02, -0.122585121000000E+03),\n new google.maps.LatLng( 0.488481300000000E+02, -0.122585222000000E+03),\n new google.maps.LatLng( 0.488463010000000E+02, -0.122587705000000E+03),\n new google.maps.LatLng( 0.488422330000000E+02, -0.122591268000000E+03),\n new google.maps.LatLng( 0.488407250000000E+02, -0.122592098000000E+03),\n new google.maps.LatLng( 0.488378000000000E+02, -0.122592096000000E+03),\n new google.maps.LatLng( 0.488369540000000E+02, -0.122592927000000E+03),\n new google.maps.LatLng( 0.488351480000000E+02, -0.122597184000000E+03),\n new google.maps.LatLng( 0.488337540000000E+02, -0.122598464000000E+03),\n new google.maps.LatLng( 0.488322230000000E+02, -0.122598636000000E+03),\n new google.maps.LatLng( 0.488288640000000E+02, -0.122595865000000E+03),\n new google.maps.LatLng( 0.488276540000000E+02, -0.122589288000000E+03),\n new google.maps.LatLng( 0.488266260000000E+02, -0.122588353000000E+03),\n new google.maps.LatLng( 0.488250730000000E+02, -0.122587902000000E+03),\n new google.maps.LatLng( 0.488242960000000E+02, -0.122585445000000E+03),\n new google.maps.LatLng( 0.488240230000000E+02, -0.122581535000000E+03),\n new google.maps.LatLng( 0.488221720000000E+02, -0.122579977000000E+03),\n new google.maps.LatLng( 0.488165970000000E+02, -0.122581117000000E+03),\n new google.maps.LatLng( 0.488157280000000E+02, -0.122581982000000E+03),\n new google.maps.LatLng( 0.488150880000000E+02, -0.122583711000000E+03),\n new google.maps.LatLng( 0.488134890000000E+02, -0.122584577000000E+03),\n new google.maps.LatLng( 0.488123310000000E+02, -0.122584192000000E+03),\n new google.maps.LatLng( 0.488100060000000E+02, -0.122581613000000E+03),\n new google.maps.LatLng( 0.488081900000000E+02, -0.122581935000000E+03),\n new google.maps.LatLng( 0.488032690000000E+02, -0.122584972000000E+03),\n new google.maps.LatLng( 0.487996680000000E+02, -0.122589228000000E+03),\n new google.maps.LatLng( 0.487985080000000E+02, -0.122591700000000E+03),\n new google.maps.LatLng( 0.487972950000000E+02, -0.122592585000000E+03),\n new google.maps.LatLng( 0.487937020000000E+02, -0.122592099000000E+03),\n new google.maps.LatLng( 0.487913810000000E+02, -0.122590526000000E+03),\n new google.maps.LatLng( 0.487913810000000E+02, -0.122590526000000E+03),\n new google.maps.LatLng( 0.487934570000000E+02, -0.122604947000000E+03),\n new google.maps.LatLng( 0.487937360000000E+02, -0.122640372000000E+03),\n new google.maps.LatLng( 0.487923440000000E+02, -0.122642516000000E+03),\n new google.maps.LatLng( 0.487902200000000E+02, -0.122643936000000E+03),\n new google.maps.LatLng( 0.487894440000000E+02, -0.122645425000000E+03),\n new google.maps.LatLng( 0.487879390000000E+02, -0.122655281000000E+03),\n new google.maps.LatLng( 0.487902461677968E+02, -0.122664420295570E+03),\n new google.maps.LatLng( 0.487902461677968E+02, -0.122664420295570E+03),\n new google.maps.LatLng( 0.487904659457979E+02, -0.122664698461626E+03),\n new google.maps.LatLng( 0.487926730148174E+02, -0.122667491878987E+03),\n new google.maps.LatLng( 0.487933357621471E+02, -0.122668330697293E+03),\n new google.maps.LatLng( 0.487989154100343E+02, -0.122675392680920E+03),\n new google.maps.LatLng( 0.488027500000000E+02, -0.122680246000000E+03),\n new google.maps.LatLng( 0.488044745379296E+02, -0.122693683050854E+03),\n new google.maps.LatLng( 0.488032199920909E+02, -0.122696348956962E+03),\n new google.maps.LatLng( 0.488028104421536E+02, -0.122697219249339E+03),\n new google.maps.LatLng( 0.488005223134850E+02, -0.122698675322057E+03),\n new google.maps.LatLng( 0.487949060013264E+02, -0.122699507365914E+03),\n new google.maps.LatLng( 0.487895427953844E+02, -0.122699319781414E+03),\n new google.maps.LatLng( 0.487890630000000E+02, -0.122699303000000E+03),\n new google.maps.LatLng( 0.487863210000000E+02, -0.122703106000000E+03),\n new google.maps.LatLng( 0.487862050000000E+02, -0.122709815000000E+03),\n new google.maps.LatLng( 0.487869416921473E+02, -0.122710009161489E+03),\n new google.maps.LatLng( 0.487887644097996E+02, -0.122710489554248E+03),\n new google.maps.LatLng( 0.487911936230479E+02, -0.122711129794086E+03),\n new google.maps.LatLng( 0.487914600000000E+02, -0.122711200000000E+03),\n new google.maps.LatLng( 0.487918424410149E+02, -0.122711170543528E+03),\n new google.maps.LatLng( 0.487968244290918E+02, -0.122710786819542E+03),\n new google.maps.LatLng( 0.488168671500438E+02, -0.122709243083858E+03),\n new google.maps.LatLng( 0.488178290000000E+02, -0.122709169000000E+03),\n new google.maps.LatLng( 0.488324080000000E+02, -0.122711805000000E+03),\n new google.maps.LatLng( 0.488404859566066E+02, -0.122714683817170E+03),\n new google.maps.LatLng( 0.488426353454888E+02, -0.122715449815048E+03),\n new google.maps.LatLng( 0.488462106986730E+02, -0.122716723997200E+03),\n new google.maps.LatLng( 0.488471900000000E+02, -0.122717073000000E+03),\n new google.maps.LatLng( 0.488481617127465E+02, -0.122718035621701E+03),\n new google.maps.LatLng( 0.488528550000000E+02, -0.122722685000000E+03),\n new google.maps.LatLng( 0.488602491021215E+02, -0.122737140812828E+03),\n new google.maps.LatLng( 0.488602491021215E+02, -0.122737140812828E+03),\n new google.maps.LatLng( 0.488632010000000E+02, -0.122736823000000E+03),\n new google.maps.LatLng( 0.488632030000000E+02, -0.122731628000000E+03),\n new google.maps.LatLng( 0.488704010000000E+02, -0.122731564000000E+03),\n new google.maps.LatLng( 0.488705090000000E+02, -0.122746181000000E+03),\n new google.maps.LatLng( 0.488717420000000E+02, -0.122747984000000E+03),\n new google.maps.LatLng( 0.488777190000000E+02, -0.122748684000000E+03),\n new google.maps.LatLng( 0.488849850000000E+02, -0.122748693000000E+03),\n new google.maps.LatLng( 0.488849200000000E+02, -0.122741971000000E+03),\n new google.maps.LatLng( 0.488810360000000E+02, -0.122742001000000E+03),\n new google.maps.LatLng( 0.488809930000000E+02, -0.122733652000000E+03),\n new google.maps.LatLng( 0.488848790000000E+02, -0.122733586000000E+03),\n new google.maps.LatLng( 0.488847680000000E+02, -0.122714327000000E+03),\n new google.maps.LatLng( 0.488920240000000E+02, -0.122714301000000E+03),\n new google.maps.LatLng( 0.488920200000000E+02, -0.122710026000000E+03),\n new google.maps.LatLng( 0.489077390000000E+02, -0.122709794000000E+03),\n new google.maps.LatLng( 0.489089500000000E+02, -0.122708580000000E+03),\n new google.maps.LatLng( 0.489105370000000E+02, -0.122704312000000E+03),\n new google.maps.LatLng( 0.489065700000000E+02, -0.122704350000000E+03),\n new google.maps.LatLng( 0.489065720000000E+02, -0.122682235000000E+03),\n new google.maps.LatLng( 0.489193980000000E+02, -0.122682388000000E+03),\n new google.maps.LatLng( 0.489210490000000E+02, -0.122683761000000E+03),\n new google.maps.LatLng( 0.489210490000000E+02, -0.122683761000000E+03),\n new google.maps.LatLng( 0.489209100000000E+02, -0.122659531000000E+03),\n new google.maps.LatLng( 0.489199120000000E+02, -0.122658552000000E+03),\n new google.maps.LatLng( 0.489176040000000E+02, -0.122657548000000E+03),\n new google.maps.LatLng( 0.489146100000000E+02, -0.122654742000000E+03),\n new google.maps.LatLng( 0.489077050000000E+02, -0.122640950000000E+03),\n new google.maps.LatLng( 0.489060590000000E+02, -0.122639600000000E+03),\n new google.maps.LatLng( 0.489035210000000E+02, -0.122635097000000E+03),\n new google.maps.LatLng( 0.488989430000000E+02, -0.122623694000000E+03),\n new google.maps.LatLng( 0.488978990000000E+02, -0.122619647000000E+03),\n new google.maps.LatLng( 0.488981750000000E+02, -0.122616008000000E+03),\n new google.maps.LatLng( 0.489000070000000E+02, -0.122615864000000E+03),\n new google.maps.LatLng( 0.489015110000000E+02, -0.122616323000000E+03),\n new google.maps.LatLng( 0.489060070000000E+02, -0.122621943000000E+03),\n new google.maps.LatLng( 0.489087760000000E+02, -0.122616122000000E+03),\n new google.maps.LatLng( 0.489133710000000E+02, -0.122616127000000E+03),\n new google.maps.LatLng( 0.489136620000000E+02, -0.122627425000000E+03),\n new google.maps.LatLng( 0.489206810000000E+02, -0.122633484000000E+03),\n new google.maps.LatLng( 0.489207840000000E+02, -0.122585657000000E+03),\n new google.maps.LatLng( 0.489354310000000E+02, -0.122585560000000E+03),\n new google.maps.LatLng( 0.489353870000000E+02, -0.122574253000000E+03),\n new google.maps.LatLng( 0.489353870000000E+02, -0.122574253000000E+03),\n new google.maps.LatLng( 0.489354680000000E+02, -0.122549387000000E+03),\n new google.maps.LatLng( 0.489317620000000E+02, -0.122546765000000E+03),\n new google.maps.LatLng( 0.489301760000000E+02, -0.122542833000000E+03),\n new google.maps.LatLng( 0.489317060000000E+02, -0.122539781000000E+03),\n new google.maps.LatLng( 0.489354110000000E+02, -0.122536465000000E+03),\n new google.maps.LatLng( 0.489351710000000E+02, -0.122512727000000E+03),\n new google.maps.LatLng( 0.489242150000000E+02, -0.122513407000000E+03),\n new google.maps.LatLng( 0.489240020000000E+02, -0.122524459000000E+03),\n new google.maps.LatLng( 0.489213280000000E+02, -0.122524495000000E+03),\n new google.maps.LatLng( 0.489195920000000E+02, -0.122526439000000E+03),\n new google.maps.LatLng( 0.489166700000000E+02, -0.122532508000000E+03),\n new google.maps.LatLng( 0.489151390000000E+02, -0.122533445000000E+03),\n new google.maps.LatLng( 0.489148640000000E+02, -0.122532371000000E+03),\n new google.maps.LatLng( 0.489132420000000E+02, -0.122532476000000E+03),\n new google.maps.LatLng( 0.489123520000000E+02, -0.122534487000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.468683030000000E+02, -0.117970753000000E+03),\n new google.maps.LatLng( 0.468691870000000E+02, -0.117969375000000E+03),\n new google.maps.LatLng( 0.468691430000000E+02, -0.117965783000000E+03),\n new google.maps.LatLng( 0.468679660000000E+02, -0.117958701000000E+03),\n new google.maps.LatLng( 0.468697310000000E+02, -0.117951752000000E+03),\n new google.maps.LatLng( 0.468722720000000E+02, -0.117949184000000E+03),\n new google.maps.LatLng( 0.468743270000000E+02, -0.117948781000000E+03),\n new google.maps.LatLng( 0.468792490000000E+02, -0.117945187000000E+03),\n new google.maps.LatLng( 0.468865860000000E+02, -0.117936753000000E+03),\n new google.maps.LatLng( 0.468881630000000E+02, -0.117931286000000E+03),\n new google.maps.LatLng( 0.468925290000000E+02, -0.117929318000000E+03),\n new google.maps.LatLng( 0.468995910000000E+02, -0.117927883000000E+03),\n new google.maps.LatLng( 0.469053050000000E+02, -0.117929182000000E+03),\n new google.maps.LatLng( 0.469084820000000E+02, -0.117929082000000E+03),\n new google.maps.LatLng( 0.469121620000000E+02, -0.117927914000000E+03),\n new google.maps.LatLng( 0.469127790000000E+02, -0.117920675000000E+03),\n new google.maps.LatLng( 0.469125050000000E+02, -0.117918474000000E+03),\n new google.maps.LatLng( 0.469071550000000E+02, -0.117911839000000E+03),\n new google.maps.LatLng( 0.469066520000000E+02, -0.117910038000000E+03),\n new google.maps.LatLng( 0.469087970000000E+02, -0.117900299000000E+03),\n new google.maps.LatLng( 0.469123380000000E+02, -0.117895092000000E+03),\n new google.maps.LatLng( 0.469122400000000E+02, -0.117879616000000E+03),\n new google.maps.LatLng( 0.469125820000000E+02, -0.117877848000000E+03),\n new google.maps.LatLng( 0.469132220000000E+02, -0.117876913000000E+03),\n new google.maps.LatLng( 0.469141820000000E+02, -0.117876498000000E+03),\n new google.maps.LatLng( 0.469154850000000E+02, -0.117872886000000E+03),\n new google.maps.LatLng( 0.469140960000000E+02, -0.117862845000000E+03),\n new google.maps.LatLng( 0.469119810000000E+02, -0.117839325000000E+03),\n new google.maps.LatLng( 0.468883200000000E+02, -0.117846751000000E+03),\n new google.maps.LatLng( 0.468781690000000E+02, -0.117852879000000E+03),\n new google.maps.LatLng( 0.468748790000000E+02, -0.117854110000000E+03),\n new google.maps.LatLng( 0.468667640000000E+02, -0.117855638000000E+03),\n new google.maps.LatLng( 0.468544200000000E+02, -0.117859326000000E+03),\n new google.maps.LatLng( 0.468548780000000E+02, -0.117836532000000E+03),\n new google.maps.LatLng( 0.468531250000000E+02, -0.117833836000000E+03),\n new google.maps.LatLng( 0.468527370000000E+02, -0.117829838000000E+03),\n new google.maps.LatLng( 0.468541790000000E+02, -0.117821009000000E+03),\n new google.maps.LatLng( 0.468560760000000E+02, -0.117817377000000E+03),\n new google.maps.LatLng( 0.468571270000000E+02, -0.117806981000000E+03),\n new google.maps.LatLng( 0.468559150000000E+02, -0.117797518000000E+03),\n new google.maps.LatLng( 0.468617400000000E+02, -0.117775690000000E+03),\n new google.maps.LatLng( 0.468658470000000E+02, -0.117757123000000E+03),\n new google.maps.LatLng( 0.468658990000000E+02, -0.117731694000000E+03),\n new google.maps.LatLng( 0.468652140000000E+02, -0.117727528000000E+03),\n new google.maps.LatLng( 0.468633230000000E+02, -0.117703099000000E+03),\n new google.maps.LatLng( 0.468618070000000E+02, -0.117703336000000E+03),\n new google.maps.LatLng( 0.468607180000000E+02, -0.117700099000000E+03),\n new google.maps.LatLng( 0.468607410000000E+02, -0.117698766000000E+03),\n new google.maps.LatLng( 0.468633240000000E+02, -0.117690303000000E+03),\n new google.maps.LatLng( 0.468644210000000E+02, -0.117680638000000E+03),\n new google.maps.LatLng( 0.468607180000000E+02, -0.117675207000000E+03),\n new google.maps.LatLng( 0.468535850000000E+02, -0.117661948000000E+03),\n new google.maps.LatLng( 0.468507480000000E+02, -0.117654719000000E+03),\n new google.maps.LatLng( 0.468451190000000E+02, -0.117633435000000E+03),\n new google.maps.LatLng( 0.468434720000000E+02, -0.117630737000000E+03),\n new google.maps.LatLng( 0.468316310000000E+02, -0.117632015000000E+03),\n new google.maps.LatLng( 0.468249810000000E+02, -0.117634952000000E+03),\n new google.maps.LatLng( 0.468205710000000E+02, -0.117638454000000E+03),\n new google.maps.LatLng( 0.468168010000000E+02, -0.117640355000000E+03),\n new google.maps.LatLng( 0.468146530000000E+02, -0.117641089000000E+03),\n new google.maps.LatLng( 0.468103270000000E+02, -0.117641259000000E+03),\n new google.maps.LatLng( 0.468107650000000E+02, -0.117637363000000E+03),\n new google.maps.LatLng( 0.468108550000000E+02, -0.117625380000000E+03),\n new google.maps.LatLng( 0.468139850000000E+02, -0.117619894000000E+03),\n new google.maps.LatLng( 0.468193810000000E+02, -0.117615638000000E+03),\n new google.maps.LatLng( 0.468219190000000E+02, -0.117614542000000E+03),\n new google.maps.LatLng( 0.468252370000000E+02, -0.117607952000000E+03),\n new google.maps.LatLng( 0.468253980000000E+02, -0.117604688000000E+03),\n new google.maps.LatLng( 0.468282350000000E+02, -0.117598995000000E+03),\n new google.maps.LatLng( 0.468290120000000E+02, -0.117598629000000E+03),\n new google.maps.LatLng( 0.468318000000000E+02, -0.117598731000000E+03),\n new google.maps.LatLng( 0.468352070000000E+02, -0.117596069000000E+03),\n new google.maps.LatLng( 0.468351870000000E+02, -0.117583811000000E+03),\n new google.maps.LatLng( 0.468407190000000E+02, -0.117576352000000E+03),\n new google.maps.LatLng( 0.468438980000000E+02, -0.117575054000000E+03),\n new google.maps.LatLng( 0.468491440000000E+02, -0.117576368000000E+03),\n new google.maps.LatLng( 0.468491440000000E+02, -0.117576368000000E+03),\n new google.maps.LatLng( 0.468479210000000E+02, -0.117570457000000E+03),\n new google.maps.LatLng( 0.468440350000000E+02, -0.117559197000000E+03),\n new google.maps.LatLng( 0.468422520000000E+02, -0.117548637000000E+03),\n new google.maps.LatLng( 0.468424340000000E+02, -0.117541174000000E+03),\n new google.maps.LatLng( 0.468431420000000E+02, -0.117540574000000E+03),\n new google.maps.LatLng( 0.468446490000000E+02, -0.117534910000000E+03),\n new google.maps.LatLng( 0.468446480000000E+02, -0.117529246000000E+03),\n new google.maps.LatLng( 0.468431610000000E+02, -0.117526816000000E+03),\n new google.maps.LatLng( 0.468411040000000E+02, -0.117525085000000E+03),\n new google.maps.LatLng( 0.468398000000000E+02, -0.117522521000000E+03),\n new google.maps.LatLng( 0.468395710000000E+02, -0.117520822000000E+03),\n new google.maps.LatLng( 0.468404150000000E+02, -0.117516758000000E+03),\n new google.maps.LatLng( 0.468396590000000E+02, -0.117513560000000E+03),\n new google.maps.LatLng( 0.468336670000000E+02, -0.117505373000000E+03),\n new google.maps.LatLng( 0.468329590000000E+02, -0.117506381000000E+03),\n new google.maps.LatLng( 0.468325720000000E+02, -0.117509237000000E+03),\n new google.maps.LatLng( 0.468311330000000E+02, -0.117513368000000E+03),\n new google.maps.LatLng( 0.468238250000000E+02, -0.117527961000000E+03),\n new google.maps.LatLng( 0.468218370000000E+02, -0.117529993000000E+03),\n new google.maps.LatLng( 0.468097460000000E+02, -0.117537026000000E+03),\n new google.maps.LatLng( 0.468082600000000E+02, -0.117538658000000E+03),\n new google.maps.LatLng( 0.468051080000000E+02, -0.117549244000000E+03),\n new google.maps.LatLng( 0.468035090000000E+02, -0.117558832000000E+03),\n new google.maps.LatLng( 0.467898160000000E+02, -0.117559466000000E+03),\n new google.maps.LatLng( 0.467772900000000E+02, -0.117573641000000E+03),\n new google.maps.LatLng( 0.467749810000000E+02, -0.117575237000000E+03),\n new google.maps.LatLng( 0.467712100000000E+02, -0.117576833000000E+03),\n new google.maps.LatLng( 0.467688090000000E+02, -0.117576799000000E+03),\n new google.maps.LatLng( 0.467613570000000E+02, -0.117571807000000E+03),\n new google.maps.LatLng( 0.467608090000000E+02, -0.117567051000000E+03),\n new google.maps.LatLng( 0.467629360000000E+02, -0.117555708000000E+03),\n new google.maps.LatLng( 0.467639180000000E+02, -0.117552714000000E+03),\n new google.maps.LatLng( 0.467666150000000E+02, -0.117547724000000E+03),\n new google.maps.LatLng( 0.467672770000000E+02, -0.117542734000000E+03),\n new google.maps.LatLng( 0.467648990000000E+02, -0.117539807000000E+03),\n new google.maps.LatLng( 0.467634580000000E+02, -0.117534320000000E+03),\n new google.maps.LatLng( 0.467657170000000E+02, -0.117520779000000E+03),\n new google.maps.LatLng( 0.467666940000000E+02, -0.117507938000000E+03),\n new google.maps.LatLng( 0.467660080000000E+02, -0.117506675000000E+03),\n new google.maps.LatLng( 0.467599940000000E+02, -0.117503089000000E+03),\n new google.maps.LatLng( 0.467507590000000E+02, -0.117502201000000E+03),\n new google.maps.LatLng( 0.467493310000000E+02, -0.117509088000000E+03),\n new google.maps.LatLng( 0.467478920000000E+02, -0.117512447000000E+03),\n new google.maps.LatLng( 0.467441230000000E+02, -0.117518503000000E+03),\n new google.maps.LatLng( 0.467425010000000E+02, -0.117520466000000E+03),\n new google.maps.LatLng( 0.467404440000000E+02, -0.117521974000000E+03),\n new google.maps.LatLng( 0.467401020000000E+02, -0.117523427000000E+03),\n new google.maps.LatLng( 0.467408790000000E+02, -0.117526652000000E+03),\n new google.maps.LatLng( 0.467451330000000E+02, -0.117531139000000E+03),\n new google.maps.LatLng( 0.467474890000000E+02, -0.117541678000000E+03),\n new google.maps.LatLng( 0.467446560000000E+02, -0.117549594000000E+03),\n new google.maps.LatLng( 0.467468730000000E+02, -0.117577427000000E+03),\n new google.maps.LatLng( 0.467460260000000E+02, -0.117584576000000E+03),\n new google.maps.LatLng( 0.467415660000000E+02, -0.117595048000000E+03),\n new google.maps.LatLng( 0.467371060000000E+02, -0.117602226000000E+03),\n new google.maps.LatLng( 0.467358020000000E+02, -0.117603389000000E+03),\n new google.maps.LatLng( 0.467339720000000E+02, -0.117609306000000E+03),\n new google.maps.LatLng( 0.467331690000000E+02, -0.117615222000000E+03),\n new google.maps.LatLng( 0.467309480000000E+02, -0.117622832000000E+03),\n new google.maps.LatLng( 0.467287530000000E+02, -0.117626501000000E+03),\n new google.maps.LatLng( 0.467281390000000E+02, -0.117632422000000E+03),\n new google.maps.LatLng( 0.467262680000000E+02, -0.117640501000000E+03),\n new google.maps.LatLng( 0.467208530000000E+02, -0.117649148000000E+03),\n new google.maps.LatLng( 0.467191400000000E+02, -0.117652771000000E+03),\n new google.maps.LatLng( 0.467186150000000E+02, -0.117654998000000E+03),\n new google.maps.LatLng( 0.467198980000000E+02, -0.117666863000000E+03),\n new google.maps.LatLng( 0.467198760000000E+02, -0.117671948000000E+03),\n new google.maps.LatLng( 0.467176590000000E+02, -0.117679261000000E+03),\n new google.maps.LatLng( 0.467123560000000E+02, -0.117686406000000E+03),\n new google.maps.LatLng( 0.467080810000000E+02, -0.117687005000000E+03),\n new google.maps.LatLng( 0.467080810000000E+02, -0.117687005000000E+03),\n new google.maps.LatLng( 0.467051550000000E+02, -0.117688865000000E+03),\n new google.maps.LatLng( 0.467044470000000E+02, -0.117690228000000E+03),\n new google.maps.LatLng( 0.467029150000000E+02, -0.117700262000000E+03),\n new google.maps.LatLng( 0.467024790000000E+02, -0.117712224000000E+03),\n new google.maps.LatLng( 0.467002100000000E+02, -0.117727273000000E+03),\n new google.maps.LatLng( 0.467002100000000E+02, -0.117727273000000E+03),\n new google.maps.LatLng( 0.467010330000000E+02, -0.117729267000000E+03),\n new google.maps.LatLng( 0.467045750000000E+02, -0.117733656000000E+03),\n new google.maps.LatLng( 0.467062190000000E+02, -0.117737712000000E+03),\n new google.maps.LatLng( 0.467070390000000E+02, -0.117741832000000E+03),\n new google.maps.LatLng( 0.467088420000000E+02, -0.117746985000000E+03),\n new google.maps.LatLng( 0.467154710000000E+02, -0.117752957000000E+03),\n new google.maps.LatLng( 0.467182130000000E+02, -0.117749654000000E+03),\n new google.maps.LatLng( 0.467263300000000E+02, -0.117744511000000E+03),\n new google.maps.LatLng( 0.467290980000000E+02, -0.117739428000000E+03),\n new google.maps.LatLng( 0.467305390000000E+02, -0.117737834000000E+03),\n new google.maps.LatLng( 0.467365760000000E+02, -0.117734316000000E+03),\n new google.maps.LatLng( 0.467371640000000E+02, -0.117745155000000E+03),\n new google.maps.LatLng( 0.467369790000000E+02, -0.117751038000000E+03),\n new google.maps.LatLng( 0.467362710000000E+02, -0.117753234000000E+03),\n new google.maps.LatLng( 0.467325930000000E+02, -0.117756063000000E+03),\n new google.maps.LatLng( 0.467240260000000E+02, -0.117767540000000E+03),\n new google.maps.LatLng( 0.467200950000000E+02, -0.117769039000000E+03),\n new google.maps.LatLng( 0.467150680000000E+02, -0.117774261000000E+03),\n new google.maps.LatLng( 0.467138350000000E+02, -0.117777485000000E+03),\n new google.maps.LatLng( 0.467092650000000E+02, -0.117783669000000E+03),\n new google.maps.LatLng( 0.466985910000000E+02, -0.117789589000000E+03),\n new google.maps.LatLng( 0.466930830000000E+02, -0.117791949000000E+03),\n new google.maps.LatLng( 0.466892200000000E+02, -0.117794674000000E+03),\n new google.maps.LatLng( 0.466882830000000E+02, -0.117796070000000E+03),\n new google.maps.LatLng( 0.466867760000000E+02, -0.117801982000000E+03),\n new google.maps.LatLng( 0.466854270000000E+02, -0.117804175000000E+03),\n new google.maps.LatLng( 0.466800100000000E+02, -0.117809490000000E+03),\n new google.maps.LatLng( 0.466770610000000E+02, -0.117810686000000E+03),\n new google.maps.LatLng( 0.466743180000000E+02, -0.117815700000000E+03),\n new google.maps.LatLng( 0.466743180000000E+02, -0.117815700000000E+03),\n new google.maps.LatLng( 0.466732890000000E+02, -0.117816663000000E+03),\n new google.maps.LatLng( 0.466718260000000E+02, -0.117819453000000E+03),\n new google.maps.LatLng( 0.466710260000000E+02, -0.117827189000000E+03),\n new google.maps.LatLng( 0.466715730000000E+02, -0.117833499000000E+03),\n new google.maps.LatLng( 0.466702240000000E+02, -0.117837716000000E+03),\n new google.maps.LatLng( 0.466681200000000E+02, -0.117840039000000E+03),\n new google.maps.LatLng( 0.466678910000000E+02, -0.117842662000000E+03),\n new google.maps.LatLng( 0.466690550000000E+02, -0.117847777000000E+03),\n new google.maps.LatLng( 0.466745360000000E+02, -0.117859835000000E+03),\n new google.maps.LatLng( 0.466765900000000E+02, -0.117866346000000E+03),\n new google.maps.LatLng( 0.466770470000000E+02, -0.117883158000000E+03),\n new google.maps.LatLng( 0.466809360000000E+02, -0.117891424000000E+03),\n new google.maps.LatLng( 0.466802200000000E+02, -0.117899343000000E+03),\n new google.maps.LatLng( 0.466803690000000E+02, -0.117902617000000E+03),\n new google.maps.LatLng( 0.466792270000000E+02, -0.117906370000000E+03),\n new google.maps.LatLng( 0.466798450000000E+02, -0.117909824000000E+03),\n new google.maps.LatLng( 0.466824510000000E+02, -0.117909524000000E+03),\n new google.maps.LatLng( 0.466835930000000E+02, -0.117907796000000E+03),\n new google.maps.LatLng( 0.466847580000000E+02, -0.117904308000000E+03),\n new google.maps.LatLng( 0.466960950000000E+02, -0.117903770000000E+03),\n new google.maps.LatLng( 0.466994100000000E+02, -0.117904664000000E+03),\n new google.maps.LatLng( 0.467003710000000E+02, -0.117906923000000E+03),\n new google.maps.LatLng( 0.467017420000000E+02, -0.117907089000000E+03),\n new google.maps.LatLng( 0.467097860000000E+02, -0.117901269000000E+03),\n new google.maps.LatLng( 0.467109270000000E+02, -0.117896317000000E+03),\n new google.maps.LatLng( 0.467118440000000E+02, -0.117895370000000E+03),\n new google.maps.LatLng( 0.467109740000000E+02, -0.117899175000000E+03),\n new google.maps.LatLng( 0.467107470000000E+02, -0.117903827000000E+03),\n new google.maps.LatLng( 0.467132390000000E+02, -0.117904724000000E+03),\n new google.maps.LatLng( 0.467136050000000E+02, -0.117906019000000E+03),\n new google.maps.LatLng( 0.467144510000000E+02, -0.117906551000000E+03),\n new google.maps.LatLng( 0.467190440000000E+02, -0.117905052000000E+03),\n new google.maps.LatLng( 0.467222210000000E+02, -0.117904818000000E+03),\n new google.maps.LatLng( 0.467224730000000E+02, -0.117906712000000E+03),\n new google.maps.LatLng( 0.467204110000000E+02, -0.117914557000000E+03),\n new google.maps.LatLng( 0.467124420000000E+02, -0.117920044000000E+03),\n new google.maps.LatLng( 0.467043050000000E+02, -0.117926990000000E+03),\n new google.maps.LatLng( 0.467082590000000E+02, -0.117932572000000E+03),\n new google.maps.LatLng( 0.467091740000000E+02, -0.117932805000000E+03),\n new google.maps.LatLng( 0.467115060000000E+02, -0.117931276000000E+03),\n new google.maps.LatLng( 0.467138830000000E+02, -0.117932971000000E+03),\n new google.maps.LatLng( 0.467141350000000E+02, -0.117934898000000E+03),\n new google.maps.LatLng( 0.467147750000000E+02, -0.117935230000000E+03),\n new google.maps.LatLng( 0.467149120000000E+02, -0.117935961000000E+03),\n new google.maps.LatLng( 0.467127620000000E+02, -0.117940148000000E+03),\n new google.maps.LatLng( 0.467128760000000E+02, -0.117941910000000E+03),\n new google.maps.LatLng( 0.467181570000000E+02, -0.117942276000000E+03),\n new google.maps.LatLng( 0.467202370000000E+02, -0.117943938000000E+03),\n new google.maps.LatLng( 0.467162820000000E+02, -0.117949222000000E+03),\n new google.maps.LatLng( 0.467083490000000E+02, -0.117955833000000E+03),\n new google.maps.LatLng( 0.467048060000000E+02, -0.117960250000000E+03),\n new google.maps.LatLng( 0.467018340000000E+02, -0.117962641000000E+03),\n new google.maps.LatLng( 0.466977390000000E+02, -0.117971510000000E+03),\n new google.maps.LatLng( 0.466960920000000E+02, -0.117977289000000E+03),\n new google.maps.LatLng( 0.466917470000000E+02, -0.117981472000000E+03),\n new google.maps.LatLng( 0.466887740000000E+02, -0.117985954000000E+03),\n new google.maps.LatLng( 0.466875380000000E+02, -0.117990735000000E+03),\n new google.maps.LatLng( 0.466875800000000E+02, -0.118001947000000E+03),\n new google.maps.LatLng( 0.466856390000000E+02, -0.118008460000000E+03),\n new google.maps.LatLng( 0.466820310000000E+02, -0.118016068000000E+03),\n new google.maps.LatLng( 0.466770940000000E+02, -0.118014877000000E+03),\n new google.maps.LatLng( 0.466723180000000E+02, -0.118017571000000E+03),\n new google.maps.LatLng( 0.466703290000000E+02, -0.118017041000000E+03),\n new google.maps.LatLng( 0.466689810000000E+02, -0.118018205000000E+03),\n new google.maps.LatLng( 0.466675190000000E+02, -0.118020863000000E+03),\n new google.maps.LatLng( 0.466631990000000E+02, -0.118023124000000E+03),\n new google.maps.LatLng( 0.466607310000000E+02, -0.118025283000000E+03),\n new google.maps.LatLng( 0.466576230000000E+02, -0.118026547000000E+03),\n new google.maps.LatLng( 0.466562520000000E+02, -0.118027876000000E+03),\n new google.maps.LatLng( 0.466531440000000E+02, -0.118027944000000E+03),\n new google.maps.LatLng( 0.466500120000000E+02, -0.118026917000000E+03),\n new google.maps.LatLng( 0.466503770000000E+02, -0.118025788000000E+03),\n new google.maps.LatLng( 0.466533930000000E+02, -0.118022599000000E+03),\n new google.maps.LatLng( 0.466565930000000E+02, -0.118021070000000E+03),\n new google.maps.LatLng( 0.466572780000000E+02, -0.118019608000000E+03),\n new google.maps.LatLng( 0.466570030000000E+02, -0.118017185000000E+03),\n new google.maps.LatLng( 0.466593110000000E+02, -0.118016652000000E+03),\n new google.maps.LatLng( 0.466591050000000E+02, -0.118016155000000E+03),\n new google.maps.LatLng( 0.466575280000000E+02, -0.118015492000000E+03),\n new google.maps.LatLng( 0.466568640000000E+02, -0.118013833000000E+03),\n new google.maps.LatLng( 0.466573670000000E+02, -0.118012903000000E+03),\n new google.maps.LatLng( 0.466617550000000E+02, -0.118009480000000E+03),\n new google.maps.LatLng( 0.466641540000000E+02, -0.118009245000000E+03),\n new google.maps.LatLng( 0.466642680000000E+02, -0.118008547000000E+03),\n new google.maps.LatLng( 0.466632840000000E+02, -0.118006257000000E+03),\n new google.maps.LatLng( 0.466636490000000E+02, -0.118003169000000E+03),\n new google.maps.LatLng( 0.466678080000000E+02, -0.118001448000000E+03),\n new google.maps.LatLng( 0.466692720000000E+02, -0.117995831000000E+03),\n new google.maps.LatLng( 0.466701410000000E+02, -0.117994636000000E+03),\n new google.maps.LatLng( 0.466689290000000E+02, -0.117995731000000E+03),\n new google.maps.LatLng( 0.466680042578125E+02, -0.117998940756445E+03),\n new google.maps.LatLng( 0.466665730000000E+02, -0.118001516000000E+03),\n new google.maps.LatLng( 0.466636020000000E+02, -0.118002206000000E+03),\n new google.maps.LatLng( 0.466626660000000E+02, -0.118003336000000E+03),\n new google.maps.LatLng( 0.466623010000000E+02, -0.118005660000000E+03),\n new google.maps.LatLng( 0.466610900000000E+02, -0.118006525000000E+03),\n new google.maps.LatLng( 0.466601070000000E+02, -0.118008152000000E+03),\n new google.maps.LatLng( 0.466588960000000E+02, -0.118008519000000E+03),\n new google.maps.LatLng( 0.466566800000000E+02, -0.118010215000000E+03),\n new google.maps.LatLng( 0.466559030000000E+02, -0.118012008000000E+03),\n new google.maps.LatLng( 0.466536870000000E+02, -0.118012409000000E+03),\n new google.maps.LatLng( 0.466528190000000E+02, -0.118014165000000E+03),\n new google.maps.LatLng( 0.466530250000000E+02, -0.118015430000000E+03),\n new google.maps.LatLng( 0.466508770000000E+02, -0.118015797000000E+03),\n new google.maps.LatLng( 0.466490930000000E+02, -0.118014139000000E+03),\n new google.maps.LatLng( 0.466480850000000E+02, -0.118008795000000E+03),\n new google.maps.LatLng( 0.466463930000000E+02, -0.118007668000000E+03),\n new google.maps.LatLng( 0.466437190000000E+02, -0.118007173000000E+03),\n new google.maps.LatLng( 0.466412050000000E+02, -0.118007807000000E+03),\n new google.maps.LatLng( 0.466405640000000E+02, -0.118007044000000E+03),\n new google.maps.LatLng( 0.466404720000000E+02, -0.118005385000000E+03),\n new google.maps.LatLng( 0.466360600000000E+02, -0.118003963000000E+03),\n new google.maps.LatLng( 0.466351640000000E+02, -0.118000591000000E+03),\n new google.maps.LatLng( 0.466332480000000E+02, -0.118002040000000E+03),\n new google.maps.LatLng( 0.466328890000000E+02, -0.118000737000000E+03),\n new google.maps.LatLng( 0.466248700000000E+02, -0.118000778000000E+03),\n new google.maps.LatLng( 0.466245010000000E+02, -0.118000363000000E+03),\n new google.maps.LatLng( 0.466278120000000E+02, -0.117989283000000E+03),\n new google.maps.LatLng( 0.466276070000000E+02, -0.117987524000000E+03),\n new google.maps.LatLng( 0.466258250000000E+02, -0.117985001000000E+03),\n new google.maps.LatLng( 0.466253590000000E+02, -0.117980422000000E+03),\n new google.maps.LatLng( 0.466277030000000E+02, -0.117975414000000E+03),\n new google.maps.LatLng( 0.466339900000000E+02, -0.117969910000000E+03),\n new google.maps.LatLng( 0.466381280000000E+02, -0.117964801000000E+03),\n new google.maps.LatLng( 0.466411490000000E+02, -0.117951494000000E+03),\n new google.maps.LatLng( 0.466422920000000E+02, -0.117948309000000E+03),\n new google.maps.LatLng( 0.466468640000000E+02, -0.117943265000000E+03),\n new google.maps.LatLng( 0.466493100000000E+02, -0.117938087000000E+03),\n new google.maps.LatLng( 0.466501320000000E+02, -0.117934402000000E+03),\n new google.maps.LatLng( 0.466561670000000E+02, -0.117925604000000E+03),\n new google.maps.LatLng( 0.466581780000000E+02, -0.117919961000000E+03),\n new google.maps.LatLng( 0.466632970000000E+02, -0.117915145000000E+03),\n new google.maps.LatLng( 0.466563030000000E+02, -0.117916342000000E+03),\n new google.maps.LatLng( 0.466539480000000E+02, -0.117915712000000E+03),\n new google.maps.LatLng( 0.466509310000000E+02, -0.117913689000000E+03),\n new google.maps.LatLng( 0.466488030000000E+02, -0.117905159000000E+03),\n new google.maps.LatLng( 0.466477050000000E+02, -0.117903235000000E+03),\n new google.maps.LatLng( 0.466476130000000E+02, -0.117899650000000E+03),\n new google.maps.LatLng( 0.466464460000000E+02, -0.117897096000000E+03),\n new google.maps.LatLng( 0.466428800000000E+02, -0.117897231000000E+03),\n new google.maps.LatLng( 0.466405480000000E+02, -0.117895705000000E+03),\n new google.maps.LatLng( 0.466388570000000E+02, -0.117895441000000E+03),\n new google.maps.LatLng( 0.466370060000000E+02, -0.117896040000000E+03),\n new google.maps.LatLng( 0.466359770000000E+02, -0.117895510000000E+03),\n new google.maps.LatLng( 0.466336220000000E+02, -0.117896507000000E+03),\n new google.maps.LatLng( 0.466327760000000E+02, -0.117896110000000E+03),\n new google.maps.LatLng( 0.466317010000000E+02, -0.117894551000000E+03),\n new google.maps.LatLng( 0.466288440000000E+02, -0.117894951000000E+03),\n new google.maps.LatLng( 0.466244050000000E+02, -0.117892469000000E+03),\n new google.maps.LatLng( 0.466203010000000E+02, -0.117893534000000E+03),\n new google.maps.LatLng( 0.466180610000000E+02, -0.117893204000000E+03),\n new google.maps.LatLng( 0.466160500000000E+02, -0.117894134000000E+03),\n new google.maps.LatLng( 0.466141070000000E+02, -0.117893904000000E+03),\n new google.maps.LatLng( 0.466113870000000E+02, -0.117892646000000E+03),\n new google.maps.LatLng( 0.466097860000000E+02, -0.117890490000000E+03),\n new google.maps.LatLng( 0.466090320000000E+02, -0.117890889000000E+03),\n new google.maps.LatLng( 0.466087590000000E+02, -0.117894041000000E+03),\n new google.maps.LatLng( 0.466102920000000E+02, -0.117900540000000E+03),\n new google.maps.LatLng( 0.466058590000000E+02, -0.117908139000000E+03),\n new google.maps.LatLng( 0.466049910000000E+02, -0.117908802000000E+03),\n new google.maps.LatLng( 0.466009910000000E+02, -0.117909700000000E+03),\n new google.maps.LatLng( 0.466012190000000E+02, -0.117907411000000E+03),\n new google.maps.LatLng( 0.466006470000000E+02, -0.117907345000000E+03),\n new google.maps.LatLng( 0.465998020000000E+02, -0.117908241000000E+03),\n new google.maps.LatLng( 0.465985440000000E+02, -0.117905523000000E+03),\n new google.maps.LatLng( 0.465958240000000E+02, -0.117903766000000E+03),\n new google.maps.LatLng( 0.465941540000000E+02, -0.117900849000000E+03),\n new google.maps.LatLng( 0.465939250000000E+02, -0.117898694000000E+03),\n new google.maps.LatLng( 0.465931250000000E+02, -0.117897833000000E+03),\n new google.maps.LatLng( 0.465935460000000E+02, -0.117890561000000E+03),\n new google.maps.LatLng( 0.465935460000000E+02, -0.117890561000000E+03),\n new google.maps.LatLng( 0.465922960000000E+02, -0.117895000000000E+03),\n new google.maps.LatLng( 0.465919910000000E+02, -0.117900571000000E+03),\n new google.maps.LatLng( 0.465929650000000E+02, -0.117925509000000E+03),\n new google.maps.LatLng( 0.465929650000000E+02, -0.117925509000000E+03),\n new google.maps.LatLng( 0.465933590000000E+02, -0.117923895000000E+03),\n new google.maps.LatLng( 0.465978620000000E+02, -0.117923530000000E+03),\n new google.maps.LatLng( 0.465927420000000E+02, -0.117926349000000E+03),\n new google.maps.LatLng( 0.465945020000000E+02, -0.117936297000000E+03),\n new google.maps.LatLng( 0.465948900000000E+02, -0.117941802000000E+03),\n new google.maps.LatLng( 0.465940200000000E+02, -0.117953640000000E+03),\n new google.maps.LatLng( 0.465905630000000E+02, -0.117977711000000E+03),\n new google.maps.LatLng( 0.465901220000000E+02, -0.117990641000000E+03),\n new google.maps.LatLng( 0.465908030000000E+02, -0.118001057000000E+03),\n new google.maps.LatLng( 0.465904220000000E+02, -0.118014325000000E+03),\n new google.maps.LatLng( 0.465886440000000E+02, -0.118027357000000E+03),\n new google.maps.LatLng( 0.465860740000000E+02, -0.118026807000000E+03),\n new google.maps.LatLng( 0.465860740000000E+02, -0.118026807000000E+03),\n new google.maps.LatLng( 0.465859470000000E+02, -0.118028950000000E+03),\n new google.maps.LatLng( 0.465859470000000E+02, -0.118028950000000E+03),\n new google.maps.LatLng( 0.465879350000000E+02, -0.118029048000000E+03),\n new google.maps.LatLng( 0.465870910000000E+02, -0.118034751000000E+03),\n new google.maps.LatLng( 0.465841890000000E+02, -0.118042013000000E+03),\n new google.maps.LatLng( 0.465820640000000E+02, -0.118045925000000E+03),\n new google.maps.LatLng( 0.465791160000000E+02, -0.118052490000000E+03),\n new google.maps.LatLng( 0.465774710000000E+02, -0.118058225000000E+03),\n new google.maps.LatLng( 0.465766250000000E+02, -0.118064258000000E+03),\n new google.maps.LatLng( 0.465757330000000E+02, -0.118068202000000E+03),\n new google.maps.LatLng( 0.465755960000000E+02, -0.118071020000000E+03),\n new google.maps.LatLng( 0.465773530000000E+02, -0.118088854000000E+03),\n new google.maps.LatLng( 0.465762330000000E+02, -0.118090610000000E+03),\n new google.maps.LatLng( 0.465756820000000E+02, -0.118095052000000E+03),\n new google.maps.LatLng( 0.465747670000000E+02, -0.118097836000000E+03),\n new google.maps.LatLng( 0.465723430000000E+02, -0.118101679000000E+03),\n new google.maps.LatLng( 0.465704910000000E+02, -0.118103434000000E+03),\n new google.maps.LatLng( 0.465624660000000E+02, -0.118109725000000E+03),\n new google.maps.LatLng( 0.465602480000000E+02, -0.118111976000000E+03),\n new google.maps.LatLng( 0.465591500000000E+02, -0.118114493000000E+03),\n new google.maps.LatLng( 0.465585080000000E+02, -0.118118502000000E+03),\n new google.maps.LatLng( 0.465582990000000E+02, -0.118123738000000E+03),\n new google.maps.LatLng( 0.465592850000000E+02, -0.118131377000000E+03),\n new google.maps.LatLng( 0.465595610000000E+02, -0.118138137000000E+03),\n new google.maps.LatLng( 0.465594710000000E+02, -0.118141749000000E+03),\n new google.maps.LatLng( 0.465590390000000E+02, -0.118146687000000E+03),\n new google.maps.LatLng( 0.465579670000000E+02, -0.118153745000000E+03),\n new google.maps.LatLng( 0.465569170000000E+02, -0.118158021000000E+03),\n new google.maps.LatLng( 0.465566670000000E+02, -0.118164151000000E+03),\n new google.maps.LatLng( 0.465580620000000E+02, -0.118171275000000E+03),\n new google.maps.LatLng( 0.465598910000000E+02, -0.118175217000000E+03),\n new google.maps.LatLng( 0.465621090000000E+02, -0.118177503000000E+03),\n new google.maps.LatLng( 0.465668630000000E+02, -0.118181149000000E+03),\n new google.maps.LatLng( 0.465680060000000E+02, -0.118182342000000E+03),\n new google.maps.LatLng( 0.465765080000000E+02, -0.118194837000000E+03),\n new google.maps.LatLng( 0.465864720000000E+02, -0.118207603000000E+03),\n new google.maps.LatLng( 0.465908590000000E+02, -0.118212214000000E+03),\n new google.maps.LatLng( 0.465921170000000E+02, -0.118212347000000E+03),\n new google.maps.LatLng( 0.465995010000000E+02, -0.118207939000000E+03),\n new google.maps.LatLng( 0.466016500000000E+02, -0.118205984000000E+03),\n new google.maps.LatLng( 0.466034330000000E+02, -0.118202370000000E+03),\n new google.maps.LatLng( 0.466066330000000E+02, -0.118198922000000E+03),\n new google.maps.LatLng( 0.466093540000000E+02, -0.118196734000000E+03),\n new google.maps.LatLng( 0.466106790000000E+02, -0.118196270000000E+03),\n new google.maps.LatLng( 0.466161880000000E+02, -0.118196237000000E+03),\n new google.maps.LatLng( 0.466211930000000E+02, -0.118197366000000E+03),\n new google.maps.LatLng( 0.466222220000000E+02, -0.118197665000000E+03),\n new google.maps.LatLng( 0.466243680000000E+02, -0.118198826000000E+03),\n new google.maps.LatLng( 0.466267000000000E+02, -0.118202905000000E+03),\n new google.maps.LatLng( 0.466278430000000E+02, -0.118205494000000E+03),\n new google.maps.LatLng( 0.466325960000000E+02, -0.118212828000000E+03),\n new google.maps.LatLng( 0.466341950000000E+02, -0.118215781000000E+03),\n new google.maps.LatLng( 0.466349260000000E+02, -0.118216014000000E+03),\n new google.maps.LatLng( 0.466369380000000E+02, -0.118214721000000E+03),\n new google.maps.LatLng( 0.466388120000000E+02, -0.118213925000000E+03),\n new google.maps.LatLng( 0.466395890000000E+02, -0.118214224000000E+03),\n new google.maps.LatLng( 0.466404800000000E+02, -0.118215951000000E+03),\n new google.maps.LatLng( 0.466407410000000E+02, -0.118218037000000E+03),\n new google.maps.LatLng( 0.466421760000000E+02, -0.118220878000000E+03),\n new google.maps.LatLng( 0.466427510000000E+02, -0.118221323000000E+03),\n new google.maps.LatLng( 0.466441400000000E+02, -0.118221444000000E+03),\n new google.maps.LatLng( 0.466455790000000E+02, -0.118222117000000E+03),\n new google.maps.LatLng( 0.466468390000000E+02, -0.118224946000000E+03),\n new google.maps.LatLng( 0.466484670000000E+02, -0.118226491000000E+03),\n new google.maps.LatLng( 0.466497770000000E+02, -0.118227143000000E+03),\n new google.maps.LatLng( 0.466510940000000E+02, -0.118227418000000E+03),\n new google.maps.LatLng( 0.466532010000000E+02, -0.118227052000000E+03),\n new google.maps.LatLng( 0.466550550000000E+02, -0.118228699000000E+03),\n new google.maps.LatLng( 0.466577380000000E+02, -0.118229307000000E+03),\n new google.maps.LatLng( 0.466625450000000E+02, -0.118226769000000E+03),\n new google.maps.LatLng( 0.466628690000000E+02, -0.118224386000000E+03),\n new google.maps.LatLng( 0.466630690000000E+02, -0.118223821000000E+03),\n new google.maps.LatLng( 0.466637220000000E+02, -0.118223427000000E+03),\n new google.maps.LatLng( 0.466676540000000E+02, -0.118223131000000E+03),\n new google.maps.LatLng( 0.466683820000000E+02, -0.118223751000000E+03),\n new google.maps.LatLng( 0.466712410000000E+02, -0.118223864000000E+03),\n new google.maps.LatLng( 0.466740890000000E+02, -0.118222774000000E+03),\n new google.maps.LatLng( 0.466764810000000E+02, -0.118218166000000E+03),\n new google.maps.LatLng( 0.466781590000000E+02, -0.118217295000000E+03),\n new google.maps.LatLng( 0.466789170000000E+02, -0.118217208000000E+03),\n new google.maps.LatLng( 0.466860030000000E+02, -0.118221002000000E+03),\n new google.maps.LatLng( 0.466904090000000E+02, -0.118222611000000E+03),\n new google.maps.LatLng( 0.466937590000000E+02, -0.118225932000000E+03),\n new google.maps.LatLng( 0.467000330000000E+02, -0.118229029000000E+03),\n new google.maps.LatLng( 0.467028830000000E+02, -0.118231221000000E+03),\n new google.maps.LatLng( 0.467075330000000E+02, -0.118233731000000E+03),\n new google.maps.LatLng( 0.467124110000000E+02, -0.118236002000000E+03),\n new google.maps.LatLng( 0.467167520000000E+02, -0.118238708000000E+03),\n new google.maps.LatLng( 0.467185760000000E+02, -0.118240306000000E+03),\n new google.maps.LatLng( 0.467218520000000E+02, -0.118242212000000E+03),\n new google.maps.LatLng( 0.467281830000000E+02, -0.118245354000000E+03),\n new google.maps.LatLng( 0.467316410000000E+02, -0.118248176000000E+03),\n new google.maps.LatLng( 0.467334050000000E+02, -0.118248873000000E+03),\n new google.maps.LatLng( 0.467340890000000E+02, -0.118248310000000E+03),\n new google.maps.LatLng( 0.467345230000000E+02, -0.118245589000000E+03),\n new google.maps.LatLng( 0.467350100000000E+02, -0.118244370000000E+03),\n new google.maps.LatLng( 0.467373280000000E+02, -0.118241290000000E+03),\n new google.maps.LatLng( 0.467376290000000E+02, -0.118240341000000E+03),\n new google.maps.LatLng( 0.467375120000000E+02, -0.118239418000000E+03),\n new google.maps.LatLng( 0.467343010000000E+02, -0.118235956000000E+03),\n new google.maps.LatLng( 0.467338610000000E+02, -0.118235280000000E+03),\n new google.maps.LatLng( 0.467336280000000E+02, -0.118234261000000E+03),\n new google.maps.LatLng( 0.467344660000000E+02, -0.118230265000000E+03),\n new google.maps.LatLng( 0.467360270000000E+02, -0.118227741000000E+03),\n new google.maps.LatLng( 0.467363610000000E+02, -0.118226801000000E+03),\n new google.maps.LatLng( 0.467364660000000E+02, -0.118222830000000E+03),\n new google.maps.LatLng( 0.467370370000000E+02, -0.118218018000000E+03),\n new google.maps.LatLng( 0.467377950000000E+02, -0.118215061000000E+03),\n new google.maps.LatLng( 0.467383130000000E+02, -0.118210911000000E+03),\n new google.maps.LatLng( 0.467399590000000E+02, -0.118204852000000E+03),\n new google.maps.LatLng( 0.467432440000000E+02, -0.118202596000000E+03),\n new google.maps.LatLng( 0.467434340000000E+02, -0.118202772000000E+03),\n new google.maps.LatLng( 0.467434340000000E+02, -0.118202772000000E+03),\n new google.maps.LatLng( 0.467460340000000E+02, -0.118200180000000E+03),\n new google.maps.LatLng( 0.467501920000000E+02, -0.118193695000000E+03),\n new google.maps.LatLng( 0.467512940000000E+02, -0.118189638000000E+03),\n new google.maps.LatLng( 0.467498700000000E+02, -0.118186463000000E+03),\n new google.maps.LatLng( 0.467479550000000E+02, -0.118184253000000E+03),\n new google.maps.LatLng( 0.467473390000000E+02, -0.118181394000000E+03),\n new google.maps.LatLng( 0.467466060000000E+02, -0.118166231000000E+03),\n new google.maps.LatLng( 0.467469020000000E+02, -0.118162107000000E+03),\n new google.maps.LatLng( 0.467513140000000E+02, -0.118156882000000E+03),\n new google.maps.LatLng( 0.467536220000000E+02, -0.118155019000000E+03),\n new google.maps.LatLng( 0.467559990000000E+02, -0.118156680000000E+03),\n new google.maps.LatLng( 0.467595190000000E+02, -0.118155747000000E+03),\n new google.maps.LatLng( 0.467590000000000E+02, -0.118147867000000E+03),\n new google.maps.LatLng( 0.467590000000000E+02, -0.118147867000000E+03),\n new google.maps.LatLng( 0.467603160000000E+02, -0.118144271000000E+03),\n new google.maps.LatLng( 0.467601750000000E+02, -0.118136156000000E+03),\n new google.maps.LatLng( 0.467611760000000E+02, -0.118126841000000E+03),\n new google.maps.LatLng( 0.467645160000000E+02, -0.118117483000000E+03),\n new google.maps.LatLng( 0.467665510000000E+02, -0.118115754000000E+03),\n new google.maps.LatLng( 0.467675120000000E+02, -0.118113327000000E+03),\n new google.maps.LatLng( 0.467686320000000E+02, -0.118111964000000E+03),\n new google.maps.LatLng( 0.467703250000000E+02, -0.118111367000000E+03),\n new google.maps.LatLng( 0.467719940000000E+02, -0.118109572000000E+03),\n new google.maps.LatLng( 0.467731840000000E+02, -0.118106546000000E+03),\n new google.maps.LatLng( 0.467726370000000E+02, -0.118102620000000E+03),\n new google.maps.LatLng( 0.467758610000000E+02, -0.118098197000000E+03),\n new google.maps.LatLng( 0.467788790000000E+02, -0.118095006000000E+03),\n new google.maps.LatLng( 0.467766410000000E+02, -0.118086553000000E+03),\n new google.maps.LatLng( 0.467762770000000E+02, -0.118074043000000E+03),\n new google.maps.LatLng( 0.467754550000000E+02, -0.118072613000000E+03),\n new google.maps.LatLng( 0.467738320000000E+02, -0.118072879000000E+03),\n new google.maps.LatLng( 0.467723230000000E+02, -0.118070517000000E+03),\n new google.maps.LatLng( 0.467702670000000E+02, -0.118055846000000E+03),\n new google.maps.LatLng( 0.467684610000000E+02, -0.118049326000000E+03),\n new google.maps.LatLng( 0.467683010000000E+02, -0.118046731000000E+03),\n new google.maps.LatLng( 0.467686430000000E+02, -0.118045467000000E+03),\n new google.maps.LatLng( 0.467711570000000E+02, -0.118041873000000E+03),\n new google.maps.LatLng( 0.467743340000000E+02, -0.118041705000000E+03),\n new google.maps.LatLng( 0.467768710000000E+02, -0.118040906000000E+03),\n new google.maps.LatLng( 0.467810300000000E+02, -0.118038874000000E+03),\n new google.maps.LatLng( 0.467847320000000E+02, -0.118036045000000E+03),\n new google.maps.LatLng( 0.467880680000000E+02, -0.118027024000000E+03),\n new google.maps.LatLng( 0.467872210000000E+02, -0.118024696000000E+03),\n new google.maps.LatLng( 0.467834490000000E+02, -0.118022070000000E+03),\n new google.maps.LatLng( 0.467828550000000E+02, -0.118020972000000E+03),\n new google.maps.LatLng( 0.467833340000000E+02, -0.118018277000000E+03),\n new google.maps.LatLng( 0.467847040000000E+02, -0.118015613000000E+03),\n new google.maps.LatLng( 0.467904850000000E+02, -0.118012613000000E+03),\n new google.maps.LatLng( 0.467914450000000E+02, -0.118012612000000E+03),\n new google.maps.LatLng( 0.467926110000000E+02, -0.118013277000000E+03),\n new google.maps.LatLng( 0.467938240000000E+02, -0.118015771000000E+03),\n new google.maps.LatLng( 0.467970240000000E+02, -0.118017532000000E+03),\n new google.maps.LatLng( 0.467995160000000E+02, -0.118017896000000E+03),\n new google.maps.LatLng( 0.468032860000000E+02, -0.118016529000000E+03),\n new google.maps.LatLng( 0.468045200000000E+02, -0.118016528000000E+03),\n new google.maps.LatLng( 0.468118810000000E+02, -0.118019751000000E+03),\n new google.maps.LatLng( 0.468138470000000E+02, -0.118019816000000E+03),\n new google.maps.LatLng( 0.468150350000000E+02, -0.118018416000000E+03),\n new google.maps.LatLng( 0.468148040000000E+02, -0.118011525000000E+03),\n new google.maps.LatLng( 0.468225090000000E+02, -0.117997528000000E+03),\n new google.maps.LatLng( 0.468251890000000E+02, -0.117998952000000E+03),\n new google.maps.LatLng( 0.468279350000000E+02, -0.117997984000000E+03),\n new google.maps.LatLng( 0.468300140000000E+02, -0.117996391000000E+03),\n new google.maps.LatLng( 0.468322960000000E+02, -0.117991960000000E+03),\n new google.maps.LatLng( 0.468380810000000E+02, -0.117993603000000E+03),\n new google.maps.LatLng( 0.468380720000000E+02, -0.117999903000000E+03),\n new google.maps.LatLng( 0.468387540000000E+02, -0.118003275000000E+03),\n new google.maps.LatLng( 0.468394400000000E+02, -0.118004107000000E+03),\n new google.maps.LatLng( 0.468433940000000E+02, -0.118004835000000E+03),\n new google.maps.LatLng( 0.468477370000000E+02, -0.118004631000000E+03),\n new google.maps.LatLng( 0.468481940000000E+02, -0.118004431000000E+03),\n new google.maps.LatLng( 0.468492440000000E+02, -0.118001059000000E+03),\n new google.maps.LatLng( 0.468492750000000E+02, -0.118001012000000E+03),\n new google.maps.LatLng( 0.468525050000000E+02, -0.117994489000000E+03),\n new google.maps.LatLng( 0.468574140000000E+02, -0.117988770000000E+03),\n new google.maps.LatLng( 0.468610530000000E+02, -0.117988229000000E+03),\n new google.maps.LatLng( 0.468618530000000E+02, -0.117987600000000E+03),\n new google.maps.LatLng( 0.468632970000000E+02, -0.117976873000000E+03),\n new google.maps.LatLng( 0.468672540000000E+02, -0.117970807000000E+03),\n new google.maps.LatLng( 0.468683030000000E+02, -0.117970753000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.464234700000000E+02, -0.120744112000000E+03),\n new google.maps.LatLng( 0.464263840000000E+02, -0.120744030000000E+03),\n new google.maps.LatLng( 0.464266590000000E+02, -0.120740429000000E+03),\n new google.maps.LatLng( 0.464335170000000E+02, -0.120734519000000E+03),\n new google.maps.LatLng( 0.464335170000000E+02, -0.120734519000000E+03),\n new google.maps.LatLng( 0.464335460000000E+02, -0.120712972000000E+03),\n new google.maps.LatLng( 0.464187620000000E+02, -0.120712667000000E+03),\n new google.maps.LatLng( 0.464187420000000E+02, -0.120702061000000E+03),\n new google.maps.LatLng( 0.464219410000000E+02, -0.120702392000000E+03),\n new google.maps.LatLng( 0.464256200000000E+02, -0.120701964000000E+03),\n new google.maps.LatLng( 0.464287960000000E+02, -0.120696875000000E+03),\n new google.maps.LatLng( 0.464307390000000E+02, -0.120691291000000E+03),\n new google.maps.LatLng( 0.464335950000000E+02, -0.120691324000000E+03),\n new google.maps.LatLng( 0.464339590000000E+02, -0.120671328000000E+03),\n new google.maps.LatLng( 0.464326090000000E+02, -0.120665347000000E+03),\n new google.maps.LatLng( 0.464299590000000E+02, -0.120665117000000E+03),\n new google.maps.LatLng( 0.464297970000000E+02, -0.120658706000000E+03),\n new google.maps.LatLng( 0.464287450000000E+02, -0.120655204000000E+03),\n new google.maps.LatLng( 0.464246080000000E+02, -0.120651936000000E+03),\n new google.maps.LatLng( 0.464190520000000E+02, -0.120650043000000E+03),\n new google.maps.LatLng( 0.464190550000000E+02, -0.120649462000000E+03),\n new google.maps.LatLng( 0.464298600000000E+02, -0.120649288000000E+03),\n new google.maps.LatLng( 0.464335480000000E+02, -0.120654511000000E+03),\n new google.maps.LatLng( 0.464334710000000E+02, -0.120631124000000E+03),\n new google.maps.LatLng( 0.464324820000000E+02, -0.120630283000000E+03),\n new google.maps.LatLng( 0.464268880000000E+02, -0.120619488000000E+03),\n new google.maps.LatLng( 0.464251280000000E+02, -0.120619949000000E+03),\n new google.maps.LatLng( 0.464240530000000E+02, -0.120622162000000E+03),\n new google.maps.LatLng( 0.464232530000000E+02, -0.120622425000000E+03),\n new google.maps.LatLng( 0.464206480000000E+02, -0.120621630000000E+03),\n new google.maps.LatLng( 0.464188960000000E+02, -0.120618963000000E+03),\n new google.maps.LatLng( 0.464188950000000E+02, -0.120607255000000E+03),\n new google.maps.LatLng( 0.464333360000000E+02, -0.120607300000000E+03),\n new google.maps.LatLng( 0.464333320000000E+02, -0.120605960000000E+03),\n new google.maps.LatLng( 0.464302540000000E+02, -0.120599564000000E+03),\n new google.maps.LatLng( 0.464268500000000E+02, -0.120596522000000E+03),\n new google.maps.LatLng( 0.464215030000000E+02, -0.120598303000000E+03),\n new google.maps.LatLng( 0.464189400000000E+02, -0.120596890000000E+03),\n new google.maps.LatLng( 0.464189270000000E+02, -0.120565659000000E+03),\n new google.maps.LatLng( 0.464234280000000E+02, -0.120565494000000E+03),\n new google.maps.LatLng( 0.464224450000000E+02, -0.120559414000000E+03),\n new google.maps.LatLng( 0.464189490000000E+02, -0.120559448000000E+03),\n new google.maps.LatLng( 0.464190160000000E+02, -0.120544118000000E+03),\n new google.maps.LatLng( 0.464112700000000E+02, -0.120544153000000E+03),\n new google.maps.LatLng( 0.464112910000000E+02, -0.120533979000000E+03),\n new google.maps.LatLng( 0.464046640000000E+02, -0.120534016000000E+03),\n new google.maps.LatLng( 0.464046520000000E+02, -0.120537843000000E+03),\n new google.maps.LatLng( 0.464038320000000E+02, -0.120538791000000E+03),\n new google.maps.LatLng( 0.463947790000000E+02, -0.120539075000000E+03),\n new google.maps.LatLng( 0.463943360000000E+02, -0.120540046000000E+03),\n new google.maps.LatLng( 0.463942930000000E+02, -0.120544185000000E+03),\n new google.maps.LatLng( 0.463900200000000E+02, -0.120544227000000E+03),\n new google.maps.LatLng( 0.463900220000000E+02, -0.120565163000000E+03),\n new google.maps.LatLng( 0.463825730000000E+02, -0.120564965000000E+03),\n new google.maps.LatLng( 0.463825270000000E+02, -0.120555455000000E+03),\n new google.maps.LatLng( 0.463820470000000E+02, -0.120554366000000E+03),\n new google.maps.LatLng( 0.463751450000000E+02, -0.120554103000000E+03),\n new google.maps.LatLng( 0.463751450000000E+02, -0.120554103000000E+03),\n new google.maps.LatLng( 0.463764030000000E+02, -0.120555159000000E+03),\n new google.maps.LatLng( 0.463814990000000E+02, -0.120555290000000E+03),\n new google.maps.LatLng( 0.463818870000000E+02, -0.120569455000000E+03),\n new google.maps.LatLng( 0.463823670000000E+02, -0.120570908000000E+03),\n new google.maps.LatLng( 0.463835780000000E+02, -0.120572625000000E+03),\n new google.maps.LatLng( 0.463850630000000E+02, -0.120571535000000E+03),\n new google.maps.LatLng( 0.463891080000000E+02, -0.120573814000000E+03),\n new google.maps.LatLng( 0.463903280000000E+02, -0.120575588000000E+03),\n new google.maps.LatLng( 0.463898740000000E+02, -0.120611558000000E+03),\n new google.maps.LatLng( 0.463923870000000E+02, -0.120614004000000E+03),\n new google.maps.LatLng( 0.463932320000000E+02, -0.120614170000000E+03),\n new google.maps.LatLng( 0.463972540000000E+02, -0.120613447000000E+03),\n new google.maps.LatLng( 0.463988540000000E+02, -0.120612359000000E+03),\n new google.maps.LatLng( 0.464039150000000E+02, -0.120611680000000E+03),\n new google.maps.LatLng( 0.464039900000000E+02, -0.120618295000000E+03),\n new google.maps.LatLng( 0.464029870000000E+02, -0.120617713000000E+03),\n new google.maps.LatLng( 0.463982120000000E+02, -0.120617840000000E+03),\n new google.maps.LatLng( 0.463957200000000E+02, -0.120619819000000E+03),\n new google.maps.LatLng( 0.463894590000000E+02, -0.120620308000000E+03),\n new google.maps.LatLng( 0.463859840000000E+02, -0.120623343000000E+03),\n new google.maps.LatLng( 0.463861200000000E+02, -0.120625324000000E+03),\n new google.maps.LatLng( 0.463906950000000E+02, -0.120642943000000E+03),\n new google.maps.LatLng( 0.463905930000000E+02, -0.120649460000000E+03),\n new google.maps.LatLng( 0.463862330000000E+02, -0.120649405000000E+03),\n new google.maps.LatLng( 0.463847570000000E+02, -0.120651797000000E+03),\n new google.maps.LatLng( 0.463820860000000E+02, -0.120658138000000E+03),\n new google.maps.LatLng( 0.463815160000000E+02, -0.120662630000000E+03),\n new google.maps.LatLng( 0.463830020000000E+02, -0.120667615000000E+03),\n new google.maps.LatLng( 0.463818150000000E+02, -0.120679832000000E+03),\n new google.maps.LatLng( 0.463787990000000E+02, -0.120686204000000E+03),\n new google.maps.LatLng( 0.463768800000000E+02, -0.120688515000000E+03),\n new google.maps.LatLng( 0.463752220000000E+02, -0.120697694000000E+03),\n new google.maps.LatLng( 0.463752450000000E+02, -0.120706541000000E+03),\n new google.maps.LatLng( 0.463823630000000E+02, -0.120706973000000E+03),\n new google.maps.LatLng( 0.463824980000000E+02, -0.120717241000000E+03),\n new google.maps.LatLng( 0.463876990000000E+02, -0.120721874000000E+03),\n new google.maps.LatLng( 0.464028260000000E+02, -0.120705376000000E+03),\n new google.maps.LatLng( 0.464039900000000E+02, -0.120702006000000E+03),\n new google.maps.LatLng( 0.464041910000000E+02, -0.120691421000000E+03),\n new google.maps.LatLng( 0.464046890000000E+02, -0.120691422000000E+03),\n new google.maps.LatLng( 0.464046660000000E+02, -0.120702290000000E+03),\n new google.maps.LatLng( 0.464041400000000E+02, -0.120704271000000E+03),\n new google.maps.LatLng( 0.464042230000000E+02, -0.120732613000000E+03),\n new google.maps.LatLng( 0.464047890000000E+02, -0.120744009000000E+03),\n new google.maps.LatLng( 0.464045790000000E+02, -0.120754489000000E+03),\n new google.maps.LatLng( 0.464225170000000E+02, -0.120754536000000E+03),\n new google.maps.LatLng( 0.464217620000000E+02, -0.120751959000000E+03),\n new google.maps.LatLng( 0.464195260000000E+02, -0.120748418000000E+03),\n new google.maps.LatLng( 0.464186830000000E+02, -0.120744122000000E+03),\n new google.maps.LatLng( 0.464234700000000E+02, -0.120744112000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.472344890000000E+02, -0.117463658000000E+03),\n new google.maps.LatLng( 0.472346730000000E+02, -0.117458424000000E+03),\n new google.maps.LatLng( 0.472336450000000E+02, -0.117453524000000E+03),\n new google.maps.LatLng( 0.472316570000000E+02, -0.117450940000000E+03),\n new google.maps.LatLng( 0.472284120000000E+02, -0.117450403000000E+03),\n new google.maps.LatLng( 0.472272690000000E+02, -0.117450939000000E+03),\n new google.maps.LatLng( 0.472263710000000E+02, -0.117450064000000E+03),\n new google.maps.LatLng( 0.472247550000000E+02, -0.117445302000000E+03),\n new google.maps.LatLng( 0.472254180000000E+02, -0.117441444000000E+03),\n new google.maps.LatLng( 0.472303990000000E+02, -0.117430268000000E+03),\n new google.maps.LatLng( 0.472036100000000E+02, -0.117429929000000E+03),\n new google.maps.LatLng( 0.472006880000000E+02, -0.117436445000000E+03),\n new google.maps.LatLng( 0.472010310000000E+02, -0.117440804000000E+03),\n new google.maps.LatLng( 0.472001620000000E+02, -0.117452106000000E+03),\n new google.maps.LatLng( 0.471962300000000E+02, -0.117458376000000E+03),\n new google.maps.LatLng( 0.471933490000000E+02, -0.117465214000000E+03),\n new google.maps.LatLng( 0.471978050000000E+02, -0.117468536000000E+03),\n new google.maps.LatLng( 0.471997240000000E+02, -0.117469376000000E+03),\n new google.maps.LatLng( 0.472021010000000E+02, -0.117469679000000E+03),\n new google.maps.LatLng( 0.472048210000000E+02, -0.117468708000000E+03),\n new google.maps.LatLng( 0.472148320000000E+02, -0.117470492000000E+03),\n new google.maps.LatLng( 0.472170580000000E+02, -0.117472508000000E+03),\n new google.maps.LatLng( 0.472212280000000E+02, -0.117481467000000E+03),\n new google.maps.LatLng( 0.472204720000000E+02, -0.117484552000000E+03),\n new google.maps.LatLng( 0.472180010000000E+02, -0.117489716000000E+03),\n new google.maps.LatLng( 0.472178630000000E+02, -0.117491896000000E+03),\n new google.maps.LatLng( 0.472230980000000E+02, -0.117490593000000E+03),\n new google.maps.LatLng( 0.472246070000000E+02, -0.117489790000000E+03),\n new google.maps.LatLng( 0.472311920000000E+02, -0.117482045000000E+03),\n new google.maps.LatLng( 0.472327710000000E+02, -0.117477617000000E+03),\n new google.maps.LatLng( 0.472327950000000E+02, -0.117473993000000E+03),\n new google.maps.LatLng( 0.472319960000000E+02, -0.117470604000000E+03),\n new google.maps.LatLng( 0.472321570000000E+02, -0.117467717000000E+03),\n new google.maps.LatLng( 0.472329990000000E+02, -0.117465217000000E+03),\n new google.maps.LatLng( 0.472344890000000E+02, -0.117463658000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.486330740000000E+02, -0.123024923000000E+03),\n new google.maps.LatLng( 0.486302320000000E+02, -0.123030082000000E+03),\n new google.maps.LatLng( 0.486229350000000E+02, -0.123030534000000E+03),\n new google.maps.LatLng( 0.486147770000000E+02, -0.123029161000000E+03),\n new google.maps.LatLng( 0.486119200000000E+02, -0.123027957000000E+03),\n new google.maps.LatLng( 0.486092000000000E+02, -0.123023514000000E+03),\n new google.maps.LatLng( 0.486097700000000E+02, -0.123019964000000E+03),\n new google.maps.LatLng( 0.486142220000000E+02, -0.123011241000000E+03),\n new google.maps.LatLng( 0.486175340000000E+02, -0.123007998000000E+03),\n new google.maps.LatLng( 0.486230390000000E+02, -0.123004684000000E+03),\n new google.maps.LatLng( 0.486257440000000E+02, -0.123004350000000E+03),\n new google.maps.LatLng( 0.486257440000000E+02, -0.123004350000000E+03),\n new google.maps.LatLng( 0.486293090000000E+02, -0.123005297000000E+03),\n new google.maps.LatLng( 0.486302690000000E+02, -0.123005055000000E+03),\n new google.maps.LatLng( 0.486302680000000E+02, -0.123003952000000E+03),\n new google.maps.LatLng( 0.486281190000000E+02, -0.123001955000000E+03),\n new google.maps.LatLng( 0.486274570000000E+02, -0.123002128000000E+03),\n new google.maps.LatLng( 0.486263610000000E+02, -0.123003784000000E+03),\n new google.maps.LatLng( 0.486164800000000E+02, -0.123000377000000E+03),\n new google.maps.LatLng( 0.486069780000000E+02, -0.122992509000000E+03),\n new google.maps.LatLng( 0.486032540000000E+02, -0.122991299000000E+03),\n new google.maps.LatLng( 0.485996250000000E+02, -0.122978617000000E+03),\n new google.maps.LatLng( 0.486026650000000E+02, -0.122976139000000E+03),\n new google.maps.LatLng( 0.486043330000000E+02, -0.122976520000000E+03),\n new google.maps.LatLng( 0.486081940000000E+02, -0.122979451000000E+03),\n new google.maps.LatLng( 0.486118290000000E+02, -0.122978869000000E+03),\n new google.maps.LatLng( 0.486133370000000E+02, -0.122977733000000E+03),\n new google.maps.LatLng( 0.486180670000000E+02, -0.122979218000000E+03),\n new google.maps.LatLng( 0.486190950000000E+02, -0.122980184000000E+03),\n new google.maps.LatLng( 0.486206930000000E+02, -0.122983804000000E+03),\n new google.maps.LatLng( 0.486210560000000E+02, -0.122988698000000E+03),\n new google.maps.LatLng( 0.486255890000000E+02, -0.122988772000000E+03),\n new google.maps.LatLng( 0.486275770000000E+02, -0.122987948000000E+03),\n new google.maps.LatLng( 0.486269150000000E+02, -0.122985981000000E+03),\n new google.maps.LatLng( 0.486276470000000E+02, -0.122985052000000E+03),\n new google.maps.LatLng( 0.486295660000000E+02, -0.122985330000000E+03),\n new google.maps.LatLng( 0.486312330000000E+02, -0.122989468000000E+03),\n new google.maps.LatLng( 0.486312310000000E+02, -0.122992260000000E+03),\n new google.maps.LatLng( 0.486357090000000E+02, -0.122993782000000E+03),\n new google.maps.LatLng( 0.486429100000000E+02, -0.122988307000000E+03),\n new google.maps.LatLng( 0.486430940000000E+02, -0.122983101000000E+03),\n new google.maps.LatLng( 0.486413820000000E+02, -0.122980238000000E+03),\n new google.maps.LatLng( 0.486404680000000E+02, -0.122979272000000E+03),\n new google.maps.LatLng( 0.486381600000000E+02, -0.122978546000000E+03),\n new google.maps.LatLng( 0.486289550000000E+02, -0.122968369000000E+03),\n new google.maps.LatLng( 0.486290920000000E+02, -0.122967335000000E+03),\n new google.maps.LatLng( 0.486298690000000E+02, -0.122967404000000E+03),\n new google.maps.LatLng( 0.486302810000000E+02, -0.122966749000000E+03),\n new google.maps.LatLng( 0.486314700000000E+02, -0.122961752000000E+03),\n new google.maps.LatLng( 0.486316760000000E+02, -0.122957753000000E+03),\n new google.maps.LatLng( 0.486282490000000E+02, -0.122953925000000E+03),\n new google.maps.LatLng( 0.486274270000000E+02, -0.122954166000000E+03),\n new google.maps.LatLng( 0.486273580000000E+02, -0.122955338000000E+03),\n new google.maps.LatLng( 0.486273580000000E+02, -0.122955338000000E+03),\n new google.maps.LatLng( 0.486257130000000E+02, -0.122950857000000E+03),\n new google.maps.LatLng( 0.486202890000000E+02, -0.122954509000000E+03),\n new google.maps.LatLng( 0.486199010000000E+02, -0.122955336000000E+03),\n new google.maps.LatLng( 0.486174100000000E+02, -0.122956300000000E+03),\n new google.maps.LatLng( 0.486081100000000E+02, -0.122951851000000E+03),\n new google.maps.LatLng( 0.486071280000000E+02, -0.122951954000000E+03),\n new google.maps.LatLng( 0.486067850000000E+02, -0.122953367000000E+03),\n new google.maps.LatLng( 0.486046820000000E+02, -0.122954262000000E+03),\n new google.maps.LatLng( 0.485979880000000E+02, -0.122949196000000E+03),\n new google.maps.LatLng( 0.485973020000000E+02, -0.122947370000000E+03),\n new google.maps.LatLng( 0.485972800000000E+02, -0.122945303000000E+03),\n new google.maps.LatLng( 0.485981480000000E+02, -0.122937724000000E+03),\n new google.maps.LatLng( 0.485973250000000E+02, -0.122936759000000E+03),\n new google.maps.LatLng( 0.485962970000000E+02, -0.122937104000000E+03),\n new google.maps.LatLng( 0.485938980000000E+02, -0.122936346000000E+03),\n new google.maps.LatLng( 0.485928920000000E+02, -0.122935003000000E+03),\n new google.maps.LatLng( 0.485930060000000E+02, -0.122925737000000E+03),\n new google.maps.LatLng( 0.485915650000000E+02, -0.122915094000000E+03),\n new google.maps.LatLng( 0.485927510000000E+02, -0.122905690000000E+03),\n new google.maps.LatLng( 0.485894090000000E+02, -0.122889502000000E+03),\n new google.maps.LatLng( 0.485947970000000E+02, -0.122873316000000E+03),\n new google.maps.LatLng( 0.486028910000000E+02, -0.122863886000000E+03),\n new google.maps.LatLng( 0.486072790000000E+02, -0.122862616000000E+03),\n new google.maps.LatLng( 0.486133340000000E+02, -0.122863655000000E+03),\n new google.maps.LatLng( 0.486148620000000E+02, -0.122869170000000E+03),\n new google.maps.LatLng( 0.486215310000000E+02, -0.122876292000000E+03),\n new google.maps.LatLng( 0.486291050000000E+02, -0.122879917000000E+03),\n new google.maps.LatLng( 0.486356630000000E+02, -0.122881358000000E+03),\n new google.maps.LatLng( 0.486387490000000E+02, -0.122883630000000E+03),\n new google.maps.LatLng( 0.486400080000000E+02, -0.122887800000000E+03),\n new google.maps.LatLng( 0.486436770000000E+02, -0.122891756000000E+03),\n new google.maps.LatLng( 0.486436770000000E+02, -0.122891756000000E+03),\n new google.maps.LatLng( 0.486449460000000E+02, -0.122893174000000E+03),\n new google.maps.LatLng( 0.486489260000000E+02, -0.122904724000000E+03),\n new google.maps.LatLng( 0.486498860000000E+02, -0.122906275000000E+03),\n new google.maps.LatLng( 0.486547770000000E+02, -0.122911307000000E+03),\n new google.maps.LatLng( 0.486657920000000E+02, -0.122913992000000E+03),\n new google.maps.LatLng( 0.486685560000000E+02, -0.122910334000000E+03),\n new google.maps.LatLng( 0.486708870000000E+02, -0.122909642000000E+03),\n new google.maps.LatLng( 0.486808060000000E+02, -0.122917954000000E+03),\n new google.maps.LatLng( 0.486844170000000E+02, -0.122923232000000E+03),\n new google.maps.LatLng( 0.486856970000000E+02, -0.122923024000000E+03),\n new google.maps.LatLng( 0.486910660000000E+02, -0.122919192000000E+03),\n new google.maps.LatLng( 0.486909280000000E+02, -0.122913601000000E+03),\n new google.maps.LatLng( 0.486920010000000E+02, -0.122911667000000E+03),\n new google.maps.LatLng( 0.486936460000000E+02, -0.122910528000000E+03),\n new google.maps.LatLng( 0.486925940000000E+02, -0.122905248000000E+03),\n new google.maps.LatLng( 0.486910850000000E+02, -0.122904593000000E+03),\n new google.maps.LatLng( 0.486903540000000E+02, -0.122903454000000E+03),\n new google.maps.LatLng( 0.486893930000000E+02, -0.122899831000000E+03),\n new google.maps.LatLng( 0.486902380000000E+02, -0.122898864000000E+03),\n new google.maps.LatLng( 0.486925930000000E+02, -0.122901416000000E+03),\n new google.maps.LatLng( 0.486941010000000E+02, -0.122901001000000E+03),\n new google.maps.LatLng( 0.486953780000000E+02, -0.122896030000000E+03),\n new google.maps.LatLng( 0.486951250000000E+02, -0.122891060000000E+03),\n new google.maps.LatLng( 0.486892960000000E+02, -0.122884715000000E+03),\n new google.maps.LatLng( 0.486864160000000E+02, -0.122882889000000E+03),\n new google.maps.LatLng( 0.486846560000000E+02, -0.122882477000000E+03),\n new google.maps.LatLng( 0.486761330000000E+02, -0.122882279000000E+03),\n new google.maps.LatLng( 0.486742140000000E+02, -0.122883764000000E+03),\n new google.maps.LatLng( 0.486631550000000E+02, -0.122883983000000E+03),\n new google.maps.LatLng( 0.486585160000000E+02, -0.122883678000000E+03),\n new google.maps.LatLng( 0.486547900000000E+02, -0.122882303000000E+03),\n new google.maps.LatLng( 0.486453720000000E+02, -0.122875809000000E+03),\n new google.maps.LatLng( 0.486435000000000E+02, -0.122873927000000E+03),\n new google.maps.LatLng( 0.486439340000000E+02, -0.122872962000000E+03),\n new google.maps.LatLng( 0.486455570000000E+02, -0.122871826000000E+03),\n new google.maps.LatLng( 0.486468370000000E+02, -0.122872000000000E+03),\n new google.maps.LatLng( 0.486471820000000E+02, -0.122867862000000E+03),\n new google.maps.LatLng( 0.486363090000000E+02, -0.122858715000000E+03),\n new google.maps.LatLng( 0.486323080000000E+02, -0.122856190000000E+03),\n new google.maps.LatLng( 0.486323080000000E+02, -0.122856190000000E+03),\n new google.maps.LatLng( 0.486313290000000E+02, -0.122854710000000E+03),\n new google.maps.LatLng( 0.486270120000000E+02, -0.122850743000000E+03),\n new google.maps.LatLng( 0.486254810000000E+02, -0.122850501000000E+03),\n new google.maps.LatLng( 0.486224790000000E+02, -0.122848878000000E+03),\n new google.maps.LatLng( 0.486194870000000E+02, -0.122843948000000E+03),\n new google.maps.LatLng( 0.486179350000000E+02, -0.122837433000000E+03),\n new google.maps.LatLng( 0.486207460000000E+02, -0.122833575000000E+03),\n new google.maps.LatLng( 0.486201760000000E+02, -0.122830369000000E+03),\n new google.maps.LatLng( 0.486155140000000E+02, -0.122828162000000E+03),\n new google.maps.LatLng( 0.486085450000000E+02, -0.122828952000000E+03),\n new google.maps.LatLng( 0.486055740000000E+02, -0.122830605000000E+03),\n new google.maps.LatLng( 0.486019640000000E+02, -0.122830672000000E+03),\n new google.maps.LatLng( 0.486000220000000E+02, -0.122824298000000E+03),\n new google.maps.LatLng( 0.486018510000000E+02, -0.122819269000000E+03),\n new google.maps.LatLng( 0.486035640000000E+02, -0.122819097000000E+03),\n new google.maps.LatLng( 0.486046840000000E+02, -0.122818373000000E+03),\n new google.maps.LatLng( 0.486062840000000E+02, -0.122815893000000E+03),\n new google.maps.LatLng( 0.486066490000000E+02, -0.122814342000000E+03),\n new google.maps.LatLng( 0.486054840000000E+02, -0.122809140000000E+03),\n new google.maps.LatLng( 0.486026730000000E+02, -0.122805729000000E+03),\n new google.maps.LatLng( 0.486017718991317E+02, -0.122800037984829E+03),\n new google.maps.LatLng( 0.486017718991317E+02, -0.122800037984829E+03),\n new google.maps.LatLng( 0.486016900000000E+02, -0.122800217000000E+03),\n new google.maps.LatLng( 0.485963427313527E+02, -0.122804537162165E+03),\n new google.maps.LatLng( 0.485963427313527E+02, -0.122804537162165E+03),\n new google.maps.LatLng( 0.485976920000000E+02, -0.122804352000000E+03),\n new google.maps.LatLng( 0.485983310000000E+02, -0.122805351000000E+03),\n new google.maps.LatLng( 0.485994510000000E+02, -0.122810621000000E+03),\n new google.maps.LatLng( 0.486004800000000E+02, -0.122811552000000E+03),\n new google.maps.LatLng( 0.486009140000000E+02, -0.122813205000000E+03),\n new google.maps.LatLng( 0.486009370000000E+02, -0.122814411000000E+03),\n new google.maps.LatLng( 0.486002970000000E+02, -0.122815617000000E+03),\n new google.maps.LatLng( 0.485982400000000E+02, -0.122815858000000E+03),\n new google.maps.LatLng( 0.485936470000000E+02, -0.122817683000000E+03),\n new google.maps.LatLng( 0.485916820000000E+02, -0.122821300000000E+03),\n new google.maps.LatLng( 0.485880490000000E+02, -0.122822746000000E+03),\n new google.maps.LatLng( 0.485899230000000E+02, -0.122814962000000E+03),\n new google.maps.LatLng( 0.485919790000000E+02, -0.122810278000000E+03),\n new google.maps.LatLng( 0.485951780000000E+02, -0.122804697000000E+03),\n new google.maps.LatLng( 0.485953769759554E+02, -0.122804669694230E+03),\n new google.maps.LatLng( 0.485953769759554E+02, -0.122804669694230E+03),\n new google.maps.LatLng( 0.485854250000000E+02, -0.122801096000000E+03),\n new google.maps.LatLng( 0.485827580985992E+02, -0.122796678059673E+03),\n new google.maps.LatLng( 0.485827580985992E+02, -0.122796678059673E+03),\n new google.maps.LatLng( 0.485864720000000E+02, -0.122807695000000E+03),\n new google.maps.LatLng( 0.485875010000000E+02, -0.122809486000000E+03),\n new google.maps.LatLng( 0.485882550000000E+02, -0.122809933000000E+03),\n new google.maps.LatLng( 0.485885970000000E+02, -0.122811242000000E+03),\n new google.maps.LatLng( 0.485869350000000E+02, -0.122815574000000E+03),\n new google.maps.LatLng( 0.485862210000000E+02, -0.122812654000000E+03),\n new google.maps.LatLng( 0.485848040000000E+02, -0.122814480000000E+03),\n new google.maps.LatLng( 0.485831820000000E+02, -0.122819370000000E+03),\n new google.maps.LatLng( 0.485832730000000E+02, -0.122824329000000E+03),\n new google.maps.LatLng( 0.485793880000000E+02, -0.122829046000000E+03),\n new google.maps.LatLng( 0.485740850000000E+02, -0.122828286000000E+03),\n new google.maps.LatLng( 0.485615860000000E+02, -0.122829316000000E+03),\n new google.maps.LatLng( 0.485539310000000E+02, -0.122826456000000E+03),\n new google.maps.LatLng( 0.485531550000000E+02, -0.122825148000000E+03),\n new google.maps.LatLng( 0.485529490000000E+02, -0.122823393000000E+03),\n new google.maps.LatLng( 0.485546400000000E+02, -0.122820502000000E+03),\n new google.maps.LatLng( 0.485540690000000E+02, -0.122817955000000E+03),\n new google.maps.LatLng( 0.485524920000000E+02, -0.122815614000000E+03),\n new google.maps.LatLng( 0.485515560000000E+02, -0.122815580000000E+03),\n new google.maps.LatLng( 0.485496820000000E+02, -0.122819331000000E+03),\n new google.maps.LatLng( 0.485473510000000E+02, -0.122821498000000E+03),\n new google.maps.LatLng( 0.485463450000000E+02, -0.122821808000000E+03),\n new google.maps.LatLng( 0.485327270000000E+02, -0.122810865000000E+03),\n new google.maps.LatLng( 0.485314700000000E+02, -0.122808973000000E+03),\n new google.maps.LatLng( 0.485321780000000E+02, -0.122803124000000E+03),\n new google.maps.LatLng( 0.485351940000000E+02, -0.122801300000000E+03),\n new google.maps.LatLng( 0.485382100000000E+02, -0.122796550000000E+03),\n new google.maps.LatLng( 0.485426180000000E+02, -0.122787430000000E+03),\n new google.maps.LatLng( 0.485447796018373E+02, -0.122782781608473E+03),\n new google.maps.LatLng( 0.485447796018373E+02, -0.122782781608473E+03),\n new google.maps.LatLng( 0.485309139990302E+02, -0.122788295804481E+03),\n new google.maps.LatLng( 0.485305220228152E+02, -0.122788451689062E+03),\n new google.maps.LatLng( 0.485303930000000E+02, -0.122788503000000E+03),\n new google.maps.LatLng( 0.485239605532555E+02, -0.122787495560840E+03),\n new google.maps.LatLng( 0.485239605532555E+02, -0.122787495560840E+03),\n new google.maps.LatLng( 0.485245660000000E+02, -0.122788265000000E+03),\n new google.maps.LatLng( 0.485250250000000E+02, -0.122797484000000E+03),\n new google.maps.LatLng( 0.485239060000000E+02, -0.122802334000000E+03),\n new google.maps.LatLng( 0.485239750000000E+02, -0.122809936000000E+03),\n new google.maps.LatLng( 0.485246830000000E+02, -0.122816094000000E+03),\n new google.maps.LatLng( 0.485243170000000E+02, -0.122820531000000E+03),\n new google.maps.LatLng( 0.485224420000000E+02, -0.122828443000000E+03),\n new google.maps.LatLng( 0.485218250000000E+02, -0.122829440000000E+03),\n new google.maps.LatLng( 0.485186710000000E+02, -0.122831847000000E+03),\n new google.maps.LatLng( 0.485153790000000E+02, -0.122838174000000E+03),\n new google.maps.LatLng( 0.485115170000000E+02, -0.122840097000000E+03),\n new google.maps.LatLng( 0.485097120000000E+02, -0.122838617000000E+03),\n new google.maps.LatLng( 0.485093240000000E+02, -0.122837792000000E+03),\n new google.maps.LatLng( 0.485100100000000E+02, -0.122833597000000E+03),\n new google.maps.LatLng( 0.485097590000000E+02, -0.122831396000000E+03),\n new google.maps.LatLng( 0.485084570000000E+02, -0.122829813000000E+03),\n new google.maps.LatLng( 0.485055780000000E+02, -0.122828471000000E+03),\n new google.maps.LatLng( 0.485041610000000E+02, -0.122827095000000E+03),\n new google.maps.LatLng( 0.484995340000000E+02, -0.122820596000000E+03),\n new google.maps.LatLng( 0.484993520000000E+02, -0.122816813000000E+03),\n new google.maps.LatLng( 0.484986950000000E+02, -0.122816023000000E+03),\n new google.maps.LatLng( 0.484917260000000E+02, -0.122815232000000E+03),\n new google.maps.LatLng( 0.484893265857422E+02, -0.122817212185742E+03),\n new google.maps.LatLng( 0.484887367857422E+02, -0.122819171785742E+03),\n new google.maps.LatLng( 0.484868120000000E+02, -0.122821453000000E+03),\n new google.maps.LatLng( 0.484833620000000E+02, -0.122824821000000E+03),\n new google.maps.LatLng( 0.484821280000000E+02, -0.122825715000000E+03),\n new google.maps.LatLng( 0.484812820000000E+02, -0.122825611000000E+03),\n new google.maps.LatLng( 0.484811000000000E+02, -0.122818118000000E+03),\n new google.maps.LatLng( 0.484811083004488E+02, -0.122818113776554E+03),\n new google.maps.LatLng( 0.484811083004488E+02, -0.122818113776554E+03),\n new google.maps.LatLng( 0.484760355983364E+02, -0.122818482000648E+03),\n new google.maps.LatLng( 0.484760355983364E+02, -0.122818482000648E+03),\n new google.maps.LatLng( 0.484765160000000E+02, -0.122818639000000E+03),\n new google.maps.LatLng( 0.484782430000000E+02, -0.122819527000000E+03),\n new google.maps.LatLng( 0.484768030000000E+02, -0.122824029000000E+03),\n new google.maps.LatLng( 0.484722320000000E+02, -0.122831142000000E+03),\n new google.maps.LatLng( 0.484702900000000E+02, -0.122833203000000E+03),\n new google.maps.LatLng( 0.484693530000000E+02, -0.122833718000000E+03),\n new google.maps.LatLng( 0.484681420000000E+02, -0.122833614000000E+03),\n new google.maps.LatLng( 0.484648520000000E+02, -0.122828528000000E+03),\n new google.maps.LatLng( 0.484627500000000E+02, -0.122823648000000E+03),\n new google.maps.LatLng( 0.484602140000000E+02, -0.122825159000000E+03),\n new google.maps.LatLng( 0.484554130000000E+02, -0.122832578000000E+03),\n new google.maps.LatLng( 0.484506590000000E+02, -0.122835908000000E+03),\n new google.maps.LatLng( 0.484445550000000E+02, -0.122846656000000E+03),\n new google.maps.LatLng( 0.484447150000000E+02, -0.122848510000000E+03),\n new google.maps.LatLng( 0.484471580000000E+02, -0.122854385000000E+03),\n new google.maps.LatLng( 0.484485290000000E+02, -0.122854524000000E+03),\n new google.maps.LatLng( 0.484551120000000E+02, -0.122848037000000E+03),\n new google.maps.LatLng( 0.484573520000000E+02, -0.122845119000000E+03),\n new google.maps.LatLng( 0.484599580000000E+02, -0.122843849000000E+03),\n new google.maps.LatLng( 0.484605060000000E+02, -0.122844468000000E+03),\n new google.maps.LatLng( 0.484594990000000E+02, -0.122851407000000E+03),\n new google.maps.LatLng( 0.484589270000000E+02, -0.122853537000000E+03),\n new google.maps.LatLng( 0.484575320000000E+02, -0.122855700000000E+03),\n new google.maps.LatLng( 0.484581480000000E+02, -0.122858380000000E+03),\n new google.maps.LatLng( 0.484601250000000E+02, -0.122860672000000E+03),\n new google.maps.LatLng( 0.484616430000000E+02, -0.122860032000000E+03),\n new google.maps.LatLng( 0.484652780000000E+02, -0.122856084000000E+03),\n new google.maps.LatLng( 0.484667640000000E+02, -0.122855295000000E+03),\n new google.maps.LatLng( 0.484746940000000E+02, -0.122853996000000E+03),\n new google.maps.LatLng( 0.484758140000000E+02, -0.122852382000000E+03),\n new google.maps.LatLng( 0.484776420000000E+02, -0.122851249000000E+03),\n new google.maps.LatLng( 0.484806130000000E+02, -0.122851492000000E+03),\n new google.maps.LatLng( 0.484814340000000E+02, -0.122855273000000E+03),\n new google.maps.LatLng( 0.484840160000000E+02, -0.122856066000000E+03),\n new google.maps.LatLng( 0.484859130000000E+02, -0.122854177000000E+03),\n new google.maps.LatLng( 0.484878070000000E+02, -0.122861190000000E+03),\n new google.maps.LatLng( 0.484885610000000E+02, -0.122862085000000E+03),\n new google.maps.LatLng( 0.484956890000000E+02, -0.122866148000000E+03),\n new google.maps.LatLng( 0.484998220000000E+02, -0.122872376000000E+03),\n new google.maps.LatLng( 0.485033910000000E+02, -0.122874203000000E+03),\n new google.maps.LatLng( 0.485054030000000E+02, -0.122873965000000E+03),\n new google.maps.LatLng( 0.485062260000000E+02, -0.122873278000000E+03),\n new google.maps.LatLng( 0.485108220000000E+02, -0.122867609000000E+03),\n new google.maps.LatLng( 0.485173820000000E+02, -0.122864624000000E+03),\n new google.maps.LatLng( 0.485307050000000E+02, -0.122861404000000E+03),\n new google.maps.LatLng( 0.485346820000000E+02, -0.122857726000000E+03),\n new google.maps.LatLng( 0.485366500000000E+02, -0.122851259000000E+03),\n new google.maps.LatLng( 0.485390240000000E+02, -0.122858349000000E+03),\n new google.maps.LatLng( 0.485414680000000E+02, -0.122859521000000E+03),\n new google.maps.LatLng( 0.485428390000000E+02, -0.122861657000000E+03),\n new google.maps.LatLng( 0.485423570000000E+02, -0.122865476000000E+03),\n new google.maps.LatLng( 0.485412590000000E+02, -0.122867608000000E+03),\n new google.maps.LatLng( 0.485408010000000E+02, -0.122870532000000E+03),\n new google.maps.LatLng( 0.485417590000000E+02, -0.122873734000000E+03),\n new google.maps.LatLng( 0.485438370000000E+02, -0.122876612000000E+03),\n new google.maps.LatLng( 0.485457570000000E+02, -0.122876914000000E+03),\n new google.maps.LatLng( 0.485497560000000E+02, -0.122874432000000E+03),\n new google.maps.LatLng( 0.485514534988281E+02, -0.122872741513477E+03),\n new google.maps.LatLng( 0.485543990000000E+02, -0.122869171000000E+03),\n new google.maps.LatLng( 0.485540120000000E+02, -0.122866177000000E+03),\n new google.maps.LatLng( 0.485547430000000E+02, -0.122865454000000E+03),\n new google.maps.LatLng( 0.485611640000000E+02, -0.122865805000000E+03),\n new google.maps.LatLng( 0.485625810000000E+02, -0.122866254000000E+03),\n new google.maps.LatLng( 0.485639510000000E+02, -0.122867667000000E+03),\n new google.maps.LatLng( 0.485648410000000E+02, -0.122870353000000E+03),\n new google.maps.LatLng( 0.485636520000000E+02, -0.122872073000000E+03),\n new google.maps.LatLng( 0.485616860000000E+02, -0.122873035000000E+03),\n new google.maps.LatLng( 0.485588750000000E+02, -0.122873445000000E+03),\n new google.maps.LatLng( 0.485570020000000E+02, -0.122872789000000E+03),\n new google.maps.LatLng( 0.485543006984375E+02, -0.122872950894531E+03),\n new google.maps.LatLng( 0.485532290000000E+02, -0.122876290000000E+03),\n new google.maps.LatLng( 0.485544890000000E+02, -0.122883408000000E+03),\n new google.maps.LatLng( 0.485553800000000E+02, -0.122884096000000E+03),\n new google.maps.LatLng( 0.485653530000000E+02, -0.122883863000000E+03),\n new google.maps.LatLng( 0.485695480000000E+02, -0.122882980000000E+03),\n new google.maps.LatLng( 0.485729080000000E+02, -0.122883906000000E+03),\n new google.maps.LatLng( 0.485710820000000E+02, -0.122888625000000E+03),\n new google.maps.LatLng( 0.485684780000000E+02, -0.122891003000000E+03),\n new google.maps.LatLng( 0.485662160000000E+02, -0.122892004000000E+03),\n new google.maps.LatLng( 0.485614470000000E+02, -0.122891596000000E+03),\n new google.maps.LatLng( 0.485585830000000E+02, -0.122890874000000E+03),\n new google.maps.LatLng( 0.485573720000000E+02, -0.122891735000000E+03),\n new google.maps.LatLng( 0.485562090000000E+02, -0.122898586000000E+03),\n new google.maps.LatLng( 0.485514580000000E+02, -0.122903409000000E+03),\n new google.maps.LatLng( 0.485499960000000E+02, -0.122905647000000E+03),\n new google.maps.LatLng( 0.485492210000000E+02, -0.122913115000000E+03),\n new google.maps.LatLng( 0.485507810000000E+02, -0.122919929000000E+03),\n new google.maps.LatLng( 0.485422990000000E+02, -0.122921825000000E+03),\n new google.maps.LatLng( 0.485400820000000E+02, -0.122921826000000E+03),\n new google.maps.LatLng( 0.485351010000000E+02, -0.122920658000000E+03),\n new google.maps.LatLng( 0.485207030000000E+02, -0.122915158000000E+03),\n new google.maps.LatLng( 0.485182340000000E+02, -0.122912339000000E+03),\n new google.maps.LatLng( 0.485173890000000E+02, -0.122911961000000E+03),\n new google.maps.LatLng( 0.485105790000000E+02, -0.122913615000000E+03),\n new google.maps.LatLng( 0.485065350000000E+02, -0.122916918000000E+03),\n new google.maps.LatLng( 0.485048450000000E+02, -0.122920563000000E+03),\n new google.maps.LatLng( 0.485033830000000E+02, -0.122923934000000E+03),\n new google.maps.LatLng( 0.485005510000000E+02, -0.122936072000000E+03),\n new google.maps.LatLng( 0.485013270000000E+02, -0.122937206000000E+03),\n new google.maps.LatLng( 0.485084340000000E+02, -0.122931499000000E+03),\n new google.maps.LatLng( 0.485114270000000E+02, -0.122923932000000E+03),\n new google.maps.LatLng( 0.485128890000000E+02, -0.122921765000000E+03),\n new google.maps.LatLng( 0.485156760000000E+02, -0.122920388000000E+03),\n new google.maps.LatLng( 0.485181210000000E+02, -0.122920422000000E+03),\n new google.maps.LatLng( 0.485209330000000E+02, -0.122923998000000E+03),\n new google.maps.LatLng( 0.485215030000000E+02, -0.122919354000000E+03),\n new google.maps.LatLng( 0.485224400000000E+02, -0.122917497000000E+03),\n new google.maps.LatLng( 0.485220750000000E+02, -0.122922450000000E+03),\n new google.maps.LatLng( 0.485212300000000E+02, -0.122926028000000E+03),\n new google.maps.LatLng( 0.485170940000000E+02, -0.122932151000000E+03),\n new google.maps.LatLng( 0.485130730000000E+02, -0.122933562000000E+03),\n new google.maps.LatLng( 0.485109250000000E+02, -0.122933183000000E+03),\n new google.maps.LatLng( 0.485064690000000E+02, -0.122934078000000E+03),\n new google.maps.LatLng( 0.485017850000000E+02, -0.122938204000000E+03),\n new google.maps.LatLng( 0.484961800000000E+02, -0.122941813000000E+03),\n new google.maps.LatLng( 0.484837490000000E+02, -0.122944562000000E+03),\n new google.maps.LatLng( 0.484761390000000E+02, -0.122945215000000E+03),\n new google.maps.LatLng( 0.484694900000000E+02, -0.122943049000000E+03),\n new google.maps.LatLng( 0.484654220000000E+02, -0.122945522000000E+03),\n new google.maps.LatLng( 0.484578810000000E+02, -0.122940334000000E+03),\n new google.maps.LatLng( 0.484566020000000E+02, -0.122938857000000E+03),\n new google.maps.LatLng( 0.484562210556474E+02, -0.122937880868685E+03),\n new google.maps.LatLng( 0.484562210556474E+02, -0.122937880868685E+03),\n new google.maps.LatLng( 0.484562210000000E+02, -0.122937881000000E+03),\n new google.maps.LatLng( 0.484511610000000E+02, -0.122962009000000E+03),\n new google.maps.LatLng( 0.484511610000000E+02, -0.122962009000000E+03),\n new google.maps.LatLng( 0.484614900000000E+02, -0.122959093000000E+03),\n new google.maps.LatLng( 0.484636840000000E+02, -0.122960193000000E+03),\n new google.maps.LatLng( 0.484655340000000E+02, -0.122962324000000E+03),\n new google.maps.LatLng( 0.484682750000000E+02, -0.122967480000000E+03),\n new google.maps.LatLng( 0.484683200000000E+02, -0.122970710000000E+03),\n new google.maps.LatLng( 0.484678400000000E+02, -0.122971259000000E+03),\n new google.maps.LatLng( 0.484667200000000E+02, -0.122971121000000E+03),\n new google.maps.LatLng( 0.484637730000000E+02, -0.122969745000000E+03),\n new google.maps.LatLng( 0.484629040000000E+02, -0.122970432000000E+03),\n new google.maps.LatLng( 0.484617610000000E+02, -0.122974313000000E+03),\n new google.maps.LatLng( 0.484615710000000E+02, -0.122989155000000E+03),\n new google.maps.LatLng( 0.484625310000000E+02, -0.122989603000000E+03),\n new google.maps.LatLng( 0.484669120000000E+02, -0.123001288000000E+03),\n new google.maps.LatLng( 0.484696340000000E+02, -0.123005578000000E+03),\n new google.maps.LatLng( 0.484730400000000E+02, -0.123009045000000E+03),\n new google.maps.LatLng( 0.484761710000000E+02, -0.123009971000000E+03),\n new google.maps.LatLng( 0.484836900000000E+02, -0.123010409000000E+03),\n new google.maps.LatLng( 0.484886050000000E+02, -0.123015079000000E+03),\n new google.maps.LatLng( 0.484941600000000E+02, -0.123022603000000E+03),\n new google.maps.LatLng( 0.485037160000000E+02, -0.123017334000000E+03),\n new google.maps.LatLng( 0.485065510000000E+02, -0.123018913000000E+03),\n new google.maps.LatLng( 0.485078990000000E+02, -0.123020701000000E+03),\n new google.maps.LatLng( 0.485097960000000E+02, -0.123021078000000E+03),\n new google.maps.LatLng( 0.485163540000000E+02, -0.123020488000000E+03),\n new google.maps.LatLng( 0.485175650000000E+02, -0.123019833000000E+03),\n new google.maps.LatLng( 0.485219730000000E+02, -0.123014945000000E+03),\n new google.maps.LatLng( 0.485212830000000E+02, -0.123004385000000E+03),\n new google.maps.LatLng( 0.485195910000000E+02, -0.122999567000000E+03),\n new google.maps.LatLng( 0.485165980000000E+02, -0.122998222000000E+03),\n new google.maps.LatLng( 0.485159820000000E+02, -0.122996433000000E+03),\n new google.maps.LatLng( 0.485152990000000E+02, -0.122992855000000E+03),\n new google.maps.LatLng( 0.485146630000000E+02, -0.122982674000000E+03),\n new google.maps.LatLng( 0.485151200000000E+02, -0.122981574000000E+03),\n new google.maps.LatLng( 0.485181600000000E+02, -0.122980614000000E+03),\n new google.maps.LatLng( 0.485198990000000E+02, -0.122976591000000E+03),\n new google.maps.LatLng( 0.485199680000000E+02, -0.122974011000000E+03),\n new google.maps.LatLng( 0.485222310000000E+02, -0.122971536000000E+03),\n new google.maps.LatLng( 0.485253620000000E+02, -0.122971607000000E+03),\n new google.maps.LatLng( 0.485282630000000E+02, -0.122974087000000E+03),\n new google.maps.LatLng( 0.485269600000000E+02, -0.122975736000000E+03),\n new google.maps.LatLng( 0.485271200000000E+02, -0.122977800000000E+03),\n new google.maps.LatLng( 0.485282380000000E+02, -0.122979935000000E+03),\n new google.maps.LatLng( 0.485316210000000E+02, -0.122979594000000E+03),\n new google.maps.LatLng( 0.485324440000000E+02, -0.122978425000000E+03),\n new google.maps.LatLng( 0.485335170000000E+02, -0.122979010000000E+03),\n new google.maps.LatLng( 0.485354810000000E+02, -0.122981971000000E+03),\n new google.maps.LatLng( 0.485361880000000E+02, -0.122987683000000E+03),\n new google.maps.LatLng( 0.485348380000000E+02, -0.122991604000000E+03),\n new google.maps.LatLng( 0.485331450000000E+02, -0.122994458000000E+03),\n new google.maps.LatLng( 0.485295810000000E+02, -0.122993697000000E+03),\n new google.maps.LatLng( 0.485265390000000E+02, -0.122996824000000E+03),\n new google.maps.LatLng( 0.485259900000000E+02, -0.122999301000000E+03),\n new google.maps.LatLng( 0.485285490000000E+02, -0.123003655000000E+03),\n new google.maps.LatLng( 0.485316800000000E+02, -0.123003513000000E+03),\n new google.maps.LatLng( 0.485334720000000E+02, -0.123006495000000E+03),\n new google.maps.LatLng( 0.485342880000000E+02, -0.123010082000000E+03),\n new google.maps.LatLng( 0.485378570000000E+02, -0.123020195000000E+03),\n new google.maps.LatLng( 0.485387940000000E+02, -0.123020367000000E+03),\n new google.maps.LatLng( 0.485446900000000E+02, -0.123018606000000E+03),\n new google.maps.LatLng( 0.485465140000000E+02, -0.123009313000000E+03),\n new google.maps.LatLng( 0.485463070000000E+02, -0.123007558000000E+03),\n new google.maps.LatLng( 0.485502590000000E+02, -0.123005592000000E+03),\n new google.maps.LatLng( 0.485521100000000E+02, -0.123005831000000E+03),\n new google.maps.LatLng( 0.485608200000000E+02, -0.123014461000000E+03),\n new google.maps.LatLng( 0.485608417098670E+02, -0.123014510898688E+03),\n new google.maps.LatLng( 0.485608417098670E+02, -0.123014510898688E+03),\n new google.maps.LatLng( 0.485618912185060E+02, -0.122987393706200E+03),\n new google.maps.LatLng( 0.485618912185060E+02, -0.122987393706200E+03),\n new google.maps.LatLng( 0.485614830000000E+02, -0.122988741000000E+03),\n new google.maps.LatLng( 0.485586500000000E+02, -0.122988050000000E+03),\n new google.maps.LatLng( 0.485515470000000E+02, -0.122978439000000E+03),\n new google.maps.LatLng( 0.485535380000000E+02, -0.122968115000000E+03),\n new google.maps.LatLng( 0.485504760000000E+02, -0.122967287000000E+03),\n new google.maps.LatLng( 0.485495850000000E+02, -0.122965876000000E+03),\n new google.maps.LatLng( 0.485510950000000E+02, -0.122960714000000E+03),\n new google.maps.LatLng( 0.485493130000000E+02, -0.122953038000000E+03),\n new google.maps.LatLng( 0.485466630000000E+02, -0.122948908000000E+03),\n new google.maps.LatLng( 0.485479900000000E+02, -0.122944572000000E+03),\n new google.maps.LatLng( 0.485512800000000E+02, -0.122941819000000E+03),\n new google.maps.LatLng( 0.485529260000000E+02, -0.122941062000000E+03),\n new google.maps.LatLng( 0.485538620000000E+02, -0.122941440000000E+03),\n new google.maps.LatLng( 0.485582500000000E+02, -0.122945572000000E+03),\n new google.maps.LatLng( 0.485597570000000E+02, -0.122949875000000E+03),\n new google.maps.LatLng( 0.485596430000000E+02, -0.122951149000000E+03),\n new google.maps.LatLng( 0.485601000000000E+02, -0.122951390000000E+03),\n new google.maps.LatLng( 0.485609910000000E+02, -0.122949876000000E+03),\n new google.maps.LatLng( 0.485616770000000E+02, -0.122944919000000E+03),\n new google.maps.LatLng( 0.485608780000000E+02, -0.122944437000000E+03),\n new google.maps.LatLng( 0.485595290000000E+02, -0.122944471000000E+03),\n new google.maps.LatLng( 0.485589120000000E+02, -0.122943817000000E+03),\n new google.maps.LatLng( 0.485581810000000E+02, -0.122942337000000E+03),\n new google.maps.LatLng( 0.485577700000000E+02, -0.122938205000000E+03),\n new google.maps.LatLng( 0.485581580000000E+02, -0.122937757000000E+03),\n new google.maps.LatLng( 0.485602380000000E+02, -0.122938378000000E+03),\n new google.maps.LatLng( 0.485611290000000E+02, -0.122940340000000E+03),\n new google.maps.LatLng( 0.485621340000000E+02, -0.122940271000000E+03),\n new google.maps.LatLng( 0.485635970000000E+02, -0.122938688000000E+03),\n new google.maps.LatLng( 0.485643740000000E+02, -0.122932835000000E+03),\n new google.maps.LatLng( 0.485649210000000E+02, -0.122920889000000E+03),\n new google.maps.LatLng( 0.485643950000000E+02, -0.122918583000000E+03),\n new google.maps.LatLng( 0.485743560000000E+02, -0.122906561000000E+03),\n new google.maps.LatLng( 0.485796790000000E+02, -0.122903045000000E+03),\n new google.maps.LatLng( 0.485810500000000E+02, -0.122903768000000E+03),\n new google.maps.LatLng( 0.485820110000000E+02, -0.122904938000000E+03),\n new google.maps.LatLng( 0.485871100000000E+02, -0.122921467000000E+03),\n new google.maps.LatLng( 0.485845050000000E+02, -0.122930009000000E+03),\n new google.maps.LatLng( 0.485806890000000E+02, -0.122932420000000E+03),\n new google.maps.LatLng( 0.485784270000000E+02, -0.122931387000000E+03),\n new google.maps.LatLng( 0.485768730000000E+02, -0.122929907000000E+03),\n new google.maps.LatLng( 0.485753870000000E+02, -0.122929769000000E+03),\n new google.maps.LatLng( 0.485743820000000E+02, -0.122930837000000E+03),\n new google.maps.LatLng( 0.485738110000000E+02, -0.122932490000000E+03),\n new google.maps.LatLng( 0.485732860000000E+02, -0.122937104000000E+03),\n new google.maps.LatLng( 0.485765760000000E+02, -0.122941684000000E+03),\n new google.maps.LatLng( 0.485798890000000E+02, -0.122944542000000E+03),\n new google.maps.LatLng( 0.485809400000000E+02, -0.122944645000000E+03),\n new google.maps.LatLng( 0.485819920000000E+02, -0.122943750000000E+03),\n new google.maps.LatLng( 0.485832710000000E+02, -0.122940410000000E+03),\n new google.maps.LatLng( 0.485853280000000E+02, -0.122941788000000E+03),\n new google.maps.LatLng( 0.485877730000000E+02, -0.122947196000000E+03),\n new google.maps.LatLng( 0.485880220000000E+02, -0.122959699000000E+03),\n new google.maps.LatLng( 0.485899870000000E+02, -0.122964143000000E+03),\n new google.maps.LatLng( 0.485930020000000E+02, -0.122965970000000E+03),\n new google.maps.LatLng( 0.485952420000000E+02, -0.122966488000000E+03),\n new google.maps.LatLng( 0.485943730000000E+02, -0.122968967000000E+03),\n new google.maps.LatLng( 0.485915170000000E+02, -0.122968208000000E+03),\n new google.maps.LatLng( 0.485909450000000E+02, -0.122968311000000E+03),\n new google.maps.LatLng( 0.485906710000000E+02, -0.122969069000000E+03),\n new google.maps.LatLng( 0.485913550000000E+02, -0.122974098000000E+03),\n new google.maps.LatLng( 0.485926330000000E+02, -0.122978060000000E+03),\n new google.maps.LatLng( 0.485926320000000E+02, -0.122980609000000E+03),\n new google.maps.LatLng( 0.485916240000000E+02, -0.122987773000000E+03),\n new google.maps.LatLng( 0.485881480000000E+02, -0.122994314000000E+03),\n new google.maps.LatLng( 0.485842850000000E+02, -0.123005588000000E+03),\n new google.maps.LatLng( 0.485844240000000E+02, -0.123009342000000E+03),\n new google.maps.LatLng( 0.485851320000000E+02, -0.123009858000000E+03),\n new google.maps.LatLng( 0.485864350000000E+02, -0.123009409000000E+03),\n new google.maps.LatLng( 0.485870520000000E+02, -0.123010028000000E+03),\n new google.maps.LatLng( 0.485871440000000E+02, -0.123012336000000E+03),\n new google.maps.LatLng( 0.485863690000000E+02, -0.123014678000000E+03),\n new google.maps.LatLng( 0.485807240000000E+02, -0.123016957000000E+03),\n new google.maps.LatLng( 0.485802440000000E+02, -0.123016647000000E+03),\n new google.maps.LatLng( 0.485802440000000E+02, -0.123016647000000E+03),\n new google.maps.LatLng( 0.485911584586742E+02, -0.123033179236544E+03),\n new google.maps.LatLng( 0.485917670000000E+02, -0.123034101000000E+03),\n new google.maps.LatLng( 0.485929908766029E+02, -0.123029957297067E+03),\n new google.maps.LatLng( 0.485944840000000E+02, -0.123024902000000E+03),\n new google.maps.LatLng( 0.485946546064488E+02, -0.123024851805553E+03),\n new google.maps.LatLng( 0.485994770000000E+02, -0.123023433000000E+03),\n new google.maps.LatLng( 0.486105591982848E+02, -0.123039212912810E+03),\n new google.maps.LatLng( 0.486105591982848E+02, -0.123039212912810E+03),\n new google.maps.LatLng( 0.486105520000000E+02, -0.123038847000000E+03),\n new google.maps.LatLng( 0.486123570000000E+02, -0.123038294000000E+03),\n new google.maps.LatLng( 0.486171330000000E+02, -0.123040602000000E+03),\n new google.maps.LatLng( 0.486194420000000E+02, -0.123044151000000E+03),\n new google.maps.LatLng( 0.486195340000000E+02, -0.123047666000000E+03),\n new google.maps.LatLng( 0.486210020000000E+02, -0.123048652000000E+03),\n new google.maps.LatLng( 0.486210020000000E+02, -0.123048652000000E+03),\n new google.maps.LatLng( 0.486335030590531E+02, -0.123024458666467E+03),\n new google.maps.LatLng( 0.486335030590531E+02, -0.123024458666467E+03),\n new google.maps.LatLng( 0.486330740000000E+02, -0.123024923000000E+03),\n new google.maps.LatLng( 0.486016480000000E+02, -0.122993491000000E+03),\n new google.maps.LatLng( 0.486013310000000E+02, -0.122998429000000E+03),\n new google.maps.LatLng( 0.485983390000000E+02, -0.123007296000000E+03),\n new google.maps.LatLng( 0.485966940000000E+02, -0.123007883000000E+03),\n new google.maps.LatLng( 0.485950030000000E+02, -0.123007265000000E+03),\n new google.maps.LatLng( 0.485937450000000E+02, -0.123005956000000E+03),\n new google.maps.LatLng( 0.485929450000000E+02, -0.123004097000000E+03),\n new google.maps.LatLng( 0.485926940000000E+02, -0.122996730000000E+03),\n new google.maps.LatLng( 0.485934740000000E+02, -0.122991185000000E+03),\n new google.maps.LatLng( 0.485947310000000E+02, -0.122989154000000E+03),\n new google.maps.LatLng( 0.485954860000000E+02, -0.122988741000000E+03),\n new google.maps.LatLng( 0.486014260000000E+02, -0.122991435000000E+03),\n new google.maps.LatLng( 0.486016480000000E+02, -0.122993491000000E+03),\n new google.maps.LatLng( 0.485547070000000E+02, -0.122925607000000E+03),\n new google.maps.LatLng( 0.485569690000000E+02, -0.122922818000000E+03),\n new google.maps.LatLng( 0.485576550000000E+02, -0.122922853000000E+03),\n new google.maps.LatLng( 0.485600770000000E+02, -0.122924470000000E+03),\n new google.maps.LatLng( 0.485606710000000E+02, -0.122926054000000E+03),\n new google.maps.LatLng( 0.485605800000000E+02, -0.122927706000000E+03),\n new google.maps.LatLng( 0.485592780000000E+02, -0.122928807000000E+03),\n new google.maps.LatLng( 0.485554390000000E+02, -0.122928051000000E+03),\n new google.maps.LatLng( 0.485547070000000E+02, -0.122925607000000E+03),\n new google.maps.LatLng( 0.485379630000000E+02, -0.123001290000000E+03),\n new google.maps.LatLng( 0.485399290000000E+02, -0.123003194000000E+03),\n new google.maps.LatLng( 0.485409130000000E+02, -0.123005429000000E+03),\n new google.maps.LatLng( 0.485409370000000E+02, -0.123007597000000E+03),\n new google.maps.LatLng( 0.485391100000000E+02, -0.123009182000000E+03),\n new google.maps.LatLng( 0.485376240000000E+02, -0.123008083000000E+03),\n new google.maps.LatLng( 0.485352210000000E+02, -0.123000825000000E+03),\n new google.maps.LatLng( 0.485356340000000E+02, -0.122998280000000E+03),\n new google.maps.LatLng( 0.485363430000000E+02, -0.122998074000000E+03),\n new google.maps.LatLng( 0.485379630000000E+02, -0.123001290000000E+03),\n new google.maps.LatLng( 0.485396020000000E+02, -0.122842801000000E+03),\n new google.maps.LatLng( 0.485420910000000E+02, -0.122844209000000E+03),\n new google.maps.LatLng( 0.485425020000000E+02, -0.122845895000000E+03),\n new google.maps.LatLng( 0.485397590000000E+02, -0.122848922000000E+03),\n new google.maps.LatLng( 0.485384100000000E+02, -0.122849437000000E+03),\n new google.maps.LatLng( 0.485335660000000E+02, -0.122846853000000E+03),\n new google.maps.LatLng( 0.485332700000000E+02, -0.122845717000000E+03),\n new google.maps.LatLng( 0.485340240000000E+02, -0.122844789000000E+03),\n new google.maps.LatLng( 0.485358290000000E+02, -0.122845444000000E+03),\n new google.maps.LatLng( 0.485396020000000E+02, -0.122842801000000E+03),\n new google.maps.LatLng( 0.484914280000000E+02, -0.122824238000000E+03),\n new google.maps.LatLng( 0.484934610000000E+02, -0.122827161000000E+03),\n new google.maps.LatLng( 0.484944200000000E+02, -0.122833384000000E+03),\n new google.maps.LatLng( 0.484938030000000E+02, -0.122835859000000E+03),\n new google.maps.LatLng( 0.484929340000000E+02, -0.122836477000000E+03),\n new google.maps.LatLng( 0.484907410000000E+02, -0.122836683000000E+03),\n new google.maps.LatLng( 0.484860110000000E+02, -0.122835306000000E+03),\n new google.maps.LatLng( 0.484849830000000E+02, -0.122834618000000E+03),\n new google.maps.LatLng( 0.484846860000000E+02, -0.122832315000000E+03),\n new google.maps.LatLng( 0.484869490000000E+02, -0.122827434000000E+03),\n new google.maps.LatLng( 0.484888000000000E+02, -0.122824719000000E+03),\n new google.maps.LatLng( 0.484898970000000E+02, -0.122824066000000E+03),\n new google.maps.LatLng( 0.484914280000000E+02, -0.122824238000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.490000932993622E+02, -0.119919242571380E+03),\n new google.maps.LatLng( 0.490004480000000E+02, -0.119876195000000E+03),\n new google.maps.LatLng( 0.490002690000000E+02, -0.119702016000000E+03),\n new google.maps.LatLng( 0.490002580000000E+02, -0.119701218000000E+03),\n new google.maps.LatLng( 0.490002593472647E+02, -0.119591856929598E+03),\n new google.maps.LatLng( 0.490002600404256E+02, -0.119535591210914E+03),\n new google.maps.LatLng( 0.490002600404256E+02, -0.119535591210914E+03),\n new google.maps.LatLng( 0.489991960000000E+02, -0.119534914000000E+03),\n new google.maps.LatLng( 0.489956110000000E+02, -0.119537102000000E+03),\n new google.maps.LatLng( 0.489929850000000E+02, -0.119541858000000E+03),\n new google.maps.LatLng( 0.489845130000000E+02, -0.119546511000000E+03),\n new google.maps.LatLng( 0.489835990000000E+02, -0.119546511000000E+03),\n new google.maps.LatLng( 0.489811780000000E+02, -0.119543181000000E+03),\n new google.maps.LatLng( 0.489815430000000E+02, -0.119540994000000E+03),\n new google.maps.LatLng( 0.489833920000000E+02, -0.119536518000000E+03),\n new google.maps.LatLng( 0.489832550000000E+02, -0.119534783000000E+03),\n new google.maps.LatLng( 0.489795300000000E+02, -0.119525762000000E+03),\n new google.maps.LatLng( 0.489812640000000E+02, -0.119521146000000E+03),\n new google.maps.LatLng( 0.489837300000000E+02, -0.119518889000000E+03),\n new google.maps.LatLng( 0.489851220000000E+02, -0.119516285000000E+03),\n new google.maps.LatLng( 0.489847760000000E+02, -0.119508408000000E+03),\n new google.maps.LatLng( 0.489828570000000E+02, -0.119506432000000E+03),\n new google.maps.LatLng( 0.489816920000000E+02, -0.119506607000000E+03),\n new google.maps.LatLng( 0.489757050000000E+02, -0.119511583000000E+03),\n new google.maps.LatLng( 0.489747400000000E+02, -0.119511746000000E+03),\n new google.maps.LatLng( 0.489730030000000E+02, -0.119510030000000E+03),\n new google.maps.LatLng( 0.489714910000000E+02, -0.119504145000000E+03),\n new google.maps.LatLng( 0.489701640000000E+02, -0.119502116000000E+03),\n new google.maps.LatLng( 0.489690670000000E+02, -0.119501183000000E+03),\n new google.maps.LatLng( 0.489686800000000E+02, -0.119501552000000E+03),\n new google.maps.LatLng( 0.489658590000000E+02, -0.119501442000000E+03),\n new google.maps.LatLng( 0.489627690000000E+02, -0.119498803000000E+03),\n new google.maps.LatLng( 0.489627690000000E+02, -0.119498803000000E+03),\n new google.maps.LatLng( 0.489628220000000E+02, -0.119499592000000E+03),\n new google.maps.LatLng( 0.489628220000000E+02, -0.119499592000000E+03),\n new google.maps.LatLng( 0.489644660000000E+02, -0.119500670000000E+03),\n new google.maps.LatLng( 0.489644660000000E+02, -0.119500670000000E+03),\n new google.maps.LatLng( 0.489661820000000E+02, -0.119502044000000E+03),\n new google.maps.LatLng( 0.489683740000000E+02, -0.119501833000000E+03),\n new google.maps.LatLng( 0.489702930000000E+02, -0.119502837000000E+03),\n new google.maps.LatLng( 0.489715280000000E+02, -0.119505333000000E+03),\n new google.maps.LatLng( 0.489727180000000E+02, -0.119510190000000E+03),\n new google.maps.LatLng( 0.489746370000000E+02, -0.119512478000000E+03),\n new google.maps.LatLng( 0.489759620000000E+02, -0.119512269000000E+03),\n new google.maps.LatLng( 0.489787470000000E+02, -0.119510496000000E+03),\n new google.maps.LatLng( 0.489812130000000E+02, -0.119507996000000E+03),\n new google.maps.LatLng( 0.489825150000000E+02, -0.119507960000000E+03),\n new google.maps.LatLng( 0.489839780000000E+02, -0.119510387000000E+03),\n new google.maps.LatLng( 0.489840260000000E+02, -0.119516807000000E+03),\n new google.maps.LatLng( 0.489814000000000E+02, -0.119519481000000E+03),\n new google.maps.LatLng( 0.489791630000000E+02, -0.119523681000000E+03),\n new google.maps.LatLng( 0.489787530000000E+02, -0.119526075000000E+03),\n new google.maps.LatLng( 0.489791880000000E+02, -0.119529996000000E+03),\n new google.maps.LatLng( 0.489797140000000E+02, -0.119531244000000E+03),\n new google.maps.LatLng( 0.489816560000000E+02, -0.119533153000000E+03),\n new google.maps.LatLng( 0.489823410000000E+02, -0.119534922000000E+03),\n new google.maps.LatLng( 0.489821820000000E+02, -0.119536588000000E+03),\n new google.maps.LatLng( 0.489802410000000E+02, -0.119542209000000E+03),\n new google.maps.LatLng( 0.489801960000000E+02, -0.119546616000000E+03),\n new google.maps.LatLng( 0.489815670000000E+02, -0.119552688000000E+03),\n new google.maps.LatLng( 0.489812470000000E+02, -0.119555880000000E+03),\n new google.maps.LatLng( 0.489823670000000E+02, -0.119558031000000E+03),\n new google.maps.LatLng( 0.489857010000000E+02, -0.119561779000000E+03),\n new google.maps.LatLng( 0.489865450000000E+02, -0.119573093000000E+03),\n new google.maps.LatLng( 0.489883720000000E+02, -0.119578264000000E+03),\n new google.maps.LatLng( 0.489893070000000E+02, -0.119583296000000E+03),\n new google.maps.LatLng( 0.489892380000000E+02, -0.119587773000000E+03),\n new google.maps.LatLng( 0.489879800000000E+02, -0.119593081000000E+03),\n new google.maps.LatLng( 0.489878870000000E+02, -0.119599606000000E+03),\n new google.maps.LatLng( 0.489860330000000E+02, -0.119605851000000E+03),\n new google.maps.LatLng( 0.489860750000000E+02, -0.119615637000000E+03),\n new google.maps.LatLng( 0.489830790000000E+02, -0.119623059000000E+03),\n new google.maps.LatLng( 0.489827480000000E+02, -0.119626187000000E+03),\n new google.maps.LatLng( 0.489812090000000E+02, -0.119631128000000E+03),\n new google.maps.LatLng( 0.489794290000000E+02, -0.119633593000000E+03),\n new google.maps.LatLng( 0.489750910000000E+02, -0.119637309000000E+03),\n new google.maps.LatLng( 0.489728310000000E+02, -0.119638318000000E+03),\n new google.maps.LatLng( 0.489677620000000E+02, -0.119642346000000E+03),\n new google.maps.LatLng( 0.489663010000000E+02, -0.119643214000000E+03),\n new google.maps.LatLng( 0.489618700000000E+02, -0.119643842000000E+03),\n new google.maps.LatLng( 0.489551560000000E+02, -0.119648703000000E+03),\n new google.maps.LatLng( 0.489533300000000E+02, -0.119649502000000E+03),\n new google.maps.LatLng( 0.489526680000000E+02, -0.119651340000000E+03),\n new google.maps.LatLng( 0.489462740000000E+02, -0.119656476000000E+03),\n new google.maps.LatLng( 0.489441510000000E+02, -0.119656512000000E+03),\n new google.maps.LatLng( 0.489404290000000E+02, -0.119659426000000E+03),\n new google.maps.LatLng( 0.489385330000000E+02, -0.119659601000000E+03),\n new google.maps.LatLng( 0.489369570000000E+02, -0.119658908000000E+03),\n new google.maps.LatLng( 0.489374360000000E+02, -0.119658561000000E+03),\n new google.maps.LatLng( 0.489386930000000E+02, -0.119658838000000E+03),\n new google.maps.LatLng( 0.489396060000000E+02, -0.119658629000000E+03),\n new google.maps.LatLng( 0.489400400000000E+02, -0.119658005000000E+03),\n new google.maps.LatLng( 0.489416610000000E+02, -0.119657866000000E+03),\n new google.maps.LatLng( 0.489439450000000E+02, -0.119655645000000E+03),\n new google.maps.LatLng( 0.489463200000000E+02, -0.119655401000000E+03),\n new google.maps.LatLng( 0.489476900000000E+02, -0.119654118000000E+03),\n new google.maps.LatLng( 0.489494480000000E+02, -0.119653492000000E+03),\n new google.maps.LatLng( 0.489527820000000E+02, -0.119649606000000E+03),\n new google.maps.LatLng( 0.489602480000000E+02, -0.119643566000000E+03),\n new google.maps.LatLng( 0.489626460000000E+02, -0.119642385000000E+03),\n new google.maps.LatLng( 0.489646790000000E+02, -0.119642591000000E+03),\n new google.maps.LatLng( 0.489659120000000E+02, -0.119642209000000E+03),\n new google.maps.LatLng( 0.489681270000000E+02, -0.119641062000000E+03),\n new google.maps.LatLng( 0.489787890000000E+02, -0.119633038000000E+03),\n new google.maps.LatLng( 0.489802960000000E+02, -0.119631024000000E+03),\n new google.maps.LatLng( 0.489811170000000E+02, -0.119628803000000E+03),\n new google.maps.LatLng( 0.489828050000000E+02, -0.119622017000000E+03),\n new google.maps.LatLng( 0.489856180000000E+02, -0.119614456000000E+03),\n new google.maps.LatLng( 0.489852560000000E+02, -0.119606891000000E+03),\n new google.maps.LatLng( 0.489872700000000E+02, -0.119599051000000E+03),\n new google.maps.LatLng( 0.489876600000000E+02, -0.119593255000000E+03),\n new google.maps.LatLng( 0.489888720000000E+02, -0.119586558000000E+03),\n new google.maps.LatLng( 0.489888050000000E+02, -0.119582879000000E+03),\n new google.maps.LatLng( 0.489882120000000E+02, -0.119579409000000E+03),\n new google.maps.LatLng( 0.489857690000000E+02, -0.119573301000000E+03),\n new google.maps.LatLng( 0.489858150000000E+02, -0.119565076000000E+03),\n new google.maps.LatLng( 0.489848790000000E+02, -0.119561224000000E+03),\n new google.maps.LatLng( 0.489821610000000E+02, -0.119559072000000E+03),\n new google.maps.LatLng( 0.489808820000000E+02, -0.119556435000000E+03),\n new google.maps.LatLng( 0.489810640000000E+02, -0.119552271000000E+03),\n new google.maps.LatLng( 0.489798990000000E+02, -0.119548351000000E+03),\n new google.maps.LatLng( 0.489795560000000E+02, -0.119543597000000E+03),\n new google.maps.LatLng( 0.489799210000000E+02, -0.119541030000000E+03),\n new google.maps.LatLng( 0.489813140000000E+02, -0.119538080000000E+03),\n new google.maps.LatLng( 0.489818160000000E+02, -0.119535373000000E+03),\n new google.maps.LatLng( 0.489810160000000E+02, -0.119533569000000E+03),\n new google.maps.LatLng( 0.489788910000000E+02, -0.119531210000000E+03),\n new google.maps.LatLng( 0.489782510000000E+02, -0.119527359000000E+03),\n new google.maps.LatLng( 0.489788660000000E+02, -0.119523022000000E+03),\n new google.maps.LatLng( 0.489814460000000E+02, -0.119518509000000E+03),\n new google.maps.LatLng( 0.489833860000000E+02, -0.119516460000000E+03),\n new google.maps.LatLng( 0.489836360000000E+02, -0.119511567000000E+03),\n new google.maps.LatLng( 0.489822640000000E+02, -0.119509001000000E+03),\n new google.maps.LatLng( 0.489760080000000E+02, -0.119513275000000E+03),\n new google.maps.LatLng( 0.489747060000000E+02, -0.119513206000000E+03),\n new google.maps.LatLng( 0.489733810000000E+02, -0.119512202000000E+03),\n new google.maps.LatLng( 0.489715760000000E+02, -0.119509706000000E+03),\n new google.maps.LatLng( 0.489704540000000E+02, -0.119504745000000E+03),\n new google.maps.LatLng( 0.489682610000000E+02, -0.119503013000000E+03),\n new google.maps.LatLng( 0.489666850000000E+02, -0.119502841000000E+03),\n new google.maps.LatLng( 0.489648330000000E+02, -0.119501733000000E+03),\n new google.maps.LatLng( 0.489648330000000E+02, -0.119501733000000E+03),\n new google.maps.LatLng( 0.489640580000000E+02, -0.119504474000000E+03),\n new google.maps.LatLng( 0.489615690000000E+02, -0.119506073000000E+03),\n new google.maps.LatLng( 0.489599490000000E+02, -0.119509161000000E+03),\n new google.maps.LatLng( 0.489576000000000E+02, -0.119519013000000E+03),\n new google.maps.LatLng( 0.489563900000000E+02, -0.119520332000000E+03),\n new google.maps.LatLng( 0.489465230000000E+02, -0.119518711000000E+03),\n new google.maps.LatLng( 0.489447870000000E+02, -0.119517602000000E+03),\n new google.maps.LatLng( 0.489354440000000E+02, -0.119513970000000E+03),\n new google.maps.LatLng( 0.489273580000000E+02, -0.119513596000000E+03),\n new google.maps.LatLng( 0.489273360000000E+02, -0.119515988000000E+03),\n new google.maps.LatLng( 0.489294840000000E+02, -0.119518932000000E+03),\n new google.maps.LatLng( 0.489302840000000E+02, -0.119522156000000E+03),\n new google.maps.LatLng( 0.489313160000000E+02, -0.119536298000000E+03),\n new google.maps.LatLng( 0.489302430000000E+02, -0.119539765000000E+03),\n new google.maps.LatLng( 0.489268640000000E+02, -0.119546560000000E+03),\n new google.maps.LatLng( 0.489260420000000E+02, -0.119547738000000E+03),\n new google.maps.LatLng( 0.489226620000000E+02, -0.119550096000000E+03),\n new google.maps.LatLng( 0.489206290000000E+02, -0.119549091000000E+03),\n new google.maps.LatLng( 0.489172480000000E+02, -0.119543825000000E+03),\n new google.maps.LatLng( 0.489122690000000E+02, -0.119541159000000E+03),\n new google.maps.LatLng( 0.489077230000000E+02, -0.119536967000000E+03),\n new google.maps.LatLng( 0.489029720000000E+02, -0.119535896000000E+03),\n new google.maps.LatLng( 0.489013050000000E+02, -0.119536174000000E+03),\n new google.maps.LatLng( 0.488992950000000E+02, -0.119539500000000E+03),\n new google.maps.LatLng( 0.489033840000000E+02, -0.119541231000000E+03),\n new google.maps.LatLng( 0.489020830000000E+02, -0.119544661000000E+03),\n new google.maps.LatLng( 0.489005750000000E+02, -0.119547017000000E+03),\n new google.maps.LatLng( 0.488977200000000E+02, -0.119548819000000E+03),\n new google.maps.LatLng( 0.488971950000000E+02, -0.119552803000000E+03),\n new google.maps.LatLng( 0.488979720000000E+02, -0.119555887000000E+03),\n new google.maps.LatLng( 0.489004390000000E+02, -0.119559593000000E+03),\n new google.maps.LatLng( 0.489012380000000E+02, -0.119566175000000E+03),\n new google.maps.LatLng( 0.489006440000000E+02, -0.119568912000000E+03),\n new google.maps.LatLng( 0.488898180000000E+02, -0.119569915000000E+03),\n new google.maps.LatLng( 0.488869180000000E+02, -0.119567663000000E+03),\n new google.maps.LatLng( 0.488804540000000E+02, -0.119565827000000E+03),\n new google.maps.LatLng( 0.488768690000000E+02, -0.119566450000000E+03),\n new google.maps.LatLng( 0.488756350000000E+02, -0.119568077000000E+03),\n new google.maps.LatLng( 0.488754300000000E+02, -0.119570708000000E+03),\n new google.maps.LatLng( 0.488715690000000E+02, -0.119572237000000E+03),\n new google.maps.LatLng( 0.488700840000000E+02, -0.119572687000000E+03),\n new google.maps.LatLng( 0.488607200000000E+02, -0.119572373000000E+03),\n new google.maps.LatLng( 0.488481820000000E+02, -0.119567835000000E+03),\n new google.maps.LatLng( 0.488416040000000E+02, -0.119563855000000E+03),\n new google.maps.LatLng( 0.488355960000000E+02, -0.119564097000000E+03),\n new google.maps.LatLng( 0.488328100000000E+02, -0.119562297000000E+03),\n new google.maps.LatLng( 0.488315080000000E+02, -0.119560637000000E+03),\n new google.maps.LatLng( 0.488324360000000E+02, -0.119558894000000E+03),\n new google.maps.LatLng( 0.488298180000000E+02, -0.119555482000000E+03),\n new google.maps.LatLng( 0.488221690000000E+02, -0.119556186000000E+03),\n new google.maps.LatLng( 0.488221690000000E+02, -0.119556186000000E+03),\n new google.maps.LatLng( 0.488205220000000E+02, -0.119555932000000E+03),\n new google.maps.LatLng( 0.488178040000000E+02, -0.119553131000000E+03),\n new google.maps.LatLng( 0.488138070000000E+02, -0.119554377000000E+03),\n new google.maps.LatLng( 0.488131950000000E+02, -0.119555156000000E+03),\n new google.maps.LatLng( 0.488129160000000E+02, -0.119559875000000E+03),\n new google.maps.LatLng( 0.488134420000000E+02, -0.119564440000000E+03),\n new google.maps.LatLng( 0.488181690000000E+02, -0.119574921000000E+03),\n new google.maps.LatLng( 0.488175520000000E+02, -0.119577376000000E+03),\n new google.maps.LatLng( 0.488180760000000E+02, -0.119581249000000E+03),\n new google.maps.LatLng( 0.488196290000000E+02, -0.119584768000000E+03),\n new google.maps.LatLng( 0.488202430000000E+02, -0.119593875000000E+03),\n new google.maps.LatLng( 0.488175680000000E+02, -0.119604041000000E+03),\n new google.maps.LatLng( 0.488175200000000E+02, -0.119609298000000E+03),\n new google.maps.LatLng( 0.488158280000000E+02, -0.119609436000000E+03),\n new google.maps.LatLng( 0.488154670000000E+02, -0.119603659000000E+03),\n new google.maps.LatLng( 0.488160180000000E+02, -0.119593526000000E+03),\n new google.maps.LatLng( 0.488127090000000E+02, -0.119581974000000E+03),\n new google.maps.LatLng( 0.488121610000000E+02, -0.119581662000000E+03),\n new google.maps.LatLng( 0.488109050000000E+02, -0.119582837000000E+03),\n new google.maps.LatLng( 0.488015160000000E+02, -0.119583248000000E+03),\n new google.maps.LatLng( 0.487971990000000E+02, -0.119584664000000E+03),\n new google.maps.LatLng( 0.487963310000000E+02, -0.119585458000000E+03),\n new google.maps.LatLng( 0.487961260000000E+02, -0.119586461000000E+03),\n new google.maps.LatLng( 0.487959420000000E+02, -0.119590194000000E+03),\n new google.maps.LatLng( 0.487969690000000E+02, -0.119592822000000E+03),\n new google.maps.LatLng( 0.488029950000000E+02, -0.119604339000000E+03),\n new google.maps.LatLng( 0.488050270000000E+02, -0.119606347000000E+03),\n new google.maps.LatLng( 0.488057100000000E+02, -0.119610670000000E+03),\n new google.maps.LatLng( 0.488043380000000E+02, -0.119615025000000E+03),\n new google.maps.LatLng( 0.488042450000000E+02, -0.119617722000000E+03),\n new google.maps.LatLng( 0.488054320000000E+02, -0.119620039000000E+03),\n new google.maps.LatLng( 0.488083540000000E+02, -0.119622360000000E+03),\n new google.maps.LatLng( 0.488088090000000E+02, -0.119625265000000E+03),\n new google.maps.LatLng( 0.488063220000000E+02, -0.119626687000000E+03),\n new google.maps.LatLng( 0.488038560000000E+02, -0.119627139000000E+03),\n new google.maps.LatLng( 0.488011610000000E+02, -0.119627211000000E+03),\n new google.maps.LatLng( 0.487994710000000E+02, -0.119626764000000E+03),\n new google.maps.LatLng( 0.487969110000000E+02, -0.119624178000000E+03),\n new google.maps.LatLng( 0.487969800000000E+02, -0.119623452000000E+03),\n new google.maps.LatLng( 0.487987160000000E+02, -0.119621380000000E+03),\n new google.maps.LatLng( 0.487991740000000E+02, -0.119619375000000E+03),\n new google.maps.LatLng( 0.487985590000000E+02, -0.119617577000000E+03),\n new google.maps.LatLng( 0.487967320000000E+02, -0.119615259000000E+03),\n new google.maps.LatLng( 0.487904080000000E+02, -0.119611172000000E+03),\n new google.maps.LatLng( 0.487786900000000E+02, -0.119610366000000E+03),\n new google.maps.LatLng( 0.487748740000000E+02, -0.119615511000000E+03),\n new google.maps.LatLng( 0.487740730000000E+02, -0.119619208000000E+03),\n new google.maps.LatLng( 0.487716270000000E+02, -0.119622971000000E+03),\n new google.maps.LatLng( 0.487679500000000E+02, -0.119622898000000E+03),\n new google.maps.LatLng( 0.487621500000000E+02, -0.119627188000000E+03),\n new google.maps.LatLng( 0.487613060000000E+02, -0.119628847000000E+03),\n new google.maps.LatLng( 0.487651910000000E+02, -0.119633749000000E+03),\n new google.maps.LatLng( 0.487650800000000E+02, -0.119639208000000E+03),\n new google.maps.LatLng( 0.487664740000000E+02, -0.119641556000000E+03),\n new google.maps.LatLng( 0.487673190000000E+02, -0.119642212000000E+03),\n new google.maps.LatLng( 0.487683240000000E+02, -0.119641831000000E+03),\n new google.maps.LatLng( 0.487691230000000E+02, -0.119642659000000E+03),\n new google.maps.LatLng( 0.487699700000000E+02, -0.119646182000000E+03),\n new google.maps.LatLng( 0.487669330000000E+02, -0.119649709000000E+03),\n new google.maps.LatLng( 0.487617040000000E+02, -0.119653686000000E+03),\n new google.maps.LatLng( 0.487550350000000E+02, -0.119656695000000E+03),\n new google.maps.LatLng( 0.487550350000000E+02, -0.119656695000000E+03),\n new google.maps.LatLng( 0.487558680000000E+02, -0.119658138000000E+03),\n new google.maps.LatLng( 0.487513360000000E+02, -0.119659979000000E+03),\n new google.maps.LatLng( 0.487501520000000E+02, -0.119661493000000E+03),\n new google.maps.LatLng( 0.487498940000000E+02, -0.119662676000000E+03),\n new google.maps.LatLng( 0.487520110000000E+02, -0.119662586000000E+03),\n new google.maps.LatLng( 0.487610880000000E+02, -0.119657762000000E+03),\n new google.maps.LatLng( 0.487671860000000E+02, -0.119653751000000E+03),\n new google.maps.LatLng( 0.487770970000000E+02, -0.119649390000000E+03),\n new google.maps.LatLng( 0.487810940000000E+02, -0.119649976000000E+03),\n new google.maps.LatLng( 0.487842230000000E+02, -0.119649593000000E+03),\n new google.maps.LatLng( 0.487864380000000E+02, -0.119648313000000E+03),\n new google.maps.LatLng( 0.487876930000000E+02, -0.119646584000000E+03),\n new google.maps.LatLng( 0.487896570000000E+02, -0.119645960000000E+03),\n new google.maps.LatLng( 0.487964650000000E+02, -0.119647579000000E+03),\n new google.maps.LatLng( 0.487955520000000E+02, -0.119650207000000E+03),\n new google.maps.LatLng( 0.487931300000000E+02, -0.119650416000000E+03),\n new google.maps.LatLng( 0.487917150000000E+02, -0.119652491000000E+03),\n new google.maps.LatLng( 0.487922880000000E+02, -0.119660234000000E+03),\n new google.maps.LatLng( 0.487905980000000E+02, -0.119662654000000E+03),\n new google.maps.LatLng( 0.487921530000000E+02, -0.119669671000000E+03),\n new google.maps.LatLng( 0.487931580000000E+02, -0.119672229000000E+03),\n new google.maps.LatLng( 0.487941170000000E+02, -0.119672712000000E+03),\n new google.maps.LatLng( 0.487950990000000E+02, -0.119674544000000E+03),\n new google.maps.LatLng( 0.488011290000000E+02, -0.119695494000000E+03),\n new google.maps.LatLng( 0.487985240000000E+02, -0.119708668000000E+03),\n new google.maps.LatLng( 0.487947610000000E+02, -0.119716602000000E+03),\n new google.maps.LatLng( 0.487957620000000E+02, -0.119721433000000E+03),\n new google.maps.LatLng( 0.487984290000000E+02, -0.119722805000000E+03),\n new google.maps.LatLng( 0.487988180000000E+02, -0.119720869000000E+03),\n new google.maps.LatLng( 0.487994800000000E+02, -0.119721423000000E+03),\n new google.maps.LatLng( 0.488041600000000E+02, -0.119728202000000E+03),\n new google.maps.LatLng( 0.488042510000000E+02, -0.119728998000000E+03),\n new google.maps.LatLng( 0.488024900000000E+02, -0.119735184000000E+03),\n new google.maps.LatLng( 0.488027860000000E+02, -0.119737397000000E+03),\n new google.maps.LatLng( 0.488041540000000E+02, -0.119740892000000E+03),\n new google.maps.LatLng( 0.488038800000000E+02, -0.119742101000000E+03),\n new google.maps.LatLng( 0.488030340000000E+02, -0.119742619000000E+03),\n new google.maps.LatLng( 0.488008880000000E+02, -0.119742513000000E+03),\n new google.maps.LatLng( 0.487981910000000E+02, -0.119745241000000E+03),\n new google.maps.LatLng( 0.487992630000000E+02, -0.119751187000000E+03),\n new google.maps.LatLng( 0.487992910000000E+02, -0.119758720000000E+03),\n new google.maps.LatLng( 0.487983100000000E+02, -0.119761072000000E+03),\n new google.maps.LatLng( 0.487917990000000E+02, -0.119758970000000E+03),\n new google.maps.LatLng( 0.487894010000000E+02, -0.119759422000000E+03),\n new google.maps.LatLng( 0.487889930000000E+02, -0.119766923000000E+03),\n new google.maps.LatLng( 0.487892680000000E+02, -0.119768408000000E+03),\n new google.maps.LatLng( 0.487907990000000E+02, -0.119771034000000E+03),\n new google.maps.LatLng( 0.487904360000000E+02, -0.119776911000000E+03),\n new google.maps.LatLng( 0.487907120000000E+02, -0.119783547000000E+03),\n new google.maps.LatLng( 0.487919920000000E+02, -0.119787936000000E+03),\n new google.maps.LatLng( 0.487932270000000E+02, -0.119802765000000E+03),\n new google.maps.LatLng( 0.487927930000000E+02, -0.119821706000000E+03),\n new google.maps.LatLng( 0.487911490000000E+02, -0.119821706000000E+03),\n new google.maps.LatLng( 0.487895260000000E+02, -0.119827235000000E+03),\n new google.maps.LatLng( 0.487897780000000E+02, -0.119828514000000E+03),\n new google.maps.LatLng( 0.487912620000000E+02, -0.119829310000000E+03),\n new google.maps.LatLng( 0.487912160000000E+02, -0.119830762000000E+03),\n new google.maps.LatLng( 0.487900740000000E+02, -0.119832663000000E+03),\n new google.maps.LatLng( 0.487879720000000E+02, -0.119834459000000E+03),\n new google.maps.LatLng( 0.487836790000000E+02, -0.119836151000000E+03),\n new google.maps.LatLng( 0.487818280000000E+02, -0.119839951000000E+03),\n new google.maps.LatLng( 0.487809370000000E+02, -0.119840469000000E+03),\n new google.maps.LatLng( 0.487784940000000E+02, -0.119839431000000E+03),\n new google.maps.LatLng( 0.487759600000000E+02, -0.119835109000000E+03),\n new google.maps.LatLng( 0.487745210000000E+02, -0.119834936000000E+03),\n new google.maps.LatLng( 0.487718250000000E+02, -0.119837042000000E+03),\n new google.maps.LatLng( 0.487714130000000E+02, -0.119838459000000E+03),\n new google.maps.LatLng( 0.487735810000000E+02, -0.119846926000000E+03),\n new google.maps.LatLng( 0.487777370000000E+02, -0.119851662000000E+03),\n new google.maps.LatLng( 0.487782160000000E+02, -0.119853045000000E+03),\n new google.maps.LatLng( 0.487779870000000E+02, -0.119854427000000E+03),\n new google.maps.LatLng( 0.487760440000000E+02, -0.119856291000000E+03),\n new google.maps.LatLng( 0.487757220000000E+02, -0.119862545000000E+03),\n new google.maps.LatLng( 0.487784140000000E+02, -0.119869597000000E+03),\n new google.maps.LatLng( 0.487771100000000E+02, -0.119871565000000E+03),\n new google.maps.LatLng( 0.487734320000000E+02, -0.119873841000000E+03),\n new google.maps.LatLng( 0.487692750000000E+02, -0.119875460000000E+03),\n new google.maps.LatLng( 0.487656500000000E+02, -0.119882484000000E+03),\n new google.maps.LatLng( 0.487617920000000E+02, -0.119885805000000E+03),\n new google.maps.LatLng( 0.487573420000000E+02, -0.119894790000000E+03),\n new google.maps.LatLng( 0.487564310000000E+02, -0.119901456000000E+03),\n new google.maps.LatLng( 0.487585570000000E+02, -0.119908951000000E+03),\n new google.maps.LatLng( 0.487586030000000E+02, -0.119910920000000E+03),\n new google.maps.LatLng( 0.487558420000000E+02, -0.119919141000000E+03),\n new google.maps.LatLng( 0.487554310000000E+02, -0.119922042000000E+03),\n new google.maps.LatLng( 0.487560020000000E+02, -0.119922767000000E+03),\n new google.maps.LatLng( 0.487602730000000E+02, -0.119923733000000E+03),\n new google.maps.LatLng( 0.487628540000000E+02, -0.119926461000000E+03),\n new google.maps.LatLng( 0.487628080000000E+02, -0.119927568000000E+03),\n new google.maps.LatLng( 0.487609130000000E+02, -0.119930090000000E+03),\n new google.maps.LatLng( 0.487605020000000E+02, -0.119931644000000E+03),\n new google.maps.LatLng( 0.487608670000000E+02, -0.119934269000000E+03),\n new google.maps.LatLng( 0.487624430000000E+02, -0.119938967000000E+03),\n new google.maps.LatLng( 0.487658690000000E+02, -0.119940867000000E+03),\n new google.maps.LatLng( 0.487667590000000E+02, -0.119937205000000E+03),\n new google.maps.LatLng( 0.487700710000000E+02, -0.119932230000000E+03),\n new google.maps.LatLng( 0.487728340000000E+02, -0.119930986000000E+03),\n new google.maps.LatLng( 0.487774930000000E+02, -0.119934924000000E+03),\n new google.maps.LatLng( 0.487771960000000E+02, -0.119941628000000E+03),\n new google.maps.LatLng( 0.487787490000000E+02, -0.119942768000000E+03),\n new google.maps.LatLng( 0.487805070000000E+02, -0.119941697000000E+03),\n new google.maps.LatLng( 0.487814430000000E+02, -0.119942181000000E+03),\n new google.maps.LatLng( 0.487906690000000E+02, -0.119953553000000E+03),\n new google.maps.LatLng( 0.487906460000000E+02, -0.119954936000000E+03),\n new google.maps.LatLng( 0.487915360000000E+02, -0.119957183000000E+03),\n new google.maps.LatLng( 0.487925870000000E+02, -0.119957563000000E+03),\n new google.maps.LatLng( 0.488052620000000E+02, -0.119954734000000E+03),\n new google.maps.LatLng( 0.488064270000000E+02, -0.119950101000000E+03),\n new google.maps.LatLng( 0.488158130000000E+02, -0.119941736000000E+03),\n new google.maps.LatLng( 0.488162250000000E+02, -0.119940284000000E+03),\n new google.maps.LatLng( 0.488153570000000E+02, -0.119940595000000E+03),\n new google.maps.LatLng( 0.488145350000000E+02, -0.119940180000000E+03),\n new google.maps.LatLng( 0.488147630000000E+02, -0.119939488000000E+03),\n new google.maps.LatLng( 0.488161790000000E+02, -0.119938693000000E+03),\n new google.maps.LatLng( 0.488214100000000E+02, -0.119938624000000E+03),\n new google.maps.LatLng( 0.488242180000000E+02, -0.119940215000000E+03),\n new google.maps.LatLng( 0.488257940000000E+02, -0.119944573000000E+03),\n new google.maps.LatLng( 0.488257710000000E+02, -0.119948239000000E+03),\n new google.maps.LatLng( 0.488262500000000E+02, -0.119950003000000E+03),\n new google.maps.LatLng( 0.488273460000000E+02, -0.119951492000000E+03),\n new google.maps.LatLng( 0.488293100000000E+02, -0.119951838000000E+03),\n new google.maps.LatLng( 0.488342650000000E+02, -0.119954158000000E+03),\n new google.maps.LatLng( 0.488380780000000E+02, -0.119957100000000E+03),\n new google.maps.LatLng( 0.488443350000000E+02, -0.119956618000000E+03),\n new google.maps.LatLng( 0.488529910000000E+02, -0.119952469000000E+03),\n new google.maps.LatLng( 0.488570910000000E+02, -0.119947319000000E+03),\n new google.maps.LatLng( 0.488588560000000E+02, -0.119943456000000E+03),\n new google.maps.LatLng( 0.488610850000000E+02, -0.119935392000000E+03),\n new google.maps.LatLng( 0.488621280000000E+02, -0.119935649000000E+03),\n new google.maps.LatLng( 0.488658320000000E+02, -0.119939664000000E+03),\n new google.maps.LatLng( 0.488708500000000E+02, -0.119942666000000E+03),\n new google.maps.LatLng( 0.488718420000000E+02, -0.119941729000000E+03),\n new google.maps.LatLng( 0.488729000000000E+02, -0.119937725000000E+03),\n new google.maps.LatLng( 0.488748730000000E+02, -0.119935802000000E+03),\n new google.maps.LatLng( 0.488756150000000E+02, -0.119935792000000E+03),\n new google.maps.LatLng( 0.488776310000000E+02, -0.119937319000000E+03),\n new google.maps.LatLng( 0.488807140000000E+02, -0.119941053000000E+03),\n new google.maps.LatLng( 0.488830410000000E+02, -0.119945856000000E+03),\n new google.maps.LatLng( 0.488841050000000E+02, -0.119949011000000E+03),\n new google.maps.LatLng( 0.488842530000000E+02, -0.119952312000000E+03),\n new google.maps.LatLng( 0.488851620000000E+02, -0.119953868000000E+03),\n new google.maps.LatLng( 0.488894620000000E+02, -0.119957663000000E+03),\n new google.maps.LatLng( 0.488925800000000E+02, -0.119957344000000E+03),\n new google.maps.LatLng( 0.488938610000000E+02, -0.119958302000000E+03),\n new google.maps.LatLng( 0.488971500000000E+02, -0.119964167000000E+03),\n new google.maps.LatLng( 0.488986050000000E+02, -0.119965858000000E+03),\n new google.maps.LatLng( 0.489015130000000E+02, -0.119965714000000E+03),\n new google.maps.LatLng( 0.489027340000000E+02, -0.119963026000000E+03),\n new google.maps.LatLng( 0.489084670000000E+02, -0.119962998000000E+03),\n new google.maps.LatLng( 0.489131540000000E+02, -0.119965196000000E+03),\n new google.maps.LatLng( 0.489168860000000E+02, -0.119967672000000E+03),\n new google.maps.LatLng( 0.489221230000000E+02, -0.119972203000000E+03),\n new google.maps.LatLng( 0.489308190000000E+02, -0.119976288000000E+03),\n new google.maps.LatLng( 0.489321420000000E+02, -0.119974955000000E+03),\n new google.maps.LatLng( 0.489387170000000E+02, -0.119975121000000E+03),\n new google.maps.LatLng( 0.489408850000000E+02, -0.119977860000000E+03),\n new google.maps.LatLng( 0.489438550000000E+02, -0.119979774000000E+03),\n new google.maps.LatLng( 0.489463630000000E+02, -0.119978617000000E+03),\n new google.maps.LatLng( 0.489540180000000E+02, -0.119970550000000E+03),\n new google.maps.LatLng( 0.489559950000000E+02, -0.119965931000000E+03),\n new google.maps.LatLng( 0.489642980000000E+02, -0.119941603000000E+03),\n new google.maps.LatLng( 0.489643600000000E+02, -0.119939774000000E+03),\n new google.maps.LatLng( 0.489623330000000E+02, -0.119929949000000E+03),\n new google.maps.LatLng( 0.489624430000000E+02, -0.119928694000000E+03),\n new google.maps.LatLng( 0.489644930000000E+02, -0.119924968000000E+03),\n new google.maps.LatLng( 0.489689210000000E+02, -0.119924677000000E+03),\n new google.maps.LatLng( 0.489708820000000E+02, -0.119926382000000E+03),\n new google.maps.LatLng( 0.489720200000000E+02, -0.119930389000000E+03),\n new google.maps.LatLng( 0.489740620000000E+02, -0.119932812000000E+03),\n new google.maps.LatLng( 0.489760200000000E+02, -0.119933035000000E+03),\n new google.maps.LatLng( 0.489771980000000E+02, -0.119931949000000E+03),\n new google.maps.LatLng( 0.489780640000000E+02, -0.119929439000000E+03),\n new google.maps.LatLng( 0.489813530000000E+02, -0.119923909000000E+03),\n new google.maps.LatLng( 0.489931340000000E+02, -0.119920313000000E+03),\n new google.maps.LatLng( 0.490000932993622E+02, -0.119919242571380E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.460406620000000E+02, -0.119866265000000E+03),\n new google.maps.LatLng( 0.460034410000000E+02, -0.119867300000000E+03),\n new google.maps.LatLng( 0.459998540000000E+02, -0.119866849000000E+03),\n new google.maps.LatLng( 0.459521560000000E+02, -0.119867594000000E+03),\n new google.maps.LatLng( 0.459442040000000E+02, -0.119867643000000E+03),\n new google.maps.LatLng( 0.459083140000000E+02, -0.119867869000000E+03),\n new google.maps.LatLng( 0.458954550000000E+02, -0.119867271000000E+03),\n new google.maps.LatLng( 0.458760820000000E+02, -0.119867455000000E+03),\n new google.maps.LatLng( 0.458760820000000E+02, -0.119867455000000E+03),\n new google.maps.LatLng( 0.458709640000000E+02, -0.119867608000000E+03),\n new google.maps.LatLng( 0.458473270000000E+02, -0.119867988000000E+03),\n new google.maps.LatLng( 0.458473270000000E+02, -0.119867988000000E+03),\n new google.maps.LatLng( 0.458447540000000E+02, -0.119870953000000E+03),\n new google.maps.LatLng( 0.458413510000000E+02, -0.119879120000000E+03),\n new google.maps.LatLng( 0.458412400000000E+02, -0.119886999000000E+03),\n new google.maps.LatLng( 0.458372240000000E+02, -0.119900959000000E+03),\n new google.maps.LatLng( 0.458360140000000E+02, -0.119907889000000E+03),\n new google.maps.LatLng( 0.458355350000000E+02, -0.119913805000000E+03),\n new google.maps.LatLng( 0.458356740000000E+02, -0.119925115000000E+03),\n new google.maps.LatLng( 0.458367480000000E+02, -0.119925736000000E+03),\n new google.maps.LatLng( 0.458375250000000E+02, -0.119925638000000E+03),\n new google.maps.LatLng( 0.458391010000000E+02, -0.119923807000000E+03),\n new google.maps.LatLng( 0.458398320000000E+02, -0.119919656000000E+03),\n new google.maps.LatLng( 0.458415220000000E+02, -0.119915994000000E+03),\n new google.maps.LatLng( 0.458415620000000E+02, -0.119909022000000E+03),\n new google.maps.LatLng( 0.458518680000000E+02, -0.119909397000000E+03),\n new google.maps.LatLng( 0.458520240000000E+02, -0.119923289000000E+03),\n new google.maps.LatLng( 0.458524670000000E+02, -0.119923543000000E+03),\n new google.maps.LatLng( 0.458569220000000E+02, -0.119921581000000E+03),\n new google.maps.LatLng( 0.458600060000000E+02, -0.119922397000000E+03),\n new google.maps.LatLng( 0.458615140000000E+02, -0.119922332000000E+03),\n new google.maps.LatLng( 0.458622220000000E+02, -0.119921678000000E+03),\n new google.maps.LatLng( 0.458656600000000E+02, -0.119915488000000E+03),\n new google.maps.LatLng( 0.458656430000000E+02, -0.119909413000000E+03),\n new google.maps.LatLng( 0.458740330000000E+02, -0.119909410000000E+03),\n new google.maps.LatLng( 0.458760010000000E+02, -0.119909827000000E+03),\n new google.maps.LatLng( 0.458739200000000E+02, -0.119913793000000E+03),\n new google.maps.LatLng( 0.458729580000000E+02, -0.119914055000000E+03),\n new google.maps.LatLng( 0.458729740000000E+02, -0.119919364000000E+03),\n new google.maps.LatLng( 0.458769850000000E+02, -0.119922354000000E+03),\n new google.maps.LatLng( 0.458816460000000E+02, -0.119922680000000E+03),\n new google.maps.LatLng( 0.458823770000000E+02, -0.119924185000000E+03),\n new google.maps.LatLng( 0.458821720000000E+02, -0.119926049000000E+03),\n new google.maps.LatLng( 0.458871530000000E+02, -0.119932036000000E+03),\n new google.maps.LatLng( 0.458873810000000E+02, -0.119934686000000E+03),\n new google.maps.LatLng( 0.458900540000000E+02, -0.119937270000000E+03),\n new google.maps.LatLng( 0.458908080000000E+02, -0.119939397000000E+03),\n new google.maps.LatLng( 0.458947820000000E+02, -0.119957066000000E+03),\n new google.maps.LatLng( 0.458949810000000E+02, -0.119982064000000E+03),\n new google.maps.LatLng( 0.458987730000000E+02, -0.119983604000000E+03),\n new google.maps.LatLng( 0.459015130000000E+02, -0.119987502000000E+03),\n new google.maps.LatLng( 0.459051210000000E+02, -0.119990287000000E+03),\n new google.maps.LatLng( 0.459058500000000E+02, -0.119994640000000E+03),\n new google.maps.LatLng( 0.459081100000000E+02, -0.119997882000000E+03),\n new google.maps.LatLng( 0.459113990000000E+02, -0.119998900000000E+03),\n new google.maps.LatLng( 0.459134090000000E+02, -0.120001149000000E+03),\n new google.maps.LatLng( 0.459157500000000E+02, -0.120002016000000E+03),\n new google.maps.LatLng( 0.459165670000000E+02, -0.120002786000000E+03),\n new google.maps.LatLng( 0.459192610000000E+02, -0.120007253000000E+03),\n new google.maps.LatLng( 0.459214340000000E+02, -0.120013012000000E+03),\n new google.maps.LatLng( 0.459269870000000E+02, -0.120016313000000E+03),\n new google.maps.LatLng( 0.459305510000000E+02, -0.120017586000000E+03),\n new google.maps.LatLng( 0.459315570000000E+02, -0.120018830000000E+03),\n new google.maps.LatLng( 0.459348710000000E+02, -0.120020595000000E+03),\n new google.maps.LatLng( 0.459372930000000E+02, -0.120021313000000E+03),\n new google.maps.LatLng( 0.459417000000000E+02, -0.120016463000000E+03),\n new google.maps.LatLng( 0.459477540000000E+02, -0.120015934000000E+03),\n new google.maps.LatLng( 0.459489420000000E+02, -0.120016424000000E+03),\n new google.maps.LatLng( 0.459512280000000E+02, -0.120018616000000E+03),\n new google.maps.LatLng( 0.459542900000000E+02, -0.120019530000000E+03),\n new google.maps.LatLng( 0.459573280000000E+02, -0.120018807000000E+03),\n new google.maps.LatLng( 0.459579440000000E+02, -0.120018217000000E+03),\n new google.maps.LatLng( 0.459596120000000E+02, -0.120018478000000E+03),\n new google.maps.LatLng( 0.459616230000000E+02, -0.120019884000000E+03),\n new google.maps.LatLng( 0.459669700000000E+02, -0.120020962000000E+03),\n new google.maps.LatLng( 0.459684320000000E+02, -0.120020174000000E+03),\n new google.maps.LatLng( 0.459700770000000E+02, -0.120020140000000E+03),\n new google.maps.LatLng( 0.459712880000000E+02, -0.120020729000000E+03),\n new google.maps.LatLng( 0.459724990000000E+02, -0.120022366000000E+03),\n new google.maps.LatLng( 0.459801090000000E+02, -0.120028553000000E+03),\n new google.maps.LatLng( 0.459834240000000E+02, -0.120034023000000E+03),\n new google.maps.LatLng( 0.459869890000000E+02, -0.120037331000000E+03),\n new google.maps.LatLng( 0.459892970000000E+02, -0.120038346000000E+03),\n new google.maps.LatLng( 0.459913070000000E+02, -0.120038607000000E+03),\n new google.maps.LatLng( 0.459955120000000E+02, -0.120041490000000E+03),\n new google.maps.LatLng( 0.459978190000000E+02, -0.120039752000000E+03),\n new google.maps.LatLng( 0.460032410000000E+02, -0.120039330000000E+03),\n new google.maps.LatLng( 0.460050690000000E+02, -0.120038608000000E+03),\n new google.maps.LatLng( 0.460058910000000E+02, -0.120038640000000E+03),\n new google.maps.LatLng( 0.460068520000000E+02, -0.120039554000000E+03),\n new google.maps.LatLng( 0.460068520000000E+02, -0.120039554000000E+03),\n new google.maps.LatLng( 0.460081760000000E+02, -0.120039623000000E+03),\n new google.maps.LatLng( 0.460087240000000E+02, -0.120040147000000E+03),\n new google.maps.LatLng( 0.460122210000000E+02, -0.120045129000000E+03),\n new google.maps.LatLng( 0.460172470000000E+02, -0.120047816000000E+03),\n new google.maps.LatLng( 0.460209490000000E+02, -0.120048799000000E+03),\n new google.maps.LatLng( 0.460243530000000E+02, -0.120047913000000E+03),\n new google.maps.LatLng( 0.460279390000000E+02, -0.120045812000000E+03),\n new google.maps.LatLng( 0.460297670000000E+02, -0.120044073000000E+03),\n new google.maps.LatLng( 0.460310000000000E+02, -0.120041679000000E+03),\n new google.maps.LatLng( 0.460319140000000E+02, -0.120041285000000E+03),\n new google.maps.LatLng( 0.460367350000000E+02, -0.120044005000000E+03),\n new google.maps.LatLng( 0.460377170000000E+02, -0.120045251000000E+03),\n new google.maps.LatLng( 0.460399110000000E+02, -0.120052238000000E+03),\n new google.maps.LatLng( 0.460408260000000E+02, -0.120053401000000E+03),\n new google.maps.LatLng( 0.460408260000000E+02, -0.120053401000000E+03),\n new google.maps.LatLng( 0.460409910000000E+02, -0.119991301000000E+03),\n new google.maps.LatLng( 0.460401870000000E+02, -0.119929165000000E+03),\n new google.maps.LatLng( 0.460406620000000E+02, -0.119866265000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.472889990000000E+02, -0.117268914000000E+03),\n new google.maps.LatLng( 0.472887740000000E+02, -0.117227988000000E+03),\n new google.maps.LatLng( 0.472993560000000E+02, -0.117228300000000E+03),\n new google.maps.LatLng( 0.473032640000000E+02, -0.117228000000000E+03),\n new google.maps.LatLng( 0.473034080000000E+02, -0.117187141000000E+03),\n new google.maps.LatLng( 0.473052150000000E+02, -0.117182706000000E+03),\n new google.maps.LatLng( 0.473061520000000E+02, -0.117181463000000E+03),\n new google.maps.LatLng( 0.473084830000000E+02, -0.117179816000000E+03),\n new google.maps.LatLng( 0.473095790000000E+02, -0.117175447000000E+03),\n new google.maps.LatLng( 0.473093730000000E+02, -0.117173599000000E+03),\n new google.maps.LatLng( 0.473014650000000E+02, -0.117169132000000E+03),\n new google.maps.LatLng( 0.472911800000000E+02, -0.117172057000000E+03),\n new google.maps.LatLng( 0.472862440000000E+02, -0.117175048000000E+03),\n new google.maps.LatLng( 0.472828150000000E+02, -0.117174041000000E+03),\n new google.maps.LatLng( 0.472850080000000E+02, -0.117164703000000E+03),\n new google.maps.LatLng( 0.472880700000000E+02, -0.117162384000000E+03),\n new google.maps.LatLng( 0.472929610000000E+02, -0.117164296000000E+03),\n new google.maps.LatLng( 0.473325250000000E+02, -0.117163743000000E+03),\n new google.maps.LatLng( 0.473331390000000E+02, -0.117152816000000E+03),\n new google.maps.LatLng( 0.473408180000000E+02, -0.117152744000000E+03),\n new google.maps.LatLng( 0.473471950000000E+02, -0.117153279000000E+03),\n new google.maps.LatLng( 0.473472600000000E+02, -0.117110361000000E+03),\n new google.maps.LatLng( 0.473327100000000E+02, -0.117110435000000E+03),\n new google.maps.LatLng( 0.473326880006389E+02, -0.117039872049436E+03),\n new google.maps.LatLng( 0.473326880006389E+02, -0.117039872049436E+03),\n new google.maps.LatLng( 0.472592720000000E+02, -0.117040019000000E+03),\n new google.maps.LatLng( 0.472592720000000E+02, -0.117040019000000E+03),\n new google.maps.LatLng( 0.472594220000000E+02, -0.117057693000000E+03),\n new google.maps.LatLng( 0.472594320000000E+02, -0.117058520000000E+03),\n new google.maps.LatLng( 0.472595140000000E+02, -0.117181297000000E+03),\n new google.maps.LatLng( 0.472595140000000E+02, -0.117181297000000E+03),\n new google.maps.LatLng( 0.472596960000000E+02, -0.117239514000000E+03),\n new google.maps.LatLng( 0.472734100000000E+02, -0.117239092000000E+03),\n new google.maps.LatLng( 0.472742540000000E+02, -0.117243055000000E+03),\n new google.maps.LatLng( 0.472743990000000E+02, -0.117283600000000E+03),\n new google.maps.LatLng( 0.472764570000000E+02, -0.117284271000000E+03),\n new google.maps.LatLng( 0.472790390000000E+02, -0.117283027000000E+03),\n new google.maps.LatLng( 0.472824650000000E+02, -0.117274863000000E+03),\n new google.maps.LatLng( 0.472889990000000E+02, -0.117268914000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.459711450000000E+02, -0.119563473000000E+03),\n new google.maps.LatLng( 0.459802620000000E+02, -0.119552231000000E+03),\n new google.maps.LatLng( 0.459815870000000E+02, -0.119547741000000E+03),\n new google.maps.LatLng( 0.459831170000000E+02, -0.119545446000000E+03),\n new google.maps.LatLng( 0.459882120000000E+02, -0.119539840000000E+03),\n new google.maps.LatLng( 0.460002850000000E+02, -0.119529568000000E+03),\n new google.maps.LatLng( 0.460075490000000E+02, -0.119524940000000E+03),\n new google.maps.LatLng( 0.460093760000000E+02, -0.119522446000000E+03),\n new google.maps.LatLng( 0.460130310000000E+02, -0.119518869000000E+03),\n new google.maps.LatLng( 0.460183310000000E+02, -0.119515519000000E+03),\n new google.maps.LatLng( 0.460204540000000E+02, -0.119512336000000E+03),\n new google.maps.LatLng( 0.460212760000000E+02, -0.119509710000000E+03),\n new google.maps.LatLng( 0.460205900000000E+02, -0.119509219000000E+03),\n new google.maps.LatLng( 0.460185560000000E+02, -0.119508926000000E+03),\n new google.maps.LatLng( 0.460152430000000E+02, -0.119509290000000E+03),\n new google.maps.LatLng( 0.459836380000000E+02, -0.119523846000000E+03),\n new google.maps.LatLng( 0.459723740000000E+02, -0.119526541000000E+03),\n new google.maps.LatLng( 0.459753420000000E+02, -0.119519624000000E+03),\n new google.maps.LatLng( 0.459774840000000E+02, -0.119503431000000E+03),\n new google.maps.LatLng( 0.459796260000000E+02, -0.119492832000000E+03),\n new google.maps.LatLng( 0.459863740000000E+02, -0.119489071000000E+03),\n new google.maps.LatLng( 0.459882480000000E+02, -0.119489357000000E+03),\n new google.maps.LatLng( 0.459998550000000E+02, -0.119484280000000E+03),\n new google.maps.LatLng( 0.460072480000000E+02, -0.119479620000000E+03),\n new google.maps.LatLng( 0.460156840000000E+02, -0.119468935000000E+03),\n new google.maps.LatLng( 0.460145190000000E+02, -0.119465950000000E+03),\n new google.maps.LatLng( 0.460115490000000E+02, -0.119461095000000E+03),\n new google.maps.LatLng( 0.460065910000000E+02, -0.119461814000000E+03),\n new google.maps.LatLng( 0.459971610000000E+02, -0.119460790000000E+03),\n new google.maps.LatLng( 0.459963550000000E+02, -0.119458220000000E+03),\n new google.maps.LatLng( 0.459937770000000E+02, -0.119457754000000E+03),\n new google.maps.LatLng( 0.459899140000000E+02, -0.119459721000000E+03),\n new google.maps.LatLng( 0.459857450000000E+02, -0.119461023000000E+03),\n new google.maps.LatLng( 0.459808780000000E+02, -0.119461742000000E+03),\n new google.maps.LatLng( 0.459716890000000E+02, -0.119469504000000E+03),\n new google.maps.LatLng( 0.459682380000000E+02, -0.119473860000000E+03),\n new google.maps.LatLng( 0.459642370000000E+02, -0.119477921000000E+03),\n new google.maps.LatLng( 0.459625690000000E+02, -0.119478476000000E+03),\n new google.maps.LatLng( 0.459596900000000E+02, -0.119477622000000E+03),\n new google.maps.LatLng( 0.459628170000000E+02, -0.119464313000000E+03),\n new google.maps.LatLng( 0.459507580000000E+02, -0.119463014000000E+03),\n new google.maps.LatLng( 0.459465470000000E+02, -0.119463645000000E+03),\n new google.maps.LatLng( 0.459465470000000E+02, -0.119463645000000E+03),\n new google.maps.LatLng( 0.459463940000000E+02, -0.119466410000000E+03),\n new google.maps.LatLng( 0.459260110000000E+02, -0.119466726000000E+03),\n new google.maps.LatLng( 0.459203850000000E+02, -0.119468710000000E+03),\n new google.maps.LatLng( 0.459192040000000E+02, -0.119462602000000E+03),\n new google.maps.LatLng( 0.459194770000000E+02, -0.119456245000000E+03),\n new google.maps.LatLng( 0.459194770000000E+02, -0.119456245000000E+03),\n new google.maps.LatLng( 0.459127280000000E+02, -0.119486589000000E+03),\n new google.maps.LatLng( 0.459115850000000E+02, -0.119486883000000E+03),\n new google.maps.LatLng( 0.459108750000000E+02, -0.119489796000000E+03),\n new google.maps.LatLng( 0.459107120000000E+02, -0.119501134000000E+03),\n new google.maps.LatLng( 0.459131200000000E+02, -0.119518196000000E+03),\n new google.maps.LatLng( 0.459126420000000E+02, -0.119523368000000E+03),\n new google.maps.LatLng( 0.459144720000000E+02, -0.119531716000000E+03),\n new google.maps.LatLng( 0.459156840000000E+02, -0.119535873000000E+03),\n new google.maps.LatLng( 0.459180160000000E+02, -0.119539178000000E+03),\n new google.maps.LatLng( 0.459197530000000E+02, -0.119543172000000E+03),\n new google.maps.LatLng( 0.459243930000000E+02, -0.119558362000000E+03),\n new google.maps.LatLng( 0.459301970000000E+02, -0.119571035000000E+03),\n new google.maps.LatLng( 0.459307910000000E+02, -0.119571428000000E+03),\n new google.maps.LatLng( 0.459308140000000E+02, -0.119570217000000E+03),\n new google.maps.LatLng( 0.459262210000000E+02, -0.119556921000000E+03),\n new google.maps.LatLng( 0.459272720000000E+02, -0.119553385000000E+03),\n new google.maps.LatLng( 0.459261750000000E+02, -0.119548441000000E+03),\n new google.maps.LatLng( 0.459248490000000E+02, -0.119545658000000E+03),\n new google.maps.LatLng( 0.459251460000000E+02, -0.119541664000000E+03),\n new google.maps.LatLng( 0.459261960000000E+02, -0.119539142000000E+03),\n new google.maps.LatLng( 0.459215560000000E+02, -0.119532498000000E+03),\n new google.maps.LatLng( 0.459213040000000E+02, -0.119529027000000E+03),\n new google.maps.LatLng( 0.459215320000000E+02, -0.119527062000000E+03),\n new google.maps.LatLng( 0.459223320000000E+02, -0.119527291000000E+03),\n new google.maps.LatLng( 0.459235430000000E+02, -0.119528731000000E+03),\n new google.maps.LatLng( 0.459266750000000E+02, -0.119535180000000E+03),\n new google.maps.LatLng( 0.459289610000000E+02, -0.119538290000000E+03),\n new google.maps.LatLng( 0.459295320000000E+02, -0.119538289000000E+03),\n new google.maps.LatLng( 0.459302180000000E+02, -0.119537438000000E+03),\n new google.maps.LatLng( 0.459285930000000E+02, -0.119529383000000E+03),\n new google.maps.LatLng( 0.459294610000000E+02, -0.119527254000000E+03),\n new google.maps.LatLng( 0.459265570000000E+02, -0.119519823000000E+03),\n new google.maps.LatLng( 0.459253230000000E+02, -0.119520642000000E+03),\n new google.maps.LatLng( 0.459239530000000E+02, -0.119523033000000E+03),\n new google.maps.LatLng( 0.459231990000000E+02, -0.119522870000000E+03),\n new google.maps.LatLng( 0.459226270000000E+02, -0.119521692000000E+03),\n new google.maps.LatLng( 0.459228070000000E+02, -0.119513801000000E+03),\n new google.maps.LatLng( 0.459246340000000E+02, -0.119512621000000E+03),\n new google.maps.LatLng( 0.459262350000000E+02, -0.119515533000000E+03),\n new google.maps.LatLng( 0.459331420000000E+02, -0.119535635000000E+03),\n new google.maps.LatLng( 0.459302870000000E+02, -0.119541367000000E+03),\n new google.maps.LatLng( 0.459296470000000E+02, -0.119543594000000E+03),\n new google.maps.LatLng( 0.459301280000000E+02, -0.119548015000000E+03),\n new google.maps.LatLng( 0.459309050000000E+02, -0.119549455000000E+03),\n new google.maps.LatLng( 0.459328700000000E+02, -0.119549389000000E+03),\n new google.maps.LatLng( 0.459338300000000E+02, -0.119553941000000E+03),\n new google.maps.LatLng( 0.459329160000000E+02, -0.119560654000000E+03),\n new google.maps.LatLng( 0.459341280000000E+02, -0.119561604000000E+03),\n new google.maps.LatLng( 0.459346990000000E+02, -0.119561309000000E+03),\n new google.maps.LatLng( 0.459381940000000E+02, -0.119551681000000E+03),\n new google.maps.LatLng( 0.459386060000000E+02, -0.119551320000000E+03),\n new google.maps.LatLng( 0.459387200000000E+02, -0.119551779000000E+03),\n new google.maps.LatLng( 0.459387660000000E+02, -0.119556397000000E+03),\n new google.maps.LatLng( 0.459371890000000E+02, -0.119565240000000E+03),\n new google.maps.LatLng( 0.459366170000000E+02, -0.119578405000000E+03),\n new google.maps.LatLng( 0.459352000000000E+02, -0.119580991000000E+03),\n new google.maps.LatLng( 0.459325220000000E+02, -0.119599395000000E+03),\n new google.maps.LatLng( 0.459302340000000E+02, -0.119607383000000E+03),\n new google.maps.LatLng( 0.459288850000000E+02, -0.119609314000000E+03),\n new google.maps.LatLng( 0.459279700000000E+02, -0.119611736000000E+03),\n new google.maps.LatLng( 0.459240230000000E+02, -0.119626137000000E+03),\n new google.maps.LatLng( 0.459230540000000E+02, -0.119629311000000E+03),\n new google.maps.LatLng( 0.459205890000000E+02, -0.119634225000000E+03),\n new google.maps.LatLng( 0.459203830000000E+02, -0.119633767000000E+03),\n new google.maps.LatLng( 0.459225740000000E+02, -0.119629116000000E+03),\n new google.maps.LatLng( 0.459231450000000E+02, -0.119626889000000E+03),\n new google.maps.LatLng( 0.459226190000000E+02, -0.119626726000000E+03),\n new google.maps.LatLng( 0.459188530000000E+02, -0.119634488000000E+03),\n new google.maps.LatLng( 0.459184650000000E+02, -0.119636191000000E+03),\n new google.maps.LatLng( 0.459190786833984E+02, -0.119638553945703E+03),\n new google.maps.LatLng( 0.459172340000000E+02, -0.119644050000000E+03),\n new google.maps.LatLng( 0.459166400000000E+02, -0.119645131000000E+03),\n new google.maps.LatLng( 0.459162520000000E+02, -0.119644607000000E+03),\n new google.maps.LatLng( 0.459185800000000E+02, -0.119638613000000E+03),\n new google.maps.LatLng( 0.459184460000000E+02, -0.119637972000000E+03),\n new google.maps.LatLng( 0.459179630000000E+02, -0.119638287000000E+03),\n new google.maps.LatLng( 0.459138310000000E+02, -0.119647719000000E+03),\n new google.maps.LatLng( 0.459126670000000E+02, -0.119652106000000E+03),\n new google.maps.LatLng( 0.459090820000000E+02, -0.119661404000000E+03),\n new google.maps.LatLng( 0.459088080000000E+02, -0.119661109000000E+03),\n new google.maps.LatLng( 0.459097670000000E+02, -0.119658098000000E+03),\n new google.maps.LatLng( 0.459096300000000E+02, -0.119657541000000E+03),\n new google.maps.LatLng( 0.459089210000000E+02, -0.119657509000000E+03),\n new google.maps.LatLng( 0.459085790000000E+02, -0.119658131000000E+03),\n new google.maps.LatLng( 0.459034180000000E+02, -0.119673810000000E+03),\n new google.maps.LatLng( 0.459036460000000E+02, -0.119675054000000E+03),\n new google.maps.LatLng( 0.459025270000000E+02, -0.119678196000000E+03),\n new google.maps.LatLng( 0.458987800000000E+02, -0.119684612000000E+03),\n new google.maps.LatLng( 0.458864640000000E+02, -0.119695311000000E+03),\n new google.maps.LatLng( 0.458842250000000E+02, -0.119698059000000E+03),\n new google.maps.LatLng( 0.458790580000000E+02, -0.119715003000000E+03),\n new google.maps.LatLng( 0.458795830000000E+02, -0.119716083000000E+03),\n new google.maps.LatLng( 0.458765630000000E+02, -0.119728382000000E+03),\n new google.maps.LatLng( 0.458762890000000E+02, -0.119728120000000E+03),\n new google.maps.LatLng( 0.458786010000000E+02, -0.119716770000000E+03),\n new google.maps.LatLng( 0.458769330000000E+02, -0.119716082000000E+03),\n new google.maps.LatLng( 0.458599980000000E+02, -0.119741358000000E+03),\n new google.maps.LatLng( 0.458531420000000E+02, -0.119753055000000E+03),\n new google.maps.LatLng( 0.458523910000000E+02, -0.119759039000000E+03),\n new google.maps.LatLng( 0.458527360000000E+02, -0.119766003000000E+03),\n new google.maps.LatLng( 0.458546810000000E+02, -0.119773523000000E+03),\n new google.maps.LatLng( 0.458554350000000E+02, -0.119774831000000E+03),\n new google.maps.LatLng( 0.458563950000000E+02, -0.119775321000000E+03),\n new google.maps.LatLng( 0.458631800000000E+02, -0.119771883000000E+03),\n new google.maps.LatLng( 0.458640020000000E+02, -0.119770705000000E+03),\n new google.maps.LatLng( 0.458680210000000E+02, -0.119763800000000E+03),\n new google.maps.LatLng( 0.458700530000000E+02, -0.119759318000000E+03),\n new google.maps.LatLng( 0.458708050000000E+02, -0.119754902000000E+03),\n new google.maps.LatLng( 0.458710530000000E+02, -0.119747845000000E+03),\n new google.maps.LatLng( 0.458718980000000E+02, -0.119748304000000E+03),\n new google.maps.LatLng( 0.458719460000000E+02, -0.119751140000000E+03),\n new google.maps.LatLng( 0.458713080000000E+02, -0.119755523000000E+03),\n new google.maps.LatLng( 0.458687070000000E+02, -0.119765109000000E+03),\n new google.maps.LatLng( 0.458658760000000E+02, -0.119770409000000E+03),\n new google.maps.LatLng( 0.458627010000000E+02, -0.119772701000000E+03),\n new google.maps.LatLng( 0.458618320000000E+02, -0.119772603000000E+03),\n new google.maps.LatLng( 0.458612840000000E+02, -0.119773388000000E+03),\n new google.maps.LatLng( 0.458589330000000E+02, -0.119779603000000E+03),\n new google.maps.LatLng( 0.458594360000000E+02, -0.119781107000000E+03),\n new google.maps.LatLng( 0.458623150000000E+02, -0.119781727000000E+03),\n new google.maps.LatLng( 0.458618820000000E+02, -0.119789575000000E+03),\n new google.maps.LatLng( 0.458628200000000E+02, -0.119797130000000E+03),\n new google.maps.LatLng( 0.458641680000000E+02, -0.119798929000000E+03),\n new google.maps.LatLng( 0.458654020000000E+02, -0.119814005000000E+03),\n new google.maps.LatLng( 0.458663840000000E+02, -0.119818191000000E+03),\n new google.maps.LatLng( 0.458651720000000E+02, -0.119829213000000E+03),\n new google.maps.LatLng( 0.458635260000000E+02, -0.119831567000000E+03),\n new google.maps.LatLng( 0.458614940000000E+02, -0.119823391000000E+03),\n new google.maps.LatLng( 0.458600550000000E+02, -0.119820512000000E+03),\n new google.maps.LatLng( 0.458581590000000E+02, -0.119814102000000E+03),\n new google.maps.LatLng( 0.458581140000000E+02, -0.119811748000000E+03),\n new google.maps.LatLng( 0.458569260000000E+02, -0.119807334000000E+03),\n new google.maps.LatLng( 0.458543890000000E+02, -0.119804325000000E+03),\n new google.maps.LatLng( 0.458535900000000E+02, -0.119805078000000E+03),\n new google.maps.LatLng( 0.458512820000000E+02, -0.119809197000000E+03),\n new google.maps.LatLng( 0.458502540000000E+02, -0.119813121000000E+03),\n new google.maps.LatLng( 0.458505280000000E+02, -0.119817240000000E+03),\n new google.maps.LatLng( 0.458498640000000E+02, -0.119823648000000E+03),\n new google.maps.LatLng( 0.458486070000000E+02, -0.119827997000000E+03),\n new google.maps.LatLng( 0.458455180000000E+02, -0.119845519000000E+03),\n new google.maps.LatLng( 0.458424760000000E+02, -0.119856174000000E+03),\n new google.maps.LatLng( 0.458432750000000E+02, -0.119857777000000E+03),\n new google.maps.LatLng( 0.458452170000000E+02, -0.119857713000000E+03),\n new google.maps.LatLng( 0.458533060000000E+02, -0.119855693000000E+03),\n new google.maps.LatLng( 0.458562770000000E+02, -0.119853144000000E+03),\n new google.maps.LatLng( 0.458634090000000E+02, -0.119844288000000E+03),\n new google.maps.LatLng( 0.458644620000000E+02, -0.119837846000000E+03),\n new google.maps.LatLng( 0.458641200000000E+02, -0.119832744000000E+03),\n new google.maps.LatLng( 0.458659710000000E+02, -0.119829835000000E+03),\n new google.maps.LatLng( 0.458687820000000E+02, -0.119830588000000E+03),\n new google.maps.LatLng( 0.458689190000000E+02, -0.119831111000000E+03),\n new google.maps.LatLng( 0.458681160000000E+02, -0.119843997000000E+03),\n new google.maps.LatLng( 0.458660800000000E+02, -0.119848737000000E+03),\n new google.maps.LatLng( 0.458611880000000E+02, -0.119856060000000E+03),\n new google.maps.LatLng( 0.458557710000000E+02, -0.119860567000000E+03),\n new google.maps.LatLng( 0.458539890000000E+02, -0.119861612000000E+03),\n new google.maps.LatLng( 0.458506300000000E+02, -0.119862590000000E+03),\n new google.maps.LatLng( 0.458455790000000E+02, -0.119865560000000E+03),\n new google.maps.LatLng( 0.458437340000000E+02, -0.119868040000000E+03),\n new google.maps.LatLng( 0.458437340000000E+02, -0.119868040000000E+03),\n new google.maps.LatLng( 0.458473270000000E+02, -0.119867988000000E+03),\n new google.maps.LatLng( 0.458473270000000E+02, -0.119867988000000E+03),\n new google.maps.LatLng( 0.458709640000000E+02, -0.119867608000000E+03),\n new google.maps.LatLng( 0.458760820000000E+02, -0.119867455000000E+03),\n new google.maps.LatLng( 0.458760820000000E+02, -0.119867455000000E+03),\n new google.maps.LatLng( 0.458769260000000E+02, -0.119856830000000E+03),\n new google.maps.LatLng( 0.458777250000000E+02, -0.119854640000000E+03),\n new google.maps.LatLng( 0.458798370000000E+02, -0.119850944000000E+03),\n new google.maps.LatLng( 0.458840440000000E+02, -0.119845897000000E+03),\n new google.maps.LatLng( 0.458919230000000E+02, -0.119838390000000E+03),\n new google.maps.LatLng( 0.458924400000000E+02, -0.119835187000000E+03),\n new google.maps.LatLng( 0.458880870000000E+02, -0.119824993000000E+03),\n new google.maps.LatLng( 0.458831530000000E+02, -0.119817043000000E+03),\n new google.maps.LatLng( 0.458829930000000E+02, -0.119815406000000E+03),\n new google.maps.LatLng( 0.458853460000000E+02, -0.119814032000000E+03),\n new google.maps.LatLng( 0.458870140000000E+02, -0.119814490000000E+03),\n new google.maps.LatLng( 0.458968680000000E+02, -0.119814068000000E+03),\n new google.maps.LatLng( 0.459027810000000E+02, -0.119801929000000E+03),\n new google.maps.LatLng( 0.459099060000000E+02, -0.119792770000000E+03),\n new google.maps.LatLng( 0.459144670000000E+02, -0.119788802000000E+03),\n new google.maps.LatLng( 0.459658380000000E+02, -0.119788383000000E+03),\n new google.maps.LatLng( 0.459670720000000E+02, -0.119784483000000E+03),\n new google.maps.LatLng( 0.459686460000000E+02, -0.119774915000000E+03),\n new google.maps.LatLng( 0.459708390000000E+02, -0.119773374000000E+03),\n new google.maps.LatLng( 0.459775330000000E+02, -0.119771699000000E+03),\n new google.maps.LatLng( 0.459839330000000E+02, -0.119780805000000E+03),\n new google.maps.LatLng( 0.459869950000000E+02, -0.119783885000000E+03),\n new google.maps.LatLng( 0.459880460000000E+02, -0.119784278000000E+03),\n new google.maps.LatLng( 0.459913590000000E+02, -0.119784342000000E+03),\n new google.maps.LatLng( 0.459923190000000E+02, -0.119783424000000E+03),\n new google.maps.LatLng( 0.459939640000000E+02, -0.119783029000000E+03),\n new google.maps.LatLng( 0.460100930000000E+02, -0.119783868000000E+03),\n new google.maps.LatLng( 0.460102770000000E+02, -0.119786721000000E+03),\n new google.maps.LatLng( 0.460121270000000E+02, -0.119787376000000E+03),\n new google.maps.LatLng( 0.460153260000000E+02, -0.119787177000000E+03),\n new google.maps.LatLng( 0.460249670000000E+02, -0.119782778000000E+03),\n new google.maps.LatLng( 0.460298110000000E+02, -0.119783595000000E+03),\n new google.maps.LatLng( 0.460327580000000E+02, -0.119784676000000E+03),\n new google.maps.LatLng( 0.460380820000000E+02, -0.119784510000000E+03),\n new google.maps.LatLng( 0.460389000000000E+02, -0.119768433000000E+03),\n new google.maps.LatLng( 0.460387070000000E+02, -0.119749366000000E+03),\n new google.maps.LatLng( 0.460348500000000E+02, -0.119739487000000E+03),\n new google.maps.LatLng( 0.460319280000000E+02, -0.119734596000000E+03),\n new google.maps.LatLng( 0.460343290000000E+02, -0.119730006000000E+03),\n new google.maps.LatLng( 0.460404770000000E+02, -0.119723974000000E+03),\n new google.maps.LatLng( 0.460416240000000E+02, -0.119706224000000E+03),\n new google.maps.LatLng( 0.460416240000000E+02, -0.119706224000000E+03),\n new google.maps.LatLng( 0.460428140000000E+02, -0.119687326000000E+03),\n new google.maps.LatLng( 0.460429720000000E+02, -0.119666130000000E+03),\n new google.maps.LatLng( 0.460288510000000E+02, -0.119666463000000E+03),\n new google.maps.LatLng( 0.460264280000000E+02, -0.119661905000000E+03),\n new google.maps.LatLng( 0.460233170000000E+02, -0.119647540000000E+03),\n new google.maps.LatLng( 0.460169620000000E+02, -0.119640132000000E+03),\n new google.maps.LatLng( 0.460185780000000E+02, -0.119628029000000E+03),\n new google.maps.LatLng( 0.460207780000000E+02, -0.119603058000000E+03),\n new google.maps.LatLng( 0.459697200000000E+02, -0.119603025000000E+03),\n new google.maps.LatLng( 0.459667500000000E+02, -0.119600303000000E+03),\n new google.maps.LatLng( 0.459654710000000E+02, -0.119600040000000E+03),\n new google.maps.LatLng( 0.459613800000000E+02, -0.119602429000000E+03),\n new google.maps.LatLng( 0.459569240000000E+02, -0.119603867000000E+03),\n new google.maps.LatLng( 0.459547530000000E+02, -0.119602883000000E+03),\n new google.maps.LatLng( 0.459413630000000E+02, -0.119603036000000E+03),\n new google.maps.LatLng( 0.459390350000000E+02, -0.119603675000000E+03),\n new google.maps.LatLng( 0.459381200000000E+02, -0.119599562000000E+03),\n new google.maps.LatLng( 0.459388290000000E+02, -0.119596582000000E+03),\n new google.maps.LatLng( 0.459397470000000E+02, -0.119582500000000E+03),\n new google.maps.LatLng( 0.459406840000000E+02, -0.119580338000000E+03),\n new google.maps.LatLng( 0.459428780000000E+02, -0.119579455000000E+03),\n new google.maps.LatLng( 0.459534570000000E+02, -0.119577690000000E+03),\n new google.maps.LatLng( 0.459557200000000E+02, -0.119574611000000E+03),\n new google.maps.LatLng( 0.459611590000000E+02, -0.119569239000000E+03),\n new google.maps.LatLng( 0.459661180000000E+02, -0.119565996000000E+03),\n new google.maps.LatLng( 0.459711450000000E+02, -0.119563473000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.473711900000000E+02, -0.119834411000000E+03),\n new google.maps.LatLng( 0.473706410000000E+02, -0.119837436000000E+03),\n new google.maps.LatLng( 0.473707990000000E+02, -0.119843187000000E+03),\n new google.maps.LatLng( 0.473702500000000E+02, -0.119845036000000E+03),\n new google.maps.LatLng( 0.473692220000000E+02, -0.119846985000000E+03),\n new google.maps.LatLng( 0.473637610000000E+02, -0.119850881000000E+03),\n new google.maps.LatLng( 0.473604950000000E+02, -0.119850610000000E+03),\n new google.maps.LatLng( 0.473591700000000E+02, -0.119849533000000E+03),\n new google.maps.LatLng( 0.473523660000000E+02, -0.119840183000000E+03),\n new google.maps.LatLng( 0.473491880000000E+02, -0.119850265000000E+03),\n new google.maps.LatLng( 0.473454610000000E+02, -0.119859100000000E+03),\n new google.maps.LatLng( 0.473460080000000E+02, -0.119862025000000E+03),\n new google.maps.LatLng( 0.473454130000000E+02, -0.119863906000000E+03),\n new google.maps.LatLng( 0.473486120000000E+02, -0.119860851000000E+03),\n new google.maps.LatLng( 0.473495030000000E+02, -0.119860785000000E+03),\n new google.maps.LatLng( 0.473569440000000E+02, -0.119871751000000E+03),\n new google.maps.LatLng( 0.473601630000000E+02, -0.119874075000000E+03),\n new google.maps.LatLng( 0.473655300000000E+02, -0.119875679000000E+03),\n new google.maps.LatLng( 0.473667180000000E+02, -0.119875629000000E+03),\n new google.maps.LatLng( 0.473712880000000E+02, -0.119873382000000E+03),\n new google.maps.LatLng( 0.473720660000000E+02, -0.119877271000000E+03),\n new google.maps.LatLng( 0.473719990000000E+02, -0.119880263000000E+03),\n new google.maps.LatLng( 0.473716340000000E+02, -0.119881340000000E+03),\n new google.maps.LatLng( 0.473653790000000E+02, -0.119889146000000E+03),\n new google.maps.LatLng( 0.473625720000000E+02, -0.119896578000000E+03),\n new google.maps.LatLng( 0.473625490000000E+02, -0.119898595000000E+03),\n new google.maps.LatLng( 0.473607470000000E+02, -0.119906328000000E+03),\n new google.maps.LatLng( 0.473585790000000E+02, -0.119913557000000E+03),\n new google.maps.LatLng( 0.473571630000000E+02, -0.119916515000000E+03),\n new google.maps.LatLng( 0.473558840000000E+02, -0.119921625000000E+03),\n new google.maps.LatLng( 0.473537590000000E+02, -0.119925996000000E+03),\n new google.maps.LatLng( 0.473531200000000E+02, -0.119931205000000E+03),\n new google.maps.LatLng( 0.473538280000000E+02, -0.119935575000000E+03),\n new google.maps.LatLng( 0.473533260000000E+02, -0.119939339000000E+03),\n new google.maps.LatLng( 0.473528000000000E+02, -0.119939911000000E+03),\n new google.maps.LatLng( 0.473520690000000E+02, -0.119939877000000E+03),\n new google.maps.LatLng( 0.473508810000000E+02, -0.119938734000000E+03),\n new google.maps.LatLng( 0.473494650000000E+02, -0.119939507000000E+03),\n new google.maps.LatLng( 0.473487110000000E+02, -0.119944145000000E+03),\n new google.maps.LatLng( 0.473479120000000E+02, -0.119945623000000E+03),\n new google.maps.LatLng( 0.473416980000000E+02, -0.119949554000000E+03),\n new google.maps.LatLng( 0.473395500000000E+02, -0.119955031000000E+03),\n new google.maps.LatLng( 0.473372200000000E+02, -0.119957617000000E+03),\n new google.maps.LatLng( 0.473361270000000E+02, -0.119961649000000E+03),\n new google.maps.LatLng( 0.473381660000000E+02, -0.119961592000000E+03),\n new google.maps.LatLng( 0.473381660000000E+02, -0.119961592000000E+03),\n new google.maps.LatLng( 0.473488590000000E+02, -0.119961293000000E+03),\n new google.maps.LatLng( 0.473494580000000E+02, -0.119940380000000E+03),\n new google.maps.LatLng( 0.473643590000000E+02, -0.119940195000000E+03),\n new google.maps.LatLng( 0.473644750000000E+02, -0.119918874000000E+03),\n new google.maps.LatLng( 0.473934990000000E+02, -0.119918746000000E+03),\n new google.maps.LatLng( 0.473934950000000E+02, -0.119897383000000E+03),\n new google.maps.LatLng( 0.474080830000000E+02, -0.119897227000000E+03),\n new google.maps.LatLng( 0.474083350000000E+02, -0.119876163000000E+03),\n new google.maps.LatLng( 0.474367490000000E+02, -0.119876163000000E+03),\n new google.maps.LatLng( 0.474373520000000E+02, -0.119875835000000E+03),\n new google.maps.LatLng( 0.474380320000000E+02, -0.119829992000000E+03),\n new google.maps.LatLng( 0.474384660000000E+02, -0.119800643000000E+03),\n new google.maps.LatLng( 0.474389310000000E+02, -0.119769247000000E+03),\n new google.maps.LatLng( 0.474389380000000E+02, -0.119768732000000E+03),\n new google.maps.LatLng( 0.474389380000000E+02, -0.119768732000000E+03),\n new google.maps.LatLng( 0.474371830000000E+02, -0.119765650000000E+03),\n new google.maps.LatLng( 0.474369070000000E+02, -0.119762822000000E+03),\n new google.maps.LatLng( 0.474349640000000E+02, -0.119760131000000E+03),\n new google.maps.LatLng( 0.474269670000000E+02, -0.119755896000000E+03),\n new google.maps.LatLng( 0.474246250000000E+02, -0.119755764000000E+03),\n new google.maps.LatLng( 0.474242360000000E+02, -0.119788853000000E+03),\n new google.maps.LatLng( 0.474188460000000E+02, -0.119794273000000E+03),\n new google.maps.LatLng( 0.474204910000000E+02, -0.119796427000000E+03),\n new google.maps.LatLng( 0.474225930000000E+02, -0.119796897000000E+03),\n new google.maps.LatLng( 0.474239180000000E+02, -0.119798344000000E+03),\n new google.maps.LatLng( 0.474209490000000E+02, -0.119808576000000E+03),\n new google.maps.LatLng( 0.474188020000000E+02, -0.119810563000000E+03),\n new google.maps.LatLng( 0.474156040000000E+02, -0.119812515000000E+03),\n new google.maps.LatLng( 0.474123830000000E+02, -0.119818168000000E+03),\n new google.maps.LatLng( 0.474068320000000E+02, -0.119820355000000E+03),\n new google.maps.LatLng( 0.474054840000000E+02, -0.119823483000000E+03),\n new google.maps.LatLng( 0.474045020000000E+02, -0.119827453000000E+03),\n new google.maps.LatLng( 0.474005030000000E+02, -0.119830749000000E+03),\n new google.maps.LatLng( 0.473958650000000E+02, -0.119832598000000E+03),\n new google.maps.LatLng( 0.473740680000000E+02, -0.119832933000000E+03),\n new google.maps.LatLng( 0.473711900000000E+02, -0.119834411000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.476273220000000E+02, -0.122086932000000E+03),\n new google.maps.LatLng( 0.476253220000000E+02, -0.122087532000000E+03),\n new google.maps.LatLng( 0.476199220000000E+02, -0.122092932000000E+03),\n new google.maps.LatLng( 0.476184220000000E+02, -0.122097032000000E+03),\n new google.maps.LatLng( 0.476136220000000E+02, -0.122103532000000E+03),\n new google.maps.LatLng( 0.476117220000000E+02, -0.122107632000000E+03),\n new google.maps.LatLng( 0.476053220000000E+02, -0.122111732000000E+03),\n new google.maps.LatLng( 0.476006220000000E+02, -0.122109832000000E+03),\n new google.maps.LatLng( 0.475999220000000E+02, -0.122108632000000E+03),\n new google.maps.LatLng( 0.475920220000000E+02, -0.122110532000000E+03),\n new google.maps.LatLng( 0.475827220000000E+02, -0.122110332000000E+03),\n new google.maps.LatLng( 0.475800220000000E+02, -0.122112032000000E+03),\n new google.maps.LatLng( 0.475764220000000E+02, -0.122111432000000E+03),\n new google.maps.LatLng( 0.475752820000000E+02, -0.122109763000000E+03),\n new google.maps.LatLng( 0.475752820000000E+02, -0.122109763000000E+03),\n new google.maps.LatLng( 0.475747550000000E+02, -0.122109963000000E+03),\n new google.maps.LatLng( 0.475717220000000E+02, -0.122106532000000E+03),\n new google.maps.LatLng( 0.475706220000000E+02, -0.122102532000000E+03),\n new google.maps.LatLng( 0.475697220000000E+02, -0.122100932000000E+03),\n new google.maps.LatLng( 0.475645290000000E+02, -0.122096739000000E+03),\n new google.maps.LatLng( 0.475642550000000E+02, -0.122097285000000E+03),\n new google.maps.LatLng( 0.475674220000000E+02, -0.122102932000000E+03),\n new google.maps.LatLng( 0.475708260000000E+02, -0.122112067000000E+03),\n new google.maps.LatLng( 0.475708260000000E+02, -0.122112067000000E+03),\n new google.maps.LatLng( 0.475787970000000E+02, -0.122134336000000E+03),\n new google.maps.LatLng( 0.475797220000000E+02, -0.122139832000000E+03),\n new google.maps.LatLng( 0.475797220000000E+02, -0.122139832000000E+03),\n new google.maps.LatLng( 0.475796950000000E+02, -0.122138297000000E+03),\n new google.maps.LatLng( 0.475831220000000E+02, -0.122133732000000E+03),\n new google.maps.LatLng( 0.475845220000000E+02, -0.122132732000000E+03),\n new google.maps.LatLng( 0.475908670000000E+02, -0.122131576000000E+03),\n new google.maps.LatLng( 0.476325210000000E+02, -0.122132233000000E+03),\n new google.maps.LatLng( 0.476325210000000E+02, -0.122132233000000E+03),\n new google.maps.LatLng( 0.476385210000000E+02, -0.122122233000000E+03),\n new google.maps.LatLng( 0.476459210000000E+02, -0.122114533000000E+03),\n new google.maps.LatLng( 0.476460210000000E+02, -0.122111133000000E+03),\n new google.maps.LatLng( 0.476278130000000E+02, -0.122110609000000E+03),\n new google.maps.LatLng( 0.476269220000000E+02, -0.122093232000000E+03),\n new google.maps.LatLng( 0.476273220000000E+02, -0.122086932000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.485026160000000E+02, -0.119502772000000E+03),\n new google.maps.LatLng( 0.485002450000000E+02, -0.119508085000000E+03),\n new google.maps.LatLng( 0.484995100000000E+02, -0.119508195000000E+03),\n new google.maps.LatLng( 0.484877980000000E+02, -0.119501160000000E+03),\n new google.maps.LatLng( 0.484757740000000E+02, -0.119494691000000E+03),\n new google.maps.LatLng( 0.484745410000000E+02, -0.119494311000000E+03),\n new google.maps.LatLng( 0.484673910000000E+02, -0.119494475000000E+03),\n new google.maps.LatLng( 0.484677660000000E+02, -0.119500472000000E+03),\n new google.maps.LatLng( 0.484719110000000E+02, -0.119500661000000E+03),\n new google.maps.LatLng( 0.484744460000000E+02, -0.119500185000000E+03),\n new google.maps.LatLng( 0.484752250000000E+02, -0.119501863000000E+03),\n new google.maps.LatLng( 0.484745720000000E+02, -0.119505498000000E+03),\n new google.maps.LatLng( 0.484604930000000E+02, -0.119505486000000E+03),\n new google.maps.LatLng( 0.484603620000000E+02, -0.119518297000000E+03),\n new google.maps.LatLng( 0.484577350000000E+02, -0.119518848000000E+03),\n new google.maps.LatLng( 0.484567060000000E+02, -0.119516411000000E+03),\n new google.maps.LatLng( 0.484529370000000E+02, -0.119516346000000E+03),\n new google.maps.LatLng( 0.484531950000000E+02, -0.119537360000000E+03),\n new google.maps.LatLng( 0.484528300000000E+02, -0.119538356000000E+03),\n new google.maps.LatLng( 0.484520300000000E+02, -0.119538391000000E+03),\n new google.maps.LatLng( 0.484531280000000E+02, -0.119549104000000E+03),\n new google.maps.LatLng( 0.484684100000000E+02, -0.119549031000000E+03),\n new google.maps.LatLng( 0.484658510000000E+02, -0.119559750000000E+03),\n new google.maps.LatLng( 0.484644790000000E+02, -0.119567786000000E+03),\n new google.maps.LatLng( 0.484656210000000E+02, -0.119574277000000E+03),\n new google.maps.LatLng( 0.484658720000000E+02, -0.119577988000000E+03),\n new google.maps.LatLng( 0.484654750000000E+02, -0.119581798000000E+03),\n new google.maps.LatLng( 0.484654750000000E+02, -0.119581798000000E+03),\n new google.maps.LatLng( 0.484678810000000E+02, -0.119581938000000E+03),\n new google.maps.LatLng( 0.484685660000000E+02, -0.119582557000000E+03),\n new google.maps.LatLng( 0.484829060000000E+02, -0.119598402000000E+03),\n new google.maps.LatLng( 0.484878610000000E+02, -0.119600639000000E+03),\n new google.maps.LatLng( 0.484924510000000E+02, -0.119603804000000E+03),\n new google.maps.LatLng( 0.484966750000000E+02, -0.119607452000000E+03),\n new google.maps.LatLng( 0.484985930000000E+02, -0.119609550000000E+03),\n new google.maps.LatLng( 0.485040880000000E+02, -0.119617627000000E+03),\n new google.maps.LatLng( 0.485040880000000E+02, -0.119617627000000E+03),\n new google.maps.LatLng( 0.485060970000000E+02, -0.119619932000000E+03),\n new google.maps.LatLng( 0.485074210000000E+02, -0.119627278000000E+03),\n new google.maps.LatLng( 0.485101640000000E+02, -0.119629578000000E+03),\n new google.maps.LatLng( 0.485144800000000E+02, -0.119629917000000E+03),\n new google.maps.LatLng( 0.485169010000000E+02, -0.119629433000000E+03),\n new google.maps.LatLng( 0.485202830000000E+02, -0.119631080000000E+03),\n new google.maps.LatLng( 0.485216990000000E+02, -0.119634792000000E+03),\n new google.maps.LatLng( 0.485237560000000E+02, -0.119636887000000E+03),\n new google.maps.LatLng( 0.485262220000000E+02, -0.119636197000000E+03),\n new google.maps.LatLng( 0.485311570000000E+02, -0.119637912000000E+03),\n new google.maps.LatLng( 0.485349720000000E+02, -0.119640351000000E+03),\n new google.maps.LatLng( 0.485376210000000E+02, -0.119640555000000E+03),\n new google.maps.LatLng( 0.485416400000000E+02, -0.119638487000000E+03),\n new google.maps.LatLng( 0.485519140000000E+02, -0.119628535000000E+03),\n new google.maps.LatLng( 0.485580790000000E+02, -0.119621852000000E+03),\n new google.maps.LatLng( 0.485585820000000E+02, -0.119621061000000E+03),\n new google.maps.LatLng( 0.485594080000000E+02, -0.119616141000000E+03),\n new google.maps.LatLng( 0.485584960000000E+02, -0.119611908000000E+03),\n new google.maps.LatLng( 0.485624470000000E+02, -0.119612153000000E+03),\n new google.maps.LatLng( 0.485652120000000E+02, -0.119610917000000E+03),\n new google.maps.LatLng( 0.485688680000000E+02, -0.119606137000000E+03),\n new google.maps.LatLng( 0.485693230000000E+02, -0.119603767000000E+03),\n new google.maps.LatLng( 0.485414470000000E+02, -0.119603836000000E+03),\n new google.maps.LatLng( 0.485400680000000E+02, -0.119600331000000E+03),\n new google.maps.LatLng( 0.485402590000000E+02, -0.119586631000000E+03),\n new google.maps.LatLng( 0.485517500000000E+02, -0.119586643000000E+03),\n new google.maps.LatLng( 0.485505330000000E+02, -0.119585374000000E+03),\n new google.maps.LatLng( 0.485490490000000E+02, -0.119585167000000E+03),\n new google.maps.LatLng( 0.485471770000000E+02, -0.119581382000000E+03),\n new google.maps.LatLng( 0.485510150000000E+02, -0.119575535000000E+03),\n new google.maps.LatLng( 0.485506730000000E+02, -0.119567794000000E+03),\n new google.maps.LatLng( 0.485494850000000E+02, -0.119564319000000E+03),\n new google.maps.LatLng( 0.485454890000000E+02, -0.119559571000000E+03),\n new google.maps.LatLng( 0.485417660000000E+02, -0.119553861000000E+03),\n new google.maps.LatLng( 0.485389330000000E+02, -0.119547601000000E+03),\n new google.maps.LatLng( 0.485325140000000E+02, -0.119544645000000E+03),\n new google.maps.LatLng( 0.485247020000000E+02, -0.119542722000000E+03),\n new google.maps.LatLng( 0.485146740000000E+02, -0.119538530000000E+03),\n new google.maps.LatLng( 0.485141490000000E+02, -0.119538153000000E+03),\n new google.maps.LatLng( 0.485139880000000E+02, -0.119535952000000E+03),\n new google.maps.LatLng( 0.485128690000000E+02, -0.119534131000000E+03),\n new google.maps.LatLng( 0.485076370000000E+02, -0.119528908000000E+03),\n new google.maps.LatLng( 0.485035020000000E+02, -0.119528293000000E+03),\n new google.maps.LatLng( 0.485004870000000E+02, -0.119526920000000E+03),\n new google.maps.LatLng( 0.484977090000000E+02, -0.119524763000000E+03),\n new google.maps.LatLng( 0.484983020000000E+02, -0.119520431000000E+03),\n new google.maps.LatLng( 0.484994440000000E+02, -0.119518849000000E+03),\n new google.maps.LatLng( 0.484998410000000E+02, -0.119519057000000E+03),\n new google.maps.LatLng( 0.484998410000000E+02, -0.119522435000000E+03),\n new google.maps.LatLng( 0.485044840000000E+02, -0.119522419000000E+03),\n new google.maps.LatLng( 0.485044760000000E+02, -0.119516352000000E+03),\n new google.maps.LatLng( 0.485062320000000E+02, -0.119516343000000E+03),\n new google.maps.LatLng( 0.485188810000000E+02, -0.119523558000000E+03),\n new google.maps.LatLng( 0.485261840000000E+02, -0.119530411000000E+03),\n new google.maps.LatLng( 0.485277600000000E+02, -0.119531304000000E+03),\n new google.maps.LatLng( 0.485360980000000E+02, -0.119533431000000E+03),\n new google.maps.LatLng( 0.485453840000000E+02, -0.119538518000000E+03),\n new google.maps.LatLng( 0.485573420000000E+02, -0.119544225000000E+03),\n new google.maps.LatLng( 0.485595420000000E+02, -0.119546371000000E+03),\n new google.maps.LatLng( 0.485595560000000E+02, -0.119561472000000E+03),\n new google.maps.LatLng( 0.485655960000000E+02, -0.119561412000000E+03),\n new google.maps.LatLng( 0.485655380000000E+02, -0.119566444000000E+03),\n new google.maps.LatLng( 0.485840070000000E+02, -0.119566433000000E+03),\n new google.maps.LatLng( 0.485840250000000E+02, -0.119576739000000E+03),\n new google.maps.LatLng( 0.485910050000000E+02, -0.119576775000000E+03),\n new google.maps.LatLng( 0.485934100000000E+02, -0.119571820000000E+03),\n new google.maps.LatLng( 0.485927680000000E+02, -0.119564324000000E+03),\n new google.maps.LatLng( 0.485913290000000E+02, -0.119560227000000E+03),\n new google.maps.LatLng( 0.485894790000000E+02, -0.119558196000000E+03),\n new google.maps.LatLng( 0.485877890000000E+02, -0.119554959000000E+03),\n new google.maps.LatLng( 0.485855720000000E+02, -0.119546077000000E+03),\n new google.maps.LatLng( 0.485839960000000E+02, -0.119543874000000E+03),\n new google.maps.LatLng( 0.485814390000000E+02, -0.119543565000000E+03),\n new google.maps.LatLng( 0.485806850000000E+02, -0.119543015000000E+03),\n new google.maps.LatLng( 0.485754530000000E+02, -0.119533825000000E+03),\n new google.maps.LatLng( 0.485695470000000E+02, -0.119539185000000E+03),\n new google.maps.LatLng( 0.485696200000000E+02, -0.119544603000000E+03),\n new google.maps.LatLng( 0.485598400000000E+02, -0.119544652000000E+03),\n new google.maps.LatLng( 0.485528420000000E+02, -0.119541543000000E+03),\n new google.maps.LatLng( 0.485484100000000E+02, -0.119538482000000E+03),\n new google.maps.LatLng( 0.485445260000000E+02, -0.119533221000000E+03),\n new google.maps.LatLng( 0.485421500000000E+02, -0.119532362000000E+03),\n new google.maps.LatLng( 0.485352510000000E+02, -0.119528548000000E+03),\n new google.maps.LatLng( 0.485294250000000E+02, -0.119523324000000E+03),\n new google.maps.LatLng( 0.485221610000000E+02, -0.119520063000000E+03),\n new google.maps.LatLng( 0.485191000000000E+02, -0.119521510000000E+03),\n new google.maps.LatLng( 0.485183920000000E+02, -0.119521270000000E+03),\n new google.maps.LatLng( 0.485183440000000E+02, -0.119513705000000E+03),\n new google.maps.LatLng( 0.485408920000000E+02, -0.119501163000000E+03),\n new google.maps.LatLng( 0.485534450000000E+02, -0.119495637000000E+03),\n new google.maps.LatLng( 0.485555240000000E+02, -0.119494332000000E+03),\n new google.maps.LatLng( 0.485563470000000E+02, -0.119493541000000E+03),\n new google.maps.LatLng( 0.485574620000000E+02, -0.119488045000000E+03),\n new google.maps.LatLng( 0.485574620000000E+02, -0.119488045000000E+03),\n new google.maps.LatLng( 0.485573100000000E+02, -0.119487177000000E+03),\n new google.maps.LatLng( 0.485560540000000E+02, -0.119487072000000E+03),\n new google.maps.LatLng( 0.485497030000000E+02, -0.119490231000000E+03),\n new google.maps.LatLng( 0.485465280000000E+02, -0.119489677000000E+03),\n new google.maps.LatLng( 0.485406800000000E+02, -0.119490014000000E+03),\n new google.maps.LatLng( 0.485343060000000E+02, -0.119494307000000E+03),\n new google.maps.LatLng( 0.485323860000000E+02, -0.119496162000000E+03),\n new google.maps.LatLng( 0.485289600000000E+02, -0.119502381000000E+03),\n new google.maps.LatLng( 0.485269740000000E+02, -0.119504481000000E+03),\n new google.maps.LatLng( 0.485206490000000E+02, -0.119507136000000E+03),\n new google.maps.LatLng( 0.485171780000000E+02, -0.119510130000000E+03),\n new google.maps.LatLng( 0.485142090000000E+02, -0.119511371000000E+03),\n new google.maps.LatLng( 0.485087940000000E+02, -0.119507663000000E+03),\n new google.maps.LatLng( 0.485059620000000E+02, -0.119507838000000E+03),\n new google.maps.LatLng( 0.485038380000000E+02, -0.119507256000000E+03),\n new google.maps.LatLng( 0.485026160000000E+02, -0.119502772000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475555173890342E+02, -0.122543084625005E+03),\n new google.maps.LatLng( 0.475555550000000E+02, -0.122545895000000E+03),\n new google.maps.LatLng( 0.475548610000000E+02, -0.122548489000000E+03),\n new google.maps.LatLng( 0.475526710000000E+02, -0.122548611000000E+03),\n new google.maps.LatLng( 0.475517410000000E+02, -0.122545635000000E+03),\n new google.maps.LatLng( 0.475525903520031E+02, -0.122542963813079E+03),\n new google.maps.LatLng( 0.475525903520031E+02, -0.122542963813079E+03),\n new google.maps.LatLng( 0.475378400000000E+02, -0.122542355000000E+03),\n new google.maps.LatLng( 0.475282570000000E+02, -0.122547207000000E+03),\n new google.maps.LatLng( 0.475277305814389E+02, -0.122547140344920E+03),\n new google.maps.LatLng( 0.475235500000000E+02, -0.122546611000000E+03),\n new google.maps.LatLng( 0.475234773068571E+02, -0.122545881833496E+03),\n new google.maps.LatLng( 0.475228649528488E+02, -0.122539739465545E+03),\n new google.maps.LatLng( 0.475221840000000E+02, -0.122532909000000E+03),\n new google.maps.LatLng( 0.475229374522997E+02, -0.122528818534018E+03),\n new google.maps.LatLng( 0.475239377730799E+02, -0.122523387827756E+03),\n new google.maps.LatLng( 0.475240000000000E+02, -0.122523050000000E+03),\n new google.maps.LatLng( 0.475235782568169E+02, -0.122521961447956E+03),\n new google.maps.LatLng( 0.475227124928617E+02, -0.122519726843674E+03),\n new google.maps.LatLng( 0.475188582437283E+02, -0.122509778726100E+03),\n new google.maps.LatLng( 0.475152800000000E+02, -0.122500543000000E+03),\n new google.maps.LatLng( 0.475102650000000E+02, -0.122494882000000E+03),\n new google.maps.LatLng( 0.475102650152546E+02, -0.122494881938827E+03),\n new google.maps.LatLng( 0.475102650152546E+02, -0.122494881938827E+03),\n new google.maps.LatLng( 0.475098180000000E+02, -0.122494958000000E+03),\n new google.maps.LatLng( 0.475043160000000E+02, -0.122503091000000E+03),\n new google.maps.LatLng( 0.475032250000000E+02, -0.122503839000000E+03),\n new google.maps.LatLng( 0.475012440000000E+02, -0.122504057000000E+03),\n new google.maps.LatLng( 0.475012440000000E+02, -0.122504057000000E+03),\n new google.maps.LatLng( 0.475012420000000E+02, -0.122513772000000E+03),\n new google.maps.LatLng( 0.475048200000000E+02, -0.122513834000000E+03),\n new google.maps.LatLng( 0.475052920000000E+02, -0.122566952000000E+03),\n new google.maps.LatLng( 0.475047270000000E+02, -0.122610060000000E+03),\n new google.maps.LatLng( 0.475049020000000E+02, -0.122640258000000E+03),\n new google.maps.LatLng( 0.475046200000000E+02, -0.122641921000000E+03),\n new google.maps.LatLng( 0.475028340000000E+02, -0.122644042000000E+03),\n new google.maps.LatLng( 0.475019570000000E+02, -0.122646408000000E+03),\n new google.maps.LatLng( 0.475118900000000E+02, -0.122653199000000E+03),\n new google.maps.LatLng( 0.475189700000000E+02, -0.122659273000000E+03),\n new google.maps.LatLng( 0.475256390000000E+02, -0.122661531000000E+03),\n new google.maps.LatLng( 0.475273630000000E+02, -0.122662859000000E+03),\n new google.maps.LatLng( 0.475288510000000E+02, -0.122665942000000E+03),\n new google.maps.LatLng( 0.475292400000000E+02, -0.122669238000000E+03),\n new google.maps.LatLng( 0.475275300000000E+02, -0.122677813000000E+03),\n new google.maps.LatLng( 0.475271710000000E+02, -0.122682696000000E+03),\n new google.maps.LatLng( 0.475275070000000E+02, -0.122682803000000E+03),\n new google.maps.LatLng( 0.475275070000000E+02, -0.122682803000000E+03),\n new google.maps.LatLng( 0.475278270000000E+02, -0.122682955000000E+03),\n new google.maps.LatLng( 0.475278270000000E+02, -0.122682955000000E+03),\n new google.maps.LatLng( 0.475289180000000E+02, -0.122677889000000E+03),\n new google.maps.LatLng( 0.475321460000000E+02, -0.122667971000000E+03),\n new google.maps.LatLng( 0.475330770000000E+02, -0.122666552000000E+03),\n new google.maps.LatLng( 0.475379600000000E+02, -0.122663836000000E+03),\n new google.maps.LatLng( 0.475396690000000E+02, -0.122661868000000E+03),\n new google.maps.LatLng( 0.475370600000000E+02, -0.122649370000000E+03),\n new google.maps.LatLng( 0.475371890000000E+02, -0.122646608000000E+03),\n new google.maps.LatLng( 0.475401040000000E+02, -0.122641786000000E+03),\n new google.maps.LatLng( 0.475422020000000E+02, -0.122639879000000E+03),\n new google.maps.LatLng( 0.475429950000000E+02, -0.122638414000000E+03),\n new google.maps.LatLng( 0.475419960000000E+02, -0.122634218000000E+03),\n new google.maps.LatLng( 0.475437510000000E+02, -0.122625000000000E+03),\n new google.maps.LatLng( 0.475464970000000E+02, -0.122623246000000E+03),\n new google.maps.LatLng( 0.475483280000000E+02, -0.122621323000000E+03),\n new google.maps.LatLng( 0.475478930000000E+02, -0.122616913000000E+03),\n new google.maps.LatLng( 0.475469250000000E+02, -0.122613083000000E+03),\n new google.maps.LatLng( 0.475468190000000E+02, -0.122607391000000E+03),\n new google.maps.LatLng( 0.475595600000000E+02, -0.122596939000000E+03),\n new google.maps.LatLng( 0.475608190000000E+02, -0.122595458000000E+03),\n new google.maps.LatLng( 0.475614140000000E+02, -0.122593521000000E+03),\n new google.maps.LatLng( 0.475634430000000E+02, -0.122591796000000E+03),\n new google.maps.LatLng( 0.475788550000000E+02, -0.122573165000000E+03),\n new google.maps.LatLng( 0.475831420000000E+02, -0.122569228000000E+03),\n new google.maps.LatLng( 0.475872550000000E+02, -0.122561949000000E+03),\n new google.maps.LatLng( 0.475905050000000E+02, -0.122554945000000E+03),\n new google.maps.LatLng( 0.475892530000000E+02, -0.122550199000000E+03),\n new google.maps.LatLng( 0.475872700000000E+02, -0.122548124000000E+03),\n new google.maps.LatLng( 0.475827230000000E+02, -0.122548475000000E+03),\n new google.maps.LatLng( 0.475802740000000E+02, -0.122549512000000E+03),\n new google.maps.LatLng( 0.475786030000000E+02, -0.122549650000000E+03),\n new google.maps.LatLng( 0.475781380000000E+02, -0.122544919000000E+03),\n new google.maps.LatLng( 0.475773370000000E+02, -0.122544141000000E+03),\n new google.maps.LatLng( 0.475757280000000E+02, -0.122545026000000E+03),\n new google.maps.LatLng( 0.475744220000000E+02, -0.122546964000000E+03),\n new google.maps.LatLng( 0.475699050000000E+02, -0.122550611000000E+03),\n new google.maps.LatLng( 0.475680670000000E+02, -0.122547803000000E+03),\n new google.maps.LatLng( 0.475689300000000E+02, -0.122545118000000E+03),\n new google.maps.LatLng( 0.475689070000000E+02, -0.122541912000000E+03),\n new google.maps.LatLng( 0.475661990639408E+02, -0.122534506182578E+03),\n new google.maps.LatLng( 0.475661990639408E+02, -0.122534506182578E+03),\n new google.maps.LatLng( 0.475661220000000E+02, -0.122534664000000E+03),\n new google.maps.LatLng( 0.475630650577484E+02, -0.122537302157390E+03),\n new google.maps.LatLng( 0.475564433098382E+02, -0.122543016760987E+03),\n new google.maps.LatLng( 0.475563260000000E+02, -0.122543118000000E+03),\n new google.maps.LatLng( 0.475560101993416E+02, -0.122543104965493E+03),\n new google.maps.LatLng( 0.475555173890342E+02, -0.122543084625005E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.482119130000000E+02, -0.119717734000000E+03),\n new google.maps.LatLng( 0.482165690000000E+02, -0.119717385000000E+03),\n new google.maps.LatLng( 0.482197930000000E+02, -0.119718680000000E+03),\n new google.maps.LatLng( 0.482233810000000E+02, -0.119717897000000E+03),\n new google.maps.LatLng( 0.482242260000000E+02, -0.119716421000000E+03),\n new google.maps.LatLng( 0.482387430000000E+02, -0.119716056000000E+03),\n new google.maps.LatLng( 0.482398710000000E+02, -0.119719891000000E+03),\n new google.maps.LatLng( 0.482390940000000E+02, -0.119721668000000E+03),\n new google.maps.LatLng( 0.482433410000000E+02, -0.119723690000000E+03),\n new google.maps.LatLng( 0.482481150000000E+02, -0.119724411000000E+03),\n new google.maps.LatLng( 0.482547560000000E+02, -0.119723486000000E+03),\n new google.maps.LatLng( 0.482623390000000E+02, -0.119721576000000E+03),\n new google.maps.LatLng( 0.482659030000000E+02, -0.119719765000000E+03),\n new google.maps.LatLng( 0.482688730000000E+02, -0.119717167000000E+03),\n new google.maps.LatLng( 0.482797250000000E+02, -0.119702767000000E+03),\n new google.maps.LatLng( 0.482817130000000E+02, -0.119697360000000E+03),\n new google.maps.LatLng( 0.482805250000000E+02, -0.119696675000000E+03),\n new google.maps.LatLng( 0.482758200000000E+02, -0.119695921000000E+03),\n new google.maps.LatLng( 0.482741070000000E+02, -0.119695032000000E+03),\n new google.maps.LatLng( 0.482739240000000E+02, -0.119694416000000E+03),\n new google.maps.LatLng( 0.482738330000000E+02, -0.119690481000000E+03),\n new google.maps.LatLng( 0.482762090000000E+02, -0.119684220000000E+03),\n new google.maps.LatLng( 0.482749060000000E+02, -0.119678300000000E+03),\n new google.maps.LatLng( 0.482755460000000E+02, -0.119676555000000E+03),\n new google.maps.LatLng( 0.482755460000000E+02, -0.119676555000000E+03),\n new google.maps.LatLng( 0.482742900000000E+02, -0.119677205000000E+03),\n new google.maps.LatLng( 0.482740150000000E+02, -0.119676692000000E+03),\n new google.maps.LatLng( 0.482726120000000E+02, -0.119668292000000E+03),\n new google.maps.LatLng( 0.482736970000000E+02, -0.119665629000000E+03),\n new google.maps.LatLng( 0.482706580000000E+02, -0.119663198000000E+03),\n new google.maps.LatLng( 0.482644720000000E+02, -0.119664086000000E+03),\n new google.maps.LatLng( 0.482613020000000E+02, -0.119654984000000E+03),\n new google.maps.LatLng( 0.482579690000000E+02, -0.119649578000000E+03),\n new google.maps.LatLng( 0.482509880000000E+02, -0.119652926000000E+03),\n new google.maps.LatLng( 0.482468620000000E+02, -0.119653072000000E+03),\n new google.maps.LatLng( 0.482455590000000E+02, -0.119651397000000E+03),\n new google.maps.LatLng( 0.482466090000000E+02, -0.119649140000000E+03),\n new google.maps.LatLng( 0.482464950000000E+02, -0.119648216000000E+03),\n new google.maps.LatLng( 0.482403040000000E+02, -0.119646032000000E+03),\n new google.maps.LatLng( 0.482359200000000E+02, -0.119648292000000E+03),\n new google.maps.LatLng( 0.482311460000000E+02, -0.119649731000000E+03),\n new google.maps.LatLng( 0.482288160000000E+02, -0.119649425000000E+03),\n new google.maps.LatLng( 0.482265090000000E+02, -0.119647991000000E+03),\n new google.maps.LatLng( 0.482246820000000E+02, -0.119647992000000E+03),\n new google.maps.LatLng( 0.482195200000000E+02, -0.119650491000000E+03),\n new google.maps.LatLng( 0.482135580000000E+02, -0.119646667000000E+03),\n new google.maps.LatLng( 0.482084600000000E+02, -0.119636590000000E+03),\n new google.maps.LatLng( 0.482084800000000E+02, -0.119629140000000E+03),\n new google.maps.LatLng( 0.482102140000000E+02, -0.119626951000000E+03),\n new google.maps.LatLng( 0.482098920000000E+02, -0.119625142000000E+03),\n new google.maps.LatLng( 0.482040970000000E+02, -0.119612799000000E+03),\n new google.maps.LatLng( 0.482037090000000E+02, -0.119610509000000E+03),\n new google.maps.LatLng( 0.481979560000000E+02, -0.119604558000000E+03),\n new google.maps.LatLng( 0.481973620000000E+02, -0.119603123000000E+03),\n new google.maps.LatLng( 0.481972200000000E+02, -0.119600687000000E+03),\n new google.maps.LatLng( 0.481994820000000E+02, -0.119594980000000E+03),\n new google.maps.LatLng( 0.482017180000000E+02, -0.119592958000000E+03),\n new google.maps.LatLng( 0.482007010000000E+02, -0.119591304000000E+03),\n new google.maps.LatLng( 0.481986000000000E+02, -0.119589868000000E+03),\n new google.maps.LatLng( 0.481980520000000E+02, -0.119590106000000E+03),\n new google.maps.LatLng( 0.481972520000000E+02, -0.119592361000000E+03),\n new google.maps.LatLng( 0.481957440000000E+02, -0.119593146000000E+03),\n new google.maps.LatLng( 0.481930260000000E+02, -0.119592905000000E+03),\n new google.maps.LatLng( 0.481897600000000E+02, -0.119591331000000E+03),\n new google.maps.LatLng( 0.481851470000000E+02, -0.119586887000000E+03),\n new google.maps.LatLng( 0.481841190000000E+02, -0.119586443000000E+03),\n new google.maps.LatLng( 0.481816520000000E+02, -0.119586442000000E+03),\n new google.maps.LatLng( 0.481724680000000E+02, -0.119591116000000E+03),\n new google.maps.LatLng( 0.481706630000000E+02, -0.119590739000000E+03),\n new google.maps.LatLng( 0.481685860000000E+02, -0.119585718000000E+03),\n new google.maps.LatLng( 0.481634570000000E+02, -0.119586979000000E+03),\n new google.maps.LatLng( 0.481634370000000E+02, -0.119579285000000E+03),\n new google.maps.LatLng( 0.481384130000000E+02, -0.119579288000000E+03),\n new google.maps.LatLng( 0.481225510000000E+02, -0.119579902000000E+03),\n new google.maps.LatLng( 0.481138710000000E+02, -0.119579455000000E+03),\n new google.maps.LatLng( 0.480923540000000E+02, -0.119579413000000E+03),\n new google.maps.LatLng( 0.480923320000000E+02, -0.119568638000000E+03),\n new google.maps.LatLng( 0.480934060000000E+02, -0.119563353000000E+03),\n new google.maps.LatLng( 0.480882210000000E+02, -0.119564205000000E+03),\n new google.maps.LatLng( 0.480827160000000E+02, -0.119565875000000E+03),\n new google.maps.LatLng( 0.480799980000000E+02, -0.119565943000000E+03),\n new google.maps.LatLng( 0.480775920000000E+02, -0.119565435000000E+03),\n new google.maps.LatLng( 0.480775920000000E+02, -0.119565435000000E+03),\n new google.maps.LatLng( 0.480729620000000E+02, -0.119564374000000E+03),\n new google.maps.LatLng( 0.480717970000000E+02, -0.119562703000000E+03),\n new google.maps.LatLng( 0.480704040000000E+02, -0.119558682000000E+03),\n new google.maps.LatLng( 0.480683710000000E+02, -0.119556262000000E+03),\n new google.maps.LatLng( 0.480623860000000E+02, -0.119551117000000E+03),\n new google.maps.LatLng( 0.480544580000000E+02, -0.119547268000000E+03),\n new google.maps.LatLng( 0.480532020000000E+02, -0.119546962000000E+03),\n new google.maps.LatLng( 0.480514880000000E+02, -0.119547371000000E+03),\n new google.maps.LatLng( 0.480514880000000E+02, -0.119547371000000E+03),\n new google.maps.LatLng( 0.480458470000000E+02, -0.119556401000000E+03),\n new google.maps.LatLng( 0.480398400000000E+02, -0.119563588000000E+03),\n new google.maps.LatLng( 0.480348590000000E+02, -0.119575508000000E+03),\n new google.maps.LatLng( 0.480306550000000E+02, -0.119580820000000E+03),\n new google.maps.LatLng( 0.480268840000000E+02, -0.119586778000000E+03),\n new google.maps.LatLng( 0.480238910000000E+02, -0.119592871000000E+03),\n new google.maps.LatLng( 0.480188000000000E+02, -0.119600857000000E+03),\n new google.maps.LatLng( 0.480136070000000E+02, -0.119607062000000E+03),\n new google.maps.LatLng( 0.480096310000000E+02, -0.119610531000000E+03),\n new google.maps.LatLng( 0.480006280000000E+02, -0.119616649000000E+03),\n new google.maps.LatLng( 0.479995250000000E+02, -0.119618390000000E+03),\n new google.maps.LatLng( 0.479987460000000E+02, -0.119620941000000E+03),\n new google.maps.LatLng( 0.479976750000000E+02, -0.119634317000000E+03),\n new google.maps.LatLng( 0.480007960000000E+02, -0.119649827000000E+03),\n new google.maps.LatLng( 0.480023510000000E+02, -0.119654795000000E+03),\n new google.maps.LatLng( 0.480048870000000E+02, -0.119658981000000E+03),\n new google.maps.LatLng( 0.480100740000000E+02, -0.119664901000000E+03),\n new google.maps.LatLng( 0.480148490000000E+02, -0.119672560000000E+03),\n new google.maps.LatLng( 0.480210860000000E+02, -0.119683964000000E+03),\n new google.maps.LatLng( 0.480244660000000E+02, -0.119688561000000E+03),\n new google.maps.LatLng( 0.480287150000000E+02, -0.119691285000000E+03),\n new google.maps.LatLng( 0.480305880000000E+02, -0.119691932000000E+03),\n new google.maps.LatLng( 0.480323920000000E+02, -0.119691762000000E+03),\n new google.maps.LatLng( 0.480384230000000E+02, -0.119687335000000E+03),\n new google.maps.LatLng( 0.480455730000000E+02, -0.119679637000000E+03),\n new google.maps.LatLng( 0.480540690000000E+02, -0.119676501000000E+03),\n new google.maps.LatLng( 0.480584550000000E+02, -0.119674013000000E+03),\n new google.maps.LatLng( 0.480651240000000E+02, -0.119669241000000E+03),\n new google.maps.LatLng( 0.480678650000000E+02, -0.119668116000000E+03),\n new google.maps.LatLng( 0.480813420000000E+02, -0.119665009000000E+03),\n new google.maps.LatLng( 0.480823020000000E+02, -0.119669168000000E+03),\n new google.maps.LatLng( 0.480861400000000E+02, -0.119674552000000E+03),\n new google.maps.LatLng( 0.480928560000000E+02, -0.119680894000000E+03),\n new google.maps.LatLng( 0.480939290000000E+02, -0.119679087000000E+03),\n new google.maps.LatLng( 0.480966930000000E+02, -0.119680211000000E+03),\n new google.maps.LatLng( 0.480960310000000E+02, -0.119683519000000E+03),\n new google.maps.LatLng( 0.480880130000000E+02, -0.119697872000000E+03),\n new google.maps.LatLng( 0.480864360000000E+02, -0.119703053000000E+03),\n new google.maps.LatLng( 0.480860690000000E+02, -0.119705917000000E+03),\n new google.maps.LatLng( 0.480882150000000E+02, -0.119709770000000E+03),\n new google.maps.LatLng( 0.480899750000000E+02, -0.119708032000000E+03),\n new google.maps.LatLng( 0.480927610000000E+02, -0.119711478000000E+03),\n new google.maps.LatLng( 0.480944040000000E+02, -0.119716422000000E+03),\n new google.maps.LatLng( 0.480987430000000E+02, -0.119719391000000E+03),\n new google.maps.LatLng( 0.480994070000000E+02, -0.119713936000000E+03),\n new google.maps.LatLng( 0.481005730000000E+02, -0.119710970000000E+03),\n new google.maps.LatLng( 0.481046620000000E+02, -0.119706846000000E+03),\n new google.maps.LatLng( 0.481054160000000E+02, -0.119704869000000E+03),\n new google.maps.LatLng( 0.481060340000000E+02, -0.119696547000000E+03),\n new google.maps.LatLng( 0.481045040000000E+02, -0.119693784000000E+03),\n new google.maps.LatLng( 0.481037510000000E+02, -0.119691227000000E+03),\n new google.maps.LatLng( 0.481042760000000E+02, -0.119689180000000E+03),\n new google.maps.LatLng( 0.481164960000000E+02, -0.119682393000000E+03),\n new google.maps.LatLng( 0.481256920000000E+02, -0.119679725000000E+03),\n new google.maps.LatLng( 0.481334120000000E+02, -0.119674128000000E+03),\n new google.maps.LatLng( 0.481352390000000E+02, -0.119673377000000E+03),\n new google.maps.LatLng( 0.481371120000000E+02, -0.119674059000000E+03),\n new google.maps.LatLng( 0.481403100000000E+02, -0.119672488000000E+03),\n new google.maps.LatLng( 0.481462710000000E+02, -0.119668766000000E+03),\n new google.maps.LatLng( 0.481478460000000E+02, -0.119666342000000E+03),\n new google.maps.LatLng( 0.481503590000000E+02, -0.119665283000000E+03),\n new google.maps.LatLng( 0.481550410000000E+02, -0.119664360000000E+03),\n new google.maps.LatLng( 0.481590620000000E+02, -0.119668045000000E+03),\n new google.maps.LatLng( 0.481682680000000E+02, -0.119671901000000E+03),\n new google.maps.LatLng( 0.481743900000000E+02, -0.119675314000000E+03),\n new google.maps.LatLng( 0.481793700000000E+02, -0.119678968000000E+03),\n new google.maps.LatLng( 0.481829560000000E+02, -0.119679172000000E+03),\n new google.maps.LatLng( 0.481880040000000E+02, -0.119678044000000E+03),\n new google.maps.LatLng( 0.481914530000000E+02, -0.119680606000000E+03),\n new google.maps.LatLng( 0.481937830000000E+02, -0.119684227000000E+03),\n new google.maps.LatLng( 0.481975970000000E+02, -0.119691846000000E+03),\n new google.maps.LatLng( 0.482064350000000E+02, -0.119703807000000E+03),\n new google.maps.LatLng( 0.482087620000000E+02, -0.119714879000000E+03),\n new google.maps.LatLng( 0.482119130000000E+02, -0.119717734000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.460414990000000E+02, -0.120452279000000E+03),\n new google.maps.LatLng( 0.460343060000000E+02, -0.120455958000000E+03),\n new google.maps.LatLng( 0.460248450000000E+02, -0.120458514000000E+03),\n new google.maps.LatLng( 0.460227890000000E+02, -0.120457726000000E+03),\n new google.maps.LatLng( 0.460224700000000E+02, -0.120453494000000E+03),\n new google.maps.LatLng( 0.460211450000000E+02, -0.120446868000000E+03),\n new google.maps.LatLng( 0.460176980000000E+02, -0.120436601000000E+03),\n new google.maps.LatLng( 0.460103990000000E+02, -0.120424694000000E+03),\n new google.maps.LatLng( 0.460096740000000E+02, -0.120424652000000E+03),\n new google.maps.LatLng( 0.460088620000000E+02, -0.120426043000000E+03),\n new google.maps.LatLng( 0.460079660000000E+02, -0.120425412000000E+03),\n new google.maps.LatLng( 0.460077930000000E+02, -0.120423043000000E+03),\n new google.maps.LatLng( 0.460077930000000E+02, -0.120423043000000E+03),\n new google.maps.LatLng( 0.460067720000000E+02, -0.120424601000000E+03),\n new google.maps.LatLng( 0.460059490000000E+02, -0.120428504000000E+03),\n new google.maps.LatLng( 0.460045100000000E+02, -0.120429881000000E+03),\n new google.maps.LatLng( 0.459949710000000E+02, -0.120433581000000E+03),\n new google.maps.LatLng( 0.459924350000000E+02, -0.120436303000000E+03),\n new google.maps.LatLng( 0.459924350000000E+02, -0.120436303000000E+03),\n new google.maps.LatLng( 0.459915670000000E+02, -0.120439188000000E+03),\n new google.maps.LatLng( 0.459875450000000E+02, -0.120432960000000E+03),\n new google.maps.LatLng( 0.459832030000000E+02, -0.120433091000000E+03),\n new google.maps.LatLng( 0.459806440000000E+02, -0.120433648000000E+03),\n new google.maps.LatLng( 0.459786100000000E+02, -0.120432272000000E+03),\n new google.maps.LatLng( 0.459753420000000E+02, -0.120429094000000E+03),\n new google.maps.LatLng( 0.459752040000000E+02, -0.120421262000000E+03),\n new google.maps.LatLng( 0.459734210000000E+02, -0.120417133000000E+03),\n new google.maps.LatLng( 0.459677530000000E+02, -0.120411992000000E+03),\n new google.maps.LatLng( 0.459649660000000E+02, -0.120413599000000E+03),\n new google.maps.LatLng( 0.459631610000000E+02, -0.120415303000000E+03),\n new google.maps.LatLng( 0.459611740000000E+02, -0.120418613000000E+03),\n new google.maps.LatLng( 0.459610830000000E+02, -0.120422578000000E+03),\n new google.maps.LatLng( 0.459582280000000E+02, -0.120429983000000E+03),\n new google.maps.LatLng( 0.459592110000000E+02, -0.120432735000000E+03),\n new google.maps.LatLng( 0.459644210000000E+02, -0.120435912000000E+03),\n new google.maps.LatLng( 0.459648550000000E+02, -0.120437714000000E+03),\n new google.maps.LatLng( 0.459641010000000E+02, -0.120438631000000E+03),\n new google.maps.LatLng( 0.459599880000000E+02, -0.120442825000000E+03),\n new google.maps.LatLng( 0.459547550000000E+02, -0.120443022000000E+03),\n new google.maps.LatLng( 0.459495910000000E+02, -0.120445413000000E+03),\n new google.maps.LatLng( 0.459464150000000E+02, -0.120447476000000E+03),\n new google.maps.LatLng( 0.459446100000000E+02, -0.120447673000000E+03),\n new google.maps.LatLng( 0.459450670000000E+02, -0.120442825000000E+03),\n new google.maps.LatLng( 0.459434900000000E+02, -0.120442236000000E+03),\n new google.maps.LatLng( 0.459360860000000E+02, -0.120449964000000E+03),\n new google.maps.LatLng( 0.459246810000000E+02, -0.120467775000000E+03),\n new google.maps.LatLng( 0.459250860000000E+02, -0.120470369000000E+03),\n new google.maps.LatLng( 0.459167910000000E+02, -0.120488003000000E+03),\n new google.maps.LatLng( 0.459172930000000E+02, -0.120490197000000E+03),\n new google.maps.LatLng( 0.459164690000000E+02, -0.120492684000000E+03),\n new google.maps.LatLng( 0.459149150000000E+02, -0.120493337000000E+03),\n new google.maps.LatLng( 0.459117390000000E+02, -0.120493040000000E+03),\n new google.maps.LatLng( 0.459086980000000E+02, -0.120496932000000E+03),\n new google.maps.LatLng( 0.459061150000000E+02, -0.120498664000000E+03),\n new google.maps.LatLng( 0.459054290000000E+02, -0.120498467000000E+03),\n new google.maps.LatLng( 0.459039910000000E+02, -0.120496109000000E+03),\n new google.maps.LatLng( 0.459027570000000E+02, -0.120496075000000E+03),\n new google.maps.LatLng( 0.459009270000000E+02, -0.120499346000000E+03),\n new google.maps.LatLng( 0.458979120000000E+02, -0.120512319000000E+03),\n new google.maps.LatLng( 0.458903740000000E+02, -0.120518283000000E+03),\n new google.maps.LatLng( 0.458880430000000E+02, -0.120518448000000E+03),\n new google.maps.LatLng( 0.458849130000000E+02, -0.120520872000000E+03),\n new google.maps.LatLng( 0.458825830000000E+02, -0.120523818000000E+03),\n new google.maps.LatLng( 0.458748480000000E+02, -0.120522479000000E+03),\n new google.maps.LatLng( 0.458741920000000E+02, -0.120521626000000E+03),\n new google.maps.LatLng( 0.458741920000000E+02, -0.120521626000000E+03),\n new google.maps.LatLng( 0.458628770000000E+02, -0.120513884000000E+03),\n new google.maps.LatLng( 0.458615520000000E+02, -0.120513624000000E+03),\n new google.maps.LatLng( 0.458599530000000E+02, -0.120514377000000E+03),\n new google.maps.LatLng( 0.458558870000000E+02, -0.120517881000000E+03),\n new google.maps.LatLng( 0.458456460000000E+02, -0.120519336000000E+03),\n new google.maps.LatLng( 0.458456460000000E+02, -0.120519336000000E+03),\n new google.maps.LatLng( 0.458409200000000E+02, -0.120519757000000E+03),\n new google.maps.LatLng( 0.458354350000000E+02, -0.120517734000000E+03),\n new google.maps.LatLng( 0.458321470000000E+02, -0.120523557000000E+03),\n new google.maps.LatLng( 0.458359870000000E+02, -0.120527346000000E+03),\n new google.maps.LatLng( 0.458437870000000E+02, -0.120532401000000E+03),\n new google.maps.LatLng( 0.458576980000000E+02, -0.120535540000000E+03),\n new google.maps.LatLng( 0.458587720000000E+02, -0.120535343000000E+03),\n new google.maps.LatLng( 0.458748480000000E+02, -0.120539818000000E+03),\n new google.maps.LatLng( 0.458797330000000E+02, -0.120548620000000E+03),\n new google.maps.LatLng( 0.458816080000000E+02, -0.120555556000000E+03),\n new google.maps.LatLng( 0.458848070000000E+02, -0.120562623000000E+03),\n new google.maps.LatLng( 0.458881890000000E+02, -0.120564946000000E+03),\n new google.maps.LatLng( 0.458899260000000E+02, -0.120567826000000E+03),\n new google.maps.LatLng( 0.458925530000000E+02, -0.120577023000000E+03),\n new google.maps.LatLng( 0.458995900000000E+02, -0.120585861000000E+03),\n new google.maps.LatLng( 0.459011210000000E+02, -0.120584487000000E+03),\n new google.maps.LatLng( 0.459028810000000E+02, -0.120584193000000E+03),\n new google.maps.LatLng( 0.459049370000000E+02, -0.120586190000000E+03),\n new google.maps.LatLng( 0.459057370000000E+02, -0.120587303000000E+03),\n new google.maps.LatLng( 0.459081570000000E+02, -0.120596175000000E+03),\n new google.maps.LatLng( 0.459111720000000E+02, -0.120599484000000E+03),\n new google.maps.LatLng( 0.459138240000000E+02, -0.120598275000000E+03),\n new google.maps.LatLng( 0.459172260000000E+02, -0.120605054000000E+03),\n new google.maps.LatLng( 0.459185270000000E+02, -0.120610850000000E+03),\n new google.maps.LatLng( 0.459177230000000E+02, -0.120620180000000E+03),\n new google.maps.LatLng( 0.459174910000000E+02, -0.120631803000000E+03),\n new google.maps.LatLng( 0.459184750000000E+02, -0.120635502000000E+03),\n new google.maps.LatLng( 0.459291750000000E+02, -0.120636135000000E+03),\n new google.maps.LatLng( 0.459365410000000E+02, -0.120632027000000E+03),\n new google.maps.LatLng( 0.459378500000000E+02, -0.120630548000000E+03),\n new google.maps.LatLng( 0.459451660000000E+02, -0.120626970000000E+03),\n new google.maps.LatLng( 0.459473880000000E+02, -0.120628422000000E+03),\n new google.maps.LatLng( 0.459465500000000E+02, -0.120642133000000E+03),\n new google.maps.LatLng( 0.459468590000000E+02, -0.120644742000000E+03),\n new google.maps.LatLng( 0.459472480000000E+02, -0.120644773000000E+03),\n new google.maps.LatLng( 0.459477980000000E+02, -0.120643321000000E+03),\n new google.maps.LatLng( 0.459487460000000E+02, -0.120642581000000E+03),\n new google.maps.LatLng( 0.459530980000000E+02, -0.120642161000000E+03),\n new google.maps.LatLng( 0.459574570000000E+02, -0.120642982000000E+03),\n new google.maps.LatLng( 0.459564020000000E+02, -0.120647991000000E+03),\n new google.maps.LatLng( 0.459547620000000E+02, -0.120649563000000E+03),\n new google.maps.LatLng( 0.459545540000000E+02, -0.120651077000000E+03),\n new google.maps.LatLng( 0.459551260000000E+02, -0.120651481000000E+03),\n new google.maps.LatLng( 0.459600980000000E+02, -0.120651719000000E+03),\n new google.maps.LatLng( 0.459633660000000E+02, -0.120645478000000E+03),\n new google.maps.LatLng( 0.459658750000000E+02, -0.120644565000000E+03),\n new google.maps.LatLng( 0.459669930000000E+02, -0.120641811000000E+03),\n new google.maps.LatLng( 0.459684290000000E+02, -0.120632667000000E+03),\n new google.maps.LatLng( 0.459697070000000E+02, -0.120630732000000E+03),\n new google.maps.LatLng( 0.459719000000000E+02, -0.120628960000000E+03),\n new google.maps.LatLng( 0.459738700000000E+02, -0.120620006000000E+03),\n new google.maps.LatLng( 0.459731390000000E+02, -0.120617580000000E+03),\n new google.maps.LatLng( 0.459660560000000E+02, -0.120616132000000E+03),\n new google.maps.LatLng( 0.459642960000000E+02, -0.120617113000000E+03),\n new google.maps.LatLng( 0.459622840000000E+02, -0.120620289000000E+03),\n new google.maps.LatLng( 0.459607750000000E+02, -0.120621238000000E+03),\n new google.maps.LatLng( 0.459608440000000E+02, -0.120620157000000E+03),\n new google.maps.LatLng( 0.459658770000000E+02, -0.120607218000000E+03),\n new google.maps.LatLng( 0.459715460000000E+02, -0.120601717000000E+03),\n new google.maps.LatLng( 0.459782420000000E+02, -0.120597460000000E+03),\n new google.maps.LatLng( 0.459787000000000E+02, -0.120596444000000E+03),\n new google.maps.LatLng( 0.459783130000000E+02, -0.120593220000000E+03),\n new google.maps.LatLng( 0.459778100000000E+02, -0.120589659000000E+03),\n new google.maps.LatLng( 0.459778110000000E+02, -0.120583366000000E+03),\n new google.maps.LatLng( 0.459782690000000E+02, -0.120577663000000E+03),\n new google.maps.LatLng( 0.459790230000000E+02, -0.120574648000000E+03),\n new google.maps.LatLng( 0.459778350000000E+02, -0.120570813000000E+03),\n new google.maps.LatLng( 0.459752980000000E+02, -0.120568912000000E+03),\n new google.maps.LatLng( 0.459746810000000E+02, -0.120564521000000E+03),\n new google.maps.LatLng( 0.459780860000000E+02, -0.120561341000000E+03),\n new google.maps.LatLng( 0.459788620000000E+02, -0.120552917000000E+03),\n new google.maps.LatLng( 0.459767360000000E+02, -0.120546363000000E+03),\n new google.maps.LatLng( 0.459740850000000E+02, -0.120545643000000E+03),\n new google.maps.LatLng( 0.459726670000000E+02, -0.120541514000000E+03),\n new google.maps.LatLng( 0.459732600000000E+02, -0.120535386000000E+03),\n new google.maps.LatLng( 0.459743550000000E+02, -0.120530666000000E+03),\n new google.maps.LatLng( 0.459726160000000E+02, -0.120524046000000E+03),\n new google.maps.LatLng( 0.459725690000000E+02, -0.120517820000000E+03),\n new google.maps.LatLng( 0.459717460000000E+02, -0.120515658000000E+03),\n new google.maps.LatLng( 0.459698020000000E+02, -0.120513595000000E+03),\n new google.maps.LatLng( 0.459753270000000E+02, -0.120503758000000E+03),\n new google.maps.LatLng( 0.459757150000000E+02, -0.120502086000000E+03),\n new google.maps.LatLng( 0.459757900000000E+02, -0.120492444000000E+03),\n new google.maps.LatLng( 0.459756070000000E+02, -0.120491199000000E+03),\n new google.maps.LatLng( 0.459747170000000E+02, -0.120490051000000E+03),\n new google.maps.LatLng( 0.459744670000000E+02, -0.120486512000000E+03),\n new google.maps.LatLng( 0.459794280000000E+02, -0.120479141000000E+03),\n new google.maps.LatLng( 0.459807760000000E+02, -0.120478683000000E+03),\n new google.maps.LatLng( 0.459830150000000E+02, -0.120479078000000E+03),\n new google.maps.LatLng( 0.459850260000000E+02, -0.120480161000000E+03),\n new google.maps.LatLng( 0.459926590000000E+02, -0.120474757000000E+03),\n new google.maps.LatLng( 0.459931630000000E+02, -0.120473282000000E+03),\n new google.maps.LatLng( 0.459934840000000E+02, -0.120464824000000E+03),\n new google.maps.LatLng( 0.459951760000000E+02, -0.120462464000000E+03),\n new google.maps.LatLng( 0.460003150000000E+02, -0.120462341000000E+03),\n new google.maps.LatLng( 0.460069980000000E+02, -0.120464147000000E+03),\n new google.maps.LatLng( 0.460075470000000E+02, -0.120464443000000E+03),\n new google.maps.LatLng( 0.460085290000000E+02, -0.120467034000000E+03),\n new google.maps.LatLng( 0.460074290000000E+02, -0.120477100000000E+03),\n new google.maps.LatLng( 0.460044100000000E+02, -0.120483657000000E+03),\n new google.maps.LatLng( 0.460032670000000E+02, -0.120485000000000E+03),\n new google.maps.LatLng( 0.460030150000000E+02, -0.120486738000000E+03),\n new google.maps.LatLng( 0.460033290000000E+02, -0.120498345000000E+03),\n new google.maps.LatLng( 0.460038740000000E+02, -0.120501731000000E+03),\n new google.maps.LatLng( 0.460081280000000E+02, -0.120508711000000E+03),\n new google.maps.LatLng( 0.460078810000000E+02, -0.120519566000000E+03),\n new google.maps.LatLng( 0.460083190000000E+02, -0.120535011000000E+03),\n new google.maps.LatLng( 0.460088460000000E+02, -0.120539109000000E+03),\n new google.maps.LatLng( 0.460069950000000E+02, -0.120542521000000E+03),\n new google.maps.LatLng( 0.460052610000000E+02, -0.120558196000000E+03),\n new google.maps.LatLng( 0.460086880000000E+02, -0.120575051000000E+03),\n new google.maps.LatLng( 0.460098300000000E+02, -0.120576889000000E+03),\n new google.maps.LatLng( 0.460100800000000E+02, -0.120587875000000E+03),\n new google.maps.LatLng( 0.460105360000000E+02, -0.120589744000000E+03),\n new google.maps.LatLng( 0.460122950000000E+02, -0.120592730000000E+03),\n new google.maps.LatLng( 0.460134350000000E+02, -0.120603356000000E+03),\n new google.maps.LatLng( 0.460124000000000E+02, -0.120618705000000E+03),\n new google.maps.LatLng( 0.460134920000000E+02, -0.120626172000000E+03),\n new google.maps.LatLng( 0.460151370000000E+02, -0.120629015000000E+03),\n new google.maps.LatLng( 0.460150930000000E+02, -0.120630852000000E+03),\n new google.maps.LatLng( 0.460115310000000E+02, -0.120636759000000E+03),\n new google.maps.LatLng( 0.460114860000000E+02, -0.120640038000000E+03),\n new google.maps.LatLng( 0.460134060000000E+02, -0.120640825000000E+03),\n new google.maps.LatLng( 0.460156250000000E+02, -0.120645742000000E+03),\n new google.maps.LatLng( 0.460114000000000E+02, -0.120653157000000E+03),\n new google.maps.LatLng( 0.460101690000000E+02, -0.120670441000000E+03),\n new google.maps.LatLng( 0.460114260000000E+02, -0.120674475000000E+03),\n new google.maps.LatLng( 0.460111300000000E+02, -0.120681920000000E+03),\n new google.maps.LatLng( 0.460161350000000E+02, -0.120684511000000E+03),\n new google.maps.LatLng( 0.460173690000000E+02, -0.120690382000000E+03),\n new google.maps.LatLng( 0.460175740000000E+02, -0.120698385000000E+03),\n new google.maps.LatLng( 0.460163620000000E+02, -0.120703633000000E+03),\n new google.maps.LatLng( 0.460136650000000E+02, -0.120709110000000E+03),\n new google.maps.LatLng( 0.460122710000000E+02, -0.120710618000000E+03),\n new google.maps.LatLng( 0.460120880000000E+02, -0.120711634000000E+03),\n new google.maps.LatLng( 0.460128170000000E+02, -0.120718719000000E+03),\n new google.maps.LatLng( 0.460167690000000E+02, -0.120724822000000E+03),\n new google.maps.LatLng( 0.460181620000000E+02, -0.120727873000000E+03),\n new google.maps.LatLng( 0.460181140000000E+02, -0.120735484000000E+03),\n new google.maps.LatLng( 0.460169240000000E+02, -0.120739550000000E+03),\n new google.maps.LatLng( 0.460161440000000E+02, -0.120745912000000E+03),\n new google.maps.LatLng( 0.460164130000000E+02, -0.120751883000000E+03),\n new google.maps.LatLng( 0.460183820000000E+02, -0.120758638000000E+03),\n new google.maps.LatLng( 0.460214000000000E+02, -0.120762965000000E+03),\n new google.maps.LatLng( 0.460223610000000E+02, -0.120765194000000E+03),\n new google.maps.LatLng( 0.460229340000000E+02, -0.120768409000000E+03),\n new google.maps.LatLng( 0.460227970000000E+02, -0.120770378000000E+03),\n new google.maps.LatLng( 0.460236770000000E+02, -0.120772993000000E+03),\n new google.maps.LatLng( 0.460239650000000E+02, -0.120776741000000E+03),\n new google.maps.LatLng( 0.460233260000000E+02, -0.120778611000000E+03),\n new google.maps.LatLng( 0.460221130000000E+02, -0.120774151000000E+03),\n new google.maps.LatLng( 0.460184090000000E+02, -0.120768216000000E+03),\n new google.maps.LatLng( 0.460145690000000E+02, -0.120765923000000E+03),\n new google.maps.LatLng( 0.460137000000000E+02, -0.120765858000000E+03),\n new google.maps.LatLng( 0.460122610000000E+02, -0.120766712000000E+03),\n new google.maps.LatLng( 0.460114380000000E+02, -0.120766418000000E+03),\n new google.maps.LatLng( 0.460056880000000E+02, -0.120758132000000E+03),\n new google.maps.LatLng( 0.460039400000000E+02, -0.120746326000000E+03),\n new google.maps.LatLng( 0.460052680000000E+02, -0.120741015000000E+03),\n new google.maps.LatLng( 0.460048830000000E+02, -0.120732684000000E+03),\n new google.maps.LatLng( 0.460026450000000E+02, -0.120728026000000E+03),\n new google.maps.LatLng( 0.460017080000000E+02, -0.120728976000000E+03),\n new google.maps.LatLng( 0.460004810000000E+02, -0.120728835000000E+03),\n new google.maps.LatLng( 0.459952680000000E+02, -0.120723065000000E+03),\n new google.maps.LatLng( 0.459946740000000E+02, -0.120720999000000E+03),\n new google.maps.LatLng( 0.459948350000000E+02, -0.120716671000000E+03),\n new google.maps.LatLng( 0.459943330000000E+02, -0.120712047000000E+03),\n new google.maps.LatLng( 0.459802580000000E+02, -0.120696703000000E+03),\n new google.maps.LatLng( 0.459710030000000E+02, -0.120691786000000E+03),\n new google.maps.LatLng( 0.459583880000000E+02, -0.120683725000000E+03),\n new google.maps.LatLng( 0.459557370000000E+02, -0.120683857000000E+03),\n new google.maps.LatLng( 0.459552800000000E+02, -0.120684643000000E+03),\n new google.maps.LatLng( 0.459555770000000E+02, -0.120685691000000E+03),\n new google.maps.LatLng( 0.459573140000000E+02, -0.120687231000000E+03),\n new google.maps.LatLng( 0.459582280000000E+02, -0.120692178000000E+03),\n new google.maps.LatLng( 0.459573840000000E+02, -0.120696176000000E+03),\n new google.maps.LatLng( 0.459556000000000E+02, -0.120697715000000E+03),\n new google.maps.LatLng( 0.459544350000000E+02, -0.120698174000000E+03),\n new google.maps.LatLng( 0.459498870000000E+02, -0.120698370000000E+03),\n new google.maps.LatLng( 0.459449050000000E+02, -0.120695257000000E+03),\n new google.maps.LatLng( 0.459351610000000E+02, -0.120694688000000E+03),\n new google.maps.LatLng( 0.459330030000000E+02, -0.120698493000000E+03),\n new google.maps.LatLng( 0.459329550000000E+02, -0.120699567000000E+03),\n new google.maps.LatLng( 0.459320690000000E+02, -0.120700576000000E+03),\n new google.maps.LatLng( 0.459274110000000E+02, -0.120699651000000E+03),\n new google.maps.LatLng( 0.459266750000000E+02, -0.120698458000000E+03),\n new google.maps.LatLng( 0.459251380000000E+02, -0.120698825000000E+03),\n new google.maps.LatLng( 0.459230350000000E+02, -0.120699873000000E+03),\n new google.maps.LatLng( 0.459120390000000E+02, -0.120708230000000E+03),\n new google.maps.LatLng( 0.459122710000000E+02, -0.120710118000000E+03),\n new google.maps.LatLng( 0.459138930000000E+02, -0.120712475000000E+03),\n new google.maps.LatLng( 0.459138800000000E+02, -0.120719339000000E+03),\n new google.maps.LatLng( 0.459188330000000E+02, -0.120722868000000E+03),\n new google.maps.LatLng( 0.459190970000000E+02, -0.120732484000000E+03),\n new google.maps.LatLng( 0.459184550000000E+02, -0.120739228000000E+03),\n new google.maps.LatLng( 0.459160820000000E+02, -0.120741464000000E+03),\n new google.maps.LatLng( 0.459123470000000E+02, -0.120750616000000E+03),\n new google.maps.LatLng( 0.459112060000000E+02, -0.120760969000000E+03),\n new google.maps.LatLng( 0.459115540000000E+02, -0.120771968000000E+03),\n new google.maps.LatLng( 0.459133150000000E+02, -0.120775012000000E+03),\n new google.maps.LatLng( 0.459120840000000E+02, -0.120785292000000E+03),\n new google.maps.LatLng( 0.459117890000000E+02, -0.120795017000000E+03),\n new google.maps.LatLng( 0.459143040000000E+02, -0.120820094000000E+03),\n new google.maps.LatLng( 0.459127260000000E+02, -0.120834959000000E+03),\n new google.maps.LatLng( 0.459134100000000E+02, -0.120840983000000E+03),\n new google.maps.LatLng( 0.459158760000000E+02, -0.120849039000000E+03),\n new google.maps.LatLng( 0.459165360000000E+02, -0.120856832000000E+03),\n new google.maps.LatLng( 0.459198930000000E+02, -0.120864987000000E+03),\n new google.maps.LatLng( 0.459199360000000E+02, -0.120869278000000E+03),\n new google.maps.LatLng( 0.459203700000000E+02, -0.120870915000000E+03),\n new google.maps.LatLng( 0.459257870000000E+02, -0.120868530000000E+03),\n new google.maps.LatLng( 0.459294910000000E+02, -0.120864669000000E+03),\n new google.maps.LatLng( 0.459296280000000E+02, -0.120865292000000E+03),\n new google.maps.LatLng( 0.459287590000000E+02, -0.120867059000000E+03),\n new google.maps.LatLng( 0.459285300000000E+02, -0.120868533000000E+03),\n new google.maps.LatLng( 0.459289180000000E+02, -0.120869581000000E+03),\n new google.maps.LatLng( 0.459363410000000E+02, -0.120878379000000E+03),\n new google.maps.LatLng( 0.459417800000000E+02, -0.120878405000000E+03),\n new google.maps.LatLng( 0.459427160000000E+02, -0.120876701000000E+03),\n new google.maps.LatLng( 0.459447960000000E+02, -0.120877321000000E+03),\n new google.maps.LatLng( 0.459453700000000E+02, -0.120885150000000E+03),\n new google.maps.LatLng( 0.459499890000000E+02, -0.120890747000000E+03),\n new google.maps.LatLng( 0.459497850000000E+02, -0.120893992000000E+03),\n new google.maps.LatLng( 0.459484850000000E+02, -0.120899399000000E+03),\n new google.maps.LatLng( 0.459488740000000E+02, -0.120902445000000E+03),\n new google.maps.LatLng( 0.459504060000000E+02, -0.120903754000000E+03),\n new google.maps.LatLng( 0.459512300000000E+02, -0.120909094000000E+03),\n new google.maps.LatLng( 0.459506600000000E+02, -0.120912797000000E+03),\n new google.maps.LatLng( 0.459492210000000E+02, -0.120917024000000E+03),\n new google.maps.LatLng( 0.459494500000000E+02, -0.120920005000000E+03),\n new google.maps.LatLng( 0.459504560000000E+02, -0.120923870000000E+03),\n new google.maps.LatLng( 0.459491080000000E+02, -0.120926656000000E+03),\n new google.maps.LatLng( 0.459468910000000E+02, -0.120926460000000E+03),\n new google.maps.LatLng( 0.459468920000000E+02, -0.120932553000000E+03),\n new google.maps.LatLng( 0.459489720000000E+02, -0.120945527000000E+03),\n new google.maps.LatLng( 0.459542740000000E+02, -0.120952834000000E+03),\n new google.maps.LatLng( 0.459523070000000E+02, -0.120958961000000E+03),\n new google.maps.LatLng( 0.459505240000000E+02, -0.120961876000000E+03),\n new google.maps.LatLng( 0.459497010000000E+02, -0.120964628000000E+03),\n new google.maps.LatLng( 0.459496770000000E+02, -0.120969116000000E+03),\n new google.maps.LatLng( 0.459510020000000E+02, -0.120972786000000E+03),\n new google.maps.LatLng( 0.459521200000000E+02, -0.120978161000000E+03),\n new google.maps.LatLng( 0.459471600000000E+02, -0.120979337000000E+03),\n new google.maps.LatLng( 0.459374700000000E+02, -0.120978806000000E+03),\n new google.maps.LatLng( 0.459360390000000E+02, -0.120979491000000E+03),\n new google.maps.LatLng( 0.459363920000000E+02, -0.120989549000000E+03),\n new google.maps.LatLng( 0.459353630000000E+02, -0.120991284000000E+03),\n new google.maps.LatLng( 0.459297610000000E+02, -0.120996683000000E+03),\n new google.maps.LatLng( 0.459278820000000E+02, -0.121001181000000E+03),\n new google.maps.LatLng( 0.459293020000000E+02, -0.121006892000000E+03),\n new google.maps.LatLng( 0.459271370000000E+02, -0.121018880000000E+03),\n new google.maps.LatLng( 0.459284870000000E+02, -0.121024217000000E+03),\n new google.maps.LatLng( 0.459300420000000E+02, -0.121025625000000E+03),\n new google.maps.LatLng( 0.459298140000000E+02, -0.121027262000000E+03),\n new google.maps.LatLng( 0.459287860000000E+02, -0.121028180000000E+03),\n new google.maps.LatLng( 0.459261110000000E+02, -0.121027134000000E+03),\n new google.maps.LatLng( 0.459224760000000E+02, -0.121023305000000E+03),\n new google.maps.LatLng( 0.459158940000000E+02, -0.121026912000000E+03),\n new google.maps.LatLng( 0.459142260000000E+02, -0.121029270000000E+03),\n new google.maps.LatLng( 0.459177490000000E+02, -0.121041286000000E+03),\n new google.maps.LatLng( 0.459177040000000E+02, -0.121045445000000E+03),\n new google.maps.LatLng( 0.459220010000000E+02, -0.121046687000000E+03),\n new google.maps.LatLng( 0.459252230000000E+02, -0.121044099000000E+03),\n new google.maps.LatLng( 0.459289710000000E+02, -0.121043541000000E+03),\n new google.maps.LatLng( 0.459302290000000E+02, -0.121045506000000E+03),\n new google.maps.LatLng( 0.459394870000000E+02, -0.121050743000000E+03),\n new google.maps.LatLng( 0.459417040000000E+02, -0.121051332000000E+03),\n new google.maps.LatLng( 0.459447210000000E+02, -0.121051233000000E+03),\n new google.maps.LatLng( 0.459488120000000E+02, -0.121054083000000E+03),\n new google.maps.LatLng( 0.459462750000000E+02, -0.121054476000000E+03),\n new google.maps.LatLng( 0.459427550000000E+02, -0.121064370000000E+03),\n new google.maps.LatLng( 0.459418870000000E+02, -0.121068498000000E+03),\n new google.maps.LatLng( 0.459519660000000E+02, -0.121070531000000E+03),\n new google.maps.LatLng( 0.459617260000000E+02, -0.121071580000000E+03),\n new google.maps.LatLng( 0.459660860000000E+02, -0.121073088000000E+03),\n new google.maps.LatLng( 0.459720560000000E+02, -0.121072532000000E+03),\n new google.maps.LatLng( 0.459804440000000E+02, -0.121073057000000E+03),\n new google.maps.LatLng( 0.459831170000000E+02, -0.121083154000000E+03),\n new google.maps.LatLng( 0.459839390000000E+02, -0.121083778000000E+03),\n new google.maps.LatLng( 0.459862930000000E+02, -0.121083286000000E+03),\n new google.maps.LatLng( 0.459903450000000E+02, -0.121080452000000E+03),\n new google.maps.LatLng( 0.459898490000000E+02, -0.121070730000000E+03),\n new google.maps.LatLng( 0.459910980000000E+02, -0.121063208000000E+03),\n new google.maps.LatLng( 0.459941120000000E+02, -0.121053501000000E+03),\n new google.maps.LatLng( 0.459946280000000E+02, -0.121047236000000E+03),\n new google.maps.LatLng( 0.459988600000000E+02, -0.121036626000000E+03),\n new google.maps.LatLng( 0.459993990000000E+02, -0.121029706000000E+03),\n new google.maps.LatLng( 0.459985610000000E+02, -0.121027510000000E+03),\n new google.maps.LatLng( 0.459977150000000E+02, -0.121026461000000E+03),\n new google.maps.LatLng( 0.459955890000000E+02, -0.121025577000000E+03),\n new google.maps.LatLng( 0.459922710000000E+02, -0.121026514000000E+03),\n new google.maps.LatLng( 0.459941050000000E+02, -0.121014102000000E+03),\n new google.maps.LatLng( 0.459958580000000E+02, -0.121013871000000E+03),\n new google.maps.LatLng( 0.459969320000000E+02, -0.121012788000000E+03),\n new google.maps.LatLng( 0.459970460000000E+02, -0.121011902000000E+03),\n new google.maps.LatLng( 0.459960370000000E+02, -0.121006362000000E+03),\n new google.maps.LatLng( 0.459945280000000E+02, -0.121006959000000E+03),\n new google.maps.LatLng( 0.459971180000000E+02, -0.121001182000000E+03),\n new google.maps.LatLng( 0.459998450000000E+02, -0.120985624000000E+03),\n new google.maps.LatLng( 0.460033310000000E+02, -0.120979028000000E+03),\n new google.maps.LatLng( 0.460018720000000E+02, -0.120976172000000E+03),\n new google.maps.LatLng( 0.460017660000000E+02, -0.120966599000000E+03),\n new google.maps.LatLng( 0.460048370000000E+02, -0.120959324000000E+03),\n new google.maps.LatLng( 0.460045030000000E+02, -0.120953692000000E+03),\n new google.maps.LatLng( 0.460036050000000E+02, -0.120950193000000E+03),\n new google.maps.LatLng( 0.460058220000000E+02, -0.120945536000000E+03),\n new google.maps.LatLng( 0.460068050000000E+02, -0.120945208000000E+03),\n new google.maps.LatLng( 0.460080160000000E+02, -0.120945733000000E+03),\n new google.maps.LatLng( 0.460211500000000E+02, -0.120945802000000E+03),\n new google.maps.LatLng( 0.460211450000000E+02, -0.120955693000000E+03),\n new google.maps.LatLng( 0.460234640000000E+02, -0.120956037000000E+03),\n new google.maps.LatLng( 0.460229240000000E+02, -0.120961206000000E+03),\n new google.maps.LatLng( 0.460195970000000E+02, -0.120965819000000E+03),\n new google.maps.LatLng( 0.460182130000000E+02, -0.120965206000000E+03),\n new google.maps.LatLng( 0.460169320000000E+02, -0.120966420000000E+03),\n new google.maps.LatLng( 0.460158030000000E+02, -0.120977618000000E+03),\n new google.maps.LatLng( 0.460170790000000E+02, -0.120987820000000E+03),\n new google.maps.LatLng( 0.460161860000000E+02, -0.120991953000000E+03),\n new google.maps.LatLng( 0.460184450000000E+02, -0.120997827000000E+03),\n new google.maps.LatLng( 0.460203180000000E+02, -0.121000618000000E+03),\n new google.maps.LatLng( 0.460209560000000E+02, -0.121002666000000E+03),\n new google.maps.LatLng( 0.460210570000000E+02, -0.121007060000000E+03),\n new google.maps.LatLng( 0.460160720000000E+02, -0.121018121000000E+03),\n new google.maps.LatLng( 0.460147700000000E+02, -0.121019599000000E+03),\n new google.maps.LatLng( 0.460131480000000E+02, -0.121020420000000E+03),\n new google.maps.LatLng( 0.460115030000000E+02, -0.121022750000000E+03),\n new google.maps.LatLng( 0.460108200000000E+02, -0.121028621000000E+03),\n new google.maps.LatLng( 0.460106860000000E+02, -0.121042923000000E+03),\n new google.maps.LatLng( 0.460085840000000E+02, -0.121047384000000E+03),\n new google.maps.LatLng( 0.460079670000000E+02, -0.121049647000000E+03),\n new google.maps.LatLng( 0.460082420000000E+02, -0.121051746000000E+03),\n new google.maps.LatLng( 0.460072590000000E+02, -0.121054108000000E+03),\n new google.maps.LatLng( 0.460041740000000E+02, -0.121054666000000E+03),\n new google.maps.LatLng( 0.460026430000000E+02, -0.121056634000000E+03),\n new google.maps.LatLng( 0.460023920000000E+02, -0.121057651000000E+03),\n new google.maps.LatLng( 0.460026200000000E+02, -0.121068965000000E+03),\n new google.maps.LatLng( 0.460020710000000E+02, -0.121076802000000E+03),\n new google.maps.LatLng( 0.460031890000000E+02, -0.121087626000000E+03),\n new google.maps.LatLng( 0.460040350000000E+02, -0.121088413000000E+03),\n new google.maps.LatLng( 0.460037600000000E+02, -0.121092054000000E+03),\n new google.maps.LatLng( 0.459988120000000E+02, -0.121106705000000E+03),\n new google.maps.LatLng( 0.459968230000000E+02, -0.121109163000000E+03),\n new google.maps.LatLng( 0.459954970000000E+02, -0.121109555000000E+03),\n new google.maps.LatLng( 0.459933030000000E+02, -0.121111193000000E+03),\n new google.maps.LatLng( 0.459920900000000E+02, -0.121113750000000E+03),\n new google.maps.LatLng( 0.459915630000000E+02, -0.121118176000000E+03),\n new google.maps.LatLng( 0.459901670000000E+02, -0.121121847000000E+03),\n new google.maps.LatLng( 0.459890920000000E+02, -0.121123419000000E+03),\n new google.maps.LatLng( 0.459920160000000E+02, -0.121125455000000E+03),\n new google.maps.LatLng( 0.459924740000000E+02, -0.121125292000000E+03),\n new google.maps.LatLng( 0.460009650000000E+02, -0.121111860000000E+03),\n new google.maps.LatLng( 0.460043060000000E+02, -0.121099007000000E+03),\n new google.maps.LatLng( 0.460078050000000E+02, -0.121092613000000E+03),\n new google.maps.LatLng( 0.460118970000000E+02, -0.121089073000000E+03),\n new google.maps.LatLng( 0.460172450000000E+02, -0.121086254000000E+03),\n new google.maps.LatLng( 0.460182950000000E+02, -0.121091274000000E+03),\n new google.maps.LatLng( 0.460222940000000E+02, -0.121093769000000E+03),\n new google.maps.LatLng( 0.460224080000000E+02, -0.121094458000000E+03),\n new google.maps.LatLng( 0.460208310000000E+02, -0.121096589000000E+03),\n new google.maps.LatLng( 0.460192750000000E+02, -0.121100919000000E+03),\n new google.maps.LatLng( 0.460159580000000E+02, -0.121113620000000E+03),\n new google.maps.LatLng( 0.460141760000000E+02, -0.121115468000000E+03),\n new google.maps.LatLng( 0.460143680000000E+02, -0.121117246000000E+03),\n new google.maps.LatLng( 0.460172460000000E+02, -0.121121145000000E+03),\n new google.maps.LatLng( 0.460188400000000E+02, -0.121121313000000E+03),\n new google.maps.LatLng( 0.460241980000000E+02, -0.121116196000000E+03),\n new google.maps.LatLng( 0.460256870000000E+02, -0.121115722000000E+03),\n new google.maps.LatLng( 0.460228990000000E+02, -0.121133997000000E+03),\n new google.maps.LatLng( 0.460258480000000E+02, -0.121135240000000E+03),\n new google.maps.LatLng( 0.460274700000000E+02, -0.121133467000000E+03),\n new google.maps.LatLng( 0.460321780000000E+02, -0.121133069000000E+03),\n new google.maps.LatLng( 0.460345110000000E+02, -0.121135462000000E+03),\n new google.maps.LatLng( 0.460342140000000E+02, -0.121137365000000E+03),\n new google.maps.LatLng( 0.460276590000000E+02, -0.121147116000000E+03),\n new google.maps.LatLng( 0.460249400000000E+02, -0.121148529000000E+03),\n new google.maps.LatLng( 0.460210540000000E+02, -0.121147613000000E+03),\n new google.maps.LatLng( 0.460108569894531E+02, -0.121148959140625E+03),\n new google.maps.LatLng( 0.460079140000000E+02, -0.121149788000000E+03),\n new google.maps.LatLng( 0.460053540000000E+02, -0.121149789000000E+03),\n new google.maps.LatLng( 0.460021990000000E+02, -0.121147627000000E+03),\n new google.maps.LatLng( 0.460009420000000E+02, -0.121146119000000E+03),\n new google.maps.LatLng( 0.459998450000000E+02, -0.121143572000000E+03),\n new google.maps.LatLng( 0.459987650000000E+02, -0.121142608000000E+03),\n new google.maps.LatLng( 0.460014910000000E+02, -0.121147529000000E+03),\n new google.maps.LatLng( 0.460045090000000E+02, -0.121149757000000E+03),\n new google.maps.LatLng( 0.460054460000000E+02, -0.121150216000000E+03),\n new google.maps.LatLng( 0.460081880000000E+02, -0.121150345000000E+03),\n new google.maps.LatLng( 0.460108620000000E+02, -0.121149523000000E+03),\n new google.maps.LatLng( 0.460146570000000E+02, -0.121151718000000E+03),\n new google.maps.LatLng( 0.460157770000000E+02, -0.121153948000000E+03),\n new google.maps.LatLng( 0.460157770000000E+02, -0.121153948000000E+03),\n new google.maps.LatLng( 0.460161880000000E+02, -0.121155325000000E+03),\n new google.maps.LatLng( 0.460182690000000E+02, -0.121157161000000E+03),\n new google.maps.LatLng( 0.460235950000000E+02, -0.121160865000000E+03),\n new google.maps.LatLng( 0.460257430000000E+02, -0.121160963000000E+03),\n new google.maps.LatLng( 0.460311610000000E+02, -0.121165947000000E+03),\n new google.maps.LatLng( 0.460326480000000E+02, -0.121169786000000E+03),\n new google.maps.LatLng( 0.460333800000000E+02, -0.121175626000000E+03),\n new google.maps.LatLng( 0.460351860000000E+02, -0.121179499000000E+03),\n new google.maps.LatLng( 0.460366260000000E+02, -0.121179958000000E+03),\n new google.maps.LatLng( 0.460397570000000E+02, -0.121179728000000E+03),\n new google.maps.LatLng( 0.460423590000000E+02, -0.121181921000000E+03),\n new google.maps.LatLng( 0.460413340000000E+02, -0.121183633000000E+03),\n new google.maps.LatLng( 0.460377460000000E+02, -0.121187014000000E+03),\n new google.maps.LatLng( 0.460357350000000E+02, -0.121188293000000E+03),\n new google.maps.LatLng( 0.460254500000000E+02, -0.121192756000000E+03),\n new google.maps.LatLng( 0.460240330000000E+02, -0.121197086000000E+03),\n new google.maps.LatLng( 0.460258610000000E+02, -0.121201352000000E+03),\n new google.maps.LatLng( 0.460324410000000E+02, -0.121212280000000E+03),\n new google.maps.LatLng( 0.460331260000000E+02, -0.121218810000000E+03),\n new google.maps.LatLng( 0.460305640000000E+02, -0.121224454000000E+03),\n new google.maps.LatLng( 0.460246220000000E+02, -0.121223499000000E+03),\n new google.maps.LatLng( 0.460395820000000E+02, -0.121248679000000E+03),\n new google.maps.LatLng( 0.460407930000000E+02, -0.121256485000000E+03),\n new google.maps.LatLng( 0.460433310000000E+02, -0.121258123000000E+03),\n new google.maps.LatLng( 0.460449250000000E+02, -0.121261609000000E+03),\n new google.maps.LatLng( 0.460449250000000E+02, -0.121261609000000E+03),\n new google.maps.LatLng( 0.460446080000000E+02, -0.121133076000000E+03),\n new google.maps.LatLng( 0.460442450000000E+02, -0.121112179000000E+03),\n new google.maps.LatLng( 0.460429950000000E+02, -0.121090398000000E+03),\n new google.maps.LatLng( 0.460425750000000E+02, -0.121070460000000E+03),\n new google.maps.LatLng( 0.460424620000000E+02, -0.120905298000000E+03),\n new google.maps.LatLng( 0.460417930000000E+02, -0.120841605000000E+03),\n new google.maps.LatLng( 0.460413000000000E+02, -0.120651091000000E+03),\n new google.maps.LatLng( 0.460406890000000E+02, -0.120592889000000E+03),\n new google.maps.LatLng( 0.460415790000000E+02, -0.120569631000000E+03),\n new google.maps.LatLng( 0.460414990000000E+02, -0.120452279000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.462225550000000E+02, -0.123400469000000E+03),\n new google.maps.LatLng( 0.462229580000000E+02, -0.123398625000000E+03),\n new google.maps.LatLng( 0.462226610000000E+02, -0.123397407000000E+03),\n new google.maps.LatLng( 0.462203970000000E+02, -0.123394972000000E+03),\n new google.maps.LatLng( 0.462162590000000E+02, -0.123395173000000E+03),\n new google.maps.LatLng( 0.462121210000000E+02, -0.123393398000000E+03),\n new google.maps.LatLng( 0.462087360000000E+02, -0.123389548000000E+03),\n new google.maps.LatLng( 0.462079810000000E+02, -0.123389516000000E+03),\n new google.maps.LatLng( 0.462058560000000E+02, -0.123390736000000E+03),\n new google.maps.LatLng( 0.462124910000000E+02, -0.123405844000000E+03),\n new google.maps.LatLng( 0.462151440000000E+02, -0.123410816000000E+03),\n new google.maps.LatLng( 0.462175670000000E+02, -0.123413844000000E+03),\n new google.maps.LatLng( 0.462204250000000E+02, -0.123416017000000E+03),\n new google.maps.LatLng( 0.462211110000000E+02, -0.123415720000000E+03),\n new google.maps.LatLng( 0.462212250000000E+02, -0.123414864000000E+03),\n new google.maps.LatLng( 0.462191200000000E+02, -0.123407093000000E+03),\n new google.maps.LatLng( 0.462186620000000E+02, -0.123402844000000E+03),\n new google.maps.LatLng( 0.462225550000000E+02, -0.123400469000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.457842170000000E+02, -0.121735611000000E+03),\n new google.maps.LatLng( 0.457851540000000E+02, -0.121733230000000E+03),\n new google.maps.LatLng( 0.457854440000000E+02, -0.121728586000000E+03),\n new google.maps.LatLng( 0.457830880000000E+02, -0.121718728000000E+03),\n new google.maps.LatLng( 0.457794320000000E+02, -0.121714499000000E+03),\n new google.maps.LatLng( 0.457777060000000E+02, -0.121708063000000E+03),\n new google.maps.LatLng( 0.457756990000000E+02, -0.121706674000000E+03),\n new google.maps.LatLng( 0.457708080000000E+02, -0.121708369000000E+03),\n new google.maps.LatLng( 0.457697250000000E+02, -0.121711270000000E+03),\n new google.maps.LatLng( 0.457695530000000E+02, -0.121719978000000E+03),\n new google.maps.LatLng( 0.457700020000000E+02, -0.121727051000000E+03),\n new google.maps.LatLng( 0.457657380000000E+02, -0.121728660000000E+03),\n new google.maps.LatLng( 0.457637740000000E+02, -0.121727225000000E+03),\n new google.maps.LatLng( 0.457636380000000E+02, -0.121725200000000E+03),\n new google.maps.LatLng( 0.457614210000000E+02, -0.121723141000000E+03),\n new google.maps.LatLng( 0.457589530000000E+02, -0.121722944000000E+03),\n new google.maps.LatLng( 0.457515880000000E+02, -0.121733519000000E+03),\n new google.maps.LatLng( 0.457517020000000E+02, -0.121735706000000E+03),\n new google.maps.LatLng( 0.457510610000000E+02, -0.121736979000000E+03),\n new google.maps.LatLng( 0.457493510000000E+02, -0.121738020000000E+03),\n new google.maps.LatLng( 0.457472610000000E+02, -0.121736810000000E+03),\n new google.maps.LatLng( 0.457411710000000E+02, -0.121711266000000E+03),\n new google.maps.LatLng( 0.457326650000000E+02, -0.121706637000000E+03),\n new google.maps.LatLng( 0.457334460000000E+02, -0.121697024000000E+03),\n new google.maps.LatLng( 0.457314750000000E+02, -0.121696811000000E+03),\n new google.maps.LatLng( 0.457280230000000E+02, -0.121694526000000E+03),\n new google.maps.LatLng( 0.457259430000000E+02, -0.121688847000000E+03),\n new google.maps.LatLng( 0.457231540000000E+02, -0.121683756000000E+03),\n new google.maps.LatLng( 0.457151300000000E+02, -0.121678634000000E+03),\n new google.maps.LatLng( 0.457138500000000E+02, -0.121677264000000E+03),\n new google.maps.LatLng( 0.457127070000000E+02, -0.121672794000000E+03),\n new google.maps.LatLng( 0.457114720000000E+02, -0.121671033000000E+03),\n new google.maps.LatLng( 0.457103640000000E+02, -0.121671574000000E+03),\n new google.maps.LatLng( 0.457103640000000E+02, -0.121671574000000E+03),\n new google.maps.LatLng( 0.457096890000000E+02, -0.121671947000000E+03),\n new google.maps.LatLng( 0.457096890000000E+02, -0.121671947000000E+03),\n new google.maps.LatLng( 0.457094600000000E+02, -0.121676547000000E+03),\n new google.maps.LatLng( 0.457048440000000E+02, -0.121684900000000E+03),\n new google.maps.LatLng( 0.457032210000000E+02, -0.121691686000000E+03),\n new google.maps.LatLng( 0.456977790000000E+02, -0.121706954000000E+03),\n new google.maps.LatLng( 0.456986020000000E+02, -0.121708683000000E+03),\n new google.maps.LatLng( 0.456981880000000E+02, -0.121717393000000E+03),\n new google.maps.LatLng( 0.456990560000000E+02, -0.121722971000000E+03),\n new google.maps.LatLng( 0.456986430000000E+02, -0.121727799000000E+03),\n new google.maps.LatLng( 0.456970860000000E+02, -0.121733604000000E+03),\n new google.maps.LatLng( 0.456970620000000E+02, -0.121737584000000E+03),\n new google.maps.LatLng( 0.456981810000000E+02, -0.121740554000000E+03),\n new google.maps.LatLng( 0.456992540000000E+02, -0.121741566000000E+03),\n new google.maps.LatLng( 0.457003740000000E+02, -0.121741828000000E+03),\n new google.maps.LatLng( 0.457010600000000E+02, -0.121742938000000E+03),\n new google.maps.LatLng( 0.457021780000000E+02, -0.121746951000000E+03),\n new google.maps.LatLng( 0.457018330000000E+02, -0.121754507000000E+03),\n new google.maps.LatLng( 0.457026360000000E+02, -0.121759138000000E+03),\n new google.maps.LatLng( 0.457031390000000E+02, -0.121760541000000E+03),\n new google.maps.LatLng( 0.457061360000000E+02, -0.121764453000000E+03),\n new google.maps.LatLng( 0.457076000000000E+02, -0.121768107000000E+03),\n new google.maps.LatLng( 0.457082650000000E+02, -0.121772152000000E+03),\n new google.maps.LatLng( 0.457087030000000E+02, -0.121782593000000E+03),\n new google.maps.LatLng( 0.457105100000000E+02, -0.121789150000000E+03),\n new google.maps.LatLng( 0.457140550000000E+02, -0.121798449000000E+03),\n new google.maps.LatLng( 0.457160000000000E+02, -0.121810457000000E+03),\n new google.maps.LatLng( 0.457160000000000E+02, -0.121814405000000E+03),\n new google.maps.LatLng( 0.457116090000000E+02, -0.121832026000000E+03),\n new google.maps.LatLng( 0.457086820000000E+02, -0.121837181000000E+03),\n new google.maps.LatLng( 0.457042900000000E+02, -0.121851958000000E+03),\n new google.maps.LatLng( 0.456993480000000E+02, -0.121862754000000E+03),\n new google.maps.LatLng( 0.456991390000000E+02, -0.121870583000000E+03),\n new google.maps.LatLng( 0.456986570000000E+02, -0.121872801000000E+03),\n new google.maps.LatLng( 0.456962090000000E+02, -0.121876775000000E+03),\n new google.maps.LatLng( 0.456944490000000E+02, -0.121877854000000E+03),\n new google.maps.LatLng( 0.456925750000000E+02, -0.121879813000000E+03),\n new google.maps.LatLng( 0.456910910000000E+02, -0.121882587000000E+03),\n new google.maps.LatLng( 0.456893790000000E+02, -0.121887645000000E+03),\n new google.maps.LatLng( 0.456899399835938E+02, -0.121891063569336E+03),\n new google.maps.LatLng( 0.456913480000000E+02, -0.121895342000000E+03),\n new google.maps.LatLng( 0.456913030000000E+02, -0.121897527000000E+03),\n new google.maps.LatLng( 0.456900460000000E+02, -0.121898670000000E+03),\n new google.maps.LatLng( 0.456853830000000E+02, -0.121898216000000E+03),\n new google.maps.LatLng( 0.456893573106445E+02, -0.121890144419141E+03),\n new google.maps.LatLng( 0.456888760000000E+02, -0.121888624000000E+03),\n new google.maps.LatLng( 0.456846050000000E+02, -0.121896488000000E+03),\n new google.maps.LatLng( 0.456780690000000E+02, -0.121902526000000E+03),\n new google.maps.LatLng( 0.456771780000000E+02, -0.121905494000000E+03),\n new google.maps.LatLng( 0.456780240000000E+02, -0.121906570000000E+03),\n new google.maps.LatLng( 0.456778190000000E+02, -0.121907712000000E+03),\n new google.maps.LatLng( 0.456749390000000E+02, -0.121909083000000E+03),\n new google.maps.LatLng( 0.456714870000000E+02, -0.121908628000000E+03),\n new google.maps.LatLng( 0.456639180000000E+02, -0.121902797000000E+03),\n new google.maps.LatLng( 0.456624361386548E+02, -0.121900906909755E+03),\n new google.maps.LatLng( 0.456624361386548E+02, -0.121900906909755E+03),\n new google.maps.LatLng( 0.456622925878281E+02, -0.121900890472386E+03),\n new google.maps.LatLng( 0.456620090000000E+02, -0.121900858000000E+03),\n new google.maps.LatLng( 0.456543990000000E+02, -0.121908267000000E+03),\n new google.maps.LatLng( 0.456441690000000E+02, -0.121935149000000E+03),\n new google.maps.LatLng( 0.456449510000000E+02, -0.121951838000000E+03),\n new google.maps.LatLng( 0.456435590000000E+02, -0.121955734000000E+03),\n new google.maps.LatLng( 0.456327840000000E+02, -0.121963547000000E+03),\n new google.maps.LatLng( 0.456248390000000E+02, -0.121979797000000E+03),\n new google.maps.LatLng( 0.456228120000000E+02, -0.121983038000000E+03),\n new google.maps.LatLng( 0.456168264221357E+02, -0.122000999952057E+03),\n new google.maps.LatLng( 0.456168264221357E+02, -0.122000999952057E+03),\n new google.maps.LatLng( 0.456199500000000E+02, -0.122001194000000E+03),\n new google.maps.LatLng( 0.456187170000000E+02, -0.122007596000000E+03),\n new google.maps.LatLng( 0.456213680000000E+02, -0.122004628000000E+03),\n new google.maps.LatLng( 0.456209680000000E+02, -0.122001085000000E+03),\n new google.maps.LatLng( 0.456262330000000E+02, -0.122001194000000E+03),\n new google.maps.LatLng( 0.456266250000000E+02, -0.122009773000000E+03),\n new google.maps.LatLng( 0.456262170000000E+02, -0.122017299000000E+03),\n new google.maps.LatLng( 0.456243540000000E+02, -0.122020068000000E+03),\n new google.maps.LatLng( 0.456222440000000E+02, -0.122021210000000E+03),\n new google.maps.LatLng( 0.456200950000000E+02, -0.122020234000000E+03),\n new google.maps.LatLng( 0.456176490000000E+02, -0.122022419000000E+03),\n new google.maps.LatLng( 0.456143600000000E+02, -0.122030273000000E+03),\n new google.maps.LatLng( 0.456146130000000E+02, -0.122034149000000E+03),\n new google.maps.LatLng( 0.456156880000000E+02, -0.122036754000000E+03),\n new google.maps.LatLng( 0.456153920000000E+02, -0.122040305000000E+03),\n new google.maps.LatLng( 0.456103860000000E+02, -0.122047766000000E+03),\n new google.maps.LatLng( 0.456084210000000E+02, -0.122052815000000E+03),\n new google.maps.LatLng( 0.456070040000000E+02, -0.122058972000000E+03),\n new google.maps.LatLng( 0.456042610000000E+02, -0.122063694000000E+03),\n new google.maps.LatLng( 0.456013340000000E+02, -0.122072293000000E+03),\n new google.maps.LatLng( 0.455995260000000E+02, -0.122089781000000E+03),\n new google.maps.LatLng( 0.455993620000000E+02, -0.122106911000000E+03),\n new google.maps.LatLng( 0.455998190000000E+02, -0.122106521000000E+03),\n new google.maps.LatLng( 0.456017660000000E+02, -0.122091019000000E+03),\n new google.maps.LatLng( 0.456023840000000E+02, -0.122089521000000E+03),\n new google.maps.LatLng( 0.456029090000000E+02, -0.122090629000000E+03),\n new google.maps.LatLng( 0.456011460000000E+02, -0.122105512000000E+03),\n new google.maps.LatLng( 0.456000710000000E+02, -0.122107433000000E+03),\n new google.maps.LatLng( 0.455992600000000E+02, -0.122107993000000E+03),\n new google.maps.LatLng( 0.455992600000000E+02, -0.122107993000000E+03),\n new google.maps.LatLng( 0.456025370000000E+02, -0.122111147000000E+03),\n new google.maps.LatLng( 0.456050550000000E+02, -0.122112214000000E+03),\n new google.maps.LatLng( 0.456071820000000E+02, -0.122103544000000E+03),\n new google.maps.LatLng( 0.456086840000000E+02, -0.122102884000000E+03),\n new google.maps.LatLng( 0.456102140000000E+02, -0.122100461000000E+03),\n new google.maps.LatLng( 0.456106660000000E+02, -0.122088061000000E+03),\n new google.maps.LatLng( 0.456112820000000E+02, -0.122086839000000E+03),\n new google.maps.LatLng( 0.456133810000000E+02, -0.122085161000000E+03),\n new google.maps.LatLng( 0.456138160000000E+02, -0.122077213000000E+03),\n new google.maps.LatLng( 0.456150500000000E+02, -0.122073513000000E+03),\n new google.maps.LatLng( 0.456182360000000E+02, -0.122074358000000E+03),\n new google.maps.LatLng( 0.456202090000000E+02, -0.122081138000000E+03),\n new google.maps.LatLng( 0.456212820000000E+02, -0.122082768000000E+03),\n new google.maps.LatLng( 0.456236010000000E+02, -0.122075000000000E+03),\n new google.maps.LatLng( 0.456261110000000E+02, -0.122073667000000E+03),\n new google.maps.LatLng( 0.456292890000000E+02, -0.122075524000000E+03),\n new google.maps.LatLng( 0.456343860000000E+02, -0.122084421000000E+03),\n new google.maps.LatLng( 0.456418370000000E+02, -0.122092083000000E+03),\n new google.maps.LatLng( 0.456431620000000E+02, -0.122092736000000E+03),\n new google.maps.LatLng( 0.456492660000000E+02, -0.122093359000000E+03),\n new google.maps.LatLng( 0.456508440000000E+02, -0.122092545000000E+03),\n new google.maps.LatLng( 0.456513490000000E+02, -0.122091758000000E+03),\n new google.maps.LatLng( 0.456513490000000E+02, -0.122091758000000E+03),\n new google.maps.LatLng( 0.456518720000000E+02, -0.122089386000000E+03),\n new google.maps.LatLng( 0.456537610000000E+02, -0.122086914000000E+03),\n new google.maps.LatLng( 0.456569280000000E+02, -0.122084167000000E+03),\n new google.maps.LatLng( 0.456617920000000E+02, -0.122082209000000E+03),\n new google.maps.LatLng( 0.456630150000000E+02, -0.122082758000000E+03),\n new google.maps.LatLng( 0.456640450000000E+02, -0.122082609000000E+03),\n new google.maps.LatLng( 0.456672070000000E+02, -0.122079842000000E+03),\n new google.maps.LatLng( 0.456678310000000E+02, -0.122075989000000E+03),\n new google.maps.LatLng( 0.456674660000000E+02, -0.122073902000000E+03),\n new google.maps.LatLng( 0.456668260000000E+02, -0.122072304000000E+03),\n new google.maps.LatLng( 0.456659570000000E+02, -0.122072206000000E+03),\n new google.maps.LatLng( 0.456654090000000E+02, -0.122070087000000E+03),\n new google.maps.LatLng( 0.456659350000000E+02, -0.122067250000000E+03),\n new google.maps.LatLng( 0.456698440000000E+02, -0.122061805000000E+03),\n new google.maps.LatLng( 0.456680830000000E+02, -0.122057697000000E+03),\n new google.maps.LatLng( 0.456658200000000E+02, -0.122054403000000E+03),\n new google.maps.LatLng( 0.456655450000000E+02, -0.122046905000000E+03),\n new google.maps.LatLng( 0.456627090000000E+02, -0.122044297000000E+03),\n new google.maps.LatLng( 0.456583670000000E+02, -0.122044103000000E+03),\n new google.maps.LatLng( 0.456571100000000E+02, -0.122044462000000E+03),\n new google.maps.LatLng( 0.456562640000000E+02, -0.122044104000000E+03),\n new google.maps.LatLng( 0.456554790000000E+02, -0.122042572000000E+03),\n new google.maps.LatLng( 0.456558290000000E+02, -0.122041692000000E+03),\n new google.maps.LatLng( 0.456583660000000E+02, -0.122040713000000E+03),\n new google.maps.LatLng( 0.456610410000000E+02, -0.122041462000000E+03),\n new google.maps.LatLng( 0.456660460000000E+02, -0.122038558000000E+03),\n new google.maps.LatLng( 0.456673940000000E+02, -0.122036144000000E+03),\n new google.maps.LatLng( 0.456672100000000E+02, -0.122032591000000E+03),\n new google.maps.LatLng( 0.456734750000000E+02, -0.122033957000000E+03),\n new google.maps.LatLng( 0.456753960000000E+02, -0.122038293000000E+03),\n new google.maps.LatLng( 0.456815460000000E+02, -0.122038192000000E+03),\n new google.maps.LatLng( 0.456847130000000E+02, -0.122035542000000E+03),\n new google.maps.LatLng( 0.456851210000000E+02, -0.122031801000000E+03),\n new google.maps.LatLng( 0.456837380000000E+02, -0.122029972000000E+03),\n new google.maps.LatLng( 0.456824580000000E+02, -0.122029157000000E+03),\n new google.maps.LatLng( 0.456799660000000E+02, -0.122030659000000E+03),\n new google.maps.LatLng( 0.456778860000000E+02, -0.122030530000000E+03),\n new google.maps.LatLng( 0.456751180000000E+02, -0.122026260000000E+03),\n new google.maps.LatLng( 0.456750950000000E+02, -0.122024336000000E+03),\n new google.maps.LatLng( 0.456707960000000E+02, -0.122021307000000E+03),\n new google.maps.LatLng( 0.456680290000000E+02, -0.122020166000000E+03),\n new google.maps.LatLng( 0.456665200000000E+02, -0.122020298000000E+03),\n new google.maps.LatLng( 0.456579710000000E+02, -0.122018381000000E+03),\n new google.maps.LatLng( 0.456499220000000E+02, -0.122014705000000E+03),\n new google.maps.LatLng( 0.456486640000000E+02, -0.122012718000000E+03),\n new google.maps.LatLng( 0.456477720000000E+02, -0.122012197000000E+03),\n new google.maps.LatLng( 0.456402660000000E+02, -0.122014473000000E+03),\n new google.maps.LatLng( 0.456403540000000E+02, -0.122023169000000E+03),\n new google.maps.LatLng( 0.456364760000000E+02, -0.122023153000000E+03),\n new google.maps.LatLng( 0.456364800000000E+02, -0.122015483000000E+03),\n new google.maps.LatLng( 0.456338930000000E+02, -0.122009456000000E+03),\n new google.maps.LatLng( 0.456319070000000E+02, -0.122009609000000E+03),\n new google.maps.LatLng( 0.456314550000000E+02, -0.122011781000000E+03),\n new google.maps.LatLng( 0.456312790000000E+02, -0.122011271000000E+03),\n new google.maps.LatLng( 0.456319120000000E+02, -0.122008752000000E+03),\n new google.maps.LatLng( 0.456351520000000E+02, -0.122006996000000E+03),\n new google.maps.LatLng( 0.456364980000000E+02, -0.122006817000000E+03),\n new google.maps.LatLng( 0.456364980000000E+02, -0.122006817000000E+03),\n new google.maps.LatLng( 0.456353320000000E+02, -0.122004583000000E+03),\n new google.maps.LatLng( 0.456351960000000E+02, -0.121998490000000E+03),\n new google.maps.LatLng( 0.456317230000000E+02, -0.121993892000000E+03),\n new google.maps.LatLng( 0.456300550000000E+02, -0.121993792000000E+03),\n new google.maps.LatLng( 0.456276480000000E+02, -0.121997122000000E+03),\n new google.maps.LatLng( 0.456326160000000E+02, -0.121985319000000E+03),\n new google.maps.LatLng( 0.456332760000000E+02, -0.121982737000000E+03),\n new google.maps.LatLng( 0.456350660000000E+02, -0.121982620000000E+03),\n new google.maps.LatLng( 0.456359820000000E+02, -0.121981641000000E+03),\n new google.maps.LatLng( 0.456372620000000E+02, -0.121978548000000E+03),\n new google.maps.LatLng( 0.456373080000000E+02, -0.121978059000000E+03),\n new google.maps.LatLng( 0.456365760000000E+02, -0.121977993000000E+03),\n new google.maps.LatLng( 0.456362100000000E+02, -0.121978906000000E+03),\n new google.maps.LatLng( 0.456356390000000E+02, -0.121978579000000E+03),\n new google.maps.LatLng( 0.456361440000000E+02, -0.121971541000000E+03),\n new google.maps.LatLng( 0.456369220000000E+02, -0.121970825000000E+03),\n new google.maps.LatLng( 0.456392990000000E+02, -0.121970989000000E+03),\n new google.maps.LatLng( 0.456425920000000E+02, -0.121966135000000E+03),\n new google.maps.LatLng( 0.456465760000000E+02, -0.121956927000000E+03),\n new google.maps.LatLng( 0.456485800000000E+02, -0.121953748000000E+03),\n new google.maps.LatLng( 0.456491310000000E+02, -0.121953701000000E+03),\n new google.maps.LatLng( 0.456499550000000E+02, -0.121954957000000E+03),\n new google.maps.LatLng( 0.456519670000000E+02, -0.121956131000000E+03),\n new google.maps.LatLng( 0.456543440000000E+02, -0.121956165000000E+03),\n new google.maps.LatLng( 0.456602200000000E+02, -0.121951439000000E+03),\n new google.maps.LatLng( 0.456604950000000E+02, -0.121949614000000E+03),\n new google.maps.LatLng( 0.456586890000000E+02, -0.121948407000000E+03),\n new google.maps.LatLng( 0.456561970000000E+02, -0.121943745000000E+03),\n new google.maps.LatLng( 0.456557860000000E+02, -0.121941431000000E+03),\n new google.maps.LatLng( 0.456570890000000E+02, -0.121940844000000E+03),\n new google.maps.LatLng( 0.456608380000000E+02, -0.121940812000000E+03),\n new google.maps.LatLng( 0.456637870000000E+02, -0.121943061000000E+03),\n new google.maps.LatLng( 0.456666220000000E+02, -0.121943583000000E+03),\n new google.maps.LatLng( 0.456737310000000E+02, -0.121936182000000E+03),\n new google.maps.LatLng( 0.456760860000000E+02, -0.121938106000000E+03),\n new google.maps.LatLng( 0.456867150000000E+02, -0.121936605000000E+03),\n new google.maps.LatLng( 0.456883840000000E+02, -0.121936246000000E+03),\n new google.maps.LatLng( 0.456878810000000E+02, -0.121933245000000E+03),\n new google.maps.LatLng( 0.456885210000000E+02, -0.121932821000000E+03),\n new google.maps.LatLng( 0.456899840000000E+02, -0.121933049000000E+03),\n new google.maps.LatLng( 0.456950130000000E+02, -0.121935691000000E+03),\n new google.maps.LatLng( 0.457012540000000E+02, -0.121941008000000E+03),\n new google.maps.LatLng( 0.457023740000000E+02, -0.121942998000000E+03),\n new google.maps.LatLng( 0.457029230000000E+02, -0.121946750000000E+03),\n new google.maps.LatLng( 0.457045920000000E+02, -0.121949491000000E+03),\n new google.maps.LatLng( 0.457085010000000E+02, -0.121951092000000E+03),\n new google.maps.LatLng( 0.457095750000000E+02, -0.121948676000000E+03),\n new google.maps.LatLng( 0.457096900000000E+02, -0.121937223000000E+03),\n new google.maps.LatLng( 0.457082500000000E+02, -0.121935592000000E+03),\n new google.maps.LatLng( 0.457064660000000E+02, -0.121929850000000E+03),\n new google.maps.LatLng( 0.457072890000000E+02, -0.121925804000000E+03),\n new google.maps.LatLng( 0.457072890000000E+02, -0.121925804000000E+03),\n new google.maps.LatLng( 0.457054370000000E+02, -0.121923455000000E+03),\n new google.maps.LatLng( 0.457024860000000E+02, -0.121914483000000E+03),\n new google.maps.LatLng( 0.457000620000000E+02, -0.121913245000000E+03),\n new google.maps.LatLng( 0.456986220000000E+02, -0.121913506000000E+03),\n new google.maps.LatLng( 0.456976160000000E+02, -0.121912855000000E+03),\n new google.maps.LatLng( 0.456959700000000E+02, -0.121910115000000E+03),\n new google.maps.LatLng( 0.456958320000000E+02, -0.121908321000000E+03),\n new google.maps.LatLng( 0.456984470000000E+02, -0.121905436000000E+03),\n new google.maps.LatLng( 0.456995350000000E+02, -0.121906035000000E+03),\n new google.maps.LatLng( 0.457017310000000E+02, -0.121910471000000E+03),\n new google.maps.LatLng( 0.457038800000000E+02, -0.121912264000000E+03),\n new google.maps.LatLng( 0.457050690000000E+02, -0.121912264000000E+03),\n new google.maps.LatLng( 0.457067830000000E+02, -0.121913111000000E+03),\n new google.maps.LatLng( 0.457146950000000E+02, -0.121920711000000E+03),\n new google.maps.LatLng( 0.457197700000000E+02, -0.121922896000000E+03),\n new google.maps.LatLng( 0.457237240000000E+02, -0.121920251000000E+03),\n new google.maps.LatLng( 0.457265130000000E+02, -0.121919598000000E+03),\n new google.maps.LatLng( 0.457322970000000E+02, -0.121921782000000E+03),\n new google.maps.LatLng( 0.457341260000000E+02, -0.121923512000000E+03),\n new google.maps.LatLng( 0.457371440000000E+02, -0.121925339000000E+03),\n new google.maps.LatLng( 0.457434300000000E+02, -0.121922236000000E+03),\n new google.maps.LatLng( 0.457502550000000E+02, -0.121912864000000E+03),\n new google.maps.LatLng( 0.457525490000000E+02, -0.121908454000000E+03),\n new google.maps.LatLng( 0.457565480000000E+02, -0.121904344000000E+03),\n new google.maps.LatLng( 0.457548020000000E+02, -0.121902090000000E+03),\n new google.maps.LatLng( 0.457510600000000E+02, -0.121898745000000E+03),\n new google.maps.LatLng( 0.457428540000000E+02, -0.121904736000000E+03),\n new google.maps.LatLng( 0.457420540000000E+02, -0.121903463000000E+03),\n new google.maps.LatLng( 0.457417100000000E+02, -0.121899480000000E+03),\n new google.maps.LatLng( 0.457422090000000E+02, -0.121891709000000E+03),\n new google.maps.LatLng( 0.457405640000000E+02, -0.121891744000000E+03),\n new google.maps.LatLng( 0.457387350000000E+02, -0.121893475000000E+03),\n new google.maps.LatLng( 0.457375920000000E+02, -0.121891289000000E+03),\n new google.maps.LatLng( 0.457387770000000E+02, -0.121884040000000E+03),\n new google.maps.LatLng( 0.457385680000000E+02, -0.121877968000000E+03),\n new google.maps.LatLng( 0.457371510000000E+02, -0.121878231000000E+03),\n new google.maps.LatLng( 0.457322130000000E+02, -0.121877681000000E+03),\n new google.maps.LatLng( 0.457268420000000E+02, -0.121874462000000E+03),\n new google.maps.LatLng( 0.457240090000000E+02, -0.121870347000000E+03),\n new google.maps.LatLng( 0.457219090000000E+02, -0.121865449000000E+03),\n new google.maps.LatLng( 0.457154630000000E+02, -0.121862572000000E+03),\n new google.maps.LatLng( 0.457169070000000E+02, -0.121854806000000E+03),\n new google.maps.LatLng( 0.457186760000000E+02, -0.121854427000000E+03),\n new google.maps.LatLng( 0.457186760000000E+02, -0.121854427000000E+03),\n new google.maps.LatLng( 0.457170910000000E+02, -0.121852750000000E+03),\n new google.maps.LatLng( 0.457162920000000E+02, -0.121848442000000E+03),\n new google.maps.LatLng( 0.457138010000000E+02, -0.121847168000000E+03),\n new google.maps.LatLng( 0.457112630000000E+02, -0.121847003000000E+03),\n new google.maps.LatLng( 0.457095260000000E+02, -0.121845175000000E+03),\n new google.maps.LatLng( 0.457092980000000E+02, -0.121843283000000E+03),\n new google.maps.LatLng( 0.457100770000000E+02, -0.121838030000000E+03),\n new google.maps.LatLng( 0.457104880000000E+02, -0.121837084000000E+03),\n new google.maps.LatLng( 0.457125920000000E+02, -0.121835714000000E+03),\n new google.maps.LatLng( 0.457137350000000E+02, -0.121834279000000E+03),\n new google.maps.LatLng( 0.457151990000000E+02, -0.121829091000000E+03),\n new google.maps.LatLng( 0.457172110000000E+02, -0.121813590000000E+03),\n new google.maps.LatLng( 0.457162730000000E+02, -0.121803539000000E+03),\n new google.maps.LatLng( 0.457163370000000E+02, -0.121792203000000E+03),\n new google.maps.LatLng( 0.457175970000000E+02, -0.121792116000000E+03),\n new google.maps.LatLng( 0.457272900000000E+02, -0.121794462000000E+03),\n new google.maps.LatLng( 0.457304450000000E+02, -0.121796811000000E+03),\n new google.maps.LatLng( 0.457434540000000E+02, -0.121813523000000E+03),\n new google.maps.LatLng( 0.457442540000000E+02, -0.121813817000000E+03),\n new google.maps.LatLng( 0.457466770000000E+02, -0.121812282000000E+03),\n new google.maps.LatLng( 0.457513440000000E+02, -0.121814244000000E+03),\n new google.maps.LatLng( 0.457537900000000E+02, -0.121817510000000E+03),\n new google.maps.LatLng( 0.457541090000000E+02, -0.121822440000000E+03),\n new google.maps.LatLng( 0.457559370000000E+02, -0.121826491000000E+03),\n new google.maps.LatLng( 0.457570800000000E+02, -0.121828026000000E+03),\n new google.maps.LatLng( 0.457611030000000E+02, -0.121831064000000E+03),\n new google.maps.LatLng( 0.457643040000000E+02, -0.121825382000000E+03),\n new google.maps.LatLng( 0.457667670000000E+02, -0.121822355000000E+03),\n new google.maps.LatLng( 0.457667670000000E+02, -0.121822355000000E+03),\n new google.maps.LatLng( 0.457683100000000E+02, -0.121820074000000E+03),\n new google.maps.LatLng( 0.457690010000000E+02, -0.121814072000000E+03),\n new google.maps.LatLng( 0.457691790000000E+02, -0.121802499000000E+03),\n new google.maps.LatLng( 0.457677100000000E+02, -0.121792949000000E+03),\n new google.maps.LatLng( 0.457717330000000E+02, -0.121777730000000E+03),\n new google.maps.LatLng( 0.457702650000000E+02, -0.121765157000000E+03),\n new google.maps.LatLng( 0.457710220000000E+02, -0.121760013000000E+03),\n new google.maps.LatLng( 0.457715510000000E+02, -0.121757774000000E+03),\n new google.maps.LatLng( 0.457774080000000E+02, -0.121747506000000E+03),\n new google.maps.LatLng( 0.457793010000000E+02, -0.121745801000000E+03),\n new google.maps.LatLng( 0.457803390000000E+02, -0.121745513000000E+03),\n new google.maps.LatLng( 0.457812770000000E+02, -0.121746326000000E+03),\n new google.maps.LatLng( 0.457825490000000E+02, -0.121746132000000E+03),\n new google.maps.LatLng( 0.457845220000000E+02, -0.121741099000000E+03),\n new google.maps.LatLng( 0.457842170000000E+02, -0.121735611000000E+03),\n new google.maps.LatLng( 0.456498970000000E+02, -0.121937900000000E+03),\n new google.maps.LatLng( 0.456506420000000E+02, -0.121941529000000E+03),\n new google.maps.LatLng( 0.456504140000000E+02, -0.121943712000000E+03),\n new google.maps.LatLng( 0.456478350000000E+02, -0.121949788000000E+03),\n new google.maps.LatLng( 0.456468740000000E+02, -0.121945677000000E+03),\n new google.maps.LatLng( 0.456482880000000E+02, -0.121939084000000E+03),\n new google.maps.LatLng( 0.456494540000000E+02, -0.121937324000000E+03),\n new google.maps.LatLng( 0.456498970000000E+02, -0.121937900000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475044020000000E+02, -0.122203994000000E+03),\n new google.maps.LatLng( 0.475012220000000E+02, -0.122198232000000E+03),\n new google.maps.LatLng( 0.475014220000000E+02, -0.122196732000000E+03),\n new google.maps.LatLng( 0.474925220000000E+02, -0.122192132000000E+03),\n new google.maps.LatLng( 0.474901220000000E+02, -0.122192632000000E+03),\n new google.maps.LatLng( 0.474859220000000E+02, -0.122195132000000E+03),\n new google.maps.LatLng( 0.474859220000000E+02, -0.122195132000000E+03),\n new google.maps.LatLng( 0.474839220000000E+02, -0.122196632000000E+03),\n new google.maps.LatLng( 0.474789220000000E+02, -0.122189632000000E+03),\n new google.maps.LatLng( 0.474767220000000E+02, -0.122184432000000E+03),\n new google.maps.LatLng( 0.474772220000000E+02, -0.122180932000000E+03),\n new google.maps.LatLng( 0.474769220000000E+02, -0.122179231000000E+03),\n new google.maps.LatLng( 0.474769220000000E+02, -0.122179231000000E+03),\n new google.maps.LatLng( 0.474734580000000E+02, -0.122171813000000E+03),\n new google.maps.LatLng( 0.474704140000000E+02, -0.122174391000000E+03),\n new google.maps.LatLng( 0.474712760000000E+02, -0.122178084000000E+03),\n new google.maps.LatLng( 0.474710020000000E+02, -0.122179152000000E+03),\n new google.maps.LatLng( 0.474651220000000E+02, -0.122185831000000E+03),\n new google.maps.LatLng( 0.474266220000000E+02, -0.122186231000000E+03),\n new google.maps.LatLng( 0.474266220000000E+02, -0.122186231000000E+03),\n new google.maps.LatLng( 0.474266220000000E+02, -0.122197031000000E+03),\n new google.maps.LatLng( 0.474230220000000E+02, -0.122196931000000E+03),\n new google.maps.LatLng( 0.474227900000000E+02, -0.122221768000000E+03),\n new google.maps.LatLng( 0.474284220000000E+02, -0.122222032000000E+03),\n new google.maps.LatLng( 0.474380510000000E+02, -0.122218616000000E+03),\n new google.maps.LatLng( 0.474380510000000E+02, -0.122218616000000E+03),\n new google.maps.LatLng( 0.474408980000000E+02, -0.122217766000000E+03),\n new google.maps.LatLng( 0.474410220000000E+02, -0.122217732000000E+03),\n new google.maps.LatLng( 0.474409220000000E+02, -0.122220032000000E+03),\n new google.maps.LatLng( 0.474412220000000E+02, -0.122233132000000E+03),\n new google.maps.LatLng( 0.474409220000000E+02, -0.122241032000000E+03),\n new google.maps.LatLng( 0.474409220000000E+02, -0.122241032000000E+03),\n new google.maps.LatLng( 0.474482220000000E+02, -0.122241032000000E+03),\n new google.maps.LatLng( 0.474485490000000E+02, -0.122235870000000E+03),\n new google.maps.LatLng( 0.474546140000000E+02, -0.122234314000000E+03),\n new google.maps.LatLng( 0.474552550000000E+02, -0.122236007000000E+03),\n new google.maps.LatLng( 0.474544210000000E+02, -0.122240932000000E+03),\n new google.maps.LatLng( 0.474629210000000E+02, -0.122240733000000E+03),\n new google.maps.LatLng( 0.474652210000000E+02, -0.122241433000000E+03),\n new google.maps.LatLng( 0.474663210000000E+02, -0.122242533000000E+03),\n new google.maps.LatLng( 0.474645210000000E+02, -0.122246733000000E+03),\n new google.maps.LatLng( 0.474652210000000E+02, -0.122248733000000E+03),\n new google.maps.LatLng( 0.474652210000000E+02, -0.122248733000000E+03),\n new google.maps.LatLng( 0.474666210000000E+02, -0.122246333000000E+03),\n new google.maps.LatLng( 0.474668210000000E+02, -0.122243533000000E+03),\n new google.maps.LatLng( 0.474690210000000E+02, -0.122246433000000E+03),\n new google.maps.LatLng( 0.474685210000000E+02, -0.122248233000000E+03),\n new google.maps.LatLng( 0.474665210000000E+02, -0.122250233000000E+03),\n new google.maps.LatLng( 0.474671210000000E+02, -0.122251633000000E+03),\n new google.maps.LatLng( 0.474725210000000E+02, -0.122253433000000E+03),\n new google.maps.LatLng( 0.474748210000000E+02, -0.122252033000000E+03),\n new google.maps.LatLng( 0.474748210000000E+02, -0.122252033000000E+03),\n new google.maps.LatLng( 0.474749210000000E+02, -0.122248533000000E+03),\n new google.maps.LatLng( 0.474780210000000E+02, -0.122242633000000E+03),\n new google.maps.LatLng( 0.474790210000000E+02, -0.122237933000000E+03),\n new google.maps.LatLng( 0.474781210000000E+02, -0.122233833000000E+03),\n new google.maps.LatLng( 0.474765210000000E+02, -0.122231232000000E+03),\n new google.maps.LatLng( 0.474749220000000E+02, -0.122222732000000E+03),\n new google.maps.LatLng( 0.474753060000000E+02, -0.122222770000000E+03),\n new google.maps.LatLng( 0.474752850000000E+02, -0.122224362000000E+03),\n new google.maps.LatLng( 0.474763090000000E+02, -0.122227496000000E+03),\n new google.maps.LatLng( 0.474797090000000E+02, -0.122233163000000E+03),\n new google.maps.LatLng( 0.474827210000000E+02, -0.122231533000000E+03),\n new google.maps.LatLng( 0.474826210000000E+02, -0.122230833000000E+03),\n new google.maps.LatLng( 0.474845210000000E+02, -0.122227633000000E+03),\n new google.maps.LatLng( 0.474909210000000E+02, -0.122225933000000E+03),\n new google.maps.LatLng( 0.474909210000000E+02, -0.122223232000000E+03),\n new google.maps.LatLng( 0.474942400000000E+02, -0.122219512000000E+03),\n new google.maps.LatLng( 0.474981210000000E+02, -0.122220433000000E+03),\n new google.maps.LatLng( 0.475003210000000E+02, -0.122218633000000E+03),\n new google.maps.LatLng( 0.475003210000000E+02, -0.122218633000000E+03),\n new google.maps.LatLng( 0.475003210000000E+02, -0.122216232000000E+03),\n new google.maps.LatLng( 0.475003210000000E+02, -0.122216232000000E+03),\n new google.maps.LatLng( 0.475009220000000E+02, -0.122211032000000E+03),\n new google.maps.LatLng( 0.475044020000000E+02, -0.122203994000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.474632380000000E+02, -0.123114049000000E+03),\n new google.maps.LatLng( 0.474600390000000E+02, -0.123111216000000E+03),\n new google.maps.LatLng( 0.474552400000000E+02, -0.123110066000000E+03),\n new google.maps.LatLng( 0.474501890000000E+02, -0.123111341000000E+03),\n new google.maps.LatLng( 0.474418210000000E+02, -0.123116589000000E+03),\n new google.maps.LatLng( 0.474375920000000E+02, -0.123119953000000E+03),\n new google.maps.LatLng( 0.474338890000000E+02, -0.123120185000000E+03),\n new google.maps.LatLng( 0.474258650000000E+02, -0.123128047000000E+03),\n new google.maps.LatLng( 0.474226200000000E+02, -0.123130104000000E+03),\n new google.maps.LatLng( 0.474203120000000E+02, -0.123131050000000E+03),\n new google.maps.LatLng( 0.474167240000000E+02, -0.123131188000000E+03),\n new google.maps.LatLng( 0.474134110000000E+02, -0.123133549000000E+03),\n new google.maps.LatLng( 0.474080840000000E+02, -0.123138498000000E+03),\n new google.maps.LatLng( 0.474004630000000E+02, -0.123142214000000E+03),\n new google.maps.LatLng( 0.473988200000000E+02, -0.123142083000000E+03),\n new google.maps.LatLng( 0.473962790000000E+02, -0.123143046000000E+03),\n new google.maps.LatLng( 0.473942950000000E+02, -0.123144160000000E+03),\n new google.maps.LatLng( 0.473938290000000E+02, -0.123144911000000E+03),\n new google.maps.LatLng( 0.473938290000000E+02, -0.123144911000000E+03),\n new google.maps.LatLng( 0.473904740000000E+02, -0.123145121000000E+03),\n new google.maps.LatLng( 0.473847910000000E+02, -0.123147621000000E+03),\n new google.maps.LatLng( 0.473767360000000E+02, -0.123152428000000E+03),\n new google.maps.LatLng( 0.473745920000000E+02, -0.123154316000000E+03),\n new google.maps.LatLng( 0.473745950000000E+02, -0.123164456000000E+03),\n new google.maps.LatLng( 0.473709420000000E+02, -0.123164037000000E+03),\n new google.maps.LatLng( 0.473722340000000E+02, -0.123167303000000E+03),\n new google.maps.LatLng( 0.473739710000000E+02, -0.123169758000000E+03),\n new google.maps.LatLng( 0.473751810000000E+02, -0.123170161000000E+03),\n new google.maps.LatLng( 0.473767180000000E+02, -0.123176049000000E+03),\n new google.maps.LatLng( 0.473771530000000E+02, -0.123180961000000E+03),\n new google.maps.LatLng( 0.473748140000000E+02, -0.123185335000000E+03),\n new google.maps.LatLng( 0.473695390000000E+02, -0.123192838000000E+03),\n new google.maps.LatLng( 0.473579730000000E+02, -0.123200976000000E+03),\n new google.maps.LatLng( 0.473562590000000E+02, -0.123201245000000E+03),\n new google.maps.LatLng( 0.473530360000000E+02, -0.123203262000000E+03),\n new google.maps.LatLng( 0.473488950000000E+02, -0.123208098000000E+03),\n new google.maps.LatLng( 0.473467940000000E+02, -0.123215770000000E+03),\n new google.maps.LatLng( 0.473463110000000E+02, -0.123227573000000E+03),\n new google.maps.LatLng( 0.473466300000000E+02, -0.123231037000000E+03),\n new google.maps.LatLng( 0.473466300000000E+02, -0.123231037000000E+03),\n new google.maps.LatLng( 0.473489150000000E+02, -0.123231039000000E+03),\n new google.maps.LatLng( 0.473509490000000E+02, -0.123231747000000E+03),\n new google.maps.LatLng( 0.473549480000000E+02, -0.123234542000000E+03),\n new google.maps.LatLng( 0.473567290000000E+02, -0.123237267000000E+03),\n new google.maps.LatLng( 0.473610480000000E+02, -0.123239491000000E+03),\n new google.maps.LatLng( 0.473619400000000E+02, -0.123238584000000E+03),\n new google.maps.LatLng( 0.473628100000000E+02, -0.123235188000000E+03),\n new google.maps.LatLng( 0.473621940000000E+02, -0.123231722000000E+03),\n new google.maps.LatLng( 0.473624690000000E+02, -0.123229469000000E+03),\n new google.maps.LatLng( 0.473677030000000E+02, -0.123228296000000E+03),\n new google.maps.LatLng( 0.473688920000000E+02, -0.123228633000000E+03),\n new google.maps.LatLng( 0.473727780000000E+02, -0.123225911000000E+03),\n new google.maps.LatLng( 0.473768980000000E+02, -0.123216997000000E+03),\n new google.maps.LatLng( 0.473799160000000E+02, -0.123212086000000E+03),\n new google.maps.LatLng( 0.473847160000000E+02, -0.123210641000000E+03),\n new google.maps.LatLng( 0.473863380000000E+02, -0.123213334000000E+03),\n new google.maps.LatLng( 0.473889670000000E+02, -0.123212561000000E+03),\n new google.maps.LatLng( 0.473901330000000E+02, -0.123210307000000E+03),\n new google.maps.LatLng( 0.473900190000000E+02, -0.123208927000000E+03),\n new google.maps.LatLng( 0.473914140000000E+02, -0.123204485000000E+03),\n new google.maps.LatLng( 0.473974710000000E+02, -0.123201659000000E+03),\n new google.maps.LatLng( 0.473988190000000E+02, -0.123201693000000E+03),\n new google.maps.LatLng( 0.474055160000000E+02, -0.123204691000000E+03),\n new google.maps.LatLng( 0.474060640000000E+02, -0.123207015000000E+03),\n new google.maps.LatLng( 0.474059490000000E+02, -0.123209237000000E+03),\n new google.maps.LatLng( 0.474046910000000E+02, -0.123212637000000E+03),\n new google.maps.LatLng( 0.474025420000000E+02, -0.123215564000000E+03),\n new google.maps.LatLng( 0.474014910000000E+02, -0.123216540000000E+03),\n new google.maps.LatLng( 0.473956850000000E+02, -0.123218220000000E+03),\n new google.maps.LatLng( 0.473933300000000E+02, -0.123222897000000E+03),\n new google.maps.LatLng( 0.473981950000000E+02, -0.123229396000000E+03),\n new google.maps.LatLng( 0.474023750000000E+02, -0.123236603000000E+03),\n new google.maps.LatLng( 0.474029220000000E+02, -0.123238590000000E+03),\n new google.maps.LatLng( 0.474046360000000E+02, -0.123240308000000E+03),\n new google.maps.LatLng( 0.474057780000000E+02, -0.123240781000000E+03),\n new google.maps.LatLng( 0.474087500000000E+02, -0.123239606000000E+03),\n new google.maps.LatLng( 0.474097550000000E+02, -0.123239742000000E+03),\n new google.maps.LatLng( 0.474163590000000E+02, -0.123243418000000E+03),\n new google.maps.LatLng( 0.474203610000000E+02, -0.123237563000000E+03),\n new google.maps.LatLng( 0.474247500000000E+02, -0.123235850000000E+03),\n new google.maps.LatLng( 0.474297560000000E+02, -0.123234676000000E+03),\n new google.maps.LatLng( 0.474304900000000E+02, -0.123233329000000E+03),\n new google.maps.LatLng( 0.474304900000000E+02, -0.123233329000000E+03),\n new google.maps.LatLng( 0.474275170000000E+02, -0.123232451000000E+03),\n new google.maps.LatLng( 0.474228090000000E+02, -0.123232582000000E+03),\n new google.maps.LatLng( 0.474207740000000E+02, -0.123233085000000E+03),\n new google.maps.LatLng( 0.474180090000000E+02, -0.123232746000000E+03),\n new google.maps.LatLng( 0.474170950000000E+02, -0.123231902000000E+03),\n new google.maps.LatLng( 0.474189490000000E+02, -0.123224496000000E+03),\n new google.maps.LatLng( 0.474263550000000E+02, -0.123220695000000E+03),\n new google.maps.LatLng( 0.474384000000000E+02, -0.123218683000000E+03),\n new google.maps.LatLng( 0.474441600000000E+02, -0.123217069000000E+03),\n new google.maps.LatLng( 0.474456690000000E+02, -0.123214543000000E+03),\n new google.maps.LatLng( 0.474476350000000E+02, -0.123213196000000E+03),\n new google.maps.LatLng( 0.474512470000000E+02, -0.123211850000000E+03),\n new google.maps.LatLng( 0.474531660000000E+02, -0.123211851000000E+03),\n new google.maps.LatLng( 0.474568900000000E+02, -0.123217817000000E+03),\n new google.maps.LatLng( 0.474617570000000E+02, -0.123222908000000E+03),\n new google.maps.LatLng( 0.474658470000000E+02, -0.123225911000000E+03),\n new google.maps.LatLng( 0.474690000000000E+02, -0.123230666000000E+03),\n new google.maps.LatLng( 0.474717860000000E+02, -0.123236635000000E+03),\n new google.maps.LatLng( 0.474740440000000E+02, -0.123244794000000E+03),\n new google.maps.LatLng( 0.474754140000000E+02, -0.123247459000000E+03),\n new google.maps.LatLng( 0.474761910000000E+02, -0.123247965000000E+03),\n new google.maps.LatLng( 0.474855850000000E+02, -0.123247268000000E+03),\n new google.maps.LatLng( 0.474864090000000E+02, -0.123244268000000E+03),\n new google.maps.LatLng( 0.474884210000000E+02, -0.123243326000000E+03),\n new google.maps.LatLng( 0.474900660000000E+02, -0.123243496000000E+03),\n new google.maps.LatLng( 0.474953670000000E+02, -0.123256344000000E+03),\n new google.maps.LatLng( 0.474955570000000E+02, -0.123275027000000E+03),\n new google.maps.LatLng( 0.474920190000000E+02, -0.123288922000000E+03),\n new google.maps.LatLng( 0.474927050000000E+02, -0.123294958000000E+03),\n new google.maps.LatLng( 0.474957230000000E+02, -0.123303725000000E+03),\n new google.maps.LatLng( 0.474989690000000E+02, -0.123307097000000E+03),\n new google.maps.LatLng( 0.475021300000000E+02, -0.123312560000000E+03),\n new google.maps.LatLng( 0.475003240000000E+02, -0.123317585000000E+03),\n new google.maps.LatLng( 0.474948090000000E+02, -0.123315899000000E+03),\n new google.maps.LatLng( 0.474925240000000E+02, -0.123314314000000E+03),\n new google.maps.LatLng( 0.474882040000000E+02, -0.123310065000000E+03),\n new google.maps.LatLng( 0.474859870000000E+02, -0.123306761000000E+03),\n new google.maps.LatLng( 0.474859870000000E+02, -0.123306761000000E+03),\n new google.maps.LatLng( 0.474818960000000E+02, -0.123312931000000E+03),\n new google.maps.LatLng( 0.474798620000000E+02, -0.123318561000000E+03),\n new google.maps.LatLng( 0.474765470000000E+02, -0.123332045000000E+03),\n new google.maps.LatLng( 0.474749900000000E+02, -0.123344147000000E+03),\n new google.maps.LatLng( 0.474731830000000E+02, -0.123349808000000E+03),\n new google.maps.LatLng( 0.474699820000000E+02, -0.123352637000000E+03),\n new google.maps.LatLng( 0.474696130000000E+02, -0.123363018000000E+03),\n new google.maps.LatLng( 0.474713690000000E+02, -0.123381240000000E+03),\n new google.maps.LatLng( 0.474708670000000E+02, -0.123384341000000E+03),\n new google.maps.LatLng( 0.474694040000000E+02, -0.123385051000000E+03),\n new google.maps.LatLng( 0.474689020000000E+02, -0.123387613000000E+03),\n new google.maps.LatLng( 0.474692480000000E+02, -0.123392938000000E+03),\n new google.maps.LatLng( 0.474714430000000E+02, -0.123395565000000E+03),\n new google.maps.LatLng( 0.474695490000000E+02, -0.123405544000000E+03),\n new google.maps.LatLng( 0.474691840000000E+02, -0.123406690000000E+03),\n new google.maps.LatLng( 0.474634320000000E+02, -0.123411721000000E+03),\n new google.maps.LatLng( 0.474639960000000E+02, -0.123408276000000E+03),\n new google.maps.LatLng( 0.474663260000000E+02, -0.123405714000000E+03),\n new google.maps.LatLng( 0.474667640000000E+02, -0.123402293000000E+03),\n new google.maps.LatLng( 0.474582790000000E+02, -0.123394531000000E+03),\n new google.maps.LatLng( 0.474538670000000E+02, -0.123392985000000E+03),\n new google.maps.LatLng( 0.474525870000000E+02, -0.123392009000000E+03),\n new google.maps.LatLng( 0.474498200000000E+02, -0.123388742000000E+03),\n new google.maps.LatLng( 0.474489720000000E+02, -0.123383285000000E+03),\n new google.maps.LatLng( 0.474428670000000E+02, -0.123374683000000E+03),\n new google.maps.LatLng( 0.474381890000000E+02, -0.123358845000000E+03),\n new google.maps.LatLng( 0.474372980000000E+02, -0.123356250000000E+03),\n new google.maps.LatLng( 0.474369780000000E+02, -0.123356317000000E+03),\n new google.maps.LatLng( 0.474373180000000E+02, -0.123364705000000E+03),\n new google.maps.LatLng( 0.474386630000000E+02, -0.123370771000000E+03),\n new google.maps.LatLng( 0.474414500000000E+02, -0.123377330000000E+03),\n new google.maps.LatLng( 0.474436230000000E+02, -0.123380730000000E+03),\n new google.maps.LatLng( 0.474490460000000E+02, -0.123396627000000E+03),\n new google.maps.LatLng( 0.474498260000000E+02, -0.123409565000000E+03),\n new google.maps.LatLng( 0.474514050000000E+02, -0.123419504000000E+03),\n new google.maps.LatLng( 0.474539430000000E+02, -0.123430353000000E+03),\n new google.maps.LatLng( 0.474579660000000E+02, -0.123441844000000E+03),\n new google.maps.LatLng( 0.474609370000000E+02, -0.123445720000000E+03),\n new google.maps.LatLng( 0.474625830000000E+02, -0.123446597000000E+03),\n new google.maps.LatLng( 0.474710390000000E+02, -0.123444677000000E+03),\n new google.maps.LatLng( 0.474720220000000E+02, -0.123443329000000E+03),\n new google.maps.LatLng( 0.474735070000000E+02, -0.123442621000000E+03),\n new google.maps.LatLng( 0.474811180000000E+02, -0.123441475000000E+03),\n new google.maps.LatLng( 0.474834260000000E+02, -0.123443262000000E+03),\n new google.maps.LatLng( 0.474825800000000E+02, -0.123448286000000E+03),\n new google.maps.LatLng( 0.474875620000000E+02, -0.123454458000000E+03),\n new google.maps.LatLng( 0.474876300000000E+02, -0.123457627000000E+03),\n new google.maps.LatLng( 0.474911480000000E+02, -0.123463495000000E+03),\n new google.maps.LatLng( 0.474921310000000E+02, -0.123464575000000E+03),\n new google.maps.LatLng( 0.474926790000000E+02, -0.123464575000000E+03),\n new google.maps.LatLng( 0.474932050000000E+02, -0.123463800000000E+03),\n new google.maps.LatLng( 0.474958780000000E+02, -0.123463498000000E+03),\n new google.maps.LatLng( 0.474993420000000E+02, -0.123466703000000E+03),\n new google.maps.LatLng( 0.475032430000000E+02, -0.123472371000000E+03),\n new google.maps.LatLng( 0.475054350000000E+02, -0.123478983000000E+03),\n new google.maps.LatLng( 0.475122190000000E+02, -0.123489919000000E+03),\n new google.maps.LatLng( 0.475201230000000E+02, -0.123498225000000E+03),\n new google.maps.LatLng( 0.475200080000000E+02, -0.123341043000000E+03),\n new google.maps.LatLng( 0.475042630000000E+02, -0.123341582000000E+03),\n new google.maps.LatLng( 0.475040150000000E+02, -0.123315048000000E+03),\n new google.maps.LatLng( 0.475104080000000E+02, -0.123315226000000E+03),\n new google.maps.LatLng( 0.475104010000000E+02, -0.123310070000000E+03),\n new google.maps.LatLng( 0.475138730000000E+02, -0.123308472000000E+03),\n new google.maps.LatLng( 0.475170740000000E+02, -0.123304114000000E+03),\n new google.maps.LatLng( 0.475192020000000E+02, -0.123296985000000E+03),\n new google.maps.LatLng( 0.475210710000000E+02, -0.123295789000000E+03),\n new google.maps.LatLng( 0.475250820000000E+02, -0.123297755000000E+03),\n new google.maps.LatLng( 0.475280250000000E+02, -0.123300514000000E+03),\n new google.maps.LatLng( 0.475304310000000E+02, -0.123301698000000E+03),\n new google.maps.LatLng( 0.475314990000000E+02, -0.123300905000000E+03),\n new google.maps.LatLng( 0.475336320000000E+02, -0.123296938000000E+03),\n new google.maps.LatLng( 0.475352330000000E+02, -0.123295351000000E+03),\n new google.maps.LatLng( 0.475395070000000E+02, -0.123294558000000E+03),\n new google.maps.LatLng( 0.475429830000000E+02, -0.123295730000000E+03),\n new google.maps.LatLng( 0.475456580000000E+02, -0.123298489000000E+03),\n new google.maps.LatLng( 0.475456660000000E+02, -0.123304031000000E+03),\n new google.maps.LatLng( 0.475485770000000E+02, -0.123307974000000E+03),\n new google.maps.LatLng( 0.475493840000000E+02, -0.123311929000000E+03),\n new google.maps.LatLng( 0.475501980000000E+02, -0.123321024000000E+03),\n new google.maps.LatLng( 0.475499400000000E+02, -0.123327750000000E+03),\n new google.maps.LatLng( 0.475510100000000E+02, -0.123328531000000E+03),\n new google.maps.LatLng( 0.475536810000000E+02, -0.123327738000000E+03),\n new google.maps.LatLng( 0.475563510000000E+02, -0.123326151000000E+03),\n new google.maps.LatLng( 0.475574140000000E+02, -0.123322184000000E+03),\n new google.maps.LatLng( 0.475640860000000E+02, -0.123315837000000E+03),\n new google.maps.LatLng( 0.475648890000000E+02, -0.123316630000000E+03),\n new google.maps.LatLng( 0.475664990000000E+02, -0.123321770000000E+03),\n new google.maps.LatLng( 0.475665050000000E+02, -0.123326115000000E+03),\n new google.maps.LatLng( 0.475707860000000E+02, -0.123330449000000E+03),\n new google.maps.LatLng( 0.475739950000000E+02, -0.123332427000000E+03),\n new google.maps.LatLng( 0.475755940000000E+02, -0.123328863000000E+03),\n new google.maps.LatLng( 0.475766570000000E+02, -0.123324505000000E+03),\n new google.maps.LatLng( 0.475827940000000E+02, -0.123318158000000E+03),\n new google.maps.LatLng( 0.475878280000000E+02, -0.123311029000000E+03),\n new google.maps.LatLng( 0.475888930000000E+02, -0.123307465000000E+03),\n new google.maps.LatLng( 0.475888860000000E+02, -0.123302314000000E+03),\n new google.maps.LatLng( 0.475915520000000E+02, -0.123297956000000E+03),\n new google.maps.LatLng( 0.475920830000000E+02, -0.123295185000000E+03),\n new google.maps.LatLng( 0.475912770000000E+02, -0.123292426000000E+03),\n new google.maps.LatLng( 0.475936750000000E+02, -0.123287275000000E+03),\n new google.maps.LatLng( 0.475931370000000E+02, -0.123284114000000E+03),\n new google.maps.LatLng( 0.475909960000000E+02, -0.123281745000000E+03),\n new google.maps.LatLng( 0.475901870000000E+02, -0.123276606000000E+03),\n new google.maps.LatLng( 0.475917830000000E+02, -0.123271064000000E+03),\n new google.maps.LatLng( 0.475956640000000E+02, -0.123264921000000E+03),\n new google.maps.LatLng( 0.475949770000000E+02, -0.123263402000000E+03),\n new google.maps.LatLng( 0.475884150000000E+02, -0.123256348000000E+03),\n new google.maps.LatLng( 0.475862660000000E+02, -0.123254965000000E+03),\n new google.maps.LatLng( 0.475805300000000E+02, -0.123245891000000E+03),\n new google.maps.LatLng( 0.475801440000000E+02, -0.123240520000000E+03),\n new google.maps.LatLng( 0.475825000000000E+02, -0.123235456000000E+03),\n new google.maps.LatLng( 0.475828670000000E+02, -0.123232551000000E+03),\n new google.maps.LatLng( 0.475814790000000E+02, -0.123216674000000E+03),\n new google.maps.LatLng( 0.475822110000000E+02, -0.123211473000000E+03),\n new google.maps.LatLng( 0.475807950000000E+02, -0.123207959000000E+03),\n new google.maps.LatLng( 0.475806580000000E+02, -0.123205662000000E+03),\n new google.maps.LatLng( 0.475839270000000E+02, -0.123203603000000E+03),\n new google.maps.LatLng( 0.475857560000000E+02, -0.123198266000000E+03),\n new google.maps.LatLng( 0.475853440000000E+02, -0.123196780000000E+03),\n new google.maps.LatLng( 0.475856420000000E+02, -0.123195125000000E+03),\n new google.maps.LatLng( 0.475880640000000E+02, -0.123187828000000E+03),\n new google.maps.LatLng( 0.475902580000000E+02, -0.123185970000000E+03),\n new google.maps.LatLng( 0.475914470000000E+02, -0.123186679000000E+03),\n new google.maps.LatLng( 0.475918580000000E+02, -0.123186409000000E+03),\n new google.maps.LatLng( 0.475932290000000E+02, -0.123183031000000E+03),\n new google.maps.LatLng( 0.475938690000000E+02, -0.123176510000000E+03),\n new google.maps.LatLng( 0.475964730000000E+02, -0.123167521000000E+03),\n new google.maps.LatLng( 0.475970210000000E+02, -0.123163534000000E+03),\n new google.maps.LatLng( 0.475974080000000E+02, -0.123157250000000E+03),\n new google.maps.LatLng( 0.475965380000000E+02, -0.123151777000000E+03),\n new google.maps.LatLng( 0.475980670000000E+02, -0.123146978000000E+03),\n new google.maps.LatLng( 0.475993930000000E+02, -0.123146233000000E+03),\n new google.maps.LatLng( 0.476004660000000E+02, -0.123144610000000E+03),\n new google.maps.LatLng( 0.476005790000000E+02, -0.123141536000000E+03),\n new google.maps.LatLng( 0.476001680000000E+02, -0.123140962000000E+03),\n new google.maps.LatLng( 0.475962800000000E+02, -0.123136504000000E+03),\n new google.maps.LatLng( 0.475956150000000E+02, -0.123131775000000E+03),\n new google.maps.LatLng( 0.475935340000000E+02, -0.123124382000000E+03),\n new google.maps.LatLng( 0.475838030000000E+02, -0.123112649000000E+03),\n new google.maps.LatLng( 0.475828700000000E+02, -0.123106412000000E+03),\n new google.maps.LatLng( 0.475783670000000E+02, -0.123106395000000E+03),\n new google.maps.LatLng( 0.475773610000000E+02, -0.123108488000000E+03),\n new google.maps.LatLng( 0.475761000000000E+02, -0.123115208000000E+03),\n new google.maps.LatLng( 0.475774450000000E+02, -0.123122775000000E+03),\n new google.maps.LatLng( 0.475797290000000E+02, -0.123125277000000E+03),\n new google.maps.LatLng( 0.475774690000000E+02, -0.123131423000000E+03),\n new google.maps.LatLng( 0.475770580000000E+02, -0.123132099000000E+03),\n new google.maps.LatLng( 0.475716200000000E+02, -0.123135211000000E+03),\n new google.maps.LatLng( 0.475705460000000E+02, -0.123136529000000E+03),\n new google.maps.LatLng( 0.475683180000000E+02, -0.123143339000000E+03),\n new google.maps.LatLng( 0.475626870000000E+02, -0.123144505000000E+03),\n new google.maps.LatLng( 0.475569290000000E+02, -0.123148224000000E+03),\n new google.maps.LatLng( 0.475573200000000E+02, -0.123154132000000E+03),\n new google.maps.LatLng( 0.475570230000000E+02, -0.123155111000000E+03),\n new google.maps.LatLng( 0.475545100000000E+02, -0.123157881000000E+03),\n new google.maps.LatLng( 0.475521560000000E+02, -0.123158692000000E+03),\n new google.maps.LatLng( 0.475487960000000E+02, -0.123158964000000E+03),\n new google.maps.LatLng( 0.475457110000000E+02, -0.123158426000000E+03),\n new google.maps.LatLng( 0.475388090000000E+02, -0.123160894000000E+03),\n new google.maps.LatLng( 0.475381920000000E+02, -0.123161805000000E+03),\n new google.maps.LatLng( 0.475376680000000E+02, -0.123165484000000E+03),\n new google.maps.LatLng( 0.475367990000000E+02, -0.123167071000000E+03),\n new google.maps.LatLng( 0.475309040000000E+02, -0.123171190000000E+03),\n new google.maps.LatLng( 0.475300810000000E+02, -0.123171089000000E+03),\n new google.maps.LatLng( 0.475290070000000E+02, -0.123170516000000E+03),\n new google.maps.LatLng( 0.475311310000000E+02, -0.123167107000000E+03),\n new google.maps.LatLng( 0.475351080000000E+02, -0.123164405000000E+03),\n new google.maps.LatLng( 0.475354720000000E+02, -0.123158634000000E+03),\n new google.maps.LatLng( 0.475347860000000E+02, -0.123157656000000E+03),\n new google.maps.LatLng( 0.475302600000000E+02, -0.123155228000000E+03),\n new google.maps.LatLng( 0.475292770000000E+02, -0.123152529000000E+03),\n new google.maps.LatLng( 0.475274470000000E+02, -0.123149629000000E+03),\n new google.maps.LatLng( 0.475260070000000E+02, -0.123149461000000E+03),\n new google.maps.LatLng( 0.475213460000000E+02, -0.123152838000000E+03),\n new google.maps.LatLng( 0.475207300000000E+02, -0.123156955000000E+03),\n new google.maps.LatLng( 0.475195190000000E+02, -0.123158609000000E+03),\n new google.maps.LatLng( 0.475158400000000E+02, -0.123159319000000E+03),\n new google.maps.LatLng( 0.475151080000000E+02, -0.123158712000000E+03),\n new google.maps.LatLng( 0.475157020000000E+02, -0.123156283000000E+03),\n new google.maps.LatLng( 0.475149920000000E+02, -0.123153214000000E+03),\n new google.maps.LatLng( 0.475132550000000E+02, -0.123150954000000E+03),\n new google.maps.LatLng( 0.475106500000000E+02, -0.123151765000000E+03),\n new google.maps.LatLng( 0.475074990000000E+02, -0.123163439000000E+03),\n new google.maps.LatLng( 0.475042320000000E+02, -0.123173120000000E+03),\n new google.maps.LatLng( 0.475039590000000E+02, -0.123178179000000E+03),\n new google.maps.LatLng( 0.475048050000000E+02, -0.123183238000000E+03),\n new google.maps.LatLng( 0.475045760000000E+02, -0.123184689000000E+03),\n new google.maps.LatLng( 0.475016200000000E+02, -0.123191466000000E+03),\n new google.maps.LatLng( 0.474958000000000E+02, -0.123190579000000E+03),\n new google.maps.LatLng( 0.474887580000000E+02, -0.123190494000000E+03),\n new google.maps.LatLng( 0.474886430000000E+02, -0.123209568000000E+03),\n new google.maps.LatLng( 0.474767960000000E+02, -0.123210902000000E+03),\n new google.maps.LatLng( 0.474714660000000E+02, -0.123210170000000E+03),\n new google.maps.LatLng( 0.474700580000000E+02, -0.123201443000000E+03),\n new google.maps.LatLng( 0.474685500000000E+02, -0.123196792000000E+03),\n new google.maps.LatLng( 0.474666990000000E+02, -0.123193454000000E+03),\n new google.maps.LatLng( 0.474654650000000E+02, -0.123187825000000E+03),\n new google.maps.LatLng( 0.474645740000000E+02, -0.123176906000000E+03),\n new google.maps.LatLng( 0.474699650000000E+02, -0.123159309000000E+03),\n new google.maps.LatLng( 0.474703970000000E+02, -0.123151388000000E+03),\n new google.maps.LatLng( 0.474718100000000E+02, -0.123141478000000E+03),\n new google.maps.LatLng( 0.474677830000000E+02, -0.123131134000000E+03),\n new google.maps.LatLng( 0.474677830000000E+02, -0.123131134000000E+03),\n new google.maps.LatLng( 0.474650630000000E+02, -0.123120994000000E+03),\n new google.maps.LatLng( 0.474612470000000E+02, -0.123118428000000E+03),\n new google.maps.LatLng( 0.474606070000000E+02, -0.123118697000000E+03),\n new google.maps.LatLng( 0.474599210000000E+02, -0.123119977000000E+03),\n new google.maps.LatLng( 0.474595780000000E+02, -0.123119640000000E+03),\n new google.maps.LatLng( 0.474583010000000E+02, -0.123113674000000E+03),\n new google.maps.LatLng( 0.474584390000000E+02, -0.123112124000000E+03),\n new google.maps.LatLng( 0.474598790000000E+02, -0.123112125000000E+03),\n new google.maps.LatLng( 0.474621410000000E+02, -0.123114756000000E+03),\n new google.maps.LatLng( 0.474634430000000E+02, -0.123114637000000E+03),\n new google.maps.LatLng( 0.474632380000000E+02, -0.123114049000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.462398550000000E+02, -0.122890372000000E+03),\n new google.maps.LatLng( 0.462387070000000E+02, -0.122888729000000E+03),\n new google.maps.LatLng( 0.462426060000000E+02, -0.122887403000000E+03),\n new google.maps.LatLng( 0.462443970000000E+02, -0.122887884000000E+03),\n new google.maps.LatLng( 0.462469220000000E+02, -0.122887778000000E+03),\n new google.maps.LatLng( 0.462482800000000E+02, -0.122887060000000E+03),\n new google.maps.LatLng( 0.462498340000000E+02, -0.122885278000000E+03),\n new google.maps.LatLng( 0.462516770000000E+02, -0.122884617000000E+03),\n new google.maps.LatLng( 0.462541590000000E+02, -0.122885109000000E+03),\n new google.maps.LatLng( 0.462575730000000E+02, -0.122887279000000E+03),\n new google.maps.LatLng( 0.462582630000000E+02, -0.122886549000000E+03),\n new google.maps.LatLng( 0.462552950000000E+02, -0.122884405000000E+03),\n new google.maps.LatLng( 0.462530930000000E+02, -0.122883568000000E+03),\n new google.maps.LatLng( 0.462486870000000E+02, -0.122883735000000E+03),\n new google.maps.LatLng( 0.462425140000000E+02, -0.122885471000000E+03),\n new google.maps.LatLng( 0.462439840000000E+02, -0.122882597000000E+03),\n new google.maps.LatLng( 0.462450400000000E+02, -0.122878812000000E+03),\n new google.maps.LatLng( 0.462349800000000E+02, -0.122878821000000E+03),\n new google.maps.LatLng( 0.462339290000000E+02, -0.122879384000000E+03),\n new google.maps.LatLng( 0.462336240000000E+02, -0.122878118000000E+03),\n new google.maps.LatLng( 0.462339520000000E+02, -0.122876223000000E+03),\n new google.maps.LatLng( 0.462357990000000E+02, -0.122874040000000E+03),\n new google.maps.LatLng( 0.462381310000000E+02, -0.122874273000000E+03),\n new google.maps.LatLng( 0.462427260000000E+02, -0.122873356000000E+03),\n new google.maps.LatLng( 0.462455170000000E+02, -0.122869998000000E+03),\n new google.maps.LatLng( 0.462456100000000E+02, -0.122865056000000E+03),\n new google.maps.LatLng( 0.462449270000000E+02, -0.122859421000000E+03),\n new google.maps.LatLng( 0.462450440000000E+02, -0.122852074000000E+03),\n new google.maps.LatLng( 0.462433760000000E+02, -0.122848416000000E+03),\n new google.maps.LatLng( 0.462387820000000E+02, -0.122846733000000E+03),\n new google.maps.LatLng( 0.462352610000000E+02, -0.122847059000000E+03),\n new google.maps.LatLng( 0.462328610000000E+02, -0.122845443000000E+03),\n new google.maps.LatLng( 0.462312160000000E+02, -0.122842972000000E+03),\n new google.maps.LatLng( 0.462282900000000E+02, -0.122843069000000E+03),\n new google.maps.LatLng( 0.462279250000000E+02, -0.122841587000000E+03),\n new google.maps.LatLng( 0.462279250000000E+02, -0.122841587000000E+03),\n new google.maps.LatLng( 0.462245180000000E+02, -0.122842639000000E+03),\n new google.maps.LatLng( 0.462225070000000E+02, -0.122842506000000E+03),\n new google.maps.LatLng( 0.462209290000000E+02, -0.122844317000000E+03),\n new google.maps.LatLng( 0.462220460000000E+02, -0.122853737000000E+03),\n new google.maps.LatLng( 0.462219750000000E+02, -0.122860653000000E+03),\n new google.maps.LatLng( 0.462211970000000E+02, -0.122861640000000E+03),\n new google.maps.LatLng( 0.462202830000000E+02, -0.122861969000000E+03),\n new google.maps.LatLng( 0.462163970000000E+02, -0.122861702000000E+03),\n new google.maps.LatLng( 0.462134500000000E+02, -0.122855278000000E+03),\n new google.maps.LatLng( 0.462173150000000E+02, -0.122851033000000E+03),\n new google.maps.LatLng( 0.462173160000000E+02, -0.122846027000000E+03),\n new google.maps.LatLng( 0.462105750000000E+02, -0.122837825000000E+03),\n new google.maps.LatLng( 0.462086320000000E+02, -0.122837034000000E+03),\n new google.maps.LatLng( 0.462060080000000E+02, -0.122837564000000E+03),\n new google.maps.LatLng( 0.462051380000000E+02, -0.122835584000000E+03),\n new google.maps.LatLng( 0.462060510000000E+02, -0.122831105000000E+03),\n new google.maps.LatLng( 0.462060050000000E+02, -0.122827813000000E+03),\n new google.maps.LatLng( 0.462031020000000E+02, -0.122826265000000E+03),\n new google.maps.LatLng( 0.462016860000000E+02, -0.122817737000000E+03),\n new google.maps.LatLng( 0.462031940000000E+02, -0.122803647000000E+03),\n new google.maps.LatLng( 0.462055020000000E+02, -0.122798016000000E+03),\n new google.maps.LatLng( 0.462028950000000E+02, -0.122793770000000E+03),\n new google.maps.LatLng( 0.462026200000000E+02, -0.122790609000000E+03),\n new google.maps.LatLng( 0.462033280000000E+02, -0.122784616000000E+03),\n new google.maps.LatLng( 0.462036670000000E+02, -0.122773620000000E+03),\n new google.maps.LatLng( 0.462020880000000E+02, -0.122769605000000E+03),\n new google.maps.LatLng( 0.462006020000000E+02, -0.122767762000000E+03),\n new google.maps.LatLng( 0.461998920000000E+02, -0.122764109000000E+03),\n new google.maps.LatLng( 0.461999600000000E+02, -0.122762726000000E+03),\n new google.maps.LatLng( 0.462012160000000E+02, -0.122759893000000E+03),\n new google.maps.LatLng( 0.462014880000000E+02, -0.122747418000000E+03),\n new google.maps.LatLng( 0.462043940000000E+02, -0.122741725000000E+03),\n new google.maps.LatLng( 0.462072300000000E+02, -0.122738009000000E+03),\n new google.maps.LatLng( 0.462101340000000E+02, -0.122736266000000E+03),\n new google.maps.LatLng( 0.462113010000000E+02, -0.122733830000000E+03),\n new google.maps.LatLng( 0.462119420000000E+02, -0.122731460000000E+03),\n new google.maps.LatLng( 0.462112800000000E+02, -0.122729648000000E+03),\n new google.maps.LatLng( 0.462093820000000E+02, -0.122730469000000E+03),\n new google.maps.LatLng( 0.462083980000000E+02, -0.122731884000000E+03),\n new google.maps.LatLng( 0.462081700000000E+02, -0.122731522000000E+03),\n new google.maps.LatLng( 0.462107723170898E+02, -0.122727863561719E+03),\n new google.maps.LatLng( 0.462175450000000E+02, -0.122723001000000E+03),\n new google.maps.LatLng( 0.462190090000000E+02, -0.122721454000000E+03),\n new google.maps.LatLng( 0.462196270000000E+02, -0.122718952000000E+03),\n new google.maps.LatLng( 0.462178660000000E+02, -0.122721651000000E+03),\n new google.maps.LatLng( 0.462129500000000E+02, -0.122723228000000E+03),\n new google.maps.LatLng( 0.462043080000000E+02, -0.122728326000000E+03),\n new google.maps.LatLng( 0.462022960000000E+02, -0.122727369000000E+03),\n new google.maps.LatLng( 0.462016110000000E+02, -0.122725032000000E+03),\n new google.maps.LatLng( 0.462007660000000E+02, -0.122724438000000E+03),\n new google.maps.LatLng( 0.461994400000000E+02, -0.122724767000000E+03),\n new google.maps.LatLng( 0.461958040000000E+02, -0.122728616000000E+03),\n new google.maps.LatLng( 0.461951410000000E+02, -0.122728615000000E+03),\n new google.maps.LatLng( 0.461928710000000E+02, -0.122727407000000E+03),\n new google.maps.LatLng( 0.461907810000000E+02, -0.122724989000000E+03),\n new google.maps.LatLng( 0.461887440000000E+02, -0.122721165000000E+03),\n new google.maps.LatLng( 0.461864090000000E+02, -0.122712806000000E+03),\n new google.maps.LatLng( 0.461844510000000E+02, -0.122711544000000E+03),\n new google.maps.LatLng( 0.461792120000000E+02, -0.122711362000000E+03),\n new google.maps.LatLng( 0.461757310000000E+02, -0.122713796000000E+03),\n new google.maps.LatLng( 0.461736630000000E+02, -0.122716718000000E+03),\n new google.maps.LatLng( 0.461731060000000E+02, -0.122720504000000E+03),\n new google.maps.LatLng( 0.461747520000000E+02, -0.122721459000000E+03),\n new google.maps.LatLng( 0.461753000000000E+02, -0.122723435000000E+03),\n new google.maps.LatLng( 0.461749330000000E+02, -0.122727679000000E+03),\n new google.maps.LatLng( 0.461705420000000E+02, -0.122732645000000E+03),\n new google.maps.LatLng( 0.461708380000000E+02, -0.122735376000000E+03),\n new google.maps.LatLng( 0.461742180000000E+02, -0.122741894000000E+03),\n new google.maps.LatLng( 0.461741950000000E+02, -0.122743375000000E+03),\n new google.maps.LatLng( 0.461727650000000E+02, -0.122745120000000E+03),\n new google.maps.LatLng( 0.461660850000000E+02, -0.122749749000000E+03),\n new google.maps.LatLng( 0.461580840000000E+02, -0.122749894000000E+03),\n new google.maps.LatLng( 0.461569510000000E+02, -0.122748945000000E+03),\n new google.maps.LatLng( 0.461568310000000E+02, -0.122748264000000E+03),\n new google.maps.LatLng( 0.461589100000000E+02, -0.122746242000000E+03),\n new google.maps.LatLng( 0.461581880000000E+02, -0.122744717000000E+03),\n new google.maps.LatLng( 0.461557280000000E+02, -0.122743199000000E+03),\n new google.maps.LatLng( 0.461479280000000E+02, -0.122744663000000E+03),\n new google.maps.LatLng( 0.461472010000000E+02, -0.122745926000000E+03),\n new google.maps.LatLng( 0.461444000000000E+02, -0.122745697000000E+03),\n new google.maps.LatLng( 0.461430840000000E+02, -0.122742984000000E+03),\n new google.maps.LatLng( 0.461429590000000E+02, -0.122740367000000E+03),\n new google.maps.LatLng( 0.461414080000000E+02, -0.122739151000000E+03),\n new google.maps.LatLng( 0.461391810000000E+02, -0.122737761000000E+03),\n new google.maps.LatLng( 0.461335380000000E+02, -0.122738365000000E+03),\n new google.maps.LatLng( 0.461316870000000E+02, -0.122738014000000E+03),\n new google.maps.LatLng( 0.461303280000000E+02, -0.122737410000000E+03),\n new google.maps.LatLng( 0.461286150000000E+02, -0.122735710000000E+03),\n new google.maps.LatLng( 0.461304450000000E+02, -0.122730572000000E+03),\n new google.maps.LatLng( 0.461341730000000E+02, -0.122725479000000E+03),\n new google.maps.LatLng( 0.461351360000000E+02, -0.122723396000000E+03),\n new google.maps.LatLng( 0.461326160000000E+02, -0.122714550000000E+03),\n new google.maps.LatLng( 0.461319250000000E+02, -0.122713891000000E+03),\n new google.maps.LatLng( 0.461314410000000E+02, -0.122714328000000E+03),\n new google.maps.LatLng( 0.461314790000000E+02, -0.122716333000000E+03),\n new google.maps.LatLng( 0.461295980000000E+02, -0.122719647000000E+03),\n new google.maps.LatLng( 0.461262030000000E+02, -0.122718750000000E+03),\n new google.maps.LatLng( 0.461283610000000E+02, -0.122700525000000E+03),\n new google.maps.LatLng( 0.461332970000000E+02, -0.122698831000000E+03),\n new google.maps.LatLng( 0.461351320000000E+02, -0.122699205000000E+03),\n new google.maps.LatLng( 0.461370510000000E+02, -0.122698423000000E+03),\n new google.maps.LatLng( 0.461383890000000E+02, -0.122694614000000E+03),\n new google.maps.LatLng( 0.461376420000000E+02, -0.122692814000000E+03),\n new google.maps.LatLng( 0.461366570000000E+02, -0.122680565000000E+03),\n new google.maps.LatLng( 0.461360750000000E+02, -0.122678392000000E+03),\n new google.maps.LatLng( 0.461312500000000E+02, -0.122666787000000E+03),\n new google.maps.LatLng( 0.461296250000000E+02, -0.122659455000000E+03),\n new google.maps.LatLng( 0.461277680000000E+02, -0.122656759000000E+03),\n new google.maps.LatLng( 0.461289550000000E+02, -0.122649849000000E+03),\n new google.maps.LatLng( 0.461305280000000E+02, -0.122646838000000E+03),\n new google.maps.LatLng( 0.461339190000000E+02, -0.122647292000000E+03),\n new google.maps.LatLng( 0.461345540000000E+02, -0.122651798000000E+03),\n new google.maps.LatLng( 0.461367850000000E+02, -0.122651746000000E+03),\n new google.maps.LatLng( 0.461373850000000E+02, -0.122650863000000E+03),\n new google.maps.LatLng( 0.461340870000000E+02, -0.122637181000000E+03),\n new google.maps.LatLng( 0.461344530000000E+02, -0.122629152000000E+03),\n new google.maps.LatLng( 0.461338720000000E+02, -0.122617741000000E+03),\n new google.maps.LatLng( 0.461334360000000E+02, -0.122616297000000E+03),\n new google.maps.LatLng( 0.461323600000000E+02, -0.122614911000000E+03),\n new google.maps.LatLng( 0.461263930000000E+02, -0.122617437000000E+03),\n new google.maps.LatLng( 0.461243790000000E+02, -0.122618880000000E+03),\n new google.maps.LatLng( 0.461232830000000E+02, -0.122618978000000E+03),\n new google.maps.LatLng( 0.461148040000000E+02, -0.122613710000000E+03),\n new google.maps.LatLng( 0.461104620000000E+02, -0.122610123000000E+03),\n new google.maps.LatLng( 0.461067160000000E+02, -0.122603152000000E+03),\n new google.maps.LatLng( 0.461056410000000E+02, -0.122603513000000E+03),\n new google.maps.LatLng( 0.461037200000000E+02, -0.122606601000000E+03),\n new google.maps.LatLng( 0.460984610000000E+02, -0.122609193000000E+03),\n new google.maps.LatLng( 0.460959930000000E+02, -0.122607712000000E+03),\n new google.maps.LatLng( 0.460923350000000E+02, -0.122606855000000E+03),\n new google.maps.LatLng( 0.460918320000000E+02, -0.122607643000000E+03),\n new google.maps.LatLng( 0.460924250000000E+02, -0.122611554000000E+03),\n new google.maps.LatLng( 0.460921040000000E+02, -0.122612506000000E+03),\n new google.maps.LatLng( 0.460912580000000E+02, -0.122613294000000E+03),\n new google.maps.LatLng( 0.460867690000000E+02, -0.122614810000000E+03),\n new google.maps.LatLng( 0.460782050000000E+02, -0.122613545000000E+03),\n new google.maps.LatLng( 0.460762170000000E+02, -0.122611179000000E+03),\n new google.maps.LatLng( 0.460729020000000E+02, -0.122610749000000E+03),\n new google.maps.LatLng( 0.460706620000000E+02, -0.122611371000000E+03),\n new google.maps.LatLng( 0.460706620000000E+02, -0.122611371000000E+03),\n new google.maps.LatLng( 0.460667520000000E+02, -0.122613108000000E+03),\n new google.maps.LatLng( 0.460645790000000E+02, -0.122615305000000E+03),\n new google.maps.LatLng( 0.460606690000000E+02, -0.122616878000000E+03),\n new google.maps.LatLng( 0.460580870000000E+02, -0.122617171000000E+03),\n new google.maps.LatLng( 0.460560750000000E+02, -0.122618253000000E+03),\n new google.maps.LatLng( 0.460498530000000E+02, -0.122628272000000E+03),\n new google.maps.LatLng( 0.460484610000000E+02, -0.122632410000000E+03),\n new google.maps.LatLng( 0.460479280000000E+02, -0.122634627000000E+03),\n new google.maps.LatLng( 0.460487140000000E+02, -0.122635168000000E+03),\n new google.maps.LatLng( 0.460509760000000E+02, -0.122633983000000E+03),\n new google.maps.LatLng( 0.460565930000000E+02, -0.122634602000000E+03),\n new google.maps.LatLng( 0.460503150000000E+02, -0.122637989000000E+03),\n new google.maps.LatLng( 0.460515970000000E+02, -0.122641436000000E+03),\n new google.maps.LatLng( 0.460507530000000E+02, -0.122647117000000E+03),\n new google.maps.LatLng( 0.460486740000000E+02, -0.122649186000000E+03),\n new google.maps.LatLng( 0.460451550000000E+02, -0.122655328000000E+03),\n new google.maps.LatLng( 0.460448370000000E+02, -0.122661960000000E+03),\n new google.maps.LatLng( 0.460461410000000E+02, -0.122665078000000E+03),\n new google.maps.LatLng( 0.460492270000000E+02, -0.122668557000000E+03),\n new google.maps.LatLng( 0.460498470000000E+02, -0.122676469000000E+03),\n new google.maps.LatLng( 0.460453210000000E+02, -0.122678473000000E+03),\n new google.maps.LatLng( 0.460444520000000E+02, -0.122678309000000E+03),\n new google.maps.LatLng( 0.460439490000000E+02, -0.122677225000000E+03),\n new google.maps.LatLng( 0.460445430000000E+02, -0.122673056000000E+03),\n new google.maps.LatLng( 0.460440390000000E+02, -0.122670988000000E+03),\n new google.maps.LatLng( 0.460413870000000E+02, -0.122668133000000E+03),\n new google.maps.LatLng( 0.460398320000000E+02, -0.122666984000000E+03),\n new google.maps.LatLng( 0.460386440000000E+02, -0.122666722000000E+03),\n new google.maps.LatLng( 0.460380490000000E+02, -0.122667904000000E+03),\n new google.maps.LatLng( 0.460369990000000E+02, -0.122674075000000E+03),\n new google.maps.LatLng( 0.460377310000000E+02, -0.122676767000000E+03),\n new google.maps.LatLng( 0.460374790000000E+02, -0.122678507000000E+03),\n new google.maps.LatLng( 0.460354680000000E+02, -0.122679558000000E+03),\n new google.maps.LatLng( 0.460303010000000E+02, -0.122680772000000E+03),\n new google.maps.LatLng( 0.460283810000000E+02, -0.122680083000000E+03),\n new google.maps.LatLng( 0.460261860000000E+02, -0.122678442000000E+03),\n new google.maps.LatLng( 0.460211800000000E+02, -0.122679493000000E+03),\n new google.maps.LatLng( 0.460187340000000E+02, -0.122682381000000E+03),\n new google.maps.LatLng( 0.460164860000000E+02, -0.122694180000000E+03),\n new google.maps.LatLng( 0.460298440000000E+02, -0.122703236000000E+03),\n new google.maps.LatLng( 0.460682740000000E+02, -0.122759703000000E+03),\n new google.maps.LatLng( 0.460676640000000E+02, -0.122772109000000E+03),\n new google.maps.LatLng( 0.460571850000000E+02, -0.122796216000000E+03),\n new google.maps.LatLng( 0.460575970000000E+02, -0.122800878000000E+03),\n new google.maps.LatLng( 0.460506940000000E+02, -0.122805542000000E+03),\n new google.maps.LatLng( 0.460459850000000E+02, -0.122815030000000E+03),\n new google.maps.LatLng( 0.460442240000000E+02, -0.122819987000000E+03),\n new google.maps.LatLng( 0.460466460000000E+02, -0.122826159000000E+03),\n new google.maps.LatLng( 0.460483140000000E+02, -0.122835616000000E+03),\n new google.maps.LatLng( 0.460475820000000E+02, -0.122837783000000E+03),\n new google.maps.LatLng( 0.460431910000000E+02, -0.122844477000000E+03),\n new google.maps.LatLng( 0.460433260000000E+02, -0.122851667000000E+03),\n new google.maps.LatLng( 0.460428680000000E+02, -0.122854260000000E+03),\n new google.maps.LatLng( 0.460408780000000E+02, -0.122856458000000E+03),\n new google.maps.LatLng( 0.460398600000000E+02, -0.122860904000000E+03),\n new google.maps.LatLng( 0.460439280000000E+02, -0.122862705000000E+03),\n new google.maps.LatLng( 0.460529110000000E+02, -0.122863775000000E+03),\n new google.maps.LatLng( 0.460557420000000E+02, -0.122864964000000E+03),\n new google.maps.LatLng( 0.460557330000000E+02, -0.122867343000000E+03),\n new google.maps.LatLng( 0.460557330000000E+02, -0.122867343000000E+03),\n new google.maps.LatLng( 0.460576990000000E+02, -0.122866684000000E+03),\n new google.maps.LatLng( 0.460685560000000E+02, -0.122868928000000E+03),\n new google.maps.LatLng( 0.460744680000000E+02, -0.122868669000000E+03),\n new google.maps.LatLng( 0.460766240000000E+02, -0.122869095000000E+03),\n new google.maps.LatLng( 0.460805800000000E+02, -0.122871461000000E+03),\n new google.maps.LatLng( 0.460861190000000E+02, -0.122878450000000E+03),\n new google.maps.LatLng( 0.460873470000000E+02, -0.122881289000000E+03),\n new google.maps.LatLng( 0.460893840000000E+02, -0.122888689000000E+03),\n new google.maps.LatLng( 0.460940610000000E+02, -0.122899050000000E+03),\n new google.maps.LatLng( 0.460964330000000E+02, -0.122906802000000E+03),\n new google.maps.LatLng( 0.460974930000000E+02, -0.122908893000000E+03),\n new google.maps.LatLng( 0.460985240000000E+02, -0.122907001000000E+03),\n new google.maps.LatLng( 0.460990810000000E+02, -0.122898990000000E+03),\n new google.maps.LatLng( 0.461002860000000E+02, -0.122896334000000E+03),\n new google.maps.LatLng( 0.461027890000000E+02, -0.122892763000000E+03),\n new google.maps.LatLng( 0.461064740000000E+02, -0.122890352000000E+03),\n new google.maps.LatLng( 0.461075340000000E+02, -0.122890119000000E+03),\n new google.maps.LatLng( 0.461102340000000E+02, -0.122891720000000E+03),\n new google.maps.LatLng( 0.461152330000000E+02, -0.122898220000000E+03),\n new google.maps.LatLng( 0.461195330000000E+02, -0.122915320000000E+03),\n new google.maps.LatLng( 0.461231330000000E+02, -0.122919021000000E+03),\n new google.maps.LatLng( 0.461249330000000E+02, -0.122919621000000E+03),\n new google.maps.LatLng( 0.461304330000000E+02, -0.122919521000000E+03),\n new google.maps.LatLng( 0.461426330000000E+02, -0.122914021000000E+03),\n new google.maps.LatLng( 0.461473330000000E+02, -0.122912421000000E+03),\n new google.maps.LatLng( 0.461515870000000E+02, -0.122912421000000E+03),\n new google.maps.LatLng( 0.461594330000000E+02, -0.122913521000000E+03),\n new google.maps.LatLng( 0.461742330000000E+02, -0.122912221000000E+03),\n new google.maps.LatLng( 0.461770240000000E+02, -0.122908004000000E+03),\n new google.maps.LatLng( 0.461771740000000E+02, -0.122904514000000E+03),\n new google.maps.LatLng( 0.461780900000000E+02, -0.122902958000000E+03),\n new google.maps.LatLng( 0.461805240000000E+02, -0.122900837000000E+03),\n new google.maps.LatLng( 0.461899460000000E+02, -0.122897068000000E+03),\n new google.maps.LatLng( 0.461928530000000E+02, -0.122897512000000E+03),\n new google.maps.LatLng( 0.461952330000000E+02, -0.122901006000000E+03),\n new google.maps.LatLng( 0.461954540000000E+02, -0.122903630000000E+03),\n new google.maps.LatLng( 0.461966220000000E+02, -0.122907872000000E+03),\n new google.maps.LatLng( 0.461987630000000E+02, -0.122911739000000E+03),\n new google.maps.LatLng( 0.461995430000000E+02, -0.122912042000000E+03),\n new google.maps.LatLng( 0.462011760000000E+02, -0.122911550000000E+03),\n new google.maps.LatLng( 0.462024050000000E+02, -0.122910421000000E+03),\n new google.maps.LatLng( 0.462054340000000E+02, -0.122909566000000E+03),\n new google.maps.LatLng( 0.462080120000000E+02, -0.122910833000000E+03),\n new google.maps.LatLng( 0.462109120000000E+02, -0.122914067000000E+03),\n new google.maps.LatLng( 0.462130550000000E+02, -0.122914571000000E+03),\n new google.maps.LatLng( 0.462149320000000E+02, -0.122913106000000E+03),\n new google.maps.LatLng( 0.462313810000000E+02, -0.122893010000000E+03),\n new google.maps.LatLng( 0.462322810000000E+02, -0.122893300000000E+03),\n new google.maps.LatLng( 0.462329380000000E+02, -0.122894307000000E+03),\n new google.maps.LatLng( 0.462335940000000E+02, -0.122897924000000E+03),\n new google.maps.LatLng( 0.462332660000000E+02, -0.122901404000000E+03),\n new google.maps.LatLng( 0.462342410000000E+02, -0.122903998000000E+03),\n new google.maps.LatLng( 0.462359430000000E+02, -0.122905188000000E+03),\n new google.maps.LatLng( 0.462379340000000E+02, -0.122904806000000E+03),\n new google.maps.LatLng( 0.462401690000000E+02, -0.122903235000000E+03),\n new google.maps.LatLng( 0.462406350000000E+02, -0.122901739000000E+03),\n new google.maps.LatLng( 0.462387130000000E+02, -0.122897726000000E+03),\n new google.maps.LatLng( 0.462382860000000E+02, -0.122895514000000E+03),\n new google.maps.LatLng( 0.462387130000000E+02, -0.122892568000000E+03),\n new google.maps.LatLng( 0.462398550000000E+02, -0.122890372000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.473381660000000E+02, -0.119961592000000E+03),\n new google.maps.LatLng( 0.473361270000000E+02, -0.119961649000000E+03),\n new google.maps.LatLng( 0.473372200000000E+02, -0.119957617000000E+03),\n new google.maps.LatLng( 0.473395500000000E+02, -0.119955031000000E+03),\n new google.maps.LatLng( 0.473416980000000E+02, -0.119949554000000E+03),\n new google.maps.LatLng( 0.473479120000000E+02, -0.119945623000000E+03),\n new google.maps.LatLng( 0.473487110000000E+02, -0.119944145000000E+03),\n new google.maps.LatLng( 0.473494650000000E+02, -0.119939507000000E+03),\n new google.maps.LatLng( 0.473508810000000E+02, -0.119938734000000E+03),\n new google.maps.LatLng( 0.473520690000000E+02, -0.119939877000000E+03),\n new google.maps.LatLng( 0.473528000000000E+02, -0.119939911000000E+03),\n new google.maps.LatLng( 0.473533260000000E+02, -0.119939339000000E+03),\n new google.maps.LatLng( 0.473538280000000E+02, -0.119935575000000E+03),\n new google.maps.LatLng( 0.473531200000000E+02, -0.119931205000000E+03),\n new google.maps.LatLng( 0.473537590000000E+02, -0.119925996000000E+03),\n new google.maps.LatLng( 0.473558840000000E+02, -0.119921625000000E+03),\n new google.maps.LatLng( 0.473571630000000E+02, -0.119916515000000E+03),\n new google.maps.LatLng( 0.473585790000000E+02, -0.119913557000000E+03),\n new google.maps.LatLng( 0.473607470000000E+02, -0.119906328000000E+03),\n new google.maps.LatLng( 0.473625490000000E+02, -0.119898595000000E+03),\n new google.maps.LatLng( 0.473625720000000E+02, -0.119896578000000E+03),\n new google.maps.LatLng( 0.473653790000000E+02, -0.119889146000000E+03),\n new google.maps.LatLng( 0.473716340000000E+02, -0.119881340000000E+03),\n new google.maps.LatLng( 0.473719990000000E+02, -0.119880263000000E+03),\n new google.maps.LatLng( 0.473720660000000E+02, -0.119877271000000E+03),\n new google.maps.LatLng( 0.473712880000000E+02, -0.119873382000000E+03),\n new google.maps.LatLng( 0.473667180000000E+02, -0.119875629000000E+03),\n new google.maps.LatLng( 0.473655300000000E+02, -0.119875679000000E+03),\n new google.maps.LatLng( 0.473601630000000E+02, -0.119874075000000E+03),\n new google.maps.LatLng( 0.473569440000000E+02, -0.119871751000000E+03),\n new google.maps.LatLng( 0.473495030000000E+02, -0.119860785000000E+03),\n new google.maps.LatLng( 0.473486120000000E+02, -0.119860851000000E+03),\n new google.maps.LatLng( 0.473454130000000E+02, -0.119863906000000E+03),\n new google.maps.LatLng( 0.473460080000000E+02, -0.119862025000000E+03),\n new google.maps.LatLng( 0.473454610000000E+02, -0.119859100000000E+03),\n new google.maps.LatLng( 0.473491880000000E+02, -0.119850265000000E+03),\n new google.maps.LatLng( 0.473523660000000E+02, -0.119840183000000E+03),\n new google.maps.LatLng( 0.473591700000000E+02, -0.119849533000000E+03),\n new google.maps.LatLng( 0.473604950000000E+02, -0.119850610000000E+03),\n new google.maps.LatLng( 0.473637610000000E+02, -0.119850881000000E+03),\n new google.maps.LatLng( 0.473692220000000E+02, -0.119846985000000E+03),\n new google.maps.LatLng( 0.473702500000000E+02, -0.119845036000000E+03),\n new google.maps.LatLng( 0.473707990000000E+02, -0.119843187000000E+03),\n new google.maps.LatLng( 0.473706410000000E+02, -0.119837436000000E+03),\n new google.maps.LatLng( 0.473711900000000E+02, -0.119834411000000E+03),\n new google.maps.LatLng( 0.473711900000000E+02, -0.119834411000000E+03),\n new google.maps.LatLng( 0.473717390000000E+02, -0.119828863000000E+03),\n new google.maps.LatLng( 0.473713740000000E+02, -0.119825534000000E+03),\n new google.maps.LatLng( 0.473736830000000E+02, -0.119817330000000E+03),\n new google.maps.LatLng( 0.473765180000000E+02, -0.119791396000000E+03),\n new google.maps.LatLng( 0.473806960000000E+02, -0.119781943000000E+03),\n new google.maps.LatLng( 0.473808530000000E+02, -0.119768726000000E+03),\n new google.maps.LatLng( 0.473535300000000E+02, -0.119768720000000E+03),\n new google.maps.LatLng( 0.473508580000000E+02, -0.119769059000000E+03),\n new google.maps.LatLng( 0.473476600000000E+02, -0.119774270000000E+03),\n new google.maps.LatLng( 0.473450800000000E+02, -0.119776389000000E+03),\n new google.maps.LatLng( 0.473408540000000E+02, -0.119777400000000E+03),\n new google.maps.LatLng( 0.473369720000000E+02, -0.119780998000000E+03),\n new google.maps.LatLng( 0.473362210000000E+02, -0.119811745000000E+03),\n new google.maps.LatLng( 0.473255540000000E+02, -0.119812115000000E+03),\n new google.maps.LatLng( 0.473227210000000E+02, -0.119811846000000E+03),\n new google.maps.LatLng( 0.473216470000000E+02, -0.119810804000000E+03),\n new google.maps.LatLng( 0.473189060000000E+02, -0.119810502000000E+03),\n new google.maps.LatLng( 0.473185410000000E+02, -0.119814298000000E+03),\n new google.maps.LatLng( 0.473175350000000E+02, -0.119817724000000E+03),\n new google.maps.LatLng( 0.473168720000000E+02, -0.119817925000000E+03),\n new google.maps.LatLng( 0.473172620000000E+02, -0.119809091000000E+03),\n new google.maps.LatLng( 0.473167130000000E+02, -0.119807311000000E+03),\n new google.maps.LatLng( 0.473146570000000E+02, -0.119806539000000E+03),\n new google.maps.LatLng( 0.473135150000000E+02, -0.119807681000000E+03),\n new google.maps.LatLng( 0.473115280000000E+02, -0.119808655000000E+03),\n new google.maps.LatLng( 0.473015910000000E+02, -0.119809528000000E+03),\n new google.maps.LatLng( 0.472985760000000E+02, -0.119807447000000E+03),\n new google.maps.LatLng( 0.472931850000000E+02, -0.119806708000000E+03),\n new google.maps.LatLng( 0.472868110000000E+02, -0.119808958000000E+03),\n new google.maps.LatLng( 0.472821280000000E+02, -0.119811476000000E+03),\n new google.maps.LatLng( 0.472777880000000E+02, -0.119811812000000E+03),\n new google.maps.LatLng( 0.472784660000000E+02, -0.119769081000000E+03),\n new google.maps.LatLng( 0.472696710000000E+02, -0.119769222000000E+03),\n new google.maps.LatLng( 0.472608760000000E+02, -0.119768626000000E+03),\n new google.maps.LatLng( 0.472606920000000E+02, -0.119765505000000E+03),\n new google.maps.LatLng( 0.472615350000000E+02, -0.119760404000000E+03),\n new google.maps.LatLng( 0.472629700000000E+02, -0.119743889000000E+03),\n new google.maps.LatLng( 0.472646870000000E+02, -0.119737045000000E+03),\n new google.maps.LatLng( 0.472650570000000E+02, -0.119727750000000E+03),\n new google.maps.LatLng( 0.472647150000000E+02, -0.119725097000000E+03),\n new google.maps.LatLng( 0.472583640000000E+02, -0.119725160000000E+03),\n new google.maps.LatLng( 0.472593050000000E+02, -0.119708015000000E+03),\n new google.maps.LatLng( 0.472600600000000E+02, -0.119703652000000E+03),\n new google.maps.LatLng( 0.472657710000000E+02, -0.119703586000000E+03),\n new google.maps.LatLng( 0.472663890000000E+02, -0.119692512000000E+03),\n new google.maps.LatLng( 0.472656120000000E+02, -0.119672275000000E+03),\n new google.maps.LatLng( 0.472667750000000E+02, -0.119661535000000E+03),\n new google.maps.LatLng( 0.472554320000000E+02, -0.119661128000000E+03),\n new google.maps.LatLng( 0.472536770000000E+02, -0.119680783000000E+03),\n new google.maps.LatLng( 0.472526590000000E+02, -0.119685095000000E+03),\n new google.maps.LatLng( 0.472493260000000E+02, -0.119685249000000E+03),\n new google.maps.LatLng( 0.472492820000000E+02, -0.119692886000000E+03),\n new google.maps.LatLng( 0.472440050000000E+02, -0.119693019000000E+03),\n new google.maps.LatLng( 0.472433420000000E+02, -0.119703518000000E+03),\n new google.maps.LatLng( 0.472422220000000E+02, -0.119703786000000E+03),\n new google.maps.LatLng( 0.472419250000000E+02, -0.119704491000000E+03),\n new google.maps.LatLng( 0.472416720000000E+02, -0.119713984000000E+03),\n new google.maps.LatLng( 0.472410780000000E+02, -0.119714420000000E+03),\n new google.maps.LatLng( 0.472350920000000E+02, -0.119714584000000E+03),\n new google.maps.LatLng( 0.472347720000000E+02, -0.119714953000000E+03),\n new google.maps.LatLng( 0.472345860000000E+02, -0.119725350000000E+03),\n new google.maps.LatLng( 0.472200800000000E+02, -0.119725238000000E+03),\n new google.maps.LatLng( 0.472201750000000E+02, -0.119708108000000E+03),\n new google.maps.LatLng( 0.472151280000000E+02, -0.119707833000000E+03),\n new google.maps.LatLng( 0.472064020000000E+02, -0.119705282000000E+03),\n new google.maps.LatLng( 0.472006690000000E+02, -0.119698542000000E+03),\n new google.maps.LatLng( 0.471937430000000E+02, -0.119687066000000E+03),\n new google.maps.LatLng( 0.471892240000000E+02, -0.119694451000000E+03),\n new google.maps.LatLng( 0.471916450000000E+02, -0.119699846000000E+03),\n new google.maps.LatLng( 0.471996860000000E+02, -0.119705983000000E+03),\n new google.maps.LatLng( 0.472027690000000E+02, -0.119710074000000E+03),\n new google.maps.LatLng( 0.472056000000000E+02, -0.119716477000000E+03),\n new google.maps.LatLng( 0.472054830000000E+02, -0.119725126000000E+03),\n new google.maps.LatLng( 0.471619640000000E+02, -0.119725696000000E+03),\n new google.maps.LatLng( 0.471622910000000E+02, -0.119672206000000E+03),\n new google.maps.LatLng( 0.471553000000000E+02, -0.119672040000000E+03),\n new google.maps.LatLng( 0.471547730000000E+02, -0.119661524000000E+03),\n new google.maps.LatLng( 0.471333210000000E+02, -0.119661501000000E+03),\n new google.maps.LatLng( 0.471321940000000E+02, -0.119660206000000E+03),\n new google.maps.LatLng( 0.471322030000000E+02, -0.119683035000000E+03),\n new google.maps.LatLng( 0.471042270000000E+02, -0.119683067000000E+03),\n new google.maps.LatLng( 0.471042920000000E+02, -0.119626150000000E+03),\n new google.maps.LatLng( 0.471042150000000E+02, -0.119620964000000E+03),\n new google.maps.LatLng( 0.471037690000000E+02, -0.119620964000000E+03),\n new google.maps.LatLng( 0.471037690000000E+02, -0.119620964000000E+03),\n new google.maps.LatLng( 0.471022820000000E+02, -0.119620962000000E+03),\n new google.maps.LatLng( 0.471031430000000E+02, -0.119615008000000E+03),\n new google.maps.LatLng( 0.471032030000000E+02, -0.119560001000000E+03),\n new google.maps.LatLng( 0.471004840000000E+02, -0.119555852000000E+03),\n new google.maps.LatLng( 0.470305520000000E+02, -0.119556927000000E+03),\n new google.maps.LatLng( 0.470305520000000E+02, -0.119556927000000E+03),\n new google.maps.LatLng( 0.470306750000000E+02, -0.119618399000000E+03),\n new google.maps.LatLng( 0.470301560000000E+02, -0.119642139000000E+03),\n new google.maps.LatLng( 0.470084750000000E+02, -0.119642124000000E+03),\n new google.maps.LatLng( 0.470084610000000E+02, -0.119684507000000E+03),\n new google.maps.LatLng( 0.470076840000000E+02, -0.119684808000000E+03),\n new google.maps.LatLng( 0.470026160000000E+02, -0.119684511000000E+03),\n new google.maps.LatLng( 0.470012410000000E+02, -0.119681202000000E+03),\n new google.maps.LatLng( 0.469959280000000E+02, -0.119673194000000E+03),\n new google.maps.LatLng( 0.469914950000000E+02, -0.119665082000000E+03),\n new google.maps.LatLng( 0.469876110000000E+02, -0.119661511000000E+03),\n new google.maps.LatLng( 0.469856920000000E+02, -0.119660878000000E+03),\n new google.maps.LatLng( 0.469822650000000E+02, -0.119658809000000E+03),\n new google.maps.LatLng( 0.469811890000000E+02, -0.119651065000000E+03),\n new google.maps.LatLng( 0.469820550000000E+02, -0.119644722000000E+03),\n new google.maps.LatLng( 0.469804780000000E+02, -0.119641251000000E+03),\n new google.maps.LatLng( 0.469793420000000E+02, -0.119640522000000E+03),\n new google.maps.LatLng( 0.469638970000000E+02, -0.119651058000000E+03),\n new google.maps.LatLng( 0.469642310000000E+02, -0.119653290000000E+03),\n new google.maps.LatLng( 0.469655630000000E+02, -0.119654011000000E+03),\n new google.maps.LatLng( 0.469734910000000E+02, -0.119654708000000E+03),\n new google.maps.LatLng( 0.469776040000000E+02, -0.119661047000000E+03),\n new google.maps.LatLng( 0.469775600000000E+02, -0.119670227000000E+03),\n new google.maps.LatLng( 0.469800960000000E+02, -0.119678338000000E+03),\n new google.maps.LatLng( 0.469842990000000E+02, -0.119697800000000E+03),\n new google.maps.LatLng( 0.469860800000000E+02, -0.119701674000000E+03),\n new google.maps.LatLng( 0.469873780000000E+02, -0.119716964000000E+03),\n new google.maps.LatLng( 0.469864820000000E+02, -0.119730785000000E+03),\n new google.maps.LatLng( 0.469867210000000E+02, -0.119748727000000E+03),\n new google.maps.LatLng( 0.469718430000000E+02, -0.119748713000000E+03),\n new google.maps.LatLng( 0.469718420000000E+02, -0.119812749000000E+03),\n new google.maps.LatLng( 0.469688600000000E+02, -0.119814482000000E+03),\n new google.maps.LatLng( 0.469693770000000E+02, -0.119827507000000E+03),\n new google.maps.LatLng( 0.469707470000000E+02, -0.119832213000000E+03),\n new google.maps.LatLng( 0.469696950000000E+02, -0.119836484000000E+03),\n new google.maps.LatLng( 0.469700600000000E+02, -0.119837185000000E+03),\n new google.maps.LatLng( 0.469731210000000E+02, -0.119839357000000E+03),\n new google.maps.LatLng( 0.469750860000000E+02, -0.119838189000000E+03),\n new google.maps.LatLng( 0.469765250000000E+02, -0.119838191000000E+03),\n new google.maps.LatLng( 0.469771640000000E+02, -0.119838859000000E+03),\n new google.maps.LatLng( 0.469789200000000E+02, -0.119845235000000E+03),\n new google.maps.LatLng( 0.469788500000000E+02, -0.119850675000000E+03),\n new google.maps.LatLng( 0.469776390000000E+02, -0.119851909000000E+03),\n new google.maps.LatLng( 0.469791910000000E+02, -0.119855548000000E+03),\n new google.maps.LatLng( 0.469824570000000E+02, -0.119855785000000E+03),\n new google.maps.LatLng( 0.469835080000000E+02, -0.119856620000000E+03),\n new google.maps.LatLng( 0.469939170000000E+02, -0.119872722000000E+03),\n new google.maps.LatLng( 0.470003600000000E+02, -0.119876887000000E+03),\n new google.maps.LatLng( 0.470046780000000E+02, -0.119877150000000E+03),\n new google.maps.LatLng( 0.470076520000000E+02, -0.119886530000000E+03),\n new google.maps.LatLng( 0.470095750000000E+02, -0.119897215000000E+03),\n new google.maps.LatLng( 0.470090040000000E+02, -0.119898350000000E+03),\n new google.maps.LatLng( 0.469860540000000E+02, -0.119898709000000E+03),\n new google.maps.LatLng( 0.469858480000000E+02, -0.119920088000000E+03),\n new google.maps.LatLng( 0.469786630000000E+02, -0.119919725000000E+03),\n new google.maps.LatLng( 0.469788770000000E+02, -0.119940199000000E+03),\n new google.maps.LatLng( 0.469738510000000E+02, -0.119945305000000E+03),\n new google.maps.LatLng( 0.469718260000000E+02, -0.119946459000000E+03),\n new google.maps.LatLng( 0.469718120000000E+02, -0.119974738000000E+03),\n new google.maps.LatLng( 0.469718120000000E+02, -0.119974738000000E+03),\n new google.maps.LatLng( 0.469804210000000E+02, -0.119979885000000E+03),\n new google.maps.LatLng( 0.469889860000000E+02, -0.119982997000000E+03),\n new google.maps.LatLng( 0.469946480000000E+02, -0.119987910000000E+03),\n new google.maps.LatLng( 0.470011390000000E+02, -0.119991583000000E+03),\n new google.maps.LatLng( 0.470082400000000E+02, -0.119996766000000E+03),\n new google.maps.LatLng( 0.470136070000000E+02, -0.120000045000000E+03),\n new google.maps.LatLng( 0.470190480000000E+02, -0.120002424000000E+03),\n new google.maps.LatLng( 0.470268730000000E+02, -0.120004594000000E+03),\n new google.maps.LatLng( 0.470342830000000E+02, -0.120003632000000E+03),\n new google.maps.LatLng( 0.470465000000000E+02, -0.120010755000000E+03),\n new google.maps.LatLng( 0.470612940000000E+02, -0.120021258000000E+03),\n new google.maps.LatLng( 0.470671770000000E+02, -0.120024187000000E+03),\n new google.maps.LatLng( 0.470697130000000E+02, -0.120026068000000E+03),\n new google.maps.LatLng( 0.470707460000000E+02, -0.120027847000000E+03),\n new google.maps.LatLng( 0.470712240000000E+02, -0.120029258000000E+03),\n new google.maps.LatLng( 0.470692740000000E+02, -0.120032051000000E+03),\n new google.maps.LatLng( 0.470679970000000E+02, -0.120031788000000E+03),\n new google.maps.LatLng( 0.470686120000000E+02, -0.120032656000000E+03),\n new google.maps.LatLng( 0.470710230000000E+02, -0.120034282000000E+03),\n new google.maps.LatLng( 0.470730690000000E+02, -0.120034927000000E+03),\n new google.maps.LatLng( 0.470773390000000E+02, -0.120034150000000E+03),\n new google.maps.LatLng( 0.470793230000000E+02, -0.120032864000000E+03),\n new google.maps.LatLng( 0.470826170000000E+02, -0.120029237000000E+03),\n new google.maps.LatLng( 0.470972360000000E+02, -0.120016065000000E+03),\n new google.maps.LatLng( 0.471054570000000E+02, -0.120011368000000E+03),\n new google.maps.LatLng( 0.471083150000000E+02, -0.120010413000000E+03),\n new google.maps.LatLng( 0.471097890000000E+02, -0.120010423000000E+03),\n new google.maps.LatLng( 0.471164890000000E+02, -0.120007237000000E+03),\n new google.maps.LatLng( 0.471243000000000E+02, -0.120000581000000E+03),\n new google.maps.LatLng( 0.471297000000000E+02, -0.119997769000000E+03),\n new google.maps.LatLng( 0.471387470000000E+02, -0.119996373000000E+03),\n new google.maps.LatLng( 0.471465580000000E+02, -0.119997420000000E+03),\n new google.maps.LatLng( 0.471497780000000E+02, -0.119998797000000E+03),\n new google.maps.LatLng( 0.471550080000000E+02, -0.120002759000000E+03),\n new google.maps.LatLng( 0.471605840000000E+02, -0.120006068000000E+03),\n new google.maps.LatLng( 0.471647860000000E+02, -0.120006096000000E+03),\n new google.maps.LatLng( 0.471722090000000E+02, -0.120004112000000E+03),\n new google.maps.LatLng( 0.471807050000000E+02, -0.120002862000000E+03),\n new google.maps.LatLng( 0.471826930000000E+02, -0.120002961000000E+03),\n new google.maps.LatLng( 0.471848170000000E+02, -0.120001986000000E+03),\n new google.maps.LatLng( 0.471938880000000E+02, -0.119993856000000E+03),\n new google.maps.LatLng( 0.471971330000000E+02, -0.119991681000000E+03),\n new google.maps.LatLng( 0.472020900000000E+02, -0.119989743000000E+03),\n new google.maps.LatLng( 0.472074820000000E+02, -0.119988676000000E+03),\n new google.maps.LatLng( 0.472124610000000E+02, -0.119988982000000E+03),\n new google.maps.LatLng( 0.472141050000000E+02, -0.119989789000000E+03),\n new google.maps.LatLng( 0.472154740000000E+02, -0.119992237000000E+03),\n new google.maps.LatLng( 0.472153820000000E+02, -0.119993980000000E+03),\n new google.maps.LatLng( 0.472145370000000E+02, -0.119994080000000E+03),\n new google.maps.LatLng( 0.472143330000000E+02, -0.119991666000000E+03),\n new google.maps.LatLng( 0.472128940000000E+02, -0.119990525000000E+03),\n new google.maps.LatLng( 0.472058140000000E+02, -0.119989948000000E+03),\n new google.maps.LatLng( 0.472023640000000E+02, -0.119990715000000E+03),\n new google.maps.LatLng( 0.472017930000000E+02, -0.119991720000000E+03),\n new google.maps.LatLng( 0.472058298134766E+02, -0.119993340737500E+03),\n new google.maps.LatLng( 0.472049890000000E+02, -0.119995276000000E+03),\n new google.maps.LatLng( 0.472024520000000E+02, -0.119996513000000E+03),\n new google.maps.LatLng( 0.471994370000000E+02, -0.119996878000000E+03),\n new google.maps.LatLng( 0.471941820000000E+02, -0.119999318000000E+03),\n new google.maps.LatLng( 0.471921250000000E+02, -0.120001166000000E+03),\n new google.maps.LatLng( 0.471931080000000E+02, -0.120001742000000E+03),\n new google.maps.LatLng( 0.471984990000000E+02, -0.120000563000000E+03),\n new google.maps.LatLng( 0.472076830000000E+02, -0.119997390000000E+03),\n new google.maps.LatLng( 0.472165230000000E+02, -0.119997032000000E+03),\n new google.maps.LatLng( 0.472214320000000E+02, -0.119999184000000E+03),\n new google.maps.LatLng( 0.472242890000000E+02, -0.120004955000000E+03),\n new google.maps.LatLng( 0.472244490000000E+02, -0.120006632000000E+03),\n new google.maps.LatLng( 0.472294580000000E+02, -0.120021548000000E+03),\n new google.maps.LatLng( 0.472295730000000E+02, -0.120024566000000E+03),\n new google.maps.LatLng( 0.472289110000000E+02, -0.120025237000000E+03),\n new google.maps.LatLng( 0.472285240000000E+02, -0.120027685000000E+03),\n new google.maps.LatLng( 0.472292580000000E+02, -0.120038918000000E+03),\n new google.maps.LatLng( 0.472284600000000E+02, -0.120043882000000E+03),\n new google.maps.LatLng( 0.472264050000000E+02, -0.120049315000000E+03),\n new google.maps.LatLng( 0.472257430000000E+02, -0.120053674000000E+03),\n new google.maps.LatLng( 0.472256300000000E+02, -0.120064672000000E+03),\n new google.maps.LatLng( 0.472305870000000E+02, -0.120076745000000E+03),\n new google.maps.LatLng( 0.472334640000000E+02, -0.120080501000000E+03),\n new google.maps.LatLng( 0.472395170000000E+02, -0.120086170000000E+03),\n new google.maps.LatLng( 0.472408870000000E+02, -0.120087278000000E+03),\n new google.maps.LatLng( 0.472504640000000E+02, -0.120091314000000E+03),\n new google.maps.LatLng( 0.472620220000000E+02, -0.120090817000000E+03),\n new google.maps.LatLng( 0.472704750000000E+02, -0.120086828000000E+03),\n new google.maps.LatLng( 0.472732390000000E+02, -0.120086158000000E+03),\n new google.maps.LatLng( 0.472761860000000E+02, -0.120086360000000E+03),\n new google.maps.LatLng( 0.472779660000000E+02, -0.120087435000000E+03),\n new google.maps.LatLng( 0.472823740000000E+02, -0.120087940000000E+03),\n new google.maps.LatLng( 0.472895010000000E+02, -0.120087675000000E+03),\n new google.maps.LatLng( 0.472978850000000E+02, -0.120085697000000E+03),\n new google.maps.LatLng( 0.473002380000000E+02, -0.120083818000000E+03),\n new google.maps.LatLng( 0.473054680000000E+02, -0.120084995000000E+03),\n new google.maps.LatLng( 0.473103790000000E+02, -0.120085265000000E+03),\n new google.maps.LatLng( 0.473156100000000E+02, -0.120084562000000E+03),\n new google.maps.LatLng( 0.473200000000000E+02, -0.120082975000000E+03),\n new google.maps.LatLng( 0.473200000000000E+02, -0.120082975000000E+03),\n new google.maps.LatLng( 0.473112980000000E+02, -0.120083510000000E+03),\n new google.maps.LatLng( 0.472976360000000E+02, -0.120082079000000E+03),\n new google.maps.LatLng( 0.472691590000000E+02, -0.120086103000000E+03),\n new google.maps.LatLng( 0.472621270000000E+02, -0.120088240000000E+03),\n new google.maps.LatLng( 0.472589290000000E+02, -0.120088116000000E+03),\n new google.maps.LatLng( 0.472539030000000E+02, -0.120087663000000E+03),\n new google.maps.LatLng( 0.472439980000000E+02, -0.120084737000000E+03),\n new google.maps.LatLng( 0.472417840000000E+02, -0.120083476000000E+03),\n new google.maps.LatLng( 0.472364830000000E+02, -0.120079026000000E+03),\n new google.maps.LatLng( 0.472330020000000E+02, -0.120075926000000E+03),\n new google.maps.LatLng( 0.472305840000000E+02, -0.120071502000000E+03),\n new google.maps.LatLng( 0.472276340000000E+02, -0.120052508000000E+03),\n new google.maps.LatLng( 0.472281270000000E+02, -0.120048840000000E+03),\n new google.maps.LatLng( 0.472325550000000E+02, -0.120034619000000E+03),\n new google.maps.LatLng( 0.472333470000000E+02, -0.120028691000000E+03),\n new google.maps.LatLng( 0.472315670000000E+02, -0.120021095000000E+03),\n new google.maps.LatLng( 0.472300300000000E+02, -0.120011086000000E+03),\n new google.maps.LatLng( 0.472303500000000E+02, -0.120004670000000E+03),\n new google.maps.LatLng( 0.472305760000000E+02, -0.120004665000000E+03),\n new google.maps.LatLng( 0.472369540000000E+02, -0.120033581000000E+03),\n new google.maps.LatLng( 0.472370010000000E+02, -0.120038142000000E+03),\n new google.maps.LatLng( 0.472358170000000E+02, -0.120052866000000E+03),\n new google.maps.LatLng( 0.472368000000000E+02, -0.120060714000000E+03),\n new google.maps.LatLng( 0.472383070000000E+02, -0.120065208000000E+03),\n new google.maps.LatLng( 0.472445210000000E+02, -0.120071011000000E+03),\n new google.maps.LatLng( 0.472528200000000E+02, -0.120072495000000E+03),\n new google.maps.LatLng( 0.472673250000000E+02, -0.120068537000000E+03),\n new google.maps.LatLng( 0.472753420000000E+02, -0.120065652000000E+03),\n new google.maps.LatLng( 0.472869450000000E+02, -0.120063083000000E+03),\n new google.maps.LatLng( 0.472897330000000E+02, -0.120061489000000E+03),\n new google.maps.LatLng( 0.472934330000000E+02, -0.120062059000000E+03),\n new google.maps.LatLng( 0.473007660000000E+02, -0.120066357000000E+03),\n new google.maps.LatLng( 0.472982070000000E+02, -0.120059944000000E+03),\n new google.maps.LatLng( 0.473018150000000E+02, -0.120050508000000E+03),\n new google.maps.LatLng( 0.473386410000000E+02, -0.120001167000000E+03),\n new google.maps.LatLng( 0.473477160000000E+02, -0.119987264000000E+03),\n new google.maps.LatLng( 0.473520110000000E+02, -0.119979544000000E+03),\n new google.maps.LatLng( 0.473520110000000E+02, -0.119979544000000E+03),\n new google.maps.LatLng( 0.473473310000000E+02, -0.119980307000000E+03),\n new google.maps.LatLng( 0.473445440000000E+02, -0.119979835000000E+03),\n new google.maps.LatLng( 0.473420110000000E+02, -0.119975967000000E+03),\n new google.maps.LatLng( 0.473410070000000E+02, -0.119973278000000E+03),\n new google.maps.LatLng( 0.473381660000000E+02, -0.119961592000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.462888770000000E+02, -0.118776454000000E+03),\n new google.maps.LatLng( 0.462877530000000E+02, -0.118775667000000E+03),\n new google.maps.LatLng( 0.462889430000000E+02, -0.118770418000000E+03),\n new google.maps.LatLng( 0.462917750000000E+02, -0.118764679000000E+03),\n new google.maps.LatLng( 0.462953160000000E+02, -0.118762797000000E+03),\n new google.maps.LatLng( 0.463011630000000E+02, -0.118755208000000E+03),\n new google.maps.LatLng( 0.463048660000000E+02, -0.118754544000000E+03),\n new google.maps.LatLng( 0.463071500000000E+02, -0.118753256000000E+03),\n new google.maps.LatLng( 0.463089770000000E+02, -0.118751105000000E+03),\n new google.maps.LatLng( 0.463122710000000E+02, -0.118742099000000E+03),\n new google.maps.LatLng( 0.463122060000000E+02, -0.118735733000000E+03),\n new google.maps.LatLng( 0.463128470000000E+02, -0.118732700000000E+03),\n new google.maps.LatLng( 0.463175810000000E+02, -0.118725413000000E+03),\n new google.maps.LatLng( 0.463186790000000E+02, -0.118721522000000E+03),\n new google.maps.LatLng( 0.462795060000000E+02, -0.118721299000000E+03),\n new google.maps.LatLng( 0.462683300000000E+02, -0.118720666000000E+03),\n new google.maps.LatLng( 0.462541140000000E+02, -0.118721647000000E+03),\n new google.maps.LatLng( 0.462545180000000E+02, -0.118757801000000E+03),\n new google.maps.LatLng( 0.462477480000000E+02, -0.118762877000000E+03),\n new google.maps.LatLng( 0.462433600000000E+02, -0.118763309000000E+03),\n new google.maps.LatLng( 0.462402740000000E+02, -0.118762686000000E+03),\n new google.maps.LatLng( 0.462398830000000E+02, -0.118742128000000E+03),\n new google.maps.LatLng( 0.462353800000000E+02, -0.118743869000000E+03),\n new google.maps.LatLng( 0.462327270000000E+02, -0.118746502000000E+03),\n new google.maps.LatLng( 0.462297550000000E+02, -0.118748113000000E+03),\n new google.maps.LatLng( 0.462276980000000E+02, -0.118747616000000E+03),\n new google.maps.LatLng( 0.462239060000000E+02, -0.118744878000000E+03),\n new google.maps.LatLng( 0.462240210000000E+02, -0.118742310000000E+03),\n new google.maps.LatLng( 0.462252560000000E+02, -0.118741224000000E+03),\n new google.maps.LatLng( 0.462246660000000E+02, -0.118732597000000E+03),\n new google.maps.LatLng( 0.462249440000000E+02, -0.118721828000000E+03),\n new google.maps.LatLng( 0.462198020000000E+02, -0.118721561000000E+03),\n new google.maps.LatLng( 0.462114820000000E+02, -0.118721918000000E+03),\n new google.maps.LatLng( 0.462104080000000E+02, -0.118721358000000E+03),\n new google.maps.LatLng( 0.462104080000000E+02, -0.118721358000000E+03),\n new google.maps.LatLng( 0.461719650000000E+02, -0.118721464000000E+03),\n new google.maps.LatLng( 0.461676210000000E+02, -0.118727680000000E+03),\n new google.maps.LatLng( 0.461691500000000E+02, -0.118733174000000E+03),\n new google.maps.LatLng( 0.461733510000000E+02, -0.118742389000000E+03),\n new google.maps.LatLng( 0.461710920000000E+02, -0.118763700000000E+03),\n new google.maps.LatLng( 0.461809660000000E+02, -0.118763625000000E+03),\n new google.maps.LatLng( 0.461817430000000E+02, -0.118764382000000E+03),\n new google.maps.LatLng( 0.461822290000000E+02, -0.118799158000000E+03),\n new google.maps.LatLng( 0.461817340000000E+02, -0.118805056000000E+03),\n new google.maps.LatLng( 0.461461910000000E+02, -0.118805322000000E+03),\n new google.maps.LatLng( 0.461461200000000E+02, -0.118825764000000E+03),\n new google.maps.LatLng( 0.460703170000000E+02, -0.118825532000000E+03),\n new google.maps.LatLng( 0.460711260000000E+02, -0.118828513000000E+03),\n new google.maps.LatLng( 0.460742790000000E+02, -0.118829729000000E+03),\n new google.maps.LatLng( 0.460737340000000E+02, -0.118839590000000E+03),\n new google.maps.LatLng( 0.460737340000000E+02, -0.118839590000000E+03),\n new google.maps.LatLng( 0.460740720000000E+02, -0.118840041000000E+03),\n new google.maps.LatLng( 0.460740700000000E+02, -0.118844442000000E+03),\n new google.maps.LatLng( 0.460729930000000E+02, -0.118853208000000E+03),\n new google.maps.LatLng( 0.460692870000000E+02, -0.118862105000000E+03),\n new google.maps.LatLng( 0.460683250000000E+02, -0.118867128000000E+03),\n new google.maps.LatLng( 0.460692850000000E+02, -0.118866964000000E+03),\n new google.maps.LatLng( 0.460699710000000E+02, -0.118866144000000E+03),\n new google.maps.LatLng( 0.460804670000000E+02, -0.118851835000000E+03),\n new google.maps.LatLng( 0.460946570000000E+02, -0.118860092000000E+03),\n new google.maps.LatLng( 0.461014870000000E+02, -0.118867523000000E+03),\n new google.maps.LatLng( 0.461163420000000E+02, -0.118868459000000E+03),\n new google.maps.LatLng( 0.461304290000000E+02, -0.118870014000000E+03),\n new google.maps.LatLng( 0.461349750000000E+02, -0.118874030000000E+03),\n new google.maps.LatLng( 0.461365060000000E+02, -0.118874524000000E+03),\n new google.maps.LatLng( 0.461384290000000E+02, -0.118868444000000E+03),\n new google.maps.LatLng( 0.461387680000000E+02, -0.118918952000000E+03),\n new google.maps.LatLng( 0.461176950000000E+02, -0.118920930000000E+03),\n new google.maps.LatLng( 0.461155930000000E+02, -0.118920233000000E+03),\n new google.maps.LatLng( 0.461124450000000E+02, -0.118916411000000E+03),\n new google.maps.LatLng( 0.461098870000000E+02, -0.118914924000000E+03),\n new google.maps.LatLng( 0.461038750000000E+02, -0.118913347000000E+03),\n new google.maps.LatLng( 0.460895220000000E+02, -0.118910758000000E+03),\n new google.maps.LatLng( 0.460784360000000E+02, -0.118907775000000E+03),\n new google.maps.LatLng( 0.460681030000000E+02, -0.118907940000000E+03),\n new google.maps.LatLng( 0.460616720000000E+02, -0.118909657000000E+03),\n new google.maps.LatLng( 0.460606640000000E+02, -0.118910552000000E+03),\n new google.maps.LatLng( 0.460606640000000E+02, -0.118910552000000E+03),\n new google.maps.LatLng( 0.460611590000000E+02, -0.118910902000000E+03),\n new google.maps.LatLng( 0.460623020000000E+02, -0.118910278000000E+03),\n new google.maps.LatLng( 0.460656610000000E+02, -0.118910506000000E+03),\n new google.maps.LatLng( 0.460665300000000E+02, -0.118910046000000E+03),\n new google.maps.LatLng( 0.460703010000000E+02, -0.118909815000000E+03),\n new google.maps.LatLng( 0.460784830000000E+02, -0.118910238000000E+03),\n new google.maps.LatLng( 0.460883560000000E+02, -0.118912697000000E+03),\n new google.maps.LatLng( 0.460908710000000E+02, -0.118914009000000E+03),\n new google.maps.LatLng( 0.460971330000000E+02, -0.118914861000000E+03),\n new google.maps.LatLng( 0.460977270000000E+02, -0.118915386000000E+03),\n new google.maps.LatLng( 0.460978650000000E+02, -0.118917456000000E+03),\n new google.maps.LatLng( 0.460997170000000E+02, -0.118921529000000E+03),\n new google.maps.LatLng( 0.461000820000000E+02, -0.118921858000000E+03),\n new google.maps.LatLng( 0.461013160000000E+02, -0.118920247000000E+03),\n new google.maps.LatLng( 0.461016130000000E+02, -0.118920806000000E+03),\n new google.maps.LatLng( 0.461007910000000E+02, -0.118922450000000E+03),\n new google.maps.LatLng( 0.461013620000000E+02, -0.118923534000000E+03),\n new google.maps.LatLng( 0.461025280000000E+02, -0.118923468000000E+03),\n new google.maps.LatLng( 0.461032140000000E+02, -0.118924782000000E+03),\n new google.maps.LatLng( 0.461044480000000E+02, -0.118925044000000E+03),\n new google.maps.LatLng( 0.461051110000000E+02, -0.118924387000000E+03),\n new google.maps.LatLng( 0.461066190000000E+02, -0.118924551000000E+03),\n new google.maps.LatLng( 0.461071900000000E+02, -0.118922645000000E+03),\n new google.maps.LatLng( 0.461082410000000E+02, -0.118922842000000E+03),\n new google.maps.LatLng( 0.461184810000000E+02, -0.118928920000000E+03),\n new google.maps.LatLng( 0.461206060000000E+02, -0.118931812000000E+03),\n new google.maps.LatLng( 0.461225720000000E+02, -0.118931811000000E+03),\n new google.maps.LatLng( 0.461287520000000E+02, -0.118934920000000E+03),\n new google.maps.LatLng( 0.461287520000000E+02, -0.118937017000000E+03),\n new google.maps.LatLng( 0.461280000000000E+02, -0.118937337000000E+03),\n new google.maps.LatLng( 0.461298500000000E+02, -0.118937508000000E+03),\n new google.maps.LatLng( 0.461322350000000E+02, -0.118941795000000E+03),\n new google.maps.LatLng( 0.461328400000000E+02, -0.118944119000000E+03),\n new google.maps.LatLng( 0.461339840000000E+02, -0.118943836000000E+03),\n new google.maps.LatLng( 0.461349590000000E+02, -0.118945693000000E+03),\n new google.maps.LatLng( 0.461357490000000E+02, -0.118946048000000E+03),\n new google.maps.LatLng( 0.461378140000000E+02, -0.118944150000000E+03),\n new google.maps.LatLng( 0.461403990000000E+02, -0.118945452000000E+03),\n new google.maps.LatLng( 0.461413390000000E+02, -0.118945465000000E+03),\n new google.maps.LatLng( 0.461427190000000E+02, -0.118944631000000E+03),\n new google.maps.LatLng( 0.461488240000000E+02, -0.118943194000000E+03),\n new google.maps.LatLng( 0.461494050000000E+02, -0.118944084000000E+03),\n new google.maps.LatLng( 0.461511510000000E+02, -0.118944567000000E+03),\n new google.maps.LatLng( 0.461521000000000E+02, -0.118943091000000E+03),\n new google.maps.LatLng( 0.461528950000000E+02, -0.118943469000000E+03),\n new google.maps.LatLng( 0.461576110000000E+02, -0.118951789000000E+03),\n new google.maps.LatLng( 0.461573760000000E+02, -0.118950970000000E+03),\n new google.maps.LatLng( 0.461609600000000E+02, -0.118948393000000E+03),\n new google.maps.LatLng( 0.461621280000000E+02, -0.118946393000000E+03),\n new google.maps.LatLng( 0.461635740000000E+02, -0.118947614000000E+03),\n new google.maps.LatLng( 0.461639580000000E+02, -0.118947088000000E+03),\n new google.maps.LatLng( 0.461624320000000E+02, -0.118945241000000E+03),\n new google.maps.LatLng( 0.461643520000000E+02, -0.118941385000000E+03),\n new google.maps.LatLng( 0.461628000000000E+02, -0.118933689000000E+03),\n new google.maps.LatLng( 0.461647520000000E+02, -0.118941113000000E+03),\n new google.maps.LatLng( 0.461656160000000E+02, -0.118940457000000E+03),\n new google.maps.LatLng( 0.461668320000000E+02, -0.118940649000000E+03),\n new google.maps.LatLng( 0.461677920000000E+02, -0.118939641000000E+03),\n new google.maps.LatLng( 0.461696160000000E+02, -0.118940105000000E+03),\n new google.maps.LatLng( 0.461704970000000E+02, -0.118938969000000E+03),\n new google.maps.LatLng( 0.461703200000000E+02, -0.118940473000000E+03),\n new google.maps.LatLng( 0.461721770000000E+02, -0.118940697000000E+03),\n new google.maps.LatLng( 0.461722410000000E+02, -0.118938937000000E+03),\n new google.maps.LatLng( 0.461733770000000E+02, -0.118938713000000E+03),\n new google.maps.LatLng( 0.461736490000000E+02, -0.118940953000000E+03),\n new google.maps.LatLng( 0.461741930000000E+02, -0.118938665000000E+03),\n new google.maps.LatLng( 0.461756970000000E+02, -0.118937769000000E+03),\n new google.maps.LatLng( 0.461768970000000E+02, -0.118938057000000E+03),\n new google.maps.LatLng( 0.461763530000000E+02, -0.118941753000000E+03),\n new google.maps.LatLng( 0.461766410000000E+02, -0.118942777000000E+03),\n new google.maps.LatLng( 0.461758090000000E+02, -0.118944121000000E+03),\n new google.maps.LatLng( 0.461744330000000E+02, -0.118944121000000E+03),\n new google.maps.LatLng( 0.461717600000000E+02, -0.118945033000000E+03),\n new google.maps.LatLng( 0.461717760000000E+02, -0.118946809000000E+03),\n new google.maps.LatLng( 0.461739040000000E+02, -0.118945753000000E+03),\n new google.maps.LatLng( 0.461743040000000E+02, -0.118946313000000E+03),\n new google.maps.LatLng( 0.461704960000000E+02, -0.118949818000000E+03),\n new google.maps.LatLng( 0.461684800000000E+02, -0.118953018000000E+03),\n new google.maps.LatLng( 0.461649760000000E+02, -0.118948409000000E+03),\n new google.maps.LatLng( 0.461653920000000E+02, -0.118947689000000E+03),\n new google.maps.LatLng( 0.461671840000000E+02, -0.118947673000000E+03),\n new google.maps.LatLng( 0.461685280000000E+02, -0.118948169000000E+03),\n new google.maps.LatLng( 0.461695360000000E+02, -0.118949546000000E+03),\n new google.maps.LatLng( 0.461703680000000E+02, -0.118947241000000E+03),\n new google.maps.LatLng( 0.461713120000000E+02, -0.118946329000000E+03),\n new google.maps.LatLng( 0.461716160000000E+02, -0.118944905000000E+03),\n new google.maps.LatLng( 0.461678080000000E+02, -0.118944201000000E+03),\n new google.maps.LatLng( 0.461677600000000E+02, -0.118942649000000E+03),\n new google.maps.LatLng( 0.461670560000000E+02, -0.118941161000000E+03),\n new google.maps.LatLng( 0.461659680000000E+02, -0.118940905000000E+03),\n new google.maps.LatLng( 0.461648000000000E+02, -0.118941721000000E+03),\n new google.maps.LatLng( 0.461627840000000E+02, -0.118945193000000E+03),\n new google.maps.LatLng( 0.461651680000000E+02, -0.118947465000000E+03),\n new google.maps.LatLng( 0.461649600000000E+02, -0.118948121000000E+03),\n new google.maps.LatLng( 0.461643510000000E+02, -0.118947583000000E+03),\n new google.maps.LatLng( 0.461642634358398E+02, -0.118948351349805E+03),\n new google.maps.LatLng( 0.461675680000000E+02, -0.118953578000000E+03),\n new google.maps.LatLng( 0.461653760000000E+02, -0.118957306000000E+03),\n new google.maps.LatLng( 0.461638720000000E+02, -0.118958554000000E+03),\n new google.maps.LatLng( 0.461638560000000E+02, -0.118959834000000E+03),\n new google.maps.LatLng( 0.461598240000000E+02, -0.118952266000000E+03),\n new google.maps.LatLng( 0.461600099146484E+02, -0.118953673804492E+03),\n new google.maps.LatLng( 0.461592160000000E+02, -0.118953962000000E+03),\n new google.maps.LatLng( 0.461580000000000E+02, -0.118952490000000E+03),\n new google.maps.LatLng( 0.461601120000000E+02, -0.118957210000000E+03),\n new google.maps.LatLng( 0.461593920000000E+02, -0.118959802000000E+03),\n new google.maps.LatLng( 0.461598560000000E+02, -0.118961770000000E+03),\n new google.maps.LatLng( 0.461591840000000E+02, -0.118961754000000E+03),\n new google.maps.LatLng( 0.461584160000000E+02, -0.118960666000000E+03),\n new google.maps.LatLng( 0.461570720000000E+02, -0.118960202000000E+03),\n new google.maps.LatLng( 0.461551520000000E+02, -0.118961626000000E+03),\n new google.maps.LatLng( 0.461541920000000E+02, -0.118961466000000E+03),\n new google.maps.LatLng( 0.461540640000000E+02, -0.118960810000000E+03),\n new google.maps.LatLng( 0.461528480000000E+02, -0.118960346000000E+03),\n new google.maps.LatLng( 0.461522400000000E+02, -0.118960362000000E+03),\n new google.maps.LatLng( 0.461516640000000E+02, -0.118961114000000E+03),\n new google.maps.LatLng( 0.461508160000000E+02, -0.118960522000000E+03),\n new google.maps.LatLng( 0.461500960000000E+02, -0.118958874000000E+03),\n new google.maps.LatLng( 0.461486720000000E+02, -0.118962522000000E+03),\n new google.maps.LatLng( 0.461487360000000E+02, -0.118965786000000E+03),\n new google.maps.LatLng( 0.461474080000000E+02, -0.118961130000000E+03),\n new google.maps.LatLng( 0.461456640000000E+02, -0.118961130000000E+03),\n new google.maps.LatLng( 0.461450560000000E+02, -0.118963418000000E+03),\n new google.maps.LatLng( 0.461415840000000E+02, -0.118959274000000E+03),\n new google.maps.LatLng( 0.461419040000000E+02, -0.118962522000000E+03),\n new google.maps.LatLng( 0.461405760000000E+02, -0.118959514000000E+03),\n new google.maps.LatLng( 0.461386880000000E+02, -0.118958202000000E+03),\n new google.maps.LatLng( 0.461363840000000E+02, -0.118957722000000E+03),\n new google.maps.LatLng( 0.461367680000000E+02, -0.118960202000000E+03),\n new google.maps.LatLng( 0.461356640000000E+02, -0.118958266000000E+03),\n new google.maps.LatLng( 0.461341920000000E+02, -0.118958266000000E+03),\n new google.maps.LatLng( 0.461360640000000E+02, -0.118960762000000E+03),\n new google.maps.LatLng( 0.461333280000000E+02, -0.118958522000000E+03),\n new google.maps.LatLng( 0.461296160000000E+02, -0.118959370000000E+03),\n new google.maps.LatLng( 0.461284320000000E+02, -0.118960874000000E+03),\n new google.maps.LatLng( 0.461346400000000E+02, -0.118964778000000E+03),\n new google.maps.LatLng( 0.461413120000000E+02, -0.118966986000000E+03),\n new google.maps.LatLng( 0.461420960000000E+02, -0.118966842000000E+03),\n new google.maps.LatLng( 0.461555680000000E+02, -0.118973787000000E+03),\n new google.maps.LatLng( 0.461583360000000E+02, -0.118973163000000E+03),\n new google.maps.LatLng( 0.461595360000000E+02, -0.118973515000000E+03),\n new google.maps.LatLng( 0.461692640000000E+02, -0.118980827000000E+03),\n new google.maps.LatLng( 0.461758080000000E+02, -0.118989436000000E+03),\n new google.maps.LatLng( 0.461825120000000E+02, -0.119000172000000E+03),\n new google.maps.LatLng( 0.461839360000000E+02, -0.119004412000000E+03),\n new google.maps.LatLng( 0.461834560000000E+02, -0.119007533000000E+03),\n new google.maps.LatLng( 0.461821600000000E+02, -0.119009949000000E+03),\n new google.maps.LatLng( 0.461820000000000E+02, -0.119008413000000E+03),\n new google.maps.LatLng( 0.461833760000000E+02, -0.119004700000000E+03),\n new google.maps.LatLng( 0.461803200000000E+02, -0.119006205000000E+03),\n new google.maps.LatLng( 0.461790400000000E+02, -0.119008381000000E+03),\n new google.maps.LatLng( 0.461840940000000E+02, -0.119014629000000E+03),\n new google.maps.LatLng( 0.461867620000000E+02, -0.119016430000000E+03),\n new google.maps.LatLng( 0.461873280000000E+02, -0.119015869000000E+03),\n new google.maps.LatLng( 0.461865847468750E+02, -0.119013639634375E+03),\n new google.maps.LatLng( 0.461845580000000E+02, -0.119011824000000E+03),\n new google.maps.LatLng( 0.461836350000000E+02, -0.119008509000000E+03),\n new google.maps.LatLng( 0.461843310000000E+02, -0.119006151000000E+03),\n new google.maps.LatLng( 0.461853678251562E+02, -0.119005654303438E+03),\n new google.maps.LatLng( 0.461864620000000E+02, -0.119006352000000E+03),\n new google.maps.LatLng( 0.461886190000000E+02, -0.119010838000000E+03),\n new google.maps.LatLng( 0.461903230000000E+02, -0.119013100000000E+03),\n new google.maps.LatLng( 0.461925600000000E+02, -0.119014478000000E+03),\n new google.maps.LatLng( 0.461940870000000E+02, -0.119016537000000E+03),\n new google.maps.LatLng( 0.461964860000000E+02, -0.119021002000000E+03),\n new google.maps.LatLng( 0.461961510000000E+02, -0.119022332000000E+03),\n new google.maps.LatLng( 0.461952730000000E+02, -0.119022244000000E+03),\n new google.maps.LatLng( 0.461992290000000E+02, -0.119025242000000E+03),\n new google.maps.LatLng( 0.461996820000000E+02, -0.119027173000000E+03),\n new google.maps.LatLng( 0.462029040000000E+02, -0.119027448000000E+03),\n new google.maps.LatLng( 0.462068160000000E+02, -0.119026926000000E+03),\n new google.maps.LatLng( 0.462094240000000E+02, -0.119024845000000E+03),\n new google.maps.LatLng( 0.462139040000000E+02, -0.119020061000000E+03),\n new google.maps.LatLng( 0.462200480000000E+02, -0.119008861000000E+03),\n new google.maps.LatLng( 0.462252330000000E+02, -0.118993756000000E+03),\n new google.maps.LatLng( 0.462296810000000E+02, -0.118984956000000E+03),\n new google.maps.LatLng( 0.462313130000000E+02, -0.118982556000000E+03),\n new google.maps.LatLng( 0.462319210000000E+02, -0.118982652000000E+03),\n new google.maps.LatLng( 0.462342410000000E+02, -0.118978571000000E+03),\n new google.maps.LatLng( 0.462357610000000E+02, -0.118974939000000E+03),\n new google.maps.LatLng( 0.462365610000000E+02, -0.118950282000000E+03),\n new google.maps.LatLng( 0.462397290000000E+02, -0.118932761000000E+03),\n new google.maps.LatLng( 0.462420330000000E+02, -0.118908648000000E+03),\n new google.maps.LatLng( 0.462435530000000E+02, -0.118902520000000E+03),\n new google.maps.LatLng( 0.462442730000000E+02, -0.118902440000000E+03),\n new google.maps.LatLng( 0.462461610000000E+02, -0.118895703000000E+03),\n new google.maps.LatLng( 0.462475220000000E+02, -0.118885911000000E+03),\n new google.maps.LatLng( 0.462475540000000E+02, -0.118879094000000E+03),\n new google.maps.LatLng( 0.462463700000000E+02, -0.118878662000000E+03),\n new google.maps.LatLng( 0.462461620000000E+02, -0.118875540000000E+03),\n new google.maps.LatLng( 0.462463230000000E+02, -0.118873597000000E+03),\n new google.maps.LatLng( 0.462478790000000E+02, -0.118869975000000E+03),\n new google.maps.LatLng( 0.462475620000000E+02, -0.118862925000000E+03),\n new google.maps.LatLng( 0.462486160000000E+02, -0.118856041000000E+03),\n new google.maps.LatLng( 0.462509590000000E+02, -0.118852711000000E+03),\n new google.maps.LatLng( 0.462569480000000E+02, -0.118846653000000E+03),\n new google.maps.LatLng( 0.462582510000000E+02, -0.118847181000000E+03),\n new google.maps.LatLng( 0.462585480000000E+02, -0.118847807000000E+03),\n new google.maps.LatLng( 0.462589360000000E+02, -0.118847643000000E+03),\n new google.maps.LatLng( 0.462684230000000E+02, -0.118840630000000E+03),\n new google.maps.LatLng( 0.462738420000000E+02, -0.118825504000000E+03),\n new google.maps.LatLng( 0.462770420000000E+02, -0.118821319000000E+03),\n new google.maps.LatLng( 0.462847210000000E+02, -0.118813111000000E+03),\n new google.maps.LatLng( 0.462880360000000E+02, -0.118800683000000E+03),\n new google.maps.LatLng( 0.462888810000000E+02, -0.118795540000000E+03),\n new google.maps.LatLng( 0.462879640000000E+02, -0.118783342000000E+03),\n new google.maps.LatLng( 0.462888770000000E+02, -0.118776454000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.471861190000000E+02, -0.122575637000000E+03),\n new google.maps.LatLng( 0.471849190000000E+02, -0.122573837000000E+03),\n new google.maps.LatLng( 0.471752750000000E+02, -0.122574102000000E+03),\n new google.maps.LatLng( 0.471753120000000E+02, -0.122577141000000E+03),\n new google.maps.LatLng( 0.471738190000000E+02, -0.122578737000000E+03),\n new google.maps.LatLng( 0.471698190000000E+02, -0.122580537000000E+03),\n new google.maps.LatLng( 0.471653190000000E+02, -0.122580737000000E+03),\n new google.maps.LatLng( 0.471609190000000E+02, -0.122582037000000E+03),\n new google.maps.LatLng( 0.471609190000000E+02, -0.122592238000000E+03),\n new google.maps.LatLng( 0.471597190000000E+02, -0.122592438000000E+03),\n new google.maps.LatLng( 0.471594620000000E+02, -0.122602927000000E+03),\n new google.maps.LatLng( 0.471442440000000E+02, -0.122599692000000E+03),\n new google.maps.LatLng( 0.471412600000000E+02, -0.122602349000000E+03),\n new google.maps.LatLng( 0.471412600000000E+02, -0.122602349000000E+03),\n new google.maps.LatLng( 0.471352960000000E+02, -0.122608005000000E+03),\n new google.maps.LatLng( 0.471306450000000E+02, -0.122614756000000E+03),\n new google.maps.LatLng( 0.471272840000000E+02, -0.122620888000000E+03),\n new google.maps.LatLng( 0.471243190000000E+02, -0.122624559000000E+03),\n new google.maps.LatLng( 0.471226190000000E+02, -0.122625039000000E+03),\n new google.maps.LatLng( 0.471044190000000E+02, -0.122624738000000E+03),\n new google.maps.LatLng( 0.471044190000000E+02, -0.122624738000000E+03),\n new google.maps.LatLng( 0.471054190000000E+02, -0.122628839000000E+03),\n new google.maps.LatLng( 0.471043190000000E+02, -0.122630739000000E+03),\n new google.maps.LatLng( 0.471045190000000E+02, -0.122637939000000E+03),\n new google.maps.LatLng( 0.471064190000000E+02, -0.122641139000000E+03),\n new google.maps.LatLng( 0.471069190000000E+02, -0.122649139000000E+03),\n new google.maps.LatLng( 0.471086190000000E+02, -0.122654440000000E+03),\n new google.maps.LatLng( 0.471130190000000E+02, -0.122656740000000E+03),\n new google.maps.LatLng( 0.471168190000000E+02, -0.122666140000000E+03),\n new google.maps.LatLng( 0.471190960000000E+02, -0.122664496000000E+03),\n new google.maps.LatLng( 0.471190960000000E+02, -0.122664496000000E+03),\n new google.maps.LatLng( 0.471207190000000E+02, -0.122662440000000E+03),\n new google.maps.LatLng( 0.471284190000000E+02, -0.122655640000000E+03),\n new google.maps.LatLng( 0.471346190000000E+02, -0.122645339000000E+03),\n new google.maps.LatLng( 0.471358190000000E+02, -0.122636439000000E+03),\n new google.maps.LatLng( 0.471392190000000E+02, -0.122630239000000E+03),\n new google.maps.LatLng( 0.471476190000000E+02, -0.122622739000000E+03),\n new google.maps.LatLng( 0.471569190000000E+02, -0.122616238000000E+03),\n new google.maps.LatLng( 0.471654190000000E+02, -0.122614538000000E+03),\n new google.maps.LatLng( 0.471689190000000E+02, -0.122613138000000E+03),\n new google.maps.LatLng( 0.471751190000000E+02, -0.122597438000000E+03),\n new google.maps.LatLng( 0.471759190000000E+02, -0.122592738000000E+03),\n new google.maps.LatLng( 0.471769190000000E+02, -0.122590538000000E+03),\n new google.maps.LatLng( 0.471791130000000E+02, -0.122589712000000E+03),\n new google.maps.LatLng( 0.471812190000000E+02, -0.122587338000000E+03),\n new google.maps.LatLng( 0.471812190000000E+02, -0.122587338000000E+03),\n new google.maps.LatLng( 0.471836190000000E+02, -0.122586238000000E+03),\n new google.maps.LatLng( 0.471868190000000E+02, -0.122583938000000E+03),\n new google.maps.LatLng( 0.471868190000000E+02, -0.122583438000000E+03),\n new google.maps.LatLng( 0.471849190000000E+02, -0.122584138000000E+03),\n new google.maps.LatLng( 0.471843190000000E+02, -0.122583238000000E+03),\n new google.maps.LatLng( 0.471854190000000E+02, -0.122576037000000E+03),\n new google.maps.LatLng( 0.471861190000000E+02, -0.122575637000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.475134200000000E+02, -0.122248155000000E+03),\n new google.maps.LatLng( 0.475095210000000E+02, -0.122236233000000E+03),\n new google.maps.LatLng( 0.475003210000000E+02, -0.122218633000000E+03),\n new google.maps.LatLng( 0.475003210000000E+02, -0.122218633000000E+03),\n new google.maps.LatLng( 0.474981210000000E+02, -0.122220433000000E+03),\n new google.maps.LatLng( 0.474942400000000E+02, -0.122219512000000E+03),\n new google.maps.LatLng( 0.474909210000000E+02, -0.122223232000000E+03),\n new google.maps.LatLng( 0.474909210000000E+02, -0.122225933000000E+03),\n new google.maps.LatLng( 0.474845210000000E+02, -0.122227633000000E+03),\n new google.maps.LatLng( 0.474826210000000E+02, -0.122230833000000E+03),\n new google.maps.LatLng( 0.474827210000000E+02, -0.122231533000000E+03),\n new google.maps.LatLng( 0.474797090000000E+02, -0.122233163000000E+03),\n new google.maps.LatLng( 0.474763090000000E+02, -0.122227496000000E+03),\n new google.maps.LatLng( 0.474752850000000E+02, -0.122224362000000E+03),\n new google.maps.LatLng( 0.474753060000000E+02, -0.122222770000000E+03),\n new google.maps.LatLng( 0.474749220000000E+02, -0.122222732000000E+03),\n new google.maps.LatLng( 0.474765210000000E+02, -0.122231232000000E+03),\n new google.maps.LatLng( 0.474781210000000E+02, -0.122233833000000E+03),\n new google.maps.LatLng( 0.474790210000000E+02, -0.122237933000000E+03),\n new google.maps.LatLng( 0.474780210000000E+02, -0.122242633000000E+03),\n new google.maps.LatLng( 0.474749210000000E+02, -0.122248533000000E+03),\n new google.maps.LatLng( 0.474748210000000E+02, -0.122252033000000E+03),\n new google.maps.LatLng( 0.474748210000000E+02, -0.122252033000000E+03),\n new google.maps.LatLng( 0.474789210000000E+02, -0.122258933000000E+03),\n new google.maps.LatLng( 0.474833420000000E+02, -0.122259626000000E+03),\n new google.maps.LatLng( 0.474825210000000E+02, -0.122266633000000E+03),\n new google.maps.LatLng( 0.474835210000000E+02, -0.122268633000000E+03),\n new google.maps.LatLng( 0.474856210000000E+02, -0.122267533000000E+03),\n new google.maps.LatLng( 0.474873210000000E+02, -0.122265233000000E+03),\n new google.maps.LatLng( 0.474885210000000E+02, -0.122265933000000E+03),\n new google.maps.LatLng( 0.474914210000000E+02, -0.122273934000000E+03),\n new google.maps.LatLng( 0.474891440000000E+02, -0.122280290000000E+03),\n new google.maps.LatLng( 0.474896210000000E+02, -0.122280634000000E+03),\n new google.maps.LatLng( 0.474924210000000E+02, -0.122280334000000E+03),\n new google.maps.LatLng( 0.474981210000000E+02, -0.122278534000000E+03),\n new google.maps.LatLng( 0.474943210000000E+02, -0.122273434000000E+03),\n new google.maps.LatLng( 0.474901210000000E+02, -0.122269734000000E+03),\n new google.maps.LatLng( 0.474891210000000E+02, -0.122265533000000E+03),\n new google.maps.LatLng( 0.474909180000000E+02, -0.122265171000000E+03),\n new google.maps.LatLng( 0.474918310000000E+02, -0.122265564000000E+03),\n new google.maps.LatLng( 0.474993210000000E+02, -0.122274034000000E+03),\n new google.maps.LatLng( 0.474999600000000E+02, -0.122275767000000E+03),\n new google.maps.LatLng( 0.475018480000000E+02, -0.122278062000000E+03),\n new google.maps.LatLng( 0.475037710000000E+02, -0.122280017000000E+03),\n new google.maps.LatLng( 0.475043210000000E+02, -0.122280034000000E+03),\n new google.maps.LatLng( 0.475043210000000E+02, -0.122280034000000E+03),\n new google.maps.LatLng( 0.475075210000000E+02, -0.122278934000000E+03),\n new google.maps.LatLng( 0.475072210000000E+02, -0.122274534000000E+03),\n new google.maps.LatLng( 0.475097210000000E+02, -0.122270534000000E+03),\n new google.maps.LatLng( 0.475169210000000E+02, -0.122270434000000E+03),\n new google.maps.LatLng( 0.475100210000000E+02, -0.122259734000000E+03),\n new google.maps.LatLng( 0.475133210000000E+02, -0.122250933000000E+03),\n new google.maps.LatLng( 0.475134200000000E+02, -0.122248155000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.478923950000000E+02, -0.118139663000000E+03),\n new google.maps.LatLng( 0.478941090000000E+02, -0.118139356000000E+03),\n new google.maps.LatLng( 0.478947940000000E+02, -0.118138675000000E+03),\n new google.maps.LatLng( 0.478982420000000E+02, -0.118133031000000E+03),\n new google.maps.LatLng( 0.479007080000000E+02, -0.118120778000000E+03),\n new google.maps.LatLng( 0.479003460000000E+02, -0.118114490000000E+03),\n new google.maps.LatLng( 0.479003460000000E+02, -0.118114490000000E+03),\n new google.maps.LatLng( 0.479003020000000E+02, -0.118111092000000E+03),\n new google.maps.LatLng( 0.479011030000000E+02, -0.118108476000000E+03),\n new google.maps.LatLng( 0.479046480000000E+02, -0.118101105000000E+03),\n new google.maps.LatLng( 0.479069810000000E+02, -0.118093255000000E+03),\n new google.maps.LatLng( 0.479058400000000E+02, -0.118084724000000E+03),\n new google.maps.LatLng( 0.479057700000000E+02, -0.118076378000000E+03),\n new google.maps.LatLng( 0.479049500000000E+02, -0.118075581000000E+03),\n new google.maps.LatLng( 0.479039220000000E+02, -0.118075716000000E+03),\n new google.maps.LatLng( 0.479021390000000E+02, -0.118077279000000E+03),\n new google.maps.LatLng( 0.479025510000000E+02, -0.118079013000000E+03),\n new google.maps.LatLng( 0.479005160000000E+02, -0.118080644000000E+03),\n new google.maps.LatLng( 0.478987800000000E+02, -0.118080609000000E+03),\n new google.maps.LatLng( 0.478950100000000E+02, -0.118074695000000E+03),\n new google.maps.LatLng( 0.478933650000000E+02, -0.118074185000000E+03),\n new google.maps.LatLng( 0.478915140000000E+02, -0.118074626000000E+03),\n new google.maps.LatLng( 0.478862570000000E+02, -0.118078226000000E+03),\n new google.maps.LatLng( 0.478820980000000E+02, -0.118078293000000E+03),\n new google.maps.LatLng( 0.478769800000000E+02, -0.118076151000000E+03),\n new google.maps.LatLng( 0.478770260000000E+02, -0.118072076000000E+03),\n new google.maps.LatLng( 0.478753020000000E+02, -0.118068950000000E+03),\n new google.maps.LatLng( 0.478698040000000E+02, -0.118066540000000E+03),\n new google.maps.LatLng( 0.478699640000000E+02, -0.118063823000000E+03),\n new google.maps.LatLng( 0.478727520000000E+02, -0.118060665000000E+03),\n new google.maps.LatLng( 0.478741460000000E+02, -0.118056453000000E+03),\n new google.maps.LatLng( 0.478744120000000E+02, -0.118044463000000E+03),\n new google.maps.LatLng( 0.478752780000000E+02, -0.118041471000000E+03),\n new google.maps.LatLng( 0.478729770000000E+02, -0.118034885000000E+03),\n new google.maps.LatLng( 0.478723600000000E+02, -0.118035089000000E+03),\n new google.maps.LatLng( 0.478713320000000E+02, -0.118036992000000E+03),\n new google.maps.LatLng( 0.478709440000000E+02, -0.118036856000000E+03),\n new google.maps.LatLng( 0.478701890000000E+02, -0.118034581000000E+03),\n new google.maps.LatLng( 0.478700740000000E+02, -0.118028909000000E+03),\n new google.maps.LatLng( 0.478679470000000E+02, -0.118024359000000E+03),\n new google.maps.LatLng( 0.478665980000000E+02, -0.118022968000000E+03),\n new google.maps.LatLng( 0.478655680000000E+02, -0.118018995000000E+03),\n new google.maps.LatLng( 0.478707560000000E+02, -0.118018618000000E+03),\n new google.maps.LatLng( 0.478756020000000E+02, -0.118020615000000E+03),\n new google.maps.LatLng( 0.478773380000000E+02, -0.118020580000000E+03),\n new google.maps.LatLng( 0.478819520000000E+02, -0.118014699000000E+03),\n new google.maps.LatLng( 0.478870020000000E+02, -0.118014694000000E+03),\n new google.maps.LatLng( 0.478918240000000E+02, -0.118011904000000E+03),\n new google.maps.LatLng( 0.478998480000000E+02, -0.118019270000000E+03),\n new google.maps.LatLng( 0.479028890000000E+02, -0.118023924000000E+03),\n new google.maps.LatLng( 0.479061800000000E+02, -0.118024703000000E+03),\n new google.maps.LatLng( 0.479131920000000E+02, -0.118016607000000E+03),\n new google.maps.LatLng( 0.479154310000000E+02, -0.118014872000000E+03),\n new google.maps.LatLng( 0.479162760000000E+02, -0.118014871000000E+03),\n new google.maps.LatLng( 0.479183090000000E+02, -0.118012421000000E+03),\n new google.maps.LatLng( 0.479263470000000E+02, -0.117999541000000E+03),\n new google.maps.LatLng( 0.479281980000000E+02, -0.118001082000000E+03),\n new google.maps.LatLng( 0.479327030000000E+02, -0.118006627000000E+03),\n new google.maps.LatLng( 0.479385760000000E+02, -0.118006179000000E+03),\n new google.maps.LatLng( 0.479446510000000E+02, -0.118001082000000E+03),\n new google.maps.LatLng( 0.479503000000000E+02, -0.117993481000000E+03),\n new google.maps.LatLng( 0.479524760000000E+02, -0.117980081000000E+03),\n new google.maps.LatLng( 0.479516540000000E+02, -0.117978753000000E+03),\n new google.maps.LatLng( 0.479479990000000E+02, -0.117976608000000E+03),\n new google.maps.LatLng( 0.479477780000000E+02, -0.117941980000000E+03),\n new google.maps.LatLng( 0.479495600000000E+02, -0.117930687000000E+03),\n new google.maps.LatLng( 0.479482340000000E+02, -0.117927115000000E+03),\n new google.maps.LatLng( 0.479466570000000E+02, -0.117918850000000E+03),\n new google.maps.LatLng( 0.479460620000000E+02, -0.117914462000000E+03),\n new google.maps.LatLng( 0.479461300000000E+02, -0.117908816000000E+03),\n new google.maps.LatLng( 0.479255160000000E+02, -0.117908011000000E+03),\n new google.maps.LatLng( 0.479202340000000E+02, -0.117896896000000E+03),\n new google.maps.LatLng( 0.479140370000000E+02, -0.117885887000000E+03),\n new google.maps.LatLng( 0.479140370000000E+02, -0.117885887000000E+03),\n new google.maps.LatLng( 0.479138780000000E+02, -0.117887962000000E+03),\n new google.maps.LatLng( 0.479098800000000E+02, -0.117891738000000E+03),\n new google.maps.LatLng( 0.479018580000000E+02, -0.117890351000000E+03),\n new google.maps.LatLng( 0.479021300000000E+02, -0.117884370000000E+03),\n new google.maps.LatLng( 0.479036920000000E+02, -0.117876074000000E+03),\n new google.maps.LatLng( 0.479101510000000E+02, -0.117867818000000E+03),\n new google.maps.LatLng( 0.479114780000000E+02, -0.117865271000000E+03),\n new google.maps.LatLng( 0.479074330000000E+02, -0.117865267000000E+03),\n new google.maps.LatLng( 0.479067920000000E+02, -0.117867135000000E+03),\n new google.maps.LatLng( 0.479049630000000E+02, -0.117870158000000E+03),\n new google.maps.LatLng( 0.479043470000000E+02, -0.117870417000000E+03),\n new google.maps.LatLng( 0.479032180000000E+02, -0.117869857000000E+03),\n new google.maps.LatLng( 0.479033510000000E+02, -0.117865211000000E+03),\n new google.maps.LatLng( 0.478673280000000E+02, -0.117865397000000E+03),\n new google.maps.LatLng( 0.478604880000000E+02, -0.117866157000000E+03),\n new google.maps.LatLng( 0.478472260000000E+02, -0.117865954000000E+03),\n new google.maps.LatLng( 0.478453440000000E+02, -0.117866426000000E+03),\n new google.maps.LatLng( 0.478453440000000E+02, -0.117866426000000E+03),\n new google.maps.LatLng( 0.478476020000000E+02, -0.117876072000000E+03),\n new google.maps.LatLng( 0.478477410000000E+02, -0.117882051000000E+03),\n new google.maps.LatLng( 0.478468050000000E+02, -0.117883885000000E+03),\n new google.maps.LatLng( 0.478442460000000E+02, -0.117884940000000E+03),\n new google.maps.LatLng( 0.478409560000000E+02, -0.117885350000000E+03),\n new google.maps.LatLng( 0.478381460000000E+02, -0.117887933000000E+03),\n new google.maps.LatLng( 0.478361390000000E+02, -0.117899542000000E+03),\n new google.maps.LatLng( 0.478365060000000E+02, -0.117902835000000E+03),\n new google.maps.LatLng( 0.478375580000000E+02, -0.117905787000000E+03),\n new google.maps.LatLng( 0.478373760000000E+02, -0.117906432000000E+03),\n new google.maps.LatLng( 0.478359130000000E+02, -0.117906535000000E+03),\n new google.maps.LatLng( 0.478355020000000E+02, -0.117907248000000E+03),\n new google.maps.LatLng( 0.478364400000000E+02, -0.117911083000000E+03),\n new google.maps.LatLng( 0.478361890000000E+02, -0.117914342000000E+03),\n new google.maps.LatLng( 0.478338570000000E+02, -0.117915463000000E+03),\n new google.maps.LatLng( 0.478333780000000E+02, -0.117917669000000E+03),\n new google.maps.LatLng( 0.478325330000000E+02, -0.117918722000000E+03),\n new google.maps.LatLng( 0.478303160000000E+02, -0.117918722000000E+03),\n new google.maps.LatLng( 0.478279170000000E+02, -0.117921438000000E+03),\n new google.maps.LatLng( 0.478250840000000E+02, -0.117927683000000E+03),\n new google.maps.LatLng( 0.478237130000000E+02, -0.117933893000000E+03),\n new google.maps.LatLng( 0.478239420000000E+02, -0.117935997000000E+03),\n new google.maps.LatLng( 0.478250610000000E+02, -0.117937524000000E+03),\n new google.maps.LatLng( 0.478278940000000E+02, -0.117950217000000E+03),\n new google.maps.LatLng( 0.478287840000000E+02, -0.117957445000000E+03),\n new google.maps.LatLng( 0.478299940000000E+02, -0.117961281000000E+03),\n new google.maps.LatLng( 0.478319590000000E+02, -0.117964302000000E+03),\n new google.maps.LatLng( 0.478329180000000E+02, -0.117966882000000E+03),\n new google.maps.LatLng( 0.478336010000000E+02, -0.117973569000000E+03),\n new google.maps.LatLng( 0.478347650000000E+02, -0.117978967000000E+03),\n new google.maps.LatLng( 0.478352410000000E+02, -0.117988675000000E+03),\n new google.maps.LatLng( 0.478345540000000E+02, -0.117991321000000E+03),\n new google.maps.LatLng( 0.478328390000000E+02, -0.117994883000000E+03),\n new google.maps.LatLng( 0.478252950000000E+02, -0.118003146000000E+03),\n new google.maps.LatLng( 0.478160200000000E+02, -0.118009502000000E+03),\n new google.maps.LatLng( 0.478111310000000E+02, -0.118011475000000E+03),\n new google.maps.LatLng( 0.478074520000000E+02, -0.118011546000000E+03),\n new google.maps.LatLng( 0.478059210000000E+02, -0.118013006000000E+03),\n new google.maps.LatLng( 0.478051450000000E+02, -0.118014669000000E+03),\n new google.maps.LatLng( 0.478048990000000E+02, -0.118029119000000E+03),\n new google.maps.LatLng( 0.478033920000000E+02, -0.118035565000000E+03),\n new google.maps.LatLng( 0.478005590000000E+02, -0.118040077000000E+03),\n new google.maps.LatLng( 0.478009710000000E+02, -0.118043944000000E+03),\n new google.maps.LatLng( 0.478005600000000E+02, -0.118047234000000E+03),\n new google.maps.LatLng( 0.478015200000000E+02, -0.118049133000000E+03),\n new google.maps.LatLng( 0.477997150000000E+02, -0.118052187000000E+03),\n new google.maps.LatLng( 0.477996690000000E+02, -0.118052763000000E+03),\n new google.maps.LatLng( 0.478006750000000E+02, -0.118053374000000E+03),\n new google.maps.LatLng( 0.477992350000000E+02, -0.118059445000000E+03),\n new google.maps.LatLng( 0.477991900000000E+02, -0.118061887000000E+03),\n new google.maps.LatLng( 0.477996470000000E+02, -0.118064769000000E+03),\n new google.maps.LatLng( 0.478009490000000E+02, -0.118068229000000E+03),\n new google.maps.LatLng( 0.478006290000000E+02, -0.118072300000000E+03),\n new google.maps.LatLng( 0.478014740000000E+02, -0.118073250000000E+03),\n new google.maps.LatLng( 0.478040340000000E+02, -0.118074336000000E+03),\n new google.maps.LatLng( 0.478071640000000E+02, -0.118077694000000E+03),\n new google.maps.LatLng( 0.478075750000000E+02, -0.118079357000000E+03),\n new google.maps.LatLng( 0.478099970000000E+02, -0.118081936000000E+03),\n new google.maps.LatLng( 0.478120540000000E+02, -0.118082513000000E+03),\n new google.maps.LatLng( 0.478152300000000E+02, -0.118084855000000E+03),\n new google.maps.LatLng( 0.478204600000000E+02, -0.118094630000000E+03),\n new google.maps.LatLng( 0.478241390000000E+02, -0.118095345000000E+03),\n new google.maps.LatLng( 0.478280250000000E+02, -0.118092395000000E+03),\n new google.maps.LatLng( 0.478294640000000E+02, -0.118092701000000E+03),\n new google.maps.LatLng( 0.478300350000000E+02, -0.118093923000000E+03),\n new google.maps.LatLng( 0.478303990000000E+02, -0.118100575000000E+03),\n new google.maps.LatLng( 0.478331850000000E+02, -0.118107264000000E+03),\n new google.maps.LatLng( 0.478341870000000E+02, -0.118114323000000E+03),\n new google.maps.LatLng( 0.478351000000000E+02, -0.118116055000000E+03),\n new google.maps.LatLng( 0.478374990000000E+02, -0.118118434000000E+03),\n new google.maps.LatLng( 0.478386410000000E+02, -0.118118877000000E+03),\n new google.maps.LatLng( 0.478422970000000E+02, -0.118118881000000E+03),\n new google.maps.LatLng( 0.478450180000000E+02, -0.118117492000000E+03),\n new google.maps.LatLng( 0.478459550000000E+02, -0.118117561000000E+03),\n new google.maps.LatLng( 0.478504340000000E+02, -0.118118618000000E+03),\n new google.maps.LatLng( 0.478542030000000E+02, -0.118121067000000E+03),\n new google.maps.LatLng( 0.478563500000000E+02, -0.118121748000000E+03),\n new google.maps.LatLng( 0.478598240000000E+02, -0.118121718000000E+03),\n new google.maps.LatLng( 0.478611020000000E+02, -0.118124165000000E+03),\n new google.maps.LatLng( 0.478646910000000E+02, -0.118128042000000E+03),\n new google.maps.LatLng( 0.478712980000000E+02, -0.118133537000000E+03),\n new google.maps.LatLng( 0.478789340000000E+02, -0.118135836000000E+03),\n new google.maps.LatLng( 0.478802600000000E+02, -0.118137941000000E+03),\n new google.maps.LatLng( 0.478859750000000E+02, -0.118142523000000E+03),\n new google.maps.LatLng( 0.478871600000000E+02, -0.118145435000000E+03),\n new google.maps.LatLng( 0.478871600000000E+02, -0.118145435000000E+03),\n new google.maps.LatLng( 0.478877360000000E+02, -0.118145647000000E+03),\n new google.maps.LatLng( 0.478888540000000E+02, -0.118141705000000E+03),\n new google.maps.LatLng( 0.478906130000000E+02, -0.118140208000000E+03),\n new google.maps.LatLng( 0.478923950000000E+02, -0.118139663000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.484047170000000E+02, -0.117795670000000E+03),\n new google.maps.LatLng( 0.484041890000000E+02, -0.117784551000000E+03),\n new google.maps.LatLng( 0.484027490000000E+02, -0.117781944000000E+03),\n new google.maps.LatLng( 0.484012620000000E+02, -0.117776522000000E+03),\n new google.maps.LatLng( 0.484079300000000E+02, -0.117763304000000E+03),\n new google.maps.LatLng( 0.484121050000000E+02, -0.117762178000000E+03),\n new google.maps.LatLng( 0.484233770000000E+02, -0.117761849000000E+03),\n new google.maps.LatLng( 0.484252250000000E+02, -0.117756387000000E+03),\n new google.maps.LatLng( 0.484261640000000E+02, -0.117761777000000E+03),\n new google.maps.LatLng( 0.484258920000000E+02, -0.117764696000000E+03),\n new google.maps.LatLng( 0.484244760000000E+02, -0.117768061000000E+03),\n new google.maps.LatLng( 0.484244530000000E+02, -0.117768542000000E+03),\n new google.maps.LatLng( 0.484252300000000E+02, -0.117768267000000E+03),\n new google.maps.LatLng( 0.484252300000000E+02, -0.117768267000000E+03),\n new google.maps.LatLng( 0.484252300000000E+02, -0.117767374000000E+03),\n new google.maps.LatLng( 0.484265320000000E+02, -0.117765965000000E+03),\n new google.maps.LatLng( 0.484284060000000E+02, -0.117767577000000E+03),\n new google.maps.LatLng( 0.484305770000000E+02, -0.117767678000000E+03),\n new google.maps.LatLng( 0.484303680000000E+02, -0.117760468000000E+03),\n new google.maps.LatLng( 0.484309140000000E+02, -0.117754356000000E+03),\n new google.maps.LatLng( 0.484320090000000E+02, -0.117749117000000E+03),\n new google.maps.LatLng( 0.484334270000000E+02, -0.117746543000000E+03),\n new google.maps.LatLng( 0.484353900000000E+02, -0.117745947000000E+03),\n new google.maps.LatLng( 0.484381130000000E+02, -0.117736016000000E+03),\n new google.maps.LatLng( 0.484377440000000E+02, -0.117725428000000E+03),\n new google.maps.LatLng( 0.484364980000000E+02, -0.117729754000000E+03),\n new google.maps.LatLng( 0.484349220000000E+02, -0.117726559000000E+03),\n new google.maps.LatLng( 0.484337130000000E+02, -0.117718043000000E+03),\n new google.maps.LatLng( 0.484338280000000E+02, -0.117715982000000E+03),\n new google.maps.LatLng( 0.484360690000000E+02, -0.117711485000000E+03),\n new google.maps.LatLng( 0.484386070000000E+02, -0.117698814000000E+03),\n new google.maps.LatLng( 0.484379440000000E+02, -0.117698093000000E+03),\n new google.maps.LatLng( 0.484370070000000E+02, -0.117698127000000E+03),\n new google.maps.LatLng( 0.484346310000000E+02, -0.117702041000000E+03),\n new google.maps.LatLng( 0.484343790000000E+02, -0.117703518000000E+03),\n new google.maps.LatLng( 0.484318650000000E+02, -0.117705440000000E+03),\n new google.maps.LatLng( 0.484263580000000E+02, -0.117708356000000E+03),\n new google.maps.LatLng( 0.484245760000000E+02, -0.117706536000000E+03),\n new google.maps.LatLng( 0.484243940000000E+02, -0.117698227000000E+03),\n new google.maps.LatLng( 0.484251710000000E+02, -0.117693386000000E+03),\n new google.maps.LatLng( 0.484254230000000E+02, -0.117693008000000E+03),\n new google.maps.LatLng( 0.484308150000000E+02, -0.117693249000000E+03),\n new google.maps.LatLng( 0.484358420000000E+02, -0.117689473000000E+03),\n new google.maps.LatLng( 0.484343570000000E+02, -0.117676492000000E+03),\n new google.maps.LatLng( 0.484300830000000E+02, -0.117669557000000E+03),\n new google.maps.LatLng( 0.484270210000000E+02, -0.117670794000000E+03),\n new google.maps.LatLng( 0.484282320000000E+02, -0.117672511000000E+03),\n new google.maps.LatLng( 0.484180870000000E+02, -0.117675603000000E+03),\n new google.maps.LatLng( 0.484140880000000E+02, -0.117679174000000E+03),\n new google.maps.LatLng( 0.484100670000000E+02, -0.117681474000000E+03),\n new google.maps.LatLng( 0.483996920000000E+02, -0.117685352000000E+03),\n new google.maps.LatLng( 0.483982070000000E+02, -0.117687275000000E+03),\n new google.maps.LatLng( 0.483983210000000E+02, -0.117690260000000E+03),\n new google.maps.LatLng( 0.483933390000000E+02, -0.117690637000000E+03),\n new google.maps.LatLng( 0.483807940000000E+02, -0.117687891000000E+03),\n new google.maps.LatLng( 0.483829650000000E+02, -0.117682540000000E+03),\n new google.maps.LatLng( 0.483831480000000E+02, -0.117680482000000E+03),\n new google.maps.LatLng( 0.483768630000000E+02, -0.117670364000000E+03),\n new google.maps.LatLng( 0.483759940000000E+02, -0.117670021000000E+03),\n new google.maps.LatLng( 0.483745540000000E+02, -0.117670812000000E+03),\n new google.maps.LatLng( 0.483749010000000E+02, -0.117668753000000E+03),\n new google.maps.LatLng( 0.483805610000000E+02, -0.117656229000000E+03),\n new google.maps.LatLng( 0.483828210000000E+02, -0.117648853000000E+03),\n new google.maps.LatLng( 0.483809440000000E+02, -0.117639729000000E+03),\n new google.maps.LatLng( 0.483869500000000E+02, -0.117621653000000E+03),\n new google.maps.LatLng( 0.483885090000000E+02, -0.117609065000000E+03),\n new google.maps.LatLng( 0.483884420000000E+02, -0.117606423000000E+03),\n new google.maps.LatLng( 0.483860210000000E+02, -0.117601480000000E+03),\n new google.maps.LatLng( 0.483833050000000E+02, -0.117589985000000E+03),\n new google.maps.LatLng( 0.483818420000000E+02, -0.117594753000000E+03),\n new google.maps.LatLng( 0.483803810000000E+02, -0.117587926000000E+03),\n new google.maps.LatLng( 0.483762690000000E+02, -0.117583945000000E+03),\n new google.maps.LatLng( 0.483759490000000E+02, -0.117580412000000E+03),\n new google.maps.LatLng( 0.483770240000000E+02, -0.117577977000000E+03),\n new google.maps.LatLng( 0.483749020000000E+02, -0.117571408000000E+03),\n new google.maps.LatLng( 0.483727230000000E+02, -0.117567996000000E+03),\n new google.maps.LatLng( 0.483631480000000E+02, -0.117567308000000E+03),\n new google.maps.LatLng( 0.483596290000000E+02, -0.117572898000000E+03),\n new google.maps.LatLng( 0.483575040000000E+02, -0.117572589000000E+03),\n new google.maps.LatLng( 0.483562700000000E+02, -0.117573000000000E+03),\n new google.maps.LatLng( 0.483505330000000E+02, -0.117579684000000E+03),\n new google.maps.LatLng( 0.483504640000000E+02, -0.117581055000000E+03),\n new google.maps.LatLng( 0.483516290000000E+02, -0.117584004000000E+03),\n new google.maps.LatLng( 0.483507150000000E+02, -0.117583180000000E+03),\n new google.maps.LatLng( 0.483476990000000E+02, -0.117577077000000E+03),\n new google.maps.LatLng( 0.483483400000000E+02, -0.117568507000000E+03),\n new google.maps.LatLng( 0.483515170000000E+02, -0.117562748000000E+03),\n new google.maps.LatLng( 0.483489810000000E+02, -0.117556130000000E+03),\n new google.maps.LatLng( 0.483487520000000E+02, -0.117550509000000E+03),\n new google.maps.LatLng( 0.483495510000000E+02, -0.117545709000000E+03),\n new google.maps.LatLng( 0.483499620000000E+02, -0.117544852000000E+03),\n new google.maps.LatLng( 0.483502590000000E+02, -0.117544989000000E+03),\n new google.maps.LatLng( 0.483497110000000E+02, -0.117547114000000E+03),\n new google.maps.LatLng( 0.483497800000000E+02, -0.117551400000000E+03),\n new google.maps.LatLng( 0.483509000000000E+02, -0.117556680000000E+03),\n new google.maps.LatLng( 0.483528200000000E+02, -0.117559182000000E+03),\n new google.maps.LatLng( 0.483552190000000E+02, -0.117561170000000E+03),\n new google.maps.LatLng( 0.483547130000000E+02, -0.117549172000000E+03),\n new google.maps.LatLng( 0.483552860000000E+02, -0.117545090000000E+03),\n new google.maps.LatLng( 0.483581180000000E+02, -0.117533979000000E+03),\n new google.maps.LatLng( 0.483576140000000E+02, -0.117530516000000E+03),\n new google.maps.LatLng( 0.483564020000000E+02, -0.117526849000000E+03),\n new google.maps.LatLng( 0.483542760000000E+02, -0.117524176000000E+03),\n new google.maps.LatLng( 0.483552100000000E+02, -0.117517317000000E+03),\n new google.maps.LatLng( 0.483546380000000E+02, -0.117515192000000E+03),\n new google.maps.LatLng( 0.483532430000000E+02, -0.117513068000000E+03),\n new google.maps.LatLng( 0.483513020000000E+02, -0.117514167000000E+03),\n new google.maps.LatLng( 0.483480560000000E+02, -0.117512627000000E+03),\n new google.maps.LatLng( 0.483479870000000E+02, -0.117510811000000E+03),\n new google.maps.LatLng( 0.483497210000000E+02, -0.117506592000000E+03),\n new google.maps.LatLng( 0.483510460000000E+02, -0.117505425000000E+03),\n new google.maps.LatLng( 0.483503710000000E+02, -0.117500122000000E+03),\n new google.maps.LatLng( 0.483215220000000E+02, -0.117500057000000E+03),\n new google.maps.LatLng( 0.483215220000000E+02, -0.117500057000000E+03),\n new google.maps.LatLng( 0.483031960000000E+02, -0.117500068000000E+03),\n new google.maps.LatLng( 0.483031960000000E+02, -0.117500068000000E+03),\n new google.maps.LatLng( 0.482480120000000E+02, -0.117499975000000E+03),\n new google.maps.LatLng( 0.482233160000000E+02, -0.117500615000000E+03),\n new google.maps.LatLng( 0.482233480000000E+02, -0.117502128000000E+03),\n new google.maps.LatLng( 0.482009460000000E+02, -0.117502156000000E+03),\n new google.maps.LatLng( 0.482009460000000E+02, -0.117502156000000E+03),\n new google.maps.LatLng( 0.482023950000000E+02, -0.117513964000000E+03),\n new google.maps.LatLng( 0.482057550000000E+02, -0.117514850000000E+03),\n new google.maps.LatLng( 0.482057110000000E+02, -0.117519944000000E+03),\n new google.maps.LatLng( 0.482015310000000E+02, -0.117523366000000E+03),\n new google.maps.LatLng( 0.481983750000000E+02, -0.117517078000000E+03),\n new google.maps.LatLng( 0.481991970000000E+02, -0.117514924000000E+03),\n new google.maps.LatLng( 0.481991730000000E+02, -0.117514035000000E+03),\n new google.maps.LatLng( 0.481983730000000E+02, -0.117513387000000E+03),\n new google.maps.LatLng( 0.481973220000000E+02, -0.117513661000000E+03),\n new google.maps.LatLng( 0.481955410000000E+02, -0.117515474000000E+03),\n new google.maps.LatLng( 0.481954500000000E+02, -0.117518175000000E+03),\n new google.maps.LatLng( 0.481964632032227E+02, -0.117519105502539E+03),\n new google.maps.LatLng( 0.481947660000000E+02, -0.117520636000000E+03),\n new google.maps.LatLng( 0.481873840000000E+02, -0.117520608000000E+03),\n new google.maps.LatLng( 0.481779700000000E+02, -0.117526048000000E+03),\n new google.maps.LatLng( 0.481763490000000E+02, -0.117528065000000E+03),\n new google.maps.LatLng( 0.481728100000000E+02, -0.117540094000000E+03),\n new google.maps.LatLng( 0.481715770000000E+02, -0.117550070000000E+03),\n new google.maps.LatLng( 0.481718740000000E+02, -0.117574156000000E+03),\n new google.maps.LatLng( 0.481741590000000E+02, -0.117578666000000E+03),\n new google.maps.LatLng( 0.481771760000000E+02, -0.117577950000000E+03),\n new google.maps.LatLng( 0.481819060000000E+02, -0.117578224000000E+03),\n new google.maps.LatLng( 0.481832540000000E+02, -0.117579352000000E+03),\n new google.maps.LatLng( 0.481859270000000E+02, -0.117584376000000E+03),\n new google.maps.LatLng( 0.481882580000000E+02, -0.117584959000000E+03),\n new google.maps.LatLng( 0.481905200000000E+02, -0.117583456000000E+03),\n new google.maps.LatLng( 0.481937890000000E+02, -0.117579014000000E+03),\n new google.maps.LatLng( 0.481960050000000E+02, -0.117578023000000E+03),\n new google.maps.LatLng( 0.481931020000000E+02, -0.117585371000000E+03),\n new google.maps.LatLng( 0.481894220000000E+02, -0.117590264000000E+03),\n new google.maps.LatLng( 0.481855820000000E+02, -0.117591963000000E+03),\n new google.maps.LatLng( 0.481811480000000E+02, -0.117594660000000E+03),\n new google.maps.LatLng( 0.481755690000000E+02, -0.117601729000000E+03),\n new google.maps.LatLng( 0.481704720000000E+02, -0.117605722000000E+03),\n new google.maps.LatLng( 0.481695580000000E+02, -0.117607156000000E+03),\n new google.maps.LatLng( 0.481695580000000E+02, -0.117607156000000E+03),\n new google.maps.LatLng( 0.481718200000000E+02, -0.117607943000000E+03),\n new google.maps.LatLng( 0.481750400000000E+02, -0.117611944000000E+03),\n new google.maps.LatLng( 0.481768450000000E+02, -0.117613039000000E+03),\n new google.maps.LatLng( 0.481801120000000E+02, -0.117614068000000E+03),\n new google.maps.LatLng( 0.481811180000000E+02, -0.117613932000000E+03),\n new google.maps.LatLng( 0.481787180000000E+02, -0.117615535000000E+03),\n new google.maps.LatLng( 0.481787400000000E+02, -0.117616253000000E+03),\n new google.maps.LatLng( 0.481800190000000E+02, -0.117617074000000E+03),\n new google.maps.LatLng( 0.481802250000000E+02, -0.117617826000000E+03),\n new google.maps.LatLng( 0.481786220000000E+02, -0.117623052000000E+03),\n new google.maps.LatLng( 0.481755600000000E+02, -0.117627379000000E+03),\n new google.maps.LatLng( 0.481711970000000E+02, -0.117631211000000E+03),\n new google.maps.LatLng( 0.481702380000000E+02, -0.117632989000000E+03),\n new google.maps.LatLng( 0.481691210000000E+02, -0.117637362000000E+03),\n new google.maps.LatLng( 0.481691220000000E+02, -0.117639993000000E+03),\n new google.maps.LatLng( 0.481702660000000E+02, -0.117644979000000E+03),\n new google.maps.LatLng( 0.481702450000000E+02, -0.117647951000000E+03),\n new google.maps.LatLng( 0.481630020000000E+02, -0.117656907000000E+03),\n new google.maps.LatLng( 0.481754360000000E+02, -0.117660999000000E+03),\n new google.maps.LatLng( 0.481875020000000E+02, -0.117662018000000E+03),\n new google.maps.LatLng( 0.481899920000000E+02, -0.117660137000000E+03),\n new google.maps.LatLng( 0.481927110000000E+02, -0.117660444000000E+03),\n new google.maps.LatLng( 0.481963690000000E+02, -0.117668884000000E+03),\n new google.maps.LatLng( 0.481979470000000E+02, -0.117675549000000E+03),\n new google.maps.LatLng( 0.482002780000000E+02, -0.117677976000000E+03),\n new google.maps.LatLng( 0.482072020000000E+02, -0.117681838000000E+03),\n new google.maps.LatLng( 0.482119560000000E+02, -0.117686863000000E+03),\n new google.maps.LatLng( 0.482120210000000E+02, -0.117715344000000E+03),\n new google.maps.LatLng( 0.482083640000000E+02, -0.117716333000000E+03),\n new google.maps.LatLng( 0.482085430000000E+02, -0.117730706000000E+03),\n new google.maps.LatLng( 0.482043560000000E+02, -0.117738421000000E+03),\n new google.maps.LatLng( 0.481979800000000E+02, -0.117744472000000E+03),\n new google.maps.LatLng( 0.481947120000000E+02, -0.117744814000000E+03),\n new google.maps.LatLng( 0.481935240000000E+02, -0.117743755000000E+03),\n new google.maps.LatLng( 0.481927690000000E+02, -0.117738662000000E+03),\n new google.maps.LatLng( 0.481902780000000E+02, -0.117734664000000E+03),\n new google.maps.LatLng( 0.481794000000000E+02, -0.117729986000000E+03),\n new google.maps.LatLng( 0.481826960000000E+02, -0.117731558000000E+03),\n new google.maps.LatLng( 0.481881790000000E+02, -0.117735561000000E+03),\n new google.maps.LatLng( 0.481893900000000E+02, -0.117737100000000E+03),\n new google.maps.LatLng( 0.481920334891602E+02, -0.117742454393555E+03),\n new google.maps.LatLng( 0.481946190000000E+02, -0.117745753000000E+03),\n new google.maps.LatLng( 0.481971780000000E+02, -0.117746405000000E+03),\n new google.maps.LatLng( 0.482030510000000E+02, -0.117744908000000E+03),\n new google.maps.LatLng( 0.482021830000000E+02, -0.117755262000000E+03),\n new google.maps.LatLng( 0.482023000000000E+02, -0.117761859000000E+03),\n new google.maps.LatLng( 0.482034450000000E+02, -0.117768284000000E+03),\n new google.maps.LatLng( 0.482077900000000E+02, -0.117777682000000E+03),\n new google.maps.LatLng( 0.482142820000000E+02, -0.117788107000000E+03),\n new google.maps.LatLng( 0.482164540000000E+02, -0.117789542000000E+03),\n new google.maps.LatLng( 0.482182370000000E+02, -0.117794567000000E+03),\n new google.maps.LatLng( 0.482180320000000E+02, -0.117796551000000E+03),\n new google.maps.LatLng( 0.482171860000000E+02, -0.117798295000000E+03),\n new google.maps.LatLng( 0.482163640000000E+02, -0.117804006000000E+03),\n new google.maps.LatLng( 0.482163640000000E+02, -0.117810639000000E+03),\n new google.maps.LatLng( 0.482174840000000E+02, -0.117815597000000E+03),\n new google.maps.LatLng( 0.482181460000000E+02, -0.117822846000000E+03),\n new google.maps.LatLng( 0.482149460000000E+02, -0.117831530000000E+03),\n new google.maps.LatLng( 0.482135270000000E+02, -0.117838196000000E+03),\n new google.maps.LatLng( 0.482136640000000E+02, -0.117840795000000E+03),\n new google.maps.LatLng( 0.482097310000000E+02, -0.117849101000000E+03),\n new google.maps.LatLng( 0.482082220000000E+02, -0.117849989000000E+03),\n new google.maps.LatLng( 0.482071250000000E+02, -0.117851868000000E+03),\n new google.maps.LatLng( 0.482063900000000E+02, -0.117861986000000E+03),\n new google.maps.LatLng( 0.482027540000000E+02, -0.117866973000000E+03),\n new google.maps.LatLng( 0.482007410000000E+02, -0.117872475000000E+03),\n new google.maps.LatLng( 0.481985910000000E+02, -0.117875582000000E+03),\n new google.maps.LatLng( 0.481959630000000E+02, -0.117877200000000E+03),\n new google.maps.LatLng( 0.481915780000000E+02, -0.117881477000000E+03),\n new google.maps.LatLng( 0.481913300000000E+02, -0.117888893000000E+03),\n new google.maps.LatLng( 0.481849570000000E+02, -0.117894161000000E+03),\n new google.maps.LatLng( 0.481815290000000E+02, -0.117894198000000E+03),\n new google.maps.LatLng( 0.481773250000000E+02, -0.117896251000000E+03),\n new google.maps.LatLng( 0.481729150000000E+02, -0.117899193000000E+03),\n new google.maps.LatLng( 0.481707910000000E+02, -0.117901893000000E+03),\n new google.maps.LatLng( 0.481694890000000E+02, -0.117904832000000E+03),\n new google.maps.LatLng( 0.481696730000000E+02, -0.117906608000000E+03),\n new google.maps.LatLng( 0.481713190000000E+02, -0.117910161000000E+03),\n new google.maps.LatLng( 0.481653090000000E+02, -0.117911325000000E+03),\n new google.maps.LatLng( 0.481635050000000E+02, -0.117914332000000E+03),\n new google.maps.LatLng( 0.481624540000000E+02, -0.117914503000000E+03),\n new google.maps.LatLng( 0.481569460000000E+02, -0.117913583000000E+03),\n new google.maps.LatLng( 0.481490620000000E+02, -0.117910889000000E+03),\n new google.maps.LatLng( 0.481430510000000E+02, -0.117909595000000E+03),\n new google.maps.LatLng( 0.481415650000000E+02, -0.117908844000000E+03),\n new google.maps.LatLng( 0.481380680000000E+02, -0.117905739000000E+03),\n new google.maps.LatLng( 0.481348900000000E+02, -0.117899050000000E+03),\n new google.maps.LatLng( 0.481315980000000E+02, -0.117895468000000E+03),\n new google.maps.LatLng( 0.481294780000000E+02, -0.117891089000000E+03),\n new google.maps.LatLng( 0.481299740000000E+02, -0.117890485000000E+03),\n new google.maps.LatLng( 0.481316390000000E+02, -0.117881199000000E+03),\n new google.maps.LatLng( 0.481313640000000E+02, -0.117879937000000E+03),\n new google.maps.LatLng( 0.481264030000000E+02, -0.117873376000000E+03),\n new google.maps.LatLng( 0.481235250000000E+02, -0.117864979000000E+03),\n new google.maps.LatLng( 0.481197350000000E+02, -0.117856920000000E+03),\n new google.maps.LatLng( 0.481169920000000E+02, -0.117858044000000E+03),\n new google.maps.LatLng( 0.481132710000000E+02, -0.117849817000000E+03),\n new google.maps.LatLng( 0.481126620000000E+02, -0.117850597000000E+03),\n new google.maps.LatLng( 0.481126620000000E+02, -0.117850597000000E+03),\n new google.maps.LatLng( 0.481157120000000E+02, -0.117858520000000E+03),\n new google.maps.LatLng( 0.481174490000000E+02, -0.117858829000000E+03),\n new google.maps.LatLng( 0.481193000000000E+02, -0.117857773000000E+03),\n new google.maps.LatLng( 0.481200540000000E+02, -0.117858901000000E+03),\n new google.maps.LatLng( 0.481231130000000E+02, -0.117865354000000E+03),\n new google.maps.LatLng( 0.481258780000000E+02, -0.117873887000000E+03),\n new google.maps.LatLng( 0.481282320000000E+02, -0.117878029000000E+03),\n new google.maps.LatLng( 0.481312270000000E+02, -0.117880722000000E+03),\n new google.maps.LatLng( 0.481312500000000E+02, -0.117881609000000E+03),\n new google.maps.LatLng( 0.481295160000000E+02, -0.117888677000000E+03),\n new google.maps.LatLng( 0.481272550000000E+02, -0.117891068000000E+03),\n new google.maps.LatLng( 0.481260210000000E+02, -0.117891035000000E+03),\n new google.maps.LatLng( 0.481235730000000E+02, -0.117893224000000E+03),\n new google.maps.LatLng( 0.481153720000000E+02, -0.117902718000000E+03),\n new google.maps.LatLng( 0.481107130000000E+02, -0.117914356000000E+03),\n new google.maps.LatLng( 0.481088860000000E+02, -0.117929917000000E+03),\n new google.maps.LatLng( 0.481093660000000E+02, -0.117941620000000E+03),\n new google.maps.LatLng( 0.481132730000000E+02, -0.117951448000000E+03),\n new google.maps.LatLng( 0.481124720000000E+02, -0.117960832000000E+03),\n new google.maps.LatLng( 0.481135450000000E+02, -0.117963972000000E+03),\n new google.maps.LatLng( 0.481158290000000E+02, -0.117967488000000E+03),\n new google.maps.LatLng( 0.481176790000000E+02, -0.117971516000000E+03),\n new google.maps.LatLng( 0.481196410000000E+02, -0.117981244000000E+03),\n new google.maps.LatLng( 0.481246870000000E+02, -0.117984056000000E+03),\n new google.maps.LatLng( 0.481310470000000E+02, -0.117985040000000E+03),\n new google.maps.LatLng( 0.481309510000000E+02, -0.117994872000000E+03),\n new google.maps.LatLng( 0.481346740000000E+02, -0.118001663000000E+03),\n new google.maps.LatLng( 0.481384070000000E+02, -0.118018421000000E+03),\n new google.maps.LatLng( 0.481396640000000E+02, -0.118020060000000E+03),\n new google.maps.LatLng( 0.481438470000000E+02, -0.118023675000000E+03),\n new google.maps.LatLng( 0.481454480000000E+02, -0.118027020000000E+03),\n new google.maps.LatLng( 0.481454480000000E+02, -0.118027020000000E+03),\n new google.maps.LatLng( 0.481509300000000E+02, -0.118020187000000E+03),\n new google.maps.LatLng( 0.481544250000000E+02, -0.118018442000000E+03),\n new google.maps.LatLng( 0.481556360000000E+02, -0.118017314000000E+03),\n new google.maps.LatLng( 0.481607970000000E+02, -0.118008258000000E+03),\n new google.maps.LatLng( 0.481654580000000E+02, -0.118006511000000E+03),\n new google.maps.LatLng( 0.481664140000000E+02, -0.118001087000000E+03),\n new google.maps.LatLng( 0.481676170000000E+02, -0.117999503000000E+03),\n new google.maps.LatLng( 0.481711770000000E+02, -0.117997624000000E+03),\n new google.maps.LatLng( 0.481737890000000E+02, -0.117995262000000E+03),\n new google.maps.LatLng( 0.481733380000000E+02, -0.117986538000000E+03),\n new google.maps.LatLng( 0.481767040000000E+02, -0.117986382000000E+03),\n new google.maps.LatLng( 0.481821420000000E+02, -0.117987651000000E+03),\n new google.maps.LatLng( 0.481840880000000E+02, -0.117980717000000E+03),\n new google.maps.LatLng( 0.481885680000000E+02, -0.117975833000000E+03),\n new google.maps.LatLng( 0.481895280000000E+02, -0.117975663000000E+03),\n new google.maps.LatLng( 0.481951940000000E+02, -0.117977514000000E+03),\n new google.maps.LatLng( 0.482004480000000E+02, -0.117981585000000E+03),\n new google.maps.LatLng( 0.482028920000000E+02, -0.117985894000000E+03),\n new google.maps.LatLng( 0.482124220000000E+02, -0.117982621000000E+03),\n new google.maps.LatLng( 0.482213600000000E+02, -0.117975312000000E+03),\n new google.maps.LatLng( 0.482221370000000E+02, -0.117975141000000E+03),\n new google.maps.LatLng( 0.482216110000000E+02, -0.117976543000000E+03),\n new google.maps.LatLng( 0.482216110000000E+02, -0.117976543000000E+03),\n new google.maps.LatLng( 0.482261820000000E+02, -0.117973605000000E+03),\n new google.maps.LatLng( 0.482315310000000E+02, -0.117966290000000E+03),\n new google.maps.LatLng( 0.482340000000000E+02, -0.117960614000000E+03),\n new google.maps.LatLng( 0.482367900000000E+02, -0.117956408000000E+03),\n new google.maps.LatLng( 0.482454510000000E+02, -0.117948372000000E+03),\n new google.maps.LatLng( 0.482483770000000E+02, -0.117944643000000E+03),\n new google.maps.LatLng( 0.482510810000000E+02, -0.117939235000000E+03),\n new google.maps.LatLng( 0.482554910000000E+02, -0.117935814000000E+03),\n new google.maps.LatLng( 0.482557190000000E+02, -0.117933863000000E+03),\n new google.maps.LatLng( 0.482537770000000E+02, -0.117930681000000E+03),\n new google.maps.LatLng( 0.482542330000000E+02, -0.117928149000000E+03),\n new google.maps.LatLng( 0.482552160000000E+02, -0.117927294000000E+03),\n new google.maps.LatLng( 0.482567930000000E+02, -0.117927122000000E+03),\n new google.maps.LatLng( 0.482620720000000E+02, -0.117927532000000E+03),\n new google.maps.LatLng( 0.482634890000000E+02, -0.117928421000000E+03),\n new google.maps.LatLng( 0.482647690000000E+02, -0.117932083000000E+03),\n new google.maps.LatLng( 0.482658660000000E+02, -0.117931467000000E+03),\n new google.maps.LatLng( 0.482677850000000E+02, -0.117929173000000E+03),\n new google.maps.LatLng( 0.482731080000000E+02, -0.117921163000000E+03),\n new google.maps.LatLng( 0.482732910000000E+02, -0.117919588000000E+03),\n new google.maps.LatLng( 0.482723070000000E+02, -0.117915618000000E+03),\n new google.maps.LatLng( 0.482694510000000E+02, -0.117913223000000E+03),\n new google.maps.LatLng( 0.482677600000000E+02, -0.117912813000000E+03),\n new google.maps.LatLng( 0.482664950000000E+02, -0.117911505000000E+03),\n new google.maps.LatLng( 0.482704090000000E+02, -0.117907746000000E+03),\n new google.maps.LatLng( 0.482737900000000E+02, -0.117905896000000E+03),\n new google.maps.LatLng( 0.482758470000000E+02, -0.117905689000000E+03),\n new google.maps.LatLng( 0.482771270000000E+02, -0.117906475000000E+03),\n new google.maps.LatLng( 0.482782010000000E+02, -0.117906543000000E+03),\n new google.maps.LatLng( 0.482838210000000E+02, -0.117898802000000E+03),\n new google.maps.LatLng( 0.482794990000000E+02, -0.117890830000000E+03),\n new google.maps.LatLng( 0.482756340000000E+02, -0.117886690000000E+03),\n new google.maps.LatLng( 0.482647320000000E+02, -0.117886742000000E+03),\n new google.maps.LatLng( 0.482644140000000E+02, -0.117885264000000E+03),\n new google.maps.LatLng( 0.482674730000000E+02, -0.117879648000000E+03),\n new google.maps.LatLng( 0.482652320000000E+02, -0.117874671000000E+03),\n new google.maps.LatLng( 0.482650980000000E+02, -0.117868853000000E+03),\n new google.maps.LatLng( 0.482693720000000E+02, -0.117867763000000E+03),\n new google.maps.LatLng( 0.482744940000000E+02, -0.117859895000000E+03),\n new google.maps.LatLng( 0.482747470000000E+02, -0.117856678000000E+03),\n new google.maps.LatLng( 0.482752730000000E+02, -0.117855651000000E+03),\n new google.maps.LatLng( 0.482910880000000E+02, -0.117847686000000E+03),\n new google.maps.LatLng( 0.482934190000000E+02, -0.117847791000000E+03),\n new google.maps.LatLng( 0.482951100000000E+02, -0.117846730000000E+03),\n new google.maps.LatLng( 0.482964380000000E+02, -0.117842622000000E+03),\n new google.maps.LatLng( 0.482958440000000E+02, -0.117841012000000E+03),\n new google.maps.LatLng( 0.482951600000000E+02, -0.117835463000000E+03),\n new google.maps.LatLng( 0.482975600000000E+02, -0.117832622000000E+03),\n new google.maps.LatLng( 0.482988390000000E+02, -0.117832485000000E+03),\n new google.maps.LatLng( 0.483027920000000E+02, -0.117834200000000E+03),\n new google.maps.LatLng( 0.483061610000000E+02, -0.117834790000000E+03),\n new google.maps.LatLng( 0.483120360000000E+02, -0.117830839000000E+03),\n new google.maps.LatLng( 0.483146870000000E+02, -0.117830105000000E+03),\n new google.maps.LatLng( 0.483135210000000E+02, -0.117832231000000E+03),\n new google.maps.LatLng( 0.483138750000000E+02, -0.117833212000000E+03),\n new google.maps.LatLng( 0.483161140000000E+02, -0.117833452000000E+03),\n new google.maps.LatLng( 0.483162520000000E+02, -0.117825984000000E+03),\n new google.maps.LatLng( 0.483200460000000E+02, -0.117819063000000E+03),\n new google.maps.LatLng( 0.483271060000000E+02, -0.117826284000000E+03),\n new google.maps.LatLng( 0.483393490000000E+02, -0.117830519000000E+03),\n new google.maps.LatLng( 0.483451130000000E+02, -0.117832094000000E+03),\n new google.maps.LatLng( 0.483623710000000E+02, -0.117835504000000E+03),\n new google.maps.LatLng( 0.483775910000000E+02, -0.117840646000000E+03),\n new google.maps.LatLng( 0.483858850000000E+02, -0.117842778000000E+03),\n new google.maps.LatLng( 0.483915050000000E+02, -0.117842512000000E+03),\n new google.maps.LatLng( 0.483940450000000E+02, -0.117827308000000E+03),\n new google.maps.LatLng( 0.483928350000000E+02, -0.117824735000000E+03),\n new google.maps.LatLng( 0.483914670000000E+02, -0.117815631000000E+03),\n new google.maps.LatLng( 0.483940630000000E+02, -0.117812079000000E+03),\n new google.maps.LatLng( 0.483948460000000E+02, -0.117812143000000E+03),\n new google.maps.LatLng( 0.483994860000000E+02, -0.117809364000000E+03),\n new google.maps.LatLng( 0.484035070000000E+02, -0.117800475000000E+03),\n new google.maps.LatLng( 0.484047170000000E+02, -0.117795670000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.462009330000000E+02, -0.122913422000000E+03),\n new google.maps.LatLng( 0.461977330000000E+02, -0.122912022000000E+03),\n new google.maps.LatLng( 0.461954330000000E+02, -0.122909022000000E+03),\n new google.maps.LatLng( 0.461941800000000E+02, -0.122906133000000E+03),\n new google.maps.LatLng( 0.461922330000000E+02, -0.122898822000000E+03),\n new google.maps.LatLng( 0.461905010000000E+02, -0.122898052000000E+03),\n new google.maps.LatLng( 0.461816330000000E+02, -0.122902021000000E+03),\n new google.maps.LatLng( 0.461785330000000E+02, -0.122904421000000E+03),\n new google.maps.LatLng( 0.461771330000000E+02, -0.122909321000000E+03),\n new google.maps.LatLng( 0.461746330000000E+02, -0.122913622000000E+03),\n new google.maps.LatLng( 0.461695610000000E+02, -0.122914151000000E+03),\n new google.maps.LatLng( 0.461642330000000E+02, -0.122915421000000E+03),\n new google.maps.LatLng( 0.461573330000000E+02, -0.122915121000000E+03),\n new google.maps.LatLng( 0.461502330000000E+02, -0.122914021000000E+03),\n new google.maps.LatLng( 0.461444630000000E+02, -0.122914901000000E+03),\n new google.maps.LatLng( 0.461444630000000E+02, -0.122914901000000E+03),\n new google.maps.LatLng( 0.461431330000000E+02, -0.122917121000000E+03),\n new google.maps.LatLng( 0.461442330000000E+02, -0.122922921000000E+03),\n new google.maps.LatLng( 0.461484330000000E+02, -0.122923521000000E+03),\n new google.maps.LatLng( 0.461502330000000E+02, -0.122921821000000E+03),\n new google.maps.LatLng( 0.461504320000000E+02, -0.122917192000000E+03),\n new google.maps.LatLng( 0.461514970000000E+02, -0.122916084000000E+03),\n new google.maps.LatLng( 0.461654330000000E+02, -0.122915921000000E+03),\n new google.maps.LatLng( 0.461747400000000E+02, -0.122914098000000E+03),\n new google.maps.LatLng( 0.461757090000000E+02, -0.122913399000000E+03),\n new google.maps.LatLng( 0.461775330000000E+02, -0.122909722000000E+03),\n new google.maps.LatLng( 0.461850330000000E+02, -0.122919522000000E+03),\n new google.maps.LatLng( 0.462027320000000E+02, -0.122933523000000E+03),\n new google.maps.LatLng( 0.462027320000000E+02, -0.122933523000000E+03),\n new google.maps.LatLng( 0.461996330000000E+02, -0.122918822000000E+03),\n new google.maps.LatLng( 0.461999330000000E+02, -0.122914122000000E+03),\n new google.maps.LatLng( 0.462009330000000E+02, -0.122913422000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.478094290000000E+02, -0.122228832000000E+03),\n new google.maps.LatLng( 0.478094190000000E+02, -0.122201838000000E+03),\n new google.maps.LatLng( 0.478116450000000E+02, -0.122198986000000E+03),\n new google.maps.LatLng( 0.478119070000000E+02, -0.122197777000000E+03),\n new google.maps.LatLng( 0.478112030000000E+02, -0.122194986000000E+03),\n new google.maps.LatLng( 0.478068070000000E+02, -0.122187855000000E+03),\n new google.maps.LatLng( 0.478053610000000E+02, -0.122187867000000E+03),\n new google.maps.LatLng( 0.478053200000000E+02, -0.122180638000000E+03),\n new google.maps.LatLng( 0.478125200000000E+02, -0.122180738000000E+03),\n new google.maps.LatLng( 0.478090130000000E+02, -0.122165716000000E+03),\n new google.maps.LatLng( 0.478050200000000E+02, -0.122159737000000E+03),\n new google.maps.LatLng( 0.478049170000000E+02, -0.122156540000000E+03),\n new google.maps.LatLng( 0.478049170000000E+02, -0.122156540000000E+03),\n new google.maps.LatLng( 0.478029210000000E+02, -0.122155040000000E+03),\n new google.maps.LatLng( 0.478018200000000E+02, -0.122153137000000E+03),\n new google.maps.LatLng( 0.478018200000000E+02, -0.122151037000000E+03),\n new google.maps.LatLng( 0.477964700000000E+02, -0.122145757000000E+03),\n new google.maps.LatLng( 0.477940200000000E+02, -0.122144037000000E+03),\n new google.maps.LatLng( 0.477903200000000E+02, -0.122144637000000E+03),\n new google.maps.LatLng( 0.477906180000000E+02, -0.122167929000000E+03),\n new google.maps.LatLng( 0.477837130000000E+02, -0.122168111000000E+03),\n new google.maps.LatLng( 0.477819740000000E+02, -0.122166936000000E+03),\n new google.maps.LatLng( 0.477818200000000E+02, -0.122164537000000E+03),\n new google.maps.LatLng( 0.477760200000000E+02, -0.122164036000000E+03),\n new google.maps.LatLng( 0.477761200000000E+02, -0.122166936000000E+03),\n new google.maps.LatLng( 0.477761200000000E+02, -0.122166936000000E+03),\n new google.maps.LatLng( 0.477762200000000E+02, -0.122191037000000E+03),\n new google.maps.LatLng( 0.477764200000000E+02, -0.122201737000000E+03),\n new google.maps.LatLng( 0.477764200000000E+02, -0.122203237000000E+03),\n new google.maps.LatLng( 0.477765200000000E+02, -0.122212437000000E+03),\n new google.maps.LatLng( 0.477766200000000E+02, -0.122223137000000E+03),\n new google.maps.LatLng( 0.477766200000000E+02, -0.122226137000000E+03),\n new google.maps.LatLng( 0.477766370000000E+02, -0.122227282000000E+03),\n new google.maps.LatLng( 0.477766370000000E+02, -0.122227282000000E+03),\n new google.maps.LatLng( 0.477769190000000E+02, -0.122257838000000E+03),\n new google.maps.LatLng( 0.477769190000000E+02, -0.122260738000000E+03),\n new google.maps.LatLng( 0.477768190000000E+02, -0.122265438000000E+03),\n new google.maps.LatLng( 0.477768190000000E+02, -0.122265438000000E+03),\n new google.maps.LatLng( 0.477770190000000E+02, -0.122266838000000E+03),\n new google.maps.LatLng( 0.477770190000000E+02, -0.122266838000000E+03),\n new google.maps.LatLng( 0.477786090000000E+02, -0.122266661000000E+03),\n new google.maps.LatLng( 0.477797870000000E+02, -0.122264749000000E+03),\n new google.maps.LatLng( 0.477847254762695E+02, -0.122265741139453E+03),\n new google.maps.LatLng( 0.477852420762695E+02, -0.122265975739453E+03),\n new google.maps.LatLng( 0.477852420762695E+02, -0.122267956339453E+03),\n new google.maps.LatLng( 0.477883680000000E+02, -0.122270323000000E+03),\n new google.maps.LatLng( 0.477890190000000E+02, -0.122269239000000E+03),\n new google.maps.LatLng( 0.477890510000000E+02, -0.122266558000000E+03),\n new google.maps.LatLng( 0.477877597761719E+02, -0.122265238651562E+03),\n new google.maps.LatLng( 0.477871669761719E+02, -0.122265281251562E+03),\n new google.maps.LatLng( 0.477849190000000E+02, -0.122259938000000E+03),\n new google.maps.LatLng( 0.477851190000000E+02, -0.122258238000000E+03),\n new google.maps.LatLng( 0.477854190000000E+02, -0.122256938000000E+03),\n new google.maps.LatLng( 0.477871190000000E+02, -0.122257038000000E+03),\n new google.maps.LatLng( 0.477891190000000E+02, -0.122258138000000E+03),\n new google.maps.LatLng( 0.477885190000000E+02, -0.122260738000000E+03),\n new google.maps.LatLng( 0.477904060000000E+02, -0.122263203000000E+03),\n new google.maps.LatLng( 0.477917180000000E+02, -0.122263655000000E+03),\n new google.maps.LatLng( 0.477914190000000E+02, -0.122255238000000E+03),\n new google.maps.LatLng( 0.477913000000000E+02, -0.122244093000000E+03),\n new google.maps.LatLng( 0.478065320000000E+02, -0.122244032000000E+03),\n new google.maps.LatLng( 0.478065200000000E+02, -0.122230995000000E+03),\n new google.maps.LatLng( 0.478094290000000E+02, -0.122228832000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.490003632277298E+02, -0.117429502617754E+03),\n new google.maps.LatLng( 0.490001609301037E+02, -0.117354524042634E+03),\n new google.maps.LatLng( 0.490001609301037E+02, -0.117354524042634E+03),\n new google.maps.LatLng( 0.489983050000000E+02, -0.117353026000000E+03),\n new google.maps.LatLng( 0.489881370000000E+02, -0.117349928000000E+03),\n new google.maps.LatLng( 0.489796830000000E+02, -0.117349297000000E+03),\n new google.maps.LatLng( 0.489734670000000E+02, -0.117351791000000E+03),\n new google.maps.LatLng( 0.489708840000000E+02, -0.117355016000000E+03),\n new google.maps.LatLng( 0.489708840000000E+02, -0.117355016000000E+03),\n new google.maps.LatLng( 0.489677300000000E+02, -0.117358206000000E+03),\n new google.maps.LatLng( 0.489661730000000E+02, -0.117364487000000E+03),\n new google.maps.LatLng( 0.489637610000000E+02, -0.117367258000000E+03),\n new google.maps.LatLng( 0.489622880000000E+02, -0.117364690000000E+03),\n new google.maps.LatLng( 0.489610320000000E+02, -0.117363960000000E+03),\n new google.maps.LatLng( 0.489507740000000E+02, -0.117360099000000E+03),\n new google.maps.LatLng( 0.489488790000000E+02, -0.117358536000000E+03),\n new google.maps.LatLng( 0.489484910000000E+02, -0.117357218000000E+03),\n new google.maps.LatLng( 0.489445380000000E+02, -0.117356174000000E+03),\n new google.maps.LatLng( 0.489359240000000E+02, -0.117355334000000E+03),\n new google.maps.LatLng( 0.489323540000000E+02, -0.117367017000000E+03),\n new google.maps.LatLng( 0.489307560000000E+02, -0.117364554000000E+03),\n new google.maps.LatLng( 0.489304600000000E+02, -0.117361294000000E+03),\n new google.maps.LatLng( 0.489281080000000E+02, -0.117358587000000E+03),\n new google.maps.LatLng( 0.489229440000000E+02, -0.117357438000000E+03),\n new google.maps.LatLng( 0.489195390000000E+02, -0.117360208000000E+03),\n new google.maps.LatLng( 0.489171170000000E+02, -0.117360553000000E+03),\n new google.maps.LatLng( 0.489134160000000E+02, -0.117358851000000E+03),\n new google.maps.LatLng( 0.489037490000000E+02, -0.117359605000000E+03),\n new google.maps.LatLng( 0.489015090000000E+02, -0.117363311000000E+03),\n new google.maps.LatLng( 0.489011610000000E+02, -0.117373049000000E+03),\n new google.maps.LatLng( 0.488983750000000E+02, -0.117380843000000E+03),\n new google.maps.LatLng( 0.488946260000000E+02, -0.117380570000000E+03),\n new google.maps.LatLng( 0.488903540000000E+02, -0.117382168000000E+03),\n new google.maps.LatLng( 0.488869740000000E+02, -0.117384390000000E+03),\n new google.maps.LatLng( 0.488837290000000E+02, -0.117384116000000E+03),\n new google.maps.LatLng( 0.488749200000000E+02, -0.117385962000000E+03),\n new google.maps.LatLng( 0.488733910000000E+02, -0.117386774000000E+03),\n new google.maps.LatLng( 0.488739620000000E+02, -0.117387377000000E+03),\n new google.maps.LatLng( 0.488722880000000E+02, -0.117392956000000E+03),\n new google.maps.LatLng( 0.488686160000000E+02, -0.117400065000000E+03),\n new google.maps.LatLng( 0.488651220000000E+02, -0.117405263000000E+03),\n new google.maps.LatLng( 0.488505000000000E+02, -0.117418359000000E+03),\n new google.maps.LatLng( 0.488455880000000E+02, -0.117420888000000E+03),\n new google.maps.LatLng( 0.488387910000000E+02, -0.117425258000000E+03),\n new google.maps.LatLng( 0.488338890000000E+02, -0.117431449000000E+03),\n new google.maps.LatLng( 0.488326280000000E+02, -0.117438307000000E+03),\n new google.maps.LatLng( 0.488326280000000E+02, -0.117438307000000E+03),\n new google.maps.LatLng( 0.488292740000000E+02, -0.117437714000000E+03),\n new google.maps.LatLng( 0.488260070000000E+02, -0.117438025000000E+03),\n new google.maps.LatLng( 0.488172310000000E+02, -0.117441312000000E+03),\n new google.maps.LatLng( 0.488106050000000E+02, -0.117440378000000E+03),\n new google.maps.LatLng( 0.488083200000000E+02, -0.117442280000000E+03),\n new google.maps.LatLng( 0.488067660000000E+02, -0.117444390000000E+03),\n new google.maps.LatLng( 0.488022420000000E+02, -0.117447088000000E+03),\n new google.maps.LatLng( 0.488014870000000E+02, -0.117446880000000E+03),\n new google.maps.LatLng( 0.488002300000000E+02, -0.117447398000000E+03),\n new google.maps.LatLng( 0.487975340000000E+02, -0.117450234000000E+03),\n new google.maps.LatLng( 0.487930540000000E+02, -0.117455766000000E+03),\n new google.maps.LatLng( 0.487914310000000E+02, -0.117460192000000E+03),\n new google.maps.LatLng( 0.487946990000000E+02, -0.117461680000000E+03),\n new google.maps.LatLng( 0.487951100000000E+02, -0.117462822000000E+03),\n new google.maps.LatLng( 0.487898490000000E+02, -0.117477378000000E+03),\n new google.maps.LatLng( 0.487871740000000E+02, -0.117481526000000E+03),\n new google.maps.LatLng( 0.487814090000000E+02, -0.117495385000000E+03),\n new google.maps.LatLng( 0.487765180000000E+02, -0.117497523000000E+03),\n new google.maps.LatLng( 0.487746910000000E+02, -0.117496760000000E+03),\n new google.maps.LatLng( 0.487728870000000E+02, -0.117494891000000E+03),\n new google.maps.LatLng( 0.487717690000000E+02, -0.117491641000000E+03),\n new google.maps.LatLng( 0.487719520000000E+02, -0.117489809000000E+03),\n new google.maps.LatLng( 0.487707190000000E+02, -0.117487388000000E+03),\n new google.maps.LatLng( 0.487690980000000E+02, -0.117486073000000E+03),\n new google.maps.LatLng( 0.487665620000000E+02, -0.117485103000000E+03),\n new google.maps.LatLng( 0.487630430000000E+02, -0.117484927000000E+03),\n new google.maps.LatLng( 0.487612610000000E+02, -0.117484268000000E+03),\n new google.maps.LatLng( 0.487530150000000E+02, -0.117476141000000E+03),\n new google.maps.LatLng( 0.487512800000000E+02, -0.117471232000000E+03),\n new google.maps.LatLng( 0.487485260000000E+02, -0.117469987000000E+03),\n new google.maps.LatLng( 0.487467210000000E+02, -0.117469848000000E+03),\n new google.maps.LatLng( 0.487389280000000E+02, -0.117474783000000E+03),\n new google.maps.LatLng( 0.487344010000000E+02, -0.117481653000000E+03),\n new google.maps.LatLng( 0.487330730000000E+02, -0.117485313000000E+03),\n new google.maps.LatLng( 0.487323830000000E+02, -0.117496159000000E+03),\n new google.maps.LatLng( 0.487342770000000E+02, -0.117500548000000E+03),\n new google.maps.LatLng( 0.487357430000000E+02, -0.117506896000000E+03),\n new google.maps.LatLng( 0.487333240000000E+02, -0.117514844000000E+03),\n new google.maps.LatLng( 0.487333730000000E+02, -0.117523479000000E+03),\n new google.maps.LatLng( 0.487301990000000E+02, -0.117529768000000E+03),\n new google.maps.LatLng( 0.487296290000000E+02, -0.117537851000000E+03),\n new google.maps.LatLng( 0.487302910000000E+02, -0.117541941000000E+03),\n new google.maps.LatLng( 0.487321660000000E+02, -0.117545097000000E+03),\n new google.maps.LatLng( 0.487327540000000E+02, -0.117551075000000E+03),\n new google.maps.LatLng( 0.487325560000000E+02, -0.117562754000000E+03),\n new google.maps.LatLng( 0.487278680000000E+02, -0.117563453000000E+03),\n new google.maps.LatLng( 0.487287170000000E+02, -0.117567141000000E+03),\n new google.maps.LatLng( 0.487302940000000E+02, -0.117569698000000E+03),\n new google.maps.LatLng( 0.487319520000000E+02, -0.117579102000000E+03),\n new google.maps.LatLng( 0.487316860000000E+02, -0.117580751000000E+03),\n new google.maps.LatLng( 0.487291730000000E+02, -0.117581717000000E+03),\n new google.maps.LatLng( 0.487240320000000E+02, -0.117576673000000E+03),\n new google.maps.LatLng( 0.487233460000000E+02, -0.117579988000000E+03),\n new google.maps.LatLng( 0.487234370000000E+02, -0.117583925000000E+03),\n new google.maps.LatLng( 0.487259240000000E+02, -0.117594702000000E+03),\n new google.maps.LatLng( 0.487237770000000E+02, -0.117593354000000E+03),\n new google.maps.LatLng( 0.487219260000000E+02, -0.117591418000000E+03),\n new google.maps.LatLng( 0.487202820000000E+02, -0.117587480000000E+03),\n new google.maps.LatLng( 0.487154630000000E+02, -0.117578672000000E+03),\n new google.maps.LatLng( 0.487133440000000E+02, -0.117578806000000E+03),\n new google.maps.LatLng( 0.487089280000000E+02, -0.117576495000000E+03),\n new google.maps.LatLng( 0.487084940000000E+02, -0.117576081000000E+03),\n new google.maps.LatLng( 0.487086770000000E+02, -0.117574113000000E+03),\n new google.maps.LatLng( 0.487063010000000E+02, -0.117571282000000E+03),\n new google.maps.LatLng( 0.487048840000000E+02, -0.117572455000000E+03),\n new google.maps.LatLng( 0.487034440000000E+02, -0.117575320000000E+03),\n new google.maps.LatLng( 0.487021870000000E+02, -0.117576390000000E+03),\n new google.maps.LatLng( 0.486970000000000E+02, -0.117577424000000E+03),\n new google.maps.LatLng( 0.486922920000000E+02, -0.117582185000000E+03),\n new google.maps.LatLng( 0.486927720000000E+02, -0.117583083000000E+03),\n new google.maps.LatLng( 0.486937780000000E+02, -0.117583014000000E+03),\n new google.maps.LatLng( 0.486951720000000E+02, -0.117582463000000E+03),\n new google.maps.LatLng( 0.486974340000000E+02, -0.117580185000000E+03),\n new google.maps.LatLng( 0.486984620000000E+02, -0.117579840000000E+03),\n new google.maps.LatLng( 0.486996500000000E+02, -0.117581014000000E+03),\n new google.maps.LatLng( 0.487010200000000E+02, -0.117585675000000E+03),\n new google.maps.LatLng( 0.486970670000000E+02, -0.117587986000000E+03),\n new google.maps.LatLng( 0.486923140000000E+02, -0.117589606000000E+03),\n new google.maps.LatLng( 0.486915140000000E+02, -0.117589640000000E+03),\n new google.maps.LatLng( 0.486901430000000E+02, -0.117588776000000E+03),\n new google.maps.LatLng( 0.486847740000000E+02, -0.117588118000000E+03),\n new google.maps.LatLng( 0.486826720000000E+02, -0.117588634000000E+03),\n new google.maps.LatLng( 0.486818030000000E+02, -0.117588082000000E+03),\n new google.maps.LatLng( 0.486778750000000E+02, -0.117576624000000E+03),\n new google.maps.LatLng( 0.486783550000000E+02, -0.117572691000000E+03),\n new google.maps.LatLng( 0.486789270000000E+02, -0.117571311000000E+03),\n new google.maps.LatLng( 0.486807550000000E+02, -0.117569724000000E+03),\n new google.maps.LatLng( 0.486829490000000E+02, -0.117560751000000E+03),\n new google.maps.LatLng( 0.486828340000000E+02, -0.117556024000000E+03),\n new google.maps.LatLng( 0.486824260000000E+02, -0.117555123000000E+03),\n new google.maps.LatLng( 0.486804800000000E+02, -0.117549537000000E+03),\n new google.maps.LatLng( 0.486806620000000E+02, -0.117546396000000E+03),\n new google.maps.LatLng( 0.486812330000000E+02, -0.117545050000000E+03),\n new google.maps.LatLng( 0.486828330000000E+02, -0.117544015000000E+03),\n new google.maps.LatLng( 0.486836090000000E+02, -0.117540288000000E+03),\n new google.maps.LatLng( 0.486809570000000E+02, -0.117533905000000E+03),\n new google.maps.LatLng( 0.486789910000000E+02, -0.117531283000000E+03),\n new google.maps.LatLng( 0.486771160000000E+02, -0.117527316000000E+03),\n new google.maps.LatLng( 0.486784620000000E+02, -0.117520863000000E+03),\n new google.maps.LatLng( 0.486811130000000E+02, -0.117518342000000E+03),\n new google.maps.LatLng( 0.486806970000000E+02, -0.117508784000000E+03),\n new google.maps.LatLng( 0.486719000000000E+02, -0.117492913000000E+03),\n new google.maps.LatLng( 0.486682030000000E+02, -0.117481179000000E+03),\n new google.maps.LatLng( 0.486679750000000E+02, -0.117480006000000E+03),\n new google.maps.LatLng( 0.486685930000000E+02, -0.117476488000000E+03),\n new google.maps.LatLng( 0.486703530000000E+02, -0.117476558000000E+03),\n new google.maps.LatLng( 0.486697140000000E+02, -0.117472866000000E+03),\n new google.maps.LatLng( 0.486697140000000E+02, -0.117472866000000E+03),\n new google.maps.LatLng( 0.486659500000000E+02, -0.117475711000000E+03),\n new google.maps.LatLng( 0.486585030000000E+02, -0.117475720000000E+03),\n new google.maps.LatLng( 0.486506730000000E+02, -0.117490061000000E+03),\n new google.maps.LatLng( 0.486481580000000E+02, -0.117492093000000E+03),\n new google.maps.LatLng( 0.486473810000000E+02, -0.117493782000000E+03),\n new google.maps.LatLng( 0.486465320000000E+02, -0.117499712000000E+03),\n new google.maps.LatLng( 0.486465320000000E+02, -0.117499712000000E+03),\n new google.maps.LatLng( 0.486562270000000E+02, -0.117499695000000E+03),\n new google.maps.LatLng( 0.486558480000000E+02, -0.117629241000000E+03),\n new google.maps.LatLng( 0.486590990000000E+02, -0.117629261000000E+03),\n new google.maps.LatLng( 0.486621410000000E+02, -0.117634639000000E+03),\n new google.maps.LatLng( 0.486642670000000E+02, -0.117637362000000E+03),\n new google.maps.LatLng( 0.486657300000000E+02, -0.117638395000000E+03),\n new google.maps.LatLng( 0.486662560000000E+02, -0.117638188000000E+03),\n new google.maps.LatLng( 0.486662100000000E+02, -0.117637187000000E+03),\n new google.maps.LatLng( 0.486656360000000E+02, -0.117632980000000E+03),\n new google.maps.LatLng( 0.486649050000000E+02, -0.117632083000000E+03),\n new google.maps.LatLng( 0.486649270000000E+02, -0.117631256000000E+03),\n new google.maps.LatLng( 0.486660240000000E+02, -0.117629875000000E+03),\n new google.maps.LatLng( 0.486678740000000E+02, -0.117629305000000E+03),\n new google.maps.LatLng( 0.487043920000000E+02, -0.117629405000000E+03),\n new google.maps.LatLng( 0.487076810000000E+02, -0.117634937000000E+03),\n new google.maps.LatLng( 0.487097390000000E+02, -0.117636938000000E+03),\n new google.maps.LatLng( 0.487120470000000E+02, -0.117635590000000E+03),\n new google.maps.LatLng( 0.487111090000000E+02, -0.117632379000000E+03),\n new google.maps.LatLng( 0.487112730000000E+02, -0.117629422000000E+03),\n new google.maps.LatLng( 0.487426830000000E+02, -0.117629512000000E+03),\n new google.maps.LatLng( 0.487429110000000E+02, -0.117595383000000E+03),\n new google.maps.LatLng( 0.487424640000000E+02, -0.117563527000000E+03),\n new google.maps.LatLng( 0.487499110000000E+02, -0.117564062000000E+03),\n new google.maps.LatLng( 0.488366990000000E+02, -0.117563619000000E+03),\n new google.maps.LatLng( 0.488368190000000E+02, -0.117498576000000E+03),\n new google.maps.LatLng( 0.489227860000000E+02, -0.117498868000000E+03),\n new google.maps.LatLng( 0.489230680000000E+02, -0.117430203000000E+03),\n new google.maps.LatLng( 0.489705600000000E+02, -0.117430154000000E+03),\n new google.maps.LatLng( 0.490003632277298E+02, -0.117429502617754E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.467764130000000E+02, -0.119797223000000E+03),\n new google.maps.LatLng( 0.467806400000000E+02, -0.119798951000000E+03),\n new google.maps.LatLng( 0.467920850000000E+02, -0.119800579000000E+03),\n new google.maps.LatLng( 0.467948720000000E+02, -0.119799214000000E+03),\n new google.maps.LatLng( 0.467965620000000E+02, -0.119785975000000E+03),\n new google.maps.LatLng( 0.467982040000000E+02, -0.119776459000000E+03),\n new google.maps.LatLng( 0.468002350000000E+02, -0.119769205000000E+03),\n new google.maps.LatLng( 0.468029460000000E+02, -0.119751594000000E+03),\n new google.maps.LatLng( 0.468028310000000E+02, -0.119746071000000E+03),\n new google.maps.LatLng( 0.467941790000000E+02, -0.119732090000000E+03),\n new google.maps.LatLng( 0.467925570000000E+02, -0.119731590000000E+03),\n new google.maps.LatLng( 0.467894960000000E+02, -0.119731687000000E+03),\n new google.maps.LatLng( 0.467839900000000E+02, -0.119730219000000E+03),\n new google.maps.LatLng( 0.467731870000000E+02, -0.119720966000000E+03),\n new google.maps.LatLng( 0.467669530000000E+02, -0.119711718000000E+03),\n new google.maps.LatLng( 0.467677100000000E+02, -0.119697688000000E+03),\n new google.maps.LatLng( 0.467718900000000E+02, -0.119700249000000E+03),\n new google.maps.LatLng( 0.467844100000000E+02, -0.119703112000000E+03),\n new google.maps.LatLng( 0.467867400000000E+02, -0.119704777000000E+03),\n new google.maps.LatLng( 0.467883150000000E+02, -0.119708702000000E+03),\n new google.maps.LatLng( 0.467934320000000E+02, -0.119711332000000E+03),\n new google.maps.LatLng( 0.467965620000000E+02, -0.119711966000000E+03),\n new google.maps.LatLng( 0.467985950000000E+02, -0.119711734000000E+03),\n new google.maps.LatLng( 0.468010400000000E+02, -0.119708474000000E+03),\n new google.maps.LatLng( 0.468017490000000E+02, -0.119704982000000E+03),\n new google.maps.LatLng( 0.468014980000000E+02, -0.119703052000000E+03),\n new google.maps.LatLng( 0.467996940000000E+02, -0.119699592000000E+03),\n new google.maps.LatLng( 0.468006310000000E+02, -0.119690941000000E+03),\n new google.maps.LatLng( 0.468029620000000E+02, -0.119687814000000E+03),\n new google.maps.LatLng( 0.468068680000000E+02, -0.119676402000000E+03),\n new google.maps.LatLng( 0.468101800000000E+02, -0.119672540000000E+03),\n new google.maps.LatLng( 0.468120080000000E+02, -0.119671409000000E+03),\n new google.maps.LatLng( 0.468123270000000E+02, -0.119669246000000E+03),\n new google.maps.LatLng( 0.468123270000000E+02, -0.119669246000000E+03),\n new google.maps.LatLng( 0.468114130000000E+02, -0.119664754000000E+03),\n new google.maps.LatLng( 0.468024110000000E+02, -0.119662229000000E+03),\n new google.maps.LatLng( 0.468007430000000E+02, -0.119662795000000E+03),\n new google.maps.LatLng( 0.467976830000000E+02, -0.119665624000000E+03),\n new google.maps.LatLng( 0.467952410000000E+02, -0.119665319000000E+03),\n new google.maps.LatLng( 0.467949440000000E+02, -0.119494168000000E+03),\n new google.maps.LatLng( 0.467949440000000E+02, -0.119494168000000E+03),\n new google.maps.LatLng( 0.467902210000000E+02, -0.119495983000000E+03),\n new google.maps.LatLng( 0.467852860000000E+02, -0.119495545000000E+03),\n new google.maps.LatLng( 0.467665050000000E+02, -0.119495592000000E+03),\n new google.maps.LatLng( 0.467664520000000E+02, -0.119558817000000E+03),\n new google.maps.LatLng( 0.467808930000000E+02, -0.119558782000000E+03),\n new google.maps.LatLng( 0.467811190000000E+02, -0.119580434000000E+03),\n new google.maps.LatLng( 0.467749730000000E+02, -0.119580598000000E+03),\n new google.maps.LatLng( 0.467676830000000E+02, -0.119591935000000E+03),\n new google.maps.LatLng( 0.467665600000000E+02, -0.119601410000000E+03),\n new google.maps.LatLng( 0.467377230000000E+02, -0.119601162000000E+03),\n new google.maps.LatLng( 0.467375770000000E+02, -0.119619938000000E+03),\n new google.maps.LatLng( 0.467358630000000E+02, -0.119628070000000E+03),\n new google.maps.LatLng( 0.467371650000000E+02, -0.119633488000000E+03),\n new google.maps.LatLng( 0.467441420000000E+02, -0.119633635000000E+03),\n new google.maps.LatLng( 0.467408940000000E+02, -0.119638367000000E+03),\n new google.maps.LatLng( 0.467372180000000E+02, -0.119642657000000E+03),\n new google.maps.LatLng( 0.467304440000000E+02, -0.119642529000000E+03),\n new google.maps.LatLng( 0.466949120000000E+02, -0.119691999000000E+03),\n new google.maps.LatLng( 0.466923310000000E+02, -0.119693393000000E+03),\n new google.maps.LatLng( 0.466903660000000E+02, -0.119686287000000E+03),\n new google.maps.LatLng( 0.466825300000000E+02, -0.119692064000000E+03),\n new google.maps.LatLng( 0.466823240000000E+02, -0.119690105000000E+03),\n new google.maps.LatLng( 0.466782350000000E+02, -0.119683034000000E+03),\n new google.maps.LatLng( 0.466770920000000E+02, -0.119682171000000E+03),\n new google.maps.LatLng( 0.466754930000000E+02, -0.119682039000000E+03),\n new google.maps.LatLng( 0.466731860000000E+02, -0.119682603000000E+03),\n new google.maps.LatLng( 0.466688900000000E+02, -0.119686254000000E+03),\n new google.maps.LatLng( 0.466557980000000E+02, -0.119704172000000E+03),\n new google.maps.LatLng( 0.466536500000000E+02, -0.119707986000000E+03),\n new google.maps.LatLng( 0.466489590000000E+02, -0.119733928000000E+03),\n new google.maps.LatLng( 0.466474730000000E+02, -0.119735353000000E+03),\n new google.maps.LatLng( 0.466461250000000E+02, -0.119735352000000E+03),\n new google.maps.LatLng( 0.466436690000000E+02, -0.119733721000000E+03),\n new google.maps.LatLng( 0.466436690000000E+02, -0.119733721000000E+03),\n new google.maps.LatLng( 0.466386960000000E+02, -0.119745860000000E+03),\n new google.maps.LatLng( 0.466369610000000E+02, -0.119752951000000E+03),\n new google.maps.LatLng( 0.466355080000000E+02, -0.119780315000000E+03),\n new google.maps.LatLng( 0.466313780000000E+02, -0.119804395000000E+03),\n new google.maps.LatLng( 0.466273800000000E+02, -0.119822502000000E+03),\n new google.maps.LatLng( 0.466274400000000E+02, -0.119856127000000E+03),\n new google.maps.LatLng( 0.466282350000000E+02, -0.119866872000000E+03),\n new google.maps.LatLng( 0.466298040000000E+02, -0.119873636000000E+03),\n new google.maps.LatLng( 0.466317080000000E+02, -0.119880983000000E+03),\n new google.maps.LatLng( 0.466319860000000E+02, -0.119889107000000E+03),\n new google.maps.LatLng( 0.466331310000000E+02, -0.119894612000000E+03),\n new google.maps.LatLng( 0.466354630000000E+02, -0.119899054000000E+03),\n new google.maps.LatLng( 0.466399190000000E+02, -0.119903926000000E+03),\n new google.maps.LatLng( 0.466418840000000E+02, -0.119905451000000E+03),\n new google.maps.LatLng( 0.466442830000000E+02, -0.119906113000000E+03),\n new google.maps.LatLng( 0.466457910000000E+02, -0.119907672000000E+03),\n new google.maps.LatLng( 0.466468650000000E+02, -0.119907704000000E+03),\n new google.maps.LatLng( 0.466537830000000E+02, -0.119895491000000E+03),\n new google.maps.LatLng( 0.466562740000000E+02, -0.119899504000000E+03),\n new google.maps.LatLng( 0.466687970000000E+02, -0.119913666000000E+03),\n new google.maps.LatLng( 0.466740520000000E+02, -0.119921364000000E+03),\n new google.maps.LatLng( 0.466839450000000E+02, -0.119932680000000E+03),\n new google.maps.LatLng( 0.466891070000000E+02, -0.119937063000000E+03),\n new google.maps.LatLng( 0.466951140000000E+02, -0.119940549000000E+03),\n new google.maps.LatLng( 0.466994770000000E+02, -0.119941811000000E+03),\n new google.maps.LatLng( 0.466999110000000E+02, -0.119941147000000E+03),\n new google.maps.LatLng( 0.467029950000000E+02, -0.119942177000000E+03),\n new google.maps.LatLng( 0.467034060000000E+02, -0.119943273000000E+03),\n new google.maps.LatLng( 0.467025160000000E+02, -0.119943571000000E+03),\n new google.maps.LatLng( 0.467028580000000E+02, -0.119945630000000E+03),\n new google.maps.LatLng( 0.467047540000000E+02, -0.119947258000000E+03),\n new google.maps.LatLng( 0.467046170000000E+02, -0.119949516000000E+03),\n new google.maps.LatLng( 0.467049820000000E+02, -0.119950214000000E+03),\n new google.maps.LatLng( 0.467065350000000E+02, -0.119950912000000E+03),\n new google.maps.LatLng( 0.467072210000000E+02, -0.119950547000000E+03),\n new google.maps.LatLng( 0.467070380000000E+02, -0.119949451000000E+03),\n new google.maps.LatLng( 0.467097790000000E+02, -0.119949219000000E+03),\n new google.maps.LatLng( 0.467106240000000E+02, -0.119950548000000E+03),\n new google.maps.LatLng( 0.467096190000000E+02, -0.119951743000000E+03),\n new google.maps.LatLng( 0.467060780000000E+02, -0.119952871000000E+03),\n new google.maps.LatLng( 0.467033140000000E+02, -0.119952870000000E+03),\n new google.maps.LatLng( 0.467035190000000E+02, -0.119953733000000E+03),\n new google.maps.LatLng( 0.467075620000000E+02, -0.119956391000000E+03),\n new google.maps.LatLng( 0.467100029041016E+02, -0.119953695013477E+03),\n new google.maps.LatLng( 0.467187340000000E+02, -0.119951646000000E+03),\n new google.maps.LatLng( 0.467183220000000E+02, -0.119952609000000E+03),\n new google.maps.LatLng( 0.467103500000000E+02, -0.119954665000000E+03),\n new google.maps.LatLng( 0.467095040000000E+02, -0.119956956000000E+03),\n new google.maps.LatLng( 0.467096410000000E+02, -0.119957853000000E+03),\n new google.maps.LatLng( 0.467117420000000E+02, -0.119959481000000E+03),\n new google.maps.LatLng( 0.467160590000000E+02, -0.119961044000000E+03),\n new google.maps.LatLng( 0.467206960000000E+02, -0.119961645000000E+03),\n new google.maps.LatLng( 0.467207190000000E+02, -0.119962277000000E+03),\n new google.maps.LatLng( 0.467191890000000E+02, -0.119962475000000E+03),\n new google.maps.LatLng( 0.467192340000000E+02, -0.119963106000000E+03),\n new google.maps.LatLng( 0.467224550000000E+02, -0.119964370000000E+03),\n new google.maps.LatLng( 0.467251500000000E+02, -0.119964505000000E+03),\n new google.maps.LatLng( 0.467258120000000E+02, -0.119965634000000E+03),\n new google.maps.LatLng( 0.467247390000000E+02, -0.119965966000000E+03),\n new google.maps.LatLng( 0.467247160000000E+02, -0.119966564000000E+03),\n new google.maps.LatLng( 0.467272510000000E+02, -0.119967263000000E+03),\n new google.maps.LatLng( 0.467328710000000E+02, -0.119967266000000E+03),\n new google.maps.LatLng( 0.467348810000000E+02, -0.119966105000000E+03),\n new google.maps.LatLng( 0.467368920000000E+02, -0.119963780000000E+03),\n new google.maps.LatLng( 0.467423310000000E+02, -0.119955077000000E+03),\n new google.maps.LatLng( 0.467466710000000E+02, -0.119954016000000E+03),\n new google.maps.LatLng( 0.467475170000000E+02, -0.119954349000000E+03),\n new google.maps.LatLng( 0.467474250000000E+02, -0.119955213000000E+03),\n new google.maps.LatLng( 0.467450030000000E+02, -0.119958568000000E+03),\n new google.maps.LatLng( 0.467413010000000E+02, -0.119962022000000E+03),\n new google.maps.LatLng( 0.467386050000000E+02, -0.119966605000000E+03),\n new google.maps.LatLng( 0.467383530000000E+02, -0.119968865000000E+03),\n new google.maps.LatLng( 0.467439720000000E+02, -0.119969001000000E+03),\n new google.maps.LatLng( 0.467498530000000E+02, -0.119967790000000E+03),\n new google.maps.LatLng( 0.467567660000000E+02, -0.119964183000000E+03),\n new google.maps.LatLng( 0.467603070000000E+02, -0.119960661000000E+03),\n new google.maps.LatLng( 0.467624090000000E+02, -0.119956673000000E+03),\n new google.maps.LatLng( 0.467655860000000E+02, -0.119947798000000E+03),\n new google.maps.LatLng( 0.467682130000000E+02, -0.119944175000000E+03),\n new google.maps.LatLng( 0.467718010000000E+02, -0.119940086000000E+03),\n new google.maps.LatLng( 0.467784940000000E+02, -0.119933901000000E+03),\n new google.maps.LatLng( 0.467811210000000E+02, -0.119933202000000E+03),\n new google.maps.LatLng( 0.467866720000000E+02, -0.119926318000000E+03),\n new google.maps.LatLng( 0.467889330000000E+02, -0.119925120000000E+03),\n new google.maps.LatLng( 0.467929990000000E+02, -0.119924687000000E+03),\n new google.maps.LatLng( 0.467995100000000E+02, -0.119925650000000E+03),\n new google.maps.LatLng( 0.468007660000000E+02, -0.119924552000000E+03),\n new google.maps.LatLng( 0.468041010000000E+02, -0.119923587000000E+03),\n new google.maps.LatLng( 0.468109540000000E+02, -0.119923718000000E+03),\n new google.maps.LatLng( 0.468119820000000E+02, -0.119924250000000E+03),\n new google.maps.LatLng( 0.468129870000000E+02, -0.119923718000000E+03),\n new google.maps.LatLng( 0.468145860000000E+02, -0.119921555000000E+03),\n new google.maps.LatLng( 0.468163450000000E+02, -0.119918060000000E+03),\n new google.maps.LatLng( 0.468173270000000E+02, -0.119917461000000E+03),\n new google.maps.LatLng( 0.468183550000000E+02, -0.119917727000000E+03),\n new google.maps.LatLng( 0.468195430000000E+02, -0.119920788000000E+03),\n new google.maps.LatLng( 0.468207080000000E+02, -0.119919756000000E+03),\n new google.maps.LatLng( 0.468213270000000E+02, -0.119917276000000E+03),\n new google.maps.LatLng( 0.468213270000000E+02, -0.119917276000000E+03),\n new google.maps.LatLng( 0.468112930000000E+02, -0.119912732000000E+03),\n new google.maps.LatLng( 0.467982240000000E+02, -0.119902677000000E+03),\n new google.maps.LatLng( 0.467935410000000E+02, -0.119895915000000E+03),\n new google.maps.LatLng( 0.467954130000000E+02, -0.119893752000000E+03),\n new google.maps.LatLng( 0.467957980000000E+02, -0.119886200000000E+03),\n new google.maps.LatLng( 0.467910690000000E+02, -0.119885473000000E+03),\n new google.maps.LatLng( 0.467892880000000E+02, -0.119886605000000E+03),\n new google.maps.LatLng( 0.467859080000000E+02, -0.119887506000000E+03),\n new google.maps.LatLng( 0.467781250000000E+02, -0.119887263000000E+03),\n new google.maps.LatLng( 0.467741150000000E+02, -0.119884437000000E+03),\n new google.maps.LatLng( 0.467740470000000E+02, -0.119878307000000E+03),\n new google.maps.LatLng( 0.467767420000000E+02, -0.119877872000000E+03),\n new google.maps.LatLng( 0.467782480000000E+02, -0.119876156000000E+03),\n new google.maps.LatLng( 0.467796870000000E+02, -0.119873643000000E+03),\n new google.maps.LatLng( 0.467809220000000E+02, -0.119869253000000E+03),\n new google.maps.LatLng( 0.467849210000000E+02, -0.119868327000000E+03),\n new google.maps.LatLng( 0.467912970000000E+02, -0.119864242000000E+03),\n new google.maps.LatLng( 0.467920330000000E+02, -0.119853001000000E+03),\n new google.maps.LatLng( 0.467890900000000E+02, -0.119840392000000E+03),\n new google.maps.LatLng( 0.467855730000000E+02, -0.119833107000000E+03),\n new google.maps.LatLng( 0.467839530000000E+02, -0.119819105000000E+03),\n new google.maps.LatLng( 0.467826970000000E+02, -0.119816544000000E+03),\n new google.maps.LatLng( 0.467770310000000E+02, -0.119811123000000E+03),\n new google.maps.LatLng( 0.467772140000000E+02, -0.119803774000000E+03),\n new google.maps.LatLng( 0.467764130000000E+02, -0.119797223000000E+03),\n new google.maps.LatLng( 0.467764130000000E+02, -0.119797223000000E+03),\n new google.maps.LatLng( 0.467739690000000E+02, -0.119798554000000E+03),\n new google.maps.LatLng( 0.467729410000000E+02, -0.119798455000000E+03),\n new google.maps.LatLng( 0.467711360000000E+02, -0.119797857000000E+03),\n new google.maps.LatLng( 0.467702450000000E+02, -0.119796593000000E+03),\n new google.maps.LatLng( 0.467694000000000E+02, -0.119796361000000E+03),\n new google.maps.LatLng( 0.467678920000000E+02, -0.119798090000000E+03),\n new google.maps.LatLng( 0.467664760000000E+02, -0.119801415000000E+03),\n new google.maps.LatLng( 0.467665410000000E+02, -0.119842774000000E+03),\n new google.maps.LatLng( 0.467576090000000E+02, -0.119843035000000E+03),\n new google.maps.LatLng( 0.467595520000000E+02, -0.119836853000000E+03),\n new google.maps.LatLng( 0.467616330000000E+02, -0.119825219000000E+03),\n new google.maps.LatLng( 0.467606970000000E+02, -0.119817273000000E+03),\n new google.maps.LatLng( 0.467596000000000E+02, -0.119811023000000E+03),\n new google.maps.LatLng( 0.467539580000000E+02, -0.119811024000000E+03),\n new google.maps.LatLng( 0.467543000000000E+02, -0.119804310000000E+03),\n new google.maps.LatLng( 0.467522440000000E+02, -0.119799822000000E+03),\n new google.maps.LatLng( 0.467510080000000E+02, -0.119790749000000E+03),\n new google.maps.LatLng( 0.467466760000000E+02, -0.119786669000000E+03),\n new google.maps.LatLng( 0.467488910000000E+02, -0.119780286000000E+03),\n new google.maps.LatLng( 0.467514390000000E+02, -0.119777154000000E+03),\n new google.maps.LatLng( 0.467539300000000E+02, -0.119775557000000E+03),\n new google.maps.LatLng( 0.467562340000000E+02, -0.119767910000000E+03),\n new google.maps.LatLng( 0.467649380000000E+02, -0.119768102000000E+03),\n new google.maps.LatLng( 0.467657600000000E+02, -0.119767137000000E+03),\n new google.maps.LatLng( 0.467663990000000E+02, -0.119764843000000E+03),\n new google.maps.LatLng( 0.467664510000000E+02, -0.119788083000000E+03),\n new google.maps.LatLng( 0.467696720000000E+02, -0.119786652000000E+03),\n new google.maps.LatLng( 0.467716600000000E+02, -0.119786418000000E+03),\n new google.maps.LatLng( 0.467720940000000E+02, -0.119786750000000E+03),\n new google.maps.LatLng( 0.467753840000000E+02, -0.119790406000000E+03),\n new google.maps.LatLng( 0.467764130000000E+02, -0.119797223000000E+03),\n ];\n\n return zipCoords\n}", "function constructZipCodeArray() \n{ \n\n var zipCoords = [ \n new google.maps.LatLng( 0.469917620000000E+02, -0.119169527000000E+03),\n new google.maps.LatLng( 0.469907790000000E+02, -0.119166055000000E+03),\n new google.maps.LatLng( 0.469933830000000E+02, -0.119161512000000E+03),\n new google.maps.LatLng( 0.470003060000000E+02, -0.119153088000000E+03),\n new google.maps.LatLng( 0.470033330000000E+02, -0.119150246000000E+03),\n new google.maps.LatLng( 0.470037210000000E+02, -0.119150513000000E+03),\n new google.maps.LatLng( 0.470084510000000E+02, -0.119149373000000E+03),\n new google.maps.LatLng( 0.470089290000000E+02, -0.119144930000000E+03),\n new google.maps.LatLng( 0.470079230000000E+02, -0.119143829000000E+03),\n new google.maps.LatLng( 0.470077860000000E+02, -0.119142526000000E+03),\n new google.maps.LatLng( 0.470086760000000E+02, -0.119140187000000E+03),\n new google.maps.LatLng( 0.470115070000000E+02, -0.119135642000000E+03),\n new google.maps.LatLng( 0.470135630000000E+02, -0.119134571000000E+03),\n new google.maps.LatLng( 0.470165120000000E+02, -0.119137073000000E+03),\n new google.maps.LatLng( 0.470178600000000E+02, -0.119137239000000E+03),\n new google.maps.LatLng( 0.470187280000000E+02, -0.119136136000000E+03),\n new google.maps.LatLng( 0.470173100000000E+02, -0.119132963000000E+03),\n new google.maps.LatLng( 0.470177650000000E+02, -0.119130290000000E+03),\n new google.maps.LatLng( 0.470206210000000E+02, -0.119130053000000E+03),\n new google.maps.LatLng( 0.470212380000000E+02, -0.119130453000000E+03),\n new google.maps.LatLng( 0.470216730000000E+02, -0.119131756000000E+03),\n new google.maps.LatLng( 0.470217670000000E+02, -0.119136300000000E+03),\n new google.maps.LatLng( 0.470222010000000E+02, -0.119137001000000E+03),\n new google.maps.LatLng( 0.470227270000000E+02, -0.119136633000000E+03),\n new google.maps.LatLng( 0.470233880000000E+02, -0.119133792000000E+03),\n new google.maps.LatLng( 0.470231330000000E+02, -0.119126942000000E+03),\n new google.maps.LatLng( 0.470299900000000E+02, -0.119116020000000E+03),\n new google.maps.LatLng( 0.470311100000000E+02, -0.119115085000000E+03),\n new google.maps.LatLng( 0.470325950000000E+02, -0.119115889000000E+03),\n new google.maps.LatLng( 0.470359770000000E+02, -0.119115357000000E+03),\n new google.maps.LatLng( 0.470424230000000E+02, -0.119111620000000E+03),\n new google.maps.LatLng( 0.470466770000000E+02, -0.119102397000000E+03),\n new google.maps.LatLng( 0.470475470000000E+02, -0.119098921000000E+03),\n new google.maps.LatLng( 0.470496730000000E+02, -0.119094075000000E+03),\n new google.maps.LatLng( 0.470544960000000E+02, -0.119088060000000E+03),\n new google.maps.LatLng( 0.470569640000000E+02, -0.119087594000000E+03),\n new google.maps.LatLng( 0.470716790000000E+02, -0.119087601000000E+03),\n new google.maps.LatLng( 0.470716350000000E+02, -0.119076965000000E+03),\n new google.maps.LatLng( 0.470839290000000E+02, -0.119076501000000E+03),\n new google.maps.LatLng( 0.470854950000000E+02, -0.119077117000000E+03),\n new google.maps.LatLng( 0.470857550000000E+02, -0.119086939000000E+03),\n new google.maps.LatLng( 0.470864850000000E+02, -0.119091121000000E+03),\n new google.maps.LatLng( 0.470868750000000E+02, -0.119083928000000E+03),\n new google.maps.LatLng( 0.470898460000000E+02, -0.119082525000000E+03),\n new google.maps.LatLng( 0.470947140000000E+02, -0.119073895000000E+03),\n new google.maps.LatLng( 0.470935950000000E+02, -0.119066867000000E+03),\n new google.maps.LatLng( 0.470935950000000E+02, -0.119063722000000E+03),\n new google.maps.LatLng( 0.470941430000000E+02, -0.119062886000000E+03),\n new google.maps.LatLng( 0.470951260000000E+02, -0.119062518000000E+03),\n new google.maps.LatLng( 0.470985310000000E+02, -0.119062618000000E+03),\n new google.maps.LatLng( 0.471019810000000E+02, -0.119058034000000E+03),\n new google.maps.LatLng( 0.471016840000000E+02, -0.119056428000000E+03),\n new google.maps.LatLng( 0.470989650000000E+02, -0.119054722000000E+03),\n new google.maps.LatLng( 0.470982100000000E+02, -0.119053383000000E+03),\n new google.maps.LatLng( 0.470978210000000E+02, -0.119044750000000E+03),\n new google.maps.LatLng( 0.471022590000000E+02, -0.119044774000000E+03),\n new google.maps.LatLng( 0.471022580000000E+02, -0.119023425000000E+03),\n new google.maps.LatLng( 0.471156110000000E+02, -0.119023425000000E+03),\n new google.maps.LatLng( 0.471155220000000E+02, -0.118981074000000E+03),\n new google.maps.LatLng( 0.471155220000000E+02, -0.118981074000000E+03),\n new google.maps.LatLng( 0.471029170000000E+02, -0.118981158000000E+03),\n new google.maps.LatLng( 0.470572540000000E+02, -0.118981175000000E+03),\n new google.maps.LatLng( 0.470571990000000E+02, -0.118981175000000E+03),\n new google.maps.LatLng( 0.469839200000000E+02, -0.118982125000000E+03),\n new google.maps.LatLng( 0.469839200000000E+02, -0.118982125000000E+03),\n new google.maps.LatLng( 0.469568870000000E+02, -0.118982068000000E+03),\n new google.maps.LatLng( 0.469568870000000E+02, -0.118982068000000E+03),\n new google.maps.LatLng( 0.469113210000000E+02, -0.118982545000000E+03),\n new google.maps.LatLng( 0.469123080000000E+02, -0.119203851000000E+03),\n new google.maps.LatLng( 0.469218870000000E+02, -0.119204299000000E+03),\n new google.maps.LatLng( 0.469218870000000E+02, -0.119204299000000E+03),\n new google.maps.LatLng( 0.469227560000000E+02, -0.119202231000000E+03),\n new google.maps.LatLng( 0.469281940000000E+02, -0.119196530000000E+03),\n new google.maps.LatLng( 0.469293830000000E+02, -0.119193728000000E+03),\n new google.maps.LatLng( 0.469384310000000E+02, -0.119186657000000E+03),\n new google.maps.LatLng( 0.469394140000000E+02, -0.119186824000000E+03),\n new google.maps.LatLng( 0.469406940000000E+02, -0.119188225000000E+03),\n new google.maps.LatLng( 0.469450810000000E+02, -0.119189927000000E+03),\n new google.maps.LatLng( 0.469513650000000E+02, -0.119191629000000E+03),\n new google.maps.LatLng( 0.469547470000000E+02, -0.119191563000000E+03),\n new google.maps.LatLng( 0.469608020000000E+02, -0.119187492000000E+03),\n new google.maps.LatLng( 0.469645490000000E+02, -0.119179347000000E+03),\n new google.maps.LatLng( 0.469665600000000E+02, -0.119191764000000E+03),\n new google.maps.LatLng( 0.469720890000000E+02, -0.119196672000000E+03),\n new google.maps.LatLng( 0.469770930000000E+02, -0.119197841000000E+03),\n new google.maps.LatLng( 0.469786470000000E+02, -0.119197809000000E+03),\n new google.maps.LatLng( 0.469843820000000E+02, -0.119194671000000E+03),\n new google.maps.LatLng( 0.469848150000000E+02, -0.119205891000000E+03),\n new google.maps.LatLng( 0.469884150000000E+02, -0.119208344000000E+03),\n new google.maps.LatLng( 0.469884150000000E+02, -0.119208344000000E+03),\n new google.maps.LatLng( 0.469919450000000E+02, -0.119197378000000E+03),\n new google.maps.LatLng( 0.469924480000000E+02, -0.119191768000000E+03),\n new google.maps.LatLng( 0.469923110000000E+02, -0.119188528000000E+03),\n new google.maps.LatLng( 0.469911460000000E+02, -0.119187493000000E+03),\n new google.maps.LatLng( 0.469903920000000E+02, -0.119185556000000E+03),\n new google.maps.LatLng( 0.469907800000000E+02, -0.119177208000000E+03),\n new google.maps.LatLng( 0.469928590000000E+02, -0.119173935000000E+03),\n new google.maps.LatLng( 0.469917620000000E+02, -0.119169527000000E+03),\n ];\n\n return zipCoords\n}", "function getLocInfo(zipInput) {\n fetch(geoBaseURL + zipInput)\n .then(response =>\n response.json().then(data => ({\n\n data: data,\n status: response.status\n\n\n })).then(function (getTemp) {\n let latLng = getTemp.data.results[0].locations[0].latLng\n let lat = parseFloat(latLng.lat.toFixed(4))\n let lng = parseFloat(latLng.lng.toFixed(4))\n\n console.log(\"getLocInfo\")\n console.log(getTemp.status, lat, lng)\n getWeatherFromLatLng(lat, lng)\n }));\n}", "function getZip(lat, lon, callback) {\n var url = prepare_api_url(lat,lon);\n $.get(url, function (data) {\n\n var results = data.results[0];\n var addrs = results.address_components;\n console.log(addrs.length);\n\n var i = 0;\n var found = false;\n while(i < addrs.length && !found){\n found = (addrs[i].types[0] === \"postal_code\")? true : false;\n i++;\n }\n i--;\n\n var zip = addrs[i].long_name;\n callback(zip);\n\n\n\n });\n}", "function getCityAndCoords() {\n // returns array of ['cityKey', [long, lat], ...]\n var cityAndCoordinates = []\n\n GeoCities.forEach(function(city) {\n cityAndCoordinates.push(city.key, city.location.reverse())\n })\n return cityAndCoordinates;\n}", "function zipToGeoJson(binZip,options) {\n\tvar manifestZip = xdmp.zipManifest(binZip);\n\tvar items = [];\n\tfor (prop in manifestZip) {\n\t items.push(manifestZip[prop])\n\t}\n\tvar projection = items.filter(function(item) {\n\t return item.path.match(/\\.prj/gi);\n\t}).map(function(item,index) {\n\t return xdmp.zipGet(binZip,item.path,{\"format\":\"text\"});\n\t})[0];\n\tvar objOut = {};\n\titems\n\t .filter(function(item) {\n\t return item.path.match(/\\.shp$/) || item.path.match(/\\.dbf/);\n\t })\n\t .map(function(item) {\n\t var builder = new NodeBuilder();\n\t var tbuilder = new NodeBuilder();\n\n\t //Build a binaryNode \n\t var entry = xdmp.zipGet(binZip,item.path,{\"format\":\"binary\"});\n\t for(e of entry) {\n\t builder.addNode(e);\n\t }\n\t var bin = builder.toNode();\n\t var path = item.path;\n\t var buffer = BinToBuffer(bin);\n\t //Iterate matched items and process file types\n\t switch(true) {\n\t case /\\.dbf$/gi.test(path) :\n\t type = \"dbf\"; \n\t //We need to extract dbf text before we parse dbf\n\t var text = Utf8ArrayToStr(buffer); \n\t objOut.dbf = DBFParser.parse(buffer.buffer,path,text,\"utf-8\");\n\t break;\n\t case /\\.shp$/gi.test(path) : \n\t objOut.shp = SHPParser.parse(buffer.buffer);\n\t break;\n\t default: throw(\"WHY:\" + path)\n\t }\n\t });\n\treturn toGeoJson(objOut);\n}" ]
[ "0.6737198", "0.64400226", "0.63169974", "0.6311418", "0.62919027", "0.6291482", "0.6290736", "0.6288351", "0.6284496", "0.6283507", "0.62823826", "0.6279578", "0.6264625", "0.6264372", "0.626406", "0.62629193", "0.62580687", "0.625564", "0.6255397", "0.62530696", "0.62506586", "0.6250359", "0.62492007", "0.624764", "0.62466276", "0.6246313", "0.624489", "0.624483", "0.6242931", "0.62422734", "0.6241908", "0.62413013", "0.62398446", "0.6237974", "0.62357444", "0.6234423", "0.62334716", "0.6233274", "0.6233039", "0.6232374", "0.62309253", "0.6230872", "0.6230807", "0.62301517", "0.62287813", "0.62285745", "0.6227213", "0.6226745", "0.62253934", "0.62250465", "0.6224497", "0.6223427", "0.6223025", "0.62213045", "0.6220475", "0.621986", "0.6219274", "0.6218895", "0.62184095", "0.621831", "0.62177926", "0.6217462", "0.6214501", "0.62139577", "0.6213754", "0.6212931", "0.6212848", "0.62126446", "0.62124586", "0.6212311", "0.62121063", "0.6211292", "0.6211041", "0.62090105", "0.6207896", "0.6207254", "0.6207126", "0.6206686", "0.6206558", "0.6205945", "0.62046117", "0.6204286", "0.62029433", "0.6202207", "0.62019646", "0.6201895", "0.6201058", "0.6200265", "0.62002444", "0.61974967", "0.6197229", "0.6193942", "0.61923957", "0.61883056", "0.61881715", "0.61769986", "0.60549164", "0.60377264", "0.59881365", "0.59751934" ]
0.6870564
0
Get Coordinates bas off IP
function getIP(ip) { return new Promise((resolve, reject) => { // ipStack Call ipStack('GET', ip) // ip Stack Call Successful .then((data) => { const location = JSON.parse(data) resolve({ lat: location.latitude, lon: location.longitude, city: location.city }) }) .catch((error) => { reject(error) }) }) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getCoordinatesFromIP(ip) {\n var ipgeolocationAPIURL = 'https://api.ipgeolocation.io/ipgeo?apiKey=API_KEY&ip=1.1.1.1'\n const options = createOptionsForIPGeolocation(ipgeolocationAPIURL, ip);\n \n return new Promise(function (resolve, reject) {\n request(options, function (error, response, body) {\n if (error)\n return reject(error);\n var lat,lng;\n try {\n var place = JSON.parse(body);\n lat = place.latitude;\n lng = place.longitude;\n return resolve({latitude: lat, longitude: lng});\n } catch (e) {\n return reject(e);\n }\n });\n });\n}", "function getipaddress(theip){\n theip = theip.split(\":\");\n return theip[3];\n}", "async fetchLocationFromIp() {\n const url = `https://freegeoip.app/json/`;\n const response = await fetch(url).then(response => response.json());\n return {\n latitude: response.latitude,\n longitude: response.longitude,\n };\n }", "locateOrigin() {\n return publicIp.v4().then(ip => this.locateIp(ip));\n }", "function getIpData(ip) {\n log('Get data for IP:', ip);\n return new Promise(function(resolve, reject) {\n if(!ip || ip == undefined) return resolve('(no data)');\n if(isLocalIp(ip)) ip = process.env.EXTERNAL_IP; // use local external IP if local IP\n\n return dnsLookup(ip).then(function(ip) {\n return getCoords(ip);\n })\n .then(function(data) {\n log('COORDS:', data);\n let extra = data;\n let coords = data.latitude + ',' + data.longitude;\n // TODO: support for returnig coords only, since google quota is limited...\n getCoordData(coords).then(function(data) {\n data.ip = ip;\n data.extra = extra;\n return resolve(prepareIpData(data));\n })\n })\n });\n}", "function point(){\n console.log(position);\n console.log(\"lat:\"+ position.coordinate.lat + \"/lon:\" + position.coordinate.lon + \"/ip:\" + position.ip ) ;\n}", "function geolocateByIP() {\n\tif (google.loader.ClientLocation) {\n\t\tvar location = google.loader.ClientLocation;\n\t\tcurrentAddress = location.address.city + ', ' + location.address.region;\n\t\tstoreMyLocation(location.latitude, location.longitude);\n\t} else {\n\t\tcurrentAddress = 'San Fransisco, CA';\n\t\tstoreMyLocation(37.75, -122.45);\n\t}\n}", "function getCoordintes() { \n\tvar options = { \n\t\tenableHighAccuracy: true, \n\t\ttimeout: 5000, \n\t\tmaximumAge: 0 \n\t}; \n\tfunction success(pos) { \n\t\tvar crd = pos.coords; \n\t\tvar lat = crd.latitude.toString(); \n\t\tvar lng = crd.longitude.toString(); \n\t\tvar coordinates = [lat, lng]; \n\t\tgetCity(coordinates); \n\t\treturn; \n\t} \n\tfunction error(err) { \n\t\tconsole.warn(`ERROR(${err.code}): ${err.message}`); \n\t} \n\tnavigator.geolocation.getCurrentPosition(success, error, options); \n}", "function getCoordintes() { \n\tvar options = { \n\t\tenableHighAccuracy: true, \n\t\ttimeout: 5000, \n\t\tmaximumAge: 0 \n\t}; \n\n\tfunction success(pos) { \n\t\tvar crd = pos.coords; \n\t\tvar lat = crd.latitude.toString(); \n\t\tvar lng = crd.longitude.toString(); \n\t\tvar coordinates = [lat, lng]; \n\t\tconsole.log(`Latitude: ${lat}, Longitude: ${lng}`); \n\t\tgetCity(coordinates); \n\t\treturn; \n\n\t} \n\n\tfunction error(err) { \n\t\tconsole.warn(`ERROR(${err.code}): ${err.message}`); \n\t} \n\n\tnavigator.geolocation.getCurrentPosition(success, error, options); \n}", "function getCurrentIP_mi () { return fetch('https://api.myip.com').then(res => res.json().then ( js => js.ip ) ) }", "static get ipAddress() {}", "async function getIpData(ip) {\r\n const key = \"fb3373efeb05431595ae83c30ec374fe\";\r\n const URI = `https://api.ipgeolocation.io/ipgeo?apiKey=${key}&ip=${ip}`;\r\n let res = await fetch(URI, {\r\n method: \"GET\",\r\n headers: {\r\n \"Content-Type\": \"application/json\"\r\n }\r\n });\r\n if (!res.ok) {\r\n throw new Error(\"cannot fetch data\");\r\n }\r\n let data = await res.json();\r\n\r\n return data;\r\n}", "function getIPLocation(ipAddress) {\n debug(\"Getting 'fresh' Geo data for IP: \" + ipAddress);\n return new Promise(function (resolve, reject) {\n return util.getContent(global.config.geoAPI.url + ipAddress + \"/json/\").then((ipGeoData) => {\n resolve(JSON.parse(ipGeoData));\n }).catch((error) => {\n reject(error);\n });\n });\n}", "function get(ip) {\n var queryDoc = {\n ip: ip\n };\n\n //First find the ip in the data base. If the ip stay in the\n //data base -> not request to external service.\n var query = GeoIpModel.findOne(queryDoc);\n return query.exec()\n .then(function(_location){\n if (!_location) {\n //The ip isn't contains in the data base. -> request\n //info to the external service\n return GeoLocationService.getLocationByIp(ip);\n }\n\n return _location;\n })\n .then(function(geoPosition) {\n var location = _createLocationObj(ip, geoPosition);\n\n if (!geoPosition._id && location.country !== 'private range') {\n //If the location country isn't private range and not stay in the \n //data base -> insert the location into the data base.\n _insertLocation(location);\n }\n\n return location;\n });\n}", "function getIpLocation() {\n var getIP = $.ajax({\n url: 'http://ip-api.com/json',\n method: 'GET'\n })\n //this gets the IP location\n getIP.done(function(response){\n console.log(\"City that we are in: \", response.city);\n getWeatherData(response.city);\n forecast(response.city);\n })\n getIP.fail(function(error){\n console.log(error);\n })\n\n }", "function GetIP(){\r\n\t\t\t$.getJSON(\"https://api.ipify.org?format=json\",function(data){\r\n\t\t\t\t//direccion ip\r\n\t\t\t\tip = data.ip; \r\n\t\t\t\t//variables de la fecha\r\n\t\t\t\tvar fecha = new Date();\r\n\t\t\t\tdia = fecha.getDate();\r\n\t\t\t\tmes = fecha.getMonth() + 1;\r\n\t\t\t\tano = fecha.getFullYear();\r\n\t\t\t});\r\n\t\t}", "function askForCoords(){\n navigator.geolocation.getCurrentPosition(handleGeoSuccess, handleGeoError)\n}", "function getLocationData() {\n const url = 'https://ipinfo.io/json?token=08f12254167956';\n return fetch(url).then((result) => result.json());\n}", "function getDeviceIP() {\n\tif (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest();\n\telse xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n\n\txmlhttp.open(\"GET\",\"http://api.hostip.info/get_html.php\",false);\n\txmlhttp.send();\n\n\thostipInfo = xmlhttp.responseText.split(\"\\n\");\n\n\tfor (i=0; hostipInfo.length >= i; i++) {\n\t\tipAddress = hostipInfo[i].split(\":\");\n\t\tif ( ipAddress[0] == \"IP\" ){\n\t\t\treturn ipAddress[1];\n\t\t}\n\t}\n\n\treturn false;\n}", "function getCoords () {\n return {\n x: 10,\n y: 22\n }\n }", "function get_ip() {\n\tvar networkInterfaces = os.networkInterfaces();\n\tfor (key in networkInterfaces) {\n\t\t// For each interface, two addresses are present : ipv4 and ipv6\n\t\t// We only keep ipv4 => [0]\n\t\tif (networkInterfaces[key][0].internal == false) { // Return first external ip\n\t\t\treturn networkInterfaces[key][0].address;\n\t\t}\n\t}\n}", "function getUserIpInformation() {\n return ajax('//ipinfo.io/json');\n}", "function get_local_ip_addresses(){\n if (ipAddr ) return ipAddr; //only do detecion once..\n ipAddr = [];\n\n console.error(\"Detecting Local IP Addresses..\");\n var ifaces=os.networkInterfaces();//this doesn't work on windows node implementation yet :( - April 5 2012\n for (var dev in ifaces) {\n var alias=0;\n ifaces[dev].forEach(function(details){\n if (details.family=='IPv4') {\n if(details.address!='127.0.0.1') ipAddr.push(details.address);\n console.error(dev+(alias?':'+alias:''),details.address);\n ++alias;\n }\n });\n }\n\n return ipAddr;\n}", "function getCoords(point) {\n return [Number(point.lat.toFixed(4)), Number(point.lng.toFixed(4))];\n }", "function getBrowserGeoLoc(){\n getLocation();\n showPosition();\n }", "async whereIs(ip) {\n const [ proxyResults, locationResults ] = await this._whereIsQueries(ip);\n const results = {\n proxy: null,\n location: null,\n };\n\n // (1) Process results about the proxy lookup for the given |ip| address.\n if (proxyResults && proxyResults.rows.length === 1) {\n const row = proxyResults.rows[0];\n results.proxy = {\n country: row.country_name,\n region: row.region_name,\n city: row.city_name,\n\n isp: row.isp,\n domain: row.domain,\n usage: this.parseUsageType(row.usage_type),\n\n network: row.asn,\n networkName: row.as,\n };\n }\n\n // (2) Process results about the location lookup for the given |ip| address.\n if (locationResults && locationResults.rows.length === 1) {\n const row = locationResults.rows[0];\n results.location = {\n country: row.country_name,\n region: row.region_name,\n city: row.city_name,\n timeZone: row.time_zone\n };\n }\n\n // (3) Return the formatted results to the caller.\n return results;\n }", "function getCoords() {\r\n\r\n\t// use real coords in the future\r\n\t// in the future use this -> navigator.geolocation.getCurrentPosition(function(geo) { })\r\n\treturn { \r\n\t\tlatitude: '' + 33.501 + parseInt(Math.random() * 1000),\r\n\t\tlongitude: '' + -82.51 + parseInt(Math.random() * 1000)\r\n\t}\r\n}", "function getIP(json) {\n client_IP = json.ip\n}", "async function geoLocate(ip) {\n const api = await fetch(`https://ipgeolocation.abstractapi.com/v1/?api_key=${GeoLocateKey}&ip_address=${ip}`);\n const jsonData = await api.json();\n databaseJSON.insert(jsonData);\n }", "getLocation(x, y) {\n return [Math.floor(x / CELL.WIDTH), Math.floor(y / CELL.HEIGHT)];\n }", "function extractIP(rawtext){\n var patt = /(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/g;\n var patt2 = /(^127\\.)|(^10\\.\\S*)|(^172\\.1[6-9]\\.)|(^172\\.2[0-9]\\.)|(^172\\.3[0-1]\\.)|(^192\\.168\\.)/;\n var ips = rawtext.match(patt);\n var uniqueIps = [];\n var pvtIPs = [];\n var pubIPs = [];\n $.each(ips, function(i, el){\n if($.inArray(el, uniqueIps) === -1){\n uniqueIps.push(el);\n if(el.match(patt2) != null) \n pvtIPs.push(el);\n else\n pubIPs.push(el);\n }\n });\n return {uniqueIps, pvtIPs, pubIPs};//return all three as an object\n //$('#result-text').val(pvtIPs.toString()+'\\n'+pubIPs.toString());\n}", "function getIP(json) {\n var dIP = json.ip;\n IP = dIP.split('.').join('dot');\n}", "function getUserIPAddress(req) {\n var ip = req.headers['x-forwarded-for'] ||\n req.connection.remoteAddress ||\n req.socket.remoteAddress ||\n req.connection.socket.remoteAddress;\n ip = ip.split(',')[0];\n ip = ip.split(':').slice(-1); //in case the ip returned in a format: \"::ffff:146.xxx.xxx.xxx\"\n return ip;\n}", "function geoip_lookup(ip,callback){\n//\tconsole.log('looking up ip',ip);\n\tvar geo = geoip.lookup(ip);\n\tcallback({},geo);\n}", "function getXY(lat, lon) {\n return {\n cx: lon * 2.6938 + 465.4,\n cy: lat * -2.6938 + 227.066\n };\n }", "function getCoords() {\n return {\n x: 10,\n y: 22\n };\n}", "async function ipLookUp(ip) {\n const url = `http://ip-api.com/json/${ip}`; // 45 requests per minute\n const url_free = `http://geolocation-db.com/json/${ip}`; // free and slow (CORS errors)\n \n const response = await fetch(url_free);\n const data = await response.json()\n return data;\n}", "function getIPAddr(){\nvar getIP = require('ipware')().get_ip;\n\tapp.use(function(req, res, next) {\n\t ipInfo = getIP(req);\n\t console.log(\"ip info is\",ipInfo);\n\t \n\t \n\t // { clientIp: '127.0.0.1', clientIpRoutable: false }\n\t next();\n\n\t});\n}", "function get_client_ip_address() {\n return new Promise(function(resolve, reject) {\n var client_info = ajax('https://www.cloudflare.com/cdn-cgi/trace', 'get', function(client_info) {\n var client_information = client_info.responseText;\n var split_client_info = client_information.split(\"\\n\"); var client_ip = split_client_info[2].split('=')[1];\n var client_country_zone = split_client_info[8];\n resolve(client_ip);\n return client_ip;\n });\n });\n }", "async function getCoordinates(req){\n\n try {\n\n var city = req.body.city || saved_loc;\n\n var url = `https://maps.googleapis.com/maps/api/geocode/json?address=${city}&key=${Geocode_API_KEY}&unit=metric`\n\n const response = await fetch(url);\n var data = await response.json();\n return [data.results[0].geometry.location.lat, data.results[0].geometry.location.lng];\n\n } catch(err){\n console.log(err);\n }\n}", "function getIPAdress(){ \n var interfaces = require('os').networkInterfaces(); \n for(var devName in interfaces){ \n var iface = interfaces[devName]; \n for(var i=0;i<iface.length;i++){ \n var alias = iface[i]; \n if(alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal){ \n return alias.address; \n } \n } \n } \n}", "function getCoords(data) {\n latitude = data.results[0].geometry.location.lat;\n longitude = data.results[0].geometry.location.lng;\n console.log(\"Lat: \" + latitude + \"Long: \" + longitude);\n url = \"?zipInput=\" + zipInput + \"&addressInput=\" + addressInput + \"&cityInput=\" + cityInput + \"&stateInput=\" + stateInput + \"&longitude=\" + longitude + \"&latitude=\" + latitude;\n url = url.replace(/ /g, '') // Remove White Space\n console.log(url);\n getURL(url);\n}", "function getGIP(ip, cb){\n\t\t\tgetJson('http://freegeoip.net/json/'+ip, function(err, response) {\n\t\t if (err) return console.log(err);\n\t\t burstData['ipInfo'] = response;\n\t\t cb();\n\t\t });\n\t\t}", "getIpAddress() {\n const userIp = this.event.headers[\"X-Forwarded-For\"] || ``;\n\n return userIp;\n }", "function inet_aton(ip){\n var a = ip.split('.');\n var buffer = new Buffer(4);\n buffer.fill(0);\n for(var i = 0; i < 4; i++) {\n buffer.writeUInt8(parseInt(a[i]), i);\n }\n\n var intIp = buffer.readUInt32LE(0);\n console.log('0x' + intIp.toString(16));\n return intIp;\n}", "function locationByIP() {\n\n $.getJSON('http://ipinfo.io/json', null, function(json, textStatus) {\n\n var locationObj = JSON.stringify(json);\n\n console.log(\"Ajax response is :\" + locationObj);\n\n console.log(\"textStatus :\" + textStatus);\n\n try {\n cityName = json.city;\n console.log('city is' + locationObj);\n console.log('city is' + json.city);\n regionName = json.region;\n countryName = json.country;\n var coordinates = json.loc.split(\",\");\n latitude = Number(coordinates[0]);\n longitude = Number(coordinates[1]);\n setCountryUnits();\n getWeatherData();\n } catch (e) {\n // statements\n console.log(\"Exception caught in Location by IP : \" + e);\n }\n });\n\n }", "function ipresolver() {\n\tfetch('http://ip-api.com/json/')\n\t\t.then(function(res) { return res.json();})\n\t\t.then(function(data) { getWeather(data.city);})\n\t\t.catch(function(err) {\n\t\t\tconsole.log('Fetch Error :-S', err);\n\t\t});\n}", "function getCityAndCoords() {\n // returns array of ['cityKey', [long, lat], ...]\n var cityAndCoordinates = []\n\n GeoCities.forEach(function(city) {\n cityAndCoordinates.push(city.key, city.location.reverse())\n })\n return cityAndCoordinates;\n}", "function parse_city_coords(){\r\n \r\n /* coordinates of upper left tile */\r\n inputs=document.getElementsByTagName(\"input\");\r\n \r\n for(i=0; i<inputs.length; i++){\r\n \r\n /* searches for the top left cell in the map */\r\n input = inputs[i];\r\n if(coords = input.value.match( /^(\\d+)-(\\d+)$/ )){\r\n \r\n c = coords[1];\r\n r = coords[2];\r\n \r\n // what was he doing?!?\r\n //r_mod = 0; c_mod = 0;\r\n \t\r\n //if(r % 10)\r\n // r_mod = 1;\r\n \r\n //if(c % 10)\r\n // c_mod = 1;\r\n \r\n //coords[1] = parseInt(coords[1])+c_mod;\r\n //coords[2] = parseInt(coords[2])+r_mod;\r\n \r\n //returnCoords = Array();\r\n //returnCoords[COORD_PLAYER_X] = coords[1];\r\n //returnCoords[COORD_PLAYER_Y] = coords[2];\r\n \r\n // this looks right\r\n X_add = (parseInt(coords[1]) > 0) ? 1 : 0;\r\n Y_add = (parseInt(coords[2]) > 0) ? 1 : 0;\r\n \r\n returnCoords = Array();\r\n returnCoords[COORD_PLAYER_X] = parseInt(coords[1])+X_add;\r\n returnCoords[COORD_PLAYER_Y] = parseInt(coords[2])+Y_add;\r\n \r\n return returnCoords;\r\n }\r\n }\r\n}", "function getCoordinates(p1, p2, p3, answer) {\n var xArr = [],\n yArr = [];\n if (answer == 'flat') {\n xArr.push(p1.anchor[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p3.anchor[0]);\n \n yArr.push(p1.anchor[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p3.anchor[1]);\n }\n if (answer == 'l_zero') {\n xArr.push(p3.anchor[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p2.rightDirection[0]);\n\n yArr.push(p3.anchor[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p2.rightDirection[1]);\n }\n\n if (answer == 'r_zero') {\n xArr.push(p2.leftDirection[0]);\n xArr.push(p2.anchor[0]);\n xArr.push(p1.anchor[0]);\n\n yArr.push(p2.leftDirection[1]);\n yArr.push(p2.anchor[1]);\n yArr.push(p1.anchor[1]);\n }\n return { 'x': xArr, 'y': yArr };\n}", "function getIntIP (num) {\n //library get ip address from ubuntu\n return require('child_process').execSync(\"ifconfig | grep 'inet' | grep -v inet6 | grep -v 127.0.0.1 | awk '{print $2}'\").toString().trim();\n //other way : install packet NPM IP first\n //let ip = require(\"ip\");\n // eturn ip.address()\n\n}", "async function coordinates(city){\n var data = await fetchAsync(city)\n var coords = data.results[0].geometry.location\n return coords;\n}", "function getCity(coordinates) {\n\tvar xhr = new XMLHttpRequest();\n\tvar lat = coordinates[0];\n\tvar lng = coordinates[1];\n\n\t// Paste your LocationIQ token below.\n\txhr.open('GET', \"https://us1.locationiq.com/v1/reverse.php?key=pk.49fd5203799fe38a65295fec96174630&lat=\"+lat+\"&lon=\"+lng+\"&format=json\", true);\n\txhr.send();\n\txhr.onreadystatechange = processRequest;\n\txhr.addEventListener(\"readystatechange\", processRequest, false);\n\n\tfunction processRequest(e) {\n\t\tif (xhr.readyState == 4 && xhr.status == 200) {\n\t\t\tvar response = JSON.parse(xhr.responseText);\n\t\t\tvar city = response.address.city;\n\t\t\tsetAddr(response.address);\n\t\t\treturn;\n\t\t}\n\t}\n}", "async getAddressCoord(){\n \n let url = new URL('https://api.tomtom.com/search/2/geocode/.json')\n url.search = new URLSearchParams({\n query: this.searchAddress,\n key: 'HgVrAuAcCtAcxTpt0Vt2SyvAcoFKqF4Z',\n versionNumber: '2',\n limit: '1'\n })\n \n const response = await fetch(url);\n\n const data = await response.json();\n this.lat = data.results[0].position.lat;\n this.lon = data.results[0].position.lon;\n\n console.log(this.lat);\n }", "get ipAddress() {\n return this.getStringAttribute('ip_address');\n }", "get ipAddress() {\n return this.getStringAttribute('ip_address');\n }", "function devolverIP( IPrecibida ) {\n console.log('FUNCION devolverIP ======================');\n\n //creo una var en la que se guarda el OBJETO entero asociado al IP que le paso.\n var pais = ip2loc.IP2Location_get_all( IPrecibida );\n\n //Devuelvo la PROPIEDAD 'country_long' del OBJETO pais.\n return pais;\n \n}", "function getCoordsByUrl(urll){\n\tlet coords;\n\tif(sessionStorage.getItem(\"smart_fake_coords\") != null){\n\t\tcoords = sessionStorage.getItem(\"smart_fake_coords\");\n\t}else{\n\t\t$.ajax({url: urll, async: false, success: function(result){\n\t\tcoords = $(result).find(\".post > .text\").eq(0).text().match(/\\d+,\\d+/g);\n\t\t\tfor(let x = 0; x < coords.length; x++){\n\t\t\t\tcoords[x] = coords[x].replace(\",\", \"|\");\n\t\t\t}\n\t\t\tcoords = coords.join(\" \");\n\t\t}})\t\n\t\tsessionStorage.setItem(\"smart_fake_coords\", coords);\n\t}\n\treturn coords;\n}", "function __get_ip()\n{\n $.postJSON(\n api_url + \"get/ip/\",\n null,\n function(data){\n let ip_address = data[\"ip\"];\n }\n );\n}", "function getCityCoords(somecity) {\n var cityAndCoordinates = getCityAndCoords();\n\n var cityCoordinates = cityAndCoordinates[cityAndCoordinates.indexOf(somecity) + 1]\n return cityCoordinates;\n}", "async function getCoordsAndLocation(location) {\n const locationData = await fetch(\n `https://api.openweathermap.org/data/2.5/weather?q=${location}&appid=${key}&units=${getUnits()}`,\n {mode: 'cors'},\n );\n const locationDataJson = await locationData.json();\n const locationName =\n locationDataJson.name + ', ' + locationDataJson.sys['country'];\n return [locationDataJson.coord.lat, locationDataJson.coord.lon, locationName];\n}", "function getIp() {\n $.ajax({\n dataType: \"json\",\n url: \"https://api.ipify.org?format=json\",\n async: false,\n success: function (output) {\n ip = output.ip;\n console.log(\"IP do utlizador: \" + ip);\n },\n error: function (output) {\n console.log(\"Erro: \" + output);\n ip = 0;\n }\n });\n}", "function fetchGeo(req) {\n let ip = getIP(req);\n console.log(\"Fetching geo info for IP \" + ip);\n let url = `https://geo.ipify.org/api/v1?apiKey=${GEO_KEY}&ipAddress=${ip}`;\n return fetch(url).then(handleFetchErrors).then(response => response.json());\n}", "coordinates () {\n return this._position.coordinates()\n }", "async getLocation() {\r\n const locationResp = await fetch('https://extreme-ip-lookup.com/json/?key=Yw6V3K7FoTxqx9uE9gf3');\r\n const location = await locationResp.json();\r\n\r\n return {\r\n location\r\n };\r\n }", "function calculate_coordinates () {\n\t }", "function ip_to_int(ip) {\n\tif (!ip)\n\t\treturn 0;\n\tvar quads = ip.split(\".\");\n\tvar addr = (quads[0]&0xff)<<24;\n\taddr|=(quads[1]&0xff)<<16;\n\taddr|=(quads[2]&0xff)<<8;\n\taddr|=(quads[3]&0xff);\n\treturn addr;\n}", "function getCoords(location) {\n const latitude = location.coords.latitude;\n const longitude = location.coords.longitude;\n const id = \"location1\";\n\n fetchCurrentWeather(latitude, longitude, id);\n}", "function getUserLocation() {\n fetch(`https://ipapi.co/json`)\n .then(function(response) {\n return response.json();\n })\n .then(function(recievedData) {\n displayUserLocation(recievedData);\n });\n}", "async function getCoordsFromAddress(address) {\n const response = await fetch(`https://geocode-maps.yandex.ru/1.x/?format=json&apikey=${YANDEX_API_KEY}&geocode=${address}`);\n if (!response.ok) {\n throw new Error('failed to fetch coordinates, try again')\n }\n const data = await response.json();\n if (data.error) {\n throw new Error(data.message)\n }\n const coordsArr = data.response.GeoObjectCollection.featureMember[0].GeoObject.Point.pos.split(' ');\n return {lng: coordsArr[0], lat: coordsArr[1]}\n}", "function getCoords() {\n // Making use of the navigator.geolocation property which gives access to user location\n if (navigator.geolocation) {\n // After declaring variable and learning we are using the navigator.geolocation property, we are not calling for the position and asking for display of position\n navigator.geolocation.getCurrentPosition(displayPosition);\n\n // Making use of an else statement which says to say not available otherwise\n } else {\n userLocation.innerHTML = \"Not available\";\n }\n}", "async function getGeoInfo() {\n const response = axios\n .get(\"https://ipapi.co/json/\")\n .then((response) => {\n let data = response.data;\n return data;\n })\n .catch((error) => {\n console.log(error);\n });\n\n return response; // parses JSON response into native JavaScript objects\n}", "function getIP() {\n return new Promise(function(resolve, reject) {\n execGetIP(function(err, stdout, stderr) {\n if (err) {\n wifi.error(\"There was an error retr dhcp\" + err);\n reject();\n } else {\n var ipAddress = stdout.toString();\n if (ipAddress.length > 0) {\n var ips = ipAddress.split(\" \");\n resolve(ips);\n } else {\n resolve();\n }\n }\n });\n });\n }", "function getLatLng(results){\n\t//Output the results\n\tconsole.log(results);\n\t//Scroll down the array in the JSON. I ignore everything except the two lat long variables\n\tvar location = results[\"results\"][0][\"geometry\"][\"location\"],\n\t\t//Finds the lattitude value\n\t\tlat = location[\"lat\"],\n\t\t//Finds the longitude value\n\t\tlng = location[\"lng\"]\n\t//weatherRequest(lat, lng)\n\t//Output the lat, long into the console for debugging 2\n\tconsole.log(lat)\n\tconsole.log(lng)\n\tconsole.log(\"lat, lng. Above\")\n}", "async function getCoords(url) {\n try {\n const response = await fetch(url);\n const weatherData = await response.json();\n const { coord } = weatherData;\n coord.name = weatherData.name;\n coord.country = weatherData.sys.country;\n\n return coord;\n } catch (err) {\n console.log(err);\n }\n}", "function prepareIpData(data) {\n data.map = getGoogleMap(coords);\n data.mapZoomed = getGoogleMap(coords, 13); // extra zoom\n data.mapZoomedAlt = false;\n \n if(data.extra.latitude) {\n let diffCoords = data.extra.latitude + ',' + data.extra.longitude;\n data.mapZoomedAlt = getGoogleMap(diffCoords, 13);\n }\n return data;\n}", "function getCoordinates(eventlist){\r\n var coordinates = []\r\n for (event of eventlist) {\r\n coordinates.push(event.geometry.coordinates)\r\n }\r\n console.log (coordinates)\r\n return coordinates\r\n}", "function getLatLon() {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(function setVariable(position) {\n lat = position.coords.latitude;\n lon = position.coords.longitude;\n setApi();\n processJSON();\n });\n }\n}", "function _getCoordinates(x, y) {\n var res = _getFirstPlotLayerInfo();\n var topLeft = res[0], scale = res[1], width = res[2], height = res[3];\n \n var percentageCoordinates = position.topLeftToPercentage({x: x, y: y}, topLeft, scale, width, height);\n var pixelCoordinates = {x: percentageCoordinates.x * width, y: percentageCoordinates.y * height};\n \n return [pixelCoordinates, width, height];\n }", "get ipRange() {\n if (this.ipRangeInner) {\n return {\n end: this.ipRangeInner.end,\n start: this.ipRangeInner.start,\n };\n }\n return undefined;\n }", "get ipRange() {\n if (this.ipRangeInner) {\n return {\n end: this.ipRangeInner.end,\n start: this.ipRangeInner.start,\n };\n }\n return undefined;\n }", "function getIPinfo(){\n fetch('https://ipinfo.io?token=a42a1e24fd11a1')\n .then(res => res.json())\n .then(data => ip = data)\n .catch(function(error){\n console.log(error)\n alert(error)\n })\n}", "function getListOfPoints() {\n var coordinates = []\n\n GeoCities.forEach(function(city) {\n coordinates.push(city.location.reverse())\n })\n return coordinates;\n}", "function getGeolocation() {\n // console.log(this.responseText);\n var data = JSON.parse(this.responseText);\n var results = data.results;\n results.forEach(function (element) {\n console.log(element.geometry.location);\n var ubication = {\n lat: element.geometry.location.lat,\n lng: element.geometry.location.lng\n };\n });\n }", "function getCoordinates(address) {\n var apiToken = \"pk.eyJ1IjoiY3B0c3Bvb2t5IiwiYSI6ImNrZDlpcDRheDA0b2IzM2pxZDZzNnI2Y2cifQ.0GQCDJlDIwPOy_9uR0Vgsw\";\n var mapboxURL = \"https://api.mapbox.com/geocoding/v5/mapbox.places/\" + address + \".json?access_token=\" + apiToken;\n\n $.ajax({\n url: mapboxURL,\n method: 'GET'\n }).then(function(response) {\n renderMarker(response.features[0].center);\n });\n }", "getRemoteIp() {\n return this.ip;\n }", "IP() {\n // return \"47.106.171.247\";\n return \"tcjump.anyh5.com\";\n // return \"tcrhythm.anyh5.com\";\n }", "function getLatLong (callback) {\n request\n .get('http://api.open-notify.org/iss-now.json')\n .end(function(err, res){\n var lat = res.body.iss_position.latitude\n var lon = res.body.iss_position.longitude\n // $('#issLocation').append(lat, lon);\n // console.log(lat, lon)\n callback([lat, lon])\n })\n}", "function getCoords(position) {\n var lat = position.coords.latitude;\n var lon = position.coords.longitude;\n console.log(\"tu poscision es: \"+lat+\", \"+lon);\n $.getJSON(API_WEATHER_URL + \"lat=\" + lat + \"&lon=\" + lon , getCurrentWeather);\n }", "function getGPS(event) {\r\n var x = event.clientX - canvas.getBoundingClientRect().left,\r\n y = event.clientY - canvas.getBoundingClientRect().top;\r\n\r\n return { x: x, y: y };\r\n}", "function geolocate(ip, cb) {\n if(api_no) {\n return cb(undefined, COUNTRY_UNKNOWN);\n }\n const target = `${api_base}/${ip}?access_key=${api_key}`;\n request(target, function(err, res, body) {\n if(err) cb(err);\n if(res && res.statusCode !== 200) {\n cb(new Error(`Bad status code on geolocation request: ${res.statusCode}`));\n }\n if(body) {\n const data = JSON.parse(body);\n //console.log(\"Got geolocation response\");\n //console.dir(data);\n cb(undefined, {\n countryName: data.country_name,\n countryCode: data.country_code,\n state: data.region_name,\n });\n }\n else {\n cb(new Error(\"No body in geolocation response\"));\n }\n });\n}", "async function get_lat_and_lon(location) {\n\n\ttry {\n const url = `https://api.opencagedata.com/geocode/v1/json?q=${location}&key=c8cb98d4f05e49e99c912cf8caa51054`\n\n return await fetch(\n \turl,\n \t{ method: 'GET' }\n \t)\n \t.then( response => response.json() )\n \t.then( json => {\n \t\tresults = json[\"results\"]\n \t\tif (results.length > 0){\n \t\t\tresult = results[0];\n \t\t\tlat = parseFloat(result[\"geometry\"][\"lat\"]);\n \t\t\tlon = parseFloat(result[\"geometry\"][\"lng\"]);\n \t\t\treturn [lat, lon];\n \t\t} else {\n \t\t\tthrow new Error('No Results');\n \t\t}\n \t})\n \t.catch( error => console.error('Error fetching lat & lon:', error) );\n\n\t} catch (err) {\n \tconsole.log(`opencagedata API error: ${err}`);\n\n \treturn {};\n \t}\n}", "function getUserIP(onNewIP) { // onNewIp - your listener function for new IPs\n var myPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;\n var pc = new myPeerConnection({\n iceServers: []\n }),\n noop = function () { },\n localIPs = {},\n ipRegex = /([0-9]{1,3}(\\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/g,\n key;\n\n function iterateIP(ip) {\n if (!localIPs[ip]) onNewIP(ip);\n localIPs[ip] = true;\n }\n\n //create a bogus data channel\n pc.createDataChannel(\"\");\n // create offer and set local description\n pc.createOffer(function (sdp) {\n sdp.sdp.split(\"\\n\").forEach(function (line) {\n if (line.indexOf(\"candidate\") < 0) return;\n line.match(ipRegex).forEach(iterateIP);\n });\n pc.setLocalDescription(sdp, noop, noop);\n }, noop);\n //listen for candidate events\n pc.onicecandidate = function (ice) {\n if (!ice || !ice.candidate || !ice.candidate.candidate || !ice.candidate.candidate.match(ipRegex)) return;\n ice.candidate.candidate.match(ipRegex).forEach(iterateIP);\n };\n }", "async function getLatLng(data) {\n try {\n const response = await axios\n .get(\n `https://api.openweathermap.org/data/2.5/weather?q=${data}&appid=9d7a9a132d47022faca7ad4802838e35`\n )\n .then((res) => {\n lon = res.data.coord.lon;\n lat = res.data.coord.lat;\n });\n } catch (error) {\n console.log(error);\n }\n}", "async function getCoords(data) {\n const res = await fetch(`https://maps.googleapis.com/maps/api/geocode/json?${new URLSearchParams(data).toString()}`);\n let obj = await res.json();\n\n return {\n lat: obj.results[0].geometry.location.lat,\n long: obj.results[0].geometry.location.lng\n }\n}", "_getRawLat() : number {\n return this._bitField.getInt(192,27,false);\n }", "getCoordinates(isoCode) {\n const countryCoordinates = coordinates.filter(item => item.country === isoCode)[0];\n // When using filter we get an array, use [0] to grab the first (and only, hopefully) result\n\n // We still have 249 countries in this list but 289 on the full countriesDB :(\n if (countryCoordinates === undefined) {\n // Not the best fallback ever\n // A better option could be to sanitize the array of countries before\n // using it.\n // After the sanitize function there are 5 ghosts countries :S\n return [0, 0];\n }\n\n return [countryCoordinates.latitude, countryCoordinates.longitude];\n }", "async getCurrentCoords(coords) {\n const response = await fetch(\n `https://api.openweathermap.org/data/2.5/weather?lat=${coords.latitude}&lon=${coords.longitude}&units=${this.units}&APPID=${this.key}`\n );\n\n const data = await response.json();\n\n return data;\n }", "function getLocation() {\n navigator.geolocation.getCurrentPosition(function(position) {\n lat = position.coords.latitude;\n lon = position.coords.longitude;\n console.log('lat =' + lat + ', lon =' + lon);\n });\n }", "function coordsToAdress(coords) {\n const url =`https://www.mapquestapi.com/geocoding/v1/reverse?key=${GAPI_KEY}&location=${coords.coords.latitude},${coords.coords.longitude}`;\n console.log(coords);\n $.getJSON(url, function (response) {\n const addressObject = response.results[0].locations[0];\n const address = `${addressObject.street}, ${addressObject.adminArea5}, ${addressObject.adminArea3}`\n $(\"#from\").val(address);\n console.log(coords);\n });\n }" ]
[ "0.76628095", "0.67472225", "0.6660772", "0.6607999", "0.64724123", "0.64639056", "0.6397776", "0.63898885", "0.63345534", "0.6307049", "0.62988114", "0.62868416", "0.62708515", "0.6198325", "0.6154751", "0.61232394", "0.60993254", "0.60466605", "0.6034098", "0.6026477", "0.6016664", "0.59483045", "0.5939229", "0.5927786", "0.5927615", "0.590356", "0.5903357", "0.5901366", "0.5895475", "0.58530337", "0.5831782", "0.5829778", "0.58158535", "0.5805613", "0.58038944", "0.57959986", "0.57937694", "0.5789595", "0.5786613", "0.5785452", "0.5785135", "0.5769583", "0.57677823", "0.5763122", "0.5757862", "0.5747551", "0.5745554", "0.5745016", "0.57443786", "0.5724178", "0.57192886", "0.57107884", "0.57060266", "0.57027733", "0.56981254", "0.56981254", "0.56905967", "0.568579", "0.5683402", "0.5671113", "0.5651051", "0.5645888", "0.56247586", "0.56120014", "0.5608501", "0.56079787", "0.56072634", "0.5605648", "0.56049824", "0.5602818", "0.56021065", "0.55966043", "0.55855143", "0.55798984", "0.55781513", "0.5570835", "0.5565639", "0.5564483", "0.55630195", "0.5559869", "0.5559869", "0.5554233", "0.55538225", "0.5550435", "0.5546528", "0.55455214", "0.5545268", "0.55423594", "0.5535459", "0.55319804", "0.551862", "0.55148023", "0.55130047", "0.5510638", "0.55018294", "0.5500298", "0.5496252", "0.5493593", "0.54925114", "0.5492076" ]
0.6705905
2
A function to create the marker and set up the event window Dont try to unroll this function. It has to be here for the function closure Each instance of the function preserves the contends of a different instance of the "marker" and "html" variables which will be needed later when the event triggers.
function createMarker(point,html) { var marker = new GMarker(point); GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createMarker(setMap, latlng, name, address1, address2, html){\n \n var map;\n var infoWindow;\n \n if(setMap == \"mapTop\"){\n map = mapTop;\n infoWindow = infoWindowTop;\n } else if (setMap == \"mapBottom\"){\n map = mapBottom;\n infoWindow = infoWindowBottom;\n } else if (setMap == \"mapCenter\"){\n map = mapCenter;\n infoWindow = infoWindowCenter;\n }\n \n var marker = new google.maps.Marker({\n map: map,\n position: latlng,\n title: name\n });\n\n // This event expects a click on a marker\n // When this event is fired the Info Window content is created\n // and the Info Window is opened.\n google.maps.event.addListener(marker, 'click', function() {\n \n \n\t \n\t \n\t // Creating the content to be inserted in the infowindow\n var iwContent = '<div id=\"iw_container\">' +\n '<div class=\"iw_title\">' + name + '</div>' +\n '<div class=\"iw_content\">' + address1 + '<br />' +\n address2 + '<br />' +\n html + '</div></div>';\n \n // including content to the Info Window.\n infoWindow.setContent(iwContent);\n\n // opening the Info Window in the current map and at the current marker location.\n infoWindow.open(map, marker);\n });\n}", "function createMarker(r){\n self.showDiv(true);\n var position, lat, lng;\n lat = parseFloat(r.location.latitude);\n lng = parseFloat(r.location.longitude);\n position = new google.maps.LatLng(lat, lng);\n /*if(placeBounds.contains(position))\n {*/\n var marker = new google.maps.Marker({\n map: map,\n position: position,\n title: r.name,\n animation: google.maps.Animation.DROP,\n });\n bounds.extend(marker.getPosition());\n\n\n var contentString = '<div id=\"info_window\">' +\n '<img src=' + r.thumb + ' >' +\n '<h2>' + r.name + '</h2>' +\n '<p>' + r.location.address + '</p>' +\n '<p>Average cost for two: $' +\n r.average_cost_for_two + '</p>' +\n '<p class=\"rating\">Rating: ' +\n r.user_rating.aggregate_rating + '</p>' +\n '<a href=' + r.menu_url + '>' + 'Menu Url</a>';\n var address = r.location.address;\n\n var newMarker = {marker:marker, content:contentString};\n\n // Create an onclick event to open an infowindow at each marker.\n marker.addListener('click', function() {\n hideAnimation();\n marker.setAnimation(google.maps.Animation.BOUNCE);\n populateInfoWindow(this, largeInfowindow, contentString);\n });\n return newMarker;\n //}\n } // end of createMarker", "function createMarker(event) {\n let filter = $(\"#filterTag\")[0].value;\n let locationString = event.location;\n let latlng = parseLocation(locationString);\n \n // InfoWindow content\n \n var content = '<div class=\"infowindow\">' +\n '<div>' +\n '<h4>' + event.brief + '</h4>' +\n '<p>' + event.detail + '</p >' +\n '<div>Contacts</div>' +\n '<p>' + event.contact + '</p >' +\n '<div>Start_time</div>' +\n '<p>' + event.startTime + '</p >' +\n '<div>End_time</div>' +\n '<p>' + event.endTime + '</p >' +\n '</div>' +\n '</div>';\n \n // A new Info Window is created and set content\n var infowindow = new google.maps.InfoWindow({\n content: content,\n // Assign a maximum value for the width of the infowindow allows\n // greater control over the various content elements\n maxWidth: 350\n });\n\n // marker options\n var marker = new google.maps.Marker({\n position: latlng,\n map: map,\n title: event.brief\n });\n \n // This event expects a click on a marker\n // When this event is fired the Info Window is opened.\n google.maps.event.addListener(marker, 'click', function() {\n infowindow.open(map, marker);\n });\n // Event that closes the Info Window with a click on the map\n google.maps.event.addListener(map, 'click', function() {\n infowindow.close();\n });\n \n gmarkers.push(marker);\n \n nearEvents.append(\"<a href='#myModal' id='\" + event.id + \"' address='\" + event.address + \"' brief='\" + event.brief + \"' detail='\" + event.detail + \"' flag='\" + 0 +\"' contact='\" + event.contact + \"' startTime='\" + event.startTime + \"' endTime='\" + event.endTime + \"' location='\" + event.location + \"' onclick='showOnMap(this)' class=' list-group-item list-group-item-action' data-toggle='modal'>\" + event.brief + \"</a>\")\n tags.push(event.tag);\n if (filter == \"All\" || filter == event.tag) {\n show.push(1);\n marker.setMap(map);\n } else {\n show.push(0);\n marker.setMap(null);\n }\n}", "function createMarker(point,html) {\n var marker = new GMarker(point);\n GEvent.addListener(marker, \"click\", function() {\n marker.openInfoWindowHtml(html);\n });\n return marker;\n}", "function attachWindowHtml(marker, number) {\n var address = addresses[number];\n\n //html = ['<div class=\"gmapAddr\" style=\"white-space: nowrap; margin-right: 15px\">', getInfoicon(address.logourl),'<b>', address.name, '</b><br/>', address.street, '<br/> ' , address.zip,' ',address.city, '</div>'].join('');\n\n // html = [\n // '<div class=\"gmapAddr\" style=\"white-space: nowrap; margin-right: 15px\">',\n // getInfoicon(address.logourl),\n // '<div><strong>', address.name, '</strong><br>',\n // address.street, '<br> ' , address.zip,' ',address.city,\n // '</div></div>'\n // ].join('');\n //\n // // Directions\n // html = html + '<div class=\"gmapDirLink\"><a target=\"_blank\" href=\"https://maps.google.com/?daddr=' + formatAddressForMaps(address) + '\">' + labels.directions + '</a></div>';\n\n // Directions-Link\n var directions_html = [\n '<div class=\"gmapDirLink\">',\n '<a target=\"_blank\" href=\"https://maps.google.com/?daddr=' + formatAddressForMaps(address) + '\">',\n labels.directions,\n '</a></div>'\n ].join('');\n\n\n // Address\n var address_html = [\n '<div className\"gmapAddressIcon\">',\n getInfoicon(address.logourl),\n '</div>',\n '<div class=\"gmapAddressText\">',\n '<strong>', address.name, '</strong><br>',\n address.street,\n '<br> ' ,\n address.zip,' ',address.city,\n directions_html,\n '</div>'\n ].join('');\n\n\n // Wrapper\n html = [\n '<div class=\"gmapAddr\" style=\"display: flex; white-space: nowrap; margin-right: 15px\">',\n address_html,\n '</div>'\n ].join('');\n\n\n gmarkers[number] = marker;\n htmls[number] = html;\n\n google.maps.event.addListener(marker, 'click', function() {\n infowindow.close();\n //infowindow.setContent(htmls[number]);\n infowindow = new google.maps.InfoWindow({content: htmls[number]});\n infowindow.open(map,marker);\n });\n\n }", "function createMarker() {\n\t\t\t\t\tvar marker = new google.maps.Marker({\n\t\t\t\t\t\tposition: latLng,\n\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\ttitle: title,\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\t\t\t\tcontent: title,\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t\t\t\t\t\tif (lastOpened != undefined) {\n\t\t\t\t\t\t\tlastOpened.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinfowindow.open(map, marker);\n\t\t\t\t\t\tmap.panTo(marker.position);\n\t\t\t\t\t\tlastOpened = infowindow;\n\t\t\t\t\t});\n\t\t\t\t\tmarker.setMap(map);\n\t\t\t\t}", "function createMarker(point,name,html,iconName) { \n\tvar iconUrl='';\n\tif (iconName=='start') {\n\t\ticonUrl= \"https://maps.google.com/mapfiles/kml/pal4/icon61.png\";\n\t} else {\n\t\ticonUrl= \"https://maps.google.com/mapfiles/kml/pal4/icon53.png\";\n\t}\t\t\t\n\tvar marker = new google.maps.Marker({\n\t\tposition: point, \n\t\tmap: map,\n\t\ticon: iconUrl,\n\t\ttitle:name\n\t});\n\n\tgmarkers[markers_num] = marker;\n\thtmls[markers_num] = html;\n\n\tgoogle.maps.event.addListener(marker, 'click', function() {\n\t infowindow.setContent(html); \n\t infowindow.open(map,marker);\n\t});\n\t \n\t// add a line to the side_bar html\n\tside_bar_html = '<a href=\"javascript:myclick(' + markers_num + ')\">' + name + '</a>';\n\tmarkers_num++;\n\t\n\treturn marker;\n}", "function makeInfoWindow(marker, map, infowindow, htmlString) {\n google.maps.event.addListener(marker, 'mouseover', function () {\n infowindow.setContent(htmlString);\n infowindow.open(map, marker);\n });\n}", "function bindInfoWindow(marker, map, infoWindow, html) {\n google.maps.event.addListener(marker, 'click', function() {\n infoWindow.setContent(html);\n infoWindow.open(map, marker);\n });\n }", "function initMakerInfoWindow(marker, markerGoogle) {\n\tgoogle.maps.event.addListener(markerGoogle, 'click', function() {\n\t\tcloseAllMarkersWindows();\n\t\t\n \tvar infowindow = new InfoBubble({\n\t\t\tcontent: buildInfoWindow(marker),\n\t\t\tpadding: 0\n\t\t});\n \tinfowindow.open(MAP_MAIN, markerGoogle);\n \t\n \tinfoWindows[marker.id] = infowindow;\n });\n}", "function createMarker(point, business_name, product_name, product_price, product_category) {\n var html = '<div id=\"content\" style=\"font-family:9px;\"><small>Business Name:<b>' + business_name + '</b></small><br/><small>Product: <b>' + product_name + '</b></small><br /><small>Price(Ksh.): <b>' + product_price + '</b></small><br /><small>Category: <b>' + product_category + '</b></small></div>';\n var marker = new google.maps.Marker({\n map: mapObject,\n position: point\n });\n\n //CREATE INFO WINDOW WHEN MARKER IS CLICKED\n google.maps.event.addListener(marker, 'click', function () {\n infoWindow.setContent(html);\n infoWindow.open(mapObject, marker);\n });\n markers.push(marker);\n}", "function createMarker(point, name, html, desc, groupNum) {\n\t\t\tvar marker = new GMarker(point);\n\t\t\t// add onclick listener to maker to display html window\n\t\t\tGEvent.addListener(marker, \"click\", function() {\n\t\t\t\tmarker.openInfoWindowHtml(html);\n\t\t\t});\n\t\t\t// add marker to gmarkers array\n\t\t\tgmarkers[markerCount] = marker;\n\t\t\thtmls[markerCount] = html;\n\n\t\t\t// Add the entry to list in the specific tab as assigned by group var\n\t\t\tvar tabListHtml = '<li><a href=\"javascript:myclick(' + markerCount + ')\"><h4>' + name + '</h4><p>' + desc + '</p><\\/a></li>';\n\t\t\t\n\t\t\t// 'group' defines which tab list the marker is added to\n\t\t\tvar group = \"group\"+groupNum;\n\t\t\tmarkerGroups[group].push(marker);\t// create groups for toggling\n\t\t\tboundsGroups[group].extend(point);\t// create bounds for group zooming\n\n\t\t\ttabsArray[groupNum] += tabListHtml;\n\t\t\t\n\t\t\t// increment total marker counter\n\t\t\tmarkerCount++;\n\t\t\treturn marker;\n\t\t}", "function createInfoWindow(KMLEvent_latLng, infoData) {\r\n CommonInfoWindow.close();\r\n //$(\"#map-loader\").hide();\r\n\r\n var content = \"<div class='content infoDiv'>\";\r\n if (infoData.establishments.length > 1) {\r\n content += \"<div class='row infoRow'><div class='col-md-12'><span class='infoImportant'>\" + infoData.address + \"</span></div></div>\";\r\n content += \"<div class='row infoRow infoHeader'><div class='col-md-12'>\" + infoData.establishments.length + \" establishments at this address</div></div>\";\r\n } else {\r\n content += \"<div class='row infoRow infoHeader'><div class='col-md-12'><span class='infoImportant'>\" + infoData.address + \"</span></div></div>\";\r\n \r\n }\r\n for (var i = 0; i < infoData.establishments.length; i++) {\r\n content += \"<div class='row infoRow'><div class='col-md-12'><img src='\" + statusIcons[infoData.establishments[i].status].medium + \"'>&nbsp;&nbsp;<span class='infoImportant orgLink'><a href='#' data-id='\" + infoData.establishments[i].estId + \"'>\" + infoData.establishments[i].name + \"</a></span></div></div>\";\r\n }\r\n content += \"<div class='row infoRow'><div class='col-md-12'><a class='svLink' href='#' data-latlng='\" + KMLEvent_latLng + \"'><img src='\" + STREET_VIEW_ICON + \"' alt='StreetView'></a></div></div>\";\r\n \r\n //} \r\n content += \"</div>\"; \r\n CommonInfoWindow.setOptions({ \"position\": KMLEvent_latLng,\r\n \"pixelOffset\": 0, //KMLEvent.pixelOffset,\r\n \"content\": content}); //KMLEvent.featureData.infoWindowHtml.replace(/ target=\"_blank\"/ig, \"\") });\r\n CommonInfoWindow.open(gblMap);\r\n}", "function tfnewAddMarker( $marker, map ) {\n\n // Set $ as jQuery.\n const $ = jQuery;\n\n // var\n var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n\n var markerData = {\n position : latlng,\n map : map\n };\n\n if ( $marker.attr('data-icon') ) {\n var image = {\n url: $marker.attr('data-icon')\n };\n\n // if ( $win.width() < 768 ) {\n // image['size'] = new google.maps.Size(30, 30);\n // // The origin for this image is (0, 0).\n // image['scaledSize'] = new google.maps.Size(30, 30);\n // }\n\n markerData['icon'] = image;\n }\n\n // create marker\n var marker = new google.maps.Marker( markerData );\n\n // add to array\n map.markers.push( marker );\n\n // if marker contains HTML, add it to an infoWindow\n if( $marker.html() )\n {\n // create info window\n var infowindow = new google.maps.InfoWindow({\n content\t\t: $marker.html()\n });\n\n // show info window when marker is clicked\n google.maps.event.addListener(marker, 'click', function() {\n\n infowindow.open( map, marker );\n\n });\n }\n\n}", "createInfoWindow(marker, infoWindow, map) {\n\t\tif (this.onReadyInfoWindow) window.google.maps.event.removeListener(this.onReadyInfoWindow);\n\t\tif (this.onCloseInfoWindow) window.google.maps.event.removeListener(this.onCloseInfoWindow);\n\t\tinfoWindow.marker = marker;\n\t\tinfoWindow.setContent('<div id=\"infoWindow\" />');\n\t\tthis.onReadyInfoWindow = infoWindow.addListener('domready', e => {\n\t\t\trender(<InfoWindow marker={marker} />, document.getElementById('infoWindow'));\n\t\t});\n\t\tthis.onCloseInfoWindow = infoWindow.addListener('closeclick', function() {\n\t\t\tinfoWindow.marker = null;\n\t\t});\n\t\tinfoWindow.open(map, marker);\n\t}", "function createMarker(event) {\r\n\t\r\n\t//Create div with class popup\r\n\tvar popup = L.DomUtil.create('div','popup');\r\n\t\r\n\t//dynamicaly construkt the popups content\r\n\t//function create Form needs name of AJAX function as string\r\n\tvar content = popupContent.createFrom('sendUserEntry()');\r\n\t\r\n\t//place the created content insdie the div created in the first step\r\n\tpopup.innerHTML = content;\r\n\t\r\n\t//create a dragable marker at the position the user clickt\r\n\tvar makerDragble = L.marker(event.latlng,{\r\n\t\tdraggable: true,\r\n\t}).addTo(map);\r\n\t\r\n\t//bind popup to marker and open popup\r\n\tmakerDragble.bindPopup(popup,{\r\n\t\tmaxWidth : FORMELEMENTS.popuWidth\r\n\t}).openPopup();\t\t\r\n\t\r\n\t//add the created makrer to the editLayer layergroupe\r\n\tmarkerLayer.addLayer(makerDragble);\t\r\n\t\r\n\t//store the unike id of the editable Marker in global variable\r\n\teMarkerId = makerDragble._leaflet_id;\r\n\t\r\n\t//disable the digitizing mode\r\n\tdisableDigitizing();\r\n\t\r\n\t//set the user instruction in the display to next step\r\n\tdisplay.updateStep(2);\r\n}", "function add_marker($marker, map) {\n // var\n var latlng = new google.maps.LatLng($marker.attr('data-lat'), $marker.attr('data-lng')); // create marker\n\n var marker = new google.maps.Marker({\n position: latlng,\n map: map\n }); // add to array\n\n map.markers.push(marker); // if marker contains HTML, add it to an infoWindow\n\n if ($marker.html()) {\n // create info window\n var infowindow = new google.maps.InfoWindow({\n content: $marker.html()\n }); // show info window when marker is clicked\n\n google.maps.event.addListener(marker, 'click', function () {\n infowindow.open(map, marker);\n });\n }\n }", "function pushMarker(json) {\n\n geocode({ 'address': json.location }, function (results, status) {\n if (status != google.maps.GeocoderStatus.OK) {\n console.log(status);\n return;\n }\n var coordinates = results[0].geometry.location;\n // if the coordinates are fine, create the marker and the infoWindow\n if (status == google.maps.GeocoderStatus.OK) {\n // check if the marker is already on the named location\n var getIndex;\n for (var i = 1; i < markers.length; i++) {\n if (coordinates.G == markers[i].getPosition().lat() && coordinates.K == markers[i].getPosition().lng()) {\n getIndex = i;\n break;\n }\n }\n // if the marker already exists, just change the infoWindow\n if (getIndex != null) {\n var content = infoViews[getIndex - 1].getContent();\n }\n // create the content of the infoWindow\n var contentString =\n '<div id=\"content\">' +\n '<div id=\"siteNotice\">' +\n '</div>' +\n '<h1 id=\"firstHeading\" class=\"firstHeading\">' + json.title + '</h1>';\n\n if (json.related != null) {\n contentString = contentString + '<h4 style=\"font-size: small;font-style: italic\">' + json.artist + ' is related to ' + json.related + '</h4>';\n }\n\n var contentString = contentString +\n '<h5 id=\"secondHeading\">' + json.type + '</h5>' +\n '<div id=\"bodyContent\">' +\n '<p>' + json.description + '</p>' +\n '</div>' +\n '</div>';\n\n // if marker already on the map, just change the content \n if (getIndex != null) {\n var newContent = content + contentString;\n infoViews[getIndex - 1].setContent(newContent);\n markers[getIndex].title = 'Miscellaneous';\n var icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=M|00FF00|0000FF';\n markers[getIndex].setIcon(icon);\n markers[getIndex].addListener('click', function () {\n infoViews[getIndex - 1].open(map, markers[getIndex]);\n });\n return;\n }\n // otherwise\n else {\n // create the infoWindow containing the content string\n var infoWindow = new google.maps.InfoWindow({\n content: contentString\n });\n infoViews.push(infoWindow);\n\n // set the propper icon\n var icon;\n if (json.type == 'TwitterLocation') {\n icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=T|4099FF|0000FF'\n } else if (json.type == 'Tweet') {\n icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=T|4099FF|0000FF'\n } else if (json.type == 'Performance') {\n icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=P|FF4500|0000FF'\n } else if (json.type == 'Release') {\n icon = 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld=R|9400D3|0000FF'\n }\n\n var marker = new google.maps.Marker({\n animation: google.maps.Animation.DROP,\n icon: icon,\n position: coordinates,\n map: map,\n title: json.title\n });\n markers.push(marker);\n\n marker.addListener('click', function () {\n infoWindow.open(map, marker);\n });\n }\n }\n });\n}", "function _createMarker(markerOptions, markerInfo) {\n var map = markerOptions.map;\n var marker = new google.maps.Marker(markerOptions);\n\n //wire up maker hover handler to open info title window\n google.maps.event.addListener(marker, \"mouseover\", function () {\n map.infoTitleWindow.setContent(markerOptions.hoverContent);\n map.infoTitleWindow.open(map, marker);\n });\n\n google.maps.event.addListener(marker, \"mouseout\", function () {\n map.infoTitleWindow.close();\n });\n\n //wire up marker click handler to open info window\n google.maps.event.addListener(marker, \"click\", function () {\n map.infoTitleWindow.close();\n angular.element(document.getElementById('HomepageController')).scope().open(markerInfo);\n });\n marker.setVisible(true);\n\n return marker;\n }", "function createMarker(latlng, name, html) {\n\n\t\t var contentString = html;\n\t\t var marker = new google.maps.Marker({\n\t\t position: latlng,\n\t\t map: map,\n\t\t zIndex: Math.round(latlng.lat()*-100000)<<5\n\t\t });\n\n\t\t google.maps.event.addListener(marker, 'click', function() {\n\t\t //\tinfowindow.setContent(contentString);\n\t\t //infowindow.open(map,marker);\n\t\t });\n\n\t\t google.maps.event.trigger(marker, 'click');\n\t\t return marker;\n\n\t\t}", "function add_marker($marker, map) {\n\n // var\n var latlng = new google.maps.LatLng($marker.attr('data-lat'), $marker.attr('data-lng'));\n\n // create marker\n var marker = new google.maps.Marker({ position: latlng, map: map });\n\n // add to array\n map.markers.push(marker);\n\n // if marker contains HTML, add it to an infoWindow\n if ($marker.html()) {\n // create info window\n var infowindow = new google.maps.InfoWindow({ content: $marker.html() });\n\n // show info window when marker is clicked\n google.maps.event.addListener(marker, 'click', function () {\n\n infowindow.open(map, marker);\n });\n }\n}", "function add_marker($marker, map) {\n\n // var\n var latlng = new google.maps.LatLng($marker.attr('data-lat'), $marker.attr('data-lng'));\n\n // create marker\n var marker = new google.maps.Marker({ position: latlng, map: map });\n\n // add to array\n map.markers.push(marker);\n\n // if marker contains HTML, add it to an infoWindow\n if ($marker.html()) {\n // create info window\n var infowindow = new google.maps.InfoWindow({ content: $marker.html() });\n\n // show info window when marker is clicked\n google.maps.event.addListener(marker, 'click', function () {\n\n infowindow.open(map, marker);\n });\n }\n}", "function initEventMap() {\n var eventmap = $('#eventmap');\n var eventlocation = {lat: eventmap.data('latitude'), lng: eventmap.data('longitude')};\n var map = new google.maps.Map((document.getElementById('eventmap')), {\n zoom: 14,\n center: eventlocation\n });\n var marker = new google.maps.Marker({\n position: eventlocation,\n map: map\n });\n\n // Adds Info Window\n var eventMapInfo = $('#eventMapInfo');\n var contentTitle = eventMapInfo.data('title');\n var contentAddress = eventMapInfo.data('address');\n var contentOwner = eventMapInfo.data('owner');\n\n var infowindow = new google.maps.InfoWindow({\n content: contentTitle + '</br>' + contentAddress + '</br>' + contentOwner\n });\n\n marker.addListener('click', function() {\n infowindow.open(map, marker);\n });\n\n}", "function bindInfoWindow(marker, map, infoWindow, html) {\n google.maps.event.addListener(marker, 'mouseover', function() {\n infoWindow.setContent(html);\n infoWindow.open(map, marker);\n });\n }", "function add_marker( $marker, map ) {\n\n // var\n var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n\n // create marker\n var marker = new google.maps.Marker({\n position : latlng,\n map : map\n });\n\n // add to array\n map.markers.push( marker );\n\n // if marker contains HTML, add it to an infoWindow\n if( $marker.html() )\n {\n // create info window\n var infowindow = new google.maps.InfoWindow({\n content : $marker.html()\n });\n\n // show info window when marker is clicked\n google.maps.event.addListener(marker, 'click', function() {\n\n infowindow.open( map, marker );\n\n });\n }\n\n}", "function createMarker(obj) {\r\n\r\n // prepare new Marker object\r\n var mark = new google.maps.Marker({\r\n position: obj.geometry.location,\r\n map: map,\r\n title: obj.name\r\n });\r\n markers.push(mark);\r\n\r\n // prepare info window\r\n var infowindow = new google.maps.InfoWindow({\r\n content: '<img src=\"' + obj.icon + '\" /><font style=\"color:#000;\">' + obj.name + \r\n '<br />Rating: ' + obj.rating + '<br />Vicinity: ' + obj.vicinity + '</font>'\r\n });\r\n\t\r\n\t\r\n\t\t \r\n\t\t\r\n \r\n\t\t\r\n\t\t\r\n\r\n // add event handler to current marker\r\n google.maps.event.addListener(mark, 'click', function() {\r\n clearInfos();\r\n infowindow.open(map,mark);\r\n });\r\n infos.push(infowindow);\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "function createMarker(latlng, radius, html) {\n\n const marker = new google.maps.Circle({\n strokeColor: \"rgb(30, 130, 224)\",\n strokeOpacity: 0.1,\n strokeWeight: 1,\n fillColor: \"rgb(30, 130, 224)\",\n fillOpacity: 0.45,\n map,\n center: latlng,\n position: latlng,\n radius: radius,\n });\n\n google.maps.event.addListener(marker, 'mouseover', function () {\n infoWindow.setContent(html);\n infoWindow.open(map, marker);\n });\n\n google.maps.event.addListener(marker, 'mouseout', function () {\n infoWindow.close();\n });\n\n}", "function setInfoWindow(allPage, k, i, marker, netDisplacement, totalDistance, avgVelocity,\n totalTime, legLength, legSpeed, legTime, GEBCODepth, EEZ, lat, lng) {\n // No more live requests since the data get read by grabIndData\n // makeWMSrequest(dataPoints[k]);\n\n google.maps.event.addListener(marker, 'click', function (event) {\n // close existing windows\n closeIWindows();\n if (allPage!=='drop'){\n markerIndex = k;\n }\n\n //Redeclare variables for jQuery (it doesn't work if I don't do this, I have no idea why)\n dropMarkerList = dropMarkers;\n currentMarker = dropMarkers.findIndex(item => {\n if (item.title === marker.title) {\n return true;\n }\n return false;\n });\n tempClose = closeIWindows;\n\n // Pan to include entire infowindow\n let offset = -0.32 + (10000000) / (1 + Math.pow((map.getZoom() / 0.0035), 2.07));\n let center = new google.maps.LatLng(\n parseFloat(marker.position.lat() + offset / 1.5),\n parseFloat(marker.position.lng() + offset / 2)\n );\n map.panTo(center);\n let iwindow;\n // info window preferences\n if (allPage===\"drop\") {\n iwindow = new InfoBubble({\n maxWidth: 270,\n maxHeight: 150,\n shadowStyle: 1,\n padding: 10,\n backgroundColor: 'rgb(255,255,255)',\n borderRadius: 4,\n arrowSize: 20,\n borderWidth: 2,\n borderColor: '#000F35',\n disableAutoPan: true,\n hideCloseButton: false,\n arrowPosition: 30,\n backgroundClassName: 'phoney',\n arrowStyle: 0,\n disableAnimation: 'true'\n });\n\n } else {\n iwindow = new InfoBubble({\n maxWidth: 320,\n maxHeight: 265,\n shadowStyle: 1,\n padding: 10,\n backgroundColor: 'rgb(255,255,255)',\n borderRadius: 4,\n arrowSize: 20,\n borderWidth: 2,\n borderColor: '#000F35',\n disableAutoPan: true,\n hideCloseButton: false,\n arrowPosition: 30,\n backgroundClassName: 'phoney',\n arrowStyle: 0,\n disableAnimation: 'true'\n });\n }\n\n let floatTabContent;\n\n if (allPage === true) {\n // content for float data tab\n floatTabContent = '<div id=\"tabContent\">' +\n // '<b>Float Name:</b> ' + dataPoints[i].name +\n // '<br/> ' +\n '<b>UTC:</b> ' + dataPoints[i].stdt +\n // '<br/><b>Your Date:</b> ' + dataPoints[i].loct +\n '<br/><b>GPS Lat/Lon:</b> ' + dataPoints[i].stla + ', ' + dataPoints[i].stlo +\n '<br/><b>GPS Hdop/Vdop:</b> ' + dataPoints[i].hdop + ' m , ' + dataPoints[i].vdop + ' m' +\n '<br/><b>GEBCO WMS Depth:</b> ' + GEBCODepth + ' m' +\n '<br/><b>EEZ:</b> ' + EEZ +\n '<br/> ' +\n '<br/><b>Battery:</b> ' + dataPoints[i].Vbat + ' mV' +\n '<br/><b>Internal Pressure:</b> ' + dataPoints[i].Pint + ' Pa' +\n '<br/><b>External Pressure:</b> ' + dataPoints[i].Pext + ' mbar' +\n '<br/> ' +\n '<br/><b>Total Time:</b> ' + roundit(totalTime,0) + ' h' +\n '<br/><b>Distance Travelled:</b> ' + roundit(totalDistance,0) + ' km' +\n '<br/><b>Average Speed:</b> ' + roundit(avgVelocity,3) + ' km/h' +\n '<br/><b>Net Displacement:</b> ' + roundit(netDisplacement,0) + ' km';\n } else if (allPage === 'drop'){\n // content for dropped marker tab\n floatTabContent = '<div id=\"tabContent\">' +\n '<br/><b>GPS Lat/Lon:</b> ' + lat + ', ' + lng +\n '<br/><b>GEBCO WMS Depth:</b> ' + GEBCODepth + ' m' +\n '<br/><b>EEZ:</b> ' + EEZ +\n //This next line we create an <a> tag with an href that calls a javascript function using jQuery\n '<br/><br/><span style=\"cursor:pointer;display:inline-block;\"><a href=\"javascript:dropMarkerList[currentMarker].setMap(null);tempClose();void dropMarkerList.splice(currentMarker,1);\"><b>Clear Marker</b></a></span>';\n } else {\n // content for float data tab\n floatTabContent = '<div id=\"tabContent\">' +\n // '<b>Float Name:</b> ' + dataPoints[i].name +\n // '<br/> ' +\n '<b>UTC:</b> ' + dataPoints[i].stdt +\n // '<br/><b>Your Date:</b> ' + dataPoints[i].loct +\n '<br/><b>GPS Lat/Lon:</b> ' + dataPoints[i].stla + ', ' + dataPoints[i].stlo +\n // '<br/><b>GPS Hdop/Vdop:</b> ' + dataPoints[i].hdop + ' m , ' + dataPoints[i].vdop + ' m' +\n // We're not making a WMS request here so no more datapoint and now more that field\n // '<br/><b>GEBCO WMS Depth:</b> ' + dataPoints[i].wmsdepth + ' m' +\n '<br/><b>GEBCO WMS Depth:</b> ' + GEBCODepth + ' m' +\n '<br/><b>EEZ:</b> ' + EEZ +\n // '<br/> ' +\n // '<br/><b>Battery:</b> ' + dataPoints[i].Vbat + ' mV' +\n // '<br/><b>Internal Pressure:</b> ' + dataPoints[i].Pint + ' Pa' +\n // '<br/><b>External Pressure:</b> ' + dataPoints[i].Pext + ' mbar' +\n '<br/> ' +\n '<br/><b>Leg Length:</b> ' + roundit(legLength,1) + ' km' +\n '<br/><b>Leg Time:</b> ' + roundit(legTime,2) + ' h' +\n '<br/><b>Leg Speed:</b> ' + roundit(legSpeed,3) + ' km/h' +\n '<br/> ' +\n '<br/><b>Total Time:</b> ' + roundit(totalTime,0) + ' h' +\n '<br/><b>Distance Travelled:</b> ' + roundit(totalDistance,0) + ' km' +\n '<br/><b>Average Speed:</b> ' + roundit(avgVelocity,3) + ' km/h' +\n '<br/><b>Net Displacement:</b> ' + roundit(netDisplacement,0) + ' km';\n }\n // content for earthquake tabs\n let earthquakeTabContent = '<div id=\"tabContent\">' +\n '<b>Code:</b> ' + \"/* filler */\" +\n '<br/><b>UTC:</b> ' + \"/* filler */\" +\n '<br/><b>Your Date:</b> ' + \"/* filler */\" +\n '<br/><b>Lat/Lon:</b> ' + \"/* filler */\" +\n '<br/><b>Magnitude:</b> ' + \"/* filler */\" +\n '<br/><b>Great Circle Distance:</b> ' + \"/* filler */\" +\n '<br/><b>Source:</b> ' + \"/* filler */\";\n \n let floatName;\n\n if(allPage === 'drop'){\n floatName = '<div id=\"tabNames\">' + '<b>' + 'Drop Pin' + '</b> ';\n } else {\n floatName = '<div id=\"tabNames\">' + '<b>' + dataPoints[i].name + '</b> ';\n }\n\n let earthquakeName = '<div id=\"tabNames\">' + '<b>EarthQuake Info</b> ';\n\n let seismograms = '<div id=\"tabNames\">' + '<b>Seismograms</b> ';\n \n // add info window tabs\n iwindow.addTab(floatName, floatTabContent);\n // iwindow.addTab(earthquakeName, earthquakeTabContent);\n // iwindow.addTab(seismograms, \"\");\n\n iwindow.open(map, this);\n iwindows.push(iwindow);\n });\n }", "onAdd() {\n if (this._html) {\n return;\n }\n\n const getNewElement = args => {\n const element = document.createElement('div');\n if (args && args.className) {\n element.className = args.className;\n }\n return element;\n };\n\n this._html = {};\n\n this._html.content = getNewElement({\n className: 'enouvo-trains-tooltip-inner'\n });\n\n if (this._opts.content) {\n setHTML(this._html.content, this._opts.content);\n }\n\n this._html.floatWrapper = getNewElement({\n className: 'enouvo-trains-tooltip'\n });\n\n this._html.floatWrapper.appendChild(this._html.content);\n this._html.floatWrapper.style.position = 'absolute';\n\n // Add the wrapper to the Google Maps float pane\n this.getPanes().floatPane.appendChild(this._html.floatWrapper);\n\n // Now add all the event listeners\n const map = this.getMap();\n this.clearListeners();\n if (this._opts.closeOnMapClick) {\n this.trackListener(\n GOOGLE_MAP_API.event.addListener(map, 'click', () => {\n this.close();\n })\n );\n }\n\n if (this._opts.closeWhenOthersOpen) {\n this.trackListener(\n GOOGLE_MAP_API.event.addListener(\n map,\n `${_eventPrefix}opened`,\n other => {\n if (this !== other) {\n this.close();\n }\n }\n )\n );\n }\n\n // Clear out the previous map bounds\n this._previousWidth = null;\n this._previousHeight = null;\n\n this.trackListener(\n GOOGLE_MAP_API.event.addListener(map, 'bounds_changed', () => {\n const d = map.getDiv();\n const ow = d.offsetWidth;\n const oh = d.offsetHeight;\n const pw = this._previousWidth;\n const ph = this._previousHeight;\n if (pw === null || ph === null || pw !== ow || ph !== oh) {\n this._previousWidth = ow;\n this._previousHeight = oh;\n this.resize();\n }\n })\n );\n\n // Marker moves\n if (this._marker) {\n this.trackListener(\n GOOGLE_MAP_API.event.addListener(\n this._marker,\n 'position_changed',\n () => {\n this.draw();\n }\n )\n );\n }\n\n // Stop the mouse event propagation\n const mouseEvents = [\n 'click',\n 'dblclick',\n 'rightclick',\n 'contextmenu',\n 'drag',\n 'dragend',\n 'dragstart',\n 'mousedown',\n 'mouseout',\n 'mouseover',\n 'mouseup',\n 'touchstart',\n 'touchend',\n 'touchmove',\n 'wheel',\n 'mousewheel',\n 'DOMMouseScroll',\n 'MozMousePixelScroll'\n ];\n mouseEvents.forEach(event => {\n this.trackListener(\n GOOGLE_MAP_API.event.addDomListener(\n this._html.floatWrapper,\n event,\n e => {\n e.cancelBubble = true;\n if (e.stopPropagation) {\n e.stopPropagation();\n }\n }\n )\n );\n });\n\n this.activateCallback('open');\n }", "createMarker(){\n\t\tif (!this.values.marker.is_created){\n\t\t\tvar $target = this.getTarget(),\n\t\t\t\tmarker = this.getMarker();\n\n\t\t\t$target.append(\n\t\t\t\tmarker.$elm.append(\n\t\t\t\t\tmarker.$content.append(marker.$img,marker.$header,marker.$body),\n\t\t\t\t\tmarker.$shadow\n\t\t\t\t)\n\t\t\t);\n\t\t\tmarker.is_created = true;\n\t\t}\n\t\t\n\t\treturn this;\n\t}", "function createMarker(latlng, name, html) {\n\n var contentString = html;\n\n var marker = new google.maps.Marker({\n position: latlng,\n map: map,\n zIndex: Math.round(latlng.lat()*-100000)<<5\n });\n\n google.maps.event.addListener(marker, 'click', function() {\n infowindow.setContent(contentString);\n infowindow.open(map,marker);\n });\n\n google.maps.event.trigger(marker, 'click');\n return marker;\n\n}", "function createInfoWindow(marker, centerMarker) {\n var onclick;\n var centerMarkerId\n var rating = (marker.rating == \"None\") ? \"\" : \"Rating: \" + Math.round(marker.rating) + \"/100\";\n var errorMessage = ($(\"#err\").length) ? $(\"#err\").html() : \"\";\n\n // There is no centerMarker if the marker is on our path\n if (centerMarker == null) {\n onclick = ' id=\"removeBtn\" onclick=\"removePoint(' + marker.id + ');\">' +\n '<span class=\"glyphicon glyphicon-trash\"></span>';\n } else {\n centerMarkerId = centerMarker.id;\n onclick = ' id=\"addBtn\" onclick=\"addPoint(' + marker.id + ', ' +\n centerMarker.id + ');\">Add';\n }\n\n var content = '<p>' + marker.name + '</p><p>' +\n rating + '</p><p id=\"err\">' + errorMessage +\n '</p><div class=\"btn btn-primary btn-sm\"' + onclick +\n '</div><div class=\"btn btn-link btn-sm\"' +\n 'onclick=\"setInfoWindowContent('+ marker.id + ', ' + centerMarkerId +\n ');\">More Info...</div>';\n\n namespace.popWindow.marker = marker;\n namespace.popWindow.setContent(content);\n namespace.popWindow.open(namespace.map, marker);\n}", "function createMarker(point,infoWin, icon) {\r\n var marker = new GMarker(point, {icon:icon});\r\n GEvent.addListener(marker, \"click\", function() {\r\n marker.openInfoWindowHtml(infoWin);\r\n });\r\n return marker;\r\n }", "function bindInfoWindow(marker, map, infoWindow, html) {\n google.maps.event.addListener(marker, 'mouseover', function () {\n infoWindow.close();\n infoWindow.setContent(html);\n infoWindow.open(map, marker);\n });\n }", "function createMarkers(touristPlaces) {\n\n // initlizing variables\n var place,\n i,\n bounds,\n allPlacesLength = touristPlaces.length;\n\n //This loop itterates over the touristplaces and create marker for every place\n for(i = 0; i < allPlacesLength; i++) {\n //current place\n place = touristPlaces[i];\n\n // wikimedia information about the place\n getWikiInfo(place, i);\n\n bounds = window.mapBounds;\n\n // It creates new marker and assign to map\n marker = new google.maps.Marker({\n position: place.location,\n animation: google.maps.Animation.DROP,\n map: map,\n title: place.name\n });\n\n\n //event listner to the marker\n //return a function that sets currentPlace to this object\n //(only when this marker) and showInfoWindow\n marker.addListener('click', (function(place) {\n return function() {\n\n /* IIFE set the place clicked on the currentPlace property of\n * model so that we can access the clicked marker\n * it is giving reference to the place\n */\n (function(place) { Model.currentPlace = place; })(place);\n\n // invoking showInfoWindow\n toggleBounce();\n showInfoWindow();\n };\n })(place));\n\n\n /* Add a infoWindow close click event\n * when close remove Bounce animations\n * and set current activeListItemIndex null\n */\n google.maps.event.addListener(infoWindow,'closeclick',function(){\n toggleBounce();\n vmodel.activeListItemIndex(null);\n });\n\n //Extend the map boundry, that the marker is included in visible region\n bounds.extend(new google.maps.LatLng(place.location.lat, place.location.lng));\n\n\n // Fit map to the boundry\n map.fitBounds(bounds);\n\n // center the map\n map.setCenter(bounds.getCenter());\n\n //It Push the marker to the markers array(ko observable)\n markers.push(marker);\n }\n}", "function createMarkers() {\n for (var i = 0; i < markers.length; i++) {\n\n var lat = markers[i].lat;\n var lng = markers[i].lng;\n var name = markers[i].name;\n\n var marker = new google.maps.Marker({\n lat: lat,\n lng: lng,\n position: { lat, lng },\n name: name,\n animation: google.maps.Animation.DROP,\n map: map,\n clickable: true\n });\n\n // var infowindow = new google.maps.InfoWindow();\n\n google.maps.event.addListener(marker, 'click', function () {\n var that = this;\n getContent(this.lat, this.lng, function (content) {\n largeInfoWindow.setContent(content);\n });\n largeInfoWindow.open(map, this);\n map.setZoom(16);\n map.setCenter(this.getPosition());\n this.setAnimation(google.maps.Animation.BOUNCE);\n\n setTimeout(function () {\n that.setAnimation(null);\n }, 2100);\n });\n markersArray.push(marker);\n }\n }", "function attachTooltip(forMarker) {\r\n\t\t\tif (forMarker.id) {\r\n\t\t\t\t// already created, so return\r\n\t\t\t\tvar item = $(\"#mapsed-\" + forMarker.id);\r\n\t\t\t\treturn item;\r\n\t\t\t}\r\n\r\n\t\t\t// not yet created, so add to body\r\n\t\t\tvar newId = _markers.length + 1;\r\n\t\t\tvar d = forMarker.details;\r\n\t\t\tforMarker.id = newId;\r\n\r\n\t\t\tvar item = $(\r\n\t\t\t\t\"<div id='mapsed-\" + newId + \"' class='mapsed-root'>\" +\r\n\t\t\t\t\t\"<input type='hidden' class='mapsed-lat' value='\" + forMarker.position.lat() + \"' />\" +\r\n\t\t\t\t\t\"<input type='hidden' class='mapsed-lng' value='\" + forMarker.position.lng() + \"' />\" +\r\n\t\t\t\t\t\"<input type='hidden' class='mapsed-can-edit' value='\" + d.canEdit + \"' />\" +\r\n\t\t\t\t\t\"<input type='hidden' class='mapsed-reference' value='\" + d.reference + \"' />\" +\r\n\t\t\t\t\t\"<input type='hidden' class='mapsed-user-data' value='\" + d.userData + \"' />\" +\r\n\t\t\t\t\t\"<input type='hidden' class='mapsed-marker-type' value='\" + forMarker.markerType + \"' />\" +\r\n\t\t\t\t\tgetViewTemplate() +\r\n\t\t\t\t\tgetEditTemplate() +\r\n\t\t\t\t\"</div>\"\r\n\t\t\t);\r\n\r\n\t\t\tforMarker.tooltip = new gm.InfoWindow();\r\n\t\t\tforMarker.tooltip.setContent(item[0]);\r\n\t\t\t// we'll still need a reference to the marker later on\r\n\t\t\tforMarker.tooltip.marker = forMarker;\r\n\t\t\tforMarker.showTooltip = showTooltip;\r\n\r\n\t\t\treturn item;\r\n\r\n\t\t} // createTooltip", "function CreateMapMarker (\tin_mtg_obj_array\t/**< A meeting object array. */\n\t\t\t\t\t\t\t\t)\n\t{\n\t\tvar main_point = new google.maps.LatLng ( in_mtg_obj_array[0].latitude, in_mtg_obj_array[0].longitude );\n\t\t\n\t\tvar\tmarker_html = '<div class=\"meeting_info_window_contents_div';\n\t\t\n\t\tif ( in_mtg_obj_array.length > 1 )\n\t\t\t{\n\t\t\tmarker_html += '_multi\">';\n\t\t\tvar included_weekdays = [];\n\t\t\t\n\t\t\tfor ( var c = 0; c < in_mtg_obj_array.length; c++ )\n\t\t\t\t{\n\t\t\t\tvar already_there = false;\n\t\t\t\tfor ( var c2 = 0; c2 < included_weekdays.length; c2++ )\n\t\t\t\t\t{\n\t\t\t\t\tif ( included_weekdays[c2] == in_mtg_obj_array[c].weekday_tinyint )\n\t\t\t\t\t\t{\n\t\t\t\t\t\talready_there = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t};\n\t\t\t\t\t};\n\t\t\t\t\n\t\t\t\tif ( !already_there )\n\t\t\t\t\t{\n\t\t\t\t\tincluded_weekdays[included_weekdays.length] = in_mtg_obj_array[c].weekday_tinyint;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t\n\t\t\tmarker_html += '<div class=\"multi_day_info_div\"><fieldset class=\"marker_fieldset\">';\n\t\t\tmarker_html += '<legend>';\n\t\t\t\n\t\t\tif ( included_weekdays.length > 1 )\n\t\t\t\t{\n\t\t\t\tmarker_html += '<select id=\"sel_'+in_mtg_obj_array[0].id_bigint.toString()+'\" onchange=\"WhereAmI.marker_change_day('+in_mtg_obj_array[0].id_bigint.toString()+')\">';\n\t\t\t\t\n\t\t\t\tfor ( var wd = 1; wd < 8; wd++ )\n\t\t\t\t\t{\n\t\t\t\t\tfor ( var c = 0; c < included_weekdays.length; c++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tif ( included_weekdays[c] == wd )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmarker_html += '<option value=\"'+included_weekdays[c]+'\">'+c_g_weekdays[included_weekdays[c]]+'</option>';\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\tmarker_html += '</select>';\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tmarker_html += '<strong>'+c_g_weekdays[included_weekdays[0]]+'</strong>';\n\t\t\t\t};\n\t\t\t\n\t\t\tmarker_html += '</legend>';\n\t\t\tvar\tfirst = true;\n\t\t\tfor ( var wd = 1; wd < 8; wd++ )\n\t\t\t\t{\n\t\t\t\tmarker_internal_html = '';\n\t\t\t\tvar\tmeetings_html = [];\n\t\t\t\tfor ( var c = 0; c < in_mtg_obj_array.length; c++ )\n\t\t\t\t\t{\n\t\t\t\t\tif ( in_mtg_obj_array[c].weekday_tinyint == wd )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tmeetings_html[meetings_html.length] = marker_make_meeting ( in_mtg_obj_array[c] );\n\t\t\t\t\t\t};\n\t\t\t\t\t};\n\t\t\t\t\n\t\t\t\tif ( meetings_html.length )\n\t\t\t\t\t{\n\t\t\t\t\tmarker_internal_html += '<div class=\"marker_div_weekday marker_div_weekday_'+wd.toString()+'\" style=\"display:';\n\t\t\t\t\tif ( first )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tmarker_internal_html += 'block'; \n\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\tmarker_internal_html += 'none'; \n\t\t\t\t\t\t};\n\t\t\t\t\t\t\n\t\t\t\t\tmarker_internal_html += '\" id=\"marker_'+in_mtg_obj_array[0].id_bigint.toString()+'_'+wd.toString()+'_id\">';\n\t\t\t\t\tfor ( var c2 = 0; c2 < meetings_html.length; c2++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\tif ( c2 > 0 )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmarker_internal_html += '<hr class=\"meeting_divider_hr\" />';\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\tmarker_internal_html += meetings_html[c2];\n\t\t\t\t\t\t};\n\t\t\t\t\tmarker_internal_html += '</div>';\n\t\t\t\t\tmarker_html += marker_internal_html;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\tmarker_html += '</fieldset></div>';\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tmarker_html += '\">';\n\t\t\tmarker_html += marker_make_meeting ( in_mtg_obj_array[0], c_g_weekdays[in_mtg_obj_array[0].weekday_tinyint] );\n\t\t\t};\n\t\t\n\t\tmarker_html += '</div>';\n\t\tvar marker = CreateMarker ( main_point, g_icon_shadow, ((in_mtg_obj_array.length>1) ? g_icon_image_multi : g_icon_image_single), g_icon_shape, marker_html );\n\t}", "function setEventListner() {\n google.maps.event.addListener(marker, 'click', (function(marker, content, infowindow) {\n return function() {\n if (prevInfoWindow) {\n prevInfoWindow.close();\n }\n prevInfoWindow = infowindow;\n infowindow.open(map, marker);\n };\n })(marker, content, infowindow));\n }", "function add_marker( $marker, map ) {\n // var\n var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n // create marker\n var marker = new google.maps.Marker({\n position : latlng,\n map : map\n });\n // add to array\n map.markers.push( marker );\n // if marker contains HTML, add it to an infoWindow\n if( $marker.html() )\n {\n // create info window\n var infowindow = new google.maps.InfoWindow({\n content : $marker.html()\n });\n // show info window when marker is clicked\n google.maps.event.addListener(marker, 'click', function() {\n infowindow.open( map, marker );\n });\n }\n}", "function createMarker(latlng, story) {\n var marker = new GMarker(latlng);\n marker.value = story['id'];\n GEvent.addListener(marker, 'click', function() {\n var imageHtml = '<img style=\"padding: 1px; border: 1px solid;\" width=\"50\" src=\"'+story['imageRef']+'\"></img>'\n var summaryHtml = '<div style=\"float: left; display: inline\">'+imageHtml+'</div><div style=\"float: left; display: inline; margin-left: 10px;\"><b>' + story['title'] + '</b><br/>' + story['summary']+'</div>';\n var embeddedVideo = ''; // no video\n if (story.has_flv)\n {\n if (story.media_type == 'flvv')\n {\n embeddedVideo = '<i>Video</i><br/><a href=\"/static/flv/'+story.flv_id+'.flv\" style=\"display:block;width:320px;height:240px;\" id=\"player\"></a><script language=\"JavaScript\">flowplayer(\"player\", \"/static/flowplayer/flowplayer-3.1.0.swf\", { clip: { autoPlay: false, autoBuffering: true } }); </script>';\n \n }\n else if (story.media_type == 'flva')\n {\n embeddedVideo = '<i>Audio</i><br/><div id=\"audio\" style=\"display:block;width:320px;height:30px;\" href=\"/static/flv/'+story.flv_id+'.flv\"></div><script language=\"JavaScript\">$f(\"audio\", \"/static/flowplayer/flowplayer-3.1.0.swf\", { plugins: { controls: { fullscreen: false, height: 30 } }, clip: { autoPlay: false, onBeforeBegin: function() { $f(\"player\").close(); } } }); </script>';\n \n }\n }\n //var embeddedVideo = '<object width=\"300\" height=\"200\"><param name=\"movie\" value=\"'+story['link']+'\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"'+story['link']+'\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"300\" height=\"200\"></embed></object>';\n var fullHtml = '<h1>' + story['title'] + '</h1><p style=\"font-style: italic; font-size: small;\">Added by '+story['contributor']+' on '+story['created']+'</p><div style=\"float: left; display: inline;\"><p><strong>Language:</strong>&nbsp;' + story['language'] + '</p><p><strong>Summary:</strong><br/>' + story['summary'] + '</p></div><div style=\"float: right; display: inline; margin-left: 20px; margin-right: 20px;\">'+embeddedVideo+'</div>';\n map.openInfoWindowHtml(latlng, summaryHtml, opts={'maxContent': fullHtml});\n });\n return marker;\n }", "function createMarkers() {\n // Create an normal icon\n const normalIcon = makeMarkerIcon('ff0000');\n // Create an selected icon, when clicked or hover over it\n const selectedIcon = makeMarkerIcon('00ff00');\n // Create an Info Window\n const markerInfoWindow = new google.maps.InfoWindow();\n // Create all markers from initialPlaces array\n initialPlaces.forEach(function(place, index){\n const marker = new google.maps.Marker({\n position: place.coordinates,\n title: place.name,\n animation: google.maps.Animation.DROP,\n icon: normalIcon,\n id: index\n });\n // Push this marker to the array of markers.\n markers.push(marker);\n // Bounce the marker once and open an info window when click on a specific marker.\n marker.addListener('click', function(){\n bounceMarker(this);\n createInfoWindow(this, markerInfoWindow);\n });\n // Bounce the marker once and open an info window when click the item in the list that corresponds to a marker.\n document.getElementsByTagName(\"li\")[index].addEventListener('click', function(){\n // When select the marker from the list center map Window\n //on the marker.\n map.setCenter(marker.getPosition());\n bounceMarker(marker);\n createInfoWindow(marker, markerInfoWindow);\n });\n // When hover over an marker change it to selectedIcon.\n marker.addListener('mouseover', function(){\n this.setIcon(selectedIcon);\n });\n // When leave out the mouse over an marker change it to normalIcon.\n marker.addListener('mouseout', function(){\n this.setIcon(normalIcon);\n });\n });\n}", "function listenerMarker(marker, title) {\n\t\t// Add the location name as a label to the box\n\t\tvar locationTitle = \"<div id = 'main'><div id = 'location-title'><h1 id='wiki-title'>\" + title + \"</h1></div><div id = 'wikipedia-links'></div></div>\";\n\t\t\n\t\t// Variable to set the search based on the selected marker title\n\t\tvar wikipediaLink = 'http://en.wikipedia.org/w/api.php?action=opensearch&search=' + title + '&format=json&callback=wikiCallback';\n\t\t\n\t\t// Render correctly: enable the listner, shift view to center on the marker\n\t\t// set market to bounce when clicked and open the window with the Wikipedia link and title\n\t\tmarker.addListener('click', function() {\n\t\t\tif (selectedMarker) {\n\t\t\t\tselectedMarker.setAnimation(null);\n\t\t\t}\n\n\t\t\tselectedMarker = marker;\n\t\t\tmarker.setAnimation(google.maps.Animation.BOUNCE);\n\t\t\tmap.setCenter(marker.getPosition());\n\n\t\t\t$.ajax({\n\t\t\t\turl: wikipediaLink,\n\t\t\t\tdataType: \"jsonp\"\n\t\t\t}).fail(function (jqXHR, textStatus) {\n\t\t\t\tvar linkTitle = \"<p>Wikipedia page not found</p></div></div>\";\n\t\t\t\tdisplayInfo = locationTitle + linkTitle;\n\t\t\t\tiWindow.open(map, marker);\n\t\t\t\tiWindow.setContent(displayInfo);\n\t\t\t}).done(function (receive) {\n\t\t\t\tvar wikiList = receive[1];\n\t\t\t\tvar wikiTitle = wikiList[0];\n\t\t\t\tvar wikiLink = \"http://en.wikipedia.org/wiki/\" + wikiTitle;\n\t\t\t\tvar linkTitle = \"<a target='_blank' href='\" + wikiLink + \"'>\" + wikiTitle + \"</a></div></div>\";\n\t\t\t\tdisplayInfo = locationTitle + linkTitle;\n\t\t\t\tiWindow.open(map, marker);\n\t\t\t\tiWindow.setContent(displayInfo);\n\t\t\t});\n\t\t});\n\t}", "function createMarkers() {\r\n map = plugin.google.maps.Map.getMap(div)\r\n map.addMarkerCluster({\r\n boundsDraw: false,\r\n markers: markerList,\r\n icons: [\r\n {min: 5, max: 100, url: \"www/images/circle.png\", anchor: {x: 30, y: 30}}\r\n ]\r\n }, function(markerCluster) {\r\n markerCluster.on(plugin.google.maps.event.MARKER_CLICK, function (position, marker) {\r\n marker_title = marker.get(\"title\")\r\n marker_image = marker.get(\"image\")\r\n marker_address = marker.get(\"fullAddress\")\r\n marker_phone = marker.get(\"phone\")\r\n $('.location_popup .popup_title').html(marker_title)\r\n if (marker_image != null) {\r\n $('.location_popup .popup_image').attr('src', marker_image) \r\n }\r\n $('.location_popup .popup_address').html(marker_address)\r\n if (marker_phone != null) {\r\n $('.location_popup .phone').html(marker_phone) \r\n } else {\r\n $('.location_popup .phone').html('No phone')\r\n }\r\n $('.location_popup').removeClass('hide')\r\n $('.location_popup').hide()\r\n $('.location_popup').slideToggle(250)\r\n $('#googlemaps_page').css('height', height - LOCATION_POPUP_HEIGHT + 'px')\r\n enableMap()\r\n $('.location_popup').unbind('click tap');\r\n $('.location_popup').bind('click tap', function() {\r\n marker_location = marker.get(\"location\")\r\n map.setDiv(null)\r\n window.setupLocationContent(marker_location)\r\n })\r\n $('.location_popup i.fa.fa-times').unbind('click tap');\r\n $('.location_popup i.fa.fa-times').bind('click tap', function() {\r\n $('.location_popup').unbind('click tap');\r\n $('.location_popup').show()\r\n $('.location_popup').slideToggle(250)\r\n $('.location_popup').addClass('hide')\r\n $('#googlemaps_page').css('height', height + 'px')\r\n enableMap()\r\n })\r\n })\r\n })\r\n }", "function createMarker() {\n for (var i = 0; i < locationsList().length; i++ ){\n var initialLocation = locationsList()[i];\n var placeLoc = initialLocation.location;\n var marker = new google.maps.Marker({\n map: map,\n position: placeLoc,\n title: initialLocation.name,\n visible: true\n });\n initialLocation.marker = marker;\n markers.push(marker);\n //add event listeners to the markers to open the relevant infowindow\n google.maps.event.addListener(marker, 'click', (function(initialLocation) {\n return function() {\n closeAllInfoWindows();\n deselectAll();\n toggleBounce(initialLocation);\n initialLocation.selected(true);\n infowindow.setContent(contentString(initialLocation));\n infowindow.open(map, this);\n infowindows.push(infowindow);\n };\n })(initialLocation));\n }\n }", "function drawMarker(map, location) {\n var marker = new google.maps.Marker({\n position: {lat : location['latitude'], lng : location['longitude']},\n map: map,\n title: location['name'],\n animation: google.maps.Animation.DROP\n });\n var contentString = '<div id=\"' + location['name'] + '\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h3 id=\"firstHeading\" class=\"firstHeading\">' + location['name'] + '</h3>'+\n '<div id=\"bodyContent\">'+\n '<p>' + location['description'] + '</p>'+\n '<img src=\"' + location['image'] + '\" alt=\"' + location['name'] +'\" style=\"width:50;height:50;\">' +\n '</div>'+\n '</div>';\n try{\n var infowindow = new google.maps.InfoWindow({\n content: contentString\n });\n marker.addListener('click', function() {\n infowindow.open(map, marker);\n });\n }\n catch(err){\n var e = marker._eventListeners[0];\n marker.removeEventListener(e.event, e.callback);\n contentString = '<div id=\"' + location['name'] + '\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h3 id=\"firstHeading\" class=\"firstHeading\">' + location['name'] + '</h3>'+\n '<div id=\"bodyContent\">'+\n '<p>' + location['description'] + '</p>'+\n '</div>'+\n '</div>';\n var infowindow = new google.maps.InfoWindow({\n content: contentString\n });\n marker.addListener('click', function() {\n infowindow.open(map, marker);\n });\n }\n //return marker;\n}", "function createMapMarker (name, lat, lng) {\n var bounds = window.mapBounds;\n var marker = new google.maps.Marker({\n position: {lat: lat, lng: lng},\n title: name,\n visible: true,\n map: map\n });\n infowindow = new google.maps.InfoWindow({\n content: infoWindowContentString\n });\n // if infowindow is closed animation is stopped\n google.maps.event.addListener(infowindow, 'closeclick', function() {\n for (var mm = 0; mm < allMyMarkers.length; mm++) {\n // remove animation from marker\n allMyMarkers[mm].marker.setAnimation(null);\n }\n map.fitBounds(window.mapBounds);\n });\n\n bounds.extend(new google.maps.LatLng(lat, lng));\n map.fitBounds(bounds);\n map.setCenter(bounds.getCenter());\n // listen to click on marker\n google.maps.event.addListener(marker, 'click', function() {\n for (var mm = 0; mm < allMyMarkers.length; mm++) {\n // remove animation and info window from other animated marker\n allMyMarkers[mm].marker.setAnimation(null);\n allMyMarkers[mm].infowindow.close();\n }\n // place animated marker in the center of the map\n map.setCenter(marker.getPosition());\n // open infowindow for clicked marker\n infowindow.open(map, marker);\n if (marker.getAnimation() !== null) {\n marker.setAnimation(null);\n } else {\n // get Wikipedia info for clicked marker\n getWikipediaInfo(marker.title);\n // animate clicked marker\n marker.setAnimation(google.maps.Animation.BOUNCE);\n }\n });\n return {marker: marker, infowindow: infowindow};\n }", "function makeMarker(position, icon, title, label, section){\r\n\t\tvar contenido = '<b>'+label+'</b><br>'+section;\r\n\t\tvar marker = new google.maps.Marker({\r\n\t\t\tposition: position,\r\n\t\t\tmap: map,\r\n\t\t\ticon: icon,\r\n\t\t\ttitle: title\r\n\t\t});\r\n\t\tmarkersArray.push(marker);\r\n\t\tnew google.maps.event.addListener(marker, 'click', function() {\r\n \t\tinfoWindow.setContent(contenido); \r\n \t\tinfoWindow.open(map,marker);\r\n \t});\r\n\t}", "function add_marker( $marker, map ) {\n\n // var\n var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n\n // create marker\n var marker = new google.maps.Marker({\n position\t: latlng,\n map\t\t\t: map\n });\n\n // add to array\n map.markers.push( marker );\n\n // if marker contains HTML, add it to an infoWindow\n if( $marker.html() )\n {\n // create info window\n var infowindow = new google.maps.InfoWindow({\n content\t\t: $marker.html()\n });\n\n // show info window when marker is clicked\n google.maps.event.addListener(marker, 'click', function() {\n\n infowindow.open( map, marker );\n\n });\n }\n\n }", "function createMarkers(bounds){\n //for each place get the icon, name and location\n places.forEach(function(place){\n console.log(\"place name \"+place.name);\n /* As per my review feedback, there is a simpler way to create Markers.\n * Not sure how else it could be simplified. Yes I had dynamic searchBox.getPlaces()\n * before, not sure what is redundant, would love to know.\n */\n var icon = {\n url : 'http://maps.google.com/mapfiles/ms/icons/red-dot.png',\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 // create new Marker based on the location data\n var marker = new google.maps.Marker({\n map : map,\n icon : icon,\n title : place.name,\n draggable: true,\n animation : google.maps.Animation.DROP,\n position : new google.maps.LatLng(place.latitude, place.longitude)\n });\n //makes the process simpler and more logical via the Map.fitBounds() method\n bounds.extend(marker.position);\n map.fitBounds(bounds);\n\n markers.push(marker);\n\n\n /* Registers Listeners for maker click, calls changeColor and openInfoWindow,\n * which changes the color of the marker to green,adds animation and opens an InfoWindow\n * Also addressing closure problem with EventListeners, with an outer and return functions.\n */\n marker.addListener('click',(function(marker,place,infowindow)\n {\n return function(){\n marker.clicked = true;\n changeColor(marker);\n openInfoWindow(place,marker,infowindow);\n };\n })(marker,place,infowindow));\n\n /* Registers eventListener on close of the infoWindow\n * This event listener would reset the marker color to red if infoWindow is closed\n */\n infowindow.addListener('closeclick',(function(marker){\n return function(){\n marker.clicked = false;\n changeColor(marker);\n };\n })(marker));\n\n });//each place\n\n }//createMarkers", "function createWindow(rmap, rinfowindow, rmarker){\r\n return function(){\r\n rinfowindow.open(rmap, rmarker);\r\n }\r\n}//end create (info) window", "function mapMarkers(array) {\n $.each(array, function(index, value) {\n var latitude = value.eventLat,\n longitude = value.eventLon,\n geoLoc = new google.maps.LatLng(latitude, longitude),\n thisEvent = value.eventName;\n\n var infoContentString = '<div id=\"infowindow\">' +\n '<img src=\"' + value.eventImg + '\">' +\n '<h4 class = \"infoName\">' + value.eventName + '</h4>' +\n '<div class = \"clear\"></div>' +\n '<p class = \"infoAddress\">' + value.eventAddress + '</p>' +\n '<p>Group: ' + value.eventGroup + '</p>' +\n '<p><a href=\"' + value.eventLink + '\" target=\"_blank\">Click to view event details</a></p>' +\n '</div>';\n\n // Custormize marker\n var iconBase = 'img/meetup.png';\n var marker = new google.maps.Marker({\n position: geoLoc,\n title: thisEvent,\n map: map,\n icon: iconBase\n });\n\n self.mapMarkers.push({marker: marker, content: infoContentString});\n\n self.eventStatus(self.numEvents() + ' events found near ' + self.searchLocation());\n\n //generate infowindows for each event\n google.maps.event.addListener(marker, 'click', function() {\n self.searchStatus('');\n infowindow.setContent(infoContentString);\n map.setZoom(12);\n map.setCenter(marker.position);\n infowindow.open(map, marker);\n map.panBy(0, -150);\n });\n });\n }", "function makeInfoWindowEvent( contentString, marker ) {\n\t\t\t\t\n\t\t\t\tgoogle.maps.event.addListener( marker, 'click', function() {\n\t\t\t\t\n\t\t\t\tinfowindow.setContent( contentString );\n\t\t\t\t\n\t\t\t\tinfowindow.open( map, marker );\n\t\t\t \n\t\t\t });\n\t\t\t\n\t\t\t}", "function addMarkerOnClick(){\n return function() {\n globalVariables.clickMarker.setMap(null); //clear new marker created from right click\n for(var marker = 0; marker < globalVariables.markers.length; marker ++) {\n globalVariables.markers[marker].setAnimation(null);\n }\n this.setAnimation(google.maps.Animation.BOUNCE);\n populateInfoWindow(this, globalVariables.infoWindow);\n };\n}", "function locationMarkers(location) {\n\n for(i=0; i<location.length; i++) {\n location[i].holdMarker = new google.maps.Marker({\n position: new google.maps.LatLng(location[i].lat, location[i].lng),\n map: map,\n title: location[i].title,\n icon: {\n url: 'img/marker.png',\n size: new google.maps.Size(25, 40),\n origin: new google.maps.Point(0, 0),\n anchor: new google.maps.Point(12.5, 40)\n }\n });\n\nbounds.extend(location[i].holdMarker.position);\n\n\n//Binds infoWindow content to each marker\n\nlocation[i].contentString =location[i].title +\n location[i].title + '</strong><br><p>' +\n location[i].streetAddress + '<br>' +\n location[i].cityAddress + '<br></p><a class=\"web-links\" href=\"http://' + location[i].url +\n '\" target=\"_blank\">' + location[i].url + '</a>';\n\n//triggers infowindow upon click\n\n\nviewModel.showInfo = function(location){\n google.maps.event.trigger(location.holdMarker,'click');\n}\n\n\n//opens infowindow when link or marker is clicked\n location[i].holdMarker.addListener ( 'click', (function(marker, i) {\n return function() {\n infowindow.setContent(location[i].contentString);\n marker.setAnimation(google.maps.Animation.BOUNCE);\n infowindow.open(map,marker);\n map.setZoom(16);\n map.setCenter(location[i]);\n setTimeout(function () {\n infowindow.close();\n marker.setAnimation(google.maps.Animation.DROP);\n }, 1400);\n //***GET WIKIPEDIA INFO***\n getWikiInfo(marker.title);\n };\n })(location[i].holdMarker, i));\n\n }\n\n}", "function add_marker( $marker, map ) {\n \n // var\n var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n \n \n \n // create marker\n \n var marker = new google.maps.Marker({\n position : latlng,\n map : map,\n // title:\"P1220214 8.JPG\",\n markercard:$marker.html(),\n icon: \"/wp-content/themes/colibrity-wp-theme-b4/images/geo3.png\",\n });\n /*\n var marker = new google.maps.Circle({\n position:latlng,\n center: latlng,\n map:map,\n radius: 100, //радиус метров\n strokeColor: \"#B40404\",\n strokeOpacity: 0.6,\n strokeWeight: 2,\n fillColor: \"#B40404\",\n fillOpacity: 0.6\n });\n */\n // add to array\n map.markers.push( marker );\n \n // if marker contains HTML, add it to an infoWindow\n if( $marker.html() )\n {\n \n // show info window when marker is clicked & close other markers\n google.maps.event.addListener(marker, 'click', function() {\n //swap content of that singular infowindow\n infowindow.setContent($marker.html());\n infowindow.open(map, marker);\n });\n \n // close info window when map is clicked\n google.maps.event.addListener(map, 'click', function(event) {\n if (infowindow) {\n infowindow.close(); }\n }); \n \n }\n \n }", "function hook_event_listener(marker, name, id, img, date, des) {\n \n marker.addListener('click', function() {\n open_url(name, id); // click to open url\n });\n\n \n marker.addListener('mouseout', function() {\n infowindow.close(map, marker);\n });\n marker.addListener('mouseover', function() {\n \n //html thumb image display string \n var contentString = '<div>'+\n '<img class=\"thumbnail popup-th-img\" src=\"'+img+'\" alt=\"'+name+'\">'+\n '<h3>'+name+'</h3>'+des+\n '</p>'+\n '</div>';\n\n //create new object infowindow\n infowindow = new google.maps.InfoWindow({\n content: contentString,\n maxWidth: 400\n });\n //invoke infowindow Object\n infowindow.open(map, marker);\n \n });\n} // End of hook_event_listener function", "function createMarker(m) {\n\t\t\tvar id = m.getAttribute(\"id\");\n\t\t\tvar title = m.getAttribute(\"title\");\n\t\t\tvar location = m.getAttribute(\"location\");\n\t\t\tvar description = m.getAttribute(\"description\");\n\t\t\tvar lat = parseFloat(m.getAttribute(\"lat\"));\n\t\t\tvar lng = parseFloat(m.getAttribute(\"lng\"));\n\t\t\tvar audio = m.getAttribute(\"audio\");\n\t\t\tvar latlng = new GLatLng(lat,lng);\n\t\t\tvar marker = new GMarker(latlng);\n\t\t\tGEvent.addListener(marker,\"click\", function() {\n\t\t\t\tclickFunction(\"\",id);\n\t\t\t});\n\t\t\treturn marker;\n\t\t}", "function setMarkers(places) {\n var i;\n infowindow = new google.maps.InfoWindow();\n for (i = 0; i < places.length; i++) {\n places[i].holdmarker = new google.maps.Marker({\n position: new google.maps.LatLng(markers[i].lat, markers[i].lng),\n map: map,\n animation: google.maps.Animation.DROP,\n title: markers[i].title,\n clickable: true\n });\n\n //this is to add a click event handler for click the marker and show info window\n google.maps.event.addListener(places[i].holdmarker, 'click', (function(marker, i) {\n return function() {\n infowindow.setContent('<img src=\"http://maps.googleapis.com/maps/api/streetview?' +\n 'size=200x150&location=' + places[i].streetAddress + ', ' + places[i].cityAddress +\n '\" alt=\"Street View Image of ' + places[i].title + '\"><br><hr style=\"margin-bottom: 5px\"><strong>' +\n places[i].title + '</strong><br><p>' +\n places[i].streetAddress + '<br>' +\n places[i].cityAddress + '<br></p><a class=\"web-links\" href=\"http://' + places[i].url +\n '\" target=\"_blank\">' + places[i].url + '</a>');\n infowindow.open(map, places[i].holdmarker);\n markers[i].holdmarker.setAnimation(google.maps.Animation.BOUNCE);\n map.panTo(markers[i].holdmarker.getPosition());\n map.setZoom(16);\n setTimeout(function() {\n markers[i].holdmarker.setAnimation(null);\n }, 700);\n };\n })(marker, i));\n\n //this is to add a click event lisentner to the search result text----not used\n /*$('#search_result').on('click', '#nav' + i, (function(marker, i) {\n return function() {\n \tgoogle.maps.event.trigger(markers[i].holdmarker,'click');\n }\n })(marker, i));*/\n }\n\n\n}", "function add_marker($marker, map) {\n\n\t\t// var\n\t\tvar latlng = new google.maps.LatLng($marker.attr('data-lat'), $marker.attr('data-lng'));\n\n\t\t// create marker\n\t\tvar marker = new google.maps.Marker({\n\t\t\tposition: latlng,\n\t\t\tmap: map,\n\t\t\tvisible: map.markerVisibility\n\t\t});\n\n\t\t// add to array\n\t\tmap.markers.push(marker);\n\n\t\t// if marker contains HTML, add it to an infoWindow\n\t\tif ($marker.html()) {\n\t\t\t// create info window\n\t\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\t\tcontent: $marker.html()\n\t\t\t});\n\n\t\t\t// show info window when marker is clicked\n\t\t\tgoogle.maps.event.addListener(marker, 'click', function () {\n\n\t\t\t\tinfowindow.open(map, marker);\n\n\t\t\t});\n\t\t}\n\n\t}", "function createMarker(stopName,stopBuses,point, markerNum,iconType) \r\n \r\n\t{\r\n //var infoWindowHtml = generateInfoWindowHtml(biz)\r\n\t\t\r\n\t\tvar splitBuses=stopBuses.split(\",\");\r\n\t\tvar busString='';\r\n\t\tvar len=0;\r\n\t\tif(splitBuses.length>5)\r\n\t\t{\r\n\t\t\tfor(i=0;i<splitBuses.length;i++)\r\n\t\t\t{\r\n\t\t\t\tbusString=busString+splitBuses[i]+\",\";\r\n\t\t\t\tif(i%8==7)\r\n\t\t\t\t\tbusString=busString+\"<br>\";\r\n\t\t\t}\r\n\t\t\tlen=busString.length-2;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbusString=stopBuses;\r\n\t\t\tlen=busString.length;\r\n\t\t}\r\n\r\n\t\t\r\n\t\tvar infoWindowHtml = stopName+\"<br/>\"+busString.substring(0,len);\r\n\r\n var marker = new GMarker(point, iconType);\r\n map.addOverlay(marker);\r\n \r\n\t\t// required to collect data for the proper centering of the map\r\n\t\tbounds.extend(marker.getPoint());\r\n \r\n\t\tGEvent.addListener(marker, \"click\", function() {\r\n marker.openInfoWindowHtml(infoWindowHtml, {maxWidth:400});\r\n });\r\n // automatically open first marker\r\n // if (markerNum == 0)\r\n // marker.openInfoWindowHtml(infoWindowHtml, {maxWidth:400});\r\n\t\t//return marker;\r\n }", "function addMarker(location, message) {\n marker = new google.maps.Marker({\n position: location,\n map: mymap,\n animation: google.maps.Animation.DROP\n });\n\naddInfoWindow(marker, message)\n}", "function setMarkers(location) {\r\n //The markers are inidividually set using a for loop\r\n for (i = 0; i < location.length; i++) {\r\n location[i].holdMarker = new google.maps.Marker({\r\n //Sets the markers on the map within the initialize function\r\n position: new google.maps.LatLng(location[i].lat, location[i].lng),\r\n map: map,\r\n title: location[i].title,\r\n icon: {\r\n url: 'img/marker.png',\r\n size: new google.maps.Size(25, 40),\r\n origin: new google.maps.Point(0, 0),\r\n anchor: new google.maps.Point(12.5, 40)\r\n }\r\n });\r\n\r\n //function to place google street view images within info windows\r\n determineImage();\r\n\r\n var infowindow = new google.maps.InfoWindow({\r\n content: monuments[i].contentString\r\n });\r\n\r\n //Click marker to view infoWindow\r\n //zoom in and center location on click\r\n new google.maps.event.addListener(location[i].holdMarker, 'click', (function(marker, i) {\r\n return function() {\r\n //Binds infoWindow content to each marker\r\n if (location[i].url != undefined) {\r\n location[i].contentString = '<div> <img src=\"' + streetViewImage +\r\n '\" alt=\"Street View Image of ' + location[i].title + '\"><br><hr style=\"margin-bottom: 6px\"><strong>' +\r\n location[i].title + '</strong><br><p>' +\r\n location[i].streetAddress + '<br>' +\r\n location[i].cityAddress + '<br></p><a class=\"web-links\" href=\"' + location[i].url +\r\n '\" target=\"_blank\">' + location[i].url + '</a>' +\r\n '<p>' + location[i].shortDescription +\r\n '</p></div>';\r\n infowindow.setContent(location[i].contentString);\r\n } else {\r\n location[i].contentString = '<div> <img src=\"' + streetViewImage +\r\n '\" alt=\"Street View Image of ' + location[i].title + '\"><br><hr style=\"margin-bottom: 6px\"><strong>' +\r\n location[i].title + '</strong><br><p>' +\r\n location[i].streetAddress + '<br>' +\r\n location[i].cityAddress + '<br></p>' + \"Failed to load wiki Resources\" +\r\n '<p>' + \"Failed to load wiki Resources\" +\r\n '</p></div>';\r\n infowindow.setContent(location[i].contentString);\r\n }\r\n infowindow.open(map, this);\r\n var windowWidth = window.innerWidth;\r\n if (windowWidth <= 1080) {\r\n map.setZoom(14); // change Map zoom with change in window width\r\n } else if (windowWidth > 1080) {\r\n map.setZoom(16);\r\n }\r\n map.setCenter(marker.getPosition());\r\n location[i].picBoolTest = true;\r\n };\r\n })(location[i].holdMarker, i));\r\n }\r\n}", "function createMarker(location, content, potholeID) {\n\n // Step 1: Create the marker\n\n // (First, though, we use a special variable to make old ones non-draggable)\n var drag = (content === undefined) ? true : false\n var sprayCan = {\n url: \"/assets/sprayCan2.png\",\n scaledSize: new google.maps.Size(50,50)}\n\n // Now we actually do step 1\n var marker = new google.maps.Marker({\n position: location,\n map: map,\n draggable: drag,\n animation: google.maps.Animation.DROP,\n icon: sprayCan,\n pothole_id: potholeID\n });\n\n // Step 2: Add newly created marker to a marker array\n\n markers.push(marker);\n\n\n // Step 3: Set up HTML for infobox\n var contentString;\n var markerLocation = {latitude:marker.position.ob, longitude:marker.position.pb}\n\n // If a new marker, creates a form\n // If an existing marker, uses content data passed into createMarker function\n if (content === undefined) {\n contentString = JST['templates/newForm'](markerLocation);\n } else {\n contentString = content;\n }\n\n // Step 4: Put content into infobox\n infobox.setContent(contentString);\n\n\n // Step 5: If it's a new marker, open the infobox\n if (newMarkerExists === true) {\n infobox.open(map, marker);\n isWindowOpen = true;\n };\n\n // Bug fix: Set currentLat/currentLng to hold last dragged position\n currentLat = markerLocation.latitude\n currentLng = markerLocation.longitude\n\n google.maps.event.addListener(marker, 'dragend', function(){\n currentLat = this.getPosition().lat()\n currentLng = this.getPosition().lng()\n })\n\n\n\n\n // On clicking marker, centers and opens/closes info window\n // Refactoring: Does this need to go inside createMarker function?\n\n google.maps.event.addListener(marker, 'click', function(){\n\n map.panTo(marker.getPosition());\n\n if (isWindowOpen == false) {\n infobox.setContent(contentString);\n infobox.open(map,marker);\n isWindowOpen = true;\n currentMarker = marker;\n } else if (infobox.content === contentString) {\n infobox.close();\n isWindowOpen = false;\n currentMarker = null;\n } else {\n infobox.close();\n infobox.setContent(contentString);\n infobox.open(map,marker);\n currentMarker = marker;\n }\n });\n } // end of createMarker()", "function initializeMap() {\n my_map_options = {\n center: my_center, // to change this value, change my_center above\n zoom: 13, // higher is closer-up\n mapTypeId: google.maps.MapTypeId.HYBRID // you can also use TERRAIN, STREETMAP, SATELLITE\n };\n\n // this one line creates the actual map\n my_map = new google.maps.Map(document.getElementById(\"map_canvas\"),\n my_map_options);\n // this is an *array* that holds all the marker info\n var all_my_markers =\n [{position: new google.maps.LatLng(41.9000,12.5000),\n map: my_map,\n icon: blueURL, // this sets the image that represents the marker in the map to the one\n // located at the URL which is given by the variable blueURL, see above\n title: \"first Marker\",\n window_content: \"<h1>Marker1</h1><p> and this would be the extended description</p>\"\n },\n {position: new google.maps.LatLng(41.8902,12.4923),\n map: my_map,\n icon: blueURL, // this sets the image that represents the marker in the map\n title: \"second Marker\",\n window_content: \"<h1>Marker2</h1><p> and <a href='http://something'>this would</a> be the extended description</p>\"\n },\n {position: new google.maps.LatLng(41.8986,12.4768),\n map: my_map,\n icon: redURL, // this sets the image that represents the marker in the map\n title: \"third Marker\",\n window_content: '<h1>Marker3</h1><img title=\"Picture of Quote. Src: someone, some year\" src=\"https://s-media-cache-ak0.pinimg.com/736x/6d/e2/25/6de2251b8b4be709dcc936ae4f0caaaf.jpg\"/>' +\n '<blockquote>quote quote quote quote</blockquote>'\n }\n ];\n\n for (j = 0; j < all_my_markers.length; j++) {\n var marker = new google.maps.Marker({\n position: all_my_markers[j].position,\n map: my_map,\n icon: all_my_markers[j].icon,\n title: all_my_markers[j].title,\n window_content: all_my_markers[j].window_content});\n\n // this next line is ugly, and you should change it to be prettier.\n // be careful not to introduce syntax errors though. \n legendHTML +=\n \"<div class=\\\"pointer\\\" onclick=\\\"locateMarker(my_markers[\" + j + \"])\\\"> \" +\n marker.window_content + \"</div>\";\n marker.info = new google.maps.InfoWindow({content: marker.window_content});\n var listener = google.maps.event.addListener(marker, 'click', function() {\n // if you want to allow multiple info windows, uncomment the next line\n // and comment out the two lines that follow it\n //this.info.open(this.map, this);\n infowindow.setContent (this.window_content);\n infowindow.open(my_map, this);\n });\n my_markers.push({marker:marker, listener:listener});\n if (all_my_markers[j].icon == blueURL ) {\n blue_markers.push({marker:marker, listener:listener});\n } else if (all_my_markers[j].icon == redURL ) {\n red_markers.push({marker:marker, listener:listener});\n }\n \n }\n document.getElementById(\"map_legend\").innerHTML = legendHTML;\n my_map.data.addGeoJson(myGeoJSON);\n\n var romeCircle = new google.maps.Rectangle({\n strokeColor: '#FF0000',\n strokeOpacity: 0.8,\n strokeWeight: 2,\n fillColor: '#FF0000',\n fillOpacity: 0.35,\n // in general, we always have to *set the map* when we\n // add features. \n map: my_map,\n bounds: {\n north: 42.685,\n south: 40.671,\n east: 12.501,\n west: 12.485\n },\n\n center: {\"lat\": 41.9000, \"lng\":12.5000},\n radius: 1000\n }); \n my_map.data.setStyle(function (feature) {\n var thisColor = feature.getProperty(\"myColor\");\n return {\n fillColor: thisColor,\n strokeColor: thisColor,\n strokeWeight: 5\n };\n\n});\n}", "function newMarker(location, title, start, end){\n //---To check if there are markers on the same position:---//\n //http://www.frontendfan.com/multiple-markers-with-the-exact-same-location/\n var finalLatLng = location;\n\n //check to see if any of the existing markers match the latlng of the new marker\n if (markers.length != 0) {\n for (i=0; i < markers.length; i++) {\n var existingMarker = markers[i];\n var pos = existingMarker.getPosition();\n\n //if a marker already exists in the same position as this marker\n if (location.equals(pos)) {\n //update the position of the coincident marker by applying a small multiplier to its coordinates\n var newLat = location.lat() + (Math.random() -.5) / 1500;// * (Math.random() * (max - min) + min);\n var newLng = location.lng() + (Math.random() -.5) / 1500;// * (Math.random() * (max - min) + min);\n finalLatLng = new google.maps.LatLng(newLat,newLng);\n }\n }\n }\n //----------------------------------------------------------//\n\n marker = new google.maps.Marker({\n position: finalLatLng,\n map: map,\n title: title,\n animation: google.maps.Animation.DROP\n });\n\n var time;\n if(start == \"\" || end == \"\")\n time = '';\n else\n time = '<h4>'+start+'-'+end+'</h4>';\n //content for the info window:\n var contentString = '<div id=\"infoContent\">'+\n '<h3 id=\"firstHeading\">'+title+'</h3>'+\n '<div id=\"bodyContent\">'+\n time+\n '</div>'\n '</div>';\n\n infowindow = new google.maps.InfoWindow({\n content: contentString,\n });\n\n //open info window on click: \n marker.addListener('click', function() {\n infowindow.setContent(contentString);\n infowindow.open(map, this);\n });\n marker.setIcon('https://maps.google.com/mapfiles/ms/icons/blue-dot.png');\n //push onto markers array in map.js\n markers.push(marker);\n}", "function createWindow(rmap, rinfowindow, rmarker){\r\n return function(){\r\n\t\t\t\trinfowindow.open(rmap, rmarker);\r\n }\r\n }//end create (info) window", "function addMarker(point, xhtml)\n{\n // instantiate marker\n var marker = new GMarker(point);\n\n // prepare info window for city\n GEvent.addListener(marker, \"click\", function() {\n map.openInfoWindowHtml(point, xhtml);\n });\n\n // add marker to map\n map.addOverlay(marker);\n}", "addEventMarker(coord, text, iconKey, events, ourEventOptions) {\n let eventMarker = this.addMarker(coord, text, iconKey);\n eventMarker.ourEventOptions = ourEventOptions;\n eventMarker.on(\"click\", () => {\n events(eventMarker.ourEventOptions);\n });\n }", "function WindowBind(marker, map, infowindow, html, pinloc) {\n marker.addListener('click', function() {\n infowindow.setContent(html);\n infowindow.open(map, this);\n \n Cookie.set('bar-selected', pinloc);\n });\n}", "function infoBox(map, marker, item) {\n var infoWindow = new google.maps.InfoWindow();\n // Attaching a click event to the current marker\n google.maps.event.addListener(marker, \"click\", function (e) {\n //map.setZoom(8),\n map.setCenter(marker.getPosition());\n infoWindow.setContent(this.html);\n infoWindow.open(map, marker);\n });\n\n\n\n\n }//fin funcion informacion de marcador", "function addMarkerInfo() {\n\n for (var i = 0; i < markersOnMap.length; i++) {\n var contentString = '<div id=\"content\"><h1>' + markersOnMap[i].placeName +\n\n '</h1><p>' + markersOnMap[i].description + ' <a href=\"walks.html\">See our Walks page for further details</a>r</p></div>';\n\n const marker = new google.maps.Marker({\n position: markersOnMap[i].LatLng[0],\n map: map\n });\n\n const infowindow = new google.maps.InfoWindow({\n content: contentString,\n maxWidth: 200\n });\n\n marker.addListener('click', function () {\n closeOtherInfo();\n infowindow.open(marker.get('map'), marker);\n InforObj[0] = infowindow;\n });\n\n }\n}", "function place_marker(location, locations_array, map) {\n var infowindow = new google.maps.InfoWindow;\n console.log(typeof infowindow);\n var marker = new google.maps.Marker({\n position: location,\n map: map\n });\n //Default marker content.\n $.ajax({\n url: \"https://radiant-mesa-71731.herokuapp.com/locations/\",\n type: \"POST\",\n data: { name: \"New Place\", latitude: location.lat(), longitude: location.lng(), content: \"Write about your memories here!\" },\n success: function (result) {\n markers.push(marker);\n marker.setMap(map);\n var markerObj = new marker_1.Marker(result.name, result.content, result.latitude, result.longitude, result._id);\n locations_array.push(markerObj);\n google.maps.event.addListener(marker, 'click', (function (infowindow, content_string, marker) {\n return function () {\n var content_string = markerObj.create_content();\n infowindow.open(map, marker);\n infowindow.setContent(content_string);\n markerObj.add_listeners(infowindow, marker);\n };\n })(infowindow, markerObj, marker));\n }\n });\n}", "function CreateMarker (\tin_coords,\t\t///< The long/lat for the marker.\n\t\t\t\t\t\t\tin_shadow_icon,\t///< The URI for the icon shadow\n\t\t\t\t\t\t\tin_main_icon,\t///< The URI for the main icon\n\t\t\t\t\t\t\tin_shape,\t\t///< The shape for the marker\n\t\t\t\t\t\t\tin_html\t\t\t///< The info window HTML\n\t\t\t\t\t\t\t)\n\t{\n\t\tvar marker = null;\n\t\t\n\t\tif ( in_coords )\n\t\t\t{\n\t\t\tvar\tis_clickable = (in_html ? true : false);\n\n\t\t\tvar marker = new google.maps.Marker ( { 'position':\t\tin_coords,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'map':\t\t\tg_main_map,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'shadow':\t\tin_shadow_icon,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'icon':\t\t\tin_main_icon,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'shape':\t\tin_shape,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'clickable':\tis_clickable,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'cursor':\t\t'default'\n\t\t\t\t\t\t\t\t\t\t\t\t\t} );\n\t\t\tif ( marker )\n\t\t\t\t{\n\t\t\t\tmarker.all_markers_ = g_allMarkers;\n\t\t\t\tif ( in_html )\n\t\t\t\t\t{\n\t\t\t\t\tgoogle.maps.event.addListener ( marker, \"click\", function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor(var c=0; c < this.all_markers_.length; c++)\n\t\t\t\t\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\t\t\tif ( this.all_markers_[c] != this )\n\t\t\t\t\t\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\t\t\t\tif ( this.all_markers_[c].info_win_ )\n\t\t\t\t\t\t\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\t\t\t\t\tthis.all_markers_[c].info_win_.close();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.all_markers_[c].info_win_ = null;\n\t\t\t\t\t\t\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\t\t\t\t};\n\t\t\t\t\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\t\tthis.info_win_ = new SmartInfoWindow ({'position': marker.getPosition(), 'map': marker.getMap(), 'content': in_html});\n\t\t\t\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);\n\t\t\t\t\t};\n\t\t\t\tg_allMarkers[g_allMarkers.length] = marker;\n\t\t\t\t};\n\t\t\t};\n\t\t\n\t\treturn marker;\n\t}", "function createMarker(latlng, name, html) {\n\tvar contentString = html;\n\tvar marker = new google.maps.Marker({\n\t\tposition: latlng,\n\t\tmap: map,\n\t\tzIndex: Math.round(latlng.lat() * -100000) << 5\n\t});\n\n\tgoogle.maps.event.addListener(marker, \"click\", function() {\n\t\tinfowindow.setContent(contentString);\n\t\tinfowindow.open(map, marker);\n\t});\n\t// save the info we need to use later for the side_bar\n\tgmarkers.push(marker);\n\t// add a line to the side_bar html\n\tvar sidebar = $(\"#side_bar\");\n\tvar sidebar_entry = $(\"<li/>\", {\n\t\thtml: name,\n\t\tclick: function() {\n\t\t\tgoogle.maps.event.trigger(marker, \"click\");\n\t\t\talert(\"\\nCall to make an appointment or check drop-in hours: \\n\\n\" + (contentString.replace(/<br ?\\/?>/g, \"\\n\")).substr(0,14));\n\t\t},\n\t\tmouseenter: function() {\n\t\t\t$(this).css(\"color\", \"rgb(0, 114, 178)\"); // change sidebar text to blue when you hover\n\t\t\t$(this).css(\"font-weight\", \"bold\"); // change sidebar text to bold when you hover\n\t\t\tinfowindow.setContent(contentString);\n\t\t\t$(this).css(infowindow.open(map, marker));\n\t\t},\n\t\tmouseleave: function() {\n\t\t\t$(this).css(\"color\", \"#000\");\n\t\t\t$(this).css(\"font-weight\", \"normal\"); // change sidebar text back to normal\n\t\t\t$(this).css(infowindow.close(map, marker));\n\t\t}\n\t}).appendTo(sidebar);\n}", "function initMap() {\n\n\n \n var uluru = {lat: 23.874758, lng:90.382677};\n var map = new google.maps.Map(document.getElementById('map'), {\n zoom: 17,\n center: uluru\n });\n var marker = new google.maps.Marker({\n position: uluru,\n map: map\n });\n \n var infoWindow = new google.maps.InfoWindow({\n content: '<h1>Jasim Uddin Road</h1><p>Latitude : <b><big>23.874758</big></b>&emsp;Longitude : <b><big>90.382677</big></b>'\n });\n\n\n marker.addListener('click', function() {\n infoWindow.open(map, marker);\n });\n}", "function setInfoWindow(marker, infoWindow) {\n if (infoWindow.marker != marker) {\n infoWindow.marker = marker;\n infoWindow.setContent(\"<div class='title'>\" + marker.title + \"</div>\" + marker.contentString);\n }\n marker.setAnimation(google.maps.Animation.BOUNCE);\n setTimeout(function() {\n marker.setAnimation(null);\n }, 500);\n infoWindow.open(map, marker);\n \n infoWindow.addListener('closeclick', function() {\n infoWindow.setMarker = null;\n });\n\n //Automatically close info window after 3 seconds\n window.setTimeout(function(){\n infoWindow.close();\n }, 3000);\n }", "function createInfoWindow (marker){\n // Create the InfoWindow\n var infoWindow = new google.maps.InfoWindow();\n // Create StreetViewService to show a street view window for marker location or nearest places within 50 meter\n var StreetViewService = new google.maps.StreetViewService();\n var radius = 50;\n //Create an onclick event listener to open\n marker.addListener('click', function(){\n infoWindow.marker = marker;\n infoWindow.setContent('<div Id=\"infoWindowDiv\"><h5>' + marker.title +'</h5></div>');\n\n //** One options to be displayed in InfoWindow **//\n /* 1) Displaying Wikipedia articals: */\n var wikiURL = 'http://en.wikipedia.org/w/api.php?action=opensearch&search=' + marker.title + '&format=json&callback=wikiCallback';\n var wikiRequestTimeout = setTimeout(function() {\n alert(\"failed to load wikipedia resources\");\n }, 8000);\n $.ajax({\n url: wikiURL,\n dataType: \"jsonp\",\n success: function(response) {\n var articalsList = response[1];\n var atricalTitle ;\n $('#infoWindowDiv').append('<div Id=\"wikiDiv\"><ul id=\"wikiListItem\"></ul></div>');\n for (var i = 0 , length = articalsList.length; i < length && i < 4 ; i++ ){\n atricalTitle = articalsList[i];\n $('#wikiListItem').append('<li><a href=\"http://en.wikipedia.org/wiki/'+atricalTitle+'\">'+atricalTitle+'</a></li>');\n }\n clearTimeout(wikiRequestTimeout);\n },\n });\n infoWindow.open(map, marker);\n });\n\n\n //** Other options to be displayed in InfoWindow **//\n /* 2) Displaying an Image usign URL parameters: (Note: Not working well for some reasons)\n -------> Should be placed before infoWindow.Open()\n\n $('#pano').append('<img src= https://maps.googleapis.com/maps/api/streetview?'+\n 'size=200x150&location='+marker.position+'&heading=151.78&pitch=-0.76'+\n '&key=AIzaSyBpcOjPqBYX5nfyfSKIUp3NXwUIiQHP0lQ></img>'); */\n\n /* 3) Displaying an Street view object: (Note: Not working well for some reasons)\n -------> Should be placed before infoWindow.Open()\n StreetViewService.getPanoramaByLocation(marker.position, radius, getViewStreet);\n function getViewStreet(data, status){\n if (status === 'Ok'){\n infoWindow.setContent('<div><h5>' + marker.title +'</h5><div Id=\"pano\"></div></div>');\n var nearViewStreetLocation = data.location.latLng;\n var heading = google.map.geometry.spherical.computeHeading(nearViewStreetLocation, marker.position);\n var panoramaOptions = {\n position : nearViewStreetLocation,\n pov :{ heading: heading, pitch: 30 }\n };\n var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'),panoramaOptions);\n map.setStreetView(panorama);\n }\n else{\n infoWindow.setContent('<div><h5>' + marker.title +'</h5><div>No Street View Found</div></div>');\n }\n }*/\n\n }", "function setMarkers(map) {\n\n // defines the clickable region of the icon\n // no real use yet\n // var shape = {\n // coords: [1, 1, 1, 20, 18, 20, 18, 1],\n // type: 'poly'\n // };\n\n for (var i=0; i<pins.length; i++) {\n // object (one pin)\n var pin = pins[i];\n\n var status = pin.fields.status;\n\n if (status === 'Barrier')\n var url = '/static/img/map-marker-barrier.png';\n else if (status === 'In Progress')\n var url = '/static/img/map-marker-in-progress.png';\n else if (status === 'Resolved')\n var url = '/static/img/map-marker-resolved.png';\n else if (status === 'Best Practice')\n var url = '/static/img/map-marker-best-practice.png';\n else\n var url = '/static/img/map-marker.png';\n\n var image = {\n url: url\n // size: new google.maps.Size(20, 32),\n // origin: new google.maps.Point(0, 0),\n // anchor: new google.maps.Point(0, 32)\n };\n\n if (pin.fields.address != null)\n var address = pin.fields.address;\n else\n var address = '';\n\n if (pin.fields.date_updated != null)\n var date = pin.fields.date_updated;\n else\n var date = '';\n\n // data of a detailed window\n var contentString = '<div id=\"content\" style=\"color: black\">'+\n '<div id=\"siteNotice\">'+\n '</div>'+\n '<h1 id=\"firstHeading\" class=\"firstHeading\">' + pin.fields.tag + '</h1>'+\n '<div id=\"bodyContent\">'+\n '<div><b>Status: </b>'+ status +'</div>'+\n '<div><b>Description: </b>'+ pin.fields.description +'</div>'+\n '<div><b>Address: </b>'+ address +'</div>'+\n '<div><b>Date created: </b>'+ pin.fields.date_created.slice(0,10) + \" \" + pin.fields.date_created.slice(11,19) +'</div>'+\n '<div><b>Date updated: </b>'+ date.slice(0,10) + \" \" + date.slice(11,19) +'</div>'+\n '<div><a href=\"/pins/' + (i+1) + '\">See more</a>' +\n '</div>'+\n '</div>';\n\n var infowindow = new google.maps.InfoWindow({\n content: contentString,\n maxWidth: 450\n });\n\n // creating the marker\n var marker = new google.maps.Marker({\n position: {\n lat: pin.fields.location_latitude, \n lng: pin.fields.location_longitude\n },\n map: map,\n icon: image,\n infowindow: infowindow,\n // shape: shape,\n // title: pin[0],\n zIndex: i // determines which pin is on top if they overlap\n });\n\n // listener for clicking on a pin\n marker.addListener('click', function() {\n this.infowindow.open(map, this);\n });\n\n\n }\n}", "function createMarker(place){\n \n //Gathers the latitude and longitude of the places returned \n geomarker = {\n lat: place.geometry.location.lat(),\n lng: place.geometry.location.lng(),\n };\n\n //Creates the markers and positions them on the co-ordinates returned.\n var everymarker= new google.maps.Marker({\n position: geomarker,\n map: map});\n console.log(place);\n\n/***************************Infowindow, directions button and bottom panel returned when a marker is clicked*******************************/\n new google.maps.event.addListener(everymarker, 'click', () => {\n map.setZoom(19);\n map.panTo(everymarker.position);\n $(\"#panel\").show();\n infoPane.classList.add(\"open\");\n $(\"#directionbutton\").show();\n \n \n //This is the circle button that says \"Tap to zoom out\"\n var clickscreen= document.getElementById(\"mouseclick\");\n clickscreen.innerHTML=\"Tap to\"+`<br>`+\"zoom out\";\n clickscreen.classList.add(\"mouse\");\n clickscreen.classList.add(\"circlebase\");\n clickscreen.onclick= function(){\n infowindow.close();\n $(\"#directionbutton\").hide();\n $(\"#panel\").hide();\n mapdetails.innerHTML=\"\";\n writtendetails.innerHTML=\"\";\n map.setZoom(16);\n };\n \n //the get directions button.\n var element3 = document.getElementById(\"getdirections\");\n element3.type = \"button\";\n element3.name = \"add\";\n element3.value=\"Remove\";\n element3.className=\"btn btn-primary btn-lg\";\n element3.innerHTML=`<i class=\"fas fa-directions\"></i>`+\" \"+\"Get Directions\";\n element3.classList.add(\"directions\");\n element3.onclick= function(){\n window.open(\"https://www.google.com/maps/dir/?api=1&travelmode=walking&layer=traffic&destination=\"+everymarker.position+\"\");\n\n };\n \n //Clears all the previous information when another marker is selected\n if (mapdetails.firstChild) {\n mapdetails.removeChild(mapdetails.firstChild);\n }\n showPhotos(place);\n if (writtendetails.firstChild){\n writtendetails.removeChild(writtendetails.firstChild);\n }\n Details(place);\n \n \n //requesting the information I want on the infowindow when a marker is clicked\n let request2 = {\n placeId: place.place_id,\n fields: ['name', 'rating']\n };\n\n \n service.getDetails(request2, (placeResult, status) => {\n showDetails(placeResult, everymarker, status);\n \n });\n\n});\n\n/******************When the map is clicked all the elements that were returned will be cleared from the map*************************/\nnew google.maps.event.addListener(map, 'click', function() {\n infowindow.close();\n $(\"#directionbutton\").hide();\n $(\"#panel\").hide();\n mapdetails.innerHTML=\"\";\n writtendetails.innerHTML=\"\";\n map.setZoom(16);\n });\n}", "function makeHandler(marker, i) {\n return function() {\n if (!isMapLoaded) {\n return;\n }\n infoWindow.setContent(generateWindowContent(locations[i]));\n infoWindow.open(map, marker);\n marker.setAnimation(google.maps.Animation.BOUNCE);\n setTimeout(function() {\n marker.setAnimation(null);\n }, 1000);\n viewModel.loadData(locations[i]);\n\n };\n}", "function LoadMap() {\n\n var mapOptions = {\n center: new google.maps.LatLng(infoApartments[0].lat, infoApartments[0].lng),\n zoom: 13,\n mapTypeId: google.maps.MapTypeId.ROADMAP\n }\n var map = new google.maps.Map(document.getElementById(\"dvMap\"), mapOptions)\n\n //Create and open InfoWindow.\n var infoWindow = new google.maps.InfoWindow()\n var myLatlng\n for ( i = 0; i < infoApartments.length; i++) {\n data = infoApartments[i]\n myLatLng = new google.maps.LatLng(data.lat, data.lng)\n marker = new google.maps.Marker({\n position: myLatLng,\n map: map,\n title: data.description\n }); // leave semi-colon here\n //Attach click event to the marker.\n \n /* when function inside (), means it is self-starting function - just runs without being called. \n () after closing }) shows functions' parameters (if any) */\n (function(marker, data) {\n google.maps.event.addListener(marker, \"click\", function(e) {\n //Wrap the content inside an HTML DIV in order to set height and width of InfoWindow.\n infoWindow.setContent(\"<div style = 'width:150px;min-height:35px'>\" + data.description + \"</div>\")\n infoWindow.open(map, marker)\n }) \n }\n )(marker, data) \n \n } // for looop\n}", "function initMap() {\n var latLng = {\n lat: 20.6772885,\n lng: -103.3856328\n }\n var map = new google.maps.Map(document.getElementById('mapa'), {\n 'center': latLng,\n 'zoom': 14,\n 'mapTypeId':google.maps.MapTypeId.ROADMAP,\n /*\n 'draggable' : false,\n 'scrollwheel ':false\n */\n });\n\n var contenido = '<h2>GDLWEBCAMP</h2>'+\n '<p>Del 10 al 12 de Diciembre</p>'+\n '<p>Visitanos!</p>'\n\n var informacion = new google.maps.InfoWindow({\n content: contenido\n });\n\n var marker = new google.maps.Marker({\n position: latLng,\n map: map,\n title:'GDLWEBCAMP'\n });\n\n marker.addListener('click',function(){\n informacion.open(map, marker);\n });\n\n}", "function addInfoWindow(marker, message,myLatLng,i) {\nvar infoWindow = new google.maps.InfoWindow({\n content: \"\"\n});\n var geocoder = new google.maps.Geocoder;\n google.maps.event.addListener(marker, 'click', function () {\n\t\t\tgeocodeLatLng(geocoder, map,marker, infoWindow,myLatLng,i);\n\t\t\t//infoWindow.open(map, marker);\n });\n}", "function createSidebarEntry(newMarker, name) {\n var div = document.createElement('div');\n var html = '<b>' + name + '</b>';\n div.innerHTML = html;\n div.style.cursor = 'pointer';\n div.style.marginBottom = '5px';\n div.style.border = '1px';\n\n google.maps.event.addDomListener(div, 'click', function () {\n google.maps.event.trigger(newMarker, 'click');\n });\n google.maps.event.addDomListener(div, 'mouseover', function () {\n div.style.backgroundColor = '#eee';\n });\n google.maps.event.addDomListener(div, 'mouseout', function () {\n div.style.backgroundColor = '#fff';\n });\n return div;\n}", "function addMarkerToTheMap(station) {\n\n // console.log(\"Station: \", station);\n\n //create myLatLng const to set latitude and longitude value and pass this const to marker's position property\n const myLatLng = {\n lat: station.AddressInfo.Latitude,\n lng: station.AddressInfo.Longitude\n };\n\n //set markers bounds for each marker\n bounds.extend(new google.maps.LatLng(myLatLng));\n\n //create markers using station's latitude and longitude\n const marker = new google.maps.Marker({\n position: myLatLng,\n //Added animation to the markers\n //Source: https://developers.google.com/maps/documentation/javascript/examples/marker-animations\n animation: google.maps.Animation.DROP,\n map,\n title: station.AddressInfo.Title,\n });\n\n\n //Added the event listener to bounce the markers on click (turn on or off)\n marker.addListener(\"click\", toggleBounce);\n\n //Function to make the bounce feature on the markers operate\n function toggleBounce() {\n if (marker.getAnimation() !== null) {\n marker.setAnimation(null);\n } else {\n marker.setAnimation(google.maps.Animation.BOUNCE);\n //Set the marker to bounce then stop\n //Source: http://superstorefinder.net/support/forums/topic/controlling-the-bouncing-markers/\n setTimeout(function(){ marker.setAnimation(null); }, 750);\n }\n }\n\n //add each marker to the markers Array\n markers.push(marker);\n\n //get the infoWindow fo each marker\n var infoWindow = new google.maps.InfoWindow();\n\n var contentString = getContentString(station);\n\n //when marker is click fill out station details in this infoWindow\n google.maps.event.addListener(marker, 'click', (function(marker) {\n return function() {\n closeOtherInfoWindow();\n infoWindow.setContent(contentString);\n infoWindow.open(map, marker);\n infoWindowObject[0] = infoWindow;\n }\n })(marker));\n}", "function marker () {\n return new ClickTool(markerHandler);\n }", "function marker () {\n return new ClickTool(markerHandler);\n }", "function add_marker( $marker, map ) {\n\n\t// var\n\tvar latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n\n\t// create marker\n\tvar marker = new google.maps.Marker({\n\t\tposition\t: latlng,\n\t\tmap\t\t\t: map,\n\t});\n\n\t// add to array\n\tmap.markers.push( marker );\n\n\t// if marker contains HTML, add it to an infoWindow\n\tif( $marker.html() )\n\t{\n\t\t// create info window\n\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\tcontent\t\t: $marker.html(),\n\t\t});\n\n\t\t// show info window when marker is clicked\n\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\n\t\t\tinfowindow.open( map, marker );\n\n\t\t});\n\t}\n\n}", "function createMarker(themap, point, number, thisName, drag, letter, thecolor) {\r\r\n //var letteredIcon = new GIcon(baseIcon);\r\r\n var linecolors=['red' ,'orange','yellow','green' ,'blue' ,'indigo','violet','white' ,'black' ,'grey'];\r\r\n var colorcode=['ff0000','ff8000','ffff00','01DF01','0101DF','8A0886','FA58F4','ffffff','000000','848484'];\r\r\n if (letter=='T'){thecolor='01DF01'}\r\r\n if (letter=='H'){thecolor='848484'}\r\r\n if (letter=='P'){thecolor='ff0000'}\r\r\n if (letter=='B'){thecolor='ffffff'}\r\r\n \r\r\n var image = 'http://thydzik.com/thydzikGoogleMap/markerlink.php?text='+letter+'&color='+thecolor;\r\r\n var shape = {\r\r\n coord: [1, 1, 1, 20, 18, 20, 18 , 1], type: 'poly'};\r\r\n var beachMarker = new google.maps.Marker({\r\r\n position: point,\r\r\n map: themap,\r\r\n icon: image,\r\r\n shape: shape,\r\r\n title: '\" + Request.QueryString(\"namefrom\") + \"'\r\r\n });\r\r\n \r\r\n var infowindow = new google.maps.InfoWindow({\r\r\n content: '<font style=\"\"color:blue\"\">' + thisName + '</font>',\r\r\n size: new google.maps.Size(50,50)\r\r\n });\r\r\n\r\r\n google.maps.event.addListener(beachMarker, 'click', function() {\r\r\n infowindow.open(map,beachMarker);\r\r\n });\r\r\n \r\r\n \r\r\n //return beachMarker;\r\r\n }", "function setMarkers(location) {\n\n for(i=0; i<location.length; i++) {\n\n\n location[i].holdMarker = new google.maps.Marker({\n position: new google.maps.LatLng(location[i].lat, location[i].lng),\n map: map,\n title: location[i].title,\n //animation: google.maps.Animation.DROP,\n icon: {\n url: 'img/marker.png',\n size: new google.maps.Size(25, 40),\n origin: new google.maps.Point(0, 0),\n anchor: new google.maps.Point(12.5, 40)\n },\n shape: {\n coords: [1,25,-40,-25,1],\n type: 'poly'\n }\n //location[i].holdMarker('click', toggleBounce);\n });\n\n //function to animate the marker\n /*function toggleBounce() {\n if (location[i].holdMarker.getAnimation() !== null) {\n location[i].holdMarker.setAnimation(null);\n } else {\n location[i].holdMarker.setAnimation(google.maps.Animation.BOUNCE);\n }\n }*/\n\n\n\n //get google street view images for info windows\n determineImage();\n\n //Binds infoWindow content to each marker\n location[i].contentString = '<img src=\"' + streetViewImage +\n '\" alt=\"Street View Image of ' + location[i].title + '\"><br><hr style=\"margin-bottom: 5px\"><strong>' +\n location[i].title + '</strong><br><p>' +\n location[i].streetAddress + '<br>' +\n location[i].cityAddress + '<br></p><a class=\"web-links\" href=\"http://' + location[i].url +\n '\" target=\"_blank\">' + location[i].url + '</a>';\n\n var infowindow = new google.maps.InfoWindow({\n content: markers[i].contentString\n });\n\n //Click on marker to view infoWindow\n //zoom in and center location on click\n new google.maps.event.addListener(location[i].holdMarker, 'click', (function(marker, i) {\n\n return function() {\n infowindow.setContent(location[i].contentString);\n infowindow.open(map,this);\n var windowWidth = $(window).width();\n if(windowWidth <= 1080) {\n map.setZoom(14);\n } else if(windowWidth > 1080) {\n map.setZoom(16);\n }\n map.setCenter(marker.getPosition());\n //tryng to change the url of the image to animate on click\n //location[i].holdMarker.icon.url = 'img/marker2.png';\n //console.log(location[i].holdMarker.icon.url);\n\n location[i].picBoolTest = true;\n };\n })(location[i].holdMarker, i));\n\n //Click nav element to view infoWindow\n //zoom in and center location on click\n var searchNav = $('#nav' + i);\n searchNav.click((function(marker, i) {\n return function() {\n infowindow.setContent(location[i].contentString);\n infowindow.open(map,marker);\n map.setZoom(16);\n map.setCenter(marker.getPosition());\n location[i].picBoolTest = true;\n };\n })(location[i].holdMarker, i));\n }\n}", "function add_marker( $marker, map ) {\n\n\t// var\n\tvar latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\n\n\t// create marker\n\tvar marker = new google.maps.Marker({\n\t\tposition\t: latlng,\n\t\tmap\t\t\t: map\n\t});\n\n\t// add to array\n\tmap.markers.push( marker );\n\n\t// if marker contains HTML, add it to an infoWindow\n\tif( $marker.html() )\n\t{\n\t\t// create info window\n\t\tvar infowindow = new google.maps.InfoWindow({\n\t\t\tcontent\t\t: $marker.html()\n\t\t});\n\n\t\t// show info window when marker is clicked\n\t\tgoogle.maps.event.addListener(marker, 'click', function() {\n\n\t\t\tinfowindow.open( map, marker );\n\n\t\t});\n\t}\n\n}", "function add_marker( $marker, map ) {\r\n\r\n var latlng = new google.maps.LatLng( $marker.attr('data-lat'), $marker.attr('data-lng') );\r\n\r\n /*var iconObj = { //38, 51\r\n url : marker_url, //<--marker_url = variable\r\n size : new google.maps.Size(38, 51),\r\n scaledSize : new google.maps.Size(38, 51),\r\n };*/\r\n var marker = new google.maps.Marker({\r\n //icon : iconObj,\r\n position : latlng,\r\n map : map\r\n });\r\n\r\n map.markers.push( marker );\r\n\r\n if( $marker.html() )\r\n {\r\n var infowindow = new google.maps.InfoWindow({\r\n content : $marker.html()\r\n });\r\n google.maps.event.addListener(marker, 'click', function() {\r\n infowindow.open( map, marker );\r\n });\r\n }\r\n }", "function fnAttainClosureInformationWindow(marker, ajLocations) {\n //Attaching click event to the current marker\n google.maps.event.addListener(marker, \"click\", function(event) {\n infoWindow.setContent(ajLocations.address);\n infoWindow.open(map, marker);\n });\n }", "function bindInfoWindow(marker, map, infowindow, html) {\n marker.addListener('click', function() {\n infowindow.setContent(html);\n infowindow.open(map, this);\n });\n}", "function bindInfoWindow(marker, map, infowindow, html, location) \n{\n marker.addListener('click', function() \n {\n \n infowindow.setContent(html);\n infowindow.open(map, this);\n queryMapDetail(location);\n });\n}", "function setupInfoWindow(marker) {\n\n var favoBtn = $('#favo-btn');\n var span = $('#favo-span');\n var place_id = marker.place_id;\n\n if (favos.includes(place_id)) {\n marker.is_favo = true;\n }\n\n toggleFavoBtn(marker.is_favo);\n\n favoBtn.on('click', function () {\n\n marker.is_favo = !marker.is_favo;\n var isFavo = marker.is_favo;\n\n toggleFavoBtn(isFavo);\n\n if (isFavo) {\n favos.push(marker.place_id);\n } else {\n favos.pop('marker_id');\n }\n });\n\n function toggleFavoBtn(isFavo) {\n var favoHtml = '<i class=\"fas fa-heart\"></i> Favorate!';\n var notFavoHtml = 'Add to Favo'\n\n if (isFavo) {\n favoBtn.html(favoHtml);\n } else {\n favoBtn.html(notFavoHtml);\n }\n\n favoBtn.toggleClass('btn-danger', isFavo);\n favoBtn.toggleClass('btn-success', !isFavo);\n }\n}", "function createMarker(frsqrItem) {\n var content = \"\";\n // The marker object , \n // - animation property set to DROP.\n // - icon property is set to an icon from Templatic \n var marker = new google.maps.Marker({\n map: map,\n animation: google.maps.Animation.DROP,\n title: frsqrItem.name,\n icon: './templatic/books-media.png',\n //infowindow: new google.maps.InfoWindow(),\n position: {\n lat: frsqrItem.lat,\n lng: frsqrItem.lng\n }\n });\n content = content + \"</br>\";\n content = content + \"<p> \" + marker.title + \"</p>\";\n content = content + \"<img src=\\\"\" + frsqrItem.venuePhotoUrl + \"\\\"/>\";\n marker.content = content;\n content = '';\n // add click handler to every marker.\n // When a marker is clicked, the name of the location and photo is displayed.\n // The animation property is set to bounce, so the marker bounces when you click on it \n google.maps.event.addListener(marker, 'click', function() {\n var self = this;\n if (self.getAnimation() !== null) {\n self.setAnimation(null);\n } else {\n self.setAnimation(google.maps.Animation.BOUNCE, 1400);\n stopAnimation(marker);\n }\n // TODO: Open the infowindow only if it is not already open.\n if(!infowindow.isOpen){\n //The infowindow is not already open.\n infowindow.setContent(self.content);\n infowindow.open(self.map, this);\n infowindow.isOpen = true;\n }\n else{\n infowindow.close();\n infowindow.setContent(self.content);\n infowindow.open(self.map, this);\n infowindow.isOpen = true;\n }\n \n });\n return marker;\n}", "function clickEventer(event){\n\t\t// get the coordinate of the clicked postion\n\t \tvar coord = getCoordinate(event); \n\t \tif(checkInfoWindow()){ // check if infowindow was opened\n\t \t\tmapCollector.infowindow.close() //close opened window\n\t \t\tcreateNewInfoWindow(coord, contentString) //create new one\n\t \t\tmapCollector.infowindow.open(map); // open the newly created\n\t \t}else{\n\t \t\tcreateNewInfoWindow(coord, contentString) // create new one\n\t \t\tmapCollector.infowindow.open(map); // open it\n\t \t}\n\t \t\n }", "function createMarker(latlng, name, address1, address2){\n var marker = new google.maps.Marker({\n map: map,\n position: latlng,\n title: name,\n icon: pawIcon\n });\n\n // This event expects a click on a marker\n // When this event is fired the Info Window content is created\n // and the Info Window is opened.\n google.maps.event.addListener(marker, 'click', function() {\n \n // Creating the content to be inserted in the infowindow\n var iwContent = '<div id=\"iw_container\">' +\n '<div class=\"iw_title\">' + name + '</div>' +\n '<div class=\"iw_content\">' + address1 + '<br />' +\n address2 + '<br />' +\n '</div></div>';\n \n // including content to the Info Window.\n infoWindow.setContent(iwContent);\n\n // opening the Info Window in the current map and at the current marker location.\n infoWindow.open(map, marker);\n });\n}" ]
[ "0.7090899", "0.7054651", "0.6969521", "0.69187415", "0.6893246", "0.6861639", "0.6760341", "0.675333", "0.66674376", "0.6643152", "0.66400373", "0.6633825", "0.6627645", "0.6620509", "0.66078234", "0.65950453", "0.65369093", "0.65237635", "0.65182996", "0.6516053", "0.6515744", "0.6515744", "0.65151983", "0.64998287", "0.6493901", "0.6487362", "0.6472351", "0.646637", "0.6461432", "0.6444259", "0.64423484", "0.6434389", "0.64321655", "0.6417064", "0.64154416", "0.6402663", "0.6396502", "0.6394359", "0.6391266", "0.63908434", "0.63898057", "0.63895404", "0.63824266", "0.638109", "0.6377257", "0.6366355", "0.63637906", "0.6354017", "0.63470197", "0.6346795", "0.6340484", "0.6339605", "0.6338666", "0.63384426", "0.6332441", "0.63134897", "0.6306103", "0.6300489", "0.6286595", "0.628623", "0.62841934", "0.62837", "0.6274657", "0.62683725", "0.6267265", "0.6264838", "0.6264351", "0.6263333", "0.62621135", "0.6260281", "0.625896", "0.62581843", "0.62557846", "0.62533635", "0.6231651", "0.62292504", "0.6223687", "0.6218366", "0.6212077", "0.62058264", "0.62006146", "0.61924726", "0.61863816", "0.6178374", "0.61660254", "0.6162631", "0.6160823", "0.6160823", "0.6158577", "0.61567724", "0.61555946", "0.6154248", "0.61511654", "0.61487323", "0.6148014", "0.61475486", "0.6146294", "0.6143233", "0.6136316", "0.612809" ]
0.70177126
2